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

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 (50) hide show
  1. package/lib/content/Document.d.ts +3972 -7926
  2. package/lib/content/fields/GroupContent.d.ts +17 -1754
  3. package/lib/content/fields/GroupContent.js +62 -22
  4. package/lib/content/fields/WidgetContent.d.ts +3371 -7324
  5. package/lib/content/fields/nestable/NestableContent.d.ts +3 -145
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +4 -212
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.js +2 -0
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +4 -184
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +6 -290
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +3 -0
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -383
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +15 -1333
  13. package/lib/content/fields/slices/Slice/SharedSliceContent.js +2 -0
  14. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +7 -1182
  15. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +1 -0
  16. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +7 -1182
  17. package/lib/content/fields/slices/Slice/index.d.ts +983 -2935
  18. package/lib/content/fields/slices/SliceItem.d.ts +148 -2100
  19. package/lib/content/fields/slices/SlicesContent.d.ts +866 -3644
  20. package/lib/content/fields/withDefaultValues.d.ts +4 -3
  21. package/lib/content/fields/withDefaultValues.js +17 -1
  22. package/lib/customtypes/CustomType.d.ts +70 -915
  23. package/lib/customtypes/Section.d.ts +70 -915
  24. package/lib/customtypes/diff/SharedSlice.d.ts +2 -340
  25. package/lib/customtypes/diff/Variation.d.ts +4 -351
  26. package/lib/customtypes/diff/Variation.js +4 -3
  27. package/lib/customtypes/diff/Widgets.d.ts +11 -0
  28. package/lib/customtypes/diff/Widgets.js +2 -0
  29. package/lib/customtypes/diff/index.d.ts +1 -0
  30. package/lib/customtypes/diff/index.js +1 -0
  31. package/lib/customtypes/widgets/Group.d.ts +15 -331
  32. package/lib/customtypes/widgets/Group.js +25 -5
  33. package/lib/customtypes/widgets/Widget.d.ts +7 -1014
  34. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -168
  35. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -336
  36. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +3 -338
  37. package/lib/customtypes/widgets/slices/Slices.d.ts +7 -1184
  38. package/lib/validators/function.js +8 -1
  39. package/package.json +5 -5
  40. package/src/content/fields/GroupContent.ts +107 -32
  41. package/src/content/fields/nestable/RichTextContent/Blocks.ts +3 -1
  42. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +7 -4
  43. package/src/content/fields/slices/Slice/SharedSliceContent.ts +5 -3
  44. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +3 -1
  45. package/src/content/fields/withDefaultValues.ts +27 -3
  46. package/src/customtypes/diff/Variation.ts +9 -20
  47. package/src/customtypes/diff/Widgets.ts +17 -0
  48. package/src/customtypes/diff/index.ts +1 -0
  49. package/src/customtypes/widgets/Group.ts +66 -20
  50. package/src/validators/function.ts +11 -1
@@ -176,176 +176,7 @@ export declare const SliceComparator: {
176
176
  placeholder?: string;
177
177
  default?: string;
178
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
- };
348
- });
179
+ }) | import("..").Group;
349
180
  };
350
181
  items?: {
351
182
  [x: string]: ({
@@ -682,176 +513,7 @@ export declare const SliceComparator: {
682
513
  placeholder?: string;
683
514
  default?: string;
684
515
  };
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
- };
854
- });
516
+ }) | import("..").Group;
855
517
  };
856
518
  items?: {
857
519
  [x: string]: ({