@prismicio/types-internal 3.4.0-alpha.2 → 3.4.0-alpha.4
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/content/Document.d.ts +3305 -3323
- package/lib/content/fields/RepeatableContent.d.ts +51 -123
- package/lib/content/fields/RepeatableContent.js +10 -14
- package/lib/content/fields/WidgetContent.d.ts +3046 -3064
- package/lib/content/fields/nestable/NestableContent.d.ts +501 -504
- package/lib/content/fields/nestable/NestableContent.js +0 -7
- package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
- package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +637 -9
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
- package/lib/content/fields/nestable/TableContent.d.ts +245 -12
- package/lib/content/fields/nestable/TableContent.js +7 -7
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1013 -1019
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +234 -235
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1013 -1019
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +501 -504
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +499 -502
- package/lib/content/fields/slices/Slice/index.d.ts +1852 -1862
- package/lib/content/fields/slices/SliceItem.d.ts +1957 -1967
- package/lib/content/fields/slices/SlicesContent.d.ts +2619 -2634
- package/lib/customtypes/CustomType.d.ts +0 -108
- package/lib/customtypes/Section.d.ts +0 -108
- package/lib/customtypes/diff/SharedSlice.d.ts +0 -48
- package/lib/customtypes/diff/Variation.d.ts +0 -48
- package/lib/customtypes/widgets/Group.d.ts +0 -36
- package/lib/customtypes/widgets/Widget.d.ts +0 -126
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -2
- package/lib/customtypes/widgets/nestable/RichText.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/RichText.js +2 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -12
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -48
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -36
- package/lib/customtypes/widgets/slices/Slices.d.ts +0 -168
- package/package.json +1 -1
- package/src/content/fields/nestable/NestableContent.ts +0 -12
- package/src/content/fields/nestable/RichTextContent/Block.ts +35 -0
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +81 -0
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +42 -0
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +36 -0
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +108 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +2 -2
- package/src/content/fields/nestable/TableContent.ts +6 -6
- package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -2
- package/src/customtypes/widgets/nestable/RichText.ts +2 -0
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
|
@@ -16,7 +16,6 @@ const LinkContent_1 = require("./LinkContent");
|
|
|
16
16
|
const RepeatableContent_1 = require("./RepeatableContent");
|
|
17
17
|
const RichTextContent_1 = require("./RichTextContent");
|
|
18
18
|
const SeparatorContent_1 = require("./SeparatorContent");
|
|
19
|
-
const TableContent_1 = require("./TableContent");
|
|
20
19
|
exports.NestableContent = t.union([
|
|
21
20
|
EmptyContent_1.EmptyContent,
|
|
22
21
|
BooleanContent_1.BooleanContent,
|
|
@@ -34,7 +33,6 @@ exports.NestableContent = t.union([
|
|
|
34
33
|
LinkContent_1.LinkContent,
|
|
35
34
|
RichTextContent_1.RichTextContent,
|
|
36
35
|
SeparatorContent_1.SeparatorContent,
|
|
37
|
-
TableContent_1.TableContent,
|
|
38
36
|
RepeatableContent_1.RepeatableContent,
|
|
39
37
|
]);
|
|
40
38
|
const NestableContentDefaultValue = (widgetDef) => {
|
|
@@ -63,7 +61,6 @@ const isNestableContent = (u) => (0, FieldContent_1.isTextContent)(u) ||
|
|
|
63
61
|
(0, IntegrationFieldContent_1.isIntegrationFieldContent)(u) ||
|
|
64
62
|
(0, LinkContent_1.isLinkContent)(u) ||
|
|
65
63
|
(0, SeparatorContent_1.isSeparatorContent)(u) ||
|
|
66
|
-
(0, TableContent_1.isTableContent)(u) ||
|
|
67
64
|
(0, EmptyContent_1.isEmptyContent)(u) ||
|
|
68
65
|
(0, RepeatableContent_1.isRepeatableContent)(u);
|
|
69
66
|
exports.isNestableContent = isNestableContent;
|
|
@@ -107,8 +104,6 @@ const NestableLegacy = (ctx) => {
|
|
|
107
104
|
return (0, LinkContent_1.LinkContentLegacy)(ctx);
|
|
108
105
|
case "Separator":
|
|
109
106
|
return (0, SeparatorContent_1.SeparatorLegacy)(ctx);
|
|
110
|
-
case "Table":
|
|
111
|
-
return (0, TableContent_1.TableLegacy)(ctx);
|
|
112
107
|
case "Repeatable.Link":
|
|
113
108
|
return (0, RepeatableContent_1.RepeatableLegacy)(ctx, "Link");
|
|
114
109
|
default:
|
|
@@ -154,8 +149,6 @@ const NestableLegacy = (ctx) => {
|
|
|
154
149
|
return (0, LinkContent_1.LinkContentLegacy)(ctx).encode(value);
|
|
155
150
|
case SeparatorContent_1.SeparatorContentType:
|
|
156
151
|
return (0, SeparatorContent_1.SeparatorLegacy)(ctx).encode(value);
|
|
157
|
-
case TableContent_1.TableContentType:
|
|
158
|
-
return (0, TableContent_1.TableLegacy)(ctx).encode(value);
|
|
159
152
|
case "RepeatableContent":
|
|
160
153
|
return (0, RepeatableContent_1.RepeatableLegacy)(ctx, value.type).encode(value);
|
|
161
154
|
default:
|