@usethrottle/builder-schema 0.0.0-stage → 0.1.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.
@@ -0,0 +1,4092 @@
1
+ import { ZodError, z } from 'zod';
2
+
3
+ /** A node id: lowercase letters and digits, unique in a document. */
4
+ declare const NODE_ID_RE: RegExp;
5
+ /** A fresh 16-character node id from the platform's CSPRNG (browser, Worker, Node). */
6
+ declare function newNodeId(): string;
7
+
8
+ /**
9
+ * Every problem the schema package reports. Task 7 owns this file; Tasks 8 and
10
+ * 9 add their codes only inside their marked sections.
11
+ *
12
+ * `INNER_IN_INNER` belongs to the document grammar (an inner section inside an
13
+ * inner column), so Task 8's `PlacementCode` reuses it and must not add it again.
14
+ */
15
+ declare const ISSUE_CODES: readonly ["INVALID_SHAPE", "INVALID_VALUE", "REQUIRED", "UNKNOWN_KEY", "FORBIDDEN_KEY", "DUPLICATE_ID", "LIMIT_EXCEEDED", "UNSUPPORTED_SCHEMA_VERSION", "INVALID_WIDGET_TYPE", "INVALID_COLUMN_WIDTHS", "INNER_IN_INNER", "SECTION_NOT_NESTABLE", "INNER_NOT_TOP_LEVEL", "COLUMN_LIMIT", "NOT_ALLOWED_IN_PART", "MOVE_INTO_SELF", "COLUMN_REMOVE_NEEDS_SETCOLUMNS", "COLUMN_NOT_EMPTY", "UNKNOWN_PROP", "SOURCE_NOT_ENABLED", "RESULT_TYPE_MISMATCH", "ID_NOT_FRESH", "NODE_NOT_FOUND", "TEMPLATE_SYNTAX", "TEMPLATE_FORBIDDEN", "ELEMENT_NOT_ALLOWED", "ATTRIBUTE_NOT_ALLOWED", "FIELD_NOT_ALLOWED", "UNKNOWN_REFERENCE", "CSS_SYNTAX", "CSS_FORBIDDEN", "CSS_PROPERTY_NOT_ALLOWED", "NO_RECURSION", "BINDING_TARGET_MISSING", "BINDING_TYPE_MISMATCH", "WIDGET_TOO_LARGE", "DUPLICATE_KEY", "VERSION_RULE"];
16
+ type IssueCode = (typeof ISSUE_CODES)[number];
17
+ type Issue = {
18
+ path: string;
19
+ code: IssueCode;
20
+ message: string;
21
+ };
22
+ /** At most this many issues in one answer (bounded like the catalog's INVALID_REQUEST). */
23
+ declare const MAX_ISSUES = 50;
24
+ type PathSegment = string | number;
25
+ /** `['sections', 0, 'columns', 1]` becomes `sections[0].columns[1]`. */
26
+ declare function formatPath(segments: readonly PathSegment[]): string;
27
+ declare function makeIssue(path: readonly PathSegment[] | string, code: IssueCode, message: string): Issue;
28
+ declare function capIssues(issues: Issue[]): Issue[];
29
+ /** Turns a zod failure into the package's `Issue[]`, capped at 50. */
30
+ declare function zodIssues(error: ZodError): Issue[];
31
+
32
+ /**
33
+ * The page document (spec §8.1, schemaVersion 1). Pure zod, no React and no I/O.
34
+ * Parts (header, footer) and slots use the same shape.
35
+ */
36
+ /** Any JSON value a widget setting can hold. */
37
+ type SettingValue = string | number | boolean | null | SettingValue[] | {
38
+ [key: string]: SettingValue;
39
+ };
40
+ /** True when the value is JSON and at most 8 levels deep (bounded, so it never recurses far). */
41
+ declare function isSettingValue(value: unknown, depth?: number): value is SettingValue;
42
+ /**
43
+ * Any JSON value. The depth guard runs first so a hostile document cannot
44
+ * recurse the validator; `z.json()` then does the shape check and converts to
45
+ * JSON Schema (a `z.custom` could not).
46
+ */
47
+ declare const settingValueSchema: z.ZodType<SettingValue, unknown>;
48
+ declare const nodeIdSchema: z.ZodString;
49
+ type NodeId = string;
50
+ /** A theme token (`token:primary`) or `#rrggbb[aa]`. */
51
+ declare const COLOR_VALUE_RE: RegExp;
52
+ declare const colorValueSchema: z.ZodString;
53
+ declare const SPACING_TOKENS: readonly ["none", "xs", "s", "m", "l", "xl", "2xl"];
54
+ /** A spacing token or px 0 to 400. */
55
+ declare const spacingValueSchema: z.ZodUnion<readonly [z.ZodEnum<{
56
+ none: "none";
57
+ xs: "xs";
58
+ s: "s";
59
+ m: "m";
60
+ l: "l";
61
+ xl: "xl";
62
+ "2xl": "2xl";
63
+ }>, z.ZodNumber]>;
64
+ /**
65
+ * The universal node props (spec §8.2): hide per device, an anchor and two margins.
66
+ * They are common props, not widget settings: every widget accepts them and they
67
+ * do not count against the 40-setting cap. `COMMON_WIDGET_SETTINGS` (basics.ts)
68
+ * holds their fields.
69
+ */
70
+ declare const COMMON_SETTING_KEYS: readonly ["hidden", "anchor", "spacingTop", "spacingBottom"];
71
+ /** An id-safe anchor, on every node and on the `anchor` setting of widgets. */
72
+ declare const ANCHOR_RE: RegExp;
73
+ declare const sectionPropsSchema: z.ZodObject<{
74
+ width: z.ZodOptional<z.ZodEnum<{
75
+ boxed: "boxed";
76
+ full: "full";
77
+ }>>;
78
+ contentWidth: z.ZodOptional<z.ZodNumber>;
79
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
80
+ none: "none";
81
+ xs: "xs";
82
+ s: "s";
83
+ m: "m";
84
+ l: "l";
85
+ xl: "xl";
86
+ "2xl": "2xl";
87
+ }>, z.ZodNumber]>>;
88
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
89
+ none: "none";
90
+ xs: "xs";
91
+ s: "s";
92
+ m: "m";
93
+ l: "l";
94
+ xl: "xl";
95
+ "2xl": "2xl";
96
+ }>, z.ZodNumber]>>;
97
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
98
+ none: "none";
99
+ xs: "xs";
100
+ s: "s";
101
+ m: "m";
102
+ l: "l";
103
+ xl: "xl";
104
+ "2xl": "2xl";
105
+ }>, z.ZodNumber]>>;
106
+ minHeight: z.ZodOptional<z.ZodNumber>;
107
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
108
+ top: "top";
109
+ center: "center";
110
+ bottom: "bottom";
111
+ stretch: "stretch";
112
+ }>>;
113
+ background: z.ZodOptional<z.ZodObject<{
114
+ color: z.ZodOptional<z.ZodString>;
115
+ image: z.ZodOptional<z.ZodString>;
116
+ overlay: z.ZodOptional<z.ZodString>;
117
+ position: z.ZodOptional<z.ZodEnum<{
118
+ top: "top";
119
+ center: "center";
120
+ bottom: "bottom";
121
+ left: "left";
122
+ right: "right";
123
+ "top left": "top left";
124
+ "top right": "top right";
125
+ "bottom left": "bottom left";
126
+ "bottom right": "bottom right";
127
+ }>>;
128
+ size: z.ZodOptional<z.ZodEnum<{
129
+ cover: "cover";
130
+ contain: "contain";
131
+ auto: "auto";
132
+ }>>;
133
+ }, z.core.$strict>>;
134
+ stackOrder: z.ZodOptional<z.ZodEnum<{
135
+ normal: "normal";
136
+ reverse: "reverse";
137
+ }>>;
138
+ hidden: z.ZodOptional<z.ZodBoolean>;
139
+ anchor: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strict>;
141
+ type SectionProps = z.infer<typeof sectionPropsSchema>;
142
+ /** Column props. `width` is required on the base (desktop) value. */
143
+ declare const columnPropsSchema: z.ZodObject<{
144
+ width: z.ZodNumber;
145
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
146
+ top: "top";
147
+ center: "center";
148
+ bottom: "bottom";
149
+ stretch: "stretch";
150
+ }>>;
151
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
152
+ none: "none";
153
+ xs: "xs";
154
+ s: "s";
155
+ m: "m";
156
+ l: "l";
157
+ xl: "xl";
158
+ "2xl": "2xl";
159
+ }>, z.ZodNumber]>>;
160
+ background: z.ZodOptional<z.ZodObject<{
161
+ color: z.ZodOptional<z.ZodString>;
162
+ image: z.ZodOptional<z.ZodString>;
163
+ overlay: z.ZodOptional<z.ZodString>;
164
+ position: z.ZodOptional<z.ZodEnum<{
165
+ top: "top";
166
+ center: "center";
167
+ bottom: "bottom";
168
+ left: "left";
169
+ right: "right";
170
+ "top left": "top left";
171
+ "top right": "top right";
172
+ "bottom left": "bottom left";
173
+ "bottom right": "bottom right";
174
+ }>>;
175
+ size: z.ZodOptional<z.ZodEnum<{
176
+ cover: "cover";
177
+ contain: "contain";
178
+ auto: "auto";
179
+ }>>;
180
+ }, z.core.$strict>>;
181
+ hidden: z.ZodOptional<z.ZodBoolean>;
182
+ anchor: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strict>;
184
+ type ColumnProps = z.infer<typeof columnPropsSchema>;
185
+ /** A sparse per-device override. `null` removes the override (inherit again). */
186
+ type Overrides<P> = {
187
+ tablet?: {
188
+ [K in keyof P]?: P[K] | null;
189
+ } | undefined;
190
+ phone?: {
191
+ [K in keyof P]?: P[K] | null;
192
+ } | undefined;
193
+ };
194
+ declare const WIDGET_TYPE_RE: RegExp;
195
+ type WidgetType = `basic.${string}` | `catalog.${string}` | `commerce.${string}` | `custom.${string}`;
196
+ declare const dataBindingSchema: z.ZodUnion<readonly [z.ZodObject<{
197
+ source: z.ZodString;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ source: z.ZodString;
200
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
201
+ }, z.core.$strict>]>;
202
+ type DataBinding = z.infer<typeof dataBindingSchema>;
203
+ declare const widgetNodeSchema: z.ZodObject<{
204
+ id: z.ZodString;
205
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
206
+ v: z.ZodNumber;
207
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
208
+ responsive: z.ZodOptional<z.ZodObject<{
209
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
210
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
211
+ }, z.core.$strict>>;
212
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
213
+ source: z.ZodString;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ source: z.ZodString;
216
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
217
+ }, z.core.$strict>]>>>>;
218
+ }, z.core.$strict>;
219
+ type WidgetNode = z.infer<typeof widgetNodeSchema>;
220
+ declare const innerColumnNodeSchema: z.ZodObject<{
221
+ id: z.ZodString;
222
+ type: z.ZodLiteral<"column">;
223
+ props: z.ZodObject<{
224
+ width: z.ZodNumber;
225
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
226
+ top: "top";
227
+ center: "center";
228
+ bottom: "bottom";
229
+ stretch: "stretch";
230
+ }>>;
231
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
232
+ none: "none";
233
+ xs: "xs";
234
+ s: "s";
235
+ m: "m";
236
+ l: "l";
237
+ xl: "xl";
238
+ "2xl": "2xl";
239
+ }>, z.ZodNumber]>>;
240
+ background: z.ZodOptional<z.ZodObject<{
241
+ color: z.ZodOptional<z.ZodString>;
242
+ image: z.ZodOptional<z.ZodString>;
243
+ overlay: z.ZodOptional<z.ZodString>;
244
+ position: z.ZodOptional<z.ZodEnum<{
245
+ top: "top";
246
+ center: "center";
247
+ bottom: "bottom";
248
+ left: "left";
249
+ right: "right";
250
+ "top left": "top left";
251
+ "top right": "top right";
252
+ "bottom left": "bottom left";
253
+ "bottom right": "bottom right";
254
+ }>>;
255
+ size: z.ZodOptional<z.ZodEnum<{
256
+ cover: "cover";
257
+ contain: "contain";
258
+ auto: "auto";
259
+ }>>;
260
+ }, z.core.$strict>>;
261
+ hidden: z.ZodOptional<z.ZodBoolean>;
262
+ anchor: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strict>;
264
+ responsive: z.ZodOptional<z.ZodObject<{
265
+ tablet: z.ZodOptional<z.ZodObject<{
266
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
267
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
268
+ top: "top";
269
+ center: "center";
270
+ bottom: "bottom";
271
+ stretch: "stretch";
272
+ }>>>;
273
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
274
+ none: "none";
275
+ xs: "xs";
276
+ s: "s";
277
+ m: "m";
278
+ l: "l";
279
+ xl: "xl";
280
+ "2xl": "2xl";
281
+ }>, z.ZodNumber]>>>;
282
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
283
+ color: z.ZodOptional<z.ZodString>;
284
+ image: z.ZodOptional<z.ZodString>;
285
+ overlay: z.ZodOptional<z.ZodString>;
286
+ position: z.ZodOptional<z.ZodEnum<{
287
+ top: "top";
288
+ center: "center";
289
+ bottom: "bottom";
290
+ left: "left";
291
+ right: "right";
292
+ "top left": "top left";
293
+ "top right": "top right";
294
+ "bottom left": "bottom left";
295
+ "bottom right": "bottom right";
296
+ }>>;
297
+ size: z.ZodOptional<z.ZodEnum<{
298
+ cover: "cover";
299
+ contain: "contain";
300
+ auto: "auto";
301
+ }>>;
302
+ }, z.core.$strict>>>;
303
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
304
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ }, z.core.$strict>>;
306
+ phone: z.ZodOptional<z.ZodObject<{
307
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
309
+ top: "top";
310
+ center: "center";
311
+ bottom: "bottom";
312
+ stretch: "stretch";
313
+ }>>>;
314
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
315
+ none: "none";
316
+ xs: "xs";
317
+ s: "s";
318
+ m: "m";
319
+ l: "l";
320
+ xl: "xl";
321
+ "2xl": "2xl";
322
+ }>, z.ZodNumber]>>>;
323
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
324
+ color: z.ZodOptional<z.ZodString>;
325
+ image: z.ZodOptional<z.ZodString>;
326
+ overlay: z.ZodOptional<z.ZodString>;
327
+ position: z.ZodOptional<z.ZodEnum<{
328
+ top: "top";
329
+ center: "center";
330
+ bottom: "bottom";
331
+ left: "left";
332
+ right: "right";
333
+ "top left": "top left";
334
+ "top right": "top right";
335
+ "bottom left": "bottom left";
336
+ "bottom right": "bottom right";
337
+ }>>;
338
+ size: z.ZodOptional<z.ZodEnum<{
339
+ cover: "cover";
340
+ contain: "contain";
341
+ auto: "auto";
342
+ }>>;
343
+ }, z.core.$strict>>>;
344
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
345
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ }, z.core.$strict>>;
347
+ }, z.core.$strict>>;
348
+ children: z.ZodArray<z.ZodObject<{
349
+ id: z.ZodString;
350
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
351
+ v: z.ZodNumber;
352
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
353
+ responsive: z.ZodOptional<z.ZodObject<{
354
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
355
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
356
+ }, z.core.$strict>>;
357
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
358
+ source: z.ZodString;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ source: z.ZodString;
361
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
362
+ }, z.core.$strict>]>>>>;
363
+ }, z.core.$strict>>;
364
+ }, z.core.$strict>;
365
+ type InnerColumnNode = z.infer<typeof innerColumnNodeSchema>;
366
+ declare const innerSectionNodeSchema: z.ZodObject<{
367
+ id: z.ZodString;
368
+ type: z.ZodLiteral<"inner-section">;
369
+ props: z.ZodObject<{
370
+ width: z.ZodOptional<z.ZodEnum<{
371
+ boxed: "boxed";
372
+ full: "full";
373
+ }>>;
374
+ contentWidth: z.ZodOptional<z.ZodNumber>;
375
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
376
+ none: "none";
377
+ xs: "xs";
378
+ s: "s";
379
+ m: "m";
380
+ l: "l";
381
+ xl: "xl";
382
+ "2xl": "2xl";
383
+ }>, z.ZodNumber]>>;
384
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
385
+ none: "none";
386
+ xs: "xs";
387
+ s: "s";
388
+ m: "m";
389
+ l: "l";
390
+ xl: "xl";
391
+ "2xl": "2xl";
392
+ }>, z.ZodNumber]>>;
393
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
394
+ none: "none";
395
+ xs: "xs";
396
+ s: "s";
397
+ m: "m";
398
+ l: "l";
399
+ xl: "xl";
400
+ "2xl": "2xl";
401
+ }>, z.ZodNumber]>>;
402
+ minHeight: z.ZodOptional<z.ZodNumber>;
403
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
404
+ top: "top";
405
+ center: "center";
406
+ bottom: "bottom";
407
+ stretch: "stretch";
408
+ }>>;
409
+ background: z.ZodOptional<z.ZodObject<{
410
+ color: z.ZodOptional<z.ZodString>;
411
+ image: z.ZodOptional<z.ZodString>;
412
+ overlay: z.ZodOptional<z.ZodString>;
413
+ position: z.ZodOptional<z.ZodEnum<{
414
+ top: "top";
415
+ center: "center";
416
+ bottom: "bottom";
417
+ left: "left";
418
+ right: "right";
419
+ "top left": "top left";
420
+ "top right": "top right";
421
+ "bottom left": "bottom left";
422
+ "bottom right": "bottom right";
423
+ }>>;
424
+ size: z.ZodOptional<z.ZodEnum<{
425
+ cover: "cover";
426
+ contain: "contain";
427
+ auto: "auto";
428
+ }>>;
429
+ }, z.core.$strict>>;
430
+ stackOrder: z.ZodOptional<z.ZodEnum<{
431
+ normal: "normal";
432
+ reverse: "reverse";
433
+ }>>;
434
+ hidden: z.ZodOptional<z.ZodBoolean>;
435
+ anchor: z.ZodOptional<z.ZodString>;
436
+ }, z.core.$strict>;
437
+ responsive: z.ZodOptional<z.ZodObject<{
438
+ tablet: z.ZodOptional<z.ZodObject<{
439
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
440
+ boxed: "boxed";
441
+ full: "full";
442
+ }>>>>;
443
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
444
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
445
+ none: "none";
446
+ xs: "xs";
447
+ s: "s";
448
+ m: "m";
449
+ l: "l";
450
+ xl: "xl";
451
+ "2xl": "2xl";
452
+ }>, z.ZodNumber]>>>>;
453
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
454
+ none: "none";
455
+ xs: "xs";
456
+ s: "s";
457
+ m: "m";
458
+ l: "l";
459
+ xl: "xl";
460
+ "2xl": "2xl";
461
+ }>, z.ZodNumber]>>>>;
462
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
463
+ none: "none";
464
+ xs: "xs";
465
+ s: "s";
466
+ m: "m";
467
+ l: "l";
468
+ xl: "xl";
469
+ "2xl": "2xl";
470
+ }>, z.ZodNumber]>>>>;
471
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
472
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
473
+ top: "top";
474
+ center: "center";
475
+ bottom: "bottom";
476
+ stretch: "stretch";
477
+ }>>>>;
478
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
479
+ color: z.ZodOptional<z.ZodString>;
480
+ image: z.ZodOptional<z.ZodString>;
481
+ overlay: z.ZodOptional<z.ZodString>;
482
+ position: z.ZodOptional<z.ZodEnum<{
483
+ top: "top";
484
+ center: "center";
485
+ bottom: "bottom";
486
+ left: "left";
487
+ right: "right";
488
+ "top left": "top left";
489
+ "top right": "top right";
490
+ "bottom left": "bottom left";
491
+ "bottom right": "bottom right";
492
+ }>>;
493
+ size: z.ZodOptional<z.ZodEnum<{
494
+ cover: "cover";
495
+ contain: "contain";
496
+ auto: "auto";
497
+ }>>;
498
+ }, z.core.$strict>>>>;
499
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
500
+ normal: "normal";
501
+ reverse: "reverse";
502
+ }>>>>;
503
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
504
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
505
+ }, z.core.$strict>>;
506
+ phone: z.ZodOptional<z.ZodObject<{
507
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
508
+ boxed: "boxed";
509
+ full: "full";
510
+ }>>>>;
511
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
512
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
513
+ none: "none";
514
+ xs: "xs";
515
+ s: "s";
516
+ m: "m";
517
+ l: "l";
518
+ xl: "xl";
519
+ "2xl": "2xl";
520
+ }>, z.ZodNumber]>>>>;
521
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
522
+ none: "none";
523
+ xs: "xs";
524
+ s: "s";
525
+ m: "m";
526
+ l: "l";
527
+ xl: "xl";
528
+ "2xl": "2xl";
529
+ }>, z.ZodNumber]>>>>;
530
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
531
+ none: "none";
532
+ xs: "xs";
533
+ s: "s";
534
+ m: "m";
535
+ l: "l";
536
+ xl: "xl";
537
+ "2xl": "2xl";
538
+ }>, z.ZodNumber]>>>>;
539
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
540
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
541
+ top: "top";
542
+ center: "center";
543
+ bottom: "bottom";
544
+ stretch: "stretch";
545
+ }>>>>;
546
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
547
+ color: z.ZodOptional<z.ZodString>;
548
+ image: z.ZodOptional<z.ZodString>;
549
+ overlay: z.ZodOptional<z.ZodString>;
550
+ position: z.ZodOptional<z.ZodEnum<{
551
+ top: "top";
552
+ center: "center";
553
+ bottom: "bottom";
554
+ left: "left";
555
+ right: "right";
556
+ "top left": "top left";
557
+ "top right": "top right";
558
+ "bottom left": "bottom left";
559
+ "bottom right": "bottom right";
560
+ }>>;
561
+ size: z.ZodOptional<z.ZodEnum<{
562
+ cover: "cover";
563
+ contain: "contain";
564
+ auto: "auto";
565
+ }>>;
566
+ }, z.core.$strict>>>>;
567
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
568
+ normal: "normal";
569
+ reverse: "reverse";
570
+ }>>>>;
571
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
572
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
573
+ }, z.core.$strict>>;
574
+ }, z.core.$strict>>;
575
+ columns: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ type: z.ZodLiteral<"column">;
578
+ props: z.ZodObject<{
579
+ width: z.ZodNumber;
580
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
581
+ top: "top";
582
+ center: "center";
583
+ bottom: "bottom";
584
+ stretch: "stretch";
585
+ }>>;
586
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
587
+ none: "none";
588
+ xs: "xs";
589
+ s: "s";
590
+ m: "m";
591
+ l: "l";
592
+ xl: "xl";
593
+ "2xl": "2xl";
594
+ }>, z.ZodNumber]>>;
595
+ background: z.ZodOptional<z.ZodObject<{
596
+ color: z.ZodOptional<z.ZodString>;
597
+ image: z.ZodOptional<z.ZodString>;
598
+ overlay: z.ZodOptional<z.ZodString>;
599
+ position: z.ZodOptional<z.ZodEnum<{
600
+ top: "top";
601
+ center: "center";
602
+ bottom: "bottom";
603
+ left: "left";
604
+ right: "right";
605
+ "top left": "top left";
606
+ "top right": "top right";
607
+ "bottom left": "bottom left";
608
+ "bottom right": "bottom right";
609
+ }>>;
610
+ size: z.ZodOptional<z.ZodEnum<{
611
+ cover: "cover";
612
+ contain: "contain";
613
+ auto: "auto";
614
+ }>>;
615
+ }, z.core.$strict>>;
616
+ hidden: z.ZodOptional<z.ZodBoolean>;
617
+ anchor: z.ZodOptional<z.ZodString>;
618
+ }, z.core.$strict>;
619
+ responsive: z.ZodOptional<z.ZodObject<{
620
+ tablet: z.ZodOptional<z.ZodObject<{
621
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
622
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
623
+ top: "top";
624
+ center: "center";
625
+ bottom: "bottom";
626
+ stretch: "stretch";
627
+ }>>>;
628
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
629
+ none: "none";
630
+ xs: "xs";
631
+ s: "s";
632
+ m: "m";
633
+ l: "l";
634
+ xl: "xl";
635
+ "2xl": "2xl";
636
+ }>, z.ZodNumber]>>>;
637
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
638
+ color: z.ZodOptional<z.ZodString>;
639
+ image: z.ZodOptional<z.ZodString>;
640
+ overlay: z.ZodOptional<z.ZodString>;
641
+ position: z.ZodOptional<z.ZodEnum<{
642
+ top: "top";
643
+ center: "center";
644
+ bottom: "bottom";
645
+ left: "left";
646
+ right: "right";
647
+ "top left": "top left";
648
+ "top right": "top right";
649
+ "bottom left": "bottom left";
650
+ "bottom right": "bottom right";
651
+ }>>;
652
+ size: z.ZodOptional<z.ZodEnum<{
653
+ cover: "cover";
654
+ contain: "contain";
655
+ auto: "auto";
656
+ }>>;
657
+ }, z.core.$strict>>>;
658
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
659
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ }, z.core.$strict>>;
661
+ phone: z.ZodOptional<z.ZodObject<{
662
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
663
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
664
+ top: "top";
665
+ center: "center";
666
+ bottom: "bottom";
667
+ stretch: "stretch";
668
+ }>>>;
669
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
670
+ none: "none";
671
+ xs: "xs";
672
+ s: "s";
673
+ m: "m";
674
+ l: "l";
675
+ xl: "xl";
676
+ "2xl": "2xl";
677
+ }>, z.ZodNumber]>>>;
678
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
679
+ color: z.ZodOptional<z.ZodString>;
680
+ image: z.ZodOptional<z.ZodString>;
681
+ overlay: z.ZodOptional<z.ZodString>;
682
+ position: z.ZodOptional<z.ZodEnum<{
683
+ top: "top";
684
+ center: "center";
685
+ bottom: "bottom";
686
+ left: "left";
687
+ right: "right";
688
+ "top left": "top left";
689
+ "top right": "top right";
690
+ "bottom left": "bottom left";
691
+ "bottom right": "bottom right";
692
+ }>>;
693
+ size: z.ZodOptional<z.ZodEnum<{
694
+ cover: "cover";
695
+ contain: "contain";
696
+ auto: "auto";
697
+ }>>;
698
+ }, z.core.$strict>>>;
699
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
700
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
+ }, z.core.$strict>>;
702
+ }, z.core.$strict>>;
703
+ children: z.ZodArray<z.ZodObject<{
704
+ id: z.ZodString;
705
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
706
+ v: z.ZodNumber;
707
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
708
+ responsive: z.ZodOptional<z.ZodObject<{
709
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
710
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
711
+ }, z.core.$strict>>;
712
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
713
+ source: z.ZodString;
714
+ }, z.core.$strict>, z.ZodObject<{
715
+ source: z.ZodString;
716
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
717
+ }, z.core.$strict>]>>>>;
718
+ }, z.core.$strict>>;
719
+ }, z.core.$strict>>;
720
+ }, z.core.$strict>;
721
+ type InnerSectionNode = z.infer<typeof innerSectionNodeSchema>;
722
+ declare const columnNodeSchema: z.ZodObject<{
723
+ id: z.ZodString;
724
+ type: z.ZodLiteral<"column">;
725
+ props: z.ZodObject<{
726
+ width: z.ZodNumber;
727
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
728
+ top: "top";
729
+ center: "center";
730
+ bottom: "bottom";
731
+ stretch: "stretch";
732
+ }>>;
733
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
734
+ none: "none";
735
+ xs: "xs";
736
+ s: "s";
737
+ m: "m";
738
+ l: "l";
739
+ xl: "xl";
740
+ "2xl": "2xl";
741
+ }>, z.ZodNumber]>>;
742
+ background: z.ZodOptional<z.ZodObject<{
743
+ color: z.ZodOptional<z.ZodString>;
744
+ image: z.ZodOptional<z.ZodString>;
745
+ overlay: z.ZodOptional<z.ZodString>;
746
+ position: z.ZodOptional<z.ZodEnum<{
747
+ top: "top";
748
+ center: "center";
749
+ bottom: "bottom";
750
+ left: "left";
751
+ right: "right";
752
+ "top left": "top left";
753
+ "top right": "top right";
754
+ "bottom left": "bottom left";
755
+ "bottom right": "bottom right";
756
+ }>>;
757
+ size: z.ZodOptional<z.ZodEnum<{
758
+ cover: "cover";
759
+ contain: "contain";
760
+ auto: "auto";
761
+ }>>;
762
+ }, z.core.$strict>>;
763
+ hidden: z.ZodOptional<z.ZodBoolean>;
764
+ anchor: z.ZodOptional<z.ZodString>;
765
+ }, z.core.$strict>;
766
+ responsive: z.ZodOptional<z.ZodObject<{
767
+ tablet: z.ZodOptional<z.ZodObject<{
768
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
770
+ top: "top";
771
+ center: "center";
772
+ bottom: "bottom";
773
+ stretch: "stretch";
774
+ }>>>;
775
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
776
+ none: "none";
777
+ xs: "xs";
778
+ s: "s";
779
+ m: "m";
780
+ l: "l";
781
+ xl: "xl";
782
+ "2xl": "2xl";
783
+ }>, z.ZodNumber]>>>;
784
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
785
+ color: z.ZodOptional<z.ZodString>;
786
+ image: z.ZodOptional<z.ZodString>;
787
+ overlay: z.ZodOptional<z.ZodString>;
788
+ position: z.ZodOptional<z.ZodEnum<{
789
+ top: "top";
790
+ center: "center";
791
+ bottom: "bottom";
792
+ left: "left";
793
+ right: "right";
794
+ "top left": "top left";
795
+ "top right": "top right";
796
+ "bottom left": "bottom left";
797
+ "bottom right": "bottom right";
798
+ }>>;
799
+ size: z.ZodOptional<z.ZodEnum<{
800
+ cover: "cover";
801
+ contain: "contain";
802
+ auto: "auto";
803
+ }>>;
804
+ }, z.core.$strict>>>;
805
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
806
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
+ }, z.core.$strict>>;
808
+ phone: z.ZodOptional<z.ZodObject<{
809
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
810
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
811
+ top: "top";
812
+ center: "center";
813
+ bottom: "bottom";
814
+ stretch: "stretch";
815
+ }>>>;
816
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
817
+ none: "none";
818
+ xs: "xs";
819
+ s: "s";
820
+ m: "m";
821
+ l: "l";
822
+ xl: "xl";
823
+ "2xl": "2xl";
824
+ }>, z.ZodNumber]>>>;
825
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
826
+ color: z.ZodOptional<z.ZodString>;
827
+ image: z.ZodOptional<z.ZodString>;
828
+ overlay: z.ZodOptional<z.ZodString>;
829
+ position: z.ZodOptional<z.ZodEnum<{
830
+ top: "top";
831
+ center: "center";
832
+ bottom: "bottom";
833
+ left: "left";
834
+ right: "right";
835
+ "top left": "top left";
836
+ "top right": "top right";
837
+ "bottom left": "bottom left";
838
+ "bottom right": "bottom right";
839
+ }>>;
840
+ size: z.ZodOptional<z.ZodEnum<{
841
+ cover: "cover";
842
+ contain: "contain";
843
+ auto: "auto";
844
+ }>>;
845
+ }, z.core.$strict>>>;
846
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
847
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
+ }, z.core.$strict>>;
849
+ }, z.core.$strict>>;
850
+ children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
851
+ id: z.ZodString;
852
+ type: z.ZodLiteral<"inner-section">;
853
+ props: z.ZodObject<{
854
+ width: z.ZodOptional<z.ZodEnum<{
855
+ boxed: "boxed";
856
+ full: "full";
857
+ }>>;
858
+ contentWidth: z.ZodOptional<z.ZodNumber>;
859
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
860
+ none: "none";
861
+ xs: "xs";
862
+ s: "s";
863
+ m: "m";
864
+ l: "l";
865
+ xl: "xl";
866
+ "2xl": "2xl";
867
+ }>, z.ZodNumber]>>;
868
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
869
+ none: "none";
870
+ xs: "xs";
871
+ s: "s";
872
+ m: "m";
873
+ l: "l";
874
+ xl: "xl";
875
+ "2xl": "2xl";
876
+ }>, z.ZodNumber]>>;
877
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
878
+ none: "none";
879
+ xs: "xs";
880
+ s: "s";
881
+ m: "m";
882
+ l: "l";
883
+ xl: "xl";
884
+ "2xl": "2xl";
885
+ }>, z.ZodNumber]>>;
886
+ minHeight: z.ZodOptional<z.ZodNumber>;
887
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
888
+ top: "top";
889
+ center: "center";
890
+ bottom: "bottom";
891
+ stretch: "stretch";
892
+ }>>;
893
+ background: z.ZodOptional<z.ZodObject<{
894
+ color: z.ZodOptional<z.ZodString>;
895
+ image: z.ZodOptional<z.ZodString>;
896
+ overlay: z.ZodOptional<z.ZodString>;
897
+ position: z.ZodOptional<z.ZodEnum<{
898
+ top: "top";
899
+ center: "center";
900
+ bottom: "bottom";
901
+ left: "left";
902
+ right: "right";
903
+ "top left": "top left";
904
+ "top right": "top right";
905
+ "bottom left": "bottom left";
906
+ "bottom right": "bottom right";
907
+ }>>;
908
+ size: z.ZodOptional<z.ZodEnum<{
909
+ cover: "cover";
910
+ contain: "contain";
911
+ auto: "auto";
912
+ }>>;
913
+ }, z.core.$strict>>;
914
+ stackOrder: z.ZodOptional<z.ZodEnum<{
915
+ normal: "normal";
916
+ reverse: "reverse";
917
+ }>>;
918
+ hidden: z.ZodOptional<z.ZodBoolean>;
919
+ anchor: z.ZodOptional<z.ZodString>;
920
+ }, z.core.$strict>;
921
+ responsive: z.ZodOptional<z.ZodObject<{
922
+ tablet: z.ZodOptional<z.ZodObject<{
923
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
924
+ boxed: "boxed";
925
+ full: "full";
926
+ }>>>>;
927
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
928
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
929
+ none: "none";
930
+ xs: "xs";
931
+ s: "s";
932
+ m: "m";
933
+ l: "l";
934
+ xl: "xl";
935
+ "2xl": "2xl";
936
+ }>, z.ZodNumber]>>>>;
937
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
938
+ none: "none";
939
+ xs: "xs";
940
+ s: "s";
941
+ m: "m";
942
+ l: "l";
943
+ xl: "xl";
944
+ "2xl": "2xl";
945
+ }>, z.ZodNumber]>>>>;
946
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
947
+ none: "none";
948
+ xs: "xs";
949
+ s: "s";
950
+ m: "m";
951
+ l: "l";
952
+ xl: "xl";
953
+ "2xl": "2xl";
954
+ }>, z.ZodNumber]>>>>;
955
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
956
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
957
+ top: "top";
958
+ center: "center";
959
+ bottom: "bottom";
960
+ stretch: "stretch";
961
+ }>>>>;
962
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
963
+ color: z.ZodOptional<z.ZodString>;
964
+ image: z.ZodOptional<z.ZodString>;
965
+ overlay: z.ZodOptional<z.ZodString>;
966
+ position: z.ZodOptional<z.ZodEnum<{
967
+ top: "top";
968
+ center: "center";
969
+ bottom: "bottom";
970
+ left: "left";
971
+ right: "right";
972
+ "top left": "top left";
973
+ "top right": "top right";
974
+ "bottom left": "bottom left";
975
+ "bottom right": "bottom right";
976
+ }>>;
977
+ size: z.ZodOptional<z.ZodEnum<{
978
+ cover: "cover";
979
+ contain: "contain";
980
+ auto: "auto";
981
+ }>>;
982
+ }, z.core.$strict>>>>;
983
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
984
+ normal: "normal";
985
+ reverse: "reverse";
986
+ }>>>>;
987
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
988
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
989
+ }, z.core.$strict>>;
990
+ phone: z.ZodOptional<z.ZodObject<{
991
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
992
+ boxed: "boxed";
993
+ full: "full";
994
+ }>>>>;
995
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
996
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
997
+ none: "none";
998
+ xs: "xs";
999
+ s: "s";
1000
+ m: "m";
1001
+ l: "l";
1002
+ xl: "xl";
1003
+ "2xl": "2xl";
1004
+ }>, z.ZodNumber]>>>>;
1005
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1006
+ none: "none";
1007
+ xs: "xs";
1008
+ s: "s";
1009
+ m: "m";
1010
+ l: "l";
1011
+ xl: "xl";
1012
+ "2xl": "2xl";
1013
+ }>, z.ZodNumber]>>>>;
1014
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1015
+ none: "none";
1016
+ xs: "xs";
1017
+ s: "s";
1018
+ m: "m";
1019
+ l: "l";
1020
+ xl: "xl";
1021
+ "2xl": "2xl";
1022
+ }>, z.ZodNumber]>>>>;
1023
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1024
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1025
+ top: "top";
1026
+ center: "center";
1027
+ bottom: "bottom";
1028
+ stretch: "stretch";
1029
+ }>>>>;
1030
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1031
+ color: z.ZodOptional<z.ZodString>;
1032
+ image: z.ZodOptional<z.ZodString>;
1033
+ overlay: z.ZodOptional<z.ZodString>;
1034
+ position: z.ZodOptional<z.ZodEnum<{
1035
+ top: "top";
1036
+ center: "center";
1037
+ bottom: "bottom";
1038
+ left: "left";
1039
+ right: "right";
1040
+ "top left": "top left";
1041
+ "top right": "top right";
1042
+ "bottom left": "bottom left";
1043
+ "bottom right": "bottom right";
1044
+ }>>;
1045
+ size: z.ZodOptional<z.ZodEnum<{
1046
+ cover: "cover";
1047
+ contain: "contain";
1048
+ auto: "auto";
1049
+ }>>;
1050
+ }, z.core.$strict>>>>;
1051
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1052
+ normal: "normal";
1053
+ reverse: "reverse";
1054
+ }>>>>;
1055
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1056
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1057
+ }, z.core.$strict>>;
1058
+ }, z.core.$strict>>;
1059
+ columns: z.ZodArray<z.ZodObject<{
1060
+ id: z.ZodString;
1061
+ type: z.ZodLiteral<"column">;
1062
+ props: z.ZodObject<{
1063
+ width: z.ZodNumber;
1064
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
1065
+ top: "top";
1066
+ center: "center";
1067
+ bottom: "bottom";
1068
+ stretch: "stretch";
1069
+ }>>;
1070
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1071
+ none: "none";
1072
+ xs: "xs";
1073
+ s: "s";
1074
+ m: "m";
1075
+ l: "l";
1076
+ xl: "xl";
1077
+ "2xl": "2xl";
1078
+ }>, z.ZodNumber]>>;
1079
+ background: z.ZodOptional<z.ZodObject<{
1080
+ color: z.ZodOptional<z.ZodString>;
1081
+ image: z.ZodOptional<z.ZodString>;
1082
+ overlay: z.ZodOptional<z.ZodString>;
1083
+ position: z.ZodOptional<z.ZodEnum<{
1084
+ top: "top";
1085
+ center: "center";
1086
+ bottom: "bottom";
1087
+ left: "left";
1088
+ right: "right";
1089
+ "top left": "top left";
1090
+ "top right": "top right";
1091
+ "bottom left": "bottom left";
1092
+ "bottom right": "bottom right";
1093
+ }>>;
1094
+ size: z.ZodOptional<z.ZodEnum<{
1095
+ cover: "cover";
1096
+ contain: "contain";
1097
+ auto: "auto";
1098
+ }>>;
1099
+ }, z.core.$strict>>;
1100
+ hidden: z.ZodOptional<z.ZodBoolean>;
1101
+ anchor: z.ZodOptional<z.ZodString>;
1102
+ }, z.core.$strict>;
1103
+ responsive: z.ZodOptional<z.ZodObject<{
1104
+ tablet: z.ZodOptional<z.ZodObject<{
1105
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1106
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1107
+ top: "top";
1108
+ center: "center";
1109
+ bottom: "bottom";
1110
+ stretch: "stretch";
1111
+ }>>>;
1112
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1113
+ none: "none";
1114
+ xs: "xs";
1115
+ s: "s";
1116
+ m: "m";
1117
+ l: "l";
1118
+ xl: "xl";
1119
+ "2xl": "2xl";
1120
+ }>, z.ZodNumber]>>>;
1121
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1122
+ color: z.ZodOptional<z.ZodString>;
1123
+ image: z.ZodOptional<z.ZodString>;
1124
+ overlay: z.ZodOptional<z.ZodString>;
1125
+ position: z.ZodOptional<z.ZodEnum<{
1126
+ top: "top";
1127
+ center: "center";
1128
+ bottom: "bottom";
1129
+ left: "left";
1130
+ right: "right";
1131
+ "top left": "top left";
1132
+ "top right": "top right";
1133
+ "bottom left": "bottom left";
1134
+ "bottom right": "bottom right";
1135
+ }>>;
1136
+ size: z.ZodOptional<z.ZodEnum<{
1137
+ cover: "cover";
1138
+ contain: "contain";
1139
+ auto: "auto";
1140
+ }>>;
1141
+ }, z.core.$strict>>>;
1142
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1143
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
+ }, z.core.$strict>>;
1145
+ phone: z.ZodOptional<z.ZodObject<{
1146
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1147
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1148
+ top: "top";
1149
+ center: "center";
1150
+ bottom: "bottom";
1151
+ stretch: "stretch";
1152
+ }>>>;
1153
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1154
+ none: "none";
1155
+ xs: "xs";
1156
+ s: "s";
1157
+ m: "m";
1158
+ l: "l";
1159
+ xl: "xl";
1160
+ "2xl": "2xl";
1161
+ }>, z.ZodNumber]>>>;
1162
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1163
+ color: z.ZodOptional<z.ZodString>;
1164
+ image: z.ZodOptional<z.ZodString>;
1165
+ overlay: z.ZodOptional<z.ZodString>;
1166
+ position: z.ZodOptional<z.ZodEnum<{
1167
+ top: "top";
1168
+ center: "center";
1169
+ bottom: "bottom";
1170
+ left: "left";
1171
+ right: "right";
1172
+ "top left": "top left";
1173
+ "top right": "top right";
1174
+ "bottom left": "bottom left";
1175
+ "bottom right": "bottom right";
1176
+ }>>;
1177
+ size: z.ZodOptional<z.ZodEnum<{
1178
+ cover: "cover";
1179
+ contain: "contain";
1180
+ auto: "auto";
1181
+ }>>;
1182
+ }, z.core.$strict>>>;
1183
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1184
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1185
+ }, z.core.$strict>>;
1186
+ }, z.core.$strict>>;
1187
+ children: z.ZodArray<z.ZodObject<{
1188
+ id: z.ZodString;
1189
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
1190
+ v: z.ZodNumber;
1191
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1192
+ responsive: z.ZodOptional<z.ZodObject<{
1193
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1194
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1195
+ }, z.core.$strict>>;
1196
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1197
+ source: z.ZodString;
1198
+ }, z.core.$strict>, z.ZodObject<{
1199
+ source: z.ZodString;
1200
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1201
+ }, z.core.$strict>]>>>>;
1202
+ }, z.core.$strict>>;
1203
+ }, z.core.$strict>>;
1204
+ }, z.core.$strict>, z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
1207
+ v: z.ZodNumber;
1208
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1209
+ responsive: z.ZodOptional<z.ZodObject<{
1210
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1211
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1212
+ }, z.core.$strict>>;
1213
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1214
+ source: z.ZodString;
1215
+ }, z.core.$strict>, z.ZodObject<{
1216
+ source: z.ZodString;
1217
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1218
+ }, z.core.$strict>]>>>>;
1219
+ }, z.core.$strict>]>>;
1220
+ }, z.core.$strict>;
1221
+ type ColumnNode = z.infer<typeof columnNodeSchema>;
1222
+ declare const sectionNodeSchema: z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ type: z.ZodLiteral<"section">;
1225
+ props: z.ZodObject<{
1226
+ width: z.ZodOptional<z.ZodEnum<{
1227
+ boxed: "boxed";
1228
+ full: "full";
1229
+ }>>;
1230
+ contentWidth: z.ZodOptional<z.ZodNumber>;
1231
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1232
+ none: "none";
1233
+ xs: "xs";
1234
+ s: "s";
1235
+ m: "m";
1236
+ l: "l";
1237
+ xl: "xl";
1238
+ "2xl": "2xl";
1239
+ }>, z.ZodNumber]>>;
1240
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1241
+ none: "none";
1242
+ xs: "xs";
1243
+ s: "s";
1244
+ m: "m";
1245
+ l: "l";
1246
+ xl: "xl";
1247
+ "2xl": "2xl";
1248
+ }>, z.ZodNumber]>>;
1249
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1250
+ none: "none";
1251
+ xs: "xs";
1252
+ s: "s";
1253
+ m: "m";
1254
+ l: "l";
1255
+ xl: "xl";
1256
+ "2xl": "2xl";
1257
+ }>, z.ZodNumber]>>;
1258
+ minHeight: z.ZodOptional<z.ZodNumber>;
1259
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
1260
+ top: "top";
1261
+ center: "center";
1262
+ bottom: "bottom";
1263
+ stretch: "stretch";
1264
+ }>>;
1265
+ background: z.ZodOptional<z.ZodObject<{
1266
+ color: z.ZodOptional<z.ZodString>;
1267
+ image: z.ZodOptional<z.ZodString>;
1268
+ overlay: z.ZodOptional<z.ZodString>;
1269
+ position: z.ZodOptional<z.ZodEnum<{
1270
+ top: "top";
1271
+ center: "center";
1272
+ bottom: "bottom";
1273
+ left: "left";
1274
+ right: "right";
1275
+ "top left": "top left";
1276
+ "top right": "top right";
1277
+ "bottom left": "bottom left";
1278
+ "bottom right": "bottom right";
1279
+ }>>;
1280
+ size: z.ZodOptional<z.ZodEnum<{
1281
+ cover: "cover";
1282
+ contain: "contain";
1283
+ auto: "auto";
1284
+ }>>;
1285
+ }, z.core.$strict>>;
1286
+ stackOrder: z.ZodOptional<z.ZodEnum<{
1287
+ normal: "normal";
1288
+ reverse: "reverse";
1289
+ }>>;
1290
+ hidden: z.ZodOptional<z.ZodBoolean>;
1291
+ anchor: z.ZodOptional<z.ZodString>;
1292
+ }, z.core.$strict>;
1293
+ responsive: z.ZodOptional<z.ZodObject<{
1294
+ tablet: z.ZodOptional<z.ZodObject<{
1295
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1296
+ boxed: "boxed";
1297
+ full: "full";
1298
+ }>>>>;
1299
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1300
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1301
+ none: "none";
1302
+ xs: "xs";
1303
+ s: "s";
1304
+ m: "m";
1305
+ l: "l";
1306
+ xl: "xl";
1307
+ "2xl": "2xl";
1308
+ }>, z.ZodNumber]>>>>;
1309
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1310
+ none: "none";
1311
+ xs: "xs";
1312
+ s: "s";
1313
+ m: "m";
1314
+ l: "l";
1315
+ xl: "xl";
1316
+ "2xl": "2xl";
1317
+ }>, z.ZodNumber]>>>>;
1318
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1319
+ none: "none";
1320
+ xs: "xs";
1321
+ s: "s";
1322
+ m: "m";
1323
+ l: "l";
1324
+ xl: "xl";
1325
+ "2xl": "2xl";
1326
+ }>, z.ZodNumber]>>>>;
1327
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1328
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1329
+ top: "top";
1330
+ center: "center";
1331
+ bottom: "bottom";
1332
+ stretch: "stretch";
1333
+ }>>>>;
1334
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1335
+ color: z.ZodOptional<z.ZodString>;
1336
+ image: z.ZodOptional<z.ZodString>;
1337
+ overlay: z.ZodOptional<z.ZodString>;
1338
+ position: z.ZodOptional<z.ZodEnum<{
1339
+ top: "top";
1340
+ center: "center";
1341
+ bottom: "bottom";
1342
+ left: "left";
1343
+ right: "right";
1344
+ "top left": "top left";
1345
+ "top right": "top right";
1346
+ "bottom left": "bottom left";
1347
+ "bottom right": "bottom right";
1348
+ }>>;
1349
+ size: z.ZodOptional<z.ZodEnum<{
1350
+ cover: "cover";
1351
+ contain: "contain";
1352
+ auto: "auto";
1353
+ }>>;
1354
+ }, z.core.$strict>>>>;
1355
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1356
+ normal: "normal";
1357
+ reverse: "reverse";
1358
+ }>>>>;
1359
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1360
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1361
+ }, z.core.$strict>>;
1362
+ phone: z.ZodOptional<z.ZodObject<{
1363
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1364
+ boxed: "boxed";
1365
+ full: "full";
1366
+ }>>>>;
1367
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1368
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1369
+ none: "none";
1370
+ xs: "xs";
1371
+ s: "s";
1372
+ m: "m";
1373
+ l: "l";
1374
+ xl: "xl";
1375
+ "2xl": "2xl";
1376
+ }>, z.ZodNumber]>>>>;
1377
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1378
+ none: "none";
1379
+ xs: "xs";
1380
+ s: "s";
1381
+ m: "m";
1382
+ l: "l";
1383
+ xl: "xl";
1384
+ "2xl": "2xl";
1385
+ }>, z.ZodNumber]>>>>;
1386
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1387
+ none: "none";
1388
+ xs: "xs";
1389
+ s: "s";
1390
+ m: "m";
1391
+ l: "l";
1392
+ xl: "xl";
1393
+ "2xl": "2xl";
1394
+ }>, z.ZodNumber]>>>>;
1395
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1396
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1397
+ top: "top";
1398
+ center: "center";
1399
+ bottom: "bottom";
1400
+ stretch: "stretch";
1401
+ }>>>>;
1402
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1403
+ color: z.ZodOptional<z.ZodString>;
1404
+ image: z.ZodOptional<z.ZodString>;
1405
+ overlay: z.ZodOptional<z.ZodString>;
1406
+ position: z.ZodOptional<z.ZodEnum<{
1407
+ top: "top";
1408
+ center: "center";
1409
+ bottom: "bottom";
1410
+ left: "left";
1411
+ right: "right";
1412
+ "top left": "top left";
1413
+ "top right": "top right";
1414
+ "bottom left": "bottom left";
1415
+ "bottom right": "bottom right";
1416
+ }>>;
1417
+ size: z.ZodOptional<z.ZodEnum<{
1418
+ cover: "cover";
1419
+ contain: "contain";
1420
+ auto: "auto";
1421
+ }>>;
1422
+ }, z.core.$strict>>>>;
1423
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1424
+ normal: "normal";
1425
+ reverse: "reverse";
1426
+ }>>>>;
1427
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1428
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1429
+ }, z.core.$strict>>;
1430
+ }, z.core.$strict>>;
1431
+ columns: z.ZodArray<z.ZodObject<{
1432
+ id: z.ZodString;
1433
+ type: z.ZodLiteral<"column">;
1434
+ props: z.ZodObject<{
1435
+ width: z.ZodNumber;
1436
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
1437
+ top: "top";
1438
+ center: "center";
1439
+ bottom: "bottom";
1440
+ stretch: "stretch";
1441
+ }>>;
1442
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1443
+ none: "none";
1444
+ xs: "xs";
1445
+ s: "s";
1446
+ m: "m";
1447
+ l: "l";
1448
+ xl: "xl";
1449
+ "2xl": "2xl";
1450
+ }>, z.ZodNumber]>>;
1451
+ background: z.ZodOptional<z.ZodObject<{
1452
+ color: z.ZodOptional<z.ZodString>;
1453
+ image: z.ZodOptional<z.ZodString>;
1454
+ overlay: z.ZodOptional<z.ZodString>;
1455
+ position: z.ZodOptional<z.ZodEnum<{
1456
+ top: "top";
1457
+ center: "center";
1458
+ bottom: "bottom";
1459
+ left: "left";
1460
+ right: "right";
1461
+ "top left": "top left";
1462
+ "top right": "top right";
1463
+ "bottom left": "bottom left";
1464
+ "bottom right": "bottom right";
1465
+ }>>;
1466
+ size: z.ZodOptional<z.ZodEnum<{
1467
+ cover: "cover";
1468
+ contain: "contain";
1469
+ auto: "auto";
1470
+ }>>;
1471
+ }, z.core.$strict>>;
1472
+ hidden: z.ZodOptional<z.ZodBoolean>;
1473
+ anchor: z.ZodOptional<z.ZodString>;
1474
+ }, z.core.$strict>;
1475
+ responsive: z.ZodOptional<z.ZodObject<{
1476
+ tablet: z.ZodOptional<z.ZodObject<{
1477
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1478
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1479
+ top: "top";
1480
+ center: "center";
1481
+ bottom: "bottom";
1482
+ stretch: "stretch";
1483
+ }>>>;
1484
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1485
+ none: "none";
1486
+ xs: "xs";
1487
+ s: "s";
1488
+ m: "m";
1489
+ l: "l";
1490
+ xl: "xl";
1491
+ "2xl": "2xl";
1492
+ }>, z.ZodNumber]>>>;
1493
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1494
+ color: z.ZodOptional<z.ZodString>;
1495
+ image: z.ZodOptional<z.ZodString>;
1496
+ overlay: z.ZodOptional<z.ZodString>;
1497
+ position: z.ZodOptional<z.ZodEnum<{
1498
+ top: "top";
1499
+ center: "center";
1500
+ bottom: "bottom";
1501
+ left: "left";
1502
+ right: "right";
1503
+ "top left": "top left";
1504
+ "top right": "top right";
1505
+ "bottom left": "bottom left";
1506
+ "bottom right": "bottom right";
1507
+ }>>;
1508
+ size: z.ZodOptional<z.ZodEnum<{
1509
+ cover: "cover";
1510
+ contain: "contain";
1511
+ auto: "auto";
1512
+ }>>;
1513
+ }, z.core.$strict>>>;
1514
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1515
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
+ }, z.core.$strict>>;
1517
+ phone: z.ZodOptional<z.ZodObject<{
1518
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1519
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1520
+ top: "top";
1521
+ center: "center";
1522
+ bottom: "bottom";
1523
+ stretch: "stretch";
1524
+ }>>>;
1525
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1526
+ none: "none";
1527
+ xs: "xs";
1528
+ s: "s";
1529
+ m: "m";
1530
+ l: "l";
1531
+ xl: "xl";
1532
+ "2xl": "2xl";
1533
+ }>, z.ZodNumber]>>>;
1534
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1535
+ color: z.ZodOptional<z.ZodString>;
1536
+ image: z.ZodOptional<z.ZodString>;
1537
+ overlay: z.ZodOptional<z.ZodString>;
1538
+ position: z.ZodOptional<z.ZodEnum<{
1539
+ top: "top";
1540
+ center: "center";
1541
+ bottom: "bottom";
1542
+ left: "left";
1543
+ right: "right";
1544
+ "top left": "top left";
1545
+ "top right": "top right";
1546
+ "bottom left": "bottom left";
1547
+ "bottom right": "bottom right";
1548
+ }>>;
1549
+ size: z.ZodOptional<z.ZodEnum<{
1550
+ cover: "cover";
1551
+ contain: "contain";
1552
+ auto: "auto";
1553
+ }>>;
1554
+ }, z.core.$strict>>>;
1555
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1556
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1557
+ }, z.core.$strict>>;
1558
+ }, z.core.$strict>>;
1559
+ children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1560
+ id: z.ZodString;
1561
+ type: z.ZodLiteral<"inner-section">;
1562
+ props: z.ZodObject<{
1563
+ width: z.ZodOptional<z.ZodEnum<{
1564
+ boxed: "boxed";
1565
+ full: "full";
1566
+ }>>;
1567
+ contentWidth: z.ZodOptional<z.ZodNumber>;
1568
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1569
+ none: "none";
1570
+ xs: "xs";
1571
+ s: "s";
1572
+ m: "m";
1573
+ l: "l";
1574
+ xl: "xl";
1575
+ "2xl": "2xl";
1576
+ }>, z.ZodNumber]>>;
1577
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1578
+ none: "none";
1579
+ xs: "xs";
1580
+ s: "s";
1581
+ m: "m";
1582
+ l: "l";
1583
+ xl: "xl";
1584
+ "2xl": "2xl";
1585
+ }>, z.ZodNumber]>>;
1586
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1587
+ none: "none";
1588
+ xs: "xs";
1589
+ s: "s";
1590
+ m: "m";
1591
+ l: "l";
1592
+ xl: "xl";
1593
+ "2xl": "2xl";
1594
+ }>, z.ZodNumber]>>;
1595
+ minHeight: z.ZodOptional<z.ZodNumber>;
1596
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
1597
+ top: "top";
1598
+ center: "center";
1599
+ bottom: "bottom";
1600
+ stretch: "stretch";
1601
+ }>>;
1602
+ background: z.ZodOptional<z.ZodObject<{
1603
+ color: z.ZodOptional<z.ZodString>;
1604
+ image: z.ZodOptional<z.ZodString>;
1605
+ overlay: z.ZodOptional<z.ZodString>;
1606
+ position: z.ZodOptional<z.ZodEnum<{
1607
+ top: "top";
1608
+ center: "center";
1609
+ bottom: "bottom";
1610
+ left: "left";
1611
+ right: "right";
1612
+ "top left": "top left";
1613
+ "top right": "top right";
1614
+ "bottom left": "bottom left";
1615
+ "bottom right": "bottom right";
1616
+ }>>;
1617
+ size: z.ZodOptional<z.ZodEnum<{
1618
+ cover: "cover";
1619
+ contain: "contain";
1620
+ auto: "auto";
1621
+ }>>;
1622
+ }, z.core.$strict>>;
1623
+ stackOrder: z.ZodOptional<z.ZodEnum<{
1624
+ normal: "normal";
1625
+ reverse: "reverse";
1626
+ }>>;
1627
+ hidden: z.ZodOptional<z.ZodBoolean>;
1628
+ anchor: z.ZodOptional<z.ZodString>;
1629
+ }, z.core.$strict>;
1630
+ responsive: z.ZodOptional<z.ZodObject<{
1631
+ tablet: z.ZodOptional<z.ZodObject<{
1632
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1633
+ boxed: "boxed";
1634
+ full: "full";
1635
+ }>>>>;
1636
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1637
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1638
+ none: "none";
1639
+ xs: "xs";
1640
+ s: "s";
1641
+ m: "m";
1642
+ l: "l";
1643
+ xl: "xl";
1644
+ "2xl": "2xl";
1645
+ }>, z.ZodNumber]>>>>;
1646
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1647
+ none: "none";
1648
+ xs: "xs";
1649
+ s: "s";
1650
+ m: "m";
1651
+ l: "l";
1652
+ xl: "xl";
1653
+ "2xl": "2xl";
1654
+ }>, z.ZodNumber]>>>>;
1655
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1656
+ none: "none";
1657
+ xs: "xs";
1658
+ s: "s";
1659
+ m: "m";
1660
+ l: "l";
1661
+ xl: "xl";
1662
+ "2xl": "2xl";
1663
+ }>, z.ZodNumber]>>>>;
1664
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1665
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1666
+ top: "top";
1667
+ center: "center";
1668
+ bottom: "bottom";
1669
+ stretch: "stretch";
1670
+ }>>>>;
1671
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1672
+ color: z.ZodOptional<z.ZodString>;
1673
+ image: z.ZodOptional<z.ZodString>;
1674
+ overlay: z.ZodOptional<z.ZodString>;
1675
+ position: z.ZodOptional<z.ZodEnum<{
1676
+ top: "top";
1677
+ center: "center";
1678
+ bottom: "bottom";
1679
+ left: "left";
1680
+ right: "right";
1681
+ "top left": "top left";
1682
+ "top right": "top right";
1683
+ "bottom left": "bottom left";
1684
+ "bottom right": "bottom right";
1685
+ }>>;
1686
+ size: z.ZodOptional<z.ZodEnum<{
1687
+ cover: "cover";
1688
+ contain: "contain";
1689
+ auto: "auto";
1690
+ }>>;
1691
+ }, z.core.$strict>>>>;
1692
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1693
+ normal: "normal";
1694
+ reverse: "reverse";
1695
+ }>>>>;
1696
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1697
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1698
+ }, z.core.$strict>>;
1699
+ phone: z.ZodOptional<z.ZodObject<{
1700
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1701
+ boxed: "boxed";
1702
+ full: "full";
1703
+ }>>>>;
1704
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1705
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1706
+ none: "none";
1707
+ xs: "xs";
1708
+ s: "s";
1709
+ m: "m";
1710
+ l: "l";
1711
+ xl: "xl";
1712
+ "2xl": "2xl";
1713
+ }>, z.ZodNumber]>>>>;
1714
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1715
+ none: "none";
1716
+ xs: "xs";
1717
+ s: "s";
1718
+ m: "m";
1719
+ l: "l";
1720
+ xl: "xl";
1721
+ "2xl": "2xl";
1722
+ }>, z.ZodNumber]>>>>;
1723
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1724
+ none: "none";
1725
+ xs: "xs";
1726
+ s: "s";
1727
+ m: "m";
1728
+ l: "l";
1729
+ xl: "xl";
1730
+ "2xl": "2xl";
1731
+ }>, z.ZodNumber]>>>>;
1732
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1733
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1734
+ top: "top";
1735
+ center: "center";
1736
+ bottom: "bottom";
1737
+ stretch: "stretch";
1738
+ }>>>>;
1739
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
1740
+ color: z.ZodOptional<z.ZodString>;
1741
+ image: z.ZodOptional<z.ZodString>;
1742
+ overlay: z.ZodOptional<z.ZodString>;
1743
+ position: z.ZodOptional<z.ZodEnum<{
1744
+ top: "top";
1745
+ center: "center";
1746
+ bottom: "bottom";
1747
+ left: "left";
1748
+ right: "right";
1749
+ "top left": "top left";
1750
+ "top right": "top right";
1751
+ "bottom left": "bottom left";
1752
+ "bottom right": "bottom right";
1753
+ }>>;
1754
+ size: z.ZodOptional<z.ZodEnum<{
1755
+ cover: "cover";
1756
+ contain: "contain";
1757
+ auto: "auto";
1758
+ }>>;
1759
+ }, z.core.$strict>>>>;
1760
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1761
+ normal: "normal";
1762
+ reverse: "reverse";
1763
+ }>>>>;
1764
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1765
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1766
+ }, z.core.$strict>>;
1767
+ }, z.core.$strict>>;
1768
+ columns: z.ZodArray<z.ZodObject<{
1769
+ id: z.ZodString;
1770
+ type: z.ZodLiteral<"column">;
1771
+ props: z.ZodObject<{
1772
+ width: z.ZodNumber;
1773
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
1774
+ top: "top";
1775
+ center: "center";
1776
+ bottom: "bottom";
1777
+ stretch: "stretch";
1778
+ }>>;
1779
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1780
+ none: "none";
1781
+ xs: "xs";
1782
+ s: "s";
1783
+ m: "m";
1784
+ l: "l";
1785
+ xl: "xl";
1786
+ "2xl": "2xl";
1787
+ }>, z.ZodNumber]>>;
1788
+ background: z.ZodOptional<z.ZodObject<{
1789
+ color: z.ZodOptional<z.ZodString>;
1790
+ image: z.ZodOptional<z.ZodString>;
1791
+ overlay: z.ZodOptional<z.ZodString>;
1792
+ position: z.ZodOptional<z.ZodEnum<{
1793
+ top: "top";
1794
+ center: "center";
1795
+ bottom: "bottom";
1796
+ left: "left";
1797
+ right: "right";
1798
+ "top left": "top left";
1799
+ "top right": "top right";
1800
+ "bottom left": "bottom left";
1801
+ "bottom right": "bottom right";
1802
+ }>>;
1803
+ size: z.ZodOptional<z.ZodEnum<{
1804
+ cover: "cover";
1805
+ contain: "contain";
1806
+ auto: "auto";
1807
+ }>>;
1808
+ }, z.core.$strict>>;
1809
+ hidden: z.ZodOptional<z.ZodBoolean>;
1810
+ anchor: z.ZodOptional<z.ZodString>;
1811
+ }, z.core.$strict>;
1812
+ responsive: z.ZodOptional<z.ZodObject<{
1813
+ tablet: z.ZodOptional<z.ZodObject<{
1814
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1815
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1816
+ top: "top";
1817
+ center: "center";
1818
+ bottom: "bottom";
1819
+ stretch: "stretch";
1820
+ }>>>;
1821
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1822
+ none: "none";
1823
+ xs: "xs";
1824
+ s: "s";
1825
+ m: "m";
1826
+ l: "l";
1827
+ xl: "xl";
1828
+ "2xl": "2xl";
1829
+ }>, z.ZodNumber]>>>;
1830
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1831
+ color: z.ZodOptional<z.ZodString>;
1832
+ image: z.ZodOptional<z.ZodString>;
1833
+ overlay: z.ZodOptional<z.ZodString>;
1834
+ position: z.ZodOptional<z.ZodEnum<{
1835
+ top: "top";
1836
+ center: "center";
1837
+ bottom: "bottom";
1838
+ left: "left";
1839
+ right: "right";
1840
+ "top left": "top left";
1841
+ "top right": "top right";
1842
+ "bottom left": "bottom left";
1843
+ "bottom right": "bottom right";
1844
+ }>>;
1845
+ size: z.ZodOptional<z.ZodEnum<{
1846
+ cover: "cover";
1847
+ contain: "contain";
1848
+ auto: "auto";
1849
+ }>>;
1850
+ }, z.core.$strict>>>;
1851
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1852
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1853
+ }, z.core.$strict>>;
1854
+ phone: z.ZodOptional<z.ZodObject<{
1855
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1856
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1857
+ top: "top";
1858
+ center: "center";
1859
+ bottom: "bottom";
1860
+ stretch: "stretch";
1861
+ }>>>;
1862
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
1863
+ none: "none";
1864
+ xs: "xs";
1865
+ s: "s";
1866
+ m: "m";
1867
+ l: "l";
1868
+ xl: "xl";
1869
+ "2xl": "2xl";
1870
+ }>, z.ZodNumber]>>>;
1871
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1872
+ color: z.ZodOptional<z.ZodString>;
1873
+ image: z.ZodOptional<z.ZodString>;
1874
+ overlay: z.ZodOptional<z.ZodString>;
1875
+ position: z.ZodOptional<z.ZodEnum<{
1876
+ top: "top";
1877
+ center: "center";
1878
+ bottom: "bottom";
1879
+ left: "left";
1880
+ right: "right";
1881
+ "top left": "top left";
1882
+ "top right": "top right";
1883
+ "bottom left": "bottom left";
1884
+ "bottom right": "bottom right";
1885
+ }>>;
1886
+ size: z.ZodOptional<z.ZodEnum<{
1887
+ cover: "cover";
1888
+ contain: "contain";
1889
+ auto: "auto";
1890
+ }>>;
1891
+ }, z.core.$strict>>>;
1892
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1893
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1894
+ }, z.core.$strict>>;
1895
+ }, z.core.$strict>>;
1896
+ children: z.ZodArray<z.ZodObject<{
1897
+ id: z.ZodString;
1898
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
1899
+ v: z.ZodNumber;
1900
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1901
+ responsive: z.ZodOptional<z.ZodObject<{
1902
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1903
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1904
+ }, z.core.$strict>>;
1905
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1906
+ source: z.ZodString;
1907
+ }, z.core.$strict>, z.ZodObject<{
1908
+ source: z.ZodString;
1909
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1910
+ }, z.core.$strict>]>>>>;
1911
+ }, z.core.$strict>>;
1912
+ }, z.core.$strict>>;
1913
+ }, z.core.$strict>, z.ZodObject<{
1914
+ id: z.ZodString;
1915
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
1916
+ v: z.ZodNumber;
1917
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1918
+ responsive: z.ZodOptional<z.ZodObject<{
1919
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1920
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
1921
+ }, z.core.$strict>>;
1922
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1923
+ source: z.ZodString;
1924
+ }, z.core.$strict>, z.ZodObject<{
1925
+ source: z.ZodString;
1926
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
1927
+ }, z.core.$strict>]>>>>;
1928
+ }, z.core.$strict>]>>;
1929
+ }, z.core.$strict>>;
1930
+ }, z.core.$strict>;
1931
+ type SectionNode = z.infer<typeof sectionNodeSchema>;
1932
+ /** A media asset resolved at publish (R3), so a store never calls Throttle per request. */
1933
+ declare const frozenAssetSchema: z.ZodObject<{
1934
+ url: z.ZodString;
1935
+ width: z.ZodNumber;
1936
+ height: z.ZodNumber;
1937
+ variants: z.ZodArray<z.ZodObject<{
1938
+ width: z.ZodNumber;
1939
+ url: z.ZodString;
1940
+ }, z.core.$strict>>;
1941
+ }, z.core.$strict>;
1942
+ type FrozenAsset = z.infer<typeof frozenAssetSchema>;
1943
+ /**
1944
+ * The shape of a frozen custom widget that is common to composite and template
1945
+ * definitions. Task 9 validates the body (`body`, `bindings`, `template`/`ast`,
1946
+ * `css`) with its own schemas, so the extra keys pass through here.
1947
+ */
1948
+ declare const customWidgetSnapshotSchema: z.ZodObject<{
1949
+ kind: z.ZodEnum<{
1950
+ composite: "composite";
1951
+ template: "template";
1952
+ }>;
1953
+ type: z.ZodString;
1954
+ v: z.ZodNumber;
1955
+ title: z.ZodString;
1956
+ description: z.ZodString;
1957
+ icon: z.ZodString;
1958
+ group: z.ZodLiteral<"custom">;
1959
+ settings: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1960
+ renamed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1961
+ removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
1962
+ }, z.core.$loose>;
1963
+ type CustomWidgetSnapshot = z.infer<typeof customWidgetSnapshotSchema>;
1964
+ declare const CURRENT_SCHEMA_VERSION = 1;
1965
+ declare const pageDocumentSchema: z.ZodObject<{
1966
+ schemaVersion: z.ZodLiteral<1>;
1967
+ sections: z.ZodArray<z.ZodObject<{
1968
+ id: z.ZodString;
1969
+ type: z.ZodLiteral<"section">;
1970
+ props: z.ZodObject<{
1971
+ width: z.ZodOptional<z.ZodEnum<{
1972
+ boxed: "boxed";
1973
+ full: "full";
1974
+ }>>;
1975
+ contentWidth: z.ZodOptional<z.ZodNumber>;
1976
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1977
+ none: "none";
1978
+ xs: "xs";
1979
+ s: "s";
1980
+ m: "m";
1981
+ l: "l";
1982
+ xl: "xl";
1983
+ "2xl": "2xl";
1984
+ }>, z.ZodNumber]>>;
1985
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1986
+ none: "none";
1987
+ xs: "xs";
1988
+ s: "s";
1989
+ m: "m";
1990
+ l: "l";
1991
+ xl: "xl";
1992
+ "2xl": "2xl";
1993
+ }>, z.ZodNumber]>>;
1994
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1995
+ none: "none";
1996
+ xs: "xs";
1997
+ s: "s";
1998
+ m: "m";
1999
+ l: "l";
2000
+ xl: "xl";
2001
+ "2xl": "2xl";
2002
+ }>, z.ZodNumber]>>;
2003
+ minHeight: z.ZodOptional<z.ZodNumber>;
2004
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
2005
+ top: "top";
2006
+ center: "center";
2007
+ bottom: "bottom";
2008
+ stretch: "stretch";
2009
+ }>>;
2010
+ background: z.ZodOptional<z.ZodObject<{
2011
+ color: z.ZodOptional<z.ZodString>;
2012
+ image: z.ZodOptional<z.ZodString>;
2013
+ overlay: z.ZodOptional<z.ZodString>;
2014
+ position: z.ZodOptional<z.ZodEnum<{
2015
+ top: "top";
2016
+ center: "center";
2017
+ bottom: "bottom";
2018
+ left: "left";
2019
+ right: "right";
2020
+ "top left": "top left";
2021
+ "top right": "top right";
2022
+ "bottom left": "bottom left";
2023
+ "bottom right": "bottom right";
2024
+ }>>;
2025
+ size: z.ZodOptional<z.ZodEnum<{
2026
+ cover: "cover";
2027
+ contain: "contain";
2028
+ auto: "auto";
2029
+ }>>;
2030
+ }, z.core.$strict>>;
2031
+ stackOrder: z.ZodOptional<z.ZodEnum<{
2032
+ normal: "normal";
2033
+ reverse: "reverse";
2034
+ }>>;
2035
+ hidden: z.ZodOptional<z.ZodBoolean>;
2036
+ anchor: z.ZodOptional<z.ZodString>;
2037
+ }, z.core.$strict>;
2038
+ responsive: z.ZodOptional<z.ZodObject<{
2039
+ tablet: z.ZodOptional<z.ZodObject<{
2040
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2041
+ boxed: "boxed";
2042
+ full: "full";
2043
+ }>>>>;
2044
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2045
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2046
+ none: "none";
2047
+ xs: "xs";
2048
+ s: "s";
2049
+ m: "m";
2050
+ l: "l";
2051
+ xl: "xl";
2052
+ "2xl": "2xl";
2053
+ }>, z.ZodNumber]>>>>;
2054
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2055
+ none: "none";
2056
+ xs: "xs";
2057
+ s: "s";
2058
+ m: "m";
2059
+ l: "l";
2060
+ xl: "xl";
2061
+ "2xl": "2xl";
2062
+ }>, z.ZodNumber]>>>>;
2063
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2064
+ none: "none";
2065
+ xs: "xs";
2066
+ s: "s";
2067
+ m: "m";
2068
+ l: "l";
2069
+ xl: "xl";
2070
+ "2xl": "2xl";
2071
+ }>, z.ZodNumber]>>>>;
2072
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2073
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2074
+ top: "top";
2075
+ center: "center";
2076
+ bottom: "bottom";
2077
+ stretch: "stretch";
2078
+ }>>>>;
2079
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
2080
+ color: z.ZodOptional<z.ZodString>;
2081
+ image: z.ZodOptional<z.ZodString>;
2082
+ overlay: z.ZodOptional<z.ZodString>;
2083
+ position: z.ZodOptional<z.ZodEnum<{
2084
+ top: "top";
2085
+ center: "center";
2086
+ bottom: "bottom";
2087
+ left: "left";
2088
+ right: "right";
2089
+ "top left": "top left";
2090
+ "top right": "top right";
2091
+ "bottom left": "bottom left";
2092
+ "bottom right": "bottom right";
2093
+ }>>;
2094
+ size: z.ZodOptional<z.ZodEnum<{
2095
+ cover: "cover";
2096
+ contain: "contain";
2097
+ auto: "auto";
2098
+ }>>;
2099
+ }, z.core.$strict>>>>;
2100
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2101
+ normal: "normal";
2102
+ reverse: "reverse";
2103
+ }>>>>;
2104
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
2105
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2106
+ }, z.core.$strict>>;
2107
+ phone: z.ZodOptional<z.ZodObject<{
2108
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2109
+ boxed: "boxed";
2110
+ full: "full";
2111
+ }>>>>;
2112
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2113
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2114
+ none: "none";
2115
+ xs: "xs";
2116
+ s: "s";
2117
+ m: "m";
2118
+ l: "l";
2119
+ xl: "xl";
2120
+ "2xl": "2xl";
2121
+ }>, z.ZodNumber]>>>>;
2122
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2123
+ none: "none";
2124
+ xs: "xs";
2125
+ s: "s";
2126
+ m: "m";
2127
+ l: "l";
2128
+ xl: "xl";
2129
+ "2xl": "2xl";
2130
+ }>, z.ZodNumber]>>>>;
2131
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2132
+ none: "none";
2133
+ xs: "xs";
2134
+ s: "s";
2135
+ m: "m";
2136
+ l: "l";
2137
+ xl: "xl";
2138
+ "2xl": "2xl";
2139
+ }>, z.ZodNumber]>>>>;
2140
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2141
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2142
+ top: "top";
2143
+ center: "center";
2144
+ bottom: "bottom";
2145
+ stretch: "stretch";
2146
+ }>>>>;
2147
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
2148
+ color: z.ZodOptional<z.ZodString>;
2149
+ image: z.ZodOptional<z.ZodString>;
2150
+ overlay: z.ZodOptional<z.ZodString>;
2151
+ position: z.ZodOptional<z.ZodEnum<{
2152
+ top: "top";
2153
+ center: "center";
2154
+ bottom: "bottom";
2155
+ left: "left";
2156
+ right: "right";
2157
+ "top left": "top left";
2158
+ "top right": "top right";
2159
+ "bottom left": "bottom left";
2160
+ "bottom right": "bottom right";
2161
+ }>>;
2162
+ size: z.ZodOptional<z.ZodEnum<{
2163
+ cover: "cover";
2164
+ contain: "contain";
2165
+ auto: "auto";
2166
+ }>>;
2167
+ }, z.core.$strict>>>>;
2168
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2169
+ normal: "normal";
2170
+ reverse: "reverse";
2171
+ }>>>>;
2172
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
2173
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2174
+ }, z.core.$strict>>;
2175
+ }, z.core.$strict>>;
2176
+ columns: z.ZodArray<z.ZodObject<{
2177
+ id: z.ZodString;
2178
+ type: z.ZodLiteral<"column">;
2179
+ props: z.ZodObject<{
2180
+ width: z.ZodNumber;
2181
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
2182
+ top: "top";
2183
+ center: "center";
2184
+ bottom: "bottom";
2185
+ stretch: "stretch";
2186
+ }>>;
2187
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2188
+ none: "none";
2189
+ xs: "xs";
2190
+ s: "s";
2191
+ m: "m";
2192
+ l: "l";
2193
+ xl: "xl";
2194
+ "2xl": "2xl";
2195
+ }>, z.ZodNumber]>>;
2196
+ background: z.ZodOptional<z.ZodObject<{
2197
+ color: z.ZodOptional<z.ZodString>;
2198
+ image: z.ZodOptional<z.ZodString>;
2199
+ overlay: z.ZodOptional<z.ZodString>;
2200
+ position: z.ZodOptional<z.ZodEnum<{
2201
+ top: "top";
2202
+ center: "center";
2203
+ bottom: "bottom";
2204
+ left: "left";
2205
+ right: "right";
2206
+ "top left": "top left";
2207
+ "top right": "top right";
2208
+ "bottom left": "bottom left";
2209
+ "bottom right": "bottom right";
2210
+ }>>;
2211
+ size: z.ZodOptional<z.ZodEnum<{
2212
+ cover: "cover";
2213
+ contain: "contain";
2214
+ auto: "auto";
2215
+ }>>;
2216
+ }, z.core.$strict>>;
2217
+ hidden: z.ZodOptional<z.ZodBoolean>;
2218
+ anchor: z.ZodOptional<z.ZodString>;
2219
+ }, z.core.$strict>;
2220
+ responsive: z.ZodOptional<z.ZodObject<{
2221
+ tablet: z.ZodOptional<z.ZodObject<{
2222
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2223
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2224
+ top: "top";
2225
+ center: "center";
2226
+ bottom: "bottom";
2227
+ stretch: "stretch";
2228
+ }>>>;
2229
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
2230
+ none: "none";
2231
+ xs: "xs";
2232
+ s: "s";
2233
+ m: "m";
2234
+ l: "l";
2235
+ xl: "xl";
2236
+ "2xl": "2xl";
2237
+ }>, z.ZodNumber]>>>;
2238
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2239
+ color: z.ZodOptional<z.ZodString>;
2240
+ image: z.ZodOptional<z.ZodString>;
2241
+ overlay: z.ZodOptional<z.ZodString>;
2242
+ position: z.ZodOptional<z.ZodEnum<{
2243
+ top: "top";
2244
+ center: "center";
2245
+ bottom: "bottom";
2246
+ left: "left";
2247
+ right: "right";
2248
+ "top left": "top left";
2249
+ "top right": "top right";
2250
+ "bottom left": "bottom left";
2251
+ "bottom right": "bottom right";
2252
+ }>>;
2253
+ size: z.ZodOptional<z.ZodEnum<{
2254
+ cover: "cover";
2255
+ contain: "contain";
2256
+ auto: "auto";
2257
+ }>>;
2258
+ }, z.core.$strict>>>;
2259
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2260
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2261
+ }, z.core.$strict>>;
2262
+ phone: z.ZodOptional<z.ZodObject<{
2263
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2264
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2265
+ top: "top";
2266
+ center: "center";
2267
+ bottom: "bottom";
2268
+ stretch: "stretch";
2269
+ }>>>;
2270
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
2271
+ none: "none";
2272
+ xs: "xs";
2273
+ s: "s";
2274
+ m: "m";
2275
+ l: "l";
2276
+ xl: "xl";
2277
+ "2xl": "2xl";
2278
+ }>, z.ZodNumber]>>>;
2279
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2280
+ color: z.ZodOptional<z.ZodString>;
2281
+ image: z.ZodOptional<z.ZodString>;
2282
+ overlay: z.ZodOptional<z.ZodString>;
2283
+ position: z.ZodOptional<z.ZodEnum<{
2284
+ top: "top";
2285
+ center: "center";
2286
+ bottom: "bottom";
2287
+ left: "left";
2288
+ right: "right";
2289
+ "top left": "top left";
2290
+ "top right": "top right";
2291
+ "bottom left": "bottom left";
2292
+ "bottom right": "bottom right";
2293
+ }>>;
2294
+ size: z.ZodOptional<z.ZodEnum<{
2295
+ cover: "cover";
2296
+ contain: "contain";
2297
+ auto: "auto";
2298
+ }>>;
2299
+ }, z.core.$strict>>>;
2300
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2301
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
+ }, z.core.$strict>>;
2303
+ }, z.core.$strict>>;
2304
+ children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2305
+ id: z.ZodString;
2306
+ type: z.ZodLiteral<"inner-section">;
2307
+ props: z.ZodObject<{
2308
+ width: z.ZodOptional<z.ZodEnum<{
2309
+ boxed: "boxed";
2310
+ full: "full";
2311
+ }>>;
2312
+ contentWidth: z.ZodOptional<z.ZodNumber>;
2313
+ gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2314
+ none: "none";
2315
+ xs: "xs";
2316
+ s: "s";
2317
+ m: "m";
2318
+ l: "l";
2319
+ xl: "xl";
2320
+ "2xl": "2xl";
2321
+ }>, z.ZodNumber]>>;
2322
+ paddingY: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2323
+ none: "none";
2324
+ xs: "xs";
2325
+ s: "s";
2326
+ m: "m";
2327
+ l: "l";
2328
+ xl: "xl";
2329
+ "2xl": "2xl";
2330
+ }>, z.ZodNumber]>>;
2331
+ paddingX: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2332
+ none: "none";
2333
+ xs: "xs";
2334
+ s: "s";
2335
+ m: "m";
2336
+ l: "l";
2337
+ xl: "xl";
2338
+ "2xl": "2xl";
2339
+ }>, z.ZodNumber]>>;
2340
+ minHeight: z.ZodOptional<z.ZodNumber>;
2341
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
2342
+ top: "top";
2343
+ center: "center";
2344
+ bottom: "bottom";
2345
+ stretch: "stretch";
2346
+ }>>;
2347
+ background: z.ZodOptional<z.ZodObject<{
2348
+ color: z.ZodOptional<z.ZodString>;
2349
+ image: z.ZodOptional<z.ZodString>;
2350
+ overlay: z.ZodOptional<z.ZodString>;
2351
+ position: z.ZodOptional<z.ZodEnum<{
2352
+ top: "top";
2353
+ center: "center";
2354
+ bottom: "bottom";
2355
+ left: "left";
2356
+ right: "right";
2357
+ "top left": "top left";
2358
+ "top right": "top right";
2359
+ "bottom left": "bottom left";
2360
+ "bottom right": "bottom right";
2361
+ }>>;
2362
+ size: z.ZodOptional<z.ZodEnum<{
2363
+ cover: "cover";
2364
+ contain: "contain";
2365
+ auto: "auto";
2366
+ }>>;
2367
+ }, z.core.$strict>>;
2368
+ stackOrder: z.ZodOptional<z.ZodEnum<{
2369
+ normal: "normal";
2370
+ reverse: "reverse";
2371
+ }>>;
2372
+ hidden: z.ZodOptional<z.ZodBoolean>;
2373
+ anchor: z.ZodOptional<z.ZodString>;
2374
+ }, z.core.$strict>;
2375
+ responsive: z.ZodOptional<z.ZodObject<{
2376
+ tablet: z.ZodOptional<z.ZodObject<{
2377
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2378
+ boxed: "boxed";
2379
+ full: "full";
2380
+ }>>>>;
2381
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2382
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2383
+ none: "none";
2384
+ xs: "xs";
2385
+ s: "s";
2386
+ m: "m";
2387
+ l: "l";
2388
+ xl: "xl";
2389
+ "2xl": "2xl";
2390
+ }>, z.ZodNumber]>>>>;
2391
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2392
+ none: "none";
2393
+ xs: "xs";
2394
+ s: "s";
2395
+ m: "m";
2396
+ l: "l";
2397
+ xl: "xl";
2398
+ "2xl": "2xl";
2399
+ }>, z.ZodNumber]>>>>;
2400
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2401
+ none: "none";
2402
+ xs: "xs";
2403
+ s: "s";
2404
+ m: "m";
2405
+ l: "l";
2406
+ xl: "xl";
2407
+ "2xl": "2xl";
2408
+ }>, z.ZodNumber]>>>>;
2409
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2410
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2411
+ top: "top";
2412
+ center: "center";
2413
+ bottom: "bottom";
2414
+ stretch: "stretch";
2415
+ }>>>>;
2416
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
2417
+ color: z.ZodOptional<z.ZodString>;
2418
+ image: z.ZodOptional<z.ZodString>;
2419
+ overlay: z.ZodOptional<z.ZodString>;
2420
+ position: z.ZodOptional<z.ZodEnum<{
2421
+ top: "top";
2422
+ center: "center";
2423
+ bottom: "bottom";
2424
+ left: "left";
2425
+ right: "right";
2426
+ "top left": "top left";
2427
+ "top right": "top right";
2428
+ "bottom left": "bottom left";
2429
+ "bottom right": "bottom right";
2430
+ }>>;
2431
+ size: z.ZodOptional<z.ZodEnum<{
2432
+ cover: "cover";
2433
+ contain: "contain";
2434
+ auto: "auto";
2435
+ }>>;
2436
+ }, z.core.$strict>>>>;
2437
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2438
+ normal: "normal";
2439
+ reverse: "reverse";
2440
+ }>>>>;
2441
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
2442
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2443
+ }, z.core.$strict>>;
2444
+ phone: z.ZodOptional<z.ZodObject<{
2445
+ width: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2446
+ boxed: "boxed";
2447
+ full: "full";
2448
+ }>>>>;
2449
+ contentWidth: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2450
+ gap: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2451
+ none: "none";
2452
+ xs: "xs";
2453
+ s: "s";
2454
+ m: "m";
2455
+ l: "l";
2456
+ xl: "xl";
2457
+ "2xl": "2xl";
2458
+ }>, z.ZodNumber]>>>>;
2459
+ paddingY: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2460
+ none: "none";
2461
+ xs: "xs";
2462
+ s: "s";
2463
+ m: "m";
2464
+ l: "l";
2465
+ xl: "xl";
2466
+ "2xl": "2xl";
2467
+ }>, z.ZodNumber]>>>>;
2468
+ paddingX: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2469
+ none: "none";
2470
+ xs: "xs";
2471
+ s: "s";
2472
+ m: "m";
2473
+ l: "l";
2474
+ xl: "xl";
2475
+ "2xl": "2xl";
2476
+ }>, z.ZodNumber]>>>>;
2477
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2478
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2479
+ top: "top";
2480
+ center: "center";
2481
+ bottom: "bottom";
2482
+ stretch: "stretch";
2483
+ }>>>>;
2484
+ background: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
2485
+ color: z.ZodOptional<z.ZodString>;
2486
+ image: z.ZodOptional<z.ZodString>;
2487
+ overlay: z.ZodOptional<z.ZodString>;
2488
+ position: z.ZodOptional<z.ZodEnum<{
2489
+ top: "top";
2490
+ center: "center";
2491
+ bottom: "bottom";
2492
+ left: "left";
2493
+ right: "right";
2494
+ "top left": "top left";
2495
+ "top right": "top right";
2496
+ "bottom left": "bottom left";
2497
+ "bottom right": "bottom right";
2498
+ }>>;
2499
+ size: z.ZodOptional<z.ZodEnum<{
2500
+ cover: "cover";
2501
+ contain: "contain";
2502
+ auto: "auto";
2503
+ }>>;
2504
+ }, z.core.$strict>>>>;
2505
+ stackOrder: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
2506
+ normal: "normal";
2507
+ reverse: "reverse";
2508
+ }>>>>;
2509
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
2510
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2511
+ }, z.core.$strict>>;
2512
+ }, z.core.$strict>>;
2513
+ columns: z.ZodArray<z.ZodObject<{
2514
+ id: z.ZodString;
2515
+ type: z.ZodLiteral<"column">;
2516
+ props: z.ZodObject<{
2517
+ width: z.ZodNumber;
2518
+ verticalAlign: z.ZodOptional<z.ZodEnum<{
2519
+ top: "top";
2520
+ center: "center";
2521
+ bottom: "bottom";
2522
+ stretch: "stretch";
2523
+ }>>;
2524
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2525
+ none: "none";
2526
+ xs: "xs";
2527
+ s: "s";
2528
+ m: "m";
2529
+ l: "l";
2530
+ xl: "xl";
2531
+ "2xl": "2xl";
2532
+ }>, z.ZodNumber]>>;
2533
+ background: z.ZodOptional<z.ZodObject<{
2534
+ color: z.ZodOptional<z.ZodString>;
2535
+ image: z.ZodOptional<z.ZodString>;
2536
+ overlay: z.ZodOptional<z.ZodString>;
2537
+ position: z.ZodOptional<z.ZodEnum<{
2538
+ top: "top";
2539
+ center: "center";
2540
+ bottom: "bottom";
2541
+ left: "left";
2542
+ right: "right";
2543
+ "top left": "top left";
2544
+ "top right": "top right";
2545
+ "bottom left": "bottom left";
2546
+ "bottom right": "bottom right";
2547
+ }>>;
2548
+ size: z.ZodOptional<z.ZodEnum<{
2549
+ cover: "cover";
2550
+ contain: "contain";
2551
+ auto: "auto";
2552
+ }>>;
2553
+ }, z.core.$strict>>;
2554
+ hidden: z.ZodOptional<z.ZodBoolean>;
2555
+ anchor: z.ZodOptional<z.ZodString>;
2556
+ }, z.core.$strict>;
2557
+ responsive: z.ZodOptional<z.ZodObject<{
2558
+ tablet: z.ZodOptional<z.ZodObject<{
2559
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2560
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2561
+ top: "top";
2562
+ center: "center";
2563
+ bottom: "bottom";
2564
+ stretch: "stretch";
2565
+ }>>>;
2566
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
2567
+ none: "none";
2568
+ xs: "xs";
2569
+ s: "s";
2570
+ m: "m";
2571
+ l: "l";
2572
+ xl: "xl";
2573
+ "2xl": "2xl";
2574
+ }>, z.ZodNumber]>>>;
2575
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2576
+ color: z.ZodOptional<z.ZodString>;
2577
+ image: z.ZodOptional<z.ZodString>;
2578
+ overlay: z.ZodOptional<z.ZodString>;
2579
+ position: z.ZodOptional<z.ZodEnum<{
2580
+ top: "top";
2581
+ center: "center";
2582
+ bottom: "bottom";
2583
+ left: "left";
2584
+ right: "right";
2585
+ "top left": "top left";
2586
+ "top right": "top right";
2587
+ "bottom left": "bottom left";
2588
+ "bottom right": "bottom right";
2589
+ }>>;
2590
+ size: z.ZodOptional<z.ZodEnum<{
2591
+ cover: "cover";
2592
+ contain: "contain";
2593
+ auto: "auto";
2594
+ }>>;
2595
+ }, z.core.$strict>>>;
2596
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2597
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2598
+ }, z.core.$strict>>;
2599
+ phone: z.ZodOptional<z.ZodObject<{
2600
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2601
+ verticalAlign: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2602
+ top: "top";
2603
+ center: "center";
2604
+ bottom: "bottom";
2605
+ stretch: "stretch";
2606
+ }>>>;
2607
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
2608
+ none: "none";
2609
+ xs: "xs";
2610
+ s: "s";
2611
+ m: "m";
2612
+ l: "l";
2613
+ xl: "xl";
2614
+ "2xl": "2xl";
2615
+ }>, z.ZodNumber]>>>;
2616
+ background: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2617
+ color: z.ZodOptional<z.ZodString>;
2618
+ image: z.ZodOptional<z.ZodString>;
2619
+ overlay: z.ZodOptional<z.ZodString>;
2620
+ position: z.ZodOptional<z.ZodEnum<{
2621
+ top: "top";
2622
+ center: "center";
2623
+ bottom: "bottom";
2624
+ left: "left";
2625
+ right: "right";
2626
+ "top left": "top left";
2627
+ "top right": "top right";
2628
+ "bottom left": "bottom left";
2629
+ "bottom right": "bottom right";
2630
+ }>>;
2631
+ size: z.ZodOptional<z.ZodEnum<{
2632
+ cover: "cover";
2633
+ contain: "contain";
2634
+ auto: "auto";
2635
+ }>>;
2636
+ }, z.core.$strict>>>;
2637
+ hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2638
+ anchor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2639
+ }, z.core.$strict>>;
2640
+ }, z.core.$strict>>;
2641
+ children: z.ZodArray<z.ZodObject<{
2642
+ id: z.ZodString;
2643
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
2644
+ v: z.ZodNumber;
2645
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
2646
+ responsive: z.ZodOptional<z.ZodObject<{
2647
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
2648
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
2649
+ }, z.core.$strict>>;
2650
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2651
+ source: z.ZodString;
2652
+ }, z.core.$strict>, z.ZodObject<{
2653
+ source: z.ZodString;
2654
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
2655
+ }, z.core.$strict>]>>>>;
2656
+ }, z.core.$strict>>;
2657
+ }, z.core.$strict>>;
2658
+ }, z.core.$strict>, z.ZodObject<{
2659
+ id: z.ZodString;
2660
+ type: z.ZodType<WidgetType, string, z.core.$ZodTypeInternals<WidgetType, string>>;
2661
+ v: z.ZodNumber;
2662
+ props: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
2663
+ responsive: z.ZodOptional<z.ZodObject<{
2664
+ tablet: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
2665
+ phone: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>>;
2666
+ }, z.core.$strict>>;
2667
+ data: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2668
+ source: z.ZodString;
2669
+ }, z.core.$strict>, z.ZodObject<{
2670
+ source: z.ZodString;
2671
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
2672
+ }, z.core.$strict>]>>>>;
2673
+ }, z.core.$strict>]>>;
2674
+ }, z.core.$strict>>;
2675
+ }, z.core.$strict>>;
2676
+ customWidgets: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
2677
+ kind: z.ZodEnum<{
2678
+ composite: "composite";
2679
+ template: "template";
2680
+ }>;
2681
+ type: z.ZodString;
2682
+ v: z.ZodNumber;
2683
+ title: z.ZodString;
2684
+ description: z.ZodString;
2685
+ icon: z.ZodString;
2686
+ group: z.ZodLiteral<"custom">;
2687
+ settings: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2688
+ renamed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2689
+ removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
2690
+ }, z.core.$loose>>>>;
2691
+ assets: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
2692
+ url: z.ZodString;
2693
+ width: z.ZodNumber;
2694
+ height: z.ZodNumber;
2695
+ variants: z.ZodArray<z.ZodObject<{
2696
+ width: z.ZodNumber;
2697
+ url: z.ZodString;
2698
+ }, z.core.$strict>>;
2699
+ }, z.core.$strict>>>>;
2700
+ }, z.core.$strict>;
2701
+ type PageDocument = z.infer<typeof pageDocumentSchema>;
2702
+ /** The document the editor starts from. */
2703
+ declare function emptyDocument(): PageDocument;
2704
+
2705
+ type AnyNode = SectionNode | ColumnNode | InnerSectionNode | InnerColumnNode | WidgetNode;
2706
+ type Path = (string | number)[];
2707
+ /** Depth-first walk of every node, parents before children, with each node's path. */
2708
+ declare function walkNodes(doc: Pick<PageDocument, 'sections'>, visit: (node: AnyNode, path: Path) => void): void;
2709
+
2710
+ /** The limits table of the plan's Global Constraints (spec §8.5, §10.4, §14). */
2711
+ declare const LIMITS: {
2712
+ readonly documentBytes: number;
2713
+ readonly nodes: 2000;
2714
+ readonly sections: 200;
2715
+ readonly childrenPerColumn: 100;
2716
+ readonly columnsMin: 1;
2717
+ readonly columnsMax: 6;
2718
+ readonly localizedTextChars: 20000;
2719
+ readonly pagesPerSite: 500;
2720
+ readonly slotsPerSite: 20;
2721
+ readonly partsPerSite: 2;
2722
+ /** `header` and `footer` always exist, plus up to this many more. */
2723
+ readonly namedMenusMax: 10;
2724
+ readonly menuDepth: 3;
2725
+ readonly menuItems: 60;
2726
+ readonly widgetSettings: 40;
2727
+ readonly templateSourceBytes: number;
2728
+ readonly widgetCssBytes: number;
2729
+ readonly widgetDefinitionBytes: number;
2730
+ readonly templateAstNodes: 2000;
2731
+ readonly templateAstDepth: 12;
2732
+ readonly eachDepth: 2;
2733
+ readonly eachIterations: 100;
2734
+ readonly customWidgetDataInputs: 5;
2735
+ readonly customWidgetTypesPerSite: 200;
2736
+ readonly customWidgetVersionsPerType: 50;
2737
+ readonly undoSteps: 150;
2738
+ readonly undoCoalesceMs: 1400;
2739
+ readonly autosaveDebounceMs: 800;
2740
+ readonly autosaveMaxIntervalMs: number;
2741
+ readonly versionsPerDocument: 100;
2742
+ readonly mcpCallsPerMinute: 120;
2743
+ readonly mcpWritesPerMinute: 60;
2744
+ readonly widgetApiWritesPerMinute: 30;
2745
+ readonly canvasProxyRequestsPerMinute: 300;
2746
+ readonly siteLookupCacheEntries: 1000;
2747
+ readonly siteLookupCacheTtlMs: number;
2748
+ readonly presenceCacheMs: number;
2749
+ readonly grantStatusCacheMs: number;
2750
+ readonly jwksCacheMs: number;
2751
+ readonly previewTokenMs: number;
2752
+ readonly noticeCoalesceMs: number;
2753
+ };
2754
+ /** UTF-8 byte length of a string, without `TextEncoder` or `Buffer`. */
2755
+ declare function utf8Length(text: string): number;
2756
+ /**
2757
+ * Checks a document against the structural limits. It works on any typed
2758
+ * document, so it can also say which limit an invalid one breaks.
2759
+ * Text length is checked on every string in a node's props, responsive
2760
+ * overrides and data bindings (a localized value is a map of such strings).
2761
+ */
2762
+ declare function checkLimits(doc: PageDocument): Issue[];
2763
+
2764
+ type ResponsiveDevice = 'desktop' | 'tablet' | 'phone';
2765
+ /** Desktop is 1025 px and up, tablet 768 to 1024, phone 767 and below. */
2766
+ declare const BREAKPOINTS: {
2767
+ readonly desktopMin: 1025;
2768
+ readonly tabletMin: 768;
2769
+ readonly tabletMax: 1024;
2770
+ readonly phoneMax: 767;
2771
+ };
2772
+ /** The editor preview widths. */
2773
+ declare const PREVIEW_WIDTHS: Record<ResponsiveDevice, number>;
2774
+ /**
2775
+ * `desktop = props`; `tablet = props ⊕ responsive.tablet`;
2776
+ * `phone = props ⊕ responsive.tablet ⊕ responsive.phone` (spec §8.3).
2777
+ * A `null` in an override means "no override here": the value falls back to the
2778
+ * layer below it. The input is never changed. `options.skip` names keys that
2779
+ * are not resolved by this rule.
2780
+ */
2781
+ declare function resolveResponsive<P extends object>(props: P, responsive: Overrides<P> | undefined, device: ResponsiveDevice, options?: {
2782
+ skip?: readonly string[];
2783
+ }): P;
2784
+ /**
2785
+ * Resolves a column's props for a device. A column's `width` is never taken from
2786
+ * here: on tablet it inherits and on phone it stacks, which only
2787
+ * `resolveColumnWidths` knows (it needs every column of the section).
2788
+ */
2789
+ declare function resolveColumnProps<P extends object>(props: P, responsive: Overrides<P> | undefined, device: ResponsiveDevice): P;
2790
+ /**
2791
+ * The column widths (percent) of a section on a device:
2792
+ * desktop uses the base widths; tablet inherits them unless the section overrides
2793
+ * them; phone stacks (100 each) unless the section overrides them.
2794
+ */
2795
+ declare function resolveColumnWidths(section: SectionNode | InnerSectionNode, device: ResponsiveDevice): number[];
2796
+ /**
2797
+ * Wraps columns into rows in order: a column that would push a row past 100
2798
+ * starts the next row. Returns column indexes per row.
2799
+ */
2800
+ declare function wrapColumnRows(widths: readonly number[]): number[][];
2801
+
2802
+ type UpgradeResult = {
2803
+ ok: true;
2804
+ doc: PageDocument;
2805
+ } | {
2806
+ ok: false;
2807
+ issues: Issue[];
2808
+ };
2809
+ /**
2810
+ * Migrates any older document to the current schema version and validates the
2811
+ * result. Pure. A document from a newer version is refused, never guessed at.
2812
+ */
2813
+ declare function upgradeDocument(input: unknown): UpgradeResult;
2814
+ /**
2815
+ * The one entry point for a document that arrives from outside (editor save,
2816
+ * MCP, Widget API, restore): upgrades it, validates the schema, then checks the
2817
+ * limits that need the whole document (size, node count, text length).
2818
+ */
2819
+ declare function validateDocument(input: unknown): UpgradeResult;
2820
+
2821
+ type SiteFontCategory = 'serif' | 'sans' | 'mono' | 'display' | 'system';
2822
+ interface SiteFont {
2823
+ readonly family: string;
2824
+ readonly category: SiteFontCategory;
2825
+ readonly weights: readonly number[];
2826
+ /** False for system stacks: nothing is loaded. */
2827
+ readonly google: boolean;
2828
+ }
2829
+ /**
2830
+ * The curated font list, copied from the catalog's `STOREFRONT_FONTS`
2831
+ * (`packages/contracts/src/storefront-settings.ts`) with the same families and
2832
+ * weights. A test pins the family list; change both repos together.
2833
+ */
2834
+ declare const FONT_DEFINITIONS: readonly [{
2835
+ family: "Instrument Serif";
2836
+ category: SiteFontCategory;
2837
+ weights: readonly number[];
2838
+ google: true;
2839
+ }, {
2840
+ family: "Playfair Display";
2841
+ category: SiteFontCategory;
2842
+ weights: readonly number[];
2843
+ google: true;
2844
+ }, {
2845
+ family: "Lora";
2846
+ category: SiteFontCategory;
2847
+ weights: readonly number[];
2848
+ google: true;
2849
+ }, {
2850
+ family: "Merriweather";
2851
+ category: SiteFontCategory;
2852
+ weights: readonly number[];
2853
+ google: true;
2854
+ }, {
2855
+ family: "Cormorant Garamond";
2856
+ category: SiteFontCategory;
2857
+ weights: readonly number[];
2858
+ google: true;
2859
+ }, {
2860
+ family: "EB Garamond";
2861
+ category: SiteFontCategory;
2862
+ weights: readonly number[];
2863
+ google: true;
2864
+ }, {
2865
+ family: "Libre Baskerville";
2866
+ category: SiteFontCategory;
2867
+ weights: readonly number[];
2868
+ google: true;
2869
+ }, {
2870
+ family: "Source Serif 4";
2871
+ category: SiteFontCategory;
2872
+ weights: readonly number[];
2873
+ google: true;
2874
+ }, {
2875
+ family: "Fraunces";
2876
+ category: SiteFontCategory;
2877
+ weights: readonly number[];
2878
+ google: true;
2879
+ }, {
2880
+ family: "DM Serif Display";
2881
+ category: SiteFontCategory;
2882
+ weights: readonly number[];
2883
+ google: true;
2884
+ }, {
2885
+ family: "Inter";
2886
+ category: SiteFontCategory;
2887
+ weights: readonly number[];
2888
+ google: true;
2889
+ }, {
2890
+ family: "Schibsted Grotesk";
2891
+ category: SiteFontCategory;
2892
+ weights: readonly number[];
2893
+ google: true;
2894
+ }, {
2895
+ family: "DM Sans";
2896
+ category: SiteFontCategory;
2897
+ weights: readonly number[];
2898
+ google: true;
2899
+ }, {
2900
+ family: "Manrope";
2901
+ category: SiteFontCategory;
2902
+ weights: readonly number[];
2903
+ google: true;
2904
+ }, {
2905
+ family: "Poppins";
2906
+ category: SiteFontCategory;
2907
+ weights: readonly number[];
2908
+ google: true;
2909
+ }, {
2910
+ family: "Montserrat";
2911
+ category: SiteFontCategory;
2912
+ weights: readonly number[];
2913
+ google: true;
2914
+ }, {
2915
+ family: "Work Sans";
2916
+ category: SiteFontCategory;
2917
+ weights: readonly number[];
2918
+ google: true;
2919
+ }, {
2920
+ family: "Rubik";
2921
+ category: SiteFontCategory;
2922
+ weights: readonly number[];
2923
+ google: true;
2924
+ }, {
2925
+ family: "Nunito Sans";
2926
+ category: SiteFontCategory;
2927
+ weights: readonly number[];
2928
+ google: true;
2929
+ }, {
2930
+ family: "Open Sans";
2931
+ category: SiteFontCategory;
2932
+ weights: readonly number[];
2933
+ google: true;
2934
+ }, {
2935
+ family: "Lato";
2936
+ category: SiteFontCategory;
2937
+ weights: readonly number[];
2938
+ google: true;
2939
+ }, {
2940
+ family: "Raleway";
2941
+ category: SiteFontCategory;
2942
+ weights: readonly number[];
2943
+ google: true;
2944
+ }, {
2945
+ family: "Outfit";
2946
+ category: SiteFontCategory;
2947
+ weights: readonly number[];
2948
+ google: true;
2949
+ }, {
2950
+ family: "Plus Jakarta Sans";
2951
+ category: SiteFontCategory;
2952
+ weights: readonly number[];
2953
+ google: true;
2954
+ }, {
2955
+ family: "Figtree";
2956
+ category: SiteFontCategory;
2957
+ weights: readonly number[];
2958
+ google: true;
2959
+ }, {
2960
+ family: "Karla";
2961
+ category: SiteFontCategory;
2962
+ weights: readonly number[];
2963
+ google: true;
2964
+ }, {
2965
+ family: "DM Mono";
2966
+ category: SiteFontCategory;
2967
+ weights: readonly number[];
2968
+ google: true;
2969
+ }, {
2970
+ family: "JetBrains Mono";
2971
+ category: SiteFontCategory;
2972
+ weights: readonly number[];
2973
+ google: true;
2974
+ }, {
2975
+ family: "IBM Plex Mono";
2976
+ category: SiteFontCategory;
2977
+ weights: readonly number[];
2978
+ google: true;
2979
+ }, {
2980
+ family: "Space Mono";
2981
+ category: SiteFontCategory;
2982
+ weights: readonly number[];
2983
+ google: true;
2984
+ }, {
2985
+ family: "Bebas Neue";
2986
+ category: SiteFontCategory;
2987
+ weights: readonly number[];
2988
+ google: true;
2989
+ }, {
2990
+ family: "Oswald";
2991
+ category: SiteFontCategory;
2992
+ weights: readonly number[];
2993
+ google: true;
2994
+ }, {
2995
+ family: "Archivo Black";
2996
+ category: SiteFontCategory;
2997
+ weights: readonly number[];
2998
+ google: true;
2999
+ }, {
3000
+ family: "Space Grotesk";
3001
+ category: SiteFontCategory;
3002
+ weights: readonly number[];
3003
+ google: true;
3004
+ }, {
3005
+ family: "Syne";
3006
+ category: SiteFontCategory;
3007
+ weights: readonly number[];
3008
+ google: true;
3009
+ }, {
3010
+ family: "system-sans";
3011
+ category: "system";
3012
+ weights: number[];
3013
+ google: false;
3014
+ }, {
3015
+ family: "system-serif";
3016
+ category: "system";
3017
+ weights: number[];
3018
+ google: false;
3019
+ }, {
3020
+ family: "system-mono";
3021
+ category: "system";
3022
+ weights: number[];
3023
+ google: false;
3024
+ }];
3025
+ declare const SITE_FONTS: readonly SiteFont[];
3026
+ type SiteFontFamily = (typeof FONT_DEFINITIONS)[number]['family'];
3027
+ declare const SITE_FONT_FAMILIES: [SiteFontFamily, ...SiteFontFamily[]];
3028
+
3029
+ /**
3030
+ * Store wording is split by key (spec §5). Builder-owned keys are the site
3031
+ * parts (header, footer, announcement, content page chrome). Everything else
3032
+ * the catalog renders stays with the catalog.
3033
+ *
3034
+ * Every key of the catalog's `DEFAULT_STRINGS` must be in exactly one of the two
3035
+ * lists. `__tests__/strings.test.ts` checks that against a copy of the catalog's
3036
+ * key list (drift note in `__tests__/fixtures/catalog-default-string-keys.ts`).
3037
+ */
3038
+ /** Namespaces in which the Builder owns keys. Catalog keys may share one (`nav.cart`). */
3039
+ declare const SITE_STRING_NAMESPACES: readonly ["announcement", "footer", "nav", "page", "site"];
3040
+ /** English text for every Builder-owned key. */
3041
+ declare const SITE_STRING_DEFAULTS: {
3042
+ readonly 'footer.copyright': "© {year} {store}. All rights reserved.";
3043
+ readonly 'nav.menu': "Menu";
3044
+ readonly 'nav.account': "Account";
3045
+ readonly 'announcement.dismiss': "Dismiss";
3046
+ readonly 'site.skipToContent': "Skip to content";
3047
+ readonly 'page.breadcrumbHome': "Home";
3048
+ };
3049
+ type SiteStringKey = keyof typeof SITE_STRING_DEFAULTS;
3050
+ declare const SITE_STRING_KEYS: [SiteStringKey, ...SiteStringKey[]];
3051
+ /** Catalog-owned keys, copied from the catalog's `DEFAULT_STRINGS` minus the Builder-owned ones. */
3052
+ declare const CATALOG_STRING_KEYS: readonly ["shop.title", "shop.description", "search.title", "search.placeholder", "search.results", "empty.search", "empty.listing", "empty.category", "empty.collection", "empty.cart", "cart.title", "cart.checkout", "cart.continueShopping", "filters.title", "filters.clearAll", "filters.apply", "filters.showMore", "filters.showLess", "filters.priceMin", "filters.priceMax", "boolean.yes", "boolean.no", "sort.label", "listing.count", "listing.loadMore", "listing.loading", "listing.previous", "listing.next", "product.addToCart", "product.quantity", "product.selectOption", "product.sku", "product.description", "product.specs", "product.shipping", "product.tags", "product.categories", "product.related", "product.reviews", "product.noReviews", "product.writeReview", "home.shopAll", "home.featured", "home.newest", "home.bestRated", "home.categories", "nav.cart", "error.notFound", "error.generic"];
3053
+ type CatalogStringKey = (typeof CATALOG_STRING_KEYS)[number];
3054
+
3055
+ /** A BCP 47-style tag such as `en`, `fr-CA`, `zh-Hant-TW`. */
3056
+ declare const LOCALE_TAG_RE: RegExp;
3057
+ declare const localeTagSchema: z.ZodString;
3058
+ /** A per-locale map `{ [locale]: string }`. An absent or empty entry falls back. */
3059
+ declare const localizedTextSchema: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>;
3060
+ type LocalizedText = z.infer<typeof localizedTextSchema>;
3061
+ /** A Throttle media asset id (spec §9.5). */
3062
+ declare const assetIdSchema: z.ZodString;
3063
+ /** `^pk_[a-z0-9]+_[A-Za-z0-9]{8,}$` (Phase 2 R7, moved here). */
3064
+ declare const THROTTLE_PK_RE: RegExp;
3065
+ /** Only http(s) or a root-relative path. `javascript:` and `//host` never match. */
3066
+ declare const SAFE_HREF: RegExp;
3067
+ /** Page targets are Builder document ids. Catalog kinds are stored by catalog id. */
3068
+ declare const menuTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3069
+ kind: z.ZodLiteral<"page">;
3070
+ id: z.ZodString;
3071
+ }, z.core.$strict>, z.ZodObject<{
3072
+ kind: z.ZodLiteral<"category">;
3073
+ id: z.ZodString;
3074
+ }, z.core.$strict>, z.ZodObject<{
3075
+ kind: z.ZodLiteral<"collection">;
3076
+ id: z.ZodString;
3077
+ }, z.core.$strict>, z.ZodObject<{
3078
+ kind: z.ZodLiteral<"product">;
3079
+ id: z.ZodString;
3080
+ }, z.core.$strict>, z.ZodObject<{
3081
+ kind: z.ZodLiteral<"search">;
3082
+ q: z.ZodString;
3083
+ }, z.core.$strict>, z.ZodObject<{
3084
+ kind: z.ZodLiteral<"url">;
3085
+ href: z.ZodString;
3086
+ }, z.core.$strict>], "kind">;
3087
+ type MenuTarget = z.infer<typeof menuTargetSchema>;
3088
+ interface MenuItem {
3089
+ label: LocalizedText;
3090
+ target: MenuTarget;
3091
+ children?: MenuItem[] | undefined;
3092
+ }
3093
+ declare const menuItemSchema: z.ZodType<MenuItem, unknown>;
3094
+ declare const paletteSchema: z.ZodObject<{
3095
+ colorPrimary: z.ZodString;
3096
+ colorPrimaryForeground: z.ZodString;
3097
+ colorBackground: z.ZodString;
3098
+ colorSurface: z.ZodString;
3099
+ colorForeground: z.ZodString;
3100
+ colorMuted: z.ZodString;
3101
+ colorMutedForeground: z.ZodString;
3102
+ colorBorder: z.ZodString;
3103
+ colorBorderControl: z.ZodString;
3104
+ colorAccent: z.ZodString;
3105
+ colorSale: z.ZodString;
3106
+ colorSuccess: z.ZodString;
3107
+ colorWarning: z.ZodString;
3108
+ colorDanger: z.ZodString;
3109
+ }, z.core.$strip>;
3110
+ type SitePalette = z.infer<typeof paletteSchema>;
3111
+ declare const SITE_SETTINGS_SCHEMA_VERSION = 1;
3112
+ declare const siteSettingsSchema: z.ZodObject<{
3113
+ schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
3114
+ brand: z.ZodPrefault<z.ZodObject<{
3115
+ storeName: z.ZodDefault<z.ZodString>;
3116
+ logo: z.ZodPrefault<z.ZodObject<{
3117
+ light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3118
+ dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3119
+ }, z.core.$strict>>;
3120
+ favicon: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3121
+ }, z.core.$strict>>;
3122
+ theme: z.ZodPrefault<z.ZodObject<{
3123
+ preset: z.ZodDefault<z.ZodEnum<{
3124
+ bold: "bold";
3125
+ clean: "clean";
3126
+ editorial: "editorial";
3127
+ }>>;
3128
+ customized: z.ZodDefault<z.ZodBoolean>;
3129
+ light: z.ZodDefault<z.ZodObject<{
3130
+ colorPrimary: z.ZodString;
3131
+ colorPrimaryForeground: z.ZodString;
3132
+ colorBackground: z.ZodString;
3133
+ colorSurface: z.ZodString;
3134
+ colorForeground: z.ZodString;
3135
+ colorMuted: z.ZodString;
3136
+ colorMutedForeground: z.ZodString;
3137
+ colorBorder: z.ZodString;
3138
+ colorBorderControl: z.ZodString;
3139
+ colorAccent: z.ZodString;
3140
+ colorSale: z.ZodString;
3141
+ colorSuccess: z.ZodString;
3142
+ colorWarning: z.ZodString;
3143
+ colorDanger: z.ZodString;
3144
+ }, z.core.$strip>>;
3145
+ dark: z.ZodDefault<z.ZodObject<{
3146
+ colorPrimary: z.ZodString;
3147
+ colorPrimaryForeground: z.ZodString;
3148
+ colorBackground: z.ZodString;
3149
+ colorSurface: z.ZodString;
3150
+ colorForeground: z.ZodString;
3151
+ colorMuted: z.ZodString;
3152
+ colorMutedForeground: z.ZodString;
3153
+ colorBorder: z.ZodString;
3154
+ colorBorderControl: z.ZodString;
3155
+ colorAccent: z.ZodString;
3156
+ colorSale: z.ZodString;
3157
+ colorSuccess: z.ZodString;
3158
+ colorWarning: z.ZodString;
3159
+ colorDanger: z.ZodString;
3160
+ }, z.core.$strip>>;
3161
+ fonts: z.ZodPrefault<z.ZodObject<{
3162
+ heading: z.ZodDefault<z.ZodEnum<{
3163
+ "Instrument Serif": "Instrument Serif";
3164
+ "Playfair Display": "Playfair Display";
3165
+ Lora: "Lora";
3166
+ Merriweather: "Merriweather";
3167
+ "Cormorant Garamond": "Cormorant Garamond";
3168
+ "EB Garamond": "EB Garamond";
3169
+ "Libre Baskerville": "Libre Baskerville";
3170
+ "Source Serif 4": "Source Serif 4";
3171
+ Fraunces: "Fraunces";
3172
+ "DM Serif Display": "DM Serif Display";
3173
+ Inter: "Inter";
3174
+ "Schibsted Grotesk": "Schibsted Grotesk";
3175
+ "DM Sans": "DM Sans";
3176
+ Manrope: "Manrope";
3177
+ Poppins: "Poppins";
3178
+ Montserrat: "Montserrat";
3179
+ "Work Sans": "Work Sans";
3180
+ Rubik: "Rubik";
3181
+ "Nunito Sans": "Nunito Sans";
3182
+ "Open Sans": "Open Sans";
3183
+ Lato: "Lato";
3184
+ Raleway: "Raleway";
3185
+ Outfit: "Outfit";
3186
+ "Plus Jakarta Sans": "Plus Jakarta Sans";
3187
+ Figtree: "Figtree";
3188
+ Karla: "Karla";
3189
+ "DM Mono": "DM Mono";
3190
+ "JetBrains Mono": "JetBrains Mono";
3191
+ "IBM Plex Mono": "IBM Plex Mono";
3192
+ "Space Mono": "Space Mono";
3193
+ "Bebas Neue": "Bebas Neue";
3194
+ Oswald: "Oswald";
3195
+ "Archivo Black": "Archivo Black";
3196
+ "Space Grotesk": "Space Grotesk";
3197
+ Syne: "Syne";
3198
+ "system-sans": "system-sans";
3199
+ "system-serif": "system-serif";
3200
+ "system-mono": "system-mono";
3201
+ }>>;
3202
+ body: z.ZodDefault<z.ZodEnum<{
3203
+ "Instrument Serif": "Instrument Serif";
3204
+ "Playfair Display": "Playfair Display";
3205
+ Lora: "Lora";
3206
+ Merriweather: "Merriweather";
3207
+ "Cormorant Garamond": "Cormorant Garamond";
3208
+ "EB Garamond": "EB Garamond";
3209
+ "Libre Baskerville": "Libre Baskerville";
3210
+ "Source Serif 4": "Source Serif 4";
3211
+ Fraunces: "Fraunces";
3212
+ "DM Serif Display": "DM Serif Display";
3213
+ Inter: "Inter";
3214
+ "Schibsted Grotesk": "Schibsted Grotesk";
3215
+ "DM Sans": "DM Sans";
3216
+ Manrope: "Manrope";
3217
+ Poppins: "Poppins";
3218
+ Montserrat: "Montserrat";
3219
+ "Work Sans": "Work Sans";
3220
+ Rubik: "Rubik";
3221
+ "Nunito Sans": "Nunito Sans";
3222
+ "Open Sans": "Open Sans";
3223
+ Lato: "Lato";
3224
+ Raleway: "Raleway";
3225
+ Outfit: "Outfit";
3226
+ "Plus Jakarta Sans": "Plus Jakarta Sans";
3227
+ Figtree: "Figtree";
3228
+ Karla: "Karla";
3229
+ "DM Mono": "DM Mono";
3230
+ "JetBrains Mono": "JetBrains Mono";
3231
+ "IBM Plex Mono": "IBM Plex Mono";
3232
+ "Space Mono": "Space Mono";
3233
+ "Bebas Neue": "Bebas Neue";
3234
+ Oswald: "Oswald";
3235
+ "Archivo Black": "Archivo Black";
3236
+ "Space Grotesk": "Space Grotesk";
3237
+ Syne: "Syne";
3238
+ "system-sans": "system-sans";
3239
+ "system-serif": "system-serif";
3240
+ "system-mono": "system-mono";
3241
+ }>>;
3242
+ mono: z.ZodDefault<z.ZodEnum<{
3243
+ "Instrument Serif": "Instrument Serif";
3244
+ "Playfair Display": "Playfair Display";
3245
+ Lora: "Lora";
3246
+ Merriweather: "Merriweather";
3247
+ "Cormorant Garamond": "Cormorant Garamond";
3248
+ "EB Garamond": "EB Garamond";
3249
+ "Libre Baskerville": "Libre Baskerville";
3250
+ "Source Serif 4": "Source Serif 4";
3251
+ Fraunces: "Fraunces";
3252
+ "DM Serif Display": "DM Serif Display";
3253
+ Inter: "Inter";
3254
+ "Schibsted Grotesk": "Schibsted Grotesk";
3255
+ "DM Sans": "DM Sans";
3256
+ Manrope: "Manrope";
3257
+ Poppins: "Poppins";
3258
+ Montserrat: "Montserrat";
3259
+ "Work Sans": "Work Sans";
3260
+ Rubik: "Rubik";
3261
+ "Nunito Sans": "Nunito Sans";
3262
+ "Open Sans": "Open Sans";
3263
+ Lato: "Lato";
3264
+ Raleway: "Raleway";
3265
+ Outfit: "Outfit";
3266
+ "Plus Jakarta Sans": "Plus Jakarta Sans";
3267
+ Figtree: "Figtree";
3268
+ Karla: "Karla";
3269
+ "DM Mono": "DM Mono";
3270
+ "JetBrains Mono": "JetBrains Mono";
3271
+ "IBM Plex Mono": "IBM Plex Mono";
3272
+ "Space Mono": "Space Mono";
3273
+ "Bebas Neue": "Bebas Neue";
3274
+ Oswald: "Oswald";
3275
+ "Archivo Black": "Archivo Black";
3276
+ "Space Grotesk": "Space Grotesk";
3277
+ Syne: "Syne";
3278
+ "system-sans": "system-sans";
3279
+ "system-serif": "system-serif";
3280
+ "system-mono": "system-mono";
3281
+ }>>;
3282
+ }, z.core.$strict>>;
3283
+ radius: z.ZodDefault<z.ZodNumber>;
3284
+ spacingScale: z.ZodDefault<z.ZodEnum<{
3285
+ compact: "compact";
3286
+ comfortable: "comfortable";
3287
+ roomy: "roomy";
3288
+ }>>;
3289
+ colorScheme: z.ZodDefault<z.ZodEnum<{
3290
+ auto: "auto";
3291
+ light: "light";
3292
+ dark: "dark";
3293
+ }>>;
3294
+ }, z.core.$strict>>;
3295
+ menus: z.ZodPrefault<z.ZodObject<{
3296
+ header: z.ZodDefault<z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>>;
3297
+ footer: z.ZodDefault<z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>>;
3298
+ }, z.core.$catchall<z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>>>>;
3299
+ announcement: z.ZodPrefault<z.ZodObject<{
3300
+ enabled: z.ZodDefault<z.ZodBoolean>;
3301
+ message: z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3302
+ target: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3303
+ kind: z.ZodLiteral<"page">;
3304
+ id: z.ZodString;
3305
+ }, z.core.$strict>, z.ZodObject<{
3306
+ kind: z.ZodLiteral<"category">;
3307
+ id: z.ZodString;
3308
+ }, z.core.$strict>, z.ZodObject<{
3309
+ kind: z.ZodLiteral<"collection">;
3310
+ id: z.ZodString;
3311
+ }, z.core.$strict>, z.ZodObject<{
3312
+ kind: z.ZodLiteral<"product">;
3313
+ id: z.ZodString;
3314
+ }, z.core.$strict>, z.ZodObject<{
3315
+ kind: z.ZodLiteral<"search">;
3316
+ q: z.ZodString;
3317
+ }, z.core.$strict>, z.ZodObject<{
3318
+ kind: z.ZodLiteral<"url">;
3319
+ href: z.ZodString;
3320
+ }, z.core.$strict>], "kind">>>;
3321
+ startsAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
3322
+ endsAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
3323
+ }, z.core.$strict>>;
3324
+ seo: z.ZodPrefault<z.ZodObject<{
3325
+ titleTemplate: z.ZodDefault<z.ZodString>;
3326
+ defaultDescription: z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3327
+ shareImage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3328
+ }, z.core.$strict>>;
3329
+ strings: z.ZodPrefault<z.ZodObject<{
3330
+ "footer.copyright": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3331
+ "nav.menu": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3332
+ "nav.account": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3333
+ "announcement.dismiss": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3334
+ "site.skipToContent": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3335
+ "page.breadcrumbHome": z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>;
3336
+ }, z.core.$strict>>;
3337
+ routes: z.ZodPrefault<z.ZodObject<{
3338
+ page: z.ZodDefault<z.ZodString>;
3339
+ home: z.ZodDefault<z.ZodLiteral<"/">>;
3340
+ }, z.core.$strict>>;
3341
+ connections: z.ZodPrefault<z.ZodObject<{
3342
+ throttlePublishableKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3343
+ }, z.core.$strict>>;
3344
+ locales: z.ZodPrefault<z.ZodObject<{
3345
+ default: z.ZodDefault<z.ZodString>;
3346
+ list: z.ZodDefault<z.ZodArray<z.ZodString>>;
3347
+ }, z.core.$strict>>;
3348
+ storeUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3349
+ }, z.core.$strict>;
3350
+ type SiteSettings = z.infer<typeof siteSettingsSchema>;
3351
+ type SiteSettingsInput = z.input<typeof siteSettingsSchema>;
3352
+ /** The settings of a site that never opened the site screens. A fresh object on every call. */
3353
+ declare function defaultSiteSettings(): SiteSettings;
3354
+ /** The assets site settings freeze at publish (R3), as dotted paths into the settings. */
3355
+ declare const SITE_ASSET_PATHS: readonly ["brand.logo.light", "brand.logo.dark", "brand.favicon", "seo.shareImage"];
3356
+
3357
+ declare const WIDGET_GROUPS: readonly ["layout", "basic", "catalog", "commerce", "custom"];
3358
+ declare const SETTING_TABS: readonly ["content", "style", "advanced"];
3359
+ declare const SETTING_CONTROLS: readonly ["text", "richtext", "number", "select", "toggle", "color", "spacing", "image", "link", "icon", "alignment", "font-size"];
3360
+ declare const DATA_RESULT_TYPES: readonly ["product[]", "product", "collection", "category[]", "review[]", "customer", "cart"];
3361
+ type DataResultType = (typeof DATA_RESULT_TYPES)[number];
3362
+ /** A name from the icon set; the set itself lives in `@usethrottle/ui`. */
3363
+ type IconName = string;
3364
+ /** The controls whose value is safe to put in CSS: each is validated to a token, number, colour or enum. */
3365
+ declare const CSS_CONTROLS: readonly ["color", "spacing", "font-size", "alignment", "number", "toggle", "select"];
3366
+ declare const settingFieldSchema: z.ZodObject<{
3367
+ key: z.ZodString;
3368
+ label: z.ZodString;
3369
+ tab: z.ZodEnum<{
3370
+ content: "content";
3371
+ style: "style";
3372
+ advanced: "advanced";
3373
+ }>;
3374
+ output: z.ZodEnum<{
3375
+ css: "css";
3376
+ markup: "markup";
3377
+ }>;
3378
+ control: z.ZodEnum<{
3379
+ number: "number";
3380
+ color: "color";
3381
+ image: "image";
3382
+ link: "link";
3383
+ icon: "icon";
3384
+ text: "text";
3385
+ richtext: "richtext";
3386
+ select: "select";
3387
+ toggle: "toggle";
3388
+ spacing: "spacing";
3389
+ alignment: "alignment";
3390
+ "font-size": "font-size";
3391
+ }>;
3392
+ translatable: z.ZodOptional<z.ZodBoolean>;
3393
+ default: z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>;
3394
+ min: z.ZodOptional<z.ZodNumber>;
3395
+ max: z.ZodOptional<z.ZodNumber>;
3396
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3397
+ value: z.ZodString;
3398
+ label: z.ZodString;
3399
+ }, z.core.$strict>>>;
3400
+ maxLength: z.ZodOptional<z.ZodNumber>;
3401
+ }, z.core.$strict>;
3402
+ type SettingField = z.infer<typeof settingFieldSchema>;
3403
+ declare const fieldSpecSchema: z.ZodObject<{
3404
+ name: z.ZodString;
3405
+ type: z.ZodEnum<{
3406
+ string: "string";
3407
+ number: "number";
3408
+ boolean: "boolean";
3409
+ date: "date";
3410
+ image: "image";
3411
+ url: "url";
3412
+ list: "list";
3413
+ money: "money";
3414
+ }>;
3415
+ example: z.ZodOptional<z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>;
3416
+ }, z.core.$strict>;
3417
+ type FieldSpec = z.infer<typeof fieldSpecSchema>;
3418
+ declare const dataSourceDescriptorSchema: z.ZodObject<{
3419
+ id: z.ZodString;
3420
+ provider: z.ZodEnum<{
3421
+ catalog: "catalog";
3422
+ commerce: "commerce";
3423
+ }>;
3424
+ title: z.ZodString;
3425
+ description: z.ZodString;
3426
+ params: z.ZodArray<z.ZodObject<{
3427
+ key: z.ZodString;
3428
+ label: z.ZodString;
3429
+ tab: z.ZodEnum<{
3430
+ content: "content";
3431
+ style: "style";
3432
+ advanced: "advanced";
3433
+ }>;
3434
+ output: z.ZodEnum<{
3435
+ css: "css";
3436
+ markup: "markup";
3437
+ }>;
3438
+ control: z.ZodEnum<{
3439
+ number: "number";
3440
+ color: "color";
3441
+ image: "image";
3442
+ link: "link";
3443
+ icon: "icon";
3444
+ text: "text";
3445
+ richtext: "richtext";
3446
+ select: "select";
3447
+ toggle: "toggle";
3448
+ spacing: "spacing";
3449
+ alignment: "alignment";
3450
+ "font-size": "font-size";
3451
+ }>;
3452
+ translatable: z.ZodOptional<z.ZodBoolean>;
3453
+ default: z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>;
3454
+ min: z.ZodOptional<z.ZodNumber>;
3455
+ max: z.ZodOptional<z.ZodNumber>;
3456
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3457
+ value: z.ZodString;
3458
+ label: z.ZodString;
3459
+ }, z.core.$strict>>>;
3460
+ maxLength: z.ZodOptional<z.ZodNumber>;
3461
+ }, z.core.$strict>>;
3462
+ result: z.ZodEnum<{
3463
+ collection: "collection";
3464
+ product: "product";
3465
+ "product[]": "product[]";
3466
+ "category[]": "category[]";
3467
+ "review[]": "review[]";
3468
+ customer: "customer";
3469
+ cart: "cart";
3470
+ }>;
3471
+ fields: z.ZodArray<z.ZodObject<{
3472
+ name: z.ZodString;
3473
+ type: z.ZodEnum<{
3474
+ string: "string";
3475
+ number: "number";
3476
+ boolean: "boolean";
3477
+ date: "date";
3478
+ image: "image";
3479
+ url: "url";
3480
+ list: "list";
3481
+ money: "money";
3482
+ }>;
3483
+ example: z.ZodOptional<z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>;
3484
+ }, z.core.$strict>>;
3485
+ perShopper: z.ZodBoolean;
3486
+ cacheKind: z.ZodEnum<{
3487
+ none: "none";
3488
+ product: "product";
3489
+ listings: "listings";
3490
+ reviews: "reviews";
3491
+ }>;
3492
+ }, z.core.$strict>;
3493
+ type DataSourceDescriptor = z.infer<typeof dataSourceDescriptorSchema>;
3494
+ declare const widgetDefinitionSchema: z.ZodObject<{
3495
+ type: z.ZodString;
3496
+ v: z.ZodNumber;
3497
+ title: z.ZodString;
3498
+ group: z.ZodEnum<{
3499
+ custom: "custom";
3500
+ layout: "layout";
3501
+ basic: "basic";
3502
+ catalog: "catalog";
3503
+ commerce: "commerce";
3504
+ }>;
3505
+ icon: z.ZodString;
3506
+ description: z.ZodString;
3507
+ settings: z.ZodArray<z.ZodObject<{
3508
+ key: z.ZodString;
3509
+ label: z.ZodString;
3510
+ tab: z.ZodEnum<{
3511
+ content: "content";
3512
+ style: "style";
3513
+ advanced: "advanced";
3514
+ }>;
3515
+ output: z.ZodEnum<{
3516
+ css: "css";
3517
+ markup: "markup";
3518
+ }>;
3519
+ control: z.ZodEnum<{
3520
+ number: "number";
3521
+ color: "color";
3522
+ image: "image";
3523
+ link: "link";
3524
+ icon: "icon";
3525
+ text: "text";
3526
+ richtext: "richtext";
3527
+ select: "select";
3528
+ toggle: "toggle";
3529
+ spacing: "spacing";
3530
+ alignment: "alignment";
3531
+ "font-size": "font-size";
3532
+ }>;
3533
+ translatable: z.ZodOptional<z.ZodBoolean>;
3534
+ default: z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>;
3535
+ min: z.ZodOptional<z.ZodNumber>;
3536
+ max: z.ZodOptional<z.ZodNumber>;
3537
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3538
+ value: z.ZodString;
3539
+ label: z.ZodString;
3540
+ }, z.core.$strict>>>;
3541
+ maxLength: z.ZodOptional<z.ZodNumber>;
3542
+ }, z.core.$strict>>;
3543
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3544
+ accepts: z.ZodArray<z.ZodEnum<{
3545
+ collection: "collection";
3546
+ product: "product";
3547
+ "product[]": "product[]";
3548
+ "category[]": "category[]";
3549
+ "review[]": "review[]";
3550
+ customer: "customer";
3551
+ cart: "cart";
3552
+ }>>;
3553
+ required: z.ZodBoolean;
3554
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3555
+ source: z.ZodString;
3556
+ }, z.core.$strict>, z.ZodObject<{
3557
+ source: z.ZodString;
3558
+ params: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodType<SettingValue, unknown, z.core.$ZodTypeInternals<SettingValue, unknown>>>>;
3559
+ }, z.core.$strict>]>>;
3560
+ label: z.ZodString;
3561
+ }, z.core.$strict>>>;
3562
+ placement: z.ZodOptional<z.ZodObject<{
3563
+ slotsOnly: z.ZodOptional<z.ZodBoolean>;
3564
+ notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3565
+ footer: "footer";
3566
+ header: "header";
3567
+ slot: "slot";
3568
+ }>>>;
3569
+ topLevelOnly: z.ZodOptional<z.ZodBoolean>;
3570
+ }, z.core.$strict>>;
3571
+ }, z.core.$strict>;
3572
+ type DefinitionData = z.infer<typeof widgetDefinitionSchema>;
3573
+ /** A forward migration for one widget version: props of `v` → props of `v + 1`. */
3574
+ type WidgetMigration = (props: Record<string, SettingValue>) => Record<string, SettingValue>;
3575
+ type WidgetDefinition = Omit<DefinitionData, 'type'> & {
3576
+ type: WidgetType;
3577
+ /** Set for custom widgets only. A composite cannot contain another composite. */
3578
+ kind?: 'composite' | 'template';
3579
+ /** `migrations[fromV](props)` lifts props from `fromV` to `fromV + 1`. */
3580
+ migrations?: Record<number, WidgetMigration>;
3581
+ /**
3582
+ * Custom widget versions only (§10.4): what this version renamed (`{ old: new }`)
3583
+ * and removed since the one before it. `upgradeNode` applies them.
3584
+ */
3585
+ renamed?: Record<string, string>;
3586
+ removed?: string[];
3587
+ };
3588
+ /**
3589
+ * Checks one value against its field. Returns a message, or `null` when valid.
3590
+ * `null` is valid for any field whose default is `null` (the field is optional).
3591
+ */
3592
+ declare function validateSettingValue(field: SettingField, value: unknown): string | null;
3593
+ /** Validates a props object against a definition: unknown keys and invalid values. */
3594
+ declare function validateWidgetProps(def: Pick<WidgetDefinition, 'settings'>, props: Record<string, SettingValue>): {
3595
+ path: string;
3596
+ message: string;
3597
+ }[];
3598
+ interface WidgetRegistry {
3599
+ /** The definition of exactly this version, or undefined. */
3600
+ widget(type: string, v: number): WidgetDefinition | undefined;
3601
+ /** The highest version registered for the type. */
3602
+ latest(type: string): WidgetDefinition | undefined;
3603
+ source(id: string): DataSourceDescriptor | undefined;
3604
+ /** Every registered data source. Templates may read the fields of the sources an input accepts. */
3605
+ sources(): DataSourceDescriptor[];
3606
+ /** The latest definition of every type, ordered by type. */
3607
+ all(): WidgetDefinition[];
3608
+ }
3609
+ /**
3610
+ * Builds the lookup the Worker, the editor and `applyOps` validate against.
3611
+ * `defs` are built-in and pack definitions (every version a document may still
3612
+ * hold), `custom` are the site's active or frozen custom widget versions.
3613
+ */
3614
+ declare function createRegistry(defs: readonly WidgetDefinition[], sources: readonly DataSourceDescriptor[], custom?: readonly CustomWidgetSnapshot[]): WidgetRegistry;
3615
+
3616
+ /** Every widget has these (spec §8.2): hide per device, an anchor and its margins. */
3617
+ declare const COMMON_WIDGET_SETTINGS: readonly SettingField[];
3618
+ declare const BASIC_WIDGET_DEFINITIONS: WidgetDefinition[];
3619
+
3620
+ /** Where a document lives. A part or slot may refuse some widgets. */
3621
+ type DocumentKind = 'page' | 'part:header' | 'part:footer' | 'slot';
3622
+ type OpContext = {
3623
+ registry: WidgetRegistry;
3624
+ documentKind: DocumentKind;
3625
+ /** Data source ids the merchant has enabled (a source is also known to the registry). */
3626
+ enabledSources: ReadonlySet<string>;
3627
+ };
3628
+ type PlacementCode = Extract<IssueCode, 'SECTION_NOT_NESTABLE' | 'INNER_IN_INNER' | 'INNER_NOT_TOP_LEVEL' | 'COLUMN_LIMIT' | 'NOT_ALLOWED_IN_PART' | 'MOVE_INTO_SELF' | 'COLUMN_REMOVE_NEEDS_SETCOLUMNS' | 'COLUMN_NOT_EMPTY' | 'UNKNOWN_PROP' | 'SOURCE_NOT_ENABLED' | 'RESULT_TYPE_MISMATCH' | 'ID_NOT_FRESH'>;
3629
+ type Placement = {
3630
+ ok: true;
3631
+ } | {
3632
+ ok: false;
3633
+ code: PlacementCode;
3634
+ message: string;
3635
+ };
3636
+ /**
3637
+ * Whether a widget may live in this kind of document (`placement` of its
3638
+ * definition). Pass `v` to read the placement of that exact version.
3639
+ */
3640
+ declare function checkWidgetPart(type: string, ctx: OpContext, v?: number): Placement;
3641
+ /** A widget whose definition says `placement.topLevelOnly` cannot sit inside an inner section. */
3642
+ declare function checkTopLevel(type: string, ctx: OpContext, v?: number): Placement;
3643
+ /**
3644
+ * Can a node of this type go into this parent? `parentId` is `'root'` or the id
3645
+ * of a column. Pass the node's `v` for a widget, so its definition's `placement`
3646
+ * is read for that version, and its `id` when it already exists (a move), so that a
3647
+ * node cannot go into itself and a full column still takes its own child back.
3648
+ * The editor calls this before it shows a drop zone; `applyOps` calls it for
3649
+ * every insert and move.
3650
+ */
3651
+ declare function canPlace(doc: PageDocument, node: {
3652
+ type: string;
3653
+ id?: string;
3654
+ v?: number;
3655
+ }, parentId: string, ctx: OpContext): Placement;
3656
+
3657
+ /**
3658
+ * Document edit operations (spec §8.4). `applyOps` is pure and atomic, and
3659
+ * `invertOps` returns the batch that undoes it. Ids the ops create (a wrapper
3660
+ * section, new columns) are derived from the ids already in play, so the same
3661
+ * ops on the same document always give the same result.
3662
+ */
3663
+ type DocOpDevice = 'tablet' | 'phone';
3664
+ type ParentId = 'root' | string;
3665
+ type DocOp = {
3666
+ op: 'insert';
3667
+ parentId: ParentId;
3668
+ index: number;
3669
+ node: SectionNode | InnerSectionNode | WidgetNode;
3670
+ } | {
3671
+ op: 'remove';
3672
+ id: string;
3673
+ } | {
3674
+ op: 'move';
3675
+ id: string;
3676
+ parentId: ParentId;
3677
+ index: number;
3678
+ } | {
3679
+ op: 'setProps';
3680
+ id: string;
3681
+ props: Record<string, SettingValue | null>;
3682
+ } | {
3683
+ op: 'setResponsive';
3684
+ id: string;
3685
+ device: DocOpDevice;
3686
+ props: Record<string, SettingValue | null>;
3687
+ } | {
3688
+ op: 'setColumns';
3689
+ sectionId: string;
3690
+ widths: number[];
3691
+ /** Without a device the columns themselves change; with one only that device's width overrides are written. */
3692
+ device?: DocOpDevice;
3693
+ /** Needed to remove a column that has children: they join the column before it. */
3694
+ moveChildrenTo?: 'previous';
3695
+ /** Ids for the columns this op adds (fresh ones are derived when missing). */
3696
+ newIds?: string[];
3697
+ } | {
3698
+ op: 'setData';
3699
+ id: string;
3700
+ name: string;
3701
+ binding: DataBinding | null;
3702
+ } | {
3703
+ op: 'replaceDocument';
3704
+ document: PageDocument;
3705
+ } | {
3706
+ op: 'upgradeNode';
3707
+ id: string;
3708
+ toV: number;
3709
+ /** Set by the inverse of an upgrade: put these props and overrides back at `toV`. */
3710
+ restore?: {
3711
+ props: Record<string, SettingValue>;
3712
+ responsive?: WidgetNode['responsive'];
3713
+ };
3714
+ };
3715
+ type ApplyResult = {
3716
+ ok: true;
3717
+ doc: PageDocument;
3718
+ } | {
3719
+ ok: false;
3720
+ issues: Issue[];
3721
+ };
3722
+ /**
3723
+ * Brings every built-in and pack widget up to the latest definition's version
3724
+ * (§8.5), through `migrations`. Custom widgets are left alone: they move only
3725
+ * when the merchant clicks "Update" (`upgradeNode`). Pure; unchanged parts of
3726
+ * the document are shared with the input.
3727
+ */
3728
+ declare function upgradeNodes(doc: PageDocument, registry: WidgetRegistry): {
3729
+ doc: PageDocument;
3730
+ upgraded: string[];
3731
+ };
3732
+ /**
3733
+ * Applies the ops in order. Atomic: either every op applies and the result is a
3734
+ * valid document (schema and limits), or nothing changes and `issues` says why.
3735
+ * Pure; the input is never changed and untouched parts are shared with the result.
3736
+ */
3737
+ declare function applyOps(doc: PageDocument, ops: DocOp[], ctx: OpContext): ApplyResult;
3738
+ /**
3739
+ * The ops that undo `ops` when applied to the document `ops` produced. The undo
3740
+ * stack stores them with each batch. `ops` must apply cleanly to `before`;
3741
+ * otherwise this throws.
3742
+ *
3743
+ * The undo contract is deep equality (`toEqual`), not byte equality: key order
3744
+ * may differ, and props or overrides that were stored as an explicit `null`
3745
+ * come back absent (the same meaning: the definition's default), as do empty
3746
+ * `responsive` containers.
3747
+ *
3748
+ * Undoing a remove is checked again as an insert, so it can be refused, for
3749
+ * example when the node's widget is no longer available (spec 8.5). The editor
3750
+ * must handle `applyOps` refusing an inverse batch.
3751
+ */
3752
+ declare function invertOps(before: PageDocument, ops: DocOp[], ctx: OpContext): DocOp[];
3753
+
3754
+ /** Every op, for the editor's own autosave and undo (trusted callers). */
3755
+ declare const docOpSchema: z.ZodType<DocOp, unknown>;
3756
+ /** A batch from an agent is at most this many ops. */
3757
+ declare const AGENT_MAX_OPS = 500;
3758
+ /** The ops an agent may send (MCP `apply_ops`, Widget API): no `replaceDocument`, no `restore`. */
3759
+ declare const agentDocOpSchema: z.ZodType<Exclude<DocOp, {
3760
+ op: "replaceDocument";
3761
+ }>, unknown>;
3762
+ /** A batch from an agent: 1 to `AGENT_MAX_OPS` ops. */
3763
+ declare const agentDocOpsSchema: z.ZodArray<z.ZodType<{
3764
+ op: "insert";
3765
+ parentId: ParentId;
3766
+ index: number;
3767
+ node: SectionNode | InnerSectionNode | WidgetNode;
3768
+ } | {
3769
+ op: "remove";
3770
+ id: string;
3771
+ } | {
3772
+ op: "move";
3773
+ id: string;
3774
+ parentId: ParentId;
3775
+ index: number;
3776
+ } | {
3777
+ op: "setProps";
3778
+ id: string;
3779
+ props: Record<string, SettingValue | null>;
3780
+ } | {
3781
+ op: "setResponsive";
3782
+ id: string;
3783
+ device: DocOpDevice;
3784
+ props: Record<string, SettingValue | null>;
3785
+ } | {
3786
+ op: "setColumns";
3787
+ sectionId: string;
3788
+ widths: number[];
3789
+ device?: DocOpDevice;
3790
+ moveChildrenTo?: "previous";
3791
+ newIds?: string[];
3792
+ } | {
3793
+ op: "setData";
3794
+ id: string;
3795
+ name: string;
3796
+ binding: DataBinding | null;
3797
+ } | {
3798
+ op: "upgradeNode";
3799
+ id: string;
3800
+ toV: number;
3801
+ restore?: {
3802
+ props: Record<string, SettingValue>;
3803
+ responsive?: WidgetNode["responsive"];
3804
+ };
3805
+ }, unknown, z.core.$ZodTypeInternals<{
3806
+ op: "insert";
3807
+ parentId: ParentId;
3808
+ index: number;
3809
+ node: SectionNode | InnerSectionNode | WidgetNode;
3810
+ } | {
3811
+ op: "remove";
3812
+ id: string;
3813
+ } | {
3814
+ op: "move";
3815
+ id: string;
3816
+ parentId: ParentId;
3817
+ index: number;
3818
+ } | {
3819
+ op: "setProps";
3820
+ id: string;
3821
+ props: Record<string, SettingValue | null>;
3822
+ } | {
3823
+ op: "setResponsive";
3824
+ id: string;
3825
+ device: DocOpDevice;
3826
+ props: Record<string, SettingValue | null>;
3827
+ } | {
3828
+ op: "setColumns";
3829
+ sectionId: string;
3830
+ widths: number[];
3831
+ device?: DocOpDevice;
3832
+ moveChildrenTo?: "previous";
3833
+ newIds?: string[];
3834
+ } | {
3835
+ op: "setData";
3836
+ id: string;
3837
+ name: string;
3838
+ binding: DataBinding | null;
3839
+ } | {
3840
+ op: "upgradeNode";
3841
+ id: string;
3842
+ toV: number;
3843
+ restore?: {
3844
+ props: Record<string, SettingValue>;
3845
+ responsive?: WidgetNode["responsive"];
3846
+ };
3847
+ }, unknown>>>;
3848
+
3849
+ /**
3850
+ * The one place a URL becomes safe to put in `href` or `src` (spec §10.3).
3851
+ * It is an allow-list: anything it does not recognise, in any spelling, is `null`.
3852
+ * The renderer runs it again at render time, because data values are only known then.
3853
+ */
3854
+ type SafeUrlKind = 'href' | 'src';
3855
+ /**
3856
+ * Returns the URL when it is safe, otherwise `null`.
3857
+ *
3858
+ * - `href`: `https://host/...` or a root-relative path (`/shop`, never `//host`). `http:`,
3859
+ * `mailto:` and `tel:` are not in the spec's list and are refused.
3860
+ * - `src`: an `https` URL on exactly `ctx.mediaOrigin`.
3861
+ *
3862
+ * `javascript:`, `data:`, `vbscript:`, entity-encoded, escaped, mixed-case,
3863
+ * whitespace-split and non-ASCII spellings never match the allow-list.
3864
+ */
3865
+ declare function safeUrl(value: unknown, kind: SafeUrlKind, ctx: {
3866
+ mediaOrigin: string;
3867
+ }): string | null;
3868
+
3869
+ /**
3870
+ * The Throttle Template AST (spec §10.3). It is a closed union: the renderer
3871
+ * interprets exactly these node types and nothing else, and no string of markup
3872
+ * is ever built from it.
3873
+ */
3874
+ declare const TEMPLATE_FILTERS: readonly ["upper", "lower", "truncate", "default"];
3875
+ type TemplateFilterName = (typeof TEMPLATE_FILTERS)[number];
3876
+ declare const ALLOWED_ELEMENTS: readonly ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "a", "img", "ul", "ol", "li", "strong", "em", "small", "figure", "figcaption", "section", "article", "header", "footer", "br", "hr"];
3877
+ type AllowedElement = (typeof ALLOWED_ELEMENTS)[number];
3878
+ /** Elements with no children and no closing tag. */
3879
+ declare const VOID_ELEMENTS: readonly AllowedElement[];
3880
+ /** Attributes by element. `*` applies to every element. `data-*` is handled separately. */
3881
+ declare const ALLOWED_ATTRS: Readonly<Record<string, readonly string[]>>;
3882
+ /** Non-interactive roles only. */
3883
+ declare const ALLOWED_ROLES: readonly ["article", "banner", "complementary", "contentinfo", "figure", "group", "heading", "img", "list", "listitem", "none", "note", "presentation", "region", "separator"];
3884
+ /**
3885
+ * Author classes may not start with these: they belong to the platform's own
3886
+ * styles (`tb-` is the builder-react layer, `tsf-` and `throttle-` the storefront
3887
+ * kits, `b-` the builder). Reserving them keeps a widget from borrowing or
3888
+ * clashing with platform classes.
3889
+ */
3890
+ declare const RESERVED_CLASS_PREFIXES: readonly ["b-", "tb-", "tsf-", "throttle-"];
3891
+ declare const isReservedClass: (name: string) => boolean;
3892
+ /** Bidirectional override and isolate controls: they make text read differently from how it is stored. */
3893
+ declare const BIDI_CONTROL_RE: RegExp;
3894
+ declare const CLASS_TOKEN_RE: RegExp;
3895
+ declare const DATA_ATTR_RE: RegExp;
3896
+ /** `data-b-` is reserved for the renderer (`data-b-w` scopes widget CSS). */
3897
+ declare const RESERVED_DATA_PREFIX = "data-b-";
3898
+ type Filter = {
3899
+ name: 'upper';
3900
+ } | {
3901
+ name: 'lower';
3902
+ } | {
3903
+ name: 'truncate';
3904
+ n: number;
3905
+ } | {
3906
+ name: 'default';
3907
+ text: string;
3908
+ };
3909
+ type TextNode = {
3910
+ type: 'text';
3911
+ value: string;
3912
+ };
3913
+ /** `path` is the dotted path split into segments, such as `['settings', 'title']`. */
3914
+ type OutputNode = {
3915
+ type: 'output';
3916
+ path: string[];
3917
+ filters: Filter[];
3918
+ };
3919
+ type IfNode = {
3920
+ type: 'if';
3921
+ path: string[];
3922
+ then: TemplateNode[];
3923
+ else: TemplateNode[];
3924
+ };
3925
+ type UnlessNode = {
3926
+ type: 'unless';
3927
+ path: string[];
3928
+ body: TemplateNode[];
3929
+ };
3930
+ type EachNode = {
3931
+ type: 'each';
3932
+ path: string[];
3933
+ as: string;
3934
+ body: TemplateNode[];
3935
+ };
3936
+ type AttrPart = TextNode | OutputNode;
3937
+ type ElementAttr = {
3938
+ name: string;
3939
+ value: AttrPart[];
3940
+ };
3941
+ type ElementNode = {
3942
+ type: 'element';
3943
+ tag: AllowedElement;
3944
+ attrs: ElementAttr[];
3945
+ children: TemplateNode[];
3946
+ };
3947
+ type TemplateNode = TextNode | OutputNode | IfNode | UnlessNode | EachNode | ElementNode;
3948
+ type TemplateAst = TemplateNode[];
3949
+ /** The most rendered nodes a template may produce in total (see `templateWeight`). */
3950
+ declare const MAX_TEMPLATE_WEIGHT = 20000;
3951
+ /** The most iterations of one `{{#each}}` that are rendered (spec §10.3). */
3952
+ declare const EACH_ITERATION_CAP = 100;
3953
+ /**
3954
+ * The most nodes a template can render: each node counts once, times the
3955
+ * product of the loop caps (100 per enclosing `{{#each}}`). Both branches of an
3956
+ * `{{#if}}` are summed, which is an upper bound.
3957
+ * The renderer enforces the same number as a cap on rendered nodes.
3958
+ */
3959
+ declare function templateWeight(ast: readonly TemplateNode[], multiplier?: number): number;
3960
+
3961
+ type ParseTemplateResult = {
3962
+ ok: true;
3963
+ ast: TemplateAst;
3964
+ } | {
3965
+ ok: false;
3966
+ issues: Issue[];
3967
+ };
3968
+ /**
3969
+ * Parses Throttle Template source into the closed AST. Refuses everything the
3970
+ * language does not have (triple-stash, partials, helpers, lookups,
3971
+ * comparisons), every element and attribute outside the allow-lists, and
3972
+ * anything past the size, node, depth and `#each` limits. Issue paths read
3973
+ * `template:<line>:<column>`.
3974
+ */
3975
+ declare function parseTemplate(src: string): ParseTemplateResult;
3976
+
3977
+ /**
3978
+ * Checks a parsed template against the widget it belongs to (spec §10.3, §10.4):
3979
+ * every `settings.<key>` is declared, every `data.<input>.<field>` is in the
3980
+ * `fields` allow-list of the registered sources that input accepts, and a money
3981
+ * field can only be printed as `display` or `currency`, never as an amount.
3982
+ */
3983
+ type TemplateContext = {
3984
+ /** The widget's settings. Only `output: 'markup'` settings may be read. */
3985
+ settings: readonly SettingField[];
3986
+ /** The widget's data inputs. */
3987
+ data: Readonly<Record<string, {
3988
+ accepts: readonly DataResultType[];
3989
+ }>>;
3990
+ /** Registered data sources (the allow-lists). */
3991
+ sources: readonly DataSourceDescriptor[];
3992
+ };
3993
+ /** Issues for a template that parses but reads something it may not. */
3994
+ declare function validateTemplate(ast: TemplateAst, ctx: TemplateContext): Issue[];
3995
+
3996
+ type SanitizeCssResult = {
3997
+ ok: true;
3998
+ /** Re-serialised and scoped under `[data-b-w="<type>"]`. Safe to inject as it is. */
3999
+ css: string;
4000
+ /** The same rules re-serialised without the scope. Re-validating it gives the same output. */
4001
+ source: string;
4002
+ /** The setting keys read through `var(--w-<key>)`. */
4003
+ vars: string[];
4004
+ } | {
4005
+ ok: false;
4006
+ issues: Issue[];
4007
+ };
4008
+ /**
4009
+ * Validates widget CSS and returns it re-serialised and scoped to the widget.
4010
+ * Refuses `url(`, `image-set(`, `expression(`, `@import`, `@font-face`, every
4011
+ * other at-rule, backslash escapes, `!important`, properties outside the
4012
+ * allow-list, unbalanced braces and anything over 10 KB.
4013
+ */
4014
+ declare function sanitizeWidgetCss(css: string, type: `custom.${string}`): SanitizeCssResult;
4015
+
4016
+ /**
4017
+ * Custom widget definitions (spec §10): composite (inner nodes plus bindings)
4018
+ * and template (Throttle Template plus restricted CSS). `validateCustomWidget`
4019
+ * is the one gate the Widget API, the MCP tools and the editor go through
4020
+ * before a definition is stored or frozen into a document.
4021
+ */
4022
+ type DataInputDefinition = {
4023
+ accepts: DataResultType[];
4024
+ required: boolean;
4025
+ label: string;
4026
+ };
4027
+ type CustomCommon = {
4028
+ type: `custom.${string}`;
4029
+ v: number;
4030
+ title: string;
4031
+ description: string;
4032
+ icon: string;
4033
+ group: 'custom';
4034
+ settings: SettingField[];
4035
+ /** Old key to new key, applied by the editor's "Update". */
4036
+ renamed?: Record<string, string>;
4037
+ /** Keys dropped by this version. */
4038
+ removed?: string[];
4039
+ };
4040
+ type CompositeDefinition = CustomCommon & {
4041
+ kind: 'composite';
4042
+ /** Exactly one of the two. */
4043
+ body: {
4044
+ columns?: InnerColumnNode[];
4045
+ stack?: WidgetNode[];
4046
+ };
4047
+ bindings: {
4048
+ setting: string;
4049
+ targets: {
4050
+ node: string;
4051
+ prop: string;
4052
+ }[];
4053
+ }[];
4054
+ data?: Record<string, DataInputDefinition & {
4055
+ targets: {
4056
+ node: string;
4057
+ input: string;
4058
+ }[];
4059
+ }>;
4060
+ /** Set on normalisation: a composite with columns is an inner section. */
4061
+ placement?: {
4062
+ topLevelOnly: true;
4063
+ };
4064
+ };
4065
+ type TemplateDefinition = CustomCommon & {
4066
+ kind: 'template';
4067
+ data?: Record<string, DataInputDefinition>;
4068
+ /** Throttle Template source, at most 20 KB. */
4069
+ template: string;
4070
+ /** Restricted CSS, re-serialised and without the scope (see `sanitizeWidgetCss`). */
4071
+ css?: string;
4072
+ };
4073
+ type CustomWidgetDefinition = CompositeDefinition | TemplateDefinition;
4074
+ type ValidateCustomWidgetResult = {
4075
+ ok: true;
4076
+ normalized: CustomWidgetDefinition;
4077
+ ast?: TemplateAst;
4078
+ } | {
4079
+ ok: false;
4080
+ issues: Issue[];
4081
+ };
4082
+ /**
4083
+ * Validates a custom widget definition (composite or template) and returns it
4084
+ * normalised. A definition is refused when it is not plain JSON, holds a
4085
+ * prototype-poisoning key, is over 64 KB, breaks a limit, fails the template or
4086
+ * CSS rules, has a binding that points nowhere or at the wrong control, nests a
4087
+ * composite, or breaks the version rules against the previous version in
4088
+ * `registry`.
4089
+ */
4090
+ declare function validateCustomWidget(def: unknown, registry: WidgetRegistry): ValidateCustomWidgetResult;
4091
+
4092
+ export { AGENT_MAX_OPS, ALLOWED_ATTRS, ALLOWED_ELEMENTS, ALLOWED_ROLES, ANCHOR_RE, type AllowedElement, type AnyNode, type ApplyResult, type AttrPart, BASIC_WIDGET_DEFINITIONS, BIDI_CONTROL_RE, BREAKPOINTS, CATALOG_STRING_KEYS, CLASS_TOKEN_RE, COLOR_VALUE_RE, COMMON_SETTING_KEYS, COMMON_WIDGET_SETTINGS, CSS_CONTROLS, CURRENT_SCHEMA_VERSION, type CatalogStringKey, type ColumnNode, type ColumnProps, type CompositeDefinition, type CustomWidgetDefinition, type CustomWidgetSnapshot, DATA_ATTR_RE, DATA_RESULT_TYPES, type DataBinding, type DataInputDefinition, type DataResultType, type DataSourceDescriptor, type DocOp, type DocOpDevice, type DocumentKind, EACH_ITERATION_CAP, type EachNode, type ElementAttr, type ElementNode, type FieldSpec, type Filter, type FrozenAsset, ISSUE_CODES, type IconName, type IfNode, type InnerColumnNode, type InnerSectionNode, type Issue, type IssueCode, LIMITS, LOCALE_TAG_RE, type LocalizedText, MAX_ISSUES, MAX_TEMPLATE_WEIGHT, type MenuItem, type MenuTarget, NODE_ID_RE, type NodeId, type OpContext, type OutputNode, type Overrides, PREVIEW_WIDTHS, type PageDocument, type ParentId, type ParseTemplateResult, type PathSegment, type Placement, type PlacementCode, RESERVED_CLASS_PREFIXES, RESERVED_DATA_PREFIX, type ResponsiveDevice, SAFE_HREF, SETTING_CONTROLS, SETTING_TABS, SITE_ASSET_PATHS, SITE_FONTS, SITE_FONT_FAMILIES, SITE_SETTINGS_SCHEMA_VERSION, SITE_STRING_DEFAULTS, SITE_STRING_KEYS, SITE_STRING_NAMESPACES, SPACING_TOKENS, type SafeUrlKind, type SanitizeCssResult, type SectionNode, type SectionProps, type SettingField, type SettingValue, type SiteFont, type SiteFontCategory, type SiteFontFamily, type SitePalette, type SiteSettings, type SiteSettingsInput, type SiteStringKey, TEMPLATE_FILTERS, THROTTLE_PK_RE, type TemplateAst, type TemplateContext, type TemplateDefinition, type TemplateFilterName, type TemplateNode, type TextNode, type UnlessNode, type UpgradeResult, VOID_ELEMENTS, type ValidateCustomWidgetResult, WIDGET_GROUPS, WIDGET_TYPE_RE, type WidgetDefinition, type WidgetMigration, type WidgetNode, type WidgetRegistry, type WidgetType, agentDocOpSchema, agentDocOpsSchema, applyOps, assetIdSchema, canPlace, capIssues, checkLimits, checkTopLevel, checkWidgetPart, colorValueSchema, columnPropsSchema, createRegistry, customWidgetSnapshotSchema, dataBindingSchema, dataSourceDescriptorSchema, defaultSiteSettings, docOpSchema, emptyDocument, fieldSpecSchema, formatPath, frozenAssetSchema, innerSectionNodeSchema, invertOps, isReservedClass, isSettingValue, localeTagSchema, localizedTextSchema, makeIssue, menuItemSchema, menuTargetSchema, newNodeId, nodeIdSchema, pageDocumentSchema, parseTemplate, resolveColumnProps, resolveColumnWidths, resolveResponsive, safeUrl, sanitizeWidgetCss, sectionNodeSchema, sectionPropsSchema, settingFieldSchema, settingValueSchema, siteSettingsSchema, spacingValueSchema, templateWeight, upgradeDocument, upgradeNodes, utf8Length, validateCustomWidget, validateDocument, validateSettingValue, validateTemplate, validateWidgetProps, walkNodes, widgetDefinitionSchema, widgetNodeSchema, wrapColumnRows, zodIssues };