@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
|
@@ -1,381 +1,4 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
export declare const Span: t.UnionC<[t.ExactC<t.TypeC<{
|
|
3
|
-
data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4
|
-
__TYPE__: t.LiteralC<"ImageLink">;
|
|
5
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
6
|
-
id: t.StringC;
|
|
7
|
-
url: t.StringC;
|
|
8
|
-
height: t.StringC;
|
|
9
|
-
width: t.StringC;
|
|
10
|
-
size: t.StringC;
|
|
11
|
-
name: t.StringC;
|
|
12
|
-
kind: t.StringC;
|
|
13
|
-
}>, t.PartialC<{
|
|
14
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
15
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
16
|
-
id: t.StringC;
|
|
17
|
-
url: t.StringC;
|
|
18
|
-
name: t.StringC;
|
|
19
|
-
kind: t.StringC;
|
|
20
|
-
size: t.StringC;
|
|
21
|
-
}>, t.PartialC<{
|
|
22
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
23
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
24
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
25
|
-
}>, t.PartialC<{
|
|
26
|
-
size: t.StringC;
|
|
27
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
28
|
-
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
29
|
-
}>>, t.ExactC<t.TypeC<{
|
|
30
|
-
id: t.Type<string, string, unknown>;
|
|
31
|
-
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
32
|
-
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
33
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
34
|
-
url: t.StringC;
|
|
35
|
-
}>, t.PartialC<{
|
|
36
|
-
kind: t.LiteralC<"web">;
|
|
37
|
-
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
38
|
-
preview: t.UnionC<[t.Type<{
|
|
39
|
-
title?: string;
|
|
40
|
-
}, {
|
|
41
|
-
title?: string;
|
|
42
|
-
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
43
|
-
}>]>>]>]> | t.UnionC<[t.Type<{
|
|
44
|
-
__TYPE__: "ImageLink";
|
|
45
|
-
} & {
|
|
46
|
-
id: string;
|
|
47
|
-
url: string;
|
|
48
|
-
height: string;
|
|
49
|
-
width: string;
|
|
50
|
-
size: string;
|
|
51
|
-
name: string;
|
|
52
|
-
kind: string;
|
|
53
|
-
} & {
|
|
54
|
-
date?: string | null | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
id: string;
|
|
57
|
-
url: string;
|
|
58
|
-
height: string;
|
|
59
|
-
width: string;
|
|
60
|
-
size: string;
|
|
61
|
-
name: string;
|
|
62
|
-
kind: string;
|
|
63
|
-
} & {
|
|
64
|
-
date?: string | null | undefined;
|
|
65
|
-
}, unknown>, t.Type<{
|
|
66
|
-
id: string;
|
|
67
|
-
url: string;
|
|
68
|
-
name: string;
|
|
69
|
-
kind: string;
|
|
70
|
-
size: string;
|
|
71
|
-
} & {
|
|
72
|
-
date?: string | null | undefined;
|
|
73
|
-
} & {
|
|
74
|
-
__TYPE__: "FileLink";
|
|
75
|
-
} & {
|
|
76
|
-
size?: string;
|
|
77
|
-
}, {
|
|
78
|
-
id: string;
|
|
79
|
-
url: string;
|
|
80
|
-
name: string;
|
|
81
|
-
kind: string;
|
|
82
|
-
size: string;
|
|
83
|
-
} & {
|
|
84
|
-
date?: string | null | undefined;
|
|
85
|
-
}, unknown>, t.Type<{
|
|
86
|
-
__TYPE__: "DocumentLink";
|
|
87
|
-
} & {
|
|
88
|
-
id: string;
|
|
89
|
-
}, {
|
|
90
|
-
id: string;
|
|
91
|
-
}, unknown>, t.Type<{
|
|
92
|
-
__TYPE__: "ExternalLink";
|
|
93
|
-
} & {
|
|
94
|
-
url: string;
|
|
95
|
-
} & {
|
|
96
|
-
kind?: "web";
|
|
97
|
-
target?: string | null | undefined;
|
|
98
|
-
preview?: {
|
|
99
|
-
title?: string;
|
|
100
|
-
} | null | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
url: string;
|
|
103
|
-
} & {
|
|
104
|
-
kind?: "web";
|
|
105
|
-
target?: string | null | undefined;
|
|
106
|
-
preview?: {
|
|
107
|
-
title?: string;
|
|
108
|
-
} | null | undefined;
|
|
109
|
-
}, unknown>]>;
|
|
110
|
-
start: t.NumberC;
|
|
111
|
-
end: t.NumberC;
|
|
112
|
-
type: t.LiteralC<"hyperlink">;
|
|
113
|
-
}>>, t.ExactC<t.TypeC<{
|
|
114
|
-
data: t.StringC;
|
|
115
|
-
start: t.NumberC;
|
|
116
|
-
end: t.NumberC;
|
|
117
|
-
type: t.LiteralC<"label">;
|
|
118
|
-
}>>, t.ExactC<t.TypeC<{
|
|
119
|
-
start: t.NumberC;
|
|
120
|
-
end: t.NumberC;
|
|
121
|
-
type: t.KeyofC<{
|
|
122
|
-
strong: null;
|
|
123
|
-
em: null;
|
|
124
|
-
"list-item": null;
|
|
125
|
-
}>;
|
|
126
|
-
}>>]>;
|
|
127
|
-
export declare type Span = t.TypeOf<typeof Span>;
|
|
128
|
-
export declare const SpanLegacy: t.UnionC<[t.ExactC<t.TypeC<{
|
|
129
|
-
data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
130
|
-
__TYPE__: t.LiteralC<"ImageLink">;
|
|
131
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
132
|
-
id: t.StringC;
|
|
133
|
-
url: t.StringC;
|
|
134
|
-
height: t.StringC;
|
|
135
|
-
width: t.StringC;
|
|
136
|
-
size: t.StringC;
|
|
137
|
-
name: t.StringC;
|
|
138
|
-
kind: t.StringC;
|
|
139
|
-
}>, t.PartialC<{
|
|
140
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
141
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
142
|
-
id: t.StringC;
|
|
143
|
-
url: t.StringC;
|
|
144
|
-
name: t.StringC;
|
|
145
|
-
kind: t.StringC;
|
|
146
|
-
size: t.StringC;
|
|
147
|
-
}>, t.PartialC<{
|
|
148
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
149
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
150
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
151
|
-
}>, t.PartialC<{
|
|
152
|
-
size: t.StringC;
|
|
153
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
154
|
-
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
155
|
-
}>>, t.ExactC<t.TypeC<{
|
|
156
|
-
id: t.Type<string, string, unknown>;
|
|
157
|
-
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
158
|
-
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
159
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
160
|
-
url: t.StringC;
|
|
161
|
-
}>, t.PartialC<{
|
|
162
|
-
kind: t.LiteralC<"web">;
|
|
163
|
-
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
164
|
-
preview: t.UnionC<[t.Type<{
|
|
165
|
-
title?: string;
|
|
166
|
-
}, {
|
|
167
|
-
title?: string;
|
|
168
|
-
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
169
|
-
}>]>>]>]> | t.UnionC<[t.Type<{
|
|
170
|
-
__TYPE__: "ImageLink";
|
|
171
|
-
} & {
|
|
172
|
-
id: string;
|
|
173
|
-
url: string;
|
|
174
|
-
height: string;
|
|
175
|
-
width: string;
|
|
176
|
-
size: string;
|
|
177
|
-
name: string;
|
|
178
|
-
kind: string;
|
|
179
|
-
} & {
|
|
180
|
-
date?: string | null | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
id: string;
|
|
183
|
-
url: string;
|
|
184
|
-
height: string;
|
|
185
|
-
width: string;
|
|
186
|
-
size: string;
|
|
187
|
-
name: string;
|
|
188
|
-
kind: string;
|
|
189
|
-
} & {
|
|
190
|
-
date?: string | null | undefined;
|
|
191
|
-
}, unknown>, t.Type<{
|
|
192
|
-
id: string;
|
|
193
|
-
url: string;
|
|
194
|
-
name: string;
|
|
195
|
-
kind: string;
|
|
196
|
-
size: string;
|
|
197
|
-
} & {
|
|
198
|
-
date?: string | null | undefined;
|
|
199
|
-
} & {
|
|
200
|
-
__TYPE__: "FileLink";
|
|
201
|
-
} & {
|
|
202
|
-
size?: string;
|
|
203
|
-
}, {
|
|
204
|
-
id: string;
|
|
205
|
-
url: string;
|
|
206
|
-
name: string;
|
|
207
|
-
kind: string;
|
|
208
|
-
size: string;
|
|
209
|
-
} & {
|
|
210
|
-
date?: string | null | undefined;
|
|
211
|
-
}, unknown>, t.Type<{
|
|
212
|
-
__TYPE__: "DocumentLink";
|
|
213
|
-
} & {
|
|
214
|
-
id: string;
|
|
215
|
-
}, {
|
|
216
|
-
id: string;
|
|
217
|
-
}, unknown>, t.Type<{
|
|
218
|
-
__TYPE__: "ExternalLink";
|
|
219
|
-
} & {
|
|
220
|
-
url: string;
|
|
221
|
-
} & {
|
|
222
|
-
kind?: "web";
|
|
223
|
-
target?: string | null | undefined;
|
|
224
|
-
preview?: {
|
|
225
|
-
title?: string;
|
|
226
|
-
} | null | undefined;
|
|
227
|
-
}, {
|
|
228
|
-
url: string;
|
|
229
|
-
} & {
|
|
230
|
-
kind?: "web";
|
|
231
|
-
target?: string | null | undefined;
|
|
232
|
-
preview?: {
|
|
233
|
-
title?: string;
|
|
234
|
-
} | null | undefined;
|
|
235
|
-
}, unknown>]>;
|
|
236
|
-
start: t.NumberC;
|
|
237
|
-
end: t.NumberC;
|
|
238
|
-
type: t.LiteralC<"hyperlink">;
|
|
239
|
-
}>>, t.ExactC<t.TypeC<{
|
|
240
|
-
data: t.StringC;
|
|
241
|
-
start: t.NumberC;
|
|
242
|
-
end: t.NumberC;
|
|
243
|
-
type: t.LiteralC<"label">;
|
|
244
|
-
}>>, t.ExactC<t.TypeC<{
|
|
245
|
-
start: t.NumberC;
|
|
246
|
-
end: t.NumberC;
|
|
247
|
-
type: t.KeyofC<{
|
|
248
|
-
strong: null;
|
|
249
|
-
em: null;
|
|
250
|
-
"list-item": null;
|
|
251
|
-
}>;
|
|
252
|
-
}>>]>;
|
|
253
|
-
export declare type SpanLegacy = t.TypeOf<typeof SpanLegacy>;
|
|
254
|
-
export declare const ValidatedSpans: <C extends t.UnionC<[t.ExactC<t.TypeC<{
|
|
255
|
-
data: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
256
|
-
__TYPE__: t.LiteralC<"ImageLink">;
|
|
257
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
258
|
-
id: t.StringC;
|
|
259
|
-
url: t.StringC;
|
|
260
|
-
height: t.StringC;
|
|
261
|
-
width: t.StringC;
|
|
262
|
-
size: t.StringC;
|
|
263
|
-
name: t.StringC;
|
|
264
|
-
kind: t.StringC;
|
|
265
|
-
}>, t.PartialC<{
|
|
266
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
267
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
268
|
-
id: t.StringC;
|
|
269
|
-
url: t.StringC;
|
|
270
|
-
name: t.StringC;
|
|
271
|
-
kind: t.StringC;
|
|
272
|
-
size: t.StringC;
|
|
273
|
-
}>, t.PartialC<{
|
|
274
|
-
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
275
|
-
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
276
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
277
|
-
}>, t.PartialC<{
|
|
278
|
-
size: t.StringC;
|
|
279
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
280
|
-
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
281
|
-
}>>, t.ExactC<t.TypeC<{
|
|
282
|
-
id: t.Type<string, string, unknown>;
|
|
283
|
-
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
284
|
-
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
285
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
286
|
-
url: t.StringC;
|
|
287
|
-
}>, t.PartialC<{
|
|
288
|
-
kind: t.LiteralC<"web">;
|
|
289
|
-
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
290
|
-
preview: t.UnionC<[t.Type<{
|
|
291
|
-
title?: string;
|
|
292
|
-
}, {
|
|
293
|
-
title?: string;
|
|
294
|
-
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
295
|
-
}>]>>]>]> | t.UnionC<[t.Type<{
|
|
296
|
-
__TYPE__: "ImageLink";
|
|
297
|
-
} & {
|
|
298
|
-
id: string;
|
|
299
|
-
url: string;
|
|
300
|
-
height: string;
|
|
301
|
-
width: string;
|
|
302
|
-
size: string;
|
|
303
|
-
name: string;
|
|
304
|
-
kind: string;
|
|
305
|
-
} & {
|
|
306
|
-
date?: string | null | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
id: string;
|
|
309
|
-
url: string;
|
|
310
|
-
height: string;
|
|
311
|
-
width: string;
|
|
312
|
-
size: string;
|
|
313
|
-
name: string;
|
|
314
|
-
kind: string;
|
|
315
|
-
} & {
|
|
316
|
-
date?: string | null | undefined;
|
|
317
|
-
}, unknown>, t.Type<{
|
|
318
|
-
id: string;
|
|
319
|
-
url: string;
|
|
320
|
-
name: string;
|
|
321
|
-
kind: string;
|
|
322
|
-
size: string;
|
|
323
|
-
} & {
|
|
324
|
-
date?: string | null | undefined;
|
|
325
|
-
} & {
|
|
326
|
-
__TYPE__: "FileLink";
|
|
327
|
-
} & {
|
|
328
|
-
size?: string;
|
|
329
|
-
}, {
|
|
330
|
-
id: string;
|
|
331
|
-
url: string;
|
|
332
|
-
name: string;
|
|
333
|
-
kind: string;
|
|
334
|
-
size: string;
|
|
335
|
-
} & {
|
|
336
|
-
date?: string | null | undefined;
|
|
337
|
-
}, unknown>, t.Type<{
|
|
338
|
-
__TYPE__: "DocumentLink";
|
|
339
|
-
} & {
|
|
340
|
-
id: string;
|
|
341
|
-
}, {
|
|
342
|
-
id: string;
|
|
343
|
-
}, unknown>, t.Type<{
|
|
344
|
-
__TYPE__: "ExternalLink";
|
|
345
|
-
} & {
|
|
346
|
-
url: string;
|
|
347
|
-
} & {
|
|
348
|
-
kind?: "web";
|
|
349
|
-
target?: string | null | undefined;
|
|
350
|
-
preview?: {
|
|
351
|
-
title?: string;
|
|
352
|
-
} | null | undefined;
|
|
353
|
-
}, {
|
|
354
|
-
url: string;
|
|
355
|
-
} & {
|
|
356
|
-
kind?: "web";
|
|
357
|
-
target?: string | null | undefined;
|
|
358
|
-
preview?: {
|
|
359
|
-
title?: string;
|
|
360
|
-
} | null | undefined;
|
|
361
|
-
}, unknown>]>;
|
|
362
|
-
start: t.NumberC;
|
|
363
|
-
end: t.NumberC;
|
|
364
|
-
type: t.LiteralC<"hyperlink">;
|
|
365
|
-
}>>, t.ExactC<t.TypeC<{
|
|
366
|
-
data: t.StringC;
|
|
367
|
-
start: t.NumberC;
|
|
368
|
-
end: t.NumberC;
|
|
369
|
-
type: t.LiteralC<"label">;
|
|
370
|
-
}>>, t.ExactC<t.TypeC<{
|
|
371
|
-
start: t.NumberC;
|
|
372
|
-
end: t.NumberC;
|
|
373
|
-
type: t.KeyofC<{
|
|
374
|
-
strong: null;
|
|
375
|
-
em: null;
|
|
376
|
-
"list-item": null;
|
|
377
|
-
}>;
|
|
378
|
-
}>>]>>(spanCodec: C) => t.Type<t.TypeOf<C>[], t.TypeOf<C>[], unknown>;
|
|
379
2
|
export declare const ImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
380
3
|
type: t.LiteralC<"image">;
|
|
381
4
|
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -400,6 +23,121 @@ export declare const ImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
400
23
|
credits: t.Type<string | null, string | null, unknown>;
|
|
401
24
|
alt: t.Type<string | null, string | null, unknown>;
|
|
402
25
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
26
|
+
caption: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
27
|
+
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>;
|
|
28
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
29
|
+
text: t.StringC;
|
|
30
|
+
}>, t.PartialC<{
|
|
31
|
+
spans: t.Type<({
|
|
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
|
+
data: ({
|
|
85
|
+
__TYPE__: "ImageLink";
|
|
86
|
+
} & {
|
|
87
|
+
id: string;
|
|
88
|
+
url: string;
|
|
89
|
+
height: string;
|
|
90
|
+
width: string;
|
|
91
|
+
size: string;
|
|
92
|
+
name: string;
|
|
93
|
+
kind: string;
|
|
94
|
+
} & {
|
|
95
|
+
date?: string | null | undefined;
|
|
96
|
+
}) | ({
|
|
97
|
+
id: string;
|
|
98
|
+
url: string;
|
|
99
|
+
name: string;
|
|
100
|
+
kind: string;
|
|
101
|
+
size: string;
|
|
102
|
+
} & {
|
|
103
|
+
date?: string | null | undefined;
|
|
104
|
+
} & {
|
|
105
|
+
__TYPE__: "FileLink";
|
|
106
|
+
} & {
|
|
107
|
+
size?: string;
|
|
108
|
+
}) | ({
|
|
109
|
+
__TYPE__: "DocumentLink";
|
|
110
|
+
} & {
|
|
111
|
+
id: string;
|
|
112
|
+
}) | ({
|
|
113
|
+
__TYPE__: "ExternalLink";
|
|
114
|
+
} & {
|
|
115
|
+
url: string;
|
|
116
|
+
} & {
|
|
117
|
+
kind?: "web";
|
|
118
|
+
target?: string | null | undefined;
|
|
119
|
+
preview?: {
|
|
120
|
+
title?: string;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
});
|
|
123
|
+
start: number;
|
|
124
|
+
end: number;
|
|
125
|
+
type: "hyperlink";
|
|
126
|
+
} | {
|
|
127
|
+
data: string;
|
|
128
|
+
start: number;
|
|
129
|
+
end: number;
|
|
130
|
+
type: "label";
|
|
131
|
+
} | {
|
|
132
|
+
start: number;
|
|
133
|
+
end: number;
|
|
134
|
+
type: "strong" | "em" | "list-item";
|
|
135
|
+
})[], unknown>;
|
|
136
|
+
}>]>;
|
|
137
|
+
}>, t.PartialC<{
|
|
138
|
+
label: t.StringC;
|
|
139
|
+
direction: t.StringC;
|
|
140
|
+
}>]>>>;
|
|
403
141
|
}>]>>, t.PartialC<{
|
|
404
142
|
linkTo: t.UnionC<[t.Type<({
|
|
405
143
|
__TYPE__: "ImageLink";
|
|
@@ -502,64 +240,12 @@ export declare const EmbedBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
502
240
|
}>]>>;
|
|
503
241
|
export declare type EmbedBlock = t.TypeOf<typeof EmbedBlock>;
|
|
504
242
|
export declare function checkEmbedBlock(block: Block): block is EmbedBlock;
|
|
505
|
-
export declare const
|
|
506
|
-
type:
|
|
507
|
-
content:
|
|
508
|
-
text:
|
|
509
|
-
}
|
|
510
|
-
spans
|
|
511
|
-
data: ({
|
|
512
|
-
__TYPE__: "ImageLink";
|
|
513
|
-
} & {
|
|
514
|
-
id: string;
|
|
515
|
-
url: string;
|
|
516
|
-
height: string;
|
|
517
|
-
width: string;
|
|
518
|
-
size: string;
|
|
519
|
-
name: string;
|
|
520
|
-
kind: string;
|
|
521
|
-
} & {
|
|
522
|
-
date?: string | null | undefined;
|
|
523
|
-
}) | ({
|
|
524
|
-
id: string;
|
|
525
|
-
url: string;
|
|
526
|
-
name: string;
|
|
527
|
-
kind: string;
|
|
528
|
-
size: string;
|
|
529
|
-
} & {
|
|
530
|
-
date?: string | null | undefined;
|
|
531
|
-
} & {
|
|
532
|
-
__TYPE__: "FileLink";
|
|
533
|
-
} & {
|
|
534
|
-
size?: string;
|
|
535
|
-
}) | ({
|
|
536
|
-
__TYPE__: "DocumentLink";
|
|
537
|
-
} & {
|
|
538
|
-
id: string;
|
|
539
|
-
}) | ({
|
|
540
|
-
__TYPE__: "ExternalLink";
|
|
541
|
-
} & {
|
|
542
|
-
url: string;
|
|
543
|
-
} & {
|
|
544
|
-
kind?: "web";
|
|
545
|
-
target?: string | null | undefined;
|
|
546
|
-
preview?: {
|
|
547
|
-
title?: string;
|
|
548
|
-
} | null | undefined;
|
|
549
|
-
});
|
|
550
|
-
start: number;
|
|
551
|
-
end: number;
|
|
552
|
-
type: "hyperlink";
|
|
553
|
-
} | {
|
|
554
|
-
data: string;
|
|
555
|
-
start: number;
|
|
556
|
-
end: number;
|
|
557
|
-
type: "label";
|
|
558
|
-
} | {
|
|
559
|
-
start: number;
|
|
560
|
-
end: number;
|
|
561
|
-
type: "strong" | "em" | "list-item";
|
|
562
|
-
})[], ({
|
|
243
|
+
export declare const BlockLegacy: t.Type<({
|
|
244
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
245
|
+
content: {
|
|
246
|
+
text: string;
|
|
247
|
+
} & {
|
|
248
|
+
spans?: ({
|
|
563
249
|
data: ({
|
|
564
250
|
__TYPE__: "ImageLink";
|
|
565
251
|
} & {
|
|
@@ -611,14 +297,12 @@ export declare const TextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
611
297
|
start: number;
|
|
612
298
|
end: number;
|
|
613
299
|
type: "strong" | "em" | "list-item";
|
|
614
|
-
})[]
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
label
|
|
618
|
-
direction
|
|
619
|
-
}
|
|
620
|
-
export declare type TextBlock = t.TypeOf<typeof TextBlock>;
|
|
621
|
-
export declare const BlockLegacy: t.Type<({
|
|
300
|
+
})[];
|
|
301
|
+
};
|
|
302
|
+
} & {
|
|
303
|
+
label?: string;
|
|
304
|
+
direction?: string;
|
|
305
|
+
}) | ({
|
|
622
306
|
type: "image";
|
|
623
307
|
data: {
|
|
624
308
|
origin: {
|
|
@@ -642,6 +326,69 @@ export declare const BlockLegacy: t.Type<({
|
|
|
642
326
|
credits?: string | null;
|
|
643
327
|
alt?: string | null;
|
|
644
328
|
provider?: string | null | undefined;
|
|
329
|
+
caption?: ({
|
|
330
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
331
|
+
content: {
|
|
332
|
+
text: string;
|
|
333
|
+
} & {
|
|
334
|
+
spans?: ({
|
|
335
|
+
data: ({
|
|
336
|
+
__TYPE__: "ImageLink";
|
|
337
|
+
} & {
|
|
338
|
+
id: string;
|
|
339
|
+
url: string;
|
|
340
|
+
height: string;
|
|
341
|
+
width: string;
|
|
342
|
+
size: string;
|
|
343
|
+
name: string;
|
|
344
|
+
kind: string;
|
|
345
|
+
} & {
|
|
346
|
+
date?: string | null | undefined;
|
|
347
|
+
}) | ({
|
|
348
|
+
id: string;
|
|
349
|
+
url: string;
|
|
350
|
+
name: string;
|
|
351
|
+
kind: string;
|
|
352
|
+
size: string;
|
|
353
|
+
} & {
|
|
354
|
+
date?: string | null | undefined;
|
|
355
|
+
} & {
|
|
356
|
+
__TYPE__: "FileLink";
|
|
357
|
+
} & {
|
|
358
|
+
size?: string;
|
|
359
|
+
}) | ({
|
|
360
|
+
__TYPE__: "DocumentLink";
|
|
361
|
+
} & {
|
|
362
|
+
id: string;
|
|
363
|
+
}) | ({
|
|
364
|
+
__TYPE__: "ExternalLink";
|
|
365
|
+
} & {
|
|
366
|
+
url: string;
|
|
367
|
+
} & {
|
|
368
|
+
kind?: "web";
|
|
369
|
+
target?: string | null | undefined;
|
|
370
|
+
preview?: {
|
|
371
|
+
title?: string;
|
|
372
|
+
} | null | undefined;
|
|
373
|
+
});
|
|
374
|
+
start: number;
|
|
375
|
+
end: number;
|
|
376
|
+
type: "hyperlink";
|
|
377
|
+
} | {
|
|
378
|
+
data: string;
|
|
379
|
+
start: number;
|
|
380
|
+
end: number;
|
|
381
|
+
type: "label";
|
|
382
|
+
} | {
|
|
383
|
+
start: number;
|
|
384
|
+
end: number;
|
|
385
|
+
type: "strong" | "em" | "list-item";
|
|
386
|
+
})[];
|
|
387
|
+
};
|
|
388
|
+
} & {
|
|
389
|
+
label?: string;
|
|
390
|
+
direction?: string;
|
|
391
|
+
})[];
|
|
645
392
|
} & {
|
|
646
393
|
linkTo?: ({
|
|
647
394
|
__TYPE__: "ImageLink";
|
|
@@ -710,7 +457,7 @@ export declare const BlockLegacy: t.Type<({
|
|
|
710
457
|
} & {
|
|
711
458
|
label?: string | null | undefined;
|
|
712
459
|
direction?: string | null | undefined;
|
|
713
|
-
})
|
|
460
|
+
}), ({
|
|
714
461
|
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
715
462
|
content: {
|
|
716
463
|
text: string;
|
|
@@ -772,7 +519,7 @@ export declare const BlockLegacy: t.Type<({
|
|
|
772
519
|
} & {
|
|
773
520
|
label?: string;
|
|
774
521
|
direction?: string;
|
|
775
|
-
})
|
|
522
|
+
}) | ({
|
|
776
523
|
type: "image";
|
|
777
524
|
data: {
|
|
778
525
|
origin: {
|
|
@@ -796,6 +543,69 @@ export declare const BlockLegacy: t.Type<({
|
|
|
796
543
|
credits?: string | null;
|
|
797
544
|
alt?: string | null;
|
|
798
545
|
provider?: string | null | undefined;
|
|
546
|
+
caption?: ({
|
|
547
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
548
|
+
content: {
|
|
549
|
+
text: string;
|
|
550
|
+
} & {
|
|
551
|
+
spans?: ({
|
|
552
|
+
data: ({
|
|
553
|
+
__TYPE__: "ImageLink";
|
|
554
|
+
} & {
|
|
555
|
+
id: string;
|
|
556
|
+
url: string;
|
|
557
|
+
height: string;
|
|
558
|
+
width: string;
|
|
559
|
+
size: string;
|
|
560
|
+
name: string;
|
|
561
|
+
kind: string;
|
|
562
|
+
} & {
|
|
563
|
+
date?: string | null | undefined;
|
|
564
|
+
}) | ({
|
|
565
|
+
id: string;
|
|
566
|
+
url: string;
|
|
567
|
+
name: string;
|
|
568
|
+
kind: string;
|
|
569
|
+
size: string;
|
|
570
|
+
} & {
|
|
571
|
+
date?: string | null | undefined;
|
|
572
|
+
} & {
|
|
573
|
+
__TYPE__: "FileLink";
|
|
574
|
+
} & {
|
|
575
|
+
size?: string;
|
|
576
|
+
}) | ({
|
|
577
|
+
__TYPE__: "DocumentLink";
|
|
578
|
+
} & {
|
|
579
|
+
id: string;
|
|
580
|
+
}) | ({
|
|
581
|
+
__TYPE__: "ExternalLink";
|
|
582
|
+
} & {
|
|
583
|
+
url: string;
|
|
584
|
+
} & {
|
|
585
|
+
kind?: "web";
|
|
586
|
+
target?: string | null | undefined;
|
|
587
|
+
preview?: {
|
|
588
|
+
title?: string;
|
|
589
|
+
} | null | undefined;
|
|
590
|
+
});
|
|
591
|
+
start: number;
|
|
592
|
+
end: number;
|
|
593
|
+
type: "hyperlink";
|
|
594
|
+
} | {
|
|
595
|
+
data: string;
|
|
596
|
+
start: number;
|
|
597
|
+
end: number;
|
|
598
|
+
type: "label";
|
|
599
|
+
} | {
|
|
600
|
+
start: number;
|
|
601
|
+
end: number;
|
|
602
|
+
type: "strong" | "em" | "list-item";
|
|
603
|
+
})[];
|
|
604
|
+
};
|
|
605
|
+
} & {
|
|
606
|
+
label?: string;
|
|
607
|
+
direction?: string;
|
|
608
|
+
})[];
|
|
799
609
|
} & {
|
|
800
610
|
linkTo?: ({
|
|
801
611
|
__TYPE__: "ImageLink";
|
|
@@ -864,68 +674,6 @@ export declare const BlockLegacy: t.Type<({
|
|
|
864
674
|
} & {
|
|
865
675
|
label?: string | null | undefined;
|
|
866
676
|
direction?: string | null | undefined;
|
|
867
|
-
}) | ({
|
|
868
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
869
|
-
content: {
|
|
870
|
-
text: string;
|
|
871
|
-
} & {
|
|
872
|
-
spans?: ({
|
|
873
|
-
data: ({
|
|
874
|
-
__TYPE__: "ImageLink";
|
|
875
|
-
} & {
|
|
876
|
-
id: string;
|
|
877
|
-
url: string;
|
|
878
|
-
height: string;
|
|
879
|
-
width: string;
|
|
880
|
-
size: string;
|
|
881
|
-
name: string;
|
|
882
|
-
kind: string;
|
|
883
|
-
} & {
|
|
884
|
-
date?: string | null | undefined;
|
|
885
|
-
}) | ({
|
|
886
|
-
id: string;
|
|
887
|
-
url: string;
|
|
888
|
-
name: string;
|
|
889
|
-
kind: string;
|
|
890
|
-
size: string;
|
|
891
|
-
} & {
|
|
892
|
-
date?: string | null | undefined;
|
|
893
|
-
} & {
|
|
894
|
-
__TYPE__: "FileLink";
|
|
895
|
-
} & {
|
|
896
|
-
size?: string;
|
|
897
|
-
}) | ({
|
|
898
|
-
__TYPE__: "DocumentLink";
|
|
899
|
-
} & {
|
|
900
|
-
id: string;
|
|
901
|
-
}) | ({
|
|
902
|
-
__TYPE__: "ExternalLink";
|
|
903
|
-
} & {
|
|
904
|
-
url: string;
|
|
905
|
-
} & {
|
|
906
|
-
kind?: "web";
|
|
907
|
-
target?: string | null | undefined;
|
|
908
|
-
preview?: {
|
|
909
|
-
title?: string;
|
|
910
|
-
} | null | undefined;
|
|
911
|
-
});
|
|
912
|
-
start: number;
|
|
913
|
-
end: number;
|
|
914
|
-
type: "hyperlink";
|
|
915
|
-
} | {
|
|
916
|
-
data: string;
|
|
917
|
-
start: number;
|
|
918
|
-
end: number;
|
|
919
|
-
type: "label";
|
|
920
|
-
} | {
|
|
921
|
-
start: number;
|
|
922
|
-
end: number;
|
|
923
|
-
type: "strong" | "em" | "list-item";
|
|
924
|
-
})[];
|
|
925
|
-
};
|
|
926
|
-
} & {
|
|
927
|
-
label?: string;
|
|
928
|
-
direction?: string;
|
|
929
677
|
}), unknown>;
|
|
930
678
|
export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
931
679
|
type: t.LiteralC<"image">;
|
|
@@ -951,6 +699,121 @@ export declare const Block: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
951
699
|
credits: t.Type<string | null, string | null, unknown>;
|
|
952
700
|
alt: t.Type<string | null, string | null, unknown>;
|
|
953
701
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
702
|
+
caption: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
703
|
+
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>;
|
|
704
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
705
|
+
text: t.StringC;
|
|
706
|
+
}>, t.PartialC<{
|
|
707
|
+
spans: t.Type<({
|
|
708
|
+
data: ({
|
|
709
|
+
__TYPE__: "ImageLink";
|
|
710
|
+
} & {
|
|
711
|
+
id: string;
|
|
712
|
+
url: string;
|
|
713
|
+
height: string;
|
|
714
|
+
width: string;
|
|
715
|
+
size: string;
|
|
716
|
+
name: string;
|
|
717
|
+
kind: string;
|
|
718
|
+
} & {
|
|
719
|
+
date?: string | null | undefined;
|
|
720
|
+
}) | ({
|
|
721
|
+
id: string;
|
|
722
|
+
url: string;
|
|
723
|
+
name: string;
|
|
724
|
+
kind: string;
|
|
725
|
+
size: string;
|
|
726
|
+
} & {
|
|
727
|
+
date?: string | null | undefined;
|
|
728
|
+
} & {
|
|
729
|
+
__TYPE__: "FileLink";
|
|
730
|
+
} & {
|
|
731
|
+
size?: string;
|
|
732
|
+
}) | ({
|
|
733
|
+
__TYPE__: "DocumentLink";
|
|
734
|
+
} & {
|
|
735
|
+
id: string;
|
|
736
|
+
}) | ({
|
|
737
|
+
__TYPE__: "ExternalLink";
|
|
738
|
+
} & {
|
|
739
|
+
url: string;
|
|
740
|
+
} & {
|
|
741
|
+
kind?: "web";
|
|
742
|
+
target?: string | null | undefined;
|
|
743
|
+
preview?: {
|
|
744
|
+
title?: string;
|
|
745
|
+
} | null | undefined;
|
|
746
|
+
});
|
|
747
|
+
start: number;
|
|
748
|
+
end: number;
|
|
749
|
+
type: "hyperlink";
|
|
750
|
+
} | {
|
|
751
|
+
data: string;
|
|
752
|
+
start: number;
|
|
753
|
+
end: number;
|
|
754
|
+
type: "label";
|
|
755
|
+
} | {
|
|
756
|
+
start: number;
|
|
757
|
+
end: number;
|
|
758
|
+
type: "strong" | "em" | "list-item";
|
|
759
|
+
})[], ({
|
|
760
|
+
data: ({
|
|
761
|
+
__TYPE__: "ImageLink";
|
|
762
|
+
} & {
|
|
763
|
+
id: string;
|
|
764
|
+
url: string;
|
|
765
|
+
height: string;
|
|
766
|
+
width: string;
|
|
767
|
+
size: string;
|
|
768
|
+
name: string;
|
|
769
|
+
kind: string;
|
|
770
|
+
} & {
|
|
771
|
+
date?: string | null | undefined;
|
|
772
|
+
}) | ({
|
|
773
|
+
id: string;
|
|
774
|
+
url: string;
|
|
775
|
+
name: string;
|
|
776
|
+
kind: string;
|
|
777
|
+
size: string;
|
|
778
|
+
} & {
|
|
779
|
+
date?: string | null | undefined;
|
|
780
|
+
} & {
|
|
781
|
+
__TYPE__: "FileLink";
|
|
782
|
+
} & {
|
|
783
|
+
size?: string;
|
|
784
|
+
}) | ({
|
|
785
|
+
__TYPE__: "DocumentLink";
|
|
786
|
+
} & {
|
|
787
|
+
id: string;
|
|
788
|
+
}) | ({
|
|
789
|
+
__TYPE__: "ExternalLink";
|
|
790
|
+
} & {
|
|
791
|
+
url: string;
|
|
792
|
+
} & {
|
|
793
|
+
kind?: "web";
|
|
794
|
+
target?: string | null | undefined;
|
|
795
|
+
preview?: {
|
|
796
|
+
title?: string;
|
|
797
|
+
} | null | undefined;
|
|
798
|
+
});
|
|
799
|
+
start: number;
|
|
800
|
+
end: number;
|
|
801
|
+
type: "hyperlink";
|
|
802
|
+
} | {
|
|
803
|
+
data: string;
|
|
804
|
+
start: number;
|
|
805
|
+
end: number;
|
|
806
|
+
type: "label";
|
|
807
|
+
} | {
|
|
808
|
+
start: number;
|
|
809
|
+
end: number;
|
|
810
|
+
type: "strong" | "em" | "list-item";
|
|
811
|
+
})[], unknown>;
|
|
812
|
+
}>]>;
|
|
813
|
+
}>, t.PartialC<{
|
|
814
|
+
label: t.StringC;
|
|
815
|
+
direction: t.StringC;
|
|
816
|
+
}>]>>>;
|
|
954
817
|
}>]>>, t.PartialC<{
|
|
955
818
|
linkTo: t.UnionC<[t.Type<({
|
|
956
819
|
__TYPE__: "ImageLink";
|