blockly 11.0.0-beta.5 → 11.0.0-beta.7

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 (139) hide show
  1. package/blockly.min.js +722 -763
  2. package/blockly_compressed.js +676 -680
  3. package/blockly_compressed.js.map +1 -1
  4. package/blocks_compressed.js +27 -29
  5. package/blocks_compressed.js.map +1 -1
  6. package/core/block.d.ts +12 -6
  7. package/core/block_svg.d.ts +28 -42
  8. package/core/blockly.d.ts +11 -51
  9. package/core/bubbles/bubble.d.ts +17 -2
  10. package/core/bubbles/mini_workspace_bubble.d.ts +1 -1
  11. package/core/bubbles/text_bubble.d.ts +1 -1
  12. package/core/bubbles/textinput_bubble.d.ts +1 -1
  13. package/core/clipboard.d.ts +0 -19
  14. package/core/comments/comment_view.d.ts +207 -0
  15. package/core/comments/rendered_workspace_comment.d.ts +75 -0
  16. package/core/comments/workspace_comment.d.ts +107 -0
  17. package/core/comments.d.ts +9 -0
  18. package/core/connection.d.ts +1 -1
  19. package/core/delete_area.d.ts +1 -2
  20. package/core/dragging/block_drag_strategy.d.ts +105 -0
  21. package/core/dragging/bubble_drag_strategy.d.ts +20 -0
  22. package/core/dragging/comment_drag_strategy.d.ts +20 -0
  23. package/core/dragging/dragger.d.ts +47 -0
  24. package/core/events/events.d.ts +3 -0
  25. package/core/events/events_click.d.ts +1 -1
  26. package/core/events/events_comment_base.d.ts +6 -1
  27. package/core/events/events_comment_change.d.ts +1 -1
  28. package/core/events/events_comment_collapse.d.ts +39 -0
  29. package/core/events/events_comment_create.d.ts +5 -1
  30. package/core/events/events_comment_delete.d.ts +5 -1
  31. package/core/events/events_comment_move.d.ts +17 -1
  32. package/core/events/utils.d.ts +2 -0
  33. package/core/field_dropdown.d.ts +1 -0
  34. package/core/field_image.d.ts +1 -1
  35. package/core/flyout_base.d.ts +17 -1
  36. package/core/flyout_button.d.ts +26 -1
  37. package/core/generator.d.ts +1 -1
  38. package/core/gesture.d.ts +25 -54
  39. package/core/grid.d.ts +9 -9
  40. package/core/icons/comment_icon.d.ts +8 -3
  41. package/core/icons/icon.d.ts +0 -6
  42. package/core/icons/icon_types.d.ts +2 -2
  43. package/core/icons/mutator_icon.d.ts +1 -16
  44. package/core/icons/warning_icon.d.ts +1 -1
  45. package/core/inputs/input.d.ts +10 -19
  46. package/core/{connection_previewers/insertion_marker_previewer.d.ts → insertion_marker_previewer.d.ts} +3 -3
  47. package/core/interfaces/i_comment_icon.d.ts +21 -0
  48. package/core/interfaces/i_deletable.d.ts +6 -0
  49. package/core/interfaces/i_delete_area.d.ts +1 -2
  50. package/core/interfaces/i_draggable.d.ts +47 -3
  51. package/core/interfaces/i_dragger.d.ts +32 -0
  52. package/core/interfaces/i_has_bubble.d.ts +1 -1
  53. package/core/interfaces/i_parameter_model.d.ts +7 -0
  54. package/core/interfaces/i_procedure_model.d.ts +7 -0
  55. package/core/interfaces/i_selectable.d.ts +5 -3
  56. package/core/internal_constants.d.ts +0 -7
  57. package/core/keyboard_nav/ast_node.d.ts +21 -2
  58. package/core/options.d.ts +1 -0
  59. package/core/registry.d.ts +2 -2
  60. package/core/renderers/common/drawer.d.ts +0 -7
  61. package/core/renderers/common/marker_svg.d.ts +7 -0
  62. package/core/renderers/measurables/icon.d.ts +0 -5
  63. package/core/serialization/priorities.d.ts +2 -0
  64. package/core/serialization/procedures.d.ts +28 -26
  65. package/core/serialization/workspace_comments.d.ts +45 -0
  66. package/core/serialization.d.ts +2 -1
  67. package/core/toolbox/toolbox.d.ts +1 -2
  68. package/core/utils/dom.d.ts +0 -9
  69. package/core/utils/keycodes.d.ts +32 -32
  70. package/core/utils/size.d.ts +10 -0
  71. package/core/utils/string.d.ts +0 -10
  72. package/core/workspace_comment_svg.d.ts +1 -2
  73. package/core/workspace_svg.d.ts +0 -27
  74. package/core/xml.d.ts +9 -3
  75. package/core-node.js +31 -0
  76. package/dart.d.ts +1 -24
  77. package/dart_compressed.js +22 -72
  78. package/dart_compressed.js.map +1 -1
  79. package/generators/dart/dart_generator.d.ts +17 -17
  80. package/generators/dart/text.d.ts +0 -1
  81. package/generators/javascript/javascript_generator.d.ts +34 -35
  82. package/generators/javascript/text.d.ts +0 -1
  83. package/generators/lua/lua_generator.d.ts +10 -10
  84. package/generators/lua/text.d.ts +0 -1
  85. package/generators/php/php_generator.d.ts +36 -36
  86. package/generators/php/text.d.ts +0 -1
  87. package/generators/python/python_generator.d.ts +20 -21
  88. package/generators/python/text.d.ts +0 -1
  89. package/index.js +19 -7
  90. package/javascript.d.ts +1 -41
  91. package/javascript_compressed.js +19 -54
  92. package/javascript_compressed.js.map +1 -1
  93. package/lua.d.ts +1 -18
  94. package/lua_compressed.js +24 -47
  95. package/lua_compressed.js.map +1 -1
  96. package/media/delete-icon.svg +1 -0
  97. package/media/foldout-icon.svg +1 -0
  98. package/media/resize-handle.svg +3 -0
  99. package/msg/ce.d.ts +8 -0
  100. package/msg/dtp.d.ts +8 -0
  101. package/msg/hsb.d.ts +8 -0
  102. package/msg/tdd.d.ts +8 -0
  103. package/package.json +46 -12
  104. package/php.d.ts +1 -43
  105. package/php_compressed.js +13 -46
  106. package/php_compressed.js.map +1 -1
  107. package/python.d.ts +1 -27
  108. package/python_compressed.js +21 -40
  109. package/python_compressed.js.map +1 -1
  110. package/blockly.js +0 -22
  111. package/blocks.js +0 -22
  112. package/browser.js +0 -30
  113. package/core/block_dragger.d.ts +0 -212
  114. package/core/bubble_dragger.d.ts +0 -77
  115. package/core/field_angle.d.ts +0 -208
  116. package/core/field_colour.d.ts +0 -243
  117. package/core/field_multilineinput.d.ts +0 -182
  118. package/core/interfaces/i_block_dragger.d.ts +0 -47
  119. package/core/renderers/minimalist/constants.d.ts +0 -21
  120. package/core/renderers/minimalist/drawer.d.ts +0 -26
  121. package/core/renderers/minimalist/info.d.ts +0 -35
  122. package/core/renderers/minimalist/minimalist.d.ts +0 -12
  123. package/core/renderers/minimalist/renderer.d.ts +0 -48
  124. package/core-browser.js +0 -26
  125. package/core.js +0 -26
  126. package/dart.js +0 -22
  127. package/generators/dart/colour.d.ts +0 -16
  128. package/generators/javascript/colour.d.ts +0 -16
  129. package/generators/lua/colour.d.ts +0 -16
  130. package/generators/php/colour.d.ts +0 -16
  131. package/generators/python/colour.d.ts +0 -16
  132. package/javascript.js +0 -23
  133. package/lua.js +0 -22
  134. package/msg/constants.d.ts +0 -14
  135. package/msg/qqq.d.ts +0 -14
  136. package/msg/synonyms.d.ts +0 -14
  137. package/node.js +0 -21
  138. package/php.js +0 -22
  139. package/python.js +0 -23
package/dart.js DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- ;(function(root, factory) {
3
- if (typeof define === 'function' && define.amd) { // AMD
4
- define(['./core', './dart_compressed.js'], factory);
5
- } else if (typeof exports === 'object') { // Node.js
6
- module.exports = factory(require('./core'), require('./dart_compressed.js'));
7
- } else { // Browser
8
- root.BlocklyDart = factory(root.Blockly, root.BlocklyDart);
9
- }
10
- }(this, function(Blockly, BlocklyDart) {
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: Apache-2.0
15
- */
16
-
17
- /**
18
- * @fileoverview Dart generator module; just a wrapper for dart_compressed.js.
19
- */
20
-
21
- return BlocklyDart;
22
- }));
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2014 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * @file Generating Dart for colour blocks.
8
- */
9
- import type { Block } from '../../core/block.js';
10
- import type { DartGenerator } from './dart_generator.js';
11
- import { Order } from './dart_generator.js';
12
- export declare function colour_picker(block: Block, generator: DartGenerator): [string, Order];
13
- export declare function colour_random(block: Block, generator: DartGenerator): [string, Order];
14
- export declare function colour_rgb(block: Block, generator: DartGenerator): [string, Order];
15
- export declare function colour_blend(block: Block, generator: DartGenerator): [string, Order];
16
- //# sourceMappingURL=colour.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2012 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * @file Generating JavaScript for colour blocks.
8
- */
9
- import type { Block } from '../../core/block.js';
10
- import type { JavascriptGenerator } from './javascript_generator.js';
11
- import { Order } from './javascript_generator.js';
12
- export declare function colour_picker(block: Block, generator: JavascriptGenerator): [string, Order];
13
- export declare function colour_random(block: Block, generator: JavascriptGenerator): [string, Order];
14
- export declare function colour_rgb(block: Block, generator: JavascriptGenerator): [string, Order];
15
- export declare function colour_blend(block: Block, generator: JavascriptGenerator): [string, Order];
16
- //# sourceMappingURL=colour.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2016 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * @file Generating Lua for colour blocks.
8
- */
9
- import type { Block } from '../../core/block.js';
10
- import type { LuaGenerator } from './lua_generator.js';
11
- import { Order } from './lua_generator.js';
12
- export declare function colour_picker(block: Block, generator: LuaGenerator): [string, Order];
13
- export declare function colour_random(block: Block, generator: LuaGenerator): [string, Order];
14
- export declare function colour_rgb(block: Block, generator: LuaGenerator): [string, Order];
15
- export declare function colour_blend(block: Block, generator: LuaGenerator): [string, Order];
16
- //# sourceMappingURL=colour.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2015 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * @file Generating PHP for colour blocks.
8
- */
9
- import type { Block } from '../../core/block.js';
10
- import { Order } from './php_generator.js';
11
- import type { PhpGenerator } from './php_generator.js';
12
- export declare function colour_picker(block: Block, generator: PhpGenerator): [string, Order];
13
- export declare function colour_random(block: Block, generator: PhpGenerator): [string, Order];
14
- export declare function colour_rgb(block: Block, generator: PhpGenerator): [string, Order];
15
- export declare function colour_blend(block: Block, generator: PhpGenerator): [string, Order];
16
- //# sourceMappingURL=colour.d.ts.map
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2012 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * @file Generating Python for colour blocks.
8
- */
9
- import type { Block } from '../../core/block.js';
10
- import type { PythonGenerator } from './python_generator.js';
11
- import { Order } from './python_generator.js';
12
- export declare function colour_picker(block: Block, generator: PythonGenerator): [string, Order];
13
- export declare function colour_random(block: Block, generator: PythonGenerator): [string, Order];
14
- export declare function colour_rgb(block: Block, generator: PythonGenerator): [string, Order];
15
- export declare function colour_blend(block: Block, generator: PythonGenerator): [string, Order];
16
- //# sourceMappingURL=colour.d.ts.map
package/javascript.js DELETED
@@ -1,23 +0,0 @@
1
- /* eslint-disable */
2
- ;(function(root, factory) {
3
- if (typeof define === 'function' && define.amd) { // AMD
4
- define(['./core', './javascript_compressed.js'], factory);
5
- } else if (typeof exports === 'object') { // Node.js
6
- module.exports = factory(require('./core'), require('./javascript_compressed.js'));
7
- } else { // Browser
8
- root.BlocklyJavaScript = factory(root.Blockly, root.BlocklyJavaScript);
9
- }
10
- }(this, function(Blockly, BlocklyJavaScript) {
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: Apache-2.0
15
- */
16
-
17
- /**
18
- * @fileoverview JavaScript Generator module; just a wrapper for
19
- * javascript_compressed.js.
20
- */
21
-
22
- return BlocklyJavaScript;
23
- }));
package/lua.js DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- ;(function(root, factory) {
3
- if (typeof define === 'function' && define.amd) { // AMD
4
- define(['./core', './lua_compressed.js'], factory);
5
- } else if (typeof exports === 'object') { // Node.js
6
- module.exports = factory(require('./core'), require('./lua_compressed.js'));
7
- } else { // Browser
8
- root.BlocklyLua = factory(root.Blockly, root.BlocklyLua);
9
- }
10
- }(this, function(Blockly, BlocklyLua) {
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: Apache-2.0
15
- */
16
-
17
- /**
18
- * @fileoverview Lua generator module; just a wrapper for lua_compressed.js.
19
- */
20
-
21
- return BlocklyLua;
22
- }));
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- /**
8
- * Type definitions for the Blockly constants locale.
9
- */
10
-
11
- /// <reference path="msg.d.ts" />
12
-
13
- import BlocklyMsg = Blockly.Msg;
14
- export = BlocklyMsg;
package/msg/qqq.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- /**
8
- * Type definitions for the Blockly qqq locale.
9
- */
10
-
11
- /// <reference path="msg.d.ts" />
12
-
13
- import BlocklyMsg = Blockly.Msg;
14
- export = BlocklyMsg;
package/msg/synonyms.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- /**
8
- * Type definitions for the Blockly synonyms locale.
9
- */
10
-
11
- /// <reference path="msg.d.ts" />
12
-
13
- import BlocklyMsg = Blockly.Msg;
14
- export = BlocklyMsg;
package/node.js DELETED
@@ -1,21 +0,0 @@
1
- /* eslint-disable */
2
- (function (Blockly, En, BlocklyBlocks, BlocklyJS, BlocklyPython, BlocklyPHP, BlocklyLua, BlocklyDart){
3
- /**
4
- * @license
5
- * Copyright 2019 Google LLC
6
- * SPDX-License-Identifier: Apache-2.0
7
- */
8
-
9
- /**
10
- * @fileoverview Blockly module for Node. It includes Blockly core,
11
- * built-in blocks, all the generators and the English locale.
12
- */
13
-
14
- /* eslint-disable */
15
- 'use strict';
16
-
17
- // Include the EN Locale by default.
18
- Blockly.setLocale(En);
19
-
20
- module.exports = Blockly;
21
- })(require('./core'), require('./msg/en'), require('./blocks'), require('./javascript'), require('./python'), require('./php'), require('./lua'), require('./dart'));
package/php.js DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- ;(function(root, factory) {
3
- if (typeof define === 'function' && define.amd) { // AMD
4
- define(['./core', './php_compressed.js'], factory);
5
- } else if (typeof exports === 'object') { // Node.js
6
- module.exports = factory(require('./core'), require('./php_compressed.js'));
7
- } else { // Browser
8
- root.BlocklyPHP = factory(root.Blockly, root.BlocklyPHP);
9
- }
10
- }(this, function(Blockly, BlocklyPHP) {
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: Apache-2.0
15
- */
16
-
17
- /**
18
- * @fileoverview PHP generator module; just a wrapper for php_compressed.js.
19
- */
20
-
21
- return BlocklyPHP;
22
- }));
package/python.js DELETED
@@ -1,23 +0,0 @@
1
- /* eslint-disable */
2
- ;(function(root, factory) {
3
- if (typeof define === 'function' && define.amd) { // AMD
4
- define(['./core', './python_compressed.js'], factory);
5
- } else if (typeof exports === 'object') { // Node.js
6
- module.exports = factory(require('./core'), require('./python_compressed.js'));
7
- } else { // Browser
8
- root.BlocklyPython = factory(root.Blockly, root.BlocklyPython);
9
- }
10
- }(this, function(Blockly, BlocklyPython) {
11
- /**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: Apache-2.0
15
- */
16
-
17
- /**
18
- * @fileoverview Python generator module; just a wrapper for
19
- * python_compressed.js.
20
- */
21
-
22
- return BlocklyPython;
23
- }));