@prismicio/types-internal 2.1.0-alpha.3 → 2.2.0-alpha.0

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 (113) hide show
  1. package/lib/common/HexaColorCode.d.ts +4 -0
  2. package/lib/common/HexaColorCode.js +7 -0
  3. package/lib/customtypes/CustomType.d.ts +14 -196
  4. package/lib/customtypes/Section.d.ts +14 -196
  5. package/lib/customtypes/diff/SharedSlice.d.ts +4 -56
  6. package/lib/customtypes/diff/Variation.d.ts +4 -56
  7. package/lib/customtypes/widgets/Group.d.ts +2 -54
  8. package/lib/customtypes/widgets/Widget.d.ts +16 -302
  9. package/lib/customtypes/widgets/nestable/Link.d.ts +29 -0
  10. package/lib/customtypes/widgets/nestable/{Link/index.js → Link.js} +2 -4
  11. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +158 -27
  12. package/lib/customtypes/widgets/nestable/NestableWidget.js +17 -1
  13. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -54
  14. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -54
  15. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +4 -108
  16. package/lib/customtypes/widgets/slices/Slices.d.ts +24 -492
  17. package/lib/import/converters/Document.d.ts +3 -0
  18. package/lib/import/converters/Document.js +17 -0
  19. package/lib/import/converters/fields/index.d.ts +1 -0
  20. package/lib/import/converters/fields/index.js +4 -0
  21. package/lib/import/converters/fields/nestable/Color.d.ts +3 -0
  22. package/lib/import/converters/fields/nestable/Color.js +10 -0
  23. package/lib/import/converters/fields/nestable/Date.d.ts +3 -0
  24. package/lib/import/converters/fields/nestable/Date.js +15 -0
  25. package/lib/import/converters/fields/nestable/Nestable.d.ts +3 -0
  26. package/lib/import/converters/fields/nestable/Nestable.js +23 -0
  27. package/lib/import/converters/fields/nestable/Number.d.ts +3 -0
  28. package/lib/import/converters/fields/nestable/Number.js +10 -0
  29. package/lib/import/converters/fields/nestable/Select.d.ts +3 -0
  30. package/lib/import/converters/fields/nestable/Select.js +10 -0
  31. package/lib/import/converters/fields/nestable/Text.d.ts +3 -0
  32. package/lib/import/converters/fields/nestable/Text.js +10 -0
  33. package/lib/import/converters/fields/nestable/Timestamp.d.ts +3 -0
  34. package/lib/import/converters/fields/nestable/Timestamp.js +10 -0
  35. package/lib/import/converters/fields/nestable/index.d.ts +7 -0
  36. package/lib/import/converters/fields/nestable/index.js +10 -0
  37. package/lib/import/converters/fields/utils.d.ts +1 -0
  38. package/lib/import/converters/fields/utils.js +10 -0
  39. package/lib/import/converters/index.d.ts +2 -0
  40. package/lib/import/converters/index.js +5 -0
  41. package/lib/import/index.d.ts +2 -0
  42. package/lib/import/index.js +5 -0
  43. package/lib/import/validators/Document.d.ts +6 -0
  44. package/lib/import/validators/Document.js +58 -0
  45. package/lib/import/validators/fields/index.d.ts +6 -0
  46. package/lib/import/validators/fields/index.js +4 -0
  47. package/lib/import/validators/fields/nestable/Color.d.ts +5 -0
  48. package/lib/import/validators/fields/nestable/Color.js +15 -0
  49. package/lib/import/validators/fields/nestable/Date.d.ts +4 -0
  50. package/lib/import/validators/fields/nestable/Date.js +17 -0
  51. package/lib/import/validators/fields/nestable/Nestable.d.ts +9 -0
  52. package/lib/import/validators/fields/nestable/Nestable.js +34 -0
  53. package/lib/import/validators/fields/nestable/Number.d.ts +10 -0
  54. package/lib/import/validators/fields/nestable/Number.js +16 -0
  55. package/lib/import/validators/fields/nestable/Select.d.ts +9 -0
  56. package/lib/import/validators/fields/nestable/Select.js +17 -0
  57. package/lib/import/validators/fields/nestable/Text.d.ts +3 -0
  58. package/lib/import/validators/fields/nestable/Text.js +5 -0
  59. package/lib/import/validators/fields/nestable/Timestamp.d.ts +5 -0
  60. package/lib/import/validators/fields/nestable/Timestamp.js +17 -0
  61. package/lib/import/validators/fields/nestable/index.d.ts +7 -0
  62. package/lib/import/validators/fields/nestable/index.js +10 -0
  63. package/lib/import/validators/index.d.ts +2 -0
  64. package/lib/import/validators/index.js +5 -0
  65. package/lib/utils/Objects.d.ts +1 -0
  66. package/lib/utils/Objects.js +9 -1
  67. package/lib/utils/index.d.ts +1 -0
  68. package/lib/utils/index.js +2 -1
  69. package/lib/validators/BasicTypes.d.ts +3 -0
  70. package/lib/validators/BasicTypes.js +8 -0
  71. package/lib/validators/DateFromString.js +2 -1
  72. package/lib/validators/NullOrT.d.ts +2 -0
  73. package/lib/validators/NullOrT.js +13 -0
  74. package/lib/validators/index.d.ts +2 -0
  75. package/lib/validators/index.js +2 -0
  76. package/package.json +1 -1
  77. package/src/common/HexaColorCode.ts +11 -0
  78. package/src/customtypes/widgets/nestable/{Link/index.ts → Link.ts} +2 -5
  79. package/src/customtypes/widgets/nestable/NestableWidget.ts +17 -0
  80. package/src/import/converters/Document.ts +22 -0
  81. package/src/import/converters/fields/index.ts +1 -0
  82. package/src/import/converters/fields/nestable/Color.ts +12 -0
  83. package/src/import/converters/fields/nestable/Date.ts +18 -0
  84. package/src/import/converters/fields/nestable/Nestable.ts +33 -0
  85. package/src/import/converters/fields/nestable/Number.ts +12 -0
  86. package/src/import/converters/fields/nestable/Select.ts +12 -0
  87. package/src/import/converters/fields/nestable/Text.ts +12 -0
  88. package/src/import/converters/fields/nestable/Timestamp.ts +12 -0
  89. package/src/import/converters/fields/nestable/index.ts +7 -0
  90. package/src/import/converters/fields/utils.ts +7 -0
  91. package/src/import/converters/index.ts +2 -0
  92. package/src/import/index.ts +2 -0
  93. package/src/import/validators/Document.ts +79 -0
  94. package/src/import/validators/fields/index.ts +8 -0
  95. package/src/import/validators/fields/nestable/Color.ts +28 -0
  96. package/src/import/validators/fields/nestable/Date.ts +35 -0
  97. package/src/import/validators/fields/nestable/Nestable.ts +41 -0
  98. package/src/import/validators/fields/nestable/Number.ts +36 -0
  99. package/src/import/validators/fields/nestable/Select.ts +36 -0
  100. package/src/import/validators/fields/nestable/Text.ts +7 -0
  101. package/src/import/validators/fields/nestable/Timestamp.ts +36 -0
  102. package/src/import/validators/fields/nestable/index.ts +7 -0
  103. package/src/import/validators/index.ts +2 -0
  104. package/src/utils/Objects.ts +8 -0
  105. package/src/utils/index.ts +1 -0
  106. package/src/validators/BasicTypes.ts +5 -0
  107. package/src/validators/DateFromString.ts +3 -1
  108. package/src/validators/NullOrT.ts +18 -0
  109. package/src/validators/index.ts +2 -0
  110. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +0 -29
  111. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +0 -44
  112. package/lib/customtypes/widgets/nestable/Link/index.d.ts +0 -82
  113. package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +0 -69
@@ -140,33 +140,7 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
140
140
  useAsTitle: t.BooleanC;
141
141
  placeholder: t.StringC;
142
142
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
143
- customtypes: t.ReadonlyArrayC<t.Type<{
144
- customTypeId: string;
145
- } & {
146
- fields?: readonly ({
147
- fieldId: string;
148
- } & {
149
- customTypes?: readonly {
150
- customTypeId: string;
151
- fields: readonly {
152
- fieldId: string;
153
- }[];
154
- }[];
155
- })[];
156
- }, {
157
- customTypeId: string;
158
- } & {
159
- fields?: readonly ({
160
- fieldId: string;
161
- } & {
162
- customTypes?: readonly {
163
- customTypeId: string;
164
- fields: readonly {
165
- fieldId: string;
166
- }[];
167
- }[];
168
- })[];
169
- }, unknown>>;
143
+ customtypes: t.ReadonlyArrayC<t.StringC>;
170
144
  masks: t.Type<readonly string[], object, unknown>;
171
145
  tags: t.Type<readonly string[], object, unknown>;
172
146
  allowTargetBlank: t.BooleanC;
@@ -331,33 +305,7 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
331
305
  useAsTitle: t.BooleanC;
332
306
  placeholder: t.StringC;
333
307
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
334
- customtypes: t.ReadonlyArrayC<t.Type<{
335
- customTypeId: string;
336
- } & {
337
- fields?: readonly ({
338
- fieldId: string;
339
- } & {
340
- customTypes?: readonly {
341
- customTypeId: string;
342
- fields: readonly {
343
- fieldId: string;
344
- }[];
345
- }[];
346
- })[];
347
- }, {
348
- customTypeId: string;
349
- } & {
350
- fields?: readonly ({
351
- fieldId: string;
352
- } & {
353
- customTypes?: readonly {
354
- customTypeId: string;
355
- fields: readonly {
356
- fieldId: string;
357
- }[];
358
- }[];
359
- })[];
360
- }, unknown>>;
308
+ customtypes: t.ReadonlyArrayC<t.StringC>;
361
309
  masks: t.Type<readonly string[], object, unknown>;
362
310
  tags: t.Type<readonly string[], object, unknown>;
363
311
  allowTargetBlank: t.BooleanC;
@@ -522,33 +470,7 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
522
470
  useAsTitle: t.BooleanC;
523
471
  placeholder: t.StringC;
524
472
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
525
- customtypes: t.ReadonlyArrayC<t.Type<{
526
- customTypeId: string;
527
- } & {
528
- fields?: readonly ({
529
- fieldId: string;
530
- } & {
531
- customTypes?: readonly {
532
- customTypeId: string;
533
- fields: readonly {
534
- fieldId: string;
535
- }[];
536
- }[];
537
- })[];
538
- }, {
539
- customTypeId: string;
540
- } & {
541
- fields?: readonly ({
542
- fieldId: string;
543
- } & {
544
- customTypes?: readonly {
545
- customTypeId: string;
546
- fields: readonly {
547
- fieldId: string;
548
- }[];
549
- }[];
550
- })[];
551
- }, unknown>>;
473
+ customtypes: t.ReadonlyArrayC<t.StringC>;
552
474
  masks: t.Type<readonly string[], object, unknown>;
553
475
  tags: t.Type<readonly string[], object, unknown>;
554
476
  allowTargetBlank: t.BooleanC;
@@ -705,33 +627,7 @@ export declare function slicesConfigReader<T extends SharedSlice | SharedSliceRe
705
627
  useAsTitle: t.BooleanC;
706
628
  placeholder: t.StringC;
707
629
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
708
- customtypes: t.ReadonlyArrayC<t.Type<{
709
- customTypeId: string;
710
- } & {
711
- fields?: readonly ({
712
- fieldId: string;
713
- } & {
714
- customTypes?: readonly {
715
- customTypeId: string;
716
- fields: readonly {
717
- fieldId: string;
718
- }[];
719
- }[];
720
- })[];
721
- }, {
722
- customTypeId: string;
723
- } & {
724
- fields?: readonly ({
725
- fieldId: string;
726
- } & {
727
- customTypes?: readonly {
728
- customTypeId: string;
729
- fields: readonly {
730
- fieldId: string;
731
- }[];
732
- }[];
733
- })[];
734
- }, unknown>>;
630
+ customtypes: t.ReadonlyArrayC<t.StringC>;
735
631
  masks: t.Type<readonly string[], object, unknown>;
736
632
  tags: t.Type<readonly string[], object, unknown>;
737
633
  allowTargetBlank: t.BooleanC;
@@ -900,33 +796,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
900
796
  useAsTitle: t.BooleanC;
901
797
  placeholder: t.StringC;
902
798
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
903
- customtypes: t.ReadonlyArrayC<t.Type<{
904
- customTypeId: string;
905
- } & {
906
- fields?: readonly ({
907
- fieldId: string;
908
- } & {
909
- customTypes?: readonly {
910
- customTypeId: string;
911
- fields: readonly {
912
- fieldId: string;
913
- }[];
914
- }[];
915
- })[];
916
- }, {
917
- customTypeId: string;
918
- } & {
919
- fields?: readonly ({
920
- fieldId: string;
921
- } & {
922
- customTypes?: readonly {
923
- customTypeId: string;
924
- fields: readonly {
925
- fieldId: string;
926
- }[];
927
- }[];
928
- })[];
929
- }, unknown>>;
799
+ customtypes: t.ReadonlyArrayC<t.StringC>;
930
800
  masks: t.Type<readonly string[], object, unknown>;
931
801
  tags: t.Type<readonly string[], object, unknown>;
932
802
  allowTargetBlank: t.BooleanC;
@@ -1091,33 +961,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1091
961
  useAsTitle: t.BooleanC;
1092
962
  placeholder: t.StringC;
1093
963
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
1094
- customtypes: t.ReadonlyArrayC<t.Type<{
1095
- customTypeId: string;
1096
- } & {
1097
- fields?: readonly ({
1098
- fieldId: string;
1099
- } & {
1100
- customTypes?: readonly {
1101
- customTypeId: string;
1102
- fields: readonly {
1103
- fieldId: string;
1104
- }[];
1105
- }[];
1106
- })[];
1107
- }, {
1108
- customTypeId: string;
1109
- } & {
1110
- fields?: readonly ({
1111
- fieldId: string;
1112
- } & {
1113
- customTypes?: readonly {
1114
- customTypeId: string;
1115
- fields: readonly {
1116
- fieldId: string;
1117
- }[];
1118
- }[];
1119
- })[];
1120
- }, unknown>>;
964
+ customtypes: t.ReadonlyArrayC<t.StringC>;
1121
965
  masks: t.Type<readonly string[], object, unknown>;
1122
966
  tags: t.Type<readonly string[], object, unknown>;
1123
967
  allowTargetBlank: t.BooleanC;
@@ -1282,33 +1126,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1282
1126
  useAsTitle: t.BooleanC;
1283
1127
  placeholder: t.StringC;
1284
1128
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
1285
- customtypes: t.ReadonlyArrayC<t.Type<{
1286
- customTypeId: string;
1287
- } & {
1288
- fields?: readonly ({
1289
- fieldId: string;
1290
- } & {
1291
- customTypes?: readonly {
1292
- customTypeId: string;
1293
- fields: readonly {
1294
- fieldId: string;
1295
- }[];
1296
- }[];
1297
- })[];
1298
- }, {
1299
- customTypeId: string;
1300
- } & {
1301
- fields?: readonly ({
1302
- fieldId: string;
1303
- } & {
1304
- customTypes?: readonly {
1305
- customTypeId: string;
1306
- fields: readonly {
1307
- fieldId: string;
1308
- }[];
1309
- }[];
1310
- })[];
1311
- }, unknown>>;
1129
+ customtypes: t.ReadonlyArrayC<t.StringC>;
1312
1130
  masks: t.Type<readonly string[], object, unknown>;
1313
1131
  tags: t.Type<readonly string[], object, unknown>;
1314
1132
  allowTargetBlank: t.BooleanC;
@@ -1465,33 +1283,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1465
1283
  useAsTitle: t.BooleanC;
1466
1284
  placeholder: t.StringC;
1467
1285
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
1468
- customtypes: t.ReadonlyArrayC<t.Type<{
1469
- customTypeId: string;
1470
- } & {
1471
- fields?: readonly ({
1472
- fieldId: string;
1473
- } & {
1474
- customTypes?: readonly {
1475
- customTypeId: string;
1476
- fields: readonly {
1477
- fieldId: string;
1478
- }[];
1479
- }[];
1480
- })[];
1481
- }, {
1482
- customTypeId: string;
1483
- } & {
1484
- fields?: readonly ({
1485
- fieldId: string;
1486
- } & {
1487
- customTypes?: readonly {
1488
- customTypeId: string;
1489
- fields: readonly {
1490
- fieldId: string;
1491
- }[];
1492
- }[];
1493
- })[];
1494
- }, unknown>>;
1286
+ customtypes: t.ReadonlyArrayC<t.StringC>;
1495
1287
  masks: t.Type<readonly string[], object, unknown>;
1496
1288
  tags: t.Type<readonly string[], object, unknown>;
1497
1289
  allowTargetBlank: t.BooleanC;
@@ -1619,20 +1411,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1619
1411
  useAsTitle?: boolean;
1620
1412
  placeholder?: string;
1621
1413
  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
- })[];
1414
+ customtypes?: readonly string[];
1636
1415
  masks?: readonly string[];
1637
1416
  tags?: readonly string[];
1638
1417
  allowTargetBlank?: boolean;
@@ -1791,20 +1570,7 @@ export declare const StaticSlicesConfig: t.ExactC<t.PartialC<{
1791
1570
  useAsTitle?: boolean;
1792
1571
  placeholder?: string;
1793
1572
  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
- })[];
1573
+ customtypes?: readonly string[];
1808
1574
  masks?: readonly string[];
1809
1575
  tags?: readonly string[];
1810
1576
  allowTargetBlank?: boolean;
@@ -2021,33 +1787,7 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2021
1787
  useAsTitle: t.BooleanC;
2022
1788
  placeholder: t.StringC;
2023
1789
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
2024
- customtypes: t.ReadonlyArrayC<t.Type<{
2025
- customTypeId: string;
2026
- } & {
2027
- fields?: readonly ({
2028
- fieldId: string;
2029
- } & {
2030
- customTypes?: readonly {
2031
- customTypeId: string;
2032
- fields: readonly {
2033
- fieldId: string;
2034
- }[];
2035
- }[];
2036
- })[];
2037
- }, {
2038
- customTypeId: string;
2039
- } & {
2040
- fields?: readonly ({
2041
- fieldId: string;
2042
- } & {
2043
- customTypes?: readonly {
2044
- customTypeId: string;
2045
- fields: readonly {
2046
- fieldId: string;
2047
- }[];
2048
- }[];
2049
- })[];
2050
- }, unknown>>;
1790
+ customtypes: t.ReadonlyArrayC<t.StringC>;
2051
1791
  masks: t.Type<readonly string[], object, unknown>;
2052
1792
  tags: t.Type<readonly string[], object, unknown>;
2053
1793
  allowTargetBlank: t.BooleanC;
@@ -2212,33 +1952,7 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2212
1952
  useAsTitle: t.BooleanC;
2213
1953
  placeholder: t.StringC;
2214
1954
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
2215
- customtypes: t.ReadonlyArrayC<t.Type<{
2216
- customTypeId: string;
2217
- } & {
2218
- fields?: readonly ({
2219
- fieldId: string;
2220
- } & {
2221
- customTypes?: readonly {
2222
- customTypeId: string;
2223
- fields: readonly {
2224
- fieldId: string;
2225
- }[];
2226
- }[];
2227
- })[];
2228
- }, {
2229
- customTypeId: string;
2230
- } & {
2231
- fields?: readonly ({
2232
- fieldId: string;
2233
- } & {
2234
- customTypes?: readonly {
2235
- customTypeId: string;
2236
- fields: readonly {
2237
- fieldId: string;
2238
- }[];
2239
- }[];
2240
- })[];
2241
- }, unknown>>;
1955
+ customtypes: t.ReadonlyArrayC<t.StringC>;
2242
1956
  masks: t.Type<readonly string[], object, unknown>;
2243
1957
  tags: t.Type<readonly string[], object, unknown>;
2244
1958
  allowTargetBlank: t.BooleanC;
@@ -2403,33 +2117,7 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2403
2117
  useAsTitle: t.BooleanC;
2404
2118
  placeholder: t.StringC;
2405
2119
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
2406
- customtypes: t.ReadonlyArrayC<t.Type<{
2407
- customTypeId: string;
2408
- } & {
2409
- fields?: readonly ({
2410
- fieldId: string;
2411
- } & {
2412
- customTypes?: readonly {
2413
- customTypeId: string;
2414
- fields: readonly {
2415
- fieldId: string;
2416
- }[];
2417
- }[];
2418
- })[];
2419
- }, {
2420
- customTypeId: string;
2421
- } & {
2422
- fields?: readonly ({
2423
- fieldId: string;
2424
- } & {
2425
- customTypes?: readonly {
2426
- customTypeId: string;
2427
- fields: readonly {
2428
- fieldId: string;
2429
- }[];
2430
- }[];
2431
- })[];
2432
- }, unknown>>;
2120
+ customtypes: t.ReadonlyArrayC<t.StringC>;
2433
2121
  masks: t.Type<readonly string[], object, unknown>;
2434
2122
  tags: t.Type<readonly string[], object, unknown>;
2435
2123
  allowTargetBlank: t.BooleanC;
@@ -2586,33 +2274,7 @@ export declare const DynamicSlicesConfig: t.ExactC<t.PartialC<{
2586
2274
  useAsTitle: t.BooleanC;
2587
2275
  placeholder: t.StringC;
2588
2276
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
2589
- customtypes: t.ReadonlyArrayC<t.Type<{
2590
- customTypeId: string;
2591
- } & {
2592
- fields?: readonly ({
2593
- fieldId: string;
2594
- } & {
2595
- customTypes?: readonly {
2596
- customTypeId: string;
2597
- fields: readonly {
2598
- fieldId: string;
2599
- }[];
2600
- }[];
2601
- })[];
2602
- }, {
2603
- customTypeId: string;
2604
- } & {
2605
- fields?: readonly ({
2606
- fieldId: string;
2607
- } & {
2608
- customTypes?: readonly {
2609
- customTypeId: string;
2610
- fields: readonly {
2611
- fieldId: string;
2612
- }[];
2613
- }[];
2614
- })[];
2615
- }, unknown>>;
2277
+ customtypes: t.ReadonlyArrayC<t.StringC>;
2616
2278
  masks: t.Type<readonly string[], object, unknown>;
2617
2279
  tags: t.Type<readonly string[], object, unknown>;
2618
2280
  allowTargetBlank: t.BooleanC;
@@ -2757,20 +2419,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2757
2419
  useAsTitle?: boolean;
2758
2420
  placeholder?: string;
2759
2421
  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
- })[];
2422
+ customtypes?: readonly string[];
2774
2423
  masks?: readonly string[];
2775
2424
  tags?: readonly string[];
2776
2425
  allowTargetBlank?: boolean;
@@ -2936,20 +2585,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
2936
2585
  useAsTitle?: boolean;
2937
2586
  placeholder?: string;
2938
2587
  select?: "media" | "document" | "web" | null;
2939
- customtypes?: readonly ({
2940
- customTypeId: string;
2941
- } & {
2942
- fields?: readonly ({
2943
- fieldId: string;
2944
- } & {
2945
- customTypes?: readonly {
2946
- customTypeId: string;
2947
- fields: readonly {
2948
- fieldId: string;
2949
- }[];
2950
- }[];
2951
- })[];
2952
- })[];
2588
+ customtypes?: readonly string[];
2953
2589
  masks?: readonly string[];
2954
2590
  tags?: readonly string[];
2955
2591
  allowTargetBlank?: boolean;
@@ -3116,20 +2752,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3116
2752
  useAsTitle?: boolean;
3117
2753
  placeholder?: string;
3118
2754
  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
- })[];
2755
+ customtypes?: readonly string[];
3133
2756
  masks?: readonly string[];
3134
2757
  tags?: readonly string[];
3135
2758
  allowTargetBlank?: boolean;
@@ -3288,20 +2911,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3288
2911
  useAsTitle?: boolean;
3289
2912
  placeholder?: string;
3290
2913
  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
- })[];
2914
+ customtypes?: readonly string[];
3305
2915
  masks?: readonly string[];
3306
2916
  tags?: readonly string[];
3307
2917
  allowTargetBlank?: boolean;
@@ -3476,20 +3086,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3476
3086
  useAsTitle?: boolean;
3477
3087
  placeholder?: string;
3478
3088
  select?: "media" | "document" | "web" | null;
3479
- customtypes?: readonly ({
3480
- customTypeId: string;
3481
- } & {
3482
- fields?: readonly ({
3483
- fieldId: string;
3484
- } & {
3485
- customTypes?: readonly {
3486
- customTypeId: string;
3487
- fields: readonly {
3488
- fieldId: string;
3489
- }[];
3490
- }[];
3491
- })[];
3492
- })[];
3089
+ customtypes?: readonly string[];
3493
3090
  masks?: readonly string[];
3494
3091
  tags?: readonly string[];
3495
3092
  allowTargetBlank?: boolean;
@@ -3648,20 +3245,7 @@ export declare const StaticSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3648
3245
  useAsTitle?: boolean;
3649
3246
  placeholder?: string;
3650
3247
  select?: "media" | "document" | "web" | null;
3651
- customtypes?: readonly ({
3652
- customTypeId: string;
3653
- } & {
3654
- fields?: readonly ({
3655
- fieldId: string;
3656
- } & {
3657
- customTypes?: readonly {
3658
- customTypeId: string;
3659
- fields: readonly {
3660
- fieldId: string;
3661
- }[];
3662
- }[];
3663
- })[];
3664
- })[];
3248
+ customtypes?: readonly string[];
3665
3249
  masks?: readonly string[];
3666
3250
  tags?: readonly string[];
3667
3251
  allowTargetBlank?: boolean;
@@ -3844,20 +3428,7 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
3844
3428
  useAsTitle?: boolean;
3845
3429
  placeholder?: string;
3846
3430
  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
- })[];
3431
+ customtypes?: readonly string[];
3861
3432
  masks?: readonly string[];
3862
3433
  tags?: readonly string[];
3863
3434
  allowTargetBlank?: boolean;
@@ -4023,20 +3594,7 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4023
3594
  useAsTitle?: boolean;
4024
3595
  placeholder?: string;
4025
3596
  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
- })[];
3597
+ customtypes?: readonly string[];
4040
3598
  masks?: readonly string[];
4041
3599
  tags?: readonly string[];
4042
3600
  allowTargetBlank?: boolean;
@@ -4203,20 +3761,7 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4203
3761
  useAsTitle?: boolean;
4204
3762
  placeholder?: string;
4205
3763
  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
- })[];
3764
+ customtypes?: readonly string[];
4220
3765
  masks?: readonly string[];
4221
3766
  tags?: readonly string[];
4222
3767
  allowTargetBlank?: boolean;
@@ -4375,20 +3920,7 @@ export declare const DynamicSlices: t.ExactC<t.IntersectionC<[t.TypeC<{
4375
3920
  useAsTitle?: boolean;
4376
3921
  placeholder?: string;
4377
3922
  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
- })[];
3923
+ customtypes?: readonly string[];
4392
3924
  masks?: readonly string[];
4393
3925
  tags?: readonly string[];
4394
3926
  allowTargetBlank?: boolean;
@@ -0,0 +1,3 @@
1
+ import type { Document } from "../../content";
2
+ import { ImportDocument } from "../validators";
3
+ export declare function convertImportToContent(document: ImportDocument): Document;