@prismicio/types-internal 3.5.0 → 3.7.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/lib/content/Document.d.ts +1972 -1588
  2. package/lib/content/fields/GroupContent.js +6 -9
  3. package/lib/content/fields/RepeatableContent.d.ts +51 -123
  4. package/lib/content/fields/RepeatableContent.js +10 -14
  5. package/lib/content/fields/WidgetContent.d.ts +1984 -1600
  6. package/lib/content/fields/nestable/NestableContent.d.ts +314 -250
  7. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
  8. package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
  9. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
  10. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
  11. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
  12. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
  13. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
  14. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
  15. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
  16. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
  17. package/lib/content/fields/nestable/RichTextContent/index.d.ts +301 -0
  18. package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
  19. package/lib/content/fields/nestable/TableContent.d.ts +412 -907
  20. package/lib/content/fields/nestable/TableContent.js +50 -59
  21. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +628 -500
  22. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +130 -118
  23. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +628 -500
  24. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +314 -250
  25. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +314 -250
  26. package/lib/content/fields/slices/Slice/index.d.ts +1113 -923
  27. package/lib/content/fields/slices/SliceItem.d.ts +1110 -920
  28. package/lib/content/fields/slices/SlicesContent.d.ts +1573 -1253
  29. package/package.json +3 -2
  30. package/src/content/fields/GroupContent.ts +8 -16
  31. package/src/content/fields/nestable/RichTextContent/index.ts +6 -6
  32. package/src/content/fields/nestable/TableContent.ts +61 -84
@@ -433,76 +433,100 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
433
433
  content: {
434
434
  type: "tableRow";
435
435
  content: ({
436
- type: "tableHeader";
436
+ type: "tableHeader" | "tableCell";
437
437
  content: {
438
438
  __TYPE__: "StructuredTextContent";
439
- value: ({
440
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
441
- content: {
442
- text: string;
439
+ value: (({
440
+ type: "image";
441
+ data: {
442
+ origin: {
443
+ id: string;
444
+ url: string;
445
+ width: number;
446
+ height: number;
447
+ };
448
+ width: number;
449
+ height: number;
450
+ edit: {
451
+ zoom: number;
452
+ crop: {
453
+ x: number;
454
+ y: number;
455
+ };
456
+ background: string;
457
+ };
443
458
  } & {
444
- spans?: ({
445
- data: ({
446
- __TYPE__: "ImageLink";
447
- } & {
448
- kind: "image";
449
- id: string;
450
- url: string;
451
- height: string;
452
- width: string;
453
- size: string;
454
- name: string;
455
- } & {
456
- date?: string | null | undefined;
457
- }) | ({
458
- __TYPE__: "FileLink";
459
- } & {
460
- kind: "file";
461
- id: string;
462
- url: string;
463
- name: string;
464
- size: string;
465
- } & {
466
- date?: string | null | undefined;
467
- }) | ({
468
- __TYPE__: "DocumentLink";
469
- } & {
470
- id: string;
471
- }) | ({
472
- __TYPE__: "ExternalLink";
473
- } & {
474
- url: string;
475
- } & {
476
- kind?: "web";
477
- target?: string | null | undefined;
478
- preview?: {
479
- title?: string;
480
- } | null | undefined;
481
- });
482
- start: number;
483
- end: number;
484
- type: "hyperlink";
485
- } | {
486
- data: string;
487
- start: number;
488
- end: number;
489
- type: "label";
490
- } | {
491
- start: number;
492
- end: number;
493
- type: "strong" | "em" | "list-item";
494
- })[];
459
+ url?: string;
460
+ credits?: string | null;
461
+ alt?: string | null;
462
+ provider?: string | null | undefined;
463
+ } & {
464
+ linkTo?: ({
465
+ __TYPE__: "ImageLink";
466
+ } & {
467
+ kind: "image";
468
+ id: string;
469
+ url: string;
470
+ height: string;
471
+ width: string;
472
+ size: string;
473
+ name: string;
474
+ } & {
475
+ date?: string | null | undefined;
476
+ }) | ({
477
+ __TYPE__: "FileLink";
478
+ } & {
479
+ kind: "file";
480
+ id: string;
481
+ url: string;
482
+ name: string;
483
+ size: string;
484
+ } & {
485
+ date?: string | null | undefined;
486
+ }) | ({
487
+ __TYPE__: "DocumentLink";
488
+ } & {
489
+ id: string;
490
+ }) | ({
491
+ __TYPE__: "ExternalLink";
492
+ } & {
493
+ url: string;
494
+ } & {
495
+ kind?: "web";
496
+ target?: string | null | undefined;
497
+ preview?: {
498
+ title?: string;
499
+ } | null | undefined;
500
+ }) | null | undefined;
495
501
  };
496
502
  } & {
497
- label?: string;
498
- direction?: string;
499
- })[];
500
- };
501
- } | {
502
- type: "tableCell";
503
- content: {
504
- __TYPE__: "StructuredTextContent";
505
- value: ({
503
+ label?: string | null | undefined;
504
+ direction?: string | null | undefined;
505
+ }) | ({
506
+ type: "embed";
507
+ data: {
508
+ embed_url: string;
509
+ type: string;
510
+ } & {
511
+ version?: string | number | null;
512
+ title?: string | null | undefined;
513
+ author_name?: string | null | undefined;
514
+ author_url?: string | null | undefined;
515
+ provider_name?: string | null | undefined;
516
+ provider_url?: string | null | undefined;
517
+ cache_age?: string | number | null;
518
+ thumbnail_url?: string | null | undefined;
519
+ thumbnail_width?: number | null | undefined;
520
+ thumbnail_height?: number | null | undefined;
521
+ html?: string | null | undefined;
522
+ } & {
523
+ __TYPE__: "EmbedContent";
524
+ all: unknown;
525
+ };
526
+ } & {
527
+ label?: string | null | undefined;
528
+ direction?: string | null | undefined;
529
+ }) | ({
506
530
  type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
507
531
  content: {
508
532
  text: string;
@@ -562,8 +586,10 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
562
586
  } & {
563
587
  label?: string;
564
588
  direction?: string;
565
- })[];
589
+ }))[];
566
590
  };
591
+ } & {
592
+ columnWidth?: number;
567
593
  })[];
568
594
  }[];
569
595
  };
@@ -996,76 +1022,100 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
996
1022
  content: {
997
1023
  type: "tableRow";
998
1024
  content: ({
999
- type: "tableHeader";
1025
+ type: "tableHeader" | "tableCell";
1000
1026
  content: {
1001
1027
  __TYPE__: "StructuredTextContent";
1002
- value: ({
1003
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1004
- content: {
1005
- text: string;
1028
+ value: (({
1029
+ type: "image";
1030
+ data: {
1031
+ origin: {
1032
+ id: string;
1033
+ url: string;
1034
+ width: number;
1035
+ height: number;
1036
+ };
1037
+ width: number;
1038
+ height: number;
1039
+ edit: {
1040
+ zoom: number;
1041
+ crop: {
1042
+ x: number;
1043
+ y: number;
1044
+ };
1045
+ background: string;
1046
+ };
1006
1047
  } & {
1007
- spans?: ({
1008
- data: ({
1009
- __TYPE__: "ImageLink";
1010
- } & {
1011
- kind: "image";
1012
- id: string;
1013
- url: string;
1014
- height: string;
1015
- width: string;
1016
- size: string;
1017
- name: string;
1018
- } & {
1019
- date?: string | null | undefined;
1020
- }) | ({
1021
- __TYPE__: "FileLink";
1022
- } & {
1023
- kind: "file";
1024
- id: string;
1025
- url: string;
1026
- name: string;
1027
- size: string;
1028
- } & {
1029
- date?: string | null | undefined;
1030
- }) | ({
1031
- __TYPE__: "DocumentLink";
1032
- } & {
1033
- id: string;
1034
- }) | ({
1035
- __TYPE__: "ExternalLink";
1036
- } & {
1037
- url: string;
1038
- } & {
1039
- kind?: "web";
1040
- target?: string | null | undefined;
1041
- preview?: {
1042
- title?: string;
1043
- } | null | undefined;
1044
- });
1045
- start: number;
1046
- end: number;
1047
- type: "hyperlink";
1048
- } | {
1049
- data: string;
1050
- start: number;
1051
- end: number;
1052
- type: "label";
1053
- } | {
1054
- start: number;
1055
- end: number;
1056
- type: "strong" | "em" | "list-item";
1057
- })[];
1048
+ url?: string;
1049
+ credits?: string | null;
1050
+ alt?: string | null;
1051
+ provider?: string | null | undefined;
1052
+ } & {
1053
+ linkTo?: ({
1054
+ __TYPE__: "ImageLink";
1055
+ } & {
1056
+ kind: "image";
1057
+ id: string;
1058
+ url: string;
1059
+ height: string;
1060
+ width: string;
1061
+ size: string;
1062
+ name: string;
1063
+ } & {
1064
+ date?: string | null | undefined;
1065
+ }) | ({
1066
+ __TYPE__: "FileLink";
1067
+ } & {
1068
+ kind: "file";
1069
+ id: string;
1070
+ url: string;
1071
+ name: string;
1072
+ size: string;
1073
+ } & {
1074
+ date?: string | null | undefined;
1075
+ }) | ({
1076
+ __TYPE__: "DocumentLink";
1077
+ } & {
1078
+ id: string;
1079
+ }) | ({
1080
+ __TYPE__: "ExternalLink";
1081
+ } & {
1082
+ url: string;
1083
+ } & {
1084
+ kind?: "web";
1085
+ target?: string | null | undefined;
1086
+ preview?: {
1087
+ title?: string;
1088
+ } | null | undefined;
1089
+ }) | null | undefined;
1058
1090
  };
1059
1091
  } & {
1060
- label?: string;
1061
- direction?: string;
1062
- })[];
1063
- };
1064
- } | {
1065
- type: "tableCell";
1066
- content: {
1067
- __TYPE__: "StructuredTextContent";
1068
- value: ({
1092
+ label?: string | null | undefined;
1093
+ direction?: string | null | undefined;
1094
+ }) | ({
1095
+ type: "embed";
1096
+ data: {
1097
+ embed_url: string;
1098
+ type: string;
1099
+ } & {
1100
+ version?: string | number | null;
1101
+ title?: string | null | undefined;
1102
+ author_name?: string | null | undefined;
1103
+ author_url?: string | null | undefined;
1104
+ provider_name?: string | null | undefined;
1105
+ provider_url?: string | null | undefined;
1106
+ cache_age?: string | number | null;
1107
+ thumbnail_url?: string | null | undefined;
1108
+ thumbnail_width?: number | null | undefined;
1109
+ thumbnail_height?: number | null | undefined;
1110
+ html?: string | null | undefined;
1111
+ } & {
1112
+ __TYPE__: "EmbedContent";
1113
+ all: unknown;
1114
+ };
1115
+ } & {
1116
+ label?: string | null | undefined;
1117
+ direction?: string | null | undefined;
1118
+ }) | ({
1069
1119
  type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1070
1120
  content: {
1071
1121
  text: string;
@@ -1125,8 +1175,10 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
1125
1175
  } & {
1126
1176
  label?: string;
1127
1177
  direction?: string;
1128
- })[];
1178
+ }))[];
1129
1179
  };
1180
+ } & {
1181
+ columnWidth?: number;
1130
1182
  })[];
1131
1183
  }[];
1132
1184
  }][];
@@ -1561,76 +1613,100 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1561
1613
  content: {
1562
1614
  type: "tableRow";
1563
1615
  content: ({
1564
- type: "tableHeader";
1616
+ type: "tableHeader" | "tableCell";
1565
1617
  content: {
1566
1618
  __TYPE__: "StructuredTextContent";
1567
- value: ({
1568
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1569
- content: {
1570
- text: string;
1619
+ value: (({
1620
+ type: "image";
1621
+ data: {
1622
+ origin: {
1623
+ id: string;
1624
+ url: string;
1625
+ width: number;
1626
+ height: number;
1627
+ };
1628
+ width: number;
1629
+ height: number;
1630
+ edit: {
1631
+ zoom: number;
1632
+ crop: {
1633
+ x: number;
1634
+ y: number;
1635
+ };
1636
+ background: string;
1637
+ };
1571
1638
  } & {
1572
- spans?: ({
1573
- data: ({
1574
- __TYPE__: "ImageLink";
1575
- } & {
1576
- kind: "image";
1577
- id: string;
1578
- url: string;
1579
- height: string;
1580
- width: string;
1581
- size: string;
1582
- name: string;
1583
- } & {
1584
- date?: string | null | undefined;
1585
- }) | ({
1586
- __TYPE__: "FileLink";
1587
- } & {
1588
- kind: "file";
1589
- id: string;
1590
- url: string;
1591
- name: string;
1592
- size: string;
1593
- } & {
1594
- date?: string | null | undefined;
1595
- }) | ({
1596
- __TYPE__: "DocumentLink";
1597
- } & {
1598
- id: string;
1599
- }) | ({
1600
- __TYPE__: "ExternalLink";
1601
- } & {
1602
- url: string;
1603
- } & {
1604
- kind?: "web";
1605
- target?: string | null | undefined;
1606
- preview?: {
1607
- title?: string;
1608
- } | null | undefined;
1609
- });
1610
- start: number;
1611
- end: number;
1612
- type: "hyperlink";
1613
- } | {
1614
- data: string;
1615
- start: number;
1616
- end: number;
1617
- type: "label";
1618
- } | {
1619
- start: number;
1620
- end: number;
1621
- type: "strong" | "em" | "list-item";
1622
- })[];
1639
+ url?: string;
1640
+ credits?: string | null;
1641
+ alt?: string | null;
1642
+ provider?: string | null | undefined;
1643
+ } & {
1644
+ linkTo?: ({
1645
+ __TYPE__: "ImageLink";
1646
+ } & {
1647
+ kind: "image";
1648
+ id: string;
1649
+ url: string;
1650
+ height: string;
1651
+ width: string;
1652
+ size: string;
1653
+ name: string;
1654
+ } & {
1655
+ date?: string | null | undefined;
1656
+ }) | ({
1657
+ __TYPE__: "FileLink";
1658
+ } & {
1659
+ kind: "file";
1660
+ id: string;
1661
+ url: string;
1662
+ name: string;
1663
+ size: string;
1664
+ } & {
1665
+ date?: string | null | undefined;
1666
+ }) | ({
1667
+ __TYPE__: "DocumentLink";
1668
+ } & {
1669
+ id: string;
1670
+ }) | ({
1671
+ __TYPE__: "ExternalLink";
1672
+ } & {
1673
+ url: string;
1674
+ } & {
1675
+ kind?: "web";
1676
+ target?: string | null | undefined;
1677
+ preview?: {
1678
+ title?: string;
1679
+ } | null | undefined;
1680
+ }) | null | undefined;
1623
1681
  };
1624
1682
  } & {
1625
- label?: string;
1626
- direction?: string;
1627
- })[];
1628
- };
1629
- } | {
1630
- type: "tableCell";
1631
- content: {
1632
- __TYPE__: "StructuredTextContent";
1633
- value: ({
1683
+ label?: string | null | undefined;
1684
+ direction?: string | null | undefined;
1685
+ }) | ({
1686
+ type: "embed";
1687
+ data: {
1688
+ embed_url: string;
1689
+ type: string;
1690
+ } & {
1691
+ version?: string | number | null;
1692
+ title?: string | null | undefined;
1693
+ author_name?: string | null | undefined;
1694
+ author_url?: string | null | undefined;
1695
+ provider_name?: string | null | undefined;
1696
+ provider_url?: string | null | undefined;
1697
+ cache_age?: string | number | null;
1698
+ thumbnail_url?: string | null | undefined;
1699
+ thumbnail_width?: number | null | undefined;
1700
+ thumbnail_height?: number | null | undefined;
1701
+ html?: string | null | undefined;
1702
+ } & {
1703
+ __TYPE__: "EmbedContent";
1704
+ all: unknown;
1705
+ };
1706
+ } & {
1707
+ label?: string | null | undefined;
1708
+ direction?: string | null | undefined;
1709
+ }) | ({
1634
1710
  type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1635
1711
  content: {
1636
1712
  text: string;
@@ -1690,8 +1766,10 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1690
1766
  } & {
1691
1767
  label?: string;
1692
1768
  direction?: string;
1693
- })[];
1769
+ }))[];
1694
1770
  };
1771
+ } & {
1772
+ columnWidth?: number;
1695
1773
  })[];
1696
1774
  }[];
1697
1775
  };
@@ -2124,76 +2202,100 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
2124
2202
  content: {
2125
2203
  type: "tableRow";
2126
2204
  content: ({
2127
- type: "tableHeader";
2205
+ type: "tableHeader" | "tableCell";
2128
2206
  content: {
2129
2207
  __TYPE__: "StructuredTextContent";
2130
- value: ({
2131
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2132
- content: {
2133
- text: string;
2208
+ value: (({
2209
+ type: "image";
2210
+ data: {
2211
+ origin: {
2212
+ id: string;
2213
+ url: string;
2214
+ width: number;
2215
+ height: number;
2216
+ };
2217
+ width: number;
2218
+ height: number;
2219
+ edit: {
2220
+ zoom: number;
2221
+ crop: {
2222
+ x: number;
2223
+ y: number;
2224
+ };
2225
+ background: string;
2226
+ };
2134
2227
  } & {
2135
- spans?: ({
2136
- data: ({
2137
- __TYPE__: "ImageLink";
2138
- } & {
2139
- kind: "image";
2140
- id: string;
2141
- url: string;
2142
- height: string;
2143
- width: string;
2144
- size: string;
2145
- name: string;
2146
- } & {
2147
- date?: string | null | undefined;
2148
- }) | ({
2149
- __TYPE__: "FileLink";
2150
- } & {
2151
- kind: "file";
2152
- id: string;
2153
- url: string;
2154
- name: string;
2155
- size: string;
2156
- } & {
2157
- date?: string | null | undefined;
2158
- }) | ({
2159
- __TYPE__: "DocumentLink";
2160
- } & {
2161
- id: string;
2162
- }) | ({
2163
- __TYPE__: "ExternalLink";
2164
- } & {
2165
- url: string;
2166
- } & {
2167
- kind?: "web";
2168
- target?: string | null | undefined;
2169
- preview?: {
2170
- title?: string;
2171
- } | null | undefined;
2172
- });
2173
- start: number;
2174
- end: number;
2175
- type: "hyperlink";
2176
- } | {
2177
- data: string;
2178
- start: number;
2179
- end: number;
2180
- type: "label";
2181
- } | {
2182
- start: number;
2183
- end: number;
2184
- type: "strong" | "em" | "list-item";
2185
- })[];
2228
+ url?: string;
2229
+ credits?: string | null;
2230
+ alt?: string | null;
2231
+ provider?: string | null | undefined;
2232
+ } & {
2233
+ linkTo?: ({
2234
+ __TYPE__: "ImageLink";
2235
+ } & {
2236
+ kind: "image";
2237
+ id: string;
2238
+ url: string;
2239
+ height: string;
2240
+ width: string;
2241
+ size: string;
2242
+ name: string;
2243
+ } & {
2244
+ date?: string | null | undefined;
2245
+ }) | ({
2246
+ __TYPE__: "FileLink";
2247
+ } & {
2248
+ kind: "file";
2249
+ id: string;
2250
+ url: string;
2251
+ name: string;
2252
+ size: string;
2253
+ } & {
2254
+ date?: string | null | undefined;
2255
+ }) | ({
2256
+ __TYPE__: "DocumentLink";
2257
+ } & {
2258
+ id: string;
2259
+ }) | ({
2260
+ __TYPE__: "ExternalLink";
2261
+ } & {
2262
+ url: string;
2263
+ } & {
2264
+ kind?: "web";
2265
+ target?: string | null | undefined;
2266
+ preview?: {
2267
+ title?: string;
2268
+ } | null | undefined;
2269
+ }) | null | undefined;
2186
2270
  };
2187
2271
  } & {
2188
- label?: string;
2189
- direction?: string;
2190
- })[];
2191
- };
2192
- } | {
2193
- type: "tableCell";
2194
- content: {
2195
- __TYPE__: "StructuredTextContent";
2196
- value: ({
2272
+ label?: string | null | undefined;
2273
+ direction?: string | null | undefined;
2274
+ }) | ({
2275
+ type: "embed";
2276
+ data: {
2277
+ embed_url: string;
2278
+ type: string;
2279
+ } & {
2280
+ version?: string | number | null;
2281
+ title?: string | null | undefined;
2282
+ author_name?: string | null | undefined;
2283
+ author_url?: string | null | undefined;
2284
+ provider_name?: string | null | undefined;
2285
+ provider_url?: string | null | undefined;
2286
+ cache_age?: string | number | null;
2287
+ thumbnail_url?: string | null | undefined;
2288
+ thumbnail_width?: number | null | undefined;
2289
+ thumbnail_height?: number | null | undefined;
2290
+ html?: string | null | undefined;
2291
+ } & {
2292
+ __TYPE__: "EmbedContent";
2293
+ all: unknown;
2294
+ };
2295
+ } & {
2296
+ label?: string | null | undefined;
2297
+ direction?: string | null | undefined;
2298
+ }) | ({
2197
2299
  type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2198
2300
  content: {
2199
2301
  text: string;
@@ -2253,8 +2355,10 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
2253
2355
  } & {
2254
2356
  label?: string;
2255
2357
  direction?: string;
2256
- })[];
2358
+ }))[];
2257
2359
  };
2360
+ } & {
2361
+ columnWidth?: number;
2258
2362
  })[];
2259
2363
  }[];
2260
2364
  }][];
@@ -2699,127 +2803,137 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
2699
2803
  __TYPE__: t.LiteralC<"TableContent">;
2700
2804
  content: t.ArrayC<t.ExactC<t.TypeC<{
2701
2805
  type: t.LiteralC<"tableRow">;
2702
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
2703
- type: t.LiteralC<"tableHeader">;
2806
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
2807
+ type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
2704
2808
  content: t.ExactC<t.TypeC<{
2705
2809
  __TYPE__: t.LiteralC<"StructuredTextContent">;
2706
- value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
2707
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
2708
- content: t.IntersectionC<[t.TypeC<{
2709
- text: t.StringC;
2810
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2811
+ type: t.LiteralC<"image">;
2812
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2813
+ origin: t.ExactC<t.TypeC<{
2814
+ id: t.StringC;
2815
+ url: t.StringC;
2816
+ width: t.NumberC;
2817
+ height: t.NumberC;
2818
+ }>>;
2819
+ width: t.NumberC;
2820
+ height: t.NumberC;
2821
+ edit: t.TypeC<{
2822
+ zoom: t.NumberC;
2823
+ crop: t.TypeC<{
2824
+ x: t.NumberC;
2825
+ y: t.NumberC;
2826
+ }>;
2827
+ background: t.StringC;
2828
+ }>;
2710
2829
  }>, t.PartialC<{
2711
- spans: t.Type<({
2712
- data: ({
2713
- __TYPE__: "ImageLink";
2714
- } & {
2715
- kind: "image";
2716
- id: string;
2717
- url: string;
2718
- height: string;
2719
- width: string;
2720
- size: string;
2721
- name: string;
2722
- } & {
2723
- date?: string | null | undefined;
2724
- }) | ({
2725
- __TYPE__: "FileLink";
2726
- } & {
2727
- kind: "file";
2728
- id: string;
2729
- url: string;
2730
- name: string;
2731
- size: string;
2732
- } & {
2733
- date?: string | null | undefined;
2734
- }) | ({
2735
- __TYPE__: "DocumentLink";
2736
- } & {
2737
- id: string;
2738
- }) | ({
2739
- __TYPE__: "ExternalLink";
2740
- } & {
2741
- url: string;
2742
- } & {
2743
- kind?: "web";
2744
- target?: string | null | undefined;
2745
- preview?: {
2746
- title?: string;
2747
- } | null | undefined;
2748
- });
2749
- start: number;
2750
- end: number;
2751
- type: "hyperlink";
2752
- } | {
2753
- data: string;
2754
- start: number;
2755
- end: number;
2756
- type: "label";
2757
- } | {
2758
- start: number;
2759
- end: number;
2760
- type: "strong" | "em" | "list-item";
2761
- })[], ({
2762
- data: ({
2763
- __TYPE__: "ImageLink";
2764
- } & {
2765
- kind: "image";
2766
- id: string;
2767
- url: string;
2768
- height: string;
2769
- width: string;
2770
- size: string;
2771
- name: string;
2772
- } & {
2773
- date?: string | null | undefined;
2774
- }) | ({
2775
- __TYPE__: "FileLink";
2776
- } & {
2777
- kind: "file";
2778
- id: string;
2779
- url: string;
2780
- name: string;
2781
- size: string;
2782
- } & {
2783
- date?: string | null | undefined;
2784
- }) | ({
2785
- __TYPE__: "DocumentLink";
2786
- } & {
2787
- id: string;
2788
- }) | ({
2789
- __TYPE__: "ExternalLink";
2790
- } & {
2791
- url: string;
2792
- } & {
2793
- kind?: "web";
2794
- target?: string | null | undefined;
2795
- preview?: {
2796
- title?: string;
2797
- } | null | undefined;
2798
- });
2799
- start: number;
2800
- end: number;
2801
- type: "hyperlink";
2802
- } | {
2803
- data: string;
2804
- start: number;
2805
- end: number;
2806
- type: "label";
2807
- } | {
2808
- start: number;
2809
- end: number;
2810
- type: "strong" | "em" | "list-item";
2811
- })[], unknown>;
2830
+ url: t.StringC;
2831
+ credits: t.Type<string | null, string | null, unknown>;
2832
+ alt: t.Type<string | null, string | null, unknown>;
2833
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2834
+ }>]>>, t.PartialC<{
2835
+ linkTo: t.UnionC<[t.Type<({
2836
+ __TYPE__: "ImageLink";
2837
+ } & {
2838
+ kind: "image";
2839
+ id: string;
2840
+ url: string;
2841
+ height: string;
2842
+ width: string;
2843
+ size: string;
2844
+ name: string;
2845
+ } & {
2846
+ date?: string | null | undefined;
2847
+ }) | ({
2848
+ __TYPE__: "FileLink";
2849
+ } & {
2850
+ kind: "file";
2851
+ id: string;
2852
+ url: string;
2853
+ name: string;
2854
+ size: string;
2855
+ } & {
2856
+ date?: string | null | undefined;
2857
+ }) | ({
2858
+ __TYPE__: "DocumentLink";
2859
+ } & {
2860
+ id: string;
2861
+ }) | ({
2862
+ __TYPE__: "ExternalLink";
2863
+ } & {
2864
+ url: string;
2865
+ } & {
2866
+ kind?: "web";
2867
+ target?: string | null | undefined;
2868
+ preview?: {
2869
+ title?: string;
2870
+ } | null | undefined;
2871
+ }), ({
2872
+ __TYPE__: "ImageLink";
2873
+ } & {
2874
+ kind: "image";
2875
+ id: string;
2876
+ url: string;
2877
+ height: string;
2878
+ width: string;
2879
+ size: string;
2880
+ name: string;
2881
+ } & {
2882
+ date?: string | null | undefined;
2883
+ }) | ({
2884
+ __TYPE__: "FileLink";
2885
+ } & {
2886
+ kind: "file";
2887
+ id: string;
2888
+ url: string;
2889
+ name: string;
2890
+ size: string;
2891
+ } & {
2892
+ date?: string | null | undefined;
2893
+ }) | ({
2894
+ __TYPE__: "DocumentLink";
2895
+ } & {
2896
+ id: string;
2897
+ }) | ({
2898
+ __TYPE__: "ExternalLink";
2899
+ } & {
2900
+ url: string;
2901
+ } & {
2902
+ kind?: "web";
2903
+ target?: string | null | undefined;
2904
+ preview?: {
2905
+ title?: string;
2906
+ } | null | undefined;
2907
+ }), unknown>, t.NullC, t.UndefinedC]>;
2812
2908
  }>]>;
2813
2909
  }>, t.PartialC<{
2814
- label: t.StringC;
2815
- direction: t.StringC;
2816
- }>]>>>;
2817
- }>>;
2818
- }>>, t.ExactC<t.TypeC<{
2819
- type: t.LiteralC<"tableCell">;
2820
- content: t.ExactC<t.TypeC<{
2821
- __TYPE__: t.LiteralC<"StructuredTextContent">;
2822
- value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
2910
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2911
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2912
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2913
+ type: t.LiteralC<"embed">;
2914
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2915
+ embed_url: t.StringC;
2916
+ type: t.StringC;
2917
+ }>, t.PartialC<{
2918
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2919
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2920
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2921
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2922
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2923
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2924
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2925
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2926
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2927
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2928
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2929
+ }>]>>, t.ExactC<t.TypeC<{
2930
+ __TYPE__: t.LiteralC<"EmbedContent">;
2931
+ all: t.UnknownC;
2932
+ }>>]>;
2933
+ }>, t.PartialC<{
2934
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2935
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2936
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2823
2937
  type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
2824
2938
  content: t.IntersectionC<[t.TypeC<{
2825
2939
  text: t.StringC;
@@ -2929,9 +3043,11 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
2929
3043
  }>, t.PartialC<{
2930
3044
  label: t.StringC;
2931
3045
  direction: t.StringC;
2932
- }>]>>>;
3046
+ }>]>>]>>;
2933
3047
  }>>;
2934
- }>>]>>;
3048
+ }>>, t.PartialC<{
3049
+ columnWidth: t.NumberC;
3050
+ }>]>>;
2935
3051
  }>>>;
2936
3052
  }>>, t.ExactC<t.TypeC<{
2937
3053
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -3449,127 +3565,137 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
3449
3565
  __TYPE__: t.LiteralC<"TableContent">;
3450
3566
  content: t.ArrayC<t.ExactC<t.TypeC<{
3451
3567
  type: t.LiteralC<"tableRow">;
3452
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
3453
- type: t.LiteralC<"tableHeader">;
3568
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3569
+ type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
3454
3570
  content: t.ExactC<t.TypeC<{
3455
3571
  __TYPE__: t.LiteralC<"StructuredTextContent">;
3456
- value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
3457
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
3458
- content: t.IntersectionC<[t.TypeC<{
3459
- text: t.StringC;
3572
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
3573
+ type: t.LiteralC<"image">;
3574
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
3575
+ origin: t.ExactC<t.TypeC<{
3576
+ id: t.StringC;
3577
+ url: t.StringC;
3578
+ width: t.NumberC;
3579
+ height: t.NumberC;
3580
+ }>>;
3581
+ width: t.NumberC;
3582
+ height: t.NumberC;
3583
+ edit: t.TypeC<{
3584
+ zoom: t.NumberC;
3585
+ crop: t.TypeC<{
3586
+ x: t.NumberC;
3587
+ y: t.NumberC;
3588
+ }>;
3589
+ background: t.StringC;
3590
+ }>;
3460
3591
  }>, t.PartialC<{
3461
- spans: t.Type<({
3462
- data: ({
3463
- __TYPE__: "ImageLink";
3464
- } & {
3465
- kind: "image";
3466
- id: string;
3467
- url: string;
3468
- height: string;
3469
- width: string;
3470
- size: string;
3471
- name: string;
3472
- } & {
3473
- date?: string | null | undefined;
3474
- }) | ({
3475
- __TYPE__: "FileLink";
3476
- } & {
3477
- kind: "file";
3478
- id: string;
3479
- url: string;
3480
- name: string;
3481
- size: string;
3482
- } & {
3483
- date?: string | null | undefined;
3484
- }) | ({
3485
- __TYPE__: "DocumentLink";
3486
- } & {
3487
- id: string;
3488
- }) | ({
3489
- __TYPE__: "ExternalLink";
3490
- } & {
3491
- url: string;
3492
- } & {
3493
- kind?: "web";
3494
- target?: string | null | undefined;
3495
- preview?: {
3496
- title?: string;
3497
- } | null | undefined;
3498
- });
3499
- start: number;
3500
- end: number;
3501
- type: "hyperlink";
3502
- } | {
3503
- data: string;
3504
- start: number;
3505
- end: number;
3506
- type: "label";
3507
- } | {
3508
- start: number;
3509
- end: number;
3510
- type: "strong" | "em" | "list-item";
3511
- })[], ({
3512
- data: ({
3513
- __TYPE__: "ImageLink";
3514
- } & {
3515
- kind: "image";
3516
- id: string;
3517
- url: string;
3518
- height: string;
3519
- width: string;
3520
- size: string;
3521
- name: string;
3522
- } & {
3523
- date?: string | null | undefined;
3524
- }) | ({
3525
- __TYPE__: "FileLink";
3526
- } & {
3527
- kind: "file";
3528
- id: string;
3529
- url: string;
3530
- name: string;
3531
- size: string;
3532
- } & {
3533
- date?: string | null | undefined;
3534
- }) | ({
3535
- __TYPE__: "DocumentLink";
3536
- } & {
3537
- id: string;
3538
- }) | ({
3539
- __TYPE__: "ExternalLink";
3540
- } & {
3541
- url: string;
3542
- } & {
3543
- kind?: "web";
3544
- target?: string | null | undefined;
3545
- preview?: {
3546
- title?: string;
3547
- } | null | undefined;
3548
- });
3549
- start: number;
3550
- end: number;
3551
- type: "hyperlink";
3552
- } | {
3553
- data: string;
3554
- start: number;
3555
- end: number;
3556
- type: "label";
3557
- } | {
3558
- start: number;
3559
- end: number;
3560
- type: "strong" | "em" | "list-item";
3561
- })[], unknown>;
3592
+ url: t.StringC;
3593
+ credits: t.Type<string | null, string | null, unknown>;
3594
+ alt: t.Type<string | null, string | null, unknown>;
3595
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3596
+ }>]>>, t.PartialC<{
3597
+ linkTo: t.UnionC<[t.Type<({
3598
+ __TYPE__: "ImageLink";
3599
+ } & {
3600
+ kind: "image";
3601
+ id: string;
3602
+ url: string;
3603
+ height: string;
3604
+ width: string;
3605
+ size: string;
3606
+ name: string;
3607
+ } & {
3608
+ date?: string | null | undefined;
3609
+ }) | ({
3610
+ __TYPE__: "FileLink";
3611
+ } & {
3612
+ kind: "file";
3613
+ id: string;
3614
+ url: string;
3615
+ name: string;
3616
+ size: string;
3617
+ } & {
3618
+ date?: string | null | undefined;
3619
+ }) | ({
3620
+ __TYPE__: "DocumentLink";
3621
+ } & {
3622
+ id: string;
3623
+ }) | ({
3624
+ __TYPE__: "ExternalLink";
3625
+ } & {
3626
+ url: string;
3627
+ } & {
3628
+ kind?: "web";
3629
+ target?: string | null | undefined;
3630
+ preview?: {
3631
+ title?: string;
3632
+ } | null | undefined;
3633
+ }), ({
3634
+ __TYPE__: "ImageLink";
3635
+ } & {
3636
+ kind: "image";
3637
+ id: string;
3638
+ url: string;
3639
+ height: string;
3640
+ width: string;
3641
+ size: string;
3642
+ name: string;
3643
+ } & {
3644
+ date?: string | null | undefined;
3645
+ }) | ({
3646
+ __TYPE__: "FileLink";
3647
+ } & {
3648
+ kind: "file";
3649
+ id: string;
3650
+ url: string;
3651
+ name: string;
3652
+ size: string;
3653
+ } & {
3654
+ date?: string | null | undefined;
3655
+ }) | ({
3656
+ __TYPE__: "DocumentLink";
3657
+ } & {
3658
+ id: string;
3659
+ }) | ({
3660
+ __TYPE__: "ExternalLink";
3661
+ } & {
3662
+ url: string;
3663
+ } & {
3664
+ kind?: "web";
3665
+ target?: string | null | undefined;
3666
+ preview?: {
3667
+ title?: string;
3668
+ } | null | undefined;
3669
+ }), unknown>, t.NullC, t.UndefinedC]>;
3562
3670
  }>]>;
3563
3671
  }>, t.PartialC<{
3564
- label: t.StringC;
3565
- direction: t.StringC;
3566
- }>]>>>;
3567
- }>>;
3568
- }>>, t.ExactC<t.TypeC<{
3569
- type: t.LiteralC<"tableCell">;
3570
- content: t.ExactC<t.TypeC<{
3571
- __TYPE__: t.LiteralC<"StructuredTextContent">;
3572
- value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
3672
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3673
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3674
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
3675
+ type: t.LiteralC<"embed">;
3676
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
3677
+ embed_url: t.StringC;
3678
+ type: t.StringC;
3679
+ }>, t.PartialC<{
3680
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
3681
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3682
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3683
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3684
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3685
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3686
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
3687
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3688
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
3689
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
3690
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3691
+ }>]>>, t.ExactC<t.TypeC<{
3692
+ __TYPE__: t.LiteralC<"EmbedContent">;
3693
+ all: t.UnknownC;
3694
+ }>>]>;
3695
+ }>, t.PartialC<{
3696
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3697
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
3698
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
3573
3699
  type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
3574
3700
  content: t.IntersectionC<[t.TypeC<{
3575
3701
  text: t.StringC;
@@ -3679,9 +3805,11 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
3679
3805
  }>, t.PartialC<{
3680
3806
  label: t.StringC;
3681
3807
  direction: t.StringC;
3682
- }>]>>>;
3808
+ }>]>>]>>;
3683
3809
  }>>;
3684
- }>>]>>;
3810
+ }>>, t.PartialC<{
3811
+ columnWidth: t.NumberC;
3812
+ }>]>>;
3685
3813
  }>>>;
3686
3814
  }>>, t.ExactC<t.TypeC<{
3687
3815
  __TYPE__: t.LiteralC<"RepeatableContent">;