@webstudio-is/sdk 0.274.5 → 0.276.0
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/lib/core-templates.js +1 -1
- package/lib/index.js +510 -18
- package/lib/runtime.js +290 -2
- package/lib/schema-org.js +5703 -0
- package/lib/schema.js +33 -8
- package/lib/types/core-metas.d.ts +1 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/types/input-json-schema.d.ts +15 -0
- package/lib/types/json-ld-utils.d.ts +3 -0
- package/lib/types/json-ld.d.ts +31 -0
- package/lib/types/runtime.d.ts +1 -0
- package/lib/types/schema/animation-schema.d.ts +1768 -50560
- package/lib/types/schema/assets.d.ts +126 -479
- package/lib/types/schema/breakpoints.d.ts +6 -54
- package/lib/types/schema/component-meta.d.ts +464 -11361
- package/lib/types/schema/data-sources.d.ts +38 -238
- package/lib/types/schema/deployment.d.ts +20 -31
- package/lib/types/schema/instances.d.ts +34 -165
- package/lib/types/schema/pages.d.ts +109 -1211
- package/lib/types/schema/prop-meta.d.ts +48 -435
- package/lib/types/schema/props.d.ts +937 -35745
- package/lib/types/schema/resources.d.ts +15 -136
- package/lib/types/schema/style-source-selections.d.ts +4 -16
- package/lib/types/schema/style-sources.d.ts +7 -49
- package/lib/types/schema/styles.d.ts +804 -5240
- package/lib/types/schema/webstudio.d.ts +1259 -23420
- package/lib/types/scope.d.ts +3 -1
- package/package.json +20 -11
|
@@ -1,303 +1,103 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const dataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
|
|
2
|
+
export declare const dataSourceVariableValue: z.ZodUnion<readonly [z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"number">;
|
|
4
4
|
value: z.ZodNumber;
|
|
5
|
-
},
|
|
6
|
-
value: number;
|
|
7
|
-
type: "number";
|
|
8
|
-
}, {
|
|
9
|
-
value: number;
|
|
10
|
-
type: "number";
|
|
11
|
-
}>, z.ZodObject<{
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
6
|
type: z.ZodLiteral<"string">;
|
|
13
7
|
value: z.ZodString;
|
|
14
|
-
},
|
|
15
|
-
value: string;
|
|
16
|
-
type: "string";
|
|
17
|
-
}, {
|
|
18
|
-
value: string;
|
|
19
|
-
type: "string";
|
|
20
|
-
}>, z.ZodObject<{
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
9
|
type: z.ZodLiteral<"boolean">;
|
|
22
10
|
value: z.ZodBoolean;
|
|
23
|
-
},
|
|
24
|
-
value: boolean;
|
|
25
|
-
type: "boolean";
|
|
26
|
-
}, {
|
|
27
|
-
value: boolean;
|
|
28
|
-
type: "boolean";
|
|
29
|
-
}>, z.ZodObject<{
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
12
|
type: z.ZodLiteral<"string[]">;
|
|
31
|
-
value: z.ZodArray<z.ZodString
|
|
32
|
-
},
|
|
33
|
-
value: string[];
|
|
34
|
-
type: "string[]";
|
|
35
|
-
}, {
|
|
36
|
-
value: string[];
|
|
37
|
-
type: "string[]";
|
|
38
|
-
}>, z.ZodObject<{
|
|
13
|
+
value: z.ZodArray<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
39
15
|
type: z.ZodLiteral<"json">;
|
|
40
|
-
value: z.ZodUnknown
|
|
41
|
-
},
|
|
16
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
17
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
42
18
|
type: "json";
|
|
43
|
-
value
|
|
19
|
+
value: {} | null;
|
|
44
20
|
}, {
|
|
45
21
|
type: "json";
|
|
46
22
|
value?: unknown;
|
|
47
|
-
}
|
|
48
|
-
export declare const dataSource: z.ZodUnion<[z.ZodObject<{
|
|
23
|
+
}>>]>;
|
|
24
|
+
export declare const dataSource: z.ZodUnion<readonly [z.ZodObject<{
|
|
49
25
|
type: z.ZodLiteral<"variable">;
|
|
50
26
|
id: z.ZodString;
|
|
51
27
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
52
28
|
name: z.ZodString;
|
|
53
|
-
value: z.ZodUnion<[z.ZodObject<{
|
|
29
|
+
value: z.ZodUnion<readonly [z.ZodObject<{
|
|
54
30
|
type: z.ZodLiteral<"number">;
|
|
55
31
|
value: z.ZodNumber;
|
|
56
|
-
},
|
|
57
|
-
value: number;
|
|
58
|
-
type: "number";
|
|
59
|
-
}, {
|
|
60
|
-
value: number;
|
|
61
|
-
type: "number";
|
|
62
|
-
}>, z.ZodObject<{
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
33
|
type: z.ZodLiteral<"string">;
|
|
64
34
|
value: z.ZodString;
|
|
65
|
-
},
|
|
66
|
-
value: string;
|
|
67
|
-
type: "string";
|
|
68
|
-
}, {
|
|
69
|
-
value: string;
|
|
70
|
-
type: "string";
|
|
71
|
-
}>, z.ZodObject<{
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
36
|
type: z.ZodLiteral<"boolean">;
|
|
73
37
|
value: z.ZodBoolean;
|
|
74
|
-
},
|
|
75
|
-
value: boolean;
|
|
76
|
-
type: "boolean";
|
|
77
|
-
}, {
|
|
78
|
-
value: boolean;
|
|
79
|
-
type: "boolean";
|
|
80
|
-
}>, z.ZodObject<{
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
39
|
type: z.ZodLiteral<"string[]">;
|
|
82
|
-
value: z.ZodArray<z.ZodString
|
|
83
|
-
},
|
|
84
|
-
value: string[];
|
|
85
|
-
type: "string[]";
|
|
86
|
-
}, {
|
|
87
|
-
value: string[];
|
|
88
|
-
type: "string[]";
|
|
89
|
-
}>, z.ZodObject<{
|
|
40
|
+
value: z.ZodArray<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
90
42
|
type: z.ZodLiteral<"json">;
|
|
91
|
-
value: z.ZodUnknown
|
|
92
|
-
},
|
|
43
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
44
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
93
45
|
type: "json";
|
|
94
|
-
value
|
|
46
|
+
value: {} | null;
|
|
95
47
|
}, {
|
|
96
48
|
type: "json";
|
|
97
49
|
value?: unknown;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
value: {
|
|
101
|
-
value: number;
|
|
102
|
-
type: "number";
|
|
103
|
-
} | {
|
|
104
|
-
value: string;
|
|
105
|
-
type: "string";
|
|
106
|
-
} | {
|
|
107
|
-
value: boolean;
|
|
108
|
-
type: "boolean";
|
|
109
|
-
} | {
|
|
110
|
-
value: string[];
|
|
111
|
-
type: "string[]";
|
|
112
|
-
} | {
|
|
113
|
-
type: "json";
|
|
114
|
-
value?: unknown;
|
|
115
|
-
};
|
|
116
|
-
type: "variable";
|
|
117
|
-
name: string;
|
|
118
|
-
id: string;
|
|
119
|
-
scopeInstanceId?: string | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
value: {
|
|
122
|
-
value: number;
|
|
123
|
-
type: "number";
|
|
124
|
-
} | {
|
|
125
|
-
value: string;
|
|
126
|
-
type: "string";
|
|
127
|
-
} | {
|
|
128
|
-
value: boolean;
|
|
129
|
-
type: "boolean";
|
|
130
|
-
} | {
|
|
131
|
-
value: string[];
|
|
132
|
-
type: "string[]";
|
|
133
|
-
} | {
|
|
134
|
-
type: "json";
|
|
135
|
-
value?: unknown;
|
|
136
|
-
};
|
|
137
|
-
type: "variable";
|
|
138
|
-
name: string;
|
|
139
|
-
id: string;
|
|
140
|
-
scopeInstanceId?: string | undefined;
|
|
141
|
-
}>, z.ZodObject<{
|
|
50
|
+
}>>]>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
142
52
|
type: z.ZodLiteral<"parameter">;
|
|
143
53
|
id: z.ZodString;
|
|
144
54
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
145
55
|
name: z.ZodString;
|
|
146
|
-
},
|
|
147
|
-
type: "parameter";
|
|
148
|
-
name: string;
|
|
149
|
-
id: string;
|
|
150
|
-
scopeInstanceId?: string | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
type: "parameter";
|
|
153
|
-
name: string;
|
|
154
|
-
id: string;
|
|
155
|
-
scopeInstanceId?: string | undefined;
|
|
156
|
-
}>, z.ZodObject<{
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
57
|
type: z.ZodLiteral<"resource">;
|
|
158
58
|
id: z.ZodString;
|
|
159
59
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
160
60
|
name: z.ZodString;
|
|
161
61
|
resourceId: z.ZodString;
|
|
162
|
-
},
|
|
163
|
-
type: "resource";
|
|
164
|
-
name: string;
|
|
165
|
-
id: string;
|
|
166
|
-
resourceId: string;
|
|
167
|
-
scopeInstanceId?: string | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
type: "resource";
|
|
170
|
-
name: string;
|
|
171
|
-
id: string;
|
|
172
|
-
resourceId: string;
|
|
173
|
-
scopeInstanceId?: string | undefined;
|
|
174
|
-
}>]>;
|
|
62
|
+
}, z.core.$strip>]>;
|
|
175
63
|
export type DataSource = z.infer<typeof dataSource>;
|
|
176
|
-
export declare const dataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
64
|
+
export declare const dataSources: z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
177
65
|
type: z.ZodLiteral<"variable">;
|
|
178
66
|
id: z.ZodString;
|
|
179
67
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
180
68
|
name: z.ZodString;
|
|
181
|
-
value: z.ZodUnion<[z.ZodObject<{
|
|
69
|
+
value: z.ZodUnion<readonly [z.ZodObject<{
|
|
182
70
|
type: z.ZodLiteral<"number">;
|
|
183
71
|
value: z.ZodNumber;
|
|
184
|
-
},
|
|
185
|
-
value: number;
|
|
186
|
-
type: "number";
|
|
187
|
-
}, {
|
|
188
|
-
value: number;
|
|
189
|
-
type: "number";
|
|
190
|
-
}>, z.ZodObject<{
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
73
|
type: z.ZodLiteral<"string">;
|
|
192
74
|
value: z.ZodString;
|
|
193
|
-
},
|
|
194
|
-
value: string;
|
|
195
|
-
type: "string";
|
|
196
|
-
}, {
|
|
197
|
-
value: string;
|
|
198
|
-
type: "string";
|
|
199
|
-
}>, z.ZodObject<{
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
200
76
|
type: z.ZodLiteral<"boolean">;
|
|
201
77
|
value: z.ZodBoolean;
|
|
202
|
-
},
|
|
203
|
-
value: boolean;
|
|
204
|
-
type: "boolean";
|
|
205
|
-
}, {
|
|
206
|
-
value: boolean;
|
|
207
|
-
type: "boolean";
|
|
208
|
-
}>, z.ZodObject<{
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
79
|
type: z.ZodLiteral<"string[]">;
|
|
210
|
-
value: z.ZodArray<z.ZodString
|
|
211
|
-
},
|
|
212
|
-
value: string[];
|
|
213
|
-
type: "string[]";
|
|
214
|
-
}, {
|
|
215
|
-
value: string[];
|
|
216
|
-
type: "string[]";
|
|
217
|
-
}>, z.ZodObject<{
|
|
80
|
+
value: z.ZodArray<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
218
82
|
type: z.ZodLiteral<"json">;
|
|
219
|
-
value: z.ZodUnknown
|
|
220
|
-
},
|
|
83
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
84
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
221
85
|
type: "json";
|
|
222
|
-
value
|
|
86
|
+
value: {} | null;
|
|
223
87
|
}, {
|
|
224
88
|
type: "json";
|
|
225
89
|
value?: unknown;
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
value: {
|
|
229
|
-
value: number;
|
|
230
|
-
type: "number";
|
|
231
|
-
} | {
|
|
232
|
-
value: string;
|
|
233
|
-
type: "string";
|
|
234
|
-
} | {
|
|
235
|
-
value: boolean;
|
|
236
|
-
type: "boolean";
|
|
237
|
-
} | {
|
|
238
|
-
value: string[];
|
|
239
|
-
type: "string[]";
|
|
240
|
-
} | {
|
|
241
|
-
type: "json";
|
|
242
|
-
value?: unknown;
|
|
243
|
-
};
|
|
244
|
-
type: "variable";
|
|
245
|
-
name: string;
|
|
246
|
-
id: string;
|
|
247
|
-
scopeInstanceId?: string | undefined;
|
|
248
|
-
}, {
|
|
249
|
-
value: {
|
|
250
|
-
value: number;
|
|
251
|
-
type: "number";
|
|
252
|
-
} | {
|
|
253
|
-
value: string;
|
|
254
|
-
type: "string";
|
|
255
|
-
} | {
|
|
256
|
-
value: boolean;
|
|
257
|
-
type: "boolean";
|
|
258
|
-
} | {
|
|
259
|
-
value: string[];
|
|
260
|
-
type: "string[]";
|
|
261
|
-
} | {
|
|
262
|
-
type: "json";
|
|
263
|
-
value?: unknown;
|
|
264
|
-
};
|
|
265
|
-
type: "variable";
|
|
266
|
-
name: string;
|
|
267
|
-
id: string;
|
|
268
|
-
scopeInstanceId?: string | undefined;
|
|
269
|
-
}>, z.ZodObject<{
|
|
90
|
+
}>>]>;
|
|
91
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
270
92
|
type: z.ZodLiteral<"parameter">;
|
|
271
93
|
id: z.ZodString;
|
|
272
94
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
273
95
|
name: z.ZodString;
|
|
274
|
-
},
|
|
275
|
-
type: "parameter";
|
|
276
|
-
name: string;
|
|
277
|
-
id: string;
|
|
278
|
-
scopeInstanceId?: string | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
type: "parameter";
|
|
281
|
-
name: string;
|
|
282
|
-
id: string;
|
|
283
|
-
scopeInstanceId?: string | undefined;
|
|
284
|
-
}>, z.ZodObject<{
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
97
|
type: z.ZodLiteral<"resource">;
|
|
286
98
|
id: z.ZodString;
|
|
287
99
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
288
100
|
name: z.ZodString;
|
|
289
101
|
resourceId: z.ZodString;
|
|
290
|
-
},
|
|
291
|
-
type: "resource";
|
|
292
|
-
name: string;
|
|
293
|
-
id: string;
|
|
294
|
-
resourceId: string;
|
|
295
|
-
scopeInstanceId?: string | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
type: "resource";
|
|
298
|
-
name: string;
|
|
299
|
-
id: string;
|
|
300
|
-
resourceId: string;
|
|
301
|
-
scopeInstanceId?: string | undefined;
|
|
302
|
-
}>]>>;
|
|
102
|
+
}, z.core.$strip>]>>;
|
|
303
103
|
export type DataSources = z.infer<typeof dataSources>;
|
|
@@ -1,41 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const templates: z.ZodEnum<
|
|
2
|
+
export declare const templates: z.ZodEnum<{
|
|
3
|
+
docker: "docker";
|
|
4
|
+
netlify: "netlify";
|
|
5
|
+
ssg: "ssg";
|
|
6
|
+
"ssg-netlify": "ssg-netlify";
|
|
7
|
+
"ssg-vercel": "ssg-vercel";
|
|
8
|
+
vercel: "vercel";
|
|
9
|
+
}>;
|
|
3
10
|
export type Templates = z.infer<typeof templates>;
|
|
4
|
-
export declare const deployment: z.ZodUnion<[z.ZodObject<{
|
|
11
|
+
export declare const deployment: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
12
|
destination: z.ZodLiteral<"static">;
|
|
6
13
|
name: z.ZodString;
|
|
7
14
|
assetsDomain: z.ZodString;
|
|
8
|
-
templates: z.ZodArray<z.ZodEnum<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
assetsDomain: string;
|
|
18
|
-
templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
|
|
19
|
-
}>, z.ZodObject<{
|
|
15
|
+
templates: z.ZodArray<z.ZodEnum<{
|
|
16
|
+
docker: "docker";
|
|
17
|
+
netlify: "netlify";
|
|
18
|
+
ssg: "ssg";
|
|
19
|
+
"ssg-netlify": "ssg-netlify";
|
|
20
|
+
"ssg-vercel": "ssg-vercel";
|
|
21
|
+
vercel: "vercel";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
24
|
destination: z.ZodOptional<z.ZodLiteral<"saas">>;
|
|
21
|
-
domains: z.ZodArray<z.ZodString
|
|
25
|
+
domains: z.ZodArray<z.ZodString>;
|
|
22
26
|
assetsDomain: z.ZodOptional<z.ZodString>;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated This field is deprecated, use `domains` instead.
|
|
25
|
-
*/
|
|
26
27
|
projectDomain: z.ZodOptional<z.ZodString>;
|
|
27
28
|
excludeWstdDomainFromSearch: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
},
|
|
29
|
-
domains: string[];
|
|
30
|
-
destination?: "saas" | undefined;
|
|
31
|
-
assetsDomain?: string | undefined;
|
|
32
|
-
projectDomain?: string | undefined;
|
|
33
|
-
excludeWstdDomainFromSearch?: boolean | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
domains: string[];
|
|
36
|
-
destination?: "saas" | undefined;
|
|
37
|
-
assetsDomain?: string | undefined;
|
|
38
|
-
projectDomain?: string | undefined;
|
|
39
|
-
excludeWstdDomainFromSearch?: boolean | undefined;
|
|
40
|
-
}>]>;
|
|
29
|
+
}, z.core.$strip>]>;
|
|
41
30
|
export type Deployment = z.infer<typeof deployment>;
|
|
@@ -1,143 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const textChildValue: z.ZodString;
|
|
2
3
|
export declare const textChild: z.ZodObject<{
|
|
3
4
|
type: z.ZodLiteral<"text">;
|
|
4
5
|
value: z.ZodString;
|
|
5
6
|
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
},
|
|
7
|
-
value: string;
|
|
8
|
-
type: "text";
|
|
9
|
-
placeholder?: boolean | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
value: string;
|
|
12
|
-
type: "text";
|
|
13
|
-
placeholder?: boolean | undefined;
|
|
14
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
15
8
|
export type TextChild = z.infer<typeof textChild>;
|
|
9
|
+
export declare const instanceComponent: z.ZodString;
|
|
10
|
+
export declare const instanceTag: z.ZodString;
|
|
11
|
+
export declare const instanceAttributes: z.ZodObject<{
|
|
12
|
+
component: z.ZodString;
|
|
13
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
14
|
+
label: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const instanceCreateInput: z.ZodObject<{
|
|
17
|
+
component: z.ZodOptional<z.ZodString>;
|
|
18
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
19
|
+
label: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const instanceFilterInput: z.ZodObject<{
|
|
22
|
+
component: z.ZodOptional<z.ZodString>;
|
|
23
|
+
tag: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
16
25
|
export declare const idChild: z.ZodObject<{
|
|
17
26
|
type: z.ZodLiteral<"id">;
|
|
18
27
|
value: z.ZodString;
|
|
19
|
-
},
|
|
20
|
-
value: string;
|
|
21
|
-
type: "id";
|
|
22
|
-
}, {
|
|
23
|
-
value: string;
|
|
24
|
-
type: "id";
|
|
25
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
26
29
|
export type IdChild = z.infer<typeof idChild>;
|
|
27
30
|
export declare const expressionChild: z.ZodObject<{
|
|
28
31
|
type: z.ZodLiteral<"expression">;
|
|
29
32
|
value: z.ZodString;
|
|
30
|
-
},
|
|
31
|
-
value: string;
|
|
32
|
-
type: "expression";
|
|
33
|
-
}, {
|
|
34
|
-
value: string;
|
|
35
|
-
type: "expression";
|
|
36
|
-
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
37
34
|
export type ExpressionChild = z.infer<typeof expressionChild>;
|
|
38
|
-
export declare const instanceChild: z.ZodUnion<[z.ZodObject<{
|
|
35
|
+
export declare const instanceChild: z.ZodUnion<readonly [z.ZodObject<{
|
|
39
36
|
type: z.ZodLiteral<"id">;
|
|
40
37
|
value: z.ZodString;
|
|
41
|
-
},
|
|
42
|
-
value: string;
|
|
43
|
-
type: "id";
|
|
44
|
-
}, {
|
|
45
|
-
value: string;
|
|
46
|
-
type: "id";
|
|
47
|
-
}>, z.ZodObject<{
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
39
|
type: z.ZodLiteral<"text">;
|
|
49
40
|
value: z.ZodString;
|
|
50
41
|
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
},
|
|
52
|
-
value: string;
|
|
53
|
-
type: "text";
|
|
54
|
-
placeholder?: boolean | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
value: string;
|
|
57
|
-
type: "text";
|
|
58
|
-
placeholder?: boolean | undefined;
|
|
59
|
-
}>, z.ZodObject<{
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
43
|
type: z.ZodLiteral<"expression">;
|
|
61
44
|
value: z.ZodString;
|
|
62
|
-
},
|
|
63
|
-
value: string;
|
|
64
|
-
type: "expression";
|
|
65
|
-
}, {
|
|
66
|
-
value: string;
|
|
67
|
-
type: "expression";
|
|
68
|
-
}>]>;
|
|
45
|
+
}, z.core.$strip>]>;
|
|
69
46
|
export declare const instance: z.ZodObject<{
|
|
70
47
|
type: z.ZodLiteral<"instance">;
|
|
71
48
|
id: z.ZodString;
|
|
72
49
|
component: z.ZodString;
|
|
73
50
|
tag: z.ZodOptional<z.ZodString>;
|
|
74
51
|
label: z.ZodOptional<z.ZodString>;
|
|
75
|
-
children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
52
|
+
children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
76
53
|
type: z.ZodLiteral<"id">;
|
|
77
54
|
value: z.ZodString;
|
|
78
|
-
},
|
|
79
|
-
value: string;
|
|
80
|
-
type: "id";
|
|
81
|
-
}, {
|
|
82
|
-
value: string;
|
|
83
|
-
type: "id";
|
|
84
|
-
}>, z.ZodObject<{
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
56
|
type: z.ZodLiteral<"text">;
|
|
86
57
|
value: z.ZodString;
|
|
87
58
|
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
},
|
|
89
|
-
value: string;
|
|
90
|
-
type: "text";
|
|
91
|
-
placeholder?: boolean | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
value: string;
|
|
94
|
-
type: "text";
|
|
95
|
-
placeholder?: boolean | undefined;
|
|
96
|
-
}>, z.ZodObject<{
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
60
|
type: z.ZodLiteral<"expression">;
|
|
98
61
|
value: z.ZodString;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
type: "expression";
|
|
102
|
-
}, {
|
|
103
|
-
value: string;
|
|
104
|
-
type: "expression";
|
|
105
|
-
}>]>, "many">;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
type: "instance";
|
|
108
|
-
id: string;
|
|
109
|
-
children: ({
|
|
110
|
-
value: string;
|
|
111
|
-
type: "text";
|
|
112
|
-
placeholder?: boolean | undefined;
|
|
113
|
-
} | {
|
|
114
|
-
value: string;
|
|
115
|
-
type: "id";
|
|
116
|
-
} | {
|
|
117
|
-
value: string;
|
|
118
|
-
type: "expression";
|
|
119
|
-
})[];
|
|
120
|
-
component: string;
|
|
121
|
-
tag?: string | undefined;
|
|
122
|
-
label?: string | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
type: "instance";
|
|
125
|
-
id: string;
|
|
126
|
-
children: ({
|
|
127
|
-
value: string;
|
|
128
|
-
type: "text";
|
|
129
|
-
placeholder?: boolean | undefined;
|
|
130
|
-
} | {
|
|
131
|
-
value: string;
|
|
132
|
-
type: "id";
|
|
133
|
-
} | {
|
|
134
|
-
value: string;
|
|
135
|
-
type: "expression";
|
|
136
|
-
})[];
|
|
137
|
-
component: string;
|
|
138
|
-
tag?: string | undefined;
|
|
139
|
-
label?: string | undefined;
|
|
140
|
-
}>;
|
|
62
|
+
}, z.core.$strip>]>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
141
64
|
export type Instance = z.infer<typeof instance>;
|
|
142
65
|
export declare const instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
143
66
|
type: z.ZodLiteral<"instance">;
|
|
@@ -145,70 +68,16 @@ export declare const instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
145
68
|
component: z.ZodString;
|
|
146
69
|
tag: z.ZodOptional<z.ZodString>;
|
|
147
70
|
label: z.ZodOptional<z.ZodString>;
|
|
148
|
-
children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
71
|
+
children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
149
72
|
type: z.ZodLiteral<"id">;
|
|
150
73
|
value: z.ZodString;
|
|
151
|
-
},
|
|
152
|
-
value: string;
|
|
153
|
-
type: "id";
|
|
154
|
-
}, {
|
|
155
|
-
value: string;
|
|
156
|
-
type: "id";
|
|
157
|
-
}>, z.ZodObject<{
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
75
|
type: z.ZodLiteral<"text">;
|
|
159
76
|
value: z.ZodString;
|
|
160
77
|
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
},
|
|
162
|
-
value: string;
|
|
163
|
-
type: "text";
|
|
164
|
-
placeholder?: boolean | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
value: string;
|
|
167
|
-
type: "text";
|
|
168
|
-
placeholder?: boolean | undefined;
|
|
169
|
-
}>, z.ZodObject<{
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
79
|
type: z.ZodLiteral<"expression">;
|
|
171
80
|
value: z.ZodString;
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
type: "expression";
|
|
175
|
-
}, {
|
|
176
|
-
value: string;
|
|
177
|
-
type: "expression";
|
|
178
|
-
}>]>, "many">;
|
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
type: "instance";
|
|
181
|
-
id: string;
|
|
182
|
-
children: ({
|
|
183
|
-
value: string;
|
|
184
|
-
type: "text";
|
|
185
|
-
placeholder?: boolean | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
value: string;
|
|
188
|
-
type: "id";
|
|
189
|
-
} | {
|
|
190
|
-
value: string;
|
|
191
|
-
type: "expression";
|
|
192
|
-
})[];
|
|
193
|
-
component: string;
|
|
194
|
-
tag?: string | undefined;
|
|
195
|
-
label?: string | undefined;
|
|
196
|
-
}, {
|
|
197
|
-
type: "instance";
|
|
198
|
-
id: string;
|
|
199
|
-
children: ({
|
|
200
|
-
value: string;
|
|
201
|
-
type: "text";
|
|
202
|
-
placeholder?: boolean | undefined;
|
|
203
|
-
} | {
|
|
204
|
-
value: string;
|
|
205
|
-
type: "id";
|
|
206
|
-
} | {
|
|
207
|
-
value: string;
|
|
208
|
-
type: "expression";
|
|
209
|
-
})[];
|
|
210
|
-
component: string;
|
|
211
|
-
tag?: string | undefined;
|
|
212
|
-
label?: string | undefined;
|
|
213
|
-
}>>;
|
|
81
|
+
}, z.core.$strip>]>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
214
83
|
export type Instances = z.infer<typeof instances>;
|