@prismicio/types-internal 2.6.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/content/Document.d.ts +1729 -13
- package/lib/content/fields/WidgetContent.d.ts +1728 -12
- 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 +576 -4
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +132 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +576 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +288 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +288 -2
- package/lib/content/fields/slices/Slice/index.d.ts +1050 -10
- package/lib/content/fields/slices/SliceItem.d.ts +1050 -10
- package/lib/content/fields/slices/SlicesContent.d.ts +1440 -10
- 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/content/fields/nestable/LinkContent.ts +13 -1
- 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
|
@@ -125,6 +125,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
125
125
|
kind: t.StringC;
|
|
126
126
|
}>, t.PartialC<{
|
|
127
127
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
128
|
+
title: t.ExactC<t.TypeC<{
|
|
129
|
+
type: t.LiteralC<"Text">;
|
|
130
|
+
value: t.Type<string, string, unknown>;
|
|
131
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
132
|
+
}>>;
|
|
128
133
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
129
134
|
id: t.StringC;
|
|
130
135
|
url: t.StringC;
|
|
@@ -133,15 +138,31 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
133
138
|
size: t.StringC;
|
|
134
139
|
}>, t.PartialC<{
|
|
135
140
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
141
|
+
title: t.ExactC<t.TypeC<{
|
|
142
|
+
type: t.LiteralC<"Text">;
|
|
143
|
+
value: t.Type<string, string, unknown>;
|
|
144
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
145
|
+
}>>;
|
|
136
146
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
137
147
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
138
148
|
}>, t.PartialC<{
|
|
139
149
|
size: t.StringC;
|
|
150
|
+
title: t.ExactC<t.TypeC<{
|
|
151
|
+
type: t.LiteralC<"Text">;
|
|
152
|
+
value: t.Type<string, string, unknown>;
|
|
153
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
154
|
+
}>>;
|
|
140
155
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
141
156
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
142
|
-
}>>, t.ExactC<t.TypeC<{
|
|
157
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
143
158
|
id: t.Type<string, string, unknown>;
|
|
144
|
-
}
|
|
159
|
+
}>, t.PartialC<{
|
|
160
|
+
title: t.ExactC<t.TypeC<{
|
|
161
|
+
type: t.LiteralC<"Text">;
|
|
162
|
+
value: t.Type<string, string, unknown>;
|
|
163
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
164
|
+
}>>;
|
|
165
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
145
166
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
146
167
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
147
168
|
url: t.StringC;
|
|
@@ -153,6 +174,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
153
174
|
}, {
|
|
154
175
|
title?: string;
|
|
155
176
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
177
|
+
title: t.ExactC<t.TypeC<{
|
|
178
|
+
type: t.LiteralC<"Text">;
|
|
179
|
+
value: t.Type<string, string, unknown>;
|
|
180
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
181
|
+
}>>;
|
|
156
182
|
}>]>>]>]>;
|
|
157
183
|
}>>, t.ExactC<t.TypeC<{
|
|
158
184
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -193,6 +219,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
193
219
|
kind: string;
|
|
194
220
|
} & {
|
|
195
221
|
date?: string | null | undefined;
|
|
222
|
+
title?: {
|
|
223
|
+
type: "Text";
|
|
224
|
+
value: string;
|
|
225
|
+
__TYPE__: "FieldContent";
|
|
226
|
+
};
|
|
196
227
|
}) | ({
|
|
197
228
|
id: string;
|
|
198
229
|
url: string;
|
|
@@ -201,14 +232,30 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
201
232
|
size: string;
|
|
202
233
|
} & {
|
|
203
234
|
date?: string | null | undefined;
|
|
235
|
+
title?: {
|
|
236
|
+
type: "Text";
|
|
237
|
+
value: string;
|
|
238
|
+
__TYPE__: "FieldContent";
|
|
239
|
+
};
|
|
204
240
|
} & {
|
|
205
241
|
__TYPE__: "FileLink";
|
|
206
242
|
} & {
|
|
207
243
|
size?: string;
|
|
244
|
+
title?: {
|
|
245
|
+
type: "Text";
|
|
246
|
+
value: string;
|
|
247
|
+
__TYPE__: "FieldContent";
|
|
248
|
+
};
|
|
208
249
|
}) | ({
|
|
209
250
|
__TYPE__: "DocumentLink";
|
|
210
251
|
} & {
|
|
211
252
|
id: string;
|
|
253
|
+
} & {
|
|
254
|
+
title?: {
|
|
255
|
+
type: "Text";
|
|
256
|
+
value: string;
|
|
257
|
+
__TYPE__: "FieldContent";
|
|
258
|
+
};
|
|
212
259
|
}) | ({
|
|
213
260
|
__TYPE__: "ExternalLink";
|
|
214
261
|
} & {
|
|
@@ -219,6 +266,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
219
266
|
preview?: {
|
|
220
267
|
title?: string;
|
|
221
268
|
} | null | undefined;
|
|
269
|
+
title?: {
|
|
270
|
+
type: "Text";
|
|
271
|
+
value: string;
|
|
272
|
+
__TYPE__: "FieldContent";
|
|
273
|
+
};
|
|
222
274
|
}), ({
|
|
223
275
|
__TYPE__: "ImageLink";
|
|
224
276
|
} & {
|
|
@@ -231,6 +283,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
231
283
|
kind: string;
|
|
232
284
|
} & {
|
|
233
285
|
date?: string | null | undefined;
|
|
286
|
+
title?: {
|
|
287
|
+
type: "Text";
|
|
288
|
+
value: string;
|
|
289
|
+
__TYPE__: "FieldContent";
|
|
290
|
+
};
|
|
234
291
|
}) | ({
|
|
235
292
|
id: string;
|
|
236
293
|
url: string;
|
|
@@ -239,14 +296,30 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
239
296
|
size: string;
|
|
240
297
|
} & {
|
|
241
298
|
date?: string | null | undefined;
|
|
299
|
+
title?: {
|
|
300
|
+
type: "Text";
|
|
301
|
+
value: string;
|
|
302
|
+
__TYPE__: "FieldContent";
|
|
303
|
+
};
|
|
242
304
|
} & {
|
|
243
305
|
__TYPE__: "FileLink";
|
|
244
306
|
} & {
|
|
245
307
|
size?: string;
|
|
308
|
+
title?: {
|
|
309
|
+
type: "Text";
|
|
310
|
+
value: string;
|
|
311
|
+
__TYPE__: "FieldContent";
|
|
312
|
+
};
|
|
246
313
|
}) | ({
|
|
247
314
|
__TYPE__: "DocumentLink";
|
|
248
315
|
} & {
|
|
249
316
|
id: string;
|
|
317
|
+
} & {
|
|
318
|
+
title?: {
|
|
319
|
+
type: "Text";
|
|
320
|
+
value: string;
|
|
321
|
+
__TYPE__: "FieldContent";
|
|
322
|
+
};
|
|
250
323
|
}) | ({
|
|
251
324
|
__TYPE__: "ExternalLink";
|
|
252
325
|
} & {
|
|
@@ -257,6 +330,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
257
330
|
preview?: {
|
|
258
331
|
title?: string;
|
|
259
332
|
} | null | undefined;
|
|
333
|
+
title?: {
|
|
334
|
+
type: "Text";
|
|
335
|
+
value: string;
|
|
336
|
+
__TYPE__: "FieldContent";
|
|
337
|
+
};
|
|
260
338
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
261
339
|
}>]>;
|
|
262
340
|
}>, t.PartialC<{
|
|
@@ -304,6 +382,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
304
382
|
kind: string;
|
|
305
383
|
} & {
|
|
306
384
|
date?: string | null | undefined;
|
|
385
|
+
title?: {
|
|
386
|
+
type: "Text";
|
|
387
|
+
value: string;
|
|
388
|
+
__TYPE__: "FieldContent";
|
|
389
|
+
};
|
|
307
390
|
}) | ({
|
|
308
391
|
id: string;
|
|
309
392
|
url: string;
|
|
@@ -312,14 +395,30 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
312
395
|
size: string;
|
|
313
396
|
} & {
|
|
314
397
|
date?: string | null | undefined;
|
|
398
|
+
title?: {
|
|
399
|
+
type: "Text";
|
|
400
|
+
value: string;
|
|
401
|
+
__TYPE__: "FieldContent";
|
|
402
|
+
};
|
|
315
403
|
} & {
|
|
316
404
|
__TYPE__: "FileLink";
|
|
317
405
|
} & {
|
|
318
406
|
size?: string;
|
|
407
|
+
title?: {
|
|
408
|
+
type: "Text";
|
|
409
|
+
value: string;
|
|
410
|
+
__TYPE__: "FieldContent";
|
|
411
|
+
};
|
|
319
412
|
}) | ({
|
|
320
413
|
__TYPE__: "DocumentLink";
|
|
321
414
|
} & {
|
|
322
415
|
id: string;
|
|
416
|
+
} & {
|
|
417
|
+
title?: {
|
|
418
|
+
type: "Text";
|
|
419
|
+
value: string;
|
|
420
|
+
__TYPE__: "FieldContent";
|
|
421
|
+
};
|
|
323
422
|
}) | ({
|
|
324
423
|
__TYPE__: "ExternalLink";
|
|
325
424
|
} & {
|
|
@@ -330,6 +429,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
330
429
|
preview?: {
|
|
331
430
|
title?: string;
|
|
332
431
|
} | null | undefined;
|
|
432
|
+
title?: {
|
|
433
|
+
type: "Text";
|
|
434
|
+
value: string;
|
|
435
|
+
__TYPE__: "FieldContent";
|
|
436
|
+
};
|
|
333
437
|
});
|
|
334
438
|
start: number;
|
|
335
439
|
end: number;
|
|
@@ -356,6 +460,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
356
460
|
kind: string;
|
|
357
461
|
} & {
|
|
358
462
|
date?: string | null | undefined;
|
|
463
|
+
title?: {
|
|
464
|
+
type: "Text";
|
|
465
|
+
value: string;
|
|
466
|
+
__TYPE__: "FieldContent";
|
|
467
|
+
};
|
|
359
468
|
}) | ({
|
|
360
469
|
id: string;
|
|
361
470
|
url: string;
|
|
@@ -364,14 +473,30 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
364
473
|
size: string;
|
|
365
474
|
} & {
|
|
366
475
|
date?: string | null | undefined;
|
|
476
|
+
title?: {
|
|
477
|
+
type: "Text";
|
|
478
|
+
value: string;
|
|
479
|
+
__TYPE__: "FieldContent";
|
|
480
|
+
};
|
|
367
481
|
} & {
|
|
368
482
|
__TYPE__: "FileLink";
|
|
369
483
|
} & {
|
|
370
484
|
size?: string;
|
|
485
|
+
title?: {
|
|
486
|
+
type: "Text";
|
|
487
|
+
value: string;
|
|
488
|
+
__TYPE__: "FieldContent";
|
|
489
|
+
};
|
|
371
490
|
}) | ({
|
|
372
491
|
__TYPE__: "DocumentLink";
|
|
373
492
|
} & {
|
|
374
493
|
id: string;
|
|
494
|
+
} & {
|
|
495
|
+
title?: {
|
|
496
|
+
type: "Text";
|
|
497
|
+
value: string;
|
|
498
|
+
__TYPE__: "FieldContent";
|
|
499
|
+
};
|
|
375
500
|
}) | ({
|
|
376
501
|
__TYPE__: "ExternalLink";
|
|
377
502
|
} & {
|
|
@@ -382,6 +507,11 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
382
507
|
preview?: {
|
|
383
508
|
title?: string;
|
|
384
509
|
} | null | undefined;
|
|
510
|
+
title?: {
|
|
511
|
+
type: "Text";
|
|
512
|
+
value: string;
|
|
513
|
+
__TYPE__: "FieldContent";
|
|
514
|
+
};
|
|
385
515
|
});
|
|
386
516
|
start: number;
|
|
387
517
|
end: number;
|
|
@@ -533,6 +663,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
533
663
|
kind: string;
|
|
534
664
|
} & {
|
|
535
665
|
date?: string | null | undefined;
|
|
666
|
+
title?: {
|
|
667
|
+
type: "Text";
|
|
668
|
+
value: string;
|
|
669
|
+
__TYPE__: "FieldContent";
|
|
670
|
+
};
|
|
536
671
|
}) | ({
|
|
537
672
|
id: string;
|
|
538
673
|
url: string;
|
|
@@ -541,14 +676,30 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
541
676
|
size: string;
|
|
542
677
|
} & {
|
|
543
678
|
date?: string | null | undefined;
|
|
679
|
+
title?: {
|
|
680
|
+
type: "Text";
|
|
681
|
+
value: string;
|
|
682
|
+
__TYPE__: "FieldContent";
|
|
683
|
+
};
|
|
544
684
|
} & {
|
|
545
685
|
__TYPE__: "FileLink";
|
|
546
686
|
} & {
|
|
547
687
|
size?: string;
|
|
688
|
+
title?: {
|
|
689
|
+
type: "Text";
|
|
690
|
+
value: string;
|
|
691
|
+
__TYPE__: "FieldContent";
|
|
692
|
+
};
|
|
548
693
|
}) | ({
|
|
549
694
|
__TYPE__: "DocumentLink";
|
|
550
695
|
} & {
|
|
551
696
|
id: string;
|
|
697
|
+
} & {
|
|
698
|
+
title?: {
|
|
699
|
+
type: "Text";
|
|
700
|
+
value: string;
|
|
701
|
+
__TYPE__: "FieldContent";
|
|
702
|
+
};
|
|
552
703
|
}) | ({
|
|
553
704
|
__TYPE__: "ExternalLink";
|
|
554
705
|
} & {
|
|
@@ -559,6 +710,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
559
710
|
preview?: {
|
|
560
711
|
title?: string;
|
|
561
712
|
} | null | undefined;
|
|
713
|
+
title?: {
|
|
714
|
+
type: "Text";
|
|
715
|
+
value: string;
|
|
716
|
+
__TYPE__: "FieldContent";
|
|
717
|
+
};
|
|
562
718
|
});
|
|
563
719
|
} | {
|
|
564
720
|
__TYPE__: "StructuredTextContent";
|
|
@@ -599,6 +755,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
599
755
|
kind: string;
|
|
600
756
|
} & {
|
|
601
757
|
date?: string | null | undefined;
|
|
758
|
+
title?: {
|
|
759
|
+
type: "Text";
|
|
760
|
+
value: string;
|
|
761
|
+
__TYPE__: "FieldContent";
|
|
762
|
+
};
|
|
602
763
|
}) | ({
|
|
603
764
|
id: string;
|
|
604
765
|
url: string;
|
|
@@ -607,14 +768,30 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
607
768
|
size: string;
|
|
608
769
|
} & {
|
|
609
770
|
date?: string | null | undefined;
|
|
771
|
+
title?: {
|
|
772
|
+
type: "Text";
|
|
773
|
+
value: string;
|
|
774
|
+
__TYPE__: "FieldContent";
|
|
775
|
+
};
|
|
610
776
|
} & {
|
|
611
777
|
__TYPE__: "FileLink";
|
|
612
778
|
} & {
|
|
613
779
|
size?: string;
|
|
780
|
+
title?: {
|
|
781
|
+
type: "Text";
|
|
782
|
+
value: string;
|
|
783
|
+
__TYPE__: "FieldContent";
|
|
784
|
+
};
|
|
614
785
|
}) | ({
|
|
615
786
|
__TYPE__: "DocumentLink";
|
|
616
787
|
} & {
|
|
617
788
|
id: string;
|
|
789
|
+
} & {
|
|
790
|
+
title?: {
|
|
791
|
+
type: "Text";
|
|
792
|
+
value: string;
|
|
793
|
+
__TYPE__: "FieldContent";
|
|
794
|
+
};
|
|
618
795
|
}) | ({
|
|
619
796
|
__TYPE__: "ExternalLink";
|
|
620
797
|
} & {
|
|
@@ -625,6 +802,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
625
802
|
preview?: {
|
|
626
803
|
title?: string;
|
|
627
804
|
} | null | undefined;
|
|
805
|
+
title?: {
|
|
806
|
+
type: "Text";
|
|
807
|
+
value: string;
|
|
808
|
+
__TYPE__: "FieldContent";
|
|
809
|
+
};
|
|
628
810
|
}) | null | undefined;
|
|
629
811
|
};
|
|
630
812
|
} & {
|
|
@@ -672,6 +854,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
672
854
|
kind: string;
|
|
673
855
|
} & {
|
|
674
856
|
date?: string | null | undefined;
|
|
857
|
+
title?: {
|
|
858
|
+
type: "Text";
|
|
859
|
+
value: string;
|
|
860
|
+
__TYPE__: "FieldContent";
|
|
861
|
+
};
|
|
675
862
|
}) | ({
|
|
676
863
|
id: string;
|
|
677
864
|
url: string;
|
|
@@ -680,14 +867,30 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
680
867
|
size: string;
|
|
681
868
|
} & {
|
|
682
869
|
date?: string | null | undefined;
|
|
870
|
+
title?: {
|
|
871
|
+
type: "Text";
|
|
872
|
+
value: string;
|
|
873
|
+
__TYPE__: "FieldContent";
|
|
874
|
+
};
|
|
683
875
|
} & {
|
|
684
876
|
__TYPE__: "FileLink";
|
|
685
877
|
} & {
|
|
686
878
|
size?: string;
|
|
879
|
+
title?: {
|
|
880
|
+
type: "Text";
|
|
881
|
+
value: string;
|
|
882
|
+
__TYPE__: "FieldContent";
|
|
883
|
+
};
|
|
687
884
|
}) | ({
|
|
688
885
|
__TYPE__: "DocumentLink";
|
|
689
886
|
} & {
|
|
690
887
|
id: string;
|
|
888
|
+
} & {
|
|
889
|
+
title?: {
|
|
890
|
+
type: "Text";
|
|
891
|
+
value: string;
|
|
892
|
+
__TYPE__: "FieldContent";
|
|
893
|
+
};
|
|
691
894
|
}) | ({
|
|
692
895
|
__TYPE__: "ExternalLink";
|
|
693
896
|
} & {
|
|
@@ -698,6 +901,11 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
698
901
|
preview?: {
|
|
699
902
|
title?: string;
|
|
700
903
|
} | null | undefined;
|
|
904
|
+
title?: {
|
|
905
|
+
type: "Text";
|
|
906
|
+
value: string;
|
|
907
|
+
__TYPE__: "FieldContent";
|
|
908
|
+
};
|
|
701
909
|
});
|
|
702
910
|
start: number;
|
|
703
911
|
end: number;
|
|
@@ -847,6 +1055,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
847
1055
|
kind: string;
|
|
848
1056
|
} & {
|
|
849
1057
|
date?: string | null | undefined;
|
|
1058
|
+
title?: {
|
|
1059
|
+
type: "Text";
|
|
1060
|
+
value: string;
|
|
1061
|
+
__TYPE__: "FieldContent";
|
|
1062
|
+
};
|
|
850
1063
|
}) | ({
|
|
851
1064
|
id: string;
|
|
852
1065
|
url: string;
|
|
@@ -855,14 +1068,30 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
855
1068
|
size: string;
|
|
856
1069
|
} & {
|
|
857
1070
|
date?: string | null | undefined;
|
|
1071
|
+
title?: {
|
|
1072
|
+
type: "Text";
|
|
1073
|
+
value: string;
|
|
1074
|
+
__TYPE__: "FieldContent";
|
|
1075
|
+
};
|
|
858
1076
|
} & {
|
|
859
1077
|
__TYPE__: "FileLink";
|
|
860
1078
|
} & {
|
|
861
1079
|
size?: string;
|
|
1080
|
+
title?: {
|
|
1081
|
+
type: "Text";
|
|
1082
|
+
value: string;
|
|
1083
|
+
__TYPE__: "FieldContent";
|
|
1084
|
+
};
|
|
862
1085
|
}) | ({
|
|
863
1086
|
__TYPE__: "DocumentLink";
|
|
864
1087
|
} & {
|
|
865
1088
|
id: string;
|
|
1089
|
+
} & {
|
|
1090
|
+
title?: {
|
|
1091
|
+
type: "Text";
|
|
1092
|
+
value: string;
|
|
1093
|
+
__TYPE__: "FieldContent";
|
|
1094
|
+
};
|
|
866
1095
|
}) | ({
|
|
867
1096
|
__TYPE__: "ExternalLink";
|
|
868
1097
|
} & {
|
|
@@ -873,6 +1102,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
873
1102
|
preview?: {
|
|
874
1103
|
title?: string;
|
|
875
1104
|
} | null | undefined;
|
|
1105
|
+
title?: {
|
|
1106
|
+
type: "Text";
|
|
1107
|
+
value: string;
|
|
1108
|
+
__TYPE__: "FieldContent";
|
|
1109
|
+
};
|
|
876
1110
|
});
|
|
877
1111
|
}> | import("fp-ts/lib/Either").Right<{
|
|
878
1112
|
__TYPE__: "StructuredTextContent";
|
|
@@ -913,6 +1147,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
913
1147
|
kind: string;
|
|
914
1148
|
} & {
|
|
915
1149
|
date?: string | null | undefined;
|
|
1150
|
+
title?: {
|
|
1151
|
+
type: "Text";
|
|
1152
|
+
value: string;
|
|
1153
|
+
__TYPE__: "FieldContent";
|
|
1154
|
+
};
|
|
916
1155
|
}) | ({
|
|
917
1156
|
id: string;
|
|
918
1157
|
url: string;
|
|
@@ -921,14 +1160,30 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
921
1160
|
size: string;
|
|
922
1161
|
} & {
|
|
923
1162
|
date?: string | null | undefined;
|
|
1163
|
+
title?: {
|
|
1164
|
+
type: "Text";
|
|
1165
|
+
value: string;
|
|
1166
|
+
__TYPE__: "FieldContent";
|
|
1167
|
+
};
|
|
924
1168
|
} & {
|
|
925
1169
|
__TYPE__: "FileLink";
|
|
926
1170
|
} & {
|
|
927
1171
|
size?: string;
|
|
1172
|
+
title?: {
|
|
1173
|
+
type: "Text";
|
|
1174
|
+
value: string;
|
|
1175
|
+
__TYPE__: "FieldContent";
|
|
1176
|
+
};
|
|
928
1177
|
}) | ({
|
|
929
1178
|
__TYPE__: "DocumentLink";
|
|
930
1179
|
} & {
|
|
931
1180
|
id: string;
|
|
1181
|
+
} & {
|
|
1182
|
+
title?: {
|
|
1183
|
+
type: "Text";
|
|
1184
|
+
value: string;
|
|
1185
|
+
__TYPE__: "FieldContent";
|
|
1186
|
+
};
|
|
932
1187
|
}) | ({
|
|
933
1188
|
__TYPE__: "ExternalLink";
|
|
934
1189
|
} & {
|
|
@@ -939,6 +1194,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
939
1194
|
preview?: {
|
|
940
1195
|
title?: string;
|
|
941
1196
|
} | null | undefined;
|
|
1197
|
+
title?: {
|
|
1198
|
+
type: "Text";
|
|
1199
|
+
value: string;
|
|
1200
|
+
__TYPE__: "FieldContent";
|
|
1201
|
+
};
|
|
942
1202
|
}) | null | undefined;
|
|
943
1203
|
};
|
|
944
1204
|
} & {
|
|
@@ -986,6 +1246,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
986
1246
|
kind: string;
|
|
987
1247
|
} & {
|
|
988
1248
|
date?: string | null | undefined;
|
|
1249
|
+
title?: {
|
|
1250
|
+
type: "Text";
|
|
1251
|
+
value: string;
|
|
1252
|
+
__TYPE__: "FieldContent";
|
|
1253
|
+
};
|
|
989
1254
|
}) | ({
|
|
990
1255
|
id: string;
|
|
991
1256
|
url: string;
|
|
@@ -994,14 +1259,30 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
994
1259
|
size: string;
|
|
995
1260
|
} & {
|
|
996
1261
|
date?: string | null | undefined;
|
|
1262
|
+
title?: {
|
|
1263
|
+
type: "Text";
|
|
1264
|
+
value: string;
|
|
1265
|
+
__TYPE__: "FieldContent";
|
|
1266
|
+
};
|
|
997
1267
|
} & {
|
|
998
1268
|
__TYPE__: "FileLink";
|
|
999
1269
|
} & {
|
|
1000
1270
|
size?: string;
|
|
1271
|
+
title?: {
|
|
1272
|
+
type: "Text";
|
|
1273
|
+
value: string;
|
|
1274
|
+
__TYPE__: "FieldContent";
|
|
1275
|
+
};
|
|
1001
1276
|
}) | ({
|
|
1002
1277
|
__TYPE__: "DocumentLink";
|
|
1003
1278
|
} & {
|
|
1004
1279
|
id: string;
|
|
1280
|
+
} & {
|
|
1281
|
+
title?: {
|
|
1282
|
+
type: "Text";
|
|
1283
|
+
value: string;
|
|
1284
|
+
__TYPE__: "FieldContent";
|
|
1285
|
+
};
|
|
1005
1286
|
}) | ({
|
|
1006
1287
|
__TYPE__: "ExternalLink";
|
|
1007
1288
|
} & {
|
|
@@ -1012,6 +1293,11 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1012
1293
|
preview?: {
|
|
1013
1294
|
title?: string;
|
|
1014
1295
|
} | null | undefined;
|
|
1296
|
+
title?: {
|
|
1297
|
+
type: "Text";
|
|
1298
|
+
value: string;
|
|
1299
|
+
__TYPE__: "FieldContent";
|
|
1300
|
+
};
|
|
1015
1301
|
});
|
|
1016
1302
|
start: number;
|
|
1017
1303
|
end: number;
|