@prismicio/types-internal 2.6.0 → 2.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/lib/content/Document.d.ts +409 -13
  2. package/lib/content/fields/WidgetContent.d.ts +408 -12
  3. package/lib/content/fields/nestable/LinkContent.d.ts +54 -8
  4. package/lib/content/fields/nestable/LinkContent.js +10 -1
  5. package/lib/content/fields/nestable/NestableContent.d.ts +68 -2
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +129 -6
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +60 -0
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +136 -4
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +32 -2
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +136 -4
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -2
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -2
  13. package/lib/content/fields/slices/Slice/index.d.ts +250 -10
  14. package/lib/content/fields/slices/SliceItem.d.ts +250 -10
  15. package/lib/content/fields/slices/SlicesContent.d.ts +340 -10
  16. package/lib/customtypes/CustomType.d.ts +342 -162
  17. package/lib/customtypes/Section.d.ts +342 -162
  18. package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
  19. package/lib/customtypes/diff/Variation.d.ts +152 -72
  20. package/lib/customtypes/widgets/Group.d.ts +60 -0
  21. package/lib/customtypes/widgets/Widget.d.ts +318 -108
  22. package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
  23. package/lib/customtypes/widgets/nestable/Link.js +2 -0
  24. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
  25. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
  26. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
  27. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
  28. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
  29. package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
  30. package/package.json +1 -1
  31. package/src/content/fields/nestable/LinkContent.ts +12 -1
  32. package/src/customtypes/widgets/nestable/Link.ts +2 -0
  33. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
  34. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  35. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
  36. package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
@@ -89,6 +89,15 @@ export declare const SliceComparator: {
89
89
  placeholder?: string;
90
90
  catalog?: string;
91
91
  };
92
+ }) | ({
93
+ type: "Text";
94
+ } & {
95
+ fieldset?: string | null | undefined;
96
+ config?: {
97
+ label?: string | null | undefined;
98
+ useAsTitle?: boolean;
99
+ placeholder?: string;
100
+ };
92
101
  }) | ({
93
102
  type: "Link";
94
103
  } & {
@@ -102,6 +111,16 @@ export declare const SliceComparator: {
102
111
  masks?: readonly string[];
103
112
  tags?: readonly string[];
104
113
  allowTargetBlank?: boolean;
114
+ text?: {
115
+ type: "Text";
116
+ } & {
117
+ fieldset?: string | null | undefined;
118
+ config?: {
119
+ label?: string | null | undefined;
120
+ useAsTitle?: boolean;
121
+ placeholder?: string;
122
+ };
123
+ };
105
124
  };
106
125
  }) | ({
107
126
  type: "Number";
@@ -158,15 +177,6 @@ export declare const SliceComparator: {
158
177
  config?: {
159
178
  label?: string | null | undefined;
160
179
  };
161
- }) | ({
162
- type: "Text";
163
- } & {
164
- fieldset?: string | null | undefined;
165
- config?: {
166
- label?: string | null | undefined;
167
- useAsTitle?: boolean;
168
- placeholder?: string;
169
- };
170
180
  }) | ({
171
181
  type: "Timestamp";
172
182
  } & {
@@ -255,6 +265,15 @@ export declare const SliceComparator: {
255
265
  placeholder?: string;
256
266
  catalog?: string;
257
267
  };
268
+ }) | ({
269
+ type: "Text";
270
+ } & {
271
+ fieldset?: string | null | undefined;
272
+ config?: {
273
+ label?: string | null | undefined;
274
+ useAsTitle?: boolean;
275
+ placeholder?: string;
276
+ };
258
277
  }) | ({
259
278
  type: "Link";
260
279
  } & {
@@ -268,6 +287,16 @@ export declare const SliceComparator: {
268
287
  masks?: readonly string[];
269
288
  tags?: readonly string[];
270
289
  allowTargetBlank?: boolean;
290
+ text?: {
291
+ type: "Text";
292
+ } & {
293
+ fieldset?: string | null | undefined;
294
+ config?: {
295
+ label?: string | null | undefined;
296
+ useAsTitle?: boolean;
297
+ placeholder?: string;
298
+ };
299
+ };
271
300
  };
272
301
  }) | ({
273
302
  type: "Number";
@@ -324,15 +353,6 @@ export declare const SliceComparator: {
324
353
  config?: {
325
354
  label?: string | null | undefined;
326
355
  };
327
- }) | ({
328
- type: "Text";
329
- } & {
330
- fieldset?: string | null | undefined;
331
- config?: {
332
- label?: string | null | undefined;
333
- useAsTitle?: boolean;
334
- placeholder?: string;
335
- };
336
356
  }) | ({
337
357
  type: "Timestamp";
338
358
  } & {
@@ -421,6 +441,15 @@ export declare const SliceComparator: {
421
441
  placeholder?: string;
422
442
  catalog?: string;
423
443
  };
444
+ }) | ({
445
+ type: "Text";
446
+ } & {
447
+ fieldset?: string | null | undefined;
448
+ config?: {
449
+ label?: string | null | undefined;
450
+ useAsTitle?: boolean;
451
+ placeholder?: string;
452
+ };
424
453
  }) | ({
425
454
  type: "Link";
426
455
  } & {
@@ -434,6 +463,16 @@ export declare const SliceComparator: {
434
463
  masks?: readonly string[];
435
464
  tags?: readonly string[];
436
465
  allowTargetBlank?: boolean;
466
+ text?: {
467
+ type: "Text";
468
+ } & {
469
+ fieldset?: string | null | undefined;
470
+ config?: {
471
+ label?: string | null | undefined;
472
+ useAsTitle?: boolean;
473
+ placeholder?: string;
474
+ };
475
+ };
437
476
  };
438
477
  }) | ({
439
478
  type: "Number";
@@ -490,15 +529,6 @@ export declare const SliceComparator: {
490
529
  config?: {
491
530
  label?: string | null | undefined;
492
531
  };
493
- }) | ({
494
- type: "Text";
495
- } & {
496
- fieldset?: string | null | undefined;
497
- config?: {
498
- label?: string | null | undefined;
499
- useAsTitle?: boolean;
500
- placeholder?: string;
501
- };
502
532
  }) | ({
503
533
  type: "Timestamp";
504
534
  } & {
@@ -586,6 +616,15 @@ export declare const SliceComparator: {
586
616
  placeholder?: string;
587
617
  catalog?: string;
588
618
  };
619
+ }) | ({
620
+ type: "Text";
621
+ } & {
622
+ fieldset?: string | null | undefined;
623
+ config?: {
624
+ label?: string | null | undefined;
625
+ useAsTitle?: boolean;
626
+ placeholder?: string;
627
+ };
589
628
  }) | ({
590
629
  type: "Link";
591
630
  } & {
@@ -599,6 +638,16 @@ export declare const SliceComparator: {
599
638
  masks?: readonly string[];
600
639
  tags?: readonly string[];
601
640
  allowTargetBlank?: boolean;
641
+ text?: {
642
+ type: "Text";
643
+ } & {
644
+ fieldset?: string | null | undefined;
645
+ config?: {
646
+ label?: string | null | undefined;
647
+ useAsTitle?: boolean;
648
+ placeholder?: string;
649
+ };
650
+ };
602
651
  };
603
652
  }) | ({
604
653
  type: "Number";
@@ -655,15 +704,6 @@ export declare const SliceComparator: {
655
704
  config?: {
656
705
  label?: string | null | undefined;
657
706
  };
658
- }) | ({
659
- type: "Text";
660
- } & {
661
- fieldset?: string | null | undefined;
662
- config?: {
663
- label?: string | null | undefined;
664
- useAsTitle?: boolean;
665
- placeholder?: string;
666
- };
667
707
  }) | ({
668
708
  type: "Timestamp";
669
709
  } & {
@@ -764,6 +804,15 @@ export declare const SliceComparator: {
764
804
  placeholder?: string;
765
805
  catalog?: string;
766
806
  };
807
+ }) | ({
808
+ type: "Text";
809
+ } & {
810
+ fieldset?: string | null | undefined;
811
+ config?: {
812
+ label?: string | null | undefined;
813
+ useAsTitle?: boolean;
814
+ placeholder?: string;
815
+ };
767
816
  }) | ({
768
817
  type: "Link";
769
818
  } & {
@@ -777,6 +826,16 @@ export declare const SliceComparator: {
777
826
  masks?: readonly string[];
778
827
  tags?: readonly string[];
779
828
  allowTargetBlank?: boolean;
829
+ text?: {
830
+ type: "Text";
831
+ } & {
832
+ fieldset?: string | null | undefined;
833
+ config?: {
834
+ label?: string | null | undefined;
835
+ useAsTitle?: boolean;
836
+ placeholder?: string;
837
+ };
838
+ };
780
839
  };
781
840
  }) | ({
782
841
  type: "Number";
@@ -833,15 +892,6 @@ export declare const SliceComparator: {
833
892
  config?: {
834
893
  label?: string | null | undefined;
835
894
  };
836
- }) | ({
837
- type: "Text";
838
- } & {
839
- fieldset?: string | null | undefined;
840
- config?: {
841
- label?: string | null | undefined;
842
- useAsTitle?: boolean;
843
- placeholder?: string;
844
- };
845
895
  }) | ({
846
896
  type: "Timestamp";
847
897
  } & {
@@ -930,6 +980,15 @@ export declare const SliceComparator: {
930
980
  placeholder?: string;
931
981
  catalog?: string;
932
982
  };
983
+ }) | ({
984
+ type: "Text";
985
+ } & {
986
+ fieldset?: string | null | undefined;
987
+ config?: {
988
+ label?: string | null | undefined;
989
+ useAsTitle?: boolean;
990
+ placeholder?: string;
991
+ };
933
992
  }) | ({
934
993
  type: "Link";
935
994
  } & {
@@ -943,6 +1002,16 @@ export declare const SliceComparator: {
943
1002
  masks?: readonly string[];
944
1003
  tags?: readonly string[];
945
1004
  allowTargetBlank?: boolean;
1005
+ text?: {
1006
+ type: "Text";
1007
+ } & {
1008
+ fieldset?: string | null | undefined;
1009
+ config?: {
1010
+ label?: string | null | undefined;
1011
+ useAsTitle?: boolean;
1012
+ placeholder?: string;
1013
+ };
1014
+ };
946
1015
  };
947
1016
  }) | ({
948
1017
  type: "Number";
@@ -999,15 +1068,6 @@ export declare const SliceComparator: {
999
1068
  config?: {
1000
1069
  label?: string | null | undefined;
1001
1070
  };
1002
- }) | ({
1003
- type: "Text";
1004
- } & {
1005
- fieldset?: string | null | undefined;
1006
- config?: {
1007
- label?: string | null | undefined;
1008
- useAsTitle?: boolean;
1009
- placeholder?: string;
1010
- };
1011
1071
  }) | ({
1012
1072
  type: "Timestamp";
1013
1073
  } & {
@@ -1096,6 +1156,15 @@ export declare const SliceComparator: {
1096
1156
  placeholder?: string;
1097
1157
  catalog?: string;
1098
1158
  };
1159
+ }) | ({
1160
+ type: "Text";
1161
+ } & {
1162
+ fieldset?: string | null | undefined;
1163
+ config?: {
1164
+ label?: string | null | undefined;
1165
+ useAsTitle?: boolean;
1166
+ placeholder?: string;
1167
+ };
1099
1168
  }) | ({
1100
1169
  type: "Link";
1101
1170
  } & {
@@ -1109,6 +1178,16 @@ export declare const SliceComparator: {
1109
1178
  masks?: readonly string[];
1110
1179
  tags?: readonly string[];
1111
1180
  allowTargetBlank?: boolean;
1181
+ text?: {
1182
+ type: "Text";
1183
+ } & {
1184
+ fieldset?: string | null | undefined;
1185
+ config?: {
1186
+ label?: string | null | undefined;
1187
+ useAsTitle?: boolean;
1188
+ placeholder?: string;
1189
+ };
1190
+ };
1112
1191
  };
1113
1192
  }) | ({
1114
1193
  type: "Number";
@@ -1165,15 +1244,6 @@ export declare const SliceComparator: {
1165
1244
  config?: {
1166
1245
  label?: string | null | undefined;
1167
1246
  };
1168
- }) | ({
1169
- type: "Text";
1170
- } & {
1171
- fieldset?: string | null | undefined;
1172
- config?: {
1173
- label?: string | null | undefined;
1174
- useAsTitle?: boolean;
1175
- placeholder?: string;
1176
- };
1177
1247
  }) | ({
1178
1248
  type: "Timestamp";
1179
1249
  } & {
@@ -1261,6 +1331,15 @@ export declare const SliceComparator: {
1261
1331
  placeholder?: string;
1262
1332
  catalog?: string;
1263
1333
  };
1334
+ }) | ({
1335
+ type: "Text";
1336
+ } & {
1337
+ fieldset?: string | null | undefined;
1338
+ config?: {
1339
+ label?: string | null | undefined;
1340
+ useAsTitle?: boolean;
1341
+ placeholder?: string;
1342
+ };
1264
1343
  }) | ({
1265
1344
  type: "Link";
1266
1345
  } & {
@@ -1274,6 +1353,16 @@ export declare const SliceComparator: {
1274
1353
  masks?: readonly string[];
1275
1354
  tags?: readonly string[];
1276
1355
  allowTargetBlank?: boolean;
1356
+ text?: {
1357
+ type: "Text";
1358
+ } & {
1359
+ fieldset?: string | null | undefined;
1360
+ config?: {
1361
+ label?: string | null | undefined;
1362
+ useAsTitle?: boolean;
1363
+ placeholder?: string;
1364
+ };
1365
+ };
1277
1366
  };
1278
1367
  }) | ({
1279
1368
  type: "Number";
@@ -1330,15 +1419,6 @@ export declare const SliceComparator: {
1330
1419
  config?: {
1331
1420
  label?: string | null | undefined;
1332
1421
  };
1333
- }) | ({
1334
- type: "Text";
1335
- } & {
1336
- fieldset?: string | null | undefined;
1337
- config?: {
1338
- label?: string | null | undefined;
1339
- useAsTitle?: boolean;
1340
- placeholder?: string;
1341
- };
1342
1422
  }) | ({
1343
1423
  type: "Timestamp";
1344
1424
  } & {