@prismicio/types-internal 2.5.0 → 2.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_internal/utils.d.ts +2 -2
- package/lib/content/Document.d.ts +1828 -1156
- package/lib/content/fields/WidgetContent.d.ts +1840 -1168
- package/lib/content/fields/nestable/LinkContent.d.ts +206 -8
- package/lib/content/fields/nestable/LinkContent.js +11 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +288 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +537 -6
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +260 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +580 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +2 -1
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +137 -2160
- package/lib/content/fields/slices/Slice/RepeatableContent.js +6 -148
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +580 -8
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +294 -1051
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +7 -10
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +288 -2
- package/lib/content/fields/slices/Slice/index.d.ts +1077 -764
- package/lib/content/fields/slices/Slice/index.js +0 -1
- package/lib/content/fields/slices/SliceItem.d.ts +1107 -793
- package/lib/content/fields/slices/SlicesContent.d.ts +2537 -2151
- package/lib/customtypes/CustomType.d.ts +342 -162
- package/lib/customtypes/Section.d.ts +342 -162
- package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
- package/lib/customtypes/diff/Variation.d.ts +152 -72
- package/lib/customtypes/widgets/Group.d.ts +60 -0
- package/lib/customtypes/widgets/Widget.d.ts +318 -108
- package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
- package/lib/customtypes/widgets/nestable/Link.js +2 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
- package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
- package/package.json +1 -1
- package/src/_internal/utils.ts +1 -2
- package/src/content/fields/nestable/LinkContent.ts +13 -1
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -8
- package/src/content/fields/slices/Slice/RepeatableContent.ts +11 -242
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +17 -21
- package/src/content/fields/slices/Slice/index.ts +0 -1
- package/src/content/fields/slices/SlicesContent.ts +2 -2
- package/src/customtypes/widgets/nestable/Link.ts +2 -0
- 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
|
@@ -40,6 +40,11 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
40
40
|
kind: string;
|
|
41
41
|
} & {
|
|
42
42
|
date?: string | null | undefined;
|
|
43
|
+
title?: {
|
|
44
|
+
type: "Text";
|
|
45
|
+
value: string;
|
|
46
|
+
__TYPE__: "FieldContent";
|
|
47
|
+
};
|
|
43
48
|
}) | ({
|
|
44
49
|
id: string;
|
|
45
50
|
url: string;
|
|
@@ -48,14 +53,30 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
48
53
|
size: string;
|
|
49
54
|
} & {
|
|
50
55
|
date?: string | null | undefined;
|
|
56
|
+
title?: {
|
|
57
|
+
type: "Text";
|
|
58
|
+
value: string;
|
|
59
|
+
__TYPE__: "FieldContent";
|
|
60
|
+
};
|
|
51
61
|
} & {
|
|
52
62
|
__TYPE__: "FileLink";
|
|
53
63
|
} & {
|
|
54
64
|
size?: string;
|
|
65
|
+
title?: {
|
|
66
|
+
type: "Text";
|
|
67
|
+
value: string;
|
|
68
|
+
__TYPE__: "FieldContent";
|
|
69
|
+
};
|
|
55
70
|
}) | ({
|
|
56
71
|
__TYPE__: "DocumentLink";
|
|
57
72
|
} & {
|
|
58
73
|
id: string;
|
|
74
|
+
} & {
|
|
75
|
+
title?: {
|
|
76
|
+
type: "Text";
|
|
77
|
+
value: string;
|
|
78
|
+
__TYPE__: "FieldContent";
|
|
79
|
+
};
|
|
59
80
|
}) | ({
|
|
60
81
|
__TYPE__: "ExternalLink";
|
|
61
82
|
} & {
|
|
@@ -66,6 +87,11 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
66
87
|
preview?: {
|
|
67
88
|
title?: string;
|
|
68
89
|
} | null | undefined;
|
|
90
|
+
title?: {
|
|
91
|
+
type: "Text";
|
|
92
|
+
value: string;
|
|
93
|
+
__TYPE__: "FieldContent";
|
|
94
|
+
};
|
|
69
95
|
}) | null | undefined;
|
|
70
96
|
};
|
|
71
97
|
} & {
|
|
@@ -113,6 +139,11 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
113
139
|
kind: string;
|
|
114
140
|
} & {
|
|
115
141
|
date?: string | null | undefined;
|
|
142
|
+
title?: {
|
|
143
|
+
type: "Text";
|
|
144
|
+
value: string;
|
|
145
|
+
__TYPE__: "FieldContent";
|
|
146
|
+
};
|
|
116
147
|
}) | ({
|
|
117
148
|
id: string;
|
|
118
149
|
url: string;
|
|
@@ -121,14 +152,30 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
121
152
|
size: string;
|
|
122
153
|
} & {
|
|
123
154
|
date?: string | null | undefined;
|
|
155
|
+
title?: {
|
|
156
|
+
type: "Text";
|
|
157
|
+
value: string;
|
|
158
|
+
__TYPE__: "FieldContent";
|
|
159
|
+
};
|
|
124
160
|
} & {
|
|
125
161
|
__TYPE__: "FileLink";
|
|
126
162
|
} & {
|
|
127
163
|
size?: string;
|
|
164
|
+
title?: {
|
|
165
|
+
type: "Text";
|
|
166
|
+
value: string;
|
|
167
|
+
__TYPE__: "FieldContent";
|
|
168
|
+
};
|
|
128
169
|
}) | ({
|
|
129
170
|
__TYPE__: "DocumentLink";
|
|
130
171
|
} & {
|
|
131
172
|
id: string;
|
|
173
|
+
} & {
|
|
174
|
+
title?: {
|
|
175
|
+
type: "Text";
|
|
176
|
+
value: string;
|
|
177
|
+
__TYPE__: "FieldContent";
|
|
178
|
+
};
|
|
132
179
|
}) | ({
|
|
133
180
|
__TYPE__: "ExternalLink";
|
|
134
181
|
} & {
|
|
@@ -139,6 +186,11 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
139
186
|
preview?: {
|
|
140
187
|
title?: string;
|
|
141
188
|
} | null | undefined;
|
|
189
|
+
title?: {
|
|
190
|
+
type: "Text";
|
|
191
|
+
value: string;
|
|
192
|
+
__TYPE__: "FieldContent";
|
|
193
|
+
};
|
|
142
194
|
});
|
|
143
195
|
start: number;
|
|
144
196
|
end: number;
|
|
@@ -198,6 +250,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
198
250
|
kind: string;
|
|
199
251
|
} & {
|
|
200
252
|
date?: string | null | undefined;
|
|
253
|
+
title?: {
|
|
254
|
+
type: "Text";
|
|
255
|
+
value: string;
|
|
256
|
+
__TYPE__: "FieldContent";
|
|
257
|
+
};
|
|
201
258
|
}) | ({
|
|
202
259
|
id: string;
|
|
203
260
|
url: string;
|
|
@@ -206,14 +263,30 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
206
263
|
size: string;
|
|
207
264
|
} & {
|
|
208
265
|
date?: string | null | undefined;
|
|
266
|
+
title?: {
|
|
267
|
+
type: "Text";
|
|
268
|
+
value: string;
|
|
269
|
+
__TYPE__: "FieldContent";
|
|
270
|
+
};
|
|
209
271
|
} & {
|
|
210
272
|
__TYPE__: "FileLink";
|
|
211
273
|
} & {
|
|
212
274
|
size?: string;
|
|
275
|
+
title?: {
|
|
276
|
+
type: "Text";
|
|
277
|
+
value: string;
|
|
278
|
+
__TYPE__: "FieldContent";
|
|
279
|
+
};
|
|
213
280
|
}) | ({
|
|
214
281
|
__TYPE__: "DocumentLink";
|
|
215
282
|
} & {
|
|
216
283
|
id: string;
|
|
284
|
+
} & {
|
|
285
|
+
title?: {
|
|
286
|
+
type: "Text";
|
|
287
|
+
value: string;
|
|
288
|
+
__TYPE__: "FieldContent";
|
|
289
|
+
};
|
|
217
290
|
}) | ({
|
|
218
291
|
__TYPE__: "ExternalLink";
|
|
219
292
|
} & {
|
|
@@ -224,6 +297,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
224
297
|
preview?: {
|
|
225
298
|
title?: string;
|
|
226
299
|
} | null | undefined;
|
|
300
|
+
title?: {
|
|
301
|
+
type: "Text";
|
|
302
|
+
value: string;
|
|
303
|
+
__TYPE__: "FieldContent";
|
|
304
|
+
};
|
|
227
305
|
}), ({
|
|
228
306
|
__TYPE__: "ImageLink";
|
|
229
307
|
} & {
|
|
@@ -236,6 +314,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
236
314
|
kind: string;
|
|
237
315
|
} & {
|
|
238
316
|
date?: string | null | undefined;
|
|
317
|
+
title?: {
|
|
318
|
+
type: "Text";
|
|
319
|
+
value: string;
|
|
320
|
+
__TYPE__: "FieldContent";
|
|
321
|
+
};
|
|
239
322
|
}) | ({
|
|
240
323
|
id: string;
|
|
241
324
|
url: string;
|
|
@@ -244,14 +327,30 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
244
327
|
size: string;
|
|
245
328
|
} & {
|
|
246
329
|
date?: string | null | undefined;
|
|
330
|
+
title?: {
|
|
331
|
+
type: "Text";
|
|
332
|
+
value: string;
|
|
333
|
+
__TYPE__: "FieldContent";
|
|
334
|
+
};
|
|
247
335
|
} & {
|
|
248
336
|
__TYPE__: "FileLink";
|
|
249
337
|
} & {
|
|
250
338
|
size?: string;
|
|
339
|
+
title?: {
|
|
340
|
+
type: "Text";
|
|
341
|
+
value: string;
|
|
342
|
+
__TYPE__: "FieldContent";
|
|
343
|
+
};
|
|
251
344
|
}) | ({
|
|
252
345
|
__TYPE__: "DocumentLink";
|
|
253
346
|
} & {
|
|
254
347
|
id: string;
|
|
348
|
+
} & {
|
|
349
|
+
title?: {
|
|
350
|
+
type: "Text";
|
|
351
|
+
value: string;
|
|
352
|
+
__TYPE__: "FieldContent";
|
|
353
|
+
};
|
|
255
354
|
}) | ({
|
|
256
355
|
__TYPE__: "ExternalLink";
|
|
257
356
|
} & {
|
|
@@ -262,6 +361,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
262
361
|
preview?: {
|
|
263
362
|
title?: string;
|
|
264
363
|
} | null | undefined;
|
|
364
|
+
title?: {
|
|
365
|
+
type: "Text";
|
|
366
|
+
value: string;
|
|
367
|
+
__TYPE__: "FieldContent";
|
|
368
|
+
};
|
|
265
369
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
266
370
|
}>]>;
|
|
267
371
|
}>, t.PartialC<{
|
|
@@ -309,6 +413,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
309
413
|
kind: string;
|
|
310
414
|
} & {
|
|
311
415
|
date?: string | null | undefined;
|
|
416
|
+
title?: {
|
|
417
|
+
type: "Text";
|
|
418
|
+
value: string;
|
|
419
|
+
__TYPE__: "FieldContent";
|
|
420
|
+
};
|
|
312
421
|
}) | ({
|
|
313
422
|
id: string;
|
|
314
423
|
url: string;
|
|
@@ -317,14 +426,30 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
317
426
|
size: string;
|
|
318
427
|
} & {
|
|
319
428
|
date?: string | null | undefined;
|
|
429
|
+
title?: {
|
|
430
|
+
type: "Text";
|
|
431
|
+
value: string;
|
|
432
|
+
__TYPE__: "FieldContent";
|
|
433
|
+
};
|
|
320
434
|
} & {
|
|
321
435
|
__TYPE__: "FileLink";
|
|
322
436
|
} & {
|
|
323
437
|
size?: string;
|
|
438
|
+
title?: {
|
|
439
|
+
type: "Text";
|
|
440
|
+
value: string;
|
|
441
|
+
__TYPE__: "FieldContent";
|
|
442
|
+
};
|
|
324
443
|
}) | ({
|
|
325
444
|
__TYPE__: "DocumentLink";
|
|
326
445
|
} & {
|
|
327
446
|
id: string;
|
|
447
|
+
} & {
|
|
448
|
+
title?: {
|
|
449
|
+
type: "Text";
|
|
450
|
+
value: string;
|
|
451
|
+
__TYPE__: "FieldContent";
|
|
452
|
+
};
|
|
328
453
|
}) | ({
|
|
329
454
|
__TYPE__: "ExternalLink";
|
|
330
455
|
} & {
|
|
@@ -335,6 +460,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
335
460
|
preview?: {
|
|
336
461
|
title?: string;
|
|
337
462
|
} | null | undefined;
|
|
463
|
+
title?: {
|
|
464
|
+
type: "Text";
|
|
465
|
+
value: string;
|
|
466
|
+
__TYPE__: "FieldContent";
|
|
467
|
+
};
|
|
338
468
|
});
|
|
339
469
|
start: number;
|
|
340
470
|
end: number;
|
|
@@ -361,6 +491,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
361
491
|
kind: string;
|
|
362
492
|
} & {
|
|
363
493
|
date?: string | null | undefined;
|
|
494
|
+
title?: {
|
|
495
|
+
type: "Text";
|
|
496
|
+
value: string;
|
|
497
|
+
__TYPE__: "FieldContent";
|
|
498
|
+
};
|
|
364
499
|
}) | ({
|
|
365
500
|
id: string;
|
|
366
501
|
url: string;
|
|
@@ -369,14 +504,30 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
369
504
|
size: string;
|
|
370
505
|
} & {
|
|
371
506
|
date?: string | null | undefined;
|
|
507
|
+
title?: {
|
|
508
|
+
type: "Text";
|
|
509
|
+
value: string;
|
|
510
|
+
__TYPE__: "FieldContent";
|
|
511
|
+
};
|
|
372
512
|
} & {
|
|
373
513
|
__TYPE__: "FileLink";
|
|
374
514
|
} & {
|
|
375
515
|
size?: string;
|
|
516
|
+
title?: {
|
|
517
|
+
type: "Text";
|
|
518
|
+
value: string;
|
|
519
|
+
__TYPE__: "FieldContent";
|
|
520
|
+
};
|
|
376
521
|
}) | ({
|
|
377
522
|
__TYPE__: "DocumentLink";
|
|
378
523
|
} & {
|
|
379
524
|
id: string;
|
|
525
|
+
} & {
|
|
526
|
+
title?: {
|
|
527
|
+
type: "Text";
|
|
528
|
+
value: string;
|
|
529
|
+
__TYPE__: "FieldContent";
|
|
530
|
+
};
|
|
380
531
|
}) | ({
|
|
381
532
|
__TYPE__: "ExternalLink";
|
|
382
533
|
} & {
|
|
@@ -387,6 +538,11 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
387
538
|
preview?: {
|
|
388
539
|
title?: string;
|
|
389
540
|
} | null | undefined;
|
|
541
|
+
title?: {
|
|
542
|
+
type: "Text";
|
|
543
|
+
value: string;
|
|
544
|
+
__TYPE__: "FieldContent";
|
|
545
|
+
};
|
|
390
546
|
});
|
|
391
547
|
start: number;
|
|
392
548
|
end: number;
|
|
@@ -448,6 +604,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
448
604
|
kind: string;
|
|
449
605
|
} & {
|
|
450
606
|
date?: string | null | undefined;
|
|
607
|
+
title?: {
|
|
608
|
+
type: "Text";
|
|
609
|
+
value: string;
|
|
610
|
+
__TYPE__: "FieldContent";
|
|
611
|
+
};
|
|
451
612
|
}) | ({
|
|
452
613
|
id: string;
|
|
453
614
|
url: string;
|
|
@@ -456,14 +617,30 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
456
617
|
size: string;
|
|
457
618
|
} & {
|
|
458
619
|
date?: string | null | undefined;
|
|
620
|
+
title?: {
|
|
621
|
+
type: "Text";
|
|
622
|
+
value: string;
|
|
623
|
+
__TYPE__: "FieldContent";
|
|
624
|
+
};
|
|
459
625
|
} & {
|
|
460
626
|
__TYPE__: "FileLink";
|
|
461
627
|
} & {
|
|
462
628
|
size?: string;
|
|
629
|
+
title?: {
|
|
630
|
+
type: "Text";
|
|
631
|
+
value: string;
|
|
632
|
+
__TYPE__: "FieldContent";
|
|
633
|
+
};
|
|
463
634
|
}) | ({
|
|
464
635
|
__TYPE__: "DocumentLink";
|
|
465
636
|
} & {
|
|
466
637
|
id: string;
|
|
638
|
+
} & {
|
|
639
|
+
title?: {
|
|
640
|
+
type: "Text";
|
|
641
|
+
value: string;
|
|
642
|
+
__TYPE__: "FieldContent";
|
|
643
|
+
};
|
|
467
644
|
}) | ({
|
|
468
645
|
__TYPE__: "ExternalLink";
|
|
469
646
|
} & {
|
|
@@ -474,6 +651,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
474
651
|
preview?: {
|
|
475
652
|
title?: string;
|
|
476
653
|
} | null | undefined;
|
|
654
|
+
title?: {
|
|
655
|
+
type: "Text";
|
|
656
|
+
value: string;
|
|
657
|
+
__TYPE__: "FieldContent";
|
|
658
|
+
};
|
|
477
659
|
}) | null | undefined;
|
|
478
660
|
};
|
|
479
661
|
} & {
|
|
@@ -521,6 +703,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
521
703
|
kind: string;
|
|
522
704
|
} & {
|
|
523
705
|
date?: string | null | undefined;
|
|
706
|
+
title?: {
|
|
707
|
+
type: "Text";
|
|
708
|
+
value: string;
|
|
709
|
+
__TYPE__: "FieldContent";
|
|
710
|
+
};
|
|
524
711
|
}) | ({
|
|
525
712
|
id: string;
|
|
526
713
|
url: string;
|
|
@@ -529,14 +716,30 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
529
716
|
size: string;
|
|
530
717
|
} & {
|
|
531
718
|
date?: string | null | undefined;
|
|
719
|
+
title?: {
|
|
720
|
+
type: "Text";
|
|
721
|
+
value: string;
|
|
722
|
+
__TYPE__: "FieldContent";
|
|
723
|
+
};
|
|
532
724
|
} & {
|
|
533
725
|
__TYPE__: "FileLink";
|
|
534
726
|
} & {
|
|
535
727
|
size?: string;
|
|
728
|
+
title?: {
|
|
729
|
+
type: "Text";
|
|
730
|
+
value: string;
|
|
731
|
+
__TYPE__: "FieldContent";
|
|
732
|
+
};
|
|
536
733
|
}) | ({
|
|
537
734
|
__TYPE__: "DocumentLink";
|
|
538
735
|
} & {
|
|
539
736
|
id: string;
|
|
737
|
+
} & {
|
|
738
|
+
title?: {
|
|
739
|
+
type: "Text";
|
|
740
|
+
value: string;
|
|
741
|
+
__TYPE__: "FieldContent";
|
|
742
|
+
};
|
|
540
743
|
}) | ({
|
|
541
744
|
__TYPE__: "ExternalLink";
|
|
542
745
|
} & {
|
|
@@ -547,6 +750,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
547
750
|
preview?: {
|
|
548
751
|
title?: string;
|
|
549
752
|
} | null | undefined;
|
|
753
|
+
title?: {
|
|
754
|
+
type: "Text";
|
|
755
|
+
value: string;
|
|
756
|
+
__TYPE__: "FieldContent";
|
|
757
|
+
};
|
|
550
758
|
});
|
|
551
759
|
start: number;
|
|
552
760
|
end: number;
|
|
@@ -603,6 +811,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
603
811
|
kind: string;
|
|
604
812
|
} & {
|
|
605
813
|
date?: string | null | undefined;
|
|
814
|
+
title?: {
|
|
815
|
+
type: "Text";
|
|
816
|
+
value: string;
|
|
817
|
+
__TYPE__: "FieldContent";
|
|
818
|
+
};
|
|
606
819
|
}) | ({
|
|
607
820
|
id: string;
|
|
608
821
|
url: string;
|
|
@@ -611,14 +824,30 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
611
824
|
size: string;
|
|
612
825
|
} & {
|
|
613
826
|
date?: string | null | undefined;
|
|
827
|
+
title?: {
|
|
828
|
+
type: "Text";
|
|
829
|
+
value: string;
|
|
830
|
+
__TYPE__: "FieldContent";
|
|
831
|
+
};
|
|
614
832
|
} & {
|
|
615
833
|
__TYPE__: "FileLink";
|
|
616
834
|
} & {
|
|
617
835
|
size?: string;
|
|
836
|
+
title?: {
|
|
837
|
+
type: "Text";
|
|
838
|
+
value: string;
|
|
839
|
+
__TYPE__: "FieldContent";
|
|
840
|
+
};
|
|
618
841
|
}) | ({
|
|
619
842
|
__TYPE__: "DocumentLink";
|
|
620
843
|
} & {
|
|
621
844
|
id: string;
|
|
845
|
+
} & {
|
|
846
|
+
title?: {
|
|
847
|
+
type: "Text";
|
|
848
|
+
value: string;
|
|
849
|
+
__TYPE__: "FieldContent";
|
|
850
|
+
};
|
|
622
851
|
}) | ({
|
|
623
852
|
__TYPE__: "ExternalLink";
|
|
624
853
|
} & {
|
|
@@ -629,6 +858,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
629
858
|
preview?: {
|
|
630
859
|
title?: string;
|
|
631
860
|
} | null | undefined;
|
|
861
|
+
title?: {
|
|
862
|
+
type: "Text";
|
|
863
|
+
value: string;
|
|
864
|
+
__TYPE__: "FieldContent";
|
|
865
|
+
};
|
|
632
866
|
}) | null | undefined;
|
|
633
867
|
};
|
|
634
868
|
} & {
|
|
@@ -676,6 +910,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
676
910
|
kind: string;
|
|
677
911
|
} & {
|
|
678
912
|
date?: string | null | undefined;
|
|
913
|
+
title?: {
|
|
914
|
+
type: "Text";
|
|
915
|
+
value: string;
|
|
916
|
+
__TYPE__: "FieldContent";
|
|
917
|
+
};
|
|
679
918
|
}) | ({
|
|
680
919
|
id: string;
|
|
681
920
|
url: string;
|
|
@@ -684,14 +923,30 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
684
923
|
size: string;
|
|
685
924
|
} & {
|
|
686
925
|
date?: string | null | undefined;
|
|
926
|
+
title?: {
|
|
927
|
+
type: "Text";
|
|
928
|
+
value: string;
|
|
929
|
+
__TYPE__: "FieldContent";
|
|
930
|
+
};
|
|
687
931
|
} & {
|
|
688
932
|
__TYPE__: "FileLink";
|
|
689
933
|
} & {
|
|
690
934
|
size?: string;
|
|
935
|
+
title?: {
|
|
936
|
+
type: "Text";
|
|
937
|
+
value: string;
|
|
938
|
+
__TYPE__: "FieldContent";
|
|
939
|
+
};
|
|
691
940
|
}) | ({
|
|
692
941
|
__TYPE__: "DocumentLink";
|
|
693
942
|
} & {
|
|
694
943
|
id: string;
|
|
944
|
+
} & {
|
|
945
|
+
title?: {
|
|
946
|
+
type: "Text";
|
|
947
|
+
value: string;
|
|
948
|
+
__TYPE__: "FieldContent";
|
|
949
|
+
};
|
|
695
950
|
}) | ({
|
|
696
951
|
__TYPE__: "ExternalLink";
|
|
697
952
|
} & {
|
|
@@ -702,6 +957,11 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
702
957
|
preview?: {
|
|
703
958
|
title?: string;
|
|
704
959
|
} | null | undefined;
|
|
960
|
+
title?: {
|
|
961
|
+
type: "Text";
|
|
962
|
+
value: string;
|
|
963
|
+
__TYPE__: "FieldContent";
|
|
964
|
+
};
|
|
705
965
|
});
|
|
706
966
|
start: number;
|
|
707
967
|
end: number;
|