@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
@@ -1,4 +1,3 @@
1
- import { Group } from "../widgets/Group";
2
1
  import type { Variation } from "../widgets/slices";
3
2
  import { type DiffChange } from "./Changes";
4
3
  import type { NestableWidgetDiff, SlicePrimaryWidgetDiff } from "./Widgets";
@@ -174,7 +173,345 @@ export declare const VariationComparator: {
174
173
  placeholder?: string;
175
174
  default?: string;
176
175
  };
177
- }) | Group;
176
+ }) | ({
177
+ type: "Group";
178
+ } & {
179
+ fieldset?: string | null | undefined;
180
+ icon?: string;
181
+ description?: string;
182
+ config?: {
183
+ label?: string | null | undefined;
184
+ repeat?: boolean;
185
+ fields?: {
186
+ [x: string]: ({
187
+ type: "Boolean";
188
+ } & {
189
+ config?: {
190
+ label?: string | null | undefined;
191
+ default_value?: boolean;
192
+ placeholder_true?: string;
193
+ placeholder_false?: string;
194
+ };
195
+ }) | ({
196
+ type: "Color";
197
+ } & {
198
+ fieldset?: string | null | undefined;
199
+ config?: {
200
+ label?: string | null | undefined;
201
+ placeholder?: string;
202
+ };
203
+ }) | ({
204
+ type: "Date";
205
+ } & {
206
+ fieldset?: string | null | undefined;
207
+ config?: {
208
+ label?: string | null | undefined;
209
+ placeholder?: string;
210
+ default?: string;
211
+ };
212
+ }) | ({
213
+ type: "Embed";
214
+ } & {
215
+ fieldset?: string | null | undefined;
216
+ config?: {
217
+ label?: string | null | undefined;
218
+ placeholder?: string;
219
+ useAsTitle?: boolean;
220
+ };
221
+ }) | ({
222
+ type: "GeoPoint";
223
+ } & {
224
+ fieldset?: string | null | undefined;
225
+ config?: {
226
+ label?: string | null | undefined;
227
+ };
228
+ }) | ({
229
+ type: "Image";
230
+ } & {
231
+ fieldset?: string | null | undefined;
232
+ config?: {
233
+ label?: string | null | undefined;
234
+ placeholder?: string;
235
+ constraint?: {
236
+ width?: number | null;
237
+ height?: number | null;
238
+ };
239
+ thumbnails?: readonly ({
240
+ name: string;
241
+ } & {
242
+ width?: number | null;
243
+ height?: number | null;
244
+ })[];
245
+ };
246
+ }) | ({
247
+ type: "IntegrationFields";
248
+ } & {
249
+ fieldset?: string | null | undefined;
250
+ config?: {
251
+ label?: string | null | undefined;
252
+ placeholder?: string;
253
+ catalog?: string;
254
+ };
255
+ }) | ({
256
+ type: "Link";
257
+ } & {
258
+ fieldset?: string | null | undefined;
259
+ config?: {
260
+ label?: string | null | undefined;
261
+ useAsTitle?: boolean;
262
+ placeholder?: string;
263
+ select?: "media" | "document" | "web" | null;
264
+ customtypes?: readonly string[];
265
+ masks?: readonly string[];
266
+ tags?: readonly string[];
267
+ allowTargetBlank?: boolean;
268
+ };
269
+ }) | ({
270
+ type: "Number";
271
+ } & {
272
+ fieldset?: string | null | undefined;
273
+ config?: {
274
+ label?: string | null | undefined;
275
+ placeholder?: string;
276
+ min?: number;
277
+ max?: number;
278
+ step?: number;
279
+ };
280
+ }) | ({
281
+ type: "Range";
282
+ } & {
283
+ fieldset?: string | null | undefined;
284
+ config?: {
285
+ label?: string | null | undefined;
286
+ placeholder?: string;
287
+ min?: number;
288
+ max?: number;
289
+ step?: number;
290
+ };
291
+ }) | ({
292
+ type: "StructuredText";
293
+ } & {
294
+ fieldset?: string | null | undefined;
295
+ config?: {
296
+ label?: string | null | undefined;
297
+ placeholder?: string;
298
+ useAsTitle?: boolean;
299
+ single?: string;
300
+ multi?: string;
301
+ imageConstraint?: {
302
+ width?: number | null;
303
+ height?: number | null;
304
+ };
305
+ labels?: readonly string[];
306
+ allowTargetBlank?: boolean;
307
+ };
308
+ }) | ({
309
+ type: "Select";
310
+ } & {
311
+ fieldset?: string | null | undefined;
312
+ config?: {
313
+ label?: string | null | undefined;
314
+ placeholder?: string;
315
+ default_value?: string;
316
+ options?: readonly string[];
317
+ };
318
+ }) | ({
319
+ type: "Separator";
320
+ } & {
321
+ config?: {
322
+ label?: string | null | undefined;
323
+ };
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
+ }) | ({
334
+ type: "Timestamp";
335
+ } & {
336
+ fieldset?: string | null | undefined;
337
+ config?: {
338
+ label?: string | null | undefined;
339
+ placeholder?: string;
340
+ default?: string;
341
+ };
342
+ }) | ({
343
+ type: "Group";
344
+ } & {
345
+ fieldset?: string | null | undefined;
346
+ icon?: string;
347
+ description?: string;
348
+ config?: {
349
+ label?: string | null | undefined;
350
+ repeat?: boolean;
351
+ fields?: {
352
+ [x: string]: ({
353
+ type: "Boolean";
354
+ } & {
355
+ config?: {
356
+ label?: string | null | undefined;
357
+ default_value?: boolean;
358
+ placeholder_true?: string;
359
+ placeholder_false?: string;
360
+ };
361
+ }) | ({
362
+ type: "Color";
363
+ } & {
364
+ fieldset?: string | null | undefined;
365
+ config?: {
366
+ label?: string | null | undefined;
367
+ placeholder?: string;
368
+ };
369
+ }) | ({
370
+ type: "Date";
371
+ } & {
372
+ fieldset?: string | null | undefined;
373
+ config?: {
374
+ label?: string | null | undefined;
375
+ placeholder?: string;
376
+ default?: string;
377
+ };
378
+ }) | ({
379
+ type: "Embed";
380
+ } & {
381
+ fieldset?: string | null | undefined;
382
+ config?: {
383
+ label?: string | null | undefined;
384
+ placeholder?: string;
385
+ useAsTitle?: boolean;
386
+ };
387
+ }) | ({
388
+ type: "GeoPoint";
389
+ } & {
390
+ fieldset?: string | null | undefined;
391
+ config?: {
392
+ label?: string | null | undefined;
393
+ };
394
+ }) | ({
395
+ type: "Image";
396
+ } & {
397
+ fieldset?: string | null | undefined;
398
+ config?: {
399
+ label?: string | null | undefined;
400
+ placeholder?: string;
401
+ constraint?: {
402
+ width?: number | null;
403
+ height?: number | null;
404
+ };
405
+ thumbnails?: readonly ({
406
+ name: string;
407
+ } & {
408
+ width?: number | null;
409
+ height?: number | null;
410
+ })[];
411
+ };
412
+ }) | ({
413
+ type: "IntegrationFields";
414
+ } & {
415
+ fieldset?: string | null | undefined;
416
+ config?: {
417
+ label?: string | null | undefined;
418
+ placeholder?: string;
419
+ catalog?: string;
420
+ };
421
+ }) | ({
422
+ type: "Link";
423
+ } & {
424
+ fieldset?: string | null | undefined;
425
+ config?: {
426
+ label?: string | null | undefined;
427
+ useAsTitle?: boolean;
428
+ placeholder?: string;
429
+ select?: "media" | "document" | "web" | null;
430
+ customtypes?: readonly string[];
431
+ masks?: readonly string[];
432
+ tags?: readonly string[];
433
+ allowTargetBlank?: boolean;
434
+ };
435
+ }) | ({
436
+ type: "Number";
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: "Range";
448
+ } & {
449
+ fieldset?: string | null | undefined;
450
+ config?: {
451
+ label?: string | null | undefined;
452
+ placeholder?: string;
453
+ min?: number;
454
+ max?: number;
455
+ step?: number;
456
+ };
457
+ }) | ({
458
+ type: "StructuredText";
459
+ } & {
460
+ fieldset?: string | null | undefined;
461
+ config?: {
462
+ label?: string | null | undefined;
463
+ placeholder?: string;
464
+ useAsTitle?: boolean;
465
+ single?: string;
466
+ multi?: string;
467
+ imageConstraint?: {
468
+ width?: number | null;
469
+ height?: number | null;
470
+ };
471
+ labels?: readonly string[];
472
+ allowTargetBlank?: boolean;
473
+ };
474
+ }) | ({
475
+ type: "Select";
476
+ } & {
477
+ fieldset?: string | null | undefined;
478
+ config?: {
479
+ label?: string | null | undefined;
480
+ placeholder?: string;
481
+ default_value?: string;
482
+ options?: readonly string[];
483
+ };
484
+ }) | ({
485
+ type: "Separator";
486
+ } & {
487
+ config?: {
488
+ label?: string | null | undefined;
489
+ };
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
+ }) | ({
500
+ type: "Timestamp";
501
+ } & {
502
+ fieldset?: string | null | undefined;
503
+ config?: {
504
+ label?: string | null | undefined;
505
+ placeholder?: string;
506
+ default?: string;
507
+ };
508
+ });
509
+ };
510
+ };
511
+ });
512
+ };
513
+ };
514
+ });
178
515
  };
179
516
  items?: {
180
517
  [x: string]: ({
@@ -501,7 +838,345 @@ export declare const VariationComparator: {
501
838
  placeholder?: string;
502
839
  default?: string;
503
840
  };
504
- }) | Group;
841
+ }) | ({
842
+ type: "Group";
843
+ } & {
844
+ fieldset?: string | null | undefined;
845
+ icon?: string;
846
+ description?: string;
847
+ config?: {
848
+ label?: string | null | undefined;
849
+ repeat?: boolean;
850
+ fields?: {
851
+ [x: string]: ({
852
+ type: "Boolean";
853
+ } & {
854
+ config?: {
855
+ label?: string | null | undefined;
856
+ default_value?: boolean;
857
+ placeholder_true?: string;
858
+ placeholder_false?: string;
859
+ };
860
+ }) | ({
861
+ type: "Color";
862
+ } & {
863
+ fieldset?: string | null | undefined;
864
+ config?: {
865
+ label?: string | null | undefined;
866
+ placeholder?: string;
867
+ };
868
+ }) | ({
869
+ type: "Date";
870
+ } & {
871
+ fieldset?: string | null | undefined;
872
+ config?: {
873
+ label?: string | null | undefined;
874
+ placeholder?: string;
875
+ default?: string;
876
+ };
877
+ }) | ({
878
+ type: "Embed";
879
+ } & {
880
+ fieldset?: string | null | undefined;
881
+ config?: {
882
+ label?: string | null | undefined;
883
+ placeholder?: string;
884
+ useAsTitle?: boolean;
885
+ };
886
+ }) | ({
887
+ type: "GeoPoint";
888
+ } & {
889
+ fieldset?: string | null | undefined;
890
+ config?: {
891
+ label?: string | null | undefined;
892
+ };
893
+ }) | ({
894
+ type: "Image";
895
+ } & {
896
+ fieldset?: string | null | undefined;
897
+ config?: {
898
+ label?: string | null | undefined;
899
+ placeholder?: string;
900
+ constraint?: {
901
+ width?: number | null;
902
+ height?: number | null;
903
+ };
904
+ thumbnails?: readonly ({
905
+ name: string;
906
+ } & {
907
+ width?: number | null;
908
+ height?: number | null;
909
+ })[];
910
+ };
911
+ }) | ({
912
+ type: "IntegrationFields";
913
+ } & {
914
+ fieldset?: string | null | undefined;
915
+ config?: {
916
+ label?: string | null | undefined;
917
+ placeholder?: string;
918
+ catalog?: string;
919
+ };
920
+ }) | ({
921
+ type: "Link";
922
+ } & {
923
+ fieldset?: string | null | undefined;
924
+ config?: {
925
+ label?: string | null | undefined;
926
+ useAsTitle?: boolean;
927
+ placeholder?: string;
928
+ select?: "media" | "document" | "web" | null;
929
+ customtypes?: readonly string[];
930
+ masks?: readonly string[];
931
+ tags?: readonly string[];
932
+ allowTargetBlank?: boolean;
933
+ };
934
+ }) | ({
935
+ type: "Number";
936
+ } & {
937
+ fieldset?: string | null | undefined;
938
+ config?: {
939
+ label?: string | null | undefined;
940
+ placeholder?: string;
941
+ min?: number;
942
+ max?: number;
943
+ step?: number;
944
+ };
945
+ }) | ({
946
+ type: "Range";
947
+ } & {
948
+ fieldset?: string | null | undefined;
949
+ config?: {
950
+ label?: string | null | undefined;
951
+ placeholder?: string;
952
+ min?: number;
953
+ max?: number;
954
+ step?: number;
955
+ };
956
+ }) | ({
957
+ type: "StructuredText";
958
+ } & {
959
+ fieldset?: string | null | undefined;
960
+ config?: {
961
+ label?: string | null | undefined;
962
+ placeholder?: string;
963
+ useAsTitle?: boolean;
964
+ single?: string;
965
+ multi?: string;
966
+ imageConstraint?: {
967
+ width?: number | null;
968
+ height?: number | null;
969
+ };
970
+ labels?: readonly string[];
971
+ allowTargetBlank?: boolean;
972
+ };
973
+ }) | ({
974
+ type: "Select";
975
+ } & {
976
+ fieldset?: string | null | undefined;
977
+ config?: {
978
+ label?: string | null | undefined;
979
+ placeholder?: string;
980
+ default_value?: string;
981
+ options?: readonly string[];
982
+ };
983
+ }) | ({
984
+ type: "Separator";
985
+ } & {
986
+ config?: {
987
+ label?: string | null | undefined;
988
+ };
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
+ }) | ({
999
+ type: "Timestamp";
1000
+ } & {
1001
+ fieldset?: string | null | undefined;
1002
+ config?: {
1003
+ label?: string | null | undefined;
1004
+ placeholder?: string;
1005
+ default?: string;
1006
+ };
1007
+ }) | ({
1008
+ type: "Group";
1009
+ } & {
1010
+ fieldset?: string | null | undefined;
1011
+ icon?: string;
1012
+ description?: string;
1013
+ config?: {
1014
+ label?: string | null | undefined;
1015
+ repeat?: boolean;
1016
+ fields?: {
1017
+ [x: string]: ({
1018
+ type: "Boolean";
1019
+ } & {
1020
+ config?: {
1021
+ label?: string | null | undefined;
1022
+ default_value?: boolean;
1023
+ placeholder_true?: string;
1024
+ placeholder_false?: string;
1025
+ };
1026
+ }) | ({
1027
+ type: "Color";
1028
+ } & {
1029
+ fieldset?: string | null | undefined;
1030
+ config?: {
1031
+ label?: string | null | undefined;
1032
+ placeholder?: string;
1033
+ };
1034
+ }) | ({
1035
+ type: "Date";
1036
+ } & {
1037
+ fieldset?: string | null | undefined;
1038
+ config?: {
1039
+ label?: string | null | undefined;
1040
+ placeholder?: string;
1041
+ default?: string;
1042
+ };
1043
+ }) | ({
1044
+ type: "Embed";
1045
+ } & {
1046
+ fieldset?: string | null | undefined;
1047
+ config?: {
1048
+ label?: string | null | undefined;
1049
+ placeholder?: string;
1050
+ useAsTitle?: boolean;
1051
+ };
1052
+ }) | ({
1053
+ type: "GeoPoint";
1054
+ } & {
1055
+ fieldset?: string | null | undefined;
1056
+ config?: {
1057
+ label?: string | null | undefined;
1058
+ };
1059
+ }) | ({
1060
+ type: "Image";
1061
+ } & {
1062
+ fieldset?: string | null | undefined;
1063
+ config?: {
1064
+ label?: string | null | undefined;
1065
+ placeholder?: string;
1066
+ constraint?: {
1067
+ width?: number | null;
1068
+ height?: number | null;
1069
+ };
1070
+ thumbnails?: readonly ({
1071
+ name: string;
1072
+ } & {
1073
+ width?: number | null;
1074
+ height?: number | null;
1075
+ })[];
1076
+ };
1077
+ }) | ({
1078
+ type: "IntegrationFields";
1079
+ } & {
1080
+ fieldset?: string | null | undefined;
1081
+ config?: {
1082
+ label?: string | null | undefined;
1083
+ placeholder?: string;
1084
+ catalog?: string;
1085
+ };
1086
+ }) | ({
1087
+ type: "Link";
1088
+ } & {
1089
+ fieldset?: string | null | undefined;
1090
+ config?: {
1091
+ label?: string | null | undefined;
1092
+ useAsTitle?: boolean;
1093
+ placeholder?: string;
1094
+ select?: "media" | "document" | "web" | null;
1095
+ customtypes?: readonly string[];
1096
+ masks?: readonly string[];
1097
+ tags?: readonly string[];
1098
+ allowTargetBlank?: boolean;
1099
+ };
1100
+ }) | ({
1101
+ type: "Number";
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: "Range";
1113
+ } & {
1114
+ fieldset?: string | null | undefined;
1115
+ config?: {
1116
+ label?: string | null | undefined;
1117
+ placeholder?: string;
1118
+ min?: number;
1119
+ max?: number;
1120
+ step?: number;
1121
+ };
1122
+ }) | ({
1123
+ type: "StructuredText";
1124
+ } & {
1125
+ fieldset?: string | null | undefined;
1126
+ config?: {
1127
+ label?: string | null | undefined;
1128
+ placeholder?: string;
1129
+ useAsTitle?: boolean;
1130
+ single?: string;
1131
+ multi?: string;
1132
+ imageConstraint?: {
1133
+ width?: number | null;
1134
+ height?: number | null;
1135
+ };
1136
+ labels?: readonly string[];
1137
+ allowTargetBlank?: boolean;
1138
+ };
1139
+ }) | ({
1140
+ type: "Select";
1141
+ } & {
1142
+ fieldset?: string | null | undefined;
1143
+ config?: {
1144
+ label?: string | null | undefined;
1145
+ placeholder?: string;
1146
+ default_value?: string;
1147
+ options?: readonly string[];
1148
+ };
1149
+ }) | ({
1150
+ type: "Separator";
1151
+ } & {
1152
+ config?: {
1153
+ label?: string | null | undefined;
1154
+ };
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
+ }) | ({
1165
+ type: "Timestamp";
1166
+ } & {
1167
+ fieldset?: string | null | undefined;
1168
+ config?: {
1169
+ label?: string | null | undefined;
1170
+ placeholder?: string;
1171
+ default?: string;
1172
+ };
1173
+ });
1174
+ };
1175
+ };
1176
+ });
1177
+ };
1178
+ };
1179
+ });
505
1180
  };
506
1181
  items?: {
507
1182
  [x: string]: ({