@prismicio/types-internal 2.5.0 → 2.7.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 (49) hide show
  1. package/lib/_internal/utils.d.ts +2 -2
  2. package/lib/content/Document.d.ts +1828 -1156
  3. package/lib/content/fields/WidgetContent.d.ts +1840 -1168
  4. package/lib/content/fields/nestable/LinkContent.d.ts +206 -8
  5. package/lib/content/fields/nestable/LinkContent.js +11 -1
  6. package/lib/content/fields/nestable/NestableContent.d.ts +288 -2
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +537 -6
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +260 -0
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +580 -8
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +2 -1
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +137 -2160
  12. package/lib/content/fields/slices/Slice/RepeatableContent.js +6 -148
  13. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +580 -8
  14. package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
  15. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +294 -1051
  16. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +7 -10
  17. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +288 -2
  18. package/lib/content/fields/slices/Slice/index.d.ts +1077 -764
  19. package/lib/content/fields/slices/Slice/index.js +0 -1
  20. package/lib/content/fields/slices/SliceItem.d.ts +1107 -793
  21. package/lib/content/fields/slices/SlicesContent.d.ts +2537 -2151
  22. package/lib/customtypes/CustomType.d.ts +342 -162
  23. package/lib/customtypes/Section.d.ts +342 -162
  24. package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
  25. package/lib/customtypes/diff/Variation.d.ts +152 -72
  26. package/lib/customtypes/widgets/Group.d.ts +60 -0
  27. package/lib/customtypes/widgets/Widget.d.ts +318 -108
  28. package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
  29. package/lib/customtypes/widgets/nestable/Link.js +2 -0
  30. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
  31. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
  32. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
  33. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
  34. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
  35. package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
  36. package/package.json +1 -1
  37. package/src/_internal/utils.ts +1 -2
  38. package/src/content/fields/nestable/LinkContent.ts +13 -1
  39. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -8
  40. package/src/content/fields/slices/Slice/RepeatableContent.ts +11 -242
  41. package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
  42. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +17 -21
  43. package/src/content/fields/slices/Slice/index.ts +0 -1
  44. package/src/content/fields/slices/SlicesContent.ts +2 -2
  45. package/src/customtypes/widgets/nestable/Link.ts +2 -0
  46. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
  47. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  48. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
  49. package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
@@ -86,6 +86,15 @@ export declare const VariationComparator: {
86
86
  placeholder?: string;
87
87
  catalog?: string;
88
88
  };
89
+ }) | ({
90
+ type: "Text";
91
+ } & {
92
+ fieldset?: string | null | undefined;
93
+ config?: {
94
+ label?: string | null | undefined;
95
+ useAsTitle?: boolean;
96
+ placeholder?: string;
97
+ };
89
98
  }) | ({
90
99
  type: "Link";
91
100
  } & {
@@ -99,6 +108,16 @@ export declare const VariationComparator: {
99
108
  masks?: readonly string[];
100
109
  tags?: readonly string[];
101
110
  allowTargetBlank?: boolean;
111
+ title?: {
112
+ type: "Text";
113
+ } & {
114
+ fieldset?: string | null | undefined;
115
+ config?: {
116
+ label?: string | null | undefined;
117
+ useAsTitle?: boolean;
118
+ placeholder?: string;
119
+ };
120
+ };
102
121
  };
103
122
  }) | ({
104
123
  type: "Number";
@@ -155,15 +174,6 @@ export declare const VariationComparator: {
155
174
  config?: {
156
175
  label?: string | null | undefined;
157
176
  };
158
- }) | ({
159
- type: "Text";
160
- } & {
161
- fieldset?: string | null | undefined;
162
- config?: {
163
- label?: string | null | undefined;
164
- useAsTitle?: boolean;
165
- placeholder?: string;
166
- };
167
177
  }) | ({
168
178
  type: "Timestamp";
169
179
  } & {
@@ -252,6 +262,15 @@ export declare const VariationComparator: {
252
262
  placeholder?: string;
253
263
  catalog?: string;
254
264
  };
265
+ }) | ({
266
+ type: "Text";
267
+ } & {
268
+ fieldset?: string | null | undefined;
269
+ config?: {
270
+ label?: string | null | undefined;
271
+ useAsTitle?: boolean;
272
+ placeholder?: string;
273
+ };
255
274
  }) | ({
256
275
  type: "Link";
257
276
  } & {
@@ -265,6 +284,16 @@ export declare const VariationComparator: {
265
284
  masks?: readonly string[];
266
285
  tags?: readonly string[];
267
286
  allowTargetBlank?: boolean;
287
+ title?: {
288
+ type: "Text";
289
+ } & {
290
+ fieldset?: string | null | undefined;
291
+ config?: {
292
+ label?: string | null | undefined;
293
+ useAsTitle?: boolean;
294
+ placeholder?: string;
295
+ };
296
+ };
268
297
  };
269
298
  }) | ({
270
299
  type: "Number";
@@ -321,15 +350,6 @@ export declare const VariationComparator: {
321
350
  config?: {
322
351
  label?: string | null | undefined;
323
352
  };
324
- }) | ({
325
- type: "Text";
326
- } & {
327
- fieldset?: string | null | undefined;
328
- config?: {
329
- label?: string | null | undefined;
330
- useAsTitle?: boolean;
331
- placeholder?: string;
332
- };
333
353
  }) | ({
334
354
  type: "Timestamp";
335
355
  } & {
@@ -418,6 +438,15 @@ export declare const VariationComparator: {
418
438
  placeholder?: string;
419
439
  catalog?: string;
420
440
  };
441
+ }) | ({
442
+ type: "Text";
443
+ } & {
444
+ fieldset?: string | null | undefined;
445
+ config?: {
446
+ label?: string | null | undefined;
447
+ useAsTitle?: boolean;
448
+ placeholder?: string;
449
+ };
421
450
  }) | ({
422
451
  type: "Link";
423
452
  } & {
@@ -431,6 +460,16 @@ export declare const VariationComparator: {
431
460
  masks?: readonly string[];
432
461
  tags?: readonly string[];
433
462
  allowTargetBlank?: boolean;
463
+ title?: {
464
+ type: "Text";
465
+ } & {
466
+ fieldset?: string | null | undefined;
467
+ config?: {
468
+ label?: string | null | undefined;
469
+ useAsTitle?: boolean;
470
+ placeholder?: string;
471
+ };
472
+ };
434
473
  };
435
474
  }) | ({
436
475
  type: "Number";
@@ -487,15 +526,6 @@ export declare const VariationComparator: {
487
526
  config?: {
488
527
  label?: string | null | undefined;
489
528
  };
490
- }) | ({
491
- type: "Text";
492
- } & {
493
- fieldset?: string | null | undefined;
494
- config?: {
495
- label?: string | null | undefined;
496
- useAsTitle?: boolean;
497
- placeholder?: string;
498
- };
499
529
  }) | ({
500
530
  type: "Timestamp";
501
531
  } & {
@@ -583,6 +613,15 @@ export declare const VariationComparator: {
583
613
  placeholder?: string;
584
614
  catalog?: string;
585
615
  };
616
+ }) | ({
617
+ type: "Text";
618
+ } & {
619
+ fieldset?: string | null | undefined;
620
+ config?: {
621
+ label?: string | null | undefined;
622
+ useAsTitle?: boolean;
623
+ placeholder?: string;
624
+ };
586
625
  }) | ({
587
626
  type: "Link";
588
627
  } & {
@@ -596,6 +635,16 @@ export declare const VariationComparator: {
596
635
  masks?: readonly string[];
597
636
  tags?: readonly string[];
598
637
  allowTargetBlank?: boolean;
638
+ title?: {
639
+ type: "Text";
640
+ } & {
641
+ fieldset?: string | null | undefined;
642
+ config?: {
643
+ label?: string | null | undefined;
644
+ useAsTitle?: boolean;
645
+ placeholder?: string;
646
+ };
647
+ };
599
648
  };
600
649
  }) | ({
601
650
  type: "Number";
@@ -652,15 +701,6 @@ export declare const VariationComparator: {
652
701
  config?: {
653
702
  label?: string | null | undefined;
654
703
  };
655
- }) | ({
656
- type: "Text";
657
- } & {
658
- fieldset?: string | null | undefined;
659
- config?: {
660
- label?: string | null | undefined;
661
- useAsTitle?: boolean;
662
- placeholder?: string;
663
- };
664
704
  }) | ({
665
705
  type: "Timestamp";
666
706
  } & {
@@ -751,6 +791,15 @@ export declare const VariationComparator: {
751
791
  placeholder?: string;
752
792
  catalog?: string;
753
793
  };
794
+ }) | ({
795
+ type: "Text";
796
+ } & {
797
+ fieldset?: string | null | undefined;
798
+ config?: {
799
+ label?: string | null | undefined;
800
+ useAsTitle?: boolean;
801
+ placeholder?: string;
802
+ };
754
803
  }) | ({
755
804
  type: "Link";
756
805
  } & {
@@ -764,6 +813,16 @@ export declare const VariationComparator: {
764
813
  masks?: readonly string[];
765
814
  tags?: readonly string[];
766
815
  allowTargetBlank?: boolean;
816
+ title?: {
817
+ type: "Text";
818
+ } & {
819
+ fieldset?: string | null | undefined;
820
+ config?: {
821
+ label?: string | null | undefined;
822
+ useAsTitle?: boolean;
823
+ placeholder?: string;
824
+ };
825
+ };
767
826
  };
768
827
  }) | ({
769
828
  type: "Number";
@@ -820,15 +879,6 @@ export declare const VariationComparator: {
820
879
  config?: {
821
880
  label?: string | null | undefined;
822
881
  };
823
- }) | ({
824
- type: "Text";
825
- } & {
826
- fieldset?: string | null | undefined;
827
- config?: {
828
- label?: string | null | undefined;
829
- useAsTitle?: boolean;
830
- placeholder?: string;
831
- };
832
882
  }) | ({
833
883
  type: "Timestamp";
834
884
  } & {
@@ -917,6 +967,15 @@ export declare const VariationComparator: {
917
967
  placeholder?: string;
918
968
  catalog?: string;
919
969
  };
970
+ }) | ({
971
+ type: "Text";
972
+ } & {
973
+ fieldset?: string | null | undefined;
974
+ config?: {
975
+ label?: string | null | undefined;
976
+ useAsTitle?: boolean;
977
+ placeholder?: string;
978
+ };
920
979
  }) | ({
921
980
  type: "Link";
922
981
  } & {
@@ -930,6 +989,16 @@ export declare const VariationComparator: {
930
989
  masks?: readonly string[];
931
990
  tags?: readonly string[];
932
991
  allowTargetBlank?: boolean;
992
+ title?: {
993
+ type: "Text";
994
+ } & {
995
+ fieldset?: string | null | undefined;
996
+ config?: {
997
+ label?: string | null | undefined;
998
+ useAsTitle?: boolean;
999
+ placeholder?: string;
1000
+ };
1001
+ };
933
1002
  };
934
1003
  }) | ({
935
1004
  type: "Number";
@@ -986,15 +1055,6 @@ export declare const VariationComparator: {
986
1055
  config?: {
987
1056
  label?: string | null | undefined;
988
1057
  };
989
- }) | ({
990
- type: "Text";
991
- } & {
992
- fieldset?: string | null | undefined;
993
- config?: {
994
- label?: string | null | undefined;
995
- useAsTitle?: boolean;
996
- placeholder?: string;
997
- };
998
1058
  }) | ({
999
1059
  type: "Timestamp";
1000
1060
  } & {
@@ -1083,6 +1143,15 @@ export declare const VariationComparator: {
1083
1143
  placeholder?: string;
1084
1144
  catalog?: string;
1085
1145
  };
1146
+ }) | ({
1147
+ type: "Text";
1148
+ } & {
1149
+ fieldset?: string | null | undefined;
1150
+ config?: {
1151
+ label?: string | null | undefined;
1152
+ useAsTitle?: boolean;
1153
+ placeholder?: string;
1154
+ };
1086
1155
  }) | ({
1087
1156
  type: "Link";
1088
1157
  } & {
@@ -1096,6 +1165,16 @@ export declare const VariationComparator: {
1096
1165
  masks?: readonly string[];
1097
1166
  tags?: readonly string[];
1098
1167
  allowTargetBlank?: boolean;
1168
+ title?: {
1169
+ type: "Text";
1170
+ } & {
1171
+ fieldset?: string | null | undefined;
1172
+ config?: {
1173
+ label?: string | null | undefined;
1174
+ useAsTitle?: boolean;
1175
+ placeholder?: string;
1176
+ };
1177
+ };
1099
1178
  };
1100
1179
  }) | ({
1101
1180
  type: "Number";
@@ -1152,15 +1231,6 @@ export declare const VariationComparator: {
1152
1231
  config?: {
1153
1232
  label?: string | null | undefined;
1154
1233
  };
1155
- }) | ({
1156
- type: "Text";
1157
- } & {
1158
- fieldset?: string | null | undefined;
1159
- config?: {
1160
- label?: string | null | undefined;
1161
- useAsTitle?: boolean;
1162
- placeholder?: string;
1163
- };
1164
1234
  }) | ({
1165
1235
  type: "Timestamp";
1166
1236
  } & {
@@ -1248,6 +1318,15 @@ export declare const VariationComparator: {
1248
1318
  placeholder?: string;
1249
1319
  catalog?: string;
1250
1320
  };
1321
+ }) | ({
1322
+ type: "Text";
1323
+ } & {
1324
+ fieldset?: string | null | undefined;
1325
+ config?: {
1326
+ label?: string | null | undefined;
1327
+ useAsTitle?: boolean;
1328
+ placeholder?: string;
1329
+ };
1251
1330
  }) | ({
1252
1331
  type: "Link";
1253
1332
  } & {
@@ -1261,6 +1340,16 @@ export declare const VariationComparator: {
1261
1340
  masks?: readonly string[];
1262
1341
  tags?: readonly string[];
1263
1342
  allowTargetBlank?: boolean;
1343
+ title?: {
1344
+ type: "Text";
1345
+ } & {
1346
+ fieldset?: string | null | undefined;
1347
+ config?: {
1348
+ label?: string | null | undefined;
1349
+ useAsTitle?: boolean;
1350
+ placeholder?: string;
1351
+ };
1352
+ };
1264
1353
  };
1265
1354
  }) | ({
1266
1355
  type: "Number";
@@ -1317,15 +1406,6 @@ export declare const VariationComparator: {
1317
1406
  config?: {
1318
1407
  label?: string | null | undefined;
1319
1408
  };
1320
- }) | ({
1321
- type: "Text";
1322
- } & {
1323
- fieldset?: string | null | undefined;
1324
- config?: {
1325
- label?: string | null | undefined;
1326
- useAsTitle?: boolean;
1327
- placeholder?: string;
1328
- };
1329
1409
  }) | ({
1330
1410
  type: "Timestamp";
1331
1411
  } & {
@@ -131,6 +131,16 @@ export declare const NestedGroupConfig: t.ExactC<t.PartialC<{
131
131
  masks: t.Type<readonly string[], object, unknown>;
132
132
  tags: t.Type<readonly string[], object, unknown>;
133
133
  allowTargetBlank: t.BooleanC;
134
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
135
+ type: t.LiteralC<"Text">;
136
+ }>, t.PartialC<{
137
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
138
+ config: t.ExactC<t.PartialC<{
139
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
140
+ useAsTitle: t.BooleanC;
141
+ placeholder: t.StringC;
142
+ }>>;
143
+ }>]>>;
134
144
  }>>;
135
145
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
136
146
  type: t.LiteralC<"Image">;
@@ -299,6 +309,16 @@ export declare const NestedGroup: t.ExactC<t.IntersectionC<[t.TypeC<{
299
309
  masks: t.Type<readonly string[], object, unknown>;
300
310
  tags: t.Type<readonly string[], object, unknown>;
301
311
  allowTargetBlank: t.BooleanC;
312
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
313
+ type: t.LiteralC<"Text">;
314
+ }>, t.PartialC<{
315
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
316
+ config: t.ExactC<t.PartialC<{
317
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
318
+ useAsTitle: t.BooleanC;
319
+ placeholder: t.StringC;
320
+ }>>;
321
+ }>]>>;
302
322
  }>>;
303
323
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
304
324
  type: t.LiteralC<"Image">;
@@ -462,6 +482,16 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
462
482
  masks: t.Type<readonly string[], object, unknown>;
463
483
  tags: t.Type<readonly string[], object, unknown>;
464
484
  allowTargetBlank: t.BooleanC;
485
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
486
+ type: t.LiteralC<"Text">;
487
+ }>, t.PartialC<{
488
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
489
+ config: t.ExactC<t.PartialC<{
490
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
491
+ useAsTitle: t.BooleanC;
492
+ placeholder: t.StringC;
493
+ }>>;
494
+ }>]>>;
465
495
  }>>;
466
496
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
467
497
  type: t.LiteralC<"Image">;
@@ -627,6 +657,16 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
627
657
  masks: t.Type<readonly string[], object, unknown>;
628
658
  tags: t.Type<readonly string[], object, unknown>;
629
659
  allowTargetBlank: t.BooleanC;
660
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
661
+ type: t.LiteralC<"Text">;
662
+ }>, t.PartialC<{
663
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
664
+ config: t.ExactC<t.PartialC<{
665
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
666
+ useAsTitle: t.BooleanC;
667
+ placeholder: t.StringC;
668
+ }>>;
669
+ }>]>>;
630
670
  }>>;
631
671
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
632
672
  type: t.LiteralC<"Image">;
@@ -797,6 +837,16 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
797
837
  masks: t.Type<readonly string[], object, unknown>;
798
838
  tags: t.Type<readonly string[], object, unknown>;
799
839
  allowTargetBlank: t.BooleanC;
840
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
841
+ type: t.LiteralC<"Text">;
842
+ }>, t.PartialC<{
843
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
844
+ config: t.ExactC<t.PartialC<{
845
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
846
+ useAsTitle: t.BooleanC;
847
+ placeholder: t.StringC;
848
+ }>>;
849
+ }>]>>;
800
850
  }>>;
801
851
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
802
852
  type: t.LiteralC<"Image">;
@@ -962,6 +1012,16 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
962
1012
  masks: t.Type<readonly string[], object, unknown>;
963
1013
  tags: t.Type<readonly string[], object, unknown>;
964
1014
  allowTargetBlank: t.BooleanC;
1015
+ title: t.ExactC<t.IntersectionC<[t.TypeC<{
1016
+ type: t.LiteralC<"Text">;
1017
+ }>, t.PartialC<{
1018
+ fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1019
+ config: t.ExactC<t.PartialC<{
1020
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1021
+ useAsTitle: t.BooleanC;
1022
+ placeholder: t.StringC;
1023
+ }>>;
1024
+ }>]>>;
965
1025
  }>>;
966
1026
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
967
1027
  type: t.LiteralC<"Image">;