Releases: google/blockly
Releases Β· google/blockly
blockly-v11.2.2
What's Changed
New features β¨
Bug fixes π
- fix: treat media files as binary while packaging them by @jfedor2 in #8706
- fix: Fix serialization of the lists_split block. by @gonfunko in #8702
- fix: Paste blocks copied from a mutator into the mutator. by @gonfunko in #8719
- fix: Disallow adding comments to mutator workspaces. by @gonfunko in #8720
- fix: Reposition the trashcan's flyout in response to workspace changes. by @gonfunko in #8721
- fix: Fix bug that preventing scrolling menu items into view. by @gonfunko in #8726
- fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. by @gonfunko in #8731
- fix: Fix display of multiline RTL strings in bubbles on Webkit. by @gonfunko in #8733
- fix: Fix the browser tests. by @gonfunko in #8735
- fix: Actually fix the browser tests. by @gonfunko in #8736
- fix: Improve the robustness of workspace SVG tests. by @BenHenning in #8689
- fix: Fix flaky connection checker test. by @gonfunko in #8754
- fix: Improve menu mouse/keyboard selection interaction. by @gonfunko in #8749
- fix: Fix menu scrolling. by @gonfunko in #8765
- fix: Allow dragging blocks from the far lower right corner. by @gonfunko in #8766
- fix: Fix bug that prevented editing workspace comments on Firefox. by @gonfunko in #8779
- fix: Fix bug in IF block generators. by @michaela-mm in #8780
- fix: Fix a bug where selection outlines could be cut off when connecting blocks. by @gonfunko in #8789
- fix: Fix dropdown text color in Zelos by @clementcontet in #8741
- fix: #8194 by using a stepped animation for the wiggle by @RoboErikG in #8743
New Contributors
- @jfedor2 made their first contribution in #8706
- @michaela-mm made their first contribution in #8780
Full Changelog: blockly-v11.2.1...blockly-v11.2.2
blockly-v12.0.0-beta.2
What's Changed
Breaking changes π
- fix!: Don't add padding around zero-width fields. by @gonfunko in #8738
- feat!: Added support for separators in menus. by @gonfunko in #8767
New features β¨
- feat: Add support for toggling readonly mode. by @gonfunko in #8750
- feat: Add interfaces for focus management by @BenHenning in #8774
Bug fixes π
- fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. by @gonfunko in #8731
- fix: Fix display of multiline RTL strings in bubbles on Webkit. by @gonfunko in #8733
- fix: Fix the browser tests. by @gonfunko in #8735
- fix: Actually fix the browser tests. by @gonfunko in #8736
- fix: Improve the robustness of workspace SVG tests. by @BenHenning in #8689
- fix: Fix flaky connection checker test. by @gonfunko in #8754
- fix: Fix bug that caused blocks dragged from non-primary flyouts to be misplaced. by @gonfunko in #8753
- fix: Improve menu mouse/keyboard selection interaction. by @gonfunko in #8749
- fix: Fix menu scrolling. by @gonfunko in #8765
- fix: Allow dragging blocks from the far lower right corner. by @gonfunko in #8766
- fix: Fixes #8764 by moving the event grouping calls up to dragger.ts by @RoboErikG in #8781
- fix: Fix bug that prevented editing workspace comments on Firefox. by @gonfunko in #8779
- fix: Fix bug in IF block generators. by @michaela-mm in #8780
- fix: Disallow and ignore x and y attributes for blocks in toolbox definitions. by @gonfunko in #8785
- fix: Fix a bug where selection outlines could be cut off when connecting blocks. by @gonfunko in #8789
- fix: Allow the marker's current node to be null. by @gonfunko in #8802
Cleanup β»οΈ
Other changes
- release: v11.2.1 by @gonfunko in #8734
- Fix: Fix dropdown text color in Zelos by @clementcontet in #8741
- Fix: #8194 by using a stepped animation for the wiggle by @RoboErikG in #8743
- Revert "fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover" by @gonfunko in #8800
- chore: Merge develop into rc/v12.0.0 by @gonfunko in #8798
New Contributors
- @michaela-mm made their first contribution in #8780
Full Changelog: blockly-v12.0.0-beta.1...blockly-v12.0.0-beta.2
blockly-v11.2.1
What's Changed
Bug fixes π
- fix: treat media files as binary while packaging them by @jfedor2 in #8706
- fix: Fix bug that preventing scrolling menu items into view. by @gonfunko in #8726
- fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. by @gonfunko in #8731
- fix: Fix the browser tests. by @gonfunko in #8735
Other changes
Full Changelog: blockly-v11.2.0...blockly-v11.2.1
blockly-v12.0.0-beta.1
What's Changed
Breaking changes π
New features β¨
- feat: Warn if a variable category is loaded without variable blocks. by @gonfunko in #8704
- feat: Add a generator for all fields on a block. by @gonfunko in #8667
- feat: Add a BlockSvg.getStyle() method. by @gonfunko in #8722
Bug fixes π
- fix: treat media files as binary while packaging them by @jfedor2 in #8706
- fix: Fix unsafe cast in Input.setVisible(). by @gonfunko in #8695
- fix: Fix serialization of the lists_split block. by @gonfunko in #8702
- fix: Paste blocks copied from a mutator into the mutator. by @gonfunko in #8719
- fix: Disallow adding comments to mutator workspaces. by @gonfunko in #8720
- fix: Reposition the trashcan's flyout in response to workspace changes. by @gonfunko in #8721
- fix: Don't create intermediate variables when renaming a procedure argument. by @gonfunko in #8723
- fix: Fix bug that prevented keyboard navigation in flyouts. by @gonfunko in #8687
- fix: Fix bug that preventing scrolling menu items into view. by @gonfunko in #8726
Cleanup β»οΈ
- refactor: Reenable workspace resizing after reflowing flyouts. by @gonfunko in #8683
- refactor: Convert renderer typecheck methods to typeguards. by @gonfunko in #8656
Other changes
New Contributors
Full Changelog: blockly-v12.0.0-beta.0...blockly-v12.0.0-beta.1
blockly-v11.2.0
What's Changed
New features β¨
- feat(scripts): Create script to help with CJS -> ESM migration by @cpcallen in #8197
- feat: add legacy warning to block factory by @maribethb in #8234
- feat: allow fetching block bounds not including children. by @gonfunko in #8284
- feat: expose
bringToFront()
method by @UCYT5040 in #8472 - feat: mark some marker_svg properties protected instead of private by @rachel-fenichel in #8558
Bug fixes π
- fix: change which element keydown is bound to from document to injection div by @mark-friedman in #8188
- fix: statement input blocks disappearing by @BeksOmega in #8203
- fix(dev-tools): only initSvg on rendered blocks by @maribethb in #8215
- fix: Drag and Resize events for workspace comments by @johnnesky in #8217
- fix: correctly report the pre-resize-drag size to workspace comment size change listeners by @gonfunko in #8240
- fix: export the layer constants. by @gonfunko in #8256
- fix: use the correct with in getBoundingRectangleWithoutChildren(). by @gonfunko in #8298
- fix: added id to rendered ws comments; made getCommentById public; ad⦠by @changminbark in #8358
- fix: Enable blocks if user can't manually enable them. by @johnnesky in #8354
- fix: drag strategy only clear group id set by us by @HollowMan6 in #8355
- fix: Codify component weights with toolbox in front of flyouts. by @johnnesky in #8432
- fix: comments and bubbles on click by @UCYT5040 in #8451
- fix: Update dev-tools, remove toolbox category tests Colour and Angles by @johnnesky in #8457
- fix(touch): prevent infinite loop on multi-touch drag by @AbhinavKRN in #8470
- fix: Let workspace comment have delete cursor over trash. by @johnnesky in #8477
- fix: Detect if deleting shadow block affects selection highlight by @johnnesky in #8533
- fix(events): Simplify
filter
function, add newenqueueEvent
function by @cpcallen in #8539 - fix(comments): added workspace comments and comment drag strategy isDeadOrDying() checks (for multiselect plugin) by @changminbark in #8532
- fix: Ensure immovable blocks are considered during workspace tidying by @BenHenning in #8550
- fix: Factor out workspace drag methods into utils. by @johnnesky in #8566
- fix: Simplify list and text WHERE validation by @johnnesky in #8575
- fix: Group field validator changes with field value changes. by @johnnesky in #8589
- fix: Let old block factory overwrite user defined blocks. by @johnnesky in #8605
- fix: bump initiator group in an orthogonal direction from neighboring group by @johnnesky in #8613
- fix: clear touch identifier on comment icon down by @riknoll in #8627
- fix: Use a readonly textarea for non-editable comments. by @gonfunko in #8632
- fix: Fix crash when resizing page while editing a field. by @gonfunko in #8646
- fix: Fix bug that caused comments to be incorrectly positioned. by @gonfunko in #8668
- fix: Disable newly created function call blocks when the corresponding definition is disabled. by @gonfunko in #8665
- fix: Fix bug that caused text to be selected when long-pressing in the workspace on a touch device. by @gonfunko in #8670
- fix: typo in comment by @winnchen in #8685
- fix: workspace shifts when deleting a block by @mateusslezinsky in #8666
Cleanup β»οΈ
- docs(blocks):
block.ts
andblocks/*
JSDoc / formatting / etc. cleanup by @cpcallen in #8431 - refactor(events): introduce
EventType
enum in separate module by @cpcallen in #8530 - refactor(events): Don't filter events before undo by @cpcallen in #8537
- refactor(events): Introduce and use event type predicates by @cpcallen in #8538
- refactor: Use arrow functions when calling
Array.prototype.filter
by @cpcallen in #8557 - refactor: Omit unused exception arguments from
catch
blocks by @cpcallen in #8559 - refactor(shortcuts): Improve shortcut registry documentation & style by @cpcallen in #8598
- refactor: Move functions into FieldDropdown. by @gonfunko in #8634
Other changes
- Revert "chore: Pin node.js v22 to v22.4.1 in CI" by @BeksOmega in #8398
- release: v11.2.0 by @gonfunko in #8700
New Contributors
- @changminbark made their first contribution in #8358
- @AbhinavKRN made their first contribution in #8470
- @abhinavjha0239 made their first contribution in #8478
- @BenHenning made their first contribution in #8550
- @winnchen made their first contribution in #8685
- @mateusslezinsky made their first contribution in #8666
Full Changelog: blockly-v11.1.1...blockly-v11.2.0
blockly-v12.0.0-beta.0
What's Changed
Breaking changes π
- feat!: Add support for preserving block comment locations. by @gonfunko in #8231
- fix!: rename the blockly icon CSS classes to use camelCase (#8329) by @ga-fleury in #8335
- fix!: Make
IPathObject
styling methods optional by @shashwatpathak98 in #8332 - fix!: Rename
blocklyTreeRow
andblocklyToolboxCategory
CSS classes by @Abhinav-Chdhary in #8357 - fix!: renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon #8347 by @krishchvn in #8367
- fix!: Replace Closure UI CSS classes with Blockly CSS classes by @Arun-cn in #8339
- fix!: rename
blocklyToolboxContents
toblocklyToolboxCategoryGroup
by @ruthwikchikoti in #8384 - refactor!: Use IVariableMap instead of VariableMap by @gonfunko in #8401
- fix!: Rename editing CSS class to blocklyEditing (#8287) by @ga-fleury in #8301
- fix!: use
:focus
pseudo class instead ofblocklyFocused
by @Skye967 in #8360 - fix!: Redundant blockly non selectable #8328 by @dakshkanaujia in #8433
- fix!: Rename blocklyTreeIconOpen to
blocklyToolboxCategoryIconOpen
by @UtkershBasnet in #8440 - fix!: Renamed the blocklyTreeSelected CSS class to blocklyToolboxSelected by @omwagh28 in #8459
- fix!: deleted styles without associated classes from css.ts, issue #8285 by @aishwaryavenkatesan in #8465
- feat!: change blocklyEditableText to blocklyEditableField and blocklyNonEditableText to blocklyNonEditableField by @Adityajaiswal03 in #8475
- fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover by @Arun-cn in #8536
- refactor!: Update flyouts to use inflaters. by @gonfunko in #8601
- refactor!: Remove the InsertionMarkerManager. by @gonfunko in #8649
- refactor!: Improve ability to use CSS to style Blockly. by @gonfunko in #8647
- feat!: Use CSS to specify field cursors. by @gonfunko in #8648
- refactor!: Use one map for toolbox contents. by @gonfunko in #8654
- refactor!: Add setSelectedItem() to IToolbox. by @gonfunko in #8650
New features β¨
- feat: Add blocklyField to field's SVG Group by @nullHawk in #8334
- feat: Add a blocklyFieldText CSS class to fields' text elements (#8291) by @ga-fleury in #8302
- feat: Add a
blocklyVariableField
CSS class to variable fields by @shashwatpathak98 in #8359 - feat: add the IVariableMap and IVariableModel interfaces. by @gonfunko in #8369
- feat: Add a blocklyTextBubble CSS class to the text bubble #8331 by @Nirmalkumar6112 in #8333
- feat: Add a blocklyShadow class by @devesh-2002 in #8336
- feat: Added blocklyTrashcanFlyout CSS class by @ChaitanyaYeole02 in #8372
- feat: Add css classes from json block definitions by @ishon19 in #8377
- feat: Add blocklyToolboxFlyout CSS class to the flyout by @nullHawk in #8386
- feat: Add a blocklyCollapsed CSS class to collapsed blocks' root SVG (#8264) by @ga-fleury in #8308
- feat: Add a blocklyBlock CSS class to the block's root SVG by @ChaitanyaYeole02 in #8397
- feat: add
blocklyMiniWorkspaceBubble
css class by @ishon19 in #8390 - feat: Add a blocklyNotEditable CSS class to the block's root SVG by @dianaPrahoveanu-SL in #8391
- feat: Add a VarTypeChange event. by @gonfunko in #8402
- feat: added
blocklyNotDetetable
class to block_svg by @Shreshthaaa in #8406 - feat: add the block's type as a CSS class to the block's root SVG by @CodeMaverick2 in #8428
- feat: add
blocklyLabelField
css class to label field by @surajguduru in #8423 - feat: Add a blocklyNumberField CSS class to number fields by @Apocalypse96 in #8414
- feat: add a method for subclasses of FieldVariable to get the default type. by @gonfunko in #8453
- feat: added block's style as a CSS class to block's root SVG by @Shreshthaaa in #8436
- feat: implement
WorkspaceSvg
class manipulation by @UCYT5040 in #8473 - feat: added
blocklyHighlighted
CSS class to highlighted block's root⦠by @Shreshthaaa in #8407 - feat: Add the IFlyoutInflater interface. by @gonfunko in #8581
- feat: Add inflaters for flyout labels and buttons. by @gonfunko in #8593
- feat: Add support for inflating flyout separators. by @gonfunko in #8592
- feat: Add a BlockFlyoutInflater class. by @gonfunko in #8591
- feat: Allow specifying the placeholder text of workspace comments. by @gonfunko in #8608
- feat: Allow specifying the default size of comments. by @gonfunko in #8618
- feat: Allow customizing GRID_UNIT for the Zelos renderer. by @gonfunko in #8636
Bug fixes π
- fix: Remove references to getFastTextWidth (#8277) by @ga-fleury in #8307
- fix: improve prompting when deleting variables by @gonfunko in #8529
- fix: display the correct variable reference count when deleting a variable. by @gonfunko in #8549
- fix: improve flyout performance by @gonfunko in #8571
- fix: size text with computed styles even when hidden by @gonfunko in #8572
- fix: include potential variables in variable dropdowns in the flyout by @gonfunko in #8574
- fix: Fix bug that prevented dismissing the widgetdiv in a mutator workspace. by @gonfunko in #8600
- fix: Fix bug that caused fields in the flyout to use the main workspace's scale. by @gonfunko in #8607
- fix: Correctly calculate the bounds of hat blocks. by @gonfunko in #8616
- fix: Take the flyout into account when positioning the workspace after a toolbox change. by @gonfunko in #8617
- fix: Fix exception when disposing of a workspace with a variable block obscuring a shadow block. by @gonfunko in #8619
- fix: improve typings and export additional types by @gonfunko in #8631
- fix: Create CSS vars for SVG patterns. by @johnnesky in #8671
Cleanup β»οΈ
- refactor: field_checkbox
dom.addClass
params by @ishon19 in #8309 - refactor: Add
addClass
andremoveClass
methods to blockSvg by @ishon19 in #8337 - refactor: make VariableModel implement IVariableModel. by @gonfunko in #8381
- refactor: update the variable interfaces. by @gonfunko in #8388
- refactor: make VariableMap implement IVariableMap. by @gonfunko in #8395
- refactor: Use IVariableModel instead of VariableModel. by @gonfunko in #8400
- refactor: clean up VariableModel. by @gonfunko in #8416
- refactor: deprecate and clean up variable-related methods. by @gonfunko in #8415
- refactor: use getters for flyout width and height. by @gonfunko in #8564
- refactor: remove redundant flyout positioning. by @gonfunko in #8573
Other changes
New Contributors
- @ishon19 made their first contribution in #8309
- @ga-fleury made their first contribution in #8335
- @nullHawk made their first contribution in #8334
- @shashwatpathak98 made their first contribution in #8332
- @Abhinav-Chdhary made their first contribution in #8357
- @Nirmalkumar6112 made their first contribution in #8333
- @devesh-2002 made their first con...
blockly-v11.2.0-beta.2
What's Changed
Bug fixes π
- fix: Fix bug that caused comments to be incorrectly positioned. by @gonfunko in #8668
- fix: Disable newly created function call blocks when the corresponding definition is disabled. by @gonfunko in #8665
- fix: Fix bug that caused text to be selected when long-pressing in the workspace on a touch device. by @gonfunko in #8670
- fix: typo in comment by @winnchen in #8685
- fix: workspace shifts when deleting a block by @mateusslezinsky in #8666
New Contributors
- @winnchen made their first contribution in #8685
- @mateusslezinsky made their first contribution in #8666
Full Changelog: blockly-v11.2.0-beta.1...blockly-v11.2.0-beta.2
blockly-v11.2.0-beta.1
What's Changed
Bug fixes π
- fix: Ensure immovable blocks are considered during workspace tidying by @BenHenning in #8550
- fix: Factor out workspace drag methods into utils. by @johnnesky in #8566
- fix: Simplify list and text WHERE validation by @johnnesky in #8575
- fix: Group field validator changes with field value changes. by @johnnesky in #8589
- fix: Let old block factory overwrite user defined blocks. by @johnnesky in #8605
- fix: bump initiator group in an orthogonal direction from neighboring group by @johnnesky in #8613
- fix: clear touch identifier on comment icon down by @riknoll in #8627
- fix: Use a readonly textarea for non-editable comments. by @gonfunko in #8632
- fix: Fix crash when resizing page while editing a field. by @gonfunko in #8646
Cleanup β»οΈ
- refactor(shortcuts): Improve shortcut registry documentation & style by @cpcallen in #8598
- refactor: Move functions into FieldDropdown. by @gonfunko in #8634
New Contributors
- @BenHenning made their first contribution in #8550
Full Changelog: blockly-v11.2.0-beta.0...blockly-v11.2.0-beta.1
blockly-v11.2.0-beta.0
What's Changed
New features β¨
- feat(scripts): Create script to help with CJS -> ESM migration by @cpcallen in #8197
- feat: add legacy warning to block factory by @maribethb in #8234
- feat: allow fetching block bounds not including children. by @gonfunko in #8284
- feat: expose
bringToFront()
method by @UCYT5040 in #8472 - feat: mark some marker_svg properties protected instead of private by @rachel-fenichel in #8558
Bug fixes π
- fix: change which element keydown is bound to from document to injection div by @mark-friedman in #8188
- fix: statement input blocks disappearing by @BeksOmega in #8203
- fix(dev-tools): only initSvg on rendered blocks by @maribethb in #8215
- fix: Drag and Resize events for workspace comments by @johnnesky in #8217
- fix: correctly report the pre-resize-drag size to workspace comment size change listeners by @gonfunko in #8240
- fix: export the layer constants. by @gonfunko in #8256
- fix: use the correct with in getBoundingRectangleWithoutChildren(). by @gonfunko in #8298
- fix: added id to rendered ws comments; made getCommentById public; ad⦠by @changminbark in #8358
- fix: Enable blocks if user can't manually enable them. by @johnnesky in #8354
- fix: drag strategy only clear group id set by us by @HollowMan6 in #8355
- fix: Codify component weights with toolbox in front of flyouts. by @johnnesky in #8432
- fix: comments and bubbles on click by @UCYT5040 in #8451
- fix: Update dev-tools, remove toolbox category tests Colour and Angles by @johnnesky in #8457
- fix(touch): prevent infinite loop on multi-touch drag by @AbhinavKRN in #8470
- fix: Let workspace comment have delete cursor over trash. by @johnnesky in #8477
- fix: Detect if deleting shadow block affects selection highlight by @johnnesky in #8533
- fix(events): Simplify
filter
function, add newenqueueEvent
function by @cpcallen in #8539 - fix(comments): added workspace comments and comment drag strategy isDeadOrDying() checks (for multiselect plugin) by @changminbark in #8532
Cleanup β»οΈ
- docs(blocks):
block.ts
andblocks/*
JSDoc / formatting / etc. cleanup by @cpcallen in #8431 - refactor(events): introduce
EventType
enum in separate module by @cpcallen in #8530 - refactor(events): Don't filter events before undo by @cpcallen in #8537
- refactor(events): Introduce and use event type predicates by @cpcallen in #8538
- refactor: Use arrow functions when calling
Array.prototype.filter
by @cpcallen in #8557 - refactor: Omit unused exception arguments from
catch
blocks by @cpcallen in #8559
Other changes
- Revert "chore: Pin node.js v22 to v22.4.1 in CI" by @BeksOmega in #8398
New Contributors
- @changminbark made their first contribution in #8358
- @AbhinavKRN made their first contribution in #8470
- @abhinavjha0239 made their first contribution in #8478
Full Changelog: blockly-v11.1.1...blockly-v11.2.0-beta.0
blockly-v11.1.1
What's Changed
Bug Fixes
- fix: statement input blocks disappearing #8203
Full Changelog: blockly-v11.1.0...blockly-v11.1.1