@prismicio/types-internal 2.1.0-alpha.4 → 2.2.0-alpha.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.
Files changed (131) hide show
  1. package/lib/common/HexaColorCode.d.ts +4 -0
  2. package/lib/common/HexaColorCode.js +7 -0
  3. package/lib/content/Document.d.ts +1 -1
  4. package/lib/customtypes/CustomType.d.ts +875 -923
  5. package/lib/customtypes/CustomType.js +74 -13
  6. package/lib/customtypes/Section.d.ts +866 -924
  7. package/lib/customtypes/Section.js +1 -23
  8. package/lib/customtypes/diff/SharedSlice.d.ts +168 -184
  9. package/lib/customtypes/diff/Variation.d.ts +167 -183
  10. package/lib/customtypes/widgets/Group.d.ts +2 -20
  11. package/lib/customtypes/widgets/Group.js +1 -20
  12. package/lib/customtypes/widgets/Widget.d.ts +733 -821
  13. package/lib/customtypes/widgets/nestable/{Link/index.d.ts → Link.d.ts} +2 -19
  14. package/lib/customtypes/widgets/nestable/{Link/index.js → Link.js} +2 -4
  15. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +158 -9
  16. package/lib/customtypes/widgets/nestable/NestableWidget.js +17 -1
  17. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -20
  18. package/lib/customtypes/widgets/slices/CompositeSlice.js +1 -26
  19. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -18
  20. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +4 -38
  21. package/lib/customtypes/widgets/slices/SharedSlice.js +1 -35
  22. package/lib/customtypes/widgets/slices/Slices.d.ts +801 -947
  23. package/lib/customtypes/widgets/slices/Slices.js +1 -34
  24. package/lib/import/converters/Document.d.ts +3 -0
  25. package/lib/import/converters/Document.js +17 -0
  26. package/lib/import/converters/fields/index.d.ts +1 -0
  27. package/lib/import/converters/fields/index.js +4 -0
  28. package/lib/import/converters/fields/nestable/Color.d.ts +3 -0
  29. package/lib/import/converters/fields/nestable/Color.js +10 -0
  30. package/lib/import/converters/fields/nestable/Date.d.ts +3 -0
  31. package/lib/import/converters/fields/nestable/Date.js +15 -0
  32. package/lib/import/converters/fields/nestable/Nestable.d.ts +3 -0
  33. package/lib/import/converters/fields/nestable/Nestable.js +23 -0
  34. package/lib/import/converters/fields/nestable/Number.d.ts +3 -0
  35. package/lib/import/converters/fields/nestable/Number.js +10 -0
  36. package/lib/import/converters/fields/nestable/Select.d.ts +3 -0
  37. package/lib/import/converters/fields/nestable/Select.js +10 -0
  38. package/lib/import/converters/fields/nestable/Text.d.ts +3 -0
  39. package/lib/import/converters/fields/nestable/Text.js +10 -0
  40. package/lib/import/converters/fields/nestable/Timestamp.d.ts +3 -0
  41. package/lib/import/converters/fields/nestable/Timestamp.js +10 -0
  42. package/lib/import/converters/fields/nestable/index.d.ts +7 -0
  43. package/lib/import/converters/fields/nestable/index.js +10 -0
  44. package/lib/import/converters/fields/utils.d.ts +1 -0
  45. package/lib/import/converters/fields/utils.js +10 -0
  46. package/lib/import/converters/index.d.ts +2 -0
  47. package/lib/import/converters/index.js +5 -0
  48. package/lib/import/index.d.ts +2 -0
  49. package/lib/import/index.js +5 -0
  50. package/lib/import/validators/Document.d.ts +6 -0
  51. package/lib/import/validators/Document.js +72 -0
  52. package/lib/import/validators/fields/index.d.ts +6 -0
  53. package/lib/import/validators/fields/index.js +4 -0
  54. package/lib/import/validators/fields/nestable/Color.d.ts +5 -0
  55. package/lib/import/validators/fields/nestable/Color.js +15 -0
  56. package/lib/import/validators/fields/nestable/Date.d.ts +4 -0
  57. package/lib/import/validators/fields/nestable/Date.js +17 -0
  58. package/lib/import/validators/fields/nestable/Nestable.d.ts +9 -0
  59. package/lib/import/validators/fields/nestable/Nestable.js +34 -0
  60. package/lib/import/validators/fields/nestable/Number.d.ts +10 -0
  61. package/lib/import/validators/fields/nestable/Number.js +16 -0
  62. package/lib/import/validators/fields/nestable/Select.d.ts +9 -0
  63. package/lib/import/validators/fields/nestable/Select.js +17 -0
  64. package/lib/import/validators/fields/nestable/Text.d.ts +3 -0
  65. package/lib/import/validators/fields/nestable/Text.js +5 -0
  66. package/lib/import/validators/fields/nestable/Timestamp.d.ts +5 -0
  67. package/lib/import/validators/fields/nestable/Timestamp.js +17 -0
  68. package/lib/import/validators/fields/nestable/index.d.ts +7 -0
  69. package/lib/import/validators/fields/nestable/index.js +10 -0
  70. package/lib/import/validators/index.d.ts +2 -0
  71. package/lib/import/validators/index.js +5 -0
  72. package/lib/utils/Objects.d.ts +1 -0
  73. package/lib/utils/Objects.js +9 -1
  74. package/lib/utils/index.d.ts +1 -0
  75. package/lib/utils/index.js +2 -1
  76. package/lib/validators/BasicTypes.d.ts +3 -0
  77. package/lib/validators/BasicTypes.js +8 -0
  78. package/lib/validators/DateFromString.js +2 -1
  79. package/lib/validators/NullOrT.d.ts +2 -0
  80. package/lib/validators/NullOrT.js +13 -0
  81. package/lib/validators/index.d.ts +2 -0
  82. package/lib/validators/index.js +2 -0
  83. package/package.json +1 -1
  84. package/src/common/HexaColorCode.ts +11 -0
  85. package/src/customtypes/CustomType.ts +97 -24
  86. package/src/customtypes/Section.ts +1 -28
  87. package/src/customtypes/widgets/Group.ts +0 -24
  88. package/src/customtypes/widgets/nestable/{Link/index.ts → Link.ts} +2 -5
  89. package/src/customtypes/widgets/nestable/NestableWidget.ts +17 -0
  90. package/src/customtypes/widgets/slices/CompositeSlice.ts +0 -33
  91. package/src/customtypes/widgets/slices/SharedSlice.ts +0 -47
  92. package/src/customtypes/widgets/slices/Slices.ts +1 -44
  93. package/src/import/converters/Document.ts +22 -0
  94. package/src/import/converters/fields/index.ts +1 -0
  95. package/src/import/converters/fields/nestable/Color.ts +12 -0
  96. package/src/import/converters/fields/nestable/Date.ts +18 -0
  97. package/src/import/converters/fields/nestable/Nestable.ts +33 -0
  98. package/src/import/converters/fields/nestable/Number.ts +12 -0
  99. package/src/import/converters/fields/nestable/Select.ts +12 -0
  100. package/src/import/converters/fields/nestable/Text.ts +12 -0
  101. package/src/import/converters/fields/nestable/Timestamp.ts +12 -0
  102. package/src/import/converters/fields/nestable/index.ts +7 -0
  103. package/src/import/converters/fields/utils.ts +7 -0
  104. package/src/import/converters/index.ts +2 -0
  105. package/src/import/index.ts +2 -0
  106. package/src/import/validators/Document.ts +96 -0
  107. package/src/import/validators/fields/index.ts +8 -0
  108. package/src/import/validators/fields/nestable/Color.ts +28 -0
  109. package/src/import/validators/fields/nestable/Date.ts +35 -0
  110. package/src/import/validators/fields/nestable/Nestable.ts +41 -0
  111. package/src/import/validators/fields/nestable/Number.ts +36 -0
  112. package/src/import/validators/fields/nestable/Select.ts +36 -0
  113. package/src/import/validators/fields/nestable/Text.ts +7 -0
  114. package/src/import/validators/fields/nestable/Timestamp.ts +36 -0
  115. package/src/import/validators/fields/nestable/index.ts +7 -0
  116. package/src/import/validators/index.ts +2 -0
  117. package/src/utils/Objects.ts +8 -0
  118. package/src/utils/index.ts +1 -0
  119. package/src/validators/BasicTypes.ts +5 -0
  120. package/src/validators/DateFromString.ts +3 -1
  121. package/src/validators/NullOrT.ts +18 -0
  122. package/src/validators/index.ts +2 -0
  123. package/lib/customtypes/_internal/utils.d.ts +0 -3
  124. package/lib/customtypes/_internal/utils.js +0 -20
  125. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +0 -11
  126. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +0 -15
  127. package/lib/validators/StringOrT.d.ts +0 -3
  128. package/lib/validators/StringOrT.js +0 -15
  129. package/src/customtypes/_internal/utils.ts +0 -25
  130. package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +0 -20
  131. package/src/validators/StringOrT.ts +0 -21
@@ -1,17 +1,32 @@
1
+ import { Either } from "fp-ts/lib/Either";
1
2
  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
+ }
9
15
  export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
10
16
  id: t.StringC;
11
17
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
12
18
  repeatable: t.BooleanC;
13
19
  json: t.RecordC<t.StringC, t.Type<{
14
20
  [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
+ }) | ({
15
30
  type: "Color";
16
31
  } & {
17
32
  fieldset?: string | null | undefined;
@@ -20,13 +35,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
20
35
  placeholder?: string;
21
36
  };
22
37
  }) | ({
23
- type: "Boolean";
38
+ type: "Date";
24
39
  } & {
40
+ fieldset?: string | null | undefined;
25
41
  config?: {
26
42
  label?: string | null | undefined;
27
- default_value?: boolean;
28
- placeholder_true?: string;
29
- placeholder_false?: string;
43
+ placeholder?: string;
44
+ default?: string;
30
45
  };
31
46
  }) | ({
32
47
  type: "Embed";
@@ -45,13 +60,45 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
45
60
  label?: string | null | undefined;
46
61
  };
47
62
  }) | ({
48
- type: "Date";
63
+ type: "Image";
49
64
  } & {
50
65
  fieldset?: string | null | undefined;
51
66
  config?: {
52
67
  label?: string | null | undefined;
53
68
  placeholder?: string;
54
- default?: 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";
91
+ } & {
92
+ fieldset?: string | null | undefined;
93
+ config?: {
94
+ label?: string | null | undefined;
95
+ useAsTitle?: boolean;
96
+ placeholder?: string;
97
+ select?: "media" | "document" | "web" | null;
98
+ customtypes?: readonly string[];
99
+ masks?: readonly string[];
100
+ tags?: readonly string[];
101
+ allowTargetBlank?: boolean;
55
102
  };
56
103
  }) | ({
57
104
  type: "Number";
@@ -126,51 +173,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
126
173
  placeholder?: string;
127
174
  default?: string;
128
175
  };
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
- };
174
176
  }) | ({
175
177
  type: "Group";
176
178
  } & {
@@ -182,6 +184,15 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
182
184
  repeat?: boolean;
183
185
  fields?: {
184
186
  [x: string]: ({
187
+ type: "Boolean";
188
+ } & {
189
+ config?: {
190
+ label?: string | null | undefined;
191
+ default_value?: boolean;
192
+ placeholder_true?: string;
193
+ placeholder_false?: string;
194
+ };
195
+ }) | ({
185
196
  type: "Color";
186
197
  } & {
187
198
  fieldset?: string | null | undefined;
@@ -190,13 +201,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
190
201
  placeholder?: string;
191
202
  };
192
203
  }) | ({
193
- type: "Boolean";
204
+ type: "Date";
194
205
  } & {
206
+ fieldset?: string | null | undefined;
195
207
  config?: {
196
208
  label?: string | null | undefined;
197
- default_value?: boolean;
198
- placeholder_true?: string;
199
- placeholder_false?: string;
209
+ placeholder?: string;
210
+ default?: string;
200
211
  };
201
212
  }) | ({
202
213
  type: "Embed";
@@ -215,13 +226,45 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
215
226
  label?: string | null | undefined;
216
227
  };
217
228
  }) | ({
218
- type: "Date";
229
+ type: "Image";
219
230
  } & {
220
231
  fieldset?: string | null | undefined;
221
232
  config?: {
222
233
  label?: string | null | undefined;
223
234
  placeholder?: string;
224
- default?: string;
235
+ constraint?: {
236
+ width?: number | null;
237
+ height?: number | null;
238
+ };
239
+ thumbnails?: readonly ({
240
+ name: string;
241
+ } & {
242
+ width?: number | null;
243
+ height?: number | null;
244
+ })[];
245
+ };
246
+ }) | ({
247
+ type: "IntegrationFields";
248
+ } & {
249
+ fieldset?: string | null | undefined;
250
+ config?: {
251
+ label?: string | null | undefined;
252
+ placeholder?: string;
253
+ catalog?: string;
254
+ };
255
+ }) | ({
256
+ type: "Link";
257
+ } & {
258
+ fieldset?: string | null | undefined;
259
+ config?: {
260
+ label?: string | null | undefined;
261
+ useAsTitle?: boolean;
262
+ placeholder?: string;
263
+ select?: "media" | "document" | "web" | null;
264
+ customtypes?: readonly string[];
265
+ masks?: readonly string[];
266
+ tags?: readonly string[];
267
+ allowTargetBlank?: boolean;
225
268
  };
226
269
  }) | ({
227
270
  type: "Number";
@@ -296,56 +339,11 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
296
339
  placeholder?: string;
297
340
  default?: string;
298
341
  };
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
- };
344
342
  });
345
343
  };
346
344
  };
347
345
  }) | ({
348
- type: "Slices" | "Choice";
346
+ type: "Choice" | "Slices";
349
347
  } & {
350
348
  fieldset?: string | null | undefined;
351
349
  config?: {
@@ -359,6 +357,15 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
359
357
  } | null;
360
358
  choices?: {
361
359
  [x: string]: ({
360
+ type: "Boolean";
361
+ } & {
362
+ config?: {
363
+ label?: string | null | undefined;
364
+ default_value?: boolean;
365
+ placeholder_true?: string;
366
+ placeholder_false?: string;
367
+ };
368
+ }) | ({
362
369
  type: "Color";
363
370
  } & {
364
371
  fieldset?: string | null | undefined;
@@ -367,13 +374,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
367
374
  placeholder?: string;
368
375
  };
369
376
  }) | ({
370
- type: "Boolean";
377
+ type: "Date";
371
378
  } & {
379
+ fieldset?: string | null | undefined;
372
380
  config?: {
373
381
  label?: string | null | undefined;
374
- default_value?: boolean;
375
- placeholder_true?: string;
376
- placeholder_false?: string;
382
+ placeholder?: string;
383
+ default?: string;
377
384
  };
378
385
  }) | ({
379
386
  type: "Embed";
@@ -392,13 +399,45 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
392
399
  label?: string | null | undefined;
393
400
  };
394
401
  }) | ({
395
- type: "Date";
402
+ type: "Image";
396
403
  } & {
397
404
  fieldset?: string | null | undefined;
398
405
  config?: {
399
406
  label?: string | null | undefined;
400
407
  placeholder?: string;
401
- default?: string;
408
+ constraint?: {
409
+ width?: number | null;
410
+ height?: number | null;
411
+ };
412
+ thumbnails?: readonly ({
413
+ name: string;
414
+ } & {
415
+ width?: number | null;
416
+ height?: number | null;
417
+ })[];
418
+ };
419
+ }) | ({
420
+ type: "IntegrationFields";
421
+ } & {
422
+ fieldset?: string | null | undefined;
423
+ config?: {
424
+ label?: string | null | undefined;
425
+ placeholder?: string;
426
+ catalog?: string;
427
+ };
428
+ }) | ({
429
+ type: "Link";
430
+ } & {
431
+ fieldset?: string | null | undefined;
432
+ config?: {
433
+ label?: string | null | undefined;
434
+ useAsTitle?: boolean;
435
+ placeholder?: string;
436
+ select?: "media" | "document" | "web" | null;
437
+ customtypes?: readonly string[];
438
+ masks?: readonly string[];
439
+ tags?: readonly string[];
440
+ allowTargetBlank?: boolean;
402
441
  };
403
442
  }) | ({
404
443
  type: "Number";
@@ -474,73 +513,16 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
474
513
  default?: string;
475
514
  };
476
515
  }) | ({
477
- type: "Link";
516
+ type: "Group";
478
517
  } & {
479
518
  fieldset?: string | null | undefined;
519
+ icon?: string;
520
+ description?: string;
480
521
  config?: {
481
522
  label?: string | null | undefined;
482
- useAsTitle?: boolean;
483
- placeholder?: string;
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;
493
- };
494
- }) | ({
495
- type: "Image";
496
- } & {
497
- fieldset?: string | null | undefined;
498
- config?: {
499
- label?: string | null | undefined;
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
- })[];
511
- };
512
- }) | ({
513
- type: "IntegrationFields";
514
- } & {
515
- fieldset?: string | null | undefined;
516
- config?: {
517
- label?: string | null | undefined;
518
- placeholder?: string;
519
- catalog?: string;
520
- };
521
- }) | ({
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?: {
523
+ repeat?: boolean;
524
+ fields?: {
535
525
  [x: string]: ({
536
- type: "Color";
537
- } & {
538
- fieldset?: string | null | undefined;
539
- config?: {
540
- label?: string | null | undefined;
541
- placeholder?: string;
542
- };
543
- }) | ({
544
526
  type: "Boolean";
545
527
  } & {
546
528
  config?: {
@@ -550,20 +532,12 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
550
532
  placeholder_false?: string;
551
533
  };
552
534
  }) | ({
553
- type: "Embed";
535
+ type: "Color";
554
536
  } & {
555
537
  fieldset?: string | null | undefined;
556
538
  config?: {
557
539
  label?: string | null | undefined;
558
540
  placeholder?: string;
559
- useAsTitle?: boolean;
560
- };
561
- }) | ({
562
- type: "GeoPoint";
563
- } & {
564
- fieldset?: string | null | undefined;
565
- config?: {
566
- label?: string | null | undefined;
567
541
  };
568
542
  }) | ({
569
543
  type: "Date";
@@ -575,95 +549,20 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
575
549
  default?: string;
576
550
  };
577
551
  }) | ({
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";
601
- } & {
602
- fieldset?: string | null | undefined;
603
- config?: {
604
- label?: string | null | undefined;
605
- placeholder?: string;
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;
615
- };
616
- }) | ({
617
- type: "Select";
552
+ type: "Embed";
618
553
  } & {
619
554
  fieldset?: string | null | undefined;
620
555
  config?: {
621
556
  label?: string | null | undefined;
622
557
  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
558
  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
559
  };
650
560
  }) | ({
651
- type: "Link";
561
+ type: "GeoPoint";
652
562
  } & {
653
563
  fieldset?: string | null | undefined;
654
564
  config?: {
655
565
  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;
667
566
  };
668
567
  }) | ({
669
568
  type: "Image";
@@ -692,50 +591,19 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
692
591
  placeholder?: string;
693
592
  catalog?: string;
694
593
  };
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
- };
706
- }) | ({
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
594
  }) | ({
716
- type: "Embed";
595
+ type: "Link";
717
596
  } & {
718
597
  fieldset?: string | null | undefined;
719
598
  config?: {
720
599
  label?: string | null | undefined;
721
- placeholder?: string;
722
600
  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;
737
601
  placeholder?: string;
738
- default?: string;
602
+ select?: "media" | "document" | "web" | null;
603
+ customtypes?: readonly string[];
604
+ masks?: readonly string[];
605
+ tags?: readonly string[];
606
+ allowTargetBlank?: boolean;
739
607
  };
740
608
  }) | ({
741
609
  type: "Number";
@@ -810,231 +678,11 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
810
678
  placeholder?: string;
811
679
  default?: string;
812
680
  };
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
- fetchFields?: boolean;
826
- })[];
827
- masks?: readonly string[];
828
- tags?: readonly string[];
829
- allowTargetBlank?: boolean;
830
- };
831
- }) | ({
832
- type: "Image";
833
- } & {
834
- fieldset?: string | null | undefined;
835
- config?: {
836
- label?: string | null | undefined;
837
- placeholder?: string;
838
- constraint?: {
839
- width?: number | null;
840
- height?: number | null;
841
- };
842
- thumbnails?: readonly ({
843
- name: string;
844
- } & {
845
- width?: number | null;
846
- height?: number | null;
847
- })[];
848
- };
849
- }) | ({
850
- type: "IntegrationFields";
851
- } & {
852
- fieldset?: string | null | undefined;
853
- config?: {
854
- label?: string | null | undefined;
855
- placeholder?: string;
856
- catalog?: string;
857
- };
858
681
  });
859
682
  };
860
- })[];
861
- } & {
862
- description?: string;
683
+ };
863
684
  }) | ({
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?: {
873
- [x: string]: ({
874
- type: "Color";
875
- } & {
876
- fieldset?: string | null | undefined;
877
- config?: {
878
- label?: string | null | undefined;
879
- placeholder?: string;
880
- };
881
- }) | ({
882
- type: "Boolean";
883
- } & {
884
- config?: {
885
- label?: string | null | undefined;
886
- default_value?: boolean;
887
- placeholder_true?: string;
888
- placeholder_false?: string;
889
- };
890
- }) | ({
891
- type: "Embed";
892
- } & {
893
- fieldset?: string | null | undefined;
894
- config?: {
895
- label?: string | null | undefined;
896
- placeholder?: string;
897
- useAsTitle?: boolean;
898
- };
899
- }) | ({
900
- type: "GeoPoint";
901
- } & {
902
- fieldset?: string | null | undefined;
903
- config?: {
904
- label?: string | null | undefined;
905
- };
906
- }) | ({
907
- type: "Date";
908
- } & {
909
- fieldset?: string | null | undefined;
910
- config?: {
911
- label?: string | null | undefined;
912
- placeholder?: string;
913
- default?: string;
914
- };
915
- }) | ({
916
- type: "Number";
917
- } & {
918
- fieldset?: string | null | undefined;
919
- config?: {
920
- label?: string | null | undefined;
921
- placeholder?: string;
922
- min?: number;
923
- max?: number;
924
- step?: number;
925
- };
926
- }) | ({
927
- type: "Range";
928
- } & {
929
- fieldset?: string | null | undefined;
930
- config?: {
931
- label?: string | null | undefined;
932
- placeholder?: string;
933
- min?: number;
934
- max?: number;
935
- step?: number;
936
- };
937
- }) | ({
938
- type: "StructuredText";
939
- } & {
940
- fieldset?: string | null | undefined;
941
- config?: {
942
- label?: string | null | undefined;
943
- placeholder?: string;
944
- useAsTitle?: boolean;
945
- single?: string;
946
- multi?: string;
947
- imageConstraint?: {
948
- width?: number | null;
949
- height?: number | null;
950
- };
951
- labels?: readonly string[];
952
- allowTargetBlank?: boolean;
953
- };
954
- }) | ({
955
- type: "Select";
956
- } & {
957
- fieldset?: string | null | undefined;
958
- config?: {
959
- label?: string | null | undefined;
960
- placeholder?: string;
961
- default_value?: string;
962
- options?: readonly string[];
963
- };
964
- }) | ({
965
- type: "Separator";
966
- } & {
967
- config?: {
968
- label?: string | null | undefined;
969
- };
970
- }) | ({
971
- type: "Text";
972
- } & {
973
- fieldset?: string | null | undefined;
974
- config?: {
975
- label?: string | null | undefined;
976
- useAsTitle?: boolean;
977
- placeholder?: string;
978
- };
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";
685
+ type: "Slice";
1038
686
  } & {
1039
687
  fieldset?: string | null | undefined;
1040
688
  description?: string;
@@ -1042,6 +690,15 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1042
690
  display?: string;
1043
691
  "non-repeat"?: {
1044
692
  [x: string]: ({
693
+ type: "Boolean";
694
+ } & {
695
+ config?: {
696
+ label?: string | null | undefined;
697
+ default_value?: boolean;
698
+ placeholder_true?: string;
699
+ placeholder_false?: string;
700
+ };
701
+ }) | ({
1045
702
  type: "Color";
1046
703
  } & {
1047
704
  fieldset?: string | null | undefined;
@@ -1050,13 +707,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1050
707
  placeholder?: string;
1051
708
  };
1052
709
  }) | ({
1053
- type: "Boolean";
710
+ type: "Date";
1054
711
  } & {
712
+ fieldset?: string | null | undefined;
1055
713
  config?: {
1056
714
  label?: string | null | undefined;
1057
- default_value?: boolean;
1058
- placeholder_true?: string;
1059
- placeholder_false?: string;
715
+ placeholder?: string;
716
+ default?: string;
1060
717
  };
1061
718
  }) | ({
1062
719
  type: "Embed";
@@ -1075,13 +732,45 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1075
732
  label?: string | null | undefined;
1076
733
  };
1077
734
  }) | ({
1078
- type: "Date";
735
+ type: "Image";
1079
736
  } & {
1080
737
  fieldset?: string | null | undefined;
1081
738
  config?: {
1082
739
  label?: string | null | undefined;
1083
740
  placeholder?: string;
1084
- default?: string;
741
+ constraint?: {
742
+ width?: number | null;
743
+ height?: number | null;
744
+ };
745
+ thumbnails?: readonly ({
746
+ name: string;
747
+ } & {
748
+ width?: number | null;
749
+ height?: number | null;
750
+ })[];
751
+ };
752
+ }) | ({
753
+ type: "IntegrationFields";
754
+ } & {
755
+ fieldset?: string | null | undefined;
756
+ config?: {
757
+ label?: string | null | undefined;
758
+ placeholder?: string;
759
+ catalog?: string;
760
+ };
761
+ }) | ({
762
+ type: "Link";
763
+ } & {
764
+ fieldset?: string | null | undefined;
765
+ config?: {
766
+ label?: string | null | undefined;
767
+ useAsTitle?: boolean;
768
+ placeholder?: string;
769
+ select?: "media" | "document" | "web" | null;
770
+ customtypes?: readonly string[];
771
+ masks?: readonly string[];
772
+ tags?: readonly string[];
773
+ allowTargetBlank?: boolean;
1085
774
  };
1086
775
  }) | ({
1087
776
  type: "Number";
@@ -1156,23 +845,50 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1156
845
  placeholder?: string;
1157
846
  default?: string;
1158
847
  };
848
+ });
849
+ };
850
+ repeat?: {
851
+ [x: string]: ({
852
+ type: "Boolean";
853
+ } & {
854
+ config?: {
855
+ label?: string | null | undefined;
856
+ default_value?: boolean;
857
+ placeholder_true?: string;
858
+ placeholder_false?: string;
859
+ };
860
+ }) | ({
861
+ type: "Color";
862
+ } & {
863
+ fieldset?: string | null | undefined;
864
+ config?: {
865
+ label?: string | null | undefined;
866
+ placeholder?: string;
867
+ };
868
+ }) | ({
869
+ type: "Date";
870
+ } & {
871
+ fieldset?: string | null | undefined;
872
+ config?: {
873
+ label?: string | null | undefined;
874
+ placeholder?: string;
875
+ default?: string;
876
+ };
1159
877
  }) | ({
1160
- type: "Link";
878
+ type: "Embed";
1161
879
  } & {
1162
880
  fieldset?: string | null | undefined;
1163
881
  config?: {
1164
882
  label?: string | null | undefined;
1165
- useAsTitle?: boolean;
1166
883
  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;
884
+ useAsTitle?: boolean;
885
+ };
886
+ }) | ({
887
+ type: "GeoPoint";
888
+ } & {
889
+ fieldset?: string | null | undefined;
890
+ config?: {
891
+ label?: string | null | undefined;
1176
892
  };
1177
893
  }) | ({
1178
894
  type: "Image";
@@ -1201,55 +917,24 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1201
917
  placeholder?: string;
1202
918
  catalog?: string;
1203
919
  };
1204
- });
1205
- };
1206
- repeat?: {
1207
- [x: string]: ({
1208
- type: "Color";
920
+ }) | ({
921
+ type: "Link";
1209
922
  } & {
1210
923
  fieldset?: string | null | undefined;
1211
924
  config?: {
1212
925
  label?: string | null | undefined;
926
+ useAsTitle?: boolean;
1213
927
  placeholder?: string;
928
+ select?: "media" | "document" | "web" | null;
929
+ customtypes?: readonly string[];
930
+ masks?: readonly string[];
931
+ tags?: readonly string[];
932
+ allowTargetBlank?: boolean;
1214
933
  };
1215
934
  }) | ({
1216
- type: "Boolean";
935
+ type: "Number";
1217
936
  } & {
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;
937
+ fieldset?: string | null | undefined;
1253
938
  config?: {
1254
939
  label?: string | null | undefined;
1255
940
  placeholder?: string;
@@ -1319,56 +1004,345 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1319
1004
  placeholder?: string;
1320
1005
  default?: string;
1321
1006
  };
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;
1350
- };
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
1007
  });
1368
1008
  };
1369
1009
  config?: {
1370
1010
  label?: string | null | undefined;
1371
1011
  };
1012
+ }) | ({
1013
+ id: string;
1014
+ type: "SharedSlice";
1015
+ name: string;
1016
+ variations: readonly ({
1017
+ id: string;
1018
+ name: string;
1019
+ description: string;
1020
+ imageUrl: string;
1021
+ docURL: string;
1022
+ version: string;
1023
+ } & {
1024
+ display?: string;
1025
+ primary?: {
1026
+ [x: string]: ({
1027
+ type: "Boolean";
1028
+ } & {
1029
+ config?: {
1030
+ label?: string | null | undefined;
1031
+ default_value?: boolean;
1032
+ placeholder_true?: string;
1033
+ placeholder_false?: string;
1034
+ };
1035
+ }) | ({
1036
+ type: "Color";
1037
+ } & {
1038
+ fieldset?: string | null | undefined;
1039
+ config?: {
1040
+ label?: string | null | undefined;
1041
+ placeholder?: string;
1042
+ };
1043
+ }) | ({
1044
+ type: "Date";
1045
+ } & {
1046
+ fieldset?: string | null | undefined;
1047
+ config?: {
1048
+ label?: string | null | undefined;
1049
+ placeholder?: string;
1050
+ default?: string;
1051
+ };
1052
+ }) | ({
1053
+ type: "Embed";
1054
+ } & {
1055
+ fieldset?: string | null | undefined;
1056
+ config?: {
1057
+ label?: string | null | undefined;
1058
+ placeholder?: string;
1059
+ useAsTitle?: boolean;
1060
+ };
1061
+ }) | ({
1062
+ type: "GeoPoint";
1063
+ } & {
1064
+ fieldset?: string | null | undefined;
1065
+ config?: {
1066
+ label?: string | null | undefined;
1067
+ };
1068
+ }) | ({
1069
+ type: "Image";
1070
+ } & {
1071
+ fieldset?: string | null | undefined;
1072
+ config?: {
1073
+ label?: string | null | undefined;
1074
+ placeholder?: string;
1075
+ constraint?: {
1076
+ width?: number | null;
1077
+ height?: number | null;
1078
+ };
1079
+ thumbnails?: readonly ({
1080
+ name: string;
1081
+ } & {
1082
+ width?: number | null;
1083
+ height?: number | null;
1084
+ })[];
1085
+ };
1086
+ }) | ({
1087
+ type: "IntegrationFields";
1088
+ } & {
1089
+ fieldset?: string | null | undefined;
1090
+ config?: {
1091
+ label?: string | null | undefined;
1092
+ placeholder?: string;
1093
+ catalog?: string;
1094
+ };
1095
+ }) | ({
1096
+ type: "Link";
1097
+ } & {
1098
+ fieldset?: string | null | undefined;
1099
+ config?: {
1100
+ label?: string | null | undefined;
1101
+ useAsTitle?: boolean;
1102
+ placeholder?: string;
1103
+ select?: "media" | "document" | "web" | null;
1104
+ customtypes?: readonly string[];
1105
+ masks?: readonly string[];
1106
+ tags?: readonly string[];
1107
+ allowTargetBlank?: boolean;
1108
+ };
1109
+ }) | ({
1110
+ type: "Number";
1111
+ } & {
1112
+ fieldset?: string | null | undefined;
1113
+ config?: {
1114
+ label?: string | null | undefined;
1115
+ placeholder?: string;
1116
+ min?: number;
1117
+ max?: number;
1118
+ step?: number;
1119
+ };
1120
+ }) | ({
1121
+ type: "Range";
1122
+ } & {
1123
+ fieldset?: string | null | undefined;
1124
+ config?: {
1125
+ label?: string | null | undefined;
1126
+ placeholder?: string;
1127
+ min?: number;
1128
+ max?: number;
1129
+ step?: number;
1130
+ };
1131
+ }) | ({
1132
+ type: "StructuredText";
1133
+ } & {
1134
+ fieldset?: string | null | undefined;
1135
+ config?: {
1136
+ label?: string | null | undefined;
1137
+ placeholder?: string;
1138
+ useAsTitle?: boolean;
1139
+ single?: string;
1140
+ multi?: string;
1141
+ imageConstraint?: {
1142
+ width?: number | null;
1143
+ height?: number | null;
1144
+ };
1145
+ labels?: readonly string[];
1146
+ allowTargetBlank?: boolean;
1147
+ };
1148
+ }) | ({
1149
+ type: "Select";
1150
+ } & {
1151
+ fieldset?: string | null | undefined;
1152
+ config?: {
1153
+ label?: string | null | undefined;
1154
+ placeholder?: string;
1155
+ default_value?: string;
1156
+ options?: readonly string[];
1157
+ };
1158
+ }) | ({
1159
+ type: "Separator";
1160
+ } & {
1161
+ config?: {
1162
+ label?: string | null | undefined;
1163
+ };
1164
+ }) | ({
1165
+ type: "Text";
1166
+ } & {
1167
+ fieldset?: string | null | undefined;
1168
+ config?: {
1169
+ label?: string | null | undefined;
1170
+ useAsTitle?: boolean;
1171
+ placeholder?: string;
1172
+ };
1173
+ }) | ({
1174
+ type: "Timestamp";
1175
+ } & {
1176
+ fieldset?: string | null | undefined;
1177
+ config?: {
1178
+ label?: string | null | undefined;
1179
+ placeholder?: string;
1180
+ default?: string;
1181
+ };
1182
+ });
1183
+ };
1184
+ items?: {
1185
+ [x: string]: ({
1186
+ type: "Boolean";
1187
+ } & {
1188
+ config?: {
1189
+ label?: string | null | undefined;
1190
+ default_value?: boolean;
1191
+ placeholder_true?: string;
1192
+ placeholder_false?: string;
1193
+ };
1194
+ }) | ({
1195
+ type: "Color";
1196
+ } & {
1197
+ fieldset?: string | null | undefined;
1198
+ config?: {
1199
+ label?: string | null | undefined;
1200
+ placeholder?: string;
1201
+ };
1202
+ }) | ({
1203
+ type: "Date";
1204
+ } & {
1205
+ fieldset?: string | null | undefined;
1206
+ config?: {
1207
+ label?: string | null | undefined;
1208
+ placeholder?: string;
1209
+ default?: string;
1210
+ };
1211
+ }) | ({
1212
+ type: "Embed";
1213
+ } & {
1214
+ fieldset?: string | null | undefined;
1215
+ config?: {
1216
+ label?: string | null | undefined;
1217
+ placeholder?: string;
1218
+ useAsTitle?: boolean;
1219
+ };
1220
+ }) | ({
1221
+ type: "GeoPoint";
1222
+ } & {
1223
+ fieldset?: string | null | undefined;
1224
+ config?: {
1225
+ label?: string | null | undefined;
1226
+ };
1227
+ }) | ({
1228
+ type: "Image";
1229
+ } & {
1230
+ fieldset?: string | null | undefined;
1231
+ config?: {
1232
+ label?: string | null | undefined;
1233
+ placeholder?: string;
1234
+ constraint?: {
1235
+ width?: number | null;
1236
+ height?: number | null;
1237
+ };
1238
+ thumbnails?: readonly ({
1239
+ name: string;
1240
+ } & {
1241
+ width?: number | null;
1242
+ height?: number | null;
1243
+ })[];
1244
+ };
1245
+ }) | ({
1246
+ type: "IntegrationFields";
1247
+ } & {
1248
+ fieldset?: string | null | undefined;
1249
+ config?: {
1250
+ label?: string | null | undefined;
1251
+ placeholder?: string;
1252
+ catalog?: string;
1253
+ };
1254
+ }) | ({
1255
+ type: "Link";
1256
+ } & {
1257
+ fieldset?: string | null | undefined;
1258
+ config?: {
1259
+ label?: string | null | undefined;
1260
+ useAsTitle?: boolean;
1261
+ placeholder?: string;
1262
+ select?: "media" | "document" | "web" | null;
1263
+ customtypes?: readonly string[];
1264
+ masks?: readonly string[];
1265
+ tags?: readonly string[];
1266
+ allowTargetBlank?: boolean;
1267
+ };
1268
+ }) | ({
1269
+ type: "Number";
1270
+ } & {
1271
+ fieldset?: string | null | undefined;
1272
+ config?: {
1273
+ label?: string | null | undefined;
1274
+ placeholder?: string;
1275
+ min?: number;
1276
+ max?: number;
1277
+ step?: number;
1278
+ };
1279
+ }) | ({
1280
+ type: "Range";
1281
+ } & {
1282
+ fieldset?: string | null | undefined;
1283
+ config?: {
1284
+ label?: string | null | undefined;
1285
+ placeholder?: string;
1286
+ min?: number;
1287
+ max?: number;
1288
+ step?: number;
1289
+ };
1290
+ }) | ({
1291
+ type: "StructuredText";
1292
+ } & {
1293
+ fieldset?: string | null | undefined;
1294
+ config?: {
1295
+ label?: string | null | undefined;
1296
+ placeholder?: string;
1297
+ useAsTitle?: boolean;
1298
+ single?: string;
1299
+ multi?: string;
1300
+ imageConstraint?: {
1301
+ width?: number | null;
1302
+ height?: number | null;
1303
+ };
1304
+ labels?: readonly string[];
1305
+ allowTargetBlank?: boolean;
1306
+ };
1307
+ }) | ({
1308
+ type: "Select";
1309
+ } & {
1310
+ fieldset?: string | null | undefined;
1311
+ config?: {
1312
+ label?: string | null | undefined;
1313
+ placeholder?: string;
1314
+ default_value?: string;
1315
+ options?: readonly string[];
1316
+ };
1317
+ }) | ({
1318
+ type: "Separator";
1319
+ } & {
1320
+ config?: {
1321
+ label?: string | null | undefined;
1322
+ };
1323
+ }) | ({
1324
+ type: "Text";
1325
+ } & {
1326
+ fieldset?: string | null | undefined;
1327
+ config?: {
1328
+ label?: string | null | undefined;
1329
+ useAsTitle?: boolean;
1330
+ placeholder?: string;
1331
+ };
1332
+ }) | ({
1333
+ type: "Timestamp";
1334
+ } & {
1335
+ fieldset?: string | null | undefined;
1336
+ config?: {
1337
+ label?: string | null | undefined;
1338
+ placeholder?: string;
1339
+ default?: string;
1340
+ };
1341
+ });
1342
+ };
1343
+ })[];
1344
+ } & {
1345
+ description?: string;
1372
1346
  });
1373
1347
  };
1374
1348
  };
@@ -1398,6 +1372,15 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1398
1372
  repeatable: t.BooleanC;
1399
1373
  json: t.RecordC<t.StringC, t.Type<{
1400
1374
  [x: string]: ({
1375
+ type: "Boolean";
1376
+ } & {
1377
+ config?: {
1378
+ label?: string | null | undefined;
1379
+ default_value?: boolean;
1380
+ placeholder_true?: string;
1381
+ placeholder_false?: string;
1382
+ };
1383
+ }) | ({
1401
1384
  type: "Color";
1402
1385
  } & {
1403
1386
  fieldset?: string | null | undefined;
@@ -1406,13 +1389,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1406
1389
  placeholder?: string;
1407
1390
  };
1408
1391
  }) | ({
1409
- type: "Boolean";
1392
+ type: "Date";
1410
1393
  } & {
1394
+ fieldset?: string | null | undefined;
1411
1395
  config?: {
1412
1396
  label?: string | null | undefined;
1413
- default_value?: boolean;
1414
- placeholder_true?: string;
1415
- placeholder_false?: string;
1397
+ placeholder?: string;
1398
+ default?: string;
1416
1399
  };
1417
1400
  }) | ({
1418
1401
  type: "Embed";
@@ -1424,20 +1407,52 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1424
1407
  useAsTitle?: boolean;
1425
1408
  };
1426
1409
  }) | ({
1427
- type: "GeoPoint";
1410
+ type: "GeoPoint";
1411
+ } & {
1412
+ fieldset?: string | null | undefined;
1413
+ config?: {
1414
+ label?: string | null | undefined;
1415
+ };
1416
+ }) | ({
1417
+ type: "Image";
1418
+ } & {
1419
+ fieldset?: string | null | undefined;
1420
+ config?: {
1421
+ label?: string | null | undefined;
1422
+ placeholder?: string;
1423
+ constraint?: {
1424
+ width?: number | null;
1425
+ height?: number | null;
1426
+ };
1427
+ thumbnails?: readonly ({
1428
+ name: string;
1429
+ } & {
1430
+ width?: number | null;
1431
+ height?: number | null;
1432
+ })[];
1433
+ };
1434
+ }) | ({
1435
+ type: "IntegrationFields";
1428
1436
  } & {
1429
1437
  fieldset?: string | null | undefined;
1430
1438
  config?: {
1431
1439
  label?: string | null | undefined;
1440
+ placeholder?: string;
1441
+ catalog?: string;
1432
1442
  };
1433
1443
  }) | ({
1434
- type: "Date";
1444
+ type: "Link";
1435
1445
  } & {
1436
1446
  fieldset?: string | null | undefined;
1437
1447
  config?: {
1438
1448
  label?: string | null | undefined;
1449
+ useAsTitle?: boolean;
1439
1450
  placeholder?: string;
1440
- default?: string;
1451
+ select?: "media" | "document" | "web" | null;
1452
+ customtypes?: readonly string[];
1453
+ masks?: readonly string[];
1454
+ tags?: readonly string[];
1455
+ allowTargetBlank?: boolean;
1441
1456
  };
1442
1457
  }) | ({
1443
1458
  type: "Number";
@@ -1512,51 +1527,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1512
1527
  placeholder?: string;
1513
1528
  default?: string;
1514
1529
  };
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;
1559
- };
1560
1530
  }) | ({
1561
1531
  type: "Group";
1562
1532
  } & {
@@ -1568,6 +1538,15 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1568
1538
  repeat?: boolean;
1569
1539
  fields?: {
1570
1540
  [x: string]: ({
1541
+ type: "Boolean";
1542
+ } & {
1543
+ config?: {
1544
+ label?: string | null | undefined;
1545
+ default_value?: boolean;
1546
+ placeholder_true?: string;
1547
+ placeholder_false?: string;
1548
+ };
1549
+ }) | ({
1571
1550
  type: "Color";
1572
1551
  } & {
1573
1552
  fieldset?: string | null | undefined;
@@ -1576,13 +1555,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1576
1555
  placeholder?: string;
1577
1556
  };
1578
1557
  }) | ({
1579
- type: "Boolean";
1558
+ type: "Date";
1580
1559
  } & {
1560
+ fieldset?: string | null | undefined;
1581
1561
  config?: {
1582
1562
  label?: string | null | undefined;
1583
- default_value?: boolean;
1584
- placeholder_true?: string;
1585
- placeholder_false?: string;
1563
+ placeholder?: string;
1564
+ default?: string;
1586
1565
  };
1587
1566
  }) | ({
1588
1567
  type: "Embed";
@@ -1601,13 +1580,45 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1601
1580
  label?: string | null | undefined;
1602
1581
  };
1603
1582
  }) | ({
1604
- type: "Date";
1583
+ type: "Image";
1605
1584
  } & {
1606
1585
  fieldset?: string | null | undefined;
1607
1586
  config?: {
1608
1587
  label?: string | null | undefined;
1609
1588
  placeholder?: string;
1610
- default?: string;
1589
+ constraint?: {
1590
+ width?: number | null;
1591
+ height?: number | null;
1592
+ };
1593
+ thumbnails?: readonly ({
1594
+ name: string;
1595
+ } & {
1596
+ width?: number | null;
1597
+ height?: number | null;
1598
+ })[];
1599
+ };
1600
+ }) | ({
1601
+ type: "IntegrationFields";
1602
+ } & {
1603
+ fieldset?: string | null | undefined;
1604
+ config?: {
1605
+ label?: string | null | undefined;
1606
+ placeholder?: string;
1607
+ catalog?: string;
1608
+ };
1609
+ }) | ({
1610
+ type: "Link";
1611
+ } & {
1612
+ fieldset?: string | null | undefined;
1613
+ config?: {
1614
+ label?: string | null | undefined;
1615
+ useAsTitle?: boolean;
1616
+ placeholder?: string;
1617
+ select?: "media" | "document" | "web" | null;
1618
+ customtypes?: readonly string[];
1619
+ masks?: readonly string[];
1620
+ tags?: readonly string[];
1621
+ allowTargetBlank?: boolean;
1611
1622
  };
1612
1623
  }) | ({
1613
1624
  type: "Number";
@@ -1682,56 +1693,11 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1682
1693
  placeholder?: string;
1683
1694
  default?: string;
1684
1695
  };
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
- };
1730
1696
  });
1731
1697
  };
1732
1698
  };
1733
1699
  }) | ({
1734
- type: "Slices" | "Choice";
1700
+ type: "Choice" | "Slices";
1735
1701
  } & {
1736
1702
  fieldset?: string | null | undefined;
1737
1703
  config?: {
@@ -1744,9 +1710,16 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1744
1710
  })[];
1745
1711
  } | null;
1746
1712
  choices?: {
1747
- [x: string]: {
1748
- type: "SharedSlice";
1749
- } | ({
1713
+ [x: string]: ({
1714
+ type: "Boolean";
1715
+ } & {
1716
+ config?: {
1717
+ label?: string | null | undefined;
1718
+ default_value?: boolean;
1719
+ placeholder_true?: string;
1720
+ placeholder_false?: string;
1721
+ };
1722
+ }) | ({
1750
1723
  type: "Color";
1751
1724
  } & {
1752
1725
  fieldset?: string | null | undefined;
@@ -1755,13 +1728,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1755
1728
  placeholder?: string;
1756
1729
  };
1757
1730
  }) | ({
1758
- type: "Boolean";
1731
+ type: "Date";
1759
1732
  } & {
1733
+ fieldset?: string | null | undefined;
1760
1734
  config?: {
1761
1735
  label?: string | null | undefined;
1762
- default_value?: boolean;
1763
- placeholder_true?: string;
1764
- placeholder_false?: string;
1736
+ placeholder?: string;
1737
+ default?: string;
1765
1738
  };
1766
1739
  }) | ({
1767
1740
  type: "Embed";
@@ -1780,13 +1753,45 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1780
1753
  label?: string | null | undefined;
1781
1754
  };
1782
1755
  }) | ({
1783
- type: "Date";
1756
+ type: "Image";
1784
1757
  } & {
1785
1758
  fieldset?: string | null | undefined;
1786
1759
  config?: {
1787
1760
  label?: string | null | undefined;
1788
1761
  placeholder?: string;
1789
- default?: string;
1762
+ constraint?: {
1763
+ width?: number | null;
1764
+ height?: number | null;
1765
+ };
1766
+ thumbnails?: readonly ({
1767
+ name: string;
1768
+ } & {
1769
+ width?: number | null;
1770
+ height?: number | null;
1771
+ })[];
1772
+ };
1773
+ }) | ({
1774
+ type: "IntegrationFields";
1775
+ } & {
1776
+ fieldset?: string | null | undefined;
1777
+ config?: {
1778
+ label?: string | null | undefined;
1779
+ placeholder?: string;
1780
+ catalog?: string;
1781
+ };
1782
+ }) | ({
1783
+ type: "Link";
1784
+ } & {
1785
+ fieldset?: string | null | undefined;
1786
+ config?: {
1787
+ label?: string | null | undefined;
1788
+ useAsTitle?: boolean;
1789
+ placeholder?: string;
1790
+ select?: "media" | "document" | "web" | null;
1791
+ customtypes?: readonly string[];
1792
+ masks?: readonly string[];
1793
+ tags?: readonly string[];
1794
+ allowTargetBlank?: boolean;
1790
1795
  };
1791
1796
  }) | ({
1792
1797
  type: "Number";
@@ -1861,51 +1866,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1861
1866
  placeholder?: string;
1862
1867
  default?: string;
1863
1868
  };
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
- };
1909
1869
  }) | ({
1910
1870
  type: "Group";
1911
1871
  } & {
@@ -1917,6 +1877,15 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1917
1877
  repeat?: boolean;
1918
1878
  fields?: {
1919
1879
  [x: string]: ({
1880
+ type: "Boolean";
1881
+ } & {
1882
+ config?: {
1883
+ label?: string | null | undefined;
1884
+ default_value?: boolean;
1885
+ placeholder_true?: string;
1886
+ placeholder_false?: string;
1887
+ };
1888
+ }) | ({
1920
1889
  type: "Color";
1921
1890
  } & {
1922
1891
  fieldset?: string | null | undefined;
@@ -1925,13 +1894,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1925
1894
  placeholder?: string;
1926
1895
  };
1927
1896
  }) | ({
1928
- type: "Boolean";
1897
+ type: "Date";
1929
1898
  } & {
1899
+ fieldset?: string | null | undefined;
1930
1900
  config?: {
1931
1901
  label?: string | null | undefined;
1932
- default_value?: boolean;
1933
- placeholder_true?: string;
1934
- placeholder_false?: string;
1902
+ placeholder?: string;
1903
+ default?: string;
1935
1904
  };
1936
1905
  }) | ({
1937
1906
  type: "Embed";
@@ -1950,13 +1919,45 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1950
1919
  label?: string | null | undefined;
1951
1920
  };
1952
1921
  }) | ({
1953
- type: "Date";
1922
+ type: "Image";
1954
1923
  } & {
1955
1924
  fieldset?: string | null | undefined;
1956
1925
  config?: {
1957
1926
  label?: string | null | undefined;
1958
1927
  placeholder?: string;
1959
- default?: string;
1928
+ constraint?: {
1929
+ width?: number | null;
1930
+ height?: number | null;
1931
+ };
1932
+ thumbnails?: readonly ({
1933
+ name: string;
1934
+ } & {
1935
+ width?: number | null;
1936
+ height?: number | null;
1937
+ })[];
1938
+ };
1939
+ }) | ({
1940
+ type: "IntegrationFields";
1941
+ } & {
1942
+ fieldset?: string | null | undefined;
1943
+ config?: {
1944
+ label?: string | null | undefined;
1945
+ placeholder?: string;
1946
+ catalog?: string;
1947
+ };
1948
+ }) | ({
1949
+ type: "Link";
1950
+ } & {
1951
+ fieldset?: string | null | undefined;
1952
+ config?: {
1953
+ label?: string | null | undefined;
1954
+ useAsTitle?: boolean;
1955
+ placeholder?: string;
1956
+ select?: "media" | "document" | "web" | null;
1957
+ customtypes?: readonly string[];
1958
+ masks?: readonly string[];
1959
+ tags?: readonly string[];
1960
+ allowTargetBlank?: boolean;
1960
1961
  };
1961
1962
  }) | ({
1962
1963
  type: "Number";
@@ -2031,51 +2032,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2031
2032
  placeholder?: string;
2032
2033
  default?: string;
2033
2034
  };
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
- };
2079
2035
  });
2080
2036
  };
2081
2037
  };
@@ -2088,6 +2044,15 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2088
2044
  display?: string;
2089
2045
  "non-repeat"?: {
2090
2046
  [x: string]: ({
2047
+ type: "Boolean";
2048
+ } & {
2049
+ config?: {
2050
+ label?: string | null | undefined;
2051
+ default_value?: boolean;
2052
+ placeholder_true?: string;
2053
+ placeholder_false?: string;
2054
+ };
2055
+ }) | ({
2091
2056
  type: "Color";
2092
2057
  } & {
2093
2058
  fieldset?: string | null | undefined;
@@ -2096,13 +2061,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2096
2061
  placeholder?: string;
2097
2062
  };
2098
2063
  }) | ({
2099
- type: "Boolean";
2064
+ type: "Date";
2100
2065
  } & {
2066
+ fieldset?: string | null | undefined;
2101
2067
  config?: {
2102
2068
  label?: string | null | undefined;
2103
- default_value?: boolean;
2104
- placeholder_true?: string;
2105
- placeholder_false?: string;
2069
+ placeholder?: string;
2070
+ default?: string;
2106
2071
  };
2107
2072
  }) | ({
2108
2073
  type: "Embed";
@@ -2121,13 +2086,45 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2121
2086
  label?: string | null | undefined;
2122
2087
  };
2123
2088
  }) | ({
2124
- type: "Date";
2089
+ type: "Image";
2125
2090
  } & {
2126
2091
  fieldset?: string | null | undefined;
2127
2092
  config?: {
2128
2093
  label?: string | null | undefined;
2129
2094
  placeholder?: string;
2130
- default?: string;
2095
+ constraint?: {
2096
+ width?: number | null;
2097
+ height?: number | null;
2098
+ };
2099
+ thumbnails?: readonly ({
2100
+ name: string;
2101
+ } & {
2102
+ width?: number | null;
2103
+ height?: number | null;
2104
+ })[];
2105
+ };
2106
+ }) | ({
2107
+ type: "IntegrationFields";
2108
+ } & {
2109
+ fieldset?: string | null | undefined;
2110
+ config?: {
2111
+ label?: string | null | undefined;
2112
+ placeholder?: string;
2113
+ catalog?: string;
2114
+ };
2115
+ }) | ({
2116
+ type: "Link";
2117
+ } & {
2118
+ fieldset?: string | null | undefined;
2119
+ config?: {
2120
+ label?: string | null | undefined;
2121
+ useAsTitle?: boolean;
2122
+ placeholder?: string;
2123
+ select?: "media" | "document" | "web" | null;
2124
+ customtypes?: readonly string[];
2125
+ masks?: readonly string[];
2126
+ tags?: readonly string[];
2127
+ allowTargetBlank?: boolean;
2131
2128
  };
2132
2129
  }) | ({
2133
2130
  type: "Number";
@@ -2202,95 +2199,91 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2202
2199
  placeholder?: string;
2203
2200
  default?: string;
2204
2201
  };
2205
- }) | ({
2206
- type: "Link";
2202
+ });
2203
+ };
2204
+ repeat?: {
2205
+ [x: string]: ({
2206
+ type: "Boolean";
2207
2207
  } & {
2208
- fieldset?: string | null | undefined;
2209
2208
  config?: {
2210
2209
  label?: string | null | undefined;
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;
2210
+ default_value?: boolean;
2211
+ placeholder_true?: string;
2212
+ placeholder_false?: string;
2222
2213
  };
2223
2214
  }) | ({
2224
- type: "Image";
2215
+ type: "Color";
2225
2216
  } & {
2226
2217
  fieldset?: string | null | undefined;
2227
2218
  config?: {
2228
2219
  label?: string | null | undefined;
2229
2220
  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
- })[];
2240
2221
  };
2241
2222
  }) | ({
2242
- type: "IntegrationFields";
2223
+ type: "Date";
2243
2224
  } & {
2244
2225
  fieldset?: string | null | undefined;
2245
2226
  config?: {
2246
2227
  label?: string | null | undefined;
2247
2228
  placeholder?: string;
2248
- catalog?: string;
2229
+ default?: string;
2249
2230
  };
2250
- });
2251
- };
2252
- repeat?: {
2253
- [x: string]: ({
2254
- type: "Color";
2231
+ }) | ({
2232
+ type: "Embed";
2255
2233
  } & {
2256
2234
  fieldset?: string | null | undefined;
2257
2235
  config?: {
2258
2236
  label?: string | null | undefined;
2259
2237
  placeholder?: string;
2238
+ useAsTitle?: boolean;
2260
2239
  };
2261
2240
  }) | ({
2262
- type: "Boolean";
2241
+ type: "GeoPoint";
2263
2242
  } & {
2243
+ fieldset?: string | null | undefined;
2264
2244
  config?: {
2265
2245
  label?: string | null | undefined;
2266
- default_value?: boolean;
2267
- placeholder_true?: string;
2268
- placeholder_false?: string;
2269
2246
  };
2270
2247
  }) | ({
2271
- type: "Embed";
2248
+ type: "Image";
2272
2249
  } & {
2273
2250
  fieldset?: string | null | undefined;
2274
2251
  config?: {
2275
2252
  label?: string | null | undefined;
2276
2253
  placeholder?: string;
2277
- useAsTitle?: boolean;
2254
+ constraint?: {
2255
+ width?: number | null;
2256
+ height?: number | null;
2257
+ };
2258
+ thumbnails?: readonly ({
2259
+ name: string;
2260
+ } & {
2261
+ width?: number | null;
2262
+ height?: number | null;
2263
+ })[];
2278
2264
  };
2279
2265
  }) | ({
2280
- type: "GeoPoint";
2266
+ type: "IntegrationFields";
2281
2267
  } & {
2282
2268
  fieldset?: string | null | undefined;
2283
2269
  config?: {
2284
2270
  label?: string | null | undefined;
2271
+ placeholder?: string;
2272
+ catalog?: string;
2285
2273
  };
2286
2274
  }) | ({
2287
- type: "Date";
2275
+ type: "Link";
2288
2276
  } & {
2289
2277
  fieldset?: string | null | undefined;
2290
2278
  config?: {
2291
2279
  label?: string | null | undefined;
2280
+ useAsTitle?: boolean;
2292
2281
  placeholder?: string;
2293
- default?: string;
2282
+ select?: "media" | "document" | "web" | null;
2283
+ customtypes?: readonly string[];
2284
+ masks?: readonly string[];
2285
+ tags?: readonly string[];
2286
+ allowTargetBlank?: boolean;
2294
2287
  };
2295
2288
  }) | ({
2296
2289
  type: "Number";
@@ -2365,57 +2358,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2365
2358
  placeholder?: string;
2366
2359
  default?: string;
2367
2360
  };
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
- };
2413
2361
  });
2414
2362
  };
2415
2363
  config?: {
2416
2364
  label?: string | null | undefined;
2417
2365
  };
2418
- });
2366
+ }) | {
2367
+ type: "SharedSlice";
2368
+ };
2419
2369
  };
2420
2370
  };
2421
2371
  }) | ({
@@ -2440,5 +2390,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2440
2390
  export declare type CustomType = t.TypeOf<typeof CustomType>;
2441
2391
  export declare function flattenWidgets(customType: CustomType): Array<[string, DynamicWidget]>;
2442
2392
  export declare function toStatic(customType: CustomType, sharedSlices: Map<string, SharedSlice>): StaticCustomType;
2393
+ export declare function validateSlices(customType: CustomType, sharedSlices: Map<string, SharedSlice>): Either<CustomTypeSlicesError, CustomType>;
2394
+ export declare function collectWidgets(customType: CustomType, f: (ref: string, widget: DynamicWidget) => DynamicWidget | undefined): CustomType;
2443
2395
  export declare function filterMissingSharedSlices(customType: CustomType, sharedSlices: Map<string, SharedSlice>): CustomType;
2444
- export declare function traverseCustomType(customType: CustomType, f: TraverseFn): CustomType;
2396
+ export {};