x-runtime-lib 0.8.83 → 0.8.84

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.
@@ -145,13 +145,10 @@ export type ZProperty = ({
145
145
  array: true;
146
146
  defaultArray: string[];
147
147
  } & ZPropertySlotSelect);
148
- export type ZProperties = {
149
- [key: string]: ZProperty[];
150
- };
151
148
  export type ZEvent = {
152
149
  key: string;
153
150
  name: string;
154
- params: {
151
+ params?: {
155
152
  key: string;
156
153
  name: string;
157
154
  type: Type;
@@ -160,50 +157,38 @@ export type ZEvent = {
160
157
  export type ZMethod = {
161
158
  key: string;
162
159
  name: string;
163
- inputs: {
160
+ inputs?: {
164
161
  key: string;
165
162
  name: string;
166
163
  type: Type;
167
164
  }[];
168
- outputs: {
165
+ outputs?: {
169
166
  key: string;
170
167
  name: string;
171
168
  type: Type;
172
169
  }[];
173
170
  };
174
- export type ZSlotProp = {
175
- key: string;
176
- name: string;
177
- type: Type;
178
- };
179
- export type ZSlotMethod = {
171
+ export type ZSlot = {
180
172
  key: string;
181
173
  name: string;
182
- inputs: {
183
- key: string;
184
- name: string;
185
- type: Type;
186
- }[];
187
- outputs: {
174
+ properties?: {
188
175
  key: string;
189
176
  name: string;
190
177
  type: Type;
191
178
  }[];
192
- };
193
- export type ZSlot = {
194
- key: string;
195
- name: string;
196
- props: ZSlotProp[];
197
- methods: ZSlotMethod[];
179
+ events?: ZEvent[];
180
+ methods?: ZMethod[];
198
181
  };
199
182
  export type ZElement = {
200
183
  key: string;
201
184
  name: string;
202
185
  comp: any;
203
- properties: ZProperties;
204
- events: ZEvent[];
205
- methods: ZMethod[];
206
- slots: ZSlot[];
186
+ properties: {
187
+ [key: string]: ZProperty[];
188
+ };
189
+ events?: ZEvent[];
190
+ methods?: ZMethod[];
191
+ slots?: ZSlot[];
207
192
  leaf?: boolean;
208
193
  internal?: boolean;
209
194
  teleport?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.83",
4
+ "version": "0.8.84",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",