blockly 9.1.1 → 9.2.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 (120) hide show
  1. package/blockly.min.js +384 -338
  2. package/blockly_compressed.js +381 -335
  3. package/blockly_compressed.js.map +1 -1
  4. package/blocks_compressed.js +3 -3
  5. package/blocks_compressed.js.map +1 -1
  6. package/core/any_aliases.d.ts +1 -1
  7. package/core/block.d.ts +3 -1
  8. package/core/block_dragger.d.ts +3 -3
  9. package/core/block_svg.d.ts +2 -2
  10. package/core/blockly.d.ts +21 -26
  11. package/core/blockly_options.d.ts +1 -0
  12. package/core/blocks.d.ts +2 -2
  13. package/core/browser_events.d.ts +2 -4
  14. package/core/bubble.d.ts +8 -8
  15. package/core/bubble_dragger.d.ts +3 -3
  16. package/core/component_manager.d.ts +1 -1
  17. package/core/contextmenu_registry.d.ts +5 -5
  18. package/core/dropdowndiv.d.ts +8 -4
  19. package/core/events/events.d.ts +21 -1
  20. package/core/events/events_abstract.d.ts +14 -1
  21. package/core/events/events_block_base.d.ts +12 -1
  22. package/core/events/events_block_change.d.ts +11 -0
  23. package/core/events/events_block_create.d.ts +11 -0
  24. package/core/events/events_block_delete.d.ts +11 -0
  25. package/core/events/events_block_drag.d.ts +11 -0
  26. package/core/events/events_block_move.d.ts +14 -0
  27. package/core/events/events_bubble_open.d.ts +11 -0
  28. package/core/events/events_click.d.ts +11 -0
  29. package/core/events/events_comment_base.d.ts +11 -0
  30. package/core/events/events_comment_change.d.ts +11 -0
  31. package/core/events/events_comment_create.d.ts +11 -0
  32. package/core/events/events_comment_delete.d.ts +21 -1
  33. package/core/events/events_comment_move.d.ts +11 -0
  34. package/core/events/events_marker_move.d.ts +11 -0
  35. package/core/events/events_procedure_base.d.ts +26 -0
  36. package/core/events/events_procedure_change_return.d.ts +40 -0
  37. package/core/events/events_procedure_create.d.ts +34 -0
  38. package/core/events/events_procedure_delete.d.ts +32 -0
  39. package/core/events/events_procedure_enable.d.ts +34 -0
  40. package/core/events/events_procedure_parameter_base.d.ts +26 -0
  41. package/core/events/events_procedure_parameter_create.d.ts +42 -0
  42. package/core/events/events_procedure_parameter_delete.d.ts +41 -0
  43. package/core/events/events_procedure_parameter_rename.d.ts +36 -0
  44. package/core/events/events_procedure_rename.d.ts +35 -0
  45. package/core/events/events_selected.d.ts +11 -0
  46. package/core/events/events_theme_change.d.ts +11 -0
  47. package/core/events/events_toolbox_item_select.d.ts +11 -0
  48. package/core/events/events_trashcan_open.d.ts +11 -0
  49. package/core/events/events_var_base.d.ts +11 -0
  50. package/core/events/events_var_create.d.ts +11 -0
  51. package/core/events/events_var_delete.d.ts +11 -0
  52. package/core/events/events_var_rename.d.ts +11 -0
  53. package/core/events/events_viewport.d.ts +11 -0
  54. package/core/events/utils.d.ts +17 -1
  55. package/core/field.d.ts +20 -9
  56. package/core/field_angle.d.ts +6 -6
  57. package/core/field_checkbox.d.ts +4 -3
  58. package/core/field_colour.d.ts +4 -3
  59. package/core/field_dropdown.d.ts +7 -6
  60. package/core/field_image.d.ts +2 -2
  61. package/core/field_input.d.ts +229 -0
  62. package/core/field_label.d.ts +2 -2
  63. package/core/field_label_serializable.d.ts +1 -1
  64. package/core/field_multilineinput.d.ts +3 -2
  65. package/core/field_number.d.ts +7 -4
  66. package/core/field_registry.d.ts +8 -5
  67. package/core/field_textinput.d.ts +6 -201
  68. package/core/field_variable.d.ts +3 -2
  69. package/core/flyout_base.d.ts +3 -4
  70. package/core/flyout_button.d.ts +1 -1
  71. package/core/gesture.d.ts +127 -50
  72. package/core/icon.d.ts +4 -4
  73. package/core/input.d.ts +8 -7
  74. package/core/insertion_marker_manager.d.ts +80 -63
  75. package/core/interfaces/i_copyable.d.ts +1 -1
  76. package/core/interfaces/i_observable.d.ts +21 -0
  77. package/core/interfaces/i_parameter_model.d.ts +3 -5
  78. package/core/keyboard_nav/ast_node.d.ts +1 -1
  79. package/core/metrics_manager.d.ts +5 -5
  80. package/core/mutator.d.ts +1 -1
  81. package/core/names.d.ts +1 -1
  82. package/core/options.d.ts +5 -4
  83. package/core/procedures/observable_parameter_model.d.ts +17 -0
  84. package/core/procedures/observable_procedure_map.d.ts +1 -1
  85. package/core/procedures/observable_procedure_model.d.ts +13 -0
  86. package/core/procedures.d.ts +1 -1
  87. package/core/registry.d.ts +1 -1
  88. package/core/rendered_connection.d.ts +1 -1
  89. package/core/renderers/common/constants.d.ts +3 -3
  90. package/core/serialization/procedures.d.ts +26 -2
  91. package/core/shortcut_registry.d.ts +1 -1
  92. package/core/theme.d.ts +4 -4
  93. package/core/theme_manager.d.ts +1 -1
  94. package/core/toolbox/category.d.ts +1 -1
  95. package/core/toolbox/collapsible_category.d.ts +1 -1
  96. package/core/toolbox/separator.d.ts +1 -1
  97. package/core/toolbox/toolbox.d.ts +1 -1
  98. package/core/tooltip.d.ts +2 -2
  99. package/core/touch.d.ts +12 -17
  100. package/core/utils/toolbox.d.ts +7 -7
  101. package/core/workspace_comment_svg.d.ts +18 -17
  102. package/core/workspace_svg.d.ts +13 -15
  103. package/core.js +4 -3
  104. package/msg/bs.js +12 -12
  105. package/msg/de.js +6 -6
  106. package/msg/diq.js +6 -6
  107. package/msg/es.js +15 -15
  108. package/msg/fr.js +2 -2
  109. package/msg/he.js +1 -1
  110. package/msg/hy.js +43 -43
  111. package/msg/is.js +17 -17
  112. package/msg/ja.js +1 -1
  113. package/msg/ko.js +3 -3
  114. package/msg/nb.js +1 -1
  115. package/msg/oc.js +2 -2
  116. package/msg/smn.js +24 -24
  117. package/msg/zh-hant.js +10 -10
  118. package/package.json +7 -6
  119. package/core/interfaces/i_registrable_field.d.ts +0 -19
  120. package/core/touch_gesture.d.ts +0 -130
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "Blockly is a library for building visual programming editors.",
5
5
  "keywords": [
6
6
  "blockly"
@@ -30,11 +30,12 @@
30
30
  "@blockly/block-test": "^3.0.0",
31
31
  "@blockly/dev-tools": "^5.0.0",
32
32
  "@blockly/theme-modern": "^3.0.0",
33
- "@hyperjump/json-schema": "^0.18.5",
33
+ "@hyperjump/json-schema": "^0.23.3",
34
34
  "@microsoft/api-documenter": "^7.19.16",
35
35
  "@microsoft/api-extractor": "^7.29.5",
36
36
  "@typescript-eslint/eslint-plugin": "^5.33.1",
37
- "@wdio/selenium-standalone-service": "^7.10.1",
37
+ "@wdio/selenium-standalone-service": "^8.0.2",
38
+ "async-done": "^2.0.0",
38
39
  "chai": "^4.2.0",
39
40
  "clang-format": "^1.6.0",
40
41
  "closure-calculate-chunks": "^3.0.2",
@@ -43,7 +44,7 @@
43
44
  "eslint-config-google": "^0.14.0",
44
45
  "eslint-plugin-jsdoc": "^39.3.6",
45
46
  "google-closure-compiler": "^20221004.0.0",
46
- "google-closure-deps": "^20221004.0.0",
47
+ "google-closure-deps": "^20221102.0.0",
47
48
  "gulp": "^4.0.2",
48
49
  "gulp-clang-format": "^1.0.27",
49
50
  "gulp-concat": "^2.6.1",
@@ -67,10 +68,10 @@
67
68
  "selenium-standalone": "^8.0.3",
68
69
  "through2": "^4.0.2",
69
70
  "typescript": "^4.3.2",
70
- "webdriverio": "^7.0.3",
71
+ "webdriverio": "^8.0.5",
71
72
  "yargs": "^17.2.1"
72
73
  },
73
74
  "dependencies": {
74
- "jsdom": "15.2.1"
75
+ "jsdom": "20.0.3"
75
76
  }
76
77
  }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { Field } from '../field.js';
7
- declare type fromJson = (p1: object) => Field;
8
- /**
9
- * A registrable field.
10
- * Note: We are not using an interface here as we are interested in defining the
11
- * static methods of a field rather than the instance methods.
12
- *
13
- * @alias Blockly.IRegistrableField
14
- */
15
- export interface IRegistrableField {
16
- fromJson: fromJson;
17
- }
18
- export {};
19
- //# sourceMappingURL=i_registrable_field.d.ts.map
@@ -1,130 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import * as browserEvents from './browser_events.js';
7
- import { Gesture } from './gesture.js';
8
- import { Coordinate } from './utils/coordinate.js';
9
- /**
10
- * Class for one gesture.
11
- *
12
- * @alias Blockly.TouchGesture
13
- */
14
- export declare class TouchGesture extends Gesture {
15
- /** Boolean for whether or not this gesture is a multi-touch gesture. */
16
- private isMultiTouch_;
17
- /** A map of cached points used for tracking multi-touch gestures. */
18
- private cachedPoints;
19
- /**
20
- * This is the ratio between the starting distance between the touch points
21
- * and the most recent distance between the touch points.
22
- * Scales between 0 and 1 mean the most recent zoom was a zoom out.
23
- * Scales above 1.0 mean the most recent zoom was a zoom in.
24
- */
25
- private previousScale_;
26
- /** The starting distance between two touch points. */
27
- private startDistance_;
28
- /**
29
- * A handle to use to unbind the second touch start or pointer down listener
30
- * at the end of a drag.
31
- * Opaque data returned from Blockly.bindEventWithChecks_.
32
- */
33
- private onStartWrapper_;
34
- /** Boolean for whether or not the workspace supports pinch-zoom. */
35
- private isPinchZoomEnabled_;
36
- onMoveWrapper_: browserEvents.Data | null;
37
- onUpWrapper_: browserEvents.Data | null;
38
- /**
39
- * Start a gesture: update the workspace to indicate that a gesture is in
40
- * progress and bind mousemove and mouseup handlers.
41
- *
42
- * @param e A mouse down, touch start or pointer down event.
43
- * @internal
44
- */
45
- doStart(e: MouseEvent): void;
46
- /**
47
- * Bind gesture events.
48
- * Overriding the gesture definition of this function, binding the same
49
- * functions for onMoveWrapper_ and onUpWrapper_ but passing
50
- * opt_noCaptureIdentifier.
51
- * In addition, binding a second mouse down event to detect multi-touch
52
- * events.
53
- *
54
- * @param e A mouse down or touch start event.
55
- * @internal
56
- */
57
- bindMouseEvents(e: Event): void;
58
- /**
59
- * Handle a mouse down, touch start, or pointer down event.
60
- *
61
- * @param e A mouse down, touch start, or pointer down event.
62
- * @internal
63
- */
64
- handleStart(e: Event): void;
65
- /**
66
- * Handle a mouse move, touch move, or pointer move event.
67
- *
68
- * @param e A mouse move, touch move, or pointer move event.
69
- * @internal
70
- */
71
- handleMove(e: MouseEvent): void;
72
- /**
73
- * Handle a mouse up, touch end, or pointer up event.
74
- *
75
- * @param e A mouse up, touch end, or pointer up event.
76
- * @internal
77
- */
78
- handleUp(e: Event): void;
79
- /**
80
- * Whether this gesture is part of a multi-touch gesture.
81
- *
82
- * @returns Whether this gesture is part of a multi-touch gesture.
83
- * @internal
84
- */
85
- isMultiTouch(): boolean;
86
- /**
87
- * Sever all links from this object.
88
- *
89
- * @internal
90
- */
91
- dispose(): void;
92
- /**
93
- * Handle a touch start or pointer down event and keep track of current
94
- * pointers.
95
- *
96
- * @param e A touch start, or pointer down event.
97
- * @internal
98
- */
99
- handleTouchStart(e: Event): void;
100
- /**
101
- * Handle a touch move or pointer move event and zoom in/out if two pointers
102
- * are on the screen.
103
- *
104
- * @param e A touch move, or pointer move event.
105
- * @internal
106
- */
107
- handleTouchMove(e: MouseEvent): void;
108
- /**
109
- * Handle pinch zoom gesture.
110
- *
111
- * @param e A touch move, or pointer move event.
112
- */
113
- private handlePinch_;
114
- /**
115
- * Handle a touch end or pointer end event and end the gesture.
116
- *
117
- * @param e A touch end, or pointer end event.
118
- * @internal
119
- */
120
- handleTouchEnd(e: Event): void;
121
- /**
122
- * Helper function returning the current touch point coordinate.
123
- *
124
- * @param e A touch or pointer event.
125
- * @returns The current touch point coordinate
126
- * @internal
127
- */
128
- getTouchPoint(e: Event): Coordinate | null;
129
- }
130
- //# sourceMappingURL=touch_gesture.d.ts.map