Beka Westberg
ed403d0b77
feat!: change gestures to look at selected when dragging ( #7991 )
...
* feat: change gestures to look at selected when dragging
* chore: fix tests
* chore: format
* chore: PR comments
2024-04-04 08:52:43 -07:00
Beka Westberg
e75a4fb1d3
fix: comment move and change events ( #7947 )
...
* fix: comment move event
* feat: add support for a drag reason
* fix: comment change events
* chore: add tests for move and change events
2024-04-03 12:58:04 -07:00
Beka Westberg
3988e13fbc
chore: fix comment colours disappearing when dragging ( #7978 )
2024-04-02 14:37:54 -07:00
Mike Harvey
9e05d69d2a
feat: support keyboard navigation of flyout buttons ( #7852 )
...
* feat: support keyboard navigation of flyout buttons
* fix: use FlyoutItem type for flyout contents, rework navigateBetweenStacks for flyouts
2024-04-02 13:40:58 -07:00
Beka Westberg
f7bdfa2062
feat: support dragging comments in the gesture ( #7977 )
...
* feat: add dragging of comments in gesture
* chore: fix naming problems
2024-04-02 20:08:27 +00:00
Beka Westberg
b13f8f6737
fix: prevent default undo ( #7946 )
...
* fix: prevent default undo
* chore: fix format
2024-04-02 13:03:11 -07:00
Maribeth Bottorff
b7cdeffccd
chore: merge develop into rc/v11
2024-04-01 14:57:19 -07:00
Alejandro Ramos
d56f52cb0a
fix: Assign to containerDiv blockyWidgetDiv if it already exists ( #7980 )
...
* fix: assign to containerDiv if it already exists
* Delete unused return
* Fix if statement
* format file using Prettier
* Deduplicate lines and improve efficiency
2024-04-01 21:54:54 +00:00
Beka Westberg
2fa6f5b954
fix: comment icon interface re serialization ( #7964 )
...
* fix: comment icon interface re serialization
* chore: fix test
2024-04-01 14:34:48 -07:00
Beka Westberg
63eb4ecb2a
fix: comment create and delete events ( #7945 )
...
* chore: switch events to use new comment class
* fix: switch create and delete events to use JSON
* work on getting new comments to fire events
* chore: fixup tests
* chore: rename workspace comment test to comment view test
* chore: add tests for firing events
* chore: remove TODO
2024-04-01 21:33:50 +00:00
Maribeth Bottorff
6767717d0b
feat: allow duplicate registry values ( #7988 )
2024-04-01 14:13:25 -07:00
Beka Westberg
9effba5ee1
feat: make comment a draggable ( #7976 )
...
* feat: add drag strategy
* chore: use draggable
2024-04-01 10:25:43 -07:00
Beka Westberg
abfbbbc299
fix!: various drag-adjacent interfaces ( #7975 )
...
* fix: ISelectable and IDeletable interfaces
* fix: switch everything over to use new draggable interface
* fix: exports
2024-03-29 21:00:56 +00:00
Beka Westberg
59f589c32a
feat!: migrate bubble dragging to use new API ( #7974 )
2024-03-29 11:02:47 -07:00
Beka Westberg
da8a83b925
feat: have the gesture use a dragger for blocks ( #7972 )
...
* feat: have block use drag strategy
* fix: gesture to use dragger for blocks
* chore: register dragger
* chore: remove getInsertionMarkers and pull logic into workspace
2024-03-28 17:38:58 -07:00
Beka Westberg
75fc4704da
feat: have block use drag strategy ( #7971 )
2024-03-28 17:15:36 -07:00
Beka Westberg
8b6e9d8cad
feat: add block drag strategy ( #7970 )
...
* feat: add the block drag strategy
* chore: remove underscores
* chore: make crazy condition clearer?
* chore: rename var
2024-03-28 16:05:04 -07:00
Neil Fraser
5a6f22f0f3
feat!: Throw errors on missing inputs ( #7969 )
...
Previously generators could generate code from inputs that didn't exist and get back the empty string. This silent failure was causing problems for diagnosing issues. This PR changes the behaviour so that an error is thrown.
This will break generators which rely on the previous behaviour. Several of our demo blocks needed editing to accomodate this change.
Resolves #7665
2024-03-28 23:53:57 +01:00
Beka Westberg
da79a120f2
fix: remove parameter from wouldDelete ( #7968 )
2024-03-28 15:39:48 -07:00
Beka Westberg
6fe080bc6e
fix: draggable interface and concrete dragger ( #7967 )
...
* fix: interface to match design
* fix: dragger implementation
* fix: rename moveToStart to revertDrag
* fixup
2024-03-28 15:11:30 -07:00
Beka Westberg
3ea330b981
fix: comment view styling ( #7965 )
2024-03-27 11:19:00 -07:00
Neil Fraser
2ea9e21e6d
chore: Clean up variable assignment. ( #7962 )
...
* chore: Clean up variable assignment.
* fix: variable now const as a result of prev commit
2024-03-26 19:13:52 +01:00
dongjinlong
68b03d269d
chore: remove repetitive words in comments ( #7963 )
...
Signed-off-by: dongjinlong <dongjinlong@outlook.com >
2024-03-26 13:27:40 +01:00
Christopher Allen
0588dfade8
feat(dragging): Introduce Dragger, implementing IDragger ( #7956 )
...
* feat(dragging): Introduce Dragger, implementing iDragger
* docs(dragging): JSDoc for Dragger's .startLoc
2024-03-22 19:03:57 +00:00
Beka Westberg
d01f9a73fe
fix: comment position in RTL ( #7934 )
...
* fix: how comments are laid out in RTL
* fix: comment positioning with JSON
* fix: comment positioning with XML
2024-03-22 10:46:42 -07:00
Christopher Allen
11c219c537
feat(dragging): Create (new) IDragger and IDraggable interfaces ( #7953 )
...
* chore(dragging): Rename core/interfaces/i_draggable.ts
Rename core/interfaces/i_draggable.ts to
core/interfaces/i_draggable.old.ts to make room for new
IDraggable. Do not rename actual interface as it's not yet
clear that it will be necessary for both to coexist as
imports in the same file.
* feat(dragging): Introduce new IDraggable interface
* feat(dragging): Introduce new IDragger interface
---------
Co-authored-by: Beka Westberg <bwestberg@google.com >
2024-03-22 16:21:14 +00:00
Beka Westberg
5462b21b15
fix: comment have XML save and load new workspace comments classes ( #7931 )
...
* fix: have XML save and load new comment classes
* chore: fix imports to resolve circular dependencies
* chore: add round-trip tests
* chore: skip failing test
* fixup: PR comments
2024-03-20 16:25:41 -07:00
Beka Westberg
407ff44e18
feat: add JSON serialization for workspace comments ( #7927 )
...
* feat: basic comment serializer
* bad: temporarily jam new comment classes into array
* chore: implement serializer
* chore: add serialization tests
* chore: JSDoc
* chore: unonly tests
2024-03-20 12:40:27 -07:00
Beka Westberg
fd1a02ff37
feat: have RenderedWorkspaceComment implement IBoundedElement and IRenderedElement ( #7919 )
...
* feat: implement IBoundedElement
* feat: implement IRenderedElement
2024-03-20 08:27:32 -07:00
Aaron Dodson
199c00afd5
fix: Fix block disposal animations ( #7948 )
...
* fix: Fix block disposal animations
* chore: Run lint
* chore: Remove unused import
* fix: Remove unused function arg
2024-03-19 14:08:12 -07:00
Beka Westberg
93acb62456
feat: rendered workspace comment ( #7918 )
...
* feat: add basic rendered workspace comment
* feat: add updating the view and model
* feat: add support for setting editability
* feat: add moveTo support
* feat: add disposing
* chore: add tsdoc
* fix: disposing of the comment when the delete icon is clicked
* feat: add isDeadOrDying
2024-03-19 10:52:27 -07:00
Christopher Allen
10ffcb706d
release: Merge branch 'develop' into rc/v11.0.0
2024-03-18 19:57:04 +00:00
Christopher Allen
a6208d78b7
fix(generators): Make scrub_ public ( #7940 )
...
Fixes #2156 .
In PRs #7602 , #7616 , #7646 , #7647 and #7654 the @protected
access modifier on scrub_ on the CodeGenerator subclasses
was not transcribed to the new typescript signature. I was
going to re-add it, but this breaks some of the procedure
block generator functions which rely on it, and then
@BeksOmega pointed out that this might be one of the
CodeGenerator API functions which we had already decided
should be public—and lo and behold I found #2156 .
Per discussion amongst team, I am not renaming it to
scrub at this time.
2024-03-15 22:01:46 +00:00
Blake Thomas Williams
b6b57215a8
fix: updated field_dropdown to properly infer its Field type with TS 5.3.3 ( #7939 )
...
* fix: updated field_dropdown to properly infer its Field type with TS 5.3.3
* fix: removed undefined as an option as its not needed for the type fix
* fix: updated field_dropdown to allow |undefined class validation
2024-03-15 14:45:16 -07:00
Beka Westberg
8fc439f090
feat: add headless workspace comment class ( #7916 )
...
* feat: add empty definitions for comment class
* feat: implement constructor
* feat: add method implementations
* feat: add own properties
* chore: add tsdoc
* fix: typos
* chore: cleanup TODOs
2024-03-15 11:36:10 -07:00
Beka Westberg
8821c83cc9
feat: allow overriding comment icons ( #7937 )
...
* feat: add comment icon interface
* feat: have blocks construct comment icons from registry
* chore: add tests for setCommentText
* fix: typeguard
2024-03-15 18:20:08 +00:00
Neil Fraser
0ecbcde9fc
chore: Use .includes and .startsWith, not .indexOf ( #7936 )
...
Easier to read than the diverse collection of `=== 0` and `!== -1` and `> -1` tests.
2024-03-15 00:03:55 +01:00
Beka Westberg
e91dd203c3
fix!: classes on text input bubble to match comment view ( #7935 )
2024-03-14 09:57:18 -07:00
Rachel Fenichel
67c3aae76c
feat!: delete angle, colour, and multiline input fields and blocks ( #7932 )
...
* chore: delete mocha tests for angle field
* feat! : delete angle field
* chore(tests): delete colour tests from generator tests and golden files
* chore: delete colour blocks and associated generators
* chore: remove colour blocks from playgrounds
* chore: delete mocha tests for colour fields
* chore: fix incorrect comment
* chore: delete colour field from core
* chore: delete multiline input tests from generators tests and golden files
* chore: delete multiline text block and associated generators
* chore: remove multiline text block from playgrounds
* chore: delete mocha tests for multiline input field
* chore: delete multiline input field from core
2024-03-13 13:28:26 -07:00
Beka Westberg
a5126d1176
fix!: have disposing be true from start of dispose ( #7891 )
2024-03-13 09:23:11 -07:00
Beka Westberg
cac6b64ab0
chore: merge develop into v11
2024-03-12 16:10:59 +00:00
Beka Westberg
30127db35f
fix: comment min size ( #7915 )
...
* feat: add min and max to size
* fix: properly calculate the minimum size of the comment
* fix: inline docs
2024-03-11 20:57:47 +00:00
Beka Westberg
fc4228ce03
feat: add comment view (for workspace comments, and block comments for partners) ( #7914 )
...
* feat: add basic comment view
* feat: add icons to comment
* chore: add text area to comment view
* feat: add getting size
* feat: add collapsing comment view
* feat: add setting editability
* feat: add location and text hooks.
* feat: add changing the size
* feat: resizing
* feat: add collapsing
* feat: add disposing
* feat: add cursors
* feat: add moving to the front
* chore: split construction into subprocedures
* chore: split resizing into subprocedures
* feat: handle RTL
* chore: add doc comments throughout file
* chore: reduce css specificity where possible
* chore: format
* feat: add remove change listener methods
* chore: add tests for listeners
* feat: add disposing accessors
* chore: add coordinate system notes
* chore: add issues to TODOs where possible
* chore: remove suite.only
2024-03-11 12:12:35 -07:00
Rachel Fenichel
84218fe9b1
Merge pull request #7903 from google/rachel-fenichel-patch-2
...
chore: fix spelling in common.ts
2024-03-08 15:11:19 -08:00
Rachel Fenichel
3fccb75885
chore: format
2024-03-08 15:08:15 -08:00
Beka Westberg
48228e47e3
chore: merge develop into v11 to fix CI ( #7893 )
...
* fix: destroy connection highlight when the connection is disposed (#7830 )
* fix: fix reference docs toc generation (#7832 )
* fix: insertion marker previewer finding wrong connection for different conn counts (#7833 )
* feat: make grid options togglable (#7828 )
* chore(deps): Bump prettier from 3.1.1 to 3.2.5 (#7831 )
Bumps [prettier](https://github.com/prettier/prettier ) from 3.1.1 to 3.2.5.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.1.1...3.2.5 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: disposing of connection previewer (#7834 )
* fix: typo in Click event class docs
* chore: rollup of updates from translatewiki for 10.4.0 (#7856 )
* chore: update metadata for v10.4.0 (#7857 )
* release: update version number to 10.4.0
* fix: connection previewer disposing too early
* Merge pull request #7859 from BeksOmega/fix/previewer-disposing
fix: connection previewer disposing too early
(cherry picked from commit da3ec253bf )
* release: update version number to 10.4.1
* chore: move connection previewer out of subfolder (#7835 )
* chore(deps-dev): Bump undici from 5.26.3 to 5.28.3 (#7862 )
Bumps [undici](https://github.com/nodejs/undici ) from 5.26.3 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v5.26.3...v5.28.3 )
---
updated-dependencies:
- dependency-name: undici
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: update webdriverio to fix chrome endpoint issue (#7875 )
* fix: insertion marker drag scaling (#7874 )
* fix: insertion marker drag scaling
* chore: added docs for other params
* fix: restore respecting snap radius (#7873 )
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Maribeth Bottorff <maribethb@google.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elvis Adomnica <elvis.adomnica@gmail.com >
Co-authored-by: Rachel Fenichel <fenichel@google.com >
2024-03-08 14:24:58 -08:00
Beka Westberg
8dee571469
chore: make getters for grid attributes public and update inline docs ( #7865 )
2024-03-08 09:16:18 -08:00
Beka Westberg
848415e48f
fix: connection dancing ( #7899 )
...
* fix: special case zelos for connection previewing
* chore: add TODO
2024-03-08 08:45:11 -08:00
Beka Westberg
7c7dfd003f
fix: shouldPreventMove not being respected ( #7894 )
...
* fix: shouldPreventMove not being respected
* fix: PR comments
2024-03-07 10:14:03 -08:00
Rachel Fenichel
ccd29be4c4
chore: fix spelling in common.ts
...
definiton -> definition
2024-03-06 11:37:38 -08:00