Commit Graph

4437 Commits

Author SHA1 Message Date
Suryansh Shakya
0a1524f577 feat: added blocklyToolboxFlyout CSS class to the flyout (#8386) 2024-07-17 10:45:11 -07:00
Ruthwik Chikoti
e1753ae066 fix!: Renamed the blocklyToolboxContents CSS class to blocklyToolboxCategoryGroup (#8384) 2024-07-17 10:38:29 -07:00
Shreyans Pathak
a2a5749694 feat: Add css classes from json block definitions (#8377)
* fix: override `jsonInit` method to add css classes

* fix: lint

* refactor: simplify logic
2024-07-17 10:24:09 -07:00
Chaitanya Yeole
e298f55412 feat: Added blocklyTrashcanFlyout CSS class (#8372)
* feat: Add blocklyTrashcanFlyout class

* Fixed formatting issues

* fix: versioning reverted to original

* fix: prettier version resolved

* fix: clean installation
2024-07-17 10:19:53 -07:00
Arun Chandran
ae80adfe9c fix!: Replace Closure UI CSS classes with Blockly CSS classes (#8339)
* fix!: Replace Closure UI CSS classes with Blockly CSS classes

* chore: remove comments about deprecated goog-x class

* chore: remove deprecated goog-x classes

* fix: correct coding format to pass CI checks
2024-07-17 10:18:14 -07:00
Krishnakumar Chavan
33b53718eb fix!: renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon #8347 (#8367)
* renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon

* fix!: renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon #8347

* fixed whitespace formatting
2024-07-17 09:45:36 -07:00
Devesh Rahatekar
8cca066bcf feat: Add a blocklyShadow class (#8336)
* feat: Add blockShadow class

* formatted the file
2024-07-17 09:44:24 -07:00
Aaron Dodson
bef8d8319d refactor: make VariableModel implement IVariableModel. (#8381)
* refactor: make VariableModel implement IVariableModel.

* chore: assauge the linter.
2024-07-16 15:47:43 -07:00
Nirmal Kumar
c5532066f5 feat: Add a blocklyTextBubble CSS class to the text bubble #8331 (#8333) 2024-07-16 13:09:49 -07:00
Abhinav Choudhary
ae2fea484f fix!: Rename blocklyTreeRow and blocklyToolboxCategory CSS classes (#8357)
* fix!: #8345 rename css class

This commit renames the blocklyTreeRow CSS class to blocklyToolboxCategory

* Update category.ts

* fix: css class conflicts

Rename original blocklyToolboxCategory to blocklyToolboxCategoryContainer
2024-07-16 11:00:32 -07:00
Aaron Dodson
aecfe34c38 feat: add the IVariableMap and IVariableModel interfaces. (#8369)
* feat: add the IVariableMap and IVariableModel interfaces.

* chore: add license headers.
2024-07-15 15:29:19 -07:00
Shashwat Pathak
00d090edcf feat: Add a blocklyVariableField CSS class to variable fields (#8359) 2024-07-15 13:28:39 -07:00
Shreyans Pathak
7c22c46ee6 refactor: Add addClass and removeClass methods to blockSvg (#8337)
* refactor: Add `addClass` and `removeClass` methods to blockSvg

* fix: lint

* fix: jsdoc
2024-07-15 11:54:30 -07:00
Gabriel Fleury
968494205a feat: Add a blocklyFieldText CSS class to fields' text elements (#8291) (#8302)
* feat!: Add a blocklyFieldText CSS class to fields' text elements (#8291)

* add class instead of replace

Co-authored-by: Beka Westberg <bwestberg@google.com>

---------

Co-authored-by: Beka Westberg <bwestberg@google.com>
2024-07-12 09:37:20 -07:00
Shashwat Pathak
dd18edd343 fix!: Make IPathObject styling methods optional (#8332) 2024-07-12 09:36:25 -07:00
Suryansh Shakya
5a32c3fe43 feat: added blocklyField to field's SVG Group (#8334) 2024-07-12 09:35:10 -07:00
Gabriel Fleury
9ba791c144 bug: Rename the blockly icon CSS classes to use camelCase (#8329) (#8335) 2024-07-12 09:34:42 -07:00
Shreyans Pathak
f45270e083 refactor: field_checkbox dom.addClass params (#8309) 2024-07-12 09:11:19 -07:00
Aaron Dodson
d355b56877 Merge pull request #8292 from google/develop
chore: merge develop into rc/v12
2024-07-10 15:41:58 -07:00
Aaron Dodson
fa15cda950 feat: allow fetching block bounds not including children. (#8284)
* feat: allow fetching block bounds not including children.

* chore: run formatter.

* chore: run the other formatter.

* fix: don't include subsequent blocks in the childless bounding rect.

* chore: remove logging.
2024-07-10 14:52:07 -07:00
Aaron Dodson
8323642d0e fix: export the layer constants. (#8256)
* fix: export the layer constants.

* refactor: remove @internal annotations from layer constants.
2024-07-09 15:25:20 -07:00
Aaron Dodson
f097fc0098 Merge pull request #8252 from google/develop
chore: merge develop into v12
2024-07-08 13:23:55 -07:00
Aaron Dodson
a6361fbd81 chore: make getEventWorkspace_() public (#8241) 2024-07-02 14:48:16 -07:00
Aaron Dodson
21a73c463f fix: correctly report the pre-resize-drag size to workspace comment size change listeners (#8240)
* fix: correctly report the pre-resize-drag size to workspace comment size change listeners

* chore: run formatter

* refactor: implicitly use the presence of preResizeSize to identify a drag.
2024-07-02 14:42:47 -07:00
Aaron Dodson
989c91f626 feat!: Add support for preserving block comment locations. (#8231)
* feat: Add support for preserving block comment locations.

* chore: format the tests.
2024-06-27 11:11:45 -07:00
John Nesky
9a0619aa2a fix: Drag and Resize events for workspace comments (#8217)
* feat: Added a comment_drag event.

* Add workspace comment resize events.

* Addressing PR feedback.

* Fixed chai imports in new test files.

* Addressing more PR feedback.
2024-06-26 12:16:56 -07:00
Maribeth Bottorff
3fa46f45fe chore: tsdoc for generator exceptions (#8214)
* chore: tsdoc for generator exceptions

* chore: missed a period
2024-06-13 17:07:24 -07:00
Beka Westberg
dc91c3ab54 fix: c-blocks disappearing (#8203) 2024-06-11 11:21:48 -07:00
Mark Friedman
5881ce32c1 fix: change which element keydown is bound to from document to injection div (#8188)
* Change which element keydown is bound to

* Modify keydown tests

* Use browserEvents.conditionalBind()

* Remove commented out code.
2024-05-31 23:19:46 +01:00
Beka Westberg
c3d41cfd9f fix: comment body height too short (#8182) 2024-05-29 11:13:43 -07:00
Beka Westberg
6e4ba00be5 fix: dragging and disposing of shadows (#8172)
* Revert "fix: dragging blocks by shadows to delete (#8138)"

This reverts commit 3fd749205f.

* fix: dragging shadows
2024-05-28 10:28:16 -07:00
Maribeth Moffatt
c4287d1276 chore: format 2024-05-23 16:13:52 -07:00
Maribeth Moffatt
5d3ae222e7 feat: paste in viewport 2024-05-23 16:13:39 -07:00
Maribeth Moffatt
4040e78ffb Revert "feat: Paste block in viewport / near cursor (#7521)"
This reverts commit c37f4b8749.
2024-05-23 11:06:46 -07:00
Maribeth Moffatt
7c6fbec23c Merge branch 'osd' into merge-osd 2024-05-23 10:59:53 -07:00
John Nesky
9b2ab79e73 fix: Only hide WidgetDiv if it is associated with the affected workspace. (#8150)
* Associate a workspace with WidgetDiv.

* Minor fixes after merging.

* Hide widget if owner is in an unknown workspace.
2024-05-20 12:48:05 -07:00
Maribeth Bottorff
28de9ef494 fix: paste in a better spot (#8123)
* fix: paste in a better spot

* fix: include bump offset

* chore: rename param

---------

Co-authored-by: Beka Westberg <bwestberg@google.com>
2024-05-20 10:09:47 -07:00
Neil Fraser
fcdb8fc33d fix: Normalize CSS between comment types (#8161)
Merge the CSS so that both comment types (block and workspace) are the same -- other than a border.
2024-05-20 18:59:24 +02:00
Beka Westberg
7c4b0bd703 fix: delete area animation (#8149)
* fix: delete area animation

* chore: format

* Update core/dragging/dragger.ts

Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>

---------

Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
2024-05-20 09:58:48 -07:00
Beka Westberg
139b4b993f fix: creating comments in RTL (#8153) 2024-05-20 09:54:30 -07:00
Neil Fraser
70ca676c24 fix: Properly size comments. (#8158)
* Properly size comments.

Fixes multiple rendering and sizing issues across different browsers.

Tip: `text-overflow: hidden;` is not legal CSS and did nothing.

Resolves #8142
2024-05-20 09:30:38 -07:00
Beka Westberg
36b75696a2 fix: comment text area bottom border hidden (#8152) 2024-05-20 09:03:59 -07:00
Beka Westberg
69db8a63d6 fix: comment size not respecting collapsed-ness (#8136)
* fix: comment size not respecting collapsed-ness

* chore: fix tests the only way I know how, by adding explicit clock ticks
2024-05-17 13:23:13 -07:00
Beka Westberg
3fd749205f fix: dragging blocks by shadows to delete (#8138)
* Revert "fix: dragging shadow blocks (#7992)"

This reverts commit c0e6e6745f.

* fix: dragging by shadow not being deletable

* fix: unselecting shadows

* fix: revert changes to select and unselect
2024-05-17 13:22:53 -07:00
Neil Fraser
5a8969f855 fix: Zelos comments shouldn't be bold (#8141)
Resolves #8061
2024-05-17 21:33:52 +02:00
Beka Westberg
12ff96674b fix: comment handle position in RTL (#8151) 2024-05-17 12:27:14 -07:00
Beka Westberg
75d81620ab fix: undoing block delete over trashcan creates block in wrong place (#8126) 2024-05-17 12:26:10 -07:00
Maribeth Bottorff
80cacdcad7 Merge pull request #8140 from maribethb/grabby
fix: change cursor to grab on ws comment bar
2024-05-17 09:47:45 -07:00
Beka Westberg
44db3edce3 fix: comment move events and snapping (#8127) 2024-05-17 08:26:23 -07:00
Maribeth Moffatt
e4b734c0db fix: change cursor to grab on ws comment bar 2024-05-16 17:54:28 -07:00