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.
@@ -15871,8 +15871,8 @@ export {
15871
15871
  bb as d,
15872
15872
  Xm as e,
15873
15873
  Z_ as f,
15874
- fb as g,
15875
- Cb as h,
15874
+ Cb as g,
15875
+ fb as h,
15876
15876
  Rb as i,
15877
15877
  Qb as j,
15878
15878
  R_ as k,
@@ -2,4 +2,5 @@ import './callFunc/v1';
2
2
  import './callFuncInternal/v1';
3
3
  import './computeDebugTrace/v1';
4
4
  import './funcEntry/v1';
5
+ import './onFlowStateEvent/v1';
5
6
  import './setFuncOutput/v1';
@@ -11,4 +11,5 @@ import './procedure';
11
11
  import './resource';
12
12
  import './text';
13
13
  import './time';
14
+ import './ui';
14
15
  import './variable';
@@ -1,4 +1,5 @@
1
1
  import './navigateTo/v1';
2
+ import './onNodeEvent/v1';
2
3
  import './openConfirmDlg/v1';
3
4
  import './openPromptDlg/v1';
4
5
  import './popupMessage/v1';
@@ -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(workspace: Blockly.WorkspaceSvg): Blockly.utils.toolbox.FlyoutDefinition;
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
- interface NodeInfo {
4
- id: string;
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;