x-block-lib 0.8.3 → 0.8.4
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/locale/msg/en.d.ts +0 -10
- package/dist/core/locale/msg/zhHans.d.ts +0 -10
- package/dist/core/utils/app/argument.d.ts +9 -6
- package/dist/core/utils/app/index.d.ts +7 -0
- package/dist/core/utils/app/node.d.ts +3 -3
- package/dist/core/utils/app/prop.d.ts +17 -9
- package/dist/core/utils/compute/index.d.ts +2 -0
- package/dist/core/utils/data/index.d.ts +2 -0
- package/dist/core/utils/resource/index.d.ts +3 -0
- package/dist/index.js +1145 -1130
- package/dist/{msg-en.h8c0zmmh.js → msg-en.jq2w67rd.js} +0 -11
- package/dist/{msg-zhHans.dsez90cp.js → msg-zhHans.hsanc2zi.js} +0 -11
- package/dist/utils/name.d.ts +3 -0
- package/package.json +2 -2
|
@@ -77,16 +77,6 @@ declare const _default: {
|
|
|
77
77
|
LABEL_TEXT: string;
|
|
78
78
|
LABEL_VALUE: string;
|
|
79
79
|
LABEL_VARIABLE: string;
|
|
80
|
-
PARAM_DATA: string;
|
|
81
|
-
PARAM_EXTRA_DATA: string;
|
|
82
|
-
PARAM_IS_DARK_MODE: string;
|
|
83
|
-
PARAM_MAIN_DATA: string;
|
|
84
|
-
PARAM_MESSAGE: string;
|
|
85
|
-
PARAM_NEW_SCREEN_SIZE: string;
|
|
86
|
-
PARAM_OLD_SCREEN_SIZE: string;
|
|
87
|
-
PARAM_RESULT: string;
|
|
88
|
-
PARAM_STATE: string;
|
|
89
|
-
PARAM_SUCCESS: string;
|
|
90
80
|
WARN_APP_NOT_FOUND: string;
|
|
91
81
|
WARN_ARGUMENT_HAS_CHANGED: string;
|
|
92
82
|
WARN_ARGUMENT_NOT_FOUND: string;
|
|
@@ -77,16 +77,6 @@ declare const _default: {
|
|
|
77
77
|
LABEL_TEXT: string;
|
|
78
78
|
LABEL_VALUE: string;
|
|
79
79
|
LABEL_VARIABLE: string;
|
|
80
|
-
PARAM_DATA: string;
|
|
81
|
-
PARAM_EXTRA_DATA: string;
|
|
82
|
-
PARAM_IS_DARK_MODE: string;
|
|
83
|
-
PARAM_MAIN_DATA: string;
|
|
84
|
-
PARAM_MESSAGE: string;
|
|
85
|
-
PARAM_NEW_SCREEN_SIZE: string;
|
|
86
|
-
PARAM_OLD_SCREEN_SIZE: string;
|
|
87
|
-
PARAM_RESULT: string;
|
|
88
|
-
PARAM_STATE: string;
|
|
89
|
-
PARAM_SUCCESS: string;
|
|
90
80
|
WARN_APP_NOT_FOUND: string;
|
|
91
81
|
WARN_ARGUMENT_HAS_CHANGED: string;
|
|
92
82
|
WARN_ARGUMENT_NOT_FOUND: string;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Type } from 'x-runtime-lib';
|
|
3
|
+
interface ArgumentInfo {
|
|
4
|
+
key: string;
|
|
4
5
|
name: string;
|
|
5
|
-
type:
|
|
6
|
-
}
|
|
6
|
+
type: Type;
|
|
7
|
+
}
|
|
8
|
+
export declare function getAllArgumentInfos(): ArgumentInfo[];
|
|
7
9
|
export declare function getArgumentInfo(id: string): {
|
|
8
|
-
|
|
10
|
+
key: string;
|
|
9
11
|
name: string;
|
|
10
|
-
type:
|
|
12
|
+
type: "string" | "number" | "boolean" | "object" | "array";
|
|
11
13
|
} | undefined;
|
|
12
14
|
export declare function genArgumentOpts(): Blockly.MenuOption[];
|
|
15
|
+
export {};
|
|
@@ -5,8 +5,8 @@ interface NodeInfo {
|
|
|
5
5
|
name: string;
|
|
6
6
|
alias: string;
|
|
7
7
|
}
|
|
8
|
-
type Filter = 'onEvent' | 'callMethod';
|
|
9
|
-
export declare function getAllNodeInfos(filter
|
|
8
|
+
type Filter = 'onEvent' | 'callMethod' | 'property';
|
|
9
|
+
export declare function getAllNodeInfos(filter: Filter): NodeInfo[];
|
|
10
10
|
export declare function getNodeInfo(nodeid: string): NodeInfo | undefined;
|
|
11
|
-
export declare function genNodeOpts(filter
|
|
11
|
+
export declare function genNodeOpts(filter: Filter): Blockly.MenuOption[];
|
|
12
12
|
export {};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
2
|
import { Type, ZProp } from 'x-runtime-lib';
|
|
3
|
+
interface MetaRegular {
|
|
4
|
+
from: 'regular';
|
|
5
|
+
raw: ZProp;
|
|
6
|
+
}
|
|
7
|
+
interface MetaSlot {
|
|
8
|
+
from: 'slot';
|
|
9
|
+
raw: {
|
|
10
|
+
type: Type;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface MetaCustom {
|
|
14
|
+
from: 'custom';
|
|
15
|
+
raw: {
|
|
16
|
+
type: Type;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
3
19
|
interface PropInfo {
|
|
4
20
|
key: string;
|
|
5
21
|
names: string[];
|
|
6
|
-
meta:
|
|
7
|
-
from: 'regular';
|
|
8
|
-
raw: ZProp;
|
|
9
|
-
} | {
|
|
10
|
-
from: 'slot' | 'custom';
|
|
11
|
-
raw: {
|
|
12
|
-
type: Type;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
22
|
+
meta: MetaRegular | MetaSlot | MetaCustom;
|
|
15
23
|
}
|
|
16
24
|
export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
|
|
17
25
|
export declare function getPropInfo(nodeid: string, propKey: string): PropInfo | undefined;
|