@prismicio/types-internal 2.1.0-alpha.2 → 2.1.0-alpha.4

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.
Files changed (39) hide show
  1. package/lib/content/Document.d.ts +1 -1
  2. package/lib/content/Document.js +1 -6
  3. package/lib/customtypes/CustomType.d.ts +1046 -1180
  4. package/lib/customtypes/CustomType.js +13 -74
  5. package/lib/customtypes/Section.d.ts +1047 -1171
  6. package/lib/customtypes/Section.js +23 -1
  7. package/lib/customtypes/_internal/utils.d.ts +3 -0
  8. package/lib/customtypes/_internal/utils.js +20 -0
  9. package/lib/customtypes/diff/SharedSlice.d.ts +184 -220
  10. package/lib/customtypes/diff/Variation.d.ts +183 -219
  11. package/lib/customtypes/widgets/Group.d.ts +6 -40
  12. package/lib/customtypes/widgets/Group.js +20 -1
  13. package/lib/customtypes/widgets/Widget.d.ts +778 -976
  14. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +4 -22
  15. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +5 -34
  16. package/lib/customtypes/widgets/nestable/Link/index.d.ts +4 -40
  17. package/lib/customtypes/widgets/nestable/Link/index.js +1 -1
  18. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +2 -20
  19. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +6 -40
  20. package/lib/customtypes/widgets/slices/CompositeSlice.js +26 -1
  21. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +4 -40
  22. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +10 -80
  23. package/lib/customtypes/widgets/slices/SharedSlice.js +35 -1
  24. package/lib/customtypes/widgets/slices/Slices.d.ts +924 -1246
  25. package/lib/customtypes/widgets/slices/Slices.js +34 -1
  26. package/lib/validators/StringOrT.d.ts +3 -0
  27. package/lib/validators/StringOrT.js +15 -0
  28. package/package.json +1 -1
  29. package/src/content/Document.ts +2 -6
  30. package/src/customtypes/CustomType.ts +24 -97
  31. package/src/customtypes/Section.ts +28 -1
  32. package/src/customtypes/_internal/utils.ts +25 -0
  33. package/src/customtypes/widgets/Group.ts +24 -0
  34. package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +5 -54
  35. package/src/customtypes/widgets/nestable/Link/index.ts +2 -2
  36. package/src/customtypes/widgets/slices/CompositeSlice.ts +33 -0
  37. package/src/customtypes/widgets/slices/SharedSlice.ts +47 -0
  38. package/src/customtypes/widgets/slices/Slices.ts +44 -1
  39. package/src/validators/StringOrT.ts +21 -0
@@ -1,32 +1,17 @@
1
- import { Either } from "fp-ts/lib/Either";
2
1
  import * as t from "io-ts";
2
+ import { TraverseFn } from "./_internal/utils";
3
3
  import type { SharedSlice } from "./widgets/slices/SharedSlice";
4
4
  import type { DynamicWidget } from "./widgets/Widget";
5
5
  export declare const CustomTypeFormat: {
6
6
  page: string;
7
7
  custom: string;
8
8
  };
9
- declare class CustomTypeSlicesError extends Error {
10
- slices: Array<string>;
11
- message: string;
12
- constructor(slices: Array<string>);
13
- _formatError(slicesRefs: Array<string>): string;
14
- }
15
9
  export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
16
10
  id: t.StringC;
17
11
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
18
12
  repeatable: t.BooleanC;
19
13
  json: t.RecordC<t.StringC, t.Type<{
20
14
  [x: string]: ({
21
- type: "Boolean";
22
- } & {
23
- config?: {
24
- label?: string | null | undefined;
25
- default_value?: boolean;
26
- placeholder_true?: string;
27
- placeholder_false?: string;
28
- };
29
- }) | ({
30
15
  type: "Color";
31
16
  } & {
32
17
  fieldset?: string | null | undefined;
@@ -35,13 +20,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
35
20
  placeholder?: string;
36
21
  };
37
22
  }) | ({
38
- type: "Date";
23
+ type: "Boolean";
39
24
  } & {
40
- fieldset?: string | null | undefined;
41
25
  config?: {
42
26
  label?: string | null | undefined;
43
- placeholder?: string;
44
- default?: string;
27
+ default_value?: boolean;
28
+ placeholder_true?: string;
29
+ placeholder_false?: string;
45
30
  };
46
31
  }) | ({
47
32
  type: "Embed";
@@ -60,58 +45,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
60
45
  label?: string | null | undefined;
61
46
  };
62
47
  }) | ({
63
- type: "Image";
64
- } & {
65
- fieldset?: string | null | undefined;
66
- config?: {
67
- label?: string | null | undefined;
68
- placeholder?: string;
69
- constraint?: {
70
- width?: number | null;
71
- height?: number | null;
72
- };
73
- thumbnails?: readonly ({
74
- name: string;
75
- } & {
76
- width?: number | null;
77
- height?: number | null;
78
- })[];
79
- };
80
- }) | ({
81
- type: "IntegrationFields";
82
- } & {
83
- fieldset?: string | null | undefined;
84
- config?: {
85
- label?: string | null | undefined;
86
- placeholder?: string;
87
- catalog?: string;
88
- };
89
- }) | ({
90
- type: "Link";
48
+ type: "Date";
91
49
  } & {
92
50
  fieldset?: string | null | undefined;
93
51
  config?: {
94
52
  label?: string | null | undefined;
95
- useAsTitle?: boolean;
96
53
  placeholder?: string;
97
- select?: "media" | "document" | "web" | null;
98
- customtypes?: readonly ({
99
- customTypeId: string;
100
- } & {
101
- fields?: readonly ({
102
- fieldId: string;
103
- } & {
104
- customTypes?: readonly {
105
- customTypeId: string;
106
- fields: readonly {
107
- fieldId: string;
108
- }[];
109
- }[];
110
- })[];
111
- })[];
112
- masks?: readonly string[];
113
- tags?: readonly string[];
114
- allowTargetBlank?: boolean;
54
+ default?: string;
115
55
  };
116
56
  }) | ({
117
57
  type: "Number";
@@ -186,6 +126,51 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
186
126
  placeholder?: string;
187
127
  default?: string;
188
128
  };
129
+ }) | ({
130
+ type: "Link";
131
+ } & {
132
+ fieldset?: string | null | undefined;
133
+ config?: {
134
+ label?: string | null | undefined;
135
+ useAsTitle?: boolean;
136
+ placeholder?: string;
137
+ select?: "media" | "document" | "web" | null;
138
+ customtypes?: readonly ({
139
+ customTypeId: string;
140
+ } & {
141
+ fetchFields?: boolean;
142
+ })[];
143
+ masks?: readonly string[];
144
+ tags?: readonly string[];
145
+ allowTargetBlank?: boolean;
146
+ };
147
+ }) | ({
148
+ type: "Image";
149
+ } & {
150
+ fieldset?: string | null | undefined;
151
+ config?: {
152
+ label?: string | null | undefined;
153
+ placeholder?: string;
154
+ constraint?: {
155
+ width?: number | null;
156
+ height?: number | null;
157
+ };
158
+ thumbnails?: readonly ({
159
+ name: string;
160
+ } & {
161
+ width?: number | null;
162
+ height?: number | null;
163
+ })[];
164
+ };
165
+ }) | ({
166
+ type: "IntegrationFields";
167
+ } & {
168
+ fieldset?: string | null | undefined;
169
+ config?: {
170
+ label?: string | null | undefined;
171
+ placeholder?: string;
172
+ catalog?: string;
173
+ };
189
174
  }) | ({
190
175
  type: "Group";
191
176
  } & {
@@ -197,15 +182,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
197
182
  repeat?: boolean;
198
183
  fields?: {
199
184
  [x: string]: ({
200
- type: "Boolean";
201
- } & {
202
- config?: {
203
- label?: string | null | undefined;
204
- default_value?: boolean;
205
- placeholder_true?: string;
206
- placeholder_false?: string;
207
- };
208
- }) | ({
209
185
  type: "Color";
210
186
  } & {
211
187
  fieldset?: string | null | undefined;
@@ -214,13 +190,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
214
190
  placeholder?: string;
215
191
  };
216
192
  }) | ({
217
- type: "Date";
193
+ type: "Boolean";
218
194
  } & {
219
- fieldset?: string | null | undefined;
220
195
  config?: {
221
196
  label?: string | null | undefined;
222
- placeholder?: string;
223
- default?: string;
197
+ default_value?: boolean;
198
+ placeholder_true?: string;
199
+ placeholder_false?: string;
224
200
  };
225
201
  }) | ({
226
202
  type: "Embed";
@@ -239,58 +215,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
239
215
  label?: string | null | undefined;
240
216
  };
241
217
  }) | ({
242
- type: "Image";
243
- } & {
244
- fieldset?: string | null | undefined;
245
- config?: {
246
- label?: string | null | undefined;
247
- placeholder?: string;
248
- constraint?: {
249
- width?: number | null;
250
- height?: number | null;
251
- };
252
- thumbnails?: readonly ({
253
- name: string;
254
- } & {
255
- width?: number | null;
256
- height?: number | null;
257
- })[];
258
- };
259
- }) | ({
260
- type: "IntegrationFields";
261
- } & {
262
- fieldset?: string | null | undefined;
263
- config?: {
264
- label?: string | null | undefined;
265
- placeholder?: string;
266
- catalog?: string;
267
- };
268
- }) | ({
269
- type: "Link";
218
+ type: "Date";
270
219
  } & {
271
220
  fieldset?: string | null | undefined;
272
221
  config?: {
273
222
  label?: string | null | undefined;
274
- useAsTitle?: boolean;
275
223
  placeholder?: string;
276
- select?: "media" | "document" | "web" | null;
277
- customtypes?: readonly ({
278
- customTypeId: string;
279
- } & {
280
- fields?: readonly ({
281
- fieldId: string;
282
- } & {
283
- customTypes?: readonly {
284
- customTypeId: string;
285
- fields: readonly {
286
- fieldId: string;
287
- }[];
288
- }[];
289
- })[];
290
- })[];
291
- masks?: readonly string[];
292
- tags?: readonly string[];
293
- allowTargetBlank?: boolean;
224
+ default?: string;
294
225
  };
295
226
  }) | ({
296
227
  type: "Number";
@@ -365,11 +296,56 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
365
296
  placeholder?: string;
366
297
  default?: string;
367
298
  };
299
+ }) | ({
300
+ type: "Link";
301
+ } & {
302
+ fieldset?: string | null | undefined;
303
+ config?: {
304
+ label?: string | null | undefined;
305
+ useAsTitle?: boolean;
306
+ placeholder?: string;
307
+ select?: "media" | "document" | "web" | null;
308
+ customtypes?: readonly ({
309
+ customTypeId: string;
310
+ } & {
311
+ fetchFields?: boolean;
312
+ })[];
313
+ masks?: readonly string[];
314
+ tags?: readonly string[];
315
+ allowTargetBlank?: boolean;
316
+ };
317
+ }) | ({
318
+ type: "Image";
319
+ } & {
320
+ fieldset?: string | null | undefined;
321
+ config?: {
322
+ label?: string | null | undefined;
323
+ placeholder?: string;
324
+ constraint?: {
325
+ width?: number | null;
326
+ height?: number | null;
327
+ };
328
+ thumbnails?: readonly ({
329
+ name: string;
330
+ } & {
331
+ width?: number | null;
332
+ height?: number | null;
333
+ })[];
334
+ };
335
+ }) | ({
336
+ type: "IntegrationFields";
337
+ } & {
338
+ fieldset?: string | null | undefined;
339
+ config?: {
340
+ label?: string | null | undefined;
341
+ placeholder?: string;
342
+ catalog?: string;
343
+ };
368
344
  });
369
345
  };
370
346
  };
371
347
  }) | ({
372
- type: "Choice" | "Slices";
348
+ type: "Slices" | "Choice";
373
349
  } & {
374
350
  fieldset?: string | null | undefined;
375
351
  config?: {
@@ -383,6 +359,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
383
359
  } | null;
384
360
  choices?: {
385
361
  [x: string]: ({
362
+ type: "Color";
363
+ } & {
364
+ fieldset?: string | null | undefined;
365
+ config?: {
366
+ label?: string | null | undefined;
367
+ placeholder?: string;
368
+ };
369
+ }) | ({
386
370
  type: "Boolean";
387
371
  } & {
388
372
  config?: {
@@ -392,12 +376,20 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
392
376
  placeholder_false?: string;
393
377
  };
394
378
  }) | ({
395
- type: "Color";
379
+ type: "Embed";
396
380
  } & {
397
381
  fieldset?: string | null | undefined;
398
382
  config?: {
399
383
  label?: string | null | undefined;
400
384
  placeholder?: string;
385
+ useAsTitle?: boolean;
386
+ };
387
+ }) | ({
388
+ type: "GeoPoint";
389
+ } & {
390
+ fieldset?: string | null | undefined;
391
+ config?: {
392
+ label?: string | null | undefined;
401
393
  };
402
394
  }) | ({
403
395
  type: "Date";
@@ -409,159 +401,146 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
409
401
  default?: string;
410
402
  };
411
403
  }) | ({
412
- type: "Embed";
404
+ type: "Number";
413
405
  } & {
414
406
  fieldset?: string | null | undefined;
415
407
  config?: {
416
408
  label?: string | null | undefined;
417
409
  placeholder?: string;
418
- useAsTitle?: boolean;
410
+ min?: number;
411
+ max?: number;
412
+ step?: number;
419
413
  };
420
414
  }) | ({
421
- type: "GeoPoint";
415
+ type: "Range";
422
416
  } & {
423
417
  fieldset?: string | null | undefined;
424
418
  config?: {
425
419
  label?: string | null | undefined;
420
+ placeholder?: string;
421
+ min?: number;
422
+ max?: number;
423
+ step?: number;
426
424
  };
427
425
  }) | ({
428
- type: "Image";
426
+ type: "StructuredText";
429
427
  } & {
430
428
  fieldset?: string | null | undefined;
431
429
  config?: {
432
430
  label?: string | null | undefined;
433
431
  placeholder?: string;
434
- constraint?: {
432
+ useAsTitle?: boolean;
433
+ single?: string;
434
+ multi?: string;
435
+ imageConstraint?: {
435
436
  width?: number | null;
436
437
  height?: number | null;
437
438
  };
438
- thumbnails?: readonly ({
439
- name: string;
440
- } & {
441
- width?: number | null;
442
- height?: number | null;
443
- })[];
439
+ labels?: readonly string[];
440
+ allowTargetBlank?: boolean;
444
441
  };
445
442
  }) | ({
446
- type: "IntegrationFields";
443
+ type: "Select";
447
444
  } & {
448
445
  fieldset?: string | null | undefined;
449
446
  config?: {
450
447
  label?: string | null | undefined;
451
448
  placeholder?: string;
452
- catalog?: string;
449
+ default_value?: string;
450
+ options?: readonly string[];
453
451
  };
454
452
  }) | ({
455
- type: "Link";
453
+ type: "Separator";
456
454
  } & {
457
- fieldset?: string | null | undefined;
458
455
  config?: {
459
456
  label?: string | null | undefined;
460
- useAsTitle?: boolean;
461
- placeholder?: string;
462
- select?: "media" | "document" | "web" | null;
463
- customtypes?: readonly ({
464
- customTypeId: string;
465
- } & {
466
- fields?: readonly ({
467
- fieldId: string;
468
- } & {
469
- customTypes?: readonly {
470
- customTypeId: string;
471
- fields: readonly {
472
- fieldId: string;
473
- }[];
474
- }[];
475
- })[];
476
- })[];
477
- masks?: readonly string[];
478
- tags?: readonly string[];
479
- allowTargetBlank?: boolean;
480
457
  };
481
458
  }) | ({
482
- type: "Number";
459
+ type: "Text";
483
460
  } & {
484
461
  fieldset?: string | null | undefined;
485
462
  config?: {
486
463
  label?: string | null | undefined;
464
+ useAsTitle?: boolean;
487
465
  placeholder?: string;
488
- min?: number;
489
- max?: number;
490
- step?: number;
491
466
  };
492
467
  }) | ({
493
- type: "Range";
468
+ type: "Timestamp";
494
469
  } & {
495
470
  fieldset?: string | null | undefined;
496
471
  config?: {
497
472
  label?: string | null | undefined;
498
473
  placeholder?: string;
499
- min?: number;
500
- max?: number;
501
- step?: number;
474
+ default?: string;
502
475
  };
503
476
  }) | ({
504
- type: "StructuredText";
477
+ type: "Link";
505
478
  } & {
506
479
  fieldset?: string | null | undefined;
507
480
  config?: {
508
481
  label?: string | null | undefined;
509
- placeholder?: string;
510
482
  useAsTitle?: boolean;
511
- single?: string;
512
- multi?: string;
513
- imageConstraint?: {
514
- width?: number | null;
515
- height?: number | null;
516
- };
517
- labels?: readonly string[];
518
- allowTargetBlank?: boolean;
519
- };
520
- }) | ({
521
- type: "Select";
522
- } & {
523
- fieldset?: string | null | undefined;
524
- config?: {
525
- label?: string | null | undefined;
526
483
  placeholder?: string;
527
- default_value?: string;
528
- options?: readonly string[];
529
- };
530
- }) | ({
531
- type: "Separator";
532
- } & {
533
- config?: {
534
- label?: string | null | undefined;
484
+ select?: "media" | "document" | "web" | null;
485
+ customtypes?: readonly ({
486
+ customTypeId: string;
487
+ } & {
488
+ fetchFields?: boolean;
489
+ })[];
490
+ masks?: readonly string[];
491
+ tags?: readonly string[];
492
+ allowTargetBlank?: boolean;
535
493
  };
536
494
  }) | ({
537
- type: "Text";
495
+ type: "Image";
538
496
  } & {
539
497
  fieldset?: string | null | undefined;
540
498
  config?: {
541
499
  label?: string | null | undefined;
542
- useAsTitle?: boolean;
543
500
  placeholder?: string;
501
+ constraint?: {
502
+ width?: number | null;
503
+ height?: number | null;
504
+ };
505
+ thumbnails?: readonly ({
506
+ name: string;
507
+ } & {
508
+ width?: number | null;
509
+ height?: number | null;
510
+ })[];
544
511
  };
545
512
  }) | ({
546
- type: "Timestamp";
513
+ type: "IntegrationFields";
547
514
  } & {
548
515
  fieldset?: string | null | undefined;
549
516
  config?: {
550
517
  label?: string | null | undefined;
551
518
  placeholder?: string;
552
- default?: string;
519
+ catalog?: string;
553
520
  };
554
521
  }) | ({
555
- type: "Group";
556
- } & {
557
- fieldset?: string | null | undefined;
558
- icon?: string;
559
- description?: string;
560
- config?: {
561
- label?: string | null | undefined;
562
- repeat?: boolean;
563
- fields?: {
522
+ id: string;
523
+ type: "SharedSlice";
524
+ name: string;
525
+ variations: readonly ({
526
+ id: string;
527
+ name: string;
528
+ description: string;
529
+ imageUrl: string;
530
+ docURL: string;
531
+ version: string;
532
+ } & {
533
+ display?: string;
534
+ primary?: {
564
535
  [x: string]: ({
536
+ type: "Color";
537
+ } & {
538
+ fieldset?: string | null | undefined;
539
+ config?: {
540
+ label?: string | null | undefined;
541
+ placeholder?: string;
542
+ };
543
+ }) | ({
565
544
  type: "Boolean";
566
545
  } & {
567
546
  config?: {
@@ -571,12 +550,20 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
571
550
  placeholder_false?: string;
572
551
  };
573
552
  }) | ({
574
- type: "Color";
553
+ type: "Embed";
575
554
  } & {
576
555
  fieldset?: string | null | undefined;
577
556
  config?: {
578
557
  label?: string | null | undefined;
579
558
  placeholder?: string;
559
+ useAsTitle?: boolean;
560
+ };
561
+ }) | ({
562
+ type: "GeoPoint";
563
+ } & {
564
+ fieldset?: string | null | undefined;
565
+ config?: {
566
+ label?: string | null | undefined;
580
567
  };
581
568
  }) | ({
582
569
  type: "Date";
@@ -588,20 +575,95 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
588
575
  default?: string;
589
576
  };
590
577
  }) | ({
591
- type: "Embed";
578
+ type: "Number";
579
+ } & {
580
+ fieldset?: string | null | undefined;
581
+ config?: {
582
+ label?: string | null | undefined;
583
+ placeholder?: string;
584
+ min?: number;
585
+ max?: number;
586
+ step?: number;
587
+ };
588
+ }) | ({
589
+ type: "Range";
590
+ } & {
591
+ fieldset?: string | null | undefined;
592
+ config?: {
593
+ label?: string | null | undefined;
594
+ placeholder?: string;
595
+ min?: number;
596
+ max?: number;
597
+ step?: number;
598
+ };
599
+ }) | ({
600
+ type: "StructuredText";
592
601
  } & {
593
602
  fieldset?: string | null | undefined;
594
603
  config?: {
595
604
  label?: string | null | undefined;
596
605
  placeholder?: string;
597
606
  useAsTitle?: boolean;
607
+ single?: string;
608
+ multi?: string;
609
+ imageConstraint?: {
610
+ width?: number | null;
611
+ height?: number | null;
612
+ };
613
+ labels?: readonly string[];
614
+ allowTargetBlank?: boolean;
598
615
  };
599
616
  }) | ({
600
- type: "GeoPoint";
617
+ type: "Select";
618
+ } & {
619
+ fieldset?: string | null | undefined;
620
+ config?: {
621
+ label?: string | null | undefined;
622
+ placeholder?: string;
623
+ default_value?: string;
624
+ options?: readonly string[];
625
+ };
626
+ }) | ({
627
+ type: "Separator";
628
+ } & {
629
+ config?: {
630
+ label?: string | null | undefined;
631
+ };
632
+ }) | ({
633
+ type: "Text";
634
+ } & {
635
+ fieldset?: string | null | undefined;
636
+ config?: {
637
+ label?: string | null | undefined;
638
+ useAsTitle?: boolean;
639
+ placeholder?: string;
640
+ };
641
+ }) | ({
642
+ type: "Timestamp";
643
+ } & {
644
+ fieldset?: string | null | undefined;
645
+ config?: {
646
+ label?: string | null | undefined;
647
+ placeholder?: string;
648
+ default?: string;
649
+ };
650
+ }) | ({
651
+ type: "Link";
601
652
  } & {
602
653
  fieldset?: string | null | undefined;
603
654
  config?: {
604
655
  label?: string | null | undefined;
656
+ useAsTitle?: boolean;
657
+ placeholder?: string;
658
+ select?: "media" | "document" | "web" | null;
659
+ customtypes?: readonly ({
660
+ customTypeId: string;
661
+ } & {
662
+ fetchFields?: boolean;
663
+ })[];
664
+ masks?: readonly string[];
665
+ tags?: readonly string[];
666
+ allowTargetBlank?: boolean;
605
667
  };
606
668
  }) | ({
607
669
  type: "Image";
@@ -630,32 +692,50 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
630
692
  placeholder?: string;
631
693
  catalog?: string;
632
694
  };
695
+ });
696
+ };
697
+ items?: {
698
+ [x: string]: ({
699
+ type: "Color";
700
+ } & {
701
+ fieldset?: string | null | undefined;
702
+ config?: {
703
+ label?: string | null | undefined;
704
+ placeholder?: string;
705
+ };
633
706
  }) | ({
634
- type: "Link";
707
+ type: "Boolean";
708
+ } & {
709
+ config?: {
710
+ label?: string | null | undefined;
711
+ default_value?: boolean;
712
+ placeholder_true?: string;
713
+ placeholder_false?: string;
714
+ };
715
+ }) | ({
716
+ type: "Embed";
635
717
  } & {
636
718
  fieldset?: string | null | undefined;
637
719
  config?: {
638
720
  label?: string | null | undefined;
721
+ placeholder?: string;
639
722
  useAsTitle?: boolean;
723
+ };
724
+ }) | ({
725
+ type: "GeoPoint";
726
+ } & {
727
+ fieldset?: string | null | undefined;
728
+ config?: {
729
+ label?: string | null | undefined;
730
+ };
731
+ }) | ({
732
+ type: "Date";
733
+ } & {
734
+ fieldset?: string | null | undefined;
735
+ config?: {
736
+ label?: string | null | undefined;
640
737
  placeholder?: string;
641
- select?: "media" | "document" | "web" | null;
642
- customtypes?: readonly ({
643
- customTypeId: string;
644
- } & {
645
- fields?: readonly ({
646
- fieldId: string;
647
- } & {
648
- customTypes?: readonly {
649
- customTypeId: string;
650
- fields: readonly {
651
- fieldId: string;
652
- }[];
653
- }[];
654
- })[];
655
- })[];
656
- masks?: readonly string[];
657
- tags?: readonly string[];
658
- allowTargetBlank?: boolean;
738
+ default?: string;
659
739
  };
660
740
  }) | ({
661
741
  type: "Number";
@@ -730,446 +810,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
730
810
  placeholder?: string;
731
811
  default?: string;
732
812
  };
733
- });
734
- };
735
- };
736
- }) | ({
737
- type: "Slice";
738
- } & {
739
- fieldset?: string | null | undefined;
740
- description?: string;
741
- icon?: string;
742
- display?: string;
743
- "non-repeat"?: {
744
- [x: string]: ({
745
- type: "Boolean";
746
- } & {
747
- config?: {
748
- label?: string | null | undefined;
749
- default_value?: boolean;
750
- placeholder_true?: string;
751
- placeholder_false?: string;
752
- };
753
- }) | ({
754
- type: "Color";
755
- } & {
756
- fieldset?: string | null | undefined;
757
- config?: {
758
- label?: string | null | undefined;
759
- placeholder?: string;
760
- };
761
- }) | ({
762
- type: "Date";
763
- } & {
764
- fieldset?: string | null | undefined;
765
- config?: {
766
- label?: string | null | undefined;
767
- placeholder?: string;
768
- default?: string;
769
- };
770
- }) | ({
771
- type: "Embed";
772
- } & {
773
- fieldset?: string | null | undefined;
774
- config?: {
775
- label?: string | null | undefined;
776
- placeholder?: string;
777
- useAsTitle?: boolean;
778
- };
779
- }) | ({
780
- type: "GeoPoint";
781
- } & {
782
- fieldset?: string | null | undefined;
783
- config?: {
784
- label?: string | null | undefined;
785
- };
786
- }) | ({
787
- type: "Image";
788
- } & {
789
- fieldset?: string | null | undefined;
790
- config?: {
791
- label?: string | null | undefined;
792
- placeholder?: string;
793
- constraint?: {
794
- width?: number | null;
795
- height?: number | null;
796
- };
797
- thumbnails?: readonly ({
798
- name: string;
799
- } & {
800
- width?: number | null;
801
- height?: number | null;
802
- })[];
803
- };
804
- }) | ({
805
- type: "IntegrationFields";
806
- } & {
807
- fieldset?: string | null | undefined;
808
- config?: {
809
- label?: string | null | undefined;
810
- placeholder?: string;
811
- catalog?: string;
812
- };
813
- }) | ({
814
- type: "Link";
815
- } & {
816
- fieldset?: string | null | undefined;
817
- config?: {
818
- label?: string | null | undefined;
819
- useAsTitle?: boolean;
820
- placeholder?: string;
821
- select?: "media" | "document" | "web" | null;
822
- customtypes?: readonly ({
823
- customTypeId: string;
824
- } & {
825
- fields?: readonly ({
826
- fieldId: string;
827
- } & {
828
- customTypes?: readonly {
829
- customTypeId: string;
830
- fields: readonly {
831
- fieldId: string;
832
- }[];
833
- }[];
834
- })[];
835
- })[];
836
- masks?: readonly string[];
837
- tags?: readonly string[];
838
- allowTargetBlank?: boolean;
839
- };
840
- }) | ({
841
- type: "Number";
842
- } & {
843
- fieldset?: string | null | undefined;
844
- config?: {
845
- label?: string | null | undefined;
846
- placeholder?: string;
847
- min?: number;
848
- max?: number;
849
- step?: number;
850
- };
851
- }) | ({
852
- type: "Range";
853
- } & {
854
- fieldset?: string | null | undefined;
855
- config?: {
856
- label?: string | null | undefined;
857
- placeholder?: string;
858
- min?: number;
859
- max?: number;
860
- step?: number;
861
- };
862
- }) | ({
863
- type: "StructuredText";
864
- } & {
865
- fieldset?: string | null | undefined;
866
- config?: {
867
- label?: string | null | undefined;
868
- placeholder?: string;
869
- useAsTitle?: boolean;
870
- single?: string;
871
- multi?: string;
872
- imageConstraint?: {
873
- width?: number | null;
874
- height?: number | null;
875
- };
876
- labels?: readonly string[];
877
- allowTargetBlank?: boolean;
878
- };
879
- }) | ({
880
- type: "Select";
881
- } & {
882
- fieldset?: string | null | undefined;
883
- config?: {
884
- label?: string | null | undefined;
885
- placeholder?: string;
886
- default_value?: string;
887
- options?: readonly string[];
888
- };
889
- }) | ({
890
- type: "Separator";
891
- } & {
892
- config?: {
893
- label?: string | null | undefined;
894
- };
895
- }) | ({
896
- type: "Text";
897
- } & {
898
- fieldset?: string | null | undefined;
899
- config?: {
900
- label?: string | null | undefined;
901
- useAsTitle?: boolean;
902
- placeholder?: string;
903
- };
904
- }) | ({
905
- type: "Timestamp";
906
- } & {
907
- fieldset?: string | null | undefined;
908
- config?: {
909
- label?: string | null | undefined;
910
- placeholder?: string;
911
- default?: string;
912
- };
913
- });
914
- };
915
- repeat?: {
916
- [x: string]: ({
917
- type: "Boolean";
918
- } & {
919
- config?: {
920
- label?: string | null | undefined;
921
- default_value?: boolean;
922
- placeholder_true?: string;
923
- placeholder_false?: string;
924
- };
925
- }) | ({
926
- type: "Color";
927
- } & {
928
- fieldset?: string | null | undefined;
929
- config?: {
930
- label?: string | null | undefined;
931
- placeholder?: string;
932
- };
933
- }) | ({
934
- type: "Date";
935
- } & {
936
- fieldset?: string | null | undefined;
937
- config?: {
938
- label?: string | null | undefined;
939
- placeholder?: string;
940
- default?: string;
941
- };
942
- }) | ({
943
- type: "Embed";
944
- } & {
945
- fieldset?: string | null | undefined;
946
- config?: {
947
- label?: string | null | undefined;
948
- placeholder?: string;
949
- useAsTitle?: boolean;
950
- };
951
- }) | ({
952
- type: "GeoPoint";
953
- } & {
954
- fieldset?: string | null | undefined;
955
- config?: {
956
- label?: string | null | undefined;
957
- };
958
- }) | ({
959
- type: "Image";
960
- } & {
961
- fieldset?: string | null | undefined;
962
- config?: {
963
- label?: string | null | undefined;
964
- placeholder?: string;
965
- constraint?: {
966
- width?: number | null;
967
- height?: number | null;
968
- };
969
- thumbnails?: readonly ({
970
- name: string;
971
- } & {
972
- width?: number | null;
973
- height?: number | null;
974
- })[];
975
- };
976
- }) | ({
977
- type: "IntegrationFields";
978
- } & {
979
- fieldset?: string | null | undefined;
980
- config?: {
981
- label?: string | null | undefined;
982
- placeholder?: string;
983
- catalog?: string;
984
- };
985
- }) | ({
986
- type: "Link";
987
- } & {
988
- fieldset?: string | null | undefined;
989
- config?: {
990
- label?: string | null | undefined;
991
- useAsTitle?: boolean;
992
- placeholder?: string;
993
- select?: "media" | "document" | "web" | null;
994
- customtypes?: readonly ({
995
- customTypeId: string;
996
- } & {
997
- fields?: readonly ({
998
- fieldId: string;
999
- } & {
1000
- customTypes?: readonly {
1001
- customTypeId: string;
1002
- fields: readonly {
1003
- fieldId: string;
1004
- }[];
1005
- }[];
1006
- })[];
1007
- })[];
1008
- masks?: readonly string[];
1009
- tags?: readonly string[];
1010
- allowTargetBlank?: boolean;
1011
- };
1012
- }) | ({
1013
- type: "Number";
1014
- } & {
1015
- fieldset?: string | null | undefined;
1016
- config?: {
1017
- label?: string | null | undefined;
1018
- placeholder?: string;
1019
- min?: number;
1020
- max?: number;
1021
- step?: number;
1022
- };
1023
- }) | ({
1024
- type: "Range";
1025
- } & {
1026
- fieldset?: string | null | undefined;
1027
- config?: {
1028
- label?: string | null | undefined;
1029
- placeholder?: string;
1030
- min?: number;
1031
- max?: number;
1032
- step?: number;
1033
- };
1034
- }) | ({
1035
- type: "StructuredText";
1036
- } & {
1037
- fieldset?: string | null | undefined;
1038
- config?: {
1039
- label?: string | null | undefined;
1040
- placeholder?: string;
1041
- useAsTitle?: boolean;
1042
- single?: string;
1043
- multi?: string;
1044
- imageConstraint?: {
1045
- width?: number | null;
1046
- height?: number | null;
1047
- };
1048
- labels?: readonly string[];
1049
- allowTargetBlank?: boolean;
1050
- };
1051
- }) | ({
1052
- type: "Select";
1053
- } & {
1054
- fieldset?: string | null | undefined;
1055
- config?: {
1056
- label?: string | null | undefined;
1057
- placeholder?: string;
1058
- default_value?: string;
1059
- options?: readonly string[];
1060
- };
1061
- }) | ({
1062
- type: "Separator";
1063
- } & {
1064
- config?: {
1065
- label?: string | null | undefined;
1066
- };
1067
- }) | ({
1068
- type: "Text";
1069
- } & {
1070
- fieldset?: string | null | undefined;
1071
- config?: {
1072
- label?: string | null | undefined;
1073
- useAsTitle?: boolean;
1074
- placeholder?: string;
1075
- };
1076
- }) | ({
1077
- type: "Timestamp";
1078
- } & {
1079
- fieldset?: string | null | undefined;
1080
- config?: {
1081
- label?: string | null | undefined;
1082
- placeholder?: string;
1083
- default?: string;
1084
- };
1085
- });
1086
- };
1087
- config?: {
1088
- label?: string | null | undefined;
1089
- };
1090
- }) | ({
1091
- id: string;
1092
- type: "SharedSlice";
1093
- name: string;
1094
- variations: readonly ({
1095
- id: string;
1096
- name: string;
1097
- description: string;
1098
- imageUrl: string;
1099
- docURL: string;
1100
- version: string;
1101
- } & {
1102
- display?: string;
1103
- primary?: {
1104
- [x: string]: ({
1105
- type: "Boolean";
1106
- } & {
1107
- config?: {
1108
- label?: string | null | undefined;
1109
- default_value?: boolean;
1110
- placeholder_true?: string;
1111
- placeholder_false?: string;
1112
- };
1113
- }) | ({
1114
- type: "Color";
1115
- } & {
1116
- fieldset?: string | null | undefined;
1117
- config?: {
1118
- label?: string | null | undefined;
1119
- placeholder?: string;
1120
- };
1121
- }) | ({
1122
- type: "Date";
1123
- } & {
1124
- fieldset?: string | null | undefined;
1125
- config?: {
1126
- label?: string | null | undefined;
1127
- placeholder?: string;
1128
- default?: string;
1129
- };
1130
- }) | ({
1131
- type: "Embed";
1132
- } & {
1133
- fieldset?: string | null | undefined;
1134
- config?: {
1135
- label?: string | null | undefined;
1136
- placeholder?: string;
1137
- useAsTitle?: boolean;
1138
- };
1139
- }) | ({
1140
- type: "GeoPoint";
1141
- } & {
1142
- fieldset?: string | null | undefined;
1143
- config?: {
1144
- label?: string | null | undefined;
1145
- };
1146
- }) | ({
1147
- type: "Image";
1148
- } & {
1149
- fieldset?: string | null | undefined;
1150
- config?: {
1151
- label?: string | null | undefined;
1152
- placeholder?: string;
1153
- constraint?: {
1154
- width?: number | null;
1155
- height?: number | null;
1156
- };
1157
- thumbnails?: readonly ({
1158
- name: string;
1159
- } & {
1160
- width?: number | null;
1161
- height?: number | null;
1162
- })[];
1163
- };
1164
- }) | ({
1165
- type: "IntegrationFields";
1166
- } & {
1167
- fieldset?: string | null | undefined;
1168
- config?: {
1169
- label?: string | null | undefined;
1170
- placeholder?: string;
1171
- catalog?: string;
1172
- };
1173
813
  }) | ({
1174
814
  type: "Link";
1175
815
  } & {
@@ -1182,107 +822,55 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1182
822
  customtypes?: readonly ({
1183
823
  customTypeId: string;
1184
824
  } & {
1185
- fields?: readonly ({
1186
- fieldId: string;
1187
- } & {
1188
- customTypes?: readonly {
1189
- customTypeId: string;
1190
- fields: readonly {
1191
- fieldId: string;
1192
- }[];
1193
- }[];
1194
- })[];
825
+ fetchFields?: boolean;
1195
826
  })[];
1196
827
  masks?: readonly string[];
1197
828
  tags?: readonly string[];
1198
829
  allowTargetBlank?: boolean;
1199
830
  };
1200
831
  }) | ({
1201
- type: "Number";
1202
- } & {
1203
- fieldset?: string | null | undefined;
1204
- config?: {
1205
- label?: string | null | undefined;
1206
- placeholder?: string;
1207
- min?: number;
1208
- max?: number;
1209
- step?: number;
1210
- };
1211
- }) | ({
1212
- type: "Range";
1213
- } & {
1214
- fieldset?: string | null | undefined;
1215
- config?: {
1216
- label?: string | null | undefined;
1217
- placeholder?: string;
1218
- min?: number;
1219
- max?: number;
1220
- step?: number;
1221
- };
1222
- }) | ({
1223
- type: "StructuredText";
832
+ type: "Image";
1224
833
  } & {
1225
834
  fieldset?: string | null | undefined;
1226
835
  config?: {
1227
836
  label?: string | null | undefined;
1228
837
  placeholder?: string;
1229
- useAsTitle?: boolean;
1230
- single?: string;
1231
- multi?: string;
1232
- imageConstraint?: {
838
+ constraint?: {
1233
839
  width?: number | null;
1234
840
  height?: number | null;
1235
841
  };
1236
- labels?: readonly string[];
1237
- allowTargetBlank?: boolean;
1238
- };
1239
- }) | ({
1240
- type: "Select";
1241
- } & {
1242
- fieldset?: string | null | undefined;
1243
- config?: {
1244
- label?: string | null | undefined;
1245
- placeholder?: string;
1246
- default_value?: string;
1247
- options?: readonly string[];
1248
- };
1249
- }) | ({
1250
- type: "Separator";
1251
- } & {
1252
- config?: {
1253
- label?: string | null | undefined;
1254
- };
1255
- }) | ({
1256
- type: "Text";
1257
- } & {
1258
- fieldset?: string | null | undefined;
1259
- config?: {
1260
- label?: string | null | undefined;
1261
- useAsTitle?: boolean;
1262
- placeholder?: string;
842
+ thumbnails?: readonly ({
843
+ name: string;
844
+ } & {
845
+ width?: number | null;
846
+ height?: number | null;
847
+ })[];
1263
848
  };
1264
849
  }) | ({
1265
- type: "Timestamp";
850
+ type: "IntegrationFields";
1266
851
  } & {
1267
852
  fieldset?: string | null | undefined;
1268
853
  config?: {
1269
854
  label?: string | null | undefined;
1270
855
  placeholder?: string;
1271
- default?: string;
856
+ catalog?: string;
1272
857
  };
1273
858
  });
1274
859
  };
1275
- items?: {
860
+ })[];
861
+ } & {
862
+ description?: string;
863
+ }) | ({
864
+ type: "Group";
865
+ } & {
866
+ fieldset?: string | null | undefined;
867
+ icon?: string;
868
+ description?: string;
869
+ config?: {
870
+ label?: string | null | undefined;
871
+ repeat?: boolean;
872
+ fields?: {
1276
873
  [x: string]: ({
1277
- type: "Boolean";
1278
- } & {
1279
- config?: {
1280
- label?: string | null | undefined;
1281
- default_value?: boolean;
1282
- placeholder_true?: string;
1283
- placeholder_false?: string;
1284
- };
1285
- }) | ({
1286
874
  type: "Color";
1287
875
  } & {
1288
876
  fieldset?: string | null | undefined;
@@ -1291,13 +879,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1291
879
  placeholder?: string;
1292
880
  };
1293
881
  }) | ({
1294
- type: "Date";
882
+ type: "Boolean";
1295
883
  } & {
1296
- fieldset?: string | null | undefined;
1297
884
  config?: {
1298
885
  label?: string | null | undefined;
1299
- placeholder?: string;
1300
- default?: string;
886
+ default_value?: boolean;
887
+ placeholder_true?: string;
888
+ placeholder_false?: string;
1301
889
  };
1302
890
  }) | ({
1303
891
  type: "Embed";
@@ -1316,58 +904,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1316
904
  label?: string | null | undefined;
1317
905
  };
1318
906
  }) | ({
1319
- type: "Image";
1320
- } & {
1321
- fieldset?: string | null | undefined;
1322
- config?: {
1323
- label?: string | null | undefined;
1324
- placeholder?: string;
1325
- constraint?: {
1326
- width?: number | null;
1327
- height?: number | null;
1328
- };
1329
- thumbnails?: readonly ({
1330
- name: string;
1331
- } & {
1332
- width?: number | null;
1333
- height?: number | null;
1334
- })[];
1335
- };
1336
- }) | ({
1337
- type: "IntegrationFields";
1338
- } & {
1339
- fieldset?: string | null | undefined;
1340
- config?: {
1341
- label?: string | null | undefined;
1342
- placeholder?: string;
1343
- catalog?: string;
1344
- };
1345
- }) | ({
1346
- type: "Link";
907
+ type: "Date";
1347
908
  } & {
1348
909
  fieldset?: string | null | undefined;
1349
910
  config?: {
1350
911
  label?: string | null | undefined;
1351
- useAsTitle?: boolean;
1352
912
  placeholder?: string;
1353
- select?: "media" | "document" | "web" | null;
1354
- customtypes?: readonly ({
1355
- customTypeId: string;
1356
- } & {
1357
- fields?: readonly ({
1358
- fieldId: string;
1359
- } & {
1360
- customTypes?: readonly {
1361
- customTypeId: string;
1362
- fields: readonly {
1363
- fieldId: string;
1364
- }[];
1365
- }[];
1366
- })[];
1367
- })[];
1368
- masks?: readonly string[];
1369
- tags?: readonly string[];
1370
- allowTargetBlank?: boolean;
913
+ default?: string;
1371
914
  };
1372
915
  }) | ({
1373
916
  type: "Number";
@@ -1433,20 +976,399 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1433
976
  useAsTitle?: boolean;
1434
977
  placeholder?: string;
1435
978
  };
1436
- }) | ({
1437
- type: "Timestamp";
1438
- } & {
1439
- fieldset?: string | null | undefined;
1440
- config?: {
1441
- label?: string | null | undefined;
1442
- placeholder?: string;
1443
- default?: string;
979
+ }) | ({
980
+ type: "Timestamp";
981
+ } & {
982
+ fieldset?: string | null | undefined;
983
+ config?: {
984
+ label?: string | null | undefined;
985
+ placeholder?: string;
986
+ default?: string;
987
+ };
988
+ }) | ({
989
+ type: "Link";
990
+ } & {
991
+ fieldset?: string | null | undefined;
992
+ config?: {
993
+ label?: string | null | undefined;
994
+ useAsTitle?: boolean;
995
+ placeholder?: string;
996
+ select?: "media" | "document" | "web" | null;
997
+ customtypes?: readonly ({
998
+ customTypeId: string;
999
+ } & {
1000
+ fetchFields?: boolean;
1001
+ })[];
1002
+ masks?: readonly string[];
1003
+ tags?: readonly string[];
1004
+ allowTargetBlank?: boolean;
1005
+ };
1006
+ }) | ({
1007
+ type: "Image";
1008
+ } & {
1009
+ fieldset?: string | null | undefined;
1010
+ config?: {
1011
+ label?: string | null | undefined;
1012
+ placeholder?: string;
1013
+ constraint?: {
1014
+ width?: number | null;
1015
+ height?: number | null;
1016
+ };
1017
+ thumbnails?: readonly ({
1018
+ name: string;
1019
+ } & {
1020
+ width?: number | null;
1021
+ height?: number | null;
1022
+ })[];
1023
+ };
1024
+ }) | ({
1025
+ type: "IntegrationFields";
1026
+ } & {
1027
+ fieldset?: string | null | undefined;
1028
+ config?: {
1029
+ label?: string | null | undefined;
1030
+ placeholder?: string;
1031
+ catalog?: string;
1032
+ };
1033
+ });
1034
+ };
1035
+ };
1036
+ }) | ({
1037
+ type: "Slice";
1038
+ } & {
1039
+ fieldset?: string | null | undefined;
1040
+ description?: string;
1041
+ icon?: string;
1042
+ display?: string;
1043
+ "non-repeat"?: {
1044
+ [x: string]: ({
1045
+ type: "Color";
1046
+ } & {
1047
+ fieldset?: string | null | undefined;
1048
+ config?: {
1049
+ label?: string | null | undefined;
1050
+ placeholder?: string;
1051
+ };
1052
+ }) | ({
1053
+ type: "Boolean";
1054
+ } & {
1055
+ config?: {
1056
+ label?: string | null | undefined;
1057
+ default_value?: boolean;
1058
+ placeholder_true?: string;
1059
+ placeholder_false?: string;
1060
+ };
1061
+ }) | ({
1062
+ type: "Embed";
1063
+ } & {
1064
+ fieldset?: string | null | undefined;
1065
+ config?: {
1066
+ label?: string | null | undefined;
1067
+ placeholder?: string;
1068
+ useAsTitle?: boolean;
1069
+ };
1070
+ }) | ({
1071
+ type: "GeoPoint";
1072
+ } & {
1073
+ fieldset?: string | null | undefined;
1074
+ config?: {
1075
+ label?: string | null | undefined;
1076
+ };
1077
+ }) | ({
1078
+ type: "Date";
1079
+ } & {
1080
+ fieldset?: string | null | undefined;
1081
+ config?: {
1082
+ label?: string | null | undefined;
1083
+ placeholder?: string;
1084
+ default?: string;
1085
+ };
1086
+ }) | ({
1087
+ type: "Number";
1088
+ } & {
1089
+ fieldset?: string | null | undefined;
1090
+ config?: {
1091
+ label?: string | null | undefined;
1092
+ placeholder?: string;
1093
+ min?: number;
1094
+ max?: number;
1095
+ step?: number;
1096
+ };
1097
+ }) | ({
1098
+ type: "Range";
1099
+ } & {
1100
+ fieldset?: string | null | undefined;
1101
+ config?: {
1102
+ label?: string | null | undefined;
1103
+ placeholder?: string;
1104
+ min?: number;
1105
+ max?: number;
1106
+ step?: number;
1107
+ };
1108
+ }) | ({
1109
+ type: "StructuredText";
1110
+ } & {
1111
+ fieldset?: string | null | undefined;
1112
+ config?: {
1113
+ label?: string | null | undefined;
1114
+ placeholder?: string;
1115
+ useAsTitle?: boolean;
1116
+ single?: string;
1117
+ multi?: string;
1118
+ imageConstraint?: {
1119
+ width?: number | null;
1120
+ height?: number | null;
1121
+ };
1122
+ labels?: readonly string[];
1123
+ allowTargetBlank?: boolean;
1124
+ };
1125
+ }) | ({
1126
+ type: "Select";
1127
+ } & {
1128
+ fieldset?: string | null | undefined;
1129
+ config?: {
1130
+ label?: string | null | undefined;
1131
+ placeholder?: string;
1132
+ default_value?: string;
1133
+ options?: readonly string[];
1134
+ };
1135
+ }) | ({
1136
+ type: "Separator";
1137
+ } & {
1138
+ config?: {
1139
+ label?: string | null | undefined;
1140
+ };
1141
+ }) | ({
1142
+ type: "Text";
1143
+ } & {
1144
+ fieldset?: string | null | undefined;
1145
+ config?: {
1146
+ label?: string | null | undefined;
1147
+ useAsTitle?: boolean;
1148
+ placeholder?: string;
1149
+ };
1150
+ }) | ({
1151
+ type: "Timestamp";
1152
+ } & {
1153
+ fieldset?: string | null | undefined;
1154
+ config?: {
1155
+ label?: string | null | undefined;
1156
+ placeholder?: string;
1157
+ default?: string;
1158
+ };
1159
+ }) | ({
1160
+ type: "Link";
1161
+ } & {
1162
+ fieldset?: string | null | undefined;
1163
+ config?: {
1164
+ label?: string | null | undefined;
1165
+ useAsTitle?: boolean;
1166
+ placeholder?: string;
1167
+ select?: "media" | "document" | "web" | null;
1168
+ customtypes?: readonly ({
1169
+ customTypeId: string;
1170
+ } & {
1171
+ fetchFields?: boolean;
1172
+ })[];
1173
+ masks?: readonly string[];
1174
+ tags?: readonly string[];
1175
+ allowTargetBlank?: boolean;
1176
+ };
1177
+ }) | ({
1178
+ type: "Image";
1179
+ } & {
1180
+ fieldset?: string | null | undefined;
1181
+ config?: {
1182
+ label?: string | null | undefined;
1183
+ placeholder?: string;
1184
+ constraint?: {
1185
+ width?: number | null;
1186
+ height?: number | null;
1187
+ };
1188
+ thumbnails?: readonly ({
1189
+ name: string;
1190
+ } & {
1191
+ width?: number | null;
1192
+ height?: number | null;
1193
+ })[];
1194
+ };
1195
+ }) | ({
1196
+ type: "IntegrationFields";
1197
+ } & {
1198
+ fieldset?: string | null | undefined;
1199
+ config?: {
1200
+ label?: string | null | undefined;
1201
+ placeholder?: string;
1202
+ catalog?: string;
1203
+ };
1204
+ });
1205
+ };
1206
+ repeat?: {
1207
+ [x: string]: ({
1208
+ type: "Color";
1209
+ } & {
1210
+ fieldset?: string | null | undefined;
1211
+ config?: {
1212
+ label?: string | null | undefined;
1213
+ placeholder?: string;
1214
+ };
1215
+ }) | ({
1216
+ type: "Boolean";
1217
+ } & {
1218
+ config?: {
1219
+ label?: string | null | undefined;
1220
+ default_value?: boolean;
1221
+ placeholder_true?: string;
1222
+ placeholder_false?: string;
1223
+ };
1224
+ }) | ({
1225
+ type: "Embed";
1226
+ } & {
1227
+ fieldset?: string | null | undefined;
1228
+ config?: {
1229
+ label?: string | null | undefined;
1230
+ placeholder?: string;
1231
+ useAsTitle?: boolean;
1232
+ };
1233
+ }) | ({
1234
+ type: "GeoPoint";
1235
+ } & {
1236
+ fieldset?: string | null | undefined;
1237
+ config?: {
1238
+ label?: string | null | undefined;
1239
+ };
1240
+ }) | ({
1241
+ type: "Date";
1242
+ } & {
1243
+ fieldset?: string | null | undefined;
1244
+ config?: {
1245
+ label?: string | null | undefined;
1246
+ placeholder?: string;
1247
+ default?: string;
1248
+ };
1249
+ }) | ({
1250
+ type: "Number";
1251
+ } & {
1252
+ fieldset?: string | null | undefined;
1253
+ config?: {
1254
+ label?: string | null | undefined;
1255
+ placeholder?: string;
1256
+ min?: number;
1257
+ max?: number;
1258
+ step?: number;
1259
+ };
1260
+ }) | ({
1261
+ type: "Range";
1262
+ } & {
1263
+ fieldset?: string | null | undefined;
1264
+ config?: {
1265
+ label?: string | null | undefined;
1266
+ placeholder?: string;
1267
+ min?: number;
1268
+ max?: number;
1269
+ step?: number;
1270
+ };
1271
+ }) | ({
1272
+ type: "StructuredText";
1273
+ } & {
1274
+ fieldset?: string | null | undefined;
1275
+ config?: {
1276
+ label?: string | null | undefined;
1277
+ placeholder?: string;
1278
+ useAsTitle?: boolean;
1279
+ single?: string;
1280
+ multi?: string;
1281
+ imageConstraint?: {
1282
+ width?: number | null;
1283
+ height?: number | null;
1284
+ };
1285
+ labels?: readonly string[];
1286
+ allowTargetBlank?: boolean;
1287
+ };
1288
+ }) | ({
1289
+ type: "Select";
1290
+ } & {
1291
+ fieldset?: string | null | undefined;
1292
+ config?: {
1293
+ label?: string | null | undefined;
1294
+ placeholder?: string;
1295
+ default_value?: string;
1296
+ options?: readonly string[];
1297
+ };
1298
+ }) | ({
1299
+ type: "Separator";
1300
+ } & {
1301
+ config?: {
1302
+ label?: string | null | undefined;
1303
+ };
1304
+ }) | ({
1305
+ type: "Text";
1306
+ } & {
1307
+ fieldset?: string | null | undefined;
1308
+ config?: {
1309
+ label?: string | null | undefined;
1310
+ useAsTitle?: boolean;
1311
+ placeholder?: string;
1312
+ };
1313
+ }) | ({
1314
+ type: "Timestamp";
1315
+ } & {
1316
+ fieldset?: string | null | undefined;
1317
+ config?: {
1318
+ label?: string | null | undefined;
1319
+ placeholder?: string;
1320
+ default?: string;
1321
+ };
1322
+ }) | ({
1323
+ type: "Link";
1324
+ } & {
1325
+ fieldset?: string | null | undefined;
1326
+ config?: {
1327
+ label?: string | null | undefined;
1328
+ useAsTitle?: boolean;
1329
+ placeholder?: string;
1330
+ select?: "media" | "document" | "web" | null;
1331
+ customtypes?: readonly ({
1332
+ customTypeId: string;
1333
+ } & {
1334
+ fetchFields?: boolean;
1335
+ })[];
1336
+ masks?: readonly string[];
1337
+ tags?: readonly string[];
1338
+ allowTargetBlank?: boolean;
1339
+ };
1340
+ }) | ({
1341
+ type: "Image";
1342
+ } & {
1343
+ fieldset?: string | null | undefined;
1344
+ config?: {
1345
+ label?: string | null | undefined;
1346
+ placeholder?: string;
1347
+ constraint?: {
1348
+ width?: number | null;
1349
+ height?: number | null;
1444
1350
  };
1445
- });
1446
- };
1447
- })[];
1448
- } & {
1449
- description?: string;
1351
+ thumbnails?: readonly ({
1352
+ name: string;
1353
+ } & {
1354
+ width?: number | null;
1355
+ height?: number | null;
1356
+ })[];
1357
+ };
1358
+ }) | ({
1359
+ type: "IntegrationFields";
1360
+ } & {
1361
+ fieldset?: string | null | undefined;
1362
+ config?: {
1363
+ label?: string | null | undefined;
1364
+ placeholder?: string;
1365
+ catalog?: string;
1366
+ };
1367
+ });
1368
+ };
1369
+ config?: {
1370
+ label?: string | null | undefined;
1371
+ };
1450
1372
  });
1451
1373
  };
1452
1374
  };
@@ -1476,15 +1398,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1476
1398
  repeatable: t.BooleanC;
1477
1399
  json: t.RecordC<t.StringC, t.Type<{
1478
1400
  [x: string]: ({
1479
- type: "Boolean";
1480
- } & {
1481
- config?: {
1482
- label?: string | null | undefined;
1483
- default_value?: boolean;
1484
- placeholder_true?: string;
1485
- placeholder_false?: string;
1486
- };
1487
- }) | ({
1488
1401
  type: "Color";
1489
1402
  } & {
1490
1403
  fieldset?: string | null | undefined;
@@ -1493,13 +1406,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1493
1406
  placeholder?: string;
1494
1407
  };
1495
1408
  }) | ({
1496
- type: "Date";
1409
+ type: "Boolean";
1497
1410
  } & {
1498
- fieldset?: string | null | undefined;
1499
1411
  config?: {
1500
1412
  label?: string | null | undefined;
1501
- placeholder?: string;
1502
- default?: string;
1413
+ default_value?: boolean;
1414
+ placeholder_true?: string;
1415
+ placeholder_false?: string;
1503
1416
  };
1504
1417
  }) | ({
1505
1418
  type: "Embed";
@@ -1518,58 +1431,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1518
1431
  label?: string | null | undefined;
1519
1432
  };
1520
1433
  }) | ({
1521
- type: "Image";
1522
- } & {
1523
- fieldset?: string | null | undefined;
1524
- config?: {
1525
- label?: string | null | undefined;
1526
- placeholder?: string;
1527
- constraint?: {
1528
- width?: number | null;
1529
- height?: number | null;
1530
- };
1531
- thumbnails?: readonly ({
1532
- name: string;
1533
- } & {
1534
- width?: number | null;
1535
- height?: number | null;
1536
- })[];
1537
- };
1538
- }) | ({
1539
- type: "IntegrationFields";
1540
- } & {
1541
- fieldset?: string | null | undefined;
1542
- config?: {
1543
- label?: string | null | undefined;
1544
- placeholder?: string;
1545
- catalog?: string;
1546
- };
1547
- }) | ({
1548
- type: "Link";
1434
+ type: "Date";
1549
1435
  } & {
1550
1436
  fieldset?: string | null | undefined;
1551
1437
  config?: {
1552
1438
  label?: string | null | undefined;
1553
- useAsTitle?: boolean;
1554
1439
  placeholder?: string;
1555
- select?: "media" | "document" | "web" | null;
1556
- customtypes?: readonly ({
1557
- customTypeId: string;
1558
- } & {
1559
- fields?: readonly ({
1560
- fieldId: string;
1561
- } & {
1562
- customTypes?: readonly {
1563
- customTypeId: string;
1564
- fields: readonly {
1565
- fieldId: string;
1566
- }[];
1567
- }[];
1568
- })[];
1569
- })[];
1570
- masks?: readonly string[];
1571
- tags?: readonly string[];
1572
- allowTargetBlank?: boolean;
1440
+ default?: string;
1573
1441
  };
1574
1442
  }) | ({
1575
1443
  type: "Number";
@@ -1642,7 +1510,52 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1642
1510
  config?: {
1643
1511
  label?: string | null | undefined;
1644
1512
  placeholder?: string;
1645
- default?: string;
1513
+ default?: string;
1514
+ };
1515
+ }) | ({
1516
+ type: "Link";
1517
+ } & {
1518
+ fieldset?: string | null | undefined;
1519
+ config?: {
1520
+ label?: string | null | undefined;
1521
+ useAsTitle?: boolean;
1522
+ placeholder?: string;
1523
+ select?: "media" | "document" | "web" | null;
1524
+ customtypes?: readonly ({
1525
+ customTypeId: string;
1526
+ } & {
1527
+ fetchFields?: boolean;
1528
+ })[];
1529
+ masks?: readonly string[];
1530
+ tags?: readonly string[];
1531
+ allowTargetBlank?: boolean;
1532
+ };
1533
+ }) | ({
1534
+ type: "Image";
1535
+ } & {
1536
+ fieldset?: string | null | undefined;
1537
+ config?: {
1538
+ label?: string | null | undefined;
1539
+ placeholder?: string;
1540
+ constraint?: {
1541
+ width?: number | null;
1542
+ height?: number | null;
1543
+ };
1544
+ thumbnails?: readonly ({
1545
+ name: string;
1546
+ } & {
1547
+ width?: number | null;
1548
+ height?: number | null;
1549
+ })[];
1550
+ };
1551
+ }) | ({
1552
+ type: "IntegrationFields";
1553
+ } & {
1554
+ fieldset?: string | null | undefined;
1555
+ config?: {
1556
+ label?: string | null | undefined;
1557
+ placeholder?: string;
1558
+ catalog?: string;
1646
1559
  };
1647
1560
  }) | ({
1648
1561
  type: "Group";
@@ -1655,15 +1568,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1655
1568
  repeat?: boolean;
1656
1569
  fields?: {
1657
1570
  [x: string]: ({
1658
- type: "Boolean";
1659
- } & {
1660
- config?: {
1661
- label?: string | null | undefined;
1662
- default_value?: boolean;
1663
- placeholder_true?: string;
1664
- placeholder_false?: string;
1665
- };
1666
- }) | ({
1667
1571
  type: "Color";
1668
1572
  } & {
1669
1573
  fieldset?: string | null | undefined;
@@ -1672,13 +1576,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1672
1576
  placeholder?: string;
1673
1577
  };
1674
1578
  }) | ({
1675
- type: "Date";
1579
+ type: "Boolean";
1676
1580
  } & {
1677
- fieldset?: string | null | undefined;
1678
1581
  config?: {
1679
1582
  label?: string | null | undefined;
1680
- placeholder?: string;
1681
- default?: string;
1583
+ default_value?: boolean;
1584
+ placeholder_true?: string;
1585
+ placeholder_false?: string;
1682
1586
  };
1683
1587
  }) | ({
1684
1588
  type: "Embed";
@@ -1697,58 +1601,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1697
1601
  label?: string | null | undefined;
1698
1602
  };
1699
1603
  }) | ({
1700
- type: "Image";
1701
- } & {
1702
- fieldset?: string | null | undefined;
1703
- config?: {
1704
- label?: string | null | undefined;
1705
- placeholder?: string;
1706
- constraint?: {
1707
- width?: number | null;
1708
- height?: number | null;
1709
- };
1710
- thumbnails?: readonly ({
1711
- name: string;
1712
- } & {
1713
- width?: number | null;
1714
- height?: number | null;
1715
- })[];
1716
- };
1717
- }) | ({
1718
- type: "IntegrationFields";
1719
- } & {
1720
- fieldset?: string | null | undefined;
1721
- config?: {
1722
- label?: string | null | undefined;
1723
- placeholder?: string;
1724
- catalog?: string;
1725
- };
1726
- }) | ({
1727
- type: "Link";
1604
+ type: "Date";
1728
1605
  } & {
1729
1606
  fieldset?: string | null | undefined;
1730
1607
  config?: {
1731
1608
  label?: string | null | undefined;
1732
- useAsTitle?: boolean;
1733
1609
  placeholder?: string;
1734
- select?: "media" | "document" | "web" | null;
1735
- customtypes?: readonly ({
1736
- customTypeId: string;
1737
- } & {
1738
- fields?: readonly ({
1739
- fieldId: string;
1740
- } & {
1741
- customTypes?: readonly {
1742
- customTypeId: string;
1743
- fields: readonly {
1744
- fieldId: string;
1745
- }[];
1746
- }[];
1747
- })[];
1748
- })[];
1749
- masks?: readonly string[];
1750
- tags?: readonly string[];
1751
- allowTargetBlank?: boolean;
1610
+ default?: string;
1752
1611
  };
1753
1612
  }) | ({
1754
1613
  type: "Number";
@@ -1823,11 +1682,56 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1823
1682
  placeholder?: string;
1824
1683
  default?: string;
1825
1684
  };
1685
+ }) | ({
1686
+ type: "Link";
1687
+ } & {
1688
+ fieldset?: string | null | undefined;
1689
+ config?: {
1690
+ label?: string | null | undefined;
1691
+ useAsTitle?: boolean;
1692
+ placeholder?: string;
1693
+ select?: "media" | "document" | "web" | null;
1694
+ customtypes?: readonly ({
1695
+ customTypeId: string;
1696
+ } & {
1697
+ fetchFields?: boolean;
1698
+ })[];
1699
+ masks?: readonly string[];
1700
+ tags?: readonly string[];
1701
+ allowTargetBlank?: boolean;
1702
+ };
1703
+ }) | ({
1704
+ type: "Image";
1705
+ } & {
1706
+ fieldset?: string | null | undefined;
1707
+ config?: {
1708
+ label?: string | null | undefined;
1709
+ placeholder?: string;
1710
+ constraint?: {
1711
+ width?: number | null;
1712
+ height?: number | null;
1713
+ };
1714
+ thumbnails?: readonly ({
1715
+ name: string;
1716
+ } & {
1717
+ width?: number | null;
1718
+ height?: number | null;
1719
+ })[];
1720
+ };
1721
+ }) | ({
1722
+ type: "IntegrationFields";
1723
+ } & {
1724
+ fieldset?: string | null | undefined;
1725
+ config?: {
1726
+ label?: string | null | undefined;
1727
+ placeholder?: string;
1728
+ catalog?: string;
1729
+ };
1826
1730
  });
1827
1731
  };
1828
1732
  };
1829
1733
  }) | ({
1830
- type: "Choice" | "Slices";
1734
+ type: "Slices" | "Choice";
1831
1735
  } & {
1832
1736
  fieldset?: string | null | undefined;
1833
1737
  config?: {
@@ -1840,16 +1744,9 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1840
1744
  })[];
1841
1745
  } | null;
1842
1746
  choices?: {
1843
- [x: string]: ({
1844
- type: "Boolean";
1845
- } & {
1846
- config?: {
1847
- label?: string | null | undefined;
1848
- default_value?: boolean;
1849
- placeholder_true?: string;
1850
- placeholder_false?: string;
1851
- };
1852
- }) | ({
1747
+ [x: string]: {
1748
+ type: "SharedSlice";
1749
+ } | ({
1853
1750
  type: "Color";
1854
1751
  } & {
1855
1752
  fieldset?: string | null | undefined;
@@ -1858,13 +1755,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1858
1755
  placeholder?: string;
1859
1756
  };
1860
1757
  }) | ({
1861
- type: "Date";
1758
+ type: "Boolean";
1862
1759
  } & {
1863
- fieldset?: string | null | undefined;
1864
1760
  config?: {
1865
1761
  label?: string | null | undefined;
1866
- placeholder?: string;
1867
- default?: string;
1762
+ default_value?: boolean;
1763
+ placeholder_true?: string;
1764
+ placeholder_false?: string;
1868
1765
  };
1869
1766
  }) | ({
1870
1767
  type: "Embed";
@@ -1883,58 +1780,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1883
1780
  label?: string | null | undefined;
1884
1781
  };
1885
1782
  }) | ({
1886
- type: "Image";
1887
- } & {
1888
- fieldset?: string | null | undefined;
1889
- config?: {
1890
- label?: string | null | undefined;
1891
- placeholder?: string;
1892
- constraint?: {
1893
- width?: number | null;
1894
- height?: number | null;
1895
- };
1896
- thumbnails?: readonly ({
1897
- name: string;
1898
- } & {
1899
- width?: number | null;
1900
- height?: number | null;
1901
- })[];
1902
- };
1903
- }) | ({
1904
- type: "IntegrationFields";
1905
- } & {
1906
- fieldset?: string | null | undefined;
1907
- config?: {
1908
- label?: string | null | undefined;
1909
- placeholder?: string;
1910
- catalog?: string;
1911
- };
1912
- }) | ({
1913
- type: "Link";
1783
+ type: "Date";
1914
1784
  } & {
1915
1785
  fieldset?: string | null | undefined;
1916
1786
  config?: {
1917
1787
  label?: string | null | undefined;
1918
- useAsTitle?: boolean;
1919
1788
  placeholder?: string;
1920
- select?: "media" | "document" | "web" | null;
1921
- customtypes?: readonly ({
1922
- customTypeId: string;
1923
- } & {
1924
- fields?: readonly ({
1925
- fieldId: string;
1926
- } & {
1927
- customTypes?: readonly {
1928
- customTypeId: string;
1929
- fields: readonly {
1930
- fieldId: string;
1931
- }[];
1932
- }[];
1933
- })[];
1934
- })[];
1935
- masks?: readonly string[];
1936
- tags?: readonly string[];
1937
- allowTargetBlank?: boolean;
1789
+ default?: string;
1938
1790
  };
1939
1791
  }) | ({
1940
1792
  type: "Number";
@@ -2009,6 +1861,51 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2009
1861
  placeholder?: string;
2010
1862
  default?: string;
2011
1863
  };
1864
+ }) | ({
1865
+ type: "Link";
1866
+ } & {
1867
+ fieldset?: string | null | undefined;
1868
+ config?: {
1869
+ label?: string | null | undefined;
1870
+ useAsTitle?: boolean;
1871
+ placeholder?: string;
1872
+ select?: "media" | "document" | "web" | null;
1873
+ customtypes?: readonly ({
1874
+ customTypeId: string;
1875
+ } & {
1876
+ fetchFields?: boolean;
1877
+ })[];
1878
+ masks?: readonly string[];
1879
+ tags?: readonly string[];
1880
+ allowTargetBlank?: boolean;
1881
+ };
1882
+ }) | ({
1883
+ type: "Image";
1884
+ } & {
1885
+ fieldset?: string | null | undefined;
1886
+ config?: {
1887
+ label?: string | null | undefined;
1888
+ placeholder?: string;
1889
+ constraint?: {
1890
+ width?: number | null;
1891
+ height?: number | null;
1892
+ };
1893
+ thumbnails?: readonly ({
1894
+ name: string;
1895
+ } & {
1896
+ width?: number | null;
1897
+ height?: number | null;
1898
+ })[];
1899
+ };
1900
+ }) | ({
1901
+ type: "IntegrationFields";
1902
+ } & {
1903
+ fieldset?: string | null | undefined;
1904
+ config?: {
1905
+ label?: string | null | undefined;
1906
+ placeholder?: string;
1907
+ catalog?: string;
1908
+ };
2012
1909
  }) | ({
2013
1910
  type: "Group";
2014
1911
  } & {
@@ -2020,15 +1917,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2020
1917
  repeat?: boolean;
2021
1918
  fields?: {
2022
1919
  [x: string]: ({
2023
- type: "Boolean";
2024
- } & {
2025
- config?: {
2026
- label?: string | null | undefined;
2027
- default_value?: boolean;
2028
- placeholder_true?: string;
2029
- placeholder_false?: string;
2030
- };
2031
- }) | ({
2032
1920
  type: "Color";
2033
1921
  } & {
2034
1922
  fieldset?: string | null | undefined;
@@ -2037,83 +1925,38 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2037
1925
  placeholder?: string;
2038
1926
  };
2039
1927
  }) | ({
2040
- type: "Date";
2041
- } & {
2042
- fieldset?: string | null | undefined;
2043
- config?: {
2044
- label?: string | null | undefined;
2045
- placeholder?: string;
2046
- default?: string;
2047
- };
2048
- }) | ({
2049
- type: "Embed";
2050
- } & {
2051
- fieldset?: string | null | undefined;
2052
- config?: {
2053
- label?: string | null | undefined;
2054
- placeholder?: string;
2055
- useAsTitle?: boolean;
2056
- };
2057
- }) | ({
2058
- type: "GeoPoint";
2059
- } & {
2060
- fieldset?: string | null | undefined;
2061
- config?: {
2062
- label?: string | null | undefined;
2063
- };
2064
- }) | ({
2065
- type: "Image";
1928
+ type: "Boolean";
2066
1929
  } & {
2067
- fieldset?: string | null | undefined;
2068
1930
  config?: {
2069
1931
  label?: string | null | undefined;
2070
- placeholder?: string;
2071
- constraint?: {
2072
- width?: number | null;
2073
- height?: number | null;
2074
- };
2075
- thumbnails?: readonly ({
2076
- name: string;
2077
- } & {
2078
- width?: number | null;
2079
- height?: number | null;
2080
- })[];
1932
+ default_value?: boolean;
1933
+ placeholder_true?: string;
1934
+ placeholder_false?: string;
2081
1935
  };
2082
1936
  }) | ({
2083
- type: "IntegrationFields";
1937
+ type: "Embed";
2084
1938
  } & {
2085
1939
  fieldset?: string | null | undefined;
2086
1940
  config?: {
2087
1941
  label?: string | null | undefined;
2088
1942
  placeholder?: string;
2089
- catalog?: string;
1943
+ useAsTitle?: boolean;
2090
1944
  };
2091
1945
  }) | ({
2092
- type: "Link";
1946
+ type: "GeoPoint";
1947
+ } & {
1948
+ fieldset?: string | null | undefined;
1949
+ config?: {
1950
+ label?: string | null | undefined;
1951
+ };
1952
+ }) | ({
1953
+ type: "Date";
2093
1954
  } & {
2094
1955
  fieldset?: string | null | undefined;
2095
1956
  config?: {
2096
1957
  label?: string | null | undefined;
2097
- useAsTitle?: boolean;
2098
1958
  placeholder?: string;
2099
- select?: "media" | "document" | "web" | null;
2100
- customtypes?: readonly ({
2101
- customTypeId: string;
2102
- } & {
2103
- fields?: readonly ({
2104
- fieldId: string;
2105
- } & {
2106
- customTypes?: readonly {
2107
- customTypeId: string;
2108
- fields: readonly {
2109
- fieldId: string;
2110
- }[];
2111
- }[];
2112
- })[];
2113
- })[];
2114
- masks?: readonly string[];
2115
- tags?: readonly string[];
2116
- allowTargetBlank?: boolean;
1959
+ default?: string;
2117
1960
  };
2118
1961
  }) | ({
2119
1962
  type: "Number";
@@ -2188,6 +2031,51 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2188
2031
  placeholder?: string;
2189
2032
  default?: string;
2190
2033
  };
2034
+ }) | ({
2035
+ type: "Link";
2036
+ } & {
2037
+ fieldset?: string | null | undefined;
2038
+ config?: {
2039
+ label?: string | null | undefined;
2040
+ useAsTitle?: boolean;
2041
+ placeholder?: string;
2042
+ select?: "media" | "document" | "web" | null;
2043
+ customtypes?: readonly ({
2044
+ customTypeId: string;
2045
+ } & {
2046
+ fetchFields?: boolean;
2047
+ })[];
2048
+ masks?: readonly string[];
2049
+ tags?: readonly string[];
2050
+ allowTargetBlank?: boolean;
2051
+ };
2052
+ }) | ({
2053
+ type: "Image";
2054
+ } & {
2055
+ fieldset?: string | null | undefined;
2056
+ config?: {
2057
+ label?: string | null | undefined;
2058
+ placeholder?: string;
2059
+ constraint?: {
2060
+ width?: number | null;
2061
+ height?: number | null;
2062
+ };
2063
+ thumbnails?: readonly ({
2064
+ name: string;
2065
+ } & {
2066
+ width?: number | null;
2067
+ height?: number | null;
2068
+ })[];
2069
+ };
2070
+ }) | ({
2071
+ type: "IntegrationFields";
2072
+ } & {
2073
+ fieldset?: string | null | undefined;
2074
+ config?: {
2075
+ label?: string | null | undefined;
2076
+ placeholder?: string;
2077
+ catalog?: string;
2078
+ };
2191
2079
  });
2192
2080
  };
2193
2081
  };
@@ -2200,15 +2088,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2200
2088
  display?: string;
2201
2089
  "non-repeat"?: {
2202
2090
  [x: string]: ({
2203
- type: "Boolean";
2204
- } & {
2205
- config?: {
2206
- label?: string | null | undefined;
2207
- default_value?: boolean;
2208
- placeholder_true?: string;
2209
- placeholder_false?: string;
2210
- };
2211
- }) | ({
2212
2091
  type: "Color";
2213
2092
  } & {
2214
2093
  fieldset?: string | null | undefined;
@@ -2217,13 +2096,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2217
2096
  placeholder?: string;
2218
2097
  };
2219
2098
  }) | ({
2220
- type: "Date";
2099
+ type: "Boolean";
2221
2100
  } & {
2222
- fieldset?: string | null | undefined;
2223
2101
  config?: {
2224
2102
  label?: string | null | undefined;
2225
- placeholder?: string;
2226
- default?: string;
2103
+ default_value?: boolean;
2104
+ placeholder_true?: string;
2105
+ placeholder_false?: string;
2227
2106
  };
2228
2107
  }) | ({
2229
2108
  type: "Embed";
@@ -2242,58 +2121,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2242
2121
  label?: string | null | undefined;
2243
2122
  };
2244
2123
  }) | ({
2245
- type: "Image";
2246
- } & {
2247
- fieldset?: string | null | undefined;
2248
- config?: {
2249
- label?: string | null | undefined;
2250
- placeholder?: string;
2251
- constraint?: {
2252
- width?: number | null;
2253
- height?: number | null;
2254
- };
2255
- thumbnails?: readonly ({
2256
- name: string;
2257
- } & {
2258
- width?: number | null;
2259
- height?: number | null;
2260
- })[];
2261
- };
2262
- }) | ({
2263
- type: "IntegrationFields";
2264
- } & {
2265
- fieldset?: string | null | undefined;
2266
- config?: {
2267
- label?: string | null | undefined;
2268
- placeholder?: string;
2269
- catalog?: string;
2270
- };
2271
- }) | ({
2272
- type: "Link";
2124
+ type: "Date";
2273
2125
  } & {
2274
2126
  fieldset?: string | null | undefined;
2275
2127
  config?: {
2276
2128
  label?: string | null | undefined;
2277
- useAsTitle?: boolean;
2278
2129
  placeholder?: string;
2279
- select?: "media" | "document" | "web" | null;
2280
- customtypes?: readonly ({
2281
- customTypeId: string;
2282
- } & {
2283
- fields?: readonly ({
2284
- fieldId: string;
2285
- } & {
2286
- customTypes?: readonly {
2287
- customTypeId: string;
2288
- fields: readonly {
2289
- fieldId: string;
2290
- }[];
2291
- }[];
2292
- })[];
2293
- })[];
2294
- masks?: readonly string[];
2295
- tags?: readonly string[];
2296
- allowTargetBlank?: boolean;
2130
+ default?: string;
2297
2131
  };
2298
2132
  }) | ({
2299
2133
  type: "Number";
@@ -2368,104 +2202,95 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2368
2202
  placeholder?: string;
2369
2203
  default?: string;
2370
2204
  };
2371
- });
2372
- };
2373
- repeat?: {
2374
- [x: string]: ({
2375
- type: "Boolean";
2205
+ }) | ({
2206
+ type: "Link";
2376
2207
  } & {
2208
+ fieldset?: string | null | undefined;
2377
2209
  config?: {
2378
2210
  label?: string | null | undefined;
2379
- default_value?: boolean;
2380
- placeholder_true?: string;
2381
- placeholder_false?: string;
2211
+ useAsTitle?: boolean;
2212
+ placeholder?: string;
2213
+ select?: "media" | "document" | "web" | null;
2214
+ customtypes?: readonly ({
2215
+ customTypeId: string;
2216
+ } & {
2217
+ fetchFields?: boolean;
2218
+ })[];
2219
+ masks?: readonly string[];
2220
+ tags?: readonly string[];
2221
+ allowTargetBlank?: boolean;
2382
2222
  };
2383
2223
  }) | ({
2384
- type: "Color";
2224
+ type: "Image";
2385
2225
  } & {
2386
2226
  fieldset?: string | null | undefined;
2387
2227
  config?: {
2388
2228
  label?: string | null | undefined;
2389
2229
  placeholder?: string;
2230
+ constraint?: {
2231
+ width?: number | null;
2232
+ height?: number | null;
2233
+ };
2234
+ thumbnails?: readonly ({
2235
+ name: string;
2236
+ } & {
2237
+ width?: number | null;
2238
+ height?: number | null;
2239
+ })[];
2390
2240
  };
2391
2241
  }) | ({
2392
- type: "Date";
2242
+ type: "IntegrationFields";
2393
2243
  } & {
2394
2244
  fieldset?: string | null | undefined;
2395
2245
  config?: {
2396
2246
  label?: string | null | undefined;
2397
2247
  placeholder?: string;
2398
- default?: string;
2248
+ catalog?: string;
2399
2249
  };
2400
- }) | ({
2401
- type: "Embed";
2250
+ });
2251
+ };
2252
+ repeat?: {
2253
+ [x: string]: ({
2254
+ type: "Color";
2402
2255
  } & {
2403
2256
  fieldset?: string | null | undefined;
2404
2257
  config?: {
2405
2258
  label?: string | null | undefined;
2406
2259
  placeholder?: string;
2407
- useAsTitle?: boolean;
2408
2260
  };
2409
2261
  }) | ({
2410
- type: "GeoPoint";
2262
+ type: "Boolean";
2411
2263
  } & {
2412
- fieldset?: string | null | undefined;
2413
2264
  config?: {
2414
2265
  label?: string | null | undefined;
2266
+ default_value?: boolean;
2267
+ placeholder_true?: string;
2268
+ placeholder_false?: string;
2415
2269
  };
2416
2270
  }) | ({
2417
- type: "Image";
2271
+ type: "Embed";
2418
2272
  } & {
2419
2273
  fieldset?: string | null | undefined;
2420
2274
  config?: {
2421
2275
  label?: string | null | undefined;
2422
2276
  placeholder?: string;
2423
- constraint?: {
2424
- width?: number | null;
2425
- height?: number | null;
2426
- };
2427
- thumbnails?: readonly ({
2428
- name: string;
2429
- } & {
2430
- width?: number | null;
2431
- height?: number | null;
2432
- })[];
2277
+ useAsTitle?: boolean;
2433
2278
  };
2434
2279
  }) | ({
2435
- type: "IntegrationFields";
2280
+ type: "GeoPoint";
2436
2281
  } & {
2437
2282
  fieldset?: string | null | undefined;
2438
2283
  config?: {
2439
2284
  label?: string | null | undefined;
2440
- placeholder?: string;
2441
- catalog?: string;
2442
2285
  };
2443
2286
  }) | ({
2444
- type: "Link";
2287
+ type: "Date";
2445
2288
  } & {
2446
2289
  fieldset?: string | null | undefined;
2447
2290
  config?: {
2448
2291
  label?: string | null | undefined;
2449
- useAsTitle?: boolean;
2450
2292
  placeholder?: string;
2451
- select?: "media" | "document" | "web" | null;
2452
- customtypes?: readonly ({
2453
- customTypeId: string;
2454
- } & {
2455
- fields?: readonly ({
2456
- fieldId: string;
2457
- } & {
2458
- customTypes?: readonly {
2459
- customTypeId: string;
2460
- fields: readonly {
2461
- fieldId: string;
2462
- }[];
2463
- }[];
2464
- })[];
2465
- })[];
2466
- masks?: readonly string[];
2467
- tags?: readonly string[];
2468
- allowTargetBlank?: boolean;
2293
+ default?: string;
2469
2294
  };
2470
2295
  }) | ({
2471
2296
  type: "Number";
@@ -2540,14 +2365,57 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2540
2365
  placeholder?: string;
2541
2366
  default?: string;
2542
2367
  };
2368
+ }) | ({
2369
+ type: "Link";
2370
+ } & {
2371
+ fieldset?: string | null | undefined;
2372
+ config?: {
2373
+ label?: string | null | undefined;
2374
+ useAsTitle?: boolean;
2375
+ placeholder?: string;
2376
+ select?: "media" | "document" | "web" | null;
2377
+ customtypes?: readonly ({
2378
+ customTypeId: string;
2379
+ } & {
2380
+ fetchFields?: boolean;
2381
+ })[];
2382
+ masks?: readonly string[];
2383
+ tags?: readonly string[];
2384
+ allowTargetBlank?: boolean;
2385
+ };
2386
+ }) | ({
2387
+ type: "Image";
2388
+ } & {
2389
+ fieldset?: string | null | undefined;
2390
+ config?: {
2391
+ label?: string | null | undefined;
2392
+ placeholder?: string;
2393
+ constraint?: {
2394
+ width?: number | null;
2395
+ height?: number | null;
2396
+ };
2397
+ thumbnails?: readonly ({
2398
+ name: string;
2399
+ } & {
2400
+ width?: number | null;
2401
+ height?: number | null;
2402
+ })[];
2403
+ };
2404
+ }) | ({
2405
+ type: "IntegrationFields";
2406
+ } & {
2407
+ fieldset?: string | null | undefined;
2408
+ config?: {
2409
+ label?: string | null | undefined;
2410
+ placeholder?: string;
2411
+ catalog?: string;
2412
+ };
2543
2413
  });
2544
2414
  };
2545
2415
  config?: {
2546
2416
  label?: string | null | undefined;
2547
2417
  };
2548
- }) | {
2549
- type: "SharedSlice";
2550
- };
2418
+ });
2551
2419
  };
2552
2420
  };
2553
2421
  }) | ({
@@ -2572,7 +2440,5 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2572
2440
  export declare type CustomType = t.TypeOf<typeof CustomType>;
2573
2441
  export declare function flattenWidgets(customType: CustomType): Array<[string, DynamicWidget]>;
2574
2442
  export declare function toStatic(customType: CustomType, sharedSlices: Map<string, SharedSlice>): StaticCustomType;
2575
- export declare function validateSlices(customType: CustomType, sharedSlices: Map<string, SharedSlice>): Either<CustomTypeSlicesError, CustomType>;
2576
- export declare function collectWidgets(customType: CustomType, f: (ref: string, widget: DynamicWidget) => DynamicWidget | undefined): CustomType;
2577
2443
  export declare function filterMissingSharedSlices(customType: CustomType, sharedSlices: Map<string, SharedSlice>): CustomType;
2578
- export {};
2444
+ export declare function traverseCustomType(customType: CustomType, f: TraverseFn): CustomType;