blockly 13.2.2-beta.2 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/blockly.min.js +785 -749
- package/blockly_compressed.js +669 -656
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +68 -68
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +2 -2
- package/core/block_aria_composer.d.ts +1 -1
- package/core/block_svg.d.ts +7 -8
- package/core/bubbles/bubble.d.ts +4 -4
- package/core/bubbles/mini_workspace_bubble.d.ts +2 -2
- package/core/bubbles/text_bubble.d.ts +3 -3
- package/core/bubbles/textinput_bubble.d.ts +1 -1
- package/core/clipboard/block_paster.d.ts +5 -5
- package/core/clipboard/registry.d.ts +1 -1
- package/core/clipboard/workspace_comment_paster.d.ts +4 -4
- package/core/clipboard.d.ts +1 -1
- package/core/comments/collapse_comment_bar_button.d.ts +0 -4
- package/core/comments/comment_bar_button.d.ts +1 -1
- package/core/comments/comment_editor.d.ts +6 -6
- package/core/comments/comment_view.d.ts +3 -3
- package/core/comments/delete_comment_bar_button.d.ts +0 -4
- package/core/comments/rendered_workspace_comment.d.ts +11 -11
- package/core/comments/workspace_comment.d.ts +2 -2
- package/core/common.d.ts +2 -2
- package/core/config.d.ts +37 -11
- package/core/contextmenu_registry.d.ts +2 -2
- package/core/dragging/block_drag_strategy.d.ts +25 -7
- package/core/dragging/dragger.d.ts +2 -1
- package/core/events/events_block_base.d.ts +2 -1
- package/core/events/events_block_change.d.ts +3 -2
- package/core/events/events_block_create.d.ts +3 -2
- package/core/events/events_block_delete.d.ts +3 -2
- package/core/events/events_block_drag.d.ts +2 -2
- package/core/events/events_block_field_intermediate_change.d.ts +3 -2
- package/core/events/events_block_move.d.ts +2 -1
- package/core/events/events_click.d.ts +2 -2
- package/core/events/events_comment_base.d.ts +2 -1
- package/core/events/events_comment_change.d.ts +2 -1
- package/core/events/events_comment_collapse.d.ts +3 -2
- package/core/events/events_comment_create.d.ts +2 -1
- package/core/events/events_comment_delete.d.ts +2 -1
- package/core/events/events_comment_drag.d.ts +2 -2
- package/core/events/events_comment_move.d.ts +2 -1
- package/core/events/events_comment_resize.d.ts +2 -1
- package/core/events/events_selected.d.ts +1 -1
- package/core/events/events_theme_change.d.ts +1 -1
- package/core/events/events_toolbox_item_select.d.ts +1 -1
- package/core/events/events_trashcan_open.d.ts +1 -1
- package/core/events/events_var_base.d.ts +2 -1
- package/core/events/events_var_create.d.ts +2 -1
- package/core/events/events_var_delete.d.ts +2 -1
- package/core/events/events_var_rename.d.ts +2 -1
- package/core/events/events_var_type_change.d.ts +2 -1
- package/core/events/events_viewport.d.ts +1 -1
- package/core/field.d.ts +4 -4
- package/core/field_checkbox.d.ts +4 -3
- package/core/field_dropdown.d.ts +4 -3
- package/core/field_image.d.ts +3 -2
- package/core/field_input.d.ts +7 -6
- package/core/field_label.d.ts +3 -2
- package/core/field_label_serializable.d.ts +3 -2
- package/core/field_number.d.ts +4 -3
- package/core/field_textinput.d.ts +5 -4
- package/core/field_variable.d.ts +7 -5
- package/core/flyout_base.d.ts +1 -1
- package/core/flyout_metrics_manager.d.ts +2 -1
- package/core/generator.d.ts +2 -2
- package/core/gesture.d.ts +2 -2
- package/core/grid.d.ts +2 -2
- package/core/icons/icon_types.d.ts +4 -4
- package/core/icons/registry.d.ts +1 -1
- package/core/insertion_marker.d.ts +1 -1
- package/core/insertion_marker_previewer.d.ts +3 -3
- package/core/interfaces/i_bubble.d.ts +2 -2
- package/core/interfaces/i_comment_icon.d.ts +6 -6
- package/core/interfaces/i_drag_target.d.ts +2 -2
- package/core/interfaces/i_icon.d.ts +1 -1
- package/core/interfaces/i_json_block_definition.d.ts +7 -7
- package/core/interfaces/i_keyboard_accessible.d.ts +1 -1
- package/core/interfaces/i_parameter_model.d.ts +2 -2
- package/core/interfaces/i_paster.d.ts +3 -3
- package/core/interfaces/i_procedure_block.d.ts +1 -1
- package/core/interfaces/i_procedure_map.d.ts +1 -1
- package/core/interfaces/i_procedure_model.d.ts +2 -2
- package/core/interfaces/i_selectable.d.ts +1 -1
- package/core/interfaces/i_variable_backed_parameter_model.d.ts +1 -1
- package/core/keyboard_nav/keyboard_mover.d.ts +2 -0
- package/core/keyboard_nav/navigators/navigator.d.ts +12 -0
- package/core/layer_manager.d.ts +3 -3
- package/core/observable_procedure_map.d.ts +1 -1
- package/core/options.d.ts +4 -4
- package/core/procedures.d.ts +1 -1
- package/core/render_management.d.ts +1 -1
- package/core/rendered_connection.d.ts +1 -1
- package/core/renderers/common/info.d.ts +1 -1
- package/core/renderers/common/path_object.d.ts +2 -2
- package/core/renderers/zelos/drawer.d.ts +1 -1
- package/core/renderers/zelos/info.d.ts +1 -1
- package/core/serialization/procedures.d.ts +2 -2
- package/core/serialization/workspace_comments.d.ts +2 -2
- package/core/shortcut_items.d.ts +25 -2
- package/core/shortcut_registry.d.ts +3 -3
- package/core/tooltip.d.ts +3 -2
- package/core/trashcan.d.ts +7 -8
- package/core/utils/aria.d.ts +3 -1
- package/core/utils/focusable_tree_traverser.d.ts +2 -2
- package/core/utils/style.d.ts +14 -0
- package/core/utils/toolbox.d.ts +0 -8
- package/core/variable_map.d.ts +1 -1
- package/core/variable_model.d.ts +1 -1
- package/core/variables.d.ts +1 -1
- package/core/workspace.d.ts +2 -2
- package/core/workspace_focus_target.d.ts +6 -1
- package/core/workspace_svg.d.ts +5 -4
- package/core/xml.d.ts +1 -1
- package/dart_compressed.js +20 -20
- package/javascript_compressed.js +25 -25
- package/lua_compressed.js +24 -24
- package/msg/ab.js +23 -0
- package/msg/ab.mjs +23 -0
- package/msg/ace.js +23 -0
- package/msg/ace.mjs +23 -0
- package/msg/af.js +23 -0
- package/msg/af.mjs +23 -0
- package/msg/am.js +23 -0
- package/msg/am.mjs +23 -0
- package/msg/ar.js +23 -0
- package/msg/ar.mjs +23 -0
- package/msg/ast.js +23 -0
- package/msg/ast.mjs +23 -0
- package/msg/az.js +23 -0
- package/msg/az.mjs +23 -0
- package/msg/ba.js +23 -0
- package/msg/ba.mjs +23 -0
- package/msg/bcc.js +23 -0
- package/msg/bcc.mjs +23 -0
- package/msg/be-tarask.js +40 -17
- package/msg/be-tarask.mjs +23 -0
- package/msg/be.js +23 -0
- package/msg/be.mjs +23 -0
- package/msg/bg.js +23 -0
- package/msg/bg.mjs +23 -0
- package/msg/bn.js +23 -0
- package/msg/bn.mjs +23 -0
- package/msg/br.js +23 -0
- package/msg/br.mjs +23 -0
- package/msg/bs.js +23 -0
- package/msg/bs.mjs +23 -0
- package/msg/ca.js +23 -0
- package/msg/ca.mjs +23 -0
- package/msg/ce.js +23 -0
- package/msg/ce.mjs +23 -0
- package/msg/cs.js +23 -0
- package/msg/cs.mjs +23 -0
- package/msg/csb.js +180 -157
- package/msg/csb.mjs +23 -0
- package/msg/da.js +49 -26
- package/msg/da.mjs +23 -0
- package/msg/de.js +23 -0
- package/msg/de.mjs +23 -0
- package/msg/diq.js +24 -1
- package/msg/diq.mjs +23 -0
- package/msg/dtp.js +23 -0
- package/msg/dtp.mjs +23 -0
- package/msg/dty.js +23 -0
- package/msg/dty.mjs +23 -0
- package/msg/ee.js +23 -0
- package/msg/ee.mjs +23 -0
- package/msg/el.js +23 -0
- package/msg/el.mjs +23 -0
- package/msg/en-gb.js +26 -3
- package/msg/en-gb.mjs +23 -0
- package/msg/en.js +23 -0
- package/msg/en.mjs +23 -0
- package/msg/eo.js +23 -0
- package/msg/eo.mjs +23 -0
- package/msg/es.js +23 -0
- package/msg/es.mjs +23 -0
- package/msg/et.js +23 -0
- package/msg/et.mjs +23 -0
- package/msg/eu.js +23 -0
- package/msg/eu.mjs +23 -0
- package/msg/fa.js +23 -0
- package/msg/fa.mjs +23 -0
- package/msg/fi.js +23 -0
- package/msg/fi.mjs +23 -0
- package/msg/fo.js +23 -0
- package/msg/fo.mjs +23 -0
- package/msg/fr.js +24 -1
- package/msg/fr.mjs +23 -0
- package/msg/frr.js +23 -0
- package/msg/frr.mjs +23 -0
- package/msg/ga.js +50 -27
- package/msg/ga.mjs +23 -0
- package/msg/gl.js +23 -0
- package/msg/gl.mjs +23 -0
- package/msg/gn.js +23 -0
- package/msg/gn.mjs +23 -0
- package/msg/gor.js +23 -0
- package/msg/gor.mjs +23 -0
- package/msg/ha.js +23 -0
- package/msg/ha.mjs +23 -0
- package/msg/he.js +29 -6
- package/msg/he.mjs +23 -0
- package/msg/hi.js +23 -0
- package/msg/hi.mjs +23 -0
- package/msg/hr.js +23 -0
- package/msg/hr.mjs +23 -0
- package/msg/hrx.js +23 -0
- package/msg/hrx.mjs +23 -0
- package/msg/hsb.js +23 -0
- package/msg/hsb.mjs +23 -0
- package/msg/hu.js +24 -1
- package/msg/hu.mjs +23 -0
- package/msg/hy.js +23 -0
- package/msg/hy.mjs +23 -0
- package/msg/ia.js +23 -0
- package/msg/ia.mjs +23 -0
- package/msg/id.js +23 -0
- package/msg/id.mjs +23 -0
- package/msg/ig.js +23 -0
- package/msg/ig.mjs +23 -0
- package/msg/inh.js +23 -0
- package/msg/inh.mjs +23 -0
- package/msg/is.js +23 -0
- package/msg/is.mjs +23 -0
- package/msg/it.js +23 -0
- package/msg/it.mjs +23 -0
- package/msg/ja.js +269 -246
- package/msg/ja.mjs +23 -0
- package/msg/ka.js +23 -0
- package/msg/ka.mjs +23 -0
- package/msg/kab.js +23 -0
- package/msg/kab.mjs +23 -0
- package/msg/kbd-cyrl.js +23 -0
- package/msg/kbd-cyrl.mjs +23 -0
- package/msg/km.js +23 -0
- package/msg/km.mjs +23 -0
- package/msg/kn.js +52 -29
- package/msg/kn.mjs +23 -0
- package/msg/ko.js +23 -0
- package/msg/ko.mjs +23 -0
- package/msg/krc.js +23 -0
- package/msg/krc.mjs +23 -0
- package/msg/ksh.js +23 -0
- package/msg/ksh.mjs +23 -0
- package/msg/ku-latn.js +23 -0
- package/msg/ku-latn.mjs +23 -0
- package/msg/ky.js +23 -0
- package/msg/ky.mjs +23 -0
- package/msg/la.js +23 -0
- package/msg/la.mjs +23 -0
- package/msg/lb.js +30 -7
- package/msg/lb.mjs +23 -0
- package/msg/lki.js +23 -0
- package/msg/lki.mjs +23 -0
- package/msg/lo.js +23 -0
- package/msg/lo.mjs +23 -0
- package/msg/lrc.js +23 -0
- package/msg/lrc.mjs +23 -0
- package/msg/lt.js +23 -0
- package/msg/lt.mjs +23 -0
- package/msg/lv.js +23 -0
- package/msg/lv.mjs +23 -0
- package/msg/mg.js +23 -0
- package/msg/mg.mjs +23 -0
- package/msg/mk.js +23 -0
- package/msg/mk.mjs +23 -0
- package/msg/ml.js +23 -0
- package/msg/ml.mjs +23 -0
- package/msg/mnw.js +23 -0
- package/msg/mnw.mjs +23 -0
- package/msg/ms.js +23 -0
- package/msg/ms.mjs +23 -0
- package/msg/mt.js +23 -0
- package/msg/mt.mjs +23 -0
- package/msg/my.js +23 -0
- package/msg/my.mjs +23 -0
- package/msg/mzn.js +23 -0
- package/msg/mzn.mjs +23 -0
- package/msg/nb.js +23 -0
- package/msg/nb.mjs +23 -0
- package/msg/ne.js +24 -1
- package/msg/ne.mjs +23 -0
- package/msg/nl.js +23 -0
- package/msg/nl.mjs +23 -0
- package/msg/oc.js +23 -0
- package/msg/oc.mjs +23 -0
- package/msg/olo.js +23 -0
- package/msg/olo.mjs +23 -0
- package/msg/pa.js +23 -0
- package/msg/pa.mjs +23 -0
- package/msg/pl.js +23 -0
- package/msg/pl.mjs +23 -0
- package/msg/pms.js +23 -0
- package/msg/pms.mjs +23 -0
- package/msg/ps.js +39 -16
- package/msg/ps.mjs +23 -0
- package/msg/pt-br.js +23 -0
- package/msg/pt-br.mjs +23 -0
- package/msg/pt.js +23 -0
- package/msg/pt.mjs +23 -0
- package/msg/ro.js +31 -8
- package/msg/ro.mjs +23 -0
- package/msg/ru.js +23 -0
- package/msg/ru.mjs +23 -0
- package/msg/sc.js +23 -0
- package/msg/sc.mjs +23 -0
- package/msg/sco.js +23 -0
- package/msg/sco.mjs +23 -0
- package/msg/sd.js +23 -0
- package/msg/sd.mjs +23 -0
- package/msg/shn.js +23 -0
- package/msg/shn.mjs +23 -0
- package/msg/si.js +23 -0
- package/msg/si.mjs +23 -0
- package/msg/sk.js +23 -0
- package/msg/sk.mjs +23 -0
- package/msg/skr-arab.js +23 -0
- package/msg/skr-arab.mjs +23 -0
- package/msg/sl.js +23 -0
- package/msg/sl.mjs +23 -0
- package/msg/smn.js +23 -0
- package/msg/smn.mjs +23 -0
- package/msg/sq.js +23 -0
- package/msg/sq.mjs +23 -0
- package/msg/sr-latn.js +23 -0
- package/msg/sr-latn.mjs +23 -0
- package/msg/sr.js +23 -0
- package/msg/sr.mjs +23 -0
- package/msg/sv.js +23 -0
- package/msg/sv.mjs +23 -0
- package/msg/sw.js +23 -0
- package/msg/sw.mjs +23 -0
- package/msg/ta.js +23 -0
- package/msg/ta.mjs +23 -0
- package/msg/tcy.js +24 -1
- package/msg/tcy.mjs +23 -0
- package/msg/tdd.js +23 -0
- package/msg/tdd.mjs +23 -0
- package/msg/te.js +23 -0
- package/msg/te.mjs +23 -0
- package/msg/th.js +23 -0
- package/msg/th.mjs +23 -0
- package/msg/ti.js +23 -0
- package/msg/ti.mjs +23 -0
- package/msg/tl.js +23 -0
- package/msg/tl.mjs +23 -0
- package/msg/tlh.js +23 -0
- package/msg/tlh.mjs +23 -0
- package/msg/tr.js +23 -0
- package/msg/tr.mjs +23 -0
- package/msg/ug-arab.js +23 -0
- package/msg/ug-arab.mjs +23 -0
- package/msg/uk.js +23 -0
- package/msg/uk.mjs +23 -0
- package/msg/ur.js +23 -0
- package/msg/ur.mjs +23 -0
- package/msg/uz.js +42 -19
- package/msg/uz.mjs +23 -0
- package/msg/vi.js +24 -1
- package/msg/vi.mjs +23 -0
- package/msg/xmf.js +23 -0
- package/msg/xmf.mjs +23 -0
- package/msg/yo.js +23 -0
- package/msg/yo.mjs +23 -0
- package/msg/zgh.js +23 -0
- package/msg/zgh.mjs +23 -0
- package/msg/zh-hans.js +23 -0
- package/msg/zh-hans.mjs +23 -0
- package/msg/zh-hant.js +59 -36
- package/msg/zh-hant.mjs +23 -0
- package/package.json +30 -27
- package/php_compressed.js +16 -16
- package/python_compressed.js +40 -40
- package/python_compressed.js.map +1 -1
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
12
12
|
import * as comments from '../serialization/workspace_comments.js';
|
|
13
13
|
import type { Workspace } from '../workspace.js';
|
|
14
|
-
import {
|
|
14
|
+
import type { CommentBaseJson } from './events_comment_base.js';
|
|
15
|
+
import { CommentBase } from './events_comment_base.js';
|
|
15
16
|
import { EventType } from './type.js';
|
|
16
17
|
/**
|
|
17
18
|
* Notifies listeners that a workspace comment was created.
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
12
12
|
import * as comments from '../serialization/workspace_comments.js';
|
|
13
13
|
import type { Workspace } from '../workspace.js';
|
|
14
|
-
import {
|
|
14
|
+
import type { CommentBaseJson } from './events_comment_base.js';
|
|
15
|
+
import { CommentBase } from './events_comment_base.js';
|
|
15
16
|
import { EventType } from './type.js';
|
|
16
17
|
/**
|
|
17
18
|
* Notifies listeners that a workspace comment has been deleted.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Events fired when a workspace comment is dragged.
|
|
8
8
|
*/
|
|
9
9
|
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
10
|
-
import { Workspace } from '../workspace.js';
|
|
11
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
10
|
+
import type { Workspace } from '../workspace.js';
|
|
11
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
12
12
|
import { UiBase } from './events_ui_base.js';
|
|
13
13
|
import { EventType } from './type.js';
|
|
14
14
|
/**
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
12
12
|
import { Coordinate } from '../utils/coordinate.js';
|
|
13
13
|
import type { Workspace } from '../workspace.js';
|
|
14
|
-
import {
|
|
14
|
+
import type { CommentBaseJson } from './events_comment_base.js';
|
|
15
|
+
import { CommentBase } from './events_comment_base.js';
|
|
15
16
|
import { EventType } from './type.js';
|
|
16
17
|
/**
|
|
17
18
|
* Notifies listeners that a workspace comment has moved.
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
10
10
|
import { Size } from '../utils/size.js';
|
|
11
11
|
import type { Workspace } from '../workspace.js';
|
|
12
|
-
import {
|
|
12
|
+
import type { CommentBaseJson } from './events_comment_base.js';
|
|
13
|
+
import { CommentBase } from './events_comment_base.js';
|
|
13
14
|
import { EventType } from './type.js';
|
|
14
15
|
/**
|
|
15
16
|
* Notifies listeners that a workspace comment has resized.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
7
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
8
8
|
import { UiBase } from './events_ui_base.js';
|
|
9
9
|
import { EventType } from './type.js';
|
|
10
10
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
7
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
8
8
|
import { UiBase } from './events_ui_base.js';
|
|
9
9
|
import { EventType } from './type.js';
|
|
10
10
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
7
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
8
8
|
import { UiBase } from './events_ui_base.js';
|
|
9
9
|
import { EventType } from './type.js';
|
|
10
10
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
7
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
8
8
|
import { UiBase } from './events_ui_base.js';
|
|
9
9
|
import { EventType } from './type.js';
|
|
10
10
|
/**
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IVariableModel, IVariableState } from '../interfaces/i_variable_model.js';
|
|
12
12
|
import type { Workspace } from '../workspace.js';
|
|
13
|
-
import {
|
|
13
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
14
|
+
import { Abstract as AbstractEvent } from './events_abstract.js';
|
|
14
15
|
/**
|
|
15
16
|
* Abstract class for a variable event.
|
|
16
17
|
*/
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IVariableModel, IVariableState } from '../interfaces/i_variable_model.js';
|
|
12
12
|
import type { Workspace } from '../workspace.js';
|
|
13
|
-
import {
|
|
13
|
+
import type { VarBaseJson } from './events_var_base.js';
|
|
14
|
+
import { VarBase } from './events_var_base.js';
|
|
14
15
|
import { EventType } from './type.js';
|
|
15
16
|
/**
|
|
16
17
|
* Notifies listeners that a variable model has been created.
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { IVariableModel, IVariableState } from '../interfaces/i_variable_model.js';
|
|
7
7
|
import type { Workspace } from '../workspace.js';
|
|
8
|
-
import {
|
|
8
|
+
import type { VarBaseJson } from './events_var_base.js';
|
|
9
|
+
import { VarBase } from './events_var_base.js';
|
|
9
10
|
import { EventType } from './type.js';
|
|
10
11
|
/**
|
|
11
12
|
* Notifies listeners that a variable model has been deleted.
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { IVariableModel, IVariableState } from '../interfaces/i_variable_model.js';
|
|
7
7
|
import type { Workspace } from '../workspace.js';
|
|
8
|
-
import {
|
|
8
|
+
import type { VarBaseJson } from './events_var_base.js';
|
|
9
|
+
import { VarBase } from './events_var_base.js';
|
|
9
10
|
import { EventType } from './type.js';
|
|
10
11
|
/**
|
|
11
12
|
* Notifies listeners that a variable model was renamed.
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IVariableModel, IVariableState } from '../interfaces/i_variable_model.js';
|
|
12
12
|
import type { Workspace } from '../workspace.js';
|
|
13
|
-
import {
|
|
13
|
+
import type { VarBaseJson } from './events_var_base.js';
|
|
14
|
+
import { VarBase } from './events_var_base.js';
|
|
14
15
|
import { EventType } from './type.js';
|
|
15
16
|
/**
|
|
16
17
|
* Notifies listeners that a variable's type has changed.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
|
-
import { AbstractEventJson } from './events_abstract.js';
|
|
7
|
+
import type { AbstractEventJson } from './events_abstract.js';
|
|
8
8
|
import { UiBase } from './events_ui_base.js';
|
|
9
9
|
import { EventType } from './type.js';
|
|
10
10
|
/**
|
package/core/field.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type { IFocusableNode } from './interfaces/i_focusable_node.js';
|
|
|
16
16
|
import type { IFocusableTree } from './interfaces/i_focusable_tree.js';
|
|
17
17
|
import type { IKeyboardAccessible } from './interfaces/i_keyboard_accessible.js';
|
|
18
18
|
import type { IRegistrable } from './interfaces/i_registrable.js';
|
|
19
|
-
import { ISerializable } from './interfaces/i_serializable.js';
|
|
19
|
+
import type { ISerializable } from './interfaces/i_serializable.js';
|
|
20
20
|
import type { ConstantProvider } from './renderers/common/constants.js';
|
|
21
21
|
import type { KeyboardShortcut } from './shortcut_registry.js';
|
|
22
22
|
import * as Tooltip from './tooltip.js';
|
|
@@ -27,7 +27,7 @@ import { Size } from './utils/size.js';
|
|
|
27
27
|
* A function that is called to validate changes to the field's value before
|
|
28
28
|
* they are set.
|
|
29
29
|
*
|
|
30
|
-
* @see {@link https://
|
|
30
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
31
31
|
* @param newValue The value to be validated.
|
|
32
32
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
33
33
|
* or `undefined`.
|
|
@@ -494,7 +494,7 @@ export declare abstract class Field<T = any> implements IKeyboardAccessible, IRe
|
|
|
494
494
|
* at relevant times, such as when the parent block or renderer changes.
|
|
495
495
|
*
|
|
496
496
|
* See {@link
|
|
497
|
-
* https://
|
|
497
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/customizing-fields/creating/#matching-block-colours
|
|
498
498
|
* | the field documentation} for more information, or FieldDropdown for an
|
|
499
499
|
* example.
|
|
500
500
|
*/
|
|
@@ -660,7 +660,7 @@ export declare abstract class Field<T = any> implements IKeyboardAccessible, IRe
|
|
|
660
660
|
* it is valid for a subclass to return `undefined` if the new value is
|
|
661
661
|
* compatible with `T`.
|
|
662
662
|
*
|
|
663
|
-
* @see {@link https://
|
|
663
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
664
664
|
* @param newValue - The value to be validated.
|
|
665
665
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
666
666
|
* or `undefined`.
|
package/core/field_checkbox.d.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import type { FieldConfig, FieldValidator } from './field.js';
|
|
12
|
+
import { Field } from './field.js';
|
|
12
13
|
type BoolString = 'TRUE' | 'FALSE';
|
|
13
14
|
type CheckboxBool = BoolString | boolean;
|
|
14
15
|
/**
|
|
@@ -39,7 +40,7 @@ export declare class FieldCheckbox extends Field<CheckboxBool> {
|
|
|
39
40
|
* validated value ('TRUE' or 'FALSE'), or null to abort the change.
|
|
40
41
|
* @param config A map of options used to configure the field.
|
|
41
42
|
* See the [field creation documentation]{@link
|
|
42
|
-
* https://
|
|
43
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/checkbox/#creation}
|
|
43
44
|
* for a list of properties this parameter supports.
|
|
44
45
|
*/
|
|
45
46
|
constructor(value?: CheckboxBool | typeof Field.SKIP_SETUP, validator?: FieldCheckboxValidator, config?: FieldCheckboxConfig);
|
|
@@ -166,7 +167,7 @@ export interface FieldCheckboxFromJsonConfig extends FieldCheckboxConfig {
|
|
|
166
167
|
* A function that is called to validate changes to the field's value before
|
|
167
168
|
* they are set.
|
|
168
169
|
*
|
|
169
|
-
* @see {@link https://
|
|
170
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
170
171
|
* @param newValue The value to be validated.
|
|
171
172
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
172
173
|
* or `undefined`.
|
package/core/field_dropdown.d.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Copyright 2012 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import type { FieldConfig, FieldValidator } from './field.js';
|
|
7
|
+
import { Field } from './field.js';
|
|
7
8
|
import { Menu } from './menu.js';
|
|
8
9
|
import { MenuItem } from './menuitem.js';
|
|
9
10
|
/**
|
|
@@ -73,7 +74,7 @@ export declare class FieldDropdown extends Field<string> {
|
|
|
73
74
|
* change.
|
|
74
75
|
* @param config A map of options used to configure the field.
|
|
75
76
|
* See the [field creation documentation]{@link
|
|
76
|
-
* https://
|
|
77
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/dropdown/#creation}
|
|
77
78
|
* for a list of properties this parameter supports.
|
|
78
79
|
* @throws {TypeError} If `menuGenerator` options are incorrectly structured.
|
|
79
80
|
*/
|
|
@@ -343,7 +344,7 @@ export interface FieldDropdownFromJsonConfig extends FieldDropdownConfig {
|
|
|
343
344
|
* A function that is called to validate changes to the field's value before
|
|
344
345
|
* they are set.
|
|
345
346
|
*
|
|
346
|
-
* @see {@link https://
|
|
347
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
347
348
|
* @param newValue The value to be validated.
|
|
348
349
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
349
350
|
* or `undefined`.
|
package/core/field_image.d.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import type { FieldConfig } from './field.js';
|
|
12
|
+
import { Field } from './field.js';
|
|
12
13
|
/**
|
|
13
14
|
* Class for an image on a block.
|
|
14
15
|
*/
|
|
@@ -51,7 +52,7 @@ export declare class FieldImage extends Field<string> {
|
|
|
51
52
|
* @param flipRtl Whether to flip the icon in RTL.
|
|
52
53
|
* @param config A map of options used to configure the field.
|
|
53
54
|
* See the [field creation documentation]{@link
|
|
54
|
-
* https://
|
|
55
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/image/#creation}
|
|
55
56
|
* for a list of properties this parameter supports.
|
|
56
57
|
*/
|
|
57
58
|
constructor(src: string | typeof Field.SKIP_SETUP, width: string | number, height: string | number, alt?: string, onClick?: (p1: FieldImage) => void, flipRtl?: boolean, config?: FieldImageConfig);
|
package/core/field_input.d.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* Copyright 2012 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { FieldConfig, FieldValidator } from './field.js';
|
|
7
|
+
import { Field } from './field.js';
|
|
8
|
+
import type { Size } from './utils/size.js';
|
|
8
9
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
9
10
|
/**
|
|
10
11
|
* Supported types for FieldInput subclasses.
|
|
@@ -76,7 +77,7 @@ export declare abstract class FieldInput<T extends InputTypes> extends Field<str
|
|
|
76
77
|
* to abort the change.
|
|
77
78
|
* @param config A map of options used to configure the field.
|
|
78
79
|
* See the [field creation documentation]{@link
|
|
79
|
-
* https://
|
|
80
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/text-input/#creation}
|
|
80
81
|
* for a list of properties this parameter supports.
|
|
81
82
|
*/
|
|
82
83
|
constructor(value?: string | typeof Field.SKIP_SETUP, validator?: FieldInputValidator<T> | null, config?: FieldInputConfig);
|
|
@@ -219,8 +220,8 @@ export declare abstract class FieldInput<T extends InputTypes> extends Field<str
|
|
|
219
220
|
protected resizeEditor_(): void;
|
|
220
221
|
/**
|
|
221
222
|
* Handles repositioning the WidgetDiv used for input fields when the
|
|
222
|
-
* workspace is resized.
|
|
223
|
-
* position of the text input
|
|
223
|
+
* workspace is resized. Scrolls this field into view, then updates the
|
|
224
|
+
* position of the text input.
|
|
224
225
|
*
|
|
225
226
|
* @returns True for rendered workspaces, as we never want to hide the widget
|
|
226
227
|
* div.
|
|
@@ -300,7 +301,7 @@ export interface FieldInputConfig extends FieldConfig {
|
|
|
300
301
|
* A function that is called to validate changes to the field's value before
|
|
301
302
|
* they are set.
|
|
302
303
|
*
|
|
303
|
-
* @see {@link https://
|
|
304
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
304
305
|
* @param newValue The value to be validated.
|
|
305
306
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
306
307
|
* or `undefined`.
|
package/core/field_label.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @class
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import type { FieldConfig } from './field.js';
|
|
13
|
+
import { Field } from './field.js';
|
|
13
14
|
/**
|
|
14
15
|
* Class for a non-editable, non-serializable text field.
|
|
15
16
|
*/
|
|
@@ -33,7 +34,7 @@ export declare class FieldLabel extends Field<string> {
|
|
|
33
34
|
* @param textClass Optional CSS class for the field's text.
|
|
34
35
|
* @param config A map of options used to configure the field.
|
|
35
36
|
* See the [field creation documentation]{@link
|
|
36
|
-
* https://
|
|
37
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/label/#creation}
|
|
37
38
|
* for a list of properties this parameter supports.
|
|
38
39
|
*/
|
|
39
40
|
constructor(value?: string | typeof Field.SKIP_SETUP, textClass?: string, config?: FieldLabelConfig);
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @class
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import type { FieldLabelConfig, FieldLabelFromJsonConfig } from './field_label.js';
|
|
14
|
+
import { FieldLabel } from './field_label.js';
|
|
14
15
|
/**
|
|
15
16
|
* Class for a non-editable, serializable text field.
|
|
16
17
|
*/
|
|
@@ -32,7 +33,7 @@ export declare class FieldLabelSerializable extends FieldLabel {
|
|
|
32
33
|
* @param textClass Optional CSS class for the field's text.
|
|
33
34
|
* @param config A map of options used to configure the field.
|
|
34
35
|
* See the [field creation documentation]{@link
|
|
35
|
-
* https://
|
|
36
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/label-serializable/#creation}
|
|
36
37
|
* for a list of properties this parameter supports.
|
|
37
38
|
*/
|
|
38
39
|
constructor(value?: string, textClass?: string, config?: FieldLabelConfig);
|
package/core/field_number.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
11
|
import { Field } from './field.js';
|
|
12
|
-
import {
|
|
12
|
+
import type { FieldInputConfig, FieldInputValidator } from './field_input.js';
|
|
13
|
+
import { FieldInput } from './field_input.js';
|
|
13
14
|
/**
|
|
14
15
|
* Class for an editable number field.
|
|
15
16
|
*/
|
|
@@ -43,7 +44,7 @@ export declare class FieldNumber extends FieldInput<number> {
|
|
|
43
44
|
* to abort the change.
|
|
44
45
|
* @param config A map of options used to configure the field.
|
|
45
46
|
* See the [field creation documentation]{@link
|
|
46
|
-
* https://
|
|
47
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/number/#creation}
|
|
47
48
|
* for a list of properties this parameter supports.
|
|
48
49
|
*/
|
|
49
50
|
constructor(value?: string | number | typeof Field.SKIP_SETUP, min?: string | number | null, max?: string | number | null, precision?: string | number | null, validator?: FieldNumberValidator | null, config?: FieldNumberConfig);
|
|
@@ -189,7 +190,7 @@ export interface FieldNumberFromJsonConfig extends FieldNumberConfig {
|
|
|
189
190
|
* A function that is called to validate changes to the field's value before
|
|
190
191
|
* they are set.
|
|
191
192
|
*
|
|
192
|
-
* @see {@link https://
|
|
193
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
193
194
|
* @param newValue The value to be validated.
|
|
194
195
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
195
196
|
* or `undefined`.
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
|
-
import { Field } from './field.js';
|
|
12
|
-
import {
|
|
11
|
+
import type { Field } from './field.js';
|
|
12
|
+
import type { FieldInputConfig, FieldInputValidator } from './field_input.js';
|
|
13
|
+
import { FieldInput } from './field_input.js';
|
|
13
14
|
/**
|
|
14
15
|
* Class for an editable text field.
|
|
15
16
|
*/
|
|
@@ -25,7 +26,7 @@ export declare class FieldTextInput extends FieldInput<string> {
|
|
|
25
26
|
* to abort the change.
|
|
26
27
|
* @param config A map of options used to configure the field.
|
|
27
28
|
* See the [field creation documentation]{@link
|
|
28
|
-
* https://
|
|
29
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/text-input/#creation}
|
|
29
30
|
* for a list of properties this parameter supports.
|
|
30
31
|
*/
|
|
31
32
|
constructor(value?: string | typeof Field.SKIP_SETUP, validator?: FieldTextInputValidator | null, config?: FieldTextInputConfig);
|
|
@@ -72,7 +73,7 @@ export interface FieldTextInputFromJsonConfig extends FieldTextInputConfig {
|
|
|
72
73
|
* A function that is called to validate changes to the field's value before
|
|
73
74
|
* they are set.
|
|
74
75
|
*
|
|
75
|
-
* @see {@link https://
|
|
76
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
76
77
|
* @param newValue The value to be validated.
|
|
77
78
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
78
79
|
* or `undefined`.
|
package/core/field_variable.d.ts
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
11
|
import type { Block } from './block.js';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import type { FieldConfig } from './field.js';
|
|
13
|
+
import { Field } from './field.js';
|
|
14
|
+
import type { FieldDropdownValidator, MenuGenerator, MenuOption } from './field_dropdown.js';
|
|
15
|
+
import { FieldDropdown } from './field_dropdown.js';
|
|
16
|
+
import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
|
|
15
17
|
import type { Menu } from './menu.js';
|
|
16
18
|
import type { MenuItem } from './menuitem.js';
|
|
17
19
|
/**
|
|
@@ -51,7 +53,7 @@ export declare class FieldVariable extends FieldDropdown {
|
|
|
51
53
|
* is not provided.
|
|
52
54
|
* @param config A map of options used to configure the field.
|
|
53
55
|
* See the [field creation documentation]{@link
|
|
54
|
-
* https://
|
|
56
|
+
* https://docs.blockly.com/guides/create-custom-blocks/fields/built-in-fields/variable/#creation}
|
|
55
57
|
* for a list of properties this parameter supports.
|
|
56
58
|
*/
|
|
57
59
|
constructor(varName: string | null | typeof Field.SKIP_SETUP, validator?: FieldVariableValidator, variableTypes?: string[] | null, defaultType?: string, config?: FieldVariableConfig);
|
|
@@ -254,7 +256,7 @@ export interface FieldVariableFromJsonConfig extends FieldVariableConfig {
|
|
|
254
256
|
* A function that is called to validate changes to the field's value before
|
|
255
257
|
* they are set.
|
|
256
258
|
*
|
|
257
|
-
* @see {@link https://
|
|
259
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/fields/validators/#return-values}
|
|
258
260
|
* @param newValue The value to be validated.
|
|
259
261
|
* @returns One of three instructions for setting the new value: `T`, `null`,
|
|
260
262
|
* or `undefined`.
|
package/core/flyout_base.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DeleteArea } from './delete_area.js';
|
|
7
7
|
import { FlyoutItem } from './flyout_item.js';
|
|
8
|
-
import { IAutoHideable } from './interfaces/i_autohideable.js';
|
|
8
|
+
import type { IAutoHideable } from './interfaces/i_autohideable.js';
|
|
9
9
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
10
10
|
import type { IFlyoutInflater } from './interfaces/i_flyout_inflater.js';
|
|
11
11
|
import type { Options } from './options.js';
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
11
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
12
|
-
import { ContainerRegion
|
|
12
|
+
import type { ContainerRegion } from './metrics_manager.js';
|
|
13
|
+
import { MetricsManager } from './metrics_manager.js';
|
|
13
14
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
14
15
|
/**
|
|
15
16
|
* Calculates metrics for a flyout's workspace.
|
package/core/generator.d.ts
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* @class
|
|
11
11
|
*/
|
|
12
12
|
import type { Block } from './block.js';
|
|
13
|
-
import { Names } from './names.js';
|
|
13
|
+
import type { Names } from './names.js';
|
|
14
14
|
import type { Workspace } from './workspace.js';
|
|
15
15
|
/**
|
|
16
16
|
* Deprecated, no-longer used type declaration for per-block-type generator
|
|
17
17
|
* functions.
|
|
18
18
|
*
|
|
19
19
|
* @deprecated
|
|
20
|
-
* @see {@link https://
|
|
20
|
+
* @see {@link https://docs.blockly.com/guides/create-custom-blocks/code-generation/overview/#block-code-generators}
|
|
21
21
|
* @param block The Block instance to generate code for.
|
|
22
22
|
* @param generator The CodeGenerator calling the function.
|
|
23
23
|
* @returns A string containing the generated code (for statement blocks),
|
package/core/gesture.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from './block_svg.js';
|
|
7
|
-
import { RenderedWorkspaceComment } from './comments.js';
|
|
7
|
+
import type { RenderedWorkspaceComment } from './comments.js';
|
|
8
8
|
import type { Field } from './field.js';
|
|
9
9
|
import type { IBubble } from './interfaces/i_bubble.js';
|
|
10
|
-
import { IDragger } from './interfaces/i_dragger.js';
|
|
10
|
+
import type { IDragger } from './interfaces/i_dragger.js';
|
|
11
11
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
12
12
|
import type { IIcon } from './interfaces/i_icon.js';
|
|
13
13
|
import { Coordinate } from './utils/coordinate.js';
|
package/core/grid.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @class
|
|
11
11
|
*/
|
|
12
|
-
import { GridOptions } from './options.js';
|
|
12
|
+
import type { GridOptions } from './options.js';
|
|
13
13
|
import { Coordinate } from './utils/coordinate.js';
|
|
14
14
|
/**
|
|
15
15
|
* Class for a workspace's grid.
|
|
@@ -26,7 +26,7 @@ export declare class Grid {
|
|
|
26
26
|
* @param pattern The grid's SVG pattern, created during injection.
|
|
27
27
|
* @param options A dictionary of normalized options for the grid.
|
|
28
28
|
* See grid documentation:
|
|
29
|
-
* https://
|
|
29
|
+
* https://docs.blockly.com/guides/configure/grid/
|
|
30
30
|
*/
|
|
31
31
|
constructor(pattern: SVGElement, options: GridOptions);
|
|
32
32
|
/**
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Copyright 2023 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { ICommentIcon } from '../interfaces/i_comment_icon.js';
|
|
7
|
-
import { IIcon } from '../interfaces/i_icon.js';
|
|
8
|
-
import { MutatorIcon } from './mutator_icon.js';
|
|
9
|
-
import { WarningIcon } from './warning_icon.js';
|
|
6
|
+
import type { ICommentIcon } from '../interfaces/i_comment_icon.js';
|
|
7
|
+
import type { IIcon } from '../interfaces/i_icon.js';
|
|
8
|
+
import type { MutatorIcon } from './mutator_icon.js';
|
|
9
|
+
import type { WarningIcon } from './warning_icon.js';
|
|
10
10
|
/**
|
|
11
11
|
* Defines the type of an icon, so that it can be retrieved from block.getIcon
|
|
12
12
|
*/
|
package/core/icons/registry.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Block } from '../block.js';
|
|
7
7
|
import type { IIcon } from '../interfaces/i_icon.js';
|
|
8
|
-
import { IconType } from './icon_types.js';
|
|
8
|
+
import type { IconType } from './icon_types.js';
|
|
9
9
|
/**
|
|
10
10
|
* Registers the given icon so that it can be deserialized.
|
|
11
11
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2026 Raspberry Pi Foundation
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { RenderedConnection } from './rendered_connection.js';
|
|
6
|
+
import type { RenderedConnection } from './rendered_connection.js';
|
|
7
7
|
import { Size } from './utils/size.js';
|
|
8
8
|
/**
|
|
9
9
|
* Visual representation of a mid-drag block if it were to be connected.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright 2024 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { BlockSvg } from './block_svg.js';
|
|
7
|
-
import { IConnectionPreviewer } from './interfaces/i_connection_previewer.js';
|
|
8
|
-
import { RenderedConnection } from './rendered_connection.js';
|
|
6
|
+
import type { BlockSvg } from './block_svg.js';
|
|
7
|
+
import type { IConnectionPreviewer } from './interfaces/i_connection_previewer.js';
|
|
8
|
+
import type { RenderedConnection } from './rendered_connection.js';
|
|
9
9
|
import * as blocks from './serialization/blocks.js';
|
|
10
10
|
export declare class InsertionMarkerPreviewer implements IConnectionPreviewer {
|
|
11
11
|
private readonly workspace;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { Coordinate } from '../utils/coordinate.js';
|
|
7
|
-
import { IBoundedElement } from './i_bounded_element.js';
|
|
7
|
+
import type { IBoundedElement } from './i_bounded_element.js';
|
|
8
8
|
import type { IContextMenu } from './i_contextmenu.js';
|
|
9
9
|
import type { IDraggable } from './i_draggable.js';
|
|
10
|
-
import { ISelectable } from './i_selectable.js';
|
|
10
|
+
import type { ISelectable } from './i_selectable.js';
|
|
11
11
|
/**
|
|
12
12
|
* A bubble interface.
|
|
13
13
|
*/
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Copyright 2024 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CommentState } from '../icons/comment_icon.js';
|
|
7
|
-
import { Coordinate } from '../utils/coordinate.js';
|
|
8
|
-
import { Size } from '../utils/size.js';
|
|
9
|
-
import { IHasBubble } from './i_has_bubble.js';
|
|
10
|
-
import { IIcon } from './i_icon.js';
|
|
11
|
-
import { ISerializable } from './i_serializable.js';
|
|
6
|
+
import type { CommentState } from '../icons/comment_icon.js';
|
|
7
|
+
import type { Coordinate } from '../utils/coordinate.js';
|
|
8
|
+
import type { Size } from '../utils/size.js';
|
|
9
|
+
import type { IHasBubble } from './i_has_bubble.js';
|
|
10
|
+
import type { IIcon } from './i_icon.js';
|
|
11
|
+
import type { ISerializable } from './i_serializable.js';
|
|
12
12
|
export interface ICommentIcon extends IIcon, IHasBubble, ISerializable {
|
|
13
13
|
setText(text: string): void;
|
|
14
14
|
getText(): string;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Rect } from '../utils/rect.js';
|
|
6
|
+
import type { Rect } from '../utils/rect.js';
|
|
7
7
|
import type { IComponent } from './i_component.js';
|
|
8
|
-
import { IDraggable } from './i_draggable.js';
|
|
8
|
+
import type { IDraggable } from './i_draggable.js';
|
|
9
9
|
/**
|
|
10
10
|
* Interface for a component with custom behaviour when a block or bubble is
|
|
11
11
|
* dragged over or dropped on top of it.
|