@prismicio/types-internal 2.4.0-alpha.1 → 2.4.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 (41) hide show
  1. package/lib/content/Document.d.ts +0 -72
  2. package/lib/content/fields/GroupContent.d.ts +0 -15
  3. package/lib/content/fields/WidgetContent.d.ts +0 -72
  4. package/lib/content/fields/nestable/ImageContent.d.ts +0 -9
  5. package/lib/content/fields/nestable/ImageContent.js +0 -1
  6. package/lib/content/fields/nestable/NestableContent.d.ts +0 -9
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -4
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -4
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -18
  10. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -6
  11. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -18
  12. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -18
  13. package/lib/content/fields/slices/Slice/index.d.ts +0 -36
  14. package/lib/content/fields/slices/SliceItem.d.ts +0 -36
  15. package/lib/content/fields/slices/SlicesContent.d.ts +0 -54
  16. package/lib/customtypes/CustomType.d.ts +328 -14
  17. package/lib/customtypes/Section.d.ts +328 -14
  18. package/lib/customtypes/diff/SharedSlice.d.ts +656 -4
  19. package/lib/customtypes/diff/Variation.d.ts +659 -5
  20. package/lib/customtypes/diff/Variation.js +3 -1
  21. package/lib/customtypes/widgets/Group.d.ts +0 -2
  22. package/lib/customtypes/widgets/Widget.d.ts +328 -16
  23. package/lib/customtypes/widgets/nestable/Image.d.ts +0 -2
  24. package/lib/customtypes/widgets/nestable/Image.js +0 -1
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -1
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -2
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -2
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +648 -4
  29. package/lib/customtypes/widgets/slices/SharedSlice.js +2 -0
  30. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
  31. package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
  32. package/lib/customtypes/widgets/slices/Slices.d.ts +656 -24
  33. package/lib/customtypes/widgets/slices/index.d.ts +1 -0
  34. package/lib/customtypes/widgets/slices/index.js +1 -0
  35. package/package.json +1 -1
  36. package/src/content/fields/nestable/ImageContent.ts +0 -1
  37. package/src/customtypes/diff/Variation.ts +10 -6
  38. package/src/customtypes/widgets/nestable/Image.ts +0 -1
  39. package/src/customtypes/widgets/slices/SharedSlice.ts +2 -0
  40. package/src/customtypes/widgets/slices/SliceWidget.ts +9 -0
  41. package/src/customtypes/widgets/slices/index.ts +1 -0
@@ -79,7 +79,6 @@ export declare const SliceComparator: {
79
79
  width?: number | null;
80
80
  height?: number | null;
81
81
  })[];
82
- allowCaption?: boolean;
83
82
  };
84
83
  }) | ({
85
84
  type: "IntegrationFields";
@@ -239,7 +238,6 @@ export declare const SliceComparator: {
239
238
  width?: number | null;
240
239
  height?: number | null;
241
240
  })[];
242
- allowCaption?: boolean;
243
241
  };
244
242
  }) | ({
245
243
  type: "IntegrationFields";
@@ -339,6 +337,334 @@ export declare const SliceComparator: {
339
337
  };
340
338
  });
341
339
  };
340
+ fields?: {
341
+ [x: string]: ({
342
+ type: "Boolean";
343
+ } & {
344
+ config?: {
345
+ label?: string | null | undefined;
346
+ default_value?: boolean;
347
+ placeholder_true?: string;
348
+ placeholder_false?: string;
349
+ };
350
+ }) | ({
351
+ type: "Color";
352
+ } & {
353
+ fieldset?: string | null | undefined;
354
+ config?: {
355
+ label?: string | null | undefined;
356
+ placeholder?: string;
357
+ };
358
+ }) | ({
359
+ type: "Date";
360
+ } & {
361
+ fieldset?: string | null | undefined;
362
+ config?: {
363
+ label?: string | null | undefined;
364
+ placeholder?: string;
365
+ default?: string;
366
+ };
367
+ }) | ({
368
+ type: "Embed";
369
+ } & {
370
+ fieldset?: string | null | undefined;
371
+ config?: {
372
+ label?: string | null | undefined;
373
+ placeholder?: string;
374
+ useAsTitle?: boolean;
375
+ };
376
+ }) | ({
377
+ type: "GeoPoint";
378
+ } & {
379
+ fieldset?: string | null | undefined;
380
+ config?: {
381
+ label?: string | null | undefined;
382
+ };
383
+ }) | ({
384
+ type: "Image";
385
+ } & {
386
+ fieldset?: string | null | undefined;
387
+ config?: {
388
+ label?: string | null | undefined;
389
+ placeholder?: string;
390
+ constraint?: {
391
+ width?: number | null;
392
+ height?: number | null;
393
+ };
394
+ thumbnails?: readonly ({
395
+ name: string;
396
+ } & {
397
+ width?: number | null;
398
+ height?: number | null;
399
+ })[];
400
+ };
401
+ }) | ({
402
+ type: "IntegrationFields";
403
+ } & {
404
+ fieldset?: string | null | undefined;
405
+ config?: {
406
+ label?: string | null | undefined;
407
+ placeholder?: string;
408
+ catalog?: string;
409
+ };
410
+ }) | ({
411
+ type: "Link";
412
+ } & {
413
+ fieldset?: string | null | undefined;
414
+ config?: {
415
+ label?: string | null | undefined;
416
+ useAsTitle?: boolean;
417
+ placeholder?: string;
418
+ select?: "media" | "document" | "web" | null;
419
+ customtypes?: readonly string[];
420
+ masks?: readonly string[];
421
+ tags?: readonly string[];
422
+ allowTargetBlank?: boolean;
423
+ };
424
+ }) | ({
425
+ type: "Number";
426
+ } & {
427
+ fieldset?: string | null | undefined;
428
+ config?: {
429
+ label?: string | null | undefined;
430
+ placeholder?: string;
431
+ min?: number;
432
+ max?: number;
433
+ step?: number;
434
+ };
435
+ }) | ({
436
+ type: "Range";
437
+ } & {
438
+ fieldset?: string | null | undefined;
439
+ config?: {
440
+ label?: string | null | undefined;
441
+ placeholder?: string;
442
+ min?: number;
443
+ max?: number;
444
+ step?: number;
445
+ };
446
+ }) | ({
447
+ type: "StructuredText";
448
+ } & {
449
+ fieldset?: string | null | undefined;
450
+ config?: {
451
+ label?: string | null | undefined;
452
+ placeholder?: string;
453
+ useAsTitle?: boolean;
454
+ single?: string;
455
+ multi?: string;
456
+ imageConstraint?: {
457
+ width?: number | null;
458
+ height?: number | null;
459
+ };
460
+ labels?: readonly string[];
461
+ allowTargetBlank?: boolean;
462
+ };
463
+ }) | ({
464
+ type: "Select";
465
+ } & {
466
+ fieldset?: string | null | undefined;
467
+ config?: {
468
+ label?: string | null | undefined;
469
+ placeholder?: string;
470
+ default_value?: string;
471
+ options?: readonly string[];
472
+ };
473
+ }) | ({
474
+ type: "Separator";
475
+ } & {
476
+ config?: {
477
+ label?: string | null | undefined;
478
+ };
479
+ }) | ({
480
+ type: "Text";
481
+ } & {
482
+ fieldset?: string | null | undefined;
483
+ config?: {
484
+ label?: string | null | undefined;
485
+ useAsTitle?: boolean;
486
+ placeholder?: string;
487
+ };
488
+ }) | ({
489
+ type: "Timestamp";
490
+ } & {
491
+ fieldset?: string | null | undefined;
492
+ config?: {
493
+ label?: string | null | undefined;
494
+ placeholder?: string;
495
+ default?: string;
496
+ };
497
+ }) | ({
498
+ type: "Group";
499
+ } & {
500
+ fieldset?: string | null | undefined;
501
+ icon?: string;
502
+ description?: string;
503
+ config?: {
504
+ label?: string | null | undefined;
505
+ repeat?: boolean;
506
+ fields?: {
507
+ [x: string]: ({
508
+ type: "Boolean";
509
+ } & {
510
+ config?: {
511
+ label?: string | null | undefined;
512
+ default_value?: boolean;
513
+ placeholder_true?: string;
514
+ placeholder_false?: string;
515
+ };
516
+ }) | ({
517
+ type: "Color";
518
+ } & {
519
+ fieldset?: string | null | undefined;
520
+ config?: {
521
+ label?: string | null | undefined;
522
+ placeholder?: string;
523
+ };
524
+ }) | ({
525
+ type: "Date";
526
+ } & {
527
+ fieldset?: string | null | undefined;
528
+ config?: {
529
+ label?: string | null | undefined;
530
+ placeholder?: string;
531
+ default?: string;
532
+ };
533
+ }) | ({
534
+ type: "Embed";
535
+ } & {
536
+ fieldset?: string | null | undefined;
537
+ config?: {
538
+ label?: string | null | undefined;
539
+ placeholder?: string;
540
+ useAsTitle?: boolean;
541
+ };
542
+ }) | ({
543
+ type: "GeoPoint";
544
+ } & {
545
+ fieldset?: string | null | undefined;
546
+ config?: {
547
+ label?: string | null | undefined;
548
+ };
549
+ }) | ({
550
+ type: "Image";
551
+ } & {
552
+ fieldset?: string | null | undefined;
553
+ config?: {
554
+ label?: string | null | undefined;
555
+ placeholder?: string;
556
+ constraint?: {
557
+ width?: number | null;
558
+ height?: number | null;
559
+ };
560
+ thumbnails?: readonly ({
561
+ name: string;
562
+ } & {
563
+ width?: number | null;
564
+ height?: number | null;
565
+ })[];
566
+ };
567
+ }) | ({
568
+ type: "IntegrationFields";
569
+ } & {
570
+ fieldset?: string | null | undefined;
571
+ config?: {
572
+ label?: string | null | undefined;
573
+ placeholder?: string;
574
+ catalog?: string;
575
+ };
576
+ }) | ({
577
+ type: "Link";
578
+ } & {
579
+ fieldset?: string | null | undefined;
580
+ config?: {
581
+ label?: string | null | undefined;
582
+ useAsTitle?: boolean;
583
+ placeholder?: string;
584
+ select?: "media" | "document" | "web" | null;
585
+ customtypes?: readonly string[];
586
+ masks?: readonly string[];
587
+ tags?: readonly string[];
588
+ allowTargetBlank?: boolean;
589
+ };
590
+ }) | ({
591
+ type: "Number";
592
+ } & {
593
+ fieldset?: string | null | undefined;
594
+ config?: {
595
+ label?: string | null | undefined;
596
+ placeholder?: string;
597
+ min?: number;
598
+ max?: number;
599
+ step?: number;
600
+ };
601
+ }) | ({
602
+ type: "Range";
603
+ } & {
604
+ fieldset?: string | null | undefined;
605
+ config?: {
606
+ label?: string | null | undefined;
607
+ placeholder?: string;
608
+ min?: number;
609
+ max?: number;
610
+ step?: number;
611
+ };
612
+ }) | ({
613
+ type: "StructuredText";
614
+ } & {
615
+ fieldset?: string | null | undefined;
616
+ config?: {
617
+ label?: string | null | undefined;
618
+ placeholder?: string;
619
+ useAsTitle?: boolean;
620
+ single?: string;
621
+ multi?: string;
622
+ imageConstraint?: {
623
+ width?: number | null;
624
+ height?: number | null;
625
+ };
626
+ labels?: readonly string[];
627
+ allowTargetBlank?: boolean;
628
+ };
629
+ }) | ({
630
+ type: "Select";
631
+ } & {
632
+ fieldset?: string | null | undefined;
633
+ config?: {
634
+ label?: string | null | undefined;
635
+ placeholder?: string;
636
+ default_value?: string;
637
+ options?: readonly string[];
638
+ };
639
+ }) | ({
640
+ type: "Separator";
641
+ } & {
642
+ config?: {
643
+ label?: string | null | undefined;
644
+ };
645
+ }) | ({
646
+ type: "Text";
647
+ } & {
648
+ fieldset?: string | null | undefined;
649
+ config?: {
650
+ label?: string | null | undefined;
651
+ useAsTitle?: boolean;
652
+ placeholder?: string;
653
+ };
654
+ }) | ({
655
+ type: "Timestamp";
656
+ } & {
657
+ fieldset?: string | null | undefined;
658
+ config?: {
659
+ label?: string | null | undefined;
660
+ placeholder?: string;
661
+ default?: string;
662
+ };
663
+ });
664
+ };
665
+ };
666
+ });
667
+ };
342
668
  })[];
343
669
  } & {
344
670
  description?: string;
@@ -418,7 +744,6 @@ export declare const SliceComparator: {
418
744
  width?: number | null;
419
745
  height?: number | null;
420
746
  })[];
421
- allowCaption?: boolean;
422
747
  };
423
748
  }) | ({
424
749
  type: "IntegrationFields";
@@ -578,7 +903,6 @@ export declare const SliceComparator: {
578
903
  width?: number | null;
579
904
  height?: number | null;
580
905
  })[];
581
- allowCaption?: boolean;
582
906
  };
583
907
  }) | ({
584
908
  type: "IntegrationFields";
@@ -678,6 +1002,334 @@ export declare const SliceComparator: {
678
1002
  };
679
1003
  });
680
1004
  };
1005
+ fields?: {
1006
+ [x: string]: ({
1007
+ type: "Boolean";
1008
+ } & {
1009
+ config?: {
1010
+ label?: string | null | undefined;
1011
+ default_value?: boolean;
1012
+ placeholder_true?: string;
1013
+ placeholder_false?: string;
1014
+ };
1015
+ }) | ({
1016
+ type: "Color";
1017
+ } & {
1018
+ fieldset?: string | null | undefined;
1019
+ config?: {
1020
+ label?: string | null | undefined;
1021
+ placeholder?: string;
1022
+ };
1023
+ }) | ({
1024
+ type: "Date";
1025
+ } & {
1026
+ fieldset?: string | null | undefined;
1027
+ config?: {
1028
+ label?: string | null | undefined;
1029
+ placeholder?: string;
1030
+ default?: string;
1031
+ };
1032
+ }) | ({
1033
+ type: "Embed";
1034
+ } & {
1035
+ fieldset?: string | null | undefined;
1036
+ config?: {
1037
+ label?: string | null | undefined;
1038
+ placeholder?: string;
1039
+ useAsTitle?: boolean;
1040
+ };
1041
+ }) | ({
1042
+ type: "GeoPoint";
1043
+ } & {
1044
+ fieldset?: string | null | undefined;
1045
+ config?: {
1046
+ label?: string | null | undefined;
1047
+ };
1048
+ }) | ({
1049
+ type: "Image";
1050
+ } & {
1051
+ fieldset?: string | null | undefined;
1052
+ config?: {
1053
+ label?: string | null | undefined;
1054
+ placeholder?: string;
1055
+ constraint?: {
1056
+ width?: number | null;
1057
+ height?: number | null;
1058
+ };
1059
+ thumbnails?: readonly ({
1060
+ name: string;
1061
+ } & {
1062
+ width?: number | null;
1063
+ height?: number | null;
1064
+ })[];
1065
+ };
1066
+ }) | ({
1067
+ type: "IntegrationFields";
1068
+ } & {
1069
+ fieldset?: string | null | undefined;
1070
+ config?: {
1071
+ label?: string | null | undefined;
1072
+ placeholder?: string;
1073
+ catalog?: string;
1074
+ };
1075
+ }) | ({
1076
+ type: "Link";
1077
+ } & {
1078
+ fieldset?: string | null | undefined;
1079
+ config?: {
1080
+ label?: string | null | undefined;
1081
+ useAsTitle?: boolean;
1082
+ placeholder?: string;
1083
+ select?: "media" | "document" | "web" | null;
1084
+ customtypes?: readonly string[];
1085
+ masks?: readonly string[];
1086
+ tags?: readonly string[];
1087
+ allowTargetBlank?: boolean;
1088
+ };
1089
+ }) | ({
1090
+ type: "Number";
1091
+ } & {
1092
+ fieldset?: string | null | undefined;
1093
+ config?: {
1094
+ label?: string | null | undefined;
1095
+ placeholder?: string;
1096
+ min?: number;
1097
+ max?: number;
1098
+ step?: number;
1099
+ };
1100
+ }) | ({
1101
+ type: "Range";
1102
+ } & {
1103
+ fieldset?: string | null | undefined;
1104
+ config?: {
1105
+ label?: string | null | undefined;
1106
+ placeholder?: string;
1107
+ min?: number;
1108
+ max?: number;
1109
+ step?: number;
1110
+ };
1111
+ }) | ({
1112
+ type: "StructuredText";
1113
+ } & {
1114
+ fieldset?: string | null | undefined;
1115
+ config?: {
1116
+ label?: string | null | undefined;
1117
+ placeholder?: string;
1118
+ useAsTitle?: boolean;
1119
+ single?: string;
1120
+ multi?: string;
1121
+ imageConstraint?: {
1122
+ width?: number | null;
1123
+ height?: number | null;
1124
+ };
1125
+ labels?: readonly string[];
1126
+ allowTargetBlank?: boolean;
1127
+ };
1128
+ }) | ({
1129
+ type: "Select";
1130
+ } & {
1131
+ fieldset?: string | null | undefined;
1132
+ config?: {
1133
+ label?: string | null | undefined;
1134
+ placeholder?: string;
1135
+ default_value?: string;
1136
+ options?: readonly string[];
1137
+ };
1138
+ }) | ({
1139
+ type: "Separator";
1140
+ } & {
1141
+ config?: {
1142
+ label?: string | null | undefined;
1143
+ };
1144
+ }) | ({
1145
+ type: "Text";
1146
+ } & {
1147
+ fieldset?: string | null | undefined;
1148
+ config?: {
1149
+ label?: string | null | undefined;
1150
+ useAsTitle?: boolean;
1151
+ placeholder?: string;
1152
+ };
1153
+ }) | ({
1154
+ type: "Timestamp";
1155
+ } & {
1156
+ fieldset?: string | null | undefined;
1157
+ config?: {
1158
+ label?: string | null | undefined;
1159
+ placeholder?: string;
1160
+ default?: string;
1161
+ };
1162
+ }) | ({
1163
+ type: "Group";
1164
+ } & {
1165
+ fieldset?: string | null | undefined;
1166
+ icon?: string;
1167
+ description?: string;
1168
+ config?: {
1169
+ label?: string | null | undefined;
1170
+ repeat?: boolean;
1171
+ fields?: {
1172
+ [x: string]: ({
1173
+ type: "Boolean";
1174
+ } & {
1175
+ config?: {
1176
+ label?: string | null | undefined;
1177
+ default_value?: boolean;
1178
+ placeholder_true?: string;
1179
+ placeholder_false?: string;
1180
+ };
1181
+ }) | ({
1182
+ type: "Color";
1183
+ } & {
1184
+ fieldset?: string | null | undefined;
1185
+ config?: {
1186
+ label?: string | null | undefined;
1187
+ placeholder?: string;
1188
+ };
1189
+ }) | ({
1190
+ type: "Date";
1191
+ } & {
1192
+ fieldset?: string | null | undefined;
1193
+ config?: {
1194
+ label?: string | null | undefined;
1195
+ placeholder?: string;
1196
+ default?: string;
1197
+ };
1198
+ }) | ({
1199
+ type: "Embed";
1200
+ } & {
1201
+ fieldset?: string | null | undefined;
1202
+ config?: {
1203
+ label?: string | null | undefined;
1204
+ placeholder?: string;
1205
+ useAsTitle?: boolean;
1206
+ };
1207
+ }) | ({
1208
+ type: "GeoPoint";
1209
+ } & {
1210
+ fieldset?: string | null | undefined;
1211
+ config?: {
1212
+ label?: string | null | undefined;
1213
+ };
1214
+ }) | ({
1215
+ type: "Image";
1216
+ } & {
1217
+ fieldset?: string | null | undefined;
1218
+ config?: {
1219
+ label?: string | null | undefined;
1220
+ placeholder?: string;
1221
+ constraint?: {
1222
+ width?: number | null;
1223
+ height?: number | null;
1224
+ };
1225
+ thumbnails?: readonly ({
1226
+ name: string;
1227
+ } & {
1228
+ width?: number | null;
1229
+ height?: number | null;
1230
+ })[];
1231
+ };
1232
+ }) | ({
1233
+ type: "IntegrationFields";
1234
+ } & {
1235
+ fieldset?: string | null | undefined;
1236
+ config?: {
1237
+ label?: string | null | undefined;
1238
+ placeholder?: string;
1239
+ catalog?: string;
1240
+ };
1241
+ }) | ({
1242
+ type: "Link";
1243
+ } & {
1244
+ fieldset?: string | null | undefined;
1245
+ config?: {
1246
+ label?: string | null | undefined;
1247
+ useAsTitle?: boolean;
1248
+ placeholder?: string;
1249
+ select?: "media" | "document" | "web" | null;
1250
+ customtypes?: readonly string[];
1251
+ masks?: readonly string[];
1252
+ tags?: readonly string[];
1253
+ allowTargetBlank?: boolean;
1254
+ };
1255
+ }) | ({
1256
+ type: "Number";
1257
+ } & {
1258
+ fieldset?: string | null | undefined;
1259
+ config?: {
1260
+ label?: string | null | undefined;
1261
+ placeholder?: string;
1262
+ min?: number;
1263
+ max?: number;
1264
+ step?: number;
1265
+ };
1266
+ }) | ({
1267
+ type: "Range";
1268
+ } & {
1269
+ fieldset?: string | null | undefined;
1270
+ config?: {
1271
+ label?: string | null | undefined;
1272
+ placeholder?: string;
1273
+ min?: number;
1274
+ max?: number;
1275
+ step?: number;
1276
+ };
1277
+ }) | ({
1278
+ type: "StructuredText";
1279
+ } & {
1280
+ fieldset?: string | null | undefined;
1281
+ config?: {
1282
+ label?: string | null | undefined;
1283
+ placeholder?: string;
1284
+ useAsTitle?: boolean;
1285
+ single?: string;
1286
+ multi?: string;
1287
+ imageConstraint?: {
1288
+ width?: number | null;
1289
+ height?: number | null;
1290
+ };
1291
+ labels?: readonly string[];
1292
+ allowTargetBlank?: boolean;
1293
+ };
1294
+ }) | ({
1295
+ type: "Select";
1296
+ } & {
1297
+ fieldset?: string | null | undefined;
1298
+ config?: {
1299
+ label?: string | null | undefined;
1300
+ placeholder?: string;
1301
+ default_value?: string;
1302
+ options?: readonly string[];
1303
+ };
1304
+ }) | ({
1305
+ type: "Separator";
1306
+ } & {
1307
+ config?: {
1308
+ label?: string | null | undefined;
1309
+ };
1310
+ }) | ({
1311
+ type: "Text";
1312
+ } & {
1313
+ fieldset?: string | null | undefined;
1314
+ config?: {
1315
+ label?: string | null | undefined;
1316
+ useAsTitle?: boolean;
1317
+ placeholder?: string;
1318
+ };
1319
+ }) | ({
1320
+ type: "Timestamp";
1321
+ } & {
1322
+ fieldset?: string | null | undefined;
1323
+ config?: {
1324
+ label?: string | null | undefined;
1325
+ placeholder?: string;
1326
+ default?: string;
1327
+ };
1328
+ });
1329
+ };
1330
+ };
1331
+ });
1332
+ };
681
1333
  })[];
682
1334
  } & {
683
1335
  description?: string;