x-runtime-lib 0.5.28 → 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.
@@ -5,9 +5,6 @@ export type Device = {
5
5
  height: number;
6
6
  };
7
7
  export type Type = 'page' | 'comp';
8
- export interface Base {
9
- params: any[];
10
- }
11
8
  export interface Node {
12
9
  basic: {
13
10
  id: string;
@@ -27,9 +24,8 @@ export interface Code {
27
24
  script: string;
28
25
  }
29
26
  export interface Data {
30
- type: 'common';
27
+ type: string;
31
28
  version: string;
32
- base: Base;
33
29
  view: View;
34
30
  code: Code;
35
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.28",
4
+ "version": "0.5.30",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",