@webstudio-is/sdk 0.264.0 → 0.266.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/index.js +154 -16
- package/lib/types/page-utils.d.ts +6 -1
- package/lib/types/schema/component-meta.d.ts +110 -0
- package/lib/types/schema/pages.d.ts +77 -150
- package/lib/types/schema/prop-meta.d.ts +66 -0
- package/lib/types/schema/props.d.ts +8 -8
- package/lib/types/schema/webstudio.d.ts +6 -6
- package/package.json +7 -7
|
@@ -7,6 +7,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
7
7
|
label: z.ZodOptional<z.ZodString>;
|
|
8
8
|
description: z.ZodOptional<z.ZodString>;
|
|
9
9
|
required: z.ZodBoolean;
|
|
10
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
options: string[];
|
|
12
13
|
type: "string";
|
|
@@ -15,6 +16,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
15
16
|
description?: string | undefined;
|
|
16
17
|
label?: string | undefined;
|
|
17
18
|
defaultValue?: undefined;
|
|
19
|
+
contentMode?: boolean | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
options: string[];
|
|
20
22
|
type: "string";
|
|
@@ -23,6 +25,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
23
25
|
description?: string | undefined;
|
|
24
26
|
label?: string | undefined;
|
|
25
27
|
defaultValue?: undefined;
|
|
28
|
+
contentMode?: boolean | undefined;
|
|
26
29
|
}>, z.ZodObject<{
|
|
27
30
|
control: z.ZodLiteral<"number">;
|
|
28
31
|
type: z.ZodLiteral<"number">;
|
|
@@ -30,6 +33,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
30
33
|
label: z.ZodOptional<z.ZodString>;
|
|
31
34
|
description: z.ZodOptional<z.ZodString>;
|
|
32
35
|
required: z.ZodBoolean;
|
|
36
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
33
37
|
}, "strip", z.ZodTypeAny, {
|
|
34
38
|
type: "number";
|
|
35
39
|
required: boolean;
|
|
@@ -37,6 +41,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
37
41
|
description?: string | undefined;
|
|
38
42
|
label?: string | undefined;
|
|
39
43
|
defaultValue?: number | undefined;
|
|
44
|
+
contentMode?: boolean | undefined;
|
|
40
45
|
}, {
|
|
41
46
|
type: "number";
|
|
42
47
|
required: boolean;
|
|
@@ -44,6 +49,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
44
49
|
description?: string | undefined;
|
|
45
50
|
label?: string | undefined;
|
|
46
51
|
defaultValue?: number | undefined;
|
|
52
|
+
contentMode?: boolean | undefined;
|
|
47
53
|
}>, z.ZodObject<{
|
|
48
54
|
control: z.ZodLiteral<"range">;
|
|
49
55
|
type: z.ZodLiteral<"number">;
|
|
@@ -51,6 +57,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
51
57
|
label: z.ZodOptional<z.ZodString>;
|
|
52
58
|
description: z.ZodOptional<z.ZodString>;
|
|
53
59
|
required: z.ZodBoolean;
|
|
60
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
54
61
|
}, "strip", z.ZodTypeAny, {
|
|
55
62
|
type: "number";
|
|
56
63
|
required: boolean;
|
|
@@ -58,6 +65,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
58
65
|
description?: string | undefined;
|
|
59
66
|
label?: string | undefined;
|
|
60
67
|
defaultValue?: number | undefined;
|
|
68
|
+
contentMode?: boolean | undefined;
|
|
61
69
|
}, {
|
|
62
70
|
type: "number";
|
|
63
71
|
required: boolean;
|
|
@@ -65,6 +73,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
65
73
|
description?: string | undefined;
|
|
66
74
|
label?: string | undefined;
|
|
67
75
|
defaultValue?: number | undefined;
|
|
76
|
+
contentMode?: boolean | undefined;
|
|
68
77
|
}>, z.ZodObject<{
|
|
69
78
|
control: z.ZodLiteral<"text">;
|
|
70
79
|
type: z.ZodLiteral<"string">;
|
|
@@ -77,6 +86,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
77
86
|
label: z.ZodOptional<z.ZodString>;
|
|
78
87
|
description: z.ZodOptional<z.ZodString>;
|
|
79
88
|
required: z.ZodBoolean;
|
|
89
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
80
90
|
}, "strip", z.ZodTypeAny, {
|
|
81
91
|
type: "string";
|
|
82
92
|
required: boolean;
|
|
@@ -84,6 +94,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
84
94
|
description?: string | undefined;
|
|
85
95
|
label?: string | undefined;
|
|
86
96
|
defaultValue?: string | undefined;
|
|
97
|
+
contentMode?: boolean | undefined;
|
|
87
98
|
rows?: number | undefined;
|
|
88
99
|
}, {
|
|
89
100
|
type: "string";
|
|
@@ -92,6 +103,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
92
103
|
description?: string | undefined;
|
|
93
104
|
label?: string | undefined;
|
|
94
105
|
defaultValue?: string | undefined;
|
|
106
|
+
contentMode?: boolean | undefined;
|
|
95
107
|
rows?: number | undefined;
|
|
96
108
|
}>, z.ZodObject<{
|
|
97
109
|
control: z.ZodLiteral<"resource">;
|
|
@@ -100,6 +112,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
100
112
|
label: z.ZodOptional<z.ZodString>;
|
|
101
113
|
description: z.ZodOptional<z.ZodString>;
|
|
102
114
|
required: z.ZodBoolean;
|
|
115
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
103
116
|
}, "strip", z.ZodTypeAny, {
|
|
104
117
|
type: "resource";
|
|
105
118
|
required: boolean;
|
|
@@ -107,6 +120,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
107
120
|
description?: string | undefined;
|
|
108
121
|
label?: string | undefined;
|
|
109
122
|
defaultValue?: string | undefined;
|
|
123
|
+
contentMode?: boolean | undefined;
|
|
110
124
|
}, {
|
|
111
125
|
type: "resource";
|
|
112
126
|
required: boolean;
|
|
@@ -114,6 +128,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
114
128
|
description?: string | undefined;
|
|
115
129
|
label?: string | undefined;
|
|
116
130
|
defaultValue?: string | undefined;
|
|
131
|
+
contentMode?: boolean | undefined;
|
|
117
132
|
}>, z.ZodObject<{
|
|
118
133
|
control: z.ZodLiteral<"code">;
|
|
119
134
|
type: z.ZodLiteral<"string">;
|
|
@@ -122,6 +137,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
122
137
|
label: z.ZodOptional<z.ZodString>;
|
|
123
138
|
description: z.ZodOptional<z.ZodString>;
|
|
124
139
|
required: z.ZodBoolean;
|
|
140
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
125
141
|
}, "strip", z.ZodTypeAny, {
|
|
126
142
|
type: "string";
|
|
127
143
|
required: boolean;
|
|
@@ -130,6 +146,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
130
146
|
description?: string | undefined;
|
|
131
147
|
label?: string | undefined;
|
|
132
148
|
defaultValue?: string | undefined;
|
|
149
|
+
contentMode?: boolean | undefined;
|
|
133
150
|
}, {
|
|
134
151
|
type: "string";
|
|
135
152
|
required: boolean;
|
|
@@ -138,6 +155,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
138
155
|
description?: string | undefined;
|
|
139
156
|
label?: string | undefined;
|
|
140
157
|
defaultValue?: string | undefined;
|
|
158
|
+
contentMode?: boolean | undefined;
|
|
141
159
|
}>, z.ZodObject<{
|
|
142
160
|
control: z.ZodLiteral<"codetext">;
|
|
143
161
|
type: z.ZodLiteral<"string">;
|
|
@@ -145,6 +163,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
145
163
|
label: z.ZodOptional<z.ZodString>;
|
|
146
164
|
description: z.ZodOptional<z.ZodString>;
|
|
147
165
|
required: z.ZodBoolean;
|
|
166
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
148
167
|
}, "strip", z.ZodTypeAny, {
|
|
149
168
|
type: "string";
|
|
150
169
|
required: boolean;
|
|
@@ -152,6 +171,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
152
171
|
description?: string | undefined;
|
|
153
172
|
label?: string | undefined;
|
|
154
173
|
defaultValue?: string | undefined;
|
|
174
|
+
contentMode?: boolean | undefined;
|
|
155
175
|
}, {
|
|
156
176
|
type: "string";
|
|
157
177
|
required: boolean;
|
|
@@ -159,6 +179,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
159
179
|
description?: string | undefined;
|
|
160
180
|
label?: string | undefined;
|
|
161
181
|
defaultValue?: string | undefined;
|
|
182
|
+
contentMode?: boolean | undefined;
|
|
162
183
|
}>, z.ZodObject<{
|
|
163
184
|
control: z.ZodLiteral<"color">;
|
|
164
185
|
type: z.ZodLiteral<"string">;
|
|
@@ -166,6 +187,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
166
187
|
label: z.ZodOptional<z.ZodString>;
|
|
167
188
|
description: z.ZodOptional<z.ZodString>;
|
|
168
189
|
required: z.ZodBoolean;
|
|
190
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
169
191
|
}, "strip", z.ZodTypeAny, {
|
|
170
192
|
type: "string";
|
|
171
193
|
required: boolean;
|
|
@@ -173,6 +195,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
173
195
|
description?: string | undefined;
|
|
174
196
|
label?: string | undefined;
|
|
175
197
|
defaultValue?: string | undefined;
|
|
198
|
+
contentMode?: boolean | undefined;
|
|
176
199
|
}, {
|
|
177
200
|
type: "string";
|
|
178
201
|
required: boolean;
|
|
@@ -180,6 +203,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
180
203
|
description?: string | undefined;
|
|
181
204
|
label?: string | undefined;
|
|
182
205
|
defaultValue?: string | undefined;
|
|
206
|
+
contentMode?: boolean | undefined;
|
|
183
207
|
}>, z.ZodObject<{
|
|
184
208
|
control: z.ZodLiteral<"boolean">;
|
|
185
209
|
type: z.ZodLiteral<"boolean">;
|
|
@@ -187,6 +211,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
187
211
|
label: z.ZodOptional<z.ZodString>;
|
|
188
212
|
description: z.ZodOptional<z.ZodString>;
|
|
189
213
|
required: z.ZodBoolean;
|
|
214
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
190
215
|
}, "strip", z.ZodTypeAny, {
|
|
191
216
|
type: "boolean";
|
|
192
217
|
required: boolean;
|
|
@@ -194,6 +219,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
194
219
|
description?: string | undefined;
|
|
195
220
|
label?: string | undefined;
|
|
196
221
|
defaultValue?: boolean | undefined;
|
|
222
|
+
contentMode?: boolean | undefined;
|
|
197
223
|
}, {
|
|
198
224
|
type: "boolean";
|
|
199
225
|
required: boolean;
|
|
@@ -201,6 +227,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
201
227
|
description?: string | undefined;
|
|
202
228
|
label?: string | undefined;
|
|
203
229
|
defaultValue?: boolean | undefined;
|
|
230
|
+
contentMode?: boolean | undefined;
|
|
204
231
|
}>, z.ZodObject<{
|
|
205
232
|
control: z.ZodLiteral<"radio">;
|
|
206
233
|
type: z.ZodLiteral<"string">;
|
|
@@ -209,6 +236,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
209
236
|
label: z.ZodOptional<z.ZodString>;
|
|
210
237
|
description: z.ZodOptional<z.ZodString>;
|
|
211
238
|
required: z.ZodBoolean;
|
|
239
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
212
240
|
}, "strip", z.ZodTypeAny, {
|
|
213
241
|
options: string[];
|
|
214
242
|
type: "string";
|
|
@@ -217,6 +245,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
217
245
|
description?: string | undefined;
|
|
218
246
|
label?: string | undefined;
|
|
219
247
|
defaultValue?: string | undefined;
|
|
248
|
+
contentMode?: boolean | undefined;
|
|
220
249
|
}, {
|
|
221
250
|
options: string[];
|
|
222
251
|
type: "string";
|
|
@@ -225,6 +254,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
225
254
|
description?: string | undefined;
|
|
226
255
|
label?: string | undefined;
|
|
227
256
|
defaultValue?: string | undefined;
|
|
257
|
+
contentMode?: boolean | undefined;
|
|
228
258
|
}>, z.ZodObject<{
|
|
229
259
|
control: z.ZodLiteral<"inline-radio">;
|
|
230
260
|
type: z.ZodLiteral<"string">;
|
|
@@ -233,6 +263,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
233
263
|
label: z.ZodOptional<z.ZodString>;
|
|
234
264
|
description: z.ZodOptional<z.ZodString>;
|
|
235
265
|
required: z.ZodBoolean;
|
|
266
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
236
267
|
}, "strip", z.ZodTypeAny, {
|
|
237
268
|
options: string[];
|
|
238
269
|
type: "string";
|
|
@@ -241,6 +272,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
241
272
|
description?: string | undefined;
|
|
242
273
|
label?: string | undefined;
|
|
243
274
|
defaultValue?: string | undefined;
|
|
275
|
+
contentMode?: boolean | undefined;
|
|
244
276
|
}, {
|
|
245
277
|
options: string[];
|
|
246
278
|
type: "string";
|
|
@@ -249,6 +281,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
249
281
|
description?: string | undefined;
|
|
250
282
|
label?: string | undefined;
|
|
251
283
|
defaultValue?: string | undefined;
|
|
284
|
+
contentMode?: boolean | undefined;
|
|
252
285
|
}>, z.ZodObject<{
|
|
253
286
|
control: z.ZodLiteral<"select">;
|
|
254
287
|
type: z.ZodLiteral<"string">;
|
|
@@ -257,6 +290,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
257
290
|
label: z.ZodOptional<z.ZodString>;
|
|
258
291
|
description: z.ZodOptional<z.ZodString>;
|
|
259
292
|
required: z.ZodBoolean;
|
|
293
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
260
294
|
}, "strip", z.ZodTypeAny, {
|
|
261
295
|
options: string[];
|
|
262
296
|
type: "string";
|
|
@@ -265,6 +299,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
265
299
|
description?: string | undefined;
|
|
266
300
|
label?: string | undefined;
|
|
267
301
|
defaultValue?: string | undefined;
|
|
302
|
+
contentMode?: boolean | undefined;
|
|
268
303
|
}, {
|
|
269
304
|
options: string[];
|
|
270
305
|
type: "string";
|
|
@@ -273,6 +308,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
273
308
|
description?: string | undefined;
|
|
274
309
|
label?: string | undefined;
|
|
275
310
|
defaultValue?: string | undefined;
|
|
311
|
+
contentMode?: boolean | undefined;
|
|
276
312
|
}>, z.ZodObject<{
|
|
277
313
|
control: z.ZodLiteral<"multi-select">;
|
|
278
314
|
type: z.ZodLiteral<"string[]">;
|
|
@@ -281,6 +317,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
281
317
|
label: z.ZodOptional<z.ZodString>;
|
|
282
318
|
description: z.ZodOptional<z.ZodString>;
|
|
283
319
|
required: z.ZodBoolean;
|
|
320
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
284
321
|
}, "strip", z.ZodTypeAny, {
|
|
285
322
|
options: string[];
|
|
286
323
|
type: "string[]";
|
|
@@ -289,6 +326,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
289
326
|
description?: string | undefined;
|
|
290
327
|
label?: string | undefined;
|
|
291
328
|
defaultValue?: string[] | undefined;
|
|
329
|
+
contentMode?: boolean | undefined;
|
|
292
330
|
}, {
|
|
293
331
|
options: string[];
|
|
294
332
|
type: "string[]";
|
|
@@ -297,6 +335,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
297
335
|
description?: string | undefined;
|
|
298
336
|
label?: string | undefined;
|
|
299
337
|
defaultValue?: string[] | undefined;
|
|
338
|
+
contentMode?: boolean | undefined;
|
|
300
339
|
}>, z.ZodObject<{
|
|
301
340
|
control: z.ZodLiteral<"check">;
|
|
302
341
|
type: z.ZodLiteral<"string[]">;
|
|
@@ -305,6 +344,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
305
344
|
label: z.ZodOptional<z.ZodString>;
|
|
306
345
|
description: z.ZodOptional<z.ZodString>;
|
|
307
346
|
required: z.ZodBoolean;
|
|
347
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
308
348
|
}, "strip", z.ZodTypeAny, {
|
|
309
349
|
options: string[];
|
|
310
350
|
type: "string[]";
|
|
@@ -313,6 +353,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
313
353
|
description?: string | undefined;
|
|
314
354
|
label?: string | undefined;
|
|
315
355
|
defaultValue?: string[] | undefined;
|
|
356
|
+
contentMode?: boolean | undefined;
|
|
316
357
|
}, {
|
|
317
358
|
options: string[];
|
|
318
359
|
type: "string[]";
|
|
@@ -321,6 +362,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
321
362
|
description?: string | undefined;
|
|
322
363
|
label?: string | undefined;
|
|
323
364
|
defaultValue?: string[] | undefined;
|
|
365
|
+
contentMode?: boolean | undefined;
|
|
324
366
|
}>, z.ZodObject<{
|
|
325
367
|
control: z.ZodLiteral<"inline-check">;
|
|
326
368
|
type: z.ZodLiteral<"string[]">;
|
|
@@ -329,6 +371,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
329
371
|
label: z.ZodOptional<z.ZodString>;
|
|
330
372
|
description: z.ZodOptional<z.ZodString>;
|
|
331
373
|
required: z.ZodBoolean;
|
|
374
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
332
375
|
}, "strip", z.ZodTypeAny, {
|
|
333
376
|
options: string[];
|
|
334
377
|
type: "string[]";
|
|
@@ -337,6 +380,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
337
380
|
description?: string | undefined;
|
|
338
381
|
label?: string | undefined;
|
|
339
382
|
defaultValue?: string[] | undefined;
|
|
383
|
+
contentMode?: boolean | undefined;
|
|
340
384
|
}, {
|
|
341
385
|
options: string[];
|
|
342
386
|
type: "string[]";
|
|
@@ -345,6 +389,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
345
389
|
description?: string | undefined;
|
|
346
390
|
label?: string | undefined;
|
|
347
391
|
defaultValue?: string[] | undefined;
|
|
392
|
+
contentMode?: boolean | undefined;
|
|
348
393
|
}>, z.ZodObject<{
|
|
349
394
|
control: z.ZodLiteral<"file">;
|
|
350
395
|
type: z.ZodLiteral<"string">;
|
|
@@ -354,6 +399,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
354
399
|
label: z.ZodOptional<z.ZodString>;
|
|
355
400
|
description: z.ZodOptional<z.ZodString>;
|
|
356
401
|
required: z.ZodBoolean;
|
|
402
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
357
403
|
}, "strip", z.ZodTypeAny, {
|
|
358
404
|
type: "string";
|
|
359
405
|
required: boolean;
|
|
@@ -361,6 +407,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
361
407
|
description?: string | undefined;
|
|
362
408
|
label?: string | undefined;
|
|
363
409
|
defaultValue?: string | undefined;
|
|
410
|
+
contentMode?: boolean | undefined;
|
|
364
411
|
accept?: string | undefined;
|
|
365
412
|
}, {
|
|
366
413
|
type: "string";
|
|
@@ -369,6 +416,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
369
416
|
description?: string | undefined;
|
|
370
417
|
label?: string | undefined;
|
|
371
418
|
defaultValue?: string | undefined;
|
|
419
|
+
contentMode?: boolean | undefined;
|
|
372
420
|
accept?: string | undefined;
|
|
373
421
|
}>, z.ZodObject<{
|
|
374
422
|
control: z.ZodLiteral<"url">;
|
|
@@ -377,6 +425,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
377
425
|
label: z.ZodOptional<z.ZodString>;
|
|
378
426
|
description: z.ZodOptional<z.ZodString>;
|
|
379
427
|
required: z.ZodBoolean;
|
|
428
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
380
429
|
}, "strip", z.ZodTypeAny, {
|
|
381
430
|
type: "string";
|
|
382
431
|
required: boolean;
|
|
@@ -384,6 +433,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
384
433
|
description?: string | undefined;
|
|
385
434
|
label?: string | undefined;
|
|
386
435
|
defaultValue?: string | undefined;
|
|
436
|
+
contentMode?: boolean | undefined;
|
|
387
437
|
}, {
|
|
388
438
|
type: "string";
|
|
389
439
|
required: boolean;
|
|
@@ -391,6 +441,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
391
441
|
description?: string | undefined;
|
|
392
442
|
label?: string | undefined;
|
|
393
443
|
defaultValue?: string | undefined;
|
|
444
|
+
contentMode?: boolean | undefined;
|
|
394
445
|
}>, z.ZodObject<{
|
|
395
446
|
control: z.ZodLiteral<"json">;
|
|
396
447
|
type: z.ZodLiteral<"json">;
|
|
@@ -398,6 +449,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
398
449
|
label: z.ZodOptional<z.ZodString>;
|
|
399
450
|
description: z.ZodOptional<z.ZodString>;
|
|
400
451
|
required: z.ZodBoolean;
|
|
452
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
401
453
|
}, "strip", z.ZodTypeAny, {
|
|
402
454
|
type: "json";
|
|
403
455
|
required: boolean;
|
|
@@ -405,6 +457,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
405
457
|
description?: string | undefined;
|
|
406
458
|
label?: string | undefined;
|
|
407
459
|
defaultValue?: unknown;
|
|
460
|
+
contentMode?: boolean | undefined;
|
|
408
461
|
}, {
|
|
409
462
|
type: "json";
|
|
410
463
|
required: boolean;
|
|
@@ -412,6 +465,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
412
465
|
description?: string | undefined;
|
|
413
466
|
label?: string | undefined;
|
|
414
467
|
defaultValue?: unknown;
|
|
468
|
+
contentMode?: boolean | undefined;
|
|
415
469
|
}>, z.ZodObject<{
|
|
416
470
|
control: z.ZodLiteral<"date">;
|
|
417
471
|
type: z.ZodLiteral<"string">;
|
|
@@ -419,6 +473,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
419
473
|
label: z.ZodOptional<z.ZodString>;
|
|
420
474
|
description: z.ZodOptional<z.ZodString>;
|
|
421
475
|
required: z.ZodBoolean;
|
|
476
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
422
477
|
}, "strip", z.ZodTypeAny, {
|
|
423
478
|
type: "string";
|
|
424
479
|
required: boolean;
|
|
@@ -426,6 +481,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
426
481
|
description?: string | undefined;
|
|
427
482
|
label?: string | undefined;
|
|
428
483
|
defaultValue?: string | undefined;
|
|
484
|
+
contentMode?: boolean | undefined;
|
|
429
485
|
}, {
|
|
430
486
|
type: "string";
|
|
431
487
|
required: boolean;
|
|
@@ -433,6 +489,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
433
489
|
description?: string | undefined;
|
|
434
490
|
label?: string | undefined;
|
|
435
491
|
defaultValue?: string | undefined;
|
|
492
|
+
contentMode?: boolean | undefined;
|
|
436
493
|
}>, z.ZodObject<{
|
|
437
494
|
control: z.ZodLiteral<"action">;
|
|
438
495
|
type: z.ZodLiteral<"action">;
|
|
@@ -440,6 +497,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
440
497
|
label: z.ZodOptional<z.ZodString>;
|
|
441
498
|
description: z.ZodOptional<z.ZodString>;
|
|
442
499
|
required: z.ZodBoolean;
|
|
500
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
443
501
|
}, "strip", z.ZodTypeAny, {
|
|
444
502
|
type: "action";
|
|
445
503
|
required: boolean;
|
|
@@ -447,6 +505,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
447
505
|
description?: string | undefined;
|
|
448
506
|
label?: string | undefined;
|
|
449
507
|
defaultValue?: undefined;
|
|
508
|
+
contentMode?: boolean | undefined;
|
|
450
509
|
}, {
|
|
451
510
|
type: "action";
|
|
452
511
|
required: boolean;
|
|
@@ -454,6 +513,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
454
513
|
description?: string | undefined;
|
|
455
514
|
label?: string | undefined;
|
|
456
515
|
defaultValue?: undefined;
|
|
516
|
+
contentMode?: boolean | undefined;
|
|
457
517
|
}>, z.ZodObject<{
|
|
458
518
|
control: z.ZodLiteral<"textContent">;
|
|
459
519
|
type: z.ZodLiteral<"string">;
|
|
@@ -461,6 +521,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
461
521
|
label: z.ZodOptional<z.ZodString>;
|
|
462
522
|
description: z.ZodOptional<z.ZodString>;
|
|
463
523
|
required: z.ZodBoolean;
|
|
524
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
464
525
|
}, "strip", z.ZodTypeAny, {
|
|
465
526
|
type: "string";
|
|
466
527
|
required: boolean;
|
|
@@ -468,6 +529,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
468
529
|
description?: string | undefined;
|
|
469
530
|
label?: string | undefined;
|
|
470
531
|
defaultValue?: string | undefined;
|
|
532
|
+
contentMode?: boolean | undefined;
|
|
471
533
|
}, {
|
|
472
534
|
type: "string";
|
|
473
535
|
required: boolean;
|
|
@@ -475,6 +537,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
475
537
|
description?: string | undefined;
|
|
476
538
|
label?: string | undefined;
|
|
477
539
|
defaultValue?: string | undefined;
|
|
540
|
+
contentMode?: boolean | undefined;
|
|
478
541
|
}>, z.ZodObject<{
|
|
479
542
|
control: z.ZodLiteral<"animationAction">;
|
|
480
543
|
type: z.ZodLiteral<"animationAction">;
|
|
@@ -482,6 +545,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
482
545
|
label: z.ZodOptional<z.ZodString>;
|
|
483
546
|
description: z.ZodOptional<z.ZodString>;
|
|
484
547
|
required: z.ZodBoolean;
|
|
548
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
485
549
|
}, "strip", z.ZodTypeAny, {
|
|
486
550
|
type: "animationAction";
|
|
487
551
|
required: boolean;
|
|
@@ -489,6 +553,7 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
489
553
|
description?: string | undefined;
|
|
490
554
|
label?: string | undefined;
|
|
491
555
|
defaultValue?: undefined;
|
|
556
|
+
contentMode?: boolean | undefined;
|
|
492
557
|
}, {
|
|
493
558
|
type: "animationAction";
|
|
494
559
|
required: boolean;
|
|
@@ -496,5 +561,6 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
496
561
|
description?: string | undefined;
|
|
497
562
|
label?: string | undefined;
|
|
498
563
|
defaultValue?: undefined;
|
|
564
|
+
contentMode?: boolean | undefined;
|
|
499
565
|
}>]>;
|
|
500
566
|
export type PropMeta = z.infer<typeof PropMeta>;
|
|
@@ -110,11 +110,11 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
110
110
|
pageId: z.ZodString;
|
|
111
111
|
instanceId: z.ZodString;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
instanceId: string;
|
|
114
113
|
pageId: string;
|
|
115
|
-
}, {
|
|
116
114
|
instanceId: string;
|
|
115
|
+
}, {
|
|
117
116
|
pageId: string;
|
|
117
|
+
instanceId: string;
|
|
118
118
|
}>]>;
|
|
119
119
|
id: z.ZodString;
|
|
120
120
|
instanceId: z.ZodString;
|
|
@@ -122,8 +122,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
122
122
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
value: string | {
|
|
125
|
-
instanceId: string;
|
|
126
125
|
pageId: string;
|
|
126
|
+
instanceId: string;
|
|
127
127
|
};
|
|
128
128
|
type: "page";
|
|
129
129
|
name: string;
|
|
@@ -132,8 +132,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
132
132
|
required?: boolean | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
value: string | {
|
|
135
|
-
instanceId: string;
|
|
136
135
|
pageId: string;
|
|
136
|
+
instanceId: string;
|
|
137
137
|
};
|
|
138
138
|
type: "page";
|
|
139
139
|
name: string;
|
|
@@ -18993,11 +18993,11 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
18993
18993
|
pageId: z.ZodString;
|
|
18994
18994
|
instanceId: z.ZodString;
|
|
18995
18995
|
}, "strip", z.ZodTypeAny, {
|
|
18996
|
-
instanceId: string;
|
|
18997
18996
|
pageId: string;
|
|
18998
|
-
}, {
|
|
18999
18997
|
instanceId: string;
|
|
18998
|
+
}, {
|
|
19000
18999
|
pageId: string;
|
|
19000
|
+
instanceId: string;
|
|
19001
19001
|
}>]>;
|
|
19002
19002
|
id: z.ZodString;
|
|
19003
19003
|
instanceId: z.ZodString;
|
|
@@ -19005,8 +19005,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
19005
19005
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
19006
19006
|
}, "strip", z.ZodTypeAny, {
|
|
19007
19007
|
value: string | {
|
|
19008
|
-
instanceId: string;
|
|
19009
19008
|
pageId: string;
|
|
19009
|
+
instanceId: string;
|
|
19010
19010
|
};
|
|
19011
19011
|
type: "page";
|
|
19012
19012
|
name: string;
|
|
@@ -19015,8 +19015,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
19015
19015
|
required?: boolean | undefined;
|
|
19016
19016
|
}, {
|
|
19017
19017
|
value: string | {
|
|
19018
|
-
instanceId: string;
|
|
19019
19018
|
pageId: string;
|
|
19019
|
+
instanceId: string;
|
|
19020
19020
|
};
|
|
19021
19021
|
type: "page";
|
|
19022
19022
|
name: string;
|
|
@@ -598,11 +598,11 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
598
598
|
pageId: z.ZodString;
|
|
599
599
|
instanceId: z.ZodString;
|
|
600
600
|
}, "strip", z.ZodTypeAny, {
|
|
601
|
-
instanceId: string;
|
|
602
601
|
pageId: string;
|
|
603
|
-
}, {
|
|
604
602
|
instanceId: string;
|
|
603
|
+
}, {
|
|
605
604
|
pageId: string;
|
|
605
|
+
instanceId: string;
|
|
606
606
|
}>]>;
|
|
607
607
|
id: z.ZodString;
|
|
608
608
|
instanceId: z.ZodString;
|
|
@@ -610,8 +610,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
610
610
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
611
611
|
}, "strip", z.ZodTypeAny, {
|
|
612
612
|
value: string | {
|
|
613
|
-
instanceId: string;
|
|
614
613
|
pageId: string;
|
|
614
|
+
instanceId: string;
|
|
615
615
|
};
|
|
616
616
|
type: "page";
|
|
617
617
|
name: string;
|
|
@@ -620,8 +620,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
620
620
|
required?: boolean | undefined;
|
|
621
621
|
}, {
|
|
622
622
|
value: string | {
|
|
623
|
-
instanceId: string;
|
|
624
623
|
pageId: string;
|
|
624
|
+
instanceId: string;
|
|
625
625
|
};
|
|
626
626
|
type: "page";
|
|
627
627
|
name: string;
|
|
@@ -21438,8 +21438,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
21438
21438
|
required?: boolean | undefined;
|
|
21439
21439
|
} | {
|
|
21440
21440
|
value: string | {
|
|
21441
|
-
instanceId: string;
|
|
21442
21441
|
pageId: string;
|
|
21442
|
+
instanceId: string;
|
|
21443
21443
|
};
|
|
21444
21444
|
type: "page";
|
|
21445
21445
|
name: string;
|
|
@@ -23633,8 +23633,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
23633
23633
|
required?: boolean | undefined;
|
|
23634
23634
|
} | {
|
|
23635
23635
|
value: string | {
|
|
23636
|
-
instanceId: string;
|
|
23637
23636
|
pageId: string;
|
|
23637
|
+
instanceId: string;
|
|
23638
23638
|
};
|
|
23639
23639
|
type: "page";
|
|
23640
23640
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.266.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"type-fest": "^4.37.0",
|
|
47
47
|
"warn-once": "^0.1.1",
|
|
48
48
|
"zod": "^3.24.2",
|
|
49
|
-
"@webstudio-is/
|
|
50
|
-
"@webstudio-is/
|
|
51
|
-
"@webstudio-is/
|
|
49
|
+
"@webstudio-is/fonts": "0.266.0",
|
|
50
|
+
"@webstudio-is/icons": "0.266.0",
|
|
51
|
+
"@webstudio-is/css-engine": "0.266.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"html-tags": "^4.0.0",
|
|
55
55
|
"vitest": "^3.1.2",
|
|
56
|
-
"@webstudio-is/
|
|
57
|
-
"@webstudio-is/
|
|
58
|
-
"@webstudio-is/
|
|
56
|
+
"@webstudio-is/template": "0.266.0",
|
|
57
|
+
"@webstudio-is/css-data": "0.266.0",
|
|
58
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
|