@prismicio/types-internal 2.7.0-alpha.2 → 2.7.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/content/Document.d.ts +1783 -859
- package/lib/content/fields/WidgetContent.d.ts +1782 -858
- package/lib/content/fields/nestable/LinkContent.d.ts +207 -90
- package/lib/content/fields/nestable/LinkContent.js +93 -48
- package/lib/content/fields/nestable/NestableContent.d.ts +297 -143
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +546 -249
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +270 -130
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +135 -65
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/index.d.ts +1080 -520
- package/lib/content/fields/slices/SliceItem.d.ts +1080 -520
- package/lib/content/fields/slices/SlicesContent.d.ts +1485 -715
- package/lib/customtypes/CustomType.d.ts +180 -342
- package/lib/customtypes/Section.d.ts +180 -342
- package/lib/customtypes/diff/SharedSlice.d.ts +80 -152
- package/lib/customtypes/diff/Variation.d.ts +80 -152
- package/lib/customtypes/widgets/Group.d.ts +6 -60
- package/lib/customtypes/widgets/Widget.d.ts +129 -318
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -20
- package/lib/customtypes/widgets/nestable/Link.js +1 -2
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -10
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -80
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +33 -87
- package/lib/customtypes/widgets/slices/Slices.d.ts +172 -424
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +118 -58
- package/src/customtypes/widgets/nestable/Link.ts +1 -2
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -30,40 +30,47 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
30
30
|
} & {
|
|
31
31
|
linkTo?: ({
|
|
32
32
|
__TYPE__: "ImageLink";
|
|
33
|
-
} & {
|
|
33
|
+
} & ({
|
|
34
|
+
kind: "image";
|
|
35
|
+
} & (({
|
|
34
36
|
id: string;
|
|
35
37
|
url: string;
|
|
36
38
|
height: string;
|
|
37
39
|
width: string;
|
|
38
40
|
size: string;
|
|
39
41
|
name: string;
|
|
40
|
-
kind: string;
|
|
41
42
|
} & {
|
|
42
43
|
date?: string | null | undefined;
|
|
43
44
|
text?: string;
|
|
44
|
-
}) |
|
|
45
|
+
}) | {
|
|
46
|
+
text: string;
|
|
47
|
+
}))) | ({
|
|
48
|
+
__TYPE__: "FileLink";
|
|
49
|
+
} & ({
|
|
50
|
+
kind: "file";
|
|
51
|
+
} & (({
|
|
45
52
|
id: string;
|
|
46
53
|
url: string;
|
|
47
54
|
name: string;
|
|
48
|
-
kind: string;
|
|
49
55
|
size: string;
|
|
50
56
|
} & {
|
|
51
57
|
date?: string | null | undefined;
|
|
52
58
|
text?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
size?: string;
|
|
57
|
-
text?: string;
|
|
58
|
-
}) | ({
|
|
59
|
+
}) | {
|
|
60
|
+
text: string;
|
|
61
|
+
}))) | ({
|
|
59
62
|
__TYPE__: "DocumentLink";
|
|
60
|
-
} & {
|
|
63
|
+
} & (({
|
|
61
64
|
id: string;
|
|
62
65
|
} & {
|
|
66
|
+
kind?: "document";
|
|
63
67
|
text?: string;
|
|
64
|
-
}) |
|
|
68
|
+
}) | {
|
|
69
|
+
kind: "document";
|
|
70
|
+
text: string;
|
|
71
|
+
})) | ({
|
|
65
72
|
__TYPE__: "ExternalLink";
|
|
66
|
-
} & {
|
|
73
|
+
} & (({
|
|
67
74
|
url: string;
|
|
68
75
|
} & {
|
|
69
76
|
kind?: "web";
|
|
@@ -72,6 +79,13 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
72
79
|
title?: string;
|
|
73
80
|
} | null | undefined;
|
|
74
81
|
text?: string;
|
|
82
|
+
}) | {
|
|
83
|
+
kind: "web";
|
|
84
|
+
text: string;
|
|
85
|
+
})) | ({
|
|
86
|
+
__TYPE__: "AnyLink";
|
|
87
|
+
} & {
|
|
88
|
+
text: string;
|
|
75
89
|
}) | null | undefined;
|
|
76
90
|
};
|
|
77
91
|
} & {
|
|
@@ -109,40 +123,47 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
109
123
|
spans?: ({
|
|
110
124
|
data: ({
|
|
111
125
|
__TYPE__: "ImageLink";
|
|
112
|
-
} & {
|
|
126
|
+
} & ({
|
|
127
|
+
kind: "image";
|
|
128
|
+
} & (({
|
|
113
129
|
id: string;
|
|
114
130
|
url: string;
|
|
115
131
|
height: string;
|
|
116
132
|
width: string;
|
|
117
133
|
size: string;
|
|
118
134
|
name: string;
|
|
119
|
-
kind: string;
|
|
120
135
|
} & {
|
|
121
136
|
date?: string | null | undefined;
|
|
122
137
|
text?: string;
|
|
123
|
-
}) |
|
|
138
|
+
}) | {
|
|
139
|
+
text: string;
|
|
140
|
+
}))) | ({
|
|
141
|
+
__TYPE__: "FileLink";
|
|
142
|
+
} & ({
|
|
143
|
+
kind: "file";
|
|
144
|
+
} & (({
|
|
124
145
|
id: string;
|
|
125
146
|
url: string;
|
|
126
147
|
name: string;
|
|
127
|
-
kind: string;
|
|
128
148
|
size: string;
|
|
129
149
|
} & {
|
|
130
150
|
date?: string | null | undefined;
|
|
131
151
|
text?: string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
size?: string;
|
|
136
|
-
text?: string;
|
|
137
|
-
}) | ({
|
|
152
|
+
}) | {
|
|
153
|
+
text: string;
|
|
154
|
+
}))) | ({
|
|
138
155
|
__TYPE__: "DocumentLink";
|
|
139
|
-
} & {
|
|
156
|
+
} & (({
|
|
140
157
|
id: string;
|
|
141
158
|
} & {
|
|
159
|
+
kind?: "document";
|
|
142
160
|
text?: string;
|
|
143
|
-
}) |
|
|
161
|
+
}) | {
|
|
162
|
+
kind: "document";
|
|
163
|
+
text: string;
|
|
164
|
+
})) | ({
|
|
144
165
|
__TYPE__: "ExternalLink";
|
|
145
|
-
} & {
|
|
166
|
+
} & (({
|
|
146
167
|
url: string;
|
|
147
168
|
} & {
|
|
148
169
|
kind?: "web";
|
|
@@ -151,6 +172,13 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
151
172
|
title?: string;
|
|
152
173
|
} | null | undefined;
|
|
153
174
|
text?: string;
|
|
175
|
+
}) | {
|
|
176
|
+
kind: "web";
|
|
177
|
+
text: string;
|
|
178
|
+
})) | ({
|
|
179
|
+
__TYPE__: "AnyLink";
|
|
180
|
+
} & {
|
|
181
|
+
text: string;
|
|
154
182
|
});
|
|
155
183
|
start: number;
|
|
156
184
|
end: number;
|
|
@@ -200,40 +228,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
200
228
|
}>]>>, t.PartialC<{
|
|
201
229
|
linkTo: t.UnionC<[t.Type<({
|
|
202
230
|
__TYPE__: "ImageLink";
|
|
203
|
-
} & {
|
|
231
|
+
} & ({
|
|
232
|
+
kind: "image";
|
|
233
|
+
} & (({
|
|
204
234
|
id: string;
|
|
205
235
|
url: string;
|
|
206
236
|
height: string;
|
|
207
237
|
width: string;
|
|
208
238
|
size: string;
|
|
209
239
|
name: string;
|
|
210
|
-
kind: string;
|
|
211
240
|
} & {
|
|
212
241
|
date?: string | null | undefined;
|
|
213
242
|
text?: string;
|
|
214
|
-
}) |
|
|
243
|
+
}) | {
|
|
244
|
+
text: string;
|
|
245
|
+
}))) | ({
|
|
246
|
+
__TYPE__: "FileLink";
|
|
247
|
+
} & ({
|
|
248
|
+
kind: "file";
|
|
249
|
+
} & (({
|
|
215
250
|
id: string;
|
|
216
251
|
url: string;
|
|
217
252
|
name: string;
|
|
218
|
-
kind: string;
|
|
219
253
|
size: string;
|
|
220
254
|
} & {
|
|
221
255
|
date?: string | null | undefined;
|
|
222
256
|
text?: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
size?: string;
|
|
227
|
-
text?: string;
|
|
228
|
-
}) | ({
|
|
257
|
+
}) | {
|
|
258
|
+
text: string;
|
|
259
|
+
}))) | ({
|
|
229
260
|
__TYPE__: "DocumentLink";
|
|
230
|
-
} & {
|
|
261
|
+
} & (({
|
|
231
262
|
id: string;
|
|
232
263
|
} & {
|
|
264
|
+
kind?: "document";
|
|
233
265
|
text?: string;
|
|
234
|
-
}) |
|
|
266
|
+
}) | {
|
|
267
|
+
kind: "document";
|
|
268
|
+
text: string;
|
|
269
|
+
})) | ({
|
|
235
270
|
__TYPE__: "ExternalLink";
|
|
236
|
-
} & {
|
|
271
|
+
} & (({
|
|
237
272
|
url: string;
|
|
238
273
|
} & {
|
|
239
274
|
kind?: "web";
|
|
@@ -242,42 +277,56 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
242
277
|
title?: string;
|
|
243
278
|
} | null | undefined;
|
|
244
279
|
text?: string;
|
|
280
|
+
}) | {
|
|
281
|
+
kind: "web";
|
|
282
|
+
text: string;
|
|
283
|
+
})) | ({
|
|
284
|
+
__TYPE__: "AnyLink";
|
|
285
|
+
} & {
|
|
286
|
+
text: string;
|
|
245
287
|
}), ({
|
|
246
288
|
__TYPE__: "ImageLink";
|
|
247
|
-
} & {
|
|
289
|
+
} & ({
|
|
290
|
+
kind: "image";
|
|
291
|
+
} & (({
|
|
248
292
|
id: string;
|
|
249
293
|
url: string;
|
|
250
294
|
height: string;
|
|
251
295
|
width: string;
|
|
252
296
|
size: string;
|
|
253
297
|
name: string;
|
|
254
|
-
kind: string;
|
|
255
298
|
} & {
|
|
256
299
|
date?: string | null | undefined;
|
|
257
300
|
text?: string;
|
|
258
|
-
}) |
|
|
301
|
+
}) | {
|
|
302
|
+
text: string;
|
|
303
|
+
}))) | ({
|
|
304
|
+
__TYPE__: "FileLink";
|
|
305
|
+
} & ({
|
|
306
|
+
kind: "file";
|
|
307
|
+
} & (({
|
|
259
308
|
id: string;
|
|
260
309
|
url: string;
|
|
261
310
|
name: string;
|
|
262
|
-
kind: string;
|
|
263
311
|
size: string;
|
|
264
312
|
} & {
|
|
265
313
|
date?: string | null | undefined;
|
|
266
314
|
text?: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
size?: string;
|
|
271
|
-
text?: string;
|
|
272
|
-
}) | ({
|
|
315
|
+
}) | {
|
|
316
|
+
text: string;
|
|
317
|
+
}))) | ({
|
|
273
318
|
__TYPE__: "DocumentLink";
|
|
274
|
-
} & {
|
|
319
|
+
} & (({
|
|
275
320
|
id: string;
|
|
276
321
|
} & {
|
|
322
|
+
kind?: "document";
|
|
277
323
|
text?: string;
|
|
278
|
-
}) |
|
|
324
|
+
}) | {
|
|
325
|
+
kind: "document";
|
|
326
|
+
text: string;
|
|
327
|
+
})) | ({
|
|
279
328
|
__TYPE__: "ExternalLink";
|
|
280
|
-
} & {
|
|
329
|
+
} & (({
|
|
281
330
|
url: string;
|
|
282
331
|
} & {
|
|
283
332
|
kind?: "web";
|
|
@@ -286,6 +335,13 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
286
335
|
title?: string;
|
|
287
336
|
} | null | undefined;
|
|
288
337
|
text?: string;
|
|
338
|
+
}) | {
|
|
339
|
+
kind: "web";
|
|
340
|
+
text: string;
|
|
341
|
+
})) | ({
|
|
342
|
+
__TYPE__: "AnyLink";
|
|
343
|
+
} & {
|
|
344
|
+
text: string;
|
|
289
345
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
290
346
|
}>]>;
|
|
291
347
|
}>, t.PartialC<{
|
|
@@ -323,40 +379,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
323
379
|
spans: t.Type<({
|
|
324
380
|
data: ({
|
|
325
381
|
__TYPE__: "ImageLink";
|
|
326
|
-
} & {
|
|
382
|
+
} & ({
|
|
383
|
+
kind: "image";
|
|
384
|
+
} & (({
|
|
327
385
|
id: string;
|
|
328
386
|
url: string;
|
|
329
387
|
height: string;
|
|
330
388
|
width: string;
|
|
331
389
|
size: string;
|
|
332
390
|
name: string;
|
|
333
|
-
kind: string;
|
|
334
391
|
} & {
|
|
335
392
|
date?: string | null | undefined;
|
|
336
393
|
text?: string;
|
|
337
|
-
}) |
|
|
394
|
+
}) | {
|
|
395
|
+
text: string;
|
|
396
|
+
}))) | ({
|
|
397
|
+
__TYPE__: "FileLink";
|
|
398
|
+
} & ({
|
|
399
|
+
kind: "file";
|
|
400
|
+
} & (({
|
|
338
401
|
id: string;
|
|
339
402
|
url: string;
|
|
340
403
|
name: string;
|
|
341
|
-
kind: string;
|
|
342
404
|
size: string;
|
|
343
405
|
} & {
|
|
344
406
|
date?: string | null | undefined;
|
|
345
407
|
text?: string;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
size?: string;
|
|
350
|
-
text?: string;
|
|
351
|
-
}) | ({
|
|
408
|
+
}) | {
|
|
409
|
+
text: string;
|
|
410
|
+
}))) | ({
|
|
352
411
|
__TYPE__: "DocumentLink";
|
|
353
|
-
} & {
|
|
412
|
+
} & (({
|
|
354
413
|
id: string;
|
|
355
414
|
} & {
|
|
415
|
+
kind?: "document";
|
|
356
416
|
text?: string;
|
|
357
|
-
}) |
|
|
417
|
+
}) | {
|
|
418
|
+
kind: "document";
|
|
419
|
+
text: string;
|
|
420
|
+
})) | ({
|
|
358
421
|
__TYPE__: "ExternalLink";
|
|
359
|
-
} & {
|
|
422
|
+
} & (({
|
|
360
423
|
url: string;
|
|
361
424
|
} & {
|
|
362
425
|
kind?: "web";
|
|
@@ -365,6 +428,13 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
365
428
|
title?: string;
|
|
366
429
|
} | null | undefined;
|
|
367
430
|
text?: string;
|
|
431
|
+
}) | {
|
|
432
|
+
kind: "web";
|
|
433
|
+
text: string;
|
|
434
|
+
})) | ({
|
|
435
|
+
__TYPE__: "AnyLink";
|
|
436
|
+
} & {
|
|
437
|
+
text: string;
|
|
368
438
|
});
|
|
369
439
|
start: number;
|
|
370
440
|
end: number;
|
|
@@ -381,40 +451,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
381
451
|
})[], ({
|
|
382
452
|
data: ({
|
|
383
453
|
__TYPE__: "ImageLink";
|
|
384
|
-
} & {
|
|
454
|
+
} & ({
|
|
455
|
+
kind: "image";
|
|
456
|
+
} & (({
|
|
385
457
|
id: string;
|
|
386
458
|
url: string;
|
|
387
459
|
height: string;
|
|
388
460
|
width: string;
|
|
389
461
|
size: string;
|
|
390
462
|
name: string;
|
|
391
|
-
kind: string;
|
|
392
463
|
} & {
|
|
393
464
|
date?: string | null | undefined;
|
|
394
465
|
text?: string;
|
|
395
|
-
}) |
|
|
466
|
+
}) | {
|
|
467
|
+
text: string;
|
|
468
|
+
}))) | ({
|
|
469
|
+
__TYPE__: "FileLink";
|
|
470
|
+
} & ({
|
|
471
|
+
kind: "file";
|
|
472
|
+
} & (({
|
|
396
473
|
id: string;
|
|
397
474
|
url: string;
|
|
398
475
|
name: string;
|
|
399
|
-
kind: string;
|
|
400
476
|
size: string;
|
|
401
477
|
} & {
|
|
402
478
|
date?: string | null | undefined;
|
|
403
479
|
text?: string;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
size?: string;
|
|
408
|
-
text?: string;
|
|
409
|
-
}) | ({
|
|
480
|
+
}) | {
|
|
481
|
+
text: string;
|
|
482
|
+
}))) | ({
|
|
410
483
|
__TYPE__: "DocumentLink";
|
|
411
|
-
} & {
|
|
484
|
+
} & (({
|
|
412
485
|
id: string;
|
|
413
486
|
} & {
|
|
487
|
+
kind?: "document";
|
|
414
488
|
text?: string;
|
|
415
|
-
}) |
|
|
489
|
+
}) | {
|
|
490
|
+
kind: "document";
|
|
491
|
+
text: string;
|
|
492
|
+
})) | ({
|
|
416
493
|
__TYPE__: "ExternalLink";
|
|
417
|
-
} & {
|
|
494
|
+
} & (({
|
|
418
495
|
url: string;
|
|
419
496
|
} & {
|
|
420
497
|
kind?: "web";
|
|
@@ -423,6 +500,13 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
423
500
|
title?: string;
|
|
424
501
|
} | null | undefined;
|
|
425
502
|
text?: string;
|
|
503
|
+
}) | {
|
|
504
|
+
kind: "web";
|
|
505
|
+
text: string;
|
|
506
|
+
})) | ({
|
|
507
|
+
__TYPE__: "AnyLink";
|
|
508
|
+
} & {
|
|
509
|
+
text: string;
|
|
426
510
|
});
|
|
427
511
|
start: number;
|
|
428
512
|
end: number;
|
|
@@ -474,40 +558,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
474
558
|
} & {
|
|
475
559
|
linkTo?: ({
|
|
476
560
|
__TYPE__: "ImageLink";
|
|
477
|
-
} & {
|
|
561
|
+
} & ({
|
|
562
|
+
kind: "image";
|
|
563
|
+
} & (({
|
|
478
564
|
id: string;
|
|
479
565
|
url: string;
|
|
480
566
|
height: string;
|
|
481
567
|
width: string;
|
|
482
568
|
size: string;
|
|
483
569
|
name: string;
|
|
484
|
-
kind: string;
|
|
485
570
|
} & {
|
|
486
571
|
date?: string | null | undefined;
|
|
487
572
|
text?: string;
|
|
488
|
-
}) |
|
|
573
|
+
}) | {
|
|
574
|
+
text: string;
|
|
575
|
+
}))) | ({
|
|
576
|
+
__TYPE__: "FileLink";
|
|
577
|
+
} & ({
|
|
578
|
+
kind: "file";
|
|
579
|
+
} & (({
|
|
489
580
|
id: string;
|
|
490
581
|
url: string;
|
|
491
582
|
name: string;
|
|
492
|
-
kind: string;
|
|
493
583
|
size: string;
|
|
494
584
|
} & {
|
|
495
585
|
date?: string | null | undefined;
|
|
496
586
|
text?: string;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
size?: string;
|
|
501
|
-
text?: string;
|
|
502
|
-
}) | ({
|
|
587
|
+
}) | {
|
|
588
|
+
text: string;
|
|
589
|
+
}))) | ({
|
|
503
590
|
__TYPE__: "DocumentLink";
|
|
504
|
-
} & {
|
|
591
|
+
} & (({
|
|
505
592
|
id: string;
|
|
506
593
|
} & {
|
|
594
|
+
kind?: "document";
|
|
507
595
|
text?: string;
|
|
508
|
-
}) |
|
|
596
|
+
}) | {
|
|
597
|
+
kind: "document";
|
|
598
|
+
text: string;
|
|
599
|
+
})) | ({
|
|
509
600
|
__TYPE__: "ExternalLink";
|
|
510
|
-
} & {
|
|
601
|
+
} & (({
|
|
511
602
|
url: string;
|
|
512
603
|
} & {
|
|
513
604
|
kind?: "web";
|
|
@@ -516,6 +607,13 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
516
607
|
title?: string;
|
|
517
608
|
} | null | undefined;
|
|
518
609
|
text?: string;
|
|
610
|
+
}) | {
|
|
611
|
+
kind: "web";
|
|
612
|
+
text: string;
|
|
613
|
+
})) | ({
|
|
614
|
+
__TYPE__: "AnyLink";
|
|
615
|
+
} & {
|
|
616
|
+
text: string;
|
|
519
617
|
}) | null | undefined;
|
|
520
618
|
};
|
|
521
619
|
} & {
|
|
@@ -553,40 +651,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
553
651
|
spans?: ({
|
|
554
652
|
data: ({
|
|
555
653
|
__TYPE__: "ImageLink";
|
|
556
|
-
} & {
|
|
654
|
+
} & ({
|
|
655
|
+
kind: "image";
|
|
656
|
+
} & (({
|
|
557
657
|
id: string;
|
|
558
658
|
url: string;
|
|
559
659
|
height: string;
|
|
560
660
|
width: string;
|
|
561
661
|
size: string;
|
|
562
662
|
name: string;
|
|
563
|
-
kind: string;
|
|
564
663
|
} & {
|
|
565
664
|
date?: string | null | undefined;
|
|
566
665
|
text?: string;
|
|
567
|
-
}) |
|
|
666
|
+
}) | {
|
|
667
|
+
text: string;
|
|
668
|
+
}))) | ({
|
|
669
|
+
__TYPE__: "FileLink";
|
|
670
|
+
} & ({
|
|
671
|
+
kind: "file";
|
|
672
|
+
} & (({
|
|
568
673
|
id: string;
|
|
569
674
|
url: string;
|
|
570
675
|
name: string;
|
|
571
|
-
kind: string;
|
|
572
676
|
size: string;
|
|
573
677
|
} & {
|
|
574
678
|
date?: string | null | undefined;
|
|
575
679
|
text?: string;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
size?: string;
|
|
580
|
-
text?: string;
|
|
581
|
-
}) | ({
|
|
680
|
+
}) | {
|
|
681
|
+
text: string;
|
|
682
|
+
}))) | ({
|
|
582
683
|
__TYPE__: "DocumentLink";
|
|
583
|
-
} & {
|
|
684
|
+
} & (({
|
|
584
685
|
id: string;
|
|
585
686
|
} & {
|
|
687
|
+
kind?: "document";
|
|
586
688
|
text?: string;
|
|
587
|
-
}) |
|
|
689
|
+
}) | {
|
|
690
|
+
kind: "document";
|
|
691
|
+
text: string;
|
|
692
|
+
})) | ({
|
|
588
693
|
__TYPE__: "ExternalLink";
|
|
589
|
-
} & {
|
|
694
|
+
} & (({
|
|
590
695
|
url: string;
|
|
591
696
|
} & {
|
|
592
697
|
kind?: "web";
|
|
@@ -595,6 +700,13 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
595
700
|
title?: string;
|
|
596
701
|
} | null | undefined;
|
|
597
702
|
text?: string;
|
|
703
|
+
}) | {
|
|
704
|
+
kind: "web";
|
|
705
|
+
text: string;
|
|
706
|
+
})) | ({
|
|
707
|
+
__TYPE__: "AnyLink";
|
|
708
|
+
} & {
|
|
709
|
+
text: string;
|
|
598
710
|
});
|
|
599
711
|
start: number;
|
|
600
712
|
end: number;
|
|
@@ -641,40 +753,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
641
753
|
} & {
|
|
642
754
|
linkTo?: ({
|
|
643
755
|
__TYPE__: "ImageLink";
|
|
644
|
-
} & {
|
|
756
|
+
} & ({
|
|
757
|
+
kind: "image";
|
|
758
|
+
} & (({
|
|
645
759
|
id: string;
|
|
646
760
|
url: string;
|
|
647
761
|
height: string;
|
|
648
762
|
width: string;
|
|
649
763
|
size: string;
|
|
650
764
|
name: string;
|
|
651
|
-
kind: string;
|
|
652
765
|
} & {
|
|
653
766
|
date?: string | null | undefined;
|
|
654
767
|
text?: string;
|
|
655
|
-
}) |
|
|
768
|
+
}) | {
|
|
769
|
+
text: string;
|
|
770
|
+
}))) | ({
|
|
771
|
+
__TYPE__: "FileLink";
|
|
772
|
+
} & ({
|
|
773
|
+
kind: "file";
|
|
774
|
+
} & (({
|
|
656
775
|
id: string;
|
|
657
776
|
url: string;
|
|
658
777
|
name: string;
|
|
659
|
-
kind: string;
|
|
660
778
|
size: string;
|
|
661
779
|
} & {
|
|
662
780
|
date?: string | null | undefined;
|
|
663
781
|
text?: string;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
size?: string;
|
|
668
|
-
text?: string;
|
|
669
|
-
}) | ({
|
|
782
|
+
}) | {
|
|
783
|
+
text: string;
|
|
784
|
+
}))) | ({
|
|
670
785
|
__TYPE__: "DocumentLink";
|
|
671
|
-
} & {
|
|
786
|
+
} & (({
|
|
672
787
|
id: string;
|
|
673
788
|
} & {
|
|
789
|
+
kind?: "document";
|
|
674
790
|
text?: string;
|
|
675
|
-
}) |
|
|
791
|
+
}) | {
|
|
792
|
+
kind: "document";
|
|
793
|
+
text: string;
|
|
794
|
+
})) | ({
|
|
676
795
|
__TYPE__: "ExternalLink";
|
|
677
|
-
} & {
|
|
796
|
+
} & (({
|
|
678
797
|
url: string;
|
|
679
798
|
} & {
|
|
680
799
|
kind?: "web";
|
|
@@ -683,6 +802,13 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
683
802
|
title?: string;
|
|
684
803
|
} | null | undefined;
|
|
685
804
|
text?: string;
|
|
805
|
+
}) | {
|
|
806
|
+
kind: "web";
|
|
807
|
+
text: string;
|
|
808
|
+
})) | ({
|
|
809
|
+
__TYPE__: "AnyLink";
|
|
810
|
+
} & {
|
|
811
|
+
text: string;
|
|
686
812
|
}) | null | undefined;
|
|
687
813
|
};
|
|
688
814
|
} & {
|
|
@@ -720,40 +846,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
720
846
|
spans?: ({
|
|
721
847
|
data: ({
|
|
722
848
|
__TYPE__: "ImageLink";
|
|
723
|
-
} & {
|
|
849
|
+
} & ({
|
|
850
|
+
kind: "image";
|
|
851
|
+
} & (({
|
|
724
852
|
id: string;
|
|
725
853
|
url: string;
|
|
726
854
|
height: string;
|
|
727
855
|
width: string;
|
|
728
856
|
size: string;
|
|
729
857
|
name: string;
|
|
730
|
-
kind: string;
|
|
731
858
|
} & {
|
|
732
859
|
date?: string | null | undefined;
|
|
733
860
|
text?: string;
|
|
734
|
-
}) |
|
|
861
|
+
}) | {
|
|
862
|
+
text: string;
|
|
863
|
+
}))) | ({
|
|
864
|
+
__TYPE__: "FileLink";
|
|
865
|
+
} & ({
|
|
866
|
+
kind: "file";
|
|
867
|
+
} & (({
|
|
735
868
|
id: string;
|
|
736
869
|
url: string;
|
|
737
870
|
name: string;
|
|
738
|
-
kind: string;
|
|
739
871
|
size: string;
|
|
740
872
|
} & {
|
|
741
873
|
date?: string | null | undefined;
|
|
742
874
|
text?: string;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
}
|
|
746
|
-
size?: string;
|
|
747
|
-
text?: string;
|
|
748
|
-
}) | ({
|
|
875
|
+
}) | {
|
|
876
|
+
text: string;
|
|
877
|
+
}))) | ({
|
|
749
878
|
__TYPE__: "DocumentLink";
|
|
750
|
-
} & {
|
|
879
|
+
} & (({
|
|
751
880
|
id: string;
|
|
752
881
|
} & {
|
|
882
|
+
kind?: "document";
|
|
753
883
|
text?: string;
|
|
754
|
-
}) |
|
|
884
|
+
}) | {
|
|
885
|
+
kind: "document";
|
|
886
|
+
text: string;
|
|
887
|
+
})) | ({
|
|
755
888
|
__TYPE__: "ExternalLink";
|
|
756
|
-
} & {
|
|
889
|
+
} & (({
|
|
757
890
|
url: string;
|
|
758
891
|
} & {
|
|
759
892
|
kind?: "web";
|
|
@@ -762,6 +895,13 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
762
895
|
title?: string;
|
|
763
896
|
} | null | undefined;
|
|
764
897
|
text?: string;
|
|
898
|
+
}) | {
|
|
899
|
+
kind: "web";
|
|
900
|
+
text: string;
|
|
901
|
+
})) | ({
|
|
902
|
+
__TYPE__: "AnyLink";
|
|
903
|
+
} & {
|
|
904
|
+
text: string;
|
|
765
905
|
});
|
|
766
906
|
start: number;
|
|
767
907
|
end: number;
|