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

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 +8 -8
  2. package/lib/content/fields/GroupContent.d.ts +8 -8
  3. package/lib/content/fields/GroupContent.js +14 -32
  4. package/lib/content/fields/WidgetContent.d.ts +8 -8
  5. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +4 -4
  6. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +0 -3
  7. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +3 -2
  8. package/lib/content/fields/slices/Slice/RepeatableContent.js +4 -1
  9. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +4 -4
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.js +0 -2
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +0 -1
  12. package/lib/content/fields/slices/Slice/index.d.ts +6 -6
  13. package/lib/content/fields/slices/SliceItem.d.ts +6 -6
  14. package/lib/content/fields/slices/SlicesContent.d.ts +8 -8
  15. package/lib/customtypes/CustomType.d.ts +2042 -690
  16. package/lib/customtypes/Section.d.ts +2028 -676
  17. package/lib/customtypes/diff/SharedSlice.d.ts +678 -2
  18. package/lib/customtypes/diff/Variation.d.ts +678 -3
  19. package/lib/customtypes/widgets/Group.d.ts +996 -15
  20. package/lib/customtypes/widgets/Group.js +15 -27
  21. package/lib/customtypes/widgets/Widget.d.ts +1684 -7
  22. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +168 -2
  23. package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
  24. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +670 -2
  25. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +674 -3
  26. package/lib/customtypes/widgets/slices/Slices.d.ts +1522 -7
  27. package/package.json +1 -1
  28. package/src/content/fields/GroupContent.ts +24 -48
  29. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -7
  30. package/src/content/fields/slices/Slice/RepeatableContent.ts +9 -2
  31. package/src/content/fields/slices/Slice/SharedSliceContent.ts +3 -5
  32. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +1 -3
  33. package/src/customtypes/widgets/Group.ts +34 -61
  34. package/src/customtypes/widgets/slices/LegacySlice.ts +2 -2
@@ -176,7 +176,345 @@ export declare const SliceComparator: {
176
176
  placeholder?: string;
177
177
  default?: string;
178
178
  };
179
- }) | import("..").Group;
179
+ }) | ({
180
+ type: "Group";
181
+ } & {
182
+ fieldset?: string | null | undefined;
183
+ icon?: string;
184
+ description?: string;
185
+ config?: {
186
+ label?: string | null | undefined;
187
+ repeat?: boolean;
188
+ fields?: {
189
+ [x: string]: ({
190
+ type: "Boolean";
191
+ } & {
192
+ config?: {
193
+ label?: string | null | undefined;
194
+ default_value?: boolean;
195
+ placeholder_true?: string;
196
+ placeholder_false?: string;
197
+ };
198
+ }) | ({
199
+ type: "Color";
200
+ } & {
201
+ fieldset?: string | null | undefined;
202
+ config?: {
203
+ label?: string | null | undefined;
204
+ placeholder?: string;
205
+ };
206
+ }) | ({
207
+ type: "Date";
208
+ } & {
209
+ fieldset?: string | null | undefined;
210
+ config?: {
211
+ label?: string | null | undefined;
212
+ placeholder?: string;
213
+ default?: string;
214
+ };
215
+ }) | ({
216
+ type: "Embed";
217
+ } & {
218
+ fieldset?: string | null | undefined;
219
+ config?: {
220
+ label?: string | null | undefined;
221
+ placeholder?: string;
222
+ useAsTitle?: boolean;
223
+ };
224
+ }) | ({
225
+ type: "GeoPoint";
226
+ } & {
227
+ fieldset?: string | null | undefined;
228
+ config?: {
229
+ label?: string | null | undefined;
230
+ };
231
+ }) | ({
232
+ type: "Image";
233
+ } & {
234
+ fieldset?: string | null | undefined;
235
+ config?: {
236
+ label?: string | null | undefined;
237
+ placeholder?: string;
238
+ constraint?: {
239
+ width?: number | null;
240
+ height?: number | null;
241
+ };
242
+ thumbnails?: readonly ({
243
+ name: string;
244
+ } & {
245
+ width?: number | null;
246
+ height?: number | null;
247
+ })[];
248
+ };
249
+ }) | ({
250
+ type: "IntegrationFields";
251
+ } & {
252
+ fieldset?: string | null | undefined;
253
+ config?: {
254
+ label?: string | null | undefined;
255
+ placeholder?: string;
256
+ catalog?: string;
257
+ };
258
+ }) | ({
259
+ type: "Link";
260
+ } & {
261
+ fieldset?: string | null | undefined;
262
+ config?: {
263
+ label?: string | null | undefined;
264
+ useAsTitle?: boolean;
265
+ placeholder?: string;
266
+ select?: "media" | "document" | "web" | null;
267
+ customtypes?: readonly string[];
268
+ masks?: readonly string[];
269
+ tags?: readonly string[];
270
+ allowTargetBlank?: boolean;
271
+ };
272
+ }) | ({
273
+ type: "Number";
274
+ } & {
275
+ fieldset?: string | null | undefined;
276
+ config?: {
277
+ label?: string | null | undefined;
278
+ placeholder?: string;
279
+ min?: number;
280
+ max?: number;
281
+ step?: number;
282
+ };
283
+ }) | ({
284
+ type: "Range";
285
+ } & {
286
+ fieldset?: string | null | undefined;
287
+ config?: {
288
+ label?: string | null | undefined;
289
+ placeholder?: string;
290
+ min?: number;
291
+ max?: number;
292
+ step?: number;
293
+ };
294
+ }) | ({
295
+ type: "StructuredText";
296
+ } & {
297
+ fieldset?: string | null | undefined;
298
+ config?: {
299
+ label?: string | null | undefined;
300
+ placeholder?: string;
301
+ useAsTitle?: boolean;
302
+ single?: string;
303
+ multi?: string;
304
+ imageConstraint?: {
305
+ width?: number | null;
306
+ height?: number | null;
307
+ };
308
+ labels?: readonly string[];
309
+ allowTargetBlank?: boolean;
310
+ };
311
+ }) | ({
312
+ type: "Select";
313
+ } & {
314
+ fieldset?: string | null | undefined;
315
+ config?: {
316
+ label?: string | null | undefined;
317
+ placeholder?: string;
318
+ default_value?: string;
319
+ options?: readonly string[];
320
+ };
321
+ }) | ({
322
+ type: "Separator";
323
+ } & {
324
+ config?: {
325
+ label?: string | null | undefined;
326
+ };
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
+ }) | ({
337
+ type: "Timestamp";
338
+ } & {
339
+ fieldset?: string | null | undefined;
340
+ config?: {
341
+ label?: string | null | undefined;
342
+ placeholder?: string;
343
+ default?: string;
344
+ };
345
+ }) | ({
346
+ type: "Group";
347
+ } & {
348
+ fieldset?: string | null | undefined;
349
+ icon?: string;
350
+ description?: string;
351
+ config?: {
352
+ label?: string | null | undefined;
353
+ repeat?: boolean;
354
+ fields?: {
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;
407
+ };
408
+ thumbnails?: readonly ({
409
+ name: string;
410
+ } & {
411
+ width?: number | null;
412
+ height?: number | null;
413
+ })[];
414
+ };
415
+ }) | ({
416
+ type: "IntegrationFields";
417
+ } & {
418
+ fieldset?: string | null | undefined;
419
+ config?: {
420
+ label?: string | null | undefined;
421
+ placeholder?: string;
422
+ catalog?: string;
423
+ };
424
+ }) | ({
425
+ type: "Link";
426
+ } & {
427
+ fieldset?: string | null | undefined;
428
+ config?: {
429
+ label?: string | null | undefined;
430
+ useAsTitle?: boolean;
431
+ placeholder?: string;
432
+ select?: "media" | "document" | "web" | null;
433
+ customtypes?: readonly string[];
434
+ masks?: readonly string[];
435
+ tags?: readonly string[];
436
+ allowTargetBlank?: boolean;
437
+ };
438
+ }) | ({
439
+ type: "Number";
440
+ } & {
441
+ fieldset?: string | null | undefined;
442
+ config?: {
443
+ label?: string | null | undefined;
444
+ placeholder?: string;
445
+ min?: number;
446
+ max?: number;
447
+ step?: number;
448
+ };
449
+ }) | ({
450
+ type: "Range";
451
+ } & {
452
+ fieldset?: string | null | undefined;
453
+ config?: {
454
+ label?: string | null | undefined;
455
+ placeholder?: string;
456
+ min?: number;
457
+ max?: number;
458
+ step?: number;
459
+ };
460
+ }) | ({
461
+ type: "StructuredText";
462
+ } & {
463
+ fieldset?: string | null | undefined;
464
+ config?: {
465
+ label?: string | null | undefined;
466
+ placeholder?: string;
467
+ useAsTitle?: boolean;
468
+ single?: string;
469
+ multi?: string;
470
+ imageConstraint?: {
471
+ width?: number | null;
472
+ height?: number | null;
473
+ };
474
+ labels?: readonly string[];
475
+ allowTargetBlank?: boolean;
476
+ };
477
+ }) | ({
478
+ type: "Select";
479
+ } & {
480
+ fieldset?: string | null | undefined;
481
+ config?: {
482
+ label?: string | null | undefined;
483
+ placeholder?: string;
484
+ default_value?: string;
485
+ options?: readonly string[];
486
+ };
487
+ }) | ({
488
+ type: "Separator";
489
+ } & {
490
+ config?: {
491
+ label?: string | null | undefined;
492
+ };
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
+ }) | ({
503
+ type: "Timestamp";
504
+ } & {
505
+ fieldset?: string | null | undefined;
506
+ config?: {
507
+ label?: string | null | undefined;
508
+ placeholder?: string;
509
+ default?: string;
510
+ };
511
+ });
512
+ };
513
+ };
514
+ });
515
+ };
516
+ };
517
+ });
180
518
  };
181
519
  items?: {
182
520
  [x: string]: ({
@@ -513,7 +851,345 @@ export declare const SliceComparator: {
513
851
  placeholder?: string;
514
852
  default?: string;
515
853
  };
516
- }) | import("..").Group;
854
+ }) | ({
855
+ type: "Group";
856
+ } & {
857
+ fieldset?: string | null | undefined;
858
+ icon?: string;
859
+ description?: string;
860
+ config?: {
861
+ label?: string | null | undefined;
862
+ repeat?: boolean;
863
+ fields?: {
864
+ [x: string]: ({
865
+ type: "Boolean";
866
+ } & {
867
+ config?: {
868
+ label?: string | null | undefined;
869
+ default_value?: boolean;
870
+ placeholder_true?: string;
871
+ placeholder_false?: string;
872
+ };
873
+ }) | ({
874
+ type: "Color";
875
+ } & {
876
+ fieldset?: string | null | undefined;
877
+ config?: {
878
+ label?: string | null | undefined;
879
+ placeholder?: string;
880
+ };
881
+ }) | ({
882
+ type: "Date";
883
+ } & {
884
+ fieldset?: string | null | undefined;
885
+ config?: {
886
+ label?: string | null | undefined;
887
+ placeholder?: string;
888
+ default?: string;
889
+ };
890
+ }) | ({
891
+ type: "Embed";
892
+ } & {
893
+ fieldset?: string | null | undefined;
894
+ config?: {
895
+ label?: string | null | undefined;
896
+ placeholder?: string;
897
+ useAsTitle?: boolean;
898
+ };
899
+ }) | ({
900
+ type: "GeoPoint";
901
+ } & {
902
+ fieldset?: string | null | undefined;
903
+ config?: {
904
+ label?: string | null | undefined;
905
+ };
906
+ }) | ({
907
+ type: "Image";
908
+ } & {
909
+ fieldset?: string | null | undefined;
910
+ config?: {
911
+ label?: string | null | undefined;
912
+ placeholder?: string;
913
+ constraint?: {
914
+ width?: number | null;
915
+ height?: number | null;
916
+ };
917
+ thumbnails?: readonly ({
918
+ name: string;
919
+ } & {
920
+ width?: number | null;
921
+ height?: number | null;
922
+ })[];
923
+ };
924
+ }) | ({
925
+ type: "IntegrationFields";
926
+ } & {
927
+ fieldset?: string | null | undefined;
928
+ config?: {
929
+ label?: string | null | undefined;
930
+ placeholder?: string;
931
+ catalog?: string;
932
+ };
933
+ }) | ({
934
+ type: "Link";
935
+ } & {
936
+ fieldset?: string | null | undefined;
937
+ config?: {
938
+ label?: string | null | undefined;
939
+ useAsTitle?: boolean;
940
+ placeholder?: string;
941
+ select?: "media" | "document" | "web" | null;
942
+ customtypes?: readonly string[];
943
+ masks?: readonly string[];
944
+ tags?: readonly string[];
945
+ allowTargetBlank?: boolean;
946
+ };
947
+ }) | ({
948
+ type: "Number";
949
+ } & {
950
+ fieldset?: string | null | undefined;
951
+ config?: {
952
+ label?: string | null | undefined;
953
+ placeholder?: string;
954
+ min?: number;
955
+ max?: number;
956
+ step?: number;
957
+ };
958
+ }) | ({
959
+ type: "Range";
960
+ } & {
961
+ fieldset?: string | null | undefined;
962
+ config?: {
963
+ label?: string | null | undefined;
964
+ placeholder?: string;
965
+ min?: number;
966
+ max?: number;
967
+ step?: number;
968
+ };
969
+ }) | ({
970
+ type: "StructuredText";
971
+ } & {
972
+ fieldset?: string | null | undefined;
973
+ config?: {
974
+ label?: string | null | undefined;
975
+ placeholder?: string;
976
+ useAsTitle?: boolean;
977
+ single?: string;
978
+ multi?: string;
979
+ imageConstraint?: {
980
+ width?: number | null;
981
+ height?: number | null;
982
+ };
983
+ labels?: readonly string[];
984
+ allowTargetBlank?: boolean;
985
+ };
986
+ }) | ({
987
+ type: "Select";
988
+ } & {
989
+ fieldset?: string | null | undefined;
990
+ config?: {
991
+ label?: string | null | undefined;
992
+ placeholder?: string;
993
+ default_value?: string;
994
+ options?: readonly string[];
995
+ };
996
+ }) | ({
997
+ type: "Separator";
998
+ } & {
999
+ config?: {
1000
+ label?: string | null | undefined;
1001
+ };
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
+ }) | ({
1012
+ type: "Timestamp";
1013
+ } & {
1014
+ fieldset?: string | null | undefined;
1015
+ config?: {
1016
+ label?: string | null | undefined;
1017
+ placeholder?: string;
1018
+ default?: string;
1019
+ };
1020
+ }) | ({
1021
+ type: "Group";
1022
+ } & {
1023
+ fieldset?: string | null | undefined;
1024
+ icon?: string;
1025
+ description?: string;
1026
+ config?: {
1027
+ label?: string | null | undefined;
1028
+ repeat?: boolean;
1029
+ fields?: {
1030
+ [x: string]: ({
1031
+ type: "Boolean";
1032
+ } & {
1033
+ config?: {
1034
+ label?: string | null | undefined;
1035
+ default_value?: boolean;
1036
+ placeholder_true?: string;
1037
+ placeholder_false?: string;
1038
+ };
1039
+ }) | ({
1040
+ type: "Color";
1041
+ } & {
1042
+ fieldset?: string | null | undefined;
1043
+ config?: {
1044
+ label?: string | null | undefined;
1045
+ placeholder?: string;
1046
+ };
1047
+ }) | ({
1048
+ type: "Date";
1049
+ } & {
1050
+ fieldset?: string | null | undefined;
1051
+ config?: {
1052
+ label?: string | null | undefined;
1053
+ placeholder?: string;
1054
+ default?: string;
1055
+ };
1056
+ }) | ({
1057
+ type: "Embed";
1058
+ } & {
1059
+ fieldset?: string | null | undefined;
1060
+ config?: {
1061
+ label?: string | null | undefined;
1062
+ placeholder?: string;
1063
+ useAsTitle?: boolean;
1064
+ };
1065
+ }) | ({
1066
+ type: "GeoPoint";
1067
+ } & {
1068
+ fieldset?: string | null | undefined;
1069
+ config?: {
1070
+ label?: string | null | undefined;
1071
+ };
1072
+ }) | ({
1073
+ type: "Image";
1074
+ } & {
1075
+ fieldset?: string | null | undefined;
1076
+ config?: {
1077
+ label?: string | null | undefined;
1078
+ placeholder?: string;
1079
+ constraint?: {
1080
+ width?: number | null;
1081
+ height?: number | null;
1082
+ };
1083
+ thumbnails?: readonly ({
1084
+ name: string;
1085
+ } & {
1086
+ width?: number | null;
1087
+ height?: number | null;
1088
+ })[];
1089
+ };
1090
+ }) | ({
1091
+ type: "IntegrationFields";
1092
+ } & {
1093
+ fieldset?: string | null | undefined;
1094
+ config?: {
1095
+ label?: string | null | undefined;
1096
+ placeholder?: string;
1097
+ catalog?: string;
1098
+ };
1099
+ }) | ({
1100
+ type: "Link";
1101
+ } & {
1102
+ fieldset?: string | null | undefined;
1103
+ config?: {
1104
+ label?: string | null | undefined;
1105
+ useAsTitle?: boolean;
1106
+ placeholder?: string;
1107
+ select?: "media" | "document" | "web" | null;
1108
+ customtypes?: readonly string[];
1109
+ masks?: readonly string[];
1110
+ tags?: readonly string[];
1111
+ allowTargetBlank?: boolean;
1112
+ };
1113
+ }) | ({
1114
+ type: "Number";
1115
+ } & {
1116
+ fieldset?: string | null | undefined;
1117
+ config?: {
1118
+ label?: string | null | undefined;
1119
+ placeholder?: string;
1120
+ min?: number;
1121
+ max?: number;
1122
+ step?: number;
1123
+ };
1124
+ }) | ({
1125
+ type: "Range";
1126
+ } & {
1127
+ fieldset?: string | null | undefined;
1128
+ config?: {
1129
+ label?: string | null | undefined;
1130
+ placeholder?: string;
1131
+ min?: number;
1132
+ max?: number;
1133
+ step?: number;
1134
+ };
1135
+ }) | ({
1136
+ type: "StructuredText";
1137
+ } & {
1138
+ fieldset?: string | null | undefined;
1139
+ config?: {
1140
+ label?: string | null | undefined;
1141
+ placeholder?: string;
1142
+ useAsTitle?: boolean;
1143
+ single?: string;
1144
+ multi?: string;
1145
+ imageConstraint?: {
1146
+ width?: number | null;
1147
+ height?: number | null;
1148
+ };
1149
+ labels?: readonly string[];
1150
+ allowTargetBlank?: boolean;
1151
+ };
1152
+ }) | ({
1153
+ type: "Select";
1154
+ } & {
1155
+ fieldset?: string | null | undefined;
1156
+ config?: {
1157
+ label?: string | null | undefined;
1158
+ placeholder?: string;
1159
+ default_value?: string;
1160
+ options?: readonly string[];
1161
+ };
1162
+ }) | ({
1163
+ type: "Separator";
1164
+ } & {
1165
+ config?: {
1166
+ label?: string | null | undefined;
1167
+ };
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
+ }) | ({
1178
+ type: "Timestamp";
1179
+ } & {
1180
+ fieldset?: string | null | undefined;
1181
+ config?: {
1182
+ label?: string | null | undefined;
1183
+ placeholder?: string;
1184
+ default?: string;
1185
+ };
1186
+ });
1187
+ };
1188
+ };
1189
+ });
1190
+ };
1191
+ };
1192
+ });
517
1193
  };
518
1194
  items?: {
519
1195
  [x: string]: ({