blockly 9.1.1 → 9.2.1
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.
- package/blockly.min.js +395 -347
- package/blockly_compressed.js +392 -344
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +3 -3
- package/blocks_compressed.js.map +1 -1
- package/core/any_aliases.d.ts +1 -1
- package/core/block.d.ts +3 -1
- package/core/block_dragger.d.ts +3 -3
- package/core/block_svg.d.ts +2 -2
- package/core/blockly.d.ts +21 -26
- package/core/blockly_options.d.ts +1 -0
- package/core/blocks.d.ts +2 -2
- package/core/browser_events.d.ts +2 -4
- package/core/bubble.d.ts +8 -8
- package/core/bubble_dragger.d.ts +3 -3
- package/core/component_manager.d.ts +1 -1
- package/core/contextmenu_registry.d.ts +5 -5
- package/core/dropdowndiv.d.ts +8 -4
- package/core/events/events.d.ts +21 -1
- package/core/events/events_abstract.d.ts +14 -1
- package/core/events/events_block_base.d.ts +12 -1
- package/core/events/events_block_change.d.ts +11 -0
- package/core/events/events_block_create.d.ts +11 -0
- package/core/events/events_block_delete.d.ts +11 -0
- package/core/events/events_block_drag.d.ts +11 -0
- package/core/events/events_block_move.d.ts +14 -0
- package/core/events/events_bubble_open.d.ts +11 -0
- package/core/events/events_click.d.ts +11 -0
- package/core/events/events_comment_base.d.ts +11 -0
- package/core/events/events_comment_change.d.ts +11 -0
- package/core/events/events_comment_create.d.ts +11 -0
- package/core/events/events_comment_delete.d.ts +21 -1
- package/core/events/events_comment_move.d.ts +11 -0
- package/core/events/events_marker_move.d.ts +11 -0
- package/core/events/events_procedure_base.d.ts +26 -0
- package/core/events/events_procedure_change_return.d.ts +40 -0
- package/core/events/events_procedure_create.d.ts +34 -0
- package/core/events/events_procedure_delete.d.ts +32 -0
- package/core/events/events_procedure_enable.d.ts +34 -0
- package/core/events/events_procedure_parameter_base.d.ts +26 -0
- package/core/events/events_procedure_parameter_create.d.ts +42 -0
- package/core/events/events_procedure_parameter_delete.d.ts +41 -0
- package/core/events/events_procedure_parameter_rename.d.ts +36 -0
- package/core/events/events_procedure_rename.d.ts +35 -0
- package/core/events/events_selected.d.ts +11 -0
- package/core/events/events_theme_change.d.ts +11 -0
- package/core/events/events_toolbox_item_select.d.ts +11 -0
- package/core/events/events_trashcan_open.d.ts +11 -0
- package/core/events/events_var_base.d.ts +11 -0
- package/core/events/events_var_create.d.ts +11 -0
- package/core/events/events_var_delete.d.ts +11 -0
- package/core/events/events_var_rename.d.ts +11 -0
- package/core/events/events_viewport.d.ts +11 -0
- package/core/events/utils.d.ts +17 -1
- package/core/field.d.ts +20 -9
- package/core/field_angle.d.ts +6 -6
- package/core/field_checkbox.d.ts +4 -3
- package/core/field_colour.d.ts +4 -3
- package/core/field_dropdown.d.ts +7 -6
- package/core/field_image.d.ts +2 -2
- package/core/field_input.d.ts +229 -0
- package/core/field_label.d.ts +2 -2
- package/core/field_label_serializable.d.ts +1 -1
- package/core/field_multilineinput.d.ts +3 -2
- package/core/field_number.d.ts +7 -4
- package/core/field_registry.d.ts +8 -5
- package/core/field_textinput.d.ts +6 -201
- package/core/field_variable.d.ts +3 -2
- package/core/flyout_base.d.ts +3 -4
- package/core/flyout_button.d.ts +1 -1
- package/core/gesture.d.ts +127 -50
- package/core/icon.d.ts +4 -4
- package/core/input.d.ts +8 -7
- package/core/insertion_marker_manager.d.ts +80 -63
- package/core/interfaces/i_copyable.d.ts +1 -1
- package/core/interfaces/i_observable.d.ts +21 -0
- package/core/interfaces/i_parameter_model.d.ts +3 -5
- package/core/keyboard_nav/ast_node.d.ts +1 -1
- package/core/metrics_manager.d.ts +5 -5
- package/core/mutator.d.ts +1 -1
- package/core/names.d.ts +1 -1
- package/core/options.d.ts +5 -4
- package/core/procedures/observable_parameter_model.d.ts +17 -0
- package/core/procedures/observable_procedure_map.d.ts +1 -1
- package/core/procedures/observable_procedure_model.d.ts +13 -0
- package/core/procedures.d.ts +1 -1
- package/core/registry.d.ts +1 -1
- package/core/rendered_connection.d.ts +1 -1
- package/core/renderers/common/constants.d.ts +3 -3
- package/core/serialization/procedures.d.ts +26 -2
- package/core/shortcut_registry.d.ts +1 -1
- package/core/theme.d.ts +4 -4
- package/core/theme_manager.d.ts +1 -1
- package/core/toolbox/category.d.ts +1 -1
- package/core/toolbox/collapsible_category.d.ts +1 -1
- package/core/toolbox/separator.d.ts +1 -1
- package/core/toolbox/toolbox.d.ts +1 -1
- package/core/tooltip.d.ts +2 -2
- package/core/touch.d.ts +12 -17
- package/core/utils/toolbox.d.ts +7 -7
- package/core/utils/xml.d.ts +44 -2
- package/core/workspace_comment_svg.d.ts +18 -17
- package/core/workspace_svg.d.ts +13 -15
- package/core.js +3 -6
- package/msg/bs.js +12 -12
- package/msg/de.js +6 -6
- package/msg/diq.js +6 -6
- package/msg/es.js +15 -15
- package/msg/fr.js +2 -2
- package/msg/he.js +1 -1
- package/msg/hy.js +43 -43
- package/msg/is.js +17 -17
- package/msg/ja.js +1 -1
- package/msg/ko.js +3 -3
- package/msg/nb.js +1 -1
- package/msg/oc.js +2 -2
- package/msg/smn.js +24 -24
- package/msg/zh-hant.js +10 -10
- package/package.json +7 -6
- package/core/interfaces/i_registrable_field.d.ts +0 -19
- 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.
|
|
3
|
+
"version": "9.2.1",
|
|
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.
|
|
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": "^
|
|
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": "^
|
|
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": "^
|
|
71
|
+
"webdriverio": "^8.0.5",
|
|
71
72
|
"yargs": "^17.2.1"
|
|
72
73
|
},
|
|
73
74
|
"dependencies": {
|
|
74
|
-
"jsdom": "
|
|
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
|
package/core/touch_gesture.d.ts
DELETED
|
@@ -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
|