@prismicio/types-internal 4.7.0 → 4.8.0-pr.33.be0224f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/codec/group.js +3 -2
- package/dist/content/codec/group.js.map +1 -1
- package/dist/content/codec/legacyContentCtx.d.ts.map +1 -1
- package/dist/content/codec/legacyContentCtx.js +5 -1
- package/dist/content/codec/legacyContentCtx.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +2 -2
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/helpers/documentContent.d.ts +4 -3
- package/dist/helpers/documentContent.d.ts.map +1 -1
- package/dist/helpers/documentContent.js +12 -15
- package/dist/helpers/documentContent.js.map +1 -1
- package/dist/helpers/sliceContent.d.ts +4 -2
- package/dist/helpers/sliceContent.d.ts.map +1 -1
- package/dist/helpers/sliceContent.js +11 -2
- package/dist/helpers/sliceContent.js.map +1 -1
- package/dist/helpers/traverseContent.d.ts +2 -2
- package/dist/helpers/traverseContent.d.ts.map +1 -1
- package/dist/helpers/traverseContent.js +6 -3
- package/dist/helpers/traverseContent.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/io-ts.d.ts +187 -137
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +5 -3
- package/dist/io-ts.js.map +1 -1
- package/dist/model/customType.d.ts +5 -1
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js.map +1 -1
- package/dist/model/group.d.ts +32 -32
- package/dist/model/link.d.ts +27 -1
- package/dist/model/link.d.ts.map +1 -1
- package/dist/model/link.js +3 -3
- package/dist/model/link.js.map +1 -1
- package/dist/model/table.d.ts +3 -2
- package/dist/model/table.d.ts.map +1 -1
- package/dist/zod4.d.ts +48 -1
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +5 -3
- package/dist/zod4.js.map +1 -1
- package/package.json +4 -1
- package/src/content/codec/group.ts +1 -1
- package/src/content/codec/legacyContentCtx.ts +7 -1
- package/src/helpers/customTypeModel.ts +3 -2
- package/src/helpers/documentContent.ts +21 -28
- package/src/helpers/sliceContent.ts +16 -0
- package/src/helpers/traverseContent.ts +8 -5
- package/src/index.ts +9 -3
- package/src/io-ts.ts +7 -1
- package/src/model/customType.ts +5 -0
- package/src/model/link.ts +4 -2
- package/src/zod4.ts +7 -1
package/dist/io-ts.d.ts
CHANGED
|
@@ -198,14 +198,6 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
198
198
|
__TYPE__: "SharedSliceContent";
|
|
199
199
|
variation: string;
|
|
200
200
|
primary: Record<string, {
|
|
201
|
-
type: string;
|
|
202
|
-
__TYPE__: "EmptyContent";
|
|
203
|
-
} | {
|
|
204
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
205
|
-
value: string;
|
|
206
|
-
} | {
|
|
207
|
-
__TYPE__: "SeparatorContent";
|
|
208
|
-
} | {
|
|
209
201
|
type: "Text";
|
|
210
202
|
value: string;
|
|
211
203
|
__TYPE__: "FieldContent";
|
|
@@ -233,6 +225,12 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
233
225
|
type: "Select";
|
|
234
226
|
value: string;
|
|
235
227
|
__TYPE__: "FieldContent";
|
|
228
|
+
} | {
|
|
229
|
+
type: string;
|
|
230
|
+
__TYPE__: "EmptyContent";
|
|
231
|
+
} | {
|
|
232
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
233
|
+
value: string;
|
|
236
234
|
} | {
|
|
237
235
|
__TYPE__: "BooleanContent";
|
|
238
236
|
value: boolean;
|
|
@@ -323,6 +321,8 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
323
321
|
} | {
|
|
324
322
|
__TYPE__: "StructuredTextContent";
|
|
325
323
|
value: RichTextContentBlock[];
|
|
324
|
+
} | {
|
|
325
|
+
__TYPE__: "SeparatorContent";
|
|
326
326
|
} | {
|
|
327
327
|
__TYPE__: "TableContent";
|
|
328
328
|
content: {
|
|
@@ -347,14 +347,6 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
347
347
|
__TYPE__: "SharedSliceContent";
|
|
348
348
|
variation: string;
|
|
349
349
|
primary: Record<string, {
|
|
350
|
-
type: string;
|
|
351
|
-
__TYPE__: "EmptyContent";
|
|
352
|
-
} | {
|
|
353
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
354
|
-
value: string;
|
|
355
|
-
} | {
|
|
356
|
-
__TYPE__: "SeparatorContent";
|
|
357
|
-
} | {
|
|
358
350
|
type: "Text";
|
|
359
351
|
value: string;
|
|
360
352
|
__TYPE__: "FieldContent";
|
|
@@ -382,6 +374,12 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
382
374
|
type: "Select";
|
|
383
375
|
value: string;
|
|
384
376
|
__TYPE__: "FieldContent";
|
|
377
|
+
} | {
|
|
378
|
+
type: string;
|
|
379
|
+
__TYPE__: "EmptyContent";
|
|
380
|
+
} | {
|
|
381
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
382
|
+
value: string;
|
|
385
383
|
} | {
|
|
386
384
|
__TYPE__: "BooleanContent";
|
|
387
385
|
value: boolean;
|
|
@@ -472,6 +470,8 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
472
470
|
} | {
|
|
473
471
|
__TYPE__: "StructuredTextContent";
|
|
474
472
|
value: RichTextContentBlock[];
|
|
473
|
+
} | {
|
|
474
|
+
__TYPE__: "SeparatorContent";
|
|
475
475
|
} | {
|
|
476
476
|
__TYPE__: "TableContent";
|
|
477
477
|
content: {
|
|
@@ -811,14 +811,6 @@ declare const RepeatableContentSchema: t.Type<{
|
|
|
811
811
|
}[];
|
|
812
812
|
}, unknown>;
|
|
813
813
|
declare const NestableContentSchema: t.Type<{
|
|
814
|
-
type: string;
|
|
815
|
-
__TYPE__: "EmptyContent";
|
|
816
|
-
} | {
|
|
817
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
818
|
-
value: string;
|
|
819
|
-
} | {
|
|
820
|
-
__TYPE__: "SeparatorContent";
|
|
821
|
-
} | {
|
|
822
814
|
type: "Text";
|
|
823
815
|
value: string;
|
|
824
816
|
__TYPE__: "FieldContent";
|
|
@@ -846,6 +838,12 @@ declare const NestableContentSchema: t.Type<{
|
|
|
846
838
|
type: "Select";
|
|
847
839
|
value: string;
|
|
848
840
|
__TYPE__: "FieldContent";
|
|
841
|
+
} | {
|
|
842
|
+
type: string;
|
|
843
|
+
__TYPE__: "EmptyContent";
|
|
844
|
+
} | {
|
|
845
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
846
|
+
value: string;
|
|
849
847
|
} | {
|
|
850
848
|
__TYPE__: "BooleanContent";
|
|
851
849
|
value: boolean;
|
|
@@ -936,6 +934,8 @@ declare const NestableContentSchema: t.Type<{
|
|
|
936
934
|
} | {
|
|
937
935
|
__TYPE__: "StructuredTextContent";
|
|
938
936
|
value: RichTextContentBlock[];
|
|
937
|
+
} | {
|
|
938
|
+
__TYPE__: "SeparatorContent";
|
|
939
939
|
} | {
|
|
940
940
|
__TYPE__: "TableContent";
|
|
941
941
|
content: {
|
|
@@ -952,14 +952,6 @@ declare const NestableContentSchema: t.Type<{
|
|
|
952
952
|
}[];
|
|
953
953
|
}[];
|
|
954
954
|
}, {
|
|
955
|
-
type: string;
|
|
956
|
-
__TYPE__: "EmptyContent";
|
|
957
|
-
} | {
|
|
958
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
959
|
-
value: string;
|
|
960
|
-
} | {
|
|
961
|
-
__TYPE__: "SeparatorContent";
|
|
962
|
-
} | {
|
|
963
955
|
type: "Text";
|
|
964
956
|
value: string;
|
|
965
957
|
__TYPE__: "FieldContent";
|
|
@@ -987,6 +979,12 @@ declare const NestableContentSchema: t.Type<{
|
|
|
987
979
|
type: "Select";
|
|
988
980
|
value: string;
|
|
989
981
|
__TYPE__: "FieldContent";
|
|
982
|
+
} | {
|
|
983
|
+
type: string;
|
|
984
|
+
__TYPE__: "EmptyContent";
|
|
985
|
+
} | {
|
|
986
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
987
|
+
value: string;
|
|
990
988
|
} | {
|
|
991
989
|
__TYPE__: "BooleanContent";
|
|
992
990
|
value: boolean;
|
|
@@ -1077,6 +1075,8 @@ declare const NestableContentSchema: t.Type<{
|
|
|
1077
1075
|
} | {
|
|
1078
1076
|
__TYPE__: "StructuredTextContent";
|
|
1079
1077
|
value: RichTextContentBlock[];
|
|
1078
|
+
} | {
|
|
1079
|
+
__TYPE__: "SeparatorContent";
|
|
1080
1080
|
} | {
|
|
1081
1081
|
__TYPE__: "TableContent";
|
|
1082
1082
|
content: {
|
|
@@ -1104,14 +1104,6 @@ declare const GroupItemContentSchema: t.Type<GroupItemContent, GroupItemContent,
|
|
|
1104
1104
|
declare const CompositeSliceContentSchema: t.Type<{
|
|
1105
1105
|
__TYPE__: "CompositeSliceContent";
|
|
1106
1106
|
nonRepeat: Record<string, {
|
|
1107
|
-
type: string;
|
|
1108
|
-
__TYPE__: "EmptyContent";
|
|
1109
|
-
} | {
|
|
1110
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1111
|
-
value: string;
|
|
1112
|
-
} | {
|
|
1113
|
-
__TYPE__: "SeparatorContent";
|
|
1114
|
-
} | {
|
|
1115
1107
|
type: "Text";
|
|
1116
1108
|
value: string;
|
|
1117
1109
|
__TYPE__: "FieldContent";
|
|
@@ -1139,6 +1131,12 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1139
1131
|
type: "Select";
|
|
1140
1132
|
value: string;
|
|
1141
1133
|
__TYPE__: "FieldContent";
|
|
1134
|
+
} | {
|
|
1135
|
+
type: string;
|
|
1136
|
+
__TYPE__: "EmptyContent";
|
|
1137
|
+
} | {
|
|
1138
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1139
|
+
value: string;
|
|
1142
1140
|
} | {
|
|
1143
1141
|
__TYPE__: "BooleanContent";
|
|
1144
1142
|
value: boolean;
|
|
@@ -1229,6 +1227,8 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1229
1227
|
} | {
|
|
1230
1228
|
__TYPE__: "StructuredTextContent";
|
|
1231
1229
|
value: RichTextContentBlock[];
|
|
1230
|
+
} | {
|
|
1231
|
+
__TYPE__: "SeparatorContent";
|
|
1232
1232
|
} | {
|
|
1233
1233
|
__TYPE__: "TableContent";
|
|
1234
1234
|
content: {
|
|
@@ -1249,14 +1249,6 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1249
1249
|
}, {
|
|
1250
1250
|
__TYPE__: "CompositeSliceContent";
|
|
1251
1251
|
nonRepeat: Record<string, {
|
|
1252
|
-
type: string;
|
|
1253
|
-
__TYPE__: "EmptyContent";
|
|
1254
|
-
} | {
|
|
1255
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1256
|
-
value: string;
|
|
1257
|
-
} | {
|
|
1258
|
-
__TYPE__: "SeparatorContent";
|
|
1259
|
-
} | {
|
|
1260
1252
|
type: "Text";
|
|
1261
1253
|
value: string;
|
|
1262
1254
|
__TYPE__: "FieldContent";
|
|
@@ -1284,6 +1276,12 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1284
1276
|
type: "Select";
|
|
1285
1277
|
value: string;
|
|
1286
1278
|
__TYPE__: "FieldContent";
|
|
1279
|
+
} | {
|
|
1280
|
+
type: string;
|
|
1281
|
+
__TYPE__: "EmptyContent";
|
|
1282
|
+
} | {
|
|
1283
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1284
|
+
value: string;
|
|
1287
1285
|
} | {
|
|
1288
1286
|
__TYPE__: "BooleanContent";
|
|
1289
1287
|
value: boolean;
|
|
@@ -1374,6 +1372,8 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1374
1372
|
} | {
|
|
1375
1373
|
__TYPE__: "StructuredTextContent";
|
|
1376
1374
|
value: RichTextContentBlock[];
|
|
1375
|
+
} | {
|
|
1376
|
+
__TYPE__: "SeparatorContent";
|
|
1377
1377
|
} | {
|
|
1378
1378
|
__TYPE__: "TableContent";
|
|
1379
1379
|
content: {
|
|
@@ -1393,14 +1393,6 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1393
1393
|
repeat: GroupItemContent[];
|
|
1394
1394
|
}, unknown>;
|
|
1395
1395
|
declare const LegacySliceContentSchema: t.Type<{
|
|
1396
|
-
type: string;
|
|
1397
|
-
__TYPE__: "EmptyContent";
|
|
1398
|
-
} | {
|
|
1399
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1400
|
-
value: string;
|
|
1401
|
-
} | {
|
|
1402
|
-
__TYPE__: "SeparatorContent";
|
|
1403
|
-
} | {
|
|
1404
1396
|
type: "Text";
|
|
1405
1397
|
value: string;
|
|
1406
1398
|
__TYPE__: "FieldContent";
|
|
@@ -1428,6 +1420,12 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1428
1420
|
type: "Select";
|
|
1429
1421
|
value: string;
|
|
1430
1422
|
__TYPE__: "FieldContent";
|
|
1423
|
+
} | {
|
|
1424
|
+
type: string;
|
|
1425
|
+
__TYPE__: "EmptyContent";
|
|
1426
|
+
} | {
|
|
1427
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1428
|
+
value: string;
|
|
1431
1429
|
} | {
|
|
1432
1430
|
__TYPE__: "BooleanContent";
|
|
1433
1431
|
value: boolean;
|
|
@@ -1518,6 +1516,8 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1518
1516
|
} | {
|
|
1519
1517
|
__TYPE__: "StructuredTextContent";
|
|
1520
1518
|
value: RichTextContentBlock[];
|
|
1519
|
+
} | {
|
|
1520
|
+
__TYPE__: "SeparatorContent";
|
|
1521
1521
|
} | {
|
|
1522
1522
|
__TYPE__: "TableContent";
|
|
1523
1523
|
content: {
|
|
@@ -1537,14 +1537,6 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1537
1537
|
__TYPE__: "GroupContentType";
|
|
1538
1538
|
value: GroupItemContent[];
|
|
1539
1539
|
}, {
|
|
1540
|
-
type: string;
|
|
1541
|
-
__TYPE__: "EmptyContent";
|
|
1542
|
-
} | {
|
|
1543
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1544
|
-
value: string;
|
|
1545
|
-
} | {
|
|
1546
|
-
__TYPE__: "SeparatorContent";
|
|
1547
|
-
} | {
|
|
1548
1540
|
type: "Text";
|
|
1549
1541
|
value: string;
|
|
1550
1542
|
__TYPE__: "FieldContent";
|
|
@@ -1572,6 +1564,12 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1572
1564
|
type: "Select";
|
|
1573
1565
|
value: string;
|
|
1574
1566
|
__TYPE__: "FieldContent";
|
|
1567
|
+
} | {
|
|
1568
|
+
type: string;
|
|
1569
|
+
__TYPE__: "EmptyContent";
|
|
1570
|
+
} | {
|
|
1571
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1572
|
+
value: string;
|
|
1575
1573
|
} | {
|
|
1576
1574
|
__TYPE__: "BooleanContent";
|
|
1577
1575
|
value: boolean;
|
|
@@ -1662,6 +1660,8 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1662
1660
|
} | {
|
|
1663
1661
|
__TYPE__: "StructuredTextContent";
|
|
1664
1662
|
value: RichTextContentBlock[];
|
|
1663
|
+
} | {
|
|
1664
|
+
__TYPE__: "SeparatorContent";
|
|
1665
1665
|
} | {
|
|
1666
1666
|
__TYPE__: "TableContent";
|
|
1667
1667
|
content: {
|
|
@@ -1687,14 +1687,6 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1687
1687
|
name: string;
|
|
1688
1688
|
maybeLabel?: string | undefined;
|
|
1689
1689
|
widget: {
|
|
1690
|
-
type: string;
|
|
1691
|
-
__TYPE__: "EmptyContent";
|
|
1692
|
-
} | {
|
|
1693
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1694
|
-
value: string;
|
|
1695
|
-
} | {
|
|
1696
|
-
__TYPE__: "SeparatorContent";
|
|
1697
|
-
} | {
|
|
1698
1690
|
type: "Text";
|
|
1699
1691
|
value: string;
|
|
1700
1692
|
__TYPE__: "FieldContent";
|
|
@@ -1722,6 +1714,12 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1722
1714
|
type: "Select";
|
|
1723
1715
|
value: string;
|
|
1724
1716
|
__TYPE__: "FieldContent";
|
|
1717
|
+
} | {
|
|
1718
|
+
type: string;
|
|
1719
|
+
__TYPE__: "EmptyContent";
|
|
1720
|
+
} | {
|
|
1721
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1722
|
+
value: string;
|
|
1725
1723
|
} | {
|
|
1726
1724
|
__TYPE__: "BooleanContent";
|
|
1727
1725
|
value: boolean;
|
|
@@ -1812,6 +1810,8 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1812
1810
|
} | {
|
|
1813
1811
|
__TYPE__: "StructuredTextContent";
|
|
1814
1812
|
value: RichTextContentBlock[];
|
|
1813
|
+
} | {
|
|
1814
|
+
__TYPE__: "SeparatorContent";
|
|
1815
1815
|
} | {
|
|
1816
1816
|
__TYPE__: "TableContent";
|
|
1817
1817
|
content: {
|
|
@@ -1836,14 +1836,6 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1836
1836
|
name: string;
|
|
1837
1837
|
maybeLabel?: string | undefined;
|
|
1838
1838
|
widget: {
|
|
1839
|
-
type: string;
|
|
1840
|
-
__TYPE__: "EmptyContent";
|
|
1841
|
-
} | {
|
|
1842
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1843
|
-
value: string;
|
|
1844
|
-
} | {
|
|
1845
|
-
__TYPE__: "SeparatorContent";
|
|
1846
|
-
} | {
|
|
1847
1839
|
type: "Text";
|
|
1848
1840
|
value: string;
|
|
1849
1841
|
__TYPE__: "FieldContent";
|
|
@@ -1871,6 +1863,12 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1871
1863
|
type: "Select";
|
|
1872
1864
|
value: string;
|
|
1873
1865
|
__TYPE__: "FieldContent";
|
|
1866
|
+
} | {
|
|
1867
|
+
type: string;
|
|
1868
|
+
__TYPE__: "EmptyContent";
|
|
1869
|
+
} | {
|
|
1870
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
1871
|
+
value: string;
|
|
1874
1872
|
} | {
|
|
1875
1873
|
__TYPE__: "BooleanContent";
|
|
1876
1874
|
value: boolean;
|
|
@@ -1961,6 +1959,8 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1961
1959
|
} | {
|
|
1962
1960
|
__TYPE__: "StructuredTextContent";
|
|
1963
1961
|
value: RichTextContentBlock[];
|
|
1962
|
+
} | {
|
|
1963
|
+
__TYPE__: "SeparatorContent";
|
|
1964
1964
|
} | {
|
|
1965
1965
|
__TYPE__: "TableContent";
|
|
1966
1966
|
content: {
|
|
@@ -1988,14 +1988,6 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
1988
1988
|
widget: {
|
|
1989
1989
|
__TYPE__: "CompositeSliceContent";
|
|
1990
1990
|
nonRepeat: Record<string, {
|
|
1991
|
-
type: string;
|
|
1992
|
-
__TYPE__: "EmptyContent";
|
|
1993
|
-
} | {
|
|
1994
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
1995
|
-
value: string;
|
|
1996
|
-
} | {
|
|
1997
|
-
__TYPE__: "SeparatorContent";
|
|
1998
|
-
} | {
|
|
1999
1991
|
type: "Text";
|
|
2000
1992
|
value: string;
|
|
2001
1993
|
__TYPE__: "FieldContent";
|
|
@@ -2023,6 +2015,12 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2023
2015
|
type: "Select";
|
|
2024
2016
|
value: string;
|
|
2025
2017
|
__TYPE__: "FieldContent";
|
|
2018
|
+
} | {
|
|
2019
|
+
type: string;
|
|
2020
|
+
__TYPE__: "EmptyContent";
|
|
2021
|
+
} | {
|
|
2022
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
2023
|
+
value: string;
|
|
2026
2024
|
} | {
|
|
2027
2025
|
__TYPE__: "BooleanContent";
|
|
2028
2026
|
value: boolean;
|
|
@@ -2113,6 +2111,8 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2113
2111
|
} | {
|
|
2114
2112
|
__TYPE__: "StructuredTextContent";
|
|
2115
2113
|
value: RichTextContentBlock[];
|
|
2114
|
+
} | {
|
|
2115
|
+
__TYPE__: "SeparatorContent";
|
|
2116
2116
|
} | {
|
|
2117
2117
|
__TYPE__: "TableContent";
|
|
2118
2118
|
content: {
|
|
@@ -2138,14 +2138,6 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2138
2138
|
widget: {
|
|
2139
2139
|
__TYPE__: "CompositeSliceContent";
|
|
2140
2140
|
nonRepeat: Record<string, {
|
|
2141
|
-
type: string;
|
|
2142
|
-
__TYPE__: "EmptyContent";
|
|
2143
|
-
} | {
|
|
2144
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
2145
|
-
value: string;
|
|
2146
|
-
} | {
|
|
2147
|
-
__TYPE__: "SeparatorContent";
|
|
2148
|
-
} | {
|
|
2149
2141
|
type: "Text";
|
|
2150
2142
|
value: string;
|
|
2151
2143
|
__TYPE__: "FieldContent";
|
|
@@ -2173,6 +2165,12 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2173
2165
|
type: "Select";
|
|
2174
2166
|
value: string;
|
|
2175
2167
|
__TYPE__: "FieldContent";
|
|
2168
|
+
} | {
|
|
2169
|
+
type: string;
|
|
2170
|
+
__TYPE__: "EmptyContent";
|
|
2171
|
+
} | {
|
|
2172
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
2173
|
+
value: string;
|
|
2176
2174
|
} | {
|
|
2177
2175
|
__TYPE__: "BooleanContent";
|
|
2178
2176
|
value: boolean;
|
|
@@ -2263,6 +2261,8 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2263
2261
|
} | {
|
|
2264
2262
|
__TYPE__: "StructuredTextContent";
|
|
2265
2263
|
value: RichTextContentBlock[];
|
|
2264
|
+
} | {
|
|
2265
|
+
__TYPE__: "SeparatorContent";
|
|
2266
2266
|
} | {
|
|
2267
2267
|
__TYPE__: "TableContent";
|
|
2268
2268
|
content: {
|
|
@@ -2290,14 +2290,6 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2290
2290
|
__TYPE__: "SharedSliceContent";
|
|
2291
2291
|
variation: string;
|
|
2292
2292
|
primary: Record<string, {
|
|
2293
|
-
type: string;
|
|
2294
|
-
__TYPE__: "EmptyContent";
|
|
2295
|
-
} | {
|
|
2296
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
2297
|
-
value: string;
|
|
2298
|
-
} | {
|
|
2299
|
-
__TYPE__: "SeparatorContent";
|
|
2300
|
-
} | {
|
|
2301
2293
|
type: "Text";
|
|
2302
2294
|
value: string;
|
|
2303
2295
|
__TYPE__: "FieldContent";
|
|
@@ -2325,6 +2317,12 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2325
2317
|
type: "Select";
|
|
2326
2318
|
value: string;
|
|
2327
2319
|
__TYPE__: "FieldContent";
|
|
2320
|
+
} | {
|
|
2321
|
+
type: string;
|
|
2322
|
+
__TYPE__: "EmptyContent";
|
|
2323
|
+
} | {
|
|
2324
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
2325
|
+
value: string;
|
|
2328
2326
|
} | {
|
|
2329
2327
|
__TYPE__: "BooleanContent";
|
|
2330
2328
|
value: boolean;
|
|
@@ -2415,6 +2413,8 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2415
2413
|
} | {
|
|
2416
2414
|
__TYPE__: "StructuredTextContent";
|
|
2417
2415
|
value: RichTextContentBlock[];
|
|
2416
|
+
} | {
|
|
2417
|
+
__TYPE__: "SeparatorContent";
|
|
2418
2418
|
} | {
|
|
2419
2419
|
__TYPE__: "TableContent";
|
|
2420
2420
|
content: {
|
|
@@ -2444,14 +2444,6 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2444
2444
|
__TYPE__: "SharedSliceContent";
|
|
2445
2445
|
variation: string;
|
|
2446
2446
|
primary: Record<string, {
|
|
2447
|
-
type: string;
|
|
2448
|
-
__TYPE__: "EmptyContent";
|
|
2449
|
-
} | {
|
|
2450
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
2451
|
-
value: string;
|
|
2452
|
-
} | {
|
|
2453
|
-
__TYPE__: "SeparatorContent";
|
|
2454
|
-
} | {
|
|
2455
2447
|
type: "Text";
|
|
2456
2448
|
value: string;
|
|
2457
2449
|
__TYPE__: "FieldContent";
|
|
@@ -2479,6 +2471,12 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2479
2471
|
type: "Select";
|
|
2480
2472
|
value: string;
|
|
2481
2473
|
__TYPE__: "FieldContent";
|
|
2474
|
+
} | {
|
|
2475
|
+
type: string;
|
|
2476
|
+
__TYPE__: "EmptyContent";
|
|
2477
|
+
} | {
|
|
2478
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
2479
|
+
value: string;
|
|
2482
2480
|
} | {
|
|
2483
2481
|
__TYPE__: "BooleanContent";
|
|
2484
2482
|
value: boolean;
|
|
@@ -2569,6 +2567,8 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2569
2567
|
} | {
|
|
2570
2568
|
__TYPE__: "StructuredTextContent";
|
|
2571
2569
|
value: RichTextContentBlock[];
|
|
2570
|
+
} | {
|
|
2571
|
+
__TYPE__: "SeparatorContent";
|
|
2572
2572
|
} | {
|
|
2573
2573
|
__TYPE__: "TableContent";
|
|
2574
2574
|
content: {
|
|
@@ -3019,14 +3019,6 @@ declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3019
3019
|
content: GroupLegacy$1;
|
|
3020
3020
|
}, unknown>;
|
|
3021
3021
|
declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
3022
|
-
type: string;
|
|
3023
|
-
__TYPE__: "EmptyContent";
|
|
3024
|
-
} | {
|
|
3025
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
3026
|
-
value: string;
|
|
3027
|
-
} | {
|
|
3028
|
-
__TYPE__: "SeparatorContent";
|
|
3029
|
-
} | {
|
|
3030
3022
|
type: "Text";
|
|
3031
3023
|
value: string;
|
|
3032
3024
|
__TYPE__: "FieldContent";
|
|
@@ -3054,6 +3046,12 @@ declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3054
3046
|
type: "Select";
|
|
3055
3047
|
value: string;
|
|
3056
3048
|
__TYPE__: "FieldContent";
|
|
3049
|
+
} | {
|
|
3050
|
+
type: string;
|
|
3051
|
+
__TYPE__: "EmptyContent";
|
|
3052
|
+
} | {
|
|
3053
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
3054
|
+
value: string;
|
|
3057
3055
|
} | {
|
|
3058
3056
|
__TYPE__: "BooleanContent";
|
|
3059
3057
|
value: boolean;
|
|
@@ -3144,6 +3142,8 @@ declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3144
3142
|
} | {
|
|
3145
3143
|
__TYPE__: "StructuredTextContent";
|
|
3146
3144
|
value: RichTextContentBlock[];
|
|
3145
|
+
} | {
|
|
3146
|
+
__TYPE__: "SeparatorContent";
|
|
3147
3147
|
} | {
|
|
3148
3148
|
__TYPE__: "TableContent";
|
|
3149
3149
|
content: {
|
|
@@ -3170,14 +3170,6 @@ declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3170
3170
|
declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
3171
3171
|
__TYPE__: "CompositeSliceContent";
|
|
3172
3172
|
nonRepeat: Record<string, {
|
|
3173
|
-
type: string;
|
|
3174
|
-
__TYPE__: "EmptyContent";
|
|
3175
|
-
} | {
|
|
3176
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
3177
|
-
value: string;
|
|
3178
|
-
} | {
|
|
3179
|
-
__TYPE__: "SeparatorContent";
|
|
3180
|
-
} | {
|
|
3181
3173
|
type: "Text";
|
|
3182
3174
|
value: string;
|
|
3183
3175
|
__TYPE__: "FieldContent";
|
|
@@ -3205,6 +3197,12 @@ declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3205
3197
|
type: "Select";
|
|
3206
3198
|
value: string;
|
|
3207
3199
|
__TYPE__: "FieldContent";
|
|
3200
|
+
} | {
|
|
3201
|
+
type: string;
|
|
3202
|
+
__TYPE__: "EmptyContent";
|
|
3203
|
+
} | {
|
|
3204
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
3205
|
+
value: string;
|
|
3208
3206
|
} | {
|
|
3209
3207
|
__TYPE__: "BooleanContent";
|
|
3210
3208
|
value: boolean;
|
|
@@ -3295,6 +3293,8 @@ declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3295
3293
|
} | {
|
|
3296
3294
|
__TYPE__: "StructuredTextContent";
|
|
3297
3295
|
value: RichTextContentBlock[];
|
|
3296
|
+
} | {
|
|
3297
|
+
__TYPE__: "SeparatorContent";
|
|
3298
3298
|
} | {
|
|
3299
3299
|
__TYPE__: "TableContent";
|
|
3300
3300
|
content: {
|
|
@@ -3324,14 +3324,6 @@ declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3324
3324
|
__TYPE__: "SharedSliceContent";
|
|
3325
3325
|
variation: string;
|
|
3326
3326
|
primary: Record<string, {
|
|
3327
|
-
type: string;
|
|
3328
|
-
__TYPE__: "EmptyContent";
|
|
3329
|
-
} | {
|
|
3330
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
3331
|
-
value: string;
|
|
3332
|
-
} | {
|
|
3333
|
-
__TYPE__: "SeparatorContent";
|
|
3334
|
-
} | {
|
|
3335
3327
|
type: "Text";
|
|
3336
3328
|
value: string;
|
|
3337
3329
|
__TYPE__: "FieldContent";
|
|
@@ -3359,6 +3351,12 @@ declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3359
3351
|
type: "Select";
|
|
3360
3352
|
value: string;
|
|
3361
3353
|
__TYPE__: "FieldContent";
|
|
3354
|
+
} | {
|
|
3355
|
+
type: string;
|
|
3356
|
+
__TYPE__: "EmptyContent";
|
|
3357
|
+
} | {
|
|
3358
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
3359
|
+
value: string;
|
|
3362
3360
|
} | {
|
|
3363
3361
|
__TYPE__: "BooleanContent";
|
|
3364
3362
|
value: boolean;
|
|
@@ -3449,6 +3447,8 @@ declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3449
3447
|
} | {
|
|
3450
3448
|
__TYPE__: "StructuredTextContent";
|
|
3451
3449
|
value: RichTextContentBlock[];
|
|
3450
|
+
} | {
|
|
3451
|
+
__TYPE__: "SeparatorContent";
|
|
3452
3452
|
} | {
|
|
3453
3453
|
__TYPE__: "TableContent";
|
|
3454
3454
|
content: {
|
|
@@ -3734,6 +3734,55 @@ declare const LinkModelSchema: t.Type<{
|
|
|
3734
3734
|
variants?: string[] | undefined;
|
|
3735
3735
|
} | undefined;
|
|
3736
3736
|
}, unknown>;
|
|
3737
|
+
declare const LinkConfigCustomtypesSchema: t.Type<(string | {
|
|
3738
|
+
id: string;
|
|
3739
|
+
fields: (string | {
|
|
3740
|
+
id: string;
|
|
3741
|
+
customtypes: (string | {
|
|
3742
|
+
id: string;
|
|
3743
|
+
fields: (string | {
|
|
3744
|
+
id: string;
|
|
3745
|
+
fields: string[];
|
|
3746
|
+
})[];
|
|
3747
|
+
})[];
|
|
3748
|
+
} | {
|
|
3749
|
+
id: string;
|
|
3750
|
+
fields: (string | {
|
|
3751
|
+
id: string;
|
|
3752
|
+
customtypes: (string | {
|
|
3753
|
+
id: string;
|
|
3754
|
+
fields: (string | {
|
|
3755
|
+
id: string;
|
|
3756
|
+
fields: string[];
|
|
3757
|
+
})[];
|
|
3758
|
+
})[];
|
|
3759
|
+
})[];
|
|
3760
|
+
})[];
|
|
3761
|
+
})[], (string | {
|
|
3762
|
+
id: string;
|
|
3763
|
+
fields: (string | {
|
|
3764
|
+
id: string;
|
|
3765
|
+
customtypes: (string | {
|
|
3766
|
+
id: string;
|
|
3767
|
+
fields: (string | {
|
|
3768
|
+
id: string;
|
|
3769
|
+
fields: string[];
|
|
3770
|
+
})[];
|
|
3771
|
+
})[];
|
|
3772
|
+
} | {
|
|
3773
|
+
id: string;
|
|
3774
|
+
fields: (string | {
|
|
3775
|
+
id: string;
|
|
3776
|
+
customtypes: (string | {
|
|
3777
|
+
id: string;
|
|
3778
|
+
fields: (string | {
|
|
3779
|
+
id: string;
|
|
3780
|
+
fields: string[];
|
|
3781
|
+
})[];
|
|
3782
|
+
})[];
|
|
3783
|
+
})[];
|
|
3784
|
+
})[];
|
|
3785
|
+
})[], unknown>;
|
|
3737
3786
|
declare const NestableModelSchema: t.Type<{
|
|
3738
3787
|
type: "Boolean";
|
|
3739
3788
|
config?: {
|
|
@@ -8702,6 +8751,7 @@ declare const StaticSlicesModelSchema: t.Type<{
|
|
|
8702
8751
|
}, unknown>;
|
|
8703
8752
|
declare const StaticWidgetModelSchema: t.Type<StaticWidgetModel, StaticWidgetModel, unknown>;
|
|
8704
8753
|
declare const DynamicWidgetModelSchema: t.Type<DynamicWidgetModel, DynamicWidgetModel, unknown>;
|
|
8754
|
+
declare const FieldOrSliceTypeSchema: t.Type<"Boolean" | "Choice" | "Color" | "Date" | "Embed" | "GeoPoint" | "Group" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "Repeatable.Link" | "Select" | "Separator" | "SharedSlice" | "Slice" | "Slices" | "StructuredText" | "Table" | "Text" | "Timestamp" | "UID", "Boolean" | "Choice" | "Color" | "Date" | "Embed" | "GeoPoint" | "Group" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "Repeatable.Link" | "Select" | "Separator" | "SharedSlice" | "Slice" | "Slices" | "StructuredText" | "Table" | "Text" | "Timestamp" | "UID", unknown>;
|
|
8705
8755
|
declare const StaticCustomTypeModelTabSchema: t.Type<Record<string, StaticWidgetModel>, Record<string, StaticWidgetModel>, unknown>;
|
|
8706
8756
|
declare const DynamicCustomTypeModelTabSchema: t.Type<Record<string, DynamicWidgetModel>, Record<string, DynamicWidgetModel>, unknown>;
|
|
8707
8757
|
declare const StaticCustomTypeModelSchema: t.Type<{
|
|
@@ -8805,5 +8855,5 @@ declare const CustomTypeModelSchema: t.Type<{
|
|
|
8805
8855
|
schema: "@prismicio/types-internal@4.5.0";
|
|
8806
8856
|
}, unknown>;
|
|
8807
8857
|
//#endregion
|
|
8808
|
-
export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedLegacy, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLegacy, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointLegacy, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupItemLegacy, GroupLegacy, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageLegacy, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldLegacy, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceLegacy, LegacySliceModelSchema, LinkContentSchema, LinkLegacy, LinkModelSchema, NestableContentSchema, NestableLegacy, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberLegacy, NumberModelSchema, RangeContentSchema, RangeLegacy, RangeModelSchema, RepeatableContentSchema, RepeatableLegacy, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextLegacy, RichTextModelSchema, SelectContentSchema, SelectLegacy, SelectModelSchema, SeparatorContentSchema, SeparatorLegacy, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceLegacy, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SliceItemLegacy, SliceLegacy, SlicesContentSchema, SlicesLegacy, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
|
|
8858
|
+
export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedLegacy, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLegacy, EmptyLinkContentSchema, FieldContentSchema, FieldOrSliceTypeSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointLegacy, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupItemLegacy, GroupLegacy, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageLegacy, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldLegacy, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceLegacy, LegacySliceModelSchema, LinkConfigCustomtypesSchema, LinkContentSchema, LinkLegacy, LinkModelSchema, NestableContentSchema, NestableLegacy, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberLegacy, NumberModelSchema, RangeContentSchema, RangeLegacy, RangeModelSchema, RepeatableContentSchema, RepeatableLegacy, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextLegacy, RichTextModelSchema, SelectContentSchema, SelectLegacy, SelectModelSchema, SeparatorContentSchema, SeparatorLegacy, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceLegacy, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SliceItemLegacy, SliceLegacy, SlicesContentSchema, SlicesLegacy, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
|
|
8809
8859
|
//# sourceMappingURL=io-ts.d.ts.map
|