Maribeth Moffatt
2c05119ef2
fix: change css class for disabled block pattern ( #8864 )
2025-04-08 12:06:05 -07:00
Maribeth Moffatt
89194b2ead
fix: check potential variables for flyout variable fields ( #8873 )
...
* fix: check potential variables for flyout variable fields
* fix: format
* chore: move comment
2025-04-07 17:29:00 -07:00
Rachel Fenichel
76b02de654
feat: add getSearchRadius to BlockDragStrategy ( #8871 )
2025-04-07 13:52:15 -07:00
Rachel Fenichel
49387ec788
feat: add shouldHealStack method ( #8872 )
...
* feat: add shouldHealStack method
* chore: format
2025-04-07 12:44:40 -07:00
Ben Henning
17171abf1c
Merge pull request #8814 from BenHenning/introduce-focus-system-implementation
...
feat: Introduce FocusManager implementation
2025-04-03 16:20:49 -07:00
Ben Henning
c5404af82e
chore: lint fixes.
2025-04-03 23:04:06 +00:00
Rachel Fenichel
58cd954fc0
feat: make getNextNode and getPreviousNode public ( #8859 )
2025-04-03 22:59:34 +00:00
Ben Henning
720e8dab2b
chore: part 2 of addressing reviewer comments.
2025-04-03 22:55:35 +00:00
Ben Henning
902b26b1a1
chore: part 1 of addressing reviewer comments.
2025-04-03 22:25:50 +00:00
Aaron Dodson
ca362725ee
refactor!: Backport LineCursor to core. ( #8834 )
...
* refactor: Backport LineCursor to core.
* fix: Fix instantiation of LineCursor.
* fix: Fix tests.
* chore: Assauge the linter.
* chore: Fix some typos.
* feat: Make padding configurable for scrollBoundsIntoView.
* chore: Merge in the latest changes from keyboard-experimentation.
* refactor: Clarify name and docs for findSiblingOrParentSibling().
* fix: Improve scrollBoundsIntoView() behavior.
* fix: Export CursorOptions.
* refactor: Further clarify second parameter of setCurNode().
* fix: Revert change that could prevent scrolling bounds into view.
2025-04-03 12:15:17 -07:00
Aaron Dodson
7171350992
fix!: Tighten and correct typings on ASTNode ( #8835 )
...
* fix!: Tighten typings on ASTNode.create*Node() methods.
* fix: Restore missing condition.
* fix: Fix unsafe casts, non-null assertions and incorrect types.
* refactor: Simplify parent input checks.
2025-04-01 14:59:40 -07:00
Aaron Dodson
7a07b4b2ba
refactor!: Remove old cursor and tab support. ( #8803 )
2025-03-28 13:54:33 -07:00
Ben Henning
516e3af936
feat: finish core impl + tests
...
This adds new tests for the FocusableTreeTraverser and fixes a number of
issues with the original implementation (one of which required two new
API methods to be added to IFocusableTree). More tests have also been
added for FocusManager, and defocusing tracked nodes/trees has been
fully implemented in FocusManager.
2025-03-27 21:57:30 +00:00
Ben Henning
d9beacddb4
feat: add FocusManager
...
This is the bulk of the work for introducing the central logical unit
for managing and sychronizing focus as a first-class Blockly concept
with that of DOM focus.
There's a lot to do yet, including:
- Ensuring clicks within Blockly's scope correctly sync back to focus
changes.
- Adding support for, and testing, cases when focus is lost from all
registered trees.
- Testing nested tree propagation.
- Testing the traverser utility class.
- Adding implementations for IFocusableTree and IFocusableNode
throughout Blockly.
2025-03-21 00:33:51 +00:00
Aaron Dodson
0f07567965
fix: Allow the marker's current node to be null. ( #8802 )
2025-03-20 09:46:31 -07:00
Aaron Dodson
0983c43bc4
Merge pull request #8798 from google/develop-v12-merge
...
chore: Merge develop into rc/v12.0.0
2025-03-12 13:29:12 -07:00
Aaron Dodson
00d77456c9
Revert "fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover…" ( #8800 )
...
This reverts commit d6125d4fb9 .
2025-03-12 09:27:47 -07:00
Aaron Dodson
b8f71b83b7
Merge branch 'rc/v12.0.0' into develop-v12-merge
2025-03-11 09:42:25 -07:00
Aaron Dodson
fa4fce5c12
feat!: Added support for separators in menus. ( #8767 )
...
* feat!: Added support for separators in menus.
* chore: Do English gooder.
* fix: Remove menu separators from the DOM during dispose.
2025-02-27 14:00:40 -08:00
Aaron Dodson
dcd2d0e539
fix: Fix a bug where selection outlines could be cut off when connecting blocks. ( #8789 )
2025-02-27 13:04:37 -08:00
Aaron Dodson
0ed6c82acc
fix: Disallow and ignore x and y attributes for blocks in toolbox definitions. ( #8785 )
...
* fix: Disallow and ignore x and y attributes for blocks in toolbox definitions.
* chore: Clarify comment in BlockFlyoutInflater.
2025-02-27 10:55:34 -08:00
Aaron Dodson
22dbd75bd4
refactor: make CommentView more amenable to subclassing. ( #8783 )
2025-02-24 08:17:38 -08:00
Aaron Dodson
7e44e81e42
fix: Fix bug that prevented editing workspace comments on Firefox. ( #8779 )
...
* fix: Fix bug that prevented editing workspace comments on Firefox.
* chore: Add a docstring for getTextArea().
* refactor: Use isTargetInput() instead of comparing to comment textarea.
2025-02-20 09:56:41 -08:00
RoboErikG
b343a13bbe
fix: Fixes #8764 by moving the event grouping calls up to dragger.ts ( #8781 )
2025-02-20 08:56:57 -08:00
Ben Henning
3ae422a566
feat: Add interfaces for focus management.
...
Introduces the necessary base interfaces for representing different
focusable contexts within Blockly. The actual logic for utilizing and
implementing these interfaces will come in later PRs.
2025-02-19 23:03:21 +00:00
Aaron Dodson
29950fd872
fix: Allow dragging blocks from the far lower right corner. ( #8766 )
2025-02-12 14:22:14 -08:00
RoboErikG
15d6ea2558
Fix : #8194 by using a stepped animation for the wiggle ( #8743 )
...
* Fix #8194 by using animation steps for the wiggle
* Formatting cleanup
2025-02-12 13:16:35 -08:00
Aaron Dodson
58406af64f
fix: Fix menu scrolling. ( #8765 )
...
* Revert "fix: Fix bug that preventing scrolling menu items into view. (#8726 )"
This reverts commit f166b677c0 .
* fix: Fix menu scrolling.
2025-02-12 11:53:16 -08:00
Aaron Dodson
8fcc73097f
fix: Improve menu mouse/keyboard selection interaction. ( #8749 )
...
* chore: Use "pointer" instead of "mouse" in menu.ts.
* fix: Only highlight menu items on hover if the pointer has moved.
* fix: Don't blur menus on pointerleave.
2025-02-04 15:47:25 -08:00
Aaron Dodson
e6e57ddc01
fix: Fix bug that caused blocks dragged from non-primary flyouts to be misplaced. ( #8753 )
...
* fix: Fix bug that caused blocks dragged from non-primary flyouts to be misplaced.
* chore: Fix docstring.
2025-02-04 15:23:03 -08:00
Aaron Dodson
343c2f51f3
feat: Add support for toggling readonly mode. ( #8750 )
...
* feat: Add methods for toggling and inspecting the readonly state of a workspace.
* refactor: Use the new readonly setters/getters in place of checking the injection options.
* fix: Fix bug that allowed dragging blocks from a flyout onto a readonly workspace.
* feat: Toggle a `blocklyReadOnly` class when readonly status is changed.
* chore: Placate the linter.
* chore: Placate the compiler.
2025-01-30 13:47:36 -08:00
Clément Contet
a190539bd8
fix: Fix dropdown text color in Zelos ( #8741 )
2025-01-20 09:29:34 +00:00
Aaron Dodson
c88ebf1ede
fix: Don't add padding around zero-width fields. ( #8738 )
2025-01-16 15:23:55 -08:00
Aaron Dodson
a86ba15154
fix: Fix the browser tests. ( #8735 )
2025-01-16 10:37:24 -08:00
Aaron Dodson
640410752d
fix: Fix display of multiline RTL strings in bubbles on Webkit. ( #8733 )
...
* fix: Fix display of multiline RTL strings in bubbles on Webkit.
* chore: Remove references to spans.
2025-01-14 14:50:15 -08:00
Aaron Dodson
f9ef78521e
fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. ( #8731 )
2025-01-14 13:19:30 -08:00
Aaron Dodson
bcdb65c623
release: Merge branch 'develop' into rc/v12.0.0
2025-01-10 10:53:09 -08:00
Aaron Dodson
0c20129a26
fix: Fix bug that preventing scrolling menu items into view. ( #8726 )
...
* fix: Fix bug that preventing scrolling menu items into view.
* chore: Deprecate now-unused-in-core functions in style.
2025-01-10 10:38:30 -08:00
Aaron Dodson
75efba92e3
fix: Fix bug that prevented keyboard navigation in flyouts. ( #8687 )
...
* fix: Fix bug that prevented keyboard navigation in flyouts.
* refactor: Add an `isFocusable()` method to FlyoutItem.
2025-01-09 14:31:51 -08:00
Aaron Dodson
80a6d85c26
refactor!: Use JSON instead of XML for defining dynamic toolbox categories. ( #8658 )
...
* refactor!: Use JSON instead of XML for defining dynamic toolbox categories.
* chore: Fix tests.
* chore: Remove unused import.
* chore: Update docstrings.
* chore: Revert removal of XML-based category functions.
* chore: Add deprecation notices.
2025-01-08 11:50:18 -08:00
Aaron Dodson
a42c2d1508
feat: Add a BlockSvg.getStyle() method. ( #8722 )
...
* feat: Add a BlockSvg.getStyle() method.
* refactor: Remove direct field access to BlockSvg.style.
2025-01-07 14:44:48 -08:00
Aaron Dodson
151d21e50e
refactor: Convert renderer typecheck methods to typeguards. ( #8656 )
...
* refactor: Convert renderer typecheck methods to typeguards.
* chore: Revert unintended change.
* chore: Format types.ts.
2025-01-07 14:04:21 -08:00
Aaron Dodson
547ff18867
fix: Reposition the trashcan's flyout in response to workspace changes. ( #8721 )
2025-01-07 13:41:16 -08:00
Aaron Dodson
956f272da0
feat: Add a generator for all fields on a block. ( #8667 )
...
* feat: Add a generator for all fields on a block.
* chore: Add docstring.
2025-01-06 11:30:22 -08:00
Aaron Dodson
f31a9f957f
fix: Disallow adding comments to mutator workspaces. ( #8720 )
2025-01-06 11:28:06 -08:00
Aaron Dodson
77c695a648
fix: Paste blocks copied from a mutator into the mutator. ( #8719 )
2025-01-06 11:19:23 -08:00
Aaron Dodson
503cd0073f
refactor: Reenable workspace resizing after reflowing flyouts. ( #8683 )
2025-01-06 11:08:17 -08:00
Aaron Dodson
071814e9de
feat: Warn if a variable category is loaded without variable blocks. ( #8704 )
2025-01-06 10:55:10 -08:00
Aaron Dodson
eeef2edf34
chore!: Fix warnings when generating docs. ( #8660 )
2025-01-06 10:53:45 -08:00
Aaron Dodson
54ebfb7a0e
fix: Fix unsafe cast in Input.setVisible(). ( #8695 )
2025-01-06 10:52:02 -08:00