Releases: RaspberryPiFoundation/blockly
blockly-v12.5.1
blockly-v12.5.0
What's Changed
New features ✨
- feat: Add dynamic keycode for primary modifier key by @gonfunko in #9571
- feat: Add a keyboard shortcut for displaying the contextual menu by @gonfunko in #9602
Bug fixes 🐛
- fix: Focus nearest neighbor when deleting a focused block by @gonfunko in #9599
- fix: Fix a bug that could cause menus to scroll incorrectly on mouseover by @gonfunko in #9603
- fix: Remove unsafe non-null assertions by @gonfunko in #9598
- fix: Fix bug that caused blocks to become disconnected when undoing deletions by @gonfunko in #9636
Other changes
Full Changelog: blockly-v12.4.1...blockly-v12.5.0
blockly-v12.4.1
Hello Block Builders! This release is a rollup release of some goodies that we've been working on to improve stability and reduce bugs.
Please note that v12.4.0 release contains the unbuilt files (sorry about that) so v12.4.1 should be the release used for this version.
What's Changed
New features ✨
- feat: make FlyoutButton.callbackKey public by @maribethb in #9381
- feat: Allow calling
WorkspaceSvg.getGesture()without passing an event by @gonfunko in #9583 - feat: Add support for displaying contextual menus on icons by @gonfunko in #9581
Bug fixes 🐛
- fix: 8945 (#8945) by @tashee in #9393
- fix(ci): pass PR title to commitlint via environment variable by @AdnaneKhan in #9414
- fix: Add support for icons to
getSourceBlockFromNode(). by @gonfunko in #9438 - fix: Make the 'welcome new contributors' workflow run again by @BenHenning in #9448
- fix: improve file path handling in theme generator script by @mmvarma-pro in #9426
- fix: Failing
npm ciin GitHub CI actions by @BenHenning in #9476 - fix: navigation in dropdown menu with a separator by @microbit-robert in #9474
- fix: enforce placeholder usage for workspace comment by @SimonShiki in #9463
- fix: Disable undoing events generated from flyout layout by @gonfunko in #9533
- fix: Don't open the toolbox when clicking beneath the categories by @gonfunko in #9535
- fix: Fix bug that prevented the first block change event in a flyout from being dispatched by @gonfunko in #9539
- fix: Display dragged comments and bubbles atop the toolbox by @gonfunko in #9552
- fix: Remove more instances of
AnyDuringMigrationby @gonfunko in #9562 - fix: Fix bug that prevented deleting a variable referenced by two connected blocks by @gonfunko in #9563
- fix: Modernize audio playback by @gonfunko in #9560
- fix: collapsed warning propagation across siblings (#9566) by @goughjo02 in #9567
- fix: Don't select shadow blocks on click by @gonfunko in #9538
- fix: Fix bug that prevented redoing adding empty block comments by @gonfunko in #9568
- fix: Add class to shadow blocks in Geras by @gonfunko in #9564
- fix: Remove references to deprecated variable-related methods by @gonfunko in #9572
- fix: Make
MenuItemmethods toggle classes immediately by @gonfunko in #9570 - fix: Annotate potentially blocking event listeners with passivity by @gonfunko in #9555
- fix: Fix bug that caused flyout buttons to retain their active appearance on mobile by @gonfunko in #9582
- fix: Improve zoom animations by @gonfunko in #9584
- fix: Improve flyout behavior by @gonfunko in #9576
- fix: Fix running browser tests by @gonfunko in #9587
Cleanup ♻️
- refactor(VariableMap): Stop using deprecated wrapper methods by @tashee in #9340
- docs: vectorize README.md sample image by @jacobleclair in #9432
- refactor: Make
preconditionFnpart of all context menu items by @gonfunko in #9558 - refactor: Use
IContextMenuto dispatch right clicks by @gonfunko in #9580
Other changes
- release: merge master into develop following v12.3.1 by @maribethb in #9380
- Update bug_report.yaml by @sappm01 in #9358
- release: Bump version number to 12.4 by @gonfunko in #9594
New Contributors
- @tashee made their first contribution in #9340
- @sappm01 made their first contribution in #9358
- @AdnaneKhan made their first contribution in #9414
- @jacobleclair made their first contribution in #9432
- @mmvarma-pro made their first contribution in #9426
- @SimonShiki made their first contribution in #9463
- @goughjo02 made their first contribution in #9567
Full Changelog: blockly-v12.3.1...blockly-v12.4.1
archiving the master branch
This tag serves to commemorate the final commits on the master branch. After this, we will no longer update the master branch. To get the latest released code, please use the latest release on npm or GitHub.
The master branch may be deleted in the future. Please update any references to it to use main instead.
blockly-v12.3.1
What's Changed
Bug fixes 🐛
- fix: pointercancel event is not handled by @nianxy in #9250 (reverted + fixed in #9373)
- fix: Fix positioning of pasted blocks and comments in RTL. by @gonfunko in #9302
- fix: Show the delete cursor when dragging a block by an editable field. by @gonfunko in #9326
- fix: Correct the alignment of narrow text in input fields. by @gonfunko in #9327
- fix: Fix bug that caused inadvertent scrolling when the
WidgetDivwas shown. by @gonfunko in #9291 - fix: Allow reregistering fields. by @gonfunko in #9290
- fix: Prevent mocha tests failures when window does not have focus. by @gonfunko in #9332
- fix: Fix bug that could cause errant line when rendering. by @gonfunko in #9333
- fix: Fix bug that could caused variable map to be left in an inconsistent state. by @gonfunko in #9339
- fix: Allow cross origin requests for Blockly assets. by @gonfunko in #9342
- fix: minor fixes to translation files by @maribethb in #9350
- fix: handle pointercancel only for in-progress gestures by @maribethb in #9373
Cleanup ♻️
- refactor: Make focusable elements responsible for scrolling themselves into bounds. by @gonfunko in #9288
New Contributors
Full Changelog: blockly-v12.3.0...blockly-v12.3.1
blockly-v12.3.0
What's Changed
New features ✨
- feat: Add support for keyboard navigation to/from block comments. by @gonfunko in #9227
- feat: Add an option to copy subsequent blocks when getting copy data from a block. by @gonfunko in #9279
Bug fixes 🐛
- fix: Focus the first element in flyouts. by @gonfunko in #9228
- fix: Fire a
VarTypeChangeevent when changing a variable's type. by @gonfunko in #9236 - fix: Fix order of arguments in
IVariableMap.createVariable(). by @gonfunko in #9231 - fix: Fix toolbox categories tests by @RoboErikG in #9238
- fix: Refer to correct replacement method in deprecation warning. by @gonfunko in #9237
- fix: Make non-autoclosing flyouts stay open. by @gonfunko in #9245
- fix: Fix displaying HTML elements in
FieldDropdown. by @gonfunko in #9258 - fix: dont save ids when copying blocks and comments by @maribethb in #9255
- fix: Allow overriding
VariableModelviaoptions.plugins. by @gonfunko in #9257 - fix: Scroll
CommentBarButtons into view on selection. by @gonfunko in #9259 - fix: Check for existing event group in cleanUp() by @michaela-mm in #9265
- fix: dont add comments to full block fields by @maribethb in #9263
- fix: Display focused icons without transparency. by @gonfunko in #9268
- fix: Drag immovable and shadow blocks along with their parent. by @gonfunko in #9281
- fix: Update dependencies and schedule browser tests to run weekly on Mondays by @RoboErikG in #9297
Cleanup ♻️
- refactor: Make
InsertionMarkerPreviewer's block serialization amenable to subclassing. by @gonfunko in #9282 - refactor: Associate comment bar buttons with the comment view. by @gonfunko in #9278
- refactor: Remove duplicated method from contextmenu_items.ts. by @gonfunko in #9289
Other changes
- release: merge master into develop after v12.2.0 by @maribethb in #9225
- release: Merge
rc/v12.3.0intomaster. by @gonfunko in #9335
Full Changelog: blockly-v12.2.0...blockly-v12.3.0
blockly-v12.3.0-beta.0
What's Changed
New features ✨
- feat: Add support for keyboard navigation to/from block comments. by @gonfunko in #9227
- feat: Add an option to copy subsequent blocks when getting copy data from a block. by @gonfunko in #9279
Bug fixes 🐛
- fix: Focus the first element in flyouts. by @gonfunko in #9228
- fix: Fire a
VarTypeChangeevent when changing a variable's type. by @gonfunko in #9236 - fix: Fix order of arguments in
IVariableMap.createVariable(). by @gonfunko in #9231 - fix: Fix toolbox categories tests by @RoboErikG in #9238
- fix: Refer to correct replacement method in deprecation warning. by @gonfunko in #9237
- fix: Make non-autoclosing flyouts stay open. by @gonfunko in #9245
- fix: Fix displaying HTML elements in
FieldDropdown. by @gonfunko in #9258 - fix: dont save ids when copying blocks and comments by @maribethb in #9255
- fix: Allow overriding
VariableModelviaoptions.plugins. by @gonfunko in #9257 - fix: Scroll
CommentBarButtons into view on selection. by @gonfunko in #9259 - fix: Check for existing event group in cleanUp() by @michaela-mm in #9265
- fix: dont add comments to full block fields by @maribethb in #9263
- fix: Display focused icons without transparency. by @gonfunko in #9268
- fix: Drag immovable and shadow blocks along with their parent. by @gonfunko in #9281
- fix: Update dependencies and schedule browser tests to run weekly on Mondays by @RoboErikG in #9297
Cleanup ♻️
- refactor: Make
InsertionMarkerPreviewer's block serialization amenable to subclassing. by @gonfunko in #9282 - refactor: Associate comment bar buttons with the comment view. by @gonfunko in #9278
- refactor: Remove duplicated method from contextmenu_items.ts. by @gonfunko in #9289
Other changes
- release: merge master into develop after v12.2.0 by @maribethb in #9225
Full Changelog: blockly-v12.2.0...blockly-v12.3.0-beta.0
blockly-v12.2.0
The latest version of Blockly includes new features and bug fixes for the keyboard navigation experience. Please also check out the @blockly/keyboard-navigation plugin at v2.0.0 which accompanies this release of Blockly.
What's Changed
New features ✨
- feat: Add support for keyboard navigation into mutator workspaces. by @gonfunko in #9151
- feat: Run keyboard plugin tests in CI by @BenHenning in #9135
- feat: make comment editor separately focusable from comment itself by @maribethb in #9154
- feat: Add support for keyboard navigation in/to workspace comments. by @gonfunko in #9182
- feat: add copy api and paste into correct workspace by @maribethb in #9215
Bug fixes 🐛
- fix: Fix navigation for blocks with multiple statement inputs. by @gonfunko in #9143
- fix: Add isCopyable to the ICopyable interface and use it by @RoboErikG in #9134
- fix: Dispatch keyboard events with the workspace they occurred on. by @gonfunko in #9137
- fix: caret position when editing block comments by @maribethb in #9153
- fix: tweak redo shortcut order to match convention by @microbit-matt-hillsdon in #9169
- fix: clear touch identifier on comment text area pointerdown by @riknoll in #9172
- fix: Fix loss of focus when un/redoing block deletions or moves. by @gonfunko in #9195
- fix: Short-circuit node lookups for missing IDs by @BenHenning in #9174
- fix: Ensure focus changes when tabbing fields by @BenHenning in #9173
fix: Auto close drop-down divs on lost focus by @BenHenning in #9175(reverted)- fix: check for a drag specifically rather than a gesture for shortcuts by @maribethb in #9194
- fix: Improve workspace comment keyboard navigation behavior. by @gonfunko in #9211
fix: Auto close drop-down divs on lost focus (reapply) by @BenHenning in #9213(reverted)- fix: Prevent loss of focus when deleting a workspace comment. by @gonfunko in #9200
- fix: Fix more browser tests by @RoboErikG in #9183
fix: Auto-close widget divs on lost focus by @BenHenning in #9216(reverted)
Cleanup ♻️
- refactor: Make the cursor use the focus manager for tracking the current node. by @gonfunko in #9142
- refactor(interfaces): Make type predicates more robust by @cpcallen in #9150
- refactor(CSS): move
box-sizingfrom keyboard nav plugin tocore/css.tsby @cpcallen in #9201 - refactor: Ensure that the workspace cursor is never null. by @gonfunko in #9210
Reverted changes ⎌
- revert: "fix: Auto close drop-down divs on lost focus" by @cpcallen in #9204
-
- fix: Revert drop down and widget div PRs by @BenHenning in #9222
Full Changelog: blockly-v12.1.0...blockly-v12.2.0
blockly-v12.1.0
This release contains bug fixes and new features for use with @blockly/keyboard-navigation. Learn more on our accessibility site!
What's Changed
New features ✨
- feat: Add keyboard navigation support for icons. by @gonfunko in #9072
- feat: Add more ephemeral overrides for drop-downs. by @BenHenning in #9086
- feat: Paste where context menu was opened by @johnnesky in #9093
- feat: Allow visiting empty input connections. by @gonfunko in #9104
- feat: Automatically manage focus tree tab indexes by @BenHenning in #9079
- feat: add keyboard navigation controller by @maribethb in #8924
- feat: ephemeral focus public getter, use in shortcut precondition by @maribethb in #9110
Bug fixes 🐛
- fix: Ensure
FieldImageis clickable when appropriate by @BenHenning in #9063 - fix: When moving to a field, scroll the field's block into view by @RoboErikG in #9071
- fix: Skip hidden fields when navigating by @RoboErikG in #9070
- fix: Limit
LineCursor& focus syncing by @BenHenning in #9062 - fix: Fix browser tests PART 1 by @RoboErikG in #9064
- fix: focus something after deleting a block by @maribethb in #9073
- fix: focus after drag and deleting comments by @maribethb in #9074
- fix: Visit all nodes in getNextSibling and getPreviousSibling by @RoboErikG in #9080
- fix: Update
focusNodeto self correct focus by @BenHenning in #9082 - fix: Don't visit collapsed blocks by @RoboErikG in #9090
- fix: Fix bug that prevented using keyboard shortcuts when the DropDownDiv is open. by @gonfunko in #9085
- fix: Tweak outline CSS for Safari/Firefox by @microbit-matt-hillsdon in #9100
- fix: Skip invisible inputs in the field navigation policy by @RoboErikG in #9092
- fix: Copy shortcuts before returning them. by @gonfunko in #9109
- fix: Make cut/copy/paste work consistently and as expected by @RoboErikG in #9107
- fix: context menus on flyout by @maribethb in #9116
- fix: Fix bug that caused the focus manager to attempt to focus unfocusable elements. by @gonfunko in #9117
Cleanup ♻️
Other changes
- release: merge develop into v12.1.0 by @maribethb in #9118
New Contributors
- @microbit-matt-hillsdon made their first contribution in #9100
Full Changelog: blockly-v12.0.0...blockly-v12.1.0
blockly-v12.0.1-beta.1
What's Changed
New features ✨
- feat: Add keyboard navigation support for icons. by @gonfunko in #9072
- feat: Add more ephemeral overrides for drop-downs. by @BenHenning in #9086
Bug fixes 🐛
- fix: Ensure
FieldImageis clickable when appropriate by @BenHenning in #9063 - fix: When moving to a field, scroll the field's block into view by @RoboErikG in #9071
- fix: Skip hidden fields when navigating by @RoboErikG in #9070
- fix: Limit
LineCursor& focus syncing by @BenHenning in #9062 - fix: Fix browser tests PART 1 by @RoboErikG in #9064
- fix: focus something after deleting a block by @maribethb in #9073
- fix: focus after drag and deleting comments by @maribethb in #9074
- fix: Visit all nodes in getNextSibling and getPreviousSibling by @RoboErikG in #9080
- fix: Update
focusNodeto self correct focus by @BenHenning in #9082
Full Changelog: blockly-v12.0.0...blockly-v12.0.1-beta.1