x-runtime-lib 0.5.29 → 0.5.30

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
@@ -6779,18 +6779,10 @@ const Uc = (n, o, l) => {
6779
6779
  async function Qc(n) {
6780
6780
  return (await Uc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-ell9fdk3.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-eeguv06v.js") }), `./locales/${n}/index.ts`, 4)).default;
6781
6781
  }
6782
- const ef = [
6783
- "string",
6784
- "number",
6785
- "boolean",
6786
- "list",
6787
- "object"
6788
- ];
6789
6782
  export {
6790
6783
  Tl as duplicateNode,
6791
6784
  zc as duplicateNodes,
6792
6785
  Ne as elements,
6793
- ef as fieldTypes,
6794
6786
  ui as genId,
6795
6787
  Yc as getNode,
6796
6788
  Bn as getPropDefault,
@@ -5,52 +5,6 @@ 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", "list", "object"];
9
- export type FieldType = (typeof fieldTypes)[number];
10
- export type Argument = {
11
- id: string;
12
- name: string;
13
- type: FieldType;
14
- desc: string;
15
- };
16
- export type Property = {
17
- id: string;
18
- name: string;
19
- type: FieldType;
20
- desc: string;
21
- };
22
- export type Method = {
23
- id: string;
24
- name: string;
25
- inputs: {
26
- id: string;
27
- name: string;
28
- type: FieldType;
29
- desc: string;
30
- }[];
31
- outputs: {
32
- id: string;
33
- name: string;
34
- type: FieldType;
35
- desc: string;
36
- }[];
37
- };
38
- export type Event = {
39
- id: string;
40
- name: string;
41
- params: {
42
- id: string;
43
- name: string;
44
- type: FieldType;
45
- desc: string;
46
- }[];
47
- };
48
- export type Settings = {
49
- arguments: Argument[];
50
- properties: Property[];
51
- methods: Method[];
52
- events: Event[];
53
- };
54
8
  export interface Node {
55
9
  basic: {
56
10
  id: string;
@@ -72,7 +26,6 @@ export interface Code {
72
26
  export interface Data {
73
27
  type: string;
74
28
  version: string;
75
- settings: Settings;
76
29
  view: View;
77
30
  code: Code;
78
31
  }
@@ -0,0 +1,33 @@
1
+ export declare const types: readonly ["string", "number", "boolean", "list", "object"];
2
+ export type Type = (typeof types)[number];
3
+ export type Field = {
4
+ id: string;
5
+ name: string;
6
+ type: Type;
7
+ desc: string;
8
+ };
9
+ export type PageMeta = {
10
+ arguments: Field[];
11
+ };
12
+ export type Property = {
13
+ id: string;
14
+ name: string;
15
+ type: Type;
16
+ desc: string;
17
+ };
18
+ export type Method = {
19
+ id: string;
20
+ name: string;
21
+ inputs: Field[];
22
+ outputs: Field[];
23
+ };
24
+ export type Event = {
25
+ id: string;
26
+ name: string;
27
+ params: Field[];
28
+ };
29
+ export type CompMeta = {
30
+ properties: Property[];
31
+ methods: Method[];
32
+ events: Event[];
33
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.5.29",
4
+ "version": "0.5.30",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",