x-runtime-lib 0.5.27 → 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
@@ -6100,11 +6100,11 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
6100
6100
  name: "EVENT_SCREEN_SIZE_CHANGE",
6101
6101
  params: [
6102
6102
  {
6103
- key: "newScreenSize",
6103
+ key: "__newScreenSize__",
6104
6104
  name: "PARAM_NEW_SCREEN_SIZE"
6105
6105
  },
6106
6106
  {
6107
- key: "oldScreenSize",
6107
+ key: "__oldScreenSize__",
6108
6108
  name: "PARAM_OLD_SCREEN_SIZE"
6109
6109
  }
6110
6110
  ]
@@ -6114,7 +6114,7 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
6114
6114
  name: "EVENT_DARK_MODE_CHANGE",
6115
6115
  params: [
6116
6116
  {
6117
- key: "isDarkMode",
6117
+ key: "__isDarkMode__",
6118
6118
  name: "PARAM_IS_DARK_MODE"
6119
6119
  }
6120
6120
  ]
@@ -6742,7 +6742,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
6742
6742
  inputs: [],
6743
6743
  outputs: [
6744
6744
  {
6745
- key: "newNode",
6745
+ key: "__newNode__",
6746
6746
  name: "PARAM_NEW_NODE"
6747
6747
  }
6748
6748
  ]
@@ -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.27",
4
+ "version": "0.5.29",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",