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