@prismicio/types-internal 2.4.0-alpha.3 → 2.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/content/Document.d.ts +1035 -1
- package/lib/content/Document.js +4 -0
- package/lib/content/fields/GroupContent.d.ts +1 -0
- package/lib/content/fields/GroupContent.js +5 -1
- package/lib/content/fields/WidgetContent.d.ts +1035 -1
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1036 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +26 -7
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +2060 -0
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.js +30 -0
- package/lib/content/fields/slices/Slice/index.d.ts +718 -1
- package/lib/content/fields/slices/Slice/index.js +1 -0
- package/lib/content/fields/slices/SliceItem.d.ts +717 -1
- package/lib/content/fields/slices/SlicesContent.d.ts +1035 -1
- package/lib/content/fields/withDefaultValues.d.ts +3 -1
- package/lib/content/fields/withDefaultValues.js +26 -1
- package/package.json +1 -1
- package/src/content/Document.ts +4 -0
- package/src/content/fields/GroupContent.ts +5 -0
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +38 -22
- package/src/content/fields/slices/Slice/SlicePrimaryContent.ts +40 -0
- package/src/content/fields/slices/Slice/index.ts +1 -0
- package/src/content/fields/withDefaultValues.ts +48 -1
|
@@ -1580,6 +1580,324 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1580
1580
|
}))[];
|
|
1581
1581
|
} | {
|
|
1582
1582
|
__TYPE__: "SeparatorContent";
|
|
1583
|
+
} | {
|
|
1584
|
+
__TYPE__: "GroupContentType";
|
|
1585
|
+
value: {
|
|
1586
|
+
__TYPE__: "GroupItemContent";
|
|
1587
|
+
value: [string, {
|
|
1588
|
+
type: string;
|
|
1589
|
+
__TYPE__: "EmptyContent";
|
|
1590
|
+
} | {
|
|
1591
|
+
__TYPE__: "BooleanContent";
|
|
1592
|
+
value: boolean;
|
|
1593
|
+
} | ({
|
|
1594
|
+
embed_url: string;
|
|
1595
|
+
type: string;
|
|
1596
|
+
} & {
|
|
1597
|
+
version?: string | number | null;
|
|
1598
|
+
title?: string | null | undefined;
|
|
1599
|
+
author_name?: string | null | undefined;
|
|
1600
|
+
author_url?: string | null | undefined;
|
|
1601
|
+
provider_name?: string | null | undefined;
|
|
1602
|
+
provider_url?: string | null | undefined;
|
|
1603
|
+
cache_age?: string | number | null;
|
|
1604
|
+
thumbnail_url?: string | null | undefined;
|
|
1605
|
+
thumbnail_width?: number | null | undefined;
|
|
1606
|
+
thumbnail_height?: number | null | undefined;
|
|
1607
|
+
html?: string | null | undefined;
|
|
1608
|
+
} & {
|
|
1609
|
+
__TYPE__: "EmbedContent";
|
|
1610
|
+
all: unknown;
|
|
1611
|
+
}) | {
|
|
1612
|
+
type: "Color";
|
|
1613
|
+
value: string;
|
|
1614
|
+
__TYPE__: "FieldContent";
|
|
1615
|
+
} | {
|
|
1616
|
+
type: "Date";
|
|
1617
|
+
value: string;
|
|
1618
|
+
__TYPE__: "FieldContent";
|
|
1619
|
+
} | {
|
|
1620
|
+
type: "Number";
|
|
1621
|
+
value: string;
|
|
1622
|
+
__TYPE__: "FieldContent";
|
|
1623
|
+
} | {
|
|
1624
|
+
type: "Range";
|
|
1625
|
+
value: string;
|
|
1626
|
+
__TYPE__: "FieldContent";
|
|
1627
|
+
} | {
|
|
1628
|
+
type: "Select";
|
|
1629
|
+
value: string;
|
|
1630
|
+
__TYPE__: "FieldContent";
|
|
1631
|
+
} | {
|
|
1632
|
+
type: "Text";
|
|
1633
|
+
value: string;
|
|
1634
|
+
__TYPE__: "FieldContent";
|
|
1635
|
+
} | {
|
|
1636
|
+
type: "Timestamp";
|
|
1637
|
+
value: string;
|
|
1638
|
+
__TYPE__: "FieldContent";
|
|
1639
|
+
} | ({
|
|
1640
|
+
position: {
|
|
1641
|
+
lat: number;
|
|
1642
|
+
lng: number;
|
|
1643
|
+
};
|
|
1644
|
+
} & {
|
|
1645
|
+
__TYPE__: "GeoPointContent";
|
|
1646
|
+
}) | ({
|
|
1647
|
+
origin: {
|
|
1648
|
+
id: string;
|
|
1649
|
+
url: string;
|
|
1650
|
+
width: number;
|
|
1651
|
+
height: number;
|
|
1652
|
+
};
|
|
1653
|
+
width: number;
|
|
1654
|
+
height: number;
|
|
1655
|
+
edit: {
|
|
1656
|
+
zoom: number;
|
|
1657
|
+
crop: {
|
|
1658
|
+
x: number;
|
|
1659
|
+
y: number;
|
|
1660
|
+
};
|
|
1661
|
+
background: string;
|
|
1662
|
+
};
|
|
1663
|
+
} & {
|
|
1664
|
+
url?: string;
|
|
1665
|
+
credits?: string | null;
|
|
1666
|
+
alt?: string | null;
|
|
1667
|
+
provider?: string | null | undefined;
|
|
1668
|
+
} & {
|
|
1669
|
+
thumbnails?: {
|
|
1670
|
+
[x: string]: {
|
|
1671
|
+
origin: {
|
|
1672
|
+
id: string;
|
|
1673
|
+
url: string;
|
|
1674
|
+
width: number;
|
|
1675
|
+
height: number;
|
|
1676
|
+
};
|
|
1677
|
+
width: number;
|
|
1678
|
+
height: number;
|
|
1679
|
+
edit: {
|
|
1680
|
+
zoom: number;
|
|
1681
|
+
crop: {
|
|
1682
|
+
x: number;
|
|
1683
|
+
y: number;
|
|
1684
|
+
};
|
|
1685
|
+
background: string;
|
|
1686
|
+
};
|
|
1687
|
+
} & {
|
|
1688
|
+
url?: string;
|
|
1689
|
+
credits?: string | null;
|
|
1690
|
+
alt?: string | null;
|
|
1691
|
+
provider?: string | null | undefined;
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
} & {
|
|
1695
|
+
__TYPE__: "ImageContent";
|
|
1696
|
+
}) | {
|
|
1697
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1698
|
+
value: string;
|
|
1699
|
+
} | {
|
|
1700
|
+
__TYPE__: "LinkContent";
|
|
1701
|
+
value: ({
|
|
1702
|
+
__TYPE__: "ImageLink";
|
|
1703
|
+
} & {
|
|
1704
|
+
id: string;
|
|
1705
|
+
url: string;
|
|
1706
|
+
height: string;
|
|
1707
|
+
width: string;
|
|
1708
|
+
size: string;
|
|
1709
|
+
name: string;
|
|
1710
|
+
kind: string;
|
|
1711
|
+
} & {
|
|
1712
|
+
date?: string | null | undefined;
|
|
1713
|
+
}) | ({
|
|
1714
|
+
id: string;
|
|
1715
|
+
url: string;
|
|
1716
|
+
name: string;
|
|
1717
|
+
kind: string;
|
|
1718
|
+
size: string;
|
|
1719
|
+
} & {
|
|
1720
|
+
date?: string | null | undefined;
|
|
1721
|
+
} & {
|
|
1722
|
+
__TYPE__: "FileLink";
|
|
1723
|
+
} & {
|
|
1724
|
+
size?: string;
|
|
1725
|
+
}) | ({
|
|
1726
|
+
__TYPE__: "DocumentLink";
|
|
1727
|
+
} & {
|
|
1728
|
+
id: string;
|
|
1729
|
+
}) | ({
|
|
1730
|
+
__TYPE__: "ExternalLink";
|
|
1731
|
+
} & {
|
|
1732
|
+
url: string;
|
|
1733
|
+
} & {
|
|
1734
|
+
kind?: "web";
|
|
1735
|
+
target?: string | null | undefined;
|
|
1736
|
+
preview?: {
|
|
1737
|
+
title?: string;
|
|
1738
|
+
} | null | undefined;
|
|
1739
|
+
});
|
|
1740
|
+
} | {
|
|
1741
|
+
__TYPE__: "StructuredTextContent";
|
|
1742
|
+
value: (({
|
|
1743
|
+
type: "image";
|
|
1744
|
+
data: {
|
|
1745
|
+
origin: {
|
|
1746
|
+
id: string;
|
|
1747
|
+
url: string;
|
|
1748
|
+
width: number;
|
|
1749
|
+
height: number;
|
|
1750
|
+
};
|
|
1751
|
+
width: number;
|
|
1752
|
+
height: number;
|
|
1753
|
+
edit: {
|
|
1754
|
+
zoom: number;
|
|
1755
|
+
crop: {
|
|
1756
|
+
x: number;
|
|
1757
|
+
y: number;
|
|
1758
|
+
};
|
|
1759
|
+
background: string;
|
|
1760
|
+
};
|
|
1761
|
+
} & {
|
|
1762
|
+
url?: string;
|
|
1763
|
+
credits?: string | null;
|
|
1764
|
+
alt?: string | null;
|
|
1765
|
+
provider?: string | null | undefined;
|
|
1766
|
+
} & {
|
|
1767
|
+
linkTo?: ({
|
|
1768
|
+
__TYPE__: "ImageLink";
|
|
1769
|
+
} & {
|
|
1770
|
+
id: string;
|
|
1771
|
+
url: string;
|
|
1772
|
+
height: string;
|
|
1773
|
+
width: string;
|
|
1774
|
+
size: string;
|
|
1775
|
+
name: string;
|
|
1776
|
+
kind: string;
|
|
1777
|
+
} & {
|
|
1778
|
+
date?: string | null | undefined;
|
|
1779
|
+
}) | ({
|
|
1780
|
+
id: string;
|
|
1781
|
+
url: string;
|
|
1782
|
+
name: string;
|
|
1783
|
+
kind: string;
|
|
1784
|
+
size: string;
|
|
1785
|
+
} & {
|
|
1786
|
+
date?: string | null | undefined;
|
|
1787
|
+
} & {
|
|
1788
|
+
__TYPE__: "FileLink";
|
|
1789
|
+
} & {
|
|
1790
|
+
size?: string;
|
|
1791
|
+
}) | ({
|
|
1792
|
+
__TYPE__: "DocumentLink";
|
|
1793
|
+
} & {
|
|
1794
|
+
id: string;
|
|
1795
|
+
}) | ({
|
|
1796
|
+
__TYPE__: "ExternalLink";
|
|
1797
|
+
} & {
|
|
1798
|
+
url: string;
|
|
1799
|
+
} & {
|
|
1800
|
+
kind?: "web";
|
|
1801
|
+
target?: string | null | undefined;
|
|
1802
|
+
preview?: {
|
|
1803
|
+
title?: string;
|
|
1804
|
+
} | null | undefined;
|
|
1805
|
+
}) | null | undefined;
|
|
1806
|
+
};
|
|
1807
|
+
} & {
|
|
1808
|
+
label?: string | null | undefined;
|
|
1809
|
+
direction?: string | null | undefined;
|
|
1810
|
+
}) | ({
|
|
1811
|
+
type: "embed";
|
|
1812
|
+
data: {
|
|
1813
|
+
embed_url: string;
|
|
1814
|
+
type: string;
|
|
1815
|
+
} & {
|
|
1816
|
+
version?: string | number | null;
|
|
1817
|
+
title?: string | null | undefined;
|
|
1818
|
+
author_name?: string | null | undefined;
|
|
1819
|
+
author_url?: string | null | undefined;
|
|
1820
|
+
provider_name?: string | null | undefined;
|
|
1821
|
+
provider_url?: string | null | undefined;
|
|
1822
|
+
cache_age?: string | number | null;
|
|
1823
|
+
thumbnail_url?: string | null | undefined;
|
|
1824
|
+
thumbnail_width?: number | null | undefined;
|
|
1825
|
+
thumbnail_height?: number | null | undefined;
|
|
1826
|
+
html?: string | null | undefined;
|
|
1827
|
+
} & {
|
|
1828
|
+
__TYPE__: "EmbedContent";
|
|
1829
|
+
all: unknown;
|
|
1830
|
+
};
|
|
1831
|
+
} & {
|
|
1832
|
+
label?: string | null | undefined;
|
|
1833
|
+
direction?: string | null | undefined;
|
|
1834
|
+
}) | ({
|
|
1835
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
1836
|
+
content: {
|
|
1837
|
+
text: string;
|
|
1838
|
+
} & {
|
|
1839
|
+
spans?: ({
|
|
1840
|
+
data: ({
|
|
1841
|
+
__TYPE__: "ImageLink";
|
|
1842
|
+
} & {
|
|
1843
|
+
id: string;
|
|
1844
|
+
url: string;
|
|
1845
|
+
height: string;
|
|
1846
|
+
width: string;
|
|
1847
|
+
size: string;
|
|
1848
|
+
name: string;
|
|
1849
|
+
kind: string;
|
|
1850
|
+
} & {
|
|
1851
|
+
date?: string | null | undefined;
|
|
1852
|
+
}) | ({
|
|
1853
|
+
id: string;
|
|
1854
|
+
url: string;
|
|
1855
|
+
name: string;
|
|
1856
|
+
kind: string;
|
|
1857
|
+
size: string;
|
|
1858
|
+
} & {
|
|
1859
|
+
date?: string | null | undefined;
|
|
1860
|
+
} & {
|
|
1861
|
+
__TYPE__: "FileLink";
|
|
1862
|
+
} & {
|
|
1863
|
+
size?: string;
|
|
1864
|
+
}) | ({
|
|
1865
|
+
__TYPE__: "DocumentLink";
|
|
1866
|
+
} & {
|
|
1867
|
+
id: string;
|
|
1868
|
+
}) | ({
|
|
1869
|
+
__TYPE__: "ExternalLink";
|
|
1870
|
+
} & {
|
|
1871
|
+
url: string;
|
|
1872
|
+
} & {
|
|
1873
|
+
kind?: "web";
|
|
1874
|
+
target?: string | null | undefined;
|
|
1875
|
+
preview?: {
|
|
1876
|
+
title?: string;
|
|
1877
|
+
} | null | undefined;
|
|
1878
|
+
});
|
|
1879
|
+
start: number;
|
|
1880
|
+
end: number;
|
|
1881
|
+
type: "hyperlink";
|
|
1882
|
+
} | {
|
|
1883
|
+
data: string;
|
|
1884
|
+
start: number;
|
|
1885
|
+
end: number;
|
|
1886
|
+
type: "label";
|
|
1887
|
+
} | {
|
|
1888
|
+
start: number;
|
|
1889
|
+
end: number;
|
|
1890
|
+
type: "strong" | "em" | "list-item";
|
|
1891
|
+
})[];
|
|
1892
|
+
};
|
|
1893
|
+
} & {
|
|
1894
|
+
label?: string;
|
|
1895
|
+
direction?: string;
|
|
1896
|
+
}))[];
|
|
1897
|
+
} | {
|
|
1898
|
+
__TYPE__: "SeparatorContent";
|
|
1899
|
+
}][];
|
|
1900
|
+
}[];
|
|
1583
1901
|
};
|
|
1584
1902
|
};
|
|
1585
1903
|
items: {
|
|
@@ -2695,7 +3013,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2695
3013
|
}>>, t.ExactC<t.TypeC<{
|
|
2696
3014
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
2697
3015
|
variation: t.StringC;
|
|
2698
|
-
primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
3016
|
+
primary: t.RecordC<t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
2699
3017
|
type: t.StringC;
|
|
2700
3018
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
2701
3019
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -3087,6 +3405,404 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3087
3405
|
}>]>>]>>;
|
|
3088
3406
|
}>>, t.ExactC<t.TypeC<{
|
|
3089
3407
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
3408
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
3409
|
+
__TYPE__: t.LiteralC<"GroupContentType">;
|
|
3410
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3411
|
+
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
3412
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
3413
|
+
type: t.StringC;
|
|
3414
|
+
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
3415
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3416
|
+
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
3417
|
+
value: t.BooleanC;
|
|
3418
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3419
|
+
embed_url: t.StringC;
|
|
3420
|
+
type: t.StringC;
|
|
3421
|
+
}>, t.PartialC<{
|
|
3422
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
3423
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3424
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3425
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3426
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3427
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3428
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
3429
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3430
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
3431
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
3432
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3433
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
3434
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
3435
|
+
all: t.UnknownC;
|
|
3436
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
3437
|
+
type: t.LiteralC<"Text">;
|
|
3438
|
+
value: t.Type<string, string, unknown>;
|
|
3439
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3440
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3441
|
+
type: t.LiteralC<"Timestamp">;
|
|
3442
|
+
value: t.Type<string, string, unknown>;
|
|
3443
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3444
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3445
|
+
type: t.LiteralC<"Select">;
|
|
3446
|
+
value: t.Type<string, string, unknown>;
|
|
3447
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3448
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3449
|
+
type: t.LiteralC<"Range">;
|
|
3450
|
+
value: t.Type<string, string, unknown>;
|
|
3451
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3452
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3453
|
+
type: t.LiteralC<"Number">;
|
|
3454
|
+
value: t.Type<string, string, unknown>;
|
|
3455
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3456
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3457
|
+
type: t.LiteralC<"Date">;
|
|
3458
|
+
value: t.Type<string, string, unknown>;
|
|
3459
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3460
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3461
|
+
type: t.LiteralC<"Color">;
|
|
3462
|
+
value: t.Type<string, string, unknown>;
|
|
3463
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
3464
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3465
|
+
position: t.ExactC<t.TypeC<{
|
|
3466
|
+
lat: t.NumberC;
|
|
3467
|
+
lng: t.NumberC;
|
|
3468
|
+
}>>;
|
|
3469
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3470
|
+
__TYPE__: t.LiteralC<"GeoPointContent">;
|
|
3471
|
+
}>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3472
|
+
origin: t.ExactC<t.TypeC<{
|
|
3473
|
+
id: t.StringC;
|
|
3474
|
+
url: t.StringC;
|
|
3475
|
+
width: t.NumberC;
|
|
3476
|
+
height: t.NumberC;
|
|
3477
|
+
}>>;
|
|
3478
|
+
width: t.NumberC;
|
|
3479
|
+
height: t.NumberC;
|
|
3480
|
+
edit: t.TypeC<{
|
|
3481
|
+
zoom: t.NumberC;
|
|
3482
|
+
crop: t.TypeC<{
|
|
3483
|
+
x: t.NumberC;
|
|
3484
|
+
y: t.NumberC;
|
|
3485
|
+
}>;
|
|
3486
|
+
background: t.StringC;
|
|
3487
|
+
}>;
|
|
3488
|
+
}>, t.PartialC<{
|
|
3489
|
+
url: t.StringC;
|
|
3490
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
3491
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
3492
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3493
|
+
}>]>>, t.PartialC<{
|
|
3494
|
+
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3495
|
+
origin: t.ExactC<t.TypeC<{
|
|
3496
|
+
id: t.StringC;
|
|
3497
|
+
url: t.StringC;
|
|
3498
|
+
width: t.NumberC;
|
|
3499
|
+
height: t.NumberC;
|
|
3500
|
+
}>>;
|
|
3501
|
+
width: t.NumberC;
|
|
3502
|
+
height: t.NumberC;
|
|
3503
|
+
edit: t.TypeC<{
|
|
3504
|
+
zoom: t.NumberC;
|
|
3505
|
+
crop: t.TypeC<{
|
|
3506
|
+
x: t.NumberC;
|
|
3507
|
+
y: t.NumberC;
|
|
3508
|
+
}>;
|
|
3509
|
+
background: t.StringC;
|
|
3510
|
+
}>;
|
|
3511
|
+
}>, t.PartialC<{
|
|
3512
|
+
url: t.StringC;
|
|
3513
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
3514
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
3515
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3516
|
+
}>]>>>;
|
|
3517
|
+
}>]>, t.ExactC<t.TypeC<{
|
|
3518
|
+
__TYPE__: t.LiteralC<"ImageContent">;
|
|
3519
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
3520
|
+
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
3521
|
+
value: t.StringC;
|
|
3522
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3523
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
3524
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3525
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
3526
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3527
|
+
id: t.StringC;
|
|
3528
|
+
url: t.StringC;
|
|
3529
|
+
height: t.StringC;
|
|
3530
|
+
width: t.StringC;
|
|
3531
|
+
size: t.StringC;
|
|
3532
|
+
name: t.StringC;
|
|
3533
|
+
kind: t.StringC;
|
|
3534
|
+
}>, t.PartialC<{
|
|
3535
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3536
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3537
|
+
id: t.StringC;
|
|
3538
|
+
url: t.StringC;
|
|
3539
|
+
name: t.StringC;
|
|
3540
|
+
kind: t.StringC;
|
|
3541
|
+
size: t.StringC;
|
|
3542
|
+
}>, t.PartialC<{
|
|
3543
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3544
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3545
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
3546
|
+
}>, t.PartialC<{
|
|
3547
|
+
size: t.StringC;
|
|
3548
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3549
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
3550
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3551
|
+
id: t.Type<string, string, unknown>;
|
|
3552
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3553
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
3554
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3555
|
+
url: t.StringC;
|
|
3556
|
+
}>, t.PartialC<{
|
|
3557
|
+
kind: t.LiteralC<"web">;
|
|
3558
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3559
|
+
preview: t.UnionC<[t.Type<{
|
|
3560
|
+
title?: string;
|
|
3561
|
+
}, {
|
|
3562
|
+
title?: string;
|
|
3563
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
3564
|
+
}>]>>]>]>;
|
|
3565
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3566
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
3567
|
+
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3568
|
+
type: t.LiteralC<"image">;
|
|
3569
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3570
|
+
origin: t.ExactC<t.TypeC<{
|
|
3571
|
+
id: t.StringC;
|
|
3572
|
+
url: t.StringC;
|
|
3573
|
+
width: t.NumberC;
|
|
3574
|
+
height: t.NumberC;
|
|
3575
|
+
}>>;
|
|
3576
|
+
width: t.NumberC;
|
|
3577
|
+
height: t.NumberC;
|
|
3578
|
+
edit: t.TypeC<{
|
|
3579
|
+
zoom: t.NumberC;
|
|
3580
|
+
crop: t.TypeC<{
|
|
3581
|
+
x: t.NumberC;
|
|
3582
|
+
y: t.NumberC;
|
|
3583
|
+
}>;
|
|
3584
|
+
background: t.StringC;
|
|
3585
|
+
}>;
|
|
3586
|
+
}>, t.PartialC<{
|
|
3587
|
+
url: t.StringC;
|
|
3588
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
3589
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
3590
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3591
|
+
}>]>>, t.PartialC<{
|
|
3592
|
+
linkTo: t.UnionC<[t.Type<({
|
|
3593
|
+
__TYPE__: "ImageLink";
|
|
3594
|
+
} & {
|
|
3595
|
+
id: string;
|
|
3596
|
+
url: string;
|
|
3597
|
+
height: string;
|
|
3598
|
+
width: string;
|
|
3599
|
+
size: string;
|
|
3600
|
+
name: string;
|
|
3601
|
+
kind: string;
|
|
3602
|
+
} & {
|
|
3603
|
+
date?: string | null | undefined;
|
|
3604
|
+
}) | ({
|
|
3605
|
+
id: string;
|
|
3606
|
+
url: string;
|
|
3607
|
+
name: string;
|
|
3608
|
+
kind: string;
|
|
3609
|
+
size: string;
|
|
3610
|
+
} & {
|
|
3611
|
+
date?: string | null | undefined;
|
|
3612
|
+
} & {
|
|
3613
|
+
__TYPE__: "FileLink";
|
|
3614
|
+
} & {
|
|
3615
|
+
size?: string;
|
|
3616
|
+
}) | ({
|
|
3617
|
+
__TYPE__: "DocumentLink";
|
|
3618
|
+
} & {
|
|
3619
|
+
id: string;
|
|
3620
|
+
}) | ({
|
|
3621
|
+
__TYPE__: "ExternalLink";
|
|
3622
|
+
} & {
|
|
3623
|
+
url: string;
|
|
3624
|
+
} & {
|
|
3625
|
+
kind?: "web";
|
|
3626
|
+
target?: string | null | undefined;
|
|
3627
|
+
preview?: {
|
|
3628
|
+
title?: string;
|
|
3629
|
+
} | null | undefined;
|
|
3630
|
+
}), ({
|
|
3631
|
+
id: string;
|
|
3632
|
+
url: string;
|
|
3633
|
+
height: string;
|
|
3634
|
+
width: string;
|
|
3635
|
+
size: string;
|
|
3636
|
+
name: string;
|
|
3637
|
+
kind: string;
|
|
3638
|
+
} & {
|
|
3639
|
+
date?: string | null | undefined;
|
|
3640
|
+
}) | ({
|
|
3641
|
+
id: string;
|
|
3642
|
+
url: string;
|
|
3643
|
+
name: string;
|
|
3644
|
+
kind: string;
|
|
3645
|
+
size: string;
|
|
3646
|
+
} & {
|
|
3647
|
+
date?: string | null | undefined;
|
|
3648
|
+
}) | {
|
|
3649
|
+
id: string;
|
|
3650
|
+
} | ({
|
|
3651
|
+
url: string;
|
|
3652
|
+
} & {
|
|
3653
|
+
kind?: "web";
|
|
3654
|
+
target?: string | null | undefined;
|
|
3655
|
+
preview?: {
|
|
3656
|
+
title?: string;
|
|
3657
|
+
} | null | undefined;
|
|
3658
|
+
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
3659
|
+
}>]>;
|
|
3660
|
+
}>, t.PartialC<{
|
|
3661
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3662
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3663
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3664
|
+
type: t.LiteralC<"embed">;
|
|
3665
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3666
|
+
embed_url: t.StringC;
|
|
3667
|
+
type: t.StringC;
|
|
3668
|
+
}>, t.PartialC<{
|
|
3669
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
3670
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3671
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3672
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3673
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3674
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3675
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
3676
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3677
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
3678
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
3679
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3680
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
3681
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
3682
|
+
all: t.UnknownC;
|
|
3683
|
+
}>>]>;
|
|
3684
|
+
}>, t.PartialC<{
|
|
3685
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3686
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
3687
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
3688
|
+
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>;
|
|
3689
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
3690
|
+
text: t.StringC;
|
|
3691
|
+
}>, t.PartialC<{
|
|
3692
|
+
spans: t.Type<({
|
|
3693
|
+
data: ({
|
|
3694
|
+
__TYPE__: "ImageLink";
|
|
3695
|
+
} & {
|
|
3696
|
+
id: string;
|
|
3697
|
+
url: string;
|
|
3698
|
+
height: string;
|
|
3699
|
+
width: string;
|
|
3700
|
+
size: string;
|
|
3701
|
+
name: string;
|
|
3702
|
+
kind: string;
|
|
3703
|
+
} & {
|
|
3704
|
+
date?: string | null | undefined;
|
|
3705
|
+
}) | ({
|
|
3706
|
+
id: string;
|
|
3707
|
+
url: string;
|
|
3708
|
+
name: string;
|
|
3709
|
+
kind: string;
|
|
3710
|
+
size: string;
|
|
3711
|
+
} & {
|
|
3712
|
+
date?: string | null | undefined;
|
|
3713
|
+
} & {
|
|
3714
|
+
__TYPE__: "FileLink";
|
|
3715
|
+
} & {
|
|
3716
|
+
size?: string;
|
|
3717
|
+
}) | ({
|
|
3718
|
+
__TYPE__: "DocumentLink";
|
|
3719
|
+
} & {
|
|
3720
|
+
id: string;
|
|
3721
|
+
}) | ({
|
|
3722
|
+
__TYPE__: "ExternalLink";
|
|
3723
|
+
} & {
|
|
3724
|
+
url: string;
|
|
3725
|
+
} & {
|
|
3726
|
+
kind?: "web";
|
|
3727
|
+
target?: string | null | undefined;
|
|
3728
|
+
preview?: {
|
|
3729
|
+
title?: string;
|
|
3730
|
+
} | null | undefined;
|
|
3731
|
+
});
|
|
3732
|
+
start: number;
|
|
3733
|
+
end: number;
|
|
3734
|
+
type: "hyperlink";
|
|
3735
|
+
} | {
|
|
3736
|
+
data: string;
|
|
3737
|
+
start: number;
|
|
3738
|
+
end: number;
|
|
3739
|
+
type: "label";
|
|
3740
|
+
} | {
|
|
3741
|
+
start: number;
|
|
3742
|
+
end: number;
|
|
3743
|
+
type: "strong" | "em" | "list-item";
|
|
3744
|
+
})[], ({
|
|
3745
|
+
data: ({
|
|
3746
|
+
__TYPE__: "ImageLink";
|
|
3747
|
+
} & {
|
|
3748
|
+
id: string;
|
|
3749
|
+
url: string;
|
|
3750
|
+
height: string;
|
|
3751
|
+
width: string;
|
|
3752
|
+
size: string;
|
|
3753
|
+
name: string;
|
|
3754
|
+
kind: string;
|
|
3755
|
+
} & {
|
|
3756
|
+
date?: string | null | undefined;
|
|
3757
|
+
}) | ({
|
|
3758
|
+
id: string;
|
|
3759
|
+
url: string;
|
|
3760
|
+
name: string;
|
|
3761
|
+
kind: string;
|
|
3762
|
+
size: string;
|
|
3763
|
+
} & {
|
|
3764
|
+
date?: string | null | undefined;
|
|
3765
|
+
} & {
|
|
3766
|
+
__TYPE__: "FileLink";
|
|
3767
|
+
} & {
|
|
3768
|
+
size?: string;
|
|
3769
|
+
}) | ({
|
|
3770
|
+
__TYPE__: "DocumentLink";
|
|
3771
|
+
} & {
|
|
3772
|
+
id: string;
|
|
3773
|
+
}) | ({
|
|
3774
|
+
__TYPE__: "ExternalLink";
|
|
3775
|
+
} & {
|
|
3776
|
+
url: string;
|
|
3777
|
+
} & {
|
|
3778
|
+
kind?: "web";
|
|
3779
|
+
target?: string | null | undefined;
|
|
3780
|
+
preview?: {
|
|
3781
|
+
title?: string;
|
|
3782
|
+
} | null | undefined;
|
|
3783
|
+
});
|
|
3784
|
+
start: number;
|
|
3785
|
+
end: number;
|
|
3786
|
+
type: "hyperlink";
|
|
3787
|
+
} | {
|
|
3788
|
+
data: string;
|
|
3789
|
+
start: number;
|
|
3790
|
+
end: number;
|
|
3791
|
+
type: "label";
|
|
3792
|
+
} | {
|
|
3793
|
+
start: number;
|
|
3794
|
+
end: number;
|
|
3795
|
+
type: "strong" | "em" | "list-item";
|
|
3796
|
+
})[], unknown>;
|
|
3797
|
+
}>]>;
|
|
3798
|
+
}>, t.PartialC<{
|
|
3799
|
+
label: t.StringC;
|
|
3800
|
+
direction: t.StringC;
|
|
3801
|
+
}>]>>]>>;
|
|
3802
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3803
|
+
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
3804
|
+
}>>]>]>>;
|
|
3805
|
+
}>>>;
|
|
3090
3806
|
}>>]>>;
|
|
3091
3807
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3092
3808
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
@@ -4279,3 +4995,4 @@ export declare type SliceContent = t.TypeOf<typeof SliceContent>;
|
|
|
4279
4995
|
export * from "./CompositeSliceContent";
|
|
4280
4996
|
export * from "./SharedSliceContent";
|
|
4281
4997
|
export * from "./SimpleSliceContent";
|
|
4998
|
+
export * from "./SlicePrimaryContent";
|