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

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 (49) hide show
  1. package/lib/_internal/utils.d.ts +2 -2
  2. package/lib/content/Document.d.ts +1828 -1156
  3. package/lib/content/fields/WidgetContent.d.ts +1840 -1168
  4. package/lib/content/fields/nestable/LinkContent.d.ts +206 -8
  5. package/lib/content/fields/nestable/LinkContent.js +11 -1
  6. package/lib/content/fields/nestable/NestableContent.d.ts +288 -2
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +537 -6
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +260 -0
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +580 -8
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +2 -1
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +137 -2160
  12. package/lib/content/fields/slices/Slice/RepeatableContent.js +6 -148
  13. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +580 -8
  14. package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
  15. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +294 -1051
  16. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +7 -10
  17. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +288 -2
  18. package/lib/content/fields/slices/Slice/index.d.ts +1077 -764
  19. package/lib/content/fields/slices/Slice/index.js +0 -1
  20. package/lib/content/fields/slices/SliceItem.d.ts +1107 -793
  21. package/lib/content/fields/slices/SlicesContent.d.ts +2537 -2151
  22. package/lib/customtypes/CustomType.d.ts +342 -162
  23. package/lib/customtypes/Section.d.ts +342 -162
  24. package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
  25. package/lib/customtypes/diff/Variation.d.ts +152 -72
  26. package/lib/customtypes/widgets/Group.d.ts +60 -0
  27. package/lib/customtypes/widgets/Widget.d.ts +318 -108
  28. package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
  29. package/lib/customtypes/widgets/nestable/Link.js +2 -0
  30. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
  31. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
  32. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
  33. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
  34. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
  35. package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
  36. package/package.json +1 -1
  37. package/src/_internal/utils.ts +1 -2
  38. package/src/content/fields/nestable/LinkContent.ts +13 -1
  39. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -8
  40. package/src/content/fields/slices/Slice/RepeatableContent.ts +11 -242
  41. package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
  42. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +17 -21
  43. package/src/content/fields/slices/Slice/index.ts +0 -1
  44. package/src/content/fields/slices/SlicesContent.ts +2 -2
  45. package/src/customtypes/widgets/nestable/Link.ts +2 -0
  46. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
  47. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  48. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
  49. package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
@@ -1,5 +1,5 @@
1
1
  import type { SharedSliceItemContent, SliceItemContent, WidgetContent } from "../content";
2
- import type { CompositeSlice, Group, NestableWidget, NestedGroup, StaticSlices, UID, VariationFields } from "../customtypes";
2
+ import type { CompositeSlice, Group, NestableWidget, StaticSlices, UID, VariationFields } from "../customtypes";
3
3
  export declare type TraverseSliceContentFn = <S extends SliceItemContent | SharedSliceItemContent, D extends VariationFields | CompositeSlice | Group | NestableWidget>({ path, key, apiId, model, content, }: {
4
4
  path: ContentPath;
5
5
  key: string;
@@ -28,4 +28,4 @@ export declare const ContentPath: {
28
28
  type: ContentPathEntry["type"];
29
29
  }>): ContentPath;
30
30
  };
31
- export declare type SliceModel = VariationFields | NestableWidget | CompositeSlice | NestedGroup;
31
+ export declare type SliceModel = VariationFields | NestableWidget | CompositeSlice | Group;