@prismicio/types-internal 2.3.1 → 2.4.0-alpha.1
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 +72 -0
- package/lib/content/fields/GroupContent.d.ts +15 -0
- package/lib/content/fields/WidgetContent.d.ts +72 -0
- package/lib/content/fields/nestable/ImageContent.d.ts +9 -0
- package/lib/content/fields/nestable/ImageContent.js +1 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +9 -0
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +4 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +727 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +4 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +18 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +6 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +18 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +18 -0
- package/lib/content/fields/slices/Slice/index.d.ts +36 -0
- package/lib/content/fields/slices/SliceItem.d.ts +36 -0
- package/lib/content/fields/slices/SlicesContent.d.ts +54 -0
- package/lib/customtypes/CustomType.d.ts +14 -0
- package/lib/customtypes/Section.d.ts +14 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +4 -0
- package/lib/customtypes/diff/Variation.d.ts +4 -0
- package/lib/customtypes/widgets/Group.d.ts +2 -0
- package/lib/customtypes/widgets/Widget.d.ts +16 -0
- package/lib/customtypes/widgets/nestable/Image.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/Image.js +1 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +4 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +24 -0
- package/package.json +3 -3
- package/src/content/fields/nestable/ImageContent.ts +1 -0
- package/src/customtypes/widgets/nestable/Image.ts +1 -0
- package/lib/import/converters/Document.d.ts +0 -4
- package/lib/import/converters/Document.js +0 -21
- package/lib/import/converters/fields/Group.d.ts +0 -4
- package/lib/import/converters/fields/Group.js +0 -14
- package/lib/import/converters/fields/RepeatableZone.d.ts +0 -317
- package/lib/import/converters/fields/RepeatableZone.js +0 -15
- package/lib/import/converters/fields/RepeatableZoneItem.d.ts +0 -11
- package/lib/import/converters/fields/RepeatableZoneItem.js +0 -19
- package/lib/import/converters/fields/Slices/SharedSlice.d.ts +0 -4
- package/lib/import/converters/fields/Slices/SharedSlice.js +0 -19
- package/lib/import/converters/fields/Slices/SharedSliceContent.d.ts +0 -10
- package/lib/import/converters/fields/Slices/SharedSliceContent.js +0 -23
- package/lib/import/converters/fields/Slices/Slices.d.ts +0 -4
- package/lib/import/converters/fields/Slices/Slices.js +0 -16
- package/lib/import/converters/fields/Slices/index.d.ts +0 -1
- package/lib/import/converters/fields/Slices/index.js +0 -4
- package/lib/import/converters/fields/UID.d.ts +0 -3
- package/lib/import/converters/fields/UID.js +0 -10
- package/lib/import/converters/fields/index.d.ts +0 -4
- package/lib/import/converters/fields/index.js +0 -7
- package/lib/import/converters/fields/nestable/Boolean.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Boolean.js +0 -12
- package/lib/import/converters/fields/nestable/Color.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Color.js +0 -13
- package/lib/import/converters/fields/nestable/Date.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Date.js +0 -15
- package/lib/import/converters/fields/nestable/Embed.d.ts +0 -4
- package/lib/import/converters/fields/nestable/Embed.js +0 -32
- package/lib/import/converters/fields/nestable/GeoPoint.d.ts +0 -3
- package/lib/import/converters/fields/nestable/GeoPoint.js +0 -15
- package/lib/import/converters/fields/nestable/Image.d.ts +0 -28
- package/lib/import/converters/fields/nestable/Image.js +0 -67
- package/lib/import/converters/fields/nestable/Link.d.ts +0 -4
- package/lib/import/converters/fields/nestable/Link.js +0 -70
- package/lib/import/converters/fields/nestable/Nestable.d.ts +0 -5
- package/lib/import/converters/fields/nestable/Nestable.js +0 -35
- package/lib/import/converters/fields/nestable/Number.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Number.js +0 -13
- package/lib/import/converters/fields/nestable/RichText/embedBlock.d.ts +0 -4
- package/lib/import/converters/fields/nestable/RichText/embedBlock.js +0 -14
- package/lib/import/converters/fields/nestable/RichText/imageBlock.d.ts +0 -4
- package/lib/import/converters/fields/nestable/RichText/imageBlock.js +0 -12
- package/lib/import/converters/fields/nestable/RichText/index.d.ts +0 -4
- package/lib/import/converters/fields/nestable/RichText/index.js +0 -22
- package/lib/import/converters/fields/nestable/RichText/textBlock.d.ts +0 -4
- package/lib/import/converters/fields/nestable/RichText/textBlock.js +0 -54
- package/lib/import/converters/fields/nestable/Select.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Select.js +0 -13
- package/lib/import/converters/fields/nestable/Text.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Text.js +0 -13
- package/lib/import/converters/fields/nestable/Timestamp.d.ts +0 -3
- package/lib/import/converters/fields/nestable/Timestamp.js +0 -13
- package/lib/import/converters/fields/nestable/index.d.ts +0 -13
- package/lib/import/converters/fields/nestable/index.js +0 -16
- package/lib/import/converters/index.d.ts +0 -2
- package/lib/import/converters/index.js +0 -5
- package/lib/import/index.d.ts +0 -2
- package/lib/import/index.js +0 -5
- package/lib/import/validators/Document.d.ts +0 -6
- package/lib/import/validators/Document.js +0 -64
- package/lib/import/validators/fields/ImportContent.d.ts +0 -5
- package/lib/import/validators/fields/ImportContent.js +0 -21
- package/lib/import/validators/fields/ImportField.d.ts +0 -141
- package/lib/import/validators/fields/ImportField.js +0 -33
- package/lib/import/validators/fields/ImportGroup.d.ts +0 -345
- package/lib/import/validators/fields/ImportGroup.js +0 -27
- package/lib/import/validators/fields/ImportSlices/ImportSlices.d.ts +0 -8
- package/lib/import/validators/fields/ImportSlices/ImportSlices.js +0 -30
- package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.d.ts +0 -16
- package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.js +0 -61
- package/lib/import/validators/fields/ImportSlices/SharedSlice/errors.d.ts +0 -4
- package/lib/import/validators/fields/ImportSlices/SharedSlice/errors.js +0 -7
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/OptionalSharedSliceId.d.ts +0 -2
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/OptionalSharedSliceId.js +0 -15
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceId.d.ts +0 -9
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceId.js +0 -39
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.d.ts +0 -11
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.js +0 -24
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.d.ts +0 -11
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.js +0 -24
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.d.ts +0 -4
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.js +0 -7
- package/lib/import/validators/fields/ImportSlices/SharedSlice/index.d.ts +0 -3
- package/lib/import/validators/fields/ImportSlices/SharedSlice/index.js +0 -6
- package/lib/import/validators/fields/ImportSlices/SharedSlice/utils.d.ts +0 -342
- package/lib/import/validators/fields/ImportSlices/SharedSlice/utils.js +0 -11
- package/lib/import/validators/fields/ImportSlices/index.d.ts +0 -1
- package/lib/import/validators/fields/ImportSlices/index.js +0 -4
- package/lib/import/validators/fields/ImportSlices/utils.d.ts +0 -4
- package/lib/import/validators/fields/ImportSlices/utils.js +0 -35
- package/lib/import/validators/fields/RepeatableZone.d.ts +0 -11
- package/lib/import/validators/fields/RepeatableZone.js +0 -14
- package/lib/import/validators/fields/RepeatableZoneItem.d.ts +0 -11
- package/lib/import/validators/fields/RepeatableZoneItem.js +0 -39
- package/lib/import/validators/fields/UID.d.ts +0 -6
- package/lib/import/validators/fields/UID.js +0 -15
- package/lib/import/validators/fields/index.d.ts +0 -4
- package/lib/import/validators/fields/index.js +0 -7
- package/lib/import/validators/fields/nestable/Boolean.d.ts +0 -6
- package/lib/import/validators/fields/nestable/Boolean.js +0 -6
- package/lib/import/validators/fields/nestable/Color.d.ts +0 -6
- package/lib/import/validators/fields/nestable/Color.js +0 -15
- package/lib/import/validators/fields/nestable/Date.d.ts +0 -6
- package/lib/import/validators/fields/nestable/Date.js +0 -19
- package/lib/import/validators/fields/nestable/Embed.d.ts +0 -13
- package/lib/import/validators/fields/nestable/Embed.js +0 -31
- package/lib/import/validators/fields/nestable/GeoPoint.d.ts +0 -13
- package/lib/import/validators/fields/nestable/GeoPoint.js +0 -13
- package/lib/import/validators/fields/nestable/Image/default.d.ts +0 -22
- package/lib/import/validators/fields/nestable/Image/default.js +0 -19
- package/lib/import/validators/fields/nestable/Image/index.d.ts +0 -26
- package/lib/import/validators/fields/nestable/Image/index.js +0 -32
- package/lib/import/validators/fields/nestable/Image/merge.d.ts +0 -23
- package/lib/import/validators/fields/nestable/Image/merge.js +0 -44
- package/lib/import/validators/fields/nestable/Image/model.d.ts +0 -18
- package/lib/import/validators/fields/nestable/Image/model.js +0 -2
- package/lib/import/validators/fields/nestable/Image/validators.d.ts +0 -132
- package/lib/import/validators/fields/nestable/Image/validators.js +0 -43
- package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.d.ts +0 -6
- package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.js +0 -25
- package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.d.ts +0 -24
- package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.js +0 -32
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.d.ts +0 -6
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.js +0 -18
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.d.ts +0 -10
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.js +0 -11
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.d.ts +0 -22
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.js +0 -13
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.d.ts +0 -78
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.js +0 -43
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.d.ts +0 -79
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.js +0 -27
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.d.ts +0 -4
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.js +0 -7
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.d.ts +0 -24
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.js +0 -18
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.d.ts +0 -12
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.js +0 -16
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.d.ts +0 -5
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.js +0 -10
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.d.ts +0 -15
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.js +0 -20
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.d.ts +0 -2
- package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.js +0 -5
- package/lib/import/validators/fields/nestable/ImportRichText/index.d.ts +0 -2
- package/lib/import/validators/fields/nestable/ImportRichText/index.js +0 -7
- package/lib/import/validators/fields/nestable/Link.d.ts +0 -53
- package/lib/import/validators/fields/nestable/Link.js +0 -35
- package/lib/import/validators/fields/nestable/Nestable.d.ts +0 -192
- package/lib/import/validators/fields/nestable/Nestable.js +0 -71
- package/lib/import/validators/fields/nestable/Number.d.ts +0 -17
- package/lib/import/validators/fields/nestable/Number.js +0 -17
- package/lib/import/validators/fields/nestable/Select.d.ts +0 -16
- package/lib/import/validators/fields/nestable/Select.js +0 -19
- package/lib/import/validators/fields/nestable/Text.d.ts +0 -6
- package/lib/import/validators/fields/nestable/Text.js +0 -6
- package/lib/import/validators/fields/nestable/Timestamp.d.ts +0 -7
- package/lib/import/validators/fields/nestable/Timestamp.js +0 -19
- package/lib/import/validators/fields/nestable/index.d.ts +0 -14
- package/lib/import/validators/fields/nestable/index.js +0 -19
- package/lib/import/validators/index.d.ts +0 -2
- package/lib/import/validators/index.js +0 -5
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextBlockLegacy = exports.ParagraphBlock = exports.TextBlock = exports.ValidatedSpans = exports.SpanLegacy = exports.Span = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Either_1 = require("fp-ts/lib/Either");
|
|
6
|
+
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
7
|
+
const io_ts_types_1 = require("io-ts-types");
|
|
8
|
+
const nestable_1 = require("../../../../customtypes/widgets/nestable");
|
|
9
|
+
const function_1 = require("../../../../validators/function");
|
|
10
|
+
const LinkContent_1 = require("../LinkContent");
|
|
11
|
+
const linkSpan = (linkCodec) => t.strict({
|
|
12
|
+
data: linkCodec,
|
|
13
|
+
start: t.number,
|
|
14
|
+
end: t.number,
|
|
15
|
+
type: t.literal(nestable_1.RichTextNodeType.hyperlink),
|
|
16
|
+
});
|
|
17
|
+
const labelSpan = t.strict({
|
|
18
|
+
data: (0, io_ts_types_1.withFallback)(t.string, ""),
|
|
19
|
+
start: t.number,
|
|
20
|
+
end: t.number,
|
|
21
|
+
type: t.literal("label"),
|
|
22
|
+
});
|
|
23
|
+
const basicSpan = t.strict({
|
|
24
|
+
start: t.number,
|
|
25
|
+
end: t.number,
|
|
26
|
+
type: t.keyof({
|
|
27
|
+
[nestable_1.RichTextNodeType.strong]: null,
|
|
28
|
+
[nestable_1.RichTextNodeType.em]: null,
|
|
29
|
+
"list-item": null, // legacy case that should not happen, we shouldn't support this in new page builder or migration API
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
32
|
+
exports.Span = t.union([linkSpan(LinkContent_1.Link), labelSpan, basicSpan]);
|
|
33
|
+
exports.SpanLegacy = t.union([linkSpan(LinkContent_1.LinkLegacy), labelSpan, basicSpan]);
|
|
34
|
+
const ValidatedSpans = (spanCodec) => {
|
|
35
|
+
return new t.Type("ValidatedSpans", (spans) => Array.isArray(spans) && spans.every(spanCodec.is), (spans, c) => {
|
|
36
|
+
if (Array.isArray(spans)) {
|
|
37
|
+
const res = spans
|
|
38
|
+
.reduce((acc, maybeSpan) => {
|
|
39
|
+
const decodedSpan = spanCodec.decode(maybeSpan);
|
|
40
|
+
if ((0, Either_1.isLeft)(decodedSpan))
|
|
41
|
+
return acc;
|
|
42
|
+
return [...acc, decodedSpan.right];
|
|
43
|
+
}, [])
|
|
44
|
+
.sort((m1, m2) => m1.start - m2.start);
|
|
45
|
+
return t.success(res);
|
|
46
|
+
}
|
|
47
|
+
else
|
|
48
|
+
return t.failure(spans, c);
|
|
49
|
+
}, (m) => {
|
|
50
|
+
return m.reduce((acc, meta) => {
|
|
51
|
+
const encoded = spanCodec.encode(meta);
|
|
52
|
+
return [...acc, encoded];
|
|
53
|
+
}, []);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
exports.ValidatedSpans = ValidatedSpans;
|
|
57
|
+
const TextBlockCodec = (spanCodec, nodeFilter) => t.exact(t.intersection([
|
|
58
|
+
t.type({
|
|
59
|
+
type: nodeFilter
|
|
60
|
+
? (0, function_1.refineType)(nestable_1.RichTextNodeTypeCodec, `string which isn't ${nestable_1.RichTextNodeType.image} ${nestable_1.RichTextNodeType.embed}`, nodeFilter)
|
|
61
|
+
: nestable_1.RichTextNodeTypeCodec,
|
|
62
|
+
content: t.intersection([
|
|
63
|
+
t.type({
|
|
64
|
+
text: t.string,
|
|
65
|
+
}),
|
|
66
|
+
t.partial({
|
|
67
|
+
spans: (0, exports.ValidatedSpans)(spanCodec),
|
|
68
|
+
}),
|
|
69
|
+
]),
|
|
70
|
+
}),
|
|
71
|
+
t.partial({
|
|
72
|
+
label: t.string,
|
|
73
|
+
direction: t.string,
|
|
74
|
+
}),
|
|
75
|
+
]));
|
|
76
|
+
/* These Text block will decode codec A and encode from codec B to A */
|
|
77
|
+
exports.TextBlock = TextBlockCodec(exports.Span, (nodeType) => nodeType !== nestable_1.RichTextNodeType.image && nodeType !== nestable_1.RichTextNodeType.embed);
|
|
78
|
+
/** A paragraph Text block. Paragraphs may contain spans. */
|
|
79
|
+
exports.ParagraphBlock = TextBlockCodec(exports.Span, (nodeType) => nodeType === nestable_1.RichTextNodeType.paragraph);
|
|
80
|
+
exports.TextBlockLegacy = TextBlockCodec(exports.SpanLegacy);
|
|
@@ -27,6 +27,7 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
27
27
|
credits?: string | null;
|
|
28
28
|
alt?: string | null;
|
|
29
29
|
provider?: string | null | undefined;
|
|
30
|
+
caption?: string | null | undefined;
|
|
30
31
|
} & {
|
|
31
32
|
linkTo?: ({
|
|
32
33
|
__TYPE__: "ImageLink";
|
|
@@ -185,6 +186,7 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
185
186
|
credits: t.Type<string | null, string | null, unknown>;
|
|
186
187
|
alt: t.Type<string | null, string | null, unknown>;
|
|
187
188
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
189
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
188
190
|
}>]>>, t.PartialC<{
|
|
189
191
|
linkTo: t.UnionC<[t.Type<({
|
|
190
192
|
__TYPE__: "ImageLink";
|
|
@@ -425,6 +427,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
425
427
|
credits?: string | null;
|
|
426
428
|
alt?: string | null;
|
|
427
429
|
provider?: string | null | undefined;
|
|
430
|
+
caption?: string | null | undefined;
|
|
428
431
|
} & {
|
|
429
432
|
linkTo?: ({
|
|
430
433
|
__TYPE__: "ImageLink";
|
|
@@ -580,6 +583,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
580
583
|
credits?: string | null;
|
|
581
584
|
alt?: string | null;
|
|
582
585
|
provider?: string | null | undefined;
|
|
586
|
+
caption?: string | null | undefined;
|
|
583
587
|
} & {
|
|
584
588
|
linkTo?: ({
|
|
585
589
|
__TYPE__: "ImageLink";
|
|
@@ -88,6 +88,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
88
88
|
credits?: string | null;
|
|
89
89
|
alt?: string | null;
|
|
90
90
|
provider?: string | null | undefined;
|
|
91
|
+
caption?: string | null | undefined;
|
|
91
92
|
} & {
|
|
92
93
|
thumbnails?: {
|
|
93
94
|
[x: string]: {
|
|
@@ -112,6 +113,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
112
113
|
credits?: string | null;
|
|
113
114
|
alt?: string | null;
|
|
114
115
|
provider?: string | null | undefined;
|
|
116
|
+
caption?: string | null | undefined;
|
|
115
117
|
};
|
|
116
118
|
};
|
|
117
119
|
} & {
|
|
@@ -186,6 +188,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
186
188
|
credits?: string | null;
|
|
187
189
|
alt?: string | null;
|
|
188
190
|
provider?: string | null | undefined;
|
|
191
|
+
caption?: string | null | undefined;
|
|
189
192
|
} & {
|
|
190
193
|
linkTo?: ({
|
|
191
194
|
__TYPE__: "ImageLink";
|
|
@@ -404,6 +407,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
404
407
|
credits?: string | null;
|
|
405
408
|
alt?: string | null;
|
|
406
409
|
provider?: string | null | undefined;
|
|
410
|
+
caption?: string | null | undefined;
|
|
407
411
|
} & {
|
|
408
412
|
thumbnails?: {
|
|
409
413
|
[x: string]: {
|
|
@@ -428,6 +432,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
428
432
|
credits?: string | null;
|
|
429
433
|
alt?: string | null;
|
|
430
434
|
provider?: string | null | undefined;
|
|
435
|
+
caption?: string | null | undefined;
|
|
431
436
|
};
|
|
432
437
|
};
|
|
433
438
|
} & {
|
|
@@ -502,6 +507,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
502
507
|
credits?: string | null;
|
|
503
508
|
alt?: string | null;
|
|
504
509
|
provider?: string | null | undefined;
|
|
510
|
+
caption?: string | null | undefined;
|
|
505
511
|
} & {
|
|
506
512
|
linkTo?: ({
|
|
507
513
|
__TYPE__: "ImageLink";
|
|
@@ -722,6 +728,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
722
728
|
credits?: string | null;
|
|
723
729
|
alt?: string | null;
|
|
724
730
|
provider?: string | null | undefined;
|
|
731
|
+
caption?: string | null | undefined;
|
|
725
732
|
} & {
|
|
726
733
|
thumbnails?: {
|
|
727
734
|
[x: string]: {
|
|
@@ -746,6 +753,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
746
753
|
credits?: string | null;
|
|
747
754
|
alt?: string | null;
|
|
748
755
|
provider?: string | null | undefined;
|
|
756
|
+
caption?: string | null | undefined;
|
|
749
757
|
};
|
|
750
758
|
};
|
|
751
759
|
} & {
|
|
@@ -820,6 +828,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
820
828
|
credits?: string | null;
|
|
821
829
|
alt?: string | null;
|
|
822
830
|
provider?: string | null | undefined;
|
|
831
|
+
caption?: string | null | undefined;
|
|
823
832
|
} & {
|
|
824
833
|
linkTo?: ({
|
|
825
834
|
__TYPE__: "ImageLink";
|
|
@@ -1038,6 +1047,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1038
1047
|
credits?: string | null;
|
|
1039
1048
|
alt?: string | null;
|
|
1040
1049
|
provider?: string | null | undefined;
|
|
1050
|
+
caption?: string | null | undefined;
|
|
1041
1051
|
} & {
|
|
1042
1052
|
thumbnails?: {
|
|
1043
1053
|
[x: string]: {
|
|
@@ -1062,6 +1072,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1062
1072
|
credits?: string | null;
|
|
1063
1073
|
alt?: string | null;
|
|
1064
1074
|
provider?: string | null | undefined;
|
|
1075
|
+
caption?: string | null | undefined;
|
|
1065
1076
|
};
|
|
1066
1077
|
};
|
|
1067
1078
|
} & {
|
|
@@ -1136,6 +1147,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1136
1147
|
credits?: string | null;
|
|
1137
1148
|
alt?: string | null;
|
|
1138
1149
|
provider?: string | null | undefined;
|
|
1150
|
+
caption?: string | null | undefined;
|
|
1139
1151
|
} & {
|
|
1140
1152
|
linkTo?: ({
|
|
1141
1153
|
__TYPE__: "ImageLink";
|
|
@@ -1360,6 +1372,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1360
1372
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1361
1373
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1362
1374
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1375
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1363
1376
|
}>]>>, t.PartialC<{
|
|
1364
1377
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1365
1378
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -1383,6 +1396,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1383
1396
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1384
1397
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1385
1398
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1399
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1386
1400
|
}>]>>>;
|
|
1387
1401
|
}>]>, t.ExactC<t.TypeC<{
|
|
1388
1402
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -1458,6 +1472,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1458
1472
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1459
1473
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1460
1474
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1475
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1461
1476
|
}>]>>, t.PartialC<{
|
|
1462
1477
|
linkTo: t.UnionC<[t.Type<({
|
|
1463
1478
|
__TYPE__: "ImageLink";
|
|
@@ -1755,6 +1770,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1755
1770
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1756
1771
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1757
1772
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1773
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1758
1774
|
}>]>>, t.PartialC<{
|
|
1759
1775
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1760
1776
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -1778,6 +1794,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1778
1794
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1779
1795
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1780
1796
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1797
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1781
1798
|
}>]>>>;
|
|
1782
1799
|
}>]>, t.ExactC<t.TypeC<{
|
|
1783
1800
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -1853,6 +1870,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1853
1870
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1854
1871
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1855
1872
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1873
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1856
1874
|
}>]>>, t.PartialC<{
|
|
1857
1875
|
linkTo: t.UnionC<[t.Type<({
|
|
1858
1876
|
__TYPE__: "ImageLink";
|
|
@@ -83,6 +83,7 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
83
83
|
credits?: string | null;
|
|
84
84
|
alt?: string | null;
|
|
85
85
|
provider?: string | null | undefined;
|
|
86
|
+
caption?: string | null | undefined;
|
|
86
87
|
} & {
|
|
87
88
|
thumbnails?: {
|
|
88
89
|
[x: string]: {
|
|
@@ -107,6 +108,7 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
107
108
|
credits?: string | null;
|
|
108
109
|
alt?: string | null;
|
|
109
110
|
provider?: string | null | undefined;
|
|
111
|
+
caption?: string | null | undefined;
|
|
110
112
|
};
|
|
111
113
|
};
|
|
112
114
|
} & {
|
|
@@ -181,6 +183,7 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
181
183
|
credits?: string | null;
|
|
182
184
|
alt?: string | null;
|
|
183
185
|
provider?: string | null | undefined;
|
|
186
|
+
caption?: string | null | undefined;
|
|
184
187
|
} & {
|
|
185
188
|
linkTo?: ({
|
|
186
189
|
__TYPE__: "ImageLink";
|
|
@@ -401,6 +404,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
401
404
|
credits: t.Type<string | null, string | null, unknown>;
|
|
402
405
|
alt: t.Type<string | null, string | null, unknown>;
|
|
403
406
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
407
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
404
408
|
}>]>>, t.PartialC<{
|
|
405
409
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
406
410
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -424,6 +428,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
424
428
|
credits: t.Type<string | null, string | null, unknown>;
|
|
425
429
|
alt: t.Type<string | null, string | null, unknown>;
|
|
426
430
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
431
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
427
432
|
}>]>>>;
|
|
428
433
|
}>]>, t.ExactC<t.TypeC<{
|
|
429
434
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -499,6 +504,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
499
504
|
credits: t.Type<string | null, string | null, unknown>;
|
|
500
505
|
alt: t.Type<string | null, string | null, unknown>;
|
|
501
506
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
507
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
502
508
|
}>]>>, t.PartialC<{
|
|
503
509
|
linkTo: t.UnionC<[t.Type<({
|
|
504
510
|
__TYPE__: "ImageLink";
|
|
@@ -89,6 +89,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
89
89
|
credits?: string | null;
|
|
90
90
|
alt?: string | null;
|
|
91
91
|
provider?: string | null | undefined;
|
|
92
|
+
caption?: string | null | undefined;
|
|
92
93
|
} & {
|
|
93
94
|
thumbnails?: {
|
|
94
95
|
[x: string]: {
|
|
@@ -113,6 +114,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
113
114
|
credits?: string | null;
|
|
114
115
|
alt?: string | null;
|
|
115
116
|
provider?: string | null | undefined;
|
|
117
|
+
caption?: string | null | undefined;
|
|
116
118
|
};
|
|
117
119
|
};
|
|
118
120
|
} & {
|
|
@@ -187,6 +189,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
187
189
|
credits?: string | null;
|
|
188
190
|
alt?: string | null;
|
|
189
191
|
provider?: string | null | undefined;
|
|
192
|
+
caption?: string | null | undefined;
|
|
190
193
|
} & {
|
|
191
194
|
linkTo?: ({
|
|
192
195
|
__TYPE__: "ImageLink";
|
|
@@ -405,6 +408,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
405
408
|
credits?: string | null;
|
|
406
409
|
alt?: string | null;
|
|
407
410
|
provider?: string | null | undefined;
|
|
411
|
+
caption?: string | null | undefined;
|
|
408
412
|
} & {
|
|
409
413
|
thumbnails?: {
|
|
410
414
|
[x: string]: {
|
|
@@ -429,6 +433,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
429
433
|
credits?: string | null;
|
|
430
434
|
alt?: string | null;
|
|
431
435
|
provider?: string | null | undefined;
|
|
436
|
+
caption?: string | null | undefined;
|
|
432
437
|
};
|
|
433
438
|
};
|
|
434
439
|
} & {
|
|
@@ -503,6 +508,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
503
508
|
credits?: string | null;
|
|
504
509
|
alt?: string | null;
|
|
505
510
|
provider?: string | null | undefined;
|
|
511
|
+
caption?: string | null | undefined;
|
|
506
512
|
} & {
|
|
507
513
|
linkTo?: ({
|
|
508
514
|
__TYPE__: "ImageLink";
|
|
@@ -724,6 +730,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
724
730
|
credits?: string | null;
|
|
725
731
|
alt?: string | null;
|
|
726
732
|
provider?: string | null | undefined;
|
|
733
|
+
caption?: string | null | undefined;
|
|
727
734
|
} & {
|
|
728
735
|
thumbnails?: {
|
|
729
736
|
[x: string]: {
|
|
@@ -748,6 +755,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
748
755
|
credits?: string | null;
|
|
749
756
|
alt?: string | null;
|
|
750
757
|
provider?: string | null | undefined;
|
|
758
|
+
caption?: string | null | undefined;
|
|
751
759
|
};
|
|
752
760
|
};
|
|
753
761
|
} & {
|
|
@@ -822,6 +830,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
822
830
|
credits?: string | null;
|
|
823
831
|
alt?: string | null;
|
|
824
832
|
provider?: string | null | undefined;
|
|
833
|
+
caption?: string | null | undefined;
|
|
825
834
|
} & {
|
|
826
835
|
linkTo?: ({
|
|
827
836
|
__TYPE__: "ImageLink";
|
|
@@ -1040,6 +1049,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1040
1049
|
credits?: string | null;
|
|
1041
1050
|
alt?: string | null;
|
|
1042
1051
|
provider?: string | null | undefined;
|
|
1052
|
+
caption?: string | null | undefined;
|
|
1043
1053
|
} & {
|
|
1044
1054
|
thumbnails?: {
|
|
1045
1055
|
[x: string]: {
|
|
@@ -1064,6 +1074,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1064
1074
|
credits?: string | null;
|
|
1065
1075
|
alt?: string | null;
|
|
1066
1076
|
provider?: string | null | undefined;
|
|
1077
|
+
caption?: string | null | undefined;
|
|
1067
1078
|
};
|
|
1068
1079
|
};
|
|
1069
1080
|
} & {
|
|
@@ -1138,6 +1149,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1138
1149
|
credits?: string | null;
|
|
1139
1150
|
alt?: string | null;
|
|
1140
1151
|
provider?: string | null | undefined;
|
|
1152
|
+
caption?: string | null | undefined;
|
|
1141
1153
|
} & {
|
|
1142
1154
|
linkTo?: ({
|
|
1143
1155
|
__TYPE__: "ImageLink";
|
|
@@ -1364,6 +1376,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1364
1376
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1365
1377
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1366
1378
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1379
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1367
1380
|
}>]>>, t.PartialC<{
|
|
1368
1381
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1369
1382
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -1387,6 +1400,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1387
1400
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1388
1401
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1389
1402
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1403
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1390
1404
|
}>]>>>;
|
|
1391
1405
|
}>]>, t.ExactC<t.TypeC<{
|
|
1392
1406
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -1462,6 +1476,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1462
1476
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1463
1477
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1464
1478
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1479
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1465
1480
|
}>]>>, t.PartialC<{
|
|
1466
1481
|
linkTo: t.UnionC<[t.Type<({
|
|
1467
1482
|
__TYPE__: "ImageLink";
|
|
@@ -1759,6 +1774,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1759
1774
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1760
1775
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1761
1776
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1777
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1762
1778
|
}>]>>, t.PartialC<{
|
|
1763
1779
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1764
1780
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -1782,6 +1798,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1782
1798
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1783
1799
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1784
1800
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1801
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1785
1802
|
}>]>>>;
|
|
1786
1803
|
}>]>, t.ExactC<t.TypeC<{
|
|
1787
1804
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -1857,6 +1874,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1857
1874
|
credits: t.Type<string | null, string | null, unknown>;
|
|
1858
1875
|
alt: t.Type<string | null, string | null, unknown>;
|
|
1859
1876
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1877
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1860
1878
|
}>]>>, t.PartialC<{
|
|
1861
1879
|
linkTo: t.UnionC<[t.Type<({
|
|
1862
1880
|
__TYPE__: "ImageLink";
|
|
@@ -84,6 +84,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
84
84
|
credits: t.Type<string | null, string | null, unknown>;
|
|
85
85
|
alt: t.Type<string | null, string | null, unknown>;
|
|
86
86
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
87
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
87
88
|
}>]>>, t.PartialC<{
|
|
88
89
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
89
90
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -107,6 +108,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
107
108
|
credits: t.Type<string | null, string | null, unknown>;
|
|
108
109
|
alt: t.Type<string | null, string | null, unknown>;
|
|
109
110
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
111
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
110
112
|
}>]>>>;
|
|
111
113
|
}>]>, t.ExactC<t.TypeC<{
|
|
112
114
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -182,6 +184,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
182
184
|
credits: t.Type<string | null, string | null, unknown>;
|
|
183
185
|
alt: t.Type<string | null, string | null, unknown>;
|
|
184
186
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
187
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
185
188
|
}>]>>, t.PartialC<{
|
|
186
189
|
linkTo: t.UnionC<[t.Type<({
|
|
187
190
|
__TYPE__: "ImageLink";
|
|
@@ -480,6 +483,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
480
483
|
credits: t.Type<string | null, string | null, unknown>;
|
|
481
484
|
alt: t.Type<string | null, string | null, unknown>;
|
|
482
485
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
486
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
483
487
|
}>]>>, t.PartialC<{
|
|
484
488
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
485
489
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -503,6 +507,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
503
507
|
credits: t.Type<string | null, string | null, unknown>;
|
|
504
508
|
alt: t.Type<string | null, string | null, unknown>;
|
|
505
509
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
510
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
506
511
|
}>]>>>;
|
|
507
512
|
}>]>, t.ExactC<t.TypeC<{
|
|
508
513
|
__TYPE__: t.LiteralC<"ImageContent">;
|
|
@@ -578,6 +583,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
578
583
|
credits: t.Type<string | null, string | null, unknown>;
|
|
579
584
|
alt: t.Type<string | null, string | null, unknown>;
|
|
580
585
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
586
|
+
caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
581
587
|
}>]>>, t.PartialC<{
|
|
582
588
|
linkTo: t.UnionC<[t.Type<({
|
|
583
589
|
__TYPE__: "ImageLink";
|
|
@@ -876,6 +882,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
876
882
|
credits?: string | null;
|
|
877
883
|
alt?: string | null;
|
|
878
884
|
provider?: string | null | undefined;
|
|
885
|
+
caption?: string | null | undefined;
|
|
879
886
|
} & {
|
|
880
887
|
thumbnails?: {
|
|
881
888
|
[x: string]: {
|
|
@@ -900,6 +907,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
900
907
|
credits?: string | null;
|
|
901
908
|
alt?: string | null;
|
|
902
909
|
provider?: string | null | undefined;
|
|
910
|
+
caption?: string | null | undefined;
|
|
903
911
|
};
|
|
904
912
|
};
|
|
905
913
|
} & {
|
|
@@ -974,6 +982,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
974
982
|
credits?: string | null;
|
|
975
983
|
alt?: string | null;
|
|
976
984
|
provider?: string | null | undefined;
|
|
985
|
+
caption?: string | null | undefined;
|
|
977
986
|
} & {
|
|
978
987
|
linkTo?: ({
|
|
979
988
|
__TYPE__: "ImageLink";
|
|
@@ -1192,6 +1201,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1192
1201
|
credits?: string | null;
|
|
1193
1202
|
alt?: string | null;
|
|
1194
1203
|
provider?: string | null | undefined;
|
|
1204
|
+
caption?: string | null | undefined;
|
|
1195
1205
|
} & {
|
|
1196
1206
|
thumbnails?: {
|
|
1197
1207
|
[x: string]: {
|
|
@@ -1216,6 +1226,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1216
1226
|
credits?: string | null;
|
|
1217
1227
|
alt?: string | null;
|
|
1218
1228
|
provider?: string | null | undefined;
|
|
1229
|
+
caption?: string | null | undefined;
|
|
1219
1230
|
};
|
|
1220
1231
|
};
|
|
1221
1232
|
} & {
|
|
@@ -1290,6 +1301,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1290
1301
|
credits?: string | null;
|
|
1291
1302
|
alt?: string | null;
|
|
1292
1303
|
provider?: string | null | undefined;
|
|
1304
|
+
caption?: string | null | undefined;
|
|
1293
1305
|
} & {
|
|
1294
1306
|
linkTo?: ({
|
|
1295
1307
|
__TYPE__: "ImageLink";
|
|
@@ -1508,6 +1520,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1508
1520
|
credits?: string | null;
|
|
1509
1521
|
alt?: string | null;
|
|
1510
1522
|
provider?: string | null | undefined;
|
|
1523
|
+
caption?: string | null | undefined;
|
|
1511
1524
|
} & {
|
|
1512
1525
|
thumbnails?: {
|
|
1513
1526
|
[x: string]: {
|
|
@@ -1532,6 +1545,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1532
1545
|
credits?: string | null;
|
|
1533
1546
|
alt?: string | null;
|
|
1534
1547
|
provider?: string | null | undefined;
|
|
1548
|
+
caption?: string | null | undefined;
|
|
1535
1549
|
};
|
|
1536
1550
|
};
|
|
1537
1551
|
} & {
|
|
@@ -1606,6 +1620,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1606
1620
|
credits?: string | null;
|
|
1607
1621
|
alt?: string | null;
|
|
1608
1622
|
provider?: string | null | undefined;
|
|
1623
|
+
caption?: string | null | undefined;
|
|
1609
1624
|
} & {
|
|
1610
1625
|
linkTo?: ({
|
|
1611
1626
|
__TYPE__: "ImageLink";
|
|
@@ -1824,6 +1839,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1824
1839
|
credits?: string | null;
|
|
1825
1840
|
alt?: string | null;
|
|
1826
1841
|
provider?: string | null | undefined;
|
|
1842
|
+
caption?: string | null | undefined;
|
|
1827
1843
|
} & {
|
|
1828
1844
|
thumbnails?: {
|
|
1829
1845
|
[x: string]: {
|
|
@@ -1848,6 +1864,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1848
1864
|
credits?: string | null;
|
|
1849
1865
|
alt?: string | null;
|
|
1850
1866
|
provider?: string | null | undefined;
|
|
1867
|
+
caption?: string | null | undefined;
|
|
1851
1868
|
};
|
|
1852
1869
|
};
|
|
1853
1870
|
} & {
|
|
@@ -1922,6 +1939,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1922
1939
|
credits?: string | null;
|
|
1923
1940
|
alt?: string | null;
|
|
1924
1941
|
provider?: string | null | undefined;
|
|
1942
|
+
caption?: string | null | undefined;
|
|
1925
1943
|
} & {
|
|
1926
1944
|
linkTo?: ({
|
|
1927
1945
|
__TYPE__: "ImageLink";
|