blockly 9.3.0-beta.0 → 9.3.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.
Files changed (282) hide show
  1. package/blockly.min.js +1674 -1520
  2. package/blockly_compressed.js +1313 -1152
  3. package/blockly_compressed.js.map +1 -1
  4. package/blocks_compressed.js +166 -173
  5. package/blocks_compressed.js.map +1 -1
  6. package/core/any_aliases.d.ts +5 -0
  7. package/core/block.d.ts +49 -17
  8. package/core/block_animations.d.ts +0 -4
  9. package/core/block_drag_surface.d.ts +135 -0
  10. package/core/block_dragger.d.ts +2 -7
  11. package/core/block_svg.d.ts +72 -9
  12. package/core/blockly.d.ts +29 -58
  13. package/core/blockly_options.d.ts +0 -2
  14. package/core/blocks.d.ts +0 -2
  15. package/core/browser_events.d.ts +0 -9
  16. package/core/bubble.d.ts +6 -4
  17. package/core/bubble_dragger.d.ts +2 -3
  18. package/core/bump_objects.d.ts +0 -3
  19. package/core/clipboard.d.ts +0 -3
  20. package/core/comment.d.ts +6 -10
  21. package/core/common.d.ts +0 -12
  22. package/core/component_manager.d.ts +0 -2
  23. package/core/connection.d.ts +19 -6
  24. package/core/connection_checker.d.ts +1 -3
  25. package/core/connection_db.d.ts +0 -2
  26. package/core/connection_type.d.ts +0 -2
  27. package/core/constants.d.ts +0 -4
  28. package/core/contextmenu.d.ts +0 -11
  29. package/core/contextmenu_items.d.ts +0 -27
  30. package/core/contextmenu_registry.d.ts +0 -2
  31. package/core/css.d.ts +0 -2
  32. package/core/delete_area.d.ts +0 -2
  33. package/core/dialog.d.ts +0 -6
  34. package/core/drag_target.d.ts +0 -2
  35. package/core/events/events_abstract.d.ts +0 -3
  36. package/core/events/events_block_base.d.ts +0 -2
  37. package/core/events/events_block_change.d.ts +0 -2
  38. package/core/events/events_block_create.d.ts +0 -2
  39. package/core/events/events_block_delete.d.ts +0 -2
  40. package/core/events/events_block_drag.d.ts +0 -2
  41. package/core/events/events_block_move.d.ts +0 -2
  42. package/core/events/events_bubble_open.d.ts +0 -2
  43. package/core/events/events_click.d.ts +0 -2
  44. package/core/events/events_comment_base.d.ts +0 -2
  45. package/core/events/events_comment_change.d.ts +0 -2
  46. package/core/events/events_comment_create.d.ts +0 -2
  47. package/core/events/events_comment_delete.d.ts +0 -2
  48. package/core/events/events_comment_move.d.ts +0 -2
  49. package/core/events/events_marker_move.d.ts +0 -2
  50. package/core/events/events_selected.d.ts +0 -2
  51. package/core/events/events_theme_change.d.ts +0 -2
  52. package/core/events/events_toolbox_item_select.d.ts +0 -2
  53. package/core/events/events_trashcan_open.d.ts +0 -2
  54. package/core/events/events_ui.d.ts +0 -1
  55. package/core/events/events_ui_base.d.ts +0 -2
  56. package/core/events/events_var_base.d.ts +0 -2
  57. package/core/events/events_var_create.d.ts +0 -2
  58. package/core/events/events_viewport.d.ts +0 -2
  59. package/core/events/utils.d.ts +0 -73
  60. package/core/events/workspace_events.d.ts +0 -2
  61. package/core/extensions.d.ts +0 -8
  62. package/core/field.d.ts +16 -15
  63. package/core/field_angle.d.ts +60 -50
  64. package/core/field_checkbox.d.ts +22 -10
  65. package/core/field_colour.d.ts +55 -42
  66. package/core/field_dropdown.d.ts +34 -18
  67. package/core/field_image.d.ts +9 -12
  68. package/core/field_input.d.ts +34 -11
  69. package/core/field_label.d.ts +7 -10
  70. package/core/field_label_serializable.d.ts +4 -6
  71. package/core/field_multilineinput.d.ts +34 -12
  72. package/core/field_number.d.ts +27 -19
  73. package/core/field_registry.d.ts +0 -3
  74. package/core/field_textinput.d.ts +28 -12
  75. package/core/field_variable.d.ts +28 -16
  76. package/core/flyout_base.d.ts +5 -6
  77. package/core/flyout_button.d.ts +2 -2
  78. package/core/flyout_horizontal.d.ts +0 -2
  79. package/core/flyout_metrics_manager.d.ts +0 -2
  80. package/core/flyout_vertical.d.ts +0 -2
  81. package/core/generator.d.ts +0 -1
  82. package/core/gesture.d.ts +4 -17
  83. package/core/grid.d.ts +0 -2
  84. package/core/icon.d.ts +0 -2
  85. package/core/inject.d.ts +0 -1
  86. package/core/input.d.ts +0 -3
  87. package/core/input_types.d.ts +0 -2
  88. package/core/insertion_marker_manager.d.ts +6 -6
  89. package/core/interfaces/i_ast_node_location.d.ts +0 -2
  90. package/core/interfaces/i_ast_node_location_svg.d.ts +0 -2
  91. package/core/interfaces/i_ast_node_location_with_block.d.ts +0 -2
  92. package/core/interfaces/i_autohideable.d.ts +0 -2
  93. package/core/interfaces/i_block_dragger.d.ts +1 -3
  94. package/core/interfaces/i_bounded_element.d.ts +0 -2
  95. package/core/interfaces/i_bubble.d.ts +6 -4
  96. package/core/interfaces/i_collapsible_toolbox_item.d.ts +0 -2
  97. package/core/interfaces/i_component.d.ts +0 -2
  98. package/core/interfaces/i_connection_checker.d.ts +0 -2
  99. package/core/interfaces/i_contextmenu.d.ts +0 -1
  100. package/core/interfaces/i_copyable.d.ts +3 -2
  101. package/core/interfaces/i_deletable.d.ts +0 -2
  102. package/core/interfaces/i_delete_area.d.ts +0 -2
  103. package/core/interfaces/i_drag_target.d.ts +0 -2
  104. package/core/interfaces/i_draggable.d.ts +0 -2
  105. package/core/interfaces/i_flyout.d.ts +0 -2
  106. package/core/interfaces/i_keyboard_accessible.d.ts +0 -2
  107. package/core/interfaces/i_legacy_procedure_blocks.d.ts +34 -0
  108. package/core/interfaces/i_metrics_manager.d.ts +0 -2
  109. package/core/interfaces/i_movable.d.ts +0 -2
  110. package/core/interfaces/i_positionable.d.ts +0 -2
  111. package/core/interfaces/i_procedure_model.d.ts +0 -5
  112. package/core/interfaces/i_registrable.d.ts +0 -2
  113. package/core/interfaces/i_selectable.d.ts +0 -2
  114. package/core/interfaces/i_selectable_toolbox_item.d.ts +4 -2
  115. package/core/interfaces/i_serializer.d.ts +0 -2
  116. package/core/interfaces/i_styleable.d.ts +0 -2
  117. package/core/interfaces/i_toolbox.d.ts +0 -2
  118. package/core/interfaces/i_toolbox_item.d.ts +0 -2
  119. package/core/interfaces/i_variable_backed_parameter_model.d.ts +17 -0
  120. package/core/internal_constants.d.ts +0 -5
  121. package/core/keyboard_nav/ast_node.d.ts +0 -3
  122. package/core/keyboard_nav/basic_cursor.d.ts +0 -3
  123. package/core/keyboard_nav/cursor.d.ts +0 -3
  124. package/core/keyboard_nav/marker.d.ts +0 -2
  125. package/core/keyboard_nav/tab_navigate_cursor.d.ts +0 -2
  126. package/core/marker_manager.d.ts +0 -2
  127. package/core/menu.d.ts +0 -2
  128. package/core/menuitem.d.ts +0 -2
  129. package/core/metrics_manager.d.ts +0 -2
  130. package/core/mutator.d.ts +0 -2
  131. package/core/names.d.ts +0 -3
  132. package/core/options.d.ts +0 -2
  133. package/core/positionable_helpers.d.ts +0 -7
  134. package/core/procedures.d.ts +2 -25
  135. package/core/registry.d.ts +0 -11
  136. package/core/render_management.d.ts +15 -0
  137. package/core/rendered_connection.d.ts +22 -9
  138. package/core/renderers/common/block_rendering.d.ts +0 -3
  139. package/core/renderers/common/constants.d.ts +6 -51
  140. package/core/renderers/common/debug.d.ts +0 -3
  141. package/core/renderers/common/debugger.d.ts +9 -23
  142. package/core/renderers/common/drawer.d.ts +0 -5
  143. package/core/renderers/common/i_path_object.d.ts +0 -17
  144. package/core/renderers/common/info.d.ts +2 -12
  145. package/core/renderers/common/marker_svg.d.ts +2 -4
  146. package/core/renderers/common/path_object.d.ts +0 -24
  147. package/core/renderers/common/renderer.d.ts +5 -20
  148. package/core/renderers/geras/constants.d.ts +0 -5
  149. package/core/renderers/geras/drawer.d.ts +2 -4
  150. package/core/renderers/geras/highlight_constants.d.ts +6 -17
  151. package/core/renderers/geras/highlighter.d.ts +0 -13
  152. package/core/renderers/geras/info.d.ts +2 -5
  153. package/core/renderers/geras/measurables/inline_input.d.ts +0 -3
  154. package/core/renderers/geras/measurables/statement_input.d.ts +0 -3
  155. package/core/renderers/geras/path_object.d.ts +0 -8
  156. package/core/renderers/geras/renderer.d.ts +5 -7
  157. package/core/renderers/measurables/base.d.ts +0 -3
  158. package/core/renderers/measurables/bottom_row.d.ts +0 -9
  159. package/core/renderers/measurables/connection.d.ts +0 -3
  160. package/core/renderers/measurables/external_value_input.d.ts +0 -3
  161. package/core/renderers/measurables/field.d.ts +0 -3
  162. package/core/renderers/measurables/hat.d.ts +0 -3
  163. package/core/renderers/measurables/icon.d.ts +2 -5
  164. package/core/renderers/measurables/in_row_spacer.d.ts +0 -3
  165. package/core/renderers/measurables/inline_input.d.ts +1 -4
  166. package/core/renderers/measurables/input_connection.d.ts +1 -4
  167. package/core/renderers/measurables/input_row.d.ts +0 -7
  168. package/core/renderers/measurables/jagged_edge.d.ts +2 -5
  169. package/core/renderers/measurables/next_connection.d.ts +0 -3
  170. package/core/renderers/measurables/output_connection.d.ts +0 -3
  171. package/core/renderers/measurables/previous_connection.d.ts +0 -3
  172. package/core/renderers/measurables/round_corner.d.ts +0 -3
  173. package/core/renderers/measurables/row.d.ts +0 -39
  174. package/core/renderers/measurables/spacer_row.d.ts +0 -3
  175. package/core/renderers/measurables/square_corner.d.ts +0 -3
  176. package/core/renderers/measurables/statement_input.d.ts +0 -3
  177. package/core/renderers/measurables/top_row.d.ts +0 -6
  178. package/core/renderers/measurables/types.d.ts +0 -31
  179. package/core/renderers/minimalist/constants.d.ts +2 -4
  180. package/core/renderers/minimalist/drawer.d.ts +0 -3
  181. package/core/renderers/minimalist/info.d.ts +0 -4
  182. package/core/renderers/minimalist/renderer.d.ts +0 -3
  183. package/core/renderers/thrasos/info.d.ts +0 -4
  184. package/core/renderers/thrasos/renderer.d.ts +3 -3
  185. package/core/renderers/zelos/constants.d.ts +3 -17
  186. package/core/renderers/zelos/drawer.d.ts +0 -3
  187. package/core/renderers/zelos/info.d.ts +0 -4
  188. package/core/renderers/zelos/marker_svg.d.ts +0 -2
  189. package/core/renderers/zelos/measurables/bottom_row.d.ts +0 -3
  190. package/core/renderers/zelos/measurables/inputs.d.ts +0 -3
  191. package/core/renderers/zelos/measurables/row_elements.d.ts +0 -3
  192. package/core/renderers/zelos/measurables/top_row.d.ts +0 -3
  193. package/core/renderers/zelos/path_object.d.ts +0 -9
  194. package/core/renderers/zelos/renderer.d.ts +3 -5
  195. package/core/scrollbar.d.ts +0 -2
  196. package/core/scrollbar_pair.d.ts +0 -2
  197. package/core/serialization/blocks.d.ts +3 -9
  198. package/core/serialization/exceptions.d.ts +0 -8
  199. package/core/serialization/priorities.d.ts +0 -4
  200. package/core/serialization/registry.d.ts +0 -2
  201. package/core/serialization/variables.d.ts +0 -4
  202. package/core/serialization/workspaces.d.ts +0 -2
  203. package/core/shortcut_items.d.ts +0 -17
  204. package/core/shortcut_registry.d.ts +0 -2
  205. package/core/sprites.d.ts +0 -2
  206. package/core/theme/classic.d.ts +0 -2
  207. package/core/theme/zelos.d.ts +0 -2
  208. package/core/theme.d.ts +0 -2
  209. package/core/theme_manager.d.ts +3 -6
  210. package/core/toolbox/category.d.ts +5 -7
  211. package/core/toolbox/collapsible_category.d.ts +0 -4
  212. package/core/toolbox/separator.d.ts +0 -2
  213. package/core/toolbox/toolbox.d.ts +2 -5
  214. package/core/toolbox/toolbox_item.d.ts +0 -2
  215. package/core/tooltip.d.ts +0 -29
  216. package/core/touch.d.ts +0 -13
  217. package/core/trashcan.d.ts +0 -2
  218. package/core/utils/aria.d.ts +0 -6
  219. package/core/utils/array.d.ts +0 -1
  220. package/core/utils/colour.d.ts +0 -12
  221. package/core/utils/coordinate.d.ts +0 -2
  222. package/core/utils/deprecation.d.ts +0 -1
  223. package/core/utils/dom.d.ts +0 -25
  224. package/core/utils/idgenerator.d.ts +0 -2
  225. package/core/utils/keycodes.d.ts +0 -2
  226. package/core/utils/math.d.ts +0 -3
  227. package/core/utils/metrics.d.ts +0 -1
  228. package/core/utils/object.d.ts +0 -4
  229. package/core/utils/parsing.d.ts +0 -4
  230. package/core/utils/rect.d.ts +0 -2
  231. package/core/utils/size.d.ts +0 -2
  232. package/core/utils/string.d.ts +0 -6
  233. package/core/utils/style.d.ts +0 -8
  234. package/core/utils/svg.d.ts +0 -2
  235. package/core/utils/svg_math.d.ts +0 -6
  236. package/core/utils/svg_paths.d.ts +0 -8
  237. package/core/utils/toolbox.d.ts +2 -35
  238. package/core/utils/useragent.d.ts +0 -8
  239. package/core/utils/xml.d.ts +9 -8
  240. package/core/utils.d.ts +0 -12
  241. package/core/variable_map.d.ts +1 -3
  242. package/core/variable_model.d.ts +0 -1
  243. package/core/variables.d.ts +13 -17
  244. package/core/variables_dynamic.d.ts +0 -4
  245. package/core/warning.d.ts +0 -2
  246. package/core/widgetdiv.d.ts +0 -10
  247. package/core/workspace.d.ts +3 -3
  248. package/core/workspace_audio.d.ts +0 -2
  249. package/core/workspace_comment.d.ts +1 -3
  250. package/core/workspace_comment_svg.d.ts +16 -5
  251. package/core/workspace_drag_surface_svg.d.ts +74 -0
  252. package/core/workspace_dragger.d.ts +3 -2
  253. package/core/workspace_svg.d.ts +48 -8
  254. package/core/xml.d.ts +1 -13
  255. package/core/zoom_controls.d.ts +4 -15
  256. package/dart_compressed.js +199 -199
  257. package/dart_compressed.js.map +1 -1
  258. package/javascript_compressed.js +168 -168
  259. package/javascript_compressed.js.map +1 -1
  260. package/lua_compressed.js +211 -211
  261. package/lua_compressed.js.map +1 -1
  262. package/msg/bn.js +2 -2
  263. package/msg/bs.js +7 -7
  264. package/msg/de.js +1 -1
  265. package/msg/fi.js +1 -1
  266. package/msg/fr.js +3 -3
  267. package/msg/ia.js +5 -5
  268. package/msg/kn.js +5 -5
  269. package/msg/ko.js +1 -1
  270. package/msg/lb.js +22 -22
  271. package/msg/sd.js +9 -9
  272. package/msg/skr-arab.js +2 -2
  273. package/msg/sl.js +18 -18
  274. package/msg/sw.js +1 -1
  275. package/msg/zh-hans.js +6 -6
  276. package/msg/zh-hant.js +2 -2
  277. package/package.json +6 -6
  278. package/php_compressed.js +185 -185
  279. package/php_compressed.js.map +1 -1
  280. package/python_compressed.js +138 -138
  281. package/python_compressed.js.map +1 -1
  282. package/core/utils/sentinel.d.ts +0 -18
@@ -5,14 +5,12 @@
5
5
  */
6
6
  import type { Block } from '../block.js';
7
7
  import type { State } from './blocks.js';
8
- /** @alias Blockly.serialization.exceptions.DeserializationError */
9
8
  export declare class DeserializationError extends Error {
10
9
  }
11
10
  /**
12
11
  * Represents an error where the serialized state is expected to provide a
13
12
  * block type, but it is not provided.
14
13
  *
15
- * @alias Blockly.serialization.exceptions.MissingBlockType
16
14
  */
17
15
  export declare class MissingBlockType extends DeserializationError {
18
16
  state: State;
@@ -25,8 +23,6 @@ export declare class MissingBlockType extends DeserializationError {
25
23
  /**
26
24
  * Represents an error where deserialization encountered a block that did
27
25
  * not have a connection that was defined in the serialized state.
28
- *
29
- * @alias Blockly.serialization.exceptions.MissingConnection
30
26
  */
31
27
  export declare class MissingConnection extends DeserializationError {
32
28
  block: Block;
@@ -43,8 +39,6 @@ export declare class MissingConnection extends DeserializationError {
43
39
  /**
44
40
  * Represents an error where deserialization tried to connect two connections
45
41
  * that were not compatible.
46
- *
47
- * @alias Blockly.serialization.exceptions.BadConnectionCheck
48
42
  */
49
43
  export declare class BadConnectionCheck extends DeserializationError {
50
44
  childBlock: Block;
@@ -64,8 +58,6 @@ export declare class BadConnectionCheck extends DeserializationError {
64
58
  * was deserializing children of a shadow.
65
59
  * This is an error because it is an invariant of Blockly that shadow blocks
66
60
  * do not have real children.
67
- *
68
- * @alias Blockly.serialization.exceptions.RealChildOfShadow
69
61
  */
70
62
  export declare class RealChildOfShadow extends DeserializationError {
71
63
  state: State;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * The priority for deserializing variables.
8
- *
9
- * @alias Blockly.serialization.priorities.VARIABLES
10
8
  */
11
9
  export declare const VARIABLES = 100;
12
10
  /**
@@ -15,8 +13,6 @@ export declare const VARIABLES = 100;
15
13
  export declare const PROCEDURES = 75;
16
14
  /**
17
15
  * The priority for deserializing blocks.
18
- *
19
- * @alias Blockly.serialization.priorities.BLOCKS
20
16
  */
21
17
  export declare const BLOCKS = 50;
22
18
  //# sourceMappingURL=priorities.d.ts.map
@@ -10,14 +10,12 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
10
10
  *
11
11
  * @param name The name of the serializer to register.
12
12
  * @param serializer The serializer to register.
13
- * @alias Blockly.serialization.registry.register
14
13
  */
15
14
  export declare function register(name: string, serializer: ISerializer): void;
16
15
  /**
17
16
  * Unregisters the serializer associated with the given name.
18
17
  *
19
18
  * @param name The name of the serializer to unregister.
20
- * @alias Blockly.serialization.registry.unregister
21
19
  */
22
20
  export declare function unregister(name: string): void;
23
21
  //# sourceMappingURL=registry.d.ts.map
@@ -7,8 +7,6 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
7
7
  import type { Workspace } from '../workspace.js';
8
8
  /**
9
9
  * Represents the state of a given variable.
10
- *
11
- * @alias Blockly.serialization.variables.State
12
10
  */
13
11
  export interface State {
14
12
  name: string;
@@ -17,8 +15,6 @@ export interface State {
17
15
  }
18
16
  /**
19
17
  * Serializer for saving and loading variable state.
20
- *
21
- * @alias Blockly.serialization.variables.VariableSerializer
22
18
  */
23
19
  export declare class VariableSerializer implements ISerializer {
24
20
  priority: number;
@@ -9,7 +9,6 @@ import type { Workspace } from '../workspace.js';
9
9
  *
10
10
  * @param workspace The workspace to serialize.
11
11
  * @returns The serialized state of the workspace.
12
- * @alias Blockly.serialization.workspaces.save
13
12
  */
14
13
  export declare function save(workspace: Workspace): {
15
14
  [key: string]: any;
@@ -21,7 +20,6 @@ export declare function save(workspace: Workspace): {
21
20
  * @param workspace The workspace to add the new state to.
22
21
  * @param param1 recordUndo: If true, events triggered by this function will be
23
22
  * undo-able by the user. False by default.
24
- * @alias Blockly.serialization.workspaces.load
25
23
  */
26
24
  export declare function load(state: {
27
25
  [key: string]: any;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * Object holding the names of the default shortcut items.
8
- *
9
- * @alias Blockly.ShortcutItems.names
10
8
  */
11
9
  export declare enum names {
12
10
  ESCAPE = "escape",
@@ -19,52 +17,37 @@ export declare enum names {
19
17
  }
20
18
  /**
21
19
  * Keyboard shortcut to hide chaff on escape.
22
- *
23
- * @alias Blockly.ShortcutItems.registerEscape
24
20
  */
25
21
  export declare function registerEscape(): void;
26
22
  /**
27
23
  * Keyboard shortcut to delete a block on delete or backspace
28
- *
29
- * @alias Blockly.ShortcutItems.registerDelete
30
24
  */
31
25
  export declare function registerDelete(): void;
32
26
  /**
33
27
  * Keyboard shortcut to copy a block on ctrl+c, cmd+c, or alt+c.
34
- *
35
- * @alias Blockly.ShortcutItems.registerCopy
36
28
  */
37
29
  export declare function registerCopy(): void;
38
30
  /**
39
31
  * Keyboard shortcut to copy and delete a block on ctrl+x, cmd+x, or alt+x.
40
- *
41
- * @alias Blockly.ShortcutItems.registerCut
42
32
  */
43
33
  export declare function registerCut(): void;
44
34
  /**
45
35
  * Keyboard shortcut to paste a block on ctrl+v, cmd+v, or alt+v.
46
- *
47
- * @alias Blockly.ShortcutItems.registerPaste
48
36
  */
49
37
  export declare function registerPaste(): void;
50
38
  /**
51
39
  * Keyboard shortcut to undo the previous action on ctrl+z, cmd+z, or alt+z.
52
- *
53
- * @alias Blockly.ShortcutItems.registerUndo
54
40
  */
55
41
  export declare function registerUndo(): void;
56
42
  /**
57
43
  * Keyboard shortcut to redo the previous action on ctrl+shift+z, cmd+shift+z,
58
44
  * or alt+shift+z.
59
- *
60
- * @alias Blockly.ShortcutItems.registerRedo
61
45
  */
62
46
  export declare function registerRedo(): void;
63
47
  /**
64
48
  * Registers all default keyboard shortcut item. This should be called once per
65
49
  * instance of KeyboardShortcutRegistry.
66
50
  *
67
- * @alias Blockly.ShortcutItems.registerDefaultShortcuts
68
51
  * @internal
69
52
  */
70
53
  export declare function registerDefaultShortcuts(): void;
@@ -9,8 +9,6 @@ import type { Workspace } from './workspace.js';
9
9
  * Class for the registry of keyboard shortcuts. This is intended to be a
10
10
  * singleton. You should not create a new instance, and only access this class
11
11
  * from ShortcutRegistry.registry.
12
- *
13
- * @alias Blockly.ShortcutRegistry
14
12
  */
15
13
  export declare class ShortcutRegistry {
16
14
  static readonly registry: ShortcutRegistry;
package/core/sprites.d.ts CHANGED
@@ -6,8 +6,6 @@
6
6
  /**
7
7
  * Contains the path to a single png tat holds the images for the trashcan
8
8
  * as well as the zoom controls.
9
- *
10
- * @alias Blockly.sprite.SPRITE
11
9
  */
12
10
  export declare const SPRITE: {
13
11
  width: number;
@@ -7,8 +7,6 @@ import { Theme } from '../theme.js';
7
7
  /**
8
8
  * Classic theme.
9
9
  * Contains multi-coloured border to create shadow effect.
10
- *
11
- * @alias Blockly.Themes.Classic
12
10
  */
13
11
  export declare const Classic: Theme;
14
12
  //# sourceMappingURL=classic.d.ts.map
@@ -6,8 +6,6 @@
6
6
  import { Theme } from '../theme.js';
7
7
  /**
8
8
  * Zelos theme.
9
- *
10
- * @alias Blockly.Themes.Zelos
11
9
  */
12
10
  export declare const Zelos: Theme;
13
11
  //# sourceMappingURL=zelos.d.ts.map
package/core/theme.d.ts CHANGED
@@ -18,8 +18,6 @@ export interface ITheme {
18
18
  }
19
19
  /**
20
20
  * Class for a theme.
21
- *
22
- * @alias Blockly.Theme
23
21
  */
24
22
  export declare class Theme implements ITheme {
25
23
  name: string;
@@ -8,8 +8,6 @@ import type { Workspace } from './workspace.js';
8
8
  import type { WorkspaceSvg } from './workspace_svg.js';
9
9
  /**
10
10
  * Class for storing and updating a workspace's theme and UI components.
11
- *
12
- * @alias Blockly.ThemeManager
13
11
  */
14
12
  export declare class ThemeManager {
15
13
  private readonly workspace;
@@ -17,7 +15,6 @@ export declare class ThemeManager {
17
15
  /** A list of workspaces that are subscribed to this theme. */
18
16
  private subscribedWorkspaces_;
19
17
  private componentDB;
20
- owner_: any;
21
18
  /**
22
19
  * @param workspace The main workspace.
23
20
  * @param theme The workspace theme.
@@ -63,14 +60,14 @@ export declare class ThemeManager {
63
60
  * @param propertyName The inline style property name to update.
64
61
  * @internal
65
62
  */
66
- subscribe(element: Element, componentName: string, propertyName: string): void;
63
+ subscribe(element: HTMLElement | SVGElement, componentName: string, propertyName: string): void;
67
64
  /**
68
65
  * Unsubscribe an element to changes to the selected theme.
69
66
  *
70
67
  * @param element The element to unsubscribe.
71
68
  * @internal
72
69
  */
73
- unsubscribe(element: Element): void;
70
+ unsubscribe(element: HTMLElement | SVGElement): void;
74
71
  /**
75
72
  * Dispose of this theme manager.
76
73
  *
@@ -82,7 +79,7 @@ export declare class ThemeManager {
82
79
  export declare namespace ThemeManager {
83
80
  /** The type for a Blockly UI Component. */
84
81
  interface Component {
85
- element: Element;
82
+ element: HTMLElement | SVGElement;
86
83
  propertyName: string;
87
84
  }
88
85
  }
@@ -10,8 +10,6 @@ import type { CategoryInfo, FlyoutDefinition, FlyoutItemInfoArray } from '../uti
10
10
  import { ToolboxItem } from './toolbox_item.js';
11
11
  /**
12
12
  * Class for a category in a toolbox.
13
- *
14
- * @alias Blockly.ToolboxCategory
15
13
  */
16
14
  export declare class ToolboxCategory extends ToolboxItem implements ISelectableToolboxItem {
17
15
  /** Name used for registering a toolbox category. */
@@ -30,15 +28,15 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
30
28
  protected name_: string;
31
29
  /** The colour of the category. */
32
30
  protected colour_: string;
33
- /** The html container for the category. */
31
+ /** The HTML container for the category. */
34
32
  protected htmlDiv_: HTMLDivElement | null;
35
- /** The html element for the category row. */
33
+ /** The HTML element for the category row. */
36
34
  protected rowDiv_: HTMLDivElement | null;
37
- /** The html element that holds children elements of the category row. */
35
+ /** The HTML element that holds children elements of the category row. */
38
36
  protected rowContents_: HTMLDivElement | null;
39
- /** The html element for the toolbox icon. */
37
+ /** The HTML element for the toolbox icon. */
40
38
  protected iconDom_: Element | null;
41
- /** The html element for the toolbox label. */
39
+ /** The HTML element for the toolbox label. */
42
40
  protected labelDom_: Element | null;
43
41
  protected cssConfig_: CssConfig;
44
42
  /** True if the category is meant to be hidden, false otherwise. */
@@ -10,8 +10,6 @@ import * as toolbox from '../utils/toolbox.js';
10
10
  import { ToolboxCategory } from './category.js';
11
11
  /**
12
12
  * Class for a category in a toolbox that can be collapsed.
13
- *
14
- * @alias Blockly.CollapsibleToolboxCategory
15
13
  */
16
14
  export declare class CollapsibleToolboxCategory extends ToolboxCategory implements ICollapsibleToolboxItem {
17
15
  /** Name used for registering a collapsible toolbox category. */
@@ -22,8 +20,6 @@ export declare class CollapsibleToolboxCategory extends ToolboxCategory implemen
22
20
  protected expanded_: boolean;
23
21
  /** The child toolbox items for this category. */
24
22
  protected toolboxItems_: IToolboxItem[];
25
- flyoutItems_: any;
26
- isHidden_: any;
27
23
  /**
28
24
  * @param categoryDef The information needed to create a category in the
29
25
  * toolbox.
@@ -9,8 +9,6 @@ import { ToolboxItem } from './toolbox_item.js';
9
9
  /**
10
10
  * Class for a toolbox separator. This is the thin visual line that appears on
11
11
  * the toolbox. This item is not interactable.
12
- *
13
- * @alias Blockly.ToolboxSeparator
14
12
  */
15
13
  export declare class ToolboxSeparator extends ToolboxItem {
16
14
  /** Name used for registering a toolbox separator. */
@@ -21,8 +21,6 @@ import type { WorkspaceSvg } from '../workspace_svg.js';
21
21
  /**
22
22
  * Class for a Toolbox.
23
23
  * Creates the toolbox's DOM.
24
- *
25
- * @alias Blockly.Toolbox
26
24
  */
27
25
  export declare class Toolbox extends DeleteArea implements IAutoHideable, IKeyboardAccessible, IStyleable, IToolbox {
28
26
  /**
@@ -32,9 +30,9 @@ export declare class Toolbox extends DeleteArea implements IAutoHideable, IKeybo
32
30
  id: string;
33
31
  protected toolboxDef_: toolbox.ToolboxInfo;
34
32
  private readonly horizontalLayout_;
35
- /** The html container for the toolbox. */
33
+ /** The HTML container for the toolbox. */
36
34
  HtmlDiv: HTMLDivElement | null;
37
- /** The html container for the contents of a toolbox. */
35
+ /** The HTML container for the contents of a toolbox. */
38
36
  protected contentsDiv_: HTMLDivElement | null;
39
37
  /** Whether the Toolbox is visible. */
40
38
  protected isVisible_: boolean;
@@ -61,7 +59,6 @@ export declare class Toolbox extends DeleteArea implements IAutoHideable, IKeybo
61
59
  * Ex: [[node, name, func], [node, name, func]].
62
60
  */
63
61
  protected boundEvents_: browserEvents.Data[];
64
- wouldDelete_: any;
65
62
  /** The workspace this toolbox is on. */
66
63
  protected readonly workspace_: WorkspaceSvg;
67
64
  /** @param workspace The workspace in which to create new blocks. */
@@ -10,8 +10,6 @@ import type * as toolbox from '../utils/toolbox.js';
10
10
  import type { WorkspaceSvg } from '../workspace_svg.js';
11
11
  /**
12
12
  * Class for an item in the toolbox.
13
- *
14
- * @alias Blockly.ToolboxItem
15
13
  */
16
14
  export declare class ToolboxItem implements IToolboxItem {
17
15
  protected id_: string;
package/core/tooltip.d.ts CHANGED
@@ -8,8 +8,6 @@
8
8
  * Either a string, an object containing a tooltip property, or a function which
9
9
  * returns either a string, or another arbitrarily nested function which
10
10
  * eventually unwinds to a string.
11
- *
12
- * @alias Blockly.Tooltip.TipInfo
13
11
  */
14
12
  export type TipInfo = string | {
15
13
  tooltip: any;
@@ -19,8 +17,6 @@ export type TipInfo = string | {
19
17
  * 1st parameter: the div element to render content into.
20
18
  * 2nd parameter: the element being moused over (i.e., the element for which the
21
19
  * tooltip should be shown).
22
- *
23
- * @alias Blockly.Tooltip.CustomTooltip
24
20
  */
25
21
  export type CustomTooltip = (p1: Element, p2: Element) => any;
26
22
  /**
@@ -28,7 +24,6 @@ export type CustomTooltip = (p1: Element, p2: Element) => any;
28
24
  * tooltip UI.
29
25
  *
30
26
  * @param customFn A custom tooltip used to render an alternate tooltip UI.
31
- * @alias Blockly.Tooltip.setCustomTooltip
32
27
  */
33
28
  export declare function setCustomTooltip(customFn: CustomTooltip): void;
34
29
  /**
@@ -41,50 +36,36 @@ export declare function getCustomTooltip(): CustomTooltip | undefined;
41
36
  * Returns whether or not a tooltip is showing
42
37
  *
43
38
  * @returns True if a tooltip is showing
44
- * @alias Blockly.Tooltip.isVisible
45
39
  */
46
40
  export declare function isVisible(): boolean;
47
41
  /**
48
42
  * Maximum width (in characters) of a tooltip.
49
- *
50
- * @alias Blockly.Tooltip.LIMIT
51
43
  */
52
44
  export declare const LIMIT = 50;
53
45
  /**
54
46
  * Horizontal offset between mouse cursor and tooltip.
55
- *
56
- * @alias Blockly.Tooltip.OFFSET_X
57
47
  */
58
48
  export declare const OFFSET_X = 0;
59
49
  /**
60
50
  * Vertical offset between mouse cursor and tooltip.
61
- *
62
- * @alias Blockly.Tooltip.OFFSET_Y
63
51
  */
64
52
  export declare const OFFSET_Y = 10;
65
53
  /**
66
54
  * Radius mouse can move before killing tooltip.
67
- *
68
- * @alias Blockly.Tooltip.RADIUS_OK
69
55
  */
70
56
  export declare const RADIUS_OK = 10;
71
57
  /**
72
58
  * Delay before tooltip appears.
73
- *
74
- * @alias Blockly.Tooltip.HOVER_MS
75
59
  */
76
60
  export declare const HOVER_MS = 750;
77
61
  /**
78
62
  * Horizontal padding between tooltip and screen edge.
79
- *
80
- * @alias Blockly.Tooltip.MARGINS
81
63
  */
82
64
  export declare const MARGINS = 5;
83
65
  /**
84
66
  * Returns the HTML tooltip container.
85
67
  *
86
68
  * @returns The HTML tooltip container.
87
- * @alias Blockly.Tooltip.getDiv
88
69
  */
89
70
  export declare function getDiv(): HTMLDivElement | null;
90
71
  /**
@@ -92,47 +73,38 @@ export declare function getDiv(): HTMLDivElement | null;
92
73
  *
93
74
  * @param object The object to get the tooltip text of.
94
75
  * @returns The tooltip text of the element.
95
- * @alias Blockly.Tooltip.getTooltipOfObject
96
76
  */
97
77
  export declare function getTooltipOfObject(object: any | null): string;
98
78
  /**
99
79
  * Create the tooltip div and inject it onto the page.
100
- *
101
- * @alias Blockly.Tooltip.createDom
102
80
  */
103
81
  export declare function createDom(): void;
104
82
  /**
105
83
  * Binds the required mouse events onto an SVG element.
106
84
  *
107
85
  * @param element SVG element onto which tooltip is to be bound.
108
- * @alias Blockly.Tooltip.bindMouseEvents
109
86
  */
110
87
  export declare function bindMouseEvents(element: Element): void;
111
88
  /**
112
89
  * Unbinds tooltip mouse events from the SVG element.
113
90
  *
114
91
  * @param element SVG element onto which tooltip is bound.
115
- * @alias Blockly.Tooltip.unbindMouseEvents
116
92
  */
117
93
  export declare function unbindMouseEvents(element: Element | null): void;
118
94
  /**
119
95
  * Dispose of the tooltip.
120
96
  *
121
- * @alias Blockly.Tooltip.dispose
122
97
  * @internal
123
98
  */
124
99
  export declare function dispose(): void;
125
100
  /**
126
101
  * Hide the tooltip.
127
- *
128
- * @alias Blockly.Tooltip.hide
129
102
  */
130
103
  export declare function hide(): void;
131
104
  /**
132
105
  * Hide any in-progress tooltips and block showing new tooltips until the next
133
106
  * call to unblock().
134
107
  *
135
- * @alias Blockly.Tooltip.block
136
108
  * @internal
137
109
  */
138
110
  export declare function block(): void;
@@ -140,7 +112,6 @@ export declare function block(): void;
140
112
  * Unblock tooltips: allow them to be scheduled and shown according to their own
141
113
  * logic.
142
114
  *
143
- * @alias Blockly.Tooltip.unblock
144
115
  * @internal
145
116
  */
146
117
  export declare function unblock(): void;
package/core/touch.d.ts CHANGED
@@ -23,8 +23,6 @@ export declare const TOUCH_ENABLED: boolean;
23
23
  /**
24
24
  * The TOUCH_MAP lookup dictionary specifies additional touch events to fire,
25
25
  * in conjunction with mouse events.
26
- *
27
- * @alias Blockly.Touch.TOUCH_MAP
28
26
  */
29
27
  export declare const TOUCH_MAP: {
30
28
  [key: string]: string[];
@@ -38,7 +36,6 @@ export declare const TOUCH_MAP: {
38
36
  *
39
37
  * @param e Touch start event.
40
38
  * @param gesture The gesture that triggered this longStart.
41
- * @alias Blockly.Touch.longStart
42
39
  * @internal
43
40
  */
44
41
  export declare function longStart(e: PointerEvent, gesture: Gesture): void;
@@ -46,7 +43,6 @@ export declare function longStart(e: PointerEvent, gesture: Gesture): void;
46
43
  * Nope, that's not a long-press. Either touchend or touchcancel was fired,
47
44
  * or a drag hath begun. Kill the queued long-press task.
48
45
  *
49
- * @alias Blockly.Touch.longStop
50
46
  * @internal
51
47
  */
52
48
  export declare function longStop(): void;
@@ -54,8 +50,6 @@ export declare function longStop(): void;
54
50
  * Clear the touch identifier that tracks which touch stream to pay attention
55
51
  * to. This ends the current drag/gesture and allows other pointers to be
56
52
  * captured.
57
- *
58
- * @alias Blockly.Touch.clearTouchIdentifier
59
53
  */
60
54
  export declare function clearTouchIdentifier(): void;
61
55
  /**
@@ -66,7 +60,6 @@ export declare function clearTouchIdentifier(): void;
66
60
  * @param e The event to check.
67
61
  * @returns True if this event should be passed through to the registered
68
62
  * handler; false if it should be blocked.
69
- * @alias Blockly.Touch.shouldHandleEvent
70
63
  */
71
64
  export declare function shouldHandleEvent(e: Event): boolean;
72
65
  /**
@@ -74,7 +67,6 @@ export declare function shouldHandleEvent(e: Event): boolean;
74
67
  *
75
68
  * @param e Pointer event.
76
69
  * @returns The pointerId of the event.
77
- * @alias Blockly.Touch.getTouchIdentifierFromEvent
78
70
  */
79
71
  export declare function getTouchIdentifierFromEvent(e: PointerEvent): string;
80
72
  /**
@@ -86,7 +78,6 @@ export declare function getTouchIdentifierFromEvent(e: PointerEvent): string;
86
78
  * @param e Pointer event.
87
79
  * @returns Whether the identifier on the event matches the current saved
88
80
  * identifier.
89
- * @alias Blockly.Touch.checkTouchIdentifier
90
81
  */
91
82
  export declare function checkTouchIdentifier(e: PointerEvent): boolean;
92
83
  /**
@@ -94,7 +85,6 @@ export declare function checkTouchIdentifier(e: PointerEvent): boolean;
94
85
  * make a touch event work in a mouse event handler.
95
86
  *
96
87
  * @param e A touch event.
97
- * @alias Blockly.Touch.setClientFromTouch
98
88
  */
99
89
  export declare function setClientFromTouch(e: Event | PseudoEvent): void;
100
90
  /**
@@ -102,7 +92,6 @@ export declare function setClientFromTouch(e: Event | PseudoEvent): void;
102
92
  *
103
93
  * @param e An event.
104
94
  * @returns True if it is a mouse, touch, or pointer event; false otherwise.
105
- * @alias Blockly.Touch.isMouseOrTouchEvent
106
95
  */
107
96
  export declare function isMouseOrTouchEvent(e: Event | PseudoEvent): boolean;
108
97
  /**
@@ -110,7 +99,6 @@ export declare function isMouseOrTouchEvent(e: Event | PseudoEvent): boolean;
110
99
  *
111
100
  * @param e An event.
112
101
  * @returns True if it is a touch or pointer event; false otherwise.
113
- * @alias Blockly.Touch.isTouchEvent
114
102
  */
115
103
  export declare function isTouchEvent(e: Event | PseudoEvent): boolean;
116
104
  /**
@@ -121,7 +109,6 @@ export declare function isTouchEvent(e: Event | PseudoEvent): boolean;
121
109
  * @returns An array of events or pseudo events.
122
110
  * Each pseudo-touch event will have exactly one changed touch and there
123
111
  * will be no real touch events.
124
- * @alias Blockly.Touch.splitEventByTouches
125
112
  */
126
113
  export declare function splitEventByTouches(e: Event): Array<Event | PseudoEvent>;
127
114
  export {};
@@ -14,8 +14,6 @@ import { Rect } from './utils/rect.js';
14
14
  import type { WorkspaceSvg } from './workspace_svg.js';
15
15
  /**
16
16
  * Class for a trash can.
17
- *
18
- * @alias Blockly.Trashcan
19
17
  */
20
18
  export declare class Trashcan extends DeleteArea implements IAutoHideable, IPositionable {
21
19
  private workspace;
@@ -6,8 +6,6 @@
6
6
  /**
7
7
  * ARIA role values.
8
8
  * Copied from Closure's goog.a11y.aria.Role
9
- *
10
- * @alias Blockly.utils.aria.Role
11
9
  */
12
10
  export declare enum Role {
13
11
  GRID = "grid",
@@ -26,8 +24,6 @@ export declare enum Role {
26
24
  /**
27
25
  * ARIA states and properties.
28
26
  * Copied from Closure's goog.a11y.aria.State
29
- *
30
- * @alias Blockly.utils.aria.State
31
27
  */
32
28
  export declare enum State {
33
29
  ACTIVEDESCENDANT = "activedescendant",
@@ -53,7 +49,6 @@ export declare enum State {
53
49
  *
54
50
  * @param element DOM node to set role of.
55
51
  * @param roleName Role name.
56
- * @alias Blockly.utils.aria.setRole
57
52
  */
58
53
  export declare function setRole(element: Element, roleName: Role): void;
59
54
  /**
@@ -65,7 +60,6 @@ export declare function setRole(element: Element, roleName: Role): void;
65
60
  * Automatically adds prefix 'aria-' to the state name if the attribute is
66
61
  * not an extra attribute.
67
62
  * @param value Value for the state attribute.
68
- * @alias Blockly.utils.aria.setState
69
63
  */
70
64
  export declare function setState(element: Element, stateName: State, value: string | boolean | number | string[]): void;
71
65
  //# sourceMappingURL=aria.d.ts.map
@@ -9,7 +9,6 @@
9
9
  * @param arr Array from which to remove value.
10
10
  * @param value Value to remove.
11
11
  * @returns True if an element was removed.
12
- * @alias Blockly.array.removeElem
13
12
  * @internal
14
13
  */
15
14
  export declare function removeElem<T>(arr: Array<T>, value: T): boolean;