@prismicio/types-internal 2.2.0-traverse.alpha-9 → 2.2.0-traverse.alpha-11

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.
Files changed (32) hide show
  1. package/lib/content/Document.d.ts +384 -192
  2. package/lib/content/fields/GroupContent.d.ts +84 -42
  3. package/lib/content/fields/WidgetContent.d.ts +384 -192
  4. package/lib/content/fields/nestable/NestableContent.d.ts +48 -24
  5. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +117 -105
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.js +23 -18
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +60 -30
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +96 -48
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +36 -18
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +96 -48
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +96 -48
  12. package/lib/content/fields/slices/Slice/index.d.ts +216 -108
  13. package/lib/content/fields/slices/SliceItem.d.ts +216 -108
  14. package/lib/content/fields/slices/SlicesContent.d.ts +288 -144
  15. package/lib/import/converters/fields/nestable/RichText/textBlock.js +29 -16
  16. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.d.ts +9 -1
  17. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.d.ts +18 -4
  18. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.js +9 -2
  19. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.d.ts +12 -0
  20. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.js +16 -0
  21. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.d.ts +0 -2
  22. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.js +0 -2
  23. package/package.json +1 -1
  24. package/src/content/fields/nestable/RichTextContent/Blocks.ts +26 -25
  25. package/src/import/converters/fields/nestable/RichText/textBlock.ts +30 -16
  26. package/src/import/validators/fields/nestable/ImportRichText/blocks/Span.ts +9 -5
  27. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.ts +19 -0
  28. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.ts +0 -2
  29. package/lib/import/converters/fields/nestable/GeooPoint.d.ts +0 -3
  30. package/lib/import/converters/fields/nestable/GeooPoint.js +0 -15
  31. package/lib/import/converters/fields/nestable/RichText.d.ts +0 -4
  32. package/lib/import/converters/fields/nestable/RichText.js +0 -55
@@ -289,7 +289,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
289
289
  text: t.StringC;
290
290
  }>, t.PartialC<{
291
291
  spans: t.Type<({
292
- data?: ({
292
+ data: ({
293
293
  __TYPE__: "ImageLink";
294
294
  } & {
295
295
  id: string;
@@ -327,15 +327,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
327
327
  preview?: {
328
328
  title?: string;
329
329
  } | null | undefined;
330
- }) | {
331
- label: string;
332
- };
333
- } & {
330
+ });
331
+ start: number;
332
+ end: number;
333
+ type: "hyperlink";
334
+ } | {
335
+ data: string;
336
+ start: number;
337
+ end: number;
338
+ type: "label";
339
+ } | {
334
340
  start: number;
335
341
  end: number;
336
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
342
+ type: "strong" | "em";
337
343
  })[], ({
338
- data?: ({
344
+ data: ({
339
345
  __TYPE__: "ImageLink";
340
346
  } & {
341
347
  id: string;
@@ -373,13 +379,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
373
379
  preview?: {
374
380
  title?: string;
375
381
  } | null | undefined;
376
- }) | {
377
- label: string;
378
- };
379
- } & {
382
+ });
380
383
  start: number;
381
384
  end: number;
382
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
385
+ type: "hyperlink";
386
+ } | {
387
+ data: string;
388
+ start: number;
389
+ end: number;
390
+ type: "label";
391
+ } | {
392
+ start: number;
393
+ end: number;
394
+ type: "strong" | "em";
383
395
  })[], unknown>;
384
396
  }>]>;
385
397
  }>, t.PartialC<{
@@ -671,7 +683,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
671
683
  text: t.StringC;
672
684
  }>, t.PartialC<{
673
685
  spans: t.Type<({
674
- data?: ({
686
+ data: ({
675
687
  __TYPE__: "ImageLink";
676
688
  } & {
677
689
  id: string;
@@ -709,15 +721,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
709
721
  preview?: {
710
722
  title?: string;
711
723
  } | null | undefined;
712
- }) | {
713
- label: string;
714
- };
715
- } & {
724
+ });
716
725
  start: number;
717
726
  end: number;
718
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
727
+ type: "hyperlink";
728
+ } | {
729
+ data: string;
730
+ start: number;
731
+ end: number;
732
+ type: "label";
733
+ } | {
734
+ start: number;
735
+ end: number;
736
+ type: "strong" | "em";
719
737
  })[], ({
720
- data?: ({
738
+ data: ({
721
739
  __TYPE__: "ImageLink";
722
740
  } & {
723
741
  id: string;
@@ -755,13 +773,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
755
773
  preview?: {
756
774
  title?: string;
757
775
  } | null | undefined;
758
- }) | {
759
- label: string;
760
- };
761
- } & {
776
+ });
777
+ start: number;
778
+ end: number;
779
+ type: "hyperlink";
780
+ } | {
781
+ data: string;
782
+ start: number;
783
+ end: number;
784
+ type: "label";
785
+ } | {
762
786
  start: number;
763
787
  end: number;
764
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
788
+ type: "strong" | "em";
765
789
  })[], unknown>;
766
790
  }>]>;
767
791
  }>, t.PartialC<{
@@ -1062,7 +1086,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1062
1086
  text: t.StringC;
1063
1087
  }>, t.PartialC<{
1064
1088
  spans: t.Type<({
1065
- data?: ({
1089
+ data: ({
1066
1090
  __TYPE__: "ImageLink";
1067
1091
  } & {
1068
1092
  id: string;
@@ -1100,15 +1124,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1100
1124
  preview?: {
1101
1125
  title?: string;
1102
1126
  } | null | undefined;
1103
- }) | {
1104
- label: string;
1105
- };
1106
- } & {
1127
+ });
1128
+ start: number;
1129
+ end: number;
1130
+ type: "hyperlink";
1131
+ } | {
1132
+ data: string;
1107
1133
  start: number;
1108
1134
  end: number;
1109
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1135
+ type: "label";
1136
+ } | {
1137
+ start: number;
1138
+ end: number;
1139
+ type: "strong" | "em";
1110
1140
  })[], ({
1111
- data?: ({
1141
+ data: ({
1112
1142
  __TYPE__: "ImageLink";
1113
1143
  } & {
1114
1144
  id: string;
@@ -1146,13 +1176,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1146
1176
  preview?: {
1147
1177
  title?: string;
1148
1178
  } | null | undefined;
1149
- }) | {
1150
- label: string;
1151
- };
1152
- } & {
1179
+ });
1153
1180
  start: number;
1154
1181
  end: number;
1155
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1182
+ type: "hyperlink";
1183
+ } | {
1184
+ data: string;
1185
+ start: number;
1186
+ end: number;
1187
+ type: "label";
1188
+ } | {
1189
+ start: number;
1190
+ end: number;
1191
+ type: "strong" | "em";
1156
1192
  })[], unknown>;
1157
1193
  }>]>;
1158
1194
  }>, t.PartialC<{
@@ -1445,7 +1481,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1445
1481
  text: t.StringC;
1446
1482
  }>, t.PartialC<{
1447
1483
  spans: t.Type<({
1448
- data?: ({
1484
+ data: ({
1449
1485
  __TYPE__: "ImageLink";
1450
1486
  } & {
1451
1487
  id: string;
@@ -1483,15 +1519,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1483
1519
  preview?: {
1484
1520
  title?: string;
1485
1521
  } | null | undefined;
1486
- }) | {
1487
- label: string;
1488
- };
1489
- } & {
1522
+ });
1490
1523
  start: number;
1491
1524
  end: number;
1492
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1525
+ type: "hyperlink";
1526
+ } | {
1527
+ data: string;
1528
+ start: number;
1529
+ end: number;
1530
+ type: "label";
1531
+ } | {
1532
+ start: number;
1533
+ end: number;
1534
+ type: "strong" | "em";
1493
1535
  })[], ({
1494
- data?: ({
1536
+ data: ({
1495
1537
  __TYPE__: "ImageLink";
1496
1538
  } & {
1497
1539
  id: string;
@@ -1529,13 +1571,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1529
1571
  preview?: {
1530
1572
  title?: string;
1531
1573
  } | null | undefined;
1532
- }) | {
1533
- label: string;
1534
- };
1535
- } & {
1574
+ });
1575
+ start: number;
1576
+ end: number;
1577
+ type: "hyperlink";
1578
+ } | {
1579
+ data: string;
1536
1580
  start: number;
1537
1581
  end: number;
1538
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1582
+ type: "label";
1583
+ } | {
1584
+ start: number;
1585
+ end: number;
1586
+ type: "strong" | "em";
1539
1587
  })[], unknown>;
1540
1588
  }>]>;
1541
1589
  }>, t.PartialC<{
@@ -1830,7 +1878,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1830
1878
  text: t.StringC;
1831
1879
  }>, t.PartialC<{
1832
1880
  spans: t.Type<({
1833
- data?: ({
1881
+ data: ({
1834
1882
  __TYPE__: "ImageLink";
1835
1883
  } & {
1836
1884
  id: string;
@@ -1868,15 +1916,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1868
1916
  preview?: {
1869
1917
  title?: string;
1870
1918
  } | null | undefined;
1871
- }) | {
1872
- label: string;
1873
- };
1874
- } & {
1919
+ });
1875
1920
  start: number;
1876
1921
  end: number;
1877
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1922
+ type: "hyperlink";
1923
+ } | {
1924
+ data: string;
1925
+ start: number;
1926
+ end: number;
1927
+ type: "label";
1928
+ } | {
1929
+ start: number;
1930
+ end: number;
1931
+ type: "strong" | "em";
1878
1932
  })[], ({
1879
- data?: ({
1933
+ data: ({
1880
1934
  __TYPE__: "ImageLink";
1881
1935
  } & {
1882
1936
  id: string;
@@ -1914,13 +1968,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1914
1968
  preview?: {
1915
1969
  title?: string;
1916
1970
  } | null | undefined;
1917
- }) | {
1918
- label: string;
1919
- };
1920
- } & {
1971
+ });
1921
1972
  start: number;
1922
1973
  end: number;
1923
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1974
+ type: "hyperlink";
1975
+ } | {
1976
+ data: string;
1977
+ start: number;
1978
+ end: number;
1979
+ type: "label";
1980
+ } | {
1981
+ start: number;
1982
+ end: number;
1983
+ type: "strong" | "em";
1924
1984
  })[], unknown>;
1925
1985
  }>]>;
1926
1986
  }>, t.PartialC<{
@@ -2213,7 +2273,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2213
2273
  text: t.StringC;
2214
2274
  }>, t.PartialC<{
2215
2275
  spans: t.Type<({
2216
- data?: ({
2276
+ data: ({
2217
2277
  __TYPE__: "ImageLink";
2218
2278
  } & {
2219
2279
  id: string;
@@ -2251,15 +2311,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2251
2311
  preview?: {
2252
2312
  title?: string;
2253
2313
  } | null | undefined;
2254
- }) | {
2255
- label: string;
2256
- };
2257
- } & {
2314
+ });
2315
+ start: number;
2316
+ end: number;
2317
+ type: "hyperlink";
2318
+ } | {
2319
+ data: string;
2320
+ start: number;
2321
+ end: number;
2322
+ type: "label";
2323
+ } | {
2258
2324
  start: number;
2259
2325
  end: number;
2260
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2326
+ type: "strong" | "em";
2261
2327
  })[], ({
2262
- data?: ({
2328
+ data: ({
2263
2329
  __TYPE__: "ImageLink";
2264
2330
  } & {
2265
2331
  id: string;
@@ -2297,13 +2363,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2297
2363
  preview?: {
2298
2364
  title?: string;
2299
2365
  } | null | undefined;
2300
- }) | {
2301
- label: string;
2302
- };
2303
- } & {
2366
+ });
2367
+ start: number;
2368
+ end: number;
2369
+ type: "hyperlink";
2370
+ } | {
2371
+ data: string;
2372
+ start: number;
2373
+ end: number;
2374
+ type: "label";
2375
+ } | {
2304
2376
  start: number;
2305
2377
  end: number;
2306
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2378
+ type: "strong" | "em";
2307
2379
  })[], unknown>;
2308
2380
  }>]>;
2309
2381
  }>, t.PartialC<{
@@ -2595,7 +2667,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2595
2667
  text: t.StringC;
2596
2668
  }>, t.PartialC<{
2597
2669
  spans: t.Type<({
2598
- data?: ({
2670
+ data: ({
2599
2671
  __TYPE__: "ImageLink";
2600
2672
  } & {
2601
2673
  id: string;
@@ -2633,15 +2705,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2633
2705
  preview?: {
2634
2706
  title?: string;
2635
2707
  } | null | undefined;
2636
- }) | {
2637
- label: string;
2638
- };
2639
- } & {
2708
+ });
2640
2709
  start: number;
2641
2710
  end: number;
2642
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2711
+ type: "hyperlink";
2712
+ } | {
2713
+ data: string;
2714
+ start: number;
2715
+ end: number;
2716
+ type: "label";
2717
+ } | {
2718
+ start: number;
2719
+ end: number;
2720
+ type: "strong" | "em";
2643
2721
  })[], ({
2644
- data?: ({
2722
+ data: ({
2645
2723
  __TYPE__: "ImageLink";
2646
2724
  } & {
2647
2725
  id: string;
@@ -2679,13 +2757,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2679
2757
  preview?: {
2680
2758
  title?: string;
2681
2759
  } | null | undefined;
2682
- }) | {
2683
- label: string;
2684
- };
2685
- } & {
2760
+ });
2761
+ start: number;
2762
+ end: number;
2763
+ type: "hyperlink";
2764
+ } | {
2765
+ data: string;
2766
+ start: number;
2767
+ end: number;
2768
+ type: "label";
2769
+ } | {
2686
2770
  start: number;
2687
2771
  end: number;
2688
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2772
+ type: "strong" | "em";
2689
2773
  })[], unknown>;
2690
2774
  }>]>;
2691
2775
  }>, t.PartialC<{
@@ -2979,7 +3063,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2979
3063
  text: t.StringC;
2980
3064
  }>, t.PartialC<{
2981
3065
  spans: t.Type<({
2982
- data?: ({
3066
+ data: ({
2983
3067
  __TYPE__: "ImageLink";
2984
3068
  } & {
2985
3069
  id: string;
@@ -3017,15 +3101,21 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3017
3101
  preview?: {
3018
3102
  title?: string;
3019
3103
  } | null | undefined;
3020
- }) | {
3021
- label: string;
3022
- };
3023
- } & {
3104
+ });
3105
+ start: number;
3106
+ end: number;
3107
+ type: "hyperlink";
3108
+ } | {
3109
+ data: string;
3024
3110
  start: number;
3025
3111
  end: number;
3026
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3112
+ type: "label";
3113
+ } | {
3114
+ start: number;
3115
+ end: number;
3116
+ type: "strong" | "em";
3027
3117
  })[], ({
3028
- data?: ({
3118
+ data: ({
3029
3119
  __TYPE__: "ImageLink";
3030
3120
  } & {
3031
3121
  id: string;
@@ -3063,13 +3153,19 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3063
3153
  preview?: {
3064
3154
  title?: string;
3065
3155
  } | null | undefined;
3066
- }) | {
3067
- label: string;
3068
- };
3069
- } & {
3156
+ });
3070
3157
  start: number;
3071
3158
  end: number;
3072
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3159
+ type: "hyperlink";
3160
+ } | {
3161
+ data: string;
3162
+ start: number;
3163
+ end: number;
3164
+ type: "label";
3165
+ } | {
3166
+ start: number;
3167
+ end: number;
3168
+ type: "strong" | "em";
3073
3169
  })[], unknown>;
3074
3170
  }>]>;
3075
3171
  }>, t.PartialC<{
@@ -3354,7 +3450,7 @@ export declare const DocumentLegacy: {
3354
3450
  text: string;
3355
3451
  } & {
3356
3452
  spans?: ({
3357
- data?: ({
3453
+ data: ({
3358
3454
  __TYPE__: "ImageLink";
3359
3455
  } & {
3360
3456
  id: string;
@@ -3392,13 +3488,19 @@ export declare const DocumentLegacy: {
3392
3488
  preview?: {
3393
3489
  title?: string;
3394
3490
  } | null | undefined;
3395
- }) | {
3396
- label: string;
3397
- };
3398
- } & {
3491
+ });
3399
3492
  start: number;
3400
3493
  end: number;
3401
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3494
+ type: "hyperlink";
3495
+ } | {
3496
+ data: string;
3497
+ start: number;
3498
+ end: number;
3499
+ type: "label";
3500
+ } | {
3501
+ start: number;
3502
+ end: number;
3503
+ type: "strong" | "em";
3402
3504
  })[];
3403
3505
  };
3404
3506
  } & {
@@ -3664,7 +3766,7 @@ export declare const DocumentLegacy: {
3664
3766
  text: string;
3665
3767
  } & {
3666
3768
  spans?: ({
3667
- data?: ({
3769
+ data: ({
3668
3770
  __TYPE__: "ImageLink";
3669
3771
  } & {
3670
3772
  id: string;
@@ -3702,13 +3804,19 @@ export declare const DocumentLegacy: {
3702
3804
  preview?: {
3703
3805
  title?: string;
3704
3806
  } | null | undefined;
3705
- }) | {
3706
- label: string;
3707
- };
3708
- } & {
3807
+ });
3709
3808
  start: number;
3710
3809
  end: number;
3711
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3810
+ type: "hyperlink";
3811
+ } | {
3812
+ data: string;
3813
+ start: number;
3814
+ end: number;
3815
+ type: "label";
3816
+ } | {
3817
+ start: number;
3818
+ end: number;
3819
+ type: "strong" | "em";
3712
3820
  })[];
3713
3821
  };
3714
3822
  } & {
@@ -3981,7 +4089,7 @@ export declare const DocumentLegacy: {
3981
4089
  text: string;
3982
4090
  } & {
3983
4091
  spans?: ({
3984
- data?: ({
4092
+ data: ({
3985
4093
  __TYPE__: "ImageLink";
3986
4094
  } & {
3987
4095
  id: string;
@@ -4019,13 +4127,19 @@ export declare const DocumentLegacy: {
4019
4127
  preview?: {
4020
4128
  title?: string;
4021
4129
  } | null | undefined;
4022
- }) | {
4023
- label: string;
4024
- };
4025
- } & {
4130
+ });
4131
+ start: number;
4132
+ end: number;
4133
+ type: "hyperlink";
4134
+ } | {
4135
+ data: string;
4136
+ start: number;
4137
+ end: number;
4138
+ type: "label";
4139
+ } | {
4026
4140
  start: number;
4027
4141
  end: number;
4028
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4142
+ type: "strong" | "em";
4029
4143
  })[];
4030
4144
  };
4031
4145
  } & {
@@ -4291,7 +4405,7 @@ export declare const DocumentLegacy: {
4291
4405
  text: string;
4292
4406
  } & {
4293
4407
  spans?: ({
4294
- data?: ({
4408
+ data: ({
4295
4409
  __TYPE__: "ImageLink";
4296
4410
  } & {
4297
4411
  id: string;
@@ -4329,13 +4443,19 @@ export declare const DocumentLegacy: {
4329
4443
  preview?: {
4330
4444
  title?: string;
4331
4445
  } | null | undefined;
4332
- }) | {
4333
- label: string;
4334
- };
4335
- } & {
4446
+ });
4447
+ start: number;
4448
+ end: number;
4449
+ type: "hyperlink";
4450
+ } | {
4451
+ data: string;
4452
+ start: number;
4453
+ end: number;
4454
+ type: "label";
4455
+ } | {
4336
4456
  start: number;
4337
4457
  end: number;
4338
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4458
+ type: "strong" | "em";
4339
4459
  })[];
4340
4460
  };
4341
4461
  } & {
@@ -4602,7 +4722,7 @@ export declare const DocumentLegacy: {
4602
4722
  text: string;
4603
4723
  } & {
4604
4724
  spans?: ({
4605
- data?: ({
4725
+ data: ({
4606
4726
  __TYPE__: "ImageLink";
4607
4727
  } & {
4608
4728
  id: string;
@@ -4640,13 +4760,19 @@ export declare const DocumentLegacy: {
4640
4760
  preview?: {
4641
4761
  title?: string;
4642
4762
  } | null | undefined;
4643
- }) | {
4644
- label: string;
4645
- };
4646
- } & {
4763
+ });
4764
+ start: number;
4765
+ end: number;
4766
+ type: "hyperlink";
4767
+ } | {
4768
+ data: string;
4769
+ start: number;
4770
+ end: number;
4771
+ type: "label";
4772
+ } | {
4647
4773
  start: number;
4648
4774
  end: number;
4649
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4775
+ type: "strong" | "em";
4650
4776
  })[];
4651
4777
  };
4652
4778
  } & {
@@ -4912,7 +5038,7 @@ export declare const DocumentLegacy: {
4912
5038
  text: string;
4913
5039
  } & {
4914
5040
  spans?: ({
4915
- data?: ({
5041
+ data: ({
4916
5042
  __TYPE__: "ImageLink";
4917
5043
  } & {
4918
5044
  id: string;
@@ -4950,13 +5076,19 @@ export declare const DocumentLegacy: {
4950
5076
  preview?: {
4951
5077
  title?: string;
4952
5078
  } | null | undefined;
4953
- }) | {
4954
- label: string;
4955
- };
4956
- } & {
5079
+ });
5080
+ start: number;
5081
+ end: number;
5082
+ type: "hyperlink";
5083
+ } | {
5084
+ data: string;
5085
+ start: number;
5086
+ end: number;
5087
+ type: "label";
5088
+ } | {
4957
5089
  start: number;
4958
5090
  end: number;
4959
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5091
+ type: "strong" | "em";
4960
5092
  })[];
4961
5093
  };
4962
5094
  } & {
@@ -5224,7 +5356,7 @@ export declare const DocumentLegacy: {
5224
5356
  text: string;
5225
5357
  } & {
5226
5358
  spans?: ({
5227
- data?: ({
5359
+ data: ({
5228
5360
  __TYPE__: "ImageLink";
5229
5361
  } & {
5230
5362
  id: string;
@@ -5262,13 +5394,19 @@ export declare const DocumentLegacy: {
5262
5394
  preview?: {
5263
5395
  title?: string;
5264
5396
  } | null | undefined;
5265
- }) | {
5266
- label: string;
5267
- };
5268
- } & {
5397
+ });
5269
5398
  start: number;
5270
5399
  end: number;
5271
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5400
+ type: "hyperlink";
5401
+ } | {
5402
+ data: string;
5403
+ start: number;
5404
+ end: number;
5405
+ type: "label";
5406
+ } | {
5407
+ start: number;
5408
+ end: number;
5409
+ type: "strong" | "em";
5272
5410
  })[];
5273
5411
  };
5274
5412
  } & {
@@ -5534,7 +5672,7 @@ export declare const DocumentLegacy: {
5534
5672
  text: string;
5535
5673
  } & {
5536
5674
  spans?: ({
5537
- data?: ({
5675
+ data: ({
5538
5676
  __TYPE__: "ImageLink";
5539
5677
  } & {
5540
5678
  id: string;
@@ -5572,13 +5710,19 @@ export declare const DocumentLegacy: {
5572
5710
  preview?: {
5573
5711
  title?: string;
5574
5712
  } | null | undefined;
5575
- }) | {
5576
- label: string;
5577
- };
5578
- } & {
5713
+ });
5714
+ start: number;
5715
+ end: number;
5716
+ type: "hyperlink";
5717
+ } | {
5718
+ data: string;
5579
5719
  start: number;
5580
5720
  end: number;
5581
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5721
+ type: "label";
5722
+ } | {
5723
+ start: number;
5724
+ end: number;
5725
+ type: "strong" | "em";
5582
5726
  })[];
5583
5727
  };
5584
5728
  } & {
@@ -5874,7 +6018,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5874
6018
  text: string;
5875
6019
  } & {
5876
6020
  spans?: ({
5877
- data?: ({
6021
+ data: ({
5878
6022
  __TYPE__: "ImageLink";
5879
6023
  } & {
5880
6024
  id: string;
@@ -5912,13 +6056,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5912
6056
  preview?: {
5913
6057
  title?: string;
5914
6058
  } | null | undefined;
5915
- }) | {
5916
- label: string;
5917
- };
5918
- } & {
6059
+ });
6060
+ start: number;
6061
+ end: number;
6062
+ type: "hyperlink";
6063
+ } | {
6064
+ data: string;
6065
+ start: number;
6066
+ end: number;
6067
+ type: "label";
6068
+ } | {
5919
6069
  start: number;
5920
6070
  end: number;
5921
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6071
+ type: "strong" | "em";
5922
6072
  })[];
5923
6073
  };
5924
6074
  } & {
@@ -6184,7 +6334,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6184
6334
  text: string;
6185
6335
  } & {
6186
6336
  spans?: ({
6187
- data?: ({
6337
+ data: ({
6188
6338
  __TYPE__: "ImageLink";
6189
6339
  } & {
6190
6340
  id: string;
@@ -6222,13 +6372,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6222
6372
  preview?: {
6223
6373
  title?: string;
6224
6374
  } | null | undefined;
6225
- }) | {
6226
- label: string;
6227
- };
6228
- } & {
6375
+ });
6229
6376
  start: number;
6230
6377
  end: number;
6231
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6378
+ type: "hyperlink";
6379
+ } | {
6380
+ data: string;
6381
+ start: number;
6382
+ end: number;
6383
+ type: "label";
6384
+ } | {
6385
+ start: number;
6386
+ end: number;
6387
+ type: "strong" | "em";
6232
6388
  })[];
6233
6389
  };
6234
6390
  } & {
@@ -6501,7 +6657,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6501
6657
  text: string;
6502
6658
  } & {
6503
6659
  spans?: ({
6504
- data?: ({
6660
+ data: ({
6505
6661
  __TYPE__: "ImageLink";
6506
6662
  } & {
6507
6663
  id: string;
@@ -6539,13 +6695,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6539
6695
  preview?: {
6540
6696
  title?: string;
6541
6697
  } | null | undefined;
6542
- }) | {
6543
- label: string;
6544
- };
6545
- } & {
6698
+ });
6699
+ start: number;
6700
+ end: number;
6701
+ type: "hyperlink";
6702
+ } | {
6703
+ data: string;
6704
+ start: number;
6705
+ end: number;
6706
+ type: "label";
6707
+ } | {
6546
6708
  start: number;
6547
6709
  end: number;
6548
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6710
+ type: "strong" | "em";
6549
6711
  })[];
6550
6712
  };
6551
6713
  } & {
@@ -6811,7 +6973,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6811
6973
  text: string;
6812
6974
  } & {
6813
6975
  spans?: ({
6814
- data?: ({
6976
+ data: ({
6815
6977
  __TYPE__: "ImageLink";
6816
6978
  } & {
6817
6979
  id: string;
@@ -6849,13 +7011,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6849
7011
  preview?: {
6850
7012
  title?: string;
6851
7013
  } | null | undefined;
6852
- }) | {
6853
- label: string;
6854
- };
6855
- } & {
7014
+ });
7015
+ start: number;
7016
+ end: number;
7017
+ type: "hyperlink";
7018
+ } | {
7019
+ data: string;
7020
+ start: number;
7021
+ end: number;
7022
+ type: "label";
7023
+ } | {
6856
7024
  start: number;
6857
7025
  end: number;
6858
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7026
+ type: "strong" | "em";
6859
7027
  })[];
6860
7028
  };
6861
7029
  } & {
@@ -7122,7 +7290,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7122
7290
  text: string;
7123
7291
  } & {
7124
7292
  spans?: ({
7125
- data?: ({
7293
+ data: ({
7126
7294
  __TYPE__: "ImageLink";
7127
7295
  } & {
7128
7296
  id: string;
@@ -7160,13 +7328,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7160
7328
  preview?: {
7161
7329
  title?: string;
7162
7330
  } | null | undefined;
7163
- }) | {
7164
- label: string;
7165
- };
7166
- } & {
7331
+ });
7332
+ start: number;
7333
+ end: number;
7334
+ type: "hyperlink";
7335
+ } | {
7336
+ data: string;
7337
+ start: number;
7338
+ end: number;
7339
+ type: "label";
7340
+ } | {
7167
7341
  start: number;
7168
7342
  end: number;
7169
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7343
+ type: "strong" | "em";
7170
7344
  })[];
7171
7345
  };
7172
7346
  } & {
@@ -7432,7 +7606,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7432
7606
  text: string;
7433
7607
  } & {
7434
7608
  spans?: ({
7435
- data?: ({
7609
+ data: ({
7436
7610
  __TYPE__: "ImageLink";
7437
7611
  } & {
7438
7612
  id: string;
@@ -7470,13 +7644,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7470
7644
  preview?: {
7471
7645
  title?: string;
7472
7646
  } | null | undefined;
7473
- }) | {
7474
- label: string;
7475
- };
7476
- } & {
7647
+ });
7477
7648
  start: number;
7478
7649
  end: number;
7479
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7650
+ type: "hyperlink";
7651
+ } | {
7652
+ data: string;
7653
+ start: number;
7654
+ end: number;
7655
+ type: "label";
7656
+ } | {
7657
+ start: number;
7658
+ end: number;
7659
+ type: "strong" | "em";
7480
7660
  })[];
7481
7661
  };
7482
7662
  } & {
@@ -7744,7 +7924,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7744
7924
  text: string;
7745
7925
  } & {
7746
7926
  spans?: ({
7747
- data?: ({
7927
+ data: ({
7748
7928
  __TYPE__: "ImageLink";
7749
7929
  } & {
7750
7930
  id: string;
@@ -7782,13 +7962,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7782
7962
  preview?: {
7783
7963
  title?: string;
7784
7964
  } | null | undefined;
7785
- }) | {
7786
- label: string;
7787
- };
7788
- } & {
7965
+ });
7966
+ start: number;
7967
+ end: number;
7968
+ type: "hyperlink";
7969
+ } | {
7970
+ data: string;
7789
7971
  start: number;
7790
7972
  end: number;
7791
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7973
+ type: "label";
7974
+ } | {
7975
+ start: number;
7976
+ end: number;
7977
+ type: "strong" | "em";
7792
7978
  })[];
7793
7979
  };
7794
7980
  } & {
@@ -8054,7 +8240,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8054
8240
  text: string;
8055
8241
  } & {
8056
8242
  spans?: ({
8057
- data?: ({
8243
+ data: ({
8058
8244
  __TYPE__: "ImageLink";
8059
8245
  } & {
8060
8246
  id: string;
@@ -8092,13 +8278,19 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8092
8278
  preview?: {
8093
8279
  title?: string;
8094
8280
  } | null | undefined;
8095
- }) | {
8096
- label: string;
8097
- };
8098
- } & {
8281
+ });
8282
+ start: number;
8283
+ end: number;
8284
+ type: "hyperlink";
8285
+ } | {
8286
+ data: string;
8287
+ start: number;
8288
+ end: number;
8289
+ type: "label";
8290
+ } | {
8099
8291
  start: number;
8100
8292
  end: number;
8101
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
8293
+ type: "strong" | "em";
8102
8294
  })[];
8103
8295
  };
8104
8296
  } & {