@prismicio/types-internal 2.7.0-alpha.3 → 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 +2118 -798
- package/lib/content/fields/WidgetContent.d.ts +2118 -798
- package/lib/content/fields/nestable/LinkContent.d.ts +248 -85
- package/lib/content/fields/nestable/LinkContent.js +96 -42
- package/lib/content/fields/nestable/NestableContent.d.ts +353 -133
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +654 -234
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +320 -120
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +706 -266
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +161 -61
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +706 -266
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +353 -133
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +353 -133
- package/lib/content/fields/slices/Slice/index.d.ts +1285 -485
- package/lib/content/fields/slices/SliceItem.d.ts +1285 -485
- package/lib/content/fields/slices/SlicesContent.d.ts +1766 -666
- package/lib/customtypes/CustomType.d.ts +18 -320
- package/lib/customtypes/Section.d.ts +18 -320
- package/lib/customtypes/diff/SharedSlice.d.ts +8 -160
- package/lib/customtypes/diff/Variation.d.ts +8 -160
- package/lib/customtypes/widgets/Group.d.ts +18 -315
- package/lib/customtypes/widgets/Group.js +5 -43
- package/lib/customtypes/widgets/Widget.d.ts +33 -412
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/Link.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 +4 -42
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +16 -168
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +10 -164
- package/lib/customtypes/widgets/slices/Slices.d.ts +34 -366
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +121 -50
- package/src/customtypes/widgets/Group.ts +6 -52
- package/src/customtypes/widgets/nestable/Link.ts +1 -0
|
@@ -30,35 +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;
|
|
45
|
+
}) | {
|
|
46
|
+
text: string;
|
|
47
|
+
}))) | ({
|
|
48
|
+
__TYPE__: "FileLink";
|
|
49
|
+
} & ({
|
|
50
|
+
kind: "file";
|
|
51
|
+
} & (({
|
|
44
52
|
id: string;
|
|
45
53
|
url: string;
|
|
46
54
|
name: string;
|
|
47
|
-
kind: string;
|
|
48
55
|
size: string;
|
|
49
56
|
} & {
|
|
50
57
|
date?: string | null | undefined;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}) | ({
|
|
58
|
+
text?: string;
|
|
59
|
+
}) | {
|
|
60
|
+
text: string;
|
|
61
|
+
}))) | ({
|
|
56
62
|
__TYPE__: "DocumentLink";
|
|
57
|
-
} & {
|
|
63
|
+
} & (({
|
|
58
64
|
id: string;
|
|
59
|
-
}) | ({
|
|
60
|
-
__TYPE__: "ExternalLink";
|
|
61
65
|
} & {
|
|
66
|
+
kind?: "document";
|
|
67
|
+
text?: string;
|
|
68
|
+
}) | {
|
|
69
|
+
kind: "document";
|
|
70
|
+
text: string;
|
|
71
|
+
})) | ({
|
|
72
|
+
__TYPE__: "ExternalLink";
|
|
73
|
+
} & (({
|
|
62
74
|
url: string;
|
|
63
75
|
} & {
|
|
64
76
|
kind?: "web";
|
|
@@ -66,6 +78,14 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
66
78
|
preview?: {
|
|
67
79
|
title?: string;
|
|
68
80
|
} | null | undefined;
|
|
81
|
+
text?: string;
|
|
82
|
+
}) | {
|
|
83
|
+
kind: "web";
|
|
84
|
+
text: string;
|
|
85
|
+
})) | ({
|
|
86
|
+
__TYPE__: "AnyLink";
|
|
87
|
+
} & {
|
|
88
|
+
text: string;
|
|
69
89
|
}) | null | undefined;
|
|
70
90
|
};
|
|
71
91
|
} & {
|
|
@@ -103,35 +123,47 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
103
123
|
spans?: ({
|
|
104
124
|
data: ({
|
|
105
125
|
__TYPE__: "ImageLink";
|
|
106
|
-
} & {
|
|
126
|
+
} & ({
|
|
127
|
+
kind: "image";
|
|
128
|
+
} & (({
|
|
107
129
|
id: string;
|
|
108
130
|
url: string;
|
|
109
131
|
height: string;
|
|
110
132
|
width: string;
|
|
111
133
|
size: string;
|
|
112
134
|
name: string;
|
|
113
|
-
kind: string;
|
|
114
135
|
} & {
|
|
115
136
|
date?: string | null | undefined;
|
|
116
|
-
|
|
137
|
+
text?: string;
|
|
138
|
+
}) | {
|
|
139
|
+
text: string;
|
|
140
|
+
}))) | ({
|
|
141
|
+
__TYPE__: "FileLink";
|
|
142
|
+
} & ({
|
|
143
|
+
kind: "file";
|
|
144
|
+
} & (({
|
|
117
145
|
id: string;
|
|
118
146
|
url: string;
|
|
119
147
|
name: string;
|
|
120
|
-
kind: string;
|
|
121
148
|
size: string;
|
|
122
149
|
} & {
|
|
123
150
|
date?: string | null | undefined;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}) | ({
|
|
151
|
+
text?: string;
|
|
152
|
+
}) | {
|
|
153
|
+
text: string;
|
|
154
|
+
}))) | ({
|
|
129
155
|
__TYPE__: "DocumentLink";
|
|
130
|
-
} & {
|
|
156
|
+
} & (({
|
|
131
157
|
id: string;
|
|
132
|
-
}) | ({
|
|
133
|
-
__TYPE__: "ExternalLink";
|
|
134
158
|
} & {
|
|
159
|
+
kind?: "document";
|
|
160
|
+
text?: string;
|
|
161
|
+
}) | {
|
|
162
|
+
kind: "document";
|
|
163
|
+
text: string;
|
|
164
|
+
})) | ({
|
|
165
|
+
__TYPE__: "ExternalLink";
|
|
166
|
+
} & (({
|
|
135
167
|
url: string;
|
|
136
168
|
} & {
|
|
137
169
|
kind?: "web";
|
|
@@ -139,6 +171,14 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
139
171
|
preview?: {
|
|
140
172
|
title?: string;
|
|
141
173
|
} | null | undefined;
|
|
174
|
+
text?: string;
|
|
175
|
+
}) | {
|
|
176
|
+
kind: "web";
|
|
177
|
+
text: string;
|
|
178
|
+
})) | ({
|
|
179
|
+
__TYPE__: "AnyLink";
|
|
180
|
+
} & {
|
|
181
|
+
text: string;
|
|
142
182
|
});
|
|
143
183
|
start: number;
|
|
144
184
|
end: number;
|
|
@@ -188,35 +228,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
188
228
|
}>]>>, t.PartialC<{
|
|
189
229
|
linkTo: t.UnionC<[t.Type<({
|
|
190
230
|
__TYPE__: "ImageLink";
|
|
191
|
-
} & {
|
|
231
|
+
} & ({
|
|
232
|
+
kind: "image";
|
|
233
|
+
} & (({
|
|
192
234
|
id: string;
|
|
193
235
|
url: string;
|
|
194
236
|
height: string;
|
|
195
237
|
width: string;
|
|
196
238
|
size: string;
|
|
197
239
|
name: string;
|
|
198
|
-
kind: string;
|
|
199
240
|
} & {
|
|
200
241
|
date?: string | null | undefined;
|
|
201
|
-
|
|
242
|
+
text?: string;
|
|
243
|
+
}) | {
|
|
244
|
+
text: string;
|
|
245
|
+
}))) | ({
|
|
246
|
+
__TYPE__: "FileLink";
|
|
247
|
+
} & ({
|
|
248
|
+
kind: "file";
|
|
249
|
+
} & (({
|
|
202
250
|
id: string;
|
|
203
251
|
url: string;
|
|
204
252
|
name: string;
|
|
205
|
-
kind: string;
|
|
206
253
|
size: string;
|
|
207
254
|
} & {
|
|
208
255
|
date?: string | null | undefined;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}) | ({
|
|
256
|
+
text?: string;
|
|
257
|
+
}) | {
|
|
258
|
+
text: string;
|
|
259
|
+
}))) | ({
|
|
214
260
|
__TYPE__: "DocumentLink";
|
|
215
|
-
} & {
|
|
261
|
+
} & (({
|
|
216
262
|
id: string;
|
|
217
|
-
}) | ({
|
|
218
|
-
__TYPE__: "ExternalLink";
|
|
219
263
|
} & {
|
|
264
|
+
kind?: "document";
|
|
265
|
+
text?: string;
|
|
266
|
+
}) | {
|
|
267
|
+
kind: "document";
|
|
268
|
+
text: string;
|
|
269
|
+
})) | ({
|
|
270
|
+
__TYPE__: "ExternalLink";
|
|
271
|
+
} & (({
|
|
220
272
|
url: string;
|
|
221
273
|
} & {
|
|
222
274
|
kind?: "web";
|
|
@@ -224,37 +276,57 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
224
276
|
preview?: {
|
|
225
277
|
title?: string;
|
|
226
278
|
} | null | undefined;
|
|
279
|
+
text?: string;
|
|
280
|
+
}) | {
|
|
281
|
+
kind: "web";
|
|
282
|
+
text: string;
|
|
283
|
+
})) | ({
|
|
284
|
+
__TYPE__: "AnyLink";
|
|
285
|
+
} & {
|
|
286
|
+
text: string;
|
|
227
287
|
}), ({
|
|
228
288
|
__TYPE__: "ImageLink";
|
|
229
|
-
} & {
|
|
289
|
+
} & ({
|
|
290
|
+
kind: "image";
|
|
291
|
+
} & (({
|
|
230
292
|
id: string;
|
|
231
293
|
url: string;
|
|
232
294
|
height: string;
|
|
233
295
|
width: string;
|
|
234
296
|
size: string;
|
|
235
297
|
name: string;
|
|
236
|
-
kind: string;
|
|
237
298
|
} & {
|
|
238
299
|
date?: string | null | undefined;
|
|
239
|
-
|
|
300
|
+
text?: string;
|
|
301
|
+
}) | {
|
|
302
|
+
text: string;
|
|
303
|
+
}))) | ({
|
|
304
|
+
__TYPE__: "FileLink";
|
|
305
|
+
} & ({
|
|
306
|
+
kind: "file";
|
|
307
|
+
} & (({
|
|
240
308
|
id: string;
|
|
241
309
|
url: string;
|
|
242
310
|
name: string;
|
|
243
|
-
kind: string;
|
|
244
311
|
size: string;
|
|
245
312
|
} & {
|
|
246
313
|
date?: string | null | undefined;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}) | ({
|
|
314
|
+
text?: string;
|
|
315
|
+
}) | {
|
|
316
|
+
text: string;
|
|
317
|
+
}))) | ({
|
|
252
318
|
__TYPE__: "DocumentLink";
|
|
253
|
-
} & {
|
|
319
|
+
} & (({
|
|
254
320
|
id: string;
|
|
255
|
-
}) | ({
|
|
256
|
-
__TYPE__: "ExternalLink";
|
|
257
321
|
} & {
|
|
322
|
+
kind?: "document";
|
|
323
|
+
text?: string;
|
|
324
|
+
}) | {
|
|
325
|
+
kind: "document";
|
|
326
|
+
text: string;
|
|
327
|
+
})) | ({
|
|
328
|
+
__TYPE__: "ExternalLink";
|
|
329
|
+
} & (({
|
|
258
330
|
url: string;
|
|
259
331
|
} & {
|
|
260
332
|
kind?: "web";
|
|
@@ -262,6 +334,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
262
334
|
preview?: {
|
|
263
335
|
title?: string;
|
|
264
336
|
} | null | undefined;
|
|
337
|
+
text?: string;
|
|
338
|
+
}) | {
|
|
339
|
+
kind: "web";
|
|
340
|
+
text: string;
|
|
341
|
+
})) | ({
|
|
342
|
+
__TYPE__: "AnyLink";
|
|
343
|
+
} & {
|
|
344
|
+
text: string;
|
|
265
345
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
266
346
|
}>]>;
|
|
267
347
|
}>, t.PartialC<{
|
|
@@ -299,35 +379,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
299
379
|
spans: t.Type<({
|
|
300
380
|
data: ({
|
|
301
381
|
__TYPE__: "ImageLink";
|
|
302
|
-
} & {
|
|
382
|
+
} & ({
|
|
383
|
+
kind: "image";
|
|
384
|
+
} & (({
|
|
303
385
|
id: string;
|
|
304
386
|
url: string;
|
|
305
387
|
height: string;
|
|
306
388
|
width: string;
|
|
307
389
|
size: string;
|
|
308
390
|
name: string;
|
|
309
|
-
kind: string;
|
|
310
391
|
} & {
|
|
311
392
|
date?: string | null | undefined;
|
|
312
|
-
|
|
393
|
+
text?: string;
|
|
394
|
+
}) | {
|
|
395
|
+
text: string;
|
|
396
|
+
}))) | ({
|
|
397
|
+
__TYPE__: "FileLink";
|
|
398
|
+
} & ({
|
|
399
|
+
kind: "file";
|
|
400
|
+
} & (({
|
|
313
401
|
id: string;
|
|
314
402
|
url: string;
|
|
315
403
|
name: string;
|
|
316
|
-
kind: string;
|
|
317
404
|
size: string;
|
|
318
405
|
} & {
|
|
319
406
|
date?: string | null | undefined;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}) | ({
|
|
407
|
+
text?: string;
|
|
408
|
+
}) | {
|
|
409
|
+
text: string;
|
|
410
|
+
}))) | ({
|
|
325
411
|
__TYPE__: "DocumentLink";
|
|
326
|
-
} & {
|
|
412
|
+
} & (({
|
|
327
413
|
id: string;
|
|
328
|
-
}) | ({
|
|
329
|
-
__TYPE__: "ExternalLink";
|
|
330
414
|
} & {
|
|
415
|
+
kind?: "document";
|
|
416
|
+
text?: string;
|
|
417
|
+
}) | {
|
|
418
|
+
kind: "document";
|
|
419
|
+
text: string;
|
|
420
|
+
})) | ({
|
|
421
|
+
__TYPE__: "ExternalLink";
|
|
422
|
+
} & (({
|
|
331
423
|
url: string;
|
|
332
424
|
} & {
|
|
333
425
|
kind?: "web";
|
|
@@ -335,6 +427,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
335
427
|
preview?: {
|
|
336
428
|
title?: string;
|
|
337
429
|
} | null | undefined;
|
|
430
|
+
text?: string;
|
|
431
|
+
}) | {
|
|
432
|
+
kind: "web";
|
|
433
|
+
text: string;
|
|
434
|
+
})) | ({
|
|
435
|
+
__TYPE__: "AnyLink";
|
|
436
|
+
} & {
|
|
437
|
+
text: string;
|
|
338
438
|
});
|
|
339
439
|
start: number;
|
|
340
440
|
end: number;
|
|
@@ -351,35 +451,47 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
351
451
|
})[], ({
|
|
352
452
|
data: ({
|
|
353
453
|
__TYPE__: "ImageLink";
|
|
354
|
-
} & {
|
|
454
|
+
} & ({
|
|
455
|
+
kind: "image";
|
|
456
|
+
} & (({
|
|
355
457
|
id: string;
|
|
356
458
|
url: string;
|
|
357
459
|
height: string;
|
|
358
460
|
width: string;
|
|
359
461
|
size: string;
|
|
360
462
|
name: string;
|
|
361
|
-
kind: string;
|
|
362
463
|
} & {
|
|
363
464
|
date?: string | null | undefined;
|
|
364
|
-
|
|
465
|
+
text?: string;
|
|
466
|
+
}) | {
|
|
467
|
+
text: string;
|
|
468
|
+
}))) | ({
|
|
469
|
+
__TYPE__: "FileLink";
|
|
470
|
+
} & ({
|
|
471
|
+
kind: "file";
|
|
472
|
+
} & (({
|
|
365
473
|
id: string;
|
|
366
474
|
url: string;
|
|
367
475
|
name: string;
|
|
368
|
-
kind: string;
|
|
369
476
|
size: string;
|
|
370
477
|
} & {
|
|
371
478
|
date?: string | null | undefined;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}) | ({
|
|
479
|
+
text?: string;
|
|
480
|
+
}) | {
|
|
481
|
+
text: string;
|
|
482
|
+
}))) | ({
|
|
377
483
|
__TYPE__: "DocumentLink";
|
|
378
|
-
} & {
|
|
484
|
+
} & (({
|
|
379
485
|
id: string;
|
|
380
|
-
}) | ({
|
|
381
|
-
__TYPE__: "ExternalLink";
|
|
382
486
|
} & {
|
|
487
|
+
kind?: "document";
|
|
488
|
+
text?: string;
|
|
489
|
+
}) | {
|
|
490
|
+
kind: "document";
|
|
491
|
+
text: string;
|
|
492
|
+
})) | ({
|
|
493
|
+
__TYPE__: "ExternalLink";
|
|
494
|
+
} & (({
|
|
383
495
|
url: string;
|
|
384
496
|
} & {
|
|
385
497
|
kind?: "web";
|
|
@@ -387,6 +499,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
387
499
|
preview?: {
|
|
388
500
|
title?: string;
|
|
389
501
|
} | null | undefined;
|
|
502
|
+
text?: string;
|
|
503
|
+
}) | {
|
|
504
|
+
kind: "web";
|
|
505
|
+
text: string;
|
|
506
|
+
})) | ({
|
|
507
|
+
__TYPE__: "AnyLink";
|
|
508
|
+
} & {
|
|
509
|
+
text: string;
|
|
390
510
|
});
|
|
391
511
|
start: number;
|
|
392
512
|
end: number;
|
|
@@ -438,35 +558,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
438
558
|
} & {
|
|
439
559
|
linkTo?: ({
|
|
440
560
|
__TYPE__: "ImageLink";
|
|
441
|
-
} & {
|
|
561
|
+
} & ({
|
|
562
|
+
kind: "image";
|
|
563
|
+
} & (({
|
|
442
564
|
id: string;
|
|
443
565
|
url: string;
|
|
444
566
|
height: string;
|
|
445
567
|
width: string;
|
|
446
568
|
size: string;
|
|
447
569
|
name: string;
|
|
448
|
-
kind: string;
|
|
449
570
|
} & {
|
|
450
571
|
date?: string | null | undefined;
|
|
451
|
-
|
|
572
|
+
text?: string;
|
|
573
|
+
}) | {
|
|
574
|
+
text: string;
|
|
575
|
+
}))) | ({
|
|
576
|
+
__TYPE__: "FileLink";
|
|
577
|
+
} & ({
|
|
578
|
+
kind: "file";
|
|
579
|
+
} & (({
|
|
452
580
|
id: string;
|
|
453
581
|
url: string;
|
|
454
582
|
name: string;
|
|
455
|
-
kind: string;
|
|
456
583
|
size: string;
|
|
457
584
|
} & {
|
|
458
585
|
date?: string | null | undefined;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}) | ({
|
|
586
|
+
text?: string;
|
|
587
|
+
}) | {
|
|
588
|
+
text: string;
|
|
589
|
+
}))) | ({
|
|
464
590
|
__TYPE__: "DocumentLink";
|
|
465
|
-
} & {
|
|
591
|
+
} & (({
|
|
466
592
|
id: string;
|
|
467
|
-
}) | ({
|
|
468
|
-
__TYPE__: "ExternalLink";
|
|
469
593
|
} & {
|
|
594
|
+
kind?: "document";
|
|
595
|
+
text?: string;
|
|
596
|
+
}) | {
|
|
597
|
+
kind: "document";
|
|
598
|
+
text: string;
|
|
599
|
+
})) | ({
|
|
600
|
+
__TYPE__: "ExternalLink";
|
|
601
|
+
} & (({
|
|
470
602
|
url: string;
|
|
471
603
|
} & {
|
|
472
604
|
kind?: "web";
|
|
@@ -474,6 +606,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
474
606
|
preview?: {
|
|
475
607
|
title?: string;
|
|
476
608
|
} | null | undefined;
|
|
609
|
+
text?: string;
|
|
610
|
+
}) | {
|
|
611
|
+
kind: "web";
|
|
612
|
+
text: string;
|
|
613
|
+
})) | ({
|
|
614
|
+
__TYPE__: "AnyLink";
|
|
615
|
+
} & {
|
|
616
|
+
text: string;
|
|
477
617
|
}) | null | undefined;
|
|
478
618
|
};
|
|
479
619
|
} & {
|
|
@@ -511,35 +651,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
511
651
|
spans?: ({
|
|
512
652
|
data: ({
|
|
513
653
|
__TYPE__: "ImageLink";
|
|
514
|
-
} & {
|
|
654
|
+
} & ({
|
|
655
|
+
kind: "image";
|
|
656
|
+
} & (({
|
|
515
657
|
id: string;
|
|
516
658
|
url: string;
|
|
517
659
|
height: string;
|
|
518
660
|
width: string;
|
|
519
661
|
size: string;
|
|
520
662
|
name: string;
|
|
521
|
-
kind: string;
|
|
522
663
|
} & {
|
|
523
664
|
date?: string | null | undefined;
|
|
524
|
-
|
|
665
|
+
text?: string;
|
|
666
|
+
}) | {
|
|
667
|
+
text: string;
|
|
668
|
+
}))) | ({
|
|
669
|
+
__TYPE__: "FileLink";
|
|
670
|
+
} & ({
|
|
671
|
+
kind: "file";
|
|
672
|
+
} & (({
|
|
525
673
|
id: string;
|
|
526
674
|
url: string;
|
|
527
675
|
name: string;
|
|
528
|
-
kind: string;
|
|
529
676
|
size: string;
|
|
530
677
|
} & {
|
|
531
678
|
date?: string | null | undefined;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}) | ({
|
|
679
|
+
text?: string;
|
|
680
|
+
}) | {
|
|
681
|
+
text: string;
|
|
682
|
+
}))) | ({
|
|
537
683
|
__TYPE__: "DocumentLink";
|
|
538
|
-
} & {
|
|
684
|
+
} & (({
|
|
539
685
|
id: string;
|
|
540
|
-
}) | ({
|
|
541
|
-
__TYPE__: "ExternalLink";
|
|
542
686
|
} & {
|
|
687
|
+
kind?: "document";
|
|
688
|
+
text?: string;
|
|
689
|
+
}) | {
|
|
690
|
+
kind: "document";
|
|
691
|
+
text: string;
|
|
692
|
+
})) | ({
|
|
693
|
+
__TYPE__: "ExternalLink";
|
|
694
|
+
} & (({
|
|
543
695
|
url: string;
|
|
544
696
|
} & {
|
|
545
697
|
kind?: "web";
|
|
@@ -547,6 +699,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
547
699
|
preview?: {
|
|
548
700
|
title?: string;
|
|
549
701
|
} | null | undefined;
|
|
702
|
+
text?: string;
|
|
703
|
+
}) | {
|
|
704
|
+
kind: "web";
|
|
705
|
+
text: string;
|
|
706
|
+
})) | ({
|
|
707
|
+
__TYPE__: "AnyLink";
|
|
708
|
+
} & {
|
|
709
|
+
text: string;
|
|
550
710
|
});
|
|
551
711
|
start: number;
|
|
552
712
|
end: number;
|
|
@@ -593,35 +753,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
593
753
|
} & {
|
|
594
754
|
linkTo?: ({
|
|
595
755
|
__TYPE__: "ImageLink";
|
|
596
|
-
} & {
|
|
756
|
+
} & ({
|
|
757
|
+
kind: "image";
|
|
758
|
+
} & (({
|
|
597
759
|
id: string;
|
|
598
760
|
url: string;
|
|
599
761
|
height: string;
|
|
600
762
|
width: string;
|
|
601
763
|
size: string;
|
|
602
764
|
name: string;
|
|
603
|
-
kind: string;
|
|
604
765
|
} & {
|
|
605
766
|
date?: string | null | undefined;
|
|
606
|
-
|
|
767
|
+
text?: string;
|
|
768
|
+
}) | {
|
|
769
|
+
text: string;
|
|
770
|
+
}))) | ({
|
|
771
|
+
__TYPE__: "FileLink";
|
|
772
|
+
} & ({
|
|
773
|
+
kind: "file";
|
|
774
|
+
} & (({
|
|
607
775
|
id: string;
|
|
608
776
|
url: string;
|
|
609
777
|
name: string;
|
|
610
|
-
kind: string;
|
|
611
778
|
size: string;
|
|
612
779
|
} & {
|
|
613
780
|
date?: string | null | undefined;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}) | ({
|
|
781
|
+
text?: string;
|
|
782
|
+
}) | {
|
|
783
|
+
text: string;
|
|
784
|
+
}))) | ({
|
|
619
785
|
__TYPE__: "DocumentLink";
|
|
620
|
-
} & {
|
|
786
|
+
} & (({
|
|
621
787
|
id: string;
|
|
622
|
-
}) | ({
|
|
623
|
-
__TYPE__: "ExternalLink";
|
|
624
788
|
} & {
|
|
789
|
+
kind?: "document";
|
|
790
|
+
text?: string;
|
|
791
|
+
}) | {
|
|
792
|
+
kind: "document";
|
|
793
|
+
text: string;
|
|
794
|
+
})) | ({
|
|
795
|
+
__TYPE__: "ExternalLink";
|
|
796
|
+
} & (({
|
|
625
797
|
url: string;
|
|
626
798
|
} & {
|
|
627
799
|
kind?: "web";
|
|
@@ -629,6 +801,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
629
801
|
preview?: {
|
|
630
802
|
title?: string;
|
|
631
803
|
} | null | undefined;
|
|
804
|
+
text?: string;
|
|
805
|
+
}) | {
|
|
806
|
+
kind: "web";
|
|
807
|
+
text: string;
|
|
808
|
+
})) | ({
|
|
809
|
+
__TYPE__: "AnyLink";
|
|
810
|
+
} & {
|
|
811
|
+
text: string;
|
|
632
812
|
}) | null | undefined;
|
|
633
813
|
};
|
|
634
814
|
} & {
|
|
@@ -666,35 +846,47 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
666
846
|
spans?: ({
|
|
667
847
|
data: ({
|
|
668
848
|
__TYPE__: "ImageLink";
|
|
669
|
-
} & {
|
|
849
|
+
} & ({
|
|
850
|
+
kind: "image";
|
|
851
|
+
} & (({
|
|
670
852
|
id: string;
|
|
671
853
|
url: string;
|
|
672
854
|
height: string;
|
|
673
855
|
width: string;
|
|
674
856
|
size: string;
|
|
675
857
|
name: string;
|
|
676
|
-
kind: string;
|
|
677
858
|
} & {
|
|
678
859
|
date?: string | null | undefined;
|
|
679
|
-
|
|
860
|
+
text?: string;
|
|
861
|
+
}) | {
|
|
862
|
+
text: string;
|
|
863
|
+
}))) | ({
|
|
864
|
+
__TYPE__: "FileLink";
|
|
865
|
+
} & ({
|
|
866
|
+
kind: "file";
|
|
867
|
+
} & (({
|
|
680
868
|
id: string;
|
|
681
869
|
url: string;
|
|
682
870
|
name: string;
|
|
683
|
-
kind: string;
|
|
684
871
|
size: string;
|
|
685
872
|
} & {
|
|
686
873
|
date?: string | null | undefined;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}) | ({
|
|
874
|
+
text?: string;
|
|
875
|
+
}) | {
|
|
876
|
+
text: string;
|
|
877
|
+
}))) | ({
|
|
692
878
|
__TYPE__: "DocumentLink";
|
|
693
|
-
} & {
|
|
879
|
+
} & (({
|
|
694
880
|
id: string;
|
|
695
|
-
}) | ({
|
|
696
|
-
__TYPE__: "ExternalLink";
|
|
697
881
|
} & {
|
|
882
|
+
kind?: "document";
|
|
883
|
+
text?: string;
|
|
884
|
+
}) | {
|
|
885
|
+
kind: "document";
|
|
886
|
+
text: string;
|
|
887
|
+
})) | ({
|
|
888
|
+
__TYPE__: "ExternalLink";
|
|
889
|
+
} & (({
|
|
698
890
|
url: string;
|
|
699
891
|
} & {
|
|
700
892
|
kind?: "web";
|
|
@@ -702,6 +894,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
702
894
|
preview?: {
|
|
703
895
|
title?: string;
|
|
704
896
|
} | null | undefined;
|
|
897
|
+
text?: string;
|
|
898
|
+
}) | {
|
|
899
|
+
kind: "web";
|
|
900
|
+
text: string;
|
|
901
|
+
})) | ({
|
|
902
|
+
__TYPE__: "AnyLink";
|
|
903
|
+
} & {
|
|
904
|
+
text: string;
|
|
705
905
|
});
|
|
706
906
|
start: number;
|
|
707
907
|
end: number;
|