Commit Graph

9392 Commits

Author SHA1 Message Date
Aaron Dodson ca81c9ad05 fix: Improve navigation and movement looping behavior (#9732)
* fix: Default navigation looping to on

* fix: Don't show the unconstrained move hint every time a block is moved to the workspace

* fix: Normalize block movement during drags

* fix: Offset proposed top-level blocks during constrained drags

* fix: Make constrained moves respect the navigator's looping setting

* fix: Fix tests

* chore: Fix docstring

* fix: Show unconstrained move hint only when there are no available connections

* refactor: Use constants
2026-04-20 12:47:30 -07:00
Michael Harvey 16767eaaa2 feat: Screenreader announcements for move mode (#9731)
* feat: Screenreader announcements for move mode

* fix: lint

* fix: update docstrings

* fix: code review changes

* fix: add block id to error
2026-04-20 13:12:02 -04:00
lizschwab 2903ec9f3a fix: Field text hidden from ARIA (#9734) 2026-04-17 15:18:23 -07:00
Aaron Dodson 1de9aa920e fix: Fix bug that caused blocks in flyout to disappear on click in Chrome (#9729) 2026-04-15 09:19:09 -07:00
Aaron Dodson 0e0a516990 fix: Increase contrast of active tree focus ring color (#9726) 2026-04-15 09:18:34 -07:00
Aaron Dodson 743cdd8ff3 fix: Inhibit keyboard navigation shortcuts when the dropdown or widget divs are open (#9724) 2026-04-15 09:17:44 -07:00
Aaron Dodson af9cdea250 chore: Fix import paths (#9723) 2026-04-15 09:15:16 -07:00
Aaron Dodson 0c4ec192ba fix: Fix bug that caused blocks inserted via Enter to not attach (#9699) 2026-04-15 08:29:43 -07:00
Aaron Dodson 91d02eee02 feat: Add basic support for generating ARIA labels and roles for blocks (#9696)
* feat: Add basic support for generating ARIA labels and roles for blocks

* test: Add tests

* chore: Fix lint

* chore: Revert tooling removal of authors

* chore: Adjust casing of method name

* chore: Tweak name of verbosity enum value

* chore: Adjust name of shadow block label method

* chore: Add trailing newline

* chore: Fix method casing

* feat: Add method to retrieve a block's ARIA label

* fix: Fix TSDoc

* chore: Adjust method casing
2026-04-15 08:12:08 -07:00
Aaron Dodson dc2afe3527 fix: Improve accuracy of block navigability detection (#9725) 2026-04-15 08:04:06 -07:00
Aaron Dodson 3b9ed58f71 feat: Add keyboard shortcut for duplicating blocks and workspace comments (#9727)
* feat: Add keyboard shortcut for duplicating blocks and workspace comments

* test: Add tests

* chore: Fix copypasta
2026-04-14 12:47:01 -07:00
Aaron Dodson 4734bf95f0 feat: Add keyboard shortcut to clean up the workspace (#9728)
* feat: Add a keyboard shortcut to clean up the workspace

* test: Add tests
2026-04-14 10:25:32 -07:00
Aaron Dodson 13459a2b53 fix: Fix positioning of move marker on blocks (#9722)
* fix: Fix positioning of move marker on blocks.

* refactor: Move block topline calculation out of loop
2026-04-13 13:24:32 -07:00
Michael Harvey 1478b1f093 chore!: remove unused statuses
This reverts commit 956f049dbd.
2026-04-13 10:51:15 -04:00
lizschwab a61222f727 fix: Add default aria role to svg and group elements (#9697)
* fix: Add default aria role to svg and group elements

* addressed pr feedback
2026-04-10 14:40:42 -07:00
Michael Harvey 956f049dbd Revert "chore: remove unused statuses (#9698)" (#9700)
This reverts commit 229450a1b7.
2026-04-10 16:52:21 -04:00
Michael Harvey 229450a1b7 chore: remove unused statuses (#9698)
* chore: remove unused statuses

* fix: revert removal of valuemax and valuemin
2026-04-10 16:37:51 -04:00
Aaron Dodson c7fd3f339e release: Bump version to 13.0.0-beta.0 (#9693) blockly-v13.0.0-beta.0 2026-04-08 13:29:03 -07:00
Aaron Dodson 41319baf5d feat: Add keyboard shortcut to perform an action on the currently focused element (#9673)
* feat: Add keyboard shortcut to perform an action on the currently focused element

* test: Add tests

* chore: Add example of shortcut formats

* fix: Don't show toast if shortcut doesn't exist

* chore: Clarify use of Zelos in tests

* fix: Skip help hint toast until shortcut is added
2026-04-08 13:14:04 -07:00
Michael Harvey 5bc04b6435 chore: add example to JSDoc for getAriaValue (#9692) 2026-04-08 16:12:00 -04:00
Maribeth Moffatt 4163db8505 chore: merge main into v13
chore: merge main into v13
2026-04-08 12:12:43 -04:00
Michael Harvey b4d21b2f94 feat: aria utility additions / improvements (#9690) 2026-04-08 14:38:20 +00:00
Michael Harvey 9d5307cc37 feat: Add aria APIs to Field base class (#9683)
* feat: Add aria APIs to Field base class

* fix: no underscores in new code
2026-04-08 10:00:36 -04:00
Aaron Dodson cb0d1c96ce fix: Fix navigation between toolbox and flyout in all layouts (#9681)
* fix: Fix navigation between toolbox and flyout in all layouts

* test: Add tests
2026-04-07 14:11:38 -07:00
Aaron Dodson b665711646 chore: Remove the build size check from npm run test (#9689) 2026-04-07 14:04:07 -07:00
Maribeth Moffatt cdcdaf3286 chore: add ability to publish prereleases (#9687)
* chore: add ability to publish prereleases

* chore: error if release version is not valid
2026-04-07 16:59:00 -04:00
lizschwab 61583fff31 fix: add group when cutting workspace comments (#9680)
* fix: add group when cutting workspace comments

* Update shortcut_items.ts

* added check for group to the cut workspace comment unit test
2026-04-07 13:50:28 -07:00
Michael Harvey b49fe1ec7d feat: i shortcut on workspace gives overview (#9677)
* feat: i shortcut on workspace gives overview

* fix: code review changes
2026-04-06 16:54:11 -04:00
Michael Harvey 34c265fcf8 feat!: announce toasts via shared ARIA live region (#9672)
* feat: announce toasts via shared ARIA live region

* chore: add extra space
2026-04-03 09:06:11 -04:00
Aaron Dodson 3389f87cee feat: Add keyboard shortcuts to navigate between stacks (#9678)
* feat: Add keyboard shortcuts to navigate between stacks

* test: Add tests for stack jumping shortcuts

* chore: Clarify logic

* test: Add additional tests for no-op stack navigation
2026-04-02 12:26:52 -07:00
Aaron Dodson dc4d751b93 fix: Display focus rings on flyout buttons and labels (#9679) 2026-04-02 12:08:15 -07:00
Heliacer 0bdae1497b feat: Add a JSON Block definition interface (#9613) 2026-04-02 14:16:54 -04:00
Aaron Dodson 43be0edf5d fix!: Fix types on BlockSvg connections (#9669) 2026-04-02 11:01:29 -07:00
Maribeth Moffatt 0efc502ad5 chore: add copilot instructions for code reviews (#9676) 2026-04-02 11:44:25 -04:00
Aaron Dodson 15a4d5050e Merge pull request #9675 from RaspberryPiFoundation/merger
chore: Merge `main` into `v13`
2026-04-01 12:51:32 -07:00
Aaron Dodson f454e1b317 chore: Bump closure to the latest version 2026-04-01 12:49:20 -07:00
Aaron Dodson 5b79a29b7c feat: Update CSS for keyboard navigation (#9674) 2026-04-01 12:34:07 -07:00
Aaron Dodson ba0f9b2836 Merge branch 'main' into merger 2026-04-01 09:37:30 -07:00
Aaron Dodson 05af6b6711 feat!: Add support for keyboard navigation (#9634)
* refactor!: Merge `Marker`, `LineCursor` and `Navigator`

* refactor!: Use the Navigator to traverse the toolbox and flyout.

* feat: Register keyboard shortcuts for navigation

* test: Fix and add tests

* chore: Export `ToolboxNavigator`

* chore: Make the linter happy

* chore: Reorganize files

* chore: Fix docstrings

* chore: Fix variable names

* fix: Focus the flyout on T for simple toolboxes

* test: Add tests for focus toolbox shortcut

* refactor: Remove `WorkspaceSvg.keyboardAccessibilityMode`

* refactor: Simplify navigation logic

* fix: Fix tests

* chore: Normalize imports

* fix: Fix bad merge resolution

* fix: Fix docstrings

* fix: Fix navigation down on blocks with a statement input and no next connection

* fix: Be more defensive about navigating to connections

* fix: Use FlyoutButton IDs as row IDs
2026-04-01 08:14:12 -07:00
Michael Harvey 3fb96e4ecd feat: aria live region for announcements (#9653)
* feat: aria live region for announcements

* fix: code review and add tests

* fix: better suite name

* chore: remove unused function

* fix: code review changes

* chore: add back ability to remove role
2026-04-01 10:23:45 -04:00
Aaron Dodson 5d304df504 chore: Remove the keyboard-navigation plugin from the advanced playground (#9670) 2026-03-31 12:15:11 -07:00
Michael Harvey 1ad060819e feat: Stop on workspace during constrained move (#9649) 2026-03-27 09:41:39 -04:00
Rachel Fenichel 5dedd85872 chore: remove unused gulp helpers (#9651)
* chore: remove unused dev dependency gulp-insert

* chore: remove unused dev dependency gulp-series

* chore: remove unused dev dependency gulp-shell
2026-03-25 15:30:40 +00:00
Aaron Dodson 6059d1f5fc feat: Add keyboard shortcut for disconnecting the selected block (#9650) 2026-03-24 08:13:04 -07:00
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
Mike Harvey 8e6798a094 fix: visit all connection candidates in move mode (#9641)
* fix: visit all connection candidates in move mode

* fix: remove unused parameters from doc

* fix: correct findTraversalCandidate doc

* chore: simplify instance variables

* fix: remove unreachable return
2026-03-20 11:24:58 -04: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