@prismicio/types-internal 2.4.0-alpha.1 → 2.4.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 (44) hide show
  1. package/lib/content/Document.d.ts +0 -72
  2. package/lib/content/fields/GroupContent.d.ts +0 -15
  3. package/lib/content/fields/WidgetContent.d.ts +0 -72
  4. package/lib/content/fields/nestable/ImageContent.d.ts +0 -9
  5. package/lib/content/fields/nestable/ImageContent.js +0 -1
  6. package/lib/content/fields/nestable/NestableContent.d.ts +0 -9
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -4
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -4
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -18
  10. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -6
  11. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -18
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.js +3 -1
  13. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -18
  14. package/lib/content/fields/slices/Slice/index.d.ts +0 -36
  15. package/lib/content/fields/slices/SliceItem.d.ts +0 -36
  16. package/lib/content/fields/slices/SlicesContent.d.ts +0 -54
  17. package/lib/customtypes/CustomType.d.ts +169 -14
  18. package/lib/customtypes/Section.d.ts +169 -14
  19. package/lib/customtypes/diff/SharedSlice.d.ts +338 -4
  20. package/lib/customtypes/diff/Variation.d.ts +340 -5
  21. package/lib/customtypes/widgets/Group.d.ts +0 -2
  22. package/lib/customtypes/widgets/Widget.d.ts +169 -16
  23. package/lib/customtypes/widgets/nestable/Image.d.ts +0 -2
  24. package/lib/customtypes/widgets/nestable/Image.js +0 -1
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -1
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -2
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -2
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +336 -6
  29. package/lib/customtypes/widgets/slices/SharedSlice.js +2 -1
  30. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +327 -0
  31. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +8 -0
  32. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
  33. package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
  34. package/lib/customtypes/widgets/slices/Slices.d.ts +338 -24
  35. package/lib/customtypes/widgets/slices/index.d.ts +1 -0
  36. package/lib/customtypes/widgets/slices/index.js +1 -0
  37. package/package.json +1 -1
  38. package/src/content/fields/nestable/ImageContent.ts +0 -1
  39. package/src/content/fields/slices/Slice/SharedSliceContent.ts +12 -2
  40. package/src/customtypes/diff/Variation.ts +6 -5
  41. package/src/customtypes/widgets/nestable/Image.ts +0 -1
  42. package/src/customtypes/widgets/slices/SharedSlice.ts +2 -1
  43. package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +9 -0
  44. package/src/customtypes/widgets/slices/index.ts +1 -0
@@ -79,7 +79,6 @@ export declare const SliceComparator: {
79
79
  width?: number | null;
80
80
  height?: number | null;
81
81
  })[];
82
- allowCaption?: boolean;
83
82
  };
84
83
  }) | ({
85
84
  type: "IntegrationFields";
@@ -177,6 +176,175 @@ export declare const SliceComparator: {
177
176
  placeholder?: string;
178
177
  default?: string;
179
178
  };
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
+ };
347
+ };
180
348
  });
181
349
  };
182
350
  items?: {
@@ -239,7 +407,6 @@ export declare const SliceComparator: {
239
407
  width?: number | null;
240
408
  height?: number | null;
241
409
  })[];
242
- allowCaption?: boolean;
243
410
  };
244
411
  }) | ({
245
412
  type: "IntegrationFields";
@@ -418,7 +585,6 @@ export declare const SliceComparator: {
418
585
  width?: number | null;
419
586
  height?: number | null;
420
587
  })[];
421
- allowCaption?: boolean;
422
588
  };
423
589
  }) | ({
424
590
  type: "IntegrationFields";
@@ -516,6 +682,175 @@ export declare const SliceComparator: {
516
682
  placeholder?: string;
517
683
  default?: string;
518
684
  };
685
+ }) | ({
686
+ type: "Group";
687
+ } & {
688
+ fieldset?: string | null | undefined;
689
+ icon?: string;
690
+ description?: string;
691
+ config?: {
692
+ label?: string | null | undefined;
693
+ repeat?: boolean;
694
+ fields?: {
695
+ [x: string]: ({
696
+ type: "Boolean";
697
+ } & {
698
+ config?: {
699
+ label?: string | null | undefined;
700
+ default_value?: boolean;
701
+ placeholder_true?: string;
702
+ placeholder_false?: string;
703
+ };
704
+ }) | ({
705
+ type: "Color";
706
+ } & {
707
+ fieldset?: string | null | undefined;
708
+ config?: {
709
+ label?: string | null | undefined;
710
+ placeholder?: string;
711
+ };
712
+ }) | ({
713
+ type: "Date";
714
+ } & {
715
+ fieldset?: string | null | undefined;
716
+ config?: {
717
+ label?: string | null | undefined;
718
+ placeholder?: string;
719
+ default?: string;
720
+ };
721
+ }) | ({
722
+ type: "Embed";
723
+ } & {
724
+ fieldset?: string | null | undefined;
725
+ config?: {
726
+ label?: string | null | undefined;
727
+ placeholder?: string;
728
+ useAsTitle?: boolean;
729
+ };
730
+ }) | ({
731
+ type: "GeoPoint";
732
+ } & {
733
+ fieldset?: string | null | undefined;
734
+ config?: {
735
+ label?: string | null | undefined;
736
+ };
737
+ }) | ({
738
+ type: "Image";
739
+ } & {
740
+ fieldset?: string | null | undefined;
741
+ config?: {
742
+ label?: string | null | undefined;
743
+ placeholder?: string;
744
+ constraint?: {
745
+ width?: number | null;
746
+ height?: number | null;
747
+ };
748
+ thumbnails?: readonly ({
749
+ name: string;
750
+ } & {
751
+ width?: number | null;
752
+ height?: number | null;
753
+ })[];
754
+ };
755
+ }) | ({
756
+ type: "IntegrationFields";
757
+ } & {
758
+ fieldset?: string | null | undefined;
759
+ config?: {
760
+ label?: string | null | undefined;
761
+ placeholder?: string;
762
+ catalog?: string;
763
+ };
764
+ }) | ({
765
+ type: "Link";
766
+ } & {
767
+ fieldset?: string | null | undefined;
768
+ config?: {
769
+ label?: string | null | undefined;
770
+ useAsTitle?: boolean;
771
+ placeholder?: string;
772
+ select?: "media" | "document" | "web" | null;
773
+ customtypes?: readonly string[];
774
+ masks?: readonly string[];
775
+ tags?: readonly string[];
776
+ allowTargetBlank?: boolean;
777
+ };
778
+ }) | ({
779
+ type: "Number";
780
+ } & {
781
+ fieldset?: string | null | undefined;
782
+ config?: {
783
+ label?: string | null | undefined;
784
+ placeholder?: string;
785
+ min?: number;
786
+ max?: number;
787
+ step?: number;
788
+ };
789
+ }) | ({
790
+ type: "Range";
791
+ } & {
792
+ fieldset?: string | null | undefined;
793
+ config?: {
794
+ label?: string | null | undefined;
795
+ placeholder?: string;
796
+ min?: number;
797
+ max?: number;
798
+ step?: number;
799
+ };
800
+ }) | ({
801
+ type: "StructuredText";
802
+ } & {
803
+ fieldset?: string | null | undefined;
804
+ config?: {
805
+ label?: string | null | undefined;
806
+ placeholder?: string;
807
+ useAsTitle?: boolean;
808
+ single?: string;
809
+ multi?: string;
810
+ imageConstraint?: {
811
+ width?: number | null;
812
+ height?: number | null;
813
+ };
814
+ labels?: readonly string[];
815
+ allowTargetBlank?: boolean;
816
+ };
817
+ }) | ({
818
+ type: "Select";
819
+ } & {
820
+ fieldset?: string | null | undefined;
821
+ config?: {
822
+ label?: string | null | undefined;
823
+ placeholder?: string;
824
+ default_value?: string;
825
+ options?: readonly string[];
826
+ };
827
+ }) | ({
828
+ type: "Separator";
829
+ } & {
830
+ config?: {
831
+ label?: string | null | undefined;
832
+ };
833
+ }) | ({
834
+ type: "Text";
835
+ } & {
836
+ fieldset?: string | null | undefined;
837
+ config?: {
838
+ label?: string | null | undefined;
839
+ useAsTitle?: boolean;
840
+ placeholder?: string;
841
+ };
842
+ }) | ({
843
+ type: "Timestamp";
844
+ } & {
845
+ fieldset?: string | null | undefined;
846
+ config?: {
847
+ label?: string | null | undefined;
848
+ placeholder?: string;
849
+ default?: string;
850
+ };
851
+ });
852
+ };
853
+ };
519
854
  });
520
855
  };
521
856
  items?: {
@@ -578,7 +913,6 @@ export declare const SliceComparator: {
578
913
  width?: number | null;
579
914
  height?: number | null;
580
915
  })[];
581
- allowCaption?: boolean;
582
916
  };
583
917
  }) | ({
584
918
  type: "IntegrationFields";