x-runtime-lib 0.5.28 → 0.5.29

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,10 +6779,18 @@ 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
+ ];
6782
6789
  export {
6783
6790
  Tl as duplicateNode,
6784
6791
  zc as duplicateNodes,
6785
6792
  Ne as elements,
6793
+ ef as fieldTypes,
6786
6794
  ui as genId,
6787
6795
  Yc as getNode,
6788
6796
  Bn as getPropDefault,
@@ -5,9 +5,52 @@ export type Device = {
5
5
  height: number;
6
6
  };
7
7
  export type Type = 'page' | 'comp';
8
- export interface Base {
9
- params: any[];
10
- }
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
+ };
11
54
  export interface Node {
12
55
  basic: {
13
56
  id: string;
@@ -27,9 +70,9 @@ export interface Code {
27
70
  script: string;
28
71
  }
29
72
  export interface Data {
30
- type: 'common';
73
+ type: string;
31
74
  version: string;
32
- base: Base;
75
+ settings: Settings;
33
76
  view: View;
34
77
  code: Code;
35
78
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.5.28",
4
+ "version": "0.5.29",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",