Beka Westberg
7d8f88a4f1
chore: delete old comments ( #8038 )
...
* chore!: delete old comment classes and references
* chore: PR comments
2024-04-17 14:33:36 -07:00
Beka Westberg
e21bb99ff1
feat!: Add context menu options for workspace comments ( #8035 )
...
* feat: add context menu support and migrate easy options
* feat: pass events to context menu options
* chore: migrate final comment context menu option
* feat: add exports for comment context menu items
* chore: PR comments
2024-04-17 13:02:53 -07:00
Beka Westberg
dabb11f4cb
feat!: add ability to copy and paste workspace comments ( #8024 )
...
* chore: add support for copying and pasting workspace comments
* chore: fix build
* fix: PR comments
2024-04-15 14:43:58 -07:00
Beka Westberg
b6753a250e
fix: more drag exports ( #8025 )
...
* fix: more drag exports I forgot about
* chore: fix date in copyright
2024-04-12 22:09:32 +00:00
Beka Westberg
613c7335ee
chore: export some types and methods ( #8021 )
2024-04-11 08:38:50 -07:00
Beka Westberg
7491a50239
fix: compatibility with scroll plugin ( #8016 )
2024-04-08 13:17:03 -07:00
Beka Westberg
7277a2350f
chore: delete old dragging infrastructure ( #7995 )
2024-04-05 09:13:02 -07:00
Beka Westberg
c60db431ca
chore: delete useless DRAG_STACK value ( #7994 )
2024-04-04 15:58:24 -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
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
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
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
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
b2b12f42fd
merge develop into rc/v11.0.0
2024-02-02 22:14:46 +00:00
Beka Westberg
919778eb56
fix: have the connection previewer use the registry ( #7800 )
2024-02-02 11:55:14 -08:00
Beka Westberg
dc9aa1befb
feat: add connection previewer interface ( #7637 )
...
* feat: add connection previewer interface
* chore: PR comments
2024-02-02 11:55:14 -08:00
Beka Westberg
75007a064c
chore!: delete deprecations for v11. ( #7732 )
...
* chore: delete basic deprecations
* chore: remove deprecated align enum
* chore: remove generator deprecation
* chore: format
2024-01-23 08:48:08 -08:00
Christopher Allen
b0a7c004a9
refactor(build): Delete Closure Library ( #7415 )
...
* fix(build): Restore erroneously-deleted filter function
This was deleted in PR #7406 as it was mainly being used to
filter core/ vs. test/mocha/ deps into separate deps files -
but it turns out also to be used for filtering error
messages too. Oops.
* refactor(tests): Migrate advanced compilation test to ES Modules
* refactor(build): Migrate main.js to TypeScript
This turns out to be pretty straight forward, even if it would
cause crashing if one actually tried to import this module
instead of just feeding it to Closure Compiler.
* chore(build): Remove goog.declareModuleId calls
Replace goog.declareModuleId calls with a comment recording the
former module ID for posterity (or at least until we decide
how to reformat the renamings file.
* chore(tests): Delete closure/goog/*
For the moment we still need something to serve as base.js for
the benefit of closure-make-deps, so we keep a vestigial
base.js around, containing only the @provideGoog declaration.
* refactor(build): Remove vestigial base.js
By changing slightly the command line arguments to
closure-make-deps and closure-calculate-chunks the need to have
any base.js is eliminated.
* chore: Typo fix for PR #7415
2023-08-31 00:24:47 +01:00
Beka Westberg
001d9ff2c9
feat: make ICopyable generic and update clipboard APIs ( #7348 )
...
* chore: rename module-local variables to not conflict
* feat: make ICopyable generic and update clipboard APIs
* chore: switch over more things to use generic ICopyables
* chore: fix shortcut items using copy paste
* chore: add test for interface between clipboard and pasters
* chore: export isCopyable
* chore: format
* chore: fixup PR comments
* chore: add deprecation tags
2023-08-03 15:33:58 -07:00
Beka Westberg
74c01d2794
chore: fix paster exports and registration ( #7343 )
2023-07-31 10:46:49 -07:00
dependabot[bot]
2546b01d70
chore(deps): Bump prettier from 2.8.8 to 3.0.0 ( #7322 )
...
* chore(deps): Bump prettier from 2.8.8 to 3.0.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.0.0.
- [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/2.8.8...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore: Reformat using Prettier v3.0 defaults
The main change is to add trailing commas to the last line of
block-formatted function calls.
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christopher Allen <cpcallen+git@google.com >
2023-07-25 14:56:10 +00:00
Beka Westberg
d6848de645
fix: export the IIcon and related interfaces ( #7203 )
...
* fix: export the IIcon interface
* fix: export ISerializable interface
* fix: export IHasBubble interface
2023-06-23 14:26:32 -07:00
Beka Westberg
5ee9003044
fix: bubble exports ( #7189 )
...
* fix: bubble exports
* chore: delete the old bubble
2023-06-21 11:26:22 -07:00
Beka Westberg
d7ccf8a5ee
fix: input exports ( #7165 )
...
* fix: input exports
* chore: fix build
* chore: attempt to fix build
* chore: attempt to fix build
* chore: create new align enum to replace old one
* chore: format
* fix: Tweak renamings entries
It appears that the goal is to map:
Blockly.Input.Align -> Blockly.inputs.Align
Blockly.Align -> Blockly.inputs.Align
Blockly.ALIGN_* -> Blockly.inputs.Align.*
I believe this commit achieves that in a more minimal (and correct)
way—but if I have misunderstood the intention then this will not
be a useful correction.
---------
Co-authored-by: Christopher Allen <cpcallen+git@google.com >
2023-06-16 11:27:46 -07:00
Beka Westberg
2d3aec45f6
fix: icon exports ( #7159 )
2023-06-16 10:59:36 -07:00
Beka Westberg
c6fbb85a69
Revert "chore!: remove angle field from core ( #7155 )" ( #7158 )
...
This reverts commit 0961aca4c8 .
2023-06-13 15:25:41 -07:00
Beka Westberg
0961aca4c8
chore!: remove angle field from core ( #7155 )
...
* chore!: remove angle field from core
* chore: fix mocha failures
2023-06-13 15:09:15 -07:00
Beka Westberg
2f74ce822f
fix!: refactor mutator icon ( #7115 )
...
* feat: add basic mutator icon
* feat: add actual mutation behavior to icon
* chore: add bumping blocks back into the bubble
* fix: add updating block styles
* feat: add static methods to mutator icon
* chore: delete old mutator code
* fix: use the new mutator icon
* chore: docs and format
* chore: my own comments
* chore: first pass at PR comments
* chore: make type strings internal
* chore: add todo
* chore: format
* chore: move properties to module level
* chore: fix using in demos
* chore: move Mutator to icons.MutatorIcon
* chore: move reconnect to connection
* chore: move findParentWs to workspace
* chore: properly override and call super
* chore: remove bubbleIsVisible check
* chore: change imports to import type
* chore: use elvis operator
* chore: update renamings
* chore: reduce changes to js block files
2023-06-02 12:18:41 -07:00
Beka Westberg
50d9474db5
fix!: refactor comment icon ( #7128 )
...
* fix: add basic comment icon
* fix: add using comment icon
* chore: delete old comment icon
* chore: add docs to the comment icon
* chore: move Comment to icons.CommentIcon
* chore: mode properties to module level
* chore: properly override and call super
* chore: remove .comment and .commentIcon_
* chore: cleanup test
* chore: deprecate getCommentIcon and getCommentText
* chore: change imports to import type
* chore: refactor code for paren peace
* chore: fix lint and make it error
* chore: remove change to block JS file
* chore: fix css
* chore: add renamings
* chore: format
2023-06-02 09:53:05 -07:00
Beka Westberg
f4e378d096
fix!: refactor warning icon ( #7112 )
...
* feat: add basic warning icon
* feat: work on actually using the warning icon
* chore: add docs
* chore: delete old warning icon
* chore: fix build
* chore: my own comments
* chore: move Warning to icons.WarningIcon
* chore: move properties to the module level
* chore: properly override and call super
* chore: properly use optional chaining
* chore: fixup comment typo
* chore: change imports to import type
* chore: reduces changes in block js files
* chore: add renaming
2023-06-02 09:34:34 -07:00
Beka Westberg
83c6c73817
feat: mini workspace bubble ( #7096 )
...
* feat: add properly sizing mini workspace bubble
* chore: add properly handling workspace options
* fix: various sizing and option bugs
* fix: code related to dragging
* fix: remove adding flyout change listener
* chore: add docs
* fix: build
* fix: PR comments'
* chore: PR comments
2023-05-19 15:36:34 -07:00
Beka Westberg
f2221652d2
feat: add registering and serializing icons ( #7063 )
...
* feat: add registry for icons
* feat: add serialization of custom icons
* feat: add deserialization of custom icons
* chore: fixup deserialization
* chore: export icons registry
* chore: add tests for serialization and deserialization
* chore: move mocks and helpers to the top level
* chore: fix doc error
* chore: remove accidental only
2023-05-15 09:03:04 -07:00
Beka Westberg
794c045691
feat: bubble ownership ( #7071 )
...
* chore: rename bubble to old bubble
* chore: work on new bubble class
* chore: basic bubble implementation
* chore: add positioning code
* chore: add positioning code
* chore: more layouting code
* chore: implement IBubble thingies in new bubble
* chore: add docs
* chore: PR comments
* chore: fixup positioning bugs
* chore: fix lint
* chore: change height and width to get methods
2023-05-12 16:28:09 +00:00
Beka Westberg
455c1957b8
fix!: re-remove block and workspace drag surfaces ( #7070 )
...
* refactor: Remove BlockDragSurface.
* refactor: Remove WorkspaceDragSurfaceSvg.
* chore: Remove drag surface-related CSS.
* chore: Removed unused variable in block_dragger.ts.
* chore: Remove references to drag surfaces in comments.
* refactor: Only track icons with visible bubbles for position updates during a drag.
* fix: Remove rendundant condition.
* chore: fixup parameter from rebase
---------
Co-authored-by: Aaron Dodson <adodson@google.com >
2023-05-11 16:51:46 -07:00
Beka Westberg
8b0c40bb1b
feat: add implementations for adding, removing, and getting icons ( #7059 )
...
* feat: add implementations for adding, removing, and getting icons
* chore: fix tests
* chore: switch order of adding icons
* chore: create duplicate icon error
* chore: un-only test
2023-05-11 15:48:01 -07:00
Rachel Fenichel
de904ab128
chore: remove deprecated functionality for v10 ( #7077 )
...
* chore: remove deprecated functionality in events files
* chore: remove deprecated items in renderers
* chore: remove deprecated items in core
* chore: remove mixin deprecation
* chore: fix tests after removing deprecations
2023-05-11 14:30:54 -07:00
Maribeth Bottorff
88ff901a72
chore: use prettier instead of clang-format ( #7014 )
...
* chore: add and configure prettier
* chore: remove clang-format
* chore: remove clang-format config
* chore: lint additional ts files
* chore: fix lint errors in blocks
* chore: add prettier-ignore where needed
* chore: ignore js blocks when formatting
* chore: fix playground html syntax
* chore: fix yaml spacing from merge
* chore: convert text blocks to use arrow functions
* chore: format everything with prettier
* chore: fix lint unused imports in blocks
2023-05-10 16:01:39 -07:00
Beka Westberg
39cdd8a67a
feat: add abstract icon class ( #7060 )
...
* chore: rename icon to old icon
* feat: add abstract icon class
* chore: format
* chore: move icon class to icons directory
* chore: switch imports to import type
2023-05-09 23:42:58 +00:00
Beka Westberg
3a9a9bd24e
feat: break input types into separate classes ( #7019 )
...
* chore: move input and input types into new directory
* feat: define and export new input types
* feat: modify blocks to construct individual inputs
* chore: transition code to use actual type checks
* chore: fixup input type type
* chore: format
* chore: fixup PR comments
* chore: fix build
2023-05-04 08:50:45 -07:00
Beka Westberg
83e3dcac70
feat: add after queued renders promises to render management ( #6981 )
...
* feat: add promise to render queue system
* chore: update docs for variables
* chore: add export of render management
* chore: add tests for resolving render management promises
* fix: modify insertion marker manager to use render management promises
* chore: format
* chore: remove callback from afterQueuedRenders
* chore: don't store resolver
* chore: rename afterQueuedRenders -> finishQueuedRenders
* chore: fix tests
2023-04-18 17:02:33 -07:00
Aaron Dodson
b32e76d45f
refactor: Remove some more uses of AnyDuringMigration. ( #6970 )
2023-04-10 13:57:04 -07:00
Beka Westberg
ed531ec313
chore: remove all namespace comments ( #6903 )
...
* chore: remove all namespace comments
* chore: fix lint
2023-03-20 09:43:58 -07:00
Maribeth Bottorff
cdb1215d95
revert: "refactor: Remove block and workspace drag surfaces ( #6758 )" ( #6888 )
...
This reverts commit 332c0fd2f2 .
2023-03-09 13:43:12 -08:00
Beka Westberg
c0934216f8
fix: creating duplicate params via renaming vars ( #6885 )
...
* feat: add IVariableHolder
* chore: reorganize variable prompts to early return
* fix: add retriggering prompt for conflicting params
* chore: add unit tests
* chore: fix build
* chore: reorganize checking for param conflicts
* fix: visibility
* chore: rename variable holder interface
* chore: fix typo
* chore: fix lint
2023-03-09 06:00:48 -08:00
Blake Thomas Williams
9e5bfc243e
fix: export Field-related types from Blockly ( #6877 )
...
* chore: re-exported Field config types from Blockly
* mark `@internal` types, export field error, and add validator comments
2023-03-03 14:20:20 -08:00
Rachel Fenichel
1d1a927628
chore: remove alias comments ( #6816 )
...
* chore: remove alias comments
* chore: format
* chore: remove extra newlines
* chore: fix bad replaces
2023-02-06 10:08:55 -08:00
Beka Westberg
75963ea58e
chore: clean up leftover procedure-related things in core ( #6797 )
...
* chore: remove triggering updates
* chore: export isObservable
* chore: move the observable procedure model out of its own directory
2023-01-26 09:54:49 -08:00
Aaron Dodson
332c0fd2f2
refactor: Remove block and workspace drag surfaces ( #6758 )
...
* refactor: Remove BlockDragSurface.
* refactor: Remove WorkspaceDragSurfaceSvg.
* chore: Remove drag surface-related CSS.
* chore: Removed unused variable in block_dragger.ts.
* chore: Remove references to drag surfaces in comments.
* refactor: Only track icons with visible bubbles for position updates during a drag.
* fix: Remove rendundant condition.
* fix: Remove arg inadvertently reintroduced in merge
2023-01-20 11:55:28 -08:00