@prismicio/types-internal 0.3.0 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/lib/customtypes/CustomType.d.ts +309 -311
  2. package/lib/customtypes/Section.d.ts +309 -309
  3. package/lib/customtypes/widgets/Group.d.ts +22 -23
  4. package/lib/customtypes/widgets/UID.d.ts +1 -2
  5. package/lib/customtypes/widgets/Widget.d.ts +353 -354
  6. package/lib/customtypes/widgets/WidgetTypes.d.ts +21 -21
  7. package/lib/customtypes/widgets/WidgetTypes.js +21 -22
  8. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +1 -2
  9. package/lib/customtypes/widgets/nestable/Color.d.ts +1 -2
  10. package/lib/customtypes/widgets/nestable/Date.d.ts +1 -2
  11. package/lib/customtypes/widgets/nestable/Embed.d.ts +1 -2
  12. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +1 -2
  13. package/lib/customtypes/widgets/nestable/Image.d.ts +2 -3
  14. package/lib/customtypes/widgets/nestable/Image.js +1 -1
  15. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +1 -2
  16. package/lib/customtypes/widgets/nestable/Link.d.ts +4 -5
  17. package/lib/customtypes/widgets/nestable/Link.js +1 -1
  18. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +21 -21
  19. package/lib/customtypes/widgets/nestable/Number.d.ts +1 -2
  20. package/lib/customtypes/widgets/nestable/Range.d.ts +1 -2
  21. package/lib/customtypes/widgets/nestable/RichText.d.ts +21 -22
  22. package/lib/customtypes/widgets/nestable/RichText.js +36 -37
  23. package/lib/customtypes/widgets/nestable/Select.d.ts +2 -3
  24. package/lib/customtypes/widgets/nestable/Select.js +1 -1
  25. package/lib/customtypes/widgets/nestable/Separator.d.ts +1 -2
  26. package/lib/customtypes/widgets/nestable/Text.d.ts +1 -2
  27. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +1 -2
  28. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +43 -44
  29. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +43 -43
  30. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +86 -87
  31. package/lib/customtypes/widgets/slices/SharedSlice.js +1 -1
  32. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -2
  33. package/lib/customtypes/widgets/slices/Slices.d.ts +529 -531
  34. package/lib/customtypes/widgets/slices/Slices.js +1 -1
  35. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +4 -4
  36. package/lib/customtypes/widgets/slices/SlicesTypes.js +4 -5
  37. package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +16 -17
  38. package/lib/documents/widgets/nestable/StructuredTextContent/Block.js +1 -1
  39. package/package.json +1 -1
  40. package/src/customtypes/widgets/WidgetTypes.ts +21 -21
  41. package/src/customtypes/widgets/nestable/Image.ts +1 -1
  42. package/src/customtypes/widgets/nestable/Link.ts +3 -3
  43. package/src/customtypes/widgets/nestable/RichText.ts +34 -34
  44. package/src/customtypes/widgets/nestable/Select.ts +3 -1
  45. package/src/customtypes/widgets/slices/SharedSlice.ts +1 -1
  46. package/src/customtypes/widgets/slices/Slices.ts +1 -1
  47. package/src/customtypes/widgets/slices/SlicesTypes.ts +4 -4
  48. package/src/documents/widgets/nestable/StructuredTextContent/Block.ts +1 -1
@@ -1,9 +1,7 @@
1
1
  import { Either } from "fp-ts/lib/Either";
2
2
  import * as t from "io-ts";
3
3
  import type { SharedSlice } from "./widgets/slices/SharedSlice";
4
- import SlicesTypes from "./widgets/slices/SlicesTypes";
5
4
  import type { DynamicWidget } from "./widgets/Widget";
6
- import WidgetTypes from "./widgets/WidgetTypes";
7
5
  declare class CustomTypeSlicesError extends Error {
8
6
  slices: Array<string>;
9
7
  message: string;
@@ -16,7 +14,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
16
14
  repeatable: t.BooleanC;
17
15
  json: t.RecordC<t.StringC, t.Type<{
18
16
  [x: string]: ({
19
- type: WidgetTypes.BooleanField;
17
+ type: "Boolean";
20
18
  } & {
21
19
  config?: {
22
20
  label?: string | null | undefined;
@@ -25,7 +23,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
25
23
  placeholder_false?: string;
26
24
  };
27
25
  }) | ({
28
- type: WidgetTypes.Color;
26
+ type: "Color";
29
27
  } & {
30
28
  fieldset?: string | null | undefined;
31
29
  config?: {
@@ -33,7 +31,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
33
31
  placeholder?: string;
34
32
  };
35
33
  }) | ({
36
- type: WidgetTypes.Date;
34
+ type: "Date";
37
35
  } & {
38
36
  fieldset?: string | null | undefined;
39
37
  config?: {
@@ -42,7 +40,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
42
40
  default?: string;
43
41
  };
44
42
  }) | ({
45
- type: WidgetTypes.Embed;
43
+ type: "Embed";
46
44
  } & {
47
45
  fieldset?: string | null | undefined;
48
46
  config?: {
@@ -51,14 +49,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
51
49
  useAsTitle?: boolean;
52
50
  };
53
51
  }) | ({
54
- type: WidgetTypes.GeoPoint;
52
+ type: "GeoPoint";
55
53
  } & {
56
54
  fieldset?: string | null | undefined;
57
55
  config?: {
58
56
  label?: string | null | undefined;
59
57
  };
60
58
  }) | ({
61
- type: WidgetTypes.Image;
59
+ type: "Image";
62
60
  } & {
63
61
  fieldset?: string | null | undefined;
64
62
  config?: {
@@ -68,7 +66,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
68
66
  width?: number | null;
69
67
  height?: number | null;
70
68
  };
71
- thumbnails?: ({
69
+ thumbnails?: readonly ({
72
70
  name: string;
73
71
  } & {
74
72
  width?: number | null;
@@ -76,7 +74,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
76
74
  })[];
77
75
  };
78
76
  }) | ({
79
- type: WidgetTypes.IntegrationField;
77
+ type: "IntegrationFields";
80
78
  } & {
81
79
  fieldset?: string | null | undefined;
82
80
  config?: {
@@ -85,7 +83,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
85
83
  catalog?: string;
86
84
  };
87
85
  }) | ({
88
- type: WidgetTypes.Link;
86
+ type: "Link";
89
87
  } & {
90
88
  fieldset?: string | null | undefined;
91
89
  config?: {
@@ -93,13 +91,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
93
91
  useAsTitle?: boolean;
94
92
  placeholder?: string;
95
93
  select?: "media" | "document" | "web" | null;
96
- customtypes?: string[];
97
- masks?: string[];
98
- tags?: string[];
94
+ customtypes?: readonly string[];
95
+ masks?: readonly string[];
96
+ tags?: readonly string[];
99
97
  allowTargetBlank?: boolean;
100
98
  };
101
99
  }) | ({
102
- type: WidgetTypes.Number;
100
+ type: "Number";
103
101
  } & {
104
102
  fieldset?: string | null | undefined;
105
103
  config?: {
@@ -110,7 +108,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
110
108
  step?: number;
111
109
  };
112
110
  }) | ({
113
- type: WidgetTypes.Range;
111
+ type: "Range";
114
112
  } & {
115
113
  fieldset?: string | null | undefined;
116
114
  config?: {
@@ -121,7 +119,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
121
119
  step?: number;
122
120
  };
123
121
  }) | ({
124
- type: WidgetTypes.RichText;
122
+ type: "StructuredText";
125
123
  } & {
126
124
  fieldset?: string | null | undefined;
127
125
  config?: {
@@ -134,27 +132,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
134
132
  width?: number | null;
135
133
  height?: number | null;
136
134
  };
137
- labels?: string[];
135
+ labels?: readonly string[];
138
136
  allowTargetBlank?: boolean;
139
137
  };
140
138
  }) | ({
141
- type: WidgetTypes.Select;
139
+ type: "Select";
142
140
  } & {
143
141
  fieldset?: string | null | undefined;
144
142
  config?: {
145
143
  label?: string | null | undefined;
146
144
  placeholder?: string;
147
145
  default_value?: string;
148
- options?: string[];
146
+ options?: readonly string[];
149
147
  };
150
148
  }) | ({
151
- type: WidgetTypes.Separator;
149
+ type: "Separator";
152
150
  } & {
153
151
  config?: {
154
152
  label?: string | null | undefined;
155
153
  };
156
154
  }) | ({
157
- type: WidgetTypes.Text;
155
+ type: "Text";
158
156
  } & {
159
157
  fieldset?: string | null | undefined;
160
158
  config?: {
@@ -163,7 +161,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
163
161
  placeholder?: string;
164
162
  };
165
163
  }) | ({
166
- type: WidgetTypes.Timestamp;
164
+ type: "Timestamp";
167
165
  } & {
168
166
  fieldset?: string | null | undefined;
169
167
  config?: {
@@ -172,7 +170,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
172
170
  default?: string;
173
171
  };
174
172
  }) | ({
175
- type: WidgetTypes.Group;
173
+ type: "Group";
176
174
  } & {
177
175
  fieldset?: string | null | undefined;
178
176
  icon?: string;
@@ -182,7 +180,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
182
180
  repeat?: boolean;
183
181
  fields?: {
184
182
  [x: string]: ({
185
- type: WidgetTypes.BooleanField;
183
+ type: "Boolean";
186
184
  } & {
187
185
  config?: {
188
186
  label?: string | null | undefined;
@@ -191,7 +189,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
191
189
  placeholder_false?: string;
192
190
  };
193
191
  }) | ({
194
- type: WidgetTypes.Color;
192
+ type: "Color";
195
193
  } & {
196
194
  fieldset?: string | null | undefined;
197
195
  config?: {
@@ -199,7 +197,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
199
197
  placeholder?: string;
200
198
  };
201
199
  }) | ({
202
- type: WidgetTypes.Date;
200
+ type: "Date";
203
201
  } & {
204
202
  fieldset?: string | null | undefined;
205
203
  config?: {
@@ -208,7 +206,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
208
206
  default?: string;
209
207
  };
210
208
  }) | ({
211
- type: WidgetTypes.Embed;
209
+ type: "Embed";
212
210
  } & {
213
211
  fieldset?: string | null | undefined;
214
212
  config?: {
@@ -217,14 +215,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
217
215
  useAsTitle?: boolean;
218
216
  };
219
217
  }) | ({
220
- type: WidgetTypes.GeoPoint;
218
+ type: "GeoPoint";
221
219
  } & {
222
220
  fieldset?: string | null | undefined;
223
221
  config?: {
224
222
  label?: string | null | undefined;
225
223
  };
226
224
  }) | ({
227
- type: WidgetTypes.Image;
225
+ type: "Image";
228
226
  } & {
229
227
  fieldset?: string | null | undefined;
230
228
  config?: {
@@ -234,7 +232,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
234
232
  width?: number | null;
235
233
  height?: number | null;
236
234
  };
237
- thumbnails?: ({
235
+ thumbnails?: readonly ({
238
236
  name: string;
239
237
  } & {
240
238
  width?: number | null;
@@ -242,7 +240,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
242
240
  })[];
243
241
  };
244
242
  }) | ({
245
- type: WidgetTypes.IntegrationField;
243
+ type: "IntegrationFields";
246
244
  } & {
247
245
  fieldset?: string | null | undefined;
248
246
  config?: {
@@ -251,7 +249,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
251
249
  catalog?: string;
252
250
  };
253
251
  }) | ({
254
- type: WidgetTypes.Link;
252
+ type: "Link";
255
253
  } & {
256
254
  fieldset?: string | null | undefined;
257
255
  config?: {
@@ -259,13 +257,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
259
257
  useAsTitle?: boolean;
260
258
  placeholder?: string;
261
259
  select?: "media" | "document" | "web" | null;
262
- customtypes?: string[];
263
- masks?: string[];
264
- tags?: string[];
260
+ customtypes?: readonly string[];
261
+ masks?: readonly string[];
262
+ tags?: readonly string[];
265
263
  allowTargetBlank?: boolean;
266
264
  };
267
265
  }) | ({
268
- type: WidgetTypes.Number;
266
+ type: "Number";
269
267
  } & {
270
268
  fieldset?: string | null | undefined;
271
269
  config?: {
@@ -276,7 +274,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
276
274
  step?: number;
277
275
  };
278
276
  }) | ({
279
- type: WidgetTypes.Range;
277
+ type: "Range";
280
278
  } & {
281
279
  fieldset?: string | null | undefined;
282
280
  config?: {
@@ -287,7 +285,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
287
285
  step?: number;
288
286
  };
289
287
  }) | ({
290
- type: WidgetTypes.RichText;
288
+ type: "StructuredText";
291
289
  } & {
292
290
  fieldset?: string | null | undefined;
293
291
  config?: {
@@ -300,27 +298,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
300
298
  width?: number | null;
301
299
  height?: number | null;
302
300
  };
303
- labels?: string[];
301
+ labels?: readonly string[];
304
302
  allowTargetBlank?: boolean;
305
303
  };
306
304
  }) | ({
307
- type: WidgetTypes.Select;
305
+ type: "Select";
308
306
  } & {
309
307
  fieldset?: string | null | undefined;
310
308
  config?: {
311
309
  label?: string | null | undefined;
312
310
  placeholder?: string;
313
311
  default_value?: string;
314
- options?: string[];
312
+ options?: readonly string[];
315
313
  };
316
314
  }) | ({
317
- type: WidgetTypes.Separator;
315
+ type: "Separator";
318
316
  } & {
319
317
  config?: {
320
318
  label?: string | null | undefined;
321
319
  };
322
320
  }) | ({
323
- type: WidgetTypes.Text;
321
+ type: "Text";
324
322
  } & {
325
323
  fieldset?: string | null | undefined;
326
324
  config?: {
@@ -329,7 +327,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
329
327
  placeholder?: string;
330
328
  };
331
329
  }) | ({
332
- type: WidgetTypes.Timestamp;
330
+ type: "Timestamp";
333
331
  } & {
334
332
  fieldset?: string | null | undefined;
335
333
  config?: {
@@ -341,13 +339,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
341
339
  };
342
340
  };
343
341
  }) | ({
344
- type: WidgetTypes.Slices | WidgetTypes.LegacySlices;
342
+ type: "Slices" | "Choice";
345
343
  } & {
346
344
  fieldset?: string | null | undefined;
347
345
  config?: {
348
346
  label?: string | null | undefined;
349
347
  labels?: {
350
- [x: string]: ({
348
+ [x: string]: readonly ({
351
349
  name: string;
352
350
  } & {
353
351
  display?: string;
@@ -355,7 +353,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
355
353
  } | null;
356
354
  choices?: {
357
355
  [x: string]: ({
358
- type: WidgetTypes.BooleanField;
356
+ type: "Boolean";
359
357
  } & {
360
358
  config?: {
361
359
  label?: string | null | undefined;
@@ -364,7 +362,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
364
362
  placeholder_false?: string;
365
363
  };
366
364
  }) | ({
367
- type: WidgetTypes.Color;
365
+ type: "Color";
368
366
  } & {
369
367
  fieldset?: string | null | undefined;
370
368
  config?: {
@@ -372,7 +370,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
372
370
  placeholder?: string;
373
371
  };
374
372
  }) | ({
375
- type: WidgetTypes.Date;
373
+ type: "Date";
376
374
  } & {
377
375
  fieldset?: string | null | undefined;
378
376
  config?: {
@@ -381,7 +379,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
381
379
  default?: string;
382
380
  };
383
381
  }) | ({
384
- type: WidgetTypes.Embed;
382
+ type: "Embed";
385
383
  } & {
386
384
  fieldset?: string | null | undefined;
387
385
  config?: {
@@ -390,14 +388,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
390
388
  useAsTitle?: boolean;
391
389
  };
392
390
  }) | ({
393
- type: WidgetTypes.GeoPoint;
391
+ type: "GeoPoint";
394
392
  } & {
395
393
  fieldset?: string | null | undefined;
396
394
  config?: {
397
395
  label?: string | null | undefined;
398
396
  };
399
397
  }) | ({
400
- type: WidgetTypes.Image;
398
+ type: "Image";
401
399
  } & {
402
400
  fieldset?: string | null | undefined;
403
401
  config?: {
@@ -407,7 +405,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
407
405
  width?: number | null;
408
406
  height?: number | null;
409
407
  };
410
- thumbnails?: ({
408
+ thumbnails?: readonly ({
411
409
  name: string;
412
410
  } & {
413
411
  width?: number | null;
@@ -415,7 +413,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
415
413
  })[];
416
414
  };
417
415
  }) | ({
418
- type: WidgetTypes.IntegrationField;
416
+ type: "IntegrationFields";
419
417
  } & {
420
418
  fieldset?: string | null | undefined;
421
419
  config?: {
@@ -424,7 +422,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
424
422
  catalog?: string;
425
423
  };
426
424
  }) | ({
427
- type: WidgetTypes.Link;
425
+ type: "Link";
428
426
  } & {
429
427
  fieldset?: string | null | undefined;
430
428
  config?: {
@@ -432,13 +430,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
432
430
  useAsTitle?: boolean;
433
431
  placeholder?: string;
434
432
  select?: "media" | "document" | "web" | null;
435
- customtypes?: string[];
436
- masks?: string[];
437
- tags?: string[];
433
+ customtypes?: readonly string[];
434
+ masks?: readonly string[];
435
+ tags?: readonly string[];
438
436
  allowTargetBlank?: boolean;
439
437
  };
440
438
  }) | ({
441
- type: WidgetTypes.Number;
439
+ type: "Number";
442
440
  } & {
443
441
  fieldset?: string | null | undefined;
444
442
  config?: {
@@ -449,7 +447,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
449
447
  step?: number;
450
448
  };
451
449
  }) | ({
452
- type: WidgetTypes.Range;
450
+ type: "Range";
453
451
  } & {
454
452
  fieldset?: string | null | undefined;
455
453
  config?: {
@@ -460,7 +458,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
460
458
  step?: number;
461
459
  };
462
460
  }) | ({
463
- type: WidgetTypes.RichText;
461
+ type: "StructuredText";
464
462
  } & {
465
463
  fieldset?: string | null | undefined;
466
464
  config?: {
@@ -473,27 +471,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
473
471
  width?: number | null;
474
472
  height?: number | null;
475
473
  };
476
- labels?: string[];
474
+ labels?: readonly string[];
477
475
  allowTargetBlank?: boolean;
478
476
  };
479
477
  }) | ({
480
- type: WidgetTypes.Select;
478
+ type: "Select";
481
479
  } & {
482
480
  fieldset?: string | null | undefined;
483
481
  config?: {
484
482
  label?: string | null | undefined;
485
483
  placeholder?: string;
486
484
  default_value?: string;
487
- options?: string[];
485
+ options?: readonly string[];
488
486
  };
489
487
  }) | ({
490
- type: WidgetTypes.Separator;
488
+ type: "Separator";
491
489
  } & {
492
490
  config?: {
493
491
  label?: string | null | undefined;
494
492
  };
495
493
  }) | ({
496
- type: WidgetTypes.Text;
494
+ type: "Text";
497
495
  } & {
498
496
  fieldset?: string | null | undefined;
499
497
  config?: {
@@ -502,7 +500,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
502
500
  placeholder?: string;
503
501
  };
504
502
  }) | ({
505
- type: WidgetTypes.Timestamp;
503
+ type: "Timestamp";
506
504
  } & {
507
505
  fieldset?: string | null | undefined;
508
506
  config?: {
@@ -512,9 +510,9 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
512
510
  };
513
511
  }) | ({
514
512
  id: string;
515
- type: SlicesTypes.SharedSlice;
513
+ type: "SharedSlice";
516
514
  name: string;
517
- variations: ({
515
+ variations: readonly ({
518
516
  id: string;
519
517
  name: string;
520
518
  description: string;
@@ -525,7 +523,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
525
523
  display?: string;
526
524
  primary?: {
527
525
  [x: string]: ({
528
- type: WidgetTypes.BooleanField;
526
+ type: "Boolean";
529
527
  } & {
530
528
  config?: {
531
529
  label?: string | null | undefined;
@@ -534,7 +532,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
534
532
  placeholder_false?: string;
535
533
  };
536
534
  }) | ({
537
- type: WidgetTypes.Color;
535
+ type: "Color";
538
536
  } & {
539
537
  fieldset?: string | null | undefined;
540
538
  config?: {
@@ -542,7 +540,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
542
540
  placeholder?: string;
543
541
  };
544
542
  }) | ({
545
- type: WidgetTypes.Date;
543
+ type: "Date";
546
544
  } & {
547
545
  fieldset?: string | null | undefined;
548
546
  config?: {
@@ -551,7 +549,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
551
549
  default?: string;
552
550
  };
553
551
  }) | ({
554
- type: WidgetTypes.Embed;
552
+ type: "Embed";
555
553
  } & {
556
554
  fieldset?: string | null | undefined;
557
555
  config?: {
@@ -560,14 +558,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
560
558
  useAsTitle?: boolean;
561
559
  };
562
560
  }) | ({
563
- type: WidgetTypes.GeoPoint;
561
+ type: "GeoPoint";
564
562
  } & {
565
563
  fieldset?: string | null | undefined;
566
564
  config?: {
567
565
  label?: string | null | undefined;
568
566
  };
569
567
  }) | ({
570
- type: WidgetTypes.Image;
568
+ type: "Image";
571
569
  } & {
572
570
  fieldset?: string | null | undefined;
573
571
  config?: {
@@ -577,7 +575,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
577
575
  width?: number | null;
578
576
  height?: number | null;
579
577
  };
580
- thumbnails?: ({
578
+ thumbnails?: readonly ({
581
579
  name: string;
582
580
  } & {
583
581
  width?: number | null;
@@ -585,7 +583,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
585
583
  })[];
586
584
  };
587
585
  }) | ({
588
- type: WidgetTypes.IntegrationField;
586
+ type: "IntegrationFields";
589
587
  } & {
590
588
  fieldset?: string | null | undefined;
591
589
  config?: {
@@ -594,7 +592,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
594
592
  catalog?: string;
595
593
  };
596
594
  }) | ({
597
- type: WidgetTypes.Link;
595
+ type: "Link";
598
596
  } & {
599
597
  fieldset?: string | null | undefined;
600
598
  config?: {
@@ -602,13 +600,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
602
600
  useAsTitle?: boolean;
603
601
  placeholder?: string;
604
602
  select?: "media" | "document" | "web" | null;
605
- customtypes?: string[];
606
- masks?: string[];
607
- tags?: string[];
603
+ customtypes?: readonly string[];
604
+ masks?: readonly string[];
605
+ tags?: readonly string[];
608
606
  allowTargetBlank?: boolean;
609
607
  };
610
608
  }) | ({
611
- type: WidgetTypes.Number;
609
+ type: "Number";
612
610
  } & {
613
611
  fieldset?: string | null | undefined;
614
612
  config?: {
@@ -619,7 +617,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
619
617
  step?: number;
620
618
  };
621
619
  }) | ({
622
- type: WidgetTypes.Range;
620
+ type: "Range";
623
621
  } & {
624
622
  fieldset?: string | null | undefined;
625
623
  config?: {
@@ -630,7 +628,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
630
628
  step?: number;
631
629
  };
632
630
  }) | ({
633
- type: WidgetTypes.RichText;
631
+ type: "StructuredText";
634
632
  } & {
635
633
  fieldset?: string | null | undefined;
636
634
  config?: {
@@ -643,27 +641,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
643
641
  width?: number | null;
644
642
  height?: number | null;
645
643
  };
646
- labels?: string[];
644
+ labels?: readonly string[];
647
645
  allowTargetBlank?: boolean;
648
646
  };
649
647
  }) | ({
650
- type: WidgetTypes.Select;
648
+ type: "Select";
651
649
  } & {
652
650
  fieldset?: string | null | undefined;
653
651
  config?: {
654
652
  label?: string | null | undefined;
655
653
  placeholder?: string;
656
654
  default_value?: string;
657
- options?: string[];
655
+ options?: readonly string[];
658
656
  };
659
657
  }) | ({
660
- type: WidgetTypes.Separator;
658
+ type: "Separator";
661
659
  } & {
662
660
  config?: {
663
661
  label?: string | null | undefined;
664
662
  };
665
663
  }) | ({
666
- type: WidgetTypes.Text;
664
+ type: "Text";
667
665
  } & {
668
666
  fieldset?: string | null | undefined;
669
667
  config?: {
@@ -672,7 +670,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
672
670
  placeholder?: string;
673
671
  };
674
672
  }) | ({
675
- type: WidgetTypes.Timestamp;
673
+ type: "Timestamp";
676
674
  } & {
677
675
  fieldset?: string | null | undefined;
678
676
  config?: {
@@ -684,7 +682,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
684
682
  };
685
683
  items?: {
686
684
  [x: string]: ({
687
- type: WidgetTypes.BooleanField;
685
+ type: "Boolean";
688
686
  } & {
689
687
  config?: {
690
688
  label?: string | null | undefined;
@@ -693,7 +691,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
693
691
  placeholder_false?: string;
694
692
  };
695
693
  }) | ({
696
- type: WidgetTypes.Color;
694
+ type: "Color";
697
695
  } & {
698
696
  fieldset?: string | null | undefined;
699
697
  config?: {
@@ -701,7 +699,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
701
699
  placeholder?: string;
702
700
  };
703
701
  }) | ({
704
- type: WidgetTypes.Date;
702
+ type: "Date";
705
703
  } & {
706
704
  fieldset?: string | null | undefined;
707
705
  config?: {
@@ -710,7 +708,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
710
708
  default?: string;
711
709
  };
712
710
  }) | ({
713
- type: WidgetTypes.Embed;
711
+ type: "Embed";
714
712
  } & {
715
713
  fieldset?: string | null | undefined;
716
714
  config?: {
@@ -719,14 +717,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
719
717
  useAsTitle?: boolean;
720
718
  };
721
719
  }) | ({
722
- type: WidgetTypes.GeoPoint;
720
+ type: "GeoPoint";
723
721
  } & {
724
722
  fieldset?: string | null | undefined;
725
723
  config?: {
726
724
  label?: string | null | undefined;
727
725
  };
728
726
  }) | ({
729
- type: WidgetTypes.Image;
727
+ type: "Image";
730
728
  } & {
731
729
  fieldset?: string | null | undefined;
732
730
  config?: {
@@ -736,7 +734,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
736
734
  width?: number | null;
737
735
  height?: number | null;
738
736
  };
739
- thumbnails?: ({
737
+ thumbnails?: readonly ({
740
738
  name: string;
741
739
  } & {
742
740
  width?: number | null;
@@ -744,7 +742,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
744
742
  })[];
745
743
  };
746
744
  }) | ({
747
- type: WidgetTypes.IntegrationField;
745
+ type: "IntegrationFields";
748
746
  } & {
749
747
  fieldset?: string | null | undefined;
750
748
  config?: {
@@ -753,7 +751,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
753
751
  catalog?: string;
754
752
  };
755
753
  }) | ({
756
- type: WidgetTypes.Link;
754
+ type: "Link";
757
755
  } & {
758
756
  fieldset?: string | null | undefined;
759
757
  config?: {
@@ -761,13 +759,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
761
759
  useAsTitle?: boolean;
762
760
  placeholder?: string;
763
761
  select?: "media" | "document" | "web" | null;
764
- customtypes?: string[];
765
- masks?: string[];
766
- tags?: string[];
762
+ customtypes?: readonly string[];
763
+ masks?: readonly string[];
764
+ tags?: readonly string[];
767
765
  allowTargetBlank?: boolean;
768
766
  };
769
767
  }) | ({
770
- type: WidgetTypes.Number;
768
+ type: "Number";
771
769
  } & {
772
770
  fieldset?: string | null | undefined;
773
771
  config?: {
@@ -778,7 +776,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
778
776
  step?: number;
779
777
  };
780
778
  }) | ({
781
- type: WidgetTypes.Range;
779
+ type: "Range";
782
780
  } & {
783
781
  fieldset?: string | null | undefined;
784
782
  config?: {
@@ -789,7 +787,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
789
787
  step?: number;
790
788
  };
791
789
  }) | ({
792
- type: WidgetTypes.RichText;
790
+ type: "StructuredText";
793
791
  } & {
794
792
  fieldset?: string | null | undefined;
795
793
  config?: {
@@ -802,27 +800,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
802
800
  width?: number | null;
803
801
  height?: number | null;
804
802
  };
805
- labels?: string[];
803
+ labels?: readonly string[];
806
804
  allowTargetBlank?: boolean;
807
805
  };
808
806
  }) | ({
809
- type: WidgetTypes.Select;
807
+ type: "Select";
810
808
  } & {
811
809
  fieldset?: string | null | undefined;
812
810
  config?: {
813
811
  label?: string | null | undefined;
814
812
  placeholder?: string;
815
813
  default_value?: string;
816
- options?: string[];
814
+ options?: readonly string[];
817
815
  };
818
816
  }) | ({
819
- type: WidgetTypes.Separator;
817
+ type: "Separator";
820
818
  } & {
821
819
  config?: {
822
820
  label?: string | null | undefined;
823
821
  };
824
822
  }) | ({
825
- type: WidgetTypes.Text;
823
+ type: "Text";
826
824
  } & {
827
825
  fieldset?: string | null | undefined;
828
826
  config?: {
@@ -831,7 +829,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
831
829
  placeholder?: string;
832
830
  };
833
831
  }) | ({
834
- type: WidgetTypes.Timestamp;
832
+ type: "Timestamp";
835
833
  } & {
836
834
  fieldset?: string | null | undefined;
837
835
  config?: {
@@ -845,7 +843,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
845
843
  } & {
846
844
  description?: string;
847
845
  }) | ({
848
- type: WidgetTypes.Group;
846
+ type: "Group";
849
847
  } & {
850
848
  fieldset?: string | null | undefined;
851
849
  icon?: string;
@@ -855,7 +853,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
855
853
  repeat?: boolean;
856
854
  fields?: {
857
855
  [x: string]: ({
858
- type: WidgetTypes.BooleanField;
856
+ type: "Boolean";
859
857
  } & {
860
858
  config?: {
861
859
  label?: string | null | undefined;
@@ -864,7 +862,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
864
862
  placeholder_false?: string;
865
863
  };
866
864
  }) | ({
867
- type: WidgetTypes.Color;
865
+ type: "Color";
868
866
  } & {
869
867
  fieldset?: string | null | undefined;
870
868
  config?: {
@@ -872,7 +870,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
872
870
  placeholder?: string;
873
871
  };
874
872
  }) | ({
875
- type: WidgetTypes.Date;
873
+ type: "Date";
876
874
  } & {
877
875
  fieldset?: string | null | undefined;
878
876
  config?: {
@@ -881,7 +879,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
881
879
  default?: string;
882
880
  };
883
881
  }) | ({
884
- type: WidgetTypes.Embed;
882
+ type: "Embed";
885
883
  } & {
886
884
  fieldset?: string | null | undefined;
887
885
  config?: {
@@ -890,14 +888,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
890
888
  useAsTitle?: boolean;
891
889
  };
892
890
  }) | ({
893
- type: WidgetTypes.GeoPoint;
891
+ type: "GeoPoint";
894
892
  } & {
895
893
  fieldset?: string | null | undefined;
896
894
  config?: {
897
895
  label?: string | null | undefined;
898
896
  };
899
897
  }) | ({
900
- type: WidgetTypes.Image;
898
+ type: "Image";
901
899
  } & {
902
900
  fieldset?: string | null | undefined;
903
901
  config?: {
@@ -907,7 +905,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
907
905
  width?: number | null;
908
906
  height?: number | null;
909
907
  };
910
- thumbnails?: ({
908
+ thumbnails?: readonly ({
911
909
  name: string;
912
910
  } & {
913
911
  width?: number | null;
@@ -915,7 +913,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
915
913
  })[];
916
914
  };
917
915
  }) | ({
918
- type: WidgetTypes.IntegrationField;
916
+ type: "IntegrationFields";
919
917
  } & {
920
918
  fieldset?: string | null | undefined;
921
919
  config?: {
@@ -924,7 +922,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
924
922
  catalog?: string;
925
923
  };
926
924
  }) | ({
927
- type: WidgetTypes.Link;
925
+ type: "Link";
928
926
  } & {
929
927
  fieldset?: string | null | undefined;
930
928
  config?: {
@@ -932,13 +930,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
932
930
  useAsTitle?: boolean;
933
931
  placeholder?: string;
934
932
  select?: "media" | "document" | "web" | null;
935
- customtypes?: string[];
936
- masks?: string[];
937
- tags?: string[];
933
+ customtypes?: readonly string[];
934
+ masks?: readonly string[];
935
+ tags?: readonly string[];
938
936
  allowTargetBlank?: boolean;
939
937
  };
940
938
  }) | ({
941
- type: WidgetTypes.Number;
939
+ type: "Number";
942
940
  } & {
943
941
  fieldset?: string | null | undefined;
944
942
  config?: {
@@ -949,7 +947,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
949
947
  step?: number;
950
948
  };
951
949
  }) | ({
952
- type: WidgetTypes.Range;
950
+ type: "Range";
953
951
  } & {
954
952
  fieldset?: string | null | undefined;
955
953
  config?: {
@@ -960,7 +958,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
960
958
  step?: number;
961
959
  };
962
960
  }) | ({
963
- type: WidgetTypes.RichText;
961
+ type: "StructuredText";
964
962
  } & {
965
963
  fieldset?: string | null | undefined;
966
964
  config?: {
@@ -973,27 +971,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
973
971
  width?: number | null;
974
972
  height?: number | null;
975
973
  };
976
- labels?: string[];
974
+ labels?: readonly string[];
977
975
  allowTargetBlank?: boolean;
978
976
  };
979
977
  }) | ({
980
- type: WidgetTypes.Select;
978
+ type: "Select";
981
979
  } & {
982
980
  fieldset?: string | null | undefined;
983
981
  config?: {
984
982
  label?: string | null | undefined;
985
983
  placeholder?: string;
986
984
  default_value?: string;
987
- options?: string[];
985
+ options?: readonly string[];
988
986
  };
989
987
  }) | ({
990
- type: WidgetTypes.Separator;
988
+ type: "Separator";
991
989
  } & {
992
990
  config?: {
993
991
  label?: string | null | undefined;
994
992
  };
995
993
  }) | ({
996
- type: WidgetTypes.Text;
994
+ type: "Text";
997
995
  } & {
998
996
  fieldset?: string | null | undefined;
999
997
  config?: {
@@ -1002,7 +1000,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1002
1000
  placeholder?: string;
1003
1001
  };
1004
1002
  }) | ({
1005
- type: WidgetTypes.Timestamp;
1003
+ type: "Timestamp";
1006
1004
  } & {
1007
1005
  fieldset?: string | null | undefined;
1008
1006
  config?: {
@@ -1014,7 +1012,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1014
1012
  };
1015
1013
  };
1016
1014
  }) | ({
1017
- type: SlicesTypes.Slice;
1015
+ type: "Slice";
1018
1016
  } & {
1019
1017
  fieldset?: string | null | undefined;
1020
1018
  description?: string;
@@ -1022,7 +1020,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1022
1020
  display?: string;
1023
1021
  "non-repeat"?: {
1024
1022
  [x: string]: ({
1025
- type: WidgetTypes.BooleanField;
1023
+ type: "Boolean";
1026
1024
  } & {
1027
1025
  config?: {
1028
1026
  label?: string | null | undefined;
@@ -1031,7 +1029,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1031
1029
  placeholder_false?: string;
1032
1030
  };
1033
1031
  }) | ({
1034
- type: WidgetTypes.Color;
1032
+ type: "Color";
1035
1033
  } & {
1036
1034
  fieldset?: string | null | undefined;
1037
1035
  config?: {
@@ -1039,7 +1037,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1039
1037
  placeholder?: string;
1040
1038
  };
1041
1039
  }) | ({
1042
- type: WidgetTypes.Date;
1040
+ type: "Date";
1043
1041
  } & {
1044
1042
  fieldset?: string | null | undefined;
1045
1043
  config?: {
@@ -1048,7 +1046,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1048
1046
  default?: string;
1049
1047
  };
1050
1048
  }) | ({
1051
- type: WidgetTypes.Embed;
1049
+ type: "Embed";
1052
1050
  } & {
1053
1051
  fieldset?: string | null | undefined;
1054
1052
  config?: {
@@ -1057,14 +1055,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1057
1055
  useAsTitle?: boolean;
1058
1056
  };
1059
1057
  }) | ({
1060
- type: WidgetTypes.GeoPoint;
1058
+ type: "GeoPoint";
1061
1059
  } & {
1062
1060
  fieldset?: string | null | undefined;
1063
1061
  config?: {
1064
1062
  label?: string | null | undefined;
1065
1063
  };
1066
1064
  }) | ({
1067
- type: WidgetTypes.Image;
1065
+ type: "Image";
1068
1066
  } & {
1069
1067
  fieldset?: string | null | undefined;
1070
1068
  config?: {
@@ -1074,7 +1072,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1074
1072
  width?: number | null;
1075
1073
  height?: number | null;
1076
1074
  };
1077
- thumbnails?: ({
1075
+ thumbnails?: readonly ({
1078
1076
  name: string;
1079
1077
  } & {
1080
1078
  width?: number | null;
@@ -1082,7 +1080,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1082
1080
  })[];
1083
1081
  };
1084
1082
  }) | ({
1085
- type: WidgetTypes.IntegrationField;
1083
+ type: "IntegrationFields";
1086
1084
  } & {
1087
1085
  fieldset?: string | null | undefined;
1088
1086
  config?: {
@@ -1091,7 +1089,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1091
1089
  catalog?: string;
1092
1090
  };
1093
1091
  }) | ({
1094
- type: WidgetTypes.Link;
1092
+ type: "Link";
1095
1093
  } & {
1096
1094
  fieldset?: string | null | undefined;
1097
1095
  config?: {
@@ -1099,13 +1097,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1099
1097
  useAsTitle?: boolean;
1100
1098
  placeholder?: string;
1101
1099
  select?: "media" | "document" | "web" | null;
1102
- customtypes?: string[];
1103
- masks?: string[];
1104
- tags?: string[];
1100
+ customtypes?: readonly string[];
1101
+ masks?: readonly string[];
1102
+ tags?: readonly string[];
1105
1103
  allowTargetBlank?: boolean;
1106
1104
  };
1107
1105
  }) | ({
1108
- type: WidgetTypes.Number;
1106
+ type: "Number";
1109
1107
  } & {
1110
1108
  fieldset?: string | null | undefined;
1111
1109
  config?: {
@@ -1116,7 +1114,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1116
1114
  step?: number;
1117
1115
  };
1118
1116
  }) | ({
1119
- type: WidgetTypes.Range;
1117
+ type: "Range";
1120
1118
  } & {
1121
1119
  fieldset?: string | null | undefined;
1122
1120
  config?: {
@@ -1127,7 +1125,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1127
1125
  step?: number;
1128
1126
  };
1129
1127
  }) | ({
1130
- type: WidgetTypes.RichText;
1128
+ type: "StructuredText";
1131
1129
  } & {
1132
1130
  fieldset?: string | null | undefined;
1133
1131
  config?: {
@@ -1140,27 +1138,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1140
1138
  width?: number | null;
1141
1139
  height?: number | null;
1142
1140
  };
1143
- labels?: string[];
1141
+ labels?: readonly string[];
1144
1142
  allowTargetBlank?: boolean;
1145
1143
  };
1146
1144
  }) | ({
1147
- type: WidgetTypes.Select;
1145
+ type: "Select";
1148
1146
  } & {
1149
1147
  fieldset?: string | null | undefined;
1150
1148
  config?: {
1151
1149
  label?: string | null | undefined;
1152
1150
  placeholder?: string;
1153
1151
  default_value?: string;
1154
- options?: string[];
1152
+ options?: readonly string[];
1155
1153
  };
1156
1154
  }) | ({
1157
- type: WidgetTypes.Separator;
1155
+ type: "Separator";
1158
1156
  } & {
1159
1157
  config?: {
1160
1158
  label?: string | null | undefined;
1161
1159
  };
1162
1160
  }) | ({
1163
- type: WidgetTypes.Text;
1161
+ type: "Text";
1164
1162
  } & {
1165
1163
  fieldset?: string | null | undefined;
1166
1164
  config?: {
@@ -1169,7 +1167,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1169
1167
  placeholder?: string;
1170
1168
  };
1171
1169
  }) | ({
1172
- type: WidgetTypes.Timestamp;
1170
+ type: "Timestamp";
1173
1171
  } & {
1174
1172
  fieldset?: string | null | undefined;
1175
1173
  config?: {
@@ -1181,7 +1179,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1181
1179
  };
1182
1180
  repeat?: {
1183
1181
  [x: string]: ({
1184
- type: WidgetTypes.BooleanField;
1182
+ type: "Boolean";
1185
1183
  } & {
1186
1184
  config?: {
1187
1185
  label?: string | null | undefined;
@@ -1190,7 +1188,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1190
1188
  placeholder_false?: string;
1191
1189
  };
1192
1190
  }) | ({
1193
- type: WidgetTypes.Color;
1191
+ type: "Color";
1194
1192
  } & {
1195
1193
  fieldset?: string | null | undefined;
1196
1194
  config?: {
@@ -1198,7 +1196,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1198
1196
  placeholder?: string;
1199
1197
  };
1200
1198
  }) | ({
1201
- type: WidgetTypes.Date;
1199
+ type: "Date";
1202
1200
  } & {
1203
1201
  fieldset?: string | null | undefined;
1204
1202
  config?: {
@@ -1207,7 +1205,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1207
1205
  default?: string;
1208
1206
  };
1209
1207
  }) | ({
1210
- type: WidgetTypes.Embed;
1208
+ type: "Embed";
1211
1209
  } & {
1212
1210
  fieldset?: string | null | undefined;
1213
1211
  config?: {
@@ -1216,14 +1214,14 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1216
1214
  useAsTitle?: boolean;
1217
1215
  };
1218
1216
  }) | ({
1219
- type: WidgetTypes.GeoPoint;
1217
+ type: "GeoPoint";
1220
1218
  } & {
1221
1219
  fieldset?: string | null | undefined;
1222
1220
  config?: {
1223
1221
  label?: string | null | undefined;
1224
1222
  };
1225
1223
  }) | ({
1226
- type: WidgetTypes.Image;
1224
+ type: "Image";
1227
1225
  } & {
1228
1226
  fieldset?: string | null | undefined;
1229
1227
  config?: {
@@ -1233,7 +1231,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1233
1231
  width?: number | null;
1234
1232
  height?: number | null;
1235
1233
  };
1236
- thumbnails?: ({
1234
+ thumbnails?: readonly ({
1237
1235
  name: string;
1238
1236
  } & {
1239
1237
  width?: number | null;
@@ -1241,7 +1239,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1241
1239
  })[];
1242
1240
  };
1243
1241
  }) | ({
1244
- type: WidgetTypes.IntegrationField;
1242
+ type: "IntegrationFields";
1245
1243
  } & {
1246
1244
  fieldset?: string | null | undefined;
1247
1245
  config?: {
@@ -1250,7 +1248,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1250
1248
  catalog?: string;
1251
1249
  };
1252
1250
  }) | ({
1253
- type: WidgetTypes.Link;
1251
+ type: "Link";
1254
1252
  } & {
1255
1253
  fieldset?: string | null | undefined;
1256
1254
  config?: {
@@ -1258,13 +1256,13 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1258
1256
  useAsTitle?: boolean;
1259
1257
  placeholder?: string;
1260
1258
  select?: "media" | "document" | "web" | null;
1261
- customtypes?: string[];
1262
- masks?: string[];
1263
- tags?: string[];
1259
+ customtypes?: readonly string[];
1260
+ masks?: readonly string[];
1261
+ tags?: readonly string[];
1264
1262
  allowTargetBlank?: boolean;
1265
1263
  };
1266
1264
  }) | ({
1267
- type: WidgetTypes.Number;
1265
+ type: "Number";
1268
1266
  } & {
1269
1267
  fieldset?: string | null | undefined;
1270
1268
  config?: {
@@ -1275,7 +1273,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1275
1273
  step?: number;
1276
1274
  };
1277
1275
  }) | ({
1278
- type: WidgetTypes.Range;
1276
+ type: "Range";
1279
1277
  } & {
1280
1278
  fieldset?: string | null | undefined;
1281
1279
  config?: {
@@ -1286,7 +1284,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1286
1284
  step?: number;
1287
1285
  };
1288
1286
  }) | ({
1289
- type: WidgetTypes.RichText;
1287
+ type: "StructuredText";
1290
1288
  } & {
1291
1289
  fieldset?: string | null | undefined;
1292
1290
  config?: {
@@ -1299,27 +1297,27 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1299
1297
  width?: number | null;
1300
1298
  height?: number | null;
1301
1299
  };
1302
- labels?: string[];
1300
+ labels?: readonly string[];
1303
1301
  allowTargetBlank?: boolean;
1304
1302
  };
1305
1303
  }) | ({
1306
- type: WidgetTypes.Select;
1304
+ type: "Select";
1307
1305
  } & {
1308
1306
  fieldset?: string | null | undefined;
1309
1307
  config?: {
1310
1308
  label?: string | null | undefined;
1311
1309
  placeholder?: string;
1312
1310
  default_value?: string;
1313
- options?: string[];
1311
+ options?: readonly string[];
1314
1312
  };
1315
1313
  }) | ({
1316
- type: WidgetTypes.Separator;
1314
+ type: "Separator";
1317
1315
  } & {
1318
1316
  config?: {
1319
1317
  label?: string | null | undefined;
1320
1318
  };
1321
1319
  }) | ({
1322
- type: WidgetTypes.Text;
1320
+ type: "Text";
1323
1321
  } & {
1324
1322
  fieldset?: string | null | undefined;
1325
1323
  config?: {
@@ -1328,7 +1326,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1328
1326
  placeholder?: string;
1329
1327
  };
1330
1328
  }) | ({
1331
- type: WidgetTypes.Timestamp;
1329
+ type: "Timestamp";
1332
1330
  } & {
1333
1331
  fieldset?: string | null | undefined;
1334
1332
  config?: {
@@ -1345,7 +1343,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1345
1343
  };
1346
1344
  };
1347
1345
  }) | ({
1348
- type: WidgetTypes.UID;
1346
+ type: "UID";
1349
1347
  } & {
1350
1348
  fieldset?: string | null | undefined;
1351
1349
  config?: {
@@ -1366,7 +1364,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1366
1364
  repeatable: t.BooleanC;
1367
1365
  json: t.RecordC<t.StringC, t.Type<{
1368
1366
  [x: string]: ({
1369
- type: WidgetTypes.BooleanField;
1367
+ type: "Boolean";
1370
1368
  } & {
1371
1369
  config?: {
1372
1370
  label?: string | null | undefined;
@@ -1375,7 +1373,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1375
1373
  placeholder_false?: string;
1376
1374
  };
1377
1375
  }) | ({
1378
- type: WidgetTypes.Color;
1376
+ type: "Color";
1379
1377
  } & {
1380
1378
  fieldset?: string | null | undefined;
1381
1379
  config?: {
@@ -1383,7 +1381,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1383
1381
  placeholder?: string;
1384
1382
  };
1385
1383
  }) | ({
1386
- type: WidgetTypes.Date;
1384
+ type: "Date";
1387
1385
  } & {
1388
1386
  fieldset?: string | null | undefined;
1389
1387
  config?: {
@@ -1392,7 +1390,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1392
1390
  default?: string;
1393
1391
  };
1394
1392
  }) | ({
1395
- type: WidgetTypes.Embed;
1393
+ type: "Embed";
1396
1394
  } & {
1397
1395
  fieldset?: string | null | undefined;
1398
1396
  config?: {
@@ -1401,14 +1399,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1401
1399
  useAsTitle?: boolean;
1402
1400
  };
1403
1401
  }) | ({
1404
- type: WidgetTypes.GeoPoint;
1402
+ type: "GeoPoint";
1405
1403
  } & {
1406
1404
  fieldset?: string | null | undefined;
1407
1405
  config?: {
1408
1406
  label?: string | null | undefined;
1409
1407
  };
1410
1408
  }) | ({
1411
- type: WidgetTypes.Image;
1409
+ type: "Image";
1412
1410
  } & {
1413
1411
  fieldset?: string | null | undefined;
1414
1412
  config?: {
@@ -1418,7 +1416,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1418
1416
  width?: number | null;
1419
1417
  height?: number | null;
1420
1418
  };
1421
- thumbnails?: ({
1419
+ thumbnails?: readonly ({
1422
1420
  name: string;
1423
1421
  } & {
1424
1422
  width?: number | null;
@@ -1426,7 +1424,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1426
1424
  })[];
1427
1425
  };
1428
1426
  }) | ({
1429
- type: WidgetTypes.IntegrationField;
1427
+ type: "IntegrationFields";
1430
1428
  } & {
1431
1429
  fieldset?: string | null | undefined;
1432
1430
  config?: {
@@ -1435,7 +1433,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1435
1433
  catalog?: string;
1436
1434
  };
1437
1435
  }) | ({
1438
- type: WidgetTypes.Link;
1436
+ type: "Link";
1439
1437
  } & {
1440
1438
  fieldset?: string | null | undefined;
1441
1439
  config?: {
@@ -1443,13 +1441,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1443
1441
  useAsTitle?: boolean;
1444
1442
  placeholder?: string;
1445
1443
  select?: "media" | "document" | "web" | null;
1446
- customtypes?: string[];
1447
- masks?: string[];
1448
- tags?: string[];
1444
+ customtypes?: readonly string[];
1445
+ masks?: readonly string[];
1446
+ tags?: readonly string[];
1449
1447
  allowTargetBlank?: boolean;
1450
1448
  };
1451
1449
  }) | ({
1452
- type: WidgetTypes.Number;
1450
+ type: "Number";
1453
1451
  } & {
1454
1452
  fieldset?: string | null | undefined;
1455
1453
  config?: {
@@ -1460,7 +1458,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1460
1458
  step?: number;
1461
1459
  };
1462
1460
  }) | ({
1463
- type: WidgetTypes.Range;
1461
+ type: "Range";
1464
1462
  } & {
1465
1463
  fieldset?: string | null | undefined;
1466
1464
  config?: {
@@ -1471,7 +1469,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1471
1469
  step?: number;
1472
1470
  };
1473
1471
  }) | ({
1474
- type: WidgetTypes.RichText;
1472
+ type: "StructuredText";
1475
1473
  } & {
1476
1474
  fieldset?: string | null | undefined;
1477
1475
  config?: {
@@ -1484,27 +1482,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1484
1482
  width?: number | null;
1485
1483
  height?: number | null;
1486
1484
  };
1487
- labels?: string[];
1485
+ labels?: readonly string[];
1488
1486
  allowTargetBlank?: boolean;
1489
1487
  };
1490
1488
  }) | ({
1491
- type: WidgetTypes.Select;
1489
+ type: "Select";
1492
1490
  } & {
1493
1491
  fieldset?: string | null | undefined;
1494
1492
  config?: {
1495
1493
  label?: string | null | undefined;
1496
1494
  placeholder?: string;
1497
1495
  default_value?: string;
1498
- options?: string[];
1496
+ options?: readonly string[];
1499
1497
  };
1500
1498
  }) | ({
1501
- type: WidgetTypes.Separator;
1499
+ type: "Separator";
1502
1500
  } & {
1503
1501
  config?: {
1504
1502
  label?: string | null | undefined;
1505
1503
  };
1506
1504
  }) | ({
1507
- type: WidgetTypes.Text;
1505
+ type: "Text";
1508
1506
  } & {
1509
1507
  fieldset?: string | null | undefined;
1510
1508
  config?: {
@@ -1513,7 +1511,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1513
1511
  placeholder?: string;
1514
1512
  };
1515
1513
  }) | ({
1516
- type: WidgetTypes.Timestamp;
1514
+ type: "Timestamp";
1517
1515
  } & {
1518
1516
  fieldset?: string | null | undefined;
1519
1517
  config?: {
@@ -1522,7 +1520,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1522
1520
  default?: string;
1523
1521
  };
1524
1522
  }) | ({
1525
- type: WidgetTypes.Group;
1523
+ type: "Group";
1526
1524
  } & {
1527
1525
  fieldset?: string | null | undefined;
1528
1526
  icon?: string;
@@ -1532,7 +1530,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1532
1530
  repeat?: boolean;
1533
1531
  fields?: {
1534
1532
  [x: string]: ({
1535
- type: WidgetTypes.BooleanField;
1533
+ type: "Boolean";
1536
1534
  } & {
1537
1535
  config?: {
1538
1536
  label?: string | null | undefined;
@@ -1541,7 +1539,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1541
1539
  placeholder_false?: string;
1542
1540
  };
1543
1541
  }) | ({
1544
- type: WidgetTypes.Color;
1542
+ type: "Color";
1545
1543
  } & {
1546
1544
  fieldset?: string | null | undefined;
1547
1545
  config?: {
@@ -1549,7 +1547,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1549
1547
  placeholder?: string;
1550
1548
  };
1551
1549
  }) | ({
1552
- type: WidgetTypes.Date;
1550
+ type: "Date";
1553
1551
  } & {
1554
1552
  fieldset?: string | null | undefined;
1555
1553
  config?: {
@@ -1558,7 +1556,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1558
1556
  default?: string;
1559
1557
  };
1560
1558
  }) | ({
1561
- type: WidgetTypes.Embed;
1559
+ type: "Embed";
1562
1560
  } & {
1563
1561
  fieldset?: string | null | undefined;
1564
1562
  config?: {
@@ -1567,14 +1565,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1567
1565
  useAsTitle?: boolean;
1568
1566
  };
1569
1567
  }) | ({
1570
- type: WidgetTypes.GeoPoint;
1568
+ type: "GeoPoint";
1571
1569
  } & {
1572
1570
  fieldset?: string | null | undefined;
1573
1571
  config?: {
1574
1572
  label?: string | null | undefined;
1575
1573
  };
1576
1574
  }) | ({
1577
- type: WidgetTypes.Image;
1575
+ type: "Image";
1578
1576
  } & {
1579
1577
  fieldset?: string | null | undefined;
1580
1578
  config?: {
@@ -1584,7 +1582,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1584
1582
  width?: number | null;
1585
1583
  height?: number | null;
1586
1584
  };
1587
- thumbnails?: ({
1585
+ thumbnails?: readonly ({
1588
1586
  name: string;
1589
1587
  } & {
1590
1588
  width?: number | null;
@@ -1592,7 +1590,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1592
1590
  })[];
1593
1591
  };
1594
1592
  }) | ({
1595
- type: WidgetTypes.IntegrationField;
1593
+ type: "IntegrationFields";
1596
1594
  } & {
1597
1595
  fieldset?: string | null | undefined;
1598
1596
  config?: {
@@ -1601,7 +1599,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1601
1599
  catalog?: string;
1602
1600
  };
1603
1601
  }) | ({
1604
- type: WidgetTypes.Link;
1602
+ type: "Link";
1605
1603
  } & {
1606
1604
  fieldset?: string | null | undefined;
1607
1605
  config?: {
@@ -1609,13 +1607,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1609
1607
  useAsTitle?: boolean;
1610
1608
  placeholder?: string;
1611
1609
  select?: "media" | "document" | "web" | null;
1612
- customtypes?: string[];
1613
- masks?: string[];
1614
- tags?: string[];
1610
+ customtypes?: readonly string[];
1611
+ masks?: readonly string[];
1612
+ tags?: readonly string[];
1615
1613
  allowTargetBlank?: boolean;
1616
1614
  };
1617
1615
  }) | ({
1618
- type: WidgetTypes.Number;
1616
+ type: "Number";
1619
1617
  } & {
1620
1618
  fieldset?: string | null | undefined;
1621
1619
  config?: {
@@ -1626,7 +1624,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1626
1624
  step?: number;
1627
1625
  };
1628
1626
  }) | ({
1629
- type: WidgetTypes.Range;
1627
+ type: "Range";
1630
1628
  } & {
1631
1629
  fieldset?: string | null | undefined;
1632
1630
  config?: {
@@ -1637,7 +1635,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1637
1635
  step?: number;
1638
1636
  };
1639
1637
  }) | ({
1640
- type: WidgetTypes.RichText;
1638
+ type: "StructuredText";
1641
1639
  } & {
1642
1640
  fieldset?: string | null | undefined;
1643
1641
  config?: {
@@ -1650,27 +1648,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1650
1648
  width?: number | null;
1651
1649
  height?: number | null;
1652
1650
  };
1653
- labels?: string[];
1651
+ labels?: readonly string[];
1654
1652
  allowTargetBlank?: boolean;
1655
1653
  };
1656
1654
  }) | ({
1657
- type: WidgetTypes.Select;
1655
+ type: "Select";
1658
1656
  } & {
1659
1657
  fieldset?: string | null | undefined;
1660
1658
  config?: {
1661
1659
  label?: string | null | undefined;
1662
1660
  placeholder?: string;
1663
1661
  default_value?: string;
1664
- options?: string[];
1662
+ options?: readonly string[];
1665
1663
  };
1666
1664
  }) | ({
1667
- type: WidgetTypes.Separator;
1665
+ type: "Separator";
1668
1666
  } & {
1669
1667
  config?: {
1670
1668
  label?: string | null | undefined;
1671
1669
  };
1672
1670
  }) | ({
1673
- type: WidgetTypes.Text;
1671
+ type: "Text";
1674
1672
  } & {
1675
1673
  fieldset?: string | null | undefined;
1676
1674
  config?: {
@@ -1679,7 +1677,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1679
1677
  placeholder?: string;
1680
1678
  };
1681
1679
  }) | ({
1682
- type: WidgetTypes.Timestamp;
1680
+ type: "Timestamp";
1683
1681
  } & {
1684
1682
  fieldset?: string | null | undefined;
1685
1683
  config?: {
@@ -1691,13 +1689,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1691
1689
  };
1692
1690
  };
1693
1691
  }) | ({
1694
- type: WidgetTypes.Slices | WidgetTypes.LegacySlices;
1692
+ type: "Slices" | "Choice";
1695
1693
  } & {
1696
1694
  fieldset?: string | null | undefined;
1697
1695
  config?: {
1698
1696
  label?: string | null | undefined;
1699
1697
  labels?: {
1700
- [x: string]: ({
1698
+ [x: string]: readonly ({
1701
1699
  name: string;
1702
1700
  } & {
1703
1701
  display?: string;
@@ -1705,7 +1703,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1705
1703
  } | null;
1706
1704
  choices?: {
1707
1705
  [x: string]: ({
1708
- type: WidgetTypes.BooleanField;
1706
+ type: "Boolean";
1709
1707
  } & {
1710
1708
  config?: {
1711
1709
  label?: string | null | undefined;
@@ -1714,7 +1712,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1714
1712
  placeholder_false?: string;
1715
1713
  };
1716
1714
  }) | ({
1717
- type: WidgetTypes.Color;
1715
+ type: "Color";
1718
1716
  } & {
1719
1717
  fieldset?: string | null | undefined;
1720
1718
  config?: {
@@ -1722,7 +1720,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1722
1720
  placeholder?: string;
1723
1721
  };
1724
1722
  }) | ({
1725
- type: WidgetTypes.Date;
1723
+ type: "Date";
1726
1724
  } & {
1727
1725
  fieldset?: string | null | undefined;
1728
1726
  config?: {
@@ -1731,7 +1729,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1731
1729
  default?: string;
1732
1730
  };
1733
1731
  }) | ({
1734
- type: WidgetTypes.Embed;
1732
+ type: "Embed";
1735
1733
  } & {
1736
1734
  fieldset?: string | null | undefined;
1737
1735
  config?: {
@@ -1740,14 +1738,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1740
1738
  useAsTitle?: boolean;
1741
1739
  };
1742
1740
  }) | ({
1743
- type: WidgetTypes.GeoPoint;
1741
+ type: "GeoPoint";
1744
1742
  } & {
1745
1743
  fieldset?: string | null | undefined;
1746
1744
  config?: {
1747
1745
  label?: string | null | undefined;
1748
1746
  };
1749
1747
  }) | ({
1750
- type: WidgetTypes.Image;
1748
+ type: "Image";
1751
1749
  } & {
1752
1750
  fieldset?: string | null | undefined;
1753
1751
  config?: {
@@ -1757,7 +1755,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1757
1755
  width?: number | null;
1758
1756
  height?: number | null;
1759
1757
  };
1760
- thumbnails?: ({
1758
+ thumbnails?: readonly ({
1761
1759
  name: string;
1762
1760
  } & {
1763
1761
  width?: number | null;
@@ -1765,7 +1763,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1765
1763
  })[];
1766
1764
  };
1767
1765
  }) | ({
1768
- type: WidgetTypes.IntegrationField;
1766
+ type: "IntegrationFields";
1769
1767
  } & {
1770
1768
  fieldset?: string | null | undefined;
1771
1769
  config?: {
@@ -1774,7 +1772,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1774
1772
  catalog?: string;
1775
1773
  };
1776
1774
  }) | ({
1777
- type: WidgetTypes.Link;
1775
+ type: "Link";
1778
1776
  } & {
1779
1777
  fieldset?: string | null | undefined;
1780
1778
  config?: {
@@ -1782,13 +1780,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1782
1780
  useAsTitle?: boolean;
1783
1781
  placeholder?: string;
1784
1782
  select?: "media" | "document" | "web" | null;
1785
- customtypes?: string[];
1786
- masks?: string[];
1787
- tags?: string[];
1783
+ customtypes?: readonly string[];
1784
+ masks?: readonly string[];
1785
+ tags?: readonly string[];
1788
1786
  allowTargetBlank?: boolean;
1789
1787
  };
1790
1788
  }) | ({
1791
- type: WidgetTypes.Number;
1789
+ type: "Number";
1792
1790
  } & {
1793
1791
  fieldset?: string | null | undefined;
1794
1792
  config?: {
@@ -1799,7 +1797,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1799
1797
  step?: number;
1800
1798
  };
1801
1799
  }) | ({
1802
- type: WidgetTypes.Range;
1800
+ type: "Range";
1803
1801
  } & {
1804
1802
  fieldset?: string | null | undefined;
1805
1803
  config?: {
@@ -1810,7 +1808,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1810
1808
  step?: number;
1811
1809
  };
1812
1810
  }) | ({
1813
- type: WidgetTypes.RichText;
1811
+ type: "StructuredText";
1814
1812
  } & {
1815
1813
  fieldset?: string | null | undefined;
1816
1814
  config?: {
@@ -1823,27 +1821,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1823
1821
  width?: number | null;
1824
1822
  height?: number | null;
1825
1823
  };
1826
- labels?: string[];
1824
+ labels?: readonly string[];
1827
1825
  allowTargetBlank?: boolean;
1828
1826
  };
1829
1827
  }) | ({
1830
- type: WidgetTypes.Select;
1828
+ type: "Select";
1831
1829
  } & {
1832
1830
  fieldset?: string | null | undefined;
1833
1831
  config?: {
1834
1832
  label?: string | null | undefined;
1835
1833
  placeholder?: string;
1836
1834
  default_value?: string;
1837
- options?: string[];
1835
+ options?: readonly string[];
1838
1836
  };
1839
1837
  }) | ({
1840
- type: WidgetTypes.Separator;
1838
+ type: "Separator";
1841
1839
  } & {
1842
1840
  config?: {
1843
1841
  label?: string | null | undefined;
1844
1842
  };
1845
1843
  }) | ({
1846
- type: WidgetTypes.Text;
1844
+ type: "Text";
1847
1845
  } & {
1848
1846
  fieldset?: string | null | undefined;
1849
1847
  config?: {
@@ -1852,7 +1850,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1852
1850
  placeholder?: string;
1853
1851
  };
1854
1852
  }) | ({
1855
- type: WidgetTypes.Timestamp;
1853
+ type: "Timestamp";
1856
1854
  } & {
1857
1855
  fieldset?: string | null | undefined;
1858
1856
  config?: {
@@ -1861,7 +1859,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1861
1859
  default?: string;
1862
1860
  };
1863
1861
  }) | ({
1864
- type: WidgetTypes.Group;
1862
+ type: "Group";
1865
1863
  } & {
1866
1864
  fieldset?: string | null | undefined;
1867
1865
  icon?: string;
@@ -1871,7 +1869,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1871
1869
  repeat?: boolean;
1872
1870
  fields?: {
1873
1871
  [x: string]: ({
1874
- type: WidgetTypes.BooleanField;
1872
+ type: "Boolean";
1875
1873
  } & {
1876
1874
  config?: {
1877
1875
  label?: string | null | undefined;
@@ -1880,7 +1878,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1880
1878
  placeholder_false?: string;
1881
1879
  };
1882
1880
  }) | ({
1883
- type: WidgetTypes.Color;
1881
+ type: "Color";
1884
1882
  } & {
1885
1883
  fieldset?: string | null | undefined;
1886
1884
  config?: {
@@ -1888,7 +1886,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1888
1886
  placeholder?: string;
1889
1887
  };
1890
1888
  }) | ({
1891
- type: WidgetTypes.Date;
1889
+ type: "Date";
1892
1890
  } & {
1893
1891
  fieldset?: string | null | undefined;
1894
1892
  config?: {
@@ -1897,7 +1895,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1897
1895
  default?: string;
1898
1896
  };
1899
1897
  }) | ({
1900
- type: WidgetTypes.Embed;
1898
+ type: "Embed";
1901
1899
  } & {
1902
1900
  fieldset?: string | null | undefined;
1903
1901
  config?: {
@@ -1906,14 +1904,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1906
1904
  useAsTitle?: boolean;
1907
1905
  };
1908
1906
  }) | ({
1909
- type: WidgetTypes.GeoPoint;
1907
+ type: "GeoPoint";
1910
1908
  } & {
1911
1909
  fieldset?: string | null | undefined;
1912
1910
  config?: {
1913
1911
  label?: string | null | undefined;
1914
1912
  };
1915
1913
  }) | ({
1916
- type: WidgetTypes.Image;
1914
+ type: "Image";
1917
1915
  } & {
1918
1916
  fieldset?: string | null | undefined;
1919
1917
  config?: {
@@ -1923,7 +1921,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1923
1921
  width?: number | null;
1924
1922
  height?: number | null;
1925
1923
  };
1926
- thumbnails?: ({
1924
+ thumbnails?: readonly ({
1927
1925
  name: string;
1928
1926
  } & {
1929
1927
  width?: number | null;
@@ -1931,7 +1929,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1931
1929
  })[];
1932
1930
  };
1933
1931
  }) | ({
1934
- type: WidgetTypes.IntegrationField;
1932
+ type: "IntegrationFields";
1935
1933
  } & {
1936
1934
  fieldset?: string | null | undefined;
1937
1935
  config?: {
@@ -1940,7 +1938,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1940
1938
  catalog?: string;
1941
1939
  };
1942
1940
  }) | ({
1943
- type: WidgetTypes.Link;
1941
+ type: "Link";
1944
1942
  } & {
1945
1943
  fieldset?: string | null | undefined;
1946
1944
  config?: {
@@ -1948,13 +1946,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1948
1946
  useAsTitle?: boolean;
1949
1947
  placeholder?: string;
1950
1948
  select?: "media" | "document" | "web" | null;
1951
- customtypes?: string[];
1952
- masks?: string[];
1953
- tags?: string[];
1949
+ customtypes?: readonly string[];
1950
+ masks?: readonly string[];
1951
+ tags?: readonly string[];
1954
1952
  allowTargetBlank?: boolean;
1955
1953
  };
1956
1954
  }) | ({
1957
- type: WidgetTypes.Number;
1955
+ type: "Number";
1958
1956
  } & {
1959
1957
  fieldset?: string | null | undefined;
1960
1958
  config?: {
@@ -1965,7 +1963,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1965
1963
  step?: number;
1966
1964
  };
1967
1965
  }) | ({
1968
- type: WidgetTypes.Range;
1966
+ type: "Range";
1969
1967
  } & {
1970
1968
  fieldset?: string | null | undefined;
1971
1969
  config?: {
@@ -1976,7 +1974,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1976
1974
  step?: number;
1977
1975
  };
1978
1976
  }) | ({
1979
- type: WidgetTypes.RichText;
1977
+ type: "StructuredText";
1980
1978
  } & {
1981
1979
  fieldset?: string | null | undefined;
1982
1980
  config?: {
@@ -1989,27 +1987,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1989
1987
  width?: number | null;
1990
1988
  height?: number | null;
1991
1989
  };
1992
- labels?: string[];
1990
+ labels?: readonly string[];
1993
1991
  allowTargetBlank?: boolean;
1994
1992
  };
1995
1993
  }) | ({
1996
- type: WidgetTypes.Select;
1994
+ type: "Select";
1997
1995
  } & {
1998
1996
  fieldset?: string | null | undefined;
1999
1997
  config?: {
2000
1998
  label?: string | null | undefined;
2001
1999
  placeholder?: string;
2002
2000
  default_value?: string;
2003
- options?: string[];
2001
+ options?: readonly string[];
2004
2002
  };
2005
2003
  }) | ({
2006
- type: WidgetTypes.Separator;
2004
+ type: "Separator";
2007
2005
  } & {
2008
2006
  config?: {
2009
2007
  label?: string | null | undefined;
2010
2008
  };
2011
2009
  }) | ({
2012
- type: WidgetTypes.Text;
2010
+ type: "Text";
2013
2011
  } & {
2014
2012
  fieldset?: string | null | undefined;
2015
2013
  config?: {
@@ -2018,7 +2016,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2018
2016
  placeholder?: string;
2019
2017
  };
2020
2018
  }) | ({
2021
- type: WidgetTypes.Timestamp;
2019
+ type: "Timestamp";
2022
2020
  } & {
2023
2021
  fieldset?: string | null | undefined;
2024
2022
  config?: {
@@ -2030,7 +2028,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2030
2028
  };
2031
2029
  };
2032
2030
  }) | ({
2033
- type: SlicesTypes.Slice;
2031
+ type: "Slice";
2034
2032
  } & {
2035
2033
  fieldset?: string | null | undefined;
2036
2034
  description?: string;
@@ -2038,7 +2036,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2038
2036
  display?: string;
2039
2037
  "non-repeat"?: {
2040
2038
  [x: string]: ({
2041
- type: WidgetTypes.BooleanField;
2039
+ type: "Boolean";
2042
2040
  } & {
2043
2041
  config?: {
2044
2042
  label?: string | null | undefined;
@@ -2047,7 +2045,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2047
2045
  placeholder_false?: string;
2048
2046
  };
2049
2047
  }) | ({
2050
- type: WidgetTypes.Color;
2048
+ type: "Color";
2051
2049
  } & {
2052
2050
  fieldset?: string | null | undefined;
2053
2051
  config?: {
@@ -2055,7 +2053,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2055
2053
  placeholder?: string;
2056
2054
  };
2057
2055
  }) | ({
2058
- type: WidgetTypes.Date;
2056
+ type: "Date";
2059
2057
  } & {
2060
2058
  fieldset?: string | null | undefined;
2061
2059
  config?: {
@@ -2064,7 +2062,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2064
2062
  default?: string;
2065
2063
  };
2066
2064
  }) | ({
2067
- type: WidgetTypes.Embed;
2065
+ type: "Embed";
2068
2066
  } & {
2069
2067
  fieldset?: string | null | undefined;
2070
2068
  config?: {
@@ -2073,14 +2071,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2073
2071
  useAsTitle?: boolean;
2074
2072
  };
2075
2073
  }) | ({
2076
- type: WidgetTypes.GeoPoint;
2074
+ type: "GeoPoint";
2077
2075
  } & {
2078
2076
  fieldset?: string | null | undefined;
2079
2077
  config?: {
2080
2078
  label?: string | null | undefined;
2081
2079
  };
2082
2080
  }) | ({
2083
- type: WidgetTypes.Image;
2081
+ type: "Image";
2084
2082
  } & {
2085
2083
  fieldset?: string | null | undefined;
2086
2084
  config?: {
@@ -2090,7 +2088,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2090
2088
  width?: number | null;
2091
2089
  height?: number | null;
2092
2090
  };
2093
- thumbnails?: ({
2091
+ thumbnails?: readonly ({
2094
2092
  name: string;
2095
2093
  } & {
2096
2094
  width?: number | null;
@@ -2098,7 +2096,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2098
2096
  })[];
2099
2097
  };
2100
2098
  }) | ({
2101
- type: WidgetTypes.IntegrationField;
2099
+ type: "IntegrationFields";
2102
2100
  } & {
2103
2101
  fieldset?: string | null | undefined;
2104
2102
  config?: {
@@ -2107,7 +2105,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2107
2105
  catalog?: string;
2108
2106
  };
2109
2107
  }) | ({
2110
- type: WidgetTypes.Link;
2108
+ type: "Link";
2111
2109
  } & {
2112
2110
  fieldset?: string | null | undefined;
2113
2111
  config?: {
@@ -2115,13 +2113,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2115
2113
  useAsTitle?: boolean;
2116
2114
  placeholder?: string;
2117
2115
  select?: "media" | "document" | "web" | null;
2118
- customtypes?: string[];
2119
- masks?: string[];
2120
- tags?: string[];
2116
+ customtypes?: readonly string[];
2117
+ masks?: readonly string[];
2118
+ tags?: readonly string[];
2121
2119
  allowTargetBlank?: boolean;
2122
2120
  };
2123
2121
  }) | ({
2124
- type: WidgetTypes.Number;
2122
+ type: "Number";
2125
2123
  } & {
2126
2124
  fieldset?: string | null | undefined;
2127
2125
  config?: {
@@ -2132,7 +2130,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2132
2130
  step?: number;
2133
2131
  };
2134
2132
  }) | ({
2135
- type: WidgetTypes.Range;
2133
+ type: "Range";
2136
2134
  } & {
2137
2135
  fieldset?: string | null | undefined;
2138
2136
  config?: {
@@ -2143,7 +2141,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2143
2141
  step?: number;
2144
2142
  };
2145
2143
  }) | ({
2146
- type: WidgetTypes.RichText;
2144
+ type: "StructuredText";
2147
2145
  } & {
2148
2146
  fieldset?: string | null | undefined;
2149
2147
  config?: {
@@ -2156,27 +2154,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2156
2154
  width?: number | null;
2157
2155
  height?: number | null;
2158
2156
  };
2159
- labels?: string[];
2157
+ labels?: readonly string[];
2160
2158
  allowTargetBlank?: boolean;
2161
2159
  };
2162
2160
  }) | ({
2163
- type: WidgetTypes.Select;
2161
+ type: "Select";
2164
2162
  } & {
2165
2163
  fieldset?: string | null | undefined;
2166
2164
  config?: {
2167
2165
  label?: string | null | undefined;
2168
2166
  placeholder?: string;
2169
2167
  default_value?: string;
2170
- options?: string[];
2168
+ options?: readonly string[];
2171
2169
  };
2172
2170
  }) | ({
2173
- type: WidgetTypes.Separator;
2171
+ type: "Separator";
2174
2172
  } & {
2175
2173
  config?: {
2176
2174
  label?: string | null | undefined;
2177
2175
  };
2178
2176
  }) | ({
2179
- type: WidgetTypes.Text;
2177
+ type: "Text";
2180
2178
  } & {
2181
2179
  fieldset?: string | null | undefined;
2182
2180
  config?: {
@@ -2185,7 +2183,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2185
2183
  placeholder?: string;
2186
2184
  };
2187
2185
  }) | ({
2188
- type: WidgetTypes.Timestamp;
2186
+ type: "Timestamp";
2189
2187
  } & {
2190
2188
  fieldset?: string | null | undefined;
2191
2189
  config?: {
@@ -2197,7 +2195,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2197
2195
  };
2198
2196
  repeat?: {
2199
2197
  [x: string]: ({
2200
- type: WidgetTypes.BooleanField;
2198
+ type: "Boolean";
2201
2199
  } & {
2202
2200
  config?: {
2203
2201
  label?: string | null | undefined;
@@ -2206,7 +2204,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2206
2204
  placeholder_false?: string;
2207
2205
  };
2208
2206
  }) | ({
2209
- type: WidgetTypes.Color;
2207
+ type: "Color";
2210
2208
  } & {
2211
2209
  fieldset?: string | null | undefined;
2212
2210
  config?: {
@@ -2214,7 +2212,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2214
2212
  placeholder?: string;
2215
2213
  };
2216
2214
  }) | ({
2217
- type: WidgetTypes.Date;
2215
+ type: "Date";
2218
2216
  } & {
2219
2217
  fieldset?: string | null | undefined;
2220
2218
  config?: {
@@ -2223,7 +2221,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2223
2221
  default?: string;
2224
2222
  };
2225
2223
  }) | ({
2226
- type: WidgetTypes.Embed;
2224
+ type: "Embed";
2227
2225
  } & {
2228
2226
  fieldset?: string | null | undefined;
2229
2227
  config?: {
@@ -2232,14 +2230,14 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2232
2230
  useAsTitle?: boolean;
2233
2231
  };
2234
2232
  }) | ({
2235
- type: WidgetTypes.GeoPoint;
2233
+ type: "GeoPoint";
2236
2234
  } & {
2237
2235
  fieldset?: string | null | undefined;
2238
2236
  config?: {
2239
2237
  label?: string | null | undefined;
2240
2238
  };
2241
2239
  }) | ({
2242
- type: WidgetTypes.Image;
2240
+ type: "Image";
2243
2241
  } & {
2244
2242
  fieldset?: string | null | undefined;
2245
2243
  config?: {
@@ -2249,7 +2247,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2249
2247
  width?: number | null;
2250
2248
  height?: number | null;
2251
2249
  };
2252
- thumbnails?: ({
2250
+ thumbnails?: readonly ({
2253
2251
  name: string;
2254
2252
  } & {
2255
2253
  width?: number | null;
@@ -2257,7 +2255,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2257
2255
  })[];
2258
2256
  };
2259
2257
  }) | ({
2260
- type: WidgetTypes.IntegrationField;
2258
+ type: "IntegrationFields";
2261
2259
  } & {
2262
2260
  fieldset?: string | null | undefined;
2263
2261
  config?: {
@@ -2266,7 +2264,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2266
2264
  catalog?: string;
2267
2265
  };
2268
2266
  }) | ({
2269
- type: WidgetTypes.Link;
2267
+ type: "Link";
2270
2268
  } & {
2271
2269
  fieldset?: string | null | undefined;
2272
2270
  config?: {
@@ -2274,13 +2272,13 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2274
2272
  useAsTitle?: boolean;
2275
2273
  placeholder?: string;
2276
2274
  select?: "media" | "document" | "web" | null;
2277
- customtypes?: string[];
2278
- masks?: string[];
2279
- tags?: string[];
2275
+ customtypes?: readonly string[];
2276
+ masks?: readonly string[];
2277
+ tags?: readonly string[];
2280
2278
  allowTargetBlank?: boolean;
2281
2279
  };
2282
2280
  }) | ({
2283
- type: WidgetTypes.Number;
2281
+ type: "Number";
2284
2282
  } & {
2285
2283
  fieldset?: string | null | undefined;
2286
2284
  config?: {
@@ -2291,7 +2289,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2291
2289
  step?: number;
2292
2290
  };
2293
2291
  }) | ({
2294
- type: WidgetTypes.Range;
2292
+ type: "Range";
2295
2293
  } & {
2296
2294
  fieldset?: string | null | undefined;
2297
2295
  config?: {
@@ -2302,7 +2300,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2302
2300
  step?: number;
2303
2301
  };
2304
2302
  }) | ({
2305
- type: WidgetTypes.RichText;
2303
+ type: "StructuredText";
2306
2304
  } & {
2307
2305
  fieldset?: string | null | undefined;
2308
2306
  config?: {
@@ -2315,27 +2313,27 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2315
2313
  width?: number | null;
2316
2314
  height?: number | null;
2317
2315
  };
2318
- labels?: string[];
2316
+ labels?: readonly string[];
2319
2317
  allowTargetBlank?: boolean;
2320
2318
  };
2321
2319
  }) | ({
2322
- type: WidgetTypes.Select;
2320
+ type: "Select";
2323
2321
  } & {
2324
2322
  fieldset?: string | null | undefined;
2325
2323
  config?: {
2326
2324
  label?: string | null | undefined;
2327
2325
  placeholder?: string;
2328
2326
  default_value?: string;
2329
- options?: string[];
2327
+ options?: readonly string[];
2330
2328
  };
2331
2329
  }) | ({
2332
- type: WidgetTypes.Separator;
2330
+ type: "Separator";
2333
2331
  } & {
2334
2332
  config?: {
2335
2333
  label?: string | null | undefined;
2336
2334
  };
2337
2335
  }) | ({
2338
- type: WidgetTypes.Text;
2336
+ type: "Text";
2339
2337
  } & {
2340
2338
  fieldset?: string | null | undefined;
2341
2339
  config?: {
@@ -2344,7 +2342,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2344
2342
  placeholder?: string;
2345
2343
  };
2346
2344
  }) | ({
2347
- type: WidgetTypes.Timestamp;
2345
+ type: "Timestamp";
2348
2346
  } & {
2349
2347
  fieldset?: string | null | undefined;
2350
2348
  config?: {
@@ -2358,12 +2356,12 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2358
2356
  label?: string | null | undefined;
2359
2357
  };
2360
2358
  }) | {
2361
- type: SlicesTypes.SharedSlice;
2359
+ type: "SharedSlice";
2362
2360
  };
2363
2361
  };
2364
2362
  };
2365
2363
  }) | ({
2366
- type: WidgetTypes.UID;
2364
+ type: "UID";
2367
2365
  } & {
2368
2366
  fieldset?: string | null | undefined;
2369
2367
  config?: {