Commit Graph

9323 Commits

Author SHA1 Message Date
Aaron Dodson 43dfe2e61f Merge pull request #9606 from RaspberryPiFoundation/main
chore: Merge `main` into `v13`
2026-03-02 12:11:51 -08: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 26d035177c chore!: Update supported Node versions (#9600)
* chore!: Update supported Node versions

* fix: Remove references to not-yet-available Node 26

* chore: Revert formatting change
2026-02-26 13:36:33 -08:00
Aaron Dodson 93c29dbe84 Merge pull request #9592 from RaspberryPiFoundation/rollup
chore: Merge `main` into `v13`
2026-02-26 13:25:27 -08:00
Aaron Dodson 589e05d4d1 fix!: Normalize Zelos connection indicators (#9565)
* fix: Normalize Zelos connection indicators

* feat: Add `IPathObject.updateReplacing()`
2026-02-26 11:27:33 -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 5fa493bac1 Merge branch 'main' into v13 2026-02-17 10:44:25 -08: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
Aaron Dodson 1cbf1b3703 Merge pull request #9577 from RaspberryPiFoundation/monorepo13
chore: Merge `main` into `v13` post-monorepo
2026-01-21 10:07:47 -08:00
Aaron Dodson 9e04dedb89 Merge branch 'main' into monorepo13 2026-01-20 15:48:27 -08: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 4c79ea186f refactor!: Deprecate Block.getVars() (#9574)
* refactor!: Deprecate `Block.getVars()`

* fix: Fix import path

* fix: Simplify test assertions
2026-01-20 11:19:50 -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 2678f5845f fix: Use SVG icon assets (#9569) 2026-01-20 08:15:01 -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 01dc838ebb chore(deps): Bump rimraf to v6 (#9557) 2026-01-20 08:14:02 -08:00
Aaron Dodson 43af9ab704 feat!: Use box-sizing: border-box by default (#9556) 2026-01-20 08:13:42 -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 ba329e40e7 fix!: Remove event dependencies on XML (#9536) 2025-12-22 13:21:53 -08:00
Aaron Dodson 1a25a95b04 fix!: Make ISelectable.workspace an instance of WorkspaceSvg (#9534) 2025-12-22 13:11:19 -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
Aaron Dodson 7e03c6e31c chore: Update workflows to reference main instead of develop (#9517)
* chore: Update workflows to reference `main` instead of `develop`

* chore: Remove develop freeze action
2025-12-05 13:31:36 -08:00
Simon Shiki da5e8e68e3 fix: enforce placeholder usage for workspace comment (#9463)
* fix: enforce placeholder usage for workspace comment

Signed-off-by: SimonShiki <sinangentoo@gmail.com>

* fix: lint

Signed-off-by: SimonShiki <sinangentoo@gmail.com>

---------

Signed-off-by: SimonShiki <sinangentoo@gmail.com>
2025-12-05 09:19:52 -08:00