@squiz/dx-page-contents-lib 1.85.0 → 2.0.1

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.
@@ -2,13 +2,7 @@ import { z } from 'zod';
2
2
  export declare const TextNode: z.ZodObject<{
3
3
  type: z.ZodLiteral<"text">;
4
4
  value: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- value: string;
7
- type: "text";
8
- }, {
9
- value: string;
10
- type: "text";
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export declare const TagNode: z.ZodObject<{
13
7
  type: z.ZodLiteral<"tag">;
14
8
  tag: z.ZodString;
@@ -20,109 +14,40 @@ export declare const TagNode: z.ZodObject<{
20
14
  color: z.ZodOptional<z.ZodString>;
21
15
  size: z.ZodOptional<z.ZodString>;
22
16
  fontFamily: z.ZodOptional<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- bold?: boolean | undefined;
25
- italics?: boolean | undefined;
26
- underline?: boolean | undefined;
27
- color?: string | undefined;
28
- size?: string | undefined;
29
- fontFamily?: string | undefined;
30
- }, {
31
- bold?: boolean | undefined;
32
- italics?: boolean | undefined;
33
- underline?: boolean | undefined;
34
- color?: string | undefined;
35
- size?: string | undefined;
36
- fontFamily?: string | undefined;
37
- }>>;
17
+ }, z.core.$strip>>;
38
18
  formattingOptions: z.ZodOptional<z.ZodObject<{
39
- alignment: z.ZodEnum<["left", "center", "right", "justify"]>;
40
- }, "strip", z.ZodTypeAny, {
41
- alignment: "left" | "center" | "right" | "justify";
42
- }, {
43
- alignment: "left" | "center" | "right" | "justify";
44
- }>>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: "tag";
47
- tag: string;
48
- attributes?: Record<string, string> | undefined;
49
- font?: {
50
- bold?: boolean | undefined;
51
- italics?: boolean | undefined;
52
- underline?: boolean | undefined;
53
- color?: string | undefined;
54
- size?: string | undefined;
55
- fontFamily?: string | undefined;
56
- } | undefined;
57
- formattingOptions?: {
58
- alignment: "left" | "center" | "right" | "justify";
59
- } | undefined;
60
- }, {
61
- type: "tag";
62
- tag: string;
63
- attributes?: Record<string, string> | undefined;
64
- font?: {
65
- bold?: boolean | undefined;
66
- italics?: boolean | undefined;
67
- underline?: boolean | undefined;
68
- color?: string | undefined;
69
- size?: string | undefined;
70
- fontFamily?: string | undefined;
71
- } | undefined;
72
- formattingOptions?: {
73
- alignment: "left" | "center" | "right" | "justify";
74
- } | undefined;
75
- }>;
19
+ alignment: z.ZodEnum<{
20
+ left: "left";
21
+ center: "center";
22
+ right: "right";
23
+ justify: "justify";
24
+ }>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
76
27
  export declare const LinkToMatrixAssetNode: z.ZodObject<{
77
28
  type: z.ZodLiteral<"link-to-matrix-asset">;
78
29
  matrixIdentifier: z.ZodOptional<z.ZodString>;
79
30
  matrixDomain: z.ZodString;
80
31
  matrixAssetId: z.ZodString;
81
- target: z.ZodEnum<["_blank", "_self", "_parent", "_top"]>;
32
+ target: z.ZodEnum<{
33
+ _blank: "_blank";
34
+ _self: "_self";
35
+ _parent: "_parent";
36
+ _top: "_top";
37
+ }>;
82
38
  formattingOptions: z.ZodOptional<z.ZodObject<{
83
- alignment: z.ZodEnum<["left", "center", "right", "justify"]>;
84
- }, "strip", z.ZodTypeAny, {
85
- alignment: "left" | "center" | "right" | "justify";
86
- }, {
87
- alignment: "left" | "center" | "right" | "justify";
88
- }>>;
39
+ alignment: z.ZodEnum<{
40
+ left: "left";
41
+ center: "center";
42
+ right: "right";
43
+ justify: "justify";
44
+ }>;
45
+ }, z.core.$strip>>;
89
46
  attributes: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
90
47
  href: z.ZodOptional<z.ZodNever>;
91
48
  target: z.ZodOptional<z.ZodNever>;
92
- }, "strip", z.ZodTypeAny, {
93
- target?: undefined;
94
- href?: undefined;
95
- }, {
96
- target?: undefined;
97
- href?: undefined;
98
- }>>>;
99
- }, "strip", z.ZodTypeAny, {
100
- type: "link-to-matrix-asset";
101
- matrixDomain: string;
102
- matrixAssetId: string;
103
- target: "_blank" | "_self" | "_parent" | "_top";
104
- attributes?: (Record<string, string> & {
105
- target?: undefined;
106
- href?: undefined;
107
- }) | undefined;
108
- formattingOptions?: {
109
- alignment: "left" | "center" | "right" | "justify";
110
- } | undefined;
111
- matrixIdentifier?: string | undefined;
112
- }, {
113
- type: "link-to-matrix-asset";
114
- matrixDomain: string;
115
- matrixAssetId: string;
116
- target: "_blank" | "_self" | "_parent" | "_top";
117
- attributes?: (Record<string, string> & {
118
- target?: undefined;
119
- href?: undefined;
120
- }) | undefined;
121
- formattingOptions?: {
122
- alignment: "left" | "center" | "right" | "justify";
123
- } | undefined;
124
- matrixIdentifier?: string | undefined;
125
- }>;
49
+ }, z.core.$strip>>>;
50
+ }, z.core.$strip>;
126
51
  export declare const LinkToDamAssetNode: z.ZodObject<{
127
52
  type: z.ZodLiteral<"link-to-dam-asset">;
128
53
  damSystemType: z.ZodString;
@@ -130,104 +55,43 @@ export declare const LinkToDamAssetNode: z.ZodObject<{
130
55
  damObjectId: z.ZodString;
131
56
  damAdditional: z.ZodOptional<z.ZodObject<{
132
57
  variant: z.ZodOptional<z.ZodString>;
133
- }, "strip", z.ZodTypeAny, {
134
- variant?: string | undefined;
135
- }, {
136
- variant?: string | undefined;
137
- }>>;
138
- target: z.ZodEnum<["_blank", "_self", "_parent", "_top"]>;
58
+ }, z.core.$strip>>;
59
+ target: z.ZodEnum<{
60
+ _blank: "_blank";
61
+ _self: "_self";
62
+ _parent: "_parent";
63
+ _top: "_top";
64
+ }>;
139
65
  formattingOptions: z.ZodOptional<z.ZodObject<{
140
- alignment: z.ZodEnum<["left", "center", "right", "justify"]>;
141
- }, "strip", z.ZodTypeAny, {
142
- alignment: "left" | "center" | "right" | "justify";
143
- }, {
144
- alignment: "left" | "center" | "right" | "justify";
145
- }>>;
66
+ alignment: z.ZodEnum<{
67
+ left: "left";
68
+ center: "center";
69
+ right: "right";
70
+ justify: "justify";
71
+ }>;
72
+ }, z.core.$strip>>;
146
73
  attributes: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
147
74
  href: z.ZodOptional<z.ZodNever>;
148
75
  target: z.ZodOptional<z.ZodNever>;
149
- }, "strip", z.ZodTypeAny, {
150
- target?: undefined;
151
- href?: undefined;
152
- }, {
153
- target?: undefined;
154
- href?: undefined;
155
- }>>>;
156
- }, "strip", z.ZodTypeAny, {
157
- type: "link-to-dam-asset";
158
- target: "_blank" | "_self" | "_parent" | "_top";
159
- damSystemType: string;
160
- damSystemIdentifier: string;
161
- damObjectId: string;
162
- attributes?: (Record<string, string> & {
163
- target?: undefined;
164
- href?: undefined;
165
- }) | undefined;
166
- formattingOptions?: {
167
- alignment: "left" | "center" | "right" | "justify";
168
- } | undefined;
169
- damAdditional?: {
170
- variant?: string | undefined;
171
- } | undefined;
172
- }, {
173
- type: "link-to-dam-asset";
174
- target: "_blank" | "_self" | "_parent" | "_top";
175
- damSystemType: string;
176
- damSystemIdentifier: string;
177
- damObjectId: string;
178
- attributes?: (Record<string, string> & {
179
- target?: undefined;
180
- href?: undefined;
181
- }) | undefined;
182
- formattingOptions?: {
183
- alignment: "left" | "center" | "right" | "justify";
184
- } | undefined;
185
- damAdditional?: {
186
- variant?: string | undefined;
187
- } | undefined;
188
- }>;
76
+ }, z.core.$strip>>>;
77
+ }, z.core.$strip>;
189
78
  export declare const MatrixImageNode: z.ZodObject<{
190
79
  type: z.ZodLiteral<"matrix-image">;
191
80
  matrixIdentifier: z.ZodOptional<z.ZodString>;
192
81
  matrixDomain: z.ZodString;
193
82
  matrixAssetId: z.ZodString;
194
83
  formattingOptions: z.ZodOptional<z.ZodObject<{
195
- alignment: z.ZodEnum<["left", "center", "right", "justify"]>;
196
- }, "strip", z.ZodTypeAny, {
197
- alignment: "left" | "center" | "right" | "justify";
198
- }, {
199
- alignment: "left" | "center" | "right" | "justify";
200
- }>>;
84
+ alignment: z.ZodEnum<{
85
+ left: "left";
86
+ center: "center";
87
+ right: "right";
88
+ justify: "justify";
89
+ }>;
90
+ }, z.core.$strip>>;
201
91
  attributes: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
202
92
  src: z.ZodOptional<z.ZodNever>;
203
- }, "strip", z.ZodTypeAny, {
204
- src?: undefined;
205
- }, {
206
- src?: undefined;
207
- }>>>;
208
- }, "strip", z.ZodTypeAny, {
209
- type: "matrix-image";
210
- matrixDomain: string;
211
- matrixAssetId: string;
212
- attributes?: (Record<string, string> & {
213
- src?: undefined;
214
- }) | undefined;
215
- formattingOptions?: {
216
- alignment: "left" | "center" | "right" | "justify";
217
- } | undefined;
218
- matrixIdentifier?: string | undefined;
219
- }, {
220
- type: "matrix-image";
221
- matrixDomain: string;
222
- matrixAssetId: string;
223
- attributes?: (Record<string, string> & {
224
- src?: undefined;
225
- }) | undefined;
226
- formattingOptions?: {
227
- alignment: "left" | "center" | "right" | "justify";
228
- } | undefined;
229
- matrixIdentifier?: string | undefined;
230
- }>;
93
+ }, z.core.$strip>>>;
94
+ }, z.core.$strip>;
231
95
  export declare const DamImageNode: z.ZodObject<{
232
96
  type: z.ZodLiteral<"dam-image">;
233
97
  damSystemType: z.ZodString;
@@ -235,208 +99,60 @@ export declare const DamImageNode: z.ZodObject<{
235
99
  damObjectId: z.ZodString;
236
100
  damAdditional: z.ZodOptional<z.ZodObject<{
237
101
  variant: z.ZodOptional<z.ZodString>;
238
- }, "strip", z.ZodTypeAny, {
239
- variant?: string | undefined;
240
- }, {
241
- variant?: string | undefined;
242
- }>>;
102
+ }, z.core.$strip>>;
243
103
  formattingOptions: z.ZodOptional<z.ZodObject<{
244
- alignment: z.ZodEnum<["left", "center", "right", "justify"]>;
245
- }, "strip", z.ZodTypeAny, {
246
- alignment: "left" | "center" | "right" | "justify";
247
- }, {
248
- alignment: "left" | "center" | "right" | "justify";
249
- }>>;
104
+ alignment: z.ZodEnum<{
105
+ left: "left";
106
+ center: "center";
107
+ right: "right";
108
+ justify: "justify";
109
+ }>;
110
+ }, z.core.$strip>>;
250
111
  attributes: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodObject<{
251
112
  src: z.ZodOptional<z.ZodNever>;
252
- }, "strip", z.ZodTypeAny, {
253
- src?: undefined;
254
- }, {
255
- src?: undefined;
256
- }>>>;
257
- }, "strip", z.ZodTypeAny, {
258
- type: "dam-image";
259
- damSystemType: string;
260
- damSystemIdentifier: string;
261
- damObjectId: string;
262
- attributes?: (Record<string, string> & {
263
- src?: undefined;
264
- }) | undefined;
265
- formattingOptions?: {
266
- alignment: "left" | "center" | "right" | "justify";
267
- } | undefined;
268
- damAdditional?: {
269
- variant?: string | undefined;
270
- } | undefined;
271
- }, {
272
- type: "dam-image";
273
- damSystemType: string;
274
- damSystemIdentifier: string;
275
- damObjectId: string;
276
- attributes?: (Record<string, string> & {
277
- src?: undefined;
278
- }) | undefined;
279
- formattingOptions?: {
280
- alignment: "left" | "center" | "right" | "justify";
281
- } | undefined;
282
- damAdditional?: {
283
- variant?: string | undefined;
284
- } | undefined;
285
- }>;
113
+ }, z.core.$strip>>>;
114
+ }, z.core.$strip>;
286
115
  export declare const NodeName: z.ZodString;
287
116
  export declare const ComponentNode: z.ZodObject<{
288
117
  type: z.ZodLiteral<"component">;
289
- componentType: z.ZodOptional<z.ZodEnum<["server", "edge"]>>;
118
+ componentType: z.ZodOptional<z.ZodEnum<{
119
+ server: "server";
120
+ edge: "edge";
121
+ }>>;
290
122
  componentId: z.ZodString;
291
123
  componentSet: z.ZodString;
292
124
  contentItem: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
293
125
  id: z.ZodString;
294
- }, "strip", z.ZodTypeAny, {
295
- id: string;
296
- }, {
297
- id: string;
298
- }>, z.ZodObject<{
126
+ }, z.core.$strip>, z.ZodObject<{
299
127
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
300
128
  schemaName: z.ZodString;
301
129
  schemaVersion: z.ZodOptional<z.ZodString>;
302
- }, "strip", z.ZodTypeAny, {
303
- content: Record<string, unknown>;
304
- schemaName: string;
305
- schemaVersion?: string | undefined;
306
- }, {
307
- content: Record<string, unknown>;
308
- schemaName: string;
309
- schemaVersion?: string | undefined;
310
- }>]>>;
130
+ }, z.core.$strip>]>>;
311
131
  i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
312
132
  id: z.ZodString;
313
- }, "strip", z.ZodTypeAny, {
314
- id: string;
315
- }, {
316
- id: string;
317
- }>, z.ZodObject<{
133
+ }, z.core.$strip>, z.ZodObject<{
318
134
  content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
319
135
  schemaName: z.ZodString;
320
136
  schemaVersion: z.ZodOptional<z.ZodString>;
321
- }, "strip", z.ZodTypeAny, {
322
- content: Record<string, unknown>;
323
- schemaName: string;
324
- schemaVersion?: string | undefined;
325
- }, {
326
- content: Record<string, unknown>;
327
- schemaName: string;
328
- schemaVersion?: string | undefined;
329
- }>]>>>;
137
+ }, z.core.$strip>]>>>;
330
138
  nodeName: z.ZodOptional<z.ZodString>;
331
- }, "strip", z.ZodTypeAny, {
332
- type: "component";
333
- componentId: string;
334
- componentSet: string;
335
- componentType?: "server" | "edge" | undefined;
336
- contentItem?: {
337
- id: string;
338
- } | {
339
- content: Record<string, unknown>;
340
- schemaName: string;
341
- schemaVersion?: string | undefined;
342
- } | undefined;
343
- i18n?: Record<string, {
344
- id: string;
345
- } | {
346
- content: Record<string, unknown>;
347
- schemaName: string;
348
- schemaVersion?: string | undefined;
349
- }> | undefined;
350
- nodeName?: string | undefined;
351
- }, {
352
- type: "component";
353
- componentId: string;
354
- componentSet: string;
355
- componentType?: "server" | "edge" | undefined;
356
- contentItem?: {
357
- id: string;
358
- } | {
359
- content: Record<string, unknown>;
360
- schemaName: string;
361
- schemaVersion?: string | undefined;
362
- } | undefined;
363
- i18n?: Record<string, {
364
- id: string;
365
- } | {
366
- content: Record<string, unknown>;
367
- schemaName: string;
368
- schemaVersion?: string | undefined;
369
- }> | undefined;
370
- nodeName?: string | undefined;
371
- }>;
139
+ }, z.core.$strip>;
372
140
  export declare const Variant: z.ZodObject<{
373
141
  conditions: z.ZodObject<{
374
142
  segment: z.ZodOptional<z.ZodObject<{
375
143
  code: z.ZodString;
376
- }, "strip", z.ZodTypeAny, {
377
- code: string;
378
- }, {
379
- code: string;
380
- }>>;
144
+ }, z.core.$strip>>;
381
145
  experiment: z.ZodOptional<z.ZodObject<{
382
146
  id: z.ZodString;
383
147
  variant: z.ZodString;
384
- }, "strip", z.ZodTypeAny, {
385
- variant: string;
386
- id: string;
387
- }, {
388
- variant: string;
389
- id: string;
390
- }>>;
391
- }, "strip", z.ZodTypeAny, {
392
- segment?: {
393
- code: string;
394
- } | undefined;
395
- experiment?: {
396
- variant: string;
397
- id: string;
398
- } | undefined;
399
- }, {
400
- segment?: {
401
- code: string;
402
- } | undefined;
403
- experiment?: {
404
- variant: string;
405
- id: string;
406
- } | undefined;
407
- }>;
408
- }, "strip", z.ZodTypeAny, {
409
- conditions: {
410
- segment?: {
411
- code: string;
412
- } | undefined;
413
- experiment?: {
414
- variant: string;
415
- id: string;
416
- } | undefined;
417
- };
418
- }, {
419
- conditions: {
420
- segment?: {
421
- code: string;
422
- } | undefined;
423
- experiment?: {
424
- variant: string;
425
- id: string;
426
- } | undefined;
427
- };
428
- }>;
148
+ }, z.core.$strip>>;
149
+ }, z.core.$strip>;
150
+ }, z.core.$strip>;
429
151
  export declare const VariationNode: z.ZodObject<{
430
152
  type: z.ZodLiteral<"variation">;
431
- default: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
432
- }, "strip", z.ZodTypeAny, {
433
- type: "variation";
434
- default: {};
435
- }, {
436
- type: "variation";
437
- default: {};
438
- }>;
439
- export declare const LayoutNode: z.ZodEffects<z.ZodEffects<z.ZodObject<{
153
+ default: z.ZodObject<{}, z.core.$loose>;
154
+ }, z.core.$strip>;
155
+ export declare const LayoutNode: z.ZodPreprocess<z.ZodObject<{
440
156
  type: z.ZodLiteral<"layout">;
441
157
  layout: z.ZodUnion<[z.ZodObject<{
442
158
  name: z.ZodString;
@@ -447,393 +163,42 @@ export declare const LayoutNode: z.ZodEffects<z.ZodEffects<z.ZodObject<{
447
163
  displayName: z.ZodString;
448
164
  description: z.ZodString;
449
165
  key: z.ZodString;
450
- }, "strip", z.ZodTypeAny, {
451
- key: string;
452
- description: string;
453
- displayName: string;
454
- }, {
455
- key: string;
456
- description: string;
457
- displayName: string;
458
- }>, "many">;
166
+ }, z.core.$strip>>;
459
167
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
460
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
168
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
461
169
  type: z.ZodLiteral<"boolean">;
462
170
  default: z.ZodOptional<z.ZodBoolean>;
463
171
  selectedValue: z.ZodOptional<z.ZodBoolean>;
464
172
  title: z.ZodString;
465
173
  description: z.ZodString;
466
- }, "strip", z.ZodTypeAny, {
467
- description: string;
468
- type: "boolean";
469
- title: string;
470
- selectedValue?: boolean | undefined;
471
- default?: boolean | undefined;
472
- }, {
473
- description: string;
474
- type: "boolean";
475
- title: string;
476
- selectedValue?: boolean | undefined;
477
- default?: boolean | undefined;
478
- }>, z.ZodObject<{
174
+ }, z.core.$strip>, z.ZodObject<{
479
175
  type: z.ZodLiteral<"string">;
480
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
177
  oneOf: z.ZodOptional<z.ZodArray<z.ZodObject<{
482
178
  const: z.ZodString;
483
179
  title: z.ZodString;
484
- }, "strip", z.ZodTypeAny, {
485
- title: string;
486
- const: string;
487
- }, {
488
- title: string;
489
- const: string;
490
- }>, "many">>;
180
+ }, z.core.$strip>>>;
491
181
  default: z.ZodOptional<z.ZodString>;
492
182
  selectedValue: z.ZodOptional<z.ZodString>;
493
183
  'ui:metadata': z.ZodOptional<z.ZodObject<{
494
- enumWidget: z.ZodOptional<z.ZodEnum<["radio", "dropdown"]>>;
495
- }, "strip", z.ZodTypeAny, {
496
- enumWidget?: "radio" | "dropdown" | undefined;
497
- }, {
498
- enumWidget?: "radio" | "dropdown" | undefined;
499
- }>>;
184
+ enumWidget: z.ZodOptional<z.ZodEnum<{
185
+ radio: "radio";
186
+ dropdown: "dropdown";
187
+ }>>;
188
+ }, z.core.$strip>>;
500
189
  title: z.ZodString;
501
190
  description: z.ZodString;
502
- }, "strip", z.ZodTypeAny, {
503
- description: string;
504
- type: "string";
505
- title: string;
506
- selectedValue?: string | undefined;
507
- default?: string | undefined;
508
- enum?: string[] | undefined;
509
- oneOf?: {
510
- title: string;
511
- const: string;
512
- }[] | undefined;
513
- 'ui:metadata'?: {
514
- enumWidget?: "radio" | "dropdown" | undefined;
515
- } | undefined;
516
- }, {
517
- description: string;
518
- type: "string";
519
- title: string;
520
- selectedValue?: string | undefined;
521
- default?: string | undefined;
522
- enum?: string[] | undefined;
523
- oneOf?: {
524
- title: string;
525
- const: string;
526
- }[] | undefined;
527
- 'ui:metadata'?: {
528
- enumWidget?: "radio" | "dropdown" | undefined;
529
- } | undefined;
530
- }>]>>>;
531
- }, "strip", z.ZodTypeAny, {
532
- description: string;
533
- displayName: string;
534
- name: string;
535
- template: string;
536
- zones: {
537
- key: string;
538
- description: string;
539
- displayName: string;
540
- }[];
541
- options?: Record<string, unknown> | undefined;
542
- properties?: Record<string, {
543
- description: string;
544
- type: "boolean";
545
- title: string;
546
- selectedValue?: boolean | undefined;
547
- default?: boolean | undefined;
548
- } | {
549
- description: string;
550
- type: "string";
551
- title: string;
552
- selectedValue?: string | undefined;
553
- default?: string | undefined;
554
- enum?: string[] | undefined;
555
- oneOf?: {
556
- title: string;
557
- const: string;
558
- }[] | undefined;
559
- 'ui:metadata'?: {
560
- enumWidget?: "radio" | "dropdown" | undefined;
561
- } | undefined;
562
- }> | undefined;
563
- }, {
564
- description: string;
565
- displayName: string;
566
- name: string;
567
- template: string;
568
- zones: {
569
- key: string;
570
- description: string;
571
- displayName: string;
572
- }[];
573
- options?: Record<string, unknown> | undefined;
574
- properties?: Record<string, {
575
- description: string;
576
- type: "boolean";
577
- title: string;
578
- selectedValue?: boolean | undefined;
579
- default?: boolean | undefined;
580
- } | {
581
- description: string;
582
- type: "string";
583
- title: string;
584
- selectedValue?: string | undefined;
585
- default?: string | undefined;
586
- enum?: string[] | undefined;
587
- oneOf?: {
588
- title: string;
589
- const: string;
590
- }[] | undefined;
591
- 'ui:metadata'?: {
592
- enumWidget?: "radio" | "dropdown" | undefined;
593
- } | undefined;
594
- }> | undefined;
595
- }>, z.ZodObject<{
191
+ }, z.core.$strip>], "type">>>;
192
+ }, z.core.$strip>, z.ZodObject<{
596
193
  name: z.ZodString;
597
194
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
598
195
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
599
- selectedValue: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
600
- }, "strip", z.ZodTypeAny, {
601
- selectedValue: string | boolean;
602
- }, {
603
- selectedValue: string | boolean;
604
- }>>>;
605
- }, "strip", z.ZodTypeAny, {
606
- name: string;
607
- options?: Record<string, unknown> | undefined;
608
- properties?: Record<string, {
609
- selectedValue: string | boolean;
610
- }> | undefined;
611
- }, {
612
- name: string;
613
- options?: Record<string, unknown> | undefined;
614
- properties?: Record<string, {
615
- selectedValue: string | boolean;
616
- }> | undefined;
617
- }>]>;
196
+ selectedValue: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
197
+ }, z.core.$strip>>>;
198
+ }, z.core.$strip>]>;
618
199
  nodeName: z.ZodOptional<z.ZodString>;
619
- }, "strip", z.ZodTypeAny, {
620
- type: "layout";
621
- layout: {
622
- description: string;
623
- displayName: string;
624
- name: string;
625
- template: string;
626
- zones: {
627
- key: string;
628
- description: string;
629
- displayName: string;
630
- }[];
631
- options?: Record<string, unknown> | undefined;
632
- properties?: Record<string, {
633
- description: string;
634
- type: "boolean";
635
- title: string;
636
- selectedValue?: boolean | undefined;
637
- default?: boolean | undefined;
638
- } | {
639
- description: string;
640
- type: "string";
641
- title: string;
642
- selectedValue?: string | undefined;
643
- default?: string | undefined;
644
- enum?: string[] | undefined;
645
- oneOf?: {
646
- title: string;
647
- const: string;
648
- }[] | undefined;
649
- 'ui:metadata'?: {
650
- enumWidget?: "radio" | "dropdown" | undefined;
651
- } | undefined;
652
- }> | undefined;
653
- } | {
654
- name: string;
655
- options?: Record<string, unknown> | undefined;
656
- properties?: Record<string, {
657
- selectedValue: string | boolean;
658
- }> | undefined;
659
- };
660
- nodeName?: string | undefined;
661
- }, {
662
- type: "layout";
663
- layout: {
664
- description: string;
665
- displayName: string;
666
- name: string;
667
- template: string;
668
- zones: {
669
- key: string;
670
- description: string;
671
- displayName: string;
672
- }[];
673
- options?: Record<string, unknown> | undefined;
674
- properties?: Record<string, {
675
- description: string;
676
- type: "boolean";
677
- title: string;
678
- selectedValue?: boolean | undefined;
679
- default?: boolean | undefined;
680
- } | {
681
- description: string;
682
- type: "string";
683
- title: string;
684
- selectedValue?: string | undefined;
685
- default?: string | undefined;
686
- enum?: string[] | undefined;
687
- oneOf?: {
688
- title: string;
689
- const: string;
690
- }[] | undefined;
691
- 'ui:metadata'?: {
692
- enumWidget?: "radio" | "dropdown" | undefined;
693
- } | undefined;
694
- }> | undefined;
695
- } | {
696
- name: string;
697
- options?: Record<string, unknown> | undefined;
698
- properties?: Record<string, {
699
- selectedValue: string | boolean;
700
- }> | undefined;
701
- };
702
- nodeName?: string | undefined;
703
- }>, {
704
- type: "layout";
705
- layout: {
706
- description: string;
707
- displayName: string;
708
- name: string;
709
- template: string;
710
- zones: {
711
- key: string;
712
- description: string;
713
- displayName: string;
714
- }[];
715
- options?: Record<string, unknown> | undefined;
716
- properties?: Record<string, {
717
- description: string;
718
- type: "boolean";
719
- title: string;
720
- selectedValue?: boolean | undefined;
721
- default?: boolean | undefined;
722
- } | {
723
- description: string;
724
- type: "string";
725
- title: string;
726
- selectedValue?: string | undefined;
727
- default?: string | undefined;
728
- enum?: string[] | undefined;
729
- oneOf?: {
730
- title: string;
731
- const: string;
732
- }[] | undefined;
733
- 'ui:metadata'?: {
734
- enumWidget?: "radio" | "dropdown" | undefined;
735
- } | undefined;
736
- }> | undefined;
737
- } | {
738
- name: string;
739
- options?: Record<string, unknown> | undefined;
740
- properties?: Record<string, {
741
- selectedValue: string | boolean;
742
- }> | undefined;
743
- };
744
- nodeName?: string | undefined;
745
- }, {
746
- type: "layout";
747
- layout: {
748
- description: string;
749
- displayName: string;
750
- name: string;
751
- template: string;
752
- zones: {
753
- key: string;
754
- description: string;
755
- displayName: string;
756
- }[];
757
- options?: Record<string, unknown> | undefined;
758
- properties?: Record<string, {
759
- description: string;
760
- type: "boolean";
761
- title: string;
762
- selectedValue?: boolean | undefined;
763
- default?: boolean | undefined;
764
- } | {
765
- description: string;
766
- type: "string";
767
- title: string;
768
- selectedValue?: string | undefined;
769
- default?: string | undefined;
770
- enum?: string[] | undefined;
771
- oneOf?: {
772
- title: string;
773
- const: string;
774
- }[] | undefined;
775
- 'ui:metadata'?: {
776
- enumWidget?: "radio" | "dropdown" | undefined;
777
- } | undefined;
778
- }> | undefined;
779
- } | {
780
- name: string;
781
- options?: Record<string, unknown> | undefined;
782
- properties?: Record<string, {
783
- selectedValue: string | boolean;
784
- }> | undefined;
785
- };
786
- nodeName?: string | undefined;
787
- }>, {
788
- type: "layout";
789
- layout: {
790
- description: string;
791
- displayName: string;
792
- name: string;
793
- template: string;
794
- zones: {
795
- key: string;
796
- description: string;
797
- displayName: string;
798
- }[];
799
- options?: Record<string, unknown> | undefined;
800
- properties?: Record<string, {
801
- description: string;
802
- type: "boolean";
803
- title: string;
804
- selectedValue?: boolean | undefined;
805
- default?: boolean | undefined;
806
- } | {
807
- description: string;
808
- type: "string";
809
- title: string;
810
- selectedValue?: string | undefined;
811
- default?: string | undefined;
812
- enum?: string[] | undefined;
813
- oneOf?: {
814
- title: string;
815
- const: string;
816
- }[] | undefined;
817
- 'ui:metadata'?: {
818
- enumWidget?: "radio" | "dropdown" | undefined;
819
- } | undefined;
820
- }> | undefined;
821
- } | {
822
- name: string;
823
- options?: Record<string, unknown> | undefined;
824
- properties?: Record<string, {
825
- selectedValue: string | boolean;
826
- }> | undefined;
827
- };
828
- nodeName?: string | undefined;
829
- }, unknown>;
200
+ }, z.core.$strip>, any>;
830
201
  export declare const FragmentNode: z.ZodObject<{
831
202
  type: z.ZodLiteral<"fragment">;
832
- i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
833
- }, "strip", z.ZodTypeAny, {
834
- type: "fragment";
835
- i18n?: Record<string, {}> | undefined;
836
- }, {
837
- type: "fragment";
838
- i18n?: Record<string, {}> | undefined;
839
- }>;
203
+ i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
204
+ }, z.core.$strip>;