@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.
- package/lib/_internal/utils.d.ts +2 -2
- package/lib/content/Document.d.ts +1828 -1156
- package/lib/content/fields/WidgetContent.d.ts +1840 -1168
- package/lib/content/fields/nestable/LinkContent.d.ts +206 -8
- package/lib/content/fields/nestable/LinkContent.js +11 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +288 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +537 -6
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +260 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +580 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +2 -1
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +137 -2160
- package/lib/content/fields/slices/Slice/RepeatableContent.js +6 -148
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +580 -8
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +294 -1051
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +7 -10
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +288 -2
- package/lib/content/fields/slices/Slice/index.d.ts +1077 -764
- package/lib/content/fields/slices/Slice/index.js +0 -1
- package/lib/content/fields/slices/SliceItem.d.ts +1107 -793
- package/lib/content/fields/slices/SlicesContent.d.ts +2537 -2151
- package/lib/customtypes/CustomType.d.ts +342 -162
- package/lib/customtypes/Section.d.ts +342 -162
- package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
- package/lib/customtypes/diff/Variation.d.ts +152 -72
- package/lib/customtypes/widgets/Group.d.ts +60 -0
- package/lib/customtypes/widgets/Widget.d.ts +318 -108
- package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
- package/lib/customtypes/widgets/nestable/Link.js +2 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
- package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
- package/package.json +1 -1
- package/src/_internal/utils.ts +1 -2
- package/src/content/fields/nestable/LinkContent.ts +13 -1
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -8
- package/src/content/fields/slices/Slice/RepeatableContent.ts +11 -242
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +17 -21
- package/src/content/fields/slices/Slice/index.ts +0 -1
- package/src/content/fields/slices/SlicesContent.ts +2 -2
- package/src/customtypes/widgets/nestable/Link.ts +2 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -8,6 +8,7 @@ const function_1 = require("fp-ts/lib/function");
|
|
|
8
8
|
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
9
9
|
const LegacyContentCtx_1 = require("../../../LegacyContentCtx");
|
|
10
10
|
const utils_1 = require("../../../utils");
|
|
11
|
+
const GroupContent_1 = require("../../GroupContent");
|
|
11
12
|
const nestable_1 = require("../../nestable");
|
|
12
13
|
const withDefaultValues_1 = require("../../withDefaultValues");
|
|
13
14
|
const RepeatableContent_1 = require("./RepeatableContent");
|
|
@@ -122,7 +123,7 @@ function traverseCompositeSliceContent({ path, sliceKey, sliceName, model, conte
|
|
|
122
123
|
[fieldKey]: transformedField,
|
|
123
124
|
};
|
|
124
125
|
}, {});
|
|
125
|
-
const items = (0,
|
|
126
|
+
const items = (0, GroupContent_1.traverseGroupItemsContent)({
|
|
126
127
|
path: path.concat([{ key: "repeat", type: "items" }]),
|
|
127
128
|
model: (model === null || model === void 0 ? void 0 : model.type) === "SharedSlice" ? model === null || model === void 0 ? void 0 : model.fields.items : model === null || model === void 0 ? void 0 : model.repeat,
|
|
128
129
|
content: content.widget.repeat,
|