x-runtime-lib 0.7.30 → 0.7.32

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/index.js CHANGED
@@ -11,7 +11,8 @@ const ye = {}, Io = {
11
11
  outputs: [
12
12
  {
13
13
  key: "__newNode__",
14
- name: "PARAM_NEW_NODE"
14
+ name: "PARAM_NEW_NODE",
15
+ type: "string"
15
16
  }
16
17
  ]
17
18
  }, T = (i) => {
@@ -1008,7 +1009,14 @@ __triggerEvent__('globality', 'startup');
1008
1009
  function Oi(i) {
1009
1010
  i.appendCode("__destroy__();"), i.run();
1010
1011
  }
1011
- function Ja(i, e, t, r, n) {
1012
+ const Ja = [
1013
+ "string",
1014
+ "number",
1015
+ "boolean",
1016
+ "array",
1017
+ "object"
1018
+ ];
1019
+ function Xa(i, e, t, r, n) {
1012
1020
  let s = i;
1013
1021
  for (let u = 0; u < e.length; u++)
1014
1022
  if (s = s.children[e[u]], !s) {
@@ -1026,13 +1034,6 @@ function Ja(i, e, t, r, n) {
1026
1034
  children: {}
1027
1035
  }, s.children[t] = a);
1028
1036
  }
1029
- const Xa = [
1030
- "string",
1031
- "number",
1032
- "boolean",
1033
- "list",
1034
- "object"
1035
- ];
1036
1037
  function Ui() {
1037
1038
  return $o();
1038
1039
  }
@@ -3410,11 +3411,13 @@ const kn = {
3410
3411
  params: [
3411
3412
  {
3412
3413
  key: "__newScreenSize__",
3413
- name: "PARAM_NEW_SCREEN_SIZE"
3414
+ name: "PARAM_NEW_SCREEN_SIZE",
3415
+ type: "string"
3414
3416
  },
3415
3417
  {
3416
3418
  key: "__oldScreenSize__",
3417
- name: "PARAM_OLD_SCREEN_SIZE"
3419
+ name: "PARAM_OLD_SCREEN_SIZE",
3420
+ type: "string"
3418
3421
  }
3419
3422
  ]
3420
3423
  },
@@ -3424,7 +3427,8 @@ const kn = {
3424
3427
  params: [
3425
3428
  {
3426
3429
  key: "__isDarkMode__",
3427
- name: "PARAM_IS_DARK_MODE"
3430
+ name: "PARAM_IS_DARK_MODE",
3431
+ type: "boolean"
3428
3432
  }
3429
3433
  ]
3430
3434
  }
@@ -4807,19 +4811,27 @@ const Rn = {
4807
4811
  slots: [
4808
4812
  {
4809
4813
  key: "append",
4810
- name: "x-runtime-lib.append"
4814
+ name: "x-runtime-lib.append",
4815
+ props: [],
4816
+ methods: []
4811
4817
  },
4812
4818
  {
4813
4819
  key: "appendInner",
4814
- name: "x-runtime-lib.appendInner"
4820
+ name: "x-runtime-lib.appendInner",
4821
+ props: [],
4822
+ methods: []
4815
4823
  },
4816
4824
  {
4817
4825
  key: "prepend",
4818
- name: "x-runtime-lib.prepend"
4826
+ name: "x-runtime-lib.prepend",
4827
+ props: [],
4828
+ methods: []
4819
4829
  },
4820
4830
  {
4821
4831
  key: "prependInner",
4822
- name: "x-runtime-lib.prependInner"
4832
+ name: "x-runtime-lib.prependInner",
4833
+ props: [],
4834
+ methods: []
4823
4835
  }
4824
4836
  ],
4825
4837
  leaf: !0
@@ -7213,8 +7225,8 @@ export {
7213
7225
  zo as duplicateNode,
7214
7226
  Fa as duplicateNodes,
7215
7227
  ye as elements,
7216
- Ja as ensureContext,
7217
- Xa as fieldTypes,
7228
+ Xa as ensureContext,
7229
+ Ja as fieldTypes,
7218
7230
  Qa as fileInputV1,
7219
7231
  At as flexLayoutEntryV1,
7220
7232
  $e as flexLayoutV1,
@@ -5,3 +5,5 @@ export type Device = {
5
5
  height: number;
6
6
  };
7
7
  export type Type = 'page' | 'comp';
8
+ export declare const fieldTypes: readonly ["string", "number", "boolean", "array", "object"];
9
+ export type FieldType = (typeof fieldTypes)[number];
@@ -1,3 +1,4 @@
1
+ import { FieldType } from './basic';
1
2
  import { Node } from './data';
2
3
  export type ZItem = {
3
4
  title: string;
@@ -143,6 +144,7 @@ export type ZEvent = {
143
144
  params: {
144
145
  key: string;
145
146
  name: string;
147
+ type: FieldType;
146
148
  }[];
147
149
  };
148
150
  export type ZMethod = {
@@ -151,17 +153,36 @@ export type ZMethod = {
151
153
  inputs: {
152
154
  key: string;
153
155
  name: string;
154
- type?: 'string' | 'number' | 'boolean';
155
- default?: unknown;
156
+ type: FieldType;
156
157
  }[];
157
158
  outputs: {
158
159
  key: string;
159
160
  name: string;
161
+ type: FieldType;
160
162
  }[];
161
163
  };
162
164
  export type ZSlot = {
163
165
  key: string;
164
166
  name: string;
167
+ props: {
168
+ key: string;
169
+ name: string;
170
+ type: FieldType;
171
+ }[];
172
+ methods: {
173
+ key: string;
174
+ name: string;
175
+ inputs: {
176
+ key: string;
177
+ name: string;
178
+ type: FieldType;
179
+ }[];
180
+ outputs: {
181
+ key: string;
182
+ name: string;
183
+ type: FieldType;
184
+ }[];
185
+ }[];
165
186
  };
166
187
  export type ZElement = {
167
188
  key: string;
@@ -1,5 +1,4 @@
1
- export declare const fieldTypes: readonly ["string", "number", "boolean", "list", "object"];
2
- export type FieldType = (typeof fieldTypes)[number];
1
+ import { FieldType } from './basic';
3
2
  export type Field = {
4
3
  id: string;
5
4
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.7.30",
4
+ "version": "0.7.32",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",