x-block-lib 0.6.21 → 0.6.22
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/{blockly-mc709wdb.js → blockly-cqpt5auh.js} +1260 -1234
- package/dist/core/blocks/app/index.d.ts +1 -0
- package/dist/core/blocks/app/selectComp/v1/index.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +3 -0
- package/dist/core/locale/msg/zhHans.d.ts +3 -0
- package/dist/core/utils/app/app.d.ts +13 -0
- package/dist/core/utils/common/index.d.ts +9 -1
- package/dist/index.js +2482 -2384
- package/dist/{msg-en-lczwbzqt.js → msg-en-knn7v47g.js} +3 -0
- package/dist/{msg-zhHans-ex70e44o.js → msg-zhHans-fs6i60zj.js} +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -452,6 +452,9 @@ declare const _default: {
|
|
|
452
452
|
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
453
453
|
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
454
454
|
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
455
|
+
UI_V1_SELECT_COMP_TITLE: string;
|
|
456
|
+
UI_V1_SELECT_COMP_TOOLTIP: string;
|
|
457
|
+
UI_V1_SELECT_COMP_HELPURL: string;
|
|
455
458
|
UI_V1_SET_COMP_METHOD_OUTPUT_TITLE: string;
|
|
456
459
|
UI_V1_SET_COMP_METHOD_OUTPUT_TOOLTIP: string;
|
|
457
460
|
UI_V1_SET_COMP_METHOD_OUTPUT_HELPURL: string;
|
|
@@ -452,6 +452,9 @@ declare const _default: {
|
|
|
452
452
|
UI_V1_POPUP_MESSAGE_TITLE: string;
|
|
453
453
|
UI_V1_POPUP_MESSAGE_TOOLTIP: string;
|
|
454
454
|
UI_V1_POPUP_MESSAGE_HELPURL: string;
|
|
455
|
+
UI_V1_SELECT_COMP_TITLE: string;
|
|
456
|
+
UI_V1_SELECT_COMP_TOOLTIP: string;
|
|
457
|
+
UI_V1_SELECT_COMP_HELPURL: string;
|
|
455
458
|
UI_V1_SET_COMP_METHOD_OUTPUT_TITLE: string;
|
|
456
459
|
UI_V1_SET_COMP_METHOD_OUTPUT_TOOLTIP: string;
|
|
457
460
|
UI_V1_SET_COMP_METHOD_OUTPUT_HELPURL: string;
|
|
@@ -11,3 +11,16 @@ export declare function getPageInfo(appid: string, pageid: string): {
|
|
|
11
11
|
name: string;
|
|
12
12
|
} | undefined;
|
|
13
13
|
export declare function genPageOpts(appid: string): Blockly.MenuOption[];
|
|
14
|
+
export declare function getAllCompInfos(): {
|
|
15
|
+
id: string;
|
|
16
|
+
groupid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
position: number;
|
|
19
|
+
}[];
|
|
20
|
+
export declare function getCompInfo(compid: string): {
|
|
21
|
+
id: string;
|
|
22
|
+
groupid: string;
|
|
23
|
+
name: string;
|
|
24
|
+
position: number;
|
|
25
|
+
} | undefined;
|
|
26
|
+
export declare function genCompOpts(): Blockly.MenuOption[];
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
+
export declare function toBlockType(key: string): string;
|
|
3
|
+
export declare function toCheck(key: string): string;
|
|
2
4
|
export declare function ensureOpts(options: Blockly.MenuOption[]): Blockly.MenuOption[];
|
|
3
5
|
export declare function genParamShadowV1(param: {
|
|
4
|
-
type: 'string' | 'number' | 'boolean';
|
|
6
|
+
type: 'string' | 'number' | 'boolean' | 'comp';
|
|
5
7
|
default: unknown;
|
|
6
8
|
}): Element;
|
|
7
9
|
export declare function spawnParameterBlockV1(workspace: Blockly.Workspace, key: string, name: string, locale: boolean): Blockly.Block;
|
|
8
10
|
export declare function ensureParameterBlockV1s(scope: Blockly.Block, params: [string, string, string, boolean][]): void;
|
|
11
|
+
export declare function spawnTextBlockV1(workspace: Blockly.Workspace, value: string): Blockly.Block;
|
|
12
|
+
export declare function spawnMathNumberBlockV1(workspace: Blockly.Workspace, value: number): Blockly.Block;
|
|
13
|
+
export declare function spawnLogicBooleanBlockV1(workspace: Blockly.Workspace, value: boolean): Blockly.Block;
|
|
14
|
+
export declare function spawnItemsBlockV1(workspace: Blockly.Workspace, items: string): Blockly.Block;
|
|
15
|
+
export declare function spawnTypesBlockV1(workspace: Blockly.Workspace, types: string): Blockly.Block;
|
|
16
|
+
export declare function spawnSelectCompBlockV1(workspace: Blockly.Workspace): Blockly.Block;
|