@prismicio/types-internal 2.8.0 → 2.9.0-alpha.1

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 (54) hide show
  1. package/lib/_internal/utils.d.ts +3 -2
  2. package/lib/content/Document.d.ts +1369 -61
  3. package/lib/content/Document.js +11 -0
  4. package/lib/content/LegacyContentCtx.d.ts +2 -2
  5. package/lib/content/LegacyContentCtx.js +4 -1
  6. package/lib/content/fields/GroupContent.js +13 -0
  7. package/lib/content/fields/RepeatableContent.d.ts +162 -0
  8. package/lib/content/fields/RepeatableContent.js +93 -0
  9. package/lib/content/fields/WidgetContent.d.ts +1369 -61
  10. package/lib/content/fields/index.d.ts +1 -0
  11. package/lib/content/fields/index.js +1 -0
  12. package/lib/content/fields/nestable/LinkContent.d.ts +23 -0
  13. package/lib/content/fields/nestable/LinkContent.js +23 -0
  14. package/lib/content/fields/nestable/NestableContent.d.ts +218 -0
  15. package/lib/content/fields/nestable/NestableContent.js +8 -1
  16. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +66 -66
  17. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +727 -0
  18. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
  19. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +438 -2
  20. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +74 -0
  21. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +440 -4
  22. package/lib/content/fields/slices/Slice/SharedSliceContent.js +20 -4
  23. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +219 -1
  24. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +219 -1
  25. package/lib/content/fields/slices/Slice/index.d.ts +735 -5
  26. package/lib/content/fields/slices/SliceItem.d.ts +734 -4
  27. package/lib/content/fields/slices/SlicesContent.d.ts +1098 -8
  28. package/lib/customtypes/CustomType.d.ts +18 -0
  29. package/lib/customtypes/Section.d.ts +18 -0
  30. package/lib/customtypes/diff/SharedSlice.d.ts +8 -0
  31. package/lib/customtypes/diff/Variation.d.ts +8 -0
  32. package/lib/customtypes/widgets/Group.d.ts +6 -0
  33. package/lib/customtypes/widgets/Widget.d.ts +21 -0
  34. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
  35. package/lib/customtypes/widgets/nestable/Link.js +5 -1
  36. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -0
  37. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
  38. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -0
  39. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -0
  40. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +6 -0
  41. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
  42. package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
  43. package/lib/customtypes/widgets/slices/Slices.d.ts +28 -0
  44. package/package.json +1 -1
  45. package/src/_internal/utils.ts +3 -1
  46. package/src/content/Document.ts +12 -0
  47. package/src/content/LegacyContentCtx.ts +4 -1
  48. package/src/content/fields/GroupContent.ts +13 -0
  49. package/src/content/fields/RepeatableContent.ts +147 -0
  50. package/src/content/fields/index.ts +1 -0
  51. package/src/content/fields/nestable/LinkContent.ts +24 -0
  52. package/src/content/fields/nestable/NestableContent.ts +12 -1
  53. package/src/content/fields/slices/Slice/SharedSliceContent.ts +18 -0
  54. package/src/customtypes/widgets/nestable/Link.ts +5 -1
@@ -425,6 +425,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
425
425
  }>]>>]>>;
426
426
  }>>, t.ExactC<t.TypeC<{
427
427
  __TYPE__: t.LiteralC<"SeparatorContent">;
428
+ }>>, t.ExactC<t.TypeC<{
429
+ __TYPE__: t.LiteralC<"RepeatableContent">;
430
+ type: t.LiteralC<"Link">;
431
+ value: t.ArrayC<t.ExactC<t.TypeC<{
432
+ __TYPE__: t.LiteralC<"LinkContent">;
433
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
434
+ __TYPE__: t.LiteralC<"ImageLink">;
435
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
436
+ kind: t.StringC;
437
+ id: t.StringC;
438
+ url: t.StringC;
439
+ height: t.StringC;
440
+ width: t.StringC;
441
+ size: t.StringC;
442
+ name: t.StringC;
443
+ }>>, t.ExactC<t.PartialC<{
444
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
445
+ }>>]>, t.ExactC<t.PartialC<{
446
+ text: t.StringC;
447
+ }>>]>, t.ExactC<t.TypeC<{
448
+ kind: t.LiteralC<"image">;
449
+ text: t.StringC;
450
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
451
+ __TYPE__: t.LiteralC<"FileLink">;
452
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
453
+ kind: t.StringC;
454
+ id: t.StringC;
455
+ url: t.StringC;
456
+ name: t.StringC;
457
+ size: t.StringC;
458
+ }>, t.PartialC<{
459
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
460
+ }>]>>, t.ExactC<t.PartialC<{
461
+ text: t.StringC;
462
+ }>>]>, t.ExactC<t.TypeC<{
463
+ kind: t.LiteralC<"file">;
464
+ text: t.StringC;
465
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
466
+ __TYPE__: t.LiteralC<"DocumentLink">;
467
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
468
+ id: t.Type<string, string, unknown>;
469
+ }>>, t.ExactC<t.PartialC<{
470
+ text: t.StringC;
471
+ }>>]>, t.ExactC<t.TypeC<{
472
+ kind: t.LiteralC<"document">;
473
+ text: t.StringC;
474
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
475
+ __TYPE__: t.LiteralC<"ExternalLink">;
476
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
477
+ url: t.StringC;
478
+ }>, t.PartialC<{
479
+ kind: t.LiteralC<"web">;
480
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
481
+ preview: t.UnionC<[t.Type<{
482
+ title?: string;
483
+ }, {
484
+ title?: string;
485
+ }, unknown>, t.NullC, t.UndefinedC]>;
486
+ }>]>>, t.ExactC<t.PartialC<{
487
+ text: t.StringC;
488
+ }>>]>, t.ExactC<t.TypeC<{
489
+ kind: t.LiteralC<"web">;
490
+ text: t.StringC;
491
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
492
+ __TYPE__: t.LiteralC<"MediaLink">;
493
+ }>>, t.ExactC<t.TypeC<{
494
+ kind: t.LiteralC<"media">;
495
+ text: t.StringC;
496
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
497
+ __TYPE__: t.LiteralC<"AnyLink">;
498
+ }>>, t.ExactC<t.TypeC<{
499
+ text: t.StringC;
500
+ }>>]>]>;
501
+ }>>>;
428
502
  }>>]>, t.TypeC<{
429
503
  __TYPE__: t.LiteralC<"UIDContent">;
430
504
  value: t.StringC;
@@ -857,6 +931,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
857
931
  }>]>>]>>;
858
932
  }>>, t.ExactC<t.TypeC<{
859
933
  __TYPE__: t.LiteralC<"SeparatorContent">;
934
+ }>>, t.ExactC<t.TypeC<{
935
+ __TYPE__: t.LiteralC<"RepeatableContent">;
936
+ type: t.LiteralC<"Link">;
937
+ value: t.ArrayC<t.ExactC<t.TypeC<{
938
+ __TYPE__: t.LiteralC<"LinkContent">;
939
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
940
+ __TYPE__: t.LiteralC<"ImageLink">;
941
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
942
+ kind: t.StringC;
943
+ id: t.StringC;
944
+ url: t.StringC;
945
+ height: t.StringC;
946
+ width: t.StringC;
947
+ size: t.StringC;
948
+ name: t.StringC;
949
+ }>>, t.ExactC<t.PartialC<{
950
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
951
+ }>>]>, t.ExactC<t.PartialC<{
952
+ text: t.StringC;
953
+ }>>]>, t.ExactC<t.TypeC<{
954
+ kind: t.LiteralC<"image">;
955
+ text: t.StringC;
956
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
957
+ __TYPE__: t.LiteralC<"FileLink">;
958
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
959
+ kind: t.StringC;
960
+ id: t.StringC;
961
+ url: t.StringC;
962
+ name: t.StringC;
963
+ size: t.StringC;
964
+ }>, t.PartialC<{
965
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
966
+ }>]>>, t.ExactC<t.PartialC<{
967
+ text: t.StringC;
968
+ }>>]>, t.ExactC<t.TypeC<{
969
+ kind: t.LiteralC<"file">;
970
+ text: t.StringC;
971
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
972
+ __TYPE__: t.LiteralC<"DocumentLink">;
973
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
974
+ id: t.Type<string, string, unknown>;
975
+ }>>, t.ExactC<t.PartialC<{
976
+ text: t.StringC;
977
+ }>>]>, t.ExactC<t.TypeC<{
978
+ kind: t.LiteralC<"document">;
979
+ text: t.StringC;
980
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
981
+ __TYPE__: t.LiteralC<"ExternalLink">;
982
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
983
+ url: t.StringC;
984
+ }>, t.PartialC<{
985
+ kind: t.LiteralC<"web">;
986
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
987
+ preview: t.UnionC<[t.Type<{
988
+ title?: string;
989
+ }, {
990
+ title?: string;
991
+ }, unknown>, t.NullC, t.UndefinedC]>;
992
+ }>]>>, t.ExactC<t.PartialC<{
993
+ text: t.StringC;
994
+ }>>]>, t.ExactC<t.TypeC<{
995
+ kind: t.LiteralC<"web">;
996
+ text: t.StringC;
997
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
998
+ __TYPE__: t.LiteralC<"MediaLink">;
999
+ }>>, t.ExactC<t.TypeC<{
1000
+ kind: t.LiteralC<"media">;
1001
+ text: t.StringC;
1002
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1003
+ __TYPE__: t.LiteralC<"AnyLink">;
1004
+ }>>, t.ExactC<t.TypeC<{
1005
+ text: t.StringC;
1006
+ }>>]>]>;
1007
+ }>>>;
860
1008
  }>>]>>;
861
1009
  repeat: t.ArrayC<t.ExactC<t.TypeC<{
862
1010
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -1281,6 +1429,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1281
1429
  }>]>>]>>;
1282
1430
  }>>, t.ExactC<t.TypeC<{
1283
1431
  __TYPE__: t.LiteralC<"SeparatorContent">;
1432
+ }>>, t.ExactC<t.TypeC<{
1433
+ __TYPE__: t.LiteralC<"RepeatableContent">;
1434
+ type: t.LiteralC<"Link">;
1435
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1436
+ __TYPE__: t.LiteralC<"LinkContent">;
1437
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1438
+ __TYPE__: t.LiteralC<"ImageLink">;
1439
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1440
+ kind: t.StringC;
1441
+ id: t.StringC;
1442
+ url: t.StringC;
1443
+ height: t.StringC;
1444
+ width: t.StringC;
1445
+ size: t.StringC;
1446
+ name: t.StringC;
1447
+ }>>, t.ExactC<t.PartialC<{
1448
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1449
+ }>>]>, t.ExactC<t.PartialC<{
1450
+ text: t.StringC;
1451
+ }>>]>, t.ExactC<t.TypeC<{
1452
+ kind: t.LiteralC<"image">;
1453
+ text: t.StringC;
1454
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1455
+ __TYPE__: t.LiteralC<"FileLink">;
1456
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1457
+ kind: t.StringC;
1458
+ id: t.StringC;
1459
+ url: t.StringC;
1460
+ name: t.StringC;
1461
+ size: t.StringC;
1462
+ }>, t.PartialC<{
1463
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1464
+ }>]>>, t.ExactC<t.PartialC<{
1465
+ text: t.StringC;
1466
+ }>>]>, t.ExactC<t.TypeC<{
1467
+ kind: t.LiteralC<"file">;
1468
+ text: t.StringC;
1469
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1470
+ __TYPE__: t.LiteralC<"DocumentLink">;
1471
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1472
+ id: t.Type<string, string, unknown>;
1473
+ }>>, t.ExactC<t.PartialC<{
1474
+ text: t.StringC;
1475
+ }>>]>, t.ExactC<t.TypeC<{
1476
+ kind: t.LiteralC<"document">;
1477
+ text: t.StringC;
1478
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1479
+ __TYPE__: t.LiteralC<"ExternalLink">;
1480
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1481
+ url: t.StringC;
1482
+ }>, t.PartialC<{
1483
+ kind: t.LiteralC<"web">;
1484
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1485
+ preview: t.UnionC<[t.Type<{
1486
+ title?: string;
1487
+ }, {
1488
+ title?: string;
1489
+ }, unknown>, t.NullC, t.UndefinedC]>;
1490
+ }>]>>, t.ExactC<t.PartialC<{
1491
+ text: t.StringC;
1492
+ }>>]>, t.ExactC<t.TypeC<{
1493
+ kind: t.LiteralC<"web">;
1494
+ text: t.StringC;
1495
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1496
+ __TYPE__: t.LiteralC<"MediaLink">;
1497
+ }>>, t.ExactC<t.TypeC<{
1498
+ kind: t.LiteralC<"media">;
1499
+ text: t.StringC;
1500
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1501
+ __TYPE__: t.LiteralC<"AnyLink">;
1502
+ }>>, t.ExactC<t.TypeC<{
1503
+ text: t.StringC;
1504
+ }>>]>]>;
1505
+ }>>>;
1284
1506
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
1285
1507
  }>>>;
1286
1508
  }>>, t.ExactC<t.TypeC<{
@@ -1707,6 +1929,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1707
1929
  }>]>>]>>;
1708
1930
  }>>, t.ExactC<t.TypeC<{
1709
1931
  __TYPE__: t.LiteralC<"SeparatorContent">;
1932
+ }>>, t.ExactC<t.TypeC<{
1933
+ __TYPE__: t.LiteralC<"RepeatableContent">;
1934
+ type: t.LiteralC<"Link">;
1935
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1936
+ __TYPE__: t.LiteralC<"LinkContent">;
1937
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1938
+ __TYPE__: t.LiteralC<"ImageLink">;
1939
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1940
+ kind: t.StringC;
1941
+ id: t.StringC;
1942
+ url: t.StringC;
1943
+ height: t.StringC;
1944
+ width: t.StringC;
1945
+ size: t.StringC;
1946
+ name: t.StringC;
1947
+ }>>, t.ExactC<t.PartialC<{
1948
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1949
+ }>>]>, t.ExactC<t.PartialC<{
1950
+ text: t.StringC;
1951
+ }>>]>, t.ExactC<t.TypeC<{
1952
+ kind: t.LiteralC<"image">;
1953
+ text: t.StringC;
1954
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1955
+ __TYPE__: t.LiteralC<"FileLink">;
1956
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1957
+ kind: t.StringC;
1958
+ id: t.StringC;
1959
+ url: t.StringC;
1960
+ name: t.StringC;
1961
+ size: t.StringC;
1962
+ }>, t.PartialC<{
1963
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1964
+ }>]>>, t.ExactC<t.PartialC<{
1965
+ text: t.StringC;
1966
+ }>>]>, t.ExactC<t.TypeC<{
1967
+ kind: t.LiteralC<"file">;
1968
+ text: t.StringC;
1969
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1970
+ __TYPE__: t.LiteralC<"DocumentLink">;
1971
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1972
+ id: t.Type<string, string, unknown>;
1973
+ }>>, t.ExactC<t.PartialC<{
1974
+ text: t.StringC;
1975
+ }>>]>, t.ExactC<t.TypeC<{
1976
+ kind: t.LiteralC<"document">;
1977
+ text: t.StringC;
1978
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1979
+ __TYPE__: t.LiteralC<"ExternalLink">;
1980
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1981
+ url: t.StringC;
1982
+ }>, t.PartialC<{
1983
+ kind: t.LiteralC<"web">;
1984
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1985
+ preview: t.UnionC<[t.Type<{
1986
+ title?: string;
1987
+ }, {
1988
+ title?: string;
1989
+ }, unknown>, t.NullC, t.UndefinedC]>;
1990
+ }>]>>, t.ExactC<t.PartialC<{
1991
+ text: t.StringC;
1992
+ }>>]>, t.ExactC<t.TypeC<{
1993
+ kind: t.LiteralC<"web">;
1994
+ text: t.StringC;
1995
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1996
+ __TYPE__: t.LiteralC<"MediaLink">;
1997
+ }>>, t.ExactC<t.TypeC<{
1998
+ kind: t.LiteralC<"media">;
1999
+ text: t.StringC;
2000
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2001
+ __TYPE__: t.LiteralC<"AnyLink">;
2002
+ }>>, t.ExactC<t.TypeC<{
2003
+ text: t.StringC;
2004
+ }>>]>]>;
2005
+ }>>>;
1710
2006
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>>;
1711
2007
  items: t.ArrayC<t.ExactC<t.TypeC<{
1712
2008
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -2131,6 +2427,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2131
2427
  }>]>>]>>;
2132
2428
  }>>, t.ExactC<t.TypeC<{
2133
2429
  __TYPE__: t.LiteralC<"SeparatorContent">;
2430
+ }>>, t.ExactC<t.TypeC<{
2431
+ __TYPE__: t.LiteralC<"RepeatableContent">;
2432
+ type: t.LiteralC<"Link">;
2433
+ value: t.ArrayC<t.ExactC<t.TypeC<{
2434
+ __TYPE__: t.LiteralC<"LinkContent">;
2435
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2436
+ __TYPE__: t.LiteralC<"ImageLink">;
2437
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2438
+ kind: t.StringC;
2439
+ id: t.StringC;
2440
+ url: t.StringC;
2441
+ height: t.StringC;
2442
+ width: t.StringC;
2443
+ size: t.StringC;
2444
+ name: t.StringC;
2445
+ }>>, t.ExactC<t.PartialC<{
2446
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2447
+ }>>]>, t.ExactC<t.PartialC<{
2448
+ text: t.StringC;
2449
+ }>>]>, t.ExactC<t.TypeC<{
2450
+ kind: t.LiteralC<"image">;
2451
+ text: t.StringC;
2452
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2453
+ __TYPE__: t.LiteralC<"FileLink">;
2454
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2455
+ kind: t.StringC;
2456
+ id: t.StringC;
2457
+ url: t.StringC;
2458
+ name: t.StringC;
2459
+ size: t.StringC;
2460
+ }>, t.PartialC<{
2461
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2462
+ }>]>>, t.ExactC<t.PartialC<{
2463
+ text: t.StringC;
2464
+ }>>]>, t.ExactC<t.TypeC<{
2465
+ kind: t.LiteralC<"file">;
2466
+ text: t.StringC;
2467
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2468
+ __TYPE__: t.LiteralC<"DocumentLink">;
2469
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2470
+ id: t.Type<string, string, unknown>;
2471
+ }>>, t.ExactC<t.PartialC<{
2472
+ text: t.StringC;
2473
+ }>>]>, t.ExactC<t.TypeC<{
2474
+ kind: t.LiteralC<"document">;
2475
+ text: t.StringC;
2476
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2477
+ __TYPE__: t.LiteralC<"ExternalLink">;
2478
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2479
+ url: t.StringC;
2480
+ }>, t.PartialC<{
2481
+ kind: t.LiteralC<"web">;
2482
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2483
+ preview: t.UnionC<[t.Type<{
2484
+ title?: string;
2485
+ }, {
2486
+ title?: string;
2487
+ }, unknown>, t.NullC, t.UndefinedC]>;
2488
+ }>]>>, t.ExactC<t.PartialC<{
2489
+ text: t.StringC;
2490
+ }>>]>, t.ExactC<t.TypeC<{
2491
+ kind: t.LiteralC<"web">;
2492
+ text: t.StringC;
2493
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2494
+ __TYPE__: t.LiteralC<"MediaLink">;
2495
+ }>>, t.ExactC<t.TypeC<{
2496
+ kind: t.LiteralC<"media">;
2497
+ text: t.StringC;
2498
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2499
+ __TYPE__: t.LiteralC<"AnyLink">;
2500
+ }>>, t.ExactC<t.TypeC<{
2501
+ text: t.StringC;
2502
+ }>>]>]>;
2503
+ }>>>;
2134
2504
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
2135
2505
  }>>>;
2136
2506
  }>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -2554,57 +2924,131 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2554
2924
  }>]>>]>>;
2555
2925
  }>>, t.ExactC<t.TypeC<{
2556
2926
  __TYPE__: t.LiteralC<"SeparatorContent">;
2557
- }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>;
2558
- }>>;
2559
- }>]>>;
2560
- export declare type Document = t.TypeOf<typeof Document>;
2561
- declare const legacyDocReader: t.RecordC<t.Type<string, string, unknown>, t.UnknownC>;
2562
- declare type DocumentLegacy = t.TypeOf<typeof legacyDocReader>;
2563
- declare function extractMetadata(data: {
2564
- [p: string]: unknown;
2565
- }): {
2566
- types: Map<string, FieldOrSliceType>;
2567
- widgets: Partial<Record<WidgetKey, unknown>>;
2568
- slugs: ReadonlyArray<string>;
2569
- uid: string | undefined;
2570
- };
2571
- declare function parseLegacyDocument(legacyDoc: unknown, customType: StaticCustomType | {
2572
- customTypeId: string;
2573
- fields: Record<string, StaticWidget>;
2574
- }): Document | undefined;
2575
- declare function encodeToLegacyDocument(document: Document): DocumentLegacy;
2576
- export declare const DocumentLegacy: {
2577
- _codec: (allTypes?: Map<string, "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp" | "Group" | "Slice" | "SharedSlice" | "Choice" | "Slices" | "UID"> | undefined) => t.Type<{
2578
- [x: string]: {
2579
- type: string;
2580
- __TYPE__: "EmptyContent";
2581
- } | {
2582
- __TYPE__: "BooleanContent";
2583
- value: boolean;
2584
- } | ({
2585
- embed_url: string;
2586
- type: string;
2587
- } & {
2588
- version?: string | number | null;
2589
- title?: string | null | undefined;
2590
- author_name?: string | null | undefined;
2591
- author_url?: string | null | undefined;
2592
- provider_name?: string | null | undefined;
2593
- provider_url?: string | null | undefined;
2594
- cache_age?: string | number | null;
2595
- thumbnail_url?: string | null | undefined;
2596
- thumbnail_width?: number | null | undefined;
2597
- thumbnail_height?: number | null | undefined;
2598
- html?: string | null | undefined;
2599
- } & {
2600
- __TYPE__: "EmbedContent";
2601
- all: unknown;
2602
- }) | {
2603
- type: "Color";
2604
- value: string;
2605
- __TYPE__: "FieldContent";
2606
- } | {
2607
- type: "Date";
2927
+ }>>, t.ExactC<t.TypeC<{
2928
+ __TYPE__: t.LiteralC<"RepeatableContent">;
2929
+ type: t.LiteralC<"Link">;
2930
+ value: t.ArrayC<t.ExactC<t.TypeC<{
2931
+ __TYPE__: t.LiteralC<"LinkContent">;
2932
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2933
+ __TYPE__: t.LiteralC<"ImageLink">;
2934
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2935
+ kind: t.StringC;
2936
+ id: t.StringC;
2937
+ url: t.StringC;
2938
+ height: t.StringC;
2939
+ width: t.StringC;
2940
+ size: t.StringC;
2941
+ name: t.StringC;
2942
+ }>>, t.ExactC<t.PartialC<{
2943
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2944
+ }>>]>, t.ExactC<t.PartialC<{
2945
+ text: t.StringC;
2946
+ }>>]>, t.ExactC<t.TypeC<{
2947
+ kind: t.LiteralC<"image">;
2948
+ text: t.StringC;
2949
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2950
+ __TYPE__: t.LiteralC<"FileLink">;
2951
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2952
+ kind: t.StringC;
2953
+ id: t.StringC;
2954
+ url: t.StringC;
2955
+ name: t.StringC;
2956
+ size: t.StringC;
2957
+ }>, t.PartialC<{
2958
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2959
+ }>]>>, t.ExactC<t.PartialC<{
2960
+ text: t.StringC;
2961
+ }>>]>, t.ExactC<t.TypeC<{
2962
+ kind: t.LiteralC<"file">;
2963
+ text: t.StringC;
2964
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2965
+ __TYPE__: t.LiteralC<"DocumentLink">;
2966
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2967
+ id: t.Type<string, string, unknown>;
2968
+ }>>, t.ExactC<t.PartialC<{
2969
+ text: t.StringC;
2970
+ }>>]>, t.ExactC<t.TypeC<{
2971
+ kind: t.LiteralC<"document">;
2972
+ text: t.StringC;
2973
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2974
+ __TYPE__: t.LiteralC<"ExternalLink">;
2975
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2976
+ url: t.StringC;
2977
+ }>, t.PartialC<{
2978
+ kind: t.LiteralC<"web">;
2979
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2980
+ preview: t.UnionC<[t.Type<{
2981
+ title?: string;
2982
+ }, {
2983
+ title?: string;
2984
+ }, unknown>, t.NullC, t.UndefinedC]>;
2985
+ }>]>>, t.ExactC<t.PartialC<{
2986
+ text: t.StringC;
2987
+ }>>]>, t.ExactC<t.TypeC<{
2988
+ kind: t.LiteralC<"web">;
2989
+ text: t.StringC;
2990
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2991
+ __TYPE__: t.LiteralC<"MediaLink">;
2992
+ }>>, t.ExactC<t.TypeC<{
2993
+ kind: t.LiteralC<"media">;
2994
+ text: t.StringC;
2995
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2996
+ __TYPE__: t.LiteralC<"AnyLink">;
2997
+ }>>, t.ExactC<t.TypeC<{
2998
+ text: t.StringC;
2999
+ }>>]>]>;
3000
+ }>>>;
3001
+ }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>;
3002
+ }>>;
3003
+ }>]>>;
3004
+ export declare type Document = t.TypeOf<typeof Document>;
3005
+ declare const legacyDocReader: t.RecordC<t.Type<string, string, unknown>, t.UnknownC>;
3006
+ declare type DocumentLegacy = t.TypeOf<typeof legacyDocReader>;
3007
+ declare function extractMetadata(data: {
3008
+ [p: string]: unknown;
3009
+ }): {
3010
+ types: Map<string, FieldOrSliceType>;
3011
+ widgets: Partial<Record<WidgetKey, unknown>>;
3012
+ slugs: ReadonlyArray<string>;
3013
+ uid: string | undefined;
3014
+ };
3015
+ declare function parseLegacyDocument(legacyDoc: unknown, customType: StaticCustomType | {
3016
+ customTypeId: string;
3017
+ fields: Record<string, StaticWidget>;
3018
+ }): Document | undefined;
3019
+ declare function encodeToLegacyDocument(document: Document): DocumentLegacy;
3020
+ export declare const DocumentLegacy: {
3021
+ _codec: (allTypes?: Map<string, "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp" | "Group" | "Slice" | "SharedSlice" | "Choice" | "Slices" | "UID" | "Repeatable.Link"> | undefined) => t.Type<{
3022
+ [x: string]: {
3023
+ type: string;
3024
+ __TYPE__: "EmptyContent";
3025
+ } | {
3026
+ __TYPE__: "BooleanContent";
3027
+ value: boolean;
3028
+ } | ({
3029
+ embed_url: string;
3030
+ type: string;
3031
+ } & {
3032
+ version?: string | number | null;
3033
+ title?: string | null | undefined;
3034
+ author_name?: string | null | undefined;
3035
+ author_url?: string | null | undefined;
3036
+ provider_name?: string | null | undefined;
3037
+ provider_url?: string | null | undefined;
3038
+ cache_age?: string | number | null;
3039
+ thumbnail_url?: string | null | undefined;
3040
+ thumbnail_width?: number | null | undefined;
3041
+ thumbnail_height?: number | null | undefined;
3042
+ html?: string | null | undefined;
3043
+ } & {
3044
+ __TYPE__: "EmbedContent";
3045
+ all: unknown;
3046
+ }) | {
3047
+ type: "Color";
3048
+ value: string;
3049
+ __TYPE__: "FieldContent";
3050
+ } | {
3051
+ type: "Date";
2608
3052
  value: string;
2609
3053
  __TYPE__: "FieldContent";
2610
3054
  } | {
@@ -2756,6 +3200,78 @@ export declare const DocumentLegacy: {
2756
3200
  text: string;
2757
3201
  });
2758
3202
  } | {
3203
+ __TYPE__: "RepeatableContent";
3204
+ type: "Link";
3205
+ value: {
3206
+ __TYPE__: "LinkContent";
3207
+ value: ({
3208
+ __TYPE__: "ImageLink";
3209
+ } & (({
3210
+ kind: string;
3211
+ id: string;
3212
+ url: string;
3213
+ height: string;
3214
+ width: string;
3215
+ size: string;
3216
+ name: string;
3217
+ } & {
3218
+ date?: string | null | undefined;
3219
+ } & {
3220
+ text?: string;
3221
+ }) | {
3222
+ kind: "image";
3223
+ text: string;
3224
+ })) | ({
3225
+ __TYPE__: "FileLink";
3226
+ } & (({
3227
+ kind: string;
3228
+ id: string;
3229
+ url: string;
3230
+ name: string;
3231
+ size: string;
3232
+ } & {
3233
+ date?: string | null | undefined;
3234
+ } & {
3235
+ text?: string;
3236
+ }) | {
3237
+ kind: "file";
3238
+ text: string;
3239
+ })) | ({
3240
+ __TYPE__: "MediaLink";
3241
+ } & {
3242
+ kind: "media";
3243
+ text: string;
3244
+ }) | ({
3245
+ __TYPE__: "DocumentLink";
3246
+ } & (({
3247
+ id: string;
3248
+ } & {
3249
+ text?: string;
3250
+ }) | {
3251
+ kind: "document";
3252
+ text: string;
3253
+ })) | ({
3254
+ __TYPE__: "ExternalLink";
3255
+ } & (({
3256
+ url: string;
3257
+ } & {
3258
+ kind?: "web";
3259
+ target?: string | null | undefined;
3260
+ preview?: {
3261
+ title?: string;
3262
+ } | null | undefined;
3263
+ } & {
3264
+ text?: string;
3265
+ }) | {
3266
+ kind: "web";
3267
+ text: string;
3268
+ })) | ({
3269
+ __TYPE__: "AnyLink";
3270
+ } & {
3271
+ text: string;
3272
+ });
3273
+ }[];
3274
+ } | import("./fields").GroupContent | {
2759
3275
  __TYPE__: "StructuredTextContent";
2760
3276
  value: (({
2761
3277
  type: "image";
@@ -2910,7 +3426,7 @@ export declare const DocumentLegacy: {
2910
3426
  }))[];
2911
3427
  } | {
2912
3428
  __TYPE__: "SeparatorContent";
2913
- } | import("./fields").GroupContent | {
3429
+ } | {
2914
3430
  __TYPE__: "UIDContent";
2915
3431
  value: string;
2916
3432
  } | {
@@ -3100,6 +3616,78 @@ export declare const DocumentLegacy: {
3100
3616
  text: string;
3101
3617
  });
3102
3618
  } | {
3619
+ __TYPE__: "RepeatableContent";
3620
+ type: "Link";
3621
+ value: {
3622
+ __TYPE__: "LinkContent";
3623
+ value: ({
3624
+ __TYPE__: "ImageLink";
3625
+ } & (({
3626
+ kind: string;
3627
+ id: string;
3628
+ url: string;
3629
+ height: string;
3630
+ width: string;
3631
+ size: string;
3632
+ name: string;
3633
+ } & {
3634
+ date?: string | null | undefined;
3635
+ } & {
3636
+ text?: string;
3637
+ }) | {
3638
+ kind: "image";
3639
+ text: string;
3640
+ })) | ({
3641
+ __TYPE__: "FileLink";
3642
+ } & (({
3643
+ kind: string;
3644
+ id: string;
3645
+ url: string;
3646
+ name: string;
3647
+ size: string;
3648
+ } & {
3649
+ date?: string | null | undefined;
3650
+ } & {
3651
+ text?: string;
3652
+ }) | {
3653
+ kind: "file";
3654
+ text: string;
3655
+ })) | ({
3656
+ __TYPE__: "MediaLink";
3657
+ } & {
3658
+ kind: "media";
3659
+ text: string;
3660
+ }) | ({
3661
+ __TYPE__: "DocumentLink";
3662
+ } & (({
3663
+ id: string;
3664
+ } & {
3665
+ text?: string;
3666
+ }) | {
3667
+ kind: "document";
3668
+ text: string;
3669
+ })) | ({
3670
+ __TYPE__: "ExternalLink";
3671
+ } & (({
3672
+ url: string;
3673
+ } & {
3674
+ kind?: "web";
3675
+ target?: string | null | undefined;
3676
+ preview?: {
3677
+ title?: string;
3678
+ } | null | undefined;
3679
+ } & {
3680
+ text?: string;
3681
+ }) | {
3682
+ kind: "web";
3683
+ text: string;
3684
+ })) | ({
3685
+ __TYPE__: "AnyLink";
3686
+ } & {
3687
+ text: string;
3688
+ });
3689
+ }[];
3690
+ } | import("./fields").GroupContent | {
3103
3691
  __TYPE__: "StructuredTextContent";
3104
3692
  value: (({
3105
3693
  type: "image";
@@ -3254,7 +3842,7 @@ export declare const DocumentLegacy: {
3254
3842
  }))[];
3255
3843
  } | {
3256
3844
  __TYPE__: "SeparatorContent";
3257
- } | import("./fields").GroupContent | {
3845
+ } | {
3258
3846
  __TYPE__: "CompositeSliceContent";
3259
3847
  nonRepeat: {
3260
3848
  [x: string]: {
@@ -3437,6 +4025,78 @@ export declare const DocumentLegacy: {
3437
4025
  } & {
3438
4026
  text: string;
3439
4027
  });
4028
+ } | {
4029
+ __TYPE__: "RepeatableContent";
4030
+ type: "Link";
4031
+ value: {
4032
+ __TYPE__: "LinkContent";
4033
+ value: ({
4034
+ __TYPE__: "ImageLink";
4035
+ } & (({
4036
+ kind: string;
4037
+ id: string;
4038
+ url: string;
4039
+ height: string;
4040
+ width: string;
4041
+ size: string;
4042
+ name: string;
4043
+ } & {
4044
+ date?: string | null | undefined;
4045
+ } & {
4046
+ text?: string;
4047
+ }) | {
4048
+ kind: "image";
4049
+ text: string;
4050
+ })) | ({
4051
+ __TYPE__: "FileLink";
4052
+ } & (({
4053
+ kind: string;
4054
+ id: string;
4055
+ url: string;
4056
+ name: string;
4057
+ size: string;
4058
+ } & {
4059
+ date?: string | null | undefined;
4060
+ } & {
4061
+ text?: string;
4062
+ }) | {
4063
+ kind: "file";
4064
+ text: string;
4065
+ })) | ({
4066
+ __TYPE__: "MediaLink";
4067
+ } & {
4068
+ kind: "media";
4069
+ text: string;
4070
+ }) | ({
4071
+ __TYPE__: "DocumentLink";
4072
+ } & (({
4073
+ id: string;
4074
+ } & {
4075
+ text?: string;
4076
+ }) | {
4077
+ kind: "document";
4078
+ text: string;
4079
+ })) | ({
4080
+ __TYPE__: "ExternalLink";
4081
+ } & (({
4082
+ url: string;
4083
+ } & {
4084
+ kind?: "web";
4085
+ target?: string | null | undefined;
4086
+ preview?: {
4087
+ title?: string;
4088
+ } | null | undefined;
4089
+ } & {
4090
+ text?: string;
4091
+ }) | {
4092
+ kind: "web";
4093
+ text: string;
4094
+ })) | ({
4095
+ __TYPE__: "AnyLink";
4096
+ } & {
4097
+ text: string;
4098
+ });
4099
+ }[];
3440
4100
  } | {
3441
4101
  __TYPE__: "StructuredTextContent";
3442
4102
  value: (({
@@ -3777,6 +4437,78 @@ export declare const DocumentLegacy: {
3777
4437
  text: string;
3778
4438
  });
3779
4439
  } | {
4440
+ __TYPE__: "RepeatableContent";
4441
+ type: "Link";
4442
+ value: {
4443
+ __TYPE__: "LinkContent";
4444
+ value: ({
4445
+ __TYPE__: "ImageLink";
4446
+ } & (({
4447
+ kind: string;
4448
+ id: string;
4449
+ url: string;
4450
+ height: string;
4451
+ width: string;
4452
+ size: string;
4453
+ name: string;
4454
+ } & {
4455
+ date?: string | null | undefined;
4456
+ } & {
4457
+ text?: string;
4458
+ }) | {
4459
+ kind: "image";
4460
+ text: string;
4461
+ })) | ({
4462
+ __TYPE__: "FileLink";
4463
+ } & (({
4464
+ kind: string;
4465
+ id: string;
4466
+ url: string;
4467
+ name: string;
4468
+ size: string;
4469
+ } & {
4470
+ date?: string | null | undefined;
4471
+ } & {
4472
+ text?: string;
4473
+ }) | {
4474
+ kind: "file";
4475
+ text: string;
4476
+ })) | ({
4477
+ __TYPE__: "MediaLink";
4478
+ } & {
4479
+ kind: "media";
4480
+ text: string;
4481
+ }) | ({
4482
+ __TYPE__: "DocumentLink";
4483
+ } & (({
4484
+ id: string;
4485
+ } & {
4486
+ text?: string;
4487
+ }) | {
4488
+ kind: "document";
4489
+ text: string;
4490
+ })) | ({
4491
+ __TYPE__: "ExternalLink";
4492
+ } & (({
4493
+ url: string;
4494
+ } & {
4495
+ kind?: "web";
4496
+ target?: string | null | undefined;
4497
+ preview?: {
4498
+ title?: string;
4499
+ } | null | undefined;
4500
+ } & {
4501
+ text?: string;
4502
+ }) | {
4503
+ kind: "web";
4504
+ text: string;
4505
+ })) | ({
4506
+ __TYPE__: "AnyLink";
4507
+ } & {
4508
+ text: string;
4509
+ });
4510
+ }[];
4511
+ } | import("./fields").GroupContent | {
3780
4512
  __TYPE__: "StructuredTextContent";
3781
4513
  value: (({
3782
4514
  type: "image";
@@ -3931,7 +4663,7 @@ export declare const DocumentLegacy: {
3931
4663
  }))[];
3932
4664
  } | {
3933
4665
  __TYPE__: "SeparatorContent";
3934
- } | import("./fields").GroupContent][];
4666
+ }][];
3935
4667
  }[];
3936
4668
  } | {
3937
4669
  __TYPE__: "SharedSliceContent";
@@ -4118,6 +4850,78 @@ export declare const DocumentLegacy: {
4118
4850
  text: string;
4119
4851
  });
4120
4852
  } | {
4853
+ __TYPE__: "RepeatableContent";
4854
+ type: "Link";
4855
+ value: {
4856
+ __TYPE__: "LinkContent";
4857
+ value: ({
4858
+ __TYPE__: "ImageLink";
4859
+ } & (({
4860
+ kind: string;
4861
+ id: string;
4862
+ url: string;
4863
+ height: string;
4864
+ width: string;
4865
+ size: string;
4866
+ name: string;
4867
+ } & {
4868
+ date?: string | null | undefined;
4869
+ } & {
4870
+ text?: string;
4871
+ }) | {
4872
+ kind: "image";
4873
+ text: string;
4874
+ })) | ({
4875
+ __TYPE__: "FileLink";
4876
+ } & (({
4877
+ kind: string;
4878
+ id: string;
4879
+ url: string;
4880
+ name: string;
4881
+ size: string;
4882
+ } & {
4883
+ date?: string | null | undefined;
4884
+ } & {
4885
+ text?: string;
4886
+ }) | {
4887
+ kind: "file";
4888
+ text: string;
4889
+ })) | ({
4890
+ __TYPE__: "MediaLink";
4891
+ } & {
4892
+ kind: "media";
4893
+ text: string;
4894
+ }) | ({
4895
+ __TYPE__: "DocumentLink";
4896
+ } & (({
4897
+ id: string;
4898
+ } & {
4899
+ text?: string;
4900
+ }) | {
4901
+ kind: "document";
4902
+ text: string;
4903
+ })) | ({
4904
+ __TYPE__: "ExternalLink";
4905
+ } & (({
4906
+ url: string;
4907
+ } & {
4908
+ kind?: "web";
4909
+ target?: string | null | undefined;
4910
+ preview?: {
4911
+ title?: string;
4912
+ } | null | undefined;
4913
+ } & {
4914
+ text?: string;
4915
+ }) | {
4916
+ kind: "web";
4917
+ text: string;
4918
+ })) | ({
4919
+ __TYPE__: "AnyLink";
4920
+ } & {
4921
+ text: string;
4922
+ });
4923
+ }[];
4924
+ } | import("./fields").GroupContent | {
4121
4925
  __TYPE__: "StructuredTextContent";
4122
4926
  value: (({
4123
4927
  type: "image";
@@ -4272,7 +5076,7 @@ export declare const DocumentLegacy: {
4272
5076
  }))[];
4273
5077
  } | {
4274
5078
  __TYPE__: "SeparatorContent";
4275
- } | import("./fields").GroupContent;
5079
+ };
4276
5080
  };
4277
5081
  items: {
4278
5082
  __TYPE__: "GroupItemContent";
@@ -4457,6 +5261,78 @@ export declare const DocumentLegacy: {
4457
5261
  text: string;
4458
5262
  });
4459
5263
  } | {
5264
+ __TYPE__: "RepeatableContent";
5265
+ type: "Link";
5266
+ value: {
5267
+ __TYPE__: "LinkContent";
5268
+ value: ({
5269
+ __TYPE__: "ImageLink";
5270
+ } & (({
5271
+ kind: string;
5272
+ id: string;
5273
+ url: string;
5274
+ height: string;
5275
+ width: string;
5276
+ size: string;
5277
+ name: string;
5278
+ } & {
5279
+ date?: string | null | undefined;
5280
+ } & {
5281
+ text?: string;
5282
+ }) | {
5283
+ kind: "image";
5284
+ text: string;
5285
+ })) | ({
5286
+ __TYPE__: "FileLink";
5287
+ } & (({
5288
+ kind: string;
5289
+ id: string;
5290
+ url: string;
5291
+ name: string;
5292
+ size: string;
5293
+ } & {
5294
+ date?: string | null | undefined;
5295
+ } & {
5296
+ text?: string;
5297
+ }) | {
5298
+ kind: "file";
5299
+ text: string;
5300
+ })) | ({
5301
+ __TYPE__: "MediaLink";
5302
+ } & {
5303
+ kind: "media";
5304
+ text: string;
5305
+ }) | ({
5306
+ __TYPE__: "DocumentLink";
5307
+ } & (({
5308
+ id: string;
5309
+ } & {
5310
+ text?: string;
5311
+ }) | {
5312
+ kind: "document";
5313
+ text: string;
5314
+ })) | ({
5315
+ __TYPE__: "ExternalLink";
5316
+ } & (({
5317
+ url: string;
5318
+ } & {
5319
+ kind?: "web";
5320
+ target?: string | null | undefined;
5321
+ preview?: {
5322
+ title?: string;
5323
+ } | null | undefined;
5324
+ } & {
5325
+ text?: string;
5326
+ }) | {
5327
+ kind: "web";
5328
+ text: string;
5329
+ })) | ({
5330
+ __TYPE__: "AnyLink";
5331
+ } & {
5332
+ text: string;
5333
+ });
5334
+ }[];
5335
+ } | import("./fields").GroupContent | {
4460
5336
  __TYPE__: "StructuredTextContent";
4461
5337
  value: (({
4462
5338
  type: "image";
@@ -4611,7 +5487,7 @@ export declare const DocumentLegacy: {
4611
5487
  }))[];
4612
5488
  } | {
4613
5489
  __TYPE__: "SeparatorContent";
4614
- } | import("./fields").GroupContent][];
5490
+ }][];
4615
5491
  }[];
4616
5492
  };
4617
5493
  }[];
@@ -4832,6 +5708,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4832
5708
  text: string;
4833
5709
  });
4834
5710
  } | {
5711
+ __TYPE__: "RepeatableContent";
5712
+ type: "Link";
5713
+ value: {
5714
+ __TYPE__: "LinkContent";
5715
+ value: ({
5716
+ __TYPE__: "ImageLink";
5717
+ } & (({
5718
+ kind: string;
5719
+ id: string;
5720
+ url: string;
5721
+ height: string;
5722
+ width: string;
5723
+ size: string;
5724
+ name: string;
5725
+ } & {
5726
+ date?: string | null | undefined;
5727
+ } & {
5728
+ text?: string;
5729
+ }) | {
5730
+ kind: "image";
5731
+ text: string;
5732
+ })) | ({
5733
+ __TYPE__: "FileLink";
5734
+ } & (({
5735
+ kind: string;
5736
+ id: string;
5737
+ url: string;
5738
+ name: string;
5739
+ size: string;
5740
+ } & {
5741
+ date?: string | null | undefined;
5742
+ } & {
5743
+ text?: string;
5744
+ }) | {
5745
+ kind: "file";
5746
+ text: string;
5747
+ })) | ({
5748
+ __TYPE__: "MediaLink";
5749
+ } & {
5750
+ kind: "media";
5751
+ text: string;
5752
+ }) | ({
5753
+ __TYPE__: "DocumentLink";
5754
+ } & (({
5755
+ id: string;
5756
+ } & {
5757
+ text?: string;
5758
+ }) | {
5759
+ kind: "document";
5760
+ text: string;
5761
+ })) | ({
5762
+ __TYPE__: "ExternalLink";
5763
+ } & (({
5764
+ url: string;
5765
+ } & {
5766
+ kind?: "web";
5767
+ target?: string | null | undefined;
5768
+ preview?: {
5769
+ title?: string;
5770
+ } | null | undefined;
5771
+ } & {
5772
+ text?: string;
5773
+ }) | {
5774
+ kind: "web";
5775
+ text: string;
5776
+ })) | ({
5777
+ __TYPE__: "AnyLink";
5778
+ } & {
5779
+ text: string;
5780
+ });
5781
+ }[];
5782
+ } | import("./fields").GroupContent | {
4835
5783
  __TYPE__: "StructuredTextContent";
4836
5784
  value: (({
4837
5785
  type: "image";
@@ -4986,7 +5934,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4986
5934
  }))[];
4987
5935
  } | {
4988
5936
  __TYPE__: "SeparatorContent";
4989
- } | import("./fields").GroupContent | {
5937
+ } | {
4990
5938
  __TYPE__: "UIDContent";
4991
5939
  value: string;
4992
5940
  } | {
@@ -5176,6 +6124,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5176
6124
  text: string;
5177
6125
  });
5178
6126
  } | {
6127
+ __TYPE__: "RepeatableContent";
6128
+ type: "Link";
6129
+ value: {
6130
+ __TYPE__: "LinkContent";
6131
+ value: ({
6132
+ __TYPE__: "ImageLink";
6133
+ } & (({
6134
+ kind: string;
6135
+ id: string;
6136
+ url: string;
6137
+ height: string;
6138
+ width: string;
6139
+ size: string;
6140
+ name: string;
6141
+ } & {
6142
+ date?: string | null | undefined;
6143
+ } & {
6144
+ text?: string;
6145
+ }) | {
6146
+ kind: "image";
6147
+ text: string;
6148
+ })) | ({
6149
+ __TYPE__: "FileLink";
6150
+ } & (({
6151
+ kind: string;
6152
+ id: string;
6153
+ url: string;
6154
+ name: string;
6155
+ size: string;
6156
+ } & {
6157
+ date?: string | null | undefined;
6158
+ } & {
6159
+ text?: string;
6160
+ }) | {
6161
+ kind: "file";
6162
+ text: string;
6163
+ })) | ({
6164
+ __TYPE__: "MediaLink";
6165
+ } & {
6166
+ kind: "media";
6167
+ text: string;
6168
+ }) | ({
6169
+ __TYPE__: "DocumentLink";
6170
+ } & (({
6171
+ id: string;
6172
+ } & {
6173
+ text?: string;
6174
+ }) | {
6175
+ kind: "document";
6176
+ text: string;
6177
+ })) | ({
6178
+ __TYPE__: "ExternalLink";
6179
+ } & (({
6180
+ url: string;
6181
+ } & {
6182
+ kind?: "web";
6183
+ target?: string | null | undefined;
6184
+ preview?: {
6185
+ title?: string;
6186
+ } | null | undefined;
6187
+ } & {
6188
+ text?: string;
6189
+ }) | {
6190
+ kind: "web";
6191
+ text: string;
6192
+ })) | ({
6193
+ __TYPE__: "AnyLink";
6194
+ } & {
6195
+ text: string;
6196
+ });
6197
+ }[];
6198
+ } | import("./fields").GroupContent | {
5179
6199
  __TYPE__: "StructuredTextContent";
5180
6200
  value: (({
5181
6201
  type: "image";
@@ -5330,7 +6350,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5330
6350
  }))[];
5331
6351
  } | {
5332
6352
  __TYPE__: "SeparatorContent";
5333
- } | import("./fields").GroupContent | {
6353
+ } | {
5334
6354
  __TYPE__: "CompositeSliceContent";
5335
6355
  nonRepeat: {
5336
6356
  [x: string]: {
@@ -5513,6 +6533,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5513
6533
  } & {
5514
6534
  text: string;
5515
6535
  });
6536
+ } | {
6537
+ __TYPE__: "RepeatableContent";
6538
+ type: "Link";
6539
+ value: {
6540
+ __TYPE__: "LinkContent";
6541
+ value: ({
6542
+ __TYPE__: "ImageLink";
6543
+ } & (({
6544
+ kind: string;
6545
+ id: string;
6546
+ url: string;
6547
+ height: string;
6548
+ width: string;
6549
+ size: string;
6550
+ name: string;
6551
+ } & {
6552
+ date?: string | null | undefined;
6553
+ } & {
6554
+ text?: string;
6555
+ }) | {
6556
+ kind: "image";
6557
+ text: string;
6558
+ })) | ({
6559
+ __TYPE__: "FileLink";
6560
+ } & (({
6561
+ kind: string;
6562
+ id: string;
6563
+ url: string;
6564
+ name: string;
6565
+ size: string;
6566
+ } & {
6567
+ date?: string | null | undefined;
6568
+ } & {
6569
+ text?: string;
6570
+ }) | {
6571
+ kind: "file";
6572
+ text: string;
6573
+ })) | ({
6574
+ __TYPE__: "MediaLink";
6575
+ } & {
6576
+ kind: "media";
6577
+ text: string;
6578
+ }) | ({
6579
+ __TYPE__: "DocumentLink";
6580
+ } & (({
6581
+ id: string;
6582
+ } & {
6583
+ text?: string;
6584
+ }) | {
6585
+ kind: "document";
6586
+ text: string;
6587
+ })) | ({
6588
+ __TYPE__: "ExternalLink";
6589
+ } & (({
6590
+ url: string;
6591
+ } & {
6592
+ kind?: "web";
6593
+ target?: string | null | undefined;
6594
+ preview?: {
6595
+ title?: string;
6596
+ } | null | undefined;
6597
+ } & {
6598
+ text?: string;
6599
+ }) | {
6600
+ kind: "web";
6601
+ text: string;
6602
+ })) | ({
6603
+ __TYPE__: "AnyLink";
6604
+ } & {
6605
+ text: string;
6606
+ });
6607
+ }[];
5516
6608
  } | {
5517
6609
  __TYPE__: "StructuredTextContent";
5518
6610
  value: (({
@@ -5853,6 +6945,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5853
6945
  text: string;
5854
6946
  });
5855
6947
  } | {
6948
+ __TYPE__: "RepeatableContent";
6949
+ type: "Link";
6950
+ value: {
6951
+ __TYPE__: "LinkContent";
6952
+ value: ({
6953
+ __TYPE__: "ImageLink";
6954
+ } & (({
6955
+ kind: string;
6956
+ id: string;
6957
+ url: string;
6958
+ height: string;
6959
+ width: string;
6960
+ size: string;
6961
+ name: string;
6962
+ } & {
6963
+ date?: string | null | undefined;
6964
+ } & {
6965
+ text?: string;
6966
+ }) | {
6967
+ kind: "image";
6968
+ text: string;
6969
+ })) | ({
6970
+ __TYPE__: "FileLink";
6971
+ } & (({
6972
+ kind: string;
6973
+ id: string;
6974
+ url: string;
6975
+ name: string;
6976
+ size: string;
6977
+ } & {
6978
+ date?: string | null | undefined;
6979
+ } & {
6980
+ text?: string;
6981
+ }) | {
6982
+ kind: "file";
6983
+ text: string;
6984
+ })) | ({
6985
+ __TYPE__: "MediaLink";
6986
+ } & {
6987
+ kind: "media";
6988
+ text: string;
6989
+ }) | ({
6990
+ __TYPE__: "DocumentLink";
6991
+ } & (({
6992
+ id: string;
6993
+ } & {
6994
+ text?: string;
6995
+ }) | {
6996
+ kind: "document";
6997
+ text: string;
6998
+ })) | ({
6999
+ __TYPE__: "ExternalLink";
7000
+ } & (({
7001
+ url: string;
7002
+ } & {
7003
+ kind?: "web";
7004
+ target?: string | null | undefined;
7005
+ preview?: {
7006
+ title?: string;
7007
+ } | null | undefined;
7008
+ } & {
7009
+ text?: string;
7010
+ }) | {
7011
+ kind: "web";
7012
+ text: string;
7013
+ })) | ({
7014
+ __TYPE__: "AnyLink";
7015
+ } & {
7016
+ text: string;
7017
+ });
7018
+ }[];
7019
+ } | import("./fields").GroupContent | {
5856
7020
  __TYPE__: "StructuredTextContent";
5857
7021
  value: (({
5858
7022
  type: "image";
@@ -6007,7 +7171,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6007
7171
  }))[];
6008
7172
  } | {
6009
7173
  __TYPE__: "SeparatorContent";
6010
- } | import("./fields").GroupContent][];
7174
+ }][];
6011
7175
  }[];
6012
7176
  } | {
6013
7177
  __TYPE__: "SharedSliceContent";
@@ -6194,6 +7358,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6194
7358
  text: string;
6195
7359
  });
6196
7360
  } | {
7361
+ __TYPE__: "RepeatableContent";
7362
+ type: "Link";
7363
+ value: {
7364
+ __TYPE__: "LinkContent";
7365
+ value: ({
7366
+ __TYPE__: "ImageLink";
7367
+ } & (({
7368
+ kind: string;
7369
+ id: string;
7370
+ url: string;
7371
+ height: string;
7372
+ width: string;
7373
+ size: string;
7374
+ name: string;
7375
+ } & {
7376
+ date?: string | null | undefined;
7377
+ } & {
7378
+ text?: string;
7379
+ }) | {
7380
+ kind: "image";
7381
+ text: string;
7382
+ })) | ({
7383
+ __TYPE__: "FileLink";
7384
+ } & (({
7385
+ kind: string;
7386
+ id: string;
7387
+ url: string;
7388
+ name: string;
7389
+ size: string;
7390
+ } & {
7391
+ date?: string | null | undefined;
7392
+ } & {
7393
+ text?: string;
7394
+ }) | {
7395
+ kind: "file";
7396
+ text: string;
7397
+ })) | ({
7398
+ __TYPE__: "MediaLink";
7399
+ } & {
7400
+ kind: "media";
7401
+ text: string;
7402
+ }) | ({
7403
+ __TYPE__: "DocumentLink";
7404
+ } & (({
7405
+ id: string;
7406
+ } & {
7407
+ text?: string;
7408
+ }) | {
7409
+ kind: "document";
7410
+ text: string;
7411
+ })) | ({
7412
+ __TYPE__: "ExternalLink";
7413
+ } & (({
7414
+ url: string;
7415
+ } & {
7416
+ kind?: "web";
7417
+ target?: string | null | undefined;
7418
+ preview?: {
7419
+ title?: string;
7420
+ } | null | undefined;
7421
+ } & {
7422
+ text?: string;
7423
+ }) | {
7424
+ kind: "web";
7425
+ text: string;
7426
+ })) | ({
7427
+ __TYPE__: "AnyLink";
7428
+ } & {
7429
+ text: string;
7430
+ });
7431
+ }[];
7432
+ } | import("./fields").GroupContent | {
6197
7433
  __TYPE__: "StructuredTextContent";
6198
7434
  value: (({
6199
7435
  type: "image";
@@ -6348,7 +7584,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6348
7584
  }))[];
6349
7585
  } | {
6350
7586
  __TYPE__: "SeparatorContent";
6351
- } | import("./fields").GroupContent;
7587
+ };
6352
7588
  };
6353
7589
  items: {
6354
7590
  __TYPE__: "GroupItemContent";
@@ -6533,6 +7769,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6533
7769
  text: string;
6534
7770
  });
6535
7771
  } | {
7772
+ __TYPE__: "RepeatableContent";
7773
+ type: "Link";
7774
+ value: {
7775
+ __TYPE__: "LinkContent";
7776
+ value: ({
7777
+ __TYPE__: "ImageLink";
7778
+ } & (({
7779
+ kind: string;
7780
+ id: string;
7781
+ url: string;
7782
+ height: string;
7783
+ width: string;
7784
+ size: string;
7785
+ name: string;
7786
+ } & {
7787
+ date?: string | null | undefined;
7788
+ } & {
7789
+ text?: string;
7790
+ }) | {
7791
+ kind: "image";
7792
+ text: string;
7793
+ })) | ({
7794
+ __TYPE__: "FileLink";
7795
+ } & (({
7796
+ kind: string;
7797
+ id: string;
7798
+ url: string;
7799
+ name: string;
7800
+ size: string;
7801
+ } & {
7802
+ date?: string | null | undefined;
7803
+ } & {
7804
+ text?: string;
7805
+ }) | {
7806
+ kind: "file";
7807
+ text: string;
7808
+ })) | ({
7809
+ __TYPE__: "MediaLink";
7810
+ } & {
7811
+ kind: "media";
7812
+ text: string;
7813
+ }) | ({
7814
+ __TYPE__: "DocumentLink";
7815
+ } & (({
7816
+ id: string;
7817
+ } & {
7818
+ text?: string;
7819
+ }) | {
7820
+ kind: "document";
7821
+ text: string;
7822
+ })) | ({
7823
+ __TYPE__: "ExternalLink";
7824
+ } & (({
7825
+ url: string;
7826
+ } & {
7827
+ kind?: "web";
7828
+ target?: string | null | undefined;
7829
+ preview?: {
7830
+ title?: string;
7831
+ } | null | undefined;
7832
+ } & {
7833
+ text?: string;
7834
+ }) | {
7835
+ kind: "web";
7836
+ text: string;
7837
+ })) | ({
7838
+ __TYPE__: "AnyLink";
7839
+ } & {
7840
+ text: string;
7841
+ });
7842
+ }[];
7843
+ } | import("./fields").GroupContent | {
6536
7844
  __TYPE__: "StructuredTextContent";
6537
7845
  value: (({
6538
7846
  type: "image";
@@ -6687,7 +7995,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6687
7995
  }))[];
6688
7996
  } | {
6689
7997
  __TYPE__: "SeparatorContent";
6690
- } | import("./fields").GroupContent][];
7998
+ }][];
6691
7999
  }[];
6692
8000
  };
6693
8001
  }[];