x-block-lib 0.4.45 → 0.4.46
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-n2nno6aq.js → blockly-cc5ny7z2.js} +2 -2
- package/dist/core/blocks/compute/index.d.ts +1 -0
- package/dist/core/blocks/compute/onFlowStateEvent/v1/index.d.ts +1 -0
- package/dist/core/blocks/index.d.ts +1 -0
- package/dist/core/blocks/ui/index.d.ts +1 -0
- package/dist/core/category/flow/v1/index.d.ts +1 -1
- package/dist/core/category/func/v1/index.d.ts +1 -1
- package/dist/core/category/variable/v1/index.d.ts +1 -1
- package/dist/core/locale/msg/en.d.ts +11 -0
- package/dist/core/locale/msg/zhHans.d.ts +11 -0
- package/dist/core/utils/app/node.d.ts +3 -8
- package/dist/index.js +3339 -2853
- package/dist/{msg-en-eqk5vznj.js → msg-en-bj6uo3nn.js} +13 -0
- package/dist/{msg-zhHans-c9t7pl7j.js → msg-zhHans-frk9l0jh.js} +13 -0
- package/dist/state/app.d.ts +8 -12
- package/dist/state/compute.d.ts +0 -1
- package/dist/state/runtime.d.ts +1 -0
- package/package.json +2 -2
|
@@ -15871,8 +15871,8 @@ export {
|
|
|
15871
15871
|
bb as d,
|
|
15872
15872
|
Xm as e,
|
|
15873
15873
|
Z_ as f,
|
|
15874
|
-
|
|
15875
|
-
|
|
15874
|
+
Cb as g,
|
|
15875
|
+
fb as h,
|
|
15876
15876
|
Rb as i,
|
|
15877
15877
|
Qb as j,
|
|
15878
15878
|
R_ as k,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
2
|
+
declare function callback(type: string): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const flowCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
2
|
+
declare function callback(type: string): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const funcCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
declare function callback(
|
|
2
|
+
declare function callback(): Blockly.utils.toolbox.FlyoutDefinition;
|
|
3
3
|
export declare const variableCategoryV1: {
|
|
4
4
|
name: string;
|
|
5
5
|
callback: typeof callback;
|
|
@@ -38,6 +38,7 @@ declare const _default: {
|
|
|
38
38
|
CATEGORY_CALC: string;
|
|
39
39
|
CATEGORY_COLOR: string;
|
|
40
40
|
CATEGORY_DATA: string;
|
|
41
|
+
CATEGORY_FLOW: string;
|
|
41
42
|
CATEGORY_FUNC: string;
|
|
42
43
|
CATEGORY_INTERFACE: string;
|
|
43
44
|
CATEGORY_LIST: string;
|
|
@@ -48,11 +49,16 @@ declare const _default: {
|
|
|
48
49
|
CATEGORY_PROCEDURE: string;
|
|
49
50
|
CATEGORY_TEXT: string;
|
|
50
51
|
CATEGORY_TIME: string;
|
|
52
|
+
CATEGORY_UI: string;
|
|
51
53
|
CATEGORY_VARIABLE: string;
|
|
54
|
+
EVENT_STARTUP: string;
|
|
55
|
+
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
56
|
+
EVENT_DARK_MODE_CHANGE: string;
|
|
52
57
|
LABEL_BOOLEAN: string;
|
|
53
58
|
LABEL_CONDITION: string;
|
|
54
59
|
LABEL_CREATE_VARIABLE: string;
|
|
55
60
|
LABEL_CREATED: string;
|
|
61
|
+
LABEL_EVENT: string;
|
|
56
62
|
LABEL_GET: string;
|
|
57
63
|
LABEL_LIST: string;
|
|
58
64
|
LABEL_OBJECT: string;
|
|
@@ -66,8 +72,11 @@ declare const _default: {
|
|
|
66
72
|
LABEL_VARIABLE: string;
|
|
67
73
|
PARAM_DATA: string;
|
|
68
74
|
PARAM_EXTRA_DATA: string;
|
|
75
|
+
PARAM_IS_DARK_MODE: string;
|
|
69
76
|
PARAM_MAIN_DATA: string;
|
|
70
77
|
PARAM_MESSAGE: string;
|
|
78
|
+
PARAM_NEW_SCREEN_SIZE: string;
|
|
79
|
+
PARAM_OLD_SCREEN_SIZE: string;
|
|
71
80
|
PARAM_SUCCESS: string;
|
|
72
81
|
ASSET_DATA: string;
|
|
73
82
|
ASSET_DIR: string;
|
|
@@ -373,6 +382,8 @@ declare const _default: {
|
|
|
373
382
|
TIME_LOOP: string;
|
|
374
383
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
375
384
|
TIME_V1_DELAY_TITLE: string;
|
|
385
|
+
UI_DO: string;
|
|
386
|
+
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
376
387
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
377
388
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
378
389
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -38,6 +38,7 @@ declare const _default: {
|
|
|
38
38
|
CATEGORY_CALC: string;
|
|
39
39
|
CATEGORY_COLOR: string;
|
|
40
40
|
CATEGORY_DATA: string;
|
|
41
|
+
CATEGORY_FLOW: string;
|
|
41
42
|
CATEGORY_FUNC: string;
|
|
42
43
|
CATEGORY_INTERFACE: string;
|
|
43
44
|
CATEGORY_LIST: string;
|
|
@@ -48,11 +49,16 @@ declare const _default: {
|
|
|
48
49
|
CATEGORY_PROCEDURE: string;
|
|
49
50
|
CATEGORY_TEXT: string;
|
|
50
51
|
CATEGORY_TIMER: string;
|
|
52
|
+
CATEGORY_UI: string;
|
|
51
53
|
CATEGORY_VARIABLE: string;
|
|
54
|
+
EVENT_STARTUP: string;
|
|
55
|
+
EVENT_SCREEN_SIZE_CHANGE: string;
|
|
56
|
+
EVENT_DARK_MODE_CHANGE: string;
|
|
52
57
|
LABEL_BOOLEAN: string;
|
|
53
58
|
LABEL_CONDITION: string;
|
|
54
59
|
LABEL_CREATE_VARIABLE: string;
|
|
55
60
|
LABEL_CREATED: string;
|
|
61
|
+
LABEL_EVENT: string;
|
|
56
62
|
LABEL_GET: string;
|
|
57
63
|
LABEL_LIST: string;
|
|
58
64
|
LABEL_OBJECT: string;
|
|
@@ -66,8 +72,11 @@ declare const _default: {
|
|
|
66
72
|
LABEL_VARIABLE: string;
|
|
67
73
|
PARAM_DATA: string;
|
|
68
74
|
PARAM_EXTRA_DATA: string;
|
|
75
|
+
PARAM_IS_DARK_MODE: string;
|
|
69
76
|
PARAM_MAIN_DATA: string;
|
|
70
77
|
PARAM_MESSAGE: string;
|
|
78
|
+
PARAM_NEW_SCREEN_SIZE: string;
|
|
79
|
+
PARAM_OLD_SCREEN_SIZE: string;
|
|
71
80
|
PARAM_SUCCESS: string;
|
|
72
81
|
ASSET_DATA: string;
|
|
73
82
|
ASSET_DIR: string;
|
|
@@ -373,6 +382,8 @@ declare const _default: {
|
|
|
373
382
|
TIME_LOOP: string;
|
|
374
383
|
TIME_V1_CREATE_TIMER_TITLE: string;
|
|
375
384
|
TIME_V1_DELAY_TITLE: string;
|
|
385
|
+
UI_DO: string;
|
|
386
|
+
UI_V1_ON_NODE_EVENT_TITLE: string;
|
|
376
387
|
VARIABLE_V1_GET_CREATE_SET: string;
|
|
377
388
|
VARIABLE_V1_GET_TOOLTIP: string;
|
|
378
389
|
VARIABLE_V1_GET_HELPURL: string;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
+
import { Node } from '../../../state';
|
|
2
3
|
type Filter = 'event' | 'method';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
key: string;
|
|
6
|
-
alias: string;
|
|
7
|
-
sort: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function getAllNodeInfos(filter?: Filter): NodeInfo[];
|
|
10
|
-
export declare function getNodeInfo(id: string): NodeInfo;
|
|
4
|
+
export declare function getAllNodeInfos(filter?: Filter): Node[];
|
|
5
|
+
export declare function getNodeInfo(id: string): Node;
|
|
11
6
|
export declare function genNodeOpts(filter?: Filter): Blockly.MenuOption[];
|
|
12
7
|
export declare function getAllEventInfos(nodeid: string): import("x-runtime-lib").ZEvent[];
|
|
13
8
|
export declare function getEventInfo(nodeid: string, eventKey: string): import("x-runtime-lib").ZEvent | undefined;
|