x-runtime-lib 0.8.85 → 0.8.87

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.
@@ -150,27 +150,23 @@ export type ZProperty = ({
150
150
  array: true;
151
151
  defaultArray: string[];
152
152
  } & ZPropertySlotSelect);
153
- export type ZEvent = {
154
- key: string;
155
- name: string;
156
- params?: ZField[];
157
- };
158
153
  export type ZMethod = {
159
154
  key: string;
160
155
  name: string;
161
156
  inputs?: ZField[];
162
157
  outputs?: ZField[];
163
158
  };
159
+ export type ZEvent = {
160
+ key: string;
161
+ name: string;
162
+ params?: ZField[];
163
+ };
164
164
  export type ZSlot = {
165
165
  key: string;
166
166
  name: string;
167
- properties?: {
168
- key: string;
169
- name: string;
170
- type: Type;
171
- }[];
172
- events?: ZEvent[];
167
+ properties?: ZField[];
173
168
  methods?: ZMethod[];
169
+ events?: ZEvent[];
174
170
  };
175
171
  export type ZElement = {
176
172
  key: string;
@@ -179,8 +175,8 @@ export type ZElement = {
179
175
  properties: {
180
176
  [key: string]: ZProperty[];
181
177
  };
182
- events?: ZEvent[];
183
178
  methods?: ZMethod[];
179
+ events?: ZEvent[];
184
180
  slots?: ZSlot[];
185
181
  leaf?: boolean;
186
182
  internal?: boolean;
@@ -3,48 +3,35 @@ export type Field = {
3
3
  id: string;
4
4
  name: string;
5
5
  type: Type;
6
- desc: string;
6
+ desc?: string;
7
7
  };
8
- export type State = {
8
+ export type Method = {
9
9
  id: string;
10
10
  name: string;
11
- type: Type;
12
- desc: string;
11
+ inputs?: Field[];
12
+ outputs?: Field[];
13
+ desc?: string;
13
14
  };
14
- export type Argument = {
15
+ export type Event = {
15
16
  id: string;
16
17
  name: string;
17
- type: Type;
18
- desc: string;
18
+ params?: Field[];
19
+ desc?: string;
19
20
  };
20
21
  export type PageMeta = {
21
22
  version: string;
22
- arguments: Argument[];
23
- states: State[];
24
- };
25
- export type Property = {
26
- id: string;
27
- name: string;
28
- type: Type;
29
- desc: string;
30
- };
31
- export type Method = {
32
- id: string;
33
- name: string;
34
- inputs: Field[];
35
- outputs: Field[];
36
- desc: string;
37
- };
38
- export type Event = {
39
- id: string;
40
- name: string;
41
- params: Field[];
42
- desc: string;
23
+ arguments?: Field[];
24
+ states?: Field[];
43
25
  };
44
26
  export type CompMeta = {
45
27
  version: string;
46
- properties: Property[];
47
- methods: Method[];
48
- events: Event[];
49
- states: State[];
28
+ properties?: Field[];
29
+ methods?: Method[];
30
+ events?: Event[];
31
+ states?: Field[];
32
+ slots?: {
33
+ properties?: Field[];
34
+ methods?: Method[];
35
+ events?: Event[];
36
+ }[];
50
37
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.85",
4
+ "version": "0.8.87",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",