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.
- package/dist/index.js +567 -711
- package/dist/types/element.d.ts +13 -28
- package/package.json +1 -1
package/dist/types/element.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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;
|