x-block-lib 0.6.54 → 0.6.56

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.
@@ -1 +1,10 @@
1
+ import * as Blockly from 'blockly/core';
2
+ type FlowControlInLoopCheckMixinType = typeof FLOW_CONTROL_IN_LOOP_CHECK_MIXIN;
3
+ interface FlowControlInLoopCheckMixin extends FlowControlInLoopCheckMixinType {
4
+ }
5
+ export type FlowControlInLoopCheckBlock = Blockly.Block & FlowControlInLoopCheckMixin;
6
+ declare const FLOW_CONTROL_IN_LOOP_CHECK_MIXIN: {
7
+ getSurroundLoop: (this: FlowControlInLoopCheckBlock) => Blockly.Block | null;
8
+ onchange: (this: FlowControlInLoopCheckBlock, e: Blockly.Events.Abstract) => void;
9
+ };
1
10
  export {};
@@ -2,4 +2,5 @@ import './extensions/v1';
2
2
  import './flowControl/v1';
3
3
  import './for/v1';
4
4
  import './forEach/v1';
5
- import './loopWhileUntil/v1';
5
+ import './repeat/v1';
6
+ import './whileUntil/v1';
@@ -0,0 +1 @@
1
+ export {};
@@ -30,6 +30,8 @@ declare const _default: {
30
30
  TODAY: string;
31
31
  UNDO: string;
32
32
  UNNAMED_KEY: string;
33
+ VARIABLE_GET_CREATE_SET: string;
34
+ VARIABLE_SET_CREATE_GET: string;
33
35
  CROSS_TAB_COPY: string;
34
36
  CROSS_TAB_PASTE: string;
35
37
  NO_OPTION: string;
@@ -59,6 +61,7 @@ declare const _default: {
59
61
  EVENT_SUBMIT: string;
60
62
  EVENT_DARK_MODE_CHANGE: string;
61
63
  LABEL_BOOLEAN: string;
64
+ LABEL_BRANCH: string;
62
65
  LABEL_COMP: string;
63
66
  LABEL_CONDITION: string;
64
67
  LABEL_CREATE_VARIABLE: string;
@@ -66,6 +69,8 @@ declare const _default: {
66
69
  LABEL_EVENT: string;
67
70
  LABEL_GET: string;
68
71
  LABEL_LIST: string;
72
+ LABEL_LOGIC_OPERATION: string;
73
+ LABEL_MATH_OPERATION: string;
69
74
  LABEL_METHOD: string;
70
75
  LABEL_OBJECT: string;
71
76
  LABEL_OPERATION: string;
@@ -77,6 +82,7 @@ declare const _default: {
77
82
  LABEL_SET: string;
78
83
  LABEL_TABLE: string;
79
84
  LABEL_TEXT: string;
85
+ LABEL_VALUE: string;
80
86
  LABEL_VARIABLE: string;
81
87
  METHOD_ADD: string;
82
88
  METHOD_CLOSE: string;
@@ -232,8 +238,16 @@ declare const _default: {
232
238
  LOGIC_V1_TERNARY_TOOLTIP: string;
233
239
  LOGIC_V1_TERNARY_HELPURL: string;
234
240
  LOOP_DO: string;
241
+ LOOP_V1_FLOW_CONTROL_OPERATOR_BREAK: string;
242
+ LOOP_V1_FLOW_CONTROL_OPERATOR_CONTINUE: string;
243
+ LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK: string;
244
+ LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE: string;
245
+ LOOP_V1_FLOW_CONTROL_HELPURL: string;
235
246
  LOOP_V1_FOR_TITLE: string;
236
247
  LOOP_V1_FOR_EACH_TITLE: string;
248
+ LOOP_V1_REPEAT_TITLE: string;
249
+ LOOP_V1_REPEAT_TOOLTIP: string;
250
+ LOOP_V1_REPEAT_HELPURL: string;
237
251
  LOOP_V1_WHILE_UNTIL_OPERATOR_WHILE: string;
238
252
  LOOP_V1_WHILE_UNTIL_OPERATOR_UNTIL: string;
239
253
  LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE: string;
@@ -30,6 +30,8 @@ declare const _default: {
30
30
  TODAY: string;
31
31
  UNDO: string;
32
32
  UNNAMED_KEY: string;
33
+ VARIABLE_GET_CREATE_SET: string;
34
+ VARIABLE_SET_CREATE_GET: string;
33
35
  CROSS_TAB_COPY: string;
34
36
  CROSS_TAB_PASTE: string;
35
37
  NO_OPTION: string;
@@ -59,6 +61,7 @@ declare const _default: {
59
61
  EVENT_SUBMIT: string;
60
62
  EVENT_DARK_MODE_CHANGE: string;
61
63
  LABEL_BOOLEAN: string;
64
+ LABEL_BRANCH: string;
62
65
  LABEL_COMP: string;
63
66
  LABEL_CONDITION: string;
64
67
  LABEL_CREATE_VARIABLE: string;
@@ -66,6 +69,8 @@ declare const _default: {
66
69
  LABEL_EVENT: string;
67
70
  LABEL_GET: string;
68
71
  LABEL_LIST: string;
72
+ LABEL_LOGIC_OPERATION: string;
73
+ LABEL_MATH_OPERATION: string;
69
74
  LABEL_METHOD: string;
70
75
  LABEL_OBJECT: string;
71
76
  LABEL_OPERATION: string;
@@ -77,6 +82,7 @@ declare const _default: {
77
82
  LABEL_SET: string;
78
83
  LABEL_TABLE: string;
79
84
  LABEL_TEXT: string;
85
+ LABEL_VALUE: string;
80
86
  LABEL_VARIABLE: string;
81
87
  METHOD_ADD: string;
82
88
  METHOD_CLOSE: string;
@@ -232,8 +238,16 @@ declare const _default: {
232
238
  LOGIC_V1_TERNARY_TOOLTIP: string;
233
239
  LOGIC_V1_TERNARY_HELPURL: string;
234
240
  LOOP_DO: string;
241
+ LOOP_V1_FLOW_CONTROL_OPERATOR_BREAK: string;
242
+ LOOP_V1_FLOW_CONTROL_OPERATOR_CONTINUE: string;
243
+ LOOP_V1_FLOW_CONTROL_TOOLTIP_BREAK: string;
244
+ LOOP_V1_FLOW_CONTROL_TOOLTIP_CONTINUE: string;
245
+ LOOP_V1_FLOW_CONTROL_HELPURL: string;
235
246
  LOOP_V1_FOR_TITLE: string;
236
247
  LOOP_V1_FOR_EACH_TITLE: string;
248
+ LOOP_V1_REPEAT_TITLE: string;
249
+ LOOP_V1_REPEAT_TOOLTIP: string;
250
+ LOOP_V1_REPEAT_HELPURL: string;
237
251
  LOOP_V1_WHILE_UNTIL_OPERATOR_WHILE: string;
238
252
  LOOP_V1_WHILE_UNTIL_OPERATOR_UNTIL: string;
239
253
  LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE: string;
@@ -2,9 +2,56 @@ declare const loop: {
2
2
  kind: string;
3
3
  name: string;
4
4
  categorystyle: string;
5
- contents: {
5
+ contents: ({
6
6
  kind: string;
7
7
  type: string;
8
- }[];
8
+ inputs: {
9
+ TIMES: {
10
+ shadow: {
11
+ type: string;
12
+ fields: {
13
+ NUM: number;
14
+ };
15
+ };
16
+ };
17
+ FROM?: undefined;
18
+ TO?: undefined;
19
+ BY?: undefined;
20
+ };
21
+ } | {
22
+ kind: string;
23
+ type: string;
24
+ inputs?: undefined;
25
+ } | {
26
+ kind: string;
27
+ type: string;
28
+ inputs: {
29
+ FROM: {
30
+ shadow: {
31
+ type: string;
32
+ fields: {
33
+ NUM: number;
34
+ };
35
+ };
36
+ };
37
+ TO: {
38
+ shadow: {
39
+ type: string;
40
+ fields: {
41
+ NUM: number;
42
+ };
43
+ };
44
+ };
45
+ BY: {
46
+ shadow: {
47
+ type: string;
48
+ fields: {
49
+ NUM: number;
50
+ };
51
+ };
52
+ };
53
+ TIMES?: undefined;
54
+ };
55
+ })[];
9
56
  };
10
57
  export default loop;
@@ -1,6 +1,79 @@
1
1
  export declare const compToolboxV1: {
2
2
  kind: string;
3
3
  contents: ({
4
+ kind: string;
5
+ name: string;
6
+ categorystyle: string;
7
+ contents: ({
8
+ kind: string;
9
+ type: string;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ inputs: {
15
+ RED: {
16
+ shadow: {
17
+ type: string;
18
+ fields: {
19
+ NUM: number;
20
+ };
21
+ };
22
+ };
23
+ GREEN: {
24
+ shadow: {
25
+ type: string;
26
+ fields: {
27
+ NUM: number;
28
+ };
29
+ };
30
+ };
31
+ BLUE: {
32
+ shadow: {
33
+ type: string;
34
+ fields: {
35
+ NUM: number;
36
+ };
37
+ };
38
+ };
39
+ COLOR1?: undefined;
40
+ COLOR2?: undefined;
41
+ RATIO?: undefined;
42
+ };
43
+ } | {
44
+ kind: string;
45
+ type: string;
46
+ inputs: {
47
+ COLOR1: {
48
+ shadow: {
49
+ type: string;
50
+ fields: {
51
+ COLOR: string;
52
+ };
53
+ };
54
+ };
55
+ COLOR2: {
56
+ shadow: {
57
+ type: string;
58
+ fields: {
59
+ COLOR: string;
60
+ };
61
+ };
62
+ };
63
+ RATIO: {
64
+ shadow: {
65
+ type: string;
66
+ fields: {
67
+ NUM: number;
68
+ };
69
+ };
70
+ };
71
+ RED?: undefined;
72
+ GREEN?: undefined;
73
+ BLUE?: undefined;
74
+ };
75
+ })[];
76
+ } | {
4
77
  kind: string;
5
78
  name: string;
6
79
  categorystyle: string;
@@ -17,10 +90,110 @@ export declare const compToolboxV1: {
17
90
  kind: string;
18
91
  name: string;
19
92
  categorystyle: string;
20
- contents: {
93
+ contents: ({
94
+ kind: string;
95
+ type: string;
96
+ inputs: {
97
+ TIMES: {
98
+ shadow: {
99
+ type: string;
100
+ fields: {
101
+ NUM: number;
102
+ };
103
+ };
104
+ };
105
+ FROM?: undefined;
106
+ TO?: undefined;
107
+ BY?: undefined;
108
+ };
109
+ } | {
21
110
  kind: string;
22
111
  type: string;
23
- }[];
112
+ inputs?: undefined;
113
+ } | {
114
+ kind: string;
115
+ type: string;
116
+ inputs: {
117
+ FROM: {
118
+ shadow: {
119
+ type: string;
120
+ fields: {
121
+ NUM: number;
122
+ };
123
+ };
124
+ };
125
+ TO: {
126
+ shadow: {
127
+ type: string;
128
+ fields: {
129
+ NUM: number;
130
+ };
131
+ };
132
+ };
133
+ BY: {
134
+ shadow: {
135
+ type: string;
136
+ fields: {
137
+ NUM: number;
138
+ };
139
+ };
140
+ };
141
+ TIMES?: undefined;
142
+ };
143
+ })[];
144
+ } | {
145
+ kind: string;
146
+ name: string;
147
+ categorystyle: string;
148
+ contents: ({
149
+ kind: string;
150
+ type: string;
151
+ inputs: {
152
+ OBJECT: {
153
+ shadow: {
154
+ type: string;
155
+ };
156
+ };
157
+ TEXT?: undefined;
158
+ };
159
+ } | {
160
+ kind: string;
161
+ type: string;
162
+ inputs: {
163
+ TEXT: {
164
+ shadow: {
165
+ type: string;
166
+ };
167
+ };
168
+ OBJECT?: undefined;
169
+ };
170
+ } | {
171
+ kind: string;
172
+ type: string;
173
+ inputs?: undefined;
174
+ })[];
175
+ } | {
176
+ kind: string;
177
+ name: string;
178
+ categorystyle: string;
179
+ contents: ({
180
+ kind: string;
181
+ type: string;
182
+ inputs?: undefined;
183
+ } | {
184
+ kind: string;
185
+ type: string;
186
+ inputs: {
187
+ DURATION: {
188
+ shadow: {
189
+ type: string;
190
+ fields: {
191
+ NUM: number;
192
+ };
193
+ };
194
+ };
195
+ };
196
+ })[];
24
197
  } | {
25
198
  kind: string;
26
199
  name: string;
@@ -1,6 +1,79 @@
1
1
  export declare const flowToolboxV1: {
2
2
  kind: string;
3
3
  contents: ({
4
+ kind: string;
5
+ name: string;
6
+ categorystyle: string;
7
+ contents: ({
8
+ kind: string;
9
+ type: string;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ inputs: {
15
+ RED: {
16
+ shadow: {
17
+ type: string;
18
+ fields: {
19
+ NUM: number;
20
+ };
21
+ };
22
+ };
23
+ GREEN: {
24
+ shadow: {
25
+ type: string;
26
+ fields: {
27
+ NUM: number;
28
+ };
29
+ };
30
+ };
31
+ BLUE: {
32
+ shadow: {
33
+ type: string;
34
+ fields: {
35
+ NUM: number;
36
+ };
37
+ };
38
+ };
39
+ COLOR1?: undefined;
40
+ COLOR2?: undefined;
41
+ RATIO?: undefined;
42
+ };
43
+ } | {
44
+ kind: string;
45
+ type: string;
46
+ inputs: {
47
+ COLOR1: {
48
+ shadow: {
49
+ type: string;
50
+ fields: {
51
+ COLOR: string;
52
+ };
53
+ };
54
+ };
55
+ COLOR2: {
56
+ shadow: {
57
+ type: string;
58
+ fields: {
59
+ COLOR: string;
60
+ };
61
+ };
62
+ };
63
+ RATIO: {
64
+ shadow: {
65
+ type: string;
66
+ fields: {
67
+ NUM: number;
68
+ };
69
+ };
70
+ };
71
+ RED?: undefined;
72
+ GREEN?: undefined;
73
+ BLUE?: undefined;
74
+ };
75
+ })[];
76
+ } | {
4
77
  kind: string;
5
78
  name: string;
6
79
  categorystyle: string;
@@ -17,10 +90,57 @@ export declare const flowToolboxV1: {
17
90
  kind: string;
18
91
  name: string;
19
92
  categorystyle: string;
20
- contents: {
93
+ contents: ({
21
94
  kind: string;
22
95
  type: string;
23
- }[];
96
+ inputs: {
97
+ TIMES: {
98
+ shadow: {
99
+ type: string;
100
+ fields: {
101
+ NUM: number;
102
+ };
103
+ };
104
+ };
105
+ FROM?: undefined;
106
+ TO?: undefined;
107
+ BY?: undefined;
108
+ };
109
+ } | {
110
+ kind: string;
111
+ type: string;
112
+ inputs?: undefined;
113
+ } | {
114
+ kind: string;
115
+ type: string;
116
+ inputs: {
117
+ FROM: {
118
+ shadow: {
119
+ type: string;
120
+ fields: {
121
+ NUM: number;
122
+ };
123
+ };
124
+ };
125
+ TO: {
126
+ shadow: {
127
+ type: string;
128
+ fields: {
129
+ NUM: number;
130
+ };
131
+ };
132
+ };
133
+ BY: {
134
+ shadow: {
135
+ type: string;
136
+ fields: {
137
+ NUM: number;
138
+ };
139
+ };
140
+ };
141
+ TIMES?: undefined;
142
+ };
143
+ })[];
24
144
  } | {
25
145
  kind: string;
26
146
  name: string;
@@ -1,6 +1,79 @@
1
1
  export declare const funcToolboxV1: {
2
2
  kind: string;
3
3
  contents: ({
4
+ kind: string;
5
+ name: string;
6
+ categorystyle: string;
7
+ contents: ({
8
+ kind: string;
9
+ type: string;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ inputs: {
15
+ RED: {
16
+ shadow: {
17
+ type: string;
18
+ fields: {
19
+ NUM: number;
20
+ };
21
+ };
22
+ };
23
+ GREEN: {
24
+ shadow: {
25
+ type: string;
26
+ fields: {
27
+ NUM: number;
28
+ };
29
+ };
30
+ };
31
+ BLUE: {
32
+ shadow: {
33
+ type: string;
34
+ fields: {
35
+ NUM: number;
36
+ };
37
+ };
38
+ };
39
+ COLOR1?: undefined;
40
+ COLOR2?: undefined;
41
+ RATIO?: undefined;
42
+ };
43
+ } | {
44
+ kind: string;
45
+ type: string;
46
+ inputs: {
47
+ COLOR1: {
48
+ shadow: {
49
+ type: string;
50
+ fields: {
51
+ COLOR: string;
52
+ };
53
+ };
54
+ };
55
+ COLOR2: {
56
+ shadow: {
57
+ type: string;
58
+ fields: {
59
+ COLOR: string;
60
+ };
61
+ };
62
+ };
63
+ RATIO: {
64
+ shadow: {
65
+ type: string;
66
+ fields: {
67
+ NUM: number;
68
+ };
69
+ };
70
+ };
71
+ RED?: undefined;
72
+ GREEN?: undefined;
73
+ BLUE?: undefined;
74
+ };
75
+ })[];
76
+ } | {
4
77
  kind: string;
5
78
  name: string;
6
79
  categorystyle: string;
@@ -17,10 +90,57 @@ export declare const funcToolboxV1: {
17
90
  kind: string;
18
91
  name: string;
19
92
  categorystyle: string;
20
- contents: {
93
+ contents: ({
21
94
  kind: string;
22
95
  type: string;
23
- }[];
96
+ inputs: {
97
+ TIMES: {
98
+ shadow: {
99
+ type: string;
100
+ fields: {
101
+ NUM: number;
102
+ };
103
+ };
104
+ };
105
+ FROM?: undefined;
106
+ TO?: undefined;
107
+ BY?: undefined;
108
+ };
109
+ } | {
110
+ kind: string;
111
+ type: string;
112
+ inputs?: undefined;
113
+ } | {
114
+ kind: string;
115
+ type: string;
116
+ inputs: {
117
+ FROM: {
118
+ shadow: {
119
+ type: string;
120
+ fields: {
121
+ NUM: number;
122
+ };
123
+ };
124
+ };
125
+ TO: {
126
+ shadow: {
127
+ type: string;
128
+ fields: {
129
+ NUM: number;
130
+ };
131
+ };
132
+ };
133
+ BY: {
134
+ shadow: {
135
+ type: string;
136
+ fields: {
137
+ NUM: number;
138
+ };
139
+ };
140
+ };
141
+ TIMES?: undefined;
142
+ };
143
+ })[];
24
144
  } | {
25
145
  kind: string;
26
146
  name: string;