@prismicio/types-internal 3.4.0-alpha.13 → 3.4.0-alpha.14
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 +498 -3366
- package/lib/content/fields/GroupContent.d.ts +1 -1
- package/lib/content/fields/GroupContent.js +2 -1
- package/lib/content/fields/WidgetContent.d.ts +514 -3382
- package/lib/content/fields/nestable/NestableContent.d.ts +68 -546
- package/lib/content/fields/nestable/NestableContent.js +7 -8
- package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/nestable/RepeatableContent.js +5 -2
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -641
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -8
- package/lib/content/fields/nestable/TableContent.d.ts +637 -834
- package/lib/content/fields/nestable/TableContent.js +10 -7
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +26 -252
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +190 -1146
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -546
- package/lib/content/fields/slices/Slice/index.d.ts +269 -2029
- package/lib/content/fields/slices/SliceItem.d.ts +463 -2223
- package/lib/content/fields/slices/SlicesContent.d.ts +394 -2784
- package/lib/customtypes/widgets/Group.d.ts +36 -36
- package/lib/customtypes/widgets/Widget.d.ts +54 -54
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -6
- package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
- package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
- package/lib/customtypes/widgets/nestable/RichText.js +0 -2
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -48
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +18 -18
- package/lib/customtypes/widgets/slices/Slices.d.ts +72 -72
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +2 -1
- package/src/content/fields/nestable/NestableContent.ts +13 -9
- package/src/content/fields/nestable/RepeatableContent.ts +6 -2
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +3 -7
- package/src/content/fields/nestable/TableContent.ts +10 -7
- package/src/customtypes/widgets/nestable/NestableWidget.ts +1 -1
- package/src/customtypes/widgets/nestable/RichText.ts +0 -2
- package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
|
@@ -6,130 +6,136 @@ export declare const isTableContent: (u: unknown) => u is {
|
|
|
6
6
|
type: "tableRow";
|
|
7
7
|
content: ({
|
|
8
8
|
type: "tableHeader";
|
|
9
|
-
content:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
content: {
|
|
10
|
+
__TYPE__: "StructuredTextContent";
|
|
11
|
+
value: ({
|
|
12
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
13
|
+
content: {
|
|
14
|
+
text: string;
|
|
15
|
+
} & {
|
|
16
|
+
spans?: ({
|
|
17
|
+
data: ({
|
|
18
|
+
__TYPE__: "ImageLink";
|
|
19
|
+
} & {
|
|
20
|
+
kind: "image";
|
|
21
|
+
id: string;
|
|
22
|
+
url: string;
|
|
23
|
+
height: string;
|
|
24
|
+
width: string;
|
|
25
|
+
size: string;
|
|
26
|
+
name: string;
|
|
27
|
+
} & {
|
|
28
|
+
date?: string | null | undefined;
|
|
29
|
+
}) | ({
|
|
30
|
+
__TYPE__: "FileLink";
|
|
31
|
+
} & {
|
|
32
|
+
kind: "file";
|
|
33
|
+
id: string;
|
|
34
|
+
url: string;
|
|
35
|
+
name: string;
|
|
36
|
+
size: string;
|
|
37
|
+
} & {
|
|
38
|
+
date?: string | null | undefined;
|
|
39
|
+
}) | ({
|
|
40
|
+
__TYPE__: "DocumentLink";
|
|
41
|
+
} & {
|
|
42
|
+
id: string;
|
|
43
|
+
}) | ({
|
|
44
|
+
__TYPE__: "ExternalLink";
|
|
45
|
+
} & {
|
|
46
|
+
url: string;
|
|
47
|
+
} & {
|
|
48
|
+
kind?: "web";
|
|
49
|
+
target?: string | null | undefined;
|
|
50
|
+
preview?: {
|
|
51
|
+
title?: string;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
});
|
|
54
|
+
start: number;
|
|
55
|
+
end: number;
|
|
56
|
+
type: "hyperlink";
|
|
57
|
+
} | {
|
|
58
|
+
data: string;
|
|
59
|
+
start: number;
|
|
60
|
+
end: number;
|
|
61
|
+
type: "label";
|
|
62
|
+
} | {
|
|
63
|
+
start: number;
|
|
64
|
+
end: number;
|
|
65
|
+
type: "strong" | "em" | "list-item";
|
|
66
|
+
})[];
|
|
67
|
+
};
|
|
13
68
|
} & {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
kind: "image";
|
|
19
|
-
id: string;
|
|
20
|
-
url: string;
|
|
21
|
-
height: string;
|
|
22
|
-
width: string;
|
|
23
|
-
size: string;
|
|
24
|
-
name: string;
|
|
25
|
-
} & {
|
|
26
|
-
date?: string | null | undefined;
|
|
27
|
-
}) | ({
|
|
28
|
-
__TYPE__: "FileLink";
|
|
29
|
-
} & {
|
|
30
|
-
kind: "file";
|
|
31
|
-
id: string;
|
|
32
|
-
url: string;
|
|
33
|
-
name: string;
|
|
34
|
-
size: string;
|
|
35
|
-
} & {
|
|
36
|
-
date?: string | null | undefined;
|
|
37
|
-
}) | ({
|
|
38
|
-
__TYPE__: "DocumentLink";
|
|
39
|
-
} & {
|
|
40
|
-
id: string;
|
|
41
|
-
}) | ({
|
|
42
|
-
__TYPE__: "ExternalLink";
|
|
43
|
-
} & {
|
|
44
|
-
url: string;
|
|
45
|
-
} & {
|
|
46
|
-
kind?: "web";
|
|
47
|
-
target?: string | null | undefined;
|
|
48
|
-
preview?: {
|
|
49
|
-
title?: string;
|
|
50
|
-
} | null | undefined;
|
|
51
|
-
});
|
|
52
|
-
start: number;
|
|
53
|
-
end: number;
|
|
54
|
-
type: "hyperlink";
|
|
55
|
-
} | {
|
|
56
|
-
data: string;
|
|
57
|
-
start: number;
|
|
58
|
-
end: number;
|
|
59
|
-
type: "label";
|
|
60
|
-
} | {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
type: "strong" | "em" | "list-item";
|
|
64
|
-
})[];
|
|
65
|
-
};
|
|
66
|
-
} & {
|
|
67
|
-
label?: string;
|
|
68
|
-
direction?: string;
|
|
69
|
-
})[];
|
|
69
|
+
label?: string;
|
|
70
|
+
direction?: string;
|
|
71
|
+
})[];
|
|
72
|
+
};
|
|
70
73
|
} | {
|
|
71
74
|
type: "tableCell";
|
|
72
|
-
content:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
content: {
|
|
76
|
+
__TYPE__: "StructuredTextContent";
|
|
77
|
+
value: ({
|
|
78
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
79
|
+
content: {
|
|
80
|
+
text: string;
|
|
81
|
+
} & {
|
|
82
|
+
spans?: ({
|
|
83
|
+
data: ({
|
|
84
|
+
__TYPE__: "ImageLink";
|
|
85
|
+
} & {
|
|
86
|
+
kind: "image";
|
|
87
|
+
id: string;
|
|
88
|
+
url: string;
|
|
89
|
+
height: string;
|
|
90
|
+
width: string;
|
|
91
|
+
size: string;
|
|
92
|
+
name: string;
|
|
93
|
+
} & {
|
|
94
|
+
date?: string | null | undefined;
|
|
95
|
+
}) | ({
|
|
96
|
+
__TYPE__: "FileLink";
|
|
97
|
+
} & {
|
|
98
|
+
kind: "file";
|
|
99
|
+
id: string;
|
|
100
|
+
url: string;
|
|
101
|
+
name: string;
|
|
102
|
+
size: string;
|
|
103
|
+
} & {
|
|
104
|
+
date?: string | null | undefined;
|
|
105
|
+
}) | ({
|
|
106
|
+
__TYPE__: "DocumentLink";
|
|
107
|
+
} & {
|
|
108
|
+
id: string;
|
|
109
|
+
}) | ({
|
|
110
|
+
__TYPE__: "ExternalLink";
|
|
111
|
+
} & {
|
|
112
|
+
url: string;
|
|
113
|
+
} & {
|
|
114
|
+
kind?: "web";
|
|
115
|
+
target?: string | null | undefined;
|
|
116
|
+
preview?: {
|
|
117
|
+
title?: string;
|
|
118
|
+
} | null | undefined;
|
|
119
|
+
});
|
|
120
|
+
start: number;
|
|
121
|
+
end: number;
|
|
122
|
+
type: "hyperlink";
|
|
123
|
+
} | {
|
|
124
|
+
data: string;
|
|
125
|
+
start: number;
|
|
126
|
+
end: number;
|
|
127
|
+
type: "label";
|
|
128
|
+
} | {
|
|
129
|
+
start: number;
|
|
130
|
+
end: number;
|
|
131
|
+
type: "strong" | "em" | "list-item";
|
|
132
|
+
})[];
|
|
133
|
+
};
|
|
76
134
|
} & {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
kind: "image";
|
|
82
|
-
id: string;
|
|
83
|
-
url: string;
|
|
84
|
-
height: string;
|
|
85
|
-
width: string;
|
|
86
|
-
size: string;
|
|
87
|
-
name: string;
|
|
88
|
-
} & {
|
|
89
|
-
date?: string | null | undefined;
|
|
90
|
-
}) | ({
|
|
91
|
-
__TYPE__: "FileLink";
|
|
92
|
-
} & {
|
|
93
|
-
kind: "file";
|
|
94
|
-
id: string;
|
|
95
|
-
url: string;
|
|
96
|
-
name: string;
|
|
97
|
-
size: string;
|
|
98
|
-
} & {
|
|
99
|
-
date?: string | null | undefined;
|
|
100
|
-
}) | ({
|
|
101
|
-
__TYPE__: "DocumentLink";
|
|
102
|
-
} & {
|
|
103
|
-
id: string;
|
|
104
|
-
}) | ({
|
|
105
|
-
__TYPE__: "ExternalLink";
|
|
106
|
-
} & {
|
|
107
|
-
url: string;
|
|
108
|
-
} & {
|
|
109
|
-
kind?: "web";
|
|
110
|
-
target?: string | null | undefined;
|
|
111
|
-
preview?: {
|
|
112
|
-
title?: string;
|
|
113
|
-
} | null | undefined;
|
|
114
|
-
});
|
|
115
|
-
start: number;
|
|
116
|
-
end: number;
|
|
117
|
-
type: "hyperlink";
|
|
118
|
-
} | {
|
|
119
|
-
data: string;
|
|
120
|
-
start: number;
|
|
121
|
-
end: number;
|
|
122
|
-
type: "label";
|
|
123
|
-
} | {
|
|
124
|
-
start: number;
|
|
125
|
-
end: number;
|
|
126
|
-
type: "strong" | "em" | "list-item";
|
|
127
|
-
})[];
|
|
128
|
-
};
|
|
129
|
-
} & {
|
|
130
|
-
label?: string;
|
|
131
|
-
direction?: string;
|
|
132
|
-
})[];
|
|
135
|
+
label?: string;
|
|
136
|
+
direction?: string;
|
|
137
|
+
})[];
|
|
138
|
+
};
|
|
133
139
|
})[];
|
|
134
140
|
}[];
|
|
135
141
|
} & {
|
|
@@ -137,240 +143,10 @@ export declare const isTableContent: (u: unknown) => u is {
|
|
|
137
143
|
};
|
|
138
144
|
export declare const TableDataCell: t.ExactC<t.TypeC<{
|
|
139
145
|
type: t.LiteralC<"tableCell">;
|
|
140
|
-
content: t.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}>, t.PartialC<{
|
|
145
|
-
spans: t.Type<({
|
|
146
|
-
data: ({
|
|
147
|
-
__TYPE__: "ImageLink";
|
|
148
|
-
} & {
|
|
149
|
-
kind: "image";
|
|
150
|
-
id: string;
|
|
151
|
-
url: string;
|
|
152
|
-
height: string;
|
|
153
|
-
width: string;
|
|
154
|
-
size: string;
|
|
155
|
-
name: string;
|
|
156
|
-
} & {
|
|
157
|
-
date?: string | null | undefined;
|
|
158
|
-
}) | ({
|
|
159
|
-
__TYPE__: "FileLink";
|
|
160
|
-
} & {
|
|
161
|
-
kind: "file";
|
|
162
|
-
id: string;
|
|
163
|
-
url: string;
|
|
164
|
-
name: string;
|
|
165
|
-
size: string;
|
|
166
|
-
} & {
|
|
167
|
-
date?: string | null | undefined;
|
|
168
|
-
}) | ({
|
|
169
|
-
__TYPE__: "DocumentLink";
|
|
170
|
-
} & {
|
|
171
|
-
id: string;
|
|
172
|
-
}) | ({
|
|
173
|
-
__TYPE__: "ExternalLink";
|
|
174
|
-
} & {
|
|
175
|
-
url: string;
|
|
176
|
-
} & {
|
|
177
|
-
kind?: "web";
|
|
178
|
-
target?: string | null | undefined;
|
|
179
|
-
preview?: {
|
|
180
|
-
title?: string;
|
|
181
|
-
} | null | undefined;
|
|
182
|
-
});
|
|
183
|
-
start: number;
|
|
184
|
-
end: number;
|
|
185
|
-
type: "hyperlink";
|
|
186
|
-
} | {
|
|
187
|
-
data: string;
|
|
188
|
-
start: number;
|
|
189
|
-
end: number;
|
|
190
|
-
type: "label";
|
|
191
|
-
} | {
|
|
192
|
-
start: number;
|
|
193
|
-
end: number;
|
|
194
|
-
type: "strong" | "em" | "list-item";
|
|
195
|
-
})[], ({
|
|
196
|
-
data: ({
|
|
197
|
-
__TYPE__: "ImageLink";
|
|
198
|
-
} & {
|
|
199
|
-
kind: "image";
|
|
200
|
-
id: string;
|
|
201
|
-
url: string;
|
|
202
|
-
height: string;
|
|
203
|
-
width: string;
|
|
204
|
-
size: string;
|
|
205
|
-
name: string;
|
|
206
|
-
} & {
|
|
207
|
-
date?: string | null | undefined;
|
|
208
|
-
}) | ({
|
|
209
|
-
__TYPE__: "FileLink";
|
|
210
|
-
} & {
|
|
211
|
-
kind: "file";
|
|
212
|
-
id: string;
|
|
213
|
-
url: string;
|
|
214
|
-
name: string;
|
|
215
|
-
size: string;
|
|
216
|
-
} & {
|
|
217
|
-
date?: string | null | undefined;
|
|
218
|
-
}) | ({
|
|
219
|
-
__TYPE__: "DocumentLink";
|
|
220
|
-
} & {
|
|
221
|
-
id: string;
|
|
222
|
-
}) | ({
|
|
223
|
-
__TYPE__: "ExternalLink";
|
|
224
|
-
} & {
|
|
225
|
-
url: string;
|
|
226
|
-
} & {
|
|
227
|
-
kind?: "web";
|
|
228
|
-
target?: string | null | undefined;
|
|
229
|
-
preview?: {
|
|
230
|
-
title?: string;
|
|
231
|
-
} | null | undefined;
|
|
232
|
-
});
|
|
233
|
-
start: number;
|
|
234
|
-
end: number;
|
|
235
|
-
type: "hyperlink";
|
|
236
|
-
} | {
|
|
237
|
-
data: string;
|
|
238
|
-
start: number;
|
|
239
|
-
end: number;
|
|
240
|
-
type: "label";
|
|
241
|
-
} | {
|
|
242
|
-
start: number;
|
|
243
|
-
end: number;
|
|
244
|
-
type: "strong" | "em" | "list-item";
|
|
245
|
-
})[], unknown>;
|
|
246
|
-
}>]>;
|
|
247
|
-
}>, t.PartialC<{
|
|
248
|
-
label: t.StringC;
|
|
249
|
-
direction: t.StringC;
|
|
250
|
-
}>]>>>;
|
|
251
|
-
}>>;
|
|
252
|
-
export declare type TableDataCell = t.TypeOf<typeof TableDataCell>;
|
|
253
|
-
export declare const TableHeaderCell: t.ExactC<t.TypeC<{
|
|
254
|
-
type: t.LiteralC<"tableHeader">;
|
|
255
|
-
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
256
|
-
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
|
|
257
|
-
content: t.IntersectionC<[t.TypeC<{
|
|
258
|
-
text: t.StringC;
|
|
259
|
-
}>, t.PartialC<{
|
|
260
|
-
spans: t.Type<({
|
|
261
|
-
data: ({
|
|
262
|
-
__TYPE__: "ImageLink";
|
|
263
|
-
} & {
|
|
264
|
-
kind: "image";
|
|
265
|
-
id: string;
|
|
266
|
-
url: string;
|
|
267
|
-
height: string;
|
|
268
|
-
width: string;
|
|
269
|
-
size: string;
|
|
270
|
-
name: string;
|
|
271
|
-
} & {
|
|
272
|
-
date?: string | null | undefined;
|
|
273
|
-
}) | ({
|
|
274
|
-
__TYPE__: "FileLink";
|
|
275
|
-
} & {
|
|
276
|
-
kind: "file";
|
|
277
|
-
id: string;
|
|
278
|
-
url: string;
|
|
279
|
-
name: string;
|
|
280
|
-
size: string;
|
|
281
|
-
} & {
|
|
282
|
-
date?: string | null | undefined;
|
|
283
|
-
}) | ({
|
|
284
|
-
__TYPE__: "DocumentLink";
|
|
285
|
-
} & {
|
|
286
|
-
id: string;
|
|
287
|
-
}) | ({
|
|
288
|
-
__TYPE__: "ExternalLink";
|
|
289
|
-
} & {
|
|
290
|
-
url: string;
|
|
291
|
-
} & {
|
|
292
|
-
kind?: "web";
|
|
293
|
-
target?: string | null | undefined;
|
|
294
|
-
preview?: {
|
|
295
|
-
title?: string;
|
|
296
|
-
} | null | undefined;
|
|
297
|
-
});
|
|
298
|
-
start: number;
|
|
299
|
-
end: number;
|
|
300
|
-
type: "hyperlink";
|
|
301
|
-
} | {
|
|
302
|
-
data: string;
|
|
303
|
-
start: number;
|
|
304
|
-
end: number;
|
|
305
|
-
type: "label";
|
|
306
|
-
} | {
|
|
307
|
-
start: number;
|
|
308
|
-
end: number;
|
|
309
|
-
type: "strong" | "em" | "list-item";
|
|
310
|
-
})[], ({
|
|
311
|
-
data: ({
|
|
312
|
-
__TYPE__: "ImageLink";
|
|
313
|
-
} & {
|
|
314
|
-
kind: "image";
|
|
315
|
-
id: string;
|
|
316
|
-
url: string;
|
|
317
|
-
height: string;
|
|
318
|
-
width: string;
|
|
319
|
-
size: string;
|
|
320
|
-
name: string;
|
|
321
|
-
} & {
|
|
322
|
-
date?: string | null | undefined;
|
|
323
|
-
}) | ({
|
|
324
|
-
__TYPE__: "FileLink";
|
|
325
|
-
} & {
|
|
326
|
-
kind: "file";
|
|
327
|
-
id: string;
|
|
328
|
-
url: string;
|
|
329
|
-
name: string;
|
|
330
|
-
size: string;
|
|
331
|
-
} & {
|
|
332
|
-
date?: string | null | undefined;
|
|
333
|
-
}) | ({
|
|
334
|
-
__TYPE__: "DocumentLink";
|
|
335
|
-
} & {
|
|
336
|
-
id: string;
|
|
337
|
-
}) | ({
|
|
338
|
-
__TYPE__: "ExternalLink";
|
|
339
|
-
} & {
|
|
340
|
-
url: string;
|
|
341
|
-
} & {
|
|
342
|
-
kind?: "web";
|
|
343
|
-
target?: string | null | undefined;
|
|
344
|
-
preview?: {
|
|
345
|
-
title?: string;
|
|
346
|
-
} | null | undefined;
|
|
347
|
-
});
|
|
348
|
-
start: number;
|
|
349
|
-
end: number;
|
|
350
|
-
type: "hyperlink";
|
|
351
|
-
} | {
|
|
352
|
-
data: string;
|
|
353
|
-
start: number;
|
|
354
|
-
end: number;
|
|
355
|
-
type: "label";
|
|
356
|
-
} | {
|
|
357
|
-
start: number;
|
|
358
|
-
end: number;
|
|
359
|
-
type: "strong" | "em" | "list-item";
|
|
360
|
-
})[], unknown>;
|
|
361
|
-
}>]>;
|
|
362
|
-
}>, t.PartialC<{
|
|
363
|
-
label: t.StringC;
|
|
364
|
-
direction: t.StringC;
|
|
365
|
-
}>]>>>;
|
|
366
|
-
}>>;
|
|
367
|
-
export declare type TableHeaderCell = t.TypeOf<typeof TableHeaderCell>;
|
|
368
|
-
export declare const TableRow: t.ExactC<t.TypeC<{
|
|
369
|
-
type: t.LiteralC<"tableRow">;
|
|
370
|
-
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
371
|
-
type: t.LiteralC<"tableHeader">;
|
|
372
|
-
content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
373
|
-
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
|
|
146
|
+
content: t.ExactC<t.TypeC<{
|
|
147
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
148
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
149
|
+
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>;
|
|
374
150
|
content: t.IntersectionC<[t.TypeC<{
|
|
375
151
|
text: t.StringC;
|
|
376
152
|
}>, t.PartialC<{
|
|
@@ -480,10 +256,15 @@ export declare const TableRow: t.ExactC<t.TypeC<{
|
|
|
480
256
|
label: t.StringC;
|
|
481
257
|
direction: t.StringC;
|
|
482
258
|
}>]>>>;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
259
|
+
}>>;
|
|
260
|
+
}>>;
|
|
261
|
+
export declare type TableDataCell = t.TypeOf<typeof TableDataCell>;
|
|
262
|
+
export declare const TableHeaderCell: t.ExactC<t.TypeC<{
|
|
263
|
+
type: t.LiteralC<"tableHeader">;
|
|
264
|
+
content: t.ExactC<t.TypeC<{
|
|
265
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
266
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
267
|
+
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>;
|
|
487
268
|
content: t.IntersectionC<[t.TypeC<{
|
|
488
269
|
text: t.StringC;
|
|
489
270
|
}>, t.PartialC<{
|
|
@@ -593,16 +374,17 @@ export declare const TableRow: t.ExactC<t.TypeC<{
|
|
|
593
374
|
label: t.StringC;
|
|
594
375
|
direction: t.StringC;
|
|
595
376
|
}>]>>>;
|
|
596
|
-
}
|
|
377
|
+
}>>;
|
|
597
378
|
}>>;
|
|
598
|
-
export declare type
|
|
599
|
-
export declare const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
379
|
+
export declare type TableHeaderCell = t.TypeOf<typeof TableHeaderCell>;
|
|
380
|
+
export declare const TableRow: t.ExactC<t.TypeC<{
|
|
381
|
+
type: t.LiteralC<"tableRow">;
|
|
382
|
+
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
383
|
+
type: t.LiteralC<"tableHeader">;
|
|
384
|
+
content: t.ExactC<t.TypeC<{
|
|
385
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
386
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
387
|
+
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>;
|
|
606
388
|
content: t.IntersectionC<[t.TypeC<{
|
|
607
389
|
text: t.StringC;
|
|
608
390
|
}>, t.PartialC<{
|
|
@@ -712,10 +494,13 @@ export declare const tableContentLegacyCodec: t.ExactC<t.TypeC<{
|
|
|
712
494
|
label: t.StringC;
|
|
713
495
|
direction: t.StringC;
|
|
714
496
|
}>]>>>;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
497
|
+
}>>;
|
|
498
|
+
}>>, t.ExactC<t.TypeC<{
|
|
499
|
+
type: t.LiteralC<"tableCell">;
|
|
500
|
+
content: t.ExactC<t.TypeC<{
|
|
501
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
502
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
503
|
+
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>;
|
|
719
504
|
content: t.IntersectionC<[t.TypeC<{
|
|
720
505
|
text: t.StringC;
|
|
721
506
|
}>, t.PartialC<{
|
|
@@ -825,139 +610,145 @@ export declare const tableContentLegacyCodec: t.ExactC<t.TypeC<{
|
|
|
825
610
|
label: t.StringC;
|
|
826
611
|
direction: t.StringC;
|
|
827
612
|
}>]>>>;
|
|
828
|
-
}
|
|
829
|
-
}
|
|
613
|
+
}>>;
|
|
614
|
+
}>>]>>;
|
|
830
615
|
}>>;
|
|
831
|
-
export declare type
|
|
616
|
+
export declare type TableRow = t.TypeOf<typeof TableRow>;
|
|
832
617
|
export declare const TableLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
833
618
|
content: {
|
|
834
619
|
type: "tableRow";
|
|
835
620
|
content: ({
|
|
836
621
|
type: "tableHeader";
|
|
837
|
-
content:
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
622
|
+
content: {
|
|
623
|
+
__TYPE__: "StructuredTextContent";
|
|
624
|
+
value: ({
|
|
625
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
626
|
+
content: {
|
|
627
|
+
text: string;
|
|
628
|
+
} & {
|
|
629
|
+
spans?: ({
|
|
630
|
+
data: ({
|
|
631
|
+
__TYPE__: "ImageLink";
|
|
632
|
+
} & {
|
|
633
|
+
kind: "image";
|
|
634
|
+
id: string;
|
|
635
|
+
url: string;
|
|
636
|
+
height: string;
|
|
637
|
+
width: string;
|
|
638
|
+
size: string;
|
|
639
|
+
name: string;
|
|
640
|
+
} & {
|
|
641
|
+
date?: string | null | undefined;
|
|
642
|
+
}) | ({
|
|
643
|
+
__TYPE__: "FileLink";
|
|
644
|
+
} & {
|
|
645
|
+
kind: "file";
|
|
646
|
+
id: string;
|
|
647
|
+
url: string;
|
|
648
|
+
name: string;
|
|
649
|
+
size: string;
|
|
650
|
+
} & {
|
|
651
|
+
date?: string | null | undefined;
|
|
652
|
+
}) | ({
|
|
653
|
+
__TYPE__: "DocumentLink";
|
|
654
|
+
} & {
|
|
655
|
+
id: string;
|
|
656
|
+
}) | ({
|
|
657
|
+
__TYPE__: "ExternalLink";
|
|
658
|
+
} & {
|
|
659
|
+
url: string;
|
|
660
|
+
} & {
|
|
661
|
+
kind?: "web";
|
|
662
|
+
target?: string | null | undefined;
|
|
663
|
+
preview?: {
|
|
664
|
+
title?: string;
|
|
665
|
+
} | null | undefined;
|
|
666
|
+
});
|
|
667
|
+
start: number;
|
|
668
|
+
end: number;
|
|
669
|
+
type: "hyperlink";
|
|
670
|
+
} | {
|
|
671
|
+
data: string;
|
|
672
|
+
start: number;
|
|
673
|
+
end: number;
|
|
674
|
+
type: "label";
|
|
675
|
+
} | {
|
|
676
|
+
start: number;
|
|
677
|
+
end: number;
|
|
678
|
+
type: "strong" | "em" | "list-item";
|
|
679
|
+
})[];
|
|
680
|
+
};
|
|
841
681
|
} & {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
kind: "image";
|
|
847
|
-
id: string;
|
|
848
|
-
url: string;
|
|
849
|
-
height: string;
|
|
850
|
-
width: string;
|
|
851
|
-
size: string;
|
|
852
|
-
name: string;
|
|
853
|
-
} & {
|
|
854
|
-
date?: string | null | undefined;
|
|
855
|
-
}) | ({
|
|
856
|
-
__TYPE__: "FileLink";
|
|
857
|
-
} & {
|
|
858
|
-
kind: "file";
|
|
859
|
-
id: string;
|
|
860
|
-
url: string;
|
|
861
|
-
name: string;
|
|
862
|
-
size: string;
|
|
863
|
-
} & {
|
|
864
|
-
date?: string | null | undefined;
|
|
865
|
-
}) | ({
|
|
866
|
-
__TYPE__: "DocumentLink";
|
|
867
|
-
} & {
|
|
868
|
-
id: string;
|
|
869
|
-
}) | ({
|
|
870
|
-
__TYPE__: "ExternalLink";
|
|
871
|
-
} & {
|
|
872
|
-
url: string;
|
|
873
|
-
} & {
|
|
874
|
-
kind?: "web";
|
|
875
|
-
target?: string | null | undefined;
|
|
876
|
-
preview?: {
|
|
877
|
-
title?: string;
|
|
878
|
-
} | null | undefined;
|
|
879
|
-
});
|
|
880
|
-
start: number;
|
|
881
|
-
end: number;
|
|
882
|
-
type: "hyperlink";
|
|
883
|
-
} | {
|
|
884
|
-
data: string;
|
|
885
|
-
start: number;
|
|
886
|
-
end: number;
|
|
887
|
-
type: "label";
|
|
888
|
-
} | {
|
|
889
|
-
start: number;
|
|
890
|
-
end: number;
|
|
891
|
-
type: "strong" | "em" | "list-item";
|
|
892
|
-
})[];
|
|
893
|
-
};
|
|
894
|
-
} & {
|
|
895
|
-
label?: string;
|
|
896
|
-
direction?: string;
|
|
897
|
-
})[];
|
|
682
|
+
label?: string;
|
|
683
|
+
direction?: string;
|
|
684
|
+
})[];
|
|
685
|
+
};
|
|
898
686
|
} | {
|
|
899
687
|
type: "tableCell";
|
|
900
|
-
content:
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
688
|
+
content: {
|
|
689
|
+
__TYPE__: "StructuredTextContent";
|
|
690
|
+
value: ({
|
|
691
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
692
|
+
content: {
|
|
693
|
+
text: string;
|
|
694
|
+
} & {
|
|
695
|
+
spans?: ({
|
|
696
|
+
data: ({
|
|
697
|
+
__TYPE__: "ImageLink";
|
|
698
|
+
} & {
|
|
699
|
+
kind: "image";
|
|
700
|
+
id: string;
|
|
701
|
+
url: string;
|
|
702
|
+
height: string;
|
|
703
|
+
width: string;
|
|
704
|
+
size: string;
|
|
705
|
+
name: string;
|
|
706
|
+
} & {
|
|
707
|
+
date?: string | null | undefined;
|
|
708
|
+
}) | ({
|
|
709
|
+
__TYPE__: "FileLink";
|
|
710
|
+
} & {
|
|
711
|
+
kind: "file";
|
|
712
|
+
id: string;
|
|
713
|
+
url: string;
|
|
714
|
+
name: string;
|
|
715
|
+
size: string;
|
|
716
|
+
} & {
|
|
717
|
+
date?: string | null | undefined;
|
|
718
|
+
}) | ({
|
|
719
|
+
__TYPE__: "DocumentLink";
|
|
720
|
+
} & {
|
|
721
|
+
id: string;
|
|
722
|
+
}) | ({
|
|
723
|
+
__TYPE__: "ExternalLink";
|
|
724
|
+
} & {
|
|
725
|
+
url: string;
|
|
726
|
+
} & {
|
|
727
|
+
kind?: "web";
|
|
728
|
+
target?: string | null | undefined;
|
|
729
|
+
preview?: {
|
|
730
|
+
title?: string;
|
|
731
|
+
} | null | undefined;
|
|
732
|
+
});
|
|
733
|
+
start: number;
|
|
734
|
+
end: number;
|
|
735
|
+
type: "hyperlink";
|
|
736
|
+
} | {
|
|
737
|
+
data: string;
|
|
738
|
+
start: number;
|
|
739
|
+
end: number;
|
|
740
|
+
type: "label";
|
|
741
|
+
} | {
|
|
742
|
+
start: number;
|
|
743
|
+
end: number;
|
|
744
|
+
type: "strong" | "em" | "list-item";
|
|
745
|
+
})[];
|
|
746
|
+
};
|
|
904
747
|
} & {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
kind: "image";
|
|
910
|
-
id: string;
|
|
911
|
-
url: string;
|
|
912
|
-
height: string;
|
|
913
|
-
width: string;
|
|
914
|
-
size: string;
|
|
915
|
-
name: string;
|
|
916
|
-
} & {
|
|
917
|
-
date?: string | null | undefined;
|
|
918
|
-
}) | ({
|
|
919
|
-
__TYPE__: "FileLink";
|
|
920
|
-
} & {
|
|
921
|
-
kind: "file";
|
|
922
|
-
id: string;
|
|
923
|
-
url: string;
|
|
924
|
-
name: string;
|
|
925
|
-
size: string;
|
|
926
|
-
} & {
|
|
927
|
-
date?: string | null | undefined;
|
|
928
|
-
}) | ({
|
|
929
|
-
__TYPE__: "DocumentLink";
|
|
930
|
-
} & {
|
|
931
|
-
id: string;
|
|
932
|
-
}) | ({
|
|
933
|
-
__TYPE__: "ExternalLink";
|
|
934
|
-
} & {
|
|
935
|
-
url: string;
|
|
936
|
-
} & {
|
|
937
|
-
kind?: "web";
|
|
938
|
-
target?: string | null | undefined;
|
|
939
|
-
preview?: {
|
|
940
|
-
title?: string;
|
|
941
|
-
} | null | undefined;
|
|
942
|
-
});
|
|
943
|
-
start: number;
|
|
944
|
-
end: number;
|
|
945
|
-
type: "hyperlink";
|
|
946
|
-
} | {
|
|
947
|
-
data: string;
|
|
948
|
-
start: number;
|
|
949
|
-
end: number;
|
|
950
|
-
type: "label";
|
|
951
|
-
} | {
|
|
952
|
-
start: number;
|
|
953
|
-
end: number;
|
|
954
|
-
type: "strong" | "em" | "list-item";
|
|
955
|
-
})[];
|
|
956
|
-
};
|
|
957
|
-
} & {
|
|
958
|
-
label?: string;
|
|
959
|
-
direction?: string;
|
|
960
|
-
})[];
|
|
748
|
+
label?: string;
|
|
749
|
+
direction?: string;
|
|
750
|
+
})[];
|
|
751
|
+
};
|
|
961
752
|
})[];
|
|
962
753
|
}[];
|
|
963
754
|
} & {
|
|
@@ -967,130 +758,136 @@ export declare const TableLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
967
758
|
type: "tableRow";
|
|
968
759
|
content: ({
|
|
969
760
|
type: "tableHeader";
|
|
970
|
-
content:
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
761
|
+
content: {
|
|
762
|
+
__TYPE__: "StructuredTextContent";
|
|
763
|
+
value: ({
|
|
764
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
765
|
+
content: {
|
|
766
|
+
text: string;
|
|
767
|
+
} & {
|
|
768
|
+
spans?: ({
|
|
769
|
+
data: ({
|
|
770
|
+
__TYPE__: "ImageLink";
|
|
771
|
+
} & {
|
|
772
|
+
kind: "image";
|
|
773
|
+
id: string;
|
|
774
|
+
url: string;
|
|
775
|
+
height: string;
|
|
776
|
+
width: string;
|
|
777
|
+
size: string;
|
|
778
|
+
name: string;
|
|
779
|
+
} & {
|
|
780
|
+
date?: string | null | undefined;
|
|
781
|
+
}) | ({
|
|
782
|
+
__TYPE__: "FileLink";
|
|
783
|
+
} & {
|
|
784
|
+
kind: "file";
|
|
785
|
+
id: string;
|
|
786
|
+
url: string;
|
|
787
|
+
name: string;
|
|
788
|
+
size: string;
|
|
789
|
+
} & {
|
|
790
|
+
date?: string | null | undefined;
|
|
791
|
+
}) | ({
|
|
792
|
+
__TYPE__: "DocumentLink";
|
|
793
|
+
} & {
|
|
794
|
+
id: string;
|
|
795
|
+
}) | ({
|
|
796
|
+
__TYPE__: "ExternalLink";
|
|
797
|
+
} & {
|
|
798
|
+
url: string;
|
|
799
|
+
} & {
|
|
800
|
+
kind?: "web";
|
|
801
|
+
target?: string | null | undefined;
|
|
802
|
+
preview?: {
|
|
803
|
+
title?: string;
|
|
804
|
+
} | null | undefined;
|
|
805
|
+
});
|
|
806
|
+
start: number;
|
|
807
|
+
end: number;
|
|
808
|
+
type: "hyperlink";
|
|
809
|
+
} | {
|
|
810
|
+
data: string;
|
|
811
|
+
start: number;
|
|
812
|
+
end: number;
|
|
813
|
+
type: "label";
|
|
814
|
+
} | {
|
|
815
|
+
start: number;
|
|
816
|
+
end: number;
|
|
817
|
+
type: "strong" | "em" | "list-item";
|
|
818
|
+
})[];
|
|
819
|
+
};
|
|
974
820
|
} & {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
kind: "image";
|
|
980
|
-
id: string;
|
|
981
|
-
url: string;
|
|
982
|
-
height: string;
|
|
983
|
-
width: string;
|
|
984
|
-
size: string;
|
|
985
|
-
name: string;
|
|
986
|
-
} & {
|
|
987
|
-
date?: string | null | undefined;
|
|
988
|
-
}) | ({
|
|
989
|
-
__TYPE__: "FileLink";
|
|
990
|
-
} & {
|
|
991
|
-
kind: "file";
|
|
992
|
-
id: string;
|
|
993
|
-
url: string;
|
|
994
|
-
name: string;
|
|
995
|
-
size: string;
|
|
996
|
-
} & {
|
|
997
|
-
date?: string | null | undefined;
|
|
998
|
-
}) | ({
|
|
999
|
-
__TYPE__: "DocumentLink";
|
|
1000
|
-
} & {
|
|
1001
|
-
id: string;
|
|
1002
|
-
}) | ({
|
|
1003
|
-
__TYPE__: "ExternalLink";
|
|
1004
|
-
} & {
|
|
1005
|
-
url: string;
|
|
1006
|
-
} & {
|
|
1007
|
-
kind?: "web";
|
|
1008
|
-
target?: string | null | undefined;
|
|
1009
|
-
preview?: {
|
|
1010
|
-
title?: string;
|
|
1011
|
-
} | null | undefined;
|
|
1012
|
-
});
|
|
1013
|
-
start: number;
|
|
1014
|
-
end: number;
|
|
1015
|
-
type: "hyperlink";
|
|
1016
|
-
} | {
|
|
1017
|
-
data: string;
|
|
1018
|
-
start: number;
|
|
1019
|
-
end: number;
|
|
1020
|
-
type: "label";
|
|
1021
|
-
} | {
|
|
1022
|
-
start: number;
|
|
1023
|
-
end: number;
|
|
1024
|
-
type: "strong" | "em" | "list-item";
|
|
1025
|
-
})[];
|
|
1026
|
-
};
|
|
1027
|
-
} & {
|
|
1028
|
-
label?: string;
|
|
1029
|
-
direction?: string;
|
|
1030
|
-
})[];
|
|
821
|
+
label?: string;
|
|
822
|
+
direction?: string;
|
|
823
|
+
})[];
|
|
824
|
+
};
|
|
1031
825
|
} | {
|
|
1032
826
|
type: "tableCell";
|
|
1033
|
-
content:
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
827
|
+
content: {
|
|
828
|
+
__TYPE__: "StructuredTextContent";
|
|
829
|
+
value: ({
|
|
830
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
831
|
+
content: {
|
|
832
|
+
text: string;
|
|
833
|
+
} & {
|
|
834
|
+
spans?: ({
|
|
835
|
+
data: ({
|
|
836
|
+
__TYPE__: "ImageLink";
|
|
837
|
+
} & {
|
|
838
|
+
kind: "image";
|
|
839
|
+
id: string;
|
|
840
|
+
url: string;
|
|
841
|
+
height: string;
|
|
842
|
+
width: string;
|
|
843
|
+
size: string;
|
|
844
|
+
name: string;
|
|
845
|
+
} & {
|
|
846
|
+
date?: string | null | undefined;
|
|
847
|
+
}) | ({
|
|
848
|
+
__TYPE__: "FileLink";
|
|
849
|
+
} & {
|
|
850
|
+
kind: "file";
|
|
851
|
+
id: string;
|
|
852
|
+
url: string;
|
|
853
|
+
name: string;
|
|
854
|
+
size: string;
|
|
855
|
+
} & {
|
|
856
|
+
date?: string | null | undefined;
|
|
857
|
+
}) | ({
|
|
858
|
+
__TYPE__: "DocumentLink";
|
|
859
|
+
} & {
|
|
860
|
+
id: string;
|
|
861
|
+
}) | ({
|
|
862
|
+
__TYPE__: "ExternalLink";
|
|
863
|
+
} & {
|
|
864
|
+
url: string;
|
|
865
|
+
} & {
|
|
866
|
+
kind?: "web";
|
|
867
|
+
target?: string | null | undefined;
|
|
868
|
+
preview?: {
|
|
869
|
+
title?: string;
|
|
870
|
+
} | null | undefined;
|
|
871
|
+
});
|
|
872
|
+
start: number;
|
|
873
|
+
end: number;
|
|
874
|
+
type: "hyperlink";
|
|
875
|
+
} | {
|
|
876
|
+
data: string;
|
|
877
|
+
start: number;
|
|
878
|
+
end: number;
|
|
879
|
+
type: "label";
|
|
880
|
+
} | {
|
|
881
|
+
start: number;
|
|
882
|
+
end: number;
|
|
883
|
+
type: "strong" | "em" | "list-item";
|
|
884
|
+
})[];
|
|
885
|
+
};
|
|
1037
886
|
} & {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
kind: "image";
|
|
1043
|
-
id: string;
|
|
1044
|
-
url: string;
|
|
1045
|
-
height: string;
|
|
1046
|
-
width: string;
|
|
1047
|
-
size: string;
|
|
1048
|
-
name: string;
|
|
1049
|
-
} & {
|
|
1050
|
-
date?: string | null | undefined;
|
|
1051
|
-
}) | ({
|
|
1052
|
-
__TYPE__: "FileLink";
|
|
1053
|
-
} & {
|
|
1054
|
-
kind: "file";
|
|
1055
|
-
id: string;
|
|
1056
|
-
url: string;
|
|
1057
|
-
name: string;
|
|
1058
|
-
size: string;
|
|
1059
|
-
} & {
|
|
1060
|
-
date?: string | null | undefined;
|
|
1061
|
-
}) | ({
|
|
1062
|
-
__TYPE__: "DocumentLink";
|
|
1063
|
-
} & {
|
|
1064
|
-
id: string;
|
|
1065
|
-
}) | ({
|
|
1066
|
-
__TYPE__: "ExternalLink";
|
|
1067
|
-
} & {
|
|
1068
|
-
url: string;
|
|
1069
|
-
} & {
|
|
1070
|
-
kind?: "web";
|
|
1071
|
-
target?: string | null | undefined;
|
|
1072
|
-
preview?: {
|
|
1073
|
-
title?: string;
|
|
1074
|
-
} | null | undefined;
|
|
1075
|
-
});
|
|
1076
|
-
start: number;
|
|
1077
|
-
end: number;
|
|
1078
|
-
type: "hyperlink";
|
|
1079
|
-
} | {
|
|
1080
|
-
data: string;
|
|
1081
|
-
start: number;
|
|
1082
|
-
end: number;
|
|
1083
|
-
type: "label";
|
|
1084
|
-
} | {
|
|
1085
|
-
start: number;
|
|
1086
|
-
end: number;
|
|
1087
|
-
type: "strong" | "em" | "list-item";
|
|
1088
|
-
})[];
|
|
1089
|
-
};
|
|
1090
|
-
} & {
|
|
1091
|
-
label?: string;
|
|
1092
|
-
direction?: string;
|
|
1093
|
-
})[];
|
|
887
|
+
label?: string;
|
|
888
|
+
direction?: string;
|
|
889
|
+
})[];
|
|
890
|
+
};
|
|
1094
891
|
})[];
|
|
1095
892
|
}[];
|
|
1096
893
|
}>, unknown>;
|
|
@@ -1099,230 +896,236 @@ export declare const TableContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
1099
896
|
type: t.LiteralC<"tableRow">;
|
|
1100
897
|
content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
|
|
1101
898
|
type: t.LiteralC<"tableHeader">;
|
|
1102
|
-
content: t.
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
899
|
+
content: t.ExactC<t.TypeC<{
|
|
900
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
901
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
902
|
+
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>;
|
|
903
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
904
|
+
text: t.StringC;
|
|
905
|
+
}>, t.PartialC<{
|
|
906
|
+
spans: t.Type<({
|
|
907
|
+
data: ({
|
|
908
|
+
__TYPE__: "ImageLink";
|
|
909
|
+
} & {
|
|
910
|
+
kind: "image";
|
|
911
|
+
id: string;
|
|
912
|
+
url: string;
|
|
913
|
+
height: string;
|
|
914
|
+
width: string;
|
|
915
|
+
size: string;
|
|
916
|
+
name: string;
|
|
917
|
+
} & {
|
|
918
|
+
date?: string | null | undefined;
|
|
919
|
+
}) | ({
|
|
920
|
+
__TYPE__: "FileLink";
|
|
921
|
+
} & {
|
|
922
|
+
kind: "file";
|
|
923
|
+
id: string;
|
|
924
|
+
url: string;
|
|
925
|
+
name: string;
|
|
926
|
+
size: string;
|
|
927
|
+
} & {
|
|
928
|
+
date?: string | null | undefined;
|
|
929
|
+
}) | ({
|
|
930
|
+
__TYPE__: "DocumentLink";
|
|
931
|
+
} & {
|
|
932
|
+
id: string;
|
|
933
|
+
}) | ({
|
|
934
|
+
__TYPE__: "ExternalLink";
|
|
935
|
+
} & {
|
|
936
|
+
url: string;
|
|
937
|
+
} & {
|
|
938
|
+
kind?: "web";
|
|
939
|
+
target?: string | null | undefined;
|
|
940
|
+
preview?: {
|
|
941
|
+
title?: string;
|
|
942
|
+
} | null | undefined;
|
|
943
|
+
});
|
|
944
|
+
start: number;
|
|
945
|
+
end: number;
|
|
946
|
+
type: "hyperlink";
|
|
947
|
+
} | {
|
|
948
|
+
data: string;
|
|
949
|
+
start: number;
|
|
950
|
+
end: number;
|
|
951
|
+
type: "label";
|
|
952
|
+
} | {
|
|
953
|
+
start: number;
|
|
954
|
+
end: number;
|
|
955
|
+
type: "strong" | "em" | "list-item";
|
|
956
|
+
})[], ({
|
|
957
|
+
data: ({
|
|
958
|
+
__TYPE__: "ImageLink";
|
|
959
|
+
} & {
|
|
960
|
+
kind: "image";
|
|
961
|
+
id: string;
|
|
962
|
+
url: string;
|
|
963
|
+
height: string;
|
|
964
|
+
width: string;
|
|
965
|
+
size: string;
|
|
966
|
+
name: string;
|
|
967
|
+
} & {
|
|
968
|
+
date?: string | null | undefined;
|
|
969
|
+
}) | ({
|
|
970
|
+
__TYPE__: "FileLink";
|
|
971
|
+
} & {
|
|
972
|
+
kind: "file";
|
|
973
|
+
id: string;
|
|
974
|
+
url: string;
|
|
975
|
+
name: string;
|
|
976
|
+
size: string;
|
|
977
|
+
} & {
|
|
978
|
+
date?: string | null | undefined;
|
|
979
|
+
}) | ({
|
|
980
|
+
__TYPE__: "DocumentLink";
|
|
981
|
+
} & {
|
|
982
|
+
id: string;
|
|
983
|
+
}) | ({
|
|
984
|
+
__TYPE__: "ExternalLink";
|
|
985
|
+
} & {
|
|
986
|
+
url: string;
|
|
987
|
+
} & {
|
|
988
|
+
kind?: "web";
|
|
989
|
+
target?: string | null | undefined;
|
|
990
|
+
preview?: {
|
|
991
|
+
title?: string;
|
|
992
|
+
} | null | undefined;
|
|
993
|
+
});
|
|
994
|
+
start: number;
|
|
995
|
+
end: number;
|
|
996
|
+
type: "hyperlink";
|
|
997
|
+
} | {
|
|
998
|
+
data: string;
|
|
999
|
+
start: number;
|
|
1000
|
+
end: number;
|
|
1001
|
+
type: "label";
|
|
1002
|
+
} | {
|
|
1003
|
+
start: number;
|
|
1004
|
+
end: number;
|
|
1005
|
+
type: "strong" | "em" | "list-item";
|
|
1006
|
+
})[], unknown>;
|
|
1007
|
+
}>]>;
|
|
1106
1008
|
}>, t.PartialC<{
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
kind: "image";
|
|
1112
|
-
id: string;
|
|
1113
|
-
url: string;
|
|
1114
|
-
height: string;
|
|
1115
|
-
width: string;
|
|
1116
|
-
size: string;
|
|
1117
|
-
name: string;
|
|
1118
|
-
} & {
|
|
1119
|
-
date?: string | null | undefined;
|
|
1120
|
-
}) | ({
|
|
1121
|
-
__TYPE__: "FileLink";
|
|
1122
|
-
} & {
|
|
1123
|
-
kind: "file";
|
|
1124
|
-
id: string;
|
|
1125
|
-
url: string;
|
|
1126
|
-
name: string;
|
|
1127
|
-
size: string;
|
|
1128
|
-
} & {
|
|
1129
|
-
date?: string | null | undefined;
|
|
1130
|
-
}) | ({
|
|
1131
|
-
__TYPE__: "DocumentLink";
|
|
1132
|
-
} & {
|
|
1133
|
-
id: string;
|
|
1134
|
-
}) | ({
|
|
1135
|
-
__TYPE__: "ExternalLink";
|
|
1136
|
-
} & {
|
|
1137
|
-
url: string;
|
|
1138
|
-
} & {
|
|
1139
|
-
kind?: "web";
|
|
1140
|
-
target?: string | null | undefined;
|
|
1141
|
-
preview?: {
|
|
1142
|
-
title?: string;
|
|
1143
|
-
} | null | undefined;
|
|
1144
|
-
});
|
|
1145
|
-
start: number;
|
|
1146
|
-
end: number;
|
|
1147
|
-
type: "hyperlink";
|
|
1148
|
-
} | {
|
|
1149
|
-
data: string;
|
|
1150
|
-
start: number;
|
|
1151
|
-
end: number;
|
|
1152
|
-
type: "label";
|
|
1153
|
-
} | {
|
|
1154
|
-
start: number;
|
|
1155
|
-
end: number;
|
|
1156
|
-
type: "strong" | "em" | "list-item";
|
|
1157
|
-
})[], ({
|
|
1158
|
-
data: ({
|
|
1159
|
-
__TYPE__: "ImageLink";
|
|
1160
|
-
} & {
|
|
1161
|
-
kind: "image";
|
|
1162
|
-
id: string;
|
|
1163
|
-
url: string;
|
|
1164
|
-
height: string;
|
|
1165
|
-
width: string;
|
|
1166
|
-
size: string;
|
|
1167
|
-
name: string;
|
|
1168
|
-
} & {
|
|
1169
|
-
date?: string | null | undefined;
|
|
1170
|
-
}) | ({
|
|
1171
|
-
__TYPE__: "FileLink";
|
|
1172
|
-
} & {
|
|
1173
|
-
kind: "file";
|
|
1174
|
-
id: string;
|
|
1175
|
-
url: string;
|
|
1176
|
-
name: string;
|
|
1177
|
-
size: string;
|
|
1178
|
-
} & {
|
|
1179
|
-
date?: string | null | undefined;
|
|
1180
|
-
}) | ({
|
|
1181
|
-
__TYPE__: "DocumentLink";
|
|
1182
|
-
} & {
|
|
1183
|
-
id: string;
|
|
1184
|
-
}) | ({
|
|
1185
|
-
__TYPE__: "ExternalLink";
|
|
1186
|
-
} & {
|
|
1187
|
-
url: string;
|
|
1188
|
-
} & {
|
|
1189
|
-
kind?: "web";
|
|
1190
|
-
target?: string | null | undefined;
|
|
1191
|
-
preview?: {
|
|
1192
|
-
title?: string;
|
|
1193
|
-
} | null | undefined;
|
|
1194
|
-
});
|
|
1195
|
-
start: number;
|
|
1196
|
-
end: number;
|
|
1197
|
-
type: "hyperlink";
|
|
1198
|
-
} | {
|
|
1199
|
-
data: string;
|
|
1200
|
-
start: number;
|
|
1201
|
-
end: number;
|
|
1202
|
-
type: "label";
|
|
1203
|
-
} | {
|
|
1204
|
-
start: number;
|
|
1205
|
-
end: number;
|
|
1206
|
-
type: "strong" | "em" | "list-item";
|
|
1207
|
-
})[], unknown>;
|
|
1208
|
-
}>]>;
|
|
1209
|
-
}>, t.PartialC<{
|
|
1210
|
-
label: t.StringC;
|
|
1211
|
-
direction: t.StringC;
|
|
1212
|
-
}>]>>>;
|
|
1009
|
+
label: t.StringC;
|
|
1010
|
+
direction: t.StringC;
|
|
1011
|
+
}>]>>>;
|
|
1012
|
+
}>>;
|
|
1213
1013
|
}>>, t.ExactC<t.TypeC<{
|
|
1214
1014
|
type: t.LiteralC<"tableCell">;
|
|
1215
|
-
content: t.
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1015
|
+
content: t.ExactC<t.TypeC<{
|
|
1016
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
1017
|
+
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1018
|
+
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>;
|
|
1019
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
1020
|
+
text: t.StringC;
|
|
1021
|
+
}>, t.PartialC<{
|
|
1022
|
+
spans: t.Type<({
|
|
1023
|
+
data: ({
|
|
1024
|
+
__TYPE__: "ImageLink";
|
|
1025
|
+
} & {
|
|
1026
|
+
kind: "image";
|
|
1027
|
+
id: string;
|
|
1028
|
+
url: string;
|
|
1029
|
+
height: string;
|
|
1030
|
+
width: string;
|
|
1031
|
+
size: string;
|
|
1032
|
+
name: string;
|
|
1033
|
+
} & {
|
|
1034
|
+
date?: string | null | undefined;
|
|
1035
|
+
}) | ({
|
|
1036
|
+
__TYPE__: "FileLink";
|
|
1037
|
+
} & {
|
|
1038
|
+
kind: "file";
|
|
1039
|
+
id: string;
|
|
1040
|
+
url: string;
|
|
1041
|
+
name: string;
|
|
1042
|
+
size: string;
|
|
1043
|
+
} & {
|
|
1044
|
+
date?: string | null | undefined;
|
|
1045
|
+
}) | ({
|
|
1046
|
+
__TYPE__: "DocumentLink";
|
|
1047
|
+
} & {
|
|
1048
|
+
id: string;
|
|
1049
|
+
}) | ({
|
|
1050
|
+
__TYPE__: "ExternalLink";
|
|
1051
|
+
} & {
|
|
1052
|
+
url: string;
|
|
1053
|
+
} & {
|
|
1054
|
+
kind?: "web";
|
|
1055
|
+
target?: string | null | undefined;
|
|
1056
|
+
preview?: {
|
|
1057
|
+
title?: string;
|
|
1058
|
+
} | null | undefined;
|
|
1059
|
+
});
|
|
1060
|
+
start: number;
|
|
1061
|
+
end: number;
|
|
1062
|
+
type: "hyperlink";
|
|
1063
|
+
} | {
|
|
1064
|
+
data: string;
|
|
1065
|
+
start: number;
|
|
1066
|
+
end: number;
|
|
1067
|
+
type: "label";
|
|
1068
|
+
} | {
|
|
1069
|
+
start: number;
|
|
1070
|
+
end: number;
|
|
1071
|
+
type: "strong" | "em" | "list-item";
|
|
1072
|
+
})[], ({
|
|
1073
|
+
data: ({
|
|
1074
|
+
__TYPE__: "ImageLink";
|
|
1075
|
+
} & {
|
|
1076
|
+
kind: "image";
|
|
1077
|
+
id: string;
|
|
1078
|
+
url: string;
|
|
1079
|
+
height: string;
|
|
1080
|
+
width: string;
|
|
1081
|
+
size: string;
|
|
1082
|
+
name: string;
|
|
1083
|
+
} & {
|
|
1084
|
+
date?: string | null | undefined;
|
|
1085
|
+
}) | ({
|
|
1086
|
+
__TYPE__: "FileLink";
|
|
1087
|
+
} & {
|
|
1088
|
+
kind: "file";
|
|
1089
|
+
id: string;
|
|
1090
|
+
url: string;
|
|
1091
|
+
name: string;
|
|
1092
|
+
size: string;
|
|
1093
|
+
} & {
|
|
1094
|
+
date?: string | null | undefined;
|
|
1095
|
+
}) | ({
|
|
1096
|
+
__TYPE__: "DocumentLink";
|
|
1097
|
+
} & {
|
|
1098
|
+
id: string;
|
|
1099
|
+
}) | ({
|
|
1100
|
+
__TYPE__: "ExternalLink";
|
|
1101
|
+
} & {
|
|
1102
|
+
url: string;
|
|
1103
|
+
} & {
|
|
1104
|
+
kind?: "web";
|
|
1105
|
+
target?: string | null | undefined;
|
|
1106
|
+
preview?: {
|
|
1107
|
+
title?: string;
|
|
1108
|
+
} | null | undefined;
|
|
1109
|
+
});
|
|
1110
|
+
start: number;
|
|
1111
|
+
end: number;
|
|
1112
|
+
type: "hyperlink";
|
|
1113
|
+
} | {
|
|
1114
|
+
data: string;
|
|
1115
|
+
start: number;
|
|
1116
|
+
end: number;
|
|
1117
|
+
type: "label";
|
|
1118
|
+
} | {
|
|
1119
|
+
start: number;
|
|
1120
|
+
end: number;
|
|
1121
|
+
type: "strong" | "em" | "list-item";
|
|
1122
|
+
})[], unknown>;
|
|
1123
|
+
}>]>;
|
|
1219
1124
|
}>, t.PartialC<{
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
kind: "image";
|
|
1225
|
-
id: string;
|
|
1226
|
-
url: string;
|
|
1227
|
-
height: string;
|
|
1228
|
-
width: string;
|
|
1229
|
-
size: string;
|
|
1230
|
-
name: string;
|
|
1231
|
-
} & {
|
|
1232
|
-
date?: string | null | undefined;
|
|
1233
|
-
}) | ({
|
|
1234
|
-
__TYPE__: "FileLink";
|
|
1235
|
-
} & {
|
|
1236
|
-
kind: "file";
|
|
1237
|
-
id: string;
|
|
1238
|
-
url: string;
|
|
1239
|
-
name: string;
|
|
1240
|
-
size: string;
|
|
1241
|
-
} & {
|
|
1242
|
-
date?: string | null | undefined;
|
|
1243
|
-
}) | ({
|
|
1244
|
-
__TYPE__: "DocumentLink";
|
|
1245
|
-
} & {
|
|
1246
|
-
id: string;
|
|
1247
|
-
}) | ({
|
|
1248
|
-
__TYPE__: "ExternalLink";
|
|
1249
|
-
} & {
|
|
1250
|
-
url: string;
|
|
1251
|
-
} & {
|
|
1252
|
-
kind?: "web";
|
|
1253
|
-
target?: string | null | undefined;
|
|
1254
|
-
preview?: {
|
|
1255
|
-
title?: string;
|
|
1256
|
-
} | null | undefined;
|
|
1257
|
-
});
|
|
1258
|
-
start: number;
|
|
1259
|
-
end: number;
|
|
1260
|
-
type: "hyperlink";
|
|
1261
|
-
} | {
|
|
1262
|
-
data: string;
|
|
1263
|
-
start: number;
|
|
1264
|
-
end: number;
|
|
1265
|
-
type: "label";
|
|
1266
|
-
} | {
|
|
1267
|
-
start: number;
|
|
1268
|
-
end: number;
|
|
1269
|
-
type: "strong" | "em" | "list-item";
|
|
1270
|
-
})[], ({
|
|
1271
|
-
data: ({
|
|
1272
|
-
__TYPE__: "ImageLink";
|
|
1273
|
-
} & {
|
|
1274
|
-
kind: "image";
|
|
1275
|
-
id: string;
|
|
1276
|
-
url: string;
|
|
1277
|
-
height: string;
|
|
1278
|
-
width: string;
|
|
1279
|
-
size: string;
|
|
1280
|
-
name: string;
|
|
1281
|
-
} & {
|
|
1282
|
-
date?: string | null | undefined;
|
|
1283
|
-
}) | ({
|
|
1284
|
-
__TYPE__: "FileLink";
|
|
1285
|
-
} & {
|
|
1286
|
-
kind: "file";
|
|
1287
|
-
id: string;
|
|
1288
|
-
url: string;
|
|
1289
|
-
name: string;
|
|
1290
|
-
size: string;
|
|
1291
|
-
} & {
|
|
1292
|
-
date?: string | null | undefined;
|
|
1293
|
-
}) | ({
|
|
1294
|
-
__TYPE__: "DocumentLink";
|
|
1295
|
-
} & {
|
|
1296
|
-
id: string;
|
|
1297
|
-
}) | ({
|
|
1298
|
-
__TYPE__: "ExternalLink";
|
|
1299
|
-
} & {
|
|
1300
|
-
url: string;
|
|
1301
|
-
} & {
|
|
1302
|
-
kind?: "web";
|
|
1303
|
-
target?: string | null | undefined;
|
|
1304
|
-
preview?: {
|
|
1305
|
-
title?: string;
|
|
1306
|
-
} | null | undefined;
|
|
1307
|
-
});
|
|
1308
|
-
start: number;
|
|
1309
|
-
end: number;
|
|
1310
|
-
type: "hyperlink";
|
|
1311
|
-
} | {
|
|
1312
|
-
data: string;
|
|
1313
|
-
start: number;
|
|
1314
|
-
end: number;
|
|
1315
|
-
type: "label";
|
|
1316
|
-
} | {
|
|
1317
|
-
start: number;
|
|
1318
|
-
end: number;
|
|
1319
|
-
type: "strong" | "em" | "list-item";
|
|
1320
|
-
})[], unknown>;
|
|
1321
|
-
}>]>;
|
|
1322
|
-
}>, t.PartialC<{
|
|
1323
|
-
label: t.StringC;
|
|
1324
|
-
direction: t.StringC;
|
|
1325
|
-
}>]>>>;
|
|
1125
|
+
label: t.StringC;
|
|
1126
|
+
direction: t.StringC;
|
|
1127
|
+
}>]>>>;
|
|
1128
|
+
}>>;
|
|
1326
1129
|
}>>]>>;
|
|
1327
1130
|
}>>>;
|
|
1328
1131
|
}>>, t.ExactC<t.TypeC<{
|