@prismicio/types-internal 2.3.0 → 2.4.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/content/Document.d.ts +10953 -5169
- package/lib/content/fields/GroupContent.d.ts +1594 -337
- package/lib/content/fields/WidgetContent.d.ts +10285 -4501
- package/lib/content/fields/nestable/ImageContent.d.ts +723 -0
- package/lib/content/fields/nestable/ImageContent.js +2 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +946 -223
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +370 -507
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +6 -73
- 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 +491 -186
- package/lib/content/fields/nestable/RichTextContent/index.js +1 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1994 -548
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +638 -104
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1996 -550
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +2153 -707
- package/lib/content/fields/slices/Slice/index.d.ts +4949 -1745
- package/lib/content/fields/slices/SliceItem.d.ts +4841 -1637
- package/lib/content/fields/slices/SlicesContent.d.ts +7134 -2796
- 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/Document.ts +6 -4
- package/src/content/fields/nestable/ImageContent.ts +2 -0
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +3 -101
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +118 -0
- package/src/content/fields/nestable/RichTextContent/index.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
|
@@ -23,6 +23,69 @@ export declare const isImageContent: (u: unknown) => u is {
|
|
|
23
23
|
credits?: string | null;
|
|
24
24
|
alt?: string | null;
|
|
25
25
|
provider?: string | null | undefined;
|
|
26
|
+
caption?: ({
|
|
27
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
28
|
+
content: {
|
|
29
|
+
text: string;
|
|
30
|
+
} & {
|
|
31
|
+
spans?: ({
|
|
32
|
+
data: ({
|
|
33
|
+
__TYPE__: "ImageLink";
|
|
34
|
+
} & {
|
|
35
|
+
id: string;
|
|
36
|
+
url: string;
|
|
37
|
+
height: string;
|
|
38
|
+
width: string;
|
|
39
|
+
size: string;
|
|
40
|
+
name: string;
|
|
41
|
+
kind: string;
|
|
42
|
+
} & {
|
|
43
|
+
date?: string | null | undefined;
|
|
44
|
+
}) | ({
|
|
45
|
+
id: string;
|
|
46
|
+
url: string;
|
|
47
|
+
name: string;
|
|
48
|
+
kind: string;
|
|
49
|
+
size: string;
|
|
50
|
+
} & {
|
|
51
|
+
date?: string | null | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
__TYPE__: "FileLink";
|
|
54
|
+
} & {
|
|
55
|
+
size?: string;
|
|
56
|
+
}) | ({
|
|
57
|
+
__TYPE__: "DocumentLink";
|
|
58
|
+
} & {
|
|
59
|
+
id: string;
|
|
60
|
+
}) | ({
|
|
61
|
+
__TYPE__: "ExternalLink";
|
|
62
|
+
} & {
|
|
63
|
+
url: string;
|
|
64
|
+
} & {
|
|
65
|
+
kind?: "web";
|
|
66
|
+
target?: string | null | undefined;
|
|
67
|
+
preview?: {
|
|
68
|
+
title?: string;
|
|
69
|
+
} | null | undefined;
|
|
70
|
+
});
|
|
71
|
+
start: number;
|
|
72
|
+
end: number;
|
|
73
|
+
type: "hyperlink";
|
|
74
|
+
} | {
|
|
75
|
+
data: string;
|
|
76
|
+
start: number;
|
|
77
|
+
end: number;
|
|
78
|
+
type: "label";
|
|
79
|
+
} | {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
type: "strong" | "em" | "list-item";
|
|
83
|
+
})[];
|
|
84
|
+
};
|
|
85
|
+
} & {
|
|
86
|
+
label?: string;
|
|
87
|
+
direction?: string;
|
|
88
|
+
})[];
|
|
26
89
|
} & {
|
|
27
90
|
thumbnails?: {
|
|
28
91
|
[x: string]: {
|
|
@@ -47,6 +110,69 @@ export declare const isImageContent: (u: unknown) => u is {
|
|
|
47
110
|
credits?: string | null;
|
|
48
111
|
alt?: string | null;
|
|
49
112
|
provider?: string | null | undefined;
|
|
113
|
+
caption?: ({
|
|
114
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
115
|
+
content: {
|
|
116
|
+
text: string;
|
|
117
|
+
} & {
|
|
118
|
+
spans?: ({
|
|
119
|
+
data: ({
|
|
120
|
+
__TYPE__: "ImageLink";
|
|
121
|
+
} & {
|
|
122
|
+
id: string;
|
|
123
|
+
url: string;
|
|
124
|
+
height: string;
|
|
125
|
+
width: string;
|
|
126
|
+
size: string;
|
|
127
|
+
name: string;
|
|
128
|
+
kind: string;
|
|
129
|
+
} & {
|
|
130
|
+
date?: string | null | undefined;
|
|
131
|
+
}) | ({
|
|
132
|
+
id: string;
|
|
133
|
+
url: string;
|
|
134
|
+
name: string;
|
|
135
|
+
kind: string;
|
|
136
|
+
size: string;
|
|
137
|
+
} & {
|
|
138
|
+
date?: string | null | undefined;
|
|
139
|
+
} & {
|
|
140
|
+
__TYPE__: "FileLink";
|
|
141
|
+
} & {
|
|
142
|
+
size?: string;
|
|
143
|
+
}) | ({
|
|
144
|
+
__TYPE__: "DocumentLink";
|
|
145
|
+
} & {
|
|
146
|
+
id: string;
|
|
147
|
+
}) | ({
|
|
148
|
+
__TYPE__: "ExternalLink";
|
|
149
|
+
} & {
|
|
150
|
+
url: string;
|
|
151
|
+
} & {
|
|
152
|
+
kind?: "web";
|
|
153
|
+
target?: string | null | undefined;
|
|
154
|
+
preview?: {
|
|
155
|
+
title?: string;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
});
|
|
158
|
+
start: number;
|
|
159
|
+
end: number;
|
|
160
|
+
type: "hyperlink";
|
|
161
|
+
} | {
|
|
162
|
+
data: string;
|
|
163
|
+
start: number;
|
|
164
|
+
end: number;
|
|
165
|
+
type: "label";
|
|
166
|
+
} | {
|
|
167
|
+
start: number;
|
|
168
|
+
end: number;
|
|
169
|
+
type: "strong" | "em" | "list-item";
|
|
170
|
+
})[];
|
|
171
|
+
};
|
|
172
|
+
} & {
|
|
173
|
+
label?: string;
|
|
174
|
+
direction?: string;
|
|
175
|
+
})[];
|
|
50
176
|
};
|
|
51
177
|
};
|
|
52
178
|
} & {
|
|
@@ -74,6 +200,121 @@ export declare const ImageContentView: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
74
200
|
credits: t.Type<string | null, string | null, unknown>;
|
|
75
201
|
alt: t.Type<string | null, string | null, unknown>;
|
|
76
202
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
203
|
+
caption: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
204
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
205
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
206
|
+
text: t.StringC;
|
|
207
|
+
}>, t.PartialC<{
|
|
208
|
+
spans: t.Type<({
|
|
209
|
+
data: ({
|
|
210
|
+
__TYPE__: "ImageLink";
|
|
211
|
+
} & {
|
|
212
|
+
id: string;
|
|
213
|
+
url: string;
|
|
214
|
+
height: string;
|
|
215
|
+
width: string;
|
|
216
|
+
size: string;
|
|
217
|
+
name: string;
|
|
218
|
+
kind: string;
|
|
219
|
+
} & {
|
|
220
|
+
date?: string | null | undefined;
|
|
221
|
+
}) | ({
|
|
222
|
+
id: string;
|
|
223
|
+
url: string;
|
|
224
|
+
name: string;
|
|
225
|
+
kind: string;
|
|
226
|
+
size: string;
|
|
227
|
+
} & {
|
|
228
|
+
date?: string | null | undefined;
|
|
229
|
+
} & {
|
|
230
|
+
__TYPE__: "FileLink";
|
|
231
|
+
} & {
|
|
232
|
+
size?: string;
|
|
233
|
+
}) | ({
|
|
234
|
+
__TYPE__: "DocumentLink";
|
|
235
|
+
} & {
|
|
236
|
+
id: string;
|
|
237
|
+
}) | ({
|
|
238
|
+
__TYPE__: "ExternalLink";
|
|
239
|
+
} & {
|
|
240
|
+
url: string;
|
|
241
|
+
} & {
|
|
242
|
+
kind?: "web";
|
|
243
|
+
target?: string | null | undefined;
|
|
244
|
+
preview?: {
|
|
245
|
+
title?: string;
|
|
246
|
+
} | null | undefined;
|
|
247
|
+
});
|
|
248
|
+
start: number;
|
|
249
|
+
end: number;
|
|
250
|
+
type: "hyperlink";
|
|
251
|
+
} | {
|
|
252
|
+
data: string;
|
|
253
|
+
start: number;
|
|
254
|
+
end: number;
|
|
255
|
+
type: "label";
|
|
256
|
+
} | {
|
|
257
|
+
start: number;
|
|
258
|
+
end: number;
|
|
259
|
+
type: "strong" | "em" | "list-item";
|
|
260
|
+
})[], ({
|
|
261
|
+
data: ({
|
|
262
|
+
__TYPE__: "ImageLink";
|
|
263
|
+
} & {
|
|
264
|
+
id: string;
|
|
265
|
+
url: string;
|
|
266
|
+
height: string;
|
|
267
|
+
width: string;
|
|
268
|
+
size: string;
|
|
269
|
+
name: string;
|
|
270
|
+
kind: string;
|
|
271
|
+
} & {
|
|
272
|
+
date?: string | null | undefined;
|
|
273
|
+
}) | ({
|
|
274
|
+
id: string;
|
|
275
|
+
url: string;
|
|
276
|
+
name: string;
|
|
277
|
+
kind: string;
|
|
278
|
+
size: string;
|
|
279
|
+
} & {
|
|
280
|
+
date?: string | null | undefined;
|
|
281
|
+
} & {
|
|
282
|
+
__TYPE__: "FileLink";
|
|
283
|
+
} & {
|
|
284
|
+
size?: string;
|
|
285
|
+
}) | ({
|
|
286
|
+
__TYPE__: "DocumentLink";
|
|
287
|
+
} & {
|
|
288
|
+
id: string;
|
|
289
|
+
}) | ({
|
|
290
|
+
__TYPE__: "ExternalLink";
|
|
291
|
+
} & {
|
|
292
|
+
url: string;
|
|
293
|
+
} & {
|
|
294
|
+
kind?: "web";
|
|
295
|
+
target?: string | null | undefined;
|
|
296
|
+
preview?: {
|
|
297
|
+
title?: string;
|
|
298
|
+
} | null | undefined;
|
|
299
|
+
});
|
|
300
|
+
start: number;
|
|
301
|
+
end: number;
|
|
302
|
+
type: "hyperlink";
|
|
303
|
+
} | {
|
|
304
|
+
data: string;
|
|
305
|
+
start: number;
|
|
306
|
+
end: number;
|
|
307
|
+
type: "label";
|
|
308
|
+
} | {
|
|
309
|
+
start: number;
|
|
310
|
+
end: number;
|
|
311
|
+
type: "strong" | "em" | "list-item";
|
|
312
|
+
})[], unknown>;
|
|
313
|
+
}>]>;
|
|
314
|
+
}>, t.PartialC<{
|
|
315
|
+
label: t.StringC;
|
|
316
|
+
direction: t.StringC;
|
|
317
|
+
}>]>>>;
|
|
77
318
|
}>]>>;
|
|
78
319
|
export declare type ImageContentView = t.TypeOf<typeof ImageContentView>;
|
|
79
320
|
export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
@@ -98,6 +339,69 @@ export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
98
339
|
credits?: string | null;
|
|
99
340
|
alt?: string | null;
|
|
100
341
|
provider?: string | null | undefined;
|
|
342
|
+
caption?: ({
|
|
343
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
344
|
+
content: {
|
|
345
|
+
text: string;
|
|
346
|
+
} & {
|
|
347
|
+
spans?: ({
|
|
348
|
+
data: ({
|
|
349
|
+
__TYPE__: "ImageLink";
|
|
350
|
+
} & {
|
|
351
|
+
id: string;
|
|
352
|
+
url: string;
|
|
353
|
+
height: string;
|
|
354
|
+
width: string;
|
|
355
|
+
size: string;
|
|
356
|
+
name: string;
|
|
357
|
+
kind: string;
|
|
358
|
+
} & {
|
|
359
|
+
date?: string | null | undefined;
|
|
360
|
+
}) | ({
|
|
361
|
+
id: string;
|
|
362
|
+
url: string;
|
|
363
|
+
name: string;
|
|
364
|
+
kind: string;
|
|
365
|
+
size: string;
|
|
366
|
+
} & {
|
|
367
|
+
date?: string | null | undefined;
|
|
368
|
+
} & {
|
|
369
|
+
__TYPE__: "FileLink";
|
|
370
|
+
} & {
|
|
371
|
+
size?: string;
|
|
372
|
+
}) | ({
|
|
373
|
+
__TYPE__: "DocumentLink";
|
|
374
|
+
} & {
|
|
375
|
+
id: string;
|
|
376
|
+
}) | ({
|
|
377
|
+
__TYPE__: "ExternalLink";
|
|
378
|
+
} & {
|
|
379
|
+
url: string;
|
|
380
|
+
} & {
|
|
381
|
+
kind?: "web";
|
|
382
|
+
target?: string | null | undefined;
|
|
383
|
+
preview?: {
|
|
384
|
+
title?: string;
|
|
385
|
+
} | null | undefined;
|
|
386
|
+
});
|
|
387
|
+
start: number;
|
|
388
|
+
end: number;
|
|
389
|
+
type: "hyperlink";
|
|
390
|
+
} | {
|
|
391
|
+
data: string;
|
|
392
|
+
start: number;
|
|
393
|
+
end: number;
|
|
394
|
+
type: "label";
|
|
395
|
+
} | {
|
|
396
|
+
start: number;
|
|
397
|
+
end: number;
|
|
398
|
+
type: "strong" | "em" | "list-item";
|
|
399
|
+
})[];
|
|
400
|
+
};
|
|
401
|
+
} & {
|
|
402
|
+
label?: string;
|
|
403
|
+
direction?: string;
|
|
404
|
+
})[];
|
|
101
405
|
} & {
|
|
102
406
|
thumbnails?: {
|
|
103
407
|
[x: string]: {
|
|
@@ -122,6 +426,69 @@ export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
122
426
|
credits?: string | null;
|
|
123
427
|
alt?: string | null;
|
|
124
428
|
provider?: string | null | undefined;
|
|
429
|
+
caption?: ({
|
|
430
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
431
|
+
content: {
|
|
432
|
+
text: string;
|
|
433
|
+
} & {
|
|
434
|
+
spans?: ({
|
|
435
|
+
data: ({
|
|
436
|
+
__TYPE__: "ImageLink";
|
|
437
|
+
} & {
|
|
438
|
+
id: string;
|
|
439
|
+
url: string;
|
|
440
|
+
height: string;
|
|
441
|
+
width: string;
|
|
442
|
+
size: string;
|
|
443
|
+
name: string;
|
|
444
|
+
kind: string;
|
|
445
|
+
} & {
|
|
446
|
+
date?: string | null | undefined;
|
|
447
|
+
}) | ({
|
|
448
|
+
id: string;
|
|
449
|
+
url: string;
|
|
450
|
+
name: string;
|
|
451
|
+
kind: string;
|
|
452
|
+
size: string;
|
|
453
|
+
} & {
|
|
454
|
+
date?: string | null | undefined;
|
|
455
|
+
} & {
|
|
456
|
+
__TYPE__: "FileLink";
|
|
457
|
+
} & {
|
|
458
|
+
size?: string;
|
|
459
|
+
}) | ({
|
|
460
|
+
__TYPE__: "DocumentLink";
|
|
461
|
+
} & {
|
|
462
|
+
id: string;
|
|
463
|
+
}) | ({
|
|
464
|
+
__TYPE__: "ExternalLink";
|
|
465
|
+
} & {
|
|
466
|
+
url: string;
|
|
467
|
+
} & {
|
|
468
|
+
kind?: "web";
|
|
469
|
+
target?: string | null | undefined;
|
|
470
|
+
preview?: {
|
|
471
|
+
title?: string;
|
|
472
|
+
} | null | undefined;
|
|
473
|
+
});
|
|
474
|
+
start: number;
|
|
475
|
+
end: number;
|
|
476
|
+
type: "hyperlink";
|
|
477
|
+
} | {
|
|
478
|
+
data: string;
|
|
479
|
+
start: number;
|
|
480
|
+
end: number;
|
|
481
|
+
type: "label";
|
|
482
|
+
} | {
|
|
483
|
+
start: number;
|
|
484
|
+
end: number;
|
|
485
|
+
type: "strong" | "em" | "list-item";
|
|
486
|
+
})[];
|
|
487
|
+
};
|
|
488
|
+
} & {
|
|
489
|
+
label?: string;
|
|
490
|
+
direction?: string;
|
|
491
|
+
})[];
|
|
125
492
|
};
|
|
126
493
|
};
|
|
127
494
|
} & {
|
|
@@ -148,6 +515,69 @@ export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
148
515
|
credits?: string | null;
|
|
149
516
|
alt?: string | null;
|
|
150
517
|
provider?: string | null | undefined;
|
|
518
|
+
caption?: ({
|
|
519
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
520
|
+
content: {
|
|
521
|
+
text: string;
|
|
522
|
+
} & {
|
|
523
|
+
spans?: ({
|
|
524
|
+
data: ({
|
|
525
|
+
__TYPE__: "ImageLink";
|
|
526
|
+
} & {
|
|
527
|
+
id: string;
|
|
528
|
+
url: string;
|
|
529
|
+
height: string;
|
|
530
|
+
width: string;
|
|
531
|
+
size: string;
|
|
532
|
+
name: string;
|
|
533
|
+
kind: string;
|
|
534
|
+
} & {
|
|
535
|
+
date?: string | null | undefined;
|
|
536
|
+
}) | ({
|
|
537
|
+
id: string;
|
|
538
|
+
url: string;
|
|
539
|
+
name: string;
|
|
540
|
+
kind: string;
|
|
541
|
+
size: string;
|
|
542
|
+
} & {
|
|
543
|
+
date?: string | null | undefined;
|
|
544
|
+
} & {
|
|
545
|
+
__TYPE__: "FileLink";
|
|
546
|
+
} & {
|
|
547
|
+
size?: string;
|
|
548
|
+
}) | ({
|
|
549
|
+
__TYPE__: "DocumentLink";
|
|
550
|
+
} & {
|
|
551
|
+
id: string;
|
|
552
|
+
}) | ({
|
|
553
|
+
__TYPE__: "ExternalLink";
|
|
554
|
+
} & {
|
|
555
|
+
url: string;
|
|
556
|
+
} & {
|
|
557
|
+
kind?: "web";
|
|
558
|
+
target?: string | null | undefined;
|
|
559
|
+
preview?: {
|
|
560
|
+
title?: string;
|
|
561
|
+
} | null | undefined;
|
|
562
|
+
});
|
|
563
|
+
start: number;
|
|
564
|
+
end: number;
|
|
565
|
+
type: "hyperlink";
|
|
566
|
+
} | {
|
|
567
|
+
data: string;
|
|
568
|
+
start: number;
|
|
569
|
+
end: number;
|
|
570
|
+
type: "label";
|
|
571
|
+
} | {
|
|
572
|
+
start: number;
|
|
573
|
+
end: number;
|
|
574
|
+
type: "strong" | "em" | "list-item";
|
|
575
|
+
})[];
|
|
576
|
+
};
|
|
577
|
+
} & {
|
|
578
|
+
label?: string;
|
|
579
|
+
direction?: string;
|
|
580
|
+
})[];
|
|
151
581
|
} & {
|
|
152
582
|
thumbnails?: {
|
|
153
583
|
[x: string]: {
|
|
@@ -172,6 +602,69 @@ export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
172
602
|
credits?: string | null;
|
|
173
603
|
alt?: string | null;
|
|
174
604
|
provider?: string | null | undefined;
|
|
605
|
+
caption?: ({
|
|
606
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
607
|
+
content: {
|
|
608
|
+
text: string;
|
|
609
|
+
} & {
|
|
610
|
+
spans?: ({
|
|
611
|
+
data: ({
|
|
612
|
+
__TYPE__: "ImageLink";
|
|
613
|
+
} & {
|
|
614
|
+
id: string;
|
|
615
|
+
url: string;
|
|
616
|
+
height: string;
|
|
617
|
+
width: string;
|
|
618
|
+
size: string;
|
|
619
|
+
name: string;
|
|
620
|
+
kind: string;
|
|
621
|
+
} & {
|
|
622
|
+
date?: string | null | undefined;
|
|
623
|
+
}) | ({
|
|
624
|
+
id: string;
|
|
625
|
+
url: string;
|
|
626
|
+
name: string;
|
|
627
|
+
kind: string;
|
|
628
|
+
size: string;
|
|
629
|
+
} & {
|
|
630
|
+
date?: string | null | undefined;
|
|
631
|
+
} & {
|
|
632
|
+
__TYPE__: "FileLink";
|
|
633
|
+
} & {
|
|
634
|
+
size?: string;
|
|
635
|
+
}) | ({
|
|
636
|
+
__TYPE__: "DocumentLink";
|
|
637
|
+
} & {
|
|
638
|
+
id: string;
|
|
639
|
+
}) | ({
|
|
640
|
+
__TYPE__: "ExternalLink";
|
|
641
|
+
} & {
|
|
642
|
+
url: string;
|
|
643
|
+
} & {
|
|
644
|
+
kind?: "web";
|
|
645
|
+
target?: string | null | undefined;
|
|
646
|
+
preview?: {
|
|
647
|
+
title?: string;
|
|
648
|
+
} | null | undefined;
|
|
649
|
+
});
|
|
650
|
+
start: number;
|
|
651
|
+
end: number;
|
|
652
|
+
type: "hyperlink";
|
|
653
|
+
} | {
|
|
654
|
+
data: string;
|
|
655
|
+
start: number;
|
|
656
|
+
end: number;
|
|
657
|
+
type: "label";
|
|
658
|
+
} | {
|
|
659
|
+
start: number;
|
|
660
|
+
end: number;
|
|
661
|
+
type: "strong" | "em" | "list-item";
|
|
662
|
+
})[];
|
|
663
|
+
};
|
|
664
|
+
} & {
|
|
665
|
+
label?: string;
|
|
666
|
+
direction?: string;
|
|
667
|
+
})[];
|
|
175
668
|
};
|
|
176
669
|
};
|
|
177
670
|
}>, unknown>;
|
|
@@ -197,6 +690,121 @@ export declare const ImageContent: t.IntersectionC<[t.IntersectionC<[t.ExactC<t.
|
|
|
197
690
|
credits: t.Type<string | null, string | null, unknown>;
|
|
198
691
|
alt: t.Type<string | null, string | null, unknown>;
|
|
199
692
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
693
|
+
caption: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
694
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
695
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
696
|
+
text: t.StringC;
|
|
697
|
+
}>, t.PartialC<{
|
|
698
|
+
spans: t.Type<({
|
|
699
|
+
data: ({
|
|
700
|
+
__TYPE__: "ImageLink";
|
|
701
|
+
} & {
|
|
702
|
+
id: string;
|
|
703
|
+
url: string;
|
|
704
|
+
height: string;
|
|
705
|
+
width: string;
|
|
706
|
+
size: string;
|
|
707
|
+
name: string;
|
|
708
|
+
kind: string;
|
|
709
|
+
} & {
|
|
710
|
+
date?: string | null | undefined;
|
|
711
|
+
}) | ({
|
|
712
|
+
id: string;
|
|
713
|
+
url: string;
|
|
714
|
+
name: string;
|
|
715
|
+
kind: string;
|
|
716
|
+
size: string;
|
|
717
|
+
} & {
|
|
718
|
+
date?: string | null | undefined;
|
|
719
|
+
} & {
|
|
720
|
+
__TYPE__: "FileLink";
|
|
721
|
+
} & {
|
|
722
|
+
size?: string;
|
|
723
|
+
}) | ({
|
|
724
|
+
__TYPE__: "DocumentLink";
|
|
725
|
+
} & {
|
|
726
|
+
id: string;
|
|
727
|
+
}) | ({
|
|
728
|
+
__TYPE__: "ExternalLink";
|
|
729
|
+
} & {
|
|
730
|
+
url: string;
|
|
731
|
+
} & {
|
|
732
|
+
kind?: "web";
|
|
733
|
+
target?: string | null | undefined;
|
|
734
|
+
preview?: {
|
|
735
|
+
title?: string;
|
|
736
|
+
} | null | undefined;
|
|
737
|
+
});
|
|
738
|
+
start: number;
|
|
739
|
+
end: number;
|
|
740
|
+
type: "hyperlink";
|
|
741
|
+
} | {
|
|
742
|
+
data: string;
|
|
743
|
+
start: number;
|
|
744
|
+
end: number;
|
|
745
|
+
type: "label";
|
|
746
|
+
} | {
|
|
747
|
+
start: number;
|
|
748
|
+
end: number;
|
|
749
|
+
type: "strong" | "em" | "list-item";
|
|
750
|
+
})[], ({
|
|
751
|
+
data: ({
|
|
752
|
+
__TYPE__: "ImageLink";
|
|
753
|
+
} & {
|
|
754
|
+
id: string;
|
|
755
|
+
url: string;
|
|
756
|
+
height: string;
|
|
757
|
+
width: string;
|
|
758
|
+
size: string;
|
|
759
|
+
name: string;
|
|
760
|
+
kind: string;
|
|
761
|
+
} & {
|
|
762
|
+
date?: string | null | undefined;
|
|
763
|
+
}) | ({
|
|
764
|
+
id: string;
|
|
765
|
+
url: string;
|
|
766
|
+
name: string;
|
|
767
|
+
kind: string;
|
|
768
|
+
size: string;
|
|
769
|
+
} & {
|
|
770
|
+
date?: string | null | undefined;
|
|
771
|
+
} & {
|
|
772
|
+
__TYPE__: "FileLink";
|
|
773
|
+
} & {
|
|
774
|
+
size?: string;
|
|
775
|
+
}) | ({
|
|
776
|
+
__TYPE__: "DocumentLink";
|
|
777
|
+
} & {
|
|
778
|
+
id: string;
|
|
779
|
+
}) | ({
|
|
780
|
+
__TYPE__: "ExternalLink";
|
|
781
|
+
} & {
|
|
782
|
+
url: string;
|
|
783
|
+
} & {
|
|
784
|
+
kind?: "web";
|
|
785
|
+
target?: string | null | undefined;
|
|
786
|
+
preview?: {
|
|
787
|
+
title?: string;
|
|
788
|
+
} | null | undefined;
|
|
789
|
+
});
|
|
790
|
+
start: number;
|
|
791
|
+
end: number;
|
|
792
|
+
type: "hyperlink";
|
|
793
|
+
} | {
|
|
794
|
+
data: string;
|
|
795
|
+
start: number;
|
|
796
|
+
end: number;
|
|
797
|
+
type: "label";
|
|
798
|
+
} | {
|
|
799
|
+
start: number;
|
|
800
|
+
end: number;
|
|
801
|
+
type: "strong" | "em" | "list-item";
|
|
802
|
+
})[], unknown>;
|
|
803
|
+
}>]>;
|
|
804
|
+
}>, t.PartialC<{
|
|
805
|
+
label: t.StringC;
|
|
806
|
+
direction: t.StringC;
|
|
807
|
+
}>]>>>;
|
|
200
808
|
}>]>>, t.PartialC<{
|
|
201
809
|
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
202
810
|
origin: t.ExactC<t.TypeC<{
|
|
@@ -220,6 +828,121 @@ export declare const ImageContent: t.IntersectionC<[t.IntersectionC<[t.ExactC<t.
|
|
|
220
828
|
credits: t.Type<string | null, string | null, unknown>;
|
|
221
829
|
alt: t.Type<string | null, string | null, unknown>;
|
|
222
830
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
831
|
+
caption: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
832
|
+
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
833
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
834
|
+
text: t.StringC;
|
|
835
|
+
}>, t.PartialC<{
|
|
836
|
+
spans: t.Type<({
|
|
837
|
+
data: ({
|
|
838
|
+
__TYPE__: "ImageLink";
|
|
839
|
+
} & {
|
|
840
|
+
id: string;
|
|
841
|
+
url: string;
|
|
842
|
+
height: string;
|
|
843
|
+
width: string;
|
|
844
|
+
size: string;
|
|
845
|
+
name: string;
|
|
846
|
+
kind: string;
|
|
847
|
+
} & {
|
|
848
|
+
date?: string | null | undefined;
|
|
849
|
+
}) | ({
|
|
850
|
+
id: string;
|
|
851
|
+
url: string;
|
|
852
|
+
name: string;
|
|
853
|
+
kind: string;
|
|
854
|
+
size: string;
|
|
855
|
+
} & {
|
|
856
|
+
date?: string | null | undefined;
|
|
857
|
+
} & {
|
|
858
|
+
__TYPE__: "FileLink";
|
|
859
|
+
} & {
|
|
860
|
+
size?: string;
|
|
861
|
+
}) | ({
|
|
862
|
+
__TYPE__: "DocumentLink";
|
|
863
|
+
} & {
|
|
864
|
+
id: string;
|
|
865
|
+
}) | ({
|
|
866
|
+
__TYPE__: "ExternalLink";
|
|
867
|
+
} & {
|
|
868
|
+
url: string;
|
|
869
|
+
} & {
|
|
870
|
+
kind?: "web";
|
|
871
|
+
target?: string | null | undefined;
|
|
872
|
+
preview?: {
|
|
873
|
+
title?: string;
|
|
874
|
+
} | null | undefined;
|
|
875
|
+
});
|
|
876
|
+
start: number;
|
|
877
|
+
end: number;
|
|
878
|
+
type: "hyperlink";
|
|
879
|
+
} | {
|
|
880
|
+
data: string;
|
|
881
|
+
start: number;
|
|
882
|
+
end: number;
|
|
883
|
+
type: "label";
|
|
884
|
+
} | {
|
|
885
|
+
start: number;
|
|
886
|
+
end: number;
|
|
887
|
+
type: "strong" | "em" | "list-item";
|
|
888
|
+
})[], ({
|
|
889
|
+
data: ({
|
|
890
|
+
__TYPE__: "ImageLink";
|
|
891
|
+
} & {
|
|
892
|
+
id: string;
|
|
893
|
+
url: string;
|
|
894
|
+
height: string;
|
|
895
|
+
width: string;
|
|
896
|
+
size: string;
|
|
897
|
+
name: string;
|
|
898
|
+
kind: string;
|
|
899
|
+
} & {
|
|
900
|
+
date?: string | null | undefined;
|
|
901
|
+
}) | ({
|
|
902
|
+
id: string;
|
|
903
|
+
url: string;
|
|
904
|
+
name: string;
|
|
905
|
+
kind: string;
|
|
906
|
+
size: string;
|
|
907
|
+
} & {
|
|
908
|
+
date?: string | null | undefined;
|
|
909
|
+
} & {
|
|
910
|
+
__TYPE__: "FileLink";
|
|
911
|
+
} & {
|
|
912
|
+
size?: string;
|
|
913
|
+
}) | ({
|
|
914
|
+
__TYPE__: "DocumentLink";
|
|
915
|
+
} & {
|
|
916
|
+
id: string;
|
|
917
|
+
}) | ({
|
|
918
|
+
__TYPE__: "ExternalLink";
|
|
919
|
+
} & {
|
|
920
|
+
url: string;
|
|
921
|
+
} & {
|
|
922
|
+
kind?: "web";
|
|
923
|
+
target?: string | null | undefined;
|
|
924
|
+
preview?: {
|
|
925
|
+
title?: string;
|
|
926
|
+
} | null | undefined;
|
|
927
|
+
});
|
|
928
|
+
start: number;
|
|
929
|
+
end: number;
|
|
930
|
+
type: "hyperlink";
|
|
931
|
+
} | {
|
|
932
|
+
data: string;
|
|
933
|
+
start: number;
|
|
934
|
+
end: number;
|
|
935
|
+
type: "label";
|
|
936
|
+
} | {
|
|
937
|
+
start: number;
|
|
938
|
+
end: number;
|
|
939
|
+
type: "strong" | "em" | "list-item";
|
|
940
|
+
})[], unknown>;
|
|
941
|
+
}>]>;
|
|
942
|
+
}>, t.PartialC<{
|
|
943
|
+
label: t.StringC;
|
|
944
|
+
direction: t.StringC;
|
|
945
|
+
}>]>>>;
|
|
223
946
|
}>]>>>;
|
|
224
947
|
}>]>, t.ExactC<t.TypeC<{
|
|
225
948
|
__TYPE__: t.LiteralC<"ImageContent">;
|