Commit Graph

9325 Commits

Author SHA1 Message Date
github-actions[bot] 6f7d50552e release: v12.5.1 blockly-v12.5.1 2026-03-20 17:04:50 +00:00
Aaron Dodson 1f1e2c4679 Revert "fix: Improve zoom animations (#9584)" (#9647)
This reverts commit 3acdf5e536.
2026-03-20 09:38:55 -07:00
Maribeth Moffatt 92dd086b3a chore: update repo name in blockly package (#9645) blockly-v12.5.0 2026-03-19 14:39:30 -04:00
Maribeth Moffatt 46d7294dca chore: use node 24 for publishing (#9644) 2026-03-19 14:17:17 -04:00
Maribeth Moffatt 48426dc485 chore: add option to publish the package without bumping version (#9643) 2026-03-19 13:57:36 -04:00
github-actions[bot] ec6035e809 release: v12.5.0 2026-03-19 17:00:15 +00:00
Maribeth Moffatt d1bbc97c53 chore: add a deploy key to allow pushing to main (#9642) 2026-03-19 12:49:35 -04:00
Aaron Dodson 92c73f62c7 fix: Fix bug that caused blocks to become disconnected when undoing deletions (#9636) 2026-03-18 13:10:37 -04:00
Maribeth Moffatt 5239bde021 chore: add release env to publish action to get review (#9639) 2026-03-18 13:09:52 -04:00
Maribeth Moffatt 6413d71257 chore: fix version command for publish (#9637) 2026-03-17 11:22:43 -04:00
Aaron Dodson de7abd0c40 fix: Remove unsafe non-null assertions (#9598) 2026-03-16 15:56:26 -07:00
Maribeth Moffatt f6f5fcc6ad chore: add workflow for versioning/publishing blockly (#9627)
* chore: add workflow for versioning/publishing blockly

* chore: add dry run option
2026-03-16 16:10:40 -04:00
Aaron Dodson a6325ed0e3 fix: Fix a bug that could cause menus to scroll incorrectly on mouseover (#9603)
* fix: Fix a bug that could cause menus to scroll incorrectly on mouseover

* refactor: Simplify CSS
2026-03-16 12:57:59 -07:00
Aaron Dodson 14cbb9acba chore: Remove keyboard experimentation CI (#9609) 2026-03-04 13:21:20 -08:00
Maribeth Moffatt 3caee2faf5 chore: improve gh-pages publishing steps (#9604)
* fix: Fix gulpfiles related to publishing GitHub pages

* chore: remove unused gulp tasks

* feat: allow passing a remote to push gh-pages to

* feat: add ability to skip syncing with main

* feat: add gh workflow to publish ghpages

* chore: update node version

---------

Co-authored-by: Aaron Dodson <aaron.dodson@raspberrypi.org>
2026-03-03 20:26:01 +00:00
Aaron Dodson a16580ae26 feat: Add a keyboard shortcut for displaying the contextual menu (#9602)
* feat: Add support for getting the contextual menu

* feat: Add a keyboard shortcut for opening the contextual menu

* test: Add tests for `ContextMenu.getMenu()`.

* test: Add tests for context menu keyboard shortcut

* fix: Fix tests when not run on their own

* chore: Add type annotation
2026-02-26 13:39:56 -08:00
Aaron Dodson 3d78491dd9 fix: Focus nearest neighbor when deleting a focused block (#9599)
* fix: Focus the nearest neighbor on block deletion

* test: Add tests

* fix: Use `strictEqual`

* chore: Reduce the number of test blocks

* fix: Explicitly verify that dying blocks are not focused

* fix: Fix exception when disposing of a workspace with a focused block

* chore: Run formatter
2026-02-26 10:45:35 -08:00
Aaron Dodson 3b14950a36 feat: Add dynamic keycode for primary modifier key (#9571)
* feat: Add dynamic keycode for primary modifier key

* fix: Don't duplicate constants.
2026-02-25 08:51:43 -08:00
Aaron Dodson a5bdaf8b28 release: Bump version to 12.4.1 (#9595) 2026-02-18 12:39:21 -05:00
Aaron Dodson 39c4b589ea release: Bump version number to 12.4.0 (#9594) blockly-v12.4.1 2026-02-18 12:24:17 -05:00
Aaron Dodson 10079df705 fix: Fix running browser tests (#9587)
* fix: Fix running browser tests

* chore: Run lint
2026-02-13 12:33:42 -08:00
Aaron Dodson 2ada188f88 chore: Fix typo in getRelativeToSurfaceXY() (#9586) 2026-02-12 10:22:13 -08:00
Aaron Dodson 87afe3e688 fix: Improve flyout behavior (#9576)
* fix: Don't suppress and re-fire events when dragging blocks from the flyout

* fix: Fix bug that could cause blocks to get bumped when dragging from the flyout

* fix: Fix bug that made it more difficult to drag blocks from scrollable flyouts

* chore: Run formatter

* refactor: Clean up `createBlock`

* fix: Hide chaff at the end of block creation
2026-02-06 08:25:13 -08:00
Aaron Dodson 3acdf5e536 fix: Improve zoom animations (#9584) 2026-02-06 06:45:23 -08:00
Aaron Dodson 4657199ba6 feat: Add support for displaying contextual menus on icons (#9581)
* feat: Add support for displaying contextual menus on icons

* test: Add tests for contextual menus on icons

* fix: Designate `Icon` as implementing `IContextMenu`

* fix: Don't write Typescript in a JS file
2026-01-28 08:48:56 +00:00
Aaron Dodson 65bc2b5f18 refactor: Use IContextMenu to dispatch right clicks (#9580) 2026-01-27 08:55:04 +00:00
Aaron Dodson ca16c85395 fix: Fix bug that caused flyout buttons to retain their active appearance on mobile (#9582) 2026-01-27 08:54:13 +00:00
Aaron Dodson 028363edd0 Merge pull request #9583 from RaspberryPiFoundation/get-gesture
feat: Allow calling `WorkspaceSvg.getGesture()` without passing an event
2026-01-27 00:53:47 -08:00
Aaron Dodson 2ee18d4d6f feat: Allow calling WorkspaceSvg.getGesture() without passing an event 2026-01-26 10:08:53 +00:00
Maribeth Moffatt 2debc4b4e9 chore: update commitlint dependency location (#9578) 2026-01-21 13:19:45 -05:00
Maribeth Moffatt 6bdfac5493 chore: set up blockly to be a monorepo (#9575)
* chore(monorepo): move all blockly files to packages/blockly

* chore(monorepo): add root package.json and update gitignores

* chore(monorepo): update scripts and github workflows

* chore(monorepo): only try the native release for closure compiler

chore: add debug info to build script

chore: update google-closure-compiler

chore: remove debug info
2026-01-20 16:07:02 -05:00
Aaron Dodson c2cb695a8f fix: Annotate potentially blocking event listeners with passivity (#9555)
* fix: Annotate potentially blocking event listeners with passivity

* fix: Improve typings for `options` arg to `bind()`/`conditionalBind()`
2026-01-20 11:20:12 -08:00
Aaron Dodson e4b2f0a746 fix: Make MenuItem methods toggle classes immediately (#9570)
* fix: Make `MenuItem` methods toggle classes immediately

* chore: Add docstring

* fix: Clarify name of `toggleHasCheckbox()`

* fix: Ensure menu items are enabled before highlighting them
2026-01-20 11:19:35 -08:00
Aaron Dodson 7411675a5e fix: Remove references to deprecated variable-related methods (#9572) 2026-01-20 08:16:34 -08:00
Aaron Dodson 8e9b95f2fc fix: Add class to shadow blocks in Geras (#9564)
* fix: Add class to shadow blocks in Geras

* chore: Remove errant logging
2026-01-20 08:14:44 -08:00
Aaron Dodson eb4288219e fix: Fix bug that prevented redoing adding empty block comments (#9568)
* fix: Fix bug that prevented redoing adding empty block comments

* test: Add tests for undoing/redoing adding comments

* test: Add tests for un/redoing adding non-empty comments
2026-01-13 14:52:19 -08:00
Aaron Dodson 43ea4161c0 fix: Don't select shadow blocks on click (#9538)
* fix: Don't select shadow blocks on click

* test: Verify that clicked shadow blocks do not become selected

* chore: Run formatter
2026-01-13 14:23:08 -08:00
joey a4d97c2f18 fix: collapsed warning propagation across siblings (#9566) (#9567) 2026-01-13 08:26:45 -08:00
Aaron Dodson c79273a351 fix: Modernize audio playback (#9560)
* fix: Modernize audio playback

* fix: Fix loading on headless/Node
2026-01-13 08:05:51 -08:00
Aaron Dodson 52d935c815 fix: Fix bug that prevented deleting a variable referenced by two connected blocks (#9563)
* fix: Fix bug that prevented deleting a variable referenced by two connected blocks

* fix: Remove inadvertent .only
2026-01-12 15:57:00 -08:00
Aaron Dodson 5ae74e166f chore: Remove unused scripts (#9561) 2026-01-12 15:56:29 -08:00
Aaron Dodson 9fc05dfe47 fix: Remove more instances of AnyDuringMigration (#9562)
* fix: Remove more instances of `AnyDuringMigration`

* chore: Fix lint
2026-01-12 11:23:18 -08:00
Aaron Dodson 25c6187d88 refactor: Make preconditionFn part of all context menu items (#9558)
* refactor: Make preconditionFn part of all context menu items

* test: Verify separator menu item behavior with precondition functions
2026-01-09 13:59:03 -08:00
Aaron Dodson 497892946b chore: Update repo URLs in messages (#9553)
* chore: Update repo URLs in messages

* Revert "chore: Update repo URLs in messages"

This reverts commit e514c5691a.

* chore: Update repo URLs in base messages
2026-01-08 08:55:48 -08:00
Aaron Dodson 1cee3d1971 chore: Disable macOS keyboard experiment CI (#9554) 2026-01-08 08:17:01 -08:00
Aaron Dodson d331336e66 fix: Display dragged comments and bubbles atop the toolbox (#9552)
* fix: Display dragged comments and bubbles atop the toolbox

* test: Add tests for drag layer behavior
2026-01-08 08:16:41 -08:00
Aaron Dodson 93056bc8ad fix: Fix bug that prevented the first block change event in a flyout from being dispatched (#9539)
* fix: Fix bug that prevented the first block change event in a flyout from being dispatched

* chore: Add test for flyout event listeners
2025-12-23 10:19:28 -08:00
Aaron Dodson b0dc1de0f9 fix: Don't open the toolbox when clicking beneath the categories (#9535)
* fix: Don't open the toolbox when clicking beneath the categories

* chore: Add docstring

* chore: Add test

* chore: Add comment clarifying selection logic
2025-12-23 09:37:03 -08:00
Aaron Dodson f9fb226846 fix: Disable undoing events generated from flyout layout (#9533) 2025-12-22 13:10:57 -08:00
Maribeth Moffatt 65caa9fb7f chore: update readme and other files to remove google refs (#9513)
* chore: update readme and other files to remove google refs

* chore: update info about releases
2025-12-10 16:29:06 -05:00