@prismicio/types-internal 2.7.0-alpha.3 → 2.7.0-alpha.4

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 (34) hide show
  1. package/lib/content/Document.d.ts +2118 -798
  2. package/lib/content/fields/WidgetContent.d.ts +2118 -798
  3. package/lib/content/fields/nestable/LinkContent.d.ts +248 -85
  4. package/lib/content/fields/nestable/LinkContent.js +96 -42
  5. package/lib/content/fields/nestable/NestableContent.d.ts +353 -133
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +654 -234
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +320 -120
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +706 -266
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +161 -61
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +706 -266
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +353 -133
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +353 -133
  13. package/lib/content/fields/slices/Slice/index.d.ts +1285 -485
  14. package/lib/content/fields/slices/SliceItem.d.ts +1285 -485
  15. package/lib/content/fields/slices/SlicesContent.d.ts +1766 -666
  16. package/lib/customtypes/CustomType.d.ts +18 -320
  17. package/lib/customtypes/Section.d.ts +18 -320
  18. package/lib/customtypes/diff/SharedSlice.d.ts +8 -160
  19. package/lib/customtypes/diff/Variation.d.ts +8 -160
  20. package/lib/customtypes/widgets/Group.d.ts +18 -315
  21. package/lib/customtypes/widgets/Group.js +5 -43
  22. package/lib/customtypes/widgets/Widget.d.ts +33 -412
  23. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
  24. package/lib/customtypes/widgets/nestable/Link.js +1 -0
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -0
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +4 -42
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +16 -168
  29. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +10 -164
  30. package/lib/customtypes/widgets/slices/Slices.d.ts +34 -366
  31. package/package.json +1 -1
  32. package/src/content/fields/nestable/LinkContent.ts +121 -50
  33. package/src/customtypes/widgets/Group.ts +6 -52
  34. package/src/customtypes/widgets/nestable/Link.ts +1 -0
@@ -102,6 +102,7 @@ export declare const SliceComparator: {
102
102
  masks?: readonly string[];
103
103
  tags?: readonly string[];
104
104
  allowTargetBlank?: boolean;
105
+ allowText?: boolean;
105
106
  };
106
107
  }) | ({
107
108
  type: "Number";
@@ -178,46 +179,6 @@ export declare const SliceComparator: {
178
179
  };
179
180
  }) | ({
180
181
  type: "Group";
181
- } & {
182
- fieldset?: string | null | undefined;
183
- icon?: string;
184
- description?: string;
185
- config?: {
186
- as: "Link";
187
- fields: {
188
- link: {
189
- type: "Link";
190
- } & {
191
- fieldset?: string | null | undefined;
192
- config?: {
193
- label?: string | null | undefined;
194
- useAsTitle?: boolean;
195
- placeholder?: string;
196
- select?: "media" | "document" | "web" | null;
197
- customtypes?: readonly string[];
198
- masks?: readonly string[];
199
- tags?: readonly string[];
200
- allowTargetBlank?: boolean;
201
- };
202
- };
203
- } & {
204
- text?: {
205
- type: "Text";
206
- } & {
207
- fieldset?: string | null | undefined;
208
- config?: {
209
- label?: string | null | undefined;
210
- useAsTitle?: boolean;
211
- placeholder?: string;
212
- };
213
- };
214
- };
215
- } & {
216
- label?: string | null | undefined;
217
- repeat?: boolean;
218
- };
219
- }) | ({
220
- type: "Group";
221
182
  } & {
222
183
  fieldset?: string | null | undefined;
223
184
  icon?: string;
@@ -308,6 +269,7 @@ export declare const SliceComparator: {
308
269
  masks?: readonly string[];
309
270
  tags?: readonly string[];
310
271
  allowTargetBlank?: boolean;
272
+ allowText?: boolean;
311
273
  };
312
274
  }) | ({
313
275
  type: "Number";
@@ -384,46 +346,6 @@ export declare const SliceComparator: {
384
346
  };
385
347
  }) | ({
386
348
  type: "Group";
387
- } & {
388
- fieldset?: string | null | undefined;
389
- icon?: string;
390
- description?: string;
391
- config?: {
392
- as: "Link";
393
- fields: {
394
- link: {
395
- type: "Link";
396
- } & {
397
- fieldset?: string | null | undefined;
398
- config?: {
399
- label?: string | null | undefined;
400
- useAsTitle?: boolean;
401
- placeholder?: string;
402
- select?: "media" | "document" | "web" | null;
403
- customtypes?: readonly string[];
404
- masks?: readonly string[];
405
- tags?: readonly string[];
406
- allowTargetBlank?: boolean;
407
- };
408
- };
409
- } & {
410
- text?: {
411
- type: "Text";
412
- } & {
413
- fieldset?: string | null | undefined;
414
- config?: {
415
- label?: string | null | undefined;
416
- useAsTitle?: boolean;
417
- placeholder?: string;
418
- };
419
- };
420
- };
421
- } & {
422
- label?: string | null | undefined;
423
- repeat?: boolean;
424
- };
425
- }) | ({
426
- type: "Group";
427
349
  } & {
428
350
  fieldset?: string | null | undefined;
429
351
  icon?: string;
@@ -514,6 +436,7 @@ export declare const SliceComparator: {
514
436
  masks?: readonly string[];
515
437
  tags?: readonly string[];
516
438
  allowTargetBlank?: boolean;
439
+ allowText?: boolean;
517
440
  };
518
441
  }) | ({
519
442
  type: "Number";
@@ -679,6 +602,7 @@ export declare const SliceComparator: {
679
602
  masks?: readonly string[];
680
603
  tags?: readonly string[];
681
604
  allowTargetBlank?: boolean;
605
+ allowText?: boolean;
682
606
  };
683
607
  }) | ({
684
608
  type: "Number";
@@ -857,6 +781,7 @@ export declare const SliceComparator: {
857
781
  masks?: readonly string[];
858
782
  tags?: readonly string[];
859
783
  allowTargetBlank?: boolean;
784
+ allowText?: boolean;
860
785
  };
861
786
  }) | ({
862
787
  type: "Number";
@@ -933,46 +858,6 @@ export declare const SliceComparator: {
933
858
  };
934
859
  }) | ({
935
860
  type: "Group";
936
- } & {
937
- fieldset?: string | null | undefined;
938
- icon?: string;
939
- description?: string;
940
- config?: {
941
- as: "Link";
942
- fields: {
943
- link: {
944
- type: "Link";
945
- } & {
946
- fieldset?: string | null | undefined;
947
- config?: {
948
- label?: string | null | undefined;
949
- useAsTitle?: boolean;
950
- placeholder?: string;
951
- select?: "media" | "document" | "web" | null;
952
- customtypes?: readonly string[];
953
- masks?: readonly string[];
954
- tags?: readonly string[];
955
- allowTargetBlank?: boolean;
956
- };
957
- };
958
- } & {
959
- text?: {
960
- type: "Text";
961
- } & {
962
- fieldset?: string | null | undefined;
963
- config?: {
964
- label?: string | null | undefined;
965
- useAsTitle?: boolean;
966
- placeholder?: string;
967
- };
968
- };
969
- };
970
- } & {
971
- label?: string | null | undefined;
972
- repeat?: boolean;
973
- };
974
- }) | ({
975
- type: "Group";
976
861
  } & {
977
862
  fieldset?: string | null | undefined;
978
863
  icon?: string;
@@ -1063,6 +948,7 @@ export declare const SliceComparator: {
1063
948
  masks?: readonly string[];
1064
949
  tags?: readonly string[];
1065
950
  allowTargetBlank?: boolean;
951
+ allowText?: boolean;
1066
952
  };
1067
953
  }) | ({
1068
954
  type: "Number";
@@ -1139,46 +1025,6 @@ export declare const SliceComparator: {
1139
1025
  };
1140
1026
  }) | ({
1141
1027
  type: "Group";
1142
- } & {
1143
- fieldset?: string | null | undefined;
1144
- icon?: string;
1145
- description?: string;
1146
- config?: {
1147
- as: "Link";
1148
- fields: {
1149
- link: {
1150
- type: "Link";
1151
- } & {
1152
- fieldset?: string | null | undefined;
1153
- config?: {
1154
- label?: string | null | undefined;
1155
- useAsTitle?: boolean;
1156
- placeholder?: string;
1157
- select?: "media" | "document" | "web" | null;
1158
- customtypes?: readonly string[];
1159
- masks?: readonly string[];
1160
- tags?: readonly string[];
1161
- allowTargetBlank?: boolean;
1162
- };
1163
- };
1164
- } & {
1165
- text?: {
1166
- type: "Text";
1167
- } & {
1168
- fieldset?: string | null | undefined;
1169
- config?: {
1170
- label?: string | null | undefined;
1171
- useAsTitle?: boolean;
1172
- placeholder?: string;
1173
- };
1174
- };
1175
- };
1176
- } & {
1177
- label?: string | null | undefined;
1178
- repeat?: boolean;
1179
- };
1180
- }) | ({
1181
- type: "Group";
1182
1028
  } & {
1183
1029
  fieldset?: string | null | undefined;
1184
1030
  icon?: string;
@@ -1269,6 +1115,7 @@ export declare const SliceComparator: {
1269
1115
  masks?: readonly string[];
1270
1116
  tags?: readonly string[];
1271
1117
  allowTargetBlank?: boolean;
1118
+ allowText?: boolean;
1272
1119
  };
1273
1120
  }) | ({
1274
1121
  type: "Number";
@@ -1434,6 +1281,7 @@ export declare const SliceComparator: {
1434
1281
  masks?: readonly string[];
1435
1282
  tags?: readonly string[];
1436
1283
  allowTargetBlank?: boolean;
1284
+ allowText?: boolean;
1437
1285
  };
1438
1286
  }) | ({
1439
1287
  type: "Number";
@@ -99,6 +99,7 @@ export declare const VariationComparator: {
99
99
  masks?: readonly string[];
100
100
  tags?: readonly string[];
101
101
  allowTargetBlank?: boolean;
102
+ allowText?: boolean;
102
103
  };
103
104
  }) | ({
104
105
  type: "Number";
@@ -175,46 +176,6 @@ export declare const VariationComparator: {
175
176
  };
176
177
  }) | ({
177
178
  type: "Group";
178
- } & {
179
- fieldset?: string | null | undefined;
180
- icon?: string;
181
- description?: string;
182
- config?: {
183
- as: "Link";
184
- fields: {
185
- link: {
186
- type: "Link";
187
- } & {
188
- fieldset?: string | null | undefined;
189
- config?: {
190
- label?: string | null | undefined;
191
- useAsTitle?: boolean;
192
- placeholder?: string;
193
- select?: "media" | "document" | "web" | null;
194
- customtypes?: readonly string[];
195
- masks?: readonly string[];
196
- tags?: readonly string[];
197
- allowTargetBlank?: boolean;
198
- };
199
- };
200
- } & {
201
- text?: {
202
- type: "Text";
203
- } & {
204
- fieldset?: string | null | undefined;
205
- config?: {
206
- label?: string | null | undefined;
207
- useAsTitle?: boolean;
208
- placeholder?: string;
209
- };
210
- };
211
- };
212
- } & {
213
- label?: string | null | undefined;
214
- repeat?: boolean;
215
- };
216
- }) | ({
217
- type: "Group";
218
179
  } & {
219
180
  fieldset?: string | null | undefined;
220
181
  icon?: string;
@@ -305,6 +266,7 @@ export declare const VariationComparator: {
305
266
  masks?: readonly string[];
306
267
  tags?: readonly string[];
307
268
  allowTargetBlank?: boolean;
269
+ allowText?: boolean;
308
270
  };
309
271
  }) | ({
310
272
  type: "Number";
@@ -381,46 +343,6 @@ export declare const VariationComparator: {
381
343
  };
382
344
  }) | ({
383
345
  type: "Group";
384
- } & {
385
- fieldset?: string | null | undefined;
386
- icon?: string;
387
- description?: string;
388
- config?: {
389
- as: "Link";
390
- fields: {
391
- link: {
392
- type: "Link";
393
- } & {
394
- fieldset?: string | null | undefined;
395
- config?: {
396
- label?: string | null | undefined;
397
- useAsTitle?: boolean;
398
- placeholder?: string;
399
- select?: "media" | "document" | "web" | null;
400
- customtypes?: readonly string[];
401
- masks?: readonly string[];
402
- tags?: readonly string[];
403
- allowTargetBlank?: boolean;
404
- };
405
- };
406
- } & {
407
- text?: {
408
- type: "Text";
409
- } & {
410
- fieldset?: string | null | undefined;
411
- config?: {
412
- label?: string | null | undefined;
413
- useAsTitle?: boolean;
414
- placeholder?: string;
415
- };
416
- };
417
- };
418
- } & {
419
- label?: string | null | undefined;
420
- repeat?: boolean;
421
- };
422
- }) | ({
423
- type: "Group";
424
346
  } & {
425
347
  fieldset?: string | null | undefined;
426
348
  icon?: string;
@@ -511,6 +433,7 @@ export declare const VariationComparator: {
511
433
  masks?: readonly string[];
512
434
  tags?: readonly string[];
513
435
  allowTargetBlank?: boolean;
436
+ allowText?: boolean;
514
437
  };
515
438
  }) | ({
516
439
  type: "Number";
@@ -676,6 +599,7 @@ export declare const VariationComparator: {
676
599
  masks?: readonly string[];
677
600
  tags?: readonly string[];
678
601
  allowTargetBlank?: boolean;
602
+ allowText?: boolean;
679
603
  };
680
604
  }) | ({
681
605
  type: "Number";
@@ -844,6 +768,7 @@ export declare const VariationComparator: {
844
768
  masks?: readonly string[];
845
769
  tags?: readonly string[];
846
770
  allowTargetBlank?: boolean;
771
+ allowText?: boolean;
847
772
  };
848
773
  }) | ({
849
774
  type: "Number";
@@ -920,46 +845,6 @@ export declare const VariationComparator: {
920
845
  };
921
846
  }) | ({
922
847
  type: "Group";
923
- } & {
924
- fieldset?: string | null | undefined;
925
- icon?: string;
926
- description?: string;
927
- config?: {
928
- as: "Link";
929
- fields: {
930
- link: {
931
- type: "Link";
932
- } & {
933
- fieldset?: string | null | undefined;
934
- config?: {
935
- label?: string | null | undefined;
936
- useAsTitle?: boolean;
937
- placeholder?: string;
938
- select?: "media" | "document" | "web" | null;
939
- customtypes?: readonly string[];
940
- masks?: readonly string[];
941
- tags?: readonly string[];
942
- allowTargetBlank?: boolean;
943
- };
944
- };
945
- } & {
946
- text?: {
947
- type: "Text";
948
- } & {
949
- fieldset?: string | null | undefined;
950
- config?: {
951
- label?: string | null | undefined;
952
- useAsTitle?: boolean;
953
- placeholder?: string;
954
- };
955
- };
956
- };
957
- } & {
958
- label?: string | null | undefined;
959
- repeat?: boolean;
960
- };
961
- }) | ({
962
- type: "Group";
963
848
  } & {
964
849
  fieldset?: string | null | undefined;
965
850
  icon?: string;
@@ -1050,6 +935,7 @@ export declare const VariationComparator: {
1050
935
  masks?: readonly string[];
1051
936
  tags?: readonly string[];
1052
937
  allowTargetBlank?: boolean;
938
+ allowText?: boolean;
1053
939
  };
1054
940
  }) | ({
1055
941
  type: "Number";
@@ -1126,46 +1012,6 @@ export declare const VariationComparator: {
1126
1012
  };
1127
1013
  }) | ({
1128
1014
  type: "Group";
1129
- } & {
1130
- fieldset?: string | null | undefined;
1131
- icon?: string;
1132
- description?: string;
1133
- config?: {
1134
- as: "Link";
1135
- fields: {
1136
- link: {
1137
- type: "Link";
1138
- } & {
1139
- fieldset?: string | null | undefined;
1140
- config?: {
1141
- label?: string | null | undefined;
1142
- useAsTitle?: boolean;
1143
- placeholder?: string;
1144
- select?: "media" | "document" | "web" | null;
1145
- customtypes?: readonly string[];
1146
- masks?: readonly string[];
1147
- tags?: readonly string[];
1148
- allowTargetBlank?: boolean;
1149
- };
1150
- };
1151
- } & {
1152
- text?: {
1153
- type: "Text";
1154
- } & {
1155
- fieldset?: string | null | undefined;
1156
- config?: {
1157
- label?: string | null | undefined;
1158
- useAsTitle?: boolean;
1159
- placeholder?: string;
1160
- };
1161
- };
1162
- };
1163
- } & {
1164
- label?: string | null | undefined;
1165
- repeat?: boolean;
1166
- };
1167
- }) | ({
1168
- type: "Group";
1169
1015
  } & {
1170
1016
  fieldset?: string | null | undefined;
1171
1017
  icon?: string;
@@ -1256,6 +1102,7 @@ export declare const VariationComparator: {
1256
1102
  masks?: readonly string[];
1257
1103
  tags?: readonly string[];
1258
1104
  allowTargetBlank?: boolean;
1105
+ allowText?: boolean;
1259
1106
  };
1260
1107
  }) | ({
1261
1108
  type: "Number";
@@ -1421,6 +1268,7 @@ export declare const VariationComparator: {
1421
1268
  masks?: readonly string[];
1422
1269
  tags?: readonly string[];
1423
1270
  allowTargetBlank?: boolean;
1271
+ allowText?: boolean;
1424
1272
  };
1425
1273
  }) | ({
1426
1274
  type: "Number";