blockly 7.20211209.0-beta.1 → 7.20211209.0-beta.2

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 (94) hide show
  1. package/blockly.d.ts +33 -6
  2. package/blockly.min.js +1255 -1238
  3. package/blockly_compressed.js +977 -958
  4. package/blockly_compressed.js.map +1 -1
  5. package/blocks/all.js +23 -0
  6. package/blocks/colour.js +60 -68
  7. package/blocks/lists.js +275 -291
  8. package/blocks/logic.js +231 -232
  9. package/blocks/loops.js +205 -189
  10. package/blocks/math.js +1 -0
  11. package/blocks/procedures.js +284 -273
  12. package/blocks/text.js +1 -0
  13. package/blocks/variables.js +1 -0
  14. package/blocks/variables_dynamic.js +1 -0
  15. package/blocks_compressed.js +173 -170
  16. package/blocks_compressed.js.map +1 -1
  17. package/core/block.js +12 -19
  18. package/core/blockly.js +42 -19
  19. package/core/connection.js +1 -0
  20. package/core/connection_checker.js +30 -10
  21. package/core/constants.js +0 -12
  22. package/core/events/events_block_move.js +5 -1
  23. package/core/generator.js +3 -4
  24. package/core/input.js +15 -4
  25. package/core/interfaces/i_positionable.js +1 -1
  26. package/core/internal_constants.js +0 -30
  27. package/core/keyboard_nav/ast_node.js +23 -5
  28. package/core/names.js +44 -37
  29. package/core/procedures.js +12 -0
  30. package/core/renderers/common/info.js +4 -4
  31. package/core/renderers/zelos/info.js +2 -3
  32. package/core/touch_gesture.js +2 -2
  33. package/core/trashcan.js +2 -2
  34. package/core/utils/xml.js +1 -1
  35. package/core/variables.js +11 -0
  36. package/core/variables_dynamic.js +12 -0
  37. package/core/workspace_svg.js +3 -4
  38. package/core/zoom_controls.js +1 -1
  39. package/dart_compressed.js +105 -97
  40. package/dart_compressed.js.map +1 -1
  41. package/generators/dart/all.js +25 -0
  42. package/generators/dart/lists.js +1 -0
  43. package/generators/dart/loops.js +9 -8
  44. package/generators/dart/math.js +1 -0
  45. package/generators/dart/procedures.js +1 -0
  46. package/generators/dart/text.js +1 -0
  47. package/generators/dart/variables.js +1 -0
  48. package/generators/dart/variables_dynamic.js +1 -0
  49. package/generators/dart.js +52 -44
  50. package/generators/javascript/all.js +25 -0
  51. package/generators/javascript/lists.js +1 -0
  52. package/generators/javascript/loops.js +9 -8
  53. package/generators/javascript/math.js +1 -0
  54. package/generators/javascript/procedures.js +1 -0
  55. package/generators/javascript/text.js +164 -163
  56. package/generators/javascript/variables.js +12 -12
  57. package/generators/javascript/variables_dynamic.js +5 -6
  58. package/generators/javascript.js +6 -1
  59. package/generators/lua/all.js +25 -0
  60. package/generators/lua/lists.js +1 -0
  61. package/generators/lua/loops.js +7 -6
  62. package/generators/lua/math.js +1 -0
  63. package/generators/lua/procedures.js +1 -0
  64. package/generators/lua/text.js +1 -0
  65. package/generators/lua/variables.js +1 -0
  66. package/generators/lua/variables_dynamic.js +1 -0
  67. package/generators/lua.js +4 -0
  68. package/generators/php/all.js +25 -0
  69. package/generators/php/lists.js +5 -3
  70. package/generators/php/loops.js +9 -8
  71. package/generators/php/math.js +1 -0
  72. package/generators/php/procedures.js +3 -0
  73. package/generators/php/text.js +1 -0
  74. package/generators/php/variables.js +1 -0
  75. package/generators/php/variables_dynamic.js +1 -0
  76. package/generators/php.js +5 -1
  77. package/generators/python/all.js +25 -0
  78. package/generators/python/lists.js +3 -1
  79. package/generators/python/loops.js +7 -6
  80. package/generators/python/math.js +1 -0
  81. package/generators/python/procedures.js +2 -0
  82. package/generators/python/text.js +3 -1
  83. package/generators/python/variables.js +1 -0
  84. package/generators/python/variables_dynamic.js +1 -0
  85. package/generators/python.js +6 -1
  86. package/javascript_compressed.js +104 -109
  87. package/javascript_compressed.js.map +1 -1
  88. package/lua_compressed.js +84 -88
  89. package/lua_compressed.js.map +1 -1
  90. package/package.json +4 -3
  91. package/php_compressed.js +96 -96
  92. package/php_compressed.js.map +1 -1
  93. package/python_compressed.js +89 -86
  94. package/python_compressed.js.map +1 -1
package/blockly.d.ts CHANGED
@@ -247,19 +247,19 @@ declare module exports {
247
247
  var bindEventWithChecks_: any /*missing*/;
248
248
 
249
249
  /**
250
- * @see constants.ALIGN.LEFT
250
+ * @see Blockly.Input.Align.LEFT
251
251
  * @alias Blockly.ALIGN_LEFT
252
252
  */
253
253
  var ALIGN_LEFT: any /*missing*/;
254
254
 
255
255
  /**
256
- * @see constants.ALIGN.CENTRE
256
+ * @see Blockly.Input.Align.CENTRE
257
257
  * @alias Blockly.ALIGN_CENTRE
258
258
  */
259
259
  var ALIGN_CENTRE: any /*missing*/;
260
260
 
261
261
  /**
262
- * @see constants.ALIGN.RIGHT
262
+ * @see Blockly.Input.Align.RIGHT
263
263
  * @alias Blockly.ALIGN_RIGHT
264
264
  */
265
265
  var ALIGN_RIGHT: any /*missing*/;
@@ -323,6 +323,33 @@ declare module exports {
323
323
  */
324
324
  var TOOLBOX_AT_RIGHT: any /*missing*/;
325
325
 
326
+ /**
327
+ * String for use in the "custom" attribute of a category in toolbox XML.
328
+ * This string indicates that the category should be dynamically populated with
329
+ * variable blocks.
330
+ * @const {string}
331
+ * @alias Blockly.VARIABLE_CATEGORY_NAME
332
+ */
333
+ var VARIABLE_CATEGORY_NAME: any /*missing*/;
334
+
335
+ /**
336
+ * String for use in the "custom" attribute of a category in toolbox XML.
337
+ * This string indicates that the category should be dynamically populated with
338
+ * variable blocks.
339
+ * @const {string}
340
+ * @alias Blockly.VARIABLE_DYNAMIC_CATEGORY_NAME
341
+ */
342
+ var VARIABLE_DYNAMIC_CATEGORY_NAME: any /*missing*/;
343
+
344
+ /**
345
+ * String for use in the "custom" attribute of a category in toolbox XML.
346
+ * This string indicates that the category should be dynamically populated with
347
+ * procedure blocks.
348
+ * @const {string}
349
+ * @alias Blockly.PROCEDURE_CATEGORY_NAME
350
+ */
351
+ var PROCEDURE_CATEGORY_NAME: any /*missing*/;
352
+
326
353
  /** @deprecated Use Blockly.ConnectionType instead. */
327
354
  var connectionTypes: any /*missing*/;
328
355
  }
@@ -1929,9 +1956,6 @@ declare module BasicCursor {
1929
1956
 
1930
1957
 
1931
1958
 
1932
-
1933
-
1934
-
1935
1959
  declare module exports {
1936
1960
 
1937
1961
  /**
@@ -1955,6 +1979,9 @@ declare module exports {
1955
1979
 
1956
1980
 
1957
1981
 
1982
+
1983
+
1984
+
1958
1985
  declare module ToolboxCategory {
1959
1986
 
1960
1987
  /**