x-block-lib 0.3.22 → 0.4.0

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.
Files changed (141) hide show
  1. package/dist/{blockly-kru4jhu1.js → blockly-jgwpd4oo.js} +32 -16
  2. package/dist/components/blockly/cleanup.vue.d.ts +1 -1
  3. package/dist/components/blockly/index.vue.d.ts +7 -16
  4. package/dist/components/blockly/lock.vue.d.ts +4 -13
  5. package/dist/components/blockly/navigator.vue.d.ts +1 -1
  6. package/dist/core/blocks/color/colorRgb/v1/index.d.ts +1 -0
  7. package/dist/core/blocks/color/index.d.ts +4 -0
  8. package/dist/core/blocks/common/index.d.ts +1 -0
  9. package/dist/core/blocks/common/parameter/v1/index.d.ts +22 -0
  10. package/dist/core/blocks/compute/callFunc/v1/index.d.ts +1 -0
  11. package/dist/core/blocks/compute/index.d.ts +1 -0
  12. package/dist/core/blocks/index.d.ts +10 -0
  13. package/dist/core/blocks/list/index.d.ts +9 -0
  14. package/dist/core/blocks/list/listCreate/v1/index.d.ts +1 -0
  15. package/dist/core/blocks/list/listDelete/v1/index.d.ts +1 -0
  16. package/dist/core/blocks/list/listGet/v1/index.d.ts +1 -0
  17. package/dist/core/blocks/list/listGetSublist/v1/index.d.ts +1 -0
  18. package/dist/core/blocks/list/listIsEmpty/v1/index.d.ts +1 -0
  19. package/dist/core/blocks/list/listJoin/v1/index.d.ts +1 -0
  20. package/dist/core/blocks/list/listLength/v1/index.d.ts +1 -0
  21. package/dist/core/blocks/list/listReverse/v1/index.d.ts +1 -0
  22. package/dist/core/blocks/list/listSet/v1/index.d.ts +1 -0
  23. package/dist/core/blocks/logic/extensions/v1/index.d.ts +1 -0
  24. package/dist/core/blocks/logic/index.d.ts +7 -2
  25. package/dist/core/blocks/logic/logicBoolean/v1/index.d.ts +1 -0
  26. package/dist/core/blocks/logic/logicCompare/v1/index.d.ts +1 -0
  27. package/dist/core/blocks/logic/logicIf/v1/index.d.ts +1 -0
  28. package/dist/core/blocks/logic/logicNegate/v1/index.d.ts +1 -0
  29. package/dist/core/blocks/logic/logicOperation/v1/index.d.ts +1 -0
  30. package/dist/core/blocks/logic/logicTernary/v1/index.d.ts +1 -0
  31. package/dist/core/blocks/loop/index.d.ts +1 -1
  32. package/dist/core/blocks/loop/loopWhileUntil/v1/index.d.ts +1 -0
  33. package/dist/core/blocks/math/extensions/v1/index.d.ts +1 -0
  34. package/dist/core/blocks/math/index.d.ts +13 -0
  35. package/dist/core/blocks/math/mathArithmetic/v1/index.d.ts +1 -0
  36. package/dist/core/blocks/math/mathConstant/v1/index.d.ts +1 -0
  37. package/dist/core/blocks/math/mathConstrain/v1/index.d.ts +1 -0
  38. package/dist/core/blocks/math/mathModulo/v1/index.d.ts +1 -0
  39. package/dist/core/blocks/math/mathNumber/v1/index.d.ts +1 -0
  40. package/dist/core/blocks/math/mathNumberProperty/v1/index.d.ts +1 -0
  41. package/dist/core/blocks/math/mathOnList/v1/index.d.ts +1 -0
  42. package/dist/core/blocks/math/mathRandomFloat/v1/index.d.ts +1 -0
  43. package/dist/core/blocks/math/mathRandomInt/v1/index.d.ts +1 -0
  44. package/dist/core/blocks/math/mathRound/v1/index.d.ts +1 -0
  45. package/dist/core/blocks/math/mathSingle/v1/index.d.ts +1 -0
  46. package/dist/core/blocks/math/mathTrig/v1/index.d.ts +1 -0
  47. package/dist/core/blocks/object/index.d.ts +6 -0
  48. package/dist/core/blocks/object/objectCreate/v1/index.d.ts +1 -0
  49. package/dist/core/blocks/object/objectDelete/v1/index.d.ts +1 -0
  50. package/dist/core/blocks/object/objectFromJson/v1/index.d.ts +1 -0
  51. package/dist/core/blocks/object/objectGet/v1/index.d.ts +1 -0
  52. package/dist/core/blocks/object/objectSet/v1/index.d.ts +1 -0
  53. package/dist/core/blocks/object/objectToJson/v1/index.d.ts +1 -0
  54. package/dist/core/blocks/procedure/index.d.ts +2 -0
  55. package/dist/core/blocks/procedure/procedureCall/v1/index.d.ts +1 -0
  56. package/dist/core/blocks/procedure/procedureDef/v1/index.d.ts +29 -0
  57. package/dist/core/blocks/procedure/procedureReturn/v1/index.d.ts +1 -0
  58. package/dist/core/blocks/resource/downloadAsset/v1/index.d.ts +1 -0
  59. package/dist/core/blocks/resource/downloadResource/v1/index.d.ts +1 -0
  60. package/dist/core/blocks/resource/index.d.ts +0 -0
  61. package/dist/core/blocks/resource/selectResource/v1/index.d.ts +1 -0
  62. package/dist/core/blocks/resource/uploadResource/v1/index.d.ts +1 -0
  63. package/dist/core/blocks/text/index.d.ts +14 -0
  64. package/dist/core/blocks/text/text/v1/index.d.ts +1 -0
  65. package/dist/core/blocks/text/textAppend/v1/index.d.ts +1 -0
  66. package/dist/core/blocks/text/textChangeCase/v1/index.d.ts +1 -0
  67. package/dist/core/blocks/text/textCharAt/v1/index.d.ts +1 -0
  68. package/dist/core/blocks/text/textCount/v1/index.d.ts +1 -0
  69. package/dist/core/blocks/text/textIndexOf/v1/index.d.ts +1 -0
  70. package/dist/core/blocks/text/textIsEmpty/v1/index.d.ts +1 -0
  71. package/dist/core/blocks/text/textJoin/v1/index.d.ts +21 -0
  72. package/dist/core/blocks/text/textLength/v1/index.d.ts +1 -0
  73. package/dist/core/blocks/text/textReplace/v1/index.d.ts +1 -0
  74. package/dist/core/blocks/text/textReverse/v1/index.d.ts +1 -0
  75. package/dist/core/blocks/text/textSplit/v1/index.d.ts +1 -0
  76. package/dist/core/blocks/text/textSubstring/v1/index.d.ts +1 -0
  77. package/dist/core/blocks/text/textTrim/v1/index.d.ts +1 -0
  78. package/dist/core/blocks/text/utils/index.d.ts +1 -0
  79. package/dist/core/blocks/time/createTimer/v1/index.d.ts +1 -0
  80. package/dist/core/blocks/time/delay/v1/index.d.ts +1 -0
  81. package/dist/core/blocks/time/index.d.ts +2 -0
  82. package/dist/core/blocks/ui/callNodeMethod/v1/index.d.ts +1 -0
  83. package/dist/core/blocks/ui/callNodeMethodAs/v1/index.d.ts +1 -0
  84. package/dist/core/blocks/ui/getArg/v1/index.d.ts +1 -0
  85. package/dist/core/blocks/ui/getNode/v1/index.d.ts +1 -0
  86. package/dist/core/blocks/ui/getNodeProp/v1/index.d.ts +1 -0
  87. package/dist/core/blocks/ui/getNodePropAs/v1/index.d.ts +1 -0
  88. package/dist/core/blocks/ui/index.d.ts +4 -0
  89. package/dist/core/blocks/ui/navigateTo/v1/index.d.ts +1 -0
  90. package/dist/core/blocks/ui/onNodeEvent/v1/index.d.ts +1 -0
  91. package/dist/core/blocks/ui/onNodeEventAs/v1/index.d.ts +1 -0
  92. package/dist/core/blocks/ui/openConfirmDlg/v1/index.d.ts +1 -0
  93. package/dist/core/blocks/ui/openPromptDlg/v1/index.d.ts +1 -0
  94. package/dist/core/blocks/ui/popupMessage/v1/index.d.ts +1 -0
  95. package/dist/core/blocks/variable/extensions/v1/index.d.ts +1 -0
  96. package/dist/core/blocks/variable/index.d.ts +3 -0
  97. package/dist/core/blocks/variable/variableGet/v1/index.d.ts +1 -0
  98. package/dist/core/blocks/variable/variableSet/v1/index.d.ts +1 -0
  99. package/dist/core/category/index.d.ts +4 -0
  100. package/dist/core/category/interface/v1/index.d.ts +6 -0
  101. package/dist/core/category/procedure/v1/index.d.ts +6 -0
  102. package/dist/core/category/ui/v1/index.d.ts +6 -0
  103. package/dist/core/category/variable/v1/index.d.ts +7 -0
  104. package/dist/core/index.d.ts +2 -0
  105. package/dist/core/locale/msg/en.d.ts +309 -10
  106. package/dist/core/locale/msg/zhHans.d.ts +309 -10
  107. package/dist/core/misc/index.d.ts +3 -0
  108. package/dist/core/plugins/fieldColour/index.d.ts +1 -0
  109. package/dist/core/toolbox/app/v1/index.d.ts +5 -0
  110. package/dist/core/toolbox/app/v1/time.d.ts +24 -0
  111. package/dist/core/toolbox/common/color/v1/index.d.ts +75 -0
  112. package/dist/core/toolbox/common/list/v1/index.d.ts +88 -0
  113. package/dist/core/toolbox/common/math/v1/index.d.ts +132 -0
  114. package/dist/core/toolbox/common/object/v1/index.d.ts +31 -0
  115. package/dist/core/toolbox/common/text/v1/index.d.ts +173 -0
  116. package/dist/core/utils/app/app.d.ts +17 -0
  117. package/dist/core/utils/app/arg.d.ts +10 -0
  118. package/dist/core/utils/app/element.d.ts +21 -0
  119. package/dist/core/utils/app/node.d.ts +23 -0
  120. package/dist/core/utils/asset/index.d.ts +24 -0
  121. package/dist/core/utils/calc/index.d.ts +17 -0
  122. package/dist/core/utils/common/index.d.ts +9 -0
  123. package/dist/core/utils/common/state.d.ts +108 -0
  124. package/dist/core/utils/compute/func.d.ts +9 -0
  125. package/dist/core/utils/compute/space.d.ts +10 -0
  126. package/dist/core/utils/data/index.d.ts +26 -0
  127. package/dist/core/utils/resource/index.d.ts +24 -0
  128. package/dist/index.js +5028 -589
  129. package/package.json +12 -9
  130. package/dist/core/blocks/logic/if/v1/index.d.ts +0 -1
  131. package/dist/core/locale/msg/en/index.d.ts +0 -21
  132. package/dist/core/locale/msg/en/logic.d.ts +0 -13
  133. package/dist/core/locale/msg/en/loop.d.ts +0 -11
  134. package/dist/core/locale/msg/zhHans/index.d.ts +0 -21
  135. package/dist/core/locale/msg/zhHans/logic.d.ts +0 -13
  136. package/dist/core/locale/msg/zhHans/loop.d.ts +0 -11
  137. package/dist/en-jrrs2wmb.js +0 -35
  138. package/dist/zhHans-jrrs2wmb.js +0 -35
  139. /package/dist/core/blocks/{logic/boolean → color/colorBlend}/v1/index.d.ts +0 -0
  140. /package/dist/core/blocks/{loop/whileUntil → color/colorPicker}/v1/index.d.ts +0 -0
  141. /package/dist/core/blocks/{logic/if/v1/mutator.d.ts → color/colorRandom/v1/index.d.ts} +0 -0
@@ -0,0 +1,24 @@
1
+ declare const time: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ type: string;
8
+ inputs?: undefined;
9
+ } | {
10
+ kind: string;
11
+ type: string;
12
+ inputs: {
13
+ MS: {
14
+ shadow: {
15
+ type: string;
16
+ fields: {
17
+ NUM: number;
18
+ };
19
+ };
20
+ };
21
+ };
22
+ })[];
23
+ };
24
+ export default time;
@@ -0,0 +1,75 @@
1
+ declare const color: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ type: string;
8
+ inputs?: undefined;
9
+ } | {
10
+ kind: string;
11
+ type: string;
12
+ inputs: {
13
+ RED: {
14
+ shadow: {
15
+ type: string;
16
+ fields: {
17
+ NUM: number;
18
+ };
19
+ };
20
+ };
21
+ GREEN: {
22
+ shadow: {
23
+ type: string;
24
+ fields: {
25
+ NUM: number;
26
+ };
27
+ };
28
+ };
29
+ BLUE: {
30
+ shadow: {
31
+ type: string;
32
+ fields: {
33
+ NUM: number;
34
+ };
35
+ };
36
+ };
37
+ COLOR1?: undefined;
38
+ COLOR2?: undefined;
39
+ RATIO?: undefined;
40
+ };
41
+ } | {
42
+ kind: string;
43
+ type: string;
44
+ inputs: {
45
+ COLOR1: {
46
+ shadow: {
47
+ type: string;
48
+ fields: {
49
+ COLOR: string;
50
+ };
51
+ };
52
+ };
53
+ COLOR2: {
54
+ shadow: {
55
+ type: string;
56
+ fields: {
57
+ COLOR: string;
58
+ };
59
+ };
60
+ };
61
+ RATIO: {
62
+ shadow: {
63
+ type: string;
64
+ fields: {
65
+ NUM: number;
66
+ };
67
+ };
68
+ };
69
+ RED?: undefined;
70
+ GREEN?: undefined;
71
+ BLUE?: undefined;
72
+ };
73
+ })[];
74
+ };
75
+ export default color;
@@ -0,0 +1,88 @@
1
+ declare const list: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ text: string;
8
+ type?: undefined;
9
+ extraState?: undefined;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ extraState: {
15
+ itemCount: number;
16
+ };
17
+ text?: undefined;
18
+ inputs?: undefined;
19
+ } | {
20
+ kind: string;
21
+ type: string;
22
+ text?: undefined;
23
+ extraState?: undefined;
24
+ inputs?: undefined;
25
+ } | {
26
+ kind: string;
27
+ type: string;
28
+ inputs: {
29
+ AT: {
30
+ shadow: {
31
+ type: string;
32
+ fields: {
33
+ NUM: number;
34
+ };
35
+ };
36
+ };
37
+ START?: undefined;
38
+ END?: undefined;
39
+ DELIM?: undefined;
40
+ };
41
+ text?: undefined;
42
+ extraState?: undefined;
43
+ } | {
44
+ kind: string;
45
+ type: string;
46
+ inputs: {
47
+ START: {
48
+ shadow: {
49
+ type: string;
50
+ fields: {
51
+ NUM: number;
52
+ };
53
+ };
54
+ };
55
+ END: {
56
+ shadow: {
57
+ type: string;
58
+ fields: {
59
+ NUM: number;
60
+ };
61
+ };
62
+ };
63
+ AT?: undefined;
64
+ DELIM?: undefined;
65
+ };
66
+ text?: undefined;
67
+ extraState?: undefined;
68
+ } | {
69
+ kind: string;
70
+ type: string;
71
+ inputs: {
72
+ DELIM: {
73
+ shadow: {
74
+ type: string;
75
+ fields: {
76
+ TEXT: string;
77
+ };
78
+ };
79
+ };
80
+ AT?: undefined;
81
+ START?: undefined;
82
+ END?: undefined;
83
+ };
84
+ text?: undefined;
85
+ extraState?: undefined;
86
+ })[];
87
+ };
88
+ export default list;
@@ -0,0 +1,132 @@
1
+ declare const math: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ text: string;
8
+ type?: undefined;
9
+ fields?: undefined;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ fields: {
15
+ NUM: number;
16
+ };
17
+ text?: undefined;
18
+ inputs?: undefined;
19
+ } | {
20
+ kind: string;
21
+ type: string;
22
+ text?: undefined;
23
+ fields?: undefined;
24
+ inputs?: undefined;
25
+ } | {
26
+ kind: string;
27
+ type: string;
28
+ inputs: {
29
+ FROM: {
30
+ shadow: {
31
+ type: string;
32
+ fields: {
33
+ NUM: number;
34
+ };
35
+ };
36
+ };
37
+ TO: {
38
+ shadow: {
39
+ type: string;
40
+ fields: {
41
+ NUM: number;
42
+ };
43
+ };
44
+ };
45
+ A?: undefined;
46
+ B?: undefined;
47
+ NUM?: undefined;
48
+ DIVIDEND?: undefined;
49
+ DIVISOR?: undefined;
50
+ };
51
+ text?: undefined;
52
+ fields?: undefined;
53
+ } | {
54
+ kind: string;
55
+ type: string;
56
+ inputs: {
57
+ A: {
58
+ shadow: {
59
+ type: string;
60
+ fields: {
61
+ NUM: number;
62
+ };
63
+ };
64
+ };
65
+ B: {
66
+ shadow: {
67
+ type: string;
68
+ fields: {
69
+ NUM: number;
70
+ };
71
+ };
72
+ };
73
+ FROM?: undefined;
74
+ TO?: undefined;
75
+ NUM?: undefined;
76
+ DIVIDEND?: undefined;
77
+ DIVISOR?: undefined;
78
+ };
79
+ text?: undefined;
80
+ fields?: undefined;
81
+ } | {
82
+ kind: string;
83
+ type: string;
84
+ inputs: {
85
+ NUM: {
86
+ shadow: {
87
+ type: string;
88
+ fields: {
89
+ NUM: number;
90
+ };
91
+ };
92
+ };
93
+ FROM?: undefined;
94
+ TO?: undefined;
95
+ A?: undefined;
96
+ B?: undefined;
97
+ DIVIDEND?: undefined;
98
+ DIVISOR?: undefined;
99
+ };
100
+ text?: undefined;
101
+ fields?: undefined;
102
+ } | {
103
+ kind: string;
104
+ type: string;
105
+ inputs: {
106
+ DIVIDEND: {
107
+ shadow: {
108
+ type: string;
109
+ fields: {
110
+ NUM: number;
111
+ };
112
+ };
113
+ };
114
+ DIVISOR: {
115
+ shadow: {
116
+ type: string;
117
+ fields: {
118
+ NUM: number;
119
+ };
120
+ };
121
+ };
122
+ FROM?: undefined;
123
+ TO?: undefined;
124
+ A?: undefined;
125
+ B?: undefined;
126
+ NUM?: undefined;
127
+ };
128
+ text?: undefined;
129
+ fields?: undefined;
130
+ })[];
131
+ };
132
+ export default math;
@@ -0,0 +1,31 @@
1
+ declare const object: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ text: string;
8
+ type?: undefined;
9
+ inputs?: undefined;
10
+ } | {
11
+ kind: string;
12
+ type: string;
13
+ text?: undefined;
14
+ inputs?: undefined;
15
+ } | {
16
+ kind: string;
17
+ type: string;
18
+ inputs: {
19
+ KEY: {
20
+ shadow: {
21
+ type: string;
22
+ fields: {
23
+ TEXT: string;
24
+ };
25
+ };
26
+ };
27
+ };
28
+ text?: undefined;
29
+ })[];
30
+ };
31
+ export default object;
@@ -0,0 +1,173 @@
1
+ declare const text: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ text: string;
8
+ type?: undefined;
9
+ extraState?: undefined;
10
+ inputs?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ text?: undefined;
15
+ extraState?: undefined;
16
+ inputs?: undefined;
17
+ } | {
18
+ kind: string;
19
+ type: string;
20
+ extraState: {
21
+ itemCount: number;
22
+ };
23
+ text?: undefined;
24
+ inputs?: undefined;
25
+ } | {
26
+ kind: string;
27
+ type: string;
28
+ inputs: {
29
+ AT: {
30
+ shadow: {
31
+ type: string;
32
+ fields: {
33
+ NUM: number;
34
+ };
35
+ };
36
+ };
37
+ START?: undefined;
38
+ END?: undefined;
39
+ SUBSTR?: undefined;
40
+ TEXT?: undefined;
41
+ FROM?: undefined;
42
+ TO?: undefined;
43
+ DELIM?: undefined;
44
+ };
45
+ text?: undefined;
46
+ extraState?: undefined;
47
+ } | {
48
+ kind: string;
49
+ type: string;
50
+ inputs: {
51
+ START: {
52
+ shadow: {
53
+ type: string;
54
+ fields: {
55
+ NUM: number;
56
+ };
57
+ };
58
+ };
59
+ END: {
60
+ shadow: {
61
+ type: string;
62
+ fields: {
63
+ NUM: number;
64
+ };
65
+ };
66
+ };
67
+ AT?: undefined;
68
+ SUBSTR?: undefined;
69
+ TEXT?: undefined;
70
+ FROM?: undefined;
71
+ TO?: undefined;
72
+ DELIM?: undefined;
73
+ };
74
+ text?: undefined;
75
+ extraState?: undefined;
76
+ } | {
77
+ kind: string;
78
+ type: string;
79
+ inputs: {
80
+ SUBSTR: {
81
+ shadow: {
82
+ type: string;
83
+ fields: {
84
+ TEXT: string;
85
+ };
86
+ };
87
+ };
88
+ AT?: undefined;
89
+ START?: undefined;
90
+ END?: undefined;
91
+ TEXT?: undefined;
92
+ FROM?: undefined;
93
+ TO?: undefined;
94
+ DELIM?: undefined;
95
+ };
96
+ text?: undefined;
97
+ extraState?: undefined;
98
+ } | {
99
+ kind: string;
100
+ type: string;
101
+ inputs: {
102
+ TEXT: {
103
+ shadow: {
104
+ type: string;
105
+ fields: {
106
+ TEXT: string;
107
+ };
108
+ };
109
+ };
110
+ AT?: undefined;
111
+ START?: undefined;
112
+ END?: undefined;
113
+ SUBSTR?: undefined;
114
+ FROM?: undefined;
115
+ TO?: undefined;
116
+ DELIM?: undefined;
117
+ };
118
+ text?: undefined;
119
+ extraState?: undefined;
120
+ } | {
121
+ kind: string;
122
+ type: string;
123
+ inputs: {
124
+ FROM: {
125
+ shadow: {
126
+ type: string;
127
+ fields: {
128
+ TEXT: string;
129
+ };
130
+ };
131
+ };
132
+ TO: {
133
+ shadow: {
134
+ type: string;
135
+ fields: {
136
+ TEXT: string;
137
+ };
138
+ };
139
+ };
140
+ AT?: undefined;
141
+ START?: undefined;
142
+ END?: undefined;
143
+ SUBSTR?: undefined;
144
+ TEXT?: undefined;
145
+ DELIM?: undefined;
146
+ };
147
+ text?: undefined;
148
+ extraState?: undefined;
149
+ } | {
150
+ kind: string;
151
+ type: string;
152
+ inputs: {
153
+ DELIM: {
154
+ shadow: {
155
+ type: string;
156
+ fields: {
157
+ TEXT: string;
158
+ };
159
+ };
160
+ };
161
+ AT?: undefined;
162
+ START?: undefined;
163
+ END?: undefined;
164
+ SUBSTR?: undefined;
165
+ TEXT?: undefined;
166
+ FROM?: undefined;
167
+ TO?: undefined;
168
+ };
169
+ text?: undefined;
170
+ extraState?: undefined;
171
+ })[];
172
+ };
173
+ export default text;
@@ -0,0 +1,17 @@
1
+ import * as Blockly from 'blockly/core';
2
+ interface AppInfo {
3
+ id: string;
4
+ name: string;
5
+ sort?: number;
6
+ }
7
+ export declare function getAllAppInfos(): AppInfo[];
8
+ export declare function getAppInfo(appid: string): AppInfo | undefined;
9
+ export declare function genAppOpts(): Blockly.MenuOption[];
10
+ interface PageInfo {
11
+ id: string;
12
+ name: string;
13
+ }
14
+ export declare function getAllPageInfos(appid: string): PageInfo[];
15
+ export declare function getPageInfo(appid: string, pageid: string): PageInfo | undefined;
16
+ export declare function genPageOpts(appid: string): Blockly.MenuOption[];
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as Blockly from 'blockly/core';
2
+ interface ArgInfo {
3
+ id: string;
4
+ name: string;
5
+ type: string;
6
+ }
7
+ export declare function getAllArgInfos(): ArgInfo[];
8
+ export declare function getArgInfo(id: string): ArgInfo | undefined;
9
+ export declare function genArgOpts(): Blockly.MenuOption[];
10
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as Blockly from 'blockly/core';
2
+ import { ZEvent, ZMethod } from 'x-runtime-lib';
3
+ import { PropInfo } from '../common';
4
+ type Filter = 'event' | 'method';
5
+ interface ElementInfo {
6
+ key: string;
7
+ name: string;
8
+ }
9
+ export declare function getAllElementInfos(filter?: Filter): ElementInfo[];
10
+ export declare function getElementInfo(key: string): ElementInfo | undefined;
11
+ export declare function genElementOpts(filter?: Filter): Blockly.MenuOption[];
12
+ export declare function getAllEventInfos(elementKey: string): ZEvent[];
13
+ export declare function getEventInfo(elementKey: string, eventKey: string): ZEvent | undefined;
14
+ export declare function genEventOpts(elementKey: string): Blockly.MenuOption[];
15
+ export declare function getAllMethodInfos(elementKey: string): ZMethod[];
16
+ export declare function getMethodInfo(elementKey: string, methodKey: string): ZMethod | undefined;
17
+ export declare function genMethodOpts(elementKey: string): Blockly.MenuOption[];
18
+ export declare function getAllPropInfos(elementKey: string, modify?: boolean): PropInfo[];
19
+ export declare function getPropInfo(elementKey: string, propKeys: string): PropInfo | undefined;
20
+ export declare function genPropOpts(elementKey: string, modify?: boolean): Blockly.MenuOption[];
21
+ export {};
@@ -0,0 +1,23 @@
1
+ import * as Blockly from 'blockly/core';
2
+ import { ZEvent, ZMethod } from 'x-runtime-lib';
3
+ import { PropInfo } from '../common';
4
+ type Filter = 'event' | 'method';
5
+ interface NodeInfo {
6
+ id: string;
7
+ key: string;
8
+ alias: string;
9
+ sort?: number;
10
+ }
11
+ export declare function getAllNodeInfos(filter?: Filter): NodeInfo[];
12
+ export declare function getNodeInfo(id: string): NodeInfo | undefined;
13
+ export declare function genNodeOpts(filter?: Filter): Blockly.MenuOption[];
14
+ export declare function getAllEventInfos(nodeid: string): ZEvent[];
15
+ export declare function getEventInfo(nodeid: string, eventKey: string): ZEvent | undefined;
16
+ export declare function genEventOpts(nodeid: string): Blockly.MenuOption[];
17
+ export declare function getAllMethodInfos(nodeid: string): ZMethod[];
18
+ export declare function getMethodInfo(nodeid: string, methodKey: string): ZMethod | undefined;
19
+ export declare function genMethodOpts(nodeid: string): Blockly.MenuOption[];
20
+ export declare function getAllPropInfos(nodeid: string, modify?: boolean): PropInfo[];
21
+ export declare function getPropInfo(nodeid: string, propKeys: string): PropInfo | undefined;
22
+ export declare function genPropOpts(nodeid: string, modify?: boolean): Blockly.MenuOption[];
23
+ export {};
@@ -0,0 +1,24 @@
1
+ import * as Blockly from 'blockly/core';
2
+ interface SpaceInfo {
3
+ id: string;
4
+ name: string;
5
+ sort?: number;
6
+ }
7
+ export declare function getAllSpaceInfos(): SpaceInfo[];
8
+ export declare function getSpaceInfo(id: string): SpaceInfo | null;
9
+ interface DirInfo {
10
+ id: string;
11
+ name: string;
12
+ }
13
+ export declare function getAllDirInfos(spaceid: string): DirInfo[];
14
+ export declare function getDirInfo(spaceid: string, id: string): DirInfo | undefined;
15
+ interface AssetInfo {
16
+ id: string;
17
+ name: string;
18
+ }
19
+ export declare function getAllAssetInfos(spaceid: string, dirid: string): AssetInfo[];
20
+ export declare function getAssetInfo(spaceid: string, id: string): AssetInfo | null;
21
+ export declare function genSpaceOpts(): Blockly.MenuOption[];
22
+ export declare function genDirOpts(spaceid: string): Blockly.MenuOption[];
23
+ export declare function genAssetOpts(spaceid: string, dirid: string): Blockly.MenuOption[];
24
+ export {};
@@ -0,0 +1,17 @@
1
+ import * as Blockly from 'blockly/core';
2
+ interface SpaceInfo {
3
+ id: string;
4
+ name: string;
5
+ sort?: number;
6
+ }
7
+ export declare function getAllSpaceInfos(): SpaceInfo[];
8
+ export declare function getSpaceInfo(id: string): SpaceInfo | null;
9
+ export declare function genSpaceOpts(): Blockly.MenuOption[];
10
+ interface FuncInfo {
11
+ id: string;
12
+ name: string;
13
+ }
14
+ export declare function getAllFuncInfos(spaceid: string): FuncInfo[];
15
+ export declare function getFuncInfo(spaceid: string, id: string): FuncInfo | null;
16
+ export declare function genFuncOpts(spaceid: string): Blockly.MenuOption[];
17
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export * from './state';
3
+ export declare function ensureOpts(options: Blockly.MenuOption[]): Blockly.MenuOption[];
4
+ export declare function genParamShadowV1(param: {
5
+ type: 'string' | 'number' | 'boolean';
6
+ default: unknown;
7
+ }): Element;
8
+ export declare function spawnParameterBlockV1(workspace: Blockly.Workspace, key: string, name: string): Blockly.Block;
9
+ export declare function ensureParameterBlockV1s(scope: Blockly.Block, params: [string, string, string][]): void;