@prismicio/types-internal 2.5.0-alpha.0 → 2.5.0-alpha.2

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 (50) hide show
  1. package/lib/content/Document.d.ts +3972 -7926
  2. package/lib/content/fields/GroupContent.d.ts +17 -1754
  3. package/lib/content/fields/GroupContent.js +62 -22
  4. package/lib/content/fields/WidgetContent.d.ts +3371 -7324
  5. package/lib/content/fields/nestable/NestableContent.d.ts +3 -145
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +4 -212
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.js +2 -0
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +4 -184
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +6 -290
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +3 -0
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -383
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +15 -1333
  13. package/lib/content/fields/slices/Slice/SharedSliceContent.js +2 -0
  14. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +7 -1182
  15. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +1 -0
  16. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +7 -1182
  17. package/lib/content/fields/slices/Slice/index.d.ts +983 -2935
  18. package/lib/content/fields/slices/SliceItem.d.ts +148 -2100
  19. package/lib/content/fields/slices/SlicesContent.d.ts +866 -3644
  20. package/lib/content/fields/withDefaultValues.d.ts +4 -3
  21. package/lib/content/fields/withDefaultValues.js +17 -1
  22. package/lib/customtypes/CustomType.d.ts +70 -915
  23. package/lib/customtypes/Section.d.ts +70 -915
  24. package/lib/customtypes/diff/SharedSlice.d.ts +2 -340
  25. package/lib/customtypes/diff/Variation.d.ts +4 -351
  26. package/lib/customtypes/diff/Variation.js +4 -3
  27. package/lib/customtypes/diff/Widgets.d.ts +11 -0
  28. package/lib/customtypes/diff/Widgets.js +2 -0
  29. package/lib/customtypes/diff/index.d.ts +1 -0
  30. package/lib/customtypes/diff/index.js +1 -0
  31. package/lib/customtypes/widgets/Group.d.ts +15 -331
  32. package/lib/customtypes/widgets/Group.js +25 -5
  33. package/lib/customtypes/widgets/Widget.d.ts +7 -1014
  34. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -168
  35. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -336
  36. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +3 -338
  37. package/lib/customtypes/widgets/slices/Slices.d.ts +7 -1184
  38. package/lib/validators/function.js +8 -1
  39. package/package.json +5 -5
  40. package/src/content/fields/GroupContent.ts +107 -32
  41. package/src/content/fields/nestable/RichTextContent/Blocks.ts +3 -1
  42. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +7 -4
  43. package/src/content/fields/slices/Slice/SharedSliceContent.ts +5 -3
  44. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +3 -1
  45. package/src/content/fields/withDefaultValues.ts +27 -3
  46. package/src/customtypes/diff/Variation.ts +9 -20
  47. package/src/customtypes/diff/Widgets.ts +17 -0
  48. package/src/customtypes/diff/index.ts +1 -0
  49. package/src/customtypes/widgets/Group.ts +66 -20
  50. package/src/validators/function.ts +11 -1
@@ -174,176 +174,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
174
174
  placeholder?: string;
175
175
  default?: string;
176
176
  };
177
- }) | ({
178
- type: "Group";
179
- } & {
180
- fieldset?: string | null | undefined;
181
- icon?: string;
182
- description?: string;
183
- config?: {
184
- label?: string | null | undefined;
185
- repeat?: boolean;
186
- fields?: {
187
- [x: string]: ({
188
- type: "Boolean";
189
- } & {
190
- config?: {
191
- label?: string | null | undefined;
192
- default_value?: boolean;
193
- placeholder_true?: string;
194
- placeholder_false?: string;
195
- };
196
- }) | ({
197
- type: "Color";
198
- } & {
199
- fieldset?: string | null | undefined;
200
- config?: {
201
- label?: string | null | undefined;
202
- placeholder?: string;
203
- };
204
- }) | ({
205
- type: "Date";
206
- } & {
207
- fieldset?: string | null | undefined;
208
- config?: {
209
- label?: string | null | undefined;
210
- placeholder?: string;
211
- default?: string;
212
- };
213
- }) | ({
214
- type: "Embed";
215
- } & {
216
- fieldset?: string | null | undefined;
217
- config?: {
218
- label?: string | null | undefined;
219
- placeholder?: string;
220
- useAsTitle?: boolean;
221
- };
222
- }) | ({
223
- type: "GeoPoint";
224
- } & {
225
- fieldset?: string | null | undefined;
226
- config?: {
227
- label?: string | null | undefined;
228
- };
229
- }) | ({
230
- type: "Image";
231
- } & {
232
- fieldset?: string | null | undefined;
233
- config?: {
234
- label?: string | null | undefined;
235
- placeholder?: string;
236
- constraint?: {
237
- width?: number | null;
238
- height?: number | null;
239
- };
240
- thumbnails?: readonly ({
241
- name: string;
242
- } & {
243
- width?: number | null;
244
- height?: number | null;
245
- })[];
246
- };
247
- }) | ({
248
- type: "IntegrationFields";
249
- } & {
250
- fieldset?: string | null | undefined;
251
- config?: {
252
- label?: string | null | undefined;
253
- placeholder?: string;
254
- catalog?: string;
255
- };
256
- }) | ({
257
- type: "Link";
258
- } & {
259
- fieldset?: string | null | undefined;
260
- config?: {
261
- label?: string | null | undefined;
262
- useAsTitle?: boolean;
263
- placeholder?: string;
264
- select?: "media" | "document" | "web" | null;
265
- customtypes?: readonly string[];
266
- masks?: readonly string[];
267
- tags?: readonly string[];
268
- allowTargetBlank?: boolean;
269
- };
270
- }) | ({
271
- type: "Number";
272
- } & {
273
- fieldset?: string | null | undefined;
274
- config?: {
275
- label?: string | null | undefined;
276
- placeholder?: string;
277
- min?: number;
278
- max?: number;
279
- step?: number;
280
- };
281
- }) | ({
282
- type: "Range";
283
- } & {
284
- fieldset?: string | null | undefined;
285
- config?: {
286
- label?: string | null | undefined;
287
- placeholder?: string;
288
- min?: number;
289
- max?: number;
290
- step?: number;
291
- };
292
- }) | ({
293
- type: "StructuredText";
294
- } & {
295
- fieldset?: string | null | undefined;
296
- config?: {
297
- label?: string | null | undefined;
298
- placeholder?: string;
299
- useAsTitle?: boolean;
300
- single?: string;
301
- multi?: string;
302
- imageConstraint?: {
303
- width?: number | null;
304
- height?: number | null;
305
- };
306
- labels?: readonly string[];
307
- allowTargetBlank?: boolean;
308
- };
309
- }) | ({
310
- type: "Select";
311
- } & {
312
- fieldset?: string | null | undefined;
313
- config?: {
314
- label?: string | null | undefined;
315
- placeholder?: string;
316
- default_value?: string;
317
- options?: readonly string[];
318
- };
319
- }) | ({
320
- type: "Separator";
321
- } & {
322
- config?: {
323
- label?: string | null | undefined;
324
- };
325
- }) | ({
326
- type: "Text";
327
- } & {
328
- fieldset?: string | null | undefined;
329
- config?: {
330
- label?: string | null | undefined;
331
- useAsTitle?: boolean;
332
- placeholder?: string;
333
- };
334
- }) | ({
335
- type: "Timestamp";
336
- } & {
337
- fieldset?: string | null | undefined;
338
- config?: {
339
- label?: string | null | undefined;
340
- placeholder?: string;
341
- default?: string;
342
- };
343
- });
344
- };
345
- };
346
- }) | ({
177
+ }) | import("./widgets").Group | ({
347
178
  type: "Choice" | "Slices";
348
179
  } & {
349
180
  fieldset?: string | null | undefined;
@@ -513,235 +344,66 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
513
344
  placeholder?: string;
514
345
  default?: string;
515
346
  };
516
- }) | ({
517
- type: "Group";
347
+ }) | import("./widgets").Group | ({
348
+ type: "Slice";
518
349
  } & {
519
350
  fieldset?: string | null | undefined;
520
- icon?: string;
521
351
  description?: string;
522
- config?: {
523
- label?: string | null | undefined;
524
- repeat?: boolean;
525
- fields?: {
526
- [x: string]: ({
527
- type: "Boolean";
528
- } & {
529
- config?: {
530
- label?: string | null | undefined;
531
- default_value?: boolean;
532
- placeholder_true?: string;
533
- placeholder_false?: string;
534
- };
535
- }) | ({
536
- type: "Color";
537
- } & {
538
- fieldset?: string | null | undefined;
539
- config?: {
540
- label?: string | null | undefined;
541
- placeholder?: string;
542
- };
543
- }) | ({
544
- type: "Date";
545
- } & {
546
- fieldset?: string | null | undefined;
547
- config?: {
548
- label?: string | null | undefined;
549
- placeholder?: string;
550
- default?: string;
551
- };
552
- }) | ({
553
- type: "Embed";
554
- } & {
555
- fieldset?: string | null | undefined;
556
- config?: {
557
- label?: string | null | undefined;
558
- placeholder?: string;
559
- useAsTitle?: boolean;
560
- };
561
- }) | ({
562
- type: "GeoPoint";
563
- } & {
564
- fieldset?: string | null | undefined;
565
- config?: {
566
- label?: string | null | undefined;
567
- };
568
- }) | ({
569
- type: "Image";
570
- } & {
571
- fieldset?: string | null | undefined;
572
- config?: {
573
- label?: string | null | undefined;
574
- placeholder?: string;
575
- constraint?: {
576
- width?: number | null;
577
- height?: number | null;
578
- };
579
- thumbnails?: readonly ({
580
- name: string;
581
- } & {
582
- width?: number | null;
583
- height?: number | null;
584
- })[];
585
- };
586
- }) | ({
587
- type: "IntegrationFields";
588
- } & {
589
- fieldset?: string | null | undefined;
590
- config?: {
591
- label?: string | null | undefined;
592
- placeholder?: string;
593
- catalog?: string;
594
- };
595
- }) | ({
596
- type: "Link";
597
- } & {
598
- fieldset?: string | null | undefined;
599
- config?: {
600
- label?: string | null | undefined;
601
- useAsTitle?: boolean;
602
- placeholder?: string;
603
- select?: "media" | "document" | "web" | null;
604
- customtypes?: readonly string[];
605
- masks?: readonly string[];
606
- tags?: readonly string[];
607
- allowTargetBlank?: boolean;
608
- };
609
- }) | ({
610
- type: "Number";
611
- } & {
612
- fieldset?: string | null | undefined;
613
- config?: {
614
- label?: string | null | undefined;
615
- placeholder?: string;
616
- min?: number;
617
- max?: number;
618
- step?: number;
619
- };
620
- }) | ({
621
- type: "Range";
622
- } & {
623
- fieldset?: string | null | undefined;
624
- config?: {
625
- label?: string | null | undefined;
626
- placeholder?: string;
627
- min?: number;
628
- max?: number;
629
- step?: number;
630
- };
631
- }) | ({
632
- type: "StructuredText";
633
- } & {
634
- fieldset?: string | null | undefined;
635
- config?: {
636
- label?: string | null | undefined;
637
- placeholder?: string;
638
- useAsTitle?: boolean;
639
- single?: string;
640
- multi?: string;
641
- imageConstraint?: {
642
- width?: number | null;
643
- height?: number | null;
644
- };
645
- labels?: readonly string[];
646
- allowTargetBlank?: boolean;
647
- };
648
- }) | ({
649
- type: "Select";
650
- } & {
651
- fieldset?: string | null | undefined;
652
- config?: {
653
- label?: string | null | undefined;
654
- placeholder?: string;
655
- default_value?: string;
656
- options?: readonly string[];
657
- };
658
- }) | ({
659
- type: "Separator";
660
- } & {
661
- config?: {
662
- label?: string | null | undefined;
663
- };
664
- }) | ({
665
- type: "Text";
666
- } & {
667
- fieldset?: string | null | undefined;
668
- config?: {
669
- label?: string | null | undefined;
670
- useAsTitle?: boolean;
671
- placeholder?: string;
672
- };
673
- }) | ({
674
- type: "Timestamp";
675
- } & {
676
- fieldset?: string | null | undefined;
677
- config?: {
678
- label?: string | null | undefined;
679
- placeholder?: string;
680
- default?: string;
681
- };
682
- });
683
- };
684
- };
685
- }) | ({
686
- type: "Slice";
687
- } & {
688
- fieldset?: string | null | undefined;
689
- description?: string;
690
- icon?: string;
691
- display?: string;
692
- "non-repeat"?: {
693
- [x: string]: ({
694
- type: "Boolean";
695
- } & {
696
- config?: {
697
- label?: string | null | undefined;
698
- default_value?: boolean;
699
- placeholder_true?: string;
700
- placeholder_false?: string;
701
- };
702
- }) | ({
703
- type: "Color";
704
- } & {
705
- fieldset?: string | null | undefined;
706
- config?: {
707
- label?: string | null | undefined;
708
- placeholder?: string;
709
- };
710
- }) | ({
711
- type: "Date";
712
- } & {
713
- fieldset?: string | null | undefined;
714
- config?: {
715
- label?: string | null | undefined;
716
- placeholder?: string;
717
- default?: string;
718
- };
719
- }) | ({
720
- type: "Embed";
721
- } & {
722
- fieldset?: string | null | undefined;
723
- config?: {
724
- label?: string | null | undefined;
725
- placeholder?: string;
726
- useAsTitle?: boolean;
727
- };
728
- }) | ({
729
- type: "GeoPoint";
730
- } & {
731
- fieldset?: string | null | undefined;
732
- config?: {
733
- label?: string | null | undefined;
734
- };
735
- }) | ({
736
- type: "Image";
737
- } & {
738
- fieldset?: string | null | undefined;
739
- config?: {
740
- label?: string | null | undefined;
741
- placeholder?: string;
742
- constraint?: {
743
- width?: number | null;
744
- height?: number | null;
352
+ icon?: string;
353
+ display?: string;
354
+ "non-repeat"?: {
355
+ [x: string]: ({
356
+ type: "Boolean";
357
+ } & {
358
+ config?: {
359
+ label?: string | null | undefined;
360
+ default_value?: boolean;
361
+ placeholder_true?: string;
362
+ placeholder_false?: string;
363
+ };
364
+ }) | ({
365
+ type: "Color";
366
+ } & {
367
+ fieldset?: string | null | undefined;
368
+ config?: {
369
+ label?: string | null | undefined;
370
+ placeholder?: string;
371
+ };
372
+ }) | ({
373
+ type: "Date";
374
+ } & {
375
+ fieldset?: string | null | undefined;
376
+ config?: {
377
+ label?: string | null | undefined;
378
+ placeholder?: string;
379
+ default?: string;
380
+ };
381
+ }) | ({
382
+ type: "Embed";
383
+ } & {
384
+ fieldset?: string | null | undefined;
385
+ config?: {
386
+ label?: string | null | undefined;
387
+ placeholder?: string;
388
+ useAsTitle?: boolean;
389
+ };
390
+ }) | ({
391
+ type: "GeoPoint";
392
+ } & {
393
+ fieldset?: string | null | undefined;
394
+ config?: {
395
+ label?: string | null | undefined;
396
+ };
397
+ }) | ({
398
+ type: "Image";
399
+ } & {
400
+ fieldset?: string | null | undefined;
401
+ config?: {
402
+ label?: string | null | undefined;
403
+ placeholder?: string;
404
+ constraint?: {
405
+ width?: number | null;
406
+ height?: number | null;
745
407
  };
746
408
  thumbnails?: readonly ({
747
409
  name: string;
@@ -1180,176 +842,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1180
842
  placeholder?: string;
1181
843
  default?: string;
1182
844
  };
1183
- }) | ({
1184
- type: "Group";
1185
- } & {
1186
- fieldset?: string | null | undefined;
1187
- icon?: string;
1188
- description?: string;
1189
- config?: {
1190
- label?: string | null | undefined;
1191
- repeat?: boolean;
1192
- fields?: {
1193
- [x: string]: ({
1194
- type: "Boolean";
1195
- } & {
1196
- config?: {
1197
- label?: string | null | undefined;
1198
- default_value?: boolean;
1199
- placeholder_true?: string;
1200
- placeholder_false?: string;
1201
- };
1202
- }) | ({
1203
- type: "Color";
1204
- } & {
1205
- fieldset?: string | null | undefined;
1206
- config?: {
1207
- label?: string | null | undefined;
1208
- placeholder?: string;
1209
- };
1210
- }) | ({
1211
- type: "Date";
1212
- } & {
1213
- fieldset?: string | null | undefined;
1214
- config?: {
1215
- label?: string | null | undefined;
1216
- placeholder?: string;
1217
- default?: string;
1218
- };
1219
- }) | ({
1220
- type: "Embed";
1221
- } & {
1222
- fieldset?: string | null | undefined;
1223
- config?: {
1224
- label?: string | null | undefined;
1225
- placeholder?: string;
1226
- useAsTitle?: boolean;
1227
- };
1228
- }) | ({
1229
- type: "GeoPoint";
1230
- } & {
1231
- fieldset?: string | null | undefined;
1232
- config?: {
1233
- label?: string | null | undefined;
1234
- };
1235
- }) | ({
1236
- type: "Image";
1237
- } & {
1238
- fieldset?: string | null | undefined;
1239
- config?: {
1240
- label?: string | null | undefined;
1241
- placeholder?: string;
1242
- constraint?: {
1243
- width?: number | null;
1244
- height?: number | null;
1245
- };
1246
- thumbnails?: readonly ({
1247
- name: string;
1248
- } & {
1249
- width?: number | null;
1250
- height?: number | null;
1251
- })[];
1252
- };
1253
- }) | ({
1254
- type: "IntegrationFields";
1255
- } & {
1256
- fieldset?: string | null | undefined;
1257
- config?: {
1258
- label?: string | null | undefined;
1259
- placeholder?: string;
1260
- catalog?: string;
1261
- };
1262
- }) | ({
1263
- type: "Link";
1264
- } & {
1265
- fieldset?: string | null | undefined;
1266
- config?: {
1267
- label?: string | null | undefined;
1268
- useAsTitle?: boolean;
1269
- placeholder?: string;
1270
- select?: "media" | "document" | "web" | null;
1271
- customtypes?: readonly string[];
1272
- masks?: readonly string[];
1273
- tags?: readonly string[];
1274
- allowTargetBlank?: boolean;
1275
- };
1276
- }) | ({
1277
- type: "Number";
1278
- } & {
1279
- fieldset?: string | null | undefined;
1280
- config?: {
1281
- label?: string | null | undefined;
1282
- placeholder?: string;
1283
- min?: number;
1284
- max?: number;
1285
- step?: number;
1286
- };
1287
- }) | ({
1288
- type: "Range";
1289
- } & {
1290
- fieldset?: string | null | undefined;
1291
- config?: {
1292
- label?: string | null | undefined;
1293
- placeholder?: string;
1294
- min?: number;
1295
- max?: number;
1296
- step?: number;
1297
- };
1298
- }) | ({
1299
- type: "StructuredText";
1300
- } & {
1301
- fieldset?: string | null | undefined;
1302
- config?: {
1303
- label?: string | null | undefined;
1304
- placeholder?: string;
1305
- useAsTitle?: boolean;
1306
- single?: string;
1307
- multi?: string;
1308
- imageConstraint?: {
1309
- width?: number | null;
1310
- height?: number | null;
1311
- };
1312
- labels?: readonly string[];
1313
- allowTargetBlank?: boolean;
1314
- };
1315
- }) | ({
1316
- type: "Select";
1317
- } & {
1318
- fieldset?: string | null | undefined;
1319
- config?: {
1320
- label?: string | null | undefined;
1321
- placeholder?: string;
1322
- default_value?: string;
1323
- options?: readonly string[];
1324
- };
1325
- }) | ({
1326
- type: "Separator";
1327
- } & {
1328
- config?: {
1329
- label?: string | null | undefined;
1330
- };
1331
- }) | ({
1332
- type: "Text";
1333
- } & {
1334
- fieldset?: string | null | undefined;
1335
- config?: {
1336
- label?: string | null | undefined;
1337
- useAsTitle?: boolean;
1338
- placeholder?: string;
1339
- };
1340
- }) | ({
1341
- type: "Timestamp";
1342
- } & {
1343
- fieldset?: string | null | undefined;
1344
- config?: {
1345
- label?: string | null | undefined;
1346
- placeholder?: string;
1347
- default?: string;
1348
- };
1349
- });
1350
- };
1351
- };
1352
- });
845
+ }) | import("./widgets").Group;
1353
846
  };
1354
847
  items?: {
1355
848
  [x: string]: ({
@@ -1700,16 +1193,20 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1700
1193
  placeholder?: string;
1701
1194
  default?: string;
1702
1195
  };
1703
- }) | ({
1704
- type: "Group";
1196
+ }) | import("./widgets").Group | ({
1197
+ type: "Choice" | "Slices";
1705
1198
  } & {
1706
1199
  fieldset?: string | null | undefined;
1707
- icon?: string;
1708
- description?: string;
1709
1200
  config?: {
1710
1201
  label?: string | null | undefined;
1711
- repeat?: boolean;
1712
- fields?: {
1202
+ labels?: {
1203
+ [x: string]: readonly ({
1204
+ name: string;
1205
+ } & {
1206
+ display?: string;
1207
+ })[];
1208
+ } | null;
1209
+ choices?: {
1713
1210
  [x: string]: ({
1714
1211
  type: "Boolean";
1715
1212
  } & {
@@ -1866,349 +1363,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1866
1363
  placeholder?: string;
1867
1364
  default?: string;
1868
1365
  };
1869
- });
1870
- };
1871
- };
1872
- }) | ({
1873
- type: "Choice" | "Slices";
1874
- } & {
1875
- fieldset?: string | null | undefined;
1876
- config?: {
1877
- label?: string | null | undefined;
1878
- labels?: {
1879
- [x: string]: readonly ({
1880
- name: string;
1881
- } & {
1882
- display?: string;
1883
- })[];
1884
- } | null;
1885
- choices?: {
1886
- [x: string]: ({
1887
- type: "Boolean";
1888
- } & {
1889
- config?: {
1890
- label?: string | null | undefined;
1891
- default_value?: boolean;
1892
- placeholder_true?: string;
1893
- placeholder_false?: string;
1894
- };
1895
- }) | ({
1896
- type: "Color";
1897
- } & {
1898
- fieldset?: string | null | undefined;
1899
- config?: {
1900
- label?: string | null | undefined;
1901
- placeholder?: string;
1902
- };
1903
- }) | ({
1904
- type: "Date";
1905
- } & {
1906
- fieldset?: string | null | undefined;
1907
- config?: {
1908
- label?: string | null | undefined;
1909
- placeholder?: string;
1910
- default?: string;
1911
- };
1912
- }) | ({
1913
- type: "Embed";
1914
- } & {
1915
- fieldset?: string | null | undefined;
1916
- config?: {
1917
- label?: string | null | undefined;
1918
- placeholder?: string;
1919
- useAsTitle?: boolean;
1920
- };
1921
- }) | ({
1922
- type: "GeoPoint";
1923
- } & {
1924
- fieldset?: string | null | undefined;
1925
- config?: {
1926
- label?: string | null | undefined;
1927
- };
1928
- }) | ({
1929
- type: "Image";
1930
- } & {
1931
- fieldset?: string | null | undefined;
1932
- config?: {
1933
- label?: string | null | undefined;
1934
- placeholder?: string;
1935
- constraint?: {
1936
- width?: number | null;
1937
- height?: number | null;
1938
- };
1939
- thumbnails?: readonly ({
1940
- name: string;
1941
- } & {
1942
- width?: number | null;
1943
- height?: number | null;
1944
- })[];
1945
- };
1946
- }) | ({
1947
- type: "IntegrationFields";
1948
- } & {
1949
- fieldset?: string | null | undefined;
1950
- config?: {
1951
- label?: string | null | undefined;
1952
- placeholder?: string;
1953
- catalog?: string;
1954
- };
1955
- }) | ({
1956
- type: "Link";
1957
- } & {
1958
- fieldset?: string | null | undefined;
1959
- config?: {
1960
- label?: string | null | undefined;
1961
- useAsTitle?: boolean;
1962
- placeholder?: string;
1963
- select?: "media" | "document" | "web" | null;
1964
- customtypes?: readonly string[];
1965
- masks?: readonly string[];
1966
- tags?: readonly string[];
1967
- allowTargetBlank?: boolean;
1968
- };
1969
- }) | ({
1970
- type: "Number";
1971
- } & {
1972
- fieldset?: string | null | undefined;
1973
- config?: {
1974
- label?: string | null | undefined;
1975
- placeholder?: string;
1976
- min?: number;
1977
- max?: number;
1978
- step?: number;
1979
- };
1980
- }) | ({
1981
- type: "Range";
1982
- } & {
1983
- fieldset?: string | null | undefined;
1984
- config?: {
1985
- label?: string | null | undefined;
1986
- placeholder?: string;
1987
- min?: number;
1988
- max?: number;
1989
- step?: number;
1990
- };
1991
- }) | ({
1992
- type: "StructuredText";
1993
- } & {
1994
- fieldset?: string | null | undefined;
1995
- config?: {
1996
- label?: string | null | undefined;
1997
- placeholder?: string;
1998
- useAsTitle?: boolean;
1999
- single?: string;
2000
- multi?: string;
2001
- imageConstraint?: {
2002
- width?: number | null;
2003
- height?: number | null;
2004
- };
2005
- labels?: readonly string[];
2006
- allowTargetBlank?: boolean;
2007
- };
2008
- }) | ({
2009
- type: "Select";
2010
- } & {
2011
- fieldset?: string | null | undefined;
2012
- config?: {
2013
- label?: string | null | undefined;
2014
- placeholder?: string;
2015
- default_value?: string;
2016
- options?: readonly string[];
2017
- };
2018
- }) | ({
2019
- type: "Separator";
2020
- } & {
2021
- config?: {
2022
- label?: string | null | undefined;
2023
- };
2024
- }) | ({
2025
- type: "Text";
2026
- } & {
2027
- fieldset?: string | null | undefined;
2028
- config?: {
2029
- label?: string | null | undefined;
2030
- useAsTitle?: boolean;
2031
- placeholder?: string;
2032
- };
2033
- }) | ({
2034
- type: "Timestamp";
2035
- } & {
2036
- fieldset?: string | null | undefined;
2037
- config?: {
2038
- label?: string | null | undefined;
2039
- placeholder?: string;
2040
- default?: string;
2041
- };
2042
- }) | ({
2043
- type: "Group";
2044
- } & {
2045
- fieldset?: string | null | undefined;
2046
- icon?: string;
2047
- description?: string;
2048
- config?: {
2049
- label?: string | null | undefined;
2050
- repeat?: boolean;
2051
- fields?: {
2052
- [x: string]: ({
2053
- type: "Boolean";
2054
- } & {
2055
- config?: {
2056
- label?: string | null | undefined;
2057
- default_value?: boolean;
2058
- placeholder_true?: string;
2059
- placeholder_false?: string;
2060
- };
2061
- }) | ({
2062
- type: "Color";
2063
- } & {
2064
- fieldset?: string | null | undefined;
2065
- config?: {
2066
- label?: string | null | undefined;
2067
- placeholder?: string;
2068
- };
2069
- }) | ({
2070
- type: "Date";
2071
- } & {
2072
- fieldset?: string | null | undefined;
2073
- config?: {
2074
- label?: string | null | undefined;
2075
- placeholder?: string;
2076
- default?: string;
2077
- };
2078
- }) | ({
2079
- type: "Embed";
2080
- } & {
2081
- fieldset?: string | null | undefined;
2082
- config?: {
2083
- label?: string | null | undefined;
2084
- placeholder?: string;
2085
- useAsTitle?: boolean;
2086
- };
2087
- }) | ({
2088
- type: "GeoPoint";
2089
- } & {
2090
- fieldset?: string | null | undefined;
2091
- config?: {
2092
- label?: string | null | undefined;
2093
- };
2094
- }) | ({
2095
- type: "Image";
2096
- } & {
2097
- fieldset?: string | null | undefined;
2098
- config?: {
2099
- label?: string | null | undefined;
2100
- placeholder?: string;
2101
- constraint?: {
2102
- width?: number | null;
2103
- height?: number | null;
2104
- };
2105
- thumbnails?: readonly ({
2106
- name: string;
2107
- } & {
2108
- width?: number | null;
2109
- height?: number | null;
2110
- })[];
2111
- };
2112
- }) | ({
2113
- type: "IntegrationFields";
2114
- } & {
2115
- fieldset?: string | null | undefined;
2116
- config?: {
2117
- label?: string | null | undefined;
2118
- placeholder?: string;
2119
- catalog?: string;
2120
- };
2121
- }) | ({
2122
- type: "Link";
2123
- } & {
2124
- fieldset?: string | null | undefined;
2125
- config?: {
2126
- label?: string | null | undefined;
2127
- useAsTitle?: boolean;
2128
- placeholder?: string;
2129
- select?: "media" | "document" | "web" | null;
2130
- customtypes?: readonly string[];
2131
- masks?: readonly string[];
2132
- tags?: readonly string[];
2133
- allowTargetBlank?: boolean;
2134
- };
2135
- }) | ({
2136
- type: "Number";
2137
- } & {
2138
- fieldset?: string | null | undefined;
2139
- config?: {
2140
- label?: string | null | undefined;
2141
- placeholder?: string;
2142
- min?: number;
2143
- max?: number;
2144
- step?: number;
2145
- };
2146
- }) | ({
2147
- type: "Range";
2148
- } & {
2149
- fieldset?: string | null | undefined;
2150
- config?: {
2151
- label?: string | null | undefined;
2152
- placeholder?: string;
2153
- min?: number;
2154
- max?: number;
2155
- step?: number;
2156
- };
2157
- }) | ({
2158
- type: "StructuredText";
2159
- } & {
2160
- fieldset?: string | null | undefined;
2161
- config?: {
2162
- label?: string | null | undefined;
2163
- placeholder?: string;
2164
- useAsTitle?: boolean;
2165
- single?: string;
2166
- multi?: string;
2167
- imageConstraint?: {
2168
- width?: number | null;
2169
- height?: number | null;
2170
- };
2171
- labels?: readonly string[];
2172
- allowTargetBlank?: boolean;
2173
- };
2174
- }) | ({
2175
- type: "Select";
2176
- } & {
2177
- fieldset?: string | null | undefined;
2178
- config?: {
2179
- label?: string | null | undefined;
2180
- placeholder?: string;
2181
- default_value?: string;
2182
- options?: readonly string[];
2183
- };
2184
- }) | ({
2185
- type: "Separator";
2186
- } & {
2187
- config?: {
2188
- label?: string | null | undefined;
2189
- };
2190
- }) | ({
2191
- type: "Text";
2192
- } & {
2193
- fieldset?: string | null | undefined;
2194
- config?: {
2195
- label?: string | null | undefined;
2196
- useAsTitle?: boolean;
2197
- placeholder?: string;
2198
- };
2199
- }) | ({
2200
- type: "Timestamp";
2201
- } & {
2202
- fieldset?: string | null | undefined;
2203
- config?: {
2204
- label?: string | null | undefined;
2205
- placeholder?: string;
2206
- default?: string;
2207
- };
2208
- });
2209
- };
2210
- };
2211
- }) | ({
1366
+ }) | import("./widgets").Group | ({
2212
1367
  type: "Slice";
2213
1368
  } & {
2214
1369
  fieldset?: string | null | undefined;