@prismicio/types-internal 3.9.0 → 3.10.0-alpha.1
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/_internal/utils.d.ts +6 -1
- package/lib/content/Document.d.ts +1 -1
- package/lib/customtypes/CustomType.d.ts +402 -162
- package/lib/customtypes/CustomType.js +16 -1
- package/lib/customtypes/Section.d.ts +403 -162
- package/lib/customtypes/Section.js +40 -1
- package/lib/customtypes/diff/SharedSlice.d.ts +168 -64
- package/lib/customtypes/diff/Variation.d.ts +168 -64
- package/lib/customtypes/widgets/Group.d.ts +258 -90
- package/lib/customtypes/widgets/Group.js +62 -1
- package/lib/customtypes/widgets/Widget.d.ts +621 -231
- package/lib/customtypes/widgets/nestable/Link.d.ts +82 -30
- package/lib/customtypes/widgets/nestable/Link.js +43 -19
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +41 -15
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +89 -30
- package/lib/customtypes/widgets/slices/CompositeSlice.js +26 -1
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +82 -30
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +341 -120
- package/lib/customtypes/widgets/slices/SharedSlice.js +59 -1
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +186 -69
- package/lib/customtypes/widgets/slices/Slices.d.ts +836 -308
- package/lib/customtypes/widgets/slices/Slices.js +61 -1
- package/package.json +1 -1
- package/src/_internal/utils.ts +4 -0
- package/src/customtypes/CustomType.ts +30 -1
- package/src/customtypes/Section.ts +53 -0
- package/src/customtypes/widgets/Group.ts +75 -0
- package/src/customtypes/widgets/nestable/Link.ts +85 -24
- package/src/customtypes/widgets/slices/CompositeSlice.ts +38 -0
- package/src/customtypes/widgets/slices/SharedSlice.ts +71 -0
- package/src/customtypes/widgets/slices/Slices.ts +69 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
+
import type { OnFieldFn } from "../_internal/utils";
|
|
3
|
+
import { Group, NestableWidget, NestedGroup, UID } from "./widgets";
|
|
2
4
|
import type { SharedSlice } from "./widgets/slices";
|
|
3
5
|
import { DynamicWidget, StaticWidget } from "./widgets/Widget";
|
|
4
6
|
export declare function sectionReader<T extends StaticWidget | DynamicWidget>(codec: t.Type<T, unknown>): t.RecordC<t.Type<string, string, unknown>, t.Type<T, unknown, unknown>>;
|
|
@@ -80,18 +82,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
80
82
|
useAsTitle?: boolean;
|
|
81
83
|
placeholder?: string;
|
|
82
84
|
select?: "media" | "document" | "web" | null;
|
|
83
|
-
customtypes?: readonly (string |
|
|
85
|
+
customtypes?: readonly (string | {
|
|
84
86
|
id: string;
|
|
85
|
-
|
|
86
|
-
fields?: readonly (string | {
|
|
87
|
+
fields: readonly (string | {
|
|
87
88
|
id: string;
|
|
88
|
-
customtypes: readonly (string |
|
|
89
|
+
customtypes: readonly (string | {
|
|
89
90
|
id: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
fields: readonly (string | {
|
|
92
|
+
id: string;
|
|
93
|
+
fields: readonly string[];
|
|
94
|
+
})[];
|
|
95
|
+
})[];
|
|
96
|
+
} | {
|
|
97
|
+
id: string;
|
|
98
|
+
fields: readonly (string | {
|
|
99
|
+
id: string;
|
|
100
|
+
customtypes: readonly (string | {
|
|
101
|
+
id: string;
|
|
102
|
+
fields: readonly (string | {
|
|
103
|
+
id: string;
|
|
104
|
+
fields: readonly string[];
|
|
105
|
+
})[];
|
|
106
|
+
})[];
|
|
107
|
+
})[];
|
|
93
108
|
})[];
|
|
94
|
-
})
|
|
109
|
+
})[];
|
|
95
110
|
masks?: readonly string[];
|
|
96
111
|
tags?: readonly string[];
|
|
97
112
|
allowTargetBlank?: boolean;
|
|
@@ -266,18 +281,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
266
281
|
useAsTitle?: boolean;
|
|
267
282
|
placeholder?: string;
|
|
268
283
|
select?: "media" | "document" | "web" | null;
|
|
269
|
-
customtypes?: readonly (string |
|
|
284
|
+
customtypes?: readonly (string | {
|
|
270
285
|
id: string;
|
|
271
|
-
|
|
272
|
-
fields?: readonly (string | {
|
|
286
|
+
fields: readonly (string | {
|
|
273
287
|
id: string;
|
|
274
|
-
customtypes: readonly (string |
|
|
288
|
+
customtypes: readonly (string | {
|
|
275
289
|
id: string;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
290
|
+
fields: readonly (string | {
|
|
291
|
+
id: string;
|
|
292
|
+
fields: readonly string[];
|
|
293
|
+
})[];
|
|
294
|
+
})[];
|
|
295
|
+
} | {
|
|
296
|
+
id: string;
|
|
297
|
+
fields: readonly (string | {
|
|
298
|
+
id: string;
|
|
299
|
+
customtypes: readonly (string | {
|
|
300
|
+
id: string;
|
|
301
|
+
fields: readonly (string | {
|
|
302
|
+
id: string;
|
|
303
|
+
fields: readonly string[];
|
|
304
|
+
})[];
|
|
305
|
+
})[];
|
|
306
|
+
})[];
|
|
279
307
|
})[];
|
|
280
|
-
})
|
|
308
|
+
})[];
|
|
281
309
|
masks?: readonly string[];
|
|
282
310
|
tags?: readonly string[];
|
|
283
311
|
allowTargetBlank?: boolean;
|
|
@@ -452,18 +480,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
452
480
|
useAsTitle?: boolean;
|
|
453
481
|
placeholder?: string;
|
|
454
482
|
select?: "media" | "document" | "web" | null;
|
|
455
|
-
customtypes?: readonly (string |
|
|
483
|
+
customtypes?: readonly (string | {
|
|
456
484
|
id: string;
|
|
457
|
-
|
|
458
|
-
|
|
485
|
+
fields: readonly (string | {
|
|
486
|
+
id: string;
|
|
487
|
+
customtypes: readonly (string | {
|
|
488
|
+
id: string;
|
|
489
|
+
fields: readonly (string | {
|
|
490
|
+
id: string;
|
|
491
|
+
fields: readonly string[];
|
|
492
|
+
})[];
|
|
493
|
+
})[];
|
|
494
|
+
} | {
|
|
459
495
|
id: string;
|
|
460
|
-
|
|
496
|
+
fields: readonly (string | {
|
|
461
497
|
id: string;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
498
|
+
customtypes: readonly (string | {
|
|
499
|
+
id: string;
|
|
500
|
+
fields: readonly (string | {
|
|
501
|
+
id: string;
|
|
502
|
+
fields: readonly string[];
|
|
503
|
+
})[];
|
|
504
|
+
})[];
|
|
505
|
+
})[];
|
|
465
506
|
})[];
|
|
466
|
-
})
|
|
507
|
+
})[];
|
|
467
508
|
masks?: readonly string[];
|
|
468
509
|
tags?: readonly string[];
|
|
469
510
|
allowTargetBlank?: boolean;
|
|
@@ -556,6 +597,15 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
556
597
|
});
|
|
557
598
|
};
|
|
558
599
|
};
|
|
600
|
+
}) | ({
|
|
601
|
+
type: "UID";
|
|
602
|
+
} & {
|
|
603
|
+
fieldset?: string | null | undefined;
|
|
604
|
+
config?: {
|
|
605
|
+
label?: string | null | undefined;
|
|
606
|
+
useAsTitle?: boolean;
|
|
607
|
+
placeholder?: string;
|
|
608
|
+
};
|
|
559
609
|
}) | ({
|
|
560
610
|
type: "Choice" | "Slices";
|
|
561
611
|
} & {
|
|
@@ -648,18 +698,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
648
698
|
useAsTitle?: boolean;
|
|
649
699
|
placeholder?: string;
|
|
650
700
|
select?: "media" | "document" | "web" | null;
|
|
651
|
-
customtypes?: readonly (string |
|
|
701
|
+
customtypes?: readonly (string | {
|
|
652
702
|
id: string;
|
|
653
|
-
|
|
654
|
-
fields?: readonly (string | {
|
|
703
|
+
fields: readonly (string | {
|
|
655
704
|
id: string;
|
|
656
|
-
customtypes: readonly (string |
|
|
705
|
+
customtypes: readonly (string | {
|
|
657
706
|
id: string;
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
707
|
+
fields: readonly (string | {
|
|
708
|
+
id: string;
|
|
709
|
+
fields: readonly string[];
|
|
710
|
+
})[];
|
|
711
|
+
})[];
|
|
712
|
+
} | {
|
|
713
|
+
id: string;
|
|
714
|
+
fields: readonly (string | {
|
|
715
|
+
id: string;
|
|
716
|
+
customtypes: readonly (string | {
|
|
717
|
+
id: string;
|
|
718
|
+
fields: readonly (string | {
|
|
719
|
+
id: string;
|
|
720
|
+
fields: readonly string[];
|
|
721
|
+
})[];
|
|
722
|
+
})[];
|
|
723
|
+
})[];
|
|
661
724
|
})[];
|
|
662
|
-
})
|
|
725
|
+
})[];
|
|
663
726
|
masks?: readonly string[];
|
|
664
727
|
tags?: readonly string[];
|
|
665
728
|
allowTargetBlank?: boolean;
|
|
@@ -834,18 +897,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
834
897
|
useAsTitle?: boolean;
|
|
835
898
|
placeholder?: string;
|
|
836
899
|
select?: "media" | "document" | "web" | null;
|
|
837
|
-
customtypes?: readonly (string |
|
|
900
|
+
customtypes?: readonly (string | {
|
|
838
901
|
id: string;
|
|
839
|
-
|
|
840
|
-
|
|
902
|
+
fields: readonly (string | {
|
|
903
|
+
id: string;
|
|
904
|
+
customtypes: readonly (string | {
|
|
905
|
+
id: string;
|
|
906
|
+
fields: readonly (string | {
|
|
907
|
+
id: string;
|
|
908
|
+
fields: readonly string[];
|
|
909
|
+
})[];
|
|
910
|
+
})[];
|
|
911
|
+
} | {
|
|
841
912
|
id: string;
|
|
842
|
-
|
|
913
|
+
fields: readonly (string | {
|
|
843
914
|
id: string;
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
915
|
+
customtypes: readonly (string | {
|
|
916
|
+
id: string;
|
|
917
|
+
fields: readonly (string | {
|
|
918
|
+
id: string;
|
|
919
|
+
fields: readonly string[];
|
|
920
|
+
})[];
|
|
921
|
+
})[];
|
|
922
|
+
})[];
|
|
847
923
|
})[];
|
|
848
|
-
})
|
|
924
|
+
})[];
|
|
849
925
|
masks?: readonly string[];
|
|
850
926
|
tags?: readonly string[];
|
|
851
927
|
allowTargetBlank?: boolean;
|
|
@@ -1021,18 +1097,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1021
1097
|
useAsTitle?: boolean;
|
|
1022
1098
|
placeholder?: string;
|
|
1023
1099
|
select?: "media" | "document" | "web" | null;
|
|
1024
|
-
customtypes?: readonly (string |
|
|
1100
|
+
customtypes?: readonly (string | {
|
|
1025
1101
|
id: string;
|
|
1026
|
-
|
|
1027
|
-
fields?: readonly (string | {
|
|
1102
|
+
fields: readonly (string | {
|
|
1028
1103
|
id: string;
|
|
1029
|
-
customtypes: readonly (string |
|
|
1104
|
+
customtypes: readonly (string | {
|
|
1030
1105
|
id: string;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1106
|
+
fields: readonly (string | {
|
|
1107
|
+
id: string;
|
|
1108
|
+
fields: readonly string[];
|
|
1109
|
+
})[];
|
|
1110
|
+
})[];
|
|
1111
|
+
} | {
|
|
1112
|
+
id: string;
|
|
1113
|
+
fields: readonly (string | {
|
|
1114
|
+
id: string;
|
|
1115
|
+
customtypes: readonly (string | {
|
|
1116
|
+
id: string;
|
|
1117
|
+
fields: readonly (string | {
|
|
1118
|
+
id: string;
|
|
1119
|
+
fields: readonly string[];
|
|
1120
|
+
})[];
|
|
1121
|
+
})[];
|
|
1122
|
+
})[];
|
|
1034
1123
|
})[];
|
|
1035
|
-
})
|
|
1124
|
+
})[];
|
|
1036
1125
|
masks?: readonly string[];
|
|
1037
1126
|
tags?: readonly string[];
|
|
1038
1127
|
allowTargetBlank?: boolean;
|
|
@@ -1200,18 +1289,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1200
1289
|
useAsTitle?: boolean;
|
|
1201
1290
|
placeholder?: string;
|
|
1202
1291
|
select?: "media" | "document" | "web" | null;
|
|
1203
|
-
customtypes?: readonly (string |
|
|
1292
|
+
customtypes?: readonly (string | {
|
|
1204
1293
|
id: string;
|
|
1205
|
-
|
|
1206
|
-
fields?: readonly (string | {
|
|
1294
|
+
fields: readonly (string | {
|
|
1207
1295
|
id: string;
|
|
1208
|
-
customtypes: readonly (string |
|
|
1296
|
+
customtypes: readonly (string | {
|
|
1209
1297
|
id: string;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1298
|
+
fields: readonly (string | {
|
|
1299
|
+
id: string;
|
|
1300
|
+
fields: readonly string[];
|
|
1301
|
+
})[];
|
|
1302
|
+
})[];
|
|
1303
|
+
} | {
|
|
1304
|
+
id: string;
|
|
1305
|
+
fields: readonly (string | {
|
|
1306
|
+
id: string;
|
|
1307
|
+
customtypes: readonly (string | {
|
|
1308
|
+
id: string;
|
|
1309
|
+
fields: readonly (string | {
|
|
1310
|
+
id: string;
|
|
1311
|
+
fields: readonly string[];
|
|
1312
|
+
})[];
|
|
1313
|
+
})[];
|
|
1314
|
+
})[];
|
|
1213
1315
|
})[];
|
|
1214
|
-
})
|
|
1316
|
+
})[];
|
|
1215
1317
|
masks?: readonly string[];
|
|
1216
1318
|
tags?: readonly string[];
|
|
1217
1319
|
allowTargetBlank?: boolean;
|
|
@@ -1395,18 +1497,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1395
1497
|
useAsTitle?: boolean;
|
|
1396
1498
|
placeholder?: string;
|
|
1397
1499
|
select?: "media" | "document" | "web" | null;
|
|
1398
|
-
customtypes?: readonly (string |
|
|
1500
|
+
customtypes?: readonly (string | {
|
|
1399
1501
|
id: string;
|
|
1400
|
-
|
|
1401
|
-
|
|
1502
|
+
fields: readonly (string | {
|
|
1503
|
+
id: string;
|
|
1504
|
+
customtypes: readonly (string | {
|
|
1505
|
+
id: string;
|
|
1506
|
+
fields: readonly (string | {
|
|
1507
|
+
id: string;
|
|
1508
|
+
fields: readonly string[];
|
|
1509
|
+
})[];
|
|
1510
|
+
})[];
|
|
1511
|
+
} | {
|
|
1402
1512
|
id: string;
|
|
1403
|
-
|
|
1513
|
+
fields: readonly (string | {
|
|
1404
1514
|
id: string;
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1515
|
+
customtypes: readonly (string | {
|
|
1516
|
+
id: string;
|
|
1517
|
+
fields: readonly (string | {
|
|
1518
|
+
id: string;
|
|
1519
|
+
fields: readonly string[];
|
|
1520
|
+
})[];
|
|
1521
|
+
})[];
|
|
1522
|
+
})[];
|
|
1408
1523
|
})[];
|
|
1409
|
-
})
|
|
1524
|
+
})[];
|
|
1410
1525
|
masks?: readonly string[];
|
|
1411
1526
|
tags?: readonly string[];
|
|
1412
1527
|
allowTargetBlank?: boolean;
|
|
@@ -1581,18 +1696,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1581
1696
|
useAsTitle?: boolean;
|
|
1582
1697
|
placeholder?: string;
|
|
1583
1698
|
select?: "media" | "document" | "web" | null;
|
|
1584
|
-
customtypes?: readonly (string |
|
|
1699
|
+
customtypes?: readonly (string | {
|
|
1585
1700
|
id: string;
|
|
1586
|
-
|
|
1587
|
-
fields?: readonly (string | {
|
|
1701
|
+
fields: readonly (string | {
|
|
1588
1702
|
id: string;
|
|
1589
|
-
customtypes: readonly (string |
|
|
1703
|
+
customtypes: readonly (string | {
|
|
1590
1704
|
id: string;
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1705
|
+
fields: readonly (string | {
|
|
1706
|
+
id: string;
|
|
1707
|
+
fields: readonly string[];
|
|
1708
|
+
})[];
|
|
1709
|
+
})[];
|
|
1710
|
+
} | {
|
|
1711
|
+
id: string;
|
|
1712
|
+
fields: readonly (string | {
|
|
1713
|
+
id: string;
|
|
1714
|
+
customtypes: readonly (string | {
|
|
1715
|
+
id: string;
|
|
1716
|
+
fields: readonly (string | {
|
|
1717
|
+
id: string;
|
|
1718
|
+
fields: readonly string[];
|
|
1719
|
+
})[];
|
|
1720
|
+
})[];
|
|
1721
|
+
})[];
|
|
1594
1722
|
})[];
|
|
1595
|
-
})
|
|
1723
|
+
})[];
|
|
1596
1724
|
masks?: readonly string[];
|
|
1597
1725
|
tags?: readonly string[];
|
|
1598
1726
|
allowTargetBlank?: boolean;
|
|
@@ -1767,18 +1895,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1767
1895
|
useAsTitle?: boolean;
|
|
1768
1896
|
placeholder?: string;
|
|
1769
1897
|
select?: "media" | "document" | "web" | null;
|
|
1770
|
-
customtypes?: readonly (string |
|
|
1898
|
+
customtypes?: readonly (string | {
|
|
1771
1899
|
id: string;
|
|
1772
|
-
|
|
1773
|
-
|
|
1900
|
+
fields: readonly (string | {
|
|
1901
|
+
id: string;
|
|
1902
|
+
customtypes: readonly (string | {
|
|
1903
|
+
id: string;
|
|
1904
|
+
fields: readonly (string | {
|
|
1905
|
+
id: string;
|
|
1906
|
+
fields: readonly string[];
|
|
1907
|
+
})[];
|
|
1908
|
+
})[];
|
|
1909
|
+
} | {
|
|
1774
1910
|
id: string;
|
|
1775
|
-
|
|
1911
|
+
fields: readonly (string | {
|
|
1776
1912
|
id: string;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1913
|
+
customtypes: readonly (string | {
|
|
1914
|
+
id: string;
|
|
1915
|
+
fields: readonly (string | {
|
|
1916
|
+
id: string;
|
|
1917
|
+
fields: readonly string[];
|
|
1918
|
+
})[];
|
|
1919
|
+
})[];
|
|
1920
|
+
})[];
|
|
1780
1921
|
})[];
|
|
1781
|
-
})
|
|
1922
|
+
})[];
|
|
1782
1923
|
masks?: readonly string[];
|
|
1783
1924
|
tags?: readonly string[];
|
|
1784
1925
|
allowTargetBlank?: boolean;
|
|
@@ -1952,18 +2093,31 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1952
2093
|
useAsTitle?: boolean;
|
|
1953
2094
|
placeholder?: string;
|
|
1954
2095
|
select?: "media" | "document" | "web" | null;
|
|
1955
|
-
customtypes?: readonly (string |
|
|
2096
|
+
customtypes?: readonly (string | {
|
|
1956
2097
|
id: string;
|
|
1957
|
-
|
|
1958
|
-
|
|
2098
|
+
fields: readonly (string | {
|
|
2099
|
+
id: string;
|
|
2100
|
+
customtypes: readonly (string | {
|
|
2101
|
+
id: string;
|
|
2102
|
+
fields: readonly (string | {
|
|
2103
|
+
id: string;
|
|
2104
|
+
fields: readonly string[];
|
|
2105
|
+
})[];
|
|
2106
|
+
})[];
|
|
2107
|
+
} | {
|
|
1959
2108
|
id: string;
|
|
1960
|
-
|
|
2109
|
+
fields: readonly (string | {
|
|
1961
2110
|
id: string;
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
2111
|
+
customtypes: readonly (string | {
|
|
2112
|
+
id: string;
|
|
2113
|
+
fields: readonly (string | {
|
|
2114
|
+
id: string;
|
|
2115
|
+
fields: readonly string[];
|
|
2116
|
+
})[];
|
|
2117
|
+
})[];
|
|
2118
|
+
})[];
|
|
1965
2119
|
})[];
|
|
1966
|
-
})
|
|
2120
|
+
})[];
|
|
1967
2121
|
masks?: readonly string[];
|
|
1968
2122
|
tags?: readonly string[];
|
|
1969
2123
|
allowTargetBlank?: boolean;
|
|
@@ -2061,15 +2215,6 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
2061
2215
|
});
|
|
2062
2216
|
};
|
|
2063
2217
|
};
|
|
2064
|
-
}) | ({
|
|
2065
|
-
type: "UID";
|
|
2066
|
-
} & {
|
|
2067
|
-
fieldset?: string | null | undefined;
|
|
2068
|
-
config?: {
|
|
2069
|
-
label?: string | null | undefined;
|
|
2070
|
-
useAsTitle?: boolean;
|
|
2071
|
-
placeholder?: string;
|
|
2072
|
-
};
|
|
2073
2218
|
}), unknown, unknown>>;
|
|
2074
2219
|
export declare type StaticSection = t.TypeOf<typeof StaticSection>;
|
|
2075
2220
|
export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>, t.Type<({
|
|
@@ -2150,18 +2295,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2150
2295
|
useAsTitle?: boolean;
|
|
2151
2296
|
placeholder?: string;
|
|
2152
2297
|
select?: "media" | "document" | "web" | null;
|
|
2153
|
-
customtypes?: readonly (string |
|
|
2298
|
+
customtypes?: readonly (string | {
|
|
2154
2299
|
id: string;
|
|
2155
|
-
|
|
2156
|
-
fields?: readonly (string | {
|
|
2300
|
+
fields: readonly (string | {
|
|
2157
2301
|
id: string;
|
|
2158
|
-
customtypes: readonly (string |
|
|
2302
|
+
customtypes: readonly (string | {
|
|
2159
2303
|
id: string;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2304
|
+
fields: readonly (string | {
|
|
2305
|
+
id: string;
|
|
2306
|
+
fields: readonly string[];
|
|
2307
|
+
})[];
|
|
2308
|
+
})[];
|
|
2309
|
+
} | {
|
|
2310
|
+
id: string;
|
|
2311
|
+
fields: readonly (string | {
|
|
2312
|
+
id: string;
|
|
2313
|
+
customtypes: readonly (string | {
|
|
2314
|
+
id: string;
|
|
2315
|
+
fields: readonly (string | {
|
|
2316
|
+
id: string;
|
|
2317
|
+
fields: readonly string[];
|
|
2318
|
+
})[];
|
|
2319
|
+
})[];
|
|
2320
|
+
})[];
|
|
2163
2321
|
})[];
|
|
2164
|
-
})
|
|
2322
|
+
})[];
|
|
2165
2323
|
masks?: readonly string[];
|
|
2166
2324
|
tags?: readonly string[];
|
|
2167
2325
|
allowTargetBlank?: boolean;
|
|
@@ -2336,18 +2494,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2336
2494
|
useAsTitle?: boolean;
|
|
2337
2495
|
placeholder?: string;
|
|
2338
2496
|
select?: "media" | "document" | "web" | null;
|
|
2339
|
-
customtypes?: readonly (string |
|
|
2497
|
+
customtypes?: readonly (string | {
|
|
2340
2498
|
id: string;
|
|
2341
|
-
|
|
2342
|
-
fields?: readonly (string | {
|
|
2499
|
+
fields: readonly (string | {
|
|
2343
2500
|
id: string;
|
|
2344
|
-
customtypes: readonly (string |
|
|
2501
|
+
customtypes: readonly (string | {
|
|
2345
2502
|
id: string;
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2503
|
+
fields: readonly (string | {
|
|
2504
|
+
id: string;
|
|
2505
|
+
fields: readonly string[];
|
|
2506
|
+
})[];
|
|
2507
|
+
})[];
|
|
2508
|
+
} | {
|
|
2509
|
+
id: string;
|
|
2510
|
+
fields: readonly (string | {
|
|
2511
|
+
id: string;
|
|
2512
|
+
customtypes: readonly (string | {
|
|
2513
|
+
id: string;
|
|
2514
|
+
fields: readonly (string | {
|
|
2515
|
+
id: string;
|
|
2516
|
+
fields: readonly string[];
|
|
2517
|
+
})[];
|
|
2518
|
+
})[];
|
|
2519
|
+
})[];
|
|
2349
2520
|
})[];
|
|
2350
|
-
})
|
|
2521
|
+
})[];
|
|
2351
2522
|
masks?: readonly string[];
|
|
2352
2523
|
tags?: readonly string[];
|
|
2353
2524
|
allowTargetBlank?: boolean;
|
|
@@ -2522,18 +2693,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2522
2693
|
useAsTitle?: boolean;
|
|
2523
2694
|
placeholder?: string;
|
|
2524
2695
|
select?: "media" | "document" | "web" | null;
|
|
2525
|
-
customtypes?: readonly (string |
|
|
2696
|
+
customtypes?: readonly (string | {
|
|
2526
2697
|
id: string;
|
|
2527
|
-
|
|
2528
|
-
fields?: readonly (string | {
|
|
2698
|
+
fields: readonly (string | {
|
|
2529
2699
|
id: string;
|
|
2530
|
-
customtypes: readonly (string |
|
|
2700
|
+
customtypes: readonly (string | {
|
|
2531
2701
|
id: string;
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2702
|
+
fields: readonly (string | {
|
|
2703
|
+
id: string;
|
|
2704
|
+
fields: readonly string[];
|
|
2705
|
+
})[];
|
|
2706
|
+
})[];
|
|
2707
|
+
} | {
|
|
2708
|
+
id: string;
|
|
2709
|
+
fields: readonly (string | {
|
|
2710
|
+
id: string;
|
|
2711
|
+
customtypes: readonly (string | {
|
|
2712
|
+
id: string;
|
|
2713
|
+
fields: readonly (string | {
|
|
2714
|
+
id: string;
|
|
2715
|
+
fields: readonly string[];
|
|
2716
|
+
})[];
|
|
2717
|
+
})[];
|
|
2718
|
+
})[];
|
|
2535
2719
|
})[];
|
|
2536
|
-
})
|
|
2720
|
+
})[];
|
|
2537
2721
|
masks?: readonly string[];
|
|
2538
2722
|
tags?: readonly string[];
|
|
2539
2723
|
allowTargetBlank?: boolean;
|
|
@@ -2626,6 +2810,15 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2626
2810
|
});
|
|
2627
2811
|
};
|
|
2628
2812
|
};
|
|
2813
|
+
}) | ({
|
|
2814
|
+
type: "UID";
|
|
2815
|
+
} & {
|
|
2816
|
+
fieldset?: string | null | undefined;
|
|
2817
|
+
config?: {
|
|
2818
|
+
label?: string | null | undefined;
|
|
2819
|
+
useAsTitle?: boolean;
|
|
2820
|
+
placeholder?: string;
|
|
2821
|
+
};
|
|
2629
2822
|
}) | ({
|
|
2630
2823
|
type: "Choice" | "Slices";
|
|
2631
2824
|
} & {
|
|
@@ -2718,18 +2911,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2718
2911
|
useAsTitle?: boolean;
|
|
2719
2912
|
placeholder?: string;
|
|
2720
2913
|
select?: "media" | "document" | "web" | null;
|
|
2721
|
-
customtypes?: readonly (string |
|
|
2914
|
+
customtypes?: readonly (string | {
|
|
2722
2915
|
id: string;
|
|
2723
|
-
|
|
2724
|
-
fields?: readonly (string | {
|
|
2916
|
+
fields: readonly (string | {
|
|
2725
2917
|
id: string;
|
|
2726
|
-
customtypes: readonly (string |
|
|
2918
|
+
customtypes: readonly (string | {
|
|
2727
2919
|
id: string;
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2920
|
+
fields: readonly (string | {
|
|
2921
|
+
id: string;
|
|
2922
|
+
fields: readonly string[];
|
|
2923
|
+
})[];
|
|
2924
|
+
})[];
|
|
2925
|
+
} | {
|
|
2926
|
+
id: string;
|
|
2927
|
+
fields: readonly (string | {
|
|
2928
|
+
id: string;
|
|
2929
|
+
customtypes: readonly (string | {
|
|
2930
|
+
id: string;
|
|
2931
|
+
fields: readonly (string | {
|
|
2932
|
+
id: string;
|
|
2933
|
+
fields: readonly string[];
|
|
2934
|
+
})[];
|
|
2935
|
+
})[];
|
|
2936
|
+
})[];
|
|
2731
2937
|
})[];
|
|
2732
|
-
})
|
|
2938
|
+
})[];
|
|
2733
2939
|
masks?: readonly string[];
|
|
2734
2940
|
tags?: readonly string[];
|
|
2735
2941
|
allowTargetBlank?: boolean;
|
|
@@ -2904,18 +3110,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
2904
3110
|
useAsTitle?: boolean;
|
|
2905
3111
|
placeholder?: string;
|
|
2906
3112
|
select?: "media" | "document" | "web" | null;
|
|
2907
|
-
customtypes?: readonly (string |
|
|
3113
|
+
customtypes?: readonly (string | {
|
|
2908
3114
|
id: string;
|
|
2909
|
-
|
|
2910
|
-
|
|
3115
|
+
fields: readonly (string | {
|
|
3116
|
+
id: string;
|
|
3117
|
+
customtypes: readonly (string | {
|
|
3118
|
+
id: string;
|
|
3119
|
+
fields: readonly (string | {
|
|
3120
|
+
id: string;
|
|
3121
|
+
fields: readonly string[];
|
|
3122
|
+
})[];
|
|
3123
|
+
})[];
|
|
3124
|
+
} | {
|
|
2911
3125
|
id: string;
|
|
2912
|
-
|
|
3126
|
+
fields: readonly (string | {
|
|
2913
3127
|
id: string;
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
3128
|
+
customtypes: readonly (string | {
|
|
3129
|
+
id: string;
|
|
3130
|
+
fields: readonly (string | {
|
|
3131
|
+
id: string;
|
|
3132
|
+
fields: readonly string[];
|
|
3133
|
+
})[];
|
|
3134
|
+
})[];
|
|
3135
|
+
})[];
|
|
2917
3136
|
})[];
|
|
2918
|
-
})
|
|
3137
|
+
})[];
|
|
2919
3138
|
masks?: readonly string[];
|
|
2920
3139
|
tags?: readonly string[];
|
|
2921
3140
|
allowTargetBlank?: boolean;
|
|
@@ -3091,18 +3310,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
3091
3310
|
useAsTitle?: boolean;
|
|
3092
3311
|
placeholder?: string;
|
|
3093
3312
|
select?: "media" | "document" | "web" | null;
|
|
3094
|
-
customtypes?: readonly (string |
|
|
3313
|
+
customtypes?: readonly (string | {
|
|
3095
3314
|
id: string;
|
|
3096
|
-
|
|
3097
|
-
fields?: readonly (string | {
|
|
3315
|
+
fields: readonly (string | {
|
|
3098
3316
|
id: string;
|
|
3099
|
-
customtypes: readonly (string |
|
|
3317
|
+
customtypes: readonly (string | {
|
|
3100
3318
|
id: string;
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3319
|
+
fields: readonly (string | {
|
|
3320
|
+
id: string;
|
|
3321
|
+
fields: readonly string[];
|
|
3322
|
+
})[];
|
|
3323
|
+
})[];
|
|
3324
|
+
} | {
|
|
3325
|
+
id: string;
|
|
3326
|
+
fields: readonly (string | {
|
|
3327
|
+
id: string;
|
|
3328
|
+
customtypes: readonly (string | {
|
|
3329
|
+
id: string;
|
|
3330
|
+
fields: readonly (string | {
|
|
3331
|
+
id: string;
|
|
3332
|
+
fields: readonly string[];
|
|
3333
|
+
})[];
|
|
3334
|
+
})[];
|
|
3335
|
+
})[];
|
|
3104
3336
|
})[];
|
|
3105
|
-
})
|
|
3337
|
+
})[];
|
|
3106
3338
|
masks?: readonly string[];
|
|
3107
3339
|
tags?: readonly string[];
|
|
3108
3340
|
allowTargetBlank?: boolean;
|
|
@@ -3270,18 +3502,31 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
3270
3502
|
useAsTitle?: boolean;
|
|
3271
3503
|
placeholder?: string;
|
|
3272
3504
|
select?: "media" | "document" | "web" | null;
|
|
3273
|
-
customtypes?: readonly (string |
|
|
3505
|
+
customtypes?: readonly (string | {
|
|
3274
3506
|
id: string;
|
|
3275
|
-
|
|
3276
|
-
fields?: readonly (string | {
|
|
3507
|
+
fields: readonly (string | {
|
|
3277
3508
|
id: string;
|
|
3278
|
-
customtypes: readonly (string |
|
|
3509
|
+
customtypes: readonly (string | {
|
|
3279
3510
|
id: string;
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3511
|
+
fields: readonly (string | {
|
|
3512
|
+
id: string;
|
|
3513
|
+
fields: readonly string[];
|
|
3514
|
+
})[];
|
|
3515
|
+
})[];
|
|
3516
|
+
} | {
|
|
3517
|
+
id: string;
|
|
3518
|
+
fields: readonly (string | {
|
|
3519
|
+
id: string;
|
|
3520
|
+
customtypes: readonly (string | {
|
|
3521
|
+
id: string;
|
|
3522
|
+
fields: readonly (string | {
|
|
3523
|
+
id: string;
|
|
3524
|
+
fields: readonly string[];
|
|
3525
|
+
})[];
|
|
3526
|
+
})[];
|
|
3527
|
+
})[];
|
|
3283
3528
|
})[];
|
|
3284
|
-
})
|
|
3529
|
+
})[];
|
|
3285
3530
|
masks?: readonly string[];
|
|
3286
3531
|
tags?: readonly string[];
|
|
3287
3532
|
allowTargetBlank?: boolean;
|
|
@@ -3378,17 +3623,13 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
3378
3623
|
};
|
|
3379
3624
|
};
|
|
3380
3625
|
};
|
|
3381
|
-
}) | ({
|
|
3382
|
-
type: "UID";
|
|
3383
|
-
} & {
|
|
3384
|
-
fieldset?: string | null | undefined;
|
|
3385
|
-
config?: {
|
|
3386
|
-
label?: string | null | undefined;
|
|
3387
|
-
useAsTitle?: boolean;
|
|
3388
|
-
placeholder?: string;
|
|
3389
|
-
};
|
|
3390
3626
|
}), unknown, unknown>>;
|
|
3391
3627
|
export declare type DynamicSection = t.TypeOf<typeof DynamicSection>;
|
|
3392
3628
|
export declare const Sections: {
|
|
3393
3629
|
toStatic(dynamic: DynamicSection, sharedSlices: Map<string, SharedSlice>): StaticSection;
|
|
3394
3630
|
};
|
|
3631
|
+
export declare function traverseSection<T extends DynamicSection | StaticSection>(args: {
|
|
3632
|
+
path: ReadonlyArray<string>;
|
|
3633
|
+
section: T;
|
|
3634
|
+
onField: OnFieldFn<UID | NestableWidget | Group | NestedGroup>;
|
|
3635
|
+
}): T;
|