blockly 11.0.0-beta.8 → 11.0.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 (303) hide show
  1. package/blockly.min.js +456 -475
  2. package/blockly.mjs +143 -0
  3. package/blockly_compressed.js +426 -445
  4. package/blockly_compressed.js.map +1 -1
  5. package/blocks.js +4 -0
  6. package/blocks.mjs +12 -0
  7. package/blocks_compressed.js +22 -23
  8. package/blocks_compressed.js.map +1 -1
  9. package/core/block.d.ts +52 -4
  10. package/core/block_svg.d.ts +22 -2
  11. package/core/blockly.d.ts +0 -4
  12. package/core/clipboard/block_paster.d.ts +3 -1
  13. package/core/clipboard/workspace_comment_paster.d.ts +5 -4
  14. package/core/comments/comment_view.d.ts +6 -1
  15. package/core/comments/rendered_workspace_comment.d.ts +22 -4
  16. package/core/constants.d.ts +5 -0
  17. package/core/contextmenu.d.ts +1 -34
  18. package/core/contextmenu_items.d.ts +8 -0
  19. package/core/contextmenu_registry.d.ts +18 -3
  20. package/core/dragging/block_drag_strategy.d.ts +1 -8
  21. package/core/dragging/comment_drag_strategy.d.ts +1 -0
  22. package/core/events/events_block_change.d.ts +15 -0
  23. package/core/events/utils.d.ts +1 -3
  24. package/core/field.d.ts +20 -4
  25. package/core/field_input.d.ts +4 -3
  26. package/core/field_registry.d.ts +35 -3
  27. package/core/flyout_base.d.ts +8 -0
  28. package/core/grid.d.ts +9 -0
  29. package/core/interfaces/i_flyout.d.ts +10 -0
  30. package/core/keyboard_nav/ast_node.d.ts +10 -1
  31. package/core/layer_manager.d.ts +11 -0
  32. package/core/serialization/blocks.d.ts +1 -0
  33. package/core/serialization/workspace_comments.d.ts +1 -1
  34. package/core/utils/toolbox.d.ts +1 -0
  35. package/core/workspace.d.ts +9 -1
  36. package/core/workspace_svg.d.ts +10 -2
  37. package/core.js +4 -0
  38. package/dart.js +4 -0
  39. package/dart.mjs +6 -0
  40. package/index.mjs +143 -0
  41. package/javascript.js +4 -0
  42. package/javascript.mjs +6 -0
  43. package/lua.js +4 -0
  44. package/lua.mjs +6 -0
  45. package/media/resize-handle.svg +1 -1
  46. package/msg/ab.js +8 -7
  47. package/msg/ab.mjs +423 -0
  48. package/msg/ace.js +8 -7
  49. package/msg/ace.mjs +423 -0
  50. package/msg/af.js +8 -7
  51. package/msg/af.mjs +423 -0
  52. package/msg/am.js +8 -7
  53. package/msg/am.mjs +423 -0
  54. package/msg/ar.js +8 -7
  55. package/msg/ar.mjs +423 -0
  56. package/msg/ast.js +8 -7
  57. package/msg/ast.mjs +423 -0
  58. package/msg/az.js +8 -7
  59. package/msg/az.mjs +423 -0
  60. package/msg/ba.js +8 -7
  61. package/msg/ba.mjs +423 -0
  62. package/msg/bcc.js +8 -7
  63. package/msg/bcc.mjs +423 -0
  64. package/msg/be-tarask.js +8 -7
  65. package/msg/be-tarask.mjs +423 -0
  66. package/msg/be.js +8 -7
  67. package/msg/be.mjs +423 -0
  68. package/msg/bg.js +8 -7
  69. package/msg/bg.mjs +423 -0
  70. package/msg/bn.js +8 -7
  71. package/msg/bn.mjs +423 -0
  72. package/msg/br.js +8 -7
  73. package/msg/br.mjs +423 -0
  74. package/msg/bs.js +8 -7
  75. package/msg/bs.mjs +423 -0
  76. package/msg/ca.js +8 -7
  77. package/msg/ca.mjs +423 -0
  78. package/msg/cdo.js +8 -7
  79. package/msg/cdo.mjs +423 -0
  80. package/msg/ce.js +8 -7
  81. package/msg/ce.mjs +423 -0
  82. package/msg/cs.js +8 -7
  83. package/msg/cs.mjs +423 -0
  84. package/msg/da.js +8 -7
  85. package/msg/da.mjs +423 -0
  86. package/msg/de.js +27 -26
  87. package/msg/de.mjs +423 -0
  88. package/msg/diq.js +8 -7
  89. package/msg/diq.mjs +423 -0
  90. package/msg/dtp.js +8 -7
  91. package/msg/dtp.mjs +423 -0
  92. package/msg/dty.js +8 -7
  93. package/msg/dty.mjs +423 -0
  94. package/msg/ee.js +8 -7
  95. package/msg/ee.mjs +423 -0
  96. package/msg/el.js +123 -122
  97. package/msg/el.mjs +423 -0
  98. package/msg/en-gb.js +8 -7
  99. package/msg/en-gb.mjs +423 -0
  100. package/msg/en.js +8 -7
  101. package/msg/en.mjs +423 -0
  102. package/msg/eo.js +8 -7
  103. package/msg/eo.mjs +423 -0
  104. package/msg/es.js +8 -7
  105. package/msg/es.mjs +423 -0
  106. package/msg/et.js +8 -7
  107. package/msg/et.mjs +423 -0
  108. package/msg/eu.js +8 -7
  109. package/msg/eu.mjs +423 -0
  110. package/msg/fa.js +10 -9
  111. package/msg/fa.mjs +423 -0
  112. package/msg/fi.js +8 -7
  113. package/msg/fi.mjs +423 -0
  114. package/msg/fo.js +8 -7
  115. package/msg/fo.mjs +423 -0
  116. package/msg/fr.js +11 -10
  117. package/msg/fr.mjs +423 -0
  118. package/msg/frr.js +8 -7
  119. package/msg/frr.mjs +423 -0
  120. package/msg/gl.js +8 -7
  121. package/msg/gl.mjs +423 -0
  122. package/msg/gn.js +8 -7
  123. package/msg/gn.mjs +423 -0
  124. package/msg/gor.js +8 -7
  125. package/msg/gor.mjs +423 -0
  126. package/msg/ha.js +8 -7
  127. package/msg/ha.mjs +423 -0
  128. package/msg/hak.js +8 -7
  129. package/msg/hak.mjs +423 -0
  130. package/msg/he.js +8 -7
  131. package/msg/he.mjs +423 -0
  132. package/msg/hi.js +8 -7
  133. package/msg/hi.mjs +423 -0
  134. package/msg/hr.js +8 -7
  135. package/msg/hr.mjs +423 -0
  136. package/msg/hrx.js +8 -7
  137. package/msg/hrx.mjs +423 -0
  138. package/msg/hsb.js +8 -7
  139. package/msg/hsb.mjs +423 -0
  140. package/msg/hu.js +8 -7
  141. package/msg/hu.mjs +423 -0
  142. package/msg/hy.js +8 -7
  143. package/msg/hy.mjs +423 -0
  144. package/msg/ia.js +8 -7
  145. package/msg/ia.mjs +423 -0
  146. package/msg/id.js +8 -7
  147. package/msg/id.mjs +423 -0
  148. package/msg/ig.js +8 -7
  149. package/msg/ig.mjs +423 -0
  150. package/msg/inh.js +8 -7
  151. package/msg/inh.mjs +423 -0
  152. package/msg/is.js +8 -7
  153. package/msg/is.mjs +423 -0
  154. package/msg/it.js +8 -7
  155. package/msg/it.mjs +423 -0
  156. package/msg/ja.js +8 -7
  157. package/msg/ja.mjs +423 -0
  158. package/msg/ka.js +8 -7
  159. package/msg/ka.mjs +423 -0
  160. package/msg/kab.js +8 -7
  161. package/msg/kab.mjs +423 -0
  162. package/msg/kbd-cyrl.js +8 -7
  163. package/msg/kbd-cyrl.mjs +423 -0
  164. package/msg/km.js +8 -7
  165. package/msg/km.mjs +423 -0
  166. package/msg/kn.js +8 -7
  167. package/msg/kn.mjs +423 -0
  168. package/msg/ko.js +9 -8
  169. package/msg/ko.mjs +423 -0
  170. package/msg/ksh.js +8 -7
  171. package/msg/ksh.mjs +423 -0
  172. package/msg/ku-latn.js +8 -7
  173. package/msg/ku-latn.mjs +423 -0
  174. package/msg/ky.js +8 -7
  175. package/msg/ky.mjs +423 -0
  176. package/msg/la.js +8 -7
  177. package/msg/la.mjs +423 -0
  178. package/msg/lb.js +8 -7
  179. package/msg/lb.mjs +423 -0
  180. package/msg/lki.js +8 -7
  181. package/msg/lki.mjs +423 -0
  182. package/msg/lo.js +8 -7
  183. package/msg/lo.mjs +423 -0
  184. package/msg/lrc.js +8 -7
  185. package/msg/lrc.mjs +423 -0
  186. package/msg/lt.js +8 -7
  187. package/msg/lt.mjs +423 -0
  188. package/msg/lv.js +8 -7
  189. package/msg/lv.mjs +423 -0
  190. package/msg/mg.js +8 -7
  191. package/msg/mg.mjs +423 -0
  192. package/msg/mk.js +8 -7
  193. package/msg/mk.mjs +423 -0
  194. package/msg/ml.js +8 -7
  195. package/msg/ml.mjs +423 -0
  196. package/msg/mnw.js +8 -7
  197. package/msg/mnw.mjs +423 -0
  198. package/msg/ms.js +9 -8
  199. package/msg/ms.mjs +423 -0
  200. package/msg/my.js +8 -7
  201. package/msg/my.mjs +423 -0
  202. package/msg/mzn.js +8 -7
  203. package/msg/mzn.mjs +423 -0
  204. package/msg/nb.js +8 -7
  205. package/msg/nb.mjs +423 -0
  206. package/msg/ne.js +225 -224
  207. package/msg/ne.mjs +423 -0
  208. package/msg/nl.js +15 -14
  209. package/msg/nl.mjs +423 -0
  210. package/msg/oc.js +8 -7
  211. package/msg/oc.mjs +423 -0
  212. package/msg/olo.js +8 -7
  213. package/msg/olo.mjs +423 -0
  214. package/msg/pa.js +8 -7
  215. package/msg/pa.mjs +423 -0
  216. package/msg/pl.js +8 -7
  217. package/msg/pl.mjs +423 -0
  218. package/msg/pms.js +8 -7
  219. package/msg/pms.mjs +423 -0
  220. package/msg/ps.js +8 -7
  221. package/msg/ps.mjs +423 -0
  222. package/msg/pt-br.js +10 -9
  223. package/msg/pt-br.mjs +423 -0
  224. package/msg/pt.js +8 -7
  225. package/msg/pt.mjs +423 -0
  226. package/msg/ro.js +8 -7
  227. package/msg/ro.mjs +423 -0
  228. package/msg/ru.js +9 -8
  229. package/msg/ru.mjs +423 -0
  230. package/msg/sc.js +8 -7
  231. package/msg/sc.mjs +423 -0
  232. package/msg/sco.js +8 -7
  233. package/msg/sco.mjs +423 -0
  234. package/msg/sd.js +8 -7
  235. package/msg/sd.mjs +423 -0
  236. package/msg/shn.js +8 -7
  237. package/msg/shn.mjs +423 -0
  238. package/msg/si.js +8 -7
  239. package/msg/si.mjs +423 -0
  240. package/msg/sk.js +8 -7
  241. package/msg/sk.mjs +423 -0
  242. package/msg/skr-arab.js +8 -7
  243. package/msg/skr-arab.mjs +423 -0
  244. package/msg/sl.js +8 -7
  245. package/msg/sl.mjs +423 -0
  246. package/msg/smn.js +8 -7
  247. package/msg/smn.mjs +423 -0
  248. package/msg/sq.js +8 -7
  249. package/msg/sq.mjs +423 -0
  250. package/msg/sr-latn.js +8 -7
  251. package/msg/sr-latn.mjs +423 -0
  252. package/msg/sr.js +8 -7
  253. package/msg/sr.mjs +423 -0
  254. package/msg/sv.js +8 -7
  255. package/msg/sv.mjs +423 -0
  256. package/msg/sw.js +8 -7
  257. package/msg/sw.mjs +423 -0
  258. package/msg/ta.js +14 -13
  259. package/msg/ta.mjs +423 -0
  260. package/msg/tcy.js +8 -7
  261. package/msg/tcy.mjs +423 -0
  262. package/msg/tdd.js +11 -10
  263. package/msg/tdd.mjs +423 -0
  264. package/msg/te.js +8 -7
  265. package/msg/te.mjs +423 -0
  266. package/msg/th.js +8 -7
  267. package/msg/th.mjs +423 -0
  268. package/msg/ti.js +8 -7
  269. package/msg/ti.mjs +423 -0
  270. package/msg/tl.js +8 -7
  271. package/msg/tl.mjs +423 -0
  272. package/msg/tlh.js +8 -7
  273. package/msg/tlh.mjs +423 -0
  274. package/msg/tr.js +10 -9
  275. package/msg/tr.mjs +423 -0
  276. package/msg/ug-arab.js +8 -7
  277. package/msg/ug-arab.mjs +423 -0
  278. package/msg/uk.js +8 -7
  279. package/msg/uk.mjs +423 -0
  280. package/msg/ur.js +8 -7
  281. package/msg/ur.mjs +423 -0
  282. package/msg/uz.js +8 -7
  283. package/msg/uz.mjs +423 -0
  284. package/msg/vi.js +11 -10
  285. package/msg/vi.mjs +423 -0
  286. package/msg/xmf.js +8 -7
  287. package/msg/xmf.mjs +423 -0
  288. package/msg/yo.js +8 -7
  289. package/msg/yo.mjs +423 -0
  290. package/msg/zgh.js +8 -7
  291. package/msg/zgh.mjs +423 -0
  292. package/msg/zh-hans.js +9 -8
  293. package/msg/zh-hans.mjs +423 -0
  294. package/msg/zh-hant.js +18 -17
  295. package/msg/zh-hant.mjs +423 -0
  296. package/package.json +12 -2
  297. package/php.js +4 -0
  298. package/php.mjs +6 -0
  299. package/python.js +4 -0
  300. package/python.mjs +6 -0
  301. package/core/workspace_comment.d.ts +0 -190
  302. package/core/workspace_comment_svg.d.ts +0 -360
  303. package/msg/yue.d.ts +0 -8
@@ -9,6 +9,7 @@ import type { Coordinate } from '../utils/coordinate.js';
9
9
  import type { FlyoutDefinition } from '../utils/toolbox.js';
10
10
  import type { Svg } from '../utils/svg.js';
11
11
  import type { IRegistrable } from './i_registrable.js';
12
+ import { FlyoutItem } from '../flyout_base.js';
12
13
  /**
13
14
  * Interface for a flyout.
14
15
  */
@@ -94,6 +95,15 @@ export interface IFlyout extends IRegistrable {
94
95
  * of the dynamic category.
95
96
  */
96
97
  show(flyoutDef: FlyoutDefinition | string): void;
98
+ /**
99
+ * Returns the list of flyout items currently present in the flyout.
100
+ * The `show` method parses the flyout definition into a list of actual
101
+ * flyout items. This method should return those concrete items, which
102
+ * may be used for e.g. keyboard navigation.
103
+ *
104
+ * @returns List of flyout items.
105
+ */
106
+ getContents(): FlyoutItem[];
97
107
  /**
98
108
  * Create a copy of this block on the workspace.
99
109
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @class
11
11
  */
12
- import type { Block } from '../block.js';
12
+ import { Block } from '../block.js';
13
13
  import type { Connection } from '../connection.js';
14
14
  import type { Field } from '../field.js';
15
15
  import type { Input } from '../inputs/input.js';
@@ -127,6 +127,15 @@ export declare class ASTNode {
127
127
  * @returns The next button, or next stack's first block, or null
128
128
  */
129
129
  private navigateFlyoutContents;
130
+ /**
131
+ * Finds the next (or previous if navigating backward) item in the flyout that should be navigated to.
132
+ *
133
+ * @param flyoutContents Contents of the current flyout.
134
+ * @param currentLocation Current ASTNode location.
135
+ * @param forward True if we're navigating forward, else false.
136
+ * @returns The next (or previous) FlyoutItem, or null if there is none.
137
+ */
138
+ private findNextLocationInFlyout;
130
139
  /**
131
140
  * Finds the top most AST node for a given block.
132
141
  * This is either the previous connection, output connection or block
@@ -11,11 +11,22 @@ export declare class LayerManager {
11
11
  private workspace;
12
12
  /** The layer elements being dragged are appended to. */
13
13
  private dragLayer;
14
+ /** The layer elements being animated are appended to. */
15
+ private animationLayer;
14
16
  /** The layers elements not being dragged are appended to. */
15
17
  private layers;
16
18
  /** @internal */
17
19
  constructor(workspace: WorkspaceSvg);
18
20
  private createDragLayer;
21
+ private createAnimationLayer;
22
+ /**
23
+ * Appends the element to the animation layer. The animation layer doesn't
24
+ * move when the workspace moves, so e.g. delete animations don't move
25
+ * when a block delete triggers a workspace resize.
26
+ *
27
+ * @internal
28
+ */
29
+ appendToAnimationLayer(elem: IRenderedElement): void;
19
30
  /**
20
31
  * Translates layers when the workspace is dragged or zoomed.
21
32
  *
@@ -27,6 +27,7 @@ export interface State {
27
27
  movable?: boolean;
28
28
  editable?: boolean;
29
29
  enabled?: boolean;
30
+ disabledReasons?: string[];
30
31
  inline?: boolean;
31
32
  data?: string;
32
33
  extraState?: any;
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { ISerializer } from '../interfaces/i_serializer.js';
7
7
  import { Workspace } from '../workspace.js';
8
- import { WorkspaceComment } from '../comments/workspace_comment.js';
8
+ import type { WorkspaceComment } from '../comments/workspace_comment.js';
9
9
  export interface State {
10
10
  id?: string;
11
11
  text?: string;
@@ -16,6 +16,7 @@ export interface BlockInfo {
16
16
  type?: string;
17
17
  gap?: string | number;
18
18
  disabled?: string | boolean;
19
+ disabledReasons?: string[];
19
20
  enabled?: boolean;
20
21
  id?: string;
21
22
  x?: number;
@@ -18,7 +18,7 @@ import { Options } from './options.js';
18
18
  import type * as toolbox from './utils/toolbox.js';
19
19
  import { VariableMap } from './variable_map.js';
20
20
  import type { VariableModel } from './variable_model.js';
21
- import type { WorkspaceComment } from './workspace_comment.js';
21
+ import { WorkspaceComment } from './comments/workspace_comment.js';
22
22
  import { IProcedureMap } from './interfaces/i_procedure_map.js';
23
23
  /**
24
24
  * Class for a workspace. This is a data structure that contains blocks.
@@ -279,6 +279,14 @@ export declare class Workspace implements IASTNodeLocation {
279
279
  * @returns The created block.
280
280
  */
281
281
  newBlock(prototypeName: string, opt_id?: string): Block;
282
+ /**
283
+ * Obtain a newly created comment.
284
+ *
285
+ * @param id Optional ID. Use this ID if provided, otherwise create a new
286
+ * ID.
287
+ * @returns The created comment.
288
+ */
289
+ newComment(id?: string): WorkspaceComment;
282
290
  /**
283
291
  * The number of blocks that may be added to the workspace before reaching
284
292
  * the maxBlocks.
@@ -42,7 +42,7 @@ import * as toolbox from './utils/toolbox.js';
42
42
  import type { VariableModel } from './variable_model.js';
43
43
  import { Workspace } from './workspace.js';
44
44
  import { WorkspaceAudio } from './workspace_audio.js';
45
- import { WorkspaceComment } from './workspace_comment.js';
45
+ import { WorkspaceComment } from './comments/workspace_comment.js';
46
46
  import { ZoomControls } from './zoom_controls.js';
47
47
  import { ContextMenuOption } from './contextmenu_registry.js';
48
48
  import { LayerManager } from './layer_manager.js';
@@ -618,6 +618,14 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
618
618
  * @returns The created block.
619
619
  */
620
620
  newBlock(prototypeName: string, opt_id?: string): BlockSvg;
621
+ /**
622
+ * Obtain a newly created comment.
623
+ *
624
+ * @param id Optional ID. Use this ID if provided, otherwise create a new
625
+ * ID.
626
+ * @returns The created comment.
627
+ */
628
+ newComment(id?: string): WorkspaceComment;
621
629
  /**
622
630
  * Returns the drag target the pointer event is over.
623
631
  *
@@ -704,7 +712,7 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
704
712
  * @param e Mouse event.
705
713
  * @internal
706
714
  */
707
- showContextMenu(e: Event): void;
715
+ showContextMenu(e: PointerEvent): void;
708
716
  /**
709
717
  * Modify the block tree on the existing toolbox.
710
718
  *
package/core.js ADDED
@@ -0,0 +1,4 @@
1
+ // Shim for backwards-compatibility with bundlers that do not
2
+ // support the 'exports' clause in package.json, to allow them
3
+ // to load the blockly/core submodule entrypoint.
4
+ module.exports = require('./blockly_compressed.js');
package/dart.js ADDED
@@ -0,0 +1,4 @@
1
+ // Shim for backwards-compatibility with bundlers that do not
2
+ // support the 'exports' clause in package.json, to allow them
3
+ // to load the blockly/dart submodule entrypoint.
4
+ module.exports = require('./dart_compressed.js');
package/dart.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import dart from './dart_compressed.js';
2
+ export const {
3
+ DartGenerator,
4
+ Order,
5
+ dartGenerator,
6
+ } = dart;
package/index.mjs ADDED
@@ -0,0 +1,143 @@
1
+ import Blockly from './index.js';
2
+ export const {
3
+ ASTNode,
4
+ BasicCursor,
5
+ Block,
6
+ BlockSvg,
7
+ Blocks,
8
+ COLLAPSED_FIELD_NAME,
9
+ COLLAPSED_INPUT_NAME,
10
+ COLLAPSE_CHARS,
11
+ CodeGenerator,
12
+ CollapsibleToolboxCategory,
13
+ ComponentManager,
14
+ Connection,
15
+ ConnectionChecker,
16
+ ConnectionDB,
17
+ ConnectionType,
18
+ ContextMenu,
19
+ ContextMenuItems,
20
+ ContextMenuRegistry,
21
+ Css,
22
+ Cursor,
23
+ DELETE_VARIABLE_ID,
24
+ DeleteArea,
25
+ DragTarget,
26
+ DropDownDiv,
27
+ Events,
28
+ Extensions,
29
+ Field,
30
+ FieldCheckbox,
31
+ FieldDropdown,
32
+ FieldImage,
33
+ FieldLabel,
34
+ FieldLabelSerializable,
35
+ FieldNumber,
36
+ FieldTextInput,
37
+ FieldVariable,
38
+ Flyout,
39
+ FlyoutButton,
40
+ FlyoutMetricsManager,
41
+ Generator,
42
+ Gesture,
43
+ Grid,
44
+ HorizontalFlyout,
45
+ INPUT_VALUE,
46
+ Input,
47
+ InsertionMarkerManager,
48
+ InsertionMarkerPreviewer,
49
+ Marker,
50
+ MarkerManager,
51
+ Menu,
52
+ MenuItem,
53
+ MetricsManager,
54
+ Msg,
55
+ NEXT_STATEMENT,
56
+ Names,
57
+ OPPOSITE_TYPE,
58
+ OUTPUT_VALUE,
59
+ Options,
60
+ PREVIOUS_STATEMENT,
61
+ PROCEDURE_CATEGORY_NAME,
62
+ Procedures,
63
+ RENAME_VARIABLE_ID,
64
+ RenderedConnection,
65
+ Scrollbar,
66
+ ScrollbarPair,
67
+ ShortcutItems,
68
+ ShortcutRegistry,
69
+ TOOLBOX_AT_BOTTOM,
70
+ TOOLBOX_AT_LEFT,
71
+ TOOLBOX_AT_RIGHT,
72
+ TOOLBOX_AT_TOP,
73
+ TabNavigateCursor,
74
+ Theme,
75
+ ThemeManager,
76
+ Themes,
77
+ Toolbox,
78
+ ToolboxCategory,
79
+ ToolboxItem,
80
+ ToolboxSeparator,
81
+ Tooltip,
82
+ Touch,
83
+ Trashcan,
84
+ UnattachedFieldError,
85
+ VARIABLE_CATEGORY_NAME,
86
+ VARIABLE_DYNAMIC_CATEGORY_NAME,
87
+ VERSION,
88
+ VariableMap,
89
+ VariableModel,
90
+ Variables,
91
+ VariablesDynamic,
92
+ VerticalFlyout,
93
+ WidgetDiv,
94
+ Workspace,
95
+ WorkspaceAudio,
96
+ WorkspaceDragger,
97
+ WorkspaceSvg,
98
+ Xml,
99
+ ZoomControls,
100
+ blockAnimations,
101
+ blockRendering,
102
+ browserEvents,
103
+ bubbles,
104
+ bumpObjects,
105
+ clipboard,
106
+ comments,
107
+ common,
108
+ config,
109
+ constants,
110
+ defineBlocksWithJsonArray,
111
+ dialog,
112
+ dragging,
113
+ fieldRegistry,
114
+ geras,
115
+ getMainWorkspace,
116
+ getSelected,
117
+ hasBubble,
118
+ hideChaff,
119
+ icons,
120
+ inject,
121
+ inputs,
122
+ isCopyable,
123
+ isDeletable,
124
+ isDraggable,
125
+ isIcon,
126
+ isObservable,
127
+ isPaster,
128
+ isRenderedElement,
129
+ isSelectable,
130
+ isSerializable,
131
+ isVariableBackedParameterModel,
132
+ procedures,
133
+ registry,
134
+ renderManagement,
135
+ serialization,
136
+ setLocale,
137
+ setParentContainer,
138
+ svgResize,
139
+ thrasos,
140
+ uiPosition,
141
+ utils,
142
+ zelos,
143
+ } = Blockly;
package/javascript.js ADDED
@@ -0,0 +1,4 @@
1
+ // Shim for backwards-compatibility with bundlers that do not
2
+ // support the 'exports' clause in package.json, to allow them
3
+ // to load the blockly/javascript submodule entrypoint.
4
+ module.exports = require('./javascript_compressed.js');
package/javascript.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import javascript from './javascript_compressed.js';
2
+ export const {
3
+ JavascriptGenerator,
4
+ Order,
5
+ javascriptGenerator,
6
+ } = javascript;
package/lua.js ADDED
@@ -0,0 +1,4 @@
1
+ // Shim for backwards-compatibility with bundlers that do not
2
+ // support the 'exports' clause in package.json, to allow them
3
+ // to load the blockly/lua submodule entrypoint.
4
+ module.exports = require('./lua_compressed.js');
package/lua.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import lua from './lua_compressed.js';
2
+ export const {
3
+ LuaGenerator,
4
+ Order,
5
+ luaGenerator,
6
+ } = lua;
@@ -1,3 +1,3 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" height="8" viewBox="0 0 8 8" width="8" fill="#041E49" stroke="#000">
2
- <g><line x1="2.6666666666666665" y1="7" x2="7" y2="2.6666666666666665"></line><line x1="5.333333333333333" y1="7" x2="7" y2="5.333333333333333"></line></g>
2
+ <g><line x1="2.67" y1="7" x2="7" y2="2.67"></line><line x1="5.33" y1="7" x2="7" y2="5.33"></line></g>
3
3
  </svg>
package/msg/ab.js CHANGED
@@ -103,6 +103,7 @@ Blockly.Msg["LISTS_GET_INDEX_FROM_END"] = "№ анҵәамнҭа аҟынтәи
103
103
  Blockly.Msg["LISTS_GET_INDEX_FROM_START"] = "#"; // untranslated
104
104
  Blockly.Msg["LISTS_GET_INDEX_GET"] = "игатәуп";
105
105
  Blockly.Msg["LISTS_GET_INDEX_GET_REMOVE"] = "иалхны ианыхтәуп";
106
+ Blockly.Msg["LISTS_GET_INDEX_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated
106
107
  Blockly.Msg["LISTS_GET_INDEX_LAST"] = "аҵыхәтәантәи";
107
108
  Blockly.Msg["LISTS_GET_INDEX_RANDOM"] = "иарбанзаалакь";
108
109
  Blockly.Msg["LISTS_GET_INDEX_REMOVE"] = "ианыхтәуп";
@@ -131,7 +132,7 @@ Blockly.Msg["LISTS_GET_SUBLIST_TOOLTIP"] = "Creates a copy of the specified port
131
132
  Blockly.Msg["LISTS_INDEX_FROM_END_TOOLTIP"] = "%1 - аҵыхәтәантәи аелемент.";
132
133
  Blockly.Msg["LISTS_INDEX_FROM_START_TOOLTIP"] = "%1 - актәи аелемент.";
133
134
  Blockly.Msg["LISTS_INDEX_OF_FIRST"] = "find first occurrence of item"; // untranslated
134
- Blockly.Msg["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated
135
+ Blockly.Msg["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list"; // untranslated
135
136
  Blockly.Msg["LISTS_INDEX_OF_LAST"] = "find last occurrence of item"; // untranslated
136
137
  Blockly.Msg["LISTS_INDEX_OF_TOOLTIP"] = "Returns the index of the first/last occurrence of the item in the list. Returns %1 if item is not found."; // untranslated
137
138
  Blockly.Msg["LISTS_INLIST"] = "ахьӡынҵа аҟны";
@@ -300,6 +301,7 @@ Blockly.Msg["PROCEDURES_CALLNORETURN_TOOLTIP"] = "Run the user-defined function
300
301
  Blockly.Msg["PROCEDURES_CALLRETURN_HELPURL"] = "https://ru.wikipedia.org/wiki/Ацхыраагӡатә программа";
301
302
  Blockly.Msg["PROCEDURES_CALLRETURN_TOOLTIP"] = "Run the user-defined function '%1' and use its output."; // untranslated
302
303
  Blockly.Msg["PROCEDURES_CALL_BEFORE_PARAMS"] = "аҟынтәи:";
304
+ Blockly.Msg["PROCEDURES_CALL_DISABLED_DEF_WARNING"] = "Can't run the user-defined function '%1' because the definition block is disabled."; // untranslated
303
305
  Blockly.Msg["PROCEDURES_CREATE_DO"] = "Иаԥҵатәуп ааԥхьара '%1'";
304
306
  Blockly.Msg["PROCEDURES_DEFNORETURN_COMMENT"] = "Абри афункциа ахҳәа азыҟашәҵа...";
305
307
  Blockly.Msg["PROCEDURES_DEFNORETURN_DO"] = ""; // untranslated
@@ -415,7 +417,6 @@ Blockly.Msg["CONTROLS_IF_IF_TITLE_IF"] = Blockly.Msg["CONTROLS_IF_MSG_IF"];
415
417
  Blockly.Msg["CONTROLS_IF_MSG_THEN"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
416
418
  Blockly.Msg["CONTROLS_WHILEUNTIL_INPUT_DO"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
417
419
  Blockly.Msg["LISTS_CREATE_WITH_ITEM_TITLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
418
- Blockly.Msg["LISTS_GET_INDEX_HELPURL"] = Blockly.Msg["LISTS_INDEX_OF_HELPURL"];
419
420
  Blockly.Msg["LISTS_GET_INDEX_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
420
421
  Blockly.Msg["LISTS_GET_SUBLIST_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
421
422
  Blockly.Msg["LISTS_INDEX_OF_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
@@ -428,14 +429,14 @@ Blockly.Msg["PROCEDURES_DEFRETURN_TITLE"] = Blockly.Msg["PROCEDURES_DEFNORETURN_
428
429
  Blockly.Msg["TEXT_APPEND_VARIABLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
429
430
  Blockly.Msg["TEXT_CREATE_JOIN_ITEM_TITLE_ITEM"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
430
431
 
431
- Blockly.Msg["MATH_HUE"] = "230";
432
- Blockly.Msg["LOOPS_HUE"] = "120";
432
+ Blockly.Msg["COLOUR_HUE"] = "20";
433
433
  Blockly.Msg["LISTS_HUE"] = "260";
434
434
  Blockly.Msg["LOGIC_HUE"] = "210";
435
- Blockly.Msg["VARIABLES_HUE"] = "330";
436
- Blockly.Msg["TEXTS_HUE"] = "160";
435
+ Blockly.Msg["LOOPS_HUE"] = "120";
436
+ Blockly.Msg["MATH_HUE"] = "230";
437
437
  Blockly.Msg["PROCEDURES_HUE"] = "290";
438
- Blockly.Msg["COLOUR_HUE"] = "20";
438
+ Blockly.Msg["TEXTS_HUE"] = "160";
439
439
  Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
440
+ Blockly.Msg["VARIABLES_HUE"] = "330";
440
441
  return Blockly.Msg;
441
442
  }));