@prismicio/types-internal 4.4.0 → 4.5.0-pr.21.9df5da8
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/dist/content/codec/richText.js +24 -14
- package/dist/content/codec/richText.js.map +1 -1
- package/dist/helpers/repository.js.map +1 -1
- package/dist/helpers/traverseContent.d.ts.map +1 -1
- package/dist/helpers/traverseContent.js +2 -0
- package/dist/helpers/traverseContent.js.map +1 -1
- package/dist/helpers/traverseContentWithModel.d.ts.map +1 -1
- package/dist/helpers/traverseContentWithModel.js +1 -0
- package/dist/helpers/traverseContentWithModel.js.map +1 -1
- package/dist/io-ts.d.ts +1250 -448
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/model/customType.d.ts +28 -4
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js +37 -29
- package/dist/model/customType.js.map +1 -1
- package/dist/model/image.js +1 -1
- package/dist/model/image.js.map +1 -1
- package/dist/model/slice.d.ts +577 -2
- package/dist/model/slice.d.ts.map +1 -1
- package/dist/model/slice.js +8 -2
- package/dist/model/slice.js.map +1 -1
- package/dist/model/widget.d.ts +6 -6
- package/dist/zod4.d.ts +619 -8
- package/dist/zod4.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/content/codec/richText.ts +50 -17
- package/src/helpers/repository.ts +1 -3
- package/src/helpers/traverseContent.ts +12 -0
- package/src/helpers/traverseContentWithModel.ts +6 -0
- package/src/model/customType.ts +19 -8
- package/src/model/image.ts +1 -1
- package/src/model/slice.ts +20 -7
package/dist/model/slice.d.ts
CHANGED
|
@@ -929,7 +929,7 @@ declare const SharedSliceModelVariationSchema: z.ZodMiniObject<{
|
|
|
929
929
|
}, z.core.$strip>], "type">>>;
|
|
930
930
|
}, z.core.$strip>;
|
|
931
931
|
type SharedSliceModelVariation = z.infer<typeof SharedSliceModelVariationSchema>;
|
|
932
|
-
declare const SharedSliceModelSchema: z.ZodMiniObject<{
|
|
932
|
+
declare const SharedSliceModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
933
933
|
id: z.ZodMiniString<string>;
|
|
934
934
|
type: z.ZodMiniLiteral<"SharedSlice">;
|
|
935
935
|
name: z.ZodMiniString<string>;
|
|
@@ -1502,7 +1502,582 @@ declare const SharedSliceModelSchema: z.ZodMiniObject<{
|
|
|
1502
1502
|
}, z.core.$strip>>;
|
|
1503
1503
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1504
1504
|
legacyPaths: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1505
|
-
|
|
1505
|
+
schema: z.ZodMiniOptional<z.ZodMiniUndefined>;
|
|
1506
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1507
|
+
schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
|
|
1508
|
+
id: z.ZodMiniString<string>;
|
|
1509
|
+
type: z.ZodMiniLiteral<"SharedSlice">;
|
|
1510
|
+
name: z.ZodMiniString<string>;
|
|
1511
|
+
variations: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1512
|
+
id: z.ZodMiniString<string>;
|
|
1513
|
+
name: z.ZodMiniString<string>;
|
|
1514
|
+
description: z.ZodMiniString<string>;
|
|
1515
|
+
imageUrl: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
1516
|
+
docURL: z.ZodMiniString<string>;
|
|
1517
|
+
version: z.ZodMiniString<string>;
|
|
1518
|
+
display: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1519
|
+
primary: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<NestableModel | {
|
|
1520
|
+
type: "Group";
|
|
1521
|
+
fieldset?: string | null | undefined;
|
|
1522
|
+
icon?: string | undefined;
|
|
1523
|
+
description?: string | undefined;
|
|
1524
|
+
config?: {
|
|
1525
|
+
label?: string | null | undefined;
|
|
1526
|
+
repeat?: boolean | undefined;
|
|
1527
|
+
fields?: Record<string, NestableModel | {
|
|
1528
|
+
type: "Group";
|
|
1529
|
+
fieldset?: string | null | undefined;
|
|
1530
|
+
icon?: string | undefined;
|
|
1531
|
+
description?: string | undefined;
|
|
1532
|
+
config?: {
|
|
1533
|
+
label?: string | null | undefined;
|
|
1534
|
+
repeat?: boolean | undefined;
|
|
1535
|
+
fields?: Record<string, {
|
|
1536
|
+
type: "Boolean";
|
|
1537
|
+
config?: {
|
|
1538
|
+
label?: string | null | undefined;
|
|
1539
|
+
default_value?: boolean | undefined;
|
|
1540
|
+
placeholder_true?: string | undefined;
|
|
1541
|
+
placeholder_false?: string | undefined;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
} | {
|
|
1544
|
+
type: "Color";
|
|
1545
|
+
fieldset?: string | null | undefined;
|
|
1546
|
+
config?: {
|
|
1547
|
+
label?: string | null | undefined;
|
|
1548
|
+
placeholder?: string | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
} | {
|
|
1551
|
+
type: "Date";
|
|
1552
|
+
fieldset?: string | null | undefined;
|
|
1553
|
+
config?: {
|
|
1554
|
+
label?: string | null | undefined;
|
|
1555
|
+
placeholder?: string | undefined;
|
|
1556
|
+
default?: string | undefined;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
} | {
|
|
1559
|
+
type: "Embed";
|
|
1560
|
+
fieldset?: string | null | undefined;
|
|
1561
|
+
config?: {
|
|
1562
|
+
label?: string | null | undefined;
|
|
1563
|
+
placeholder?: string | undefined;
|
|
1564
|
+
useAsTitle?: boolean | undefined;
|
|
1565
|
+
} | undefined;
|
|
1566
|
+
} | {
|
|
1567
|
+
type: "GeoPoint";
|
|
1568
|
+
fieldset?: string | null | undefined;
|
|
1569
|
+
config?: {
|
|
1570
|
+
label?: string | null | undefined;
|
|
1571
|
+
} | undefined;
|
|
1572
|
+
} | {
|
|
1573
|
+
type: "Image";
|
|
1574
|
+
fieldset?: string | null | undefined;
|
|
1575
|
+
config?: {
|
|
1576
|
+
label?: string | null | undefined;
|
|
1577
|
+
placeholder?: string | undefined;
|
|
1578
|
+
constraint?: {
|
|
1579
|
+
width?: number | null | undefined;
|
|
1580
|
+
height?: number | null | undefined;
|
|
1581
|
+
} | undefined;
|
|
1582
|
+
thumbnails?: {
|
|
1583
|
+
name: string;
|
|
1584
|
+
width?: number | null | undefined;
|
|
1585
|
+
height?: number | null | undefined;
|
|
1586
|
+
}[] | undefined;
|
|
1587
|
+
} | undefined;
|
|
1588
|
+
} | {
|
|
1589
|
+
type: "IntegrationFields";
|
|
1590
|
+
fieldset?: string | null | undefined;
|
|
1591
|
+
config?: {
|
|
1592
|
+
label?: string | null | undefined;
|
|
1593
|
+
placeholder?: string | undefined;
|
|
1594
|
+
catalog?: string | undefined;
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
} | {
|
|
1597
|
+
type: "Link";
|
|
1598
|
+
fieldset?: string | null | undefined;
|
|
1599
|
+
config?: {
|
|
1600
|
+
label?: string | null | undefined;
|
|
1601
|
+
useAsTitle?: boolean | undefined;
|
|
1602
|
+
placeholder?: string | undefined;
|
|
1603
|
+
select?: "media" | "document" | "web" | null | undefined;
|
|
1604
|
+
customtypes?: (string | {
|
|
1605
|
+
id: string;
|
|
1606
|
+
fields: (string | {
|
|
1607
|
+
id: string;
|
|
1608
|
+
customtypes: (string | {
|
|
1609
|
+
id: string;
|
|
1610
|
+
fields: (string | {
|
|
1611
|
+
id: string;
|
|
1612
|
+
fields: string[];
|
|
1613
|
+
})[];
|
|
1614
|
+
})[];
|
|
1615
|
+
} | {
|
|
1616
|
+
id: string;
|
|
1617
|
+
fields: (string | {
|
|
1618
|
+
id: string;
|
|
1619
|
+
customtypes: (string | {
|
|
1620
|
+
id: string;
|
|
1621
|
+
fields: (string | {
|
|
1622
|
+
id: string;
|
|
1623
|
+
fields: string[];
|
|
1624
|
+
})[];
|
|
1625
|
+
})[];
|
|
1626
|
+
})[];
|
|
1627
|
+
})[];
|
|
1628
|
+
})[] | undefined;
|
|
1629
|
+
masks?: string[] | undefined;
|
|
1630
|
+
tags?: string[] | undefined;
|
|
1631
|
+
allowTargetBlank?: boolean | undefined;
|
|
1632
|
+
allowText?: boolean | undefined;
|
|
1633
|
+
repeat?: boolean | undefined;
|
|
1634
|
+
variants?: string[] | undefined;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
} | {
|
|
1637
|
+
type: "Number";
|
|
1638
|
+
fieldset?: string | null | undefined;
|
|
1639
|
+
config?: {
|
|
1640
|
+
label?: string | null | undefined;
|
|
1641
|
+
placeholder?: string | undefined;
|
|
1642
|
+
min?: number | undefined;
|
|
1643
|
+
max?: number | undefined;
|
|
1644
|
+
step?: number | undefined;
|
|
1645
|
+
} | undefined;
|
|
1646
|
+
} | {
|
|
1647
|
+
type: "Range";
|
|
1648
|
+
fieldset?: string | null | undefined;
|
|
1649
|
+
config?: {
|
|
1650
|
+
label?: string | null | undefined;
|
|
1651
|
+
placeholder?: string | undefined;
|
|
1652
|
+
min?: number | undefined;
|
|
1653
|
+
max?: number | undefined;
|
|
1654
|
+
step?: number | undefined;
|
|
1655
|
+
} | undefined;
|
|
1656
|
+
} | {
|
|
1657
|
+
type: "StructuredText";
|
|
1658
|
+
fieldset?: string | null | undefined;
|
|
1659
|
+
config?: {
|
|
1660
|
+
label?: string | null | undefined;
|
|
1661
|
+
placeholder?: string | undefined;
|
|
1662
|
+
useAsTitle?: boolean | undefined;
|
|
1663
|
+
single?: string | undefined;
|
|
1664
|
+
multi?: string | undefined;
|
|
1665
|
+
imageConstraint?: {
|
|
1666
|
+
width?: number | null | undefined;
|
|
1667
|
+
height?: number | null | undefined;
|
|
1668
|
+
} | undefined;
|
|
1669
|
+
labels?: string[] | undefined;
|
|
1670
|
+
allowTargetBlank?: boolean | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
} | {
|
|
1673
|
+
type: "Select";
|
|
1674
|
+
fieldset?: string | null | undefined;
|
|
1675
|
+
config?: {
|
|
1676
|
+
label?: string | null | undefined;
|
|
1677
|
+
placeholder?: string | undefined;
|
|
1678
|
+
default_value?: string | undefined;
|
|
1679
|
+
options?: string[] | undefined;
|
|
1680
|
+
} | undefined;
|
|
1681
|
+
} | {
|
|
1682
|
+
type: "Separator";
|
|
1683
|
+
config?: {
|
|
1684
|
+
label?: string | null | undefined;
|
|
1685
|
+
} | undefined;
|
|
1686
|
+
} | {
|
|
1687
|
+
type: "Table";
|
|
1688
|
+
config?: {
|
|
1689
|
+
label?: string | null | undefined;
|
|
1690
|
+
} | undefined;
|
|
1691
|
+
} | {
|
|
1692
|
+
type: "Text";
|
|
1693
|
+
fieldset?: string | null | undefined;
|
|
1694
|
+
config?: {
|
|
1695
|
+
label?: string | null | undefined;
|
|
1696
|
+
useAsTitle?: boolean | undefined;
|
|
1697
|
+
placeholder?: string | undefined;
|
|
1698
|
+
} | undefined;
|
|
1699
|
+
} | {
|
|
1700
|
+
type: "Timestamp";
|
|
1701
|
+
fieldset?: string | null | undefined;
|
|
1702
|
+
config?: {
|
|
1703
|
+
label?: string | null | undefined;
|
|
1704
|
+
placeholder?: string | undefined;
|
|
1705
|
+
default?: string | undefined;
|
|
1706
|
+
} | undefined;
|
|
1707
|
+
}> | undefined;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
}> | undefined;
|
|
1710
|
+
} | undefined;
|
|
1711
|
+
}, unknown, z.core.$ZodTypeInternals<NestableModel | {
|
|
1712
|
+
type: "Group";
|
|
1713
|
+
fieldset?: string | null | undefined;
|
|
1714
|
+
icon?: string | undefined;
|
|
1715
|
+
description?: string | undefined;
|
|
1716
|
+
config?: {
|
|
1717
|
+
label?: string | null | undefined;
|
|
1718
|
+
repeat?: boolean | undefined;
|
|
1719
|
+
fields?: Record<string, NestableModel | {
|
|
1720
|
+
type: "Group";
|
|
1721
|
+
fieldset?: string | null | undefined;
|
|
1722
|
+
icon?: string | undefined;
|
|
1723
|
+
description?: string | undefined;
|
|
1724
|
+
config?: {
|
|
1725
|
+
label?: string | null | undefined;
|
|
1726
|
+
repeat?: boolean | undefined;
|
|
1727
|
+
fields?: Record<string, {
|
|
1728
|
+
type: "Boolean";
|
|
1729
|
+
config?: {
|
|
1730
|
+
label?: string | null | undefined;
|
|
1731
|
+
default_value?: boolean | undefined;
|
|
1732
|
+
placeholder_true?: string | undefined;
|
|
1733
|
+
placeholder_false?: string | undefined;
|
|
1734
|
+
} | undefined;
|
|
1735
|
+
} | {
|
|
1736
|
+
type: "Color";
|
|
1737
|
+
fieldset?: string | null | undefined;
|
|
1738
|
+
config?: {
|
|
1739
|
+
label?: string | null | undefined;
|
|
1740
|
+
placeholder?: string | undefined;
|
|
1741
|
+
} | undefined;
|
|
1742
|
+
} | {
|
|
1743
|
+
type: "Date";
|
|
1744
|
+
fieldset?: string | null | undefined;
|
|
1745
|
+
config?: {
|
|
1746
|
+
label?: string | null | undefined;
|
|
1747
|
+
placeholder?: string | undefined;
|
|
1748
|
+
default?: string | undefined;
|
|
1749
|
+
} | undefined;
|
|
1750
|
+
} | {
|
|
1751
|
+
type: "Embed";
|
|
1752
|
+
fieldset?: string | null | undefined;
|
|
1753
|
+
config?: {
|
|
1754
|
+
label?: string | null | undefined;
|
|
1755
|
+
placeholder?: string | undefined;
|
|
1756
|
+
useAsTitle?: boolean | undefined;
|
|
1757
|
+
} | undefined;
|
|
1758
|
+
} | {
|
|
1759
|
+
type: "GeoPoint";
|
|
1760
|
+
fieldset?: string | null | undefined;
|
|
1761
|
+
config?: {
|
|
1762
|
+
label?: string | null | undefined;
|
|
1763
|
+
} | undefined;
|
|
1764
|
+
} | {
|
|
1765
|
+
type: "Image";
|
|
1766
|
+
fieldset?: string | null | undefined;
|
|
1767
|
+
config?: {
|
|
1768
|
+
label?: string | null | undefined;
|
|
1769
|
+
placeholder?: string | undefined;
|
|
1770
|
+
constraint?: {
|
|
1771
|
+
width?: number | null | undefined;
|
|
1772
|
+
height?: number | null | undefined;
|
|
1773
|
+
} | undefined;
|
|
1774
|
+
thumbnails?: {
|
|
1775
|
+
name: string;
|
|
1776
|
+
width?: number | null | undefined;
|
|
1777
|
+
height?: number | null | undefined;
|
|
1778
|
+
}[] | undefined;
|
|
1779
|
+
} | undefined;
|
|
1780
|
+
} | {
|
|
1781
|
+
type: "IntegrationFields";
|
|
1782
|
+
fieldset?: string | null | undefined;
|
|
1783
|
+
config?: {
|
|
1784
|
+
label?: string | null | undefined;
|
|
1785
|
+
placeholder?: string | undefined;
|
|
1786
|
+
catalog?: string | undefined;
|
|
1787
|
+
} | undefined;
|
|
1788
|
+
} | {
|
|
1789
|
+
type: "Link";
|
|
1790
|
+
fieldset?: string | null | undefined;
|
|
1791
|
+
config?: {
|
|
1792
|
+
label?: string | null | undefined;
|
|
1793
|
+
useAsTitle?: boolean | undefined;
|
|
1794
|
+
placeholder?: string | undefined;
|
|
1795
|
+
select?: "media" | "document" | "web" | null | undefined;
|
|
1796
|
+
customtypes?: (string | {
|
|
1797
|
+
id: string;
|
|
1798
|
+
fields: (string | {
|
|
1799
|
+
id: string;
|
|
1800
|
+
customtypes: (string | {
|
|
1801
|
+
id: string;
|
|
1802
|
+
fields: (string | {
|
|
1803
|
+
id: string;
|
|
1804
|
+
fields: string[];
|
|
1805
|
+
})[];
|
|
1806
|
+
})[];
|
|
1807
|
+
} | {
|
|
1808
|
+
id: string;
|
|
1809
|
+
fields: (string | {
|
|
1810
|
+
id: string;
|
|
1811
|
+
customtypes: (string | {
|
|
1812
|
+
id: string;
|
|
1813
|
+
fields: (string | {
|
|
1814
|
+
id: string;
|
|
1815
|
+
fields: string[];
|
|
1816
|
+
})[];
|
|
1817
|
+
})[];
|
|
1818
|
+
})[];
|
|
1819
|
+
})[];
|
|
1820
|
+
})[] | undefined;
|
|
1821
|
+
masks?: string[] | undefined;
|
|
1822
|
+
tags?: string[] | undefined;
|
|
1823
|
+
allowTargetBlank?: boolean | undefined;
|
|
1824
|
+
allowText?: boolean | undefined;
|
|
1825
|
+
repeat?: boolean | undefined;
|
|
1826
|
+
variants?: string[] | undefined;
|
|
1827
|
+
} | undefined;
|
|
1828
|
+
} | {
|
|
1829
|
+
type: "Number";
|
|
1830
|
+
fieldset?: string | null | undefined;
|
|
1831
|
+
config?: {
|
|
1832
|
+
label?: string | null | undefined;
|
|
1833
|
+
placeholder?: string | undefined;
|
|
1834
|
+
min?: number | undefined;
|
|
1835
|
+
max?: number | undefined;
|
|
1836
|
+
step?: number | undefined;
|
|
1837
|
+
} | undefined;
|
|
1838
|
+
} | {
|
|
1839
|
+
type: "Range";
|
|
1840
|
+
fieldset?: string | null | undefined;
|
|
1841
|
+
config?: {
|
|
1842
|
+
label?: string | null | undefined;
|
|
1843
|
+
placeholder?: string | undefined;
|
|
1844
|
+
min?: number | undefined;
|
|
1845
|
+
max?: number | undefined;
|
|
1846
|
+
step?: number | undefined;
|
|
1847
|
+
} | undefined;
|
|
1848
|
+
} | {
|
|
1849
|
+
type: "StructuredText";
|
|
1850
|
+
fieldset?: string | null | undefined;
|
|
1851
|
+
config?: {
|
|
1852
|
+
label?: string | null | undefined;
|
|
1853
|
+
placeholder?: string | undefined;
|
|
1854
|
+
useAsTitle?: boolean | undefined;
|
|
1855
|
+
single?: string | undefined;
|
|
1856
|
+
multi?: string | undefined;
|
|
1857
|
+
imageConstraint?: {
|
|
1858
|
+
width?: number | null | undefined;
|
|
1859
|
+
height?: number | null | undefined;
|
|
1860
|
+
} | undefined;
|
|
1861
|
+
labels?: string[] | undefined;
|
|
1862
|
+
allowTargetBlank?: boolean | undefined;
|
|
1863
|
+
} | undefined;
|
|
1864
|
+
} | {
|
|
1865
|
+
type: "Select";
|
|
1866
|
+
fieldset?: string | null | undefined;
|
|
1867
|
+
config?: {
|
|
1868
|
+
label?: string | null | undefined;
|
|
1869
|
+
placeholder?: string | undefined;
|
|
1870
|
+
default_value?: string | undefined;
|
|
1871
|
+
options?: string[] | undefined;
|
|
1872
|
+
} | undefined;
|
|
1873
|
+
} | {
|
|
1874
|
+
type: "Separator";
|
|
1875
|
+
config?: {
|
|
1876
|
+
label?: string | null | undefined;
|
|
1877
|
+
} | undefined;
|
|
1878
|
+
} | {
|
|
1879
|
+
type: "Table";
|
|
1880
|
+
config?: {
|
|
1881
|
+
label?: string | null | undefined;
|
|
1882
|
+
} | undefined;
|
|
1883
|
+
} | {
|
|
1884
|
+
type: "Text";
|
|
1885
|
+
fieldset?: string | null | undefined;
|
|
1886
|
+
config?: {
|
|
1887
|
+
label?: string | null | undefined;
|
|
1888
|
+
useAsTitle?: boolean | undefined;
|
|
1889
|
+
placeholder?: string | undefined;
|
|
1890
|
+
} | undefined;
|
|
1891
|
+
} | {
|
|
1892
|
+
type: "Timestamp";
|
|
1893
|
+
fieldset?: string | null | undefined;
|
|
1894
|
+
config?: {
|
|
1895
|
+
label?: string | null | undefined;
|
|
1896
|
+
placeholder?: string | undefined;
|
|
1897
|
+
default?: string | undefined;
|
|
1898
|
+
} | undefined;
|
|
1899
|
+
}> | undefined;
|
|
1900
|
+
} | undefined;
|
|
1901
|
+
}> | undefined;
|
|
1902
|
+
} | undefined;
|
|
1903
|
+
}, unknown>>>>;
|
|
1904
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1905
|
+
type: z.ZodMiniLiteral<"Boolean">;
|
|
1906
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1907
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1908
|
+
default_value: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1909
|
+
placeholder_true: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1910
|
+
placeholder_false: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1911
|
+
}, z.core.$strip>>;
|
|
1912
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1913
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
1914
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1915
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1916
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1917
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1918
|
+
}, z.core.$strip>>;
|
|
1919
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1920
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
1921
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1922
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1923
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1924
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1925
|
+
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1926
|
+
}, z.core.$strip>>;
|
|
1927
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1928
|
+
type: z.ZodMiniLiteral<"Embed">;
|
|
1929
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1930
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1931
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1932
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1933
|
+
useAsTitle: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1934
|
+
}, z.core.$strip>>;
|
|
1935
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1936
|
+
type: z.ZodMiniLiteral<"GeoPoint">;
|
|
1937
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1938
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1939
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1940
|
+
}, z.core.$strip>>;
|
|
1941
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1942
|
+
type: z.ZodMiniLiteral<"Image">;
|
|
1943
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1944
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1945
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1946
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1947
|
+
constraint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1948
|
+
width: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
1949
|
+
height: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
1950
|
+
}, z.core.$strip>>;
|
|
1951
|
+
thumbnails: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1952
|
+
name: z.ZodMiniString<string>;
|
|
1953
|
+
width: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
1954
|
+
height: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
1955
|
+
}, z.core.$strip>>>;
|
|
1956
|
+
}, z.core.$strip>>;
|
|
1957
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1958
|
+
type: z.ZodMiniLiteral<"IntegrationFields">;
|
|
1959
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1960
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1961
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1962
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1963
|
+
catalog: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1964
|
+
}, z.core.$strip>>;
|
|
1965
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1966
|
+
type: z.ZodMiniLiteral<"Link">;
|
|
1967
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1968
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1969
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1970
|
+
useAsTitle: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1971
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1972
|
+
select: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnknown, z.ZodMiniTransform<"media" | "document" | "web" | null, unknown>>>;
|
|
1973
|
+
customtypes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1974
|
+
id: z.ZodMiniString<string>;
|
|
1975
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1976
|
+
id: z.ZodMiniString<string>;
|
|
1977
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1978
|
+
id: z.ZodMiniString<string>;
|
|
1979
|
+
customtypes: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1980
|
+
id: z.ZodMiniString<string>;
|
|
1981
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1982
|
+
id: z.ZodMiniString<string>;
|
|
1983
|
+
fields: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1984
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
1985
|
+
}, z.core.$strip>]>>;
|
|
1986
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
1987
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1988
|
+
id: z.ZodMiniString<string>;
|
|
1989
|
+
customtypes: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1990
|
+
id: z.ZodMiniString<string>;
|
|
1991
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1992
|
+
id: z.ZodMiniString<string>;
|
|
1993
|
+
fields: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
1994
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
1995
|
+
}, z.core.$strip>]>>;
|
|
1996
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
1997
|
+
}, z.core.$strip>]>>>;
|
|
1998
|
+
masks: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniString<string>]>, z.ZodMiniTransform<string[], string | string[]>>>;
|
|
1999
|
+
tags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniString<string>]>, z.ZodMiniTransform<string[], string | string[]>>>;
|
|
2000
|
+
allowTargetBlank: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2001
|
+
allowText: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2002
|
+
repeat: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2003
|
+
variants: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
2004
|
+
}, z.core.$strip>>;
|
|
2005
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2006
|
+
type: z.ZodMiniLiteral<"Number">;
|
|
2007
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2008
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2009
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2010
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2011
|
+
min: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2012
|
+
max: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2013
|
+
step: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2014
|
+
}, z.core.$strip>>;
|
|
2015
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2016
|
+
type: z.ZodMiniLiteral<"Range">;
|
|
2017
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2018
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2019
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2020
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2021
|
+
min: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2022
|
+
max: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2023
|
+
step: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<number, string>>]>>;
|
|
2024
|
+
}, z.core.$strip>>;
|
|
2025
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2026
|
+
type: z.ZodMiniLiteral<"StructuredText">;
|
|
2027
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2028
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2029
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2030
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2031
|
+
useAsTitle: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2032
|
+
single: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNull]>, z.ZodMiniTransform<string, string | null>>>;
|
|
2033
|
+
multi: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNull]>, z.ZodMiniTransform<string, string | null>>>;
|
|
2034
|
+
imageConstraint: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2035
|
+
width: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
2036
|
+
height: z.ZodMiniOptional<z.ZodMiniType<number | null, unknown, z.core.$ZodTypeInternals<number | null, unknown>>>;
|
|
2037
|
+
}, z.core.$strip>>;
|
|
2038
|
+
labels: z.ZodMiniOptional<z.ZodMiniType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
|
|
2039
|
+
allowTargetBlank: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2040
|
+
}, z.core.$strip>>;
|
|
2041
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2042
|
+
type: z.ZodMiniLiteral<"Select">;
|
|
2043
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2044
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2045
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2046
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2047
|
+
default_value: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2048
|
+
options: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>>;
|
|
2049
|
+
}, z.core.$strip>>;
|
|
2050
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2051
|
+
type: z.ZodMiniLiteral<"Separator">;
|
|
2052
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2053
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2054
|
+
}, z.core.$strip>>;
|
|
2055
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2056
|
+
type: z.ZodMiniLiteral<"Table">;
|
|
2057
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2058
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2059
|
+
}, z.core.$strip>>;
|
|
2060
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2061
|
+
type: z.ZodMiniLiteral<"Text">;
|
|
2062
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2063
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2064
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2065
|
+
useAsTitle: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2066
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2067
|
+
}, z.core.$strip>>;
|
|
2068
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
2069
|
+
type: z.ZodMiniLiteral<"Timestamp">;
|
|
2070
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2071
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2072
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2073
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2074
|
+
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2075
|
+
}, z.core.$strip>>;
|
|
2076
|
+
}, z.core.$strip>], "type">>>;
|
|
2077
|
+
}, z.core.$strip>>;
|
|
2078
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2079
|
+
legacyPaths: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
2080
|
+
}, z.core.$strip>], "schema">;
|
|
1506
2081
|
type SharedSliceModel = z.infer<typeof SharedSliceModelSchema>;
|
|
1507
2082
|
declare const SharedSliceRefModelSchema: z.ZodMiniObject<{
|
|
1508
2083
|
type: z.ZodMiniLiteral<"SharedSlice">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/model/slice.ts"],"mappings":";;;;;KAcY,gBAAA,GAAmB,aAAA,GAAgB,gBAAA;AAAA,cASlC,yBAAA,EAAyB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,EAAoB,CAAA,CAAA,YAAA,WAAA,CAAA,CAAA,cAAA,WAAA,CAAA,CAAA,cAAA;AAAA,KAKrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
|
package/dist/model/slice.js
CHANGED
|
@@ -28,13 +28,18 @@ const SharedSliceModelVariationSchema = z.object({
|
|
|
28
28
|
primary: z.optional(z.record(z.string(), z.discriminatedUnion("type", [NestableModelSchema, GroupModelSchema]))),
|
|
29
29
|
items: z.optional(z.record(z.string(), NestableModelSchema))
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const SharedSliceModelSchema_4_4_0 = z.object({
|
|
32
32
|
id: z.string(),
|
|
33
33
|
type: z.literal(SharedSliceType),
|
|
34
34
|
name: z.string(),
|
|
35
35
|
variations: z.array(SharedSliceModelVariationSchema),
|
|
36
36
|
description: z.optional(z.string()),
|
|
37
|
-
legacyPaths: z.optional(z.record(z.string(), z.string()))
|
|
37
|
+
legacyPaths: z.optional(z.record(z.string(), z.string())),
|
|
38
|
+
schema: z.optional(z.undefined())
|
|
39
|
+
});
|
|
40
|
+
const SharedSliceModelSchema_4_5_0 = z.object({
|
|
41
|
+
...SharedSliceModelSchema_4_4_0.shape,
|
|
42
|
+
schema: z.literal("@prismicio/types-internal@4.5.0")
|
|
38
43
|
}).check(z.superRefine((model, ctx) => {
|
|
39
44
|
if (model.variations.length === 0) ctx.addIssue({
|
|
40
45
|
code: "custom",
|
|
@@ -56,6 +61,7 @@ const SharedSliceModelSchema = z.object({
|
|
|
56
61
|
existingVariationIDs.set(variation.id, index);
|
|
57
62
|
}
|
|
58
63
|
}));
|
|
64
|
+
const SharedSliceModelSchema = z.discriminatedUnion("schema", [SharedSliceModelSchema_4_4_0, SharedSliceModelSchema_4_5_0]);
|
|
59
65
|
const SharedSliceRefModelSchema = z.object({ type: z.literal(SharedSliceType) });
|
|
60
66
|
const SharedSliceVariationContentModelSchema = z.object({
|
|
61
67
|
type: z.literal(SharedSliceType),
|