x-block-lib 0.2.0 → 0.2.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.
- package/dist/core/blocks/index.d.ts +2 -0
- package/dist/core/blocks/logic/if/v1/index.d.ts +1 -0
- package/dist/core/blocks/logic/if/v1/mutator.d.ts +1 -0
- package/dist/core/blocks/logic/index.d.ts +2 -0
- package/dist/core/blocks/loop/extensions/v1/index.d.ts +1 -0
- package/dist/core/blocks/loop/flowControl/v1/extensions.d.ts +1 -0
- package/dist/core/blocks/loop/flowControl/v1/index.d.ts +1 -0
- package/dist/core/blocks/loop/for/v1/index.d.ts +1 -0
- package/dist/core/blocks/loop/forEach/v1/index.d.ts +1 -0
- package/dist/core/blocks/loop/index.d.ts +5 -0
- package/dist/core/blocks/loop/whileUntil/v1/index.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +20 -1
- package/dist/core/locale/msg/zhHans.d.ts +20 -1
- package/dist/core/plugins/customCleanUp/index.d.ts +3 -0
- package/dist/core/plugins/disableTopBlocks/index.d.ts +3 -0
- package/dist/core/plugins/readOnlyFlyout/index.d.ts +9 -0
- package/dist/core/toolbox/app/v1/index.d.ts +25 -2
- package/dist/core/toolbox/common/logic/v1/index.d.ts +15 -0
- package/dist/core/toolbox/common/loop/v1/index.d.ts +10 -0
- package/dist/en-Djut8W3R.js +27 -0
- package/dist/index.js +697 -217
- package/dist/zhHans-D_qcn_1f.js +27 -0
- package/package.json +4 -3
- package/dist/en-DYxpcVy9.js +0 -4
- package/dist/zhHans-DjWw6Iqb.js +0 -4
- /package/dist/core/blocks/{downloadAsset → logic/boolean}/v1/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './mutator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './extensions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: {
|
|
2
|
+
LOOP_DO: string;
|
|
3
|
+
LOOP_V1_FOR_TITLE: string;
|
|
4
|
+
LOOP_V1_FOR_EACH_TITLE: string;
|
|
5
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_WHILE: string;
|
|
6
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_UNTIL: string;
|
|
7
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE: string;
|
|
8
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL: string;
|
|
9
|
+
LOOP_V1_WHILE_UNTIL_HELPURL: string;
|
|
10
|
+
LOGIC_BOOLEAN_FALSE: string;
|
|
11
|
+
LOGIC_BOOLEAN_TRUE: string;
|
|
12
|
+
LOGIC_DO: string;
|
|
13
|
+
LOGIC_ELSE: string;
|
|
14
|
+
LOGIC_ELSE_IF: string;
|
|
15
|
+
LOGIC_IF: string;
|
|
16
|
+
LOGIC_V1_BOOLEAN_TOOPTIP: string;
|
|
17
|
+
LOGIC_V1_BOOLEAN_HELPURL: string;
|
|
18
|
+
LOGIC_V1_IF_TOOLTIP: string;
|
|
19
|
+
LOGIC_V1_IF_HELPURL: string;
|
|
20
|
+
};
|
|
2
21
|
export default _default;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: {
|
|
2
|
+
LOOP_DO: string;
|
|
3
|
+
LOOP_V1_FOR_TITLE: string;
|
|
4
|
+
LOOP_V1_FOR_EACH_TITLE: string;
|
|
5
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_WHILE: string;
|
|
6
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_UNTIL: string;
|
|
7
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE: string;
|
|
8
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL: string;
|
|
9
|
+
LOOP_V1_WHILE_UNTIL_HELPURL: string;
|
|
10
|
+
LOGIC_BOOLEAN_FALSE: string;
|
|
11
|
+
LOGIC_BOOLEAN_TRUE: string;
|
|
12
|
+
LOGIC_DO: string;
|
|
13
|
+
LOGIC_ELSE: string;
|
|
14
|
+
LOGIC_ELSE_IF: string;
|
|
15
|
+
LOGIC_IF: string;
|
|
16
|
+
LOGIC_V1_BOOLEAN_TOOPTIP: string;
|
|
17
|
+
LOGIC_V1_BOOLEAN_HELPURL: string;
|
|
18
|
+
LOGIC_V1_IF_TOOLTIP: string;
|
|
19
|
+
LOGIC_V1_IF_HELPURL: string;
|
|
20
|
+
};
|
|
2
21
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Blockly from 'blockly/core';
|
|
2
|
+
export declare class ReadOnlyHorizontalFlyout extends Blockly.HorizontalFlyout {
|
|
3
|
+
protected addBlockListeners_(root: SVGElement, block: Blockly.BlockSvg, rect: SVGElement): void;
|
|
4
|
+
isBlockCreatable(block: Blockly.BlockSvg): boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadOnlyVerticalFlyout extends Blockly.VerticalFlyout {
|
|
7
|
+
protected addBlockListeners_(root: SVGElement, block: Blockly.BlockSvg, rect: SVGElement): void;
|
|
8
|
+
isBlockCreatable(block: Blockly.BlockSvg): boolean;
|
|
9
|
+
}
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const toolbox: {
|
|
2
|
+
kind: string;
|
|
3
|
+
contents: ({
|
|
4
|
+
kind: string;
|
|
5
|
+
name: string;
|
|
6
|
+
categorystyle: string;
|
|
7
|
+
contents: ({
|
|
8
|
+
kind: string;
|
|
9
|
+
text: string;
|
|
10
|
+
type?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
kind: string;
|
|
13
|
+
type: string;
|
|
14
|
+
text?: undefined;
|
|
15
|
+
})[];
|
|
16
|
+
} | {
|
|
17
|
+
kind: string;
|
|
18
|
+
name: string;
|
|
19
|
+
categorystyle: string;
|
|
20
|
+
contents: {
|
|
21
|
+
kind: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}[];
|
|
24
|
+
})[];
|
|
25
|
+
};
|
|
3
26
|
export default toolbox;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const _ = {
|
|
2
|
+
LOGIC_BOOLEAN_FALSE: "false",
|
|
3
|
+
LOGIC_BOOLEAN_TRUE: "true",
|
|
4
|
+
LOGIC_DO: "do",
|
|
5
|
+
LOGIC_ELSE: "else",
|
|
6
|
+
LOGIC_ELSE_IF: "else if",
|
|
7
|
+
LOGIC_IF: "if",
|
|
8
|
+
LOGIC_V1_BOOLEAN_TOOPTIP: "LOGIC_V1_BOOLEAN_TOOPTIP",
|
|
9
|
+
LOGIC_V1_BOOLEAN_HELPURL: "LOGIC_V1_BOOLEAN_HELPURL",
|
|
10
|
+
LOGIC_V1_IF_TOOLTIP: "LOGIC_V1_IF_TOOLTIP",
|
|
11
|
+
LOGIC_V1_IF_HELPURL: "LOGIC_V1_IF_HELPURL"
|
|
12
|
+
}, L = {
|
|
13
|
+
LOOP_DO: "do",
|
|
14
|
+
LOOP_V1_FOR_TITLE: "count with %1 from %2 to %3 by %4",
|
|
15
|
+
LOOP_V1_FOR_EACH_TITLE: "for each item %1 in list %2",
|
|
16
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_WHILE: "repeat while",
|
|
17
|
+
LOOP_V1_WHILE_UNTIL_OPERATOR_UNTIL: "repeat until",
|
|
18
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE: "LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE",
|
|
19
|
+
LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL: "LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL",
|
|
20
|
+
LOOP_V1_WHILE_UNTIL_HELPURL: "LOOP_V1_WHILE_UNTIL_HELPURL"
|
|
21
|
+
}, O = {
|
|
22
|
+
..._,
|
|
23
|
+
...L
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
O as default
|
|
27
|
+
};
|