@prismicio/types-internal 2.1.0-alpha.2 → 2.1.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.
Files changed (39) hide show
  1. package/lib/content/Document.d.ts +1 -1
  2. package/lib/content/Document.js +1 -6
  3. package/lib/customtypes/CustomType.d.ts +1046 -1180
  4. package/lib/customtypes/CustomType.js +13 -74
  5. package/lib/customtypes/Section.d.ts +1047 -1171
  6. package/lib/customtypes/Section.js +23 -1
  7. package/lib/customtypes/_internal/utils.d.ts +3 -0
  8. package/lib/customtypes/_internal/utils.js +20 -0
  9. package/lib/customtypes/diff/SharedSlice.d.ts +184 -220
  10. package/lib/customtypes/diff/Variation.d.ts +183 -219
  11. package/lib/customtypes/widgets/Group.d.ts +6 -40
  12. package/lib/customtypes/widgets/Group.js +20 -1
  13. package/lib/customtypes/widgets/Widget.d.ts +778 -976
  14. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +4 -22
  15. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +5 -34
  16. package/lib/customtypes/widgets/nestable/Link/index.d.ts +4 -40
  17. package/lib/customtypes/widgets/nestable/Link/index.js +1 -1
  18. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +2 -20
  19. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +6 -40
  20. package/lib/customtypes/widgets/slices/CompositeSlice.js +26 -1
  21. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +4 -40
  22. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +10 -80
  23. package/lib/customtypes/widgets/slices/SharedSlice.js +35 -1
  24. package/lib/customtypes/widgets/slices/Slices.d.ts +924 -1246
  25. package/lib/customtypes/widgets/slices/Slices.js +34 -1
  26. package/lib/validators/StringOrT.d.ts +3 -0
  27. package/lib/validators/StringOrT.js +15 -0
  28. package/package.json +1 -1
  29. package/src/content/Document.ts +2 -6
  30. package/src/customtypes/CustomType.ts +24 -97
  31. package/src/customtypes/Section.ts +28 -1
  32. package/src/customtypes/_internal/utils.ts +25 -0
  33. package/src/customtypes/widgets/Group.ts +24 -0
  34. package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +5 -54
  35. package/src/customtypes/widgets/nestable/Link/index.ts +2 -2
  36. package/src/customtypes/widgets/slices/CompositeSlice.ts +33 -0
  37. package/src/customtypes/widgets/slices/SharedSlice.ts +47 -0
  38. package/src/customtypes/widgets/slices/Slices.ts +44 -1
  39. package/src/validators/StringOrT.ts +21 -0
@@ -1,4 +1,5 @@
1
1
  import * as t from "io-ts";
2
+ import { TraverseFn } from "../../_internal/utils";
2
3
  import { SharedSlice } from "./SharedSlice";
3
4
  import { SharedSliceRef } from "./SharedSliceRef";
4
5
  export declare const LegacySlicesFieldType = "Choice";
@@ -143,29 +144,11 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
143
144
  customtypes: t.ReadonlyArrayC<t.Type<{
144
145
  customTypeId: string;
145
146
  } & {
146
- fields?: readonly ({
147
- fieldId: string;
148
- } & {
149
- customTypes?: readonly {
150
- customTypeId: string;
151
- fields: readonly {
152
- fieldId: string;
153
- }[];
154
- }[];
155
- })[];
147
+ fetchFields?: boolean;
156
148
  }, {
157
149
  customTypeId: string;
158
150
  } & {
159
- fields?: readonly ({
160
- fieldId: string;
161
- } & {
162
- customTypes?: readonly {
163
- customTypeId: string;
164
- fields: readonly {
165
- fieldId: string;
166
- }[];
167
- }[];
168
- })[];
151
+ fetchFields?: boolean;
169
152
  }, unknown>>;
170
153
  masks: t.Type<readonly string[], object, unknown>;
171
154
  tags: t.Type<readonly string[], object, unknown>;
@@ -334,29 +317,11 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
334
317
  customtypes: t.ReadonlyArrayC<t.Type<{
335
318
  customTypeId: string;
336
319
  } & {
337
- fields?: readonly ({
338
- fieldId: string;
339
- } & {
340
- customTypes?: readonly {
341
- customTypeId: string;
342
- fields: readonly {
343
- fieldId: string;
344
- }[];
345
- }[];
346
- })[];
320
+ fetchFields?: boolean;
347
321
  }, {
348
322
  customTypeId: string;
349
323
  } & {
350
- fields?: readonly ({
351
- fieldId: string;
352
- } & {
353
- customTypes?: readonly {
354
- customTypeId: string;
355
- fields: readonly {
356
- fieldId: string;
357
- }[];
358
- }[];
359
- })[];
324
+ fetchFields?: boolean;
360
325
  }, unknown>>;
361
326
  masks: t.Type<readonly string[], object, unknown>;
362
327
  tags: t.Type<readonly string[], object, unknown>;
@@ -525,29 +490,11 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
525
490
  customtypes: t.ReadonlyArrayC<t.Type<{
526
491
  customTypeId: string;
527
492
  } & {
528
- fields?: readonly ({
529
- fieldId: string;
530
- } & {
531
- customTypes?: readonly {
532
- customTypeId: string;
533
- fields: readonly {
534
- fieldId: string;
535
- }[];
536
- }[];
537
- })[];
493
+ fetchFields?: boolean;
538
494
  }, {
539
495
  customTypeId: string;
540
496
  } & {
541
- fields?: readonly ({
542
- fieldId: string;
543
- } & {
544
- customTypes?: readonly {
545
- customTypeId: string;
546
- fields: readonly {
547
- fieldId: string;
548
- }[];
549
- }[];
550
- })[];
497
+ fetchFields?: boolean;
551
498
  }, unknown>>;
552
499
  masks: t.Type<readonly string[], object, unknown>;
553
500
  tags: t.Type<readonly string[], object, unknown>;
@@ -708,29 +655,11 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
708
655
  customtypes: t.ReadonlyArrayC<t.Type<{
709
656
  customTypeId: string;
710
657
  } & {
711
- fields?: readonly ({
712
- fieldId: string;
713
- } & {
714
- customTypes?: readonly {
715
- customTypeId: string;
716
- fields: readonly {
717
- fieldId: string;
718
- }[];
719
- }[];
720
- })[];
658
+ fetchFields?: boolean;
721
659
  }, {
722
660
  customTypeId: string;
723
661
  } & {
724
- fields?: readonly ({
725
- fieldId: string;
726
- } & {
727
- customTypes?: readonly {
728
- customTypeId: string;
729
- fields: readonly {
730
- fieldId: string;
731
- }[];
732
- }[];
733
- })[];
662
+ fetchFields?: boolean;
734
663
  }, unknown>>;
735
664
  masks: t.Type<readonly string[], object, unknown>;
736
665
  tags: t.Type<readonly string[], object, unknown>;
@@ -903,29 +832,11 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
903
832
  customtypes: t.ReadonlyArrayC<t.Type<{
904
833
  customTypeId: string;
905
834
  } & {
906
- fields?: readonly ({
907
- fieldId: string;
908
- } & {
909
- customTypes?: readonly {
910
- customTypeId: string;
911
- fields: readonly {
912
- fieldId: string;
913
- }[];
914
- }[];
915
- })[];
835
+ fetchFields?: boolean;
916
836
  }, {
917
837
  customTypeId: string;
918
838
  } & {
919
- fields?: readonly ({
920
- fieldId: string;
921
- } & {
922
- customTypes?: readonly {
923
- customTypeId: string;
924
- fields: readonly {
925
- fieldId: string;
926
- }[];
927
- }[];
928
- })[];
839
+ fetchFields?: boolean;
929
840
  }, unknown>>;
930
841
  masks: t.Type<readonly string[], object, unknown>;
931
842
  tags: t.Type<readonly string[], object, unknown>;
@@ -1094,29 +1005,11 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1094
1005
  customtypes: t.ReadonlyArrayC<t.Type<{
1095
1006
  customTypeId: string;
1096
1007
  } & {
1097
- fields?: readonly ({
1098
- fieldId: string;
1099
- } & {
1100
- customTypes?: readonly {
1101
- customTypeId: string;
1102
- fields: readonly {
1103
- fieldId: string;
1104
- }[];
1105
- }[];
1106
- })[];
1008
+ fetchFields?: boolean;
1107
1009
  }, {
1108
1010
  customTypeId: string;
1109
1011
  } & {
1110
- fields?: readonly ({
1111
- fieldId: string;
1112
- } & {
1113
- customTypes?: readonly {
1114
- customTypeId: string;
1115
- fields: readonly {
1116
- fieldId: string;
1117
- }[];
1118
- }[];
1119
- })[];
1012
+ fetchFields?: boolean;
1120
1013
  }, unknown>>;
1121
1014
  masks: t.Type<readonly string[], object, unknown>;
1122
1015
  tags: t.Type<readonly string[], object, unknown>;
@@ -1285,29 +1178,11 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1285
1178
  customtypes: t.ReadonlyArrayC<t.Type<{
1286
1179
  customTypeId: string;
1287
1180
  } & {
1288
- fields?: readonly ({
1289
- fieldId: string;
1290
- } & {
1291
- customTypes?: readonly {
1292
- customTypeId: string;
1293
- fields: readonly {
1294
- fieldId: string;
1295
- }[];
1296
- }[];
1297
- })[];
1181
+ fetchFields?: boolean;
1298
1182
  }, {
1299
1183
  customTypeId: string;
1300
1184
  } & {
1301
- fields?: readonly ({
1302
- fieldId: string;
1303
- } & {
1304
- customTypes?: readonly {
1305
- customTypeId: string;
1306
- fields: readonly {
1307
- fieldId: string;
1308
- }[];
1309
- }[];
1310
- })[];
1185
+ fetchFields?: boolean;
1311
1186
  }, unknown>>;
1312
1187
  masks: t.Type<readonly string[], object, unknown>;
1313
1188
  tags: t.Type<readonly string[], object, unknown>;
@@ -1468,29 +1343,11 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1468
1343
  customtypes: t.ReadonlyArrayC<t.Type<{
1469
1344
  customTypeId: string;
1470
1345
  } & {
1471
- fields?: readonly ({
1472
- fieldId: string;
1473
- } & {
1474
- customTypes?: readonly {
1475
- customTypeId: string;
1476
- fields: readonly {
1477
- fieldId: string;
1478
- }[];
1479
- }[];
1480
- })[];
1346
+ fetchFields?: boolean;
1481
1347
  }, {
1482
1348
  customTypeId: string;
1483
1349
  } & {
1484
- fields?: readonly ({
1485
- fieldId: string;
1486
- } & {
1487
- customTypes?: readonly {
1488
- customTypeId: string;
1489
- fields: readonly {
1490
- fieldId: string;
1491
- }[];
1492
- }[];
1493
- })[];
1350
+ fetchFields?: boolean;
1494
1351
  }, unknown>>;
1495
1352
  masks: t.Type<readonly string[], object, unknown>;
1496
1353
  tags: t.Type<readonly string[], object, unknown>;
@@ -1542,15 +1399,6 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1542
1399
  display?: string;
1543
1400
  primary?: {
1544
1401
  [x: string]: ({
1545
- type: "Boolean";
1546
- } & {
1547
- config?: {
1548
- label?: string | null | undefined;
1549
- default_value?: boolean;
1550
- placeholder_true?: string;
1551
- placeholder_false?: string;
1552
- };
1553
- }) | ({
1554
1402
  type: "Color";
1555
1403
  } & {
1556
1404
  fieldset?: string | null | undefined;
@@ -1559,13 +1407,13 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1559
1407
  placeholder?: string;
1560
1408
  };
1561
1409
  }) | ({
1562
- type: "Date";
1410
+ type: "Boolean";
1563
1411
  } & {
1564
- fieldset?: string | null | undefined;
1565
1412
  config?: {
1566
1413
  label?: string | null | undefined;
1567
- placeholder?: string;
1568
- default?: string;
1414
+ default_value?: boolean;
1415
+ placeholder_true?: string;
1416
+ placeholder_false?: string;
1569
1417
  };
1570
1418
  }) | ({
1571
1419
  type: "Embed";
@@ -1584,58 +1432,13 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1584
1432
  label?: string | null | undefined;
1585
1433
  };
1586
1434
  }) | ({
1587
- type: "Image";
1588
- } & {
1589
- fieldset?: string | null | undefined;
1590
- config?: {
1591
- label?: string | null | undefined;
1592
- placeholder?: string;
1593
- constraint?: {
1594
- width?: number | null;
1595
- height?: number | null;
1596
- };
1597
- thumbnails?: readonly ({
1598
- name: string;
1599
- } & {
1600
- width?: number | null;
1601
- height?: number | null;
1602
- })[];
1603
- };
1604
- }) | ({
1605
- type: "IntegrationFields";
1606
- } & {
1607
- fieldset?: string | null | undefined;
1608
- config?: {
1609
- label?: string | null | undefined;
1610
- placeholder?: string;
1611
- catalog?: string;
1612
- };
1613
- }) | ({
1614
- type: "Link";
1435
+ type: "Date";
1615
1436
  } & {
1616
1437
  fieldset?: string | null | undefined;
1617
1438
  config?: {
1618
1439
  label?: string | null | undefined;
1619
- useAsTitle?: boolean;
1620
1440
  placeholder?: string;
1621
- select?: "media" | "document" | "web" | null;
1622
- customtypes?: readonly ({
1623
- customTypeId: string;
1624
- } & {
1625
- fields?: readonly ({
1626
- fieldId: string;
1627
- } & {
1628
- customTypes?: readonly {
1629
- customTypeId: string;
1630
- fields: readonly {
1631
- fieldId: string;
1632
- }[];
1633
- }[];
1634
- })[];
1635
- })[];
1636
- masks?: readonly string[];
1637
- tags?: readonly string[];
1638
- allowTargetBlank?: boolean;
1441
+ default?: string;
1639
1442
  };
1640
1443
  }) | ({
1641
1444
  type: "Number";
@@ -1710,104 +1513,95 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1710
1513
  placeholder?: string;
1711
1514
  default?: string;
1712
1515
  };
1713
- });
1714
- };
1715
- items?: {
1716
- [x: string]: ({
1717
- type: "Boolean";
1516
+ }) | ({
1517
+ type: "Link";
1718
1518
  } & {
1519
+ fieldset?: string | null | undefined;
1719
1520
  config?: {
1720
1521
  label?: string | null | undefined;
1721
- default_value?: boolean;
1722
- placeholder_true?: string;
1723
- placeholder_false?: string;
1522
+ useAsTitle?: boolean;
1523
+ placeholder?: string;
1524
+ select?: "media" | "document" | "web" | null;
1525
+ customtypes?: readonly ({
1526
+ customTypeId: string;
1527
+ } & {
1528
+ fetchFields?: boolean;
1529
+ })[];
1530
+ masks?: readonly string[];
1531
+ tags?: readonly string[];
1532
+ allowTargetBlank?: boolean;
1724
1533
  };
1725
1534
  }) | ({
1726
- type: "Color";
1535
+ type: "Image";
1727
1536
  } & {
1728
1537
  fieldset?: string | null | undefined;
1729
1538
  config?: {
1730
1539
  label?: string | null | undefined;
1731
1540
  placeholder?: string;
1541
+ constraint?: {
1542
+ width?: number | null;
1543
+ height?: number | null;
1544
+ };
1545
+ thumbnails?: readonly ({
1546
+ name: string;
1547
+ } & {
1548
+ width?: number | null;
1549
+ height?: number | null;
1550
+ })[];
1732
1551
  };
1733
1552
  }) | ({
1734
- type: "Date";
1553
+ type: "IntegrationFields";
1735
1554
  } & {
1736
1555
  fieldset?: string | null | undefined;
1737
1556
  config?: {
1738
1557
  label?: string | null | undefined;
1739
1558
  placeholder?: string;
1740
- default?: string;
1559
+ catalog?: string;
1741
1560
  };
1742
- }) | ({
1743
- type: "Embed";
1561
+ });
1562
+ };
1563
+ items?: {
1564
+ [x: string]: ({
1565
+ type: "Color";
1744
1566
  } & {
1745
1567
  fieldset?: string | null | undefined;
1746
1568
  config?: {
1747
1569
  label?: string | null | undefined;
1748
1570
  placeholder?: string;
1749
- useAsTitle?: boolean;
1750
1571
  };
1751
1572
  }) | ({
1752
- type: "GeoPoint";
1573
+ type: "Boolean";
1753
1574
  } & {
1754
- fieldset?: string | null | undefined;
1755
1575
  config?: {
1756
1576
  label?: string | null | undefined;
1577
+ default_value?: boolean;
1578
+ placeholder_true?: string;
1579
+ placeholder_false?: string;
1757
1580
  };
1758
1581
  }) | ({
1759
- type: "Image";
1582
+ type: "Embed";
1760
1583
  } & {
1761
1584
  fieldset?: string | null | undefined;
1762
1585
  config?: {
1763
1586
  label?: string | null | undefined;
1764
1587
  placeholder?: string;
1765
- constraint?: {
1766
- width?: number | null;
1767
- height?: number | null;
1768
- };
1769
- thumbnails?: readonly ({
1770
- name: string;
1771
- } & {
1772
- width?: number | null;
1773
- height?: number | null;
1774
- })[];
1588
+ useAsTitle?: boolean;
1775
1589
  };
1776
1590
  }) | ({
1777
- type: "IntegrationFields";
1591
+ type: "GeoPoint";
1778
1592
  } & {
1779
1593
  fieldset?: string | null | undefined;
1780
1594
  config?: {
1781
1595
  label?: string | null | undefined;
1782
- placeholder?: string;
1783
- catalog?: string;
1784
1596
  };
1785
1597
  }) | ({
1786
- type: "Link";
1598
+ type: "Date";
1787
1599
  } & {
1788
1600
  fieldset?: string | null | undefined;
1789
1601
  config?: {
1790
1602
  label?: string | null | undefined;
1791
- useAsTitle?: boolean;
1792
1603
  placeholder?: string;
1793
- select?: "media" | "document" | "web" | null;
1794
- customtypes?: readonly ({
1795
- customTypeId: string;
1796
- } & {
1797
- fields?: readonly ({
1798
- fieldId: string;
1799
- } & {
1800
- customTypes?: readonly {
1801
- customTypeId: string;
1802
- fields: readonly {
1803
- fieldId: string;
1804
- }[];
1805
- }[];
1806
- })[];
1807
- })[];
1808
- masks?: readonly string[];
1809
- tags?: readonly string[];
1810
- allowTargetBlank?: boolean;
1604
+ default?: string;
1811
1605
  };
1812
1606
  }) | ({
1813
1607
  type: "Number";
@@ -1882,6 +1676,51 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1882
1676
  placeholder?: string;
1883
1677
  default?: string;
1884
1678
  };
1679
+ }) | ({
1680
+ type: "Link";
1681
+ } & {
1682
+ fieldset?: string | null | undefined;
1683
+ config?: {
1684
+ label?: string | null | undefined;
1685
+ useAsTitle?: boolean;
1686
+ placeholder?: string;
1687
+ select?: "media" | "document" | "web" | null;
1688
+ customtypes?: readonly ({
1689
+ customTypeId: string;
1690
+ } & {
1691
+ fetchFields?: boolean;
1692
+ })[];
1693
+ masks?: readonly string[];
1694
+ tags?: readonly string[];
1695
+ allowTargetBlank?: boolean;
1696
+ };
1697
+ }) | ({
1698
+ type: "Image";
1699
+ } & {
1700
+ fieldset?: string | null | undefined;
1701
+ config?: {
1702
+ label?: string | null | undefined;
1703
+ placeholder?: string;
1704
+ constraint?: {
1705
+ width?: number | null;
1706
+ height?: number | null;
1707
+ };
1708
+ thumbnails?: readonly ({
1709
+ name: string;
1710
+ } & {
1711
+ width?: number | null;
1712
+ height?: number | null;
1713
+ })[];
1714
+ };
1715
+ }) | ({
1716
+ type: "IntegrationFields";
1717
+ } & {
1718
+ fieldset?: string | null | undefined;
1719
+ config?: {
1720
+ label?: string | null | undefined;
1721
+ placeholder?: string;
1722
+ catalog?: string;
1723
+ };
1885
1724
  });
1886
1725
  };
1887
1726
  })[];
@@ -2024,29 +1863,11 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2024
1863
  customtypes: t.ReadonlyArrayC<t.Type<{
2025
1864
  customTypeId: string;
2026
1865
  } & {
2027
- fields?: readonly ({
2028
- fieldId: string;
2029
- } & {
2030
- customTypes?: readonly {
2031
- customTypeId: string;
2032
- fields: readonly {
2033
- fieldId: string;
2034
- }[];
2035
- }[];
2036
- })[];
1866
+ fetchFields?: boolean;
2037
1867
  }, {
2038
1868
  customTypeId: string;
2039
1869
  } & {
2040
- fields?: readonly ({
2041
- fieldId: string;
2042
- } & {
2043
- customTypes?: readonly {
2044
- customTypeId: string;
2045
- fields: readonly {
2046
- fieldId: string;
2047
- }[];
2048
- }[];
2049
- })[];
1870
+ fetchFields?: boolean;
2050
1871
  }, unknown>>;
2051
1872
  masks: t.Type<readonly string[], object, unknown>;
2052
1873
  tags: t.Type<readonly string[], object, unknown>;
@@ -2215,29 +2036,11 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2215
2036
  customtypes: t.ReadonlyArrayC<t.Type<{
2216
2037
  customTypeId: string;
2217
2038
  } & {
2218
- fields?: readonly ({
2219
- fieldId: string;
2220
- } & {
2221
- customTypes?: readonly {
2222
- customTypeId: string;
2223
- fields: readonly {
2224
- fieldId: string;
2225
- }[];
2226
- }[];
2227
- })[];
2039
+ fetchFields?: boolean;
2228
2040
  }, {
2229
2041
  customTypeId: string;
2230
2042
  } & {
2231
- fields?: readonly ({
2232
- fieldId: string;
2233
- } & {
2234
- customTypes?: readonly {
2235
- customTypeId: string;
2236
- fields: readonly {
2237
- fieldId: string;
2238
- }[];
2239
- }[];
2240
- })[];
2043
+ fetchFields?: boolean;
2241
2044
  }, unknown>>;
2242
2045
  masks: t.Type<readonly string[], object, unknown>;
2243
2046
  tags: t.Type<readonly string[], object, unknown>;
@@ -2406,29 +2209,11 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2406
2209
  customtypes: t.ReadonlyArrayC<t.Type<{
2407
2210
  customTypeId: string;
2408
2211
  } & {
2409
- fields?: readonly ({
2410
- fieldId: string;
2411
- } & {
2412
- customTypes?: readonly {
2413
- customTypeId: string;
2414
- fields: readonly {
2415
- fieldId: string;
2416
- }[];
2417
- }[];
2418
- })[];
2212
+ fetchFields?: boolean;
2419
2213
  }, {
2420
2214
  customTypeId: string;
2421
2215
  } & {
2422
- fields?: readonly ({
2423
- fieldId: string;
2424
- } & {
2425
- customTypes?: readonly {
2426
- customTypeId: string;
2427
- fields: readonly {
2428
- fieldId: string;
2429
- }[];
2430
- }[];
2431
- })[];
2216
+ fetchFields?: boolean;
2432
2217
  }, unknown>>;
2433
2218
  masks: t.Type<readonly string[], object, unknown>;
2434
2219
  tags: t.Type<readonly string[], object, unknown>;
@@ -2589,29 +2374,11 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2589
2374
  customtypes: t.ReadonlyArrayC<t.Type<{
2590
2375
  customTypeId: string;
2591
2376
  } & {
2592
- fields?: readonly ({
2593
- fieldId: string;
2594
- } & {
2595
- customTypes?: readonly {
2596
- customTypeId: string;
2597
- fields: readonly {
2598
- fieldId: string;
2599
- }[];
2600
- }[];
2601
- })[];
2377
+ fetchFields?: boolean;
2602
2378
  }, {
2603
2379
  customTypeId: string;
2604
2380
  } & {
2605
- fields?: readonly ({
2606
- fieldId: string;
2607
- } & {
2608
- customTypes?: readonly {
2609
- customTypeId: string;
2610
- fields: readonly {
2611
- fieldId: string;
2612
- }[];
2613
- }[];
2614
- })[];
2381
+ fetchFields?: boolean;
2615
2382
  }, unknown>>;
2616
2383
  masks: t.Type<readonly string[], object, unknown>;
2617
2384
  tags: t.Type<readonly string[], object, unknown>;
@@ -2680,15 +2447,6 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2680
2447
  } | null;
2681
2448
  choices?: {
2682
2449
  [x: string]: ({
2683
- type: "Boolean";
2684
- } & {
2685
- config?: {
2686
- label?: string | null | undefined;
2687
- default_value?: boolean;
2688
- placeholder_true?: string;
2689
- placeholder_false?: string;
2690
- };
2691
- }) | ({
2692
2450
  type: "Color";
2693
2451
  } & {
2694
2452
  fieldset?: string | null | undefined;
@@ -2697,13 +2455,13 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2697
2455
  placeholder?: string;
2698
2456
  };
2699
2457
  }) | ({
2700
- type: "Date";
2458
+ type: "Boolean";
2701
2459
  } & {
2702
- fieldset?: string | null | undefined;
2703
2460
  config?: {
2704
2461
  label?: string | null | undefined;
2705
- placeholder?: string;
2706
- default?: string;
2462
+ default_value?: boolean;
2463
+ placeholder_true?: string;
2464
+ placeholder_false?: string;
2707
2465
  };
2708
2466
  }) | ({
2709
2467
  type: "Embed";
@@ -2722,58 +2480,13 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2722
2480
  label?: string | null | undefined;
2723
2481
  };
2724
2482
  }) | ({
2725
- type: "Image";
2726
- } & {
2727
- fieldset?: string | null | undefined;
2728
- config?: {
2729
- label?: string | null | undefined;
2730
- placeholder?: string;
2731
- constraint?: {
2732
- width?: number | null;
2733
- height?: number | null;
2734
- };
2735
- thumbnails?: readonly ({
2736
- name: string;
2737
- } & {
2738
- width?: number | null;
2739
- height?: number | null;
2740
- })[];
2741
- };
2742
- }) | ({
2743
- type: "IntegrationFields";
2744
- } & {
2745
- fieldset?: string | null | undefined;
2746
- config?: {
2747
- label?: string | null | undefined;
2748
- placeholder?: string;
2749
- catalog?: string;
2750
- };
2751
- }) | ({
2752
- type: "Link";
2483
+ type: "Date";
2753
2484
  } & {
2754
2485
  fieldset?: string | null | undefined;
2755
2486
  config?: {
2756
2487
  label?: string | null | undefined;
2757
- useAsTitle?: boolean;
2758
2488
  placeholder?: string;
2759
- select?: "media" | "document" | "web" | null;
2760
- customtypes?: readonly ({
2761
- customTypeId: string;
2762
- } & {
2763
- fields?: readonly ({
2764
- fieldId: string;
2765
- } & {
2766
- customTypes?: readonly {
2767
- customTypeId: string;
2768
- fields: readonly {
2769
- fieldId: string;
2770
- }[];
2771
- }[];
2772
- })[];
2773
- })[];
2774
- masks?: readonly string[];
2775
- tags?: readonly string[];
2776
- allowTargetBlank?: boolean;
2489
+ default?: string;
2777
2490
  };
2778
2491
  }) | ({
2779
2492
  type: "Number";
@@ -2849,16 +2562,73 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2849
2562
  default?: string;
2850
2563
  };
2851
2564
  }) | ({
2852
- type: "Group";
2565
+ type: "Link";
2853
2566
  } & {
2854
2567
  fieldset?: string | null | undefined;
2855
- icon?: string;
2856
- description?: string;
2857
2568
  config?: {
2858
2569
  label?: string | null | undefined;
2859
- repeat?: boolean;
2860
- fields?: {
2570
+ useAsTitle?: boolean;
2571
+ placeholder?: string;
2572
+ select?: "media" | "document" | "web" | null;
2573
+ customtypes?: readonly ({
2574
+ customTypeId: string;
2575
+ } & {
2576
+ fetchFields?: boolean;
2577
+ })[];
2578
+ masks?: readonly string[];
2579
+ tags?: readonly string[];
2580
+ allowTargetBlank?: boolean;
2581
+ };
2582
+ }) | ({
2583
+ type: "Image";
2584
+ } & {
2585
+ fieldset?: string | null | undefined;
2586
+ config?: {
2587
+ label?: string | null | undefined;
2588
+ placeholder?: string;
2589
+ constraint?: {
2590
+ width?: number | null;
2591
+ height?: number | null;
2592
+ };
2593
+ thumbnails?: readonly ({
2594
+ name: string;
2595
+ } & {
2596
+ width?: number | null;
2597
+ height?: number | null;
2598
+ })[];
2599
+ };
2600
+ }) | ({
2601
+ type: "IntegrationFields";
2602
+ } & {
2603
+ fieldset?: string | null | undefined;
2604
+ config?: {
2605
+ label?: string | null | undefined;
2606
+ placeholder?: string;
2607
+ catalog?: string;
2608
+ };
2609
+ }) | ({
2610
+ id: string;
2611
+ type: "SharedSlice";
2612
+ name: string;
2613
+ variations: readonly ({
2614
+ id: string;
2615
+ name: string;
2616
+ description: string;
2617
+ imageUrl: string;
2618
+ docURL: string;
2619
+ version: string;
2620
+ } & {
2621
+ display?: string;
2622
+ primary?: {
2861
2623
  [x: string]: ({
2624
+ type: "Color";
2625
+ } & {
2626
+ fieldset?: string | null | undefined;
2627
+ config?: {
2628
+ label?: string | null | undefined;
2629
+ placeholder?: string;
2630
+ };
2631
+ }) | ({
2862
2632
  type: "Boolean";
2863
2633
  } & {
2864
2634
  config?: {
@@ -2868,12 +2638,20 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2868
2638
  placeholder_false?: string;
2869
2639
  };
2870
2640
  }) | ({
2871
- type: "Color";
2641
+ type: "Embed";
2872
2642
  } & {
2873
2643
  fieldset?: string | null | undefined;
2874
2644
  config?: {
2875
2645
  label?: string | null | undefined;
2876
2646
  placeholder?: string;
2647
+ useAsTitle?: boolean;
2648
+ };
2649
+ }) | ({
2650
+ type: "GeoPoint";
2651
+ } & {
2652
+ fieldset?: string | null | undefined;
2653
+ config?: {
2654
+ label?: string | null | undefined;
2877
2655
  };
2878
2656
  }) | ({
2879
2657
  type: "Date";
@@ -2885,47 +2663,77 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2885
2663
  default?: string;
2886
2664
  };
2887
2665
  }) | ({
2888
- type: "Embed";
2666
+ type: "Number";
2889
2667
  } & {
2890
2668
  fieldset?: string | null | undefined;
2891
2669
  config?: {
2892
2670
  label?: string | null | undefined;
2893
2671
  placeholder?: string;
2894
- useAsTitle?: boolean;
2672
+ min?: number;
2673
+ max?: number;
2674
+ step?: number;
2895
2675
  };
2896
2676
  }) | ({
2897
- type: "GeoPoint";
2677
+ type: "Range";
2898
2678
  } & {
2899
2679
  fieldset?: string | null | undefined;
2900
2680
  config?: {
2901
2681
  label?: string | null | undefined;
2682
+ placeholder?: string;
2683
+ min?: number;
2684
+ max?: number;
2685
+ step?: number;
2902
2686
  };
2903
2687
  }) | ({
2904
- type: "Image";
2688
+ type: "StructuredText";
2905
2689
  } & {
2906
2690
  fieldset?: string | null | undefined;
2907
2691
  config?: {
2908
2692
  label?: string | null | undefined;
2909
2693
  placeholder?: string;
2910
- constraint?: {
2694
+ useAsTitle?: boolean;
2695
+ single?: string;
2696
+ multi?: string;
2697
+ imageConstraint?: {
2911
2698
  width?: number | null;
2912
2699
  height?: number | null;
2913
2700
  };
2914
- thumbnails?: readonly ({
2915
- name: string;
2916
- } & {
2917
- width?: number | null;
2918
- height?: number | null;
2919
- })[];
2701
+ labels?: readonly string[];
2702
+ allowTargetBlank?: boolean;
2920
2703
  };
2921
2704
  }) | ({
2922
- type: "IntegrationFields";
2705
+ type: "Select";
2923
2706
  } & {
2924
2707
  fieldset?: string | null | undefined;
2925
2708
  config?: {
2926
2709
  label?: string | null | undefined;
2927
2710
  placeholder?: string;
2928
- catalog?: string;
2711
+ default_value?: string;
2712
+ options?: readonly string[];
2713
+ };
2714
+ }) | ({
2715
+ type: "Separator";
2716
+ } & {
2717
+ config?: {
2718
+ label?: string | null | undefined;
2719
+ };
2720
+ }) | ({
2721
+ type: "Text";
2722
+ } & {
2723
+ fieldset?: string | null | undefined;
2724
+ config?: {
2725
+ label?: string | null | undefined;
2726
+ useAsTitle?: boolean;
2727
+ placeholder?: string;
2728
+ };
2729
+ }) | ({
2730
+ type: "Timestamp";
2731
+ } & {
2732
+ fieldset?: string | null | undefined;
2733
+ config?: {
2734
+ label?: string | null | undefined;
2735
+ placeholder?: string;
2736
+ default?: string;
2929
2737
  };
2930
2738
  }) | ({
2931
2739
  type: "Link";
@@ -2939,533 +2747,156 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2939
2747
  customtypes?: readonly ({
2940
2748
  customTypeId: string;
2941
2749
  } & {
2942
- fields?: readonly ({
2943
- fieldId: string;
2944
- } & {
2945
- customTypes?: readonly {
2946
- customTypeId: string;
2947
- fields: readonly {
2948
- fieldId: string;
2949
- }[];
2950
- }[];
2951
- })[];
2750
+ fetchFields?: boolean;
2952
2751
  })[];
2953
2752
  masks?: readonly string[];
2954
2753
  tags?: readonly string[];
2955
2754
  allowTargetBlank?: boolean;
2956
2755
  };
2957
2756
  }) | ({
2958
- type: "Number";
2757
+ type: "Image";
2959
2758
  } & {
2960
2759
  fieldset?: string | null | undefined;
2961
2760
  config?: {
2962
2761
  label?: string | null | undefined;
2963
2762
  placeholder?: string;
2964
- min?: number;
2965
- max?: number;
2966
- step?: number;
2763
+ constraint?: {
2764
+ width?: number | null;
2765
+ height?: number | null;
2766
+ };
2767
+ thumbnails?: readonly ({
2768
+ name: string;
2769
+ } & {
2770
+ width?: number | null;
2771
+ height?: number | null;
2772
+ })[];
2967
2773
  };
2968
2774
  }) | ({
2969
- type: "Range";
2775
+ type: "IntegrationFields";
2970
2776
  } & {
2971
2777
  fieldset?: string | null | undefined;
2972
2778
  config?: {
2973
2779
  label?: string | null | undefined;
2974
2780
  placeholder?: string;
2975
- min?: number;
2976
- max?: number;
2977
- step?: number;
2781
+ catalog?: string;
2978
2782
  };
2979
- }) | ({
2980
- type: "StructuredText";
2783
+ });
2784
+ };
2785
+ items?: {
2786
+ [x: string]: ({
2787
+ type: "Color";
2981
2788
  } & {
2982
2789
  fieldset?: string | null | undefined;
2983
2790
  config?: {
2984
2791
  label?: string | null | undefined;
2985
2792
  placeholder?: string;
2986
- useAsTitle?: boolean;
2987
- single?: string;
2988
- multi?: string;
2989
- imageConstraint?: {
2990
- width?: number | null;
2991
- height?: number | null;
2992
- };
2993
- labels?: readonly string[];
2994
- allowTargetBlank?: boolean;
2995
2793
  };
2996
2794
  }) | ({
2997
- type: "Select";
2795
+ type: "Boolean";
2796
+ } & {
2797
+ config?: {
2798
+ label?: string | null | undefined;
2799
+ default_value?: boolean;
2800
+ placeholder_true?: string;
2801
+ placeholder_false?: string;
2802
+ };
2803
+ }) | ({
2804
+ type: "Embed";
2998
2805
  } & {
2999
2806
  fieldset?: string | null | undefined;
3000
2807
  config?: {
3001
2808
  label?: string | null | undefined;
3002
2809
  placeholder?: string;
3003
- default_value?: string;
3004
- options?: readonly string[];
2810
+ useAsTitle?: boolean;
3005
2811
  };
3006
2812
  }) | ({
3007
- type: "Separator";
2813
+ type: "GeoPoint";
3008
2814
  } & {
2815
+ fieldset?: string | null | undefined;
3009
2816
  config?: {
3010
2817
  label?: string | null | undefined;
3011
2818
  };
3012
2819
  }) | ({
3013
- type: "Text";
2820
+ type: "Date";
3014
2821
  } & {
3015
2822
  fieldset?: string | null | undefined;
3016
2823
  config?: {
3017
2824
  label?: string | null | undefined;
3018
- useAsTitle?: boolean;
3019
2825
  placeholder?: string;
2826
+ default?: string;
3020
2827
  };
3021
2828
  }) | ({
3022
- type: "Timestamp";
2829
+ type: "Number";
3023
2830
  } & {
3024
2831
  fieldset?: string | null | undefined;
3025
2832
  config?: {
3026
2833
  label?: string | null | undefined;
3027
2834
  placeholder?: string;
3028
- default?: string;
3029
- };
3030
- });
3031
- };
3032
- };
3033
- }) | ({
3034
- type: "Slice";
3035
- } & {
3036
- fieldset?: string | null | undefined;
3037
- description?: string;
3038
- icon?: string;
3039
- display?: string;
3040
- "non-repeat"?: {
3041
- [x: string]: ({
3042
- type: "Boolean";
3043
- } & {
3044
- config?: {
3045
- label?: string | null | undefined;
3046
- default_value?: boolean;
3047
- placeholder_true?: string;
3048
- placeholder_false?: string;
3049
- };
3050
- }) | ({
3051
- type: "Color";
3052
- } & {
3053
- fieldset?: string | null | undefined;
3054
- config?: {
3055
- label?: string | null | undefined;
3056
- placeholder?: string;
3057
- };
3058
- }) | ({
3059
- type: "Date";
3060
- } & {
3061
- fieldset?: string | null | undefined;
3062
- config?: {
3063
- label?: string | null | undefined;
3064
- placeholder?: string;
3065
- default?: string;
3066
- };
3067
- }) | ({
3068
- type: "Embed";
3069
- } & {
3070
- fieldset?: string | null | undefined;
3071
- config?: {
3072
- label?: string | null | undefined;
3073
- placeholder?: string;
3074
- useAsTitle?: boolean;
3075
- };
3076
- }) | ({
3077
- type: "GeoPoint";
3078
- } & {
3079
- fieldset?: string | null | undefined;
3080
- config?: {
3081
- label?: string | null | undefined;
3082
- };
3083
- }) | ({
3084
- type: "Image";
3085
- } & {
3086
- fieldset?: string | null | undefined;
3087
- config?: {
3088
- label?: string | null | undefined;
3089
- placeholder?: string;
3090
- constraint?: {
3091
- width?: number | null;
3092
- height?: number | null;
3093
- };
3094
- thumbnails?: readonly ({
3095
- name: string;
3096
- } & {
3097
- width?: number | null;
3098
- height?: number | null;
3099
- })[];
3100
- };
3101
- }) | ({
3102
- type: "IntegrationFields";
3103
- } & {
3104
- fieldset?: string | null | undefined;
3105
- config?: {
3106
- label?: string | null | undefined;
3107
- placeholder?: string;
3108
- catalog?: string;
3109
- };
3110
- }) | ({
3111
- type: "Link";
3112
- } & {
3113
- fieldset?: string | null | undefined;
3114
- config?: {
3115
- label?: string | null | undefined;
3116
- useAsTitle?: boolean;
3117
- placeholder?: string;
3118
- select?: "media" | "document" | "web" | null;
3119
- customtypes?: readonly ({
3120
- customTypeId: string;
3121
- } & {
3122
- fields?: readonly ({
3123
- fieldId: string;
3124
- } & {
3125
- customTypes?: readonly {
3126
- customTypeId: string;
3127
- fields: readonly {
3128
- fieldId: string;
3129
- }[];
3130
- }[];
3131
- })[];
3132
- })[];
3133
- masks?: readonly string[];
3134
- tags?: readonly string[];
3135
- allowTargetBlank?: boolean;
3136
- };
3137
- }) | ({
3138
- type: "Number";
3139
- } & {
3140
- fieldset?: string | null | undefined;
3141
- config?: {
3142
- label?: string | null | undefined;
3143
- placeholder?: string;
3144
- min?: number;
3145
- max?: number;
3146
- step?: number;
3147
- };
3148
- }) | ({
3149
- type: "Range";
3150
- } & {
3151
- fieldset?: string | null | undefined;
3152
- config?: {
3153
- label?: string | null | undefined;
3154
- placeholder?: string;
3155
- min?: number;
3156
- max?: number;
3157
- step?: number;
3158
- };
3159
- }) | ({
3160
- type: "StructuredText";
3161
- } & {
3162
- fieldset?: string | null | undefined;
3163
- config?: {
3164
- label?: string | null | undefined;
3165
- placeholder?: string;
3166
- useAsTitle?: boolean;
3167
- single?: string;
3168
- multi?: string;
3169
- imageConstraint?: {
3170
- width?: number | null;
3171
- height?: number | null;
3172
- };
3173
- labels?: readonly string[];
3174
- allowTargetBlank?: boolean;
3175
- };
3176
- }) | ({
3177
- type: "Select";
3178
- } & {
3179
- fieldset?: string | null | undefined;
3180
- config?: {
3181
- label?: string | null | undefined;
3182
- placeholder?: string;
3183
- default_value?: string;
3184
- options?: readonly string[];
3185
- };
3186
- }) | ({
3187
- type: "Separator";
3188
- } & {
3189
- config?: {
3190
- label?: string | null | undefined;
3191
- };
3192
- }) | ({
3193
- type: "Text";
3194
- } & {
3195
- fieldset?: string | null | undefined;
3196
- config?: {
3197
- label?: string | null | undefined;
3198
- useAsTitle?: boolean;
3199
- placeholder?: string;
3200
- };
3201
- }) | ({
3202
- type: "Timestamp";
3203
- } & {
3204
- fieldset?: string | null | undefined;
3205
- config?: {
3206
- label?: string | null | undefined;
3207
- placeholder?: string;
3208
- default?: string;
3209
- };
3210
- });
3211
- };
3212
- repeat?: {
3213
- [x: string]: ({
3214
- type: "Boolean";
3215
- } & {
3216
- config?: {
3217
- label?: string | null | undefined;
3218
- default_value?: boolean;
3219
- placeholder_true?: string;
3220
- placeholder_false?: string;
3221
- };
3222
- }) | ({
3223
- type: "Color";
3224
- } & {
3225
- fieldset?: string | null | undefined;
3226
- config?: {
3227
- label?: string | null | undefined;
3228
- placeholder?: string;
3229
- };
3230
- }) | ({
3231
- type: "Date";
3232
- } & {
3233
- fieldset?: string | null | undefined;
3234
- config?: {
3235
- label?: string | null | undefined;
3236
- placeholder?: string;
3237
- default?: string;
3238
- };
3239
- }) | ({
3240
- type: "Embed";
3241
- } & {
3242
- fieldset?: string | null | undefined;
3243
- config?: {
3244
- label?: string | null | undefined;
3245
- placeholder?: string;
3246
- useAsTitle?: boolean;
3247
- };
3248
- }) | ({
3249
- type: "GeoPoint";
3250
- } & {
3251
- fieldset?: string | null | undefined;
3252
- config?: {
3253
- label?: string | null | undefined;
3254
- };
3255
- }) | ({
3256
- type: "Image";
3257
- } & {
3258
- fieldset?: string | null | undefined;
3259
- config?: {
3260
- label?: string | null | undefined;
3261
- placeholder?: string;
3262
- constraint?: {
3263
- width?: number | null;
3264
- height?: number | null;
3265
- };
3266
- thumbnails?: readonly ({
3267
- name: string;
3268
- } & {
3269
- width?: number | null;
3270
- height?: number | null;
3271
- })[];
3272
- };
3273
- }) | ({
3274
- type: "IntegrationFields";
3275
- } & {
3276
- fieldset?: string | null | undefined;
3277
- config?: {
3278
- label?: string | null | undefined;
3279
- placeholder?: string;
3280
- catalog?: string;
3281
- };
3282
- }) | ({
3283
- type: "Link";
3284
- } & {
3285
- fieldset?: string | null | undefined;
3286
- config?: {
3287
- label?: string | null | undefined;
3288
- useAsTitle?: boolean;
3289
- placeholder?: string;
3290
- select?: "media" | "document" | "web" | null;
3291
- customtypes?: readonly ({
3292
- customTypeId: string;
3293
- } & {
3294
- fields?: readonly ({
3295
- fieldId: string;
3296
- } & {
3297
- customTypes?: readonly {
3298
- customTypeId: string;
3299
- fields: readonly {
3300
- fieldId: string;
3301
- }[];
3302
- }[];
3303
- })[];
3304
- })[];
3305
- masks?: readonly string[];
3306
- tags?: readonly string[];
3307
- allowTargetBlank?: boolean;
3308
- };
3309
- }) | ({
3310
- type: "Number";
3311
- } & {
3312
- fieldset?: string | null | undefined;
3313
- config?: {
3314
- label?: string | null | undefined;
3315
- placeholder?: string;
3316
- min?: number;
3317
- max?: number;
3318
- step?: number;
3319
- };
3320
- }) | ({
3321
- type: "Range";
3322
- } & {
3323
- fieldset?: string | null | undefined;
3324
- config?: {
3325
- label?: string | null | undefined;
3326
- placeholder?: string;
3327
- min?: number;
3328
- max?: number;
3329
- step?: number;
3330
- };
3331
- }) | ({
3332
- type: "StructuredText";
3333
- } & {
3334
- fieldset?: string | null | undefined;
3335
- config?: {
3336
- label?: string | null | undefined;
3337
- placeholder?: string;
3338
- useAsTitle?: boolean;
3339
- single?: string;
3340
- multi?: string;
3341
- imageConstraint?: {
3342
- width?: number | null;
3343
- height?: number | null;
3344
- };
3345
- labels?: readonly string[];
3346
- allowTargetBlank?: boolean;
3347
- };
3348
- }) | ({
3349
- type: "Select";
3350
- } & {
3351
- fieldset?: string | null | undefined;
3352
- config?: {
3353
- label?: string | null | undefined;
3354
- placeholder?: string;
3355
- default_value?: string;
3356
- options?: readonly string[];
3357
- };
3358
- }) | ({
3359
- type: "Separator";
3360
- } & {
3361
- config?: {
3362
- label?: string | null | undefined;
3363
- };
3364
- }) | ({
3365
- type: "Text";
3366
- } & {
3367
- fieldset?: string | null | undefined;
3368
- config?: {
3369
- label?: string | null | undefined;
3370
- useAsTitle?: boolean;
3371
- placeholder?: string;
3372
- };
3373
- }) | ({
3374
- type: "Timestamp";
3375
- } & {
3376
- fieldset?: string | null | undefined;
3377
- config?: {
3378
- label?: string | null | undefined;
3379
- placeholder?: string;
3380
- default?: string;
3381
- };
3382
- });
3383
- };
3384
- config?: {
3385
- label?: string | null | undefined;
3386
- };
3387
- }) | ({
3388
- id: string;
3389
- type: "SharedSlice";
3390
- name: string;
3391
- variations: readonly ({
3392
- id: string;
3393
- name: string;
3394
- description: string;
3395
- imageUrl: string;
3396
- docURL: string;
3397
- version: string;
3398
- } & {
3399
- display?: string;
3400
- primary?: {
3401
- [x: string]: ({
3402
- type: "Boolean";
3403
- } & {
3404
- config?: {
3405
- label?: string | null | undefined;
3406
- default_value?: boolean;
3407
- placeholder_true?: string;
3408
- placeholder_false?: string;
2835
+ min?: number;
2836
+ max?: number;
2837
+ step?: number;
3409
2838
  };
3410
2839
  }) | ({
3411
- type: "Color";
2840
+ type: "Range";
3412
2841
  } & {
3413
2842
  fieldset?: string | null | undefined;
3414
2843
  config?: {
3415
2844
  label?: string | null | undefined;
3416
2845
  placeholder?: string;
2846
+ min?: number;
2847
+ max?: number;
2848
+ step?: number;
3417
2849
  };
3418
2850
  }) | ({
3419
- type: "Date";
2851
+ type: "StructuredText";
3420
2852
  } & {
3421
2853
  fieldset?: string | null | undefined;
3422
2854
  config?: {
3423
2855
  label?: string | null | undefined;
3424
2856
  placeholder?: string;
3425
- default?: string;
2857
+ useAsTitle?: boolean;
2858
+ single?: string;
2859
+ multi?: string;
2860
+ imageConstraint?: {
2861
+ width?: number | null;
2862
+ height?: number | null;
2863
+ };
2864
+ labels?: readonly string[];
2865
+ allowTargetBlank?: boolean;
3426
2866
  };
3427
2867
  }) | ({
3428
- type: "Embed";
2868
+ type: "Select";
3429
2869
  } & {
3430
2870
  fieldset?: string | null | undefined;
3431
2871
  config?: {
3432
2872
  label?: string | null | undefined;
3433
2873
  placeholder?: string;
3434
- useAsTitle?: boolean;
2874
+ default_value?: string;
2875
+ options?: readonly string[];
3435
2876
  };
3436
2877
  }) | ({
3437
- type: "GeoPoint";
2878
+ type: "Separator";
3438
2879
  } & {
3439
- fieldset?: string | null | undefined;
3440
2880
  config?: {
3441
2881
  label?: string | null | undefined;
3442
2882
  };
3443
2883
  }) | ({
3444
- type: "Image";
2884
+ type: "Text";
3445
2885
  } & {
3446
2886
  fieldset?: string | null | undefined;
3447
2887
  config?: {
3448
2888
  label?: string | null | undefined;
2889
+ useAsTitle?: boolean;
3449
2890
  placeholder?: string;
3450
- constraint?: {
3451
- width?: number | null;
3452
- height?: number | null;
3453
- };
3454
- thumbnails?: readonly ({
3455
- name: string;
3456
- } & {
3457
- width?: number | null;
3458
- height?: number | null;
3459
- })[];
3460
2891
  };
3461
2892
  }) | ({
3462
- type: "IntegrationFields";
2893
+ type: "Timestamp";
3463
2894
  } & {
3464
2895
  fieldset?: string | null | undefined;
3465
2896
  config?: {
3466
2897
  label?: string | null | undefined;
3467
2898
  placeholder?: string;
3468
- catalog?: string;
2899
+ default?: string;
3469
2900
  };
3470
2901
  }) | ({
3471
2902
  type: "Link";
@@ -3479,87 +2910,89 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3479
2910
  customtypes?: readonly ({
3480
2911
  customTypeId: string;
3481
2912
  } & {
3482
- fields?: readonly ({
3483
- fieldId: string;
3484
- } & {
3485
- customTypes?: readonly {
3486
- customTypeId: string;
3487
- fields: readonly {
3488
- fieldId: string;
3489
- }[];
3490
- }[];
3491
- })[];
2913
+ fetchFields?: boolean;
3492
2914
  })[];
3493
2915
  masks?: readonly string[];
3494
2916
  tags?: readonly string[];
3495
2917
  allowTargetBlank?: boolean;
3496
2918
  };
3497
2919
  }) | ({
3498
- type: "Number";
2920
+ type: "Image";
3499
2921
  } & {
3500
2922
  fieldset?: string | null | undefined;
3501
2923
  config?: {
3502
2924
  label?: string | null | undefined;
3503
2925
  placeholder?: string;
3504
- min?: number;
3505
- max?: number;
3506
- step?: number;
2926
+ constraint?: {
2927
+ width?: number | null;
2928
+ height?: number | null;
2929
+ };
2930
+ thumbnails?: readonly ({
2931
+ name: string;
2932
+ } & {
2933
+ width?: number | null;
2934
+ height?: number | null;
2935
+ })[];
3507
2936
  };
3508
2937
  }) | ({
3509
- type: "Range";
2938
+ type: "IntegrationFields";
3510
2939
  } & {
3511
2940
  fieldset?: string | null | undefined;
3512
2941
  config?: {
3513
2942
  label?: string | null | undefined;
3514
2943
  placeholder?: string;
3515
- min?: number;
3516
- max?: number;
3517
- step?: number;
2944
+ catalog?: string;
3518
2945
  };
3519
- }) | ({
3520
- type: "StructuredText";
2946
+ });
2947
+ };
2948
+ })[];
2949
+ } & {
2950
+ description?: string;
2951
+ }) | ({
2952
+ type: "Group";
2953
+ } & {
2954
+ fieldset?: string | null | undefined;
2955
+ icon?: string;
2956
+ description?: string;
2957
+ config?: {
2958
+ label?: string | null | undefined;
2959
+ repeat?: boolean;
2960
+ fields?: {
2961
+ [x: string]: ({
2962
+ type: "Color";
3521
2963
  } & {
3522
2964
  fieldset?: string | null | undefined;
3523
2965
  config?: {
3524
2966
  label?: string | null | undefined;
3525
2967
  placeholder?: string;
3526
- useAsTitle?: boolean;
3527
- single?: string;
3528
- multi?: string;
3529
- imageConstraint?: {
3530
- width?: number | null;
3531
- height?: number | null;
3532
- };
3533
- labels?: readonly string[];
3534
- allowTargetBlank?: boolean;
3535
2968
  };
3536
2969
  }) | ({
3537
- type: "Select";
2970
+ type: "Boolean";
3538
2971
  } & {
3539
- fieldset?: string | null | undefined;
3540
2972
  config?: {
3541
2973
  label?: string | null | undefined;
3542
- placeholder?: string;
3543
- default_value?: string;
3544
- options?: readonly string[];
2974
+ default_value?: boolean;
2975
+ placeholder_true?: string;
2976
+ placeholder_false?: string;
3545
2977
  };
3546
2978
  }) | ({
3547
- type: "Separator";
2979
+ type: "Embed";
3548
2980
  } & {
2981
+ fieldset?: string | null | undefined;
3549
2982
  config?: {
3550
2983
  label?: string | null | undefined;
2984
+ placeholder?: string;
2985
+ useAsTitle?: boolean;
3551
2986
  };
3552
2987
  }) | ({
3553
- type: "Text";
2988
+ type: "GeoPoint";
3554
2989
  } & {
3555
2990
  fieldset?: string | null | undefined;
3556
2991
  config?: {
3557
2992
  label?: string | null | undefined;
3558
- useAsTitle?: boolean;
3559
- placeholder?: string;
3560
2993
  };
3561
2994
  }) | ({
3562
- type: "Timestamp";
2995
+ type: "Date";
3563
2996
  } & {
3564
2997
  fieldset?: string | null | undefined;
3565
2998
  config?: {
@@ -3567,77 +3000,78 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3567
3000
  placeholder?: string;
3568
3001
  default?: string;
3569
3002
  };
3570
- });
3571
- };
3572
- items?: {
3573
- [x: string]: ({
3574
- type: "Boolean";
3003
+ }) | ({
3004
+ type: "Number";
3575
3005
  } & {
3006
+ fieldset?: string | null | undefined;
3576
3007
  config?: {
3577
3008
  label?: string | null | undefined;
3578
- default_value?: boolean;
3579
- placeholder_true?: string;
3580
- placeholder_false?: string;
3009
+ placeholder?: string;
3010
+ min?: number;
3011
+ max?: number;
3012
+ step?: number;
3581
3013
  };
3582
3014
  }) | ({
3583
- type: "Color";
3015
+ type: "Range";
3584
3016
  } & {
3585
3017
  fieldset?: string | null | undefined;
3586
3018
  config?: {
3587
3019
  label?: string | null | undefined;
3588
3020
  placeholder?: string;
3021
+ min?: number;
3022
+ max?: number;
3023
+ step?: number;
3589
3024
  };
3590
3025
  }) | ({
3591
- type: "Date";
3026
+ type: "StructuredText";
3592
3027
  } & {
3593
3028
  fieldset?: string | null | undefined;
3594
3029
  config?: {
3595
3030
  label?: string | null | undefined;
3596
3031
  placeholder?: string;
3597
- default?: string;
3032
+ useAsTitle?: boolean;
3033
+ single?: string;
3034
+ multi?: string;
3035
+ imageConstraint?: {
3036
+ width?: number | null;
3037
+ height?: number | null;
3038
+ };
3039
+ labels?: readonly string[];
3040
+ allowTargetBlank?: boolean;
3598
3041
  };
3599
3042
  }) | ({
3600
- type: "Embed";
3043
+ type: "Select";
3601
3044
  } & {
3602
3045
  fieldset?: string | null | undefined;
3603
3046
  config?: {
3604
3047
  label?: string | null | undefined;
3605
3048
  placeholder?: string;
3606
- useAsTitle?: boolean;
3049
+ default_value?: string;
3050
+ options?: readonly string[];
3607
3051
  };
3608
3052
  }) | ({
3609
- type: "GeoPoint";
3053
+ type: "Separator";
3610
3054
  } & {
3611
- fieldset?: string | null | undefined;
3612
3055
  config?: {
3613
3056
  label?: string | null | undefined;
3614
3057
  };
3615
3058
  }) | ({
3616
- type: "Image";
3059
+ type: "Text";
3617
3060
  } & {
3618
3061
  fieldset?: string | null | undefined;
3619
3062
  config?: {
3620
3063
  label?: string | null | undefined;
3064
+ useAsTitle?: boolean;
3621
3065
  placeholder?: string;
3622
- constraint?: {
3623
- width?: number | null;
3624
- height?: number | null;
3625
- };
3626
- thumbnails?: readonly ({
3627
- name: string;
3628
- } & {
3629
- width?: number | null;
3630
- height?: number | null;
3631
- })[];
3632
3066
  };
3633
3067
  }) | ({
3634
- type: "IntegrationFields";
3068
+ type: "Timestamp";
3635
3069
  } & {
3636
3070
  fieldset?: string | null | undefined;
3637
3071
  config?: {
3638
3072
  label?: string | null | undefined;
3639
3073
  placeholder?: string;
3640
- catalog?: string;
3074
+ default?: string;
3641
3075
  };
3642
3076
  }) | ({
3643
3077
  type: "Link";
@@ -3651,99 +3085,378 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3651
3085
  customtypes?: readonly ({
3652
3086
  customTypeId: string;
3653
3087
  } & {
3654
- fields?: readonly ({
3655
- fieldId: string;
3656
- } & {
3657
- customTypes?: readonly {
3658
- customTypeId: string;
3659
- fields: readonly {
3660
- fieldId: string;
3661
- }[];
3662
- }[];
3663
- })[];
3088
+ fetchFields?: boolean;
3664
3089
  })[];
3665
3090
  masks?: readonly string[];
3666
3091
  tags?: readonly string[];
3667
3092
  allowTargetBlank?: boolean;
3668
3093
  };
3669
3094
  }) | ({
3670
- type: "Number";
3671
- } & {
3672
- fieldset?: string | null | undefined;
3673
- config?: {
3674
- label?: string | null | undefined;
3675
- placeholder?: string;
3676
- min?: number;
3677
- max?: number;
3678
- step?: number;
3679
- };
3680
- }) | ({
3681
- type: "Range";
3682
- } & {
3683
- fieldset?: string | null | undefined;
3684
- config?: {
3685
- label?: string | null | undefined;
3686
- placeholder?: string;
3687
- min?: number;
3688
- max?: number;
3689
- step?: number;
3690
- };
3691
- }) | ({
3692
- type: "StructuredText";
3095
+ type: "Image";
3693
3096
  } & {
3694
3097
  fieldset?: string | null | undefined;
3695
3098
  config?: {
3696
3099
  label?: string | null | undefined;
3697
3100
  placeholder?: string;
3698
- useAsTitle?: boolean;
3699
- single?: string;
3700
- multi?: string;
3701
- imageConstraint?: {
3101
+ constraint?: {
3702
3102
  width?: number | null;
3703
3103
  height?: number | null;
3704
3104
  };
3705
- labels?: readonly string[];
3706
- allowTargetBlank?: boolean;
3707
- };
3708
- }) | ({
3709
- type: "Select";
3710
- } & {
3711
- fieldset?: string | null | undefined;
3712
- config?: {
3713
- label?: string | null | undefined;
3714
- placeholder?: string;
3715
- default_value?: string;
3716
- options?: readonly string[];
3717
- };
3718
- }) | ({
3719
- type: "Separator";
3720
- } & {
3721
- config?: {
3722
- label?: string | null | undefined;
3105
+ thumbnails?: readonly ({
3106
+ name: string;
3107
+ } & {
3108
+ width?: number | null;
3109
+ height?: number | null;
3110
+ })[];
3723
3111
  };
3724
3112
  }) | ({
3725
- type: "Text";
3113
+ type: "IntegrationFields";
3726
3114
  } & {
3727
3115
  fieldset?: string | null | undefined;
3728
3116
  config?: {
3729
3117
  label?: string | null | undefined;
3730
- useAsTitle?: boolean;
3731
3118
  placeholder?: string;
3119
+ catalog?: string;
3120
+ };
3121
+ });
3122
+ };
3123
+ };
3124
+ }) | ({
3125
+ type: "Slice";
3126
+ } & {
3127
+ fieldset?: string | null | undefined;
3128
+ description?: string;
3129
+ icon?: string;
3130
+ display?: string;
3131
+ "non-repeat"?: {
3132
+ [x: string]: ({
3133
+ type: "Color";
3134
+ } & {
3135
+ fieldset?: string | null | undefined;
3136
+ config?: {
3137
+ label?: string | null | undefined;
3138
+ placeholder?: string;
3139
+ };
3140
+ }) | ({
3141
+ type: "Boolean";
3142
+ } & {
3143
+ config?: {
3144
+ label?: string | null | undefined;
3145
+ default_value?: boolean;
3146
+ placeholder_true?: string;
3147
+ placeholder_false?: string;
3148
+ };
3149
+ }) | ({
3150
+ type: "Embed";
3151
+ } & {
3152
+ fieldset?: string | null | undefined;
3153
+ config?: {
3154
+ label?: string | null | undefined;
3155
+ placeholder?: string;
3156
+ useAsTitle?: boolean;
3157
+ };
3158
+ }) | ({
3159
+ type: "GeoPoint";
3160
+ } & {
3161
+ fieldset?: string | null | undefined;
3162
+ config?: {
3163
+ label?: string | null | undefined;
3164
+ };
3165
+ }) | ({
3166
+ type: "Date";
3167
+ } & {
3168
+ fieldset?: string | null | undefined;
3169
+ config?: {
3170
+ label?: string | null | undefined;
3171
+ placeholder?: string;
3172
+ default?: string;
3173
+ };
3174
+ }) | ({
3175
+ type: "Number";
3176
+ } & {
3177
+ fieldset?: string | null | undefined;
3178
+ config?: {
3179
+ label?: string | null | undefined;
3180
+ placeholder?: string;
3181
+ min?: number;
3182
+ max?: number;
3183
+ step?: number;
3184
+ };
3185
+ }) | ({
3186
+ type: "Range";
3187
+ } & {
3188
+ fieldset?: string | null | undefined;
3189
+ config?: {
3190
+ label?: string | null | undefined;
3191
+ placeholder?: string;
3192
+ min?: number;
3193
+ max?: number;
3194
+ step?: number;
3195
+ };
3196
+ }) | ({
3197
+ type: "StructuredText";
3198
+ } & {
3199
+ fieldset?: string | null | undefined;
3200
+ config?: {
3201
+ label?: string | null | undefined;
3202
+ placeholder?: string;
3203
+ useAsTitle?: boolean;
3204
+ single?: string;
3205
+ multi?: string;
3206
+ imageConstraint?: {
3207
+ width?: number | null;
3208
+ height?: number | null;
3209
+ };
3210
+ labels?: readonly string[];
3211
+ allowTargetBlank?: boolean;
3212
+ };
3213
+ }) | ({
3214
+ type: "Select";
3215
+ } & {
3216
+ fieldset?: string | null | undefined;
3217
+ config?: {
3218
+ label?: string | null | undefined;
3219
+ placeholder?: string;
3220
+ default_value?: string;
3221
+ options?: readonly string[];
3222
+ };
3223
+ }) | ({
3224
+ type: "Separator";
3225
+ } & {
3226
+ config?: {
3227
+ label?: string | null | undefined;
3228
+ };
3229
+ }) | ({
3230
+ type: "Text";
3231
+ } & {
3232
+ fieldset?: string | null | undefined;
3233
+ config?: {
3234
+ label?: string | null | undefined;
3235
+ useAsTitle?: boolean;
3236
+ placeholder?: string;
3237
+ };
3238
+ }) | ({
3239
+ type: "Timestamp";
3240
+ } & {
3241
+ fieldset?: string | null | undefined;
3242
+ config?: {
3243
+ label?: string | null | undefined;
3244
+ placeholder?: string;
3245
+ default?: string;
3246
+ };
3247
+ }) | ({
3248
+ type: "Link";
3249
+ } & {
3250
+ fieldset?: string | null | undefined;
3251
+ config?: {
3252
+ label?: string | null | undefined;
3253
+ useAsTitle?: boolean;
3254
+ placeholder?: string;
3255
+ select?: "media" | "document" | "web" | null;
3256
+ customtypes?: readonly ({
3257
+ customTypeId: string;
3258
+ } & {
3259
+ fetchFields?: boolean;
3260
+ })[];
3261
+ masks?: readonly string[];
3262
+ tags?: readonly string[];
3263
+ allowTargetBlank?: boolean;
3264
+ };
3265
+ }) | ({
3266
+ type: "Image";
3267
+ } & {
3268
+ fieldset?: string | null | undefined;
3269
+ config?: {
3270
+ label?: string | null | undefined;
3271
+ placeholder?: string;
3272
+ constraint?: {
3273
+ width?: number | null;
3274
+ height?: number | null;
3275
+ };
3276
+ thumbnails?: readonly ({
3277
+ name: string;
3278
+ } & {
3279
+ width?: number | null;
3280
+ height?: number | null;
3281
+ })[];
3282
+ };
3283
+ }) | ({
3284
+ type: "IntegrationFields";
3285
+ } & {
3286
+ fieldset?: string | null | undefined;
3287
+ config?: {
3288
+ label?: string | null | undefined;
3289
+ placeholder?: string;
3290
+ catalog?: string;
3291
+ };
3292
+ });
3293
+ };
3294
+ repeat?: {
3295
+ [x: string]: ({
3296
+ type: "Color";
3297
+ } & {
3298
+ fieldset?: string | null | undefined;
3299
+ config?: {
3300
+ label?: string | null | undefined;
3301
+ placeholder?: string;
3302
+ };
3303
+ }) | ({
3304
+ type: "Boolean";
3305
+ } & {
3306
+ config?: {
3307
+ label?: string | null | undefined;
3308
+ default_value?: boolean;
3309
+ placeholder_true?: string;
3310
+ placeholder_false?: string;
3311
+ };
3312
+ }) | ({
3313
+ type: "Embed";
3314
+ } & {
3315
+ fieldset?: string | null | undefined;
3316
+ config?: {
3317
+ label?: string | null | undefined;
3318
+ placeholder?: string;
3319
+ useAsTitle?: boolean;
3320
+ };
3321
+ }) | ({
3322
+ type: "GeoPoint";
3323
+ } & {
3324
+ fieldset?: string | null | undefined;
3325
+ config?: {
3326
+ label?: string | null | undefined;
3327
+ };
3328
+ }) | ({
3329
+ type: "Date";
3330
+ } & {
3331
+ fieldset?: string | null | undefined;
3332
+ config?: {
3333
+ label?: string | null | undefined;
3334
+ placeholder?: string;
3335
+ default?: string;
3336
+ };
3337
+ }) | ({
3338
+ type: "Number";
3339
+ } & {
3340
+ fieldset?: string | null | undefined;
3341
+ config?: {
3342
+ label?: string | null | undefined;
3343
+ placeholder?: string;
3344
+ min?: number;
3345
+ max?: number;
3346
+ step?: number;
3347
+ };
3348
+ }) | ({
3349
+ type: "Range";
3350
+ } & {
3351
+ fieldset?: string | null | undefined;
3352
+ config?: {
3353
+ label?: string | null | undefined;
3354
+ placeholder?: string;
3355
+ min?: number;
3356
+ max?: number;
3357
+ step?: number;
3358
+ };
3359
+ }) | ({
3360
+ type: "StructuredText";
3361
+ } & {
3362
+ fieldset?: string | null | undefined;
3363
+ config?: {
3364
+ label?: string | null | undefined;
3365
+ placeholder?: string;
3366
+ useAsTitle?: boolean;
3367
+ single?: string;
3368
+ multi?: string;
3369
+ imageConstraint?: {
3370
+ width?: number | null;
3371
+ height?: number | null;
3732
3372
  };
3733
- }) | ({
3734
- type: "Timestamp";
3735
- } & {
3736
- fieldset?: string | null | undefined;
3737
- config?: {
3738
- label?: string | null | undefined;
3739
- placeholder?: string;
3740
- default?: string;
3373
+ labels?: readonly string[];
3374
+ allowTargetBlank?: boolean;
3375
+ };
3376
+ }) | ({
3377
+ type: "Select";
3378
+ } & {
3379
+ fieldset?: string | null | undefined;
3380
+ config?: {
3381
+ label?: string | null | undefined;
3382
+ placeholder?: string;
3383
+ default_value?: string;
3384
+ options?: readonly string[];
3385
+ };
3386
+ }) | ({
3387
+ type: "Separator";
3388
+ } & {
3389
+ config?: {
3390
+ label?: string | null | undefined;
3391
+ };
3392
+ }) | ({
3393
+ type: "Text";
3394
+ } & {
3395
+ fieldset?: string | null | undefined;
3396
+ config?: {
3397
+ label?: string | null | undefined;
3398
+ useAsTitle?: boolean;
3399
+ placeholder?: string;
3400
+ };
3401
+ }) | ({
3402
+ type: "Timestamp";
3403
+ } & {
3404
+ fieldset?: string | null | undefined;
3405
+ config?: {
3406
+ label?: string | null | undefined;
3407
+ placeholder?: string;
3408
+ default?: string;
3409
+ };
3410
+ }) | ({
3411
+ type: "Link";
3412
+ } & {
3413
+ fieldset?: string | null | undefined;
3414
+ config?: {
3415
+ label?: string | null | undefined;
3416
+ useAsTitle?: boolean;
3417
+ placeholder?: string;
3418
+ select?: "media" | "document" | "web" | null;
3419
+ customtypes?: readonly ({
3420
+ customTypeId: string;
3421
+ } & {
3422
+ fetchFields?: boolean;
3423
+ })[];
3424
+ masks?: readonly string[];
3425
+ tags?: readonly string[];
3426
+ allowTargetBlank?: boolean;
3427
+ };
3428
+ }) | ({
3429
+ type: "Image";
3430
+ } & {
3431
+ fieldset?: string | null | undefined;
3432
+ config?: {
3433
+ label?: string | null | undefined;
3434
+ placeholder?: string;
3435
+ constraint?: {
3436
+ width?: number | null;
3437
+ height?: number | null;
3741
3438
  };
3742
- });
3743
- };
3744
- })[];
3745
- } & {
3746
- description?: string;
3439
+ thumbnails?: readonly ({
3440
+ name: string;
3441
+ } & {
3442
+ width?: number | null;
3443
+ height?: number | null;
3444
+ })[];
3445
+ };
3446
+ }) | ({
3447
+ type: "IntegrationFields";
3448
+ } & {
3449
+ fieldset?: string | null | undefined;
3450
+ config?: {
3451
+ label?: string | null | undefined;
3452
+ placeholder?: string;
3453
+ catalog?: string;
3454
+ };
3455
+ });
3456
+ };
3457
+ config?: {
3458
+ label?: string | null | undefined;
3459
+ };
3747
3460
  });
3748
3461
  };
3749
3462
  }, unknown, unknown>;
@@ -3766,16 +3479,9 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3766
3479
  })[];
3767
3480
  } | null;
3768
3481
  choices?: {
3769
- [x: string]: ({
3770
- type: "Boolean";
3771
- } & {
3772
- config?: {
3773
- label?: string | null | undefined;
3774
- default_value?: boolean;
3775
- placeholder_true?: string;
3776
- placeholder_false?: string;
3777
- };
3778
- }) | ({
3482
+ [x: string]: {
3483
+ type: "SharedSlice";
3484
+ } | ({
3779
3485
  type: "Color";
3780
3486
  } & {
3781
3487
  fieldset?: string | null | undefined;
@@ -3784,13 +3490,13 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3784
3490
  placeholder?: string;
3785
3491
  };
3786
3492
  }) | ({
3787
- type: "Date";
3493
+ type: "Boolean";
3788
3494
  } & {
3789
- fieldset?: string | null | undefined;
3790
3495
  config?: {
3791
3496
  label?: string | null | undefined;
3792
- placeholder?: string;
3793
- default?: string;
3497
+ default_value?: boolean;
3498
+ placeholder_true?: string;
3499
+ placeholder_false?: string;
3794
3500
  };
3795
3501
  }) | ({
3796
3502
  type: "Embed";
@@ -3809,58 +3515,13 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3809
3515
  label?: string | null | undefined;
3810
3516
  };
3811
3517
  }) | ({
3812
- type: "Image";
3813
- } & {
3814
- fieldset?: string | null | undefined;
3815
- config?: {
3816
- label?: string | null | undefined;
3817
- placeholder?: string;
3818
- constraint?: {
3819
- width?: number | null;
3820
- height?: number | null;
3821
- };
3822
- thumbnails?: readonly ({
3823
- name: string;
3824
- } & {
3825
- width?: number | null;
3826
- height?: number | null;
3827
- })[];
3828
- };
3829
- }) | ({
3830
- type: "IntegrationFields";
3831
- } & {
3832
- fieldset?: string | null | undefined;
3833
- config?: {
3834
- label?: string | null | undefined;
3835
- placeholder?: string;
3836
- catalog?: string;
3837
- };
3838
- }) | ({
3839
- type: "Link";
3518
+ type: "Date";
3840
3519
  } & {
3841
3520
  fieldset?: string | null | undefined;
3842
3521
  config?: {
3843
3522
  label?: string | null | undefined;
3844
- useAsTitle?: boolean;
3845
3523
  placeholder?: string;
3846
- select?: "media" | "document" | "web" | null;
3847
- customtypes?: readonly ({
3848
- customTypeId: string;
3849
- } & {
3850
- fields?: readonly ({
3851
- fieldId: string;
3852
- } & {
3853
- customTypes?: readonly {
3854
- customTypeId: string;
3855
- fields: readonly {
3856
- fieldId: string;
3857
- }[];
3858
- }[];
3859
- })[];
3860
- })[];
3861
- masks?: readonly string[];
3862
- tags?: readonly string[];
3863
- allowTargetBlank?: boolean;
3524
+ default?: string;
3864
3525
  };
3865
3526
  }) | ({
3866
3527
  type: "Number";
@@ -3935,6 +3596,51 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3935
3596
  placeholder?: string;
3936
3597
  default?: string;
3937
3598
  };
3599
+ }) | ({
3600
+ type: "Link";
3601
+ } & {
3602
+ fieldset?: string | null | undefined;
3603
+ config?: {
3604
+ label?: string | null | undefined;
3605
+ useAsTitle?: boolean;
3606
+ placeholder?: string;
3607
+ select?: "media" | "document" | "web" | null;
3608
+ customtypes?: readonly ({
3609
+ customTypeId: string;
3610
+ } & {
3611
+ fetchFields?: boolean;
3612
+ })[];
3613
+ masks?: readonly string[];
3614
+ tags?: readonly string[];
3615
+ allowTargetBlank?: boolean;
3616
+ };
3617
+ }) | ({
3618
+ type: "Image";
3619
+ } & {
3620
+ fieldset?: string | null | undefined;
3621
+ config?: {
3622
+ label?: string | null | undefined;
3623
+ placeholder?: string;
3624
+ constraint?: {
3625
+ width?: number | null;
3626
+ height?: number | null;
3627
+ };
3628
+ thumbnails?: readonly ({
3629
+ name: string;
3630
+ } & {
3631
+ width?: number | null;
3632
+ height?: number | null;
3633
+ })[];
3634
+ };
3635
+ }) | ({
3636
+ type: "IntegrationFields";
3637
+ } & {
3638
+ fieldset?: string | null | undefined;
3639
+ config?: {
3640
+ label?: string | null | undefined;
3641
+ placeholder?: string;
3642
+ catalog?: string;
3643
+ };
3938
3644
  }) | ({
3939
3645
  type: "Group";
3940
3646
  } & {
@@ -3946,15 +3652,6 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3946
3652
  repeat?: boolean;
3947
3653
  fields?: {
3948
3654
  [x: string]: ({
3949
- type: "Boolean";
3950
- } & {
3951
- config?: {
3952
- label?: string | null | undefined;
3953
- default_value?: boolean;
3954
- placeholder_true?: string;
3955
- placeholder_false?: string;
3956
- };
3957
- }) | ({
3958
3655
  type: "Color";
3959
3656
  } & {
3960
3657
  fieldset?: string | null | undefined;
@@ -3963,83 +3660,38 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3963
3660
  placeholder?: string;
3964
3661
  };
3965
3662
  }) | ({
3966
- type: "Date";
3967
- } & {
3968
- fieldset?: string | null | undefined;
3969
- config?: {
3970
- label?: string | null | undefined;
3971
- placeholder?: string;
3972
- default?: string;
3973
- };
3974
- }) | ({
3975
- type: "Embed";
3976
- } & {
3977
- fieldset?: string | null | undefined;
3978
- config?: {
3979
- label?: string | null | undefined;
3980
- placeholder?: string;
3981
- useAsTitle?: boolean;
3982
- };
3983
- }) | ({
3984
- type: "GeoPoint";
3985
- } & {
3986
- fieldset?: string | null | undefined;
3987
- config?: {
3988
- label?: string | null | undefined;
3989
- };
3990
- }) | ({
3991
- type: "Image";
3663
+ type: "Boolean";
3992
3664
  } & {
3993
- fieldset?: string | null | undefined;
3994
3665
  config?: {
3995
3666
  label?: string | null | undefined;
3996
- placeholder?: string;
3997
- constraint?: {
3998
- width?: number | null;
3999
- height?: number | null;
4000
- };
4001
- thumbnails?: readonly ({
4002
- name: string;
4003
- } & {
4004
- width?: number | null;
4005
- height?: number | null;
4006
- })[];
3667
+ default_value?: boolean;
3668
+ placeholder_true?: string;
3669
+ placeholder_false?: string;
4007
3670
  };
4008
3671
  }) | ({
4009
- type: "IntegrationFields";
3672
+ type: "Embed";
4010
3673
  } & {
4011
3674
  fieldset?: string | null | undefined;
4012
3675
  config?: {
4013
3676
  label?: string | null | undefined;
4014
3677
  placeholder?: string;
4015
- catalog?: string;
3678
+ useAsTitle?: boolean;
4016
3679
  };
4017
3680
  }) | ({
4018
- type: "Link";
3681
+ type: "GeoPoint";
3682
+ } & {
3683
+ fieldset?: string | null | undefined;
3684
+ config?: {
3685
+ label?: string | null | undefined;
3686
+ };
3687
+ }) | ({
3688
+ type: "Date";
4019
3689
  } & {
4020
3690
  fieldset?: string | null | undefined;
4021
3691
  config?: {
4022
3692
  label?: string | null | undefined;
4023
- useAsTitle?: boolean;
4024
3693
  placeholder?: string;
4025
- select?: "media" | "document" | "web" | null;
4026
- customtypes?: readonly ({
4027
- customTypeId: string;
4028
- } & {
4029
- fields?: readonly ({
4030
- fieldId: string;
4031
- } & {
4032
- customTypes?: readonly {
4033
- customTypeId: string;
4034
- fields: readonly {
4035
- fieldId: string;
4036
- }[];
4037
- }[];
4038
- })[];
4039
- })[];
4040
- masks?: readonly string[];
4041
- tags?: readonly string[];
4042
- allowTargetBlank?: boolean;
3694
+ default?: string;
4043
3695
  };
4044
3696
  }) | ({
4045
3697
  type: "Number";
@@ -4114,6 +3766,51 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4114
3766
  placeholder?: string;
4115
3767
  default?: string;
4116
3768
  };
3769
+ }) | ({
3770
+ type: "Link";
3771
+ } & {
3772
+ fieldset?: string | null | undefined;
3773
+ config?: {
3774
+ label?: string | null | undefined;
3775
+ useAsTitle?: boolean;
3776
+ placeholder?: string;
3777
+ select?: "media" | "document" | "web" | null;
3778
+ customtypes?: readonly ({
3779
+ customTypeId: string;
3780
+ } & {
3781
+ fetchFields?: boolean;
3782
+ })[];
3783
+ masks?: readonly string[];
3784
+ tags?: readonly string[];
3785
+ allowTargetBlank?: boolean;
3786
+ };
3787
+ }) | ({
3788
+ type: "Image";
3789
+ } & {
3790
+ fieldset?: string | null | undefined;
3791
+ config?: {
3792
+ label?: string | null | undefined;
3793
+ placeholder?: string;
3794
+ constraint?: {
3795
+ width?: number | null;
3796
+ height?: number | null;
3797
+ };
3798
+ thumbnails?: readonly ({
3799
+ name: string;
3800
+ } & {
3801
+ width?: number | null;
3802
+ height?: number | null;
3803
+ })[];
3804
+ };
3805
+ }) | ({
3806
+ type: "IntegrationFields";
3807
+ } & {
3808
+ fieldset?: string | null | undefined;
3809
+ config?: {
3810
+ label?: string | null | undefined;
3811
+ placeholder?: string;
3812
+ catalog?: string;
3813
+ };
4117
3814
  });
4118
3815
  };
4119
3816
  };
@@ -4126,15 +3823,6 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4126
3823
  display?: string;
4127
3824
  "non-repeat"?: {
4128
3825
  [x: string]: ({
4129
- type: "Boolean";
4130
- } & {
4131
- config?: {
4132
- label?: string | null | undefined;
4133
- default_value?: boolean;
4134
- placeholder_true?: string;
4135
- placeholder_false?: string;
4136
- };
4137
- }) | ({
4138
3826
  type: "Color";
4139
3827
  } & {
4140
3828
  fieldset?: string | null | undefined;
@@ -4143,13 +3831,13 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4143
3831
  placeholder?: string;
4144
3832
  };
4145
3833
  }) | ({
4146
- type: "Date";
3834
+ type: "Boolean";
4147
3835
  } & {
4148
- fieldset?: string | null | undefined;
4149
3836
  config?: {
4150
3837
  label?: string | null | undefined;
4151
- placeholder?: string;
4152
- default?: string;
3838
+ default_value?: boolean;
3839
+ placeholder_true?: string;
3840
+ placeholder_false?: string;
4153
3841
  };
4154
3842
  }) | ({
4155
3843
  type: "Embed";
@@ -4168,58 +3856,13 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4168
3856
  label?: string | null | undefined;
4169
3857
  };
4170
3858
  }) | ({
4171
- type: "Image";
4172
- } & {
4173
- fieldset?: string | null | undefined;
4174
- config?: {
4175
- label?: string | null | undefined;
4176
- placeholder?: string;
4177
- constraint?: {
4178
- width?: number | null;
4179
- height?: number | null;
4180
- };
4181
- thumbnails?: readonly ({
4182
- name: string;
4183
- } & {
4184
- width?: number | null;
4185
- height?: number | null;
4186
- })[];
4187
- };
4188
- }) | ({
4189
- type: "IntegrationFields";
4190
- } & {
4191
- fieldset?: string | null | undefined;
4192
- config?: {
4193
- label?: string | null | undefined;
4194
- placeholder?: string;
4195
- catalog?: string;
4196
- };
4197
- }) | ({
4198
- type: "Link";
3859
+ type: "Date";
4199
3860
  } & {
4200
3861
  fieldset?: string | null | undefined;
4201
3862
  config?: {
4202
3863
  label?: string | null | undefined;
4203
- useAsTitle?: boolean;
4204
3864
  placeholder?: string;
4205
- select?: "media" | "document" | "web" | null;
4206
- customtypes?: readonly ({
4207
- customTypeId: string;
4208
- } & {
4209
- fields?: readonly ({
4210
- fieldId: string;
4211
- } & {
4212
- customTypes?: readonly {
4213
- customTypeId: string;
4214
- fields: readonly {
4215
- fieldId: string;
4216
- }[];
4217
- }[];
4218
- })[];
4219
- })[];
4220
- masks?: readonly string[];
4221
- tags?: readonly string[];
4222
- allowTargetBlank?: boolean;
3865
+ default?: string;
4223
3866
  };
4224
3867
  }) | ({
4225
3868
  type: "Number";
@@ -4294,104 +3937,95 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4294
3937
  placeholder?: string;
4295
3938
  default?: string;
4296
3939
  };
4297
- });
4298
- };
4299
- repeat?: {
4300
- [x: string]: ({
4301
- type: "Boolean";
3940
+ }) | ({
3941
+ type: "Link";
4302
3942
  } & {
3943
+ fieldset?: string | null | undefined;
4303
3944
  config?: {
4304
3945
  label?: string | null | undefined;
4305
- default_value?: boolean;
4306
- placeholder_true?: string;
4307
- placeholder_false?: string;
3946
+ useAsTitle?: boolean;
3947
+ placeholder?: string;
3948
+ select?: "media" | "document" | "web" | null;
3949
+ customtypes?: readonly ({
3950
+ customTypeId: string;
3951
+ } & {
3952
+ fetchFields?: boolean;
3953
+ })[];
3954
+ masks?: readonly string[];
3955
+ tags?: readonly string[];
3956
+ allowTargetBlank?: boolean;
4308
3957
  };
4309
3958
  }) | ({
4310
- type: "Color";
3959
+ type: "Image";
4311
3960
  } & {
4312
3961
  fieldset?: string | null | undefined;
4313
3962
  config?: {
4314
3963
  label?: string | null | undefined;
4315
3964
  placeholder?: string;
3965
+ constraint?: {
3966
+ width?: number | null;
3967
+ height?: number | null;
3968
+ };
3969
+ thumbnails?: readonly ({
3970
+ name: string;
3971
+ } & {
3972
+ width?: number | null;
3973
+ height?: number | null;
3974
+ })[];
4316
3975
  };
4317
3976
  }) | ({
4318
- type: "Date";
3977
+ type: "IntegrationFields";
4319
3978
  } & {
4320
3979
  fieldset?: string | null | undefined;
4321
3980
  config?: {
4322
3981
  label?: string | null | undefined;
4323
3982
  placeholder?: string;
4324
- default?: string;
3983
+ catalog?: string;
4325
3984
  };
4326
- }) | ({
4327
- type: "Embed";
3985
+ });
3986
+ };
3987
+ repeat?: {
3988
+ [x: string]: ({
3989
+ type: "Color";
4328
3990
  } & {
4329
3991
  fieldset?: string | null | undefined;
4330
3992
  config?: {
4331
3993
  label?: string | null | undefined;
4332
3994
  placeholder?: string;
4333
- useAsTitle?: boolean;
4334
3995
  };
4335
3996
  }) | ({
4336
- type: "GeoPoint";
3997
+ type: "Boolean";
4337
3998
  } & {
4338
- fieldset?: string | null | undefined;
4339
3999
  config?: {
4340
4000
  label?: string | null | undefined;
4001
+ default_value?: boolean;
4002
+ placeholder_true?: string;
4003
+ placeholder_false?: string;
4341
4004
  };
4342
4005
  }) | ({
4343
- type: "Image";
4006
+ type: "Embed";
4344
4007
  } & {
4345
4008
  fieldset?: string | null | undefined;
4346
4009
  config?: {
4347
4010
  label?: string | null | undefined;
4348
4011
  placeholder?: string;
4349
- constraint?: {
4350
- width?: number | null;
4351
- height?: number | null;
4352
- };
4353
- thumbnails?: readonly ({
4354
- name: string;
4355
- } & {
4356
- width?: number | null;
4357
- height?: number | null;
4358
- })[];
4012
+ useAsTitle?: boolean;
4359
4013
  };
4360
4014
  }) | ({
4361
- type: "IntegrationFields";
4015
+ type: "GeoPoint";
4362
4016
  } & {
4363
4017
  fieldset?: string | null | undefined;
4364
4018
  config?: {
4365
4019
  label?: string | null | undefined;
4366
- placeholder?: string;
4367
- catalog?: string;
4368
4020
  };
4369
4021
  }) | ({
4370
- type: "Link";
4022
+ type: "Date";
4371
4023
  } & {
4372
4024
  fieldset?: string | null | undefined;
4373
4025
  config?: {
4374
4026
  label?: string | null | undefined;
4375
- useAsTitle?: boolean;
4376
4027
  placeholder?: string;
4377
- select?: "media" | "document" | "web" | null;
4378
- customtypes?: readonly ({
4379
- customTypeId: string;
4380
- } & {
4381
- fields?: readonly ({
4382
- fieldId: string;
4383
- } & {
4384
- customTypes?: readonly {
4385
- customTypeId: string;
4386
- fields: readonly {
4387
- fieldId: string;
4388
- }[];
4389
- }[];
4390
- })[];
4391
- })[];
4392
- masks?: readonly string[];
4393
- tags?: readonly string[];
4394
- allowTargetBlank?: boolean;
4028
+ default?: string;
4395
4029
  };
4396
4030
  }) | ({
4397
4031
  type: "Number";
@@ -4466,14 +4100,57 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4466
4100
  placeholder?: string;
4467
4101
  default?: string;
4468
4102
  };
4103
+ }) | ({
4104
+ type: "Link";
4105
+ } & {
4106
+ fieldset?: string | null | undefined;
4107
+ config?: {
4108
+ label?: string | null | undefined;
4109
+ useAsTitle?: boolean;
4110
+ placeholder?: string;
4111
+ select?: "media" | "document" | "web" | null;
4112
+ customtypes?: readonly ({
4113
+ customTypeId: string;
4114
+ } & {
4115
+ fetchFields?: boolean;
4116
+ })[];
4117
+ masks?: readonly string[];
4118
+ tags?: readonly string[];
4119
+ allowTargetBlank?: boolean;
4120
+ };
4121
+ }) | ({
4122
+ type: "Image";
4123
+ } & {
4124
+ fieldset?: string | null | undefined;
4125
+ config?: {
4126
+ label?: string | null | undefined;
4127
+ placeholder?: string;
4128
+ constraint?: {
4129
+ width?: number | null;
4130
+ height?: number | null;
4131
+ };
4132
+ thumbnails?: readonly ({
4133
+ name: string;
4134
+ } & {
4135
+ width?: number | null;
4136
+ height?: number | null;
4137
+ })[];
4138
+ };
4139
+ }) | ({
4140
+ type: "IntegrationFields";
4141
+ } & {
4142
+ fieldset?: string | null | undefined;
4143
+ config?: {
4144
+ label?: string | null | undefined;
4145
+ placeholder?: string;
4146
+ catalog?: string;
4147
+ };
4469
4148
  });
4470
4149
  };
4471
4150
  config?: {
4472
4151
  label?: string | null | undefined;
4473
4152
  };
4474
- }) | {
4475
- type: "SharedSlice";
4476
- };
4153
+ });
4477
4154
  };
4478
4155
  }, unknown, unknown>;
4479
4156
  }>]>>;
@@ -4481,3 +4158,4 @@ export declare type DynamicSlices = t.TypeOf<typeof DynamicSlices>;
4481
4158
  export declare const Slices: {
4482
4159
  toStatic(slices: DynamicSlices, sharedSlices: Map<string, SharedSlice>): StaticSlices;
4483
4160
  };
4161
+ export declare function traverseSlices(path: ReadonlyArray<string>, slices: DynamicSlices, f: TraverseFn): DynamicSlices;