@prismicio/types-internal 2.4.0-alpha.2 → 2.4.0-alpha.4
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 +25 -4
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +1429 -0
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.js +28 -0
- package/lib/content/fields/slices/Slice/index.d.ts +717 -1
- 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/lib/customtypes/CustomType.d.ts +159 -318
- package/lib/customtypes/Section.d.ts +159 -318
- package/lib/customtypes/diff/SharedSlice.d.ts +190 -508
- package/lib/customtypes/diff/Variation.d.ts +183 -502
- package/lib/customtypes/diff/Variation.js +1 -3
- package/lib/customtypes/widgets/Widget.d.ts +159 -318
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +10 -324
- package/lib/customtypes/widgets/slices/SharedSlice.js +2 -3
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +327 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +8 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +422 -740
- package/lib/customtypes/widgets/slices/index.d.ts +1 -1
- package/lib/customtypes/widgets/slices/index.js +1 -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 -12
- package/src/content/fields/slices/Slice/SlicePrimaryContent.ts +33 -0
- package/src/content/fields/withDefaultValues.ts +48 -1
- package/src/customtypes/diff/Variation.ts +8 -11
- package/src/customtypes/widgets/slices/SharedSlice.ts +2 -3
- package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +9 -0
- package/src/customtypes/widgets/slices/index.ts +1 -1
- package/src/customtypes/widgets/slices/SliceWidget.ts +0 -9
|
@@ -6,7 +6,7 @@ const Changes_1 = require("./Changes");
|
|
|
6
6
|
function compareVariationMeta(variationA, variationB) {
|
|
7
7
|
const zippedVariations = utils_1.Objects.zipObjects(variationA, variationB);
|
|
8
8
|
return Object.entries(zippedVariations).reduce((acc, [key, value]) => {
|
|
9
|
-
if (key === `primary` || key === "items"
|
|
9
|
+
if (key === `primary` || key === "items")
|
|
10
10
|
return acc;
|
|
11
11
|
if ((value === null || value === void 0 ? void 0 : value.left) === (value === null || value === void 0 ? void 0 : value.right))
|
|
12
12
|
return acc;
|
|
@@ -59,12 +59,10 @@ exports.VariationComparator = {
|
|
|
59
59
|
const diffMeta = compareVariationMeta(variationA, variationB);
|
|
60
60
|
const diffPrimary = compareWidgets(variationA === null || variationA === void 0 ? void 0 : variationA.primary, variationB === null || variationB === void 0 ? void 0 : variationB.primary);
|
|
61
61
|
const diffItems = compareWidgets(variationA === null || variationA === void 0 ? void 0 : variationA.items, variationB === null || variationB === void 0 ? void 0 : variationB.items);
|
|
62
|
-
const diffFields = compareWidgets(variationA === null || variationA === void 0 ? void 0 : variationA.fields, variationB === null || variationB === void 0 ? void 0 : variationB.fields);
|
|
63
62
|
const diffVariation = {
|
|
64
63
|
...diffMeta,
|
|
65
64
|
...(diffPrimary ? { primary: diffPrimary } : {}),
|
|
66
65
|
...(diffItems ? { items: diffItems } : {}),
|
|
67
|
-
...(diffFields ? { fields: diffFields } : {}),
|
|
68
66
|
};
|
|
69
67
|
if (utils_1.Objects.isNotEmpty(diffVariation)) {
|
|
70
68
|
return {
|
|
@@ -1503,324 +1503,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1503
1503
|
placeholder?: string;
|
|
1504
1504
|
default?: string;
|
|
1505
1505
|
};
|
|
1506
|
-
});
|
|
1507
|
-
};
|
|
1508
|
-
items?: {
|
|
1509
|
-
[x: string]: ({
|
|
1510
|
-
type: "Boolean";
|
|
1511
|
-
} & {
|
|
1512
|
-
config?: {
|
|
1513
|
-
label?: string | null | undefined;
|
|
1514
|
-
default_value?: boolean;
|
|
1515
|
-
placeholder_true?: string;
|
|
1516
|
-
placeholder_false?: string;
|
|
1517
|
-
};
|
|
1518
|
-
}) | ({
|
|
1519
|
-
type: "Color";
|
|
1520
|
-
} & {
|
|
1521
|
-
fieldset?: string | null | undefined;
|
|
1522
|
-
config?: {
|
|
1523
|
-
label?: string | null | undefined;
|
|
1524
|
-
placeholder?: string;
|
|
1525
|
-
};
|
|
1526
|
-
}) | ({
|
|
1527
|
-
type: "Date";
|
|
1528
|
-
} & {
|
|
1529
|
-
fieldset?: string | null | undefined;
|
|
1530
|
-
config?: {
|
|
1531
|
-
label?: string | null | undefined;
|
|
1532
|
-
placeholder?: string;
|
|
1533
|
-
default?: string;
|
|
1534
|
-
};
|
|
1535
|
-
}) | ({
|
|
1536
|
-
type: "Embed";
|
|
1537
|
-
} & {
|
|
1538
|
-
fieldset?: string | null | undefined;
|
|
1539
|
-
config?: {
|
|
1540
|
-
label?: string | null | undefined;
|
|
1541
|
-
placeholder?: string;
|
|
1542
|
-
useAsTitle?: boolean;
|
|
1543
|
-
};
|
|
1544
|
-
}) | ({
|
|
1545
|
-
type: "GeoPoint";
|
|
1546
|
-
} & {
|
|
1547
|
-
fieldset?: string | null | undefined;
|
|
1548
|
-
config?: {
|
|
1549
|
-
label?: string | null | undefined;
|
|
1550
|
-
};
|
|
1551
|
-
}) | ({
|
|
1552
|
-
type: "Image";
|
|
1553
|
-
} & {
|
|
1554
|
-
fieldset?: string | null | undefined;
|
|
1555
|
-
config?: {
|
|
1556
|
-
label?: string | null | undefined;
|
|
1557
|
-
placeholder?: string;
|
|
1558
|
-
constraint?: {
|
|
1559
|
-
width?: number | null;
|
|
1560
|
-
height?: number | null;
|
|
1561
|
-
};
|
|
1562
|
-
thumbnails?: readonly ({
|
|
1563
|
-
name: string;
|
|
1564
|
-
} & {
|
|
1565
|
-
width?: number | null;
|
|
1566
|
-
height?: number | null;
|
|
1567
|
-
})[];
|
|
1568
|
-
};
|
|
1569
|
-
}) | ({
|
|
1570
|
-
type: "IntegrationFields";
|
|
1571
|
-
} & {
|
|
1572
|
-
fieldset?: string | null | undefined;
|
|
1573
|
-
config?: {
|
|
1574
|
-
label?: string | null | undefined;
|
|
1575
|
-
placeholder?: string;
|
|
1576
|
-
catalog?: string;
|
|
1577
|
-
};
|
|
1578
|
-
}) | ({
|
|
1579
|
-
type: "Link";
|
|
1580
|
-
} & {
|
|
1581
|
-
fieldset?: string | null | undefined;
|
|
1582
|
-
config?: {
|
|
1583
|
-
label?: string | null | undefined;
|
|
1584
|
-
useAsTitle?: boolean;
|
|
1585
|
-
placeholder?: string;
|
|
1586
|
-
select?: "media" | "document" | "web" | null;
|
|
1587
|
-
customtypes?: readonly string[];
|
|
1588
|
-
masks?: readonly string[];
|
|
1589
|
-
tags?: readonly string[];
|
|
1590
|
-
allowTargetBlank?: boolean;
|
|
1591
|
-
};
|
|
1592
|
-
}) | ({
|
|
1593
|
-
type: "Number";
|
|
1594
|
-
} & {
|
|
1595
|
-
fieldset?: string | null | undefined;
|
|
1596
|
-
config?: {
|
|
1597
|
-
label?: string | null | undefined;
|
|
1598
|
-
placeholder?: string;
|
|
1599
|
-
min?: number;
|
|
1600
|
-
max?: number;
|
|
1601
|
-
step?: number;
|
|
1602
|
-
};
|
|
1603
|
-
}) | ({
|
|
1604
|
-
type: "Range";
|
|
1605
|
-
} & {
|
|
1606
|
-
fieldset?: string | null | undefined;
|
|
1607
|
-
config?: {
|
|
1608
|
-
label?: string | null | undefined;
|
|
1609
|
-
placeholder?: string;
|
|
1610
|
-
min?: number;
|
|
1611
|
-
max?: number;
|
|
1612
|
-
step?: number;
|
|
1613
|
-
};
|
|
1614
|
-
}) | ({
|
|
1615
|
-
type: "StructuredText";
|
|
1616
|
-
} & {
|
|
1617
|
-
fieldset?: string | null | undefined;
|
|
1618
|
-
config?: {
|
|
1619
|
-
label?: string | null | undefined;
|
|
1620
|
-
placeholder?: string;
|
|
1621
|
-
useAsTitle?: boolean;
|
|
1622
|
-
single?: string;
|
|
1623
|
-
multi?: string;
|
|
1624
|
-
imageConstraint?: {
|
|
1625
|
-
width?: number | null;
|
|
1626
|
-
height?: number | null;
|
|
1627
|
-
};
|
|
1628
|
-
labels?: readonly string[];
|
|
1629
|
-
allowTargetBlank?: boolean;
|
|
1630
|
-
};
|
|
1631
|
-
}) | ({
|
|
1632
|
-
type: "Select";
|
|
1633
|
-
} & {
|
|
1634
|
-
fieldset?: string | null | undefined;
|
|
1635
|
-
config?: {
|
|
1636
|
-
label?: string | null | undefined;
|
|
1637
|
-
placeholder?: string;
|
|
1638
|
-
default_value?: string;
|
|
1639
|
-
options?: readonly string[];
|
|
1640
|
-
};
|
|
1641
|
-
}) | ({
|
|
1642
|
-
type: "Separator";
|
|
1643
|
-
} & {
|
|
1644
|
-
config?: {
|
|
1645
|
-
label?: string | null | undefined;
|
|
1646
|
-
};
|
|
1647
|
-
}) | ({
|
|
1648
|
-
type: "Text";
|
|
1649
|
-
} & {
|
|
1650
|
-
fieldset?: string | null | undefined;
|
|
1651
|
-
config?: {
|
|
1652
|
-
label?: string | null | undefined;
|
|
1653
|
-
useAsTitle?: boolean;
|
|
1654
|
-
placeholder?: string;
|
|
1655
|
-
};
|
|
1656
|
-
}) | ({
|
|
1657
|
-
type: "Timestamp";
|
|
1658
|
-
} & {
|
|
1659
|
-
fieldset?: string | null | undefined;
|
|
1660
|
-
config?: {
|
|
1661
|
-
label?: string | null | undefined;
|
|
1662
|
-
placeholder?: string;
|
|
1663
|
-
default?: string;
|
|
1664
|
-
};
|
|
1665
|
-
});
|
|
1666
|
-
};
|
|
1667
|
-
fields?: {
|
|
1668
|
-
[x: string]: ({
|
|
1669
|
-
type: "Boolean";
|
|
1670
|
-
} & {
|
|
1671
|
-
config?: {
|
|
1672
|
-
label?: string | null | undefined;
|
|
1673
|
-
default_value?: boolean;
|
|
1674
|
-
placeholder_true?: string;
|
|
1675
|
-
placeholder_false?: string;
|
|
1676
|
-
};
|
|
1677
|
-
}) | ({
|
|
1678
|
-
type: "Color";
|
|
1679
|
-
} & {
|
|
1680
|
-
fieldset?: string | null | undefined;
|
|
1681
|
-
config?: {
|
|
1682
|
-
label?: string | null | undefined;
|
|
1683
|
-
placeholder?: string;
|
|
1684
|
-
};
|
|
1685
|
-
}) | ({
|
|
1686
|
-
type: "Date";
|
|
1687
|
-
} & {
|
|
1688
|
-
fieldset?: string | null | undefined;
|
|
1689
|
-
config?: {
|
|
1690
|
-
label?: string | null | undefined;
|
|
1691
|
-
placeholder?: string;
|
|
1692
|
-
default?: string;
|
|
1693
|
-
};
|
|
1694
|
-
}) | ({
|
|
1695
|
-
type: "Embed";
|
|
1696
|
-
} & {
|
|
1697
|
-
fieldset?: string | null | undefined;
|
|
1698
|
-
config?: {
|
|
1699
|
-
label?: string | null | undefined;
|
|
1700
|
-
placeholder?: string;
|
|
1701
|
-
useAsTitle?: boolean;
|
|
1702
|
-
};
|
|
1703
|
-
}) | ({
|
|
1704
|
-
type: "GeoPoint";
|
|
1705
|
-
} & {
|
|
1706
|
-
fieldset?: string | null | undefined;
|
|
1707
|
-
config?: {
|
|
1708
|
-
label?: string | null | undefined;
|
|
1709
|
-
};
|
|
1710
|
-
}) | ({
|
|
1711
|
-
type: "Image";
|
|
1712
|
-
} & {
|
|
1713
|
-
fieldset?: string | null | undefined;
|
|
1714
|
-
config?: {
|
|
1715
|
-
label?: string | null | undefined;
|
|
1716
|
-
placeholder?: string;
|
|
1717
|
-
constraint?: {
|
|
1718
|
-
width?: number | null;
|
|
1719
|
-
height?: number | null;
|
|
1720
|
-
};
|
|
1721
|
-
thumbnails?: readonly ({
|
|
1722
|
-
name: string;
|
|
1723
|
-
} & {
|
|
1724
|
-
width?: number | null;
|
|
1725
|
-
height?: number | null;
|
|
1726
|
-
})[];
|
|
1727
|
-
};
|
|
1728
|
-
}) | ({
|
|
1729
|
-
type: "IntegrationFields";
|
|
1730
|
-
} & {
|
|
1731
|
-
fieldset?: string | null | undefined;
|
|
1732
|
-
config?: {
|
|
1733
|
-
label?: string | null | undefined;
|
|
1734
|
-
placeholder?: string;
|
|
1735
|
-
catalog?: string;
|
|
1736
|
-
};
|
|
1737
|
-
}) | ({
|
|
1738
|
-
type: "Link";
|
|
1739
|
-
} & {
|
|
1740
|
-
fieldset?: string | null | undefined;
|
|
1741
|
-
config?: {
|
|
1742
|
-
label?: string | null | undefined;
|
|
1743
|
-
useAsTitle?: boolean;
|
|
1744
|
-
placeholder?: string;
|
|
1745
|
-
select?: "media" | "document" | "web" | null;
|
|
1746
|
-
customtypes?: readonly string[];
|
|
1747
|
-
masks?: readonly string[];
|
|
1748
|
-
tags?: readonly string[];
|
|
1749
|
-
allowTargetBlank?: boolean;
|
|
1750
|
-
};
|
|
1751
|
-
}) | ({
|
|
1752
|
-
type: "Number";
|
|
1753
|
-
} & {
|
|
1754
|
-
fieldset?: string | null | undefined;
|
|
1755
|
-
config?: {
|
|
1756
|
-
label?: string | null | undefined;
|
|
1757
|
-
placeholder?: string;
|
|
1758
|
-
min?: number;
|
|
1759
|
-
max?: number;
|
|
1760
|
-
step?: number;
|
|
1761
|
-
};
|
|
1762
|
-
}) | ({
|
|
1763
|
-
type: "Range";
|
|
1764
|
-
} & {
|
|
1765
|
-
fieldset?: string | null | undefined;
|
|
1766
|
-
config?: {
|
|
1767
|
-
label?: string | null | undefined;
|
|
1768
|
-
placeholder?: string;
|
|
1769
|
-
min?: number;
|
|
1770
|
-
max?: number;
|
|
1771
|
-
step?: number;
|
|
1772
|
-
};
|
|
1773
|
-
}) | ({
|
|
1774
|
-
type: "StructuredText";
|
|
1775
|
-
} & {
|
|
1776
|
-
fieldset?: string | null | undefined;
|
|
1777
|
-
config?: {
|
|
1778
|
-
label?: string | null | undefined;
|
|
1779
|
-
placeholder?: string;
|
|
1780
|
-
useAsTitle?: boolean;
|
|
1781
|
-
single?: string;
|
|
1782
|
-
multi?: string;
|
|
1783
|
-
imageConstraint?: {
|
|
1784
|
-
width?: number | null;
|
|
1785
|
-
height?: number | null;
|
|
1786
|
-
};
|
|
1787
|
-
labels?: readonly string[];
|
|
1788
|
-
allowTargetBlank?: boolean;
|
|
1789
|
-
};
|
|
1790
|
-
}) | ({
|
|
1791
|
-
type: "Select";
|
|
1792
|
-
} & {
|
|
1793
|
-
fieldset?: string | null | undefined;
|
|
1794
|
-
config?: {
|
|
1795
|
-
label?: string | null | undefined;
|
|
1796
|
-
placeholder?: string;
|
|
1797
|
-
default_value?: string;
|
|
1798
|
-
options?: readonly string[];
|
|
1799
|
-
};
|
|
1800
|
-
}) | ({
|
|
1801
|
-
type: "Separator";
|
|
1802
|
-
} & {
|
|
1803
|
-
config?: {
|
|
1804
|
-
label?: string | null | undefined;
|
|
1805
|
-
};
|
|
1806
|
-
}) | ({
|
|
1807
|
-
type: "Text";
|
|
1808
|
-
} & {
|
|
1809
|
-
fieldset?: string | null | undefined;
|
|
1810
|
-
config?: {
|
|
1811
|
-
label?: string | null | undefined;
|
|
1812
|
-
useAsTitle?: boolean;
|
|
1813
|
-
placeholder?: string;
|
|
1814
|
-
};
|
|
1815
|
-
}) | ({
|
|
1816
|
-
type: "Timestamp";
|
|
1817
|
-
} & {
|
|
1818
|
-
fieldset?: string | null | undefined;
|
|
1819
|
-
config?: {
|
|
1820
|
-
label?: string | null | undefined;
|
|
1821
|
-
placeholder?: string;
|
|
1822
|
-
default?: string;
|
|
1823
|
-
};
|
|
1824
1506
|
}) | ({
|
|
1825
1507
|
type: "Group";
|
|
1826
1508
|
} & {
|
|
@@ -1992,6 +1674,165 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1992
1674
|
};
|
|
1993
1675
|
});
|
|
1994
1676
|
};
|
|
1677
|
+
items?: {
|
|
1678
|
+
[x: string]: ({
|
|
1679
|
+
type: "Boolean";
|
|
1680
|
+
} & {
|
|
1681
|
+
config?: {
|
|
1682
|
+
label?: string | null | undefined;
|
|
1683
|
+
default_value?: boolean;
|
|
1684
|
+
placeholder_true?: string;
|
|
1685
|
+
placeholder_false?: string;
|
|
1686
|
+
};
|
|
1687
|
+
}) | ({
|
|
1688
|
+
type: "Color";
|
|
1689
|
+
} & {
|
|
1690
|
+
fieldset?: string | null | undefined;
|
|
1691
|
+
config?: {
|
|
1692
|
+
label?: string | null | undefined;
|
|
1693
|
+
placeholder?: string;
|
|
1694
|
+
};
|
|
1695
|
+
}) | ({
|
|
1696
|
+
type: "Date";
|
|
1697
|
+
} & {
|
|
1698
|
+
fieldset?: string | null | undefined;
|
|
1699
|
+
config?: {
|
|
1700
|
+
label?: string | null | undefined;
|
|
1701
|
+
placeholder?: string;
|
|
1702
|
+
default?: string;
|
|
1703
|
+
};
|
|
1704
|
+
}) | ({
|
|
1705
|
+
type: "Embed";
|
|
1706
|
+
} & {
|
|
1707
|
+
fieldset?: string | null | undefined;
|
|
1708
|
+
config?: {
|
|
1709
|
+
label?: string | null | undefined;
|
|
1710
|
+
placeholder?: string;
|
|
1711
|
+
useAsTitle?: boolean;
|
|
1712
|
+
};
|
|
1713
|
+
}) | ({
|
|
1714
|
+
type: "GeoPoint";
|
|
1715
|
+
} & {
|
|
1716
|
+
fieldset?: string | null | undefined;
|
|
1717
|
+
config?: {
|
|
1718
|
+
label?: string | null | undefined;
|
|
1719
|
+
};
|
|
1720
|
+
}) | ({
|
|
1721
|
+
type: "Image";
|
|
1722
|
+
} & {
|
|
1723
|
+
fieldset?: string | null | undefined;
|
|
1724
|
+
config?: {
|
|
1725
|
+
label?: string | null | undefined;
|
|
1726
|
+
placeholder?: string;
|
|
1727
|
+
constraint?: {
|
|
1728
|
+
width?: number | null;
|
|
1729
|
+
height?: number | null;
|
|
1730
|
+
};
|
|
1731
|
+
thumbnails?: readonly ({
|
|
1732
|
+
name: string;
|
|
1733
|
+
} & {
|
|
1734
|
+
width?: number | null;
|
|
1735
|
+
height?: number | null;
|
|
1736
|
+
})[];
|
|
1737
|
+
};
|
|
1738
|
+
}) | ({
|
|
1739
|
+
type: "IntegrationFields";
|
|
1740
|
+
} & {
|
|
1741
|
+
fieldset?: string | null | undefined;
|
|
1742
|
+
config?: {
|
|
1743
|
+
label?: string | null | undefined;
|
|
1744
|
+
placeholder?: string;
|
|
1745
|
+
catalog?: string;
|
|
1746
|
+
};
|
|
1747
|
+
}) | ({
|
|
1748
|
+
type: "Link";
|
|
1749
|
+
} & {
|
|
1750
|
+
fieldset?: string | null | undefined;
|
|
1751
|
+
config?: {
|
|
1752
|
+
label?: string | null | undefined;
|
|
1753
|
+
useAsTitle?: boolean;
|
|
1754
|
+
placeholder?: string;
|
|
1755
|
+
select?: "media" | "document" | "web" | null;
|
|
1756
|
+
customtypes?: readonly string[];
|
|
1757
|
+
masks?: readonly string[];
|
|
1758
|
+
tags?: readonly string[];
|
|
1759
|
+
allowTargetBlank?: boolean;
|
|
1760
|
+
};
|
|
1761
|
+
}) | ({
|
|
1762
|
+
type: "Number";
|
|
1763
|
+
} & {
|
|
1764
|
+
fieldset?: string | null | undefined;
|
|
1765
|
+
config?: {
|
|
1766
|
+
label?: string | null | undefined;
|
|
1767
|
+
placeholder?: string;
|
|
1768
|
+
min?: number;
|
|
1769
|
+
max?: number;
|
|
1770
|
+
step?: number;
|
|
1771
|
+
};
|
|
1772
|
+
}) | ({
|
|
1773
|
+
type: "Range";
|
|
1774
|
+
} & {
|
|
1775
|
+
fieldset?: string | null | undefined;
|
|
1776
|
+
config?: {
|
|
1777
|
+
label?: string | null | undefined;
|
|
1778
|
+
placeholder?: string;
|
|
1779
|
+
min?: number;
|
|
1780
|
+
max?: number;
|
|
1781
|
+
step?: number;
|
|
1782
|
+
};
|
|
1783
|
+
}) | ({
|
|
1784
|
+
type: "StructuredText";
|
|
1785
|
+
} & {
|
|
1786
|
+
fieldset?: string | null | undefined;
|
|
1787
|
+
config?: {
|
|
1788
|
+
label?: string | null | undefined;
|
|
1789
|
+
placeholder?: string;
|
|
1790
|
+
useAsTitle?: boolean;
|
|
1791
|
+
single?: string;
|
|
1792
|
+
multi?: string;
|
|
1793
|
+
imageConstraint?: {
|
|
1794
|
+
width?: number | null;
|
|
1795
|
+
height?: number | null;
|
|
1796
|
+
};
|
|
1797
|
+
labels?: readonly string[];
|
|
1798
|
+
allowTargetBlank?: boolean;
|
|
1799
|
+
};
|
|
1800
|
+
}) | ({
|
|
1801
|
+
type: "Select";
|
|
1802
|
+
} & {
|
|
1803
|
+
fieldset?: string | null | undefined;
|
|
1804
|
+
config?: {
|
|
1805
|
+
label?: string | null | undefined;
|
|
1806
|
+
placeholder?: string;
|
|
1807
|
+
default_value?: string;
|
|
1808
|
+
options?: readonly string[];
|
|
1809
|
+
};
|
|
1810
|
+
}) | ({
|
|
1811
|
+
type: "Separator";
|
|
1812
|
+
} & {
|
|
1813
|
+
config?: {
|
|
1814
|
+
label?: string | null | undefined;
|
|
1815
|
+
};
|
|
1816
|
+
}) | ({
|
|
1817
|
+
type: "Text";
|
|
1818
|
+
} & {
|
|
1819
|
+
fieldset?: string | null | undefined;
|
|
1820
|
+
config?: {
|
|
1821
|
+
label?: string | null | undefined;
|
|
1822
|
+
useAsTitle?: boolean;
|
|
1823
|
+
placeholder?: string;
|
|
1824
|
+
};
|
|
1825
|
+
}) | ({
|
|
1826
|
+
type: "Timestamp";
|
|
1827
|
+
} & {
|
|
1828
|
+
fieldset?: string | null | undefined;
|
|
1829
|
+
config?: {
|
|
1830
|
+
label?: string | null | undefined;
|
|
1831
|
+
placeholder?: string;
|
|
1832
|
+
default?: string;
|
|
1833
|
+
};
|
|
1834
|
+
});
|
|
1835
|
+
};
|
|
1995
1836
|
})[];
|
|
1996
1837
|
} & {
|
|
1997
1838
|
description?: string;
|