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.
Files changed (377) hide show
  1. package/README.md +1 -1
  2. package/blockly.min.js +785 -749
  3. package/blockly_compressed.js +669 -656
  4. package/blockly_compressed.js.map +1 -1
  5. package/blocks_compressed.js +68 -68
  6. package/blocks_compressed.js.map +1 -1
  7. package/core/block.d.ts +2 -2
  8. package/core/block_aria_composer.d.ts +1 -1
  9. package/core/block_svg.d.ts +7 -8
  10. package/core/bubbles/bubble.d.ts +4 -4
  11. package/core/bubbles/mini_workspace_bubble.d.ts +2 -2
  12. package/core/bubbles/text_bubble.d.ts +3 -3
  13. package/core/bubbles/textinput_bubble.d.ts +1 -1
  14. package/core/clipboard/block_paster.d.ts +5 -5
  15. package/core/clipboard/registry.d.ts +1 -1
  16. package/core/clipboard/workspace_comment_paster.d.ts +4 -4
  17. package/core/clipboard.d.ts +1 -1
  18. package/core/comments/collapse_comment_bar_button.d.ts +0 -4
  19. package/core/comments/comment_bar_button.d.ts +1 -1
  20. package/core/comments/comment_editor.d.ts +6 -6
  21. package/core/comments/comment_view.d.ts +3 -3
  22. package/core/comments/delete_comment_bar_button.d.ts +0 -4
  23. package/core/comments/rendered_workspace_comment.d.ts +11 -11
  24. package/core/comments/workspace_comment.d.ts +2 -2
  25. package/core/common.d.ts +2 -2
  26. package/core/config.d.ts +37 -11
  27. package/core/contextmenu_registry.d.ts +2 -2
  28. package/core/dragging/block_drag_strategy.d.ts +25 -7
  29. package/core/dragging/dragger.d.ts +2 -1
  30. package/core/events/events_block_base.d.ts +2 -1
  31. package/core/events/events_block_change.d.ts +3 -2
  32. package/core/events/events_block_create.d.ts +3 -2
  33. package/core/events/events_block_delete.d.ts +3 -2
  34. package/core/events/events_block_drag.d.ts +2 -2
  35. package/core/events/events_block_field_intermediate_change.d.ts +3 -2
  36. package/core/events/events_block_move.d.ts +2 -1
  37. package/core/events/events_click.d.ts +2 -2
  38. package/core/events/events_comment_base.d.ts +2 -1
  39. package/core/events/events_comment_change.d.ts +2 -1
  40. package/core/events/events_comment_collapse.d.ts +3 -2
  41. package/core/events/events_comment_create.d.ts +2 -1
  42. package/core/events/events_comment_delete.d.ts +2 -1
  43. package/core/events/events_comment_drag.d.ts +2 -2
  44. package/core/events/events_comment_move.d.ts +2 -1
  45. package/core/events/events_comment_resize.d.ts +2 -1
  46. package/core/events/events_selected.d.ts +1 -1
  47. package/core/events/events_theme_change.d.ts +1 -1
  48. package/core/events/events_toolbox_item_select.d.ts +1 -1
  49. package/core/events/events_trashcan_open.d.ts +1 -1
  50. package/core/events/events_var_base.d.ts +2 -1
  51. package/core/events/events_var_create.d.ts +2 -1
  52. package/core/events/events_var_delete.d.ts +2 -1
  53. package/core/events/events_var_rename.d.ts +2 -1
  54. package/core/events/events_var_type_change.d.ts +2 -1
  55. package/core/events/events_viewport.d.ts +1 -1
  56. package/core/field.d.ts +4 -4
  57. package/core/field_checkbox.d.ts +4 -3
  58. package/core/field_dropdown.d.ts +4 -3
  59. package/core/field_image.d.ts +3 -2
  60. package/core/field_input.d.ts +7 -6
  61. package/core/field_label.d.ts +3 -2
  62. package/core/field_label_serializable.d.ts +3 -2
  63. package/core/field_number.d.ts +4 -3
  64. package/core/field_textinput.d.ts +5 -4
  65. package/core/field_variable.d.ts +7 -5
  66. package/core/flyout_base.d.ts +1 -1
  67. package/core/flyout_metrics_manager.d.ts +2 -1
  68. package/core/generator.d.ts +2 -2
  69. package/core/gesture.d.ts +2 -2
  70. package/core/grid.d.ts +2 -2
  71. package/core/icons/icon_types.d.ts +4 -4
  72. package/core/icons/registry.d.ts +1 -1
  73. package/core/insertion_marker.d.ts +1 -1
  74. package/core/insertion_marker_previewer.d.ts +3 -3
  75. package/core/interfaces/i_bubble.d.ts +2 -2
  76. package/core/interfaces/i_comment_icon.d.ts +6 -6
  77. package/core/interfaces/i_drag_target.d.ts +2 -2
  78. package/core/interfaces/i_icon.d.ts +1 -1
  79. package/core/interfaces/i_json_block_definition.d.ts +7 -7
  80. package/core/interfaces/i_keyboard_accessible.d.ts +1 -1
  81. package/core/interfaces/i_parameter_model.d.ts +2 -2
  82. package/core/interfaces/i_paster.d.ts +3 -3
  83. package/core/interfaces/i_procedure_block.d.ts +1 -1
  84. package/core/interfaces/i_procedure_map.d.ts +1 -1
  85. package/core/interfaces/i_procedure_model.d.ts +2 -2
  86. package/core/interfaces/i_selectable.d.ts +1 -1
  87. package/core/interfaces/i_variable_backed_parameter_model.d.ts +1 -1
  88. package/core/keyboard_nav/keyboard_mover.d.ts +2 -0
  89. package/core/keyboard_nav/navigators/navigator.d.ts +12 -0
  90. package/core/layer_manager.d.ts +3 -3
  91. package/core/observable_procedure_map.d.ts +1 -1
  92. package/core/options.d.ts +4 -4
  93. package/core/procedures.d.ts +1 -1
  94. package/core/render_management.d.ts +1 -1
  95. package/core/rendered_connection.d.ts +1 -1
  96. package/core/renderers/common/info.d.ts +1 -1
  97. package/core/renderers/common/path_object.d.ts +2 -2
  98. package/core/renderers/zelos/drawer.d.ts +1 -1
  99. package/core/renderers/zelos/info.d.ts +1 -1
  100. package/core/serialization/procedures.d.ts +2 -2
  101. package/core/serialization/workspace_comments.d.ts +2 -2
  102. package/core/shortcut_items.d.ts +25 -2
  103. package/core/shortcut_registry.d.ts +3 -3
  104. package/core/tooltip.d.ts +3 -2
  105. package/core/trashcan.d.ts +7 -8
  106. package/core/utils/aria.d.ts +3 -1
  107. package/core/utils/focusable_tree_traverser.d.ts +2 -2
  108. package/core/utils/style.d.ts +14 -0
  109. package/core/utils/toolbox.d.ts +0 -8
  110. package/core/variable_map.d.ts +1 -1
  111. package/core/variable_model.d.ts +1 -1
  112. package/core/variables.d.ts +1 -1
  113. package/core/workspace.d.ts +2 -2
  114. package/core/workspace_focus_target.d.ts +6 -1
  115. package/core/workspace_svg.d.ts +5 -4
  116. package/core/xml.d.ts +1 -1
  117. package/dart_compressed.js +20 -20
  118. package/javascript_compressed.js +25 -25
  119. package/lua_compressed.js +24 -24
  120. package/msg/ab.js +23 -0
  121. package/msg/ab.mjs +23 -0
  122. package/msg/ace.js +23 -0
  123. package/msg/ace.mjs +23 -0
  124. package/msg/af.js +23 -0
  125. package/msg/af.mjs +23 -0
  126. package/msg/am.js +23 -0
  127. package/msg/am.mjs +23 -0
  128. package/msg/ar.js +23 -0
  129. package/msg/ar.mjs +23 -0
  130. package/msg/ast.js +23 -0
  131. package/msg/ast.mjs +23 -0
  132. package/msg/az.js +23 -0
  133. package/msg/az.mjs +23 -0
  134. package/msg/ba.js +23 -0
  135. package/msg/ba.mjs +23 -0
  136. package/msg/bcc.js +23 -0
  137. package/msg/bcc.mjs +23 -0
  138. package/msg/be-tarask.js +40 -17
  139. package/msg/be-tarask.mjs +23 -0
  140. package/msg/be.js +23 -0
  141. package/msg/be.mjs +23 -0
  142. package/msg/bg.js +23 -0
  143. package/msg/bg.mjs +23 -0
  144. package/msg/bn.js +23 -0
  145. package/msg/bn.mjs +23 -0
  146. package/msg/br.js +23 -0
  147. package/msg/br.mjs +23 -0
  148. package/msg/bs.js +23 -0
  149. package/msg/bs.mjs +23 -0
  150. package/msg/ca.js +23 -0
  151. package/msg/ca.mjs +23 -0
  152. package/msg/ce.js +23 -0
  153. package/msg/ce.mjs +23 -0
  154. package/msg/cs.js +23 -0
  155. package/msg/cs.mjs +23 -0
  156. package/msg/csb.js +180 -157
  157. package/msg/csb.mjs +23 -0
  158. package/msg/da.js +49 -26
  159. package/msg/da.mjs +23 -0
  160. package/msg/de.js +23 -0
  161. package/msg/de.mjs +23 -0
  162. package/msg/diq.js +24 -1
  163. package/msg/diq.mjs +23 -0
  164. package/msg/dtp.js +23 -0
  165. package/msg/dtp.mjs +23 -0
  166. package/msg/dty.js +23 -0
  167. package/msg/dty.mjs +23 -0
  168. package/msg/ee.js +23 -0
  169. package/msg/ee.mjs +23 -0
  170. package/msg/el.js +23 -0
  171. package/msg/el.mjs +23 -0
  172. package/msg/en-gb.js +26 -3
  173. package/msg/en-gb.mjs +23 -0
  174. package/msg/en.js +23 -0
  175. package/msg/en.mjs +23 -0
  176. package/msg/eo.js +23 -0
  177. package/msg/eo.mjs +23 -0
  178. package/msg/es.js +23 -0
  179. package/msg/es.mjs +23 -0
  180. package/msg/et.js +23 -0
  181. package/msg/et.mjs +23 -0
  182. package/msg/eu.js +23 -0
  183. package/msg/eu.mjs +23 -0
  184. package/msg/fa.js +23 -0
  185. package/msg/fa.mjs +23 -0
  186. package/msg/fi.js +23 -0
  187. package/msg/fi.mjs +23 -0
  188. package/msg/fo.js +23 -0
  189. package/msg/fo.mjs +23 -0
  190. package/msg/fr.js +24 -1
  191. package/msg/fr.mjs +23 -0
  192. package/msg/frr.js +23 -0
  193. package/msg/frr.mjs +23 -0
  194. package/msg/ga.js +50 -27
  195. package/msg/ga.mjs +23 -0
  196. package/msg/gl.js +23 -0
  197. package/msg/gl.mjs +23 -0
  198. package/msg/gn.js +23 -0
  199. package/msg/gn.mjs +23 -0
  200. package/msg/gor.js +23 -0
  201. package/msg/gor.mjs +23 -0
  202. package/msg/ha.js +23 -0
  203. package/msg/ha.mjs +23 -0
  204. package/msg/he.js +29 -6
  205. package/msg/he.mjs +23 -0
  206. package/msg/hi.js +23 -0
  207. package/msg/hi.mjs +23 -0
  208. package/msg/hr.js +23 -0
  209. package/msg/hr.mjs +23 -0
  210. package/msg/hrx.js +23 -0
  211. package/msg/hrx.mjs +23 -0
  212. package/msg/hsb.js +23 -0
  213. package/msg/hsb.mjs +23 -0
  214. package/msg/hu.js +24 -1
  215. package/msg/hu.mjs +23 -0
  216. package/msg/hy.js +23 -0
  217. package/msg/hy.mjs +23 -0
  218. package/msg/ia.js +23 -0
  219. package/msg/ia.mjs +23 -0
  220. package/msg/id.js +23 -0
  221. package/msg/id.mjs +23 -0
  222. package/msg/ig.js +23 -0
  223. package/msg/ig.mjs +23 -0
  224. package/msg/inh.js +23 -0
  225. package/msg/inh.mjs +23 -0
  226. package/msg/is.js +23 -0
  227. package/msg/is.mjs +23 -0
  228. package/msg/it.js +23 -0
  229. package/msg/it.mjs +23 -0
  230. package/msg/ja.js +269 -246
  231. package/msg/ja.mjs +23 -0
  232. package/msg/ka.js +23 -0
  233. package/msg/ka.mjs +23 -0
  234. package/msg/kab.js +23 -0
  235. package/msg/kab.mjs +23 -0
  236. package/msg/kbd-cyrl.js +23 -0
  237. package/msg/kbd-cyrl.mjs +23 -0
  238. package/msg/km.js +23 -0
  239. package/msg/km.mjs +23 -0
  240. package/msg/kn.js +52 -29
  241. package/msg/kn.mjs +23 -0
  242. package/msg/ko.js +23 -0
  243. package/msg/ko.mjs +23 -0
  244. package/msg/krc.js +23 -0
  245. package/msg/krc.mjs +23 -0
  246. package/msg/ksh.js +23 -0
  247. package/msg/ksh.mjs +23 -0
  248. package/msg/ku-latn.js +23 -0
  249. package/msg/ku-latn.mjs +23 -0
  250. package/msg/ky.js +23 -0
  251. package/msg/ky.mjs +23 -0
  252. package/msg/la.js +23 -0
  253. package/msg/la.mjs +23 -0
  254. package/msg/lb.js +30 -7
  255. package/msg/lb.mjs +23 -0
  256. package/msg/lki.js +23 -0
  257. package/msg/lki.mjs +23 -0
  258. package/msg/lo.js +23 -0
  259. package/msg/lo.mjs +23 -0
  260. package/msg/lrc.js +23 -0
  261. package/msg/lrc.mjs +23 -0
  262. package/msg/lt.js +23 -0
  263. package/msg/lt.mjs +23 -0
  264. package/msg/lv.js +23 -0
  265. package/msg/lv.mjs +23 -0
  266. package/msg/mg.js +23 -0
  267. package/msg/mg.mjs +23 -0
  268. package/msg/mk.js +23 -0
  269. package/msg/mk.mjs +23 -0
  270. package/msg/ml.js +23 -0
  271. package/msg/ml.mjs +23 -0
  272. package/msg/mnw.js +23 -0
  273. package/msg/mnw.mjs +23 -0
  274. package/msg/ms.js +23 -0
  275. package/msg/ms.mjs +23 -0
  276. package/msg/mt.js +23 -0
  277. package/msg/mt.mjs +23 -0
  278. package/msg/my.js +23 -0
  279. package/msg/my.mjs +23 -0
  280. package/msg/mzn.js +23 -0
  281. package/msg/mzn.mjs +23 -0
  282. package/msg/nb.js +23 -0
  283. package/msg/nb.mjs +23 -0
  284. package/msg/ne.js +24 -1
  285. package/msg/ne.mjs +23 -0
  286. package/msg/nl.js +23 -0
  287. package/msg/nl.mjs +23 -0
  288. package/msg/oc.js +23 -0
  289. package/msg/oc.mjs +23 -0
  290. package/msg/olo.js +23 -0
  291. package/msg/olo.mjs +23 -0
  292. package/msg/pa.js +23 -0
  293. package/msg/pa.mjs +23 -0
  294. package/msg/pl.js +23 -0
  295. package/msg/pl.mjs +23 -0
  296. package/msg/pms.js +23 -0
  297. package/msg/pms.mjs +23 -0
  298. package/msg/ps.js +39 -16
  299. package/msg/ps.mjs +23 -0
  300. package/msg/pt-br.js +23 -0
  301. package/msg/pt-br.mjs +23 -0
  302. package/msg/pt.js +23 -0
  303. package/msg/pt.mjs +23 -0
  304. package/msg/ro.js +31 -8
  305. package/msg/ro.mjs +23 -0
  306. package/msg/ru.js +23 -0
  307. package/msg/ru.mjs +23 -0
  308. package/msg/sc.js +23 -0
  309. package/msg/sc.mjs +23 -0
  310. package/msg/sco.js +23 -0
  311. package/msg/sco.mjs +23 -0
  312. package/msg/sd.js +23 -0
  313. package/msg/sd.mjs +23 -0
  314. package/msg/shn.js +23 -0
  315. package/msg/shn.mjs +23 -0
  316. package/msg/si.js +23 -0
  317. package/msg/si.mjs +23 -0
  318. package/msg/sk.js +23 -0
  319. package/msg/sk.mjs +23 -0
  320. package/msg/skr-arab.js +23 -0
  321. package/msg/skr-arab.mjs +23 -0
  322. package/msg/sl.js +23 -0
  323. package/msg/sl.mjs +23 -0
  324. package/msg/smn.js +23 -0
  325. package/msg/smn.mjs +23 -0
  326. package/msg/sq.js +23 -0
  327. package/msg/sq.mjs +23 -0
  328. package/msg/sr-latn.js +23 -0
  329. package/msg/sr-latn.mjs +23 -0
  330. package/msg/sr.js +23 -0
  331. package/msg/sr.mjs +23 -0
  332. package/msg/sv.js +23 -0
  333. package/msg/sv.mjs +23 -0
  334. package/msg/sw.js +23 -0
  335. package/msg/sw.mjs +23 -0
  336. package/msg/ta.js +23 -0
  337. package/msg/ta.mjs +23 -0
  338. package/msg/tcy.js +24 -1
  339. package/msg/tcy.mjs +23 -0
  340. package/msg/tdd.js +23 -0
  341. package/msg/tdd.mjs +23 -0
  342. package/msg/te.js +23 -0
  343. package/msg/te.mjs +23 -0
  344. package/msg/th.js +23 -0
  345. package/msg/th.mjs +23 -0
  346. package/msg/ti.js +23 -0
  347. package/msg/ti.mjs +23 -0
  348. package/msg/tl.js +23 -0
  349. package/msg/tl.mjs +23 -0
  350. package/msg/tlh.js +23 -0
  351. package/msg/tlh.mjs +23 -0
  352. package/msg/tr.js +23 -0
  353. package/msg/tr.mjs +23 -0
  354. package/msg/ug-arab.js +23 -0
  355. package/msg/ug-arab.mjs +23 -0
  356. package/msg/uk.js +23 -0
  357. package/msg/uk.mjs +23 -0
  358. package/msg/ur.js +23 -0
  359. package/msg/ur.mjs +23 -0
  360. package/msg/uz.js +42 -19
  361. package/msg/uz.mjs +23 -0
  362. package/msg/vi.js +24 -1
  363. package/msg/vi.mjs +23 -0
  364. package/msg/xmf.js +23 -0
  365. package/msg/xmf.mjs +23 -0
  366. package/msg/yo.js +23 -0
  367. package/msg/yo.mjs +23 -0
  368. package/msg/zgh.js +23 -0
  369. package/msg/zgh.mjs +23 -0
  370. package/msg/zh-hans.js +23 -0
  371. package/msg/zh-hans.mjs +23 -0
  372. package/msg/zh-hant.js +59 -36
  373. package/msg/zh-hant.mjs +23 -0
  374. package/package.json +30 -27
  375. package/php_compressed.js +16 -16
  376. package/python_compressed.js +40 -40
  377. package/python_compressed.js.map +1 -1
@@ -6,7 +6,7 @@
6
6
  import type { IconType } from '../icons/icon_types.js';
7
7
  import type { Coordinate } from '../utils/coordinate.js';
8
8
  import type { Size } from '../utils/size.js';
9
- import { IFocusableNode } from './i_focusable_node.js';
9
+ import type { IFocusableNode } from './i_focusable_node.js';
10
10
  export interface IIcon extends IFocusableNode {
11
11
  /**
12
12
  * @returns the IconType representing the type of the icon. This value should
@@ -3,13 +3,13 @@
3
3
  * Copyright 2025 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { FieldCheckboxFromJsonConfig } from '../field_checkbox.js';
7
- import { FieldDropdownFromJsonConfig } from '../field_dropdown';
8
- import { FieldImageFromJsonConfig } from '../field_image';
9
- import { FieldNumberFromJsonConfig } from '../field_number';
10
- import { FieldTextInputFromJsonConfig } from '../field_textinput';
11
- import { FieldVariableFromJsonConfig } from '../field_variable';
12
- import { Align } from '../inputs/align.js';
6
+ import type { FieldCheckboxFromJsonConfig } from '../field_checkbox.js';
7
+ import type { FieldDropdownFromJsonConfig } from '../field_dropdown';
8
+ import type { FieldImageFromJsonConfig } from '../field_image';
9
+ import type { FieldNumberFromJsonConfig } from '../field_number';
10
+ import type { FieldTextInputFromJsonConfig } from '../field_textinput';
11
+ import type { FieldVariableFromJsonConfig } from '../field_variable';
12
+ import type { Align } from '../inputs/align.js';
13
13
  /**
14
14
  * Defines the JSON structure for a block definition.
15
15
  *
@@ -3,7 +3,7 @@
3
3
  * Copyright 2020 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { KeyboardShortcut } from '../shortcut_registry.js';
6
+ import type { KeyboardShortcut } from '../shortcut_registry.js';
7
7
  /**
8
8
  * An interface for an object that handles keyboard shortcuts.
9
9
  */
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { ParameterState } from '../serialization/procedures';
7
- import { IProcedureModel } from './i_procedure_model';
6
+ import type { ParameterState } from '../serialization/procedures';
7
+ import type { IProcedureModel } from './i_procedure_model';
8
8
  /**
9
9
  * A data model for a procedure.
10
10
  */
@@ -3,9 +3,9 @@
3
3
  * Copyright 2023 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Coordinate } from '../utils/coordinate.js';
7
- import { WorkspaceSvg } from '../workspace_svg.js';
8
- import { ICopyable, ICopyData } from './i_copyable.js';
6
+ import type { Coordinate } from '../utils/coordinate.js';
7
+ import type { WorkspaceSvg } from '../workspace_svg.js';
8
+ import type { ICopyable, ICopyData } from './i_copyable.js';
9
9
  /** An object that can paste data into a workspace. */
10
10
  export interface IPaster<U extends ICopyData, T extends ICopyable<U>> {
11
11
  paste(copyData: U, workspace: WorkspaceSvg, coordinate?: Coordinate): T | null;
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { Block } from '../block.js';
7
- import { IProcedureModel } from './i_procedure_model.js';
7
+ import type { IProcedureModel } from './i_procedure_model.js';
8
8
  /** The interface for a block which models a procedure. */
9
9
  export interface IProcedureBlock {
10
10
  getProcedureModel(): IProcedureModel;
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { IProcedureModel } from './i_procedure_model.js';
6
+ import type { IProcedureModel } from './i_procedure_model.js';
7
7
  export interface IProcedureMap extends Map<string, IProcedureModel> {
8
8
  /**
9
9
  * Adds the given ProcedureModel to the map of procedure models, so that
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { State } from '../serialization/procedures.js';
7
- import { IParameterModel } from './i_parameter_model.js';
6
+ import type { State } from '../serialization/procedures.js';
7
+ import type { IParameterModel } from './i_parameter_model.js';
8
8
  /**
9
9
  * A data model for a procedure.
10
10
  */
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { WorkspaceSvg } from '../workspace_svg.js';
7
- import { IFocusableNode } from './i_focusable_node.js';
7
+ import type { IFocusableNode } from './i_focusable_node.js';
8
8
  /**
9
9
  * The interface for an object that is selectable.
10
10
  *
@@ -3,7 +3,7 @@
3
3
  * Copyright 2023 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { IParameterModel } from './i_parameter_model.js';
6
+ import type { IParameterModel } from './i_parameter_model.js';
7
7
  import type { IVariableModel, IVariableState } from './i_variable_model.js';
8
8
  /** Interface for a parameter model that holds a variable model. */
9
9
  export interface IVariableBackedParameterModel extends IParameterModel {
@@ -43,6 +43,8 @@ export declare class KeyboardMover {
43
43
  private allowedShortcuts;
44
44
  private readonly blurListener;
45
45
  static mover: KeyboardMover;
46
+ /** Whether or not something is currently being moved. */
47
+ private moving;
46
48
  private constructor();
47
49
  /**
48
50
  * Returns true iff the given draggable is allowed to be moved.
@@ -145,6 +145,18 @@ export declare class Navigator {
145
145
  * the workspace.
146
146
  */
147
147
  getNavigationLoops(): boolean;
148
+ /**
149
+ * Returns the navigable top-level items of a tree, in navigation order.
150
+ *
151
+ * For a workspace these are its stacks and comments; for a toolbox its
152
+ * categories; for a flyout its blocks, buttons and labels.
153
+ *
154
+ * @param root The root node of the tree to list, defaulting to the root of
155
+ * the currently focused tree.
156
+ * @returns The navigable top-level items, or an empty list if there is no
157
+ * tree to list.
158
+ */
159
+ getNavigableItems(root?: IFocusableNode | undefined): IFocusableNode[];
148
160
  /**
149
161
  * Get the first navigable node on the workspace, or null if none exist.
150
162
  *
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { IFocusableNode } from './interfaces/i_focusable_node.js';
7
- import { IRenderedElement } from './interfaces/i_rendered_element.js';
8
- import { Coordinate } from './utils/coordinate.js';
9
- import { WorkspaceSvg } from './workspace_svg.js';
7
+ import type { IRenderedElement } from './interfaces/i_rendered_element.js';
8
+ import type { Coordinate } from './utils/coordinate.js';
9
+ import type { WorkspaceSvg } from './workspace_svg.js';
10
10
  /** @internal */
11
11
  export declare class LayerManager {
12
12
  private workspace;
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { IProcedureMap } from './interfaces/i_procedure_map.js';
6
+ import type { IProcedureMap } from './interfaces/i_procedure_map.js';
7
7
  import type { IProcedureModel } from './interfaces/i_procedure_model.js';
8
8
  export declare class ObservableProcedureMap extends Map<string, IProcedureModel> implements IProcedureMap {
9
9
  /** @internal */
package/core/options.d.ts CHANGED
@@ -76,7 +76,7 @@ export declare class Options {
76
76
  /**
77
77
  * @param options Dictionary of options.
78
78
  * Specification:
79
- * https://developers.google.com/blockly/guides/get-started/web#configuration
79
+ * https://docs.blockly.com/guides/configure/configuration_struct/#the-options-dictionary
80
80
  */
81
81
  constructor(options: BlocklyOptions);
82
82
  /**
@@ -91,7 +91,7 @@ export declare class Options {
91
91
  /**
92
92
  * Parse the user-specified zoom options, using reasonable defaults where
93
93
  * behaviour is unspecified. See zoom documentation:
94
- * https://developers.google.com/blockly/guides/configure/zoom
94
+ * https://docs.blockly.com/guides/configure/zoom/
95
95
  *
96
96
  * @param options Dictionary of options.
97
97
  * @returns Normalized zoom options.
@@ -100,7 +100,7 @@ export declare class Options {
100
100
  /**
101
101
  * Parse the user-specified grid options, using reasonable defaults where
102
102
  * behaviour is unspecified. See grid documentation:
103
- * https://developers.google.com/blockly/guides/configure/grid
103
+ * https://docs.blockly.com/guides/configure/grid/
104
104
  *
105
105
  * @param options Dictionary of options.
106
106
  * @returns Normalized grid options.
@@ -108,7 +108,7 @@ export declare class Options {
108
108
  private static parseGridOptions;
109
109
  /**
110
110
  * Parse the user-specified theme options, using the classic theme as a
111
- * default. https://developers.google.com/blockly/guides/configure/appearance/themes
111
+ * default. https://docs.blockly.com/guides/configure/appearance/themes/
112
112
  *
113
113
  * @param options Dictionary of options.
114
114
  * @returns A Blockly Theme.
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { Block } from './block.js';
7
7
  import type { Abstract } from './events/events_abstract.js';
8
- import { Field } from './field.js';
8
+ import type { Field } from './field.js';
9
9
  import { ProcedureTuple } from './interfaces/i_legacy_procedure_blocks.js';
10
10
  import { IParameterModel } from './interfaces/i_parameter_model.js';
11
11
  import { IProcedureBlock, isProcedureBlock } from './interfaces/i_procedure_block.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright 2023 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { BlockSvg } from './block_svg.js';
6
+ import type { BlockSvg } from './block_svg.js';
7
7
  import type { WorkspaceSvg } from './workspace_svg.js';
8
8
  /**
9
9
  * Registers that the given block and all of its parents need to be rerendered,
@@ -6,7 +6,7 @@
6
6
  import type { BlockSvg } from './block_svg.js';
7
7
  import { Connection } from './connection.js';
8
8
  import type { InsertionMarker } from './insertion_marker.js';
9
- import { IContextMenu } from './interfaces/i_contextmenu.js';
9
+ import type { IContextMenu } from './interfaces/i_contextmenu.js';
10
10
  import type { IFocusableNode } from './interfaces/i_focusable_node.js';
11
11
  import type { IFocusableTree } from './interfaces/i_focusable_tree.js';
12
12
  import { Coordinate } from './utils/coordinate.js';
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { BlockSvg } from '../../block_svg.js';
7
- import { Input } from '../../inputs/input.js';
7
+ import type { Input } from '../../inputs/input.js';
8
8
  import type { RenderedConnection } from '../../rendered_connection.js';
9
9
  import type { Measurable } from '../measurables/base.js';
10
10
  import { BottomRow } from '../measurables/bottom_row.js';
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { BlockSvg } from '../../block_svg.js';
7
- import { RenderedConnection } from '../../rendered_connection.js';
7
+ import type { RenderedConnection } from '../../rendered_connection.js';
8
8
  import type { BlockStyle } from '../../theme.js';
9
- import { Coordinate } from '../../utils/coordinate.js';
9
+ import type { Coordinate } from '../../utils/coordinate.js';
10
10
  import type { ConstantProvider } from './constants.js';
11
11
  import type { IPathObject } from './i_path_object.js';
12
12
  /**
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { BlockSvg } from '../../block_svg.js';
7
7
  import { Drawer as BaseDrawer } from '../common/drawer.js';
8
- import { Connection } from '../measurables/connection.js';
8
+ import type { Connection } from '../measurables/connection.js';
9
9
  import type { InlineInput } from '../measurables/inline_input.js';
10
10
  import type { Row } from '../measurables/row.js';
11
11
  import type { RenderInfo } from './info.js';
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { BlockSvg } from '../../block_svg.js';
7
- import { Input } from '../../inputs/input.js';
7
+ import type { Input } from '../../inputs/input.js';
8
8
  import { RenderInfo as BaseRenderInfo } from '../common/info.js';
9
9
  import type { Measurable } from '../measurables/base.js';
10
10
  import type { Row } from '../measurables/row.js';
@@ -3,8 +3,8 @@
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { IParameterModel } from '../interfaces/i_parameter_model.js';
7
- import { IProcedureModel } from '../interfaces/i_procedure_model.js';
6
+ import type { IParameterModel } from '../interfaces/i_parameter_model.js';
7
+ import type { IProcedureModel } from '../interfaces/i_procedure_model.js';
8
8
  import type { ISerializer } from '../interfaces/i_serializer.js';
9
9
  import type { Workspace } from '../workspace.js';
10
10
  /** Represents the state of a procedure model. */
@@ -4,8 +4,8 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { WorkspaceComment } from '../comments/workspace_comment.js';
7
- import { ISerializer } from '../interfaces/i_serializer.js';
8
- import { Workspace } from '../workspace.js';
7
+ import type { ISerializer } from '../interfaces/i_serializer.js';
8
+ import type { Workspace } from '../workspace.js';
9
9
  export interface State {
10
10
  id?: string;
11
11
  text?: string;
@@ -46,7 +46,13 @@ export declare enum names {
46
46
  JUMP_BLOCK_START = "jump_to_block_start",
47
47
  JUMP_BLOCK_END = "jump_to_block_end",
48
48
  JUMP_FIRST_BLOCK = "jump_to_first_block",
49
- JUMP_LAST_BLOCK = "jump_to_last_block"
49
+ JUMP_LAST_BLOCK = "jump_to_last_block",
50
+ JUMP_PREVIOUS_PAGE = "jump_to_previous_page",
51
+ JUMP_NEXT_PAGE = "jump_to_next_page",
52
+ SCROLL_LEFT = "scroll_left",
53
+ SCROLL_RIGHT = "scroll_right",
54
+ SCROLL_UP = "scroll_up",
55
+ SCROLL_DOWN = "scroll_down"
50
56
  }
51
57
  /**
52
58
  * Keyboard shortcut to hide chaff on escape.
@@ -177,6 +183,21 @@ export declare function registerJumpFirstBlock(): void;
177
183
  * block in the workspace.
178
184
  */
179
185
  export declare function registerJumpLastBlock(): void;
186
+ /**
187
+ * Registers a keyboard shortcut that pages backwards through the items of the
188
+ * focused toolbox or flyout.
189
+ */
190
+ export declare function registerJumpPreviousPage(): void;
191
+ /**
192
+ * Registers a keyboard shortcut that pages forwards through the items of the
193
+ * focused toolbox or flyout.
194
+ */
195
+ export declare function registerJumpNextPage(): void;
196
+ /**
197
+ * Registers keyboard shortcuts to scroll the focused workspace or flyout with
198
+ * Ctrl/Cmd + arrow keys.
199
+ */
200
+ export declare function registerWorkspaceScrollShortcuts(): void;
180
201
  /**
181
202
  * Registers all default keyboard shortcut item. This should be called once per
182
203
  * instance of KeyboardShortcutRegistry.
@@ -194,7 +215,9 @@ export declare function registerKeyboardNavigationShortcuts(): void;
194
215
  */
195
216
  export declare function registerScreenReaderShortcuts(): void;
196
217
  /**
197
- * Registers keyboard shortcuts used to jump between blocks and stacks in the workspace.
218
+ * Registers keyboard shortcuts used to jump between blocks and stacks in the
219
+ * workspace, between items in the toolbox and flyout, and to scroll the
220
+ * workspace or flyout.
198
221
  * Note these are not registered by default, so call this function to enable them if desired.
199
222
  */
200
223
  export declare function registerNavigationShortcuts(): void;
@@ -9,9 +9,9 @@
9
9
  *
10
10
  * @class
11
11
  */
12
- import { Scope } from './contextmenu_registry.js';
12
+ import type { Scope } from './contextmenu_registry.js';
13
13
  import { KeyCodes } from './utils/keycodes.js';
14
- import { WorkspaceSvg } from './workspace_svg.js';
14
+ import type { WorkspaceSvg } from './workspace_svg.js';
15
15
  /**
16
16
  * Class for the registry of keyboard shortcuts. This is intended to be a
17
17
  * singleton. You should not create a new instance, and only access this class
@@ -21,7 +21,7 @@ export declare class ShortcutRegistry {
21
21
  static readonly registry: ShortcutRegistry;
22
22
  /** Registry of all keyboard shortcuts, keyed by name of shortcut. */
23
23
  private shortcuts;
24
- /** Map of key codes to an array of shortcut names. */
24
+ /** Map of key codes to a set of shortcut names. */
25
25
  private keyMap;
26
26
  /** Resets the existing ShortcutRegistry singleton. */
27
27
  private constructor();
package/core/tooltip.d.ts CHANGED
@@ -25,9 +25,10 @@ export type CustomTooltip = (p1: Element, p2: Element) => any;
25
25
  * Sets a custom function that will be called if present instead of the default
26
26
  * tooltip UI.
27
27
  *
28
- * @param customFn A custom tooltip used to render an alternate tooltip UI.
28
+ * @param customFn A custom tooltip used to render an alternate tooltip UI, or
29
+ * undefined to use the default implementation.
29
30
  */
30
- export declare function setCustomTooltip(customFn: CustomTooltip): void;
31
+ export declare function setCustomTooltip(customFn: CustomTooltip | undefined): void;
31
32
  /**
32
33
  * Gets the custom tooltip function.
33
34
  *
@@ -9,7 +9,6 @@ import type { IAutoHideable } from './interfaces/i_autohideable.js';
9
9
  import type { IComponent } from './interfaces/i_component';
10
10
  import type { IDraggable } from './interfaces/i_draggable.js';
11
11
  import type { IFlyout } from './interfaces/i_flyout.js';
12
- import type { IFocusableNode } from './interfaces/i_focusable_node.js';
13
12
  import type { IPositionable } from './interfaces/i_positionable.js';
14
13
  import type { UiMetrics } from './metrics_manager.js';
15
14
  import { Rect } from './utils/rect.js';
@@ -17,7 +16,7 @@ import type { WorkspaceSvg } from './workspace_svg.js';
17
16
  /**
18
17
  * Class for a trash can.
19
18
  */
20
- export declare class Trashcan extends DeleteArea implements IAutoHideable, IPositionable, IFocusableNode, IComponent {
19
+ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPositionable, IComponent {
21
20
  private workspace;
22
21
  /**
23
22
  * The id for this component that is used to register with the
@@ -153,6 +152,12 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
153
152
  closeLid(): void;
154
153
  /** Inspect the contents of the trash. */
155
154
  click(): void;
155
+ /**
156
+ * Activates the trashcan when Enter or Space is pressed.
157
+ *
158
+ * @param e A keydown event.
159
+ */
160
+ private onKeyDown;
156
161
  /**
157
162
  * Fires a UI event for trashcan flyout open or close.
158
163
  *
@@ -181,11 +186,5 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
181
186
  * unnecessary attributes.
182
187
  */
183
188
  private cleanBlockJson;
184
- getFocusableElement(): SVGElement;
185
- getFocusableTree(): WorkspaceSvg;
186
- onNodeFocus(): void;
187
- onNodeBlur(): void;
188
- canBeFocused(): boolean;
189
- performAction(): void;
190
189
  }
191
190
  //# sourceMappingURL=trashcan.d.ts.map
@@ -69,6 +69,8 @@ export declare enum Role {
69
69
  REGION = "region",
70
70
  /** See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/row_role. */
71
71
  ROW = "row",
72
+ /** See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/search_role. */
73
+ SEARCH = "search",
72
74
  /** See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/separator_role. */
73
75
  SEPARATOR = "separator",
74
76
  /** See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role. */
@@ -274,7 +276,7 @@ export declare function getState(element: Element, stateName: State): string | n
274
276
  *
275
277
  * @param parent The container element to which the live region will be appended.
276
278
  */
277
- export declare function initializeGlobalAriaLiveRegion(parent: HTMLDivElement): void;
279
+ export declare function initializeGlobalAriaLiveRegion(parent: HTMLElement): void;
278
280
  /**
279
281
  * Requests that the specified text be read to the user if a screen reader is
280
282
  * currently active.
@@ -34,8 +34,8 @@ export declare class FocusableTreeTraverser {
34
34
  * the specified IFocusableTree.
35
35
  *
36
36
  * If the element exists within the specified tree's DOM structure but does
37
- * not directly correspond to a node, the nearest parent node (or the tree's
38
- * root) will be returned to represent the provided element.
37
+ * not directly correspond to a node and is not a tab stop, the nearest parent
38
+ * node (or the tree's root) will be returned to represent the provided element.
39
39
  *
40
40
  * If the tree contains another nested IFocusableTree, the nested tree may be
41
41
  * traversed but its nodes will never be returned here per the contract of
@@ -53,6 +53,20 @@ export declare function getViewportPageOffset(): Coordinate;
53
53
  * @returns The computed border widths.
54
54
  */
55
55
  export declare function getBorderBox(element: Element): Rect;
56
+ /**
57
+ * Converts a point in page coordinates into the equivalent CSS `left`/`top`
58
+ * for an absolutely positioned child of `container`.
59
+ *
60
+ * Those properties are resolved against the container's padding box, so the
61
+ * container's border widths have to be subtracted along with its position.
62
+ *
63
+ * @param x Horizontal page coordinate.
64
+ * @param y Vertical page coordinate.
65
+ * @param container The relatively positioned parent element.
66
+ * @returns The equivalent point relative to the container's padding box.
67
+ * @internal
68
+ */
69
+ export declare function pageToContainerOffset(x: number, y: number, container: Element): Coordinate;
56
70
  /**
57
71
  * Changes the scroll position of `container` with the minimum amount so
58
72
  * that the content and the borders of the given `element` become visible.
@@ -154,10 +154,6 @@ export declare function convertFlyoutDefToJsonArray(flyoutDef: FlyoutDefinition
154
154
  * @internal
155
155
  */
156
156
  export declare function hasCategories(toolboxJson: ToolboxInfo | null): boolean;
157
- /**
158
- * Private version of hasCategories for stubbing in tests.
159
- */
160
- declare function hasCategoriesInternal(toolboxJson: ToolboxInfo | null): boolean;
161
157
  /**
162
158
  * Whether or not the category is collapsible.
163
159
  *
@@ -173,8 +169,4 @@ export declare function isCategoryCollapsible(categoryInfo: CategoryInfo): boole
173
169
  * @returns DOM tree of blocks, or null.
174
170
  */
175
171
  export declare function parseToolboxTree(toolboxDef: Element | null | string): Element | null;
176
- export declare const TEST_ONLY: {
177
- hasCategoriesInternal: typeof hasCategoriesInternal;
178
- };
179
- export {};
180
172
  //# sourceMappingURL=toolbox.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { IVariableMap } from './interfaces/i_variable_map.js';
7
- import { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
7
+ import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
8
8
  import type { Workspace } from './workspace.js';
9
9
  /**
10
10
  * Class for a variable map. This contains a dictionary data structure with
@@ -3,7 +3,7 @@
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
6
+ import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
7
7
  import type { Workspace } from './workspace.js';
8
8
  /**
9
9
  * Class for a variable model.
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { Block } from './block.js';
7
- import { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
7
+ import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
8
8
  import type { BlockInfo, FlyoutItemInfo } from './utils/toolbox.js';
9
9
  import type { Workspace } from './workspace.js';
10
10
  import type { WorkspaceSvg } from './workspace_svg.js';
@@ -9,12 +9,12 @@
9
9
  * @class
10
10
  */
11
11
  import type { Block } from './block.js';
12
- import { WorkspaceComment } from './comments/workspace_comment.js';
12
+ import type { WorkspaceComment } from './comments/workspace_comment.js';
13
13
  import type { ConnectionDB } from './connection_db.js';
14
14
  import type { Abstract } from './events/events_abstract.js';
15
15
  import type { IBoundedElement } from './interfaces/i_bounded_element.js';
16
16
  import type { IConnectionChecker } from './interfaces/i_connection_checker.js';
17
- import { IProcedureMap } from './interfaces/i_procedure_map.js';
17
+ import type { IProcedureMap } from './interfaces/i_procedure_map.js';
18
18
  import type { IVariableMap } from './interfaces/i_variable_map.js';
19
19
  import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
20
20
  import { Options } from './options.js';
@@ -3,6 +3,7 @@
3
3
  * Copyright 2026 Raspberry Pi Foundation
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
+ import type { IContextMenu } from './interfaces/i_contextmenu.js';
6
7
  import type { IFocusableNode } from './interfaces/i_focusable_node.js';
7
8
  import type { IFocusableTree } from './interfaces/i_focusable_tree.js';
8
9
  import type { WorkspaceSvg } from './workspace_svg.js';
@@ -18,7 +19,7 @@ import type { WorkspaceSvg } from './workspace_svg.js';
18
19
  * description; the enclosing region keeps a short, stable label
19
20
  * ("Blocks workspace.").
20
21
  */
21
- export declare class WorkspaceFocusTarget implements IFocusableNode {
22
+ export declare class WorkspaceFocusTarget implements IFocusableNode, IContextMenu {
22
23
  private readonly workspace;
23
24
  private readonly element;
24
25
  /**
@@ -42,5 +43,9 @@ export declare class WorkspaceFocusTarget implements IFocusableNode {
42
43
  * @returns The workspace this focus target represents.
43
44
  */
44
45
  getWorkspace(): WorkspaceSvg;
46
+ /**
47
+ * Displays the workspace's context menu.
48
+ */
49
+ showContextMenu(e: Event): void;
45
50
  }
46
51
  //# sourceMappingURL=workspace_focus_target.d.ts.map
@@ -12,14 +12,14 @@ import type { Block } from './block.js';
12
12
  import type { BlockSvg } from './block_svg.js';
13
13
  import * as browserEvents from './browser_events.js';
14
14
  import { RenderedWorkspaceComment } from './comments/rendered_workspace_comment.js';
15
- import { WorkspaceComment } from './comments/workspace_comment.js';
15
+ import type { WorkspaceComment } from './comments/workspace_comment.js';
16
16
  import { ComponentManager } from './component_manager.js';
17
- import { ContextMenuOption } from './contextmenu_registry.js';
17
+ import type { ContextMenuOption } from './contextmenu_registry.js';
18
18
  import type { FlyoutButton } from './flyout_button.js';
19
19
  import { Gesture } from './gesture.js';
20
20
  import { Grid } from './grid.js';
21
21
  import type { IBoundedElement } from './interfaces/i_bounded_element.js';
22
- import { IContextMenu } from './interfaces/i_contextmenu.js';
22
+ import type { IContextMenu } from './interfaces/i_contextmenu.js';
23
23
  import type { IDragTarget } from './interfaces/i_drag_target.js';
24
24
  import type { IFlyout } from './interfaces/i_flyout.js';
25
25
  import { type IFocusableNode } from './interfaces/i_focusable_node.js';
@@ -801,8 +801,9 @@ export declare class WorkspaceSvg extends Workspace implements IContextMenu, IFo
801
801
  *
802
802
  * @param x Target X to scroll to.
803
803
  * @param y Target Y to scroll to.
804
+ * @param shouldHidePopups Whether to hide popups. Defaults to true.
804
805
  */
805
- scroll(x: number, y: number): void;
806
+ scroll(x: number, y: number, shouldHidePopups?: boolean): void;
806
807
  /**
807
808
  * Find the block on this workspace with the specified ID.
808
809
  *
package/core/xml.d.ts CHANGED
@@ -7,7 +7,7 @@ import type { Block } from './block.js';
7
7
  import { WorkspaceComment } from './comments/workspace_comment.js';
8
8
  import type { IVariableModel, IVariableState } from './interfaces/i_variable_model.js';
9
9
  import type { Workspace } from './workspace.js';
10
- import { WorkspaceSvg } from './workspace_svg.js';
10
+ import type { WorkspaceSvg } from './workspace_svg.js';
11
11
  /**
12
12
  * Encode a block tree as XML.
13
13
  *