@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
@@ -285,7 +285,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
285
285
  text: t.StringC;
286
286
  }>, t.PartialC<{
287
287
  spans: t.Type<({
288
- data?: ({
288
+ data: ({
289
289
  __TYPE__: "ImageLink";
290
290
  } & {
291
291
  id: string;
@@ -323,15 +323,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
323
323
  preview?: {
324
324
  title?: string;
325
325
  } | null | undefined;
326
- }) | {
327
- label: string;
328
- };
329
- } & {
326
+ });
330
327
  start: number;
331
328
  end: number;
332
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
329
+ type: "hyperlink";
330
+ } | {
331
+ data: string;
332
+ start: number;
333
+ end: number;
334
+ type: "label";
335
+ } | {
336
+ start: number;
337
+ end: number;
338
+ type: "strong" | "em";
333
339
  })[], ({
334
- data?: ({
340
+ data: ({
335
341
  __TYPE__: "ImageLink";
336
342
  } & {
337
343
  id: string;
@@ -369,13 +375,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
369
375
  preview?: {
370
376
  title?: string;
371
377
  } | null | undefined;
372
- }) | {
373
- label: string;
374
- };
375
- } & {
378
+ });
379
+ start: number;
380
+ end: number;
381
+ type: "hyperlink";
382
+ } | {
383
+ data: string;
384
+ start: number;
385
+ end: number;
386
+ type: "label";
387
+ } | {
376
388
  start: number;
377
389
  end: number;
378
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
390
+ type: "strong" | "em";
379
391
  })[], unknown>;
380
392
  }>]>;
381
393
  }>, t.PartialC<{
@@ -667,7 +679,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
667
679
  text: t.StringC;
668
680
  }>, t.PartialC<{
669
681
  spans: t.Type<({
670
- data?: ({
682
+ data: ({
671
683
  __TYPE__: "ImageLink";
672
684
  } & {
673
685
  id: string;
@@ -705,15 +717,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
705
717
  preview?: {
706
718
  title?: string;
707
719
  } | null | undefined;
708
- }) | {
709
- label: string;
710
- };
711
- } & {
720
+ });
721
+ start: number;
722
+ end: number;
723
+ type: "hyperlink";
724
+ } | {
725
+ data: string;
726
+ start: number;
727
+ end: number;
728
+ type: "label";
729
+ } | {
712
730
  start: number;
713
731
  end: number;
714
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
732
+ type: "strong" | "em";
715
733
  })[], ({
716
- data?: ({
734
+ data: ({
717
735
  __TYPE__: "ImageLink";
718
736
  } & {
719
737
  id: string;
@@ -751,13 +769,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
751
769
  preview?: {
752
770
  title?: string;
753
771
  } | null | undefined;
754
- }) | {
755
- label: string;
756
- };
757
- } & {
772
+ });
758
773
  start: number;
759
774
  end: number;
760
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
775
+ type: "hyperlink";
776
+ } | {
777
+ data: string;
778
+ start: number;
779
+ end: number;
780
+ type: "label";
781
+ } | {
782
+ start: number;
783
+ end: number;
784
+ type: "strong" | "em";
761
785
  })[], unknown>;
762
786
  }>]>;
763
787
  }>, t.PartialC<{
@@ -1058,7 +1082,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1058
1082
  text: t.StringC;
1059
1083
  }>, t.PartialC<{
1060
1084
  spans: t.Type<({
1061
- data?: ({
1085
+ data: ({
1062
1086
  __TYPE__: "ImageLink";
1063
1087
  } & {
1064
1088
  id: string;
@@ -1096,15 +1120,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1096
1120
  preview?: {
1097
1121
  title?: string;
1098
1122
  } | null | undefined;
1099
- }) | {
1100
- label: string;
1101
- };
1102
- } & {
1123
+ });
1124
+ start: number;
1125
+ end: number;
1126
+ type: "hyperlink";
1127
+ } | {
1128
+ data: string;
1103
1129
  start: number;
1104
1130
  end: number;
1105
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1131
+ type: "label";
1132
+ } | {
1133
+ start: number;
1134
+ end: number;
1135
+ type: "strong" | "em";
1106
1136
  })[], ({
1107
- data?: ({
1137
+ data: ({
1108
1138
  __TYPE__: "ImageLink";
1109
1139
  } & {
1110
1140
  id: string;
@@ -1142,13 +1172,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1142
1172
  preview?: {
1143
1173
  title?: string;
1144
1174
  } | null | undefined;
1145
- }) | {
1146
- label: string;
1147
- };
1148
- } & {
1175
+ });
1176
+ start: number;
1177
+ end: number;
1178
+ type: "hyperlink";
1179
+ } | {
1180
+ data: string;
1149
1181
  start: number;
1150
1182
  end: number;
1151
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1183
+ type: "label";
1184
+ } | {
1185
+ start: number;
1186
+ end: number;
1187
+ type: "strong" | "em";
1152
1188
  })[], unknown>;
1153
1189
  }>]>;
1154
1190
  }>, t.PartialC<{
@@ -1441,7 +1477,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1441
1477
  text: t.StringC;
1442
1478
  }>, t.PartialC<{
1443
1479
  spans: t.Type<({
1444
- data?: ({
1480
+ data: ({
1445
1481
  __TYPE__: "ImageLink";
1446
1482
  } & {
1447
1483
  id: string;
@@ -1479,15 +1515,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1479
1515
  preview?: {
1480
1516
  title?: string;
1481
1517
  } | null | undefined;
1482
- }) | {
1483
- label: string;
1484
- };
1485
- } & {
1518
+ });
1519
+ start: number;
1520
+ end: number;
1521
+ type: "hyperlink";
1522
+ } | {
1523
+ data: string;
1524
+ start: number;
1525
+ end: number;
1526
+ type: "label";
1527
+ } | {
1486
1528
  start: number;
1487
1529
  end: number;
1488
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1530
+ type: "strong" | "em";
1489
1531
  })[], ({
1490
- data?: ({
1532
+ data: ({
1491
1533
  __TYPE__: "ImageLink";
1492
1534
  } & {
1493
1535
  id: string;
@@ -1525,13 +1567,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1525
1567
  preview?: {
1526
1568
  title?: string;
1527
1569
  } | null | undefined;
1528
- }) | {
1529
- label: string;
1530
- };
1531
- } & {
1570
+ });
1571
+ start: number;
1572
+ end: number;
1573
+ type: "hyperlink";
1574
+ } | {
1575
+ data: string;
1532
1576
  start: number;
1533
1577
  end: number;
1534
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1578
+ type: "label";
1579
+ } | {
1580
+ start: number;
1581
+ end: number;
1582
+ type: "strong" | "em";
1535
1583
  })[], unknown>;
1536
1584
  }>]>;
1537
1585
  }>, t.PartialC<{
@@ -1826,7 +1874,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1826
1874
  text: t.StringC;
1827
1875
  }>, t.PartialC<{
1828
1876
  spans: t.Type<({
1829
- data?: ({
1877
+ data: ({
1830
1878
  __TYPE__: "ImageLink";
1831
1879
  } & {
1832
1880
  id: string;
@@ -1864,15 +1912,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1864
1912
  preview?: {
1865
1913
  title?: string;
1866
1914
  } | null | undefined;
1867
- }) | {
1868
- label: string;
1869
- };
1870
- } & {
1915
+ });
1916
+ start: number;
1917
+ end: number;
1918
+ type: "hyperlink";
1919
+ } | {
1920
+ data: string;
1871
1921
  start: number;
1872
1922
  end: number;
1873
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1923
+ type: "label";
1924
+ } | {
1925
+ start: number;
1926
+ end: number;
1927
+ type: "strong" | "em";
1874
1928
  })[], ({
1875
- data?: ({
1929
+ data: ({
1876
1930
  __TYPE__: "ImageLink";
1877
1931
  } & {
1878
1932
  id: string;
@@ -1910,13 +1964,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1910
1964
  preview?: {
1911
1965
  title?: string;
1912
1966
  } | null | undefined;
1913
- }) | {
1914
- label: string;
1915
- };
1916
- } & {
1967
+ });
1968
+ start: number;
1969
+ end: number;
1970
+ type: "hyperlink";
1971
+ } | {
1972
+ data: string;
1973
+ start: number;
1974
+ end: number;
1975
+ type: "label";
1976
+ } | {
1917
1977
  start: number;
1918
1978
  end: number;
1919
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1979
+ type: "strong" | "em";
1920
1980
  })[], unknown>;
1921
1981
  }>]>;
1922
1982
  }>, t.PartialC<{
@@ -2209,7 +2269,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2209
2269
  text: t.StringC;
2210
2270
  }>, t.PartialC<{
2211
2271
  spans: t.Type<({
2212
- data?: ({
2272
+ data: ({
2213
2273
  __TYPE__: "ImageLink";
2214
2274
  } & {
2215
2275
  id: string;
@@ -2247,15 +2307,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2247
2307
  preview?: {
2248
2308
  title?: string;
2249
2309
  } | null | undefined;
2250
- }) | {
2251
- label: string;
2252
- };
2253
- } & {
2310
+ });
2254
2311
  start: number;
2255
2312
  end: number;
2256
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2313
+ type: "hyperlink";
2314
+ } | {
2315
+ data: string;
2316
+ start: number;
2317
+ end: number;
2318
+ type: "label";
2319
+ } | {
2320
+ start: number;
2321
+ end: number;
2322
+ type: "strong" | "em";
2257
2323
  })[], ({
2258
- data?: ({
2324
+ data: ({
2259
2325
  __TYPE__: "ImageLink";
2260
2326
  } & {
2261
2327
  id: string;
@@ -2293,13 +2359,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2293
2359
  preview?: {
2294
2360
  title?: string;
2295
2361
  } | null | undefined;
2296
- }) | {
2297
- label: string;
2298
- };
2299
- } & {
2362
+ });
2363
+ start: number;
2364
+ end: number;
2365
+ type: "hyperlink";
2366
+ } | {
2367
+ data: string;
2300
2368
  start: number;
2301
2369
  end: number;
2302
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2370
+ type: "label";
2371
+ } | {
2372
+ start: number;
2373
+ end: number;
2374
+ type: "strong" | "em";
2303
2375
  })[], unknown>;
2304
2376
  }>]>;
2305
2377
  }>, t.PartialC<{
@@ -2591,7 +2663,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2591
2663
  text: t.StringC;
2592
2664
  }>, t.PartialC<{
2593
2665
  spans: t.Type<({
2594
- data?: ({
2666
+ data: ({
2595
2667
  __TYPE__: "ImageLink";
2596
2668
  } & {
2597
2669
  id: string;
@@ -2629,15 +2701,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2629
2701
  preview?: {
2630
2702
  title?: string;
2631
2703
  } | null | undefined;
2632
- }) | {
2633
- label: string;
2634
- };
2635
- } & {
2704
+ });
2636
2705
  start: number;
2637
2706
  end: number;
2638
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2707
+ type: "hyperlink";
2708
+ } | {
2709
+ data: string;
2710
+ start: number;
2711
+ end: number;
2712
+ type: "label";
2713
+ } | {
2714
+ start: number;
2715
+ end: number;
2716
+ type: "strong" | "em";
2639
2717
  })[], ({
2640
- data?: ({
2718
+ data: ({
2641
2719
  __TYPE__: "ImageLink";
2642
2720
  } & {
2643
2721
  id: string;
@@ -2675,13 +2753,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2675
2753
  preview?: {
2676
2754
  title?: string;
2677
2755
  } | null | undefined;
2678
- }) | {
2679
- label: string;
2680
- };
2681
- } & {
2756
+ });
2757
+ start: number;
2758
+ end: number;
2759
+ type: "hyperlink";
2760
+ } | {
2761
+ data: string;
2762
+ start: number;
2763
+ end: number;
2764
+ type: "label";
2765
+ } | {
2682
2766
  start: number;
2683
2767
  end: number;
2684
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2768
+ type: "strong" | "em";
2685
2769
  })[], unknown>;
2686
2770
  }>]>;
2687
2771
  }>, t.PartialC<{
@@ -2975,7 +3059,7 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2975
3059
  text: t.StringC;
2976
3060
  }>, t.PartialC<{
2977
3061
  spans: t.Type<({
2978
- data?: ({
3062
+ data: ({
2979
3063
  __TYPE__: "ImageLink";
2980
3064
  } & {
2981
3065
  id: string;
@@ -3013,15 +3097,21 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
3013
3097
  preview?: {
3014
3098
  title?: string;
3015
3099
  } | null | undefined;
3016
- }) | {
3017
- label: string;
3018
- };
3019
- } & {
3100
+ });
3101
+ start: number;
3102
+ end: number;
3103
+ type: "hyperlink";
3104
+ } | {
3105
+ data: string;
3020
3106
  start: number;
3021
3107
  end: number;
3022
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3108
+ type: "label";
3109
+ } | {
3110
+ start: number;
3111
+ end: number;
3112
+ type: "strong" | "em";
3023
3113
  })[], ({
3024
- data?: ({
3114
+ data: ({
3025
3115
  __TYPE__: "ImageLink";
3026
3116
  } & {
3027
3117
  id: string;
@@ -3059,13 +3149,19 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
3059
3149
  preview?: {
3060
3150
  title?: string;
3061
3151
  } | null | undefined;
3062
- }) | {
3063
- label: string;
3064
- };
3065
- } & {
3152
+ });
3153
+ start: number;
3154
+ end: number;
3155
+ type: "hyperlink";
3156
+ } | {
3157
+ data: string;
3158
+ start: number;
3159
+ end: number;
3160
+ type: "label";
3161
+ } | {
3066
3162
  start: number;
3067
3163
  end: number;
3068
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3164
+ type: "strong" | "em";
3069
3165
  })[], unknown>;
3070
3166
  }>]>;
3071
3167
  }>, t.PartialC<{
@@ -3332,7 +3428,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
3332
3428
  text: string;
3333
3429
  } & {
3334
3430
  spans?: ({
3335
- data?: ({
3431
+ data: ({
3336
3432
  __TYPE__: "ImageLink";
3337
3433
  } & {
3338
3434
  id: string;
@@ -3370,13 +3466,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
3370
3466
  preview?: {
3371
3467
  title?: string;
3372
3468
  } | null | undefined;
3373
- }) | {
3374
- label: string;
3375
- };
3376
- } & {
3469
+ });
3470
+ start: number;
3471
+ end: number;
3472
+ type: "hyperlink";
3473
+ } | {
3474
+ data: string;
3475
+ start: number;
3476
+ end: number;
3477
+ type: "label";
3478
+ } | {
3377
3479
  start: number;
3378
3480
  end: number;
3379
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3481
+ type: "strong" | "em";
3380
3482
  })[];
3381
3483
  };
3382
3484
  } & {
@@ -3642,7 +3744,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
3642
3744
  text: string;
3643
3745
  } & {
3644
3746
  spans?: ({
3645
- data?: ({
3747
+ data: ({
3646
3748
  __TYPE__: "ImageLink";
3647
3749
  } & {
3648
3750
  id: string;
@@ -3680,13 +3782,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
3680
3782
  preview?: {
3681
3783
  title?: string;
3682
3784
  } | null | undefined;
3683
- }) | {
3684
- label: string;
3685
- };
3686
- } & {
3785
+ });
3687
3786
  start: number;
3688
3787
  end: number;
3689
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3788
+ type: "hyperlink";
3789
+ } | {
3790
+ data: string;
3791
+ start: number;
3792
+ end: number;
3793
+ type: "label";
3794
+ } | {
3795
+ start: number;
3796
+ end: number;
3797
+ type: "strong" | "em";
3690
3798
  })[];
3691
3799
  };
3692
3800
  } & {
@@ -3959,7 +4067,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
3959
4067
  text: string;
3960
4068
  } & {
3961
4069
  spans?: ({
3962
- data?: ({
4070
+ data: ({
3963
4071
  __TYPE__: "ImageLink";
3964
4072
  } & {
3965
4073
  id: string;
@@ -3997,13 +4105,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
3997
4105
  preview?: {
3998
4106
  title?: string;
3999
4107
  } | null | undefined;
4000
- }) | {
4001
- label: string;
4002
- };
4003
- } & {
4108
+ });
4109
+ start: number;
4110
+ end: number;
4111
+ type: "hyperlink";
4112
+ } | {
4113
+ data: string;
4114
+ start: number;
4115
+ end: number;
4116
+ type: "label";
4117
+ } | {
4004
4118
  start: number;
4005
4119
  end: number;
4006
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4120
+ type: "strong" | "em";
4007
4121
  })[];
4008
4122
  };
4009
4123
  } & {
@@ -4269,7 +4383,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
4269
4383
  text: string;
4270
4384
  } & {
4271
4385
  spans?: ({
4272
- data?: ({
4386
+ data: ({
4273
4387
  __TYPE__: "ImageLink";
4274
4388
  } & {
4275
4389
  id: string;
@@ -4307,13 +4421,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
4307
4421
  preview?: {
4308
4422
  title?: string;
4309
4423
  } | null | undefined;
4310
- }) | {
4311
- label: string;
4312
- };
4313
- } & {
4424
+ });
4314
4425
  start: number;
4315
4426
  end: number;
4316
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4427
+ type: "hyperlink";
4428
+ } | {
4429
+ data: string;
4430
+ start: number;
4431
+ end: number;
4432
+ type: "label";
4433
+ } | {
4434
+ start: number;
4435
+ end: number;
4436
+ type: "strong" | "em";
4317
4437
  })[];
4318
4438
  };
4319
4439
  } & {
@@ -4580,7 +4700,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
4580
4700
  text: string;
4581
4701
  } & {
4582
4702
  spans?: ({
4583
- data?: ({
4703
+ data: ({
4584
4704
  __TYPE__: "ImageLink";
4585
4705
  } & {
4586
4706
  id: string;
@@ -4618,13 +4738,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
4618
4738
  preview?: {
4619
4739
  title?: string;
4620
4740
  } | null | undefined;
4621
- }) | {
4622
- label: string;
4623
- };
4624
- } & {
4741
+ });
4742
+ start: number;
4743
+ end: number;
4744
+ type: "hyperlink";
4745
+ } | {
4746
+ data: string;
4625
4747
  start: number;
4626
4748
  end: number;
4627
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4749
+ type: "label";
4750
+ } | {
4751
+ start: number;
4752
+ end: number;
4753
+ type: "strong" | "em";
4628
4754
  })[];
4629
4755
  };
4630
4756
  } & {
@@ -4890,7 +5016,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
4890
5016
  text: string;
4891
5017
  } & {
4892
5018
  spans?: ({
4893
- data?: ({
5019
+ data: ({
4894
5020
  __TYPE__: "ImageLink";
4895
5021
  } & {
4896
5022
  id: string;
@@ -4928,13 +5054,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
4928
5054
  preview?: {
4929
5055
  title?: string;
4930
5056
  } | null | undefined;
4931
- }) | {
4932
- label: string;
4933
- };
4934
- } & {
5057
+ });
5058
+ start: number;
5059
+ end: number;
5060
+ type: "hyperlink";
5061
+ } | {
5062
+ data: string;
5063
+ start: number;
5064
+ end: number;
5065
+ type: "label";
5066
+ } | {
4935
5067
  start: number;
4936
5068
  end: number;
4937
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5069
+ type: "strong" | "em";
4938
5070
  })[];
4939
5071
  };
4940
5072
  } & {
@@ -5202,7 +5334,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
5202
5334
  text: string;
5203
5335
  } & {
5204
5336
  spans?: ({
5205
- data?: ({
5337
+ data: ({
5206
5338
  __TYPE__: "ImageLink";
5207
5339
  } & {
5208
5340
  id: string;
@@ -5240,13 +5372,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
5240
5372
  preview?: {
5241
5373
  title?: string;
5242
5374
  } | null | undefined;
5243
- }) | {
5244
- label: string;
5245
- };
5246
- } & {
5375
+ });
5376
+ start: number;
5377
+ end: number;
5378
+ type: "hyperlink";
5379
+ } | {
5380
+ data: string;
5247
5381
  start: number;
5248
5382
  end: number;
5249
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5383
+ type: "label";
5384
+ } | {
5385
+ start: number;
5386
+ end: number;
5387
+ type: "strong" | "em";
5250
5388
  })[];
5251
5389
  };
5252
5390
  } & {
@@ -5512,7 +5650,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
5512
5650
  text: string;
5513
5651
  } & {
5514
5652
  spans?: ({
5515
- data?: ({
5653
+ data: ({
5516
5654
  __TYPE__: "ImageLink";
5517
5655
  } & {
5518
5656
  id: string;
@@ -5550,13 +5688,19 @@ export declare const isWidgetContent: (u: unknown) => u is {
5550
5688
  preview?: {
5551
5689
  title?: string;
5552
5690
  } | null | undefined;
5553
- }) | {
5554
- label: string;
5555
- };
5556
- } & {
5691
+ });
5692
+ start: number;
5693
+ end: number;
5694
+ type: "hyperlink";
5695
+ } | {
5696
+ data: string;
5697
+ start: number;
5698
+ end: number;
5699
+ type: "label";
5700
+ } | {
5557
5701
  start: number;
5558
5702
  end: number;
5559
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5703
+ type: "strong" | "em";
5560
5704
  })[];
5561
5705
  };
5562
5706
  } & {
@@ -5826,7 +5970,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5826
5970
  text: string;
5827
5971
  } & {
5828
5972
  spans?: ({
5829
- data?: ({
5973
+ data: ({
5830
5974
  __TYPE__: "ImageLink";
5831
5975
  } & {
5832
5976
  id: string;
@@ -5864,13 +6008,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5864
6008
  preview?: {
5865
6009
  title?: string;
5866
6010
  } | null | undefined;
5867
- }) | {
5868
- label: string;
5869
- };
5870
- } & {
6011
+ });
6012
+ start: number;
6013
+ end: number;
6014
+ type: "hyperlink";
6015
+ } | {
6016
+ data: string;
6017
+ start: number;
6018
+ end: number;
6019
+ type: "label";
6020
+ } | {
5871
6021
  start: number;
5872
6022
  end: number;
5873
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6023
+ type: "strong" | "em";
5874
6024
  })[];
5875
6025
  };
5876
6026
  } & {
@@ -6136,7 +6286,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6136
6286
  text: string;
6137
6287
  } & {
6138
6288
  spans?: ({
6139
- data?: ({
6289
+ data: ({
6140
6290
  __TYPE__: "ImageLink";
6141
6291
  } & {
6142
6292
  id: string;
@@ -6174,13 +6324,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6174
6324
  preview?: {
6175
6325
  title?: string;
6176
6326
  } | null | undefined;
6177
- }) | {
6178
- label: string;
6179
- };
6180
- } & {
6327
+ });
6328
+ start: number;
6329
+ end: number;
6330
+ type: "hyperlink";
6331
+ } | {
6332
+ data: string;
6333
+ start: number;
6334
+ end: number;
6335
+ type: "label";
6336
+ } | {
6181
6337
  start: number;
6182
6338
  end: number;
6183
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6339
+ type: "strong" | "em";
6184
6340
  })[];
6185
6341
  };
6186
6342
  } & {
@@ -6453,7 +6609,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6453
6609
  text: string;
6454
6610
  } & {
6455
6611
  spans?: ({
6456
- data?: ({
6612
+ data: ({
6457
6613
  __TYPE__: "ImageLink";
6458
6614
  } & {
6459
6615
  id: string;
@@ -6491,13 +6647,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6491
6647
  preview?: {
6492
6648
  title?: string;
6493
6649
  } | null | undefined;
6494
- }) | {
6495
- label: string;
6496
- };
6497
- } & {
6650
+ });
6651
+ start: number;
6652
+ end: number;
6653
+ type: "hyperlink";
6654
+ } | {
6655
+ data: string;
6498
6656
  start: number;
6499
6657
  end: number;
6500
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6658
+ type: "label";
6659
+ } | {
6660
+ start: number;
6661
+ end: number;
6662
+ type: "strong" | "em";
6501
6663
  })[];
6502
6664
  };
6503
6665
  } & {
@@ -6763,7 +6925,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6763
6925
  text: string;
6764
6926
  } & {
6765
6927
  spans?: ({
6766
- data?: ({
6928
+ data: ({
6767
6929
  __TYPE__: "ImageLink";
6768
6930
  } & {
6769
6931
  id: string;
@@ -6801,13 +6963,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6801
6963
  preview?: {
6802
6964
  title?: string;
6803
6965
  } | null | undefined;
6804
- }) | {
6805
- label: string;
6806
- };
6807
- } & {
6966
+ });
6967
+ start: number;
6968
+ end: number;
6969
+ type: "hyperlink";
6970
+ } | {
6971
+ data: string;
6972
+ start: number;
6973
+ end: number;
6974
+ type: "label";
6975
+ } | {
6808
6976
  start: number;
6809
6977
  end: number;
6810
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6978
+ type: "strong" | "em";
6811
6979
  })[];
6812
6980
  };
6813
6981
  } & {
@@ -7074,7 +7242,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7074
7242
  text: string;
7075
7243
  } & {
7076
7244
  spans?: ({
7077
- data?: ({
7245
+ data: ({
7078
7246
  __TYPE__: "ImageLink";
7079
7247
  } & {
7080
7248
  id: string;
@@ -7112,13 +7280,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7112
7280
  preview?: {
7113
7281
  title?: string;
7114
7282
  } | null | undefined;
7115
- }) | {
7116
- label: string;
7117
- };
7118
- } & {
7283
+ });
7119
7284
  start: number;
7120
7285
  end: number;
7121
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7286
+ type: "hyperlink";
7287
+ } | {
7288
+ data: string;
7289
+ start: number;
7290
+ end: number;
7291
+ type: "label";
7292
+ } | {
7293
+ start: number;
7294
+ end: number;
7295
+ type: "strong" | "em";
7122
7296
  })[];
7123
7297
  };
7124
7298
  } & {
@@ -7384,7 +7558,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7384
7558
  text: string;
7385
7559
  } & {
7386
7560
  spans?: ({
7387
- data?: ({
7561
+ data: ({
7388
7562
  __TYPE__: "ImageLink";
7389
7563
  } & {
7390
7564
  id: string;
@@ -7422,13 +7596,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7422
7596
  preview?: {
7423
7597
  title?: string;
7424
7598
  } | null | undefined;
7425
- }) | {
7426
- label: string;
7427
- };
7428
- } & {
7599
+ });
7600
+ start: number;
7601
+ end: number;
7602
+ type: "hyperlink";
7603
+ } | {
7604
+ data: string;
7429
7605
  start: number;
7430
7606
  end: number;
7431
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7607
+ type: "label";
7608
+ } | {
7609
+ start: number;
7610
+ end: number;
7611
+ type: "strong" | "em";
7432
7612
  })[];
7433
7613
  };
7434
7614
  } & {
@@ -7696,7 +7876,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7696
7876
  text: string;
7697
7877
  } & {
7698
7878
  spans?: ({
7699
- data?: ({
7879
+ data: ({
7700
7880
  __TYPE__: "ImageLink";
7701
7881
  } & {
7702
7882
  id: string;
@@ -7734,13 +7914,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7734
7914
  preview?: {
7735
7915
  title?: string;
7736
7916
  } | null | undefined;
7737
- }) | {
7738
- label: string;
7739
- };
7740
- } & {
7917
+ });
7918
+ start: number;
7919
+ end: number;
7920
+ type: "hyperlink";
7921
+ } | {
7922
+ data: string;
7923
+ start: number;
7924
+ end: number;
7925
+ type: "label";
7926
+ } | {
7741
7927
  start: number;
7742
7928
  end: number;
7743
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
7929
+ type: "strong" | "em";
7744
7930
  })[];
7745
7931
  };
7746
7932
  } & {
@@ -8006,7 +8192,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
8006
8192
  text: string;
8007
8193
  } & {
8008
8194
  spans?: ({
8009
- data?: ({
8195
+ data: ({
8010
8196
  __TYPE__: "ImageLink";
8011
8197
  } & {
8012
8198
  id: string;
@@ -8044,13 +8230,19 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
8044
8230
  preview?: {
8045
8231
  title?: string;
8046
8232
  } | null | undefined;
8047
- }) | {
8048
- label: string;
8049
- };
8050
- } & {
8233
+ });
8234
+ start: number;
8235
+ end: number;
8236
+ type: "hyperlink";
8237
+ } | {
8238
+ data: string;
8239
+ start: number;
8240
+ end: number;
8241
+ type: "label";
8242
+ } | {
8051
8243
  start: number;
8052
8244
  end: number;
8053
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
8245
+ type: "strong" | "em";
8054
8246
  })[];
8055
8247
  };
8056
8248
  } & {