@webstudio-is/sdk 0.0.0-5844e28 → 0.0.0-73cd6ea

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.
@@ -1,5 +1,29 @@
1
1
  import { z } from "zod";
2
2
  export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
3
+ control: z.ZodLiteral<"tag">;
4
+ type: z.ZodLiteral<"string">;
5
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
6
+ options: z.ZodArray<z.ZodString, "many">;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ required: z.ZodBoolean;
10
+ }, "strip", z.ZodTypeAny, {
11
+ options: string[];
12
+ type: "string";
13
+ required: boolean;
14
+ control: "tag";
15
+ label?: string | undefined;
16
+ defaultValue?: undefined;
17
+ description?: string | undefined;
18
+ }, {
19
+ options: string[];
20
+ type: "string";
21
+ required: boolean;
22
+ control: "tag";
23
+ label?: string | undefined;
24
+ defaultValue?: undefined;
25
+ description?: string | undefined;
26
+ }>, z.ZodObject<{
3
27
  control: z.ZodLiteral<"number">;
4
28
  type: z.ZodLiteral<"number">;
5
29
  defaultValue: z.ZodOptional<z.ZodNumber>;
@@ -10,15 +34,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
10
34
  type: "number";
11
35
  required: boolean;
12
36
  control: "number";
13
- defaultValue?: number | undefined;
14
37
  label?: string | undefined;
38
+ defaultValue?: number | undefined;
15
39
  description?: string | undefined;
16
40
  }, {
17
41
  type: "number";
18
42
  required: boolean;
19
43
  control: "number";
20
- defaultValue?: number | undefined;
21
44
  label?: string | undefined;
45
+ defaultValue?: number | undefined;
22
46
  description?: string | undefined;
23
47
  }>, z.ZodObject<{
24
48
  control: z.ZodLiteral<"range">;
@@ -31,15 +55,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
31
55
  type: "number";
32
56
  required: boolean;
33
57
  control: "range";
34
- defaultValue?: number | undefined;
35
58
  label?: string | undefined;
59
+ defaultValue?: number | undefined;
36
60
  description?: string | undefined;
37
61
  }, {
38
62
  type: "number";
39
63
  required: boolean;
40
64
  control: "range";
41
- defaultValue?: number | undefined;
42
65
  label?: string | undefined;
66
+ defaultValue?: number | undefined;
43
67
  description?: string | undefined;
44
68
  }>, z.ZodObject<{
45
69
  control: z.ZodLiteral<"text">;
@@ -57,17 +81,38 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
57
81
  type: "string";
58
82
  required: boolean;
59
83
  control: "text";
60
- defaultValue?: string | undefined;
61
- rows?: number | undefined;
62
84
  label?: string | undefined;
85
+ defaultValue?: string | undefined;
63
86
  description?: string | undefined;
87
+ rows?: number | undefined;
64
88
  }, {
65
89
  type: "string";
66
90
  required: boolean;
67
91
  control: "text";
92
+ label?: string | undefined;
68
93
  defaultValue?: string | undefined;
94
+ description?: string | undefined;
69
95
  rows?: number | undefined;
96
+ }>, z.ZodObject<{
97
+ control: z.ZodLiteral<"resource">;
98
+ type: z.ZodLiteral<"resource">;
99
+ defaultValue: z.ZodOptional<z.ZodString>;
100
+ label: z.ZodOptional<z.ZodString>;
101
+ description: z.ZodOptional<z.ZodString>;
102
+ required: z.ZodBoolean;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: "resource";
105
+ required: boolean;
106
+ control: "resource";
107
+ label?: string | undefined;
108
+ defaultValue?: string | undefined;
109
+ description?: string | undefined;
110
+ }, {
111
+ type: "resource";
112
+ required: boolean;
113
+ control: "resource";
70
114
  label?: string | undefined;
115
+ defaultValue?: string | undefined;
71
116
  description?: string | undefined;
72
117
  }>, z.ZodObject<{
73
118
  control: z.ZodLiteral<"code">;
@@ -82,16 +127,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
82
127
  required: boolean;
83
128
  control: "code";
84
129
  language: "html" | "markdown";
85
- defaultValue?: string | undefined;
86
130
  label?: string | undefined;
131
+ defaultValue?: string | undefined;
87
132
  description?: string | undefined;
88
133
  }, {
89
134
  type: "string";
90
135
  required: boolean;
91
136
  control: "code";
92
137
  language: "html" | "markdown";
93
- defaultValue?: string | undefined;
94
138
  label?: string | undefined;
139
+ defaultValue?: string | undefined;
95
140
  description?: string | undefined;
96
141
  }>, z.ZodObject<{
97
142
  control: z.ZodLiteral<"codetext">;
@@ -104,15 +149,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
104
149
  type: "string";
105
150
  required: boolean;
106
151
  control: "codetext";
107
- defaultValue?: string | undefined;
108
152
  label?: string | undefined;
153
+ defaultValue?: string | undefined;
109
154
  description?: string | undefined;
110
155
  }, {
111
156
  type: "string";
112
157
  required: boolean;
113
158
  control: "codetext";
114
- defaultValue?: string | undefined;
115
159
  label?: string | undefined;
160
+ defaultValue?: string | undefined;
116
161
  description?: string | undefined;
117
162
  }>, z.ZodObject<{
118
163
  control: z.ZodLiteral<"color">;
@@ -125,15 +170,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
125
170
  type: "string";
126
171
  required: boolean;
127
172
  control: "color";
128
- defaultValue?: string | undefined;
129
173
  label?: string | undefined;
174
+ defaultValue?: string | undefined;
130
175
  description?: string | undefined;
131
176
  }, {
132
177
  type: "string";
133
178
  required: boolean;
134
179
  control: "color";
135
- defaultValue?: string | undefined;
136
180
  label?: string | undefined;
181
+ defaultValue?: string | undefined;
137
182
  description?: string | undefined;
138
183
  }>, z.ZodObject<{
139
184
  control: z.ZodLiteral<"boolean">;
@@ -146,15 +191,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
146
191
  type: "boolean";
147
192
  required: boolean;
148
193
  control: "boolean";
149
- defaultValue?: boolean | undefined;
150
194
  label?: string | undefined;
195
+ defaultValue?: boolean | undefined;
151
196
  description?: string | undefined;
152
197
  }, {
153
198
  type: "boolean";
154
199
  required: boolean;
155
200
  control: "boolean";
156
- defaultValue?: boolean | undefined;
157
201
  label?: string | undefined;
202
+ defaultValue?: boolean | undefined;
158
203
  description?: string | undefined;
159
204
  }>, z.ZodObject<{
160
205
  control: z.ZodLiteral<"radio">;
@@ -169,16 +214,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
169
214
  type: "string";
170
215
  required: boolean;
171
216
  control: "radio";
172
- defaultValue?: string | undefined;
173
217
  label?: string | undefined;
218
+ defaultValue?: string | undefined;
174
219
  description?: string | undefined;
175
220
  }, {
176
221
  options: string[];
177
222
  type: "string";
178
223
  required: boolean;
179
224
  control: "radio";
180
- defaultValue?: string | undefined;
181
225
  label?: string | undefined;
226
+ defaultValue?: string | undefined;
182
227
  description?: string | undefined;
183
228
  }>, z.ZodObject<{
184
229
  control: z.ZodLiteral<"inline-radio">;
@@ -193,16 +238,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
193
238
  type: "string";
194
239
  required: boolean;
195
240
  control: "inline-radio";
196
- defaultValue?: string | undefined;
197
241
  label?: string | undefined;
242
+ defaultValue?: string | undefined;
198
243
  description?: string | undefined;
199
244
  }, {
200
245
  options: string[];
201
246
  type: "string";
202
247
  required: boolean;
203
248
  control: "inline-radio";
204
- defaultValue?: string | undefined;
205
249
  label?: string | undefined;
250
+ defaultValue?: string | undefined;
206
251
  description?: string | undefined;
207
252
  }>, z.ZodObject<{
208
253
  control: z.ZodLiteral<"select">;
@@ -217,16 +262,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
217
262
  type: "string";
218
263
  required: boolean;
219
264
  control: "select";
220
- defaultValue?: string | undefined;
221
265
  label?: string | undefined;
266
+ defaultValue?: string | undefined;
222
267
  description?: string | undefined;
223
268
  }, {
224
269
  options: string[];
225
270
  type: "string";
226
271
  required: boolean;
227
272
  control: "select";
228
- defaultValue?: string | undefined;
229
273
  label?: string | undefined;
274
+ defaultValue?: string | undefined;
230
275
  description?: string | undefined;
231
276
  }>, z.ZodObject<{
232
277
  control: z.ZodLiteral<"multi-select">;
@@ -241,16 +286,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
241
286
  type: "string[]";
242
287
  required: boolean;
243
288
  control: "multi-select";
244
- defaultValue?: string[] | undefined;
245
289
  label?: string | undefined;
290
+ defaultValue?: string[] | undefined;
246
291
  description?: string | undefined;
247
292
  }, {
248
293
  options: string[];
249
294
  type: "string[]";
250
295
  required: boolean;
251
296
  control: "multi-select";
252
- defaultValue?: string[] | undefined;
253
297
  label?: string | undefined;
298
+ defaultValue?: string[] | undefined;
254
299
  description?: string | undefined;
255
300
  }>, z.ZodObject<{
256
301
  control: z.ZodLiteral<"check">;
@@ -265,16 +310,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
265
310
  type: "string[]";
266
311
  required: boolean;
267
312
  control: "check";
268
- defaultValue?: string[] | undefined;
269
313
  label?: string | undefined;
314
+ defaultValue?: string[] | undefined;
270
315
  description?: string | undefined;
271
316
  }, {
272
317
  options: string[];
273
318
  type: "string[]";
274
319
  required: boolean;
275
320
  control: "check";
276
- defaultValue?: string[] | undefined;
277
321
  label?: string | undefined;
322
+ defaultValue?: string[] | undefined;
278
323
  description?: string | undefined;
279
324
  }>, z.ZodObject<{
280
325
  control: z.ZodLiteral<"inline-check">;
@@ -289,16 +334,16 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
289
334
  type: "string[]";
290
335
  required: boolean;
291
336
  control: "inline-check";
292
- defaultValue?: string[] | undefined;
293
337
  label?: string | undefined;
338
+ defaultValue?: string[] | undefined;
294
339
  description?: string | undefined;
295
340
  }, {
296
341
  options: string[];
297
342
  type: "string[]";
298
343
  required: boolean;
299
344
  control: "inline-check";
300
- defaultValue?: string[] | undefined;
301
345
  label?: string | undefined;
346
+ defaultValue?: string[] | undefined;
302
347
  description?: string | undefined;
303
348
  }>, z.ZodObject<{
304
349
  control: z.ZodLiteral<"file">;
@@ -313,18 +358,18 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
313
358
  type: "string";
314
359
  required: boolean;
315
360
  control: "file";
316
- defaultValue?: string | undefined;
317
- accept?: string | undefined;
318
361
  label?: string | undefined;
362
+ defaultValue?: string | undefined;
319
363
  description?: string | undefined;
364
+ accept?: string | undefined;
320
365
  }, {
321
366
  type: "string";
322
367
  required: boolean;
323
368
  control: "file";
324
- defaultValue?: string | undefined;
325
- accept?: string | undefined;
326
369
  label?: string | undefined;
370
+ defaultValue?: string | undefined;
327
371
  description?: string | undefined;
372
+ accept?: string | undefined;
328
373
  }>, z.ZodObject<{
329
374
  control: z.ZodLiteral<"url">;
330
375
  type: z.ZodLiteral<"string">;
@@ -336,15 +381,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
336
381
  type: "string";
337
382
  required: boolean;
338
383
  control: "url";
339
- defaultValue?: string | undefined;
340
384
  label?: string | undefined;
385
+ defaultValue?: string | undefined;
341
386
  description?: string | undefined;
342
387
  }, {
343
388
  type: "string";
344
389
  required: boolean;
345
390
  control: "url";
346
- defaultValue?: string | undefined;
347
391
  label?: string | undefined;
392
+ defaultValue?: string | undefined;
348
393
  description?: string | undefined;
349
394
  }>, z.ZodObject<{
350
395
  control: z.ZodLiteral<"json">;
@@ -357,15 +402,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
357
402
  type: "json";
358
403
  required: boolean;
359
404
  control: "json";
360
- defaultValue?: unknown;
361
405
  label?: string | undefined;
406
+ defaultValue?: unknown;
362
407
  description?: string | undefined;
363
408
  }, {
364
409
  type: "json";
365
410
  required: boolean;
366
411
  control: "json";
367
- defaultValue?: unknown;
368
412
  label?: string | undefined;
413
+ defaultValue?: unknown;
369
414
  description?: string | undefined;
370
415
  }>, z.ZodObject<{
371
416
  control: z.ZodLiteral<"date">;
@@ -378,15 +423,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
378
423
  type: "string";
379
424
  required: boolean;
380
425
  control: "date";
381
- defaultValue?: string | undefined;
382
426
  label?: string | undefined;
427
+ defaultValue?: string | undefined;
383
428
  description?: string | undefined;
384
429
  }, {
385
430
  type: "string";
386
431
  required: boolean;
387
432
  control: "date";
388
- defaultValue?: string | undefined;
389
433
  label?: string | undefined;
434
+ defaultValue?: string | undefined;
390
435
  description?: string | undefined;
391
436
  }>, z.ZodObject<{
392
437
  control: z.ZodLiteral<"action">;
@@ -399,15 +444,15 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
399
444
  type: "action";
400
445
  required: boolean;
401
446
  control: "action";
402
- defaultValue?: undefined;
403
447
  label?: string | undefined;
448
+ defaultValue?: undefined;
404
449
  description?: string | undefined;
405
450
  }, {
406
451
  type: "action";
407
452
  required: boolean;
408
453
  control: "action";
409
- defaultValue?: undefined;
410
454
  label?: string | undefined;
455
+ defaultValue?: undefined;
411
456
  description?: string | undefined;
412
457
  }>, z.ZodObject<{
413
458
  control: z.ZodLiteral<"textContent">;
@@ -420,15 +465,36 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
420
465
  type: "string";
421
466
  required: boolean;
422
467
  control: "textContent";
423
- defaultValue?: string | undefined;
424
468
  label?: string | undefined;
469
+ defaultValue?: string | undefined;
425
470
  description?: string | undefined;
426
471
  }, {
427
472
  type: "string";
428
473
  required: boolean;
429
474
  control: "textContent";
475
+ label?: string | undefined;
430
476
  defaultValue?: string | undefined;
477
+ description?: string | undefined;
478
+ }>, z.ZodObject<{
479
+ control: z.ZodLiteral<"animationAction">;
480
+ type: z.ZodLiteral<"animationAction">;
481
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
482
+ label: z.ZodOptional<z.ZodString>;
483
+ description: z.ZodOptional<z.ZodString>;
484
+ required: z.ZodBoolean;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "animationAction";
487
+ required: boolean;
488
+ control: "animationAction";
489
+ label?: string | undefined;
490
+ defaultValue?: undefined;
491
+ description?: string | undefined;
492
+ }, {
493
+ type: "animationAction";
494
+ required: boolean;
495
+ control: "animationAction";
431
496
  label?: string | undefined;
497
+ defaultValue?: undefined;
432
498
  description?: string | undefined;
433
499
  }>]>;
434
500
  export type PropMeta = z.infer<typeof PropMeta>;