@prismicio/types-internal 2.2.0-traverse.alpha-11 → 2.2.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.
- package/lib/content/Document.d.ts +32 -32
- package/lib/content/fields/GroupContent.d.ts +7 -7
- package/lib/content/fields/WidgetContent.d.ts +32 -32
- package/lib/content/fields/nestable/NestableContent.d.ts +4 -4
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +9 -6
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +1 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +5 -5
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +8 -8
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +3 -3
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +8 -8
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +8 -8
- package/lib/content/fields/slices/Slice/index.d.ts +18 -18
- package/lib/content/fields/slices/SliceItem.d.ts +18 -18
- package/lib/content/fields/slices/SlicesContent.d.ts +24 -24
- package/lib/import/converters/Document.js +2 -0
- package/lib/import/converters/fields/Group.d.ts +4 -0
- package/lib/import/converters/fields/Group.js +14 -0
- package/lib/import/converters/fields/RepeatableZone.d.ts +317 -0
- package/lib/import/converters/fields/RepeatableZone.js +15 -0
- package/lib/import/converters/fields/RepeatableZoneItem.d.ts +11 -0
- package/lib/import/converters/fields/RepeatableZoneItem.js +19 -0
- package/lib/import/converters/fields/Slices/SharedSliceContent.js +6 -41
- package/lib/import/converters/fields/index.d.ts +1 -0
- package/lib/import/converters/fields/index.js +1 -0
- package/lib/import/validators/fields/ImportField.d.ts +11 -1
- package/lib/import/validators/fields/ImportField.js +6 -1
- package/lib/import/validators/fields/ImportGroup.d.ts +345 -0
- package/lib/import/validators/fields/ImportGroup.js +27 -0
- package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.d.ts +5 -3
- package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.js +4 -4
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.d.ts +0 -1
- package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.js +0 -1
- package/lib/import/validators/fields/RepeatableZone.d.ts +11 -0
- package/lib/import/validators/fields/RepeatableZone.js +14 -0
- package/lib/import/validators/fields/RepeatableZoneItem.d.ts +11 -0
- package/lib/import/validators/fields/RepeatableZoneItem.js +39 -0
- package/lib/import/validators/fields/index.d.ts +2 -0
- package/lib/import/validators/fields/index.js +2 -0
- package/lib/import/validators/fields/nestable/Nestable.d.ts +60 -0
- package/lib/import/validators/fields/nestable/Nestable.js +32 -30
- package/package.json +1 -1
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +1 -0
- package/src/import/converters/Document.ts +7 -1
- package/src/import/converters/fields/Group.ts +18 -0
- package/src/import/converters/fields/RepeatableZone.ts +19 -0
- package/src/import/converters/fields/RepeatableZoneItem.ts +32 -0
- package/src/import/converters/fields/Slices/SharedSliceContent.ts +9 -76
- package/src/import/converters/fields/index.ts +1 -0
- package/src/import/validators/fields/ImportField.ts +7 -2
- package/src/import/validators/fields/ImportGroup.ts +45 -0
- package/src/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.ts +6 -18
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/index.ts +0 -1
- package/src/import/validators/fields/RepeatableZone.ts +21 -0
- package/src/import/validators/fields/RepeatableZoneItem.ts +64 -0
- package/src/import/validators/fields/index.ts +2 -0
- package/src/import/validators/fields/nestable/Nestable.ts +34 -31
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceContent/SharedSliceContent.ts +0 -64
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceContent/SharedSliceContentEntry.ts +0 -100
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceContent/errors.ts +0 -10
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceContent/index.ts +0 -2
- package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceContent/types.ts +0 -1
- package/src/utils/io-ts.ts +0 -29
|
@@ -341,7 +341,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
341
341
|
} | {
|
|
342
342
|
start: number;
|
|
343
343
|
end: number;
|
|
344
|
-
type: "strong" | "em";
|
|
344
|
+
type: "strong" | "em" | "list-item";
|
|
345
345
|
})[], ({
|
|
346
346
|
data: ({
|
|
347
347
|
__TYPE__: "ImageLink";
|
|
@@ -393,7 +393,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
393
393
|
} | {
|
|
394
394
|
start: number;
|
|
395
395
|
end: number;
|
|
396
|
-
type: "strong" | "em";
|
|
396
|
+
type: "strong" | "em" | "list-item";
|
|
397
397
|
})[], unknown>;
|
|
398
398
|
}>]>;
|
|
399
399
|
}>, t.PartialC<{
|
|
@@ -736,7 +736,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
736
736
|
} | {
|
|
737
737
|
start: number;
|
|
738
738
|
end: number;
|
|
739
|
-
type: "strong" | "em";
|
|
739
|
+
type: "strong" | "em" | "list-item";
|
|
740
740
|
})[], ({
|
|
741
741
|
data: ({
|
|
742
742
|
__TYPE__: "ImageLink";
|
|
@@ -788,7 +788,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
788
788
|
} | {
|
|
789
789
|
start: number;
|
|
790
790
|
end: number;
|
|
791
|
-
type: "strong" | "em";
|
|
791
|
+
type: "strong" | "em" | "list-item";
|
|
792
792
|
})[], unknown>;
|
|
793
793
|
}>]>;
|
|
794
794
|
}>, t.PartialC<{
|
|
@@ -1133,7 +1133,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1133
1133
|
} | {
|
|
1134
1134
|
start: number;
|
|
1135
1135
|
end: number;
|
|
1136
|
-
type: "strong" | "em";
|
|
1136
|
+
type: "strong" | "em" | "list-item";
|
|
1137
1137
|
})[], ({
|
|
1138
1138
|
data: ({
|
|
1139
1139
|
__TYPE__: "ImageLink";
|
|
@@ -1185,7 +1185,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1185
1185
|
} | {
|
|
1186
1186
|
start: number;
|
|
1187
1187
|
end: number;
|
|
1188
|
-
type: "strong" | "em";
|
|
1188
|
+
type: "strong" | "em" | "list-item";
|
|
1189
1189
|
})[], unknown>;
|
|
1190
1190
|
}>]>;
|
|
1191
1191
|
}>, t.PartialC<{
|
|
@@ -1528,7 +1528,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1528
1528
|
} | {
|
|
1529
1529
|
start: number;
|
|
1530
1530
|
end: number;
|
|
1531
|
-
type: "strong" | "em";
|
|
1531
|
+
type: "strong" | "em" | "list-item";
|
|
1532
1532
|
})[], ({
|
|
1533
1533
|
data: ({
|
|
1534
1534
|
__TYPE__: "ImageLink";
|
|
@@ -1580,7 +1580,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1580
1580
|
} | {
|
|
1581
1581
|
start: number;
|
|
1582
1582
|
end: number;
|
|
1583
|
-
type: "strong" | "em";
|
|
1583
|
+
type: "strong" | "em" | "list-item";
|
|
1584
1584
|
})[], unknown>;
|
|
1585
1585
|
}>]>;
|
|
1586
1586
|
}>, t.PartialC<{
|
|
@@ -1922,7 +1922,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1922
1922
|
} | {
|
|
1923
1923
|
start: number;
|
|
1924
1924
|
end: number;
|
|
1925
|
-
type: "strong" | "em";
|
|
1925
|
+
type: "strong" | "em" | "list-item";
|
|
1926
1926
|
})[], ({
|
|
1927
1927
|
data: ({
|
|
1928
1928
|
__TYPE__: "ImageLink";
|
|
@@ -1974,7 +1974,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1974
1974
|
} | {
|
|
1975
1975
|
start: number;
|
|
1976
1976
|
end: number;
|
|
1977
|
-
type: "strong" | "em";
|
|
1977
|
+
type: "strong" | "em" | "list-item";
|
|
1978
1978
|
})[], unknown>;
|
|
1979
1979
|
}>]>;
|
|
1980
1980
|
}>, t.PartialC<{
|
|
@@ -2318,7 +2318,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2318
2318
|
} | {
|
|
2319
2319
|
start: number;
|
|
2320
2320
|
end: number;
|
|
2321
|
-
type: "strong" | "em";
|
|
2321
|
+
type: "strong" | "em" | "list-item";
|
|
2322
2322
|
})[], ({
|
|
2323
2323
|
data: ({
|
|
2324
2324
|
__TYPE__: "ImageLink";
|
|
@@ -2370,7 +2370,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2370
2370
|
} | {
|
|
2371
2371
|
start: number;
|
|
2372
2372
|
end: number;
|
|
2373
|
-
type: "strong" | "em";
|
|
2373
|
+
type: "strong" | "em" | "list-item";
|
|
2374
2374
|
})[], unknown>;
|
|
2375
2375
|
}>]>;
|
|
2376
2376
|
}>, t.PartialC<{
|
|
@@ -2703,7 +2703,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2703
2703
|
} | {
|
|
2704
2704
|
start: number;
|
|
2705
2705
|
end: number;
|
|
2706
|
-
type: "strong" | "em";
|
|
2706
|
+
type: "strong" | "em" | "list-item";
|
|
2707
2707
|
})[];
|
|
2708
2708
|
};
|
|
2709
2709
|
} & {
|
|
@@ -3019,7 +3019,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3019
3019
|
} | {
|
|
3020
3020
|
start: number;
|
|
3021
3021
|
end: number;
|
|
3022
|
-
type: "strong" | "em";
|
|
3022
|
+
type: "strong" | "em" | "list-item";
|
|
3023
3023
|
})[];
|
|
3024
3024
|
};
|
|
3025
3025
|
} & {
|
|
@@ -3336,7 +3336,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3336
3336
|
} | {
|
|
3337
3337
|
start: number;
|
|
3338
3338
|
end: number;
|
|
3339
|
-
type: "strong" | "em";
|
|
3339
|
+
type: "strong" | "em" | "list-item";
|
|
3340
3340
|
})[];
|
|
3341
3341
|
};
|
|
3342
3342
|
} & {
|
|
@@ -3652,7 +3652,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3652
3652
|
} | {
|
|
3653
3653
|
start: number;
|
|
3654
3654
|
end: number;
|
|
3655
|
-
type: "strong" | "em";
|
|
3655
|
+
type: "strong" | "em" | "list-item";
|
|
3656
3656
|
})[];
|
|
3657
3657
|
};
|
|
3658
3658
|
} & {
|
|
@@ -3970,7 +3970,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3970
3970
|
} | {
|
|
3971
3971
|
start: number;
|
|
3972
3972
|
end: number;
|
|
3973
|
-
type: "strong" | "em";
|
|
3973
|
+
type: "strong" | "em" | "list-item";
|
|
3974
3974
|
})[];
|
|
3975
3975
|
};
|
|
3976
3976
|
} & {
|
|
@@ -4286,7 +4286,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
4286
4286
|
} | {
|
|
4287
4287
|
start: number;
|
|
4288
4288
|
end: number;
|
|
4289
|
-
type: "strong" | "em";
|
|
4289
|
+
type: "strong" | "em" | "list-item";
|
|
4290
4290
|
})[];
|
|
4291
4291
|
};
|
|
4292
4292
|
} & {
|
|
@@ -312,7 +312,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
312
312
|
} | {
|
|
313
313
|
start: number;
|
|
314
314
|
end: number;
|
|
315
|
-
type: "strong" | "em";
|
|
315
|
+
type: "strong" | "em" | "list-item";
|
|
316
316
|
})[];
|
|
317
317
|
};
|
|
318
318
|
} & {
|
|
@@ -628,7 +628,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
628
628
|
} | {
|
|
629
629
|
start: number;
|
|
630
630
|
end: number;
|
|
631
|
-
type: "strong" | "em";
|
|
631
|
+
type: "strong" | "em" | "list-item";
|
|
632
632
|
})[];
|
|
633
633
|
};
|
|
634
634
|
} & {
|
|
@@ -945,7 +945,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
945
945
|
} | {
|
|
946
946
|
start: number;
|
|
947
947
|
end: number;
|
|
948
|
-
type: "strong" | "em";
|
|
948
|
+
type: "strong" | "em" | "list-item";
|
|
949
949
|
})[];
|
|
950
950
|
};
|
|
951
951
|
} & {
|
|
@@ -1261,7 +1261,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1261
1261
|
} | {
|
|
1262
1262
|
start: number;
|
|
1263
1263
|
end: number;
|
|
1264
|
-
type: "strong" | "em";
|
|
1264
|
+
type: "strong" | "em" | "list-item";
|
|
1265
1265
|
})[];
|
|
1266
1266
|
};
|
|
1267
1267
|
} & {
|
|
@@ -1579,7 +1579,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1579
1579
|
} | {
|
|
1580
1580
|
start: number;
|
|
1581
1581
|
end: number;
|
|
1582
|
-
type: "strong" | "em";
|
|
1582
|
+
type: "strong" | "em" | "list-item";
|
|
1583
1583
|
})[];
|
|
1584
1584
|
};
|
|
1585
1585
|
} & {
|
|
@@ -1895,7 +1895,7 @@ export declare const isSlicesContent: (u: unknown) => u is {
|
|
|
1895
1895
|
} | {
|
|
1896
1896
|
start: number;
|
|
1897
1897
|
end: number;
|
|
1898
|
-
type: "strong" | "em";
|
|
1898
|
+
type: "strong" | "em" | "list-item";
|
|
1899
1899
|
})[];
|
|
1900
1900
|
};
|
|
1901
1901
|
} & {
|
|
@@ -2219,7 +2219,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2219
2219
|
} | {
|
|
2220
2220
|
start: number;
|
|
2221
2221
|
end: number;
|
|
2222
|
-
type: "strong" | "em";
|
|
2222
|
+
type: "strong" | "em" | "list-item";
|
|
2223
2223
|
})[];
|
|
2224
2224
|
};
|
|
2225
2225
|
} & {
|
|
@@ -2535,7 +2535,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2535
2535
|
} | {
|
|
2536
2536
|
start: number;
|
|
2537
2537
|
end: number;
|
|
2538
|
-
type: "strong" | "em";
|
|
2538
|
+
type: "strong" | "em" | "list-item";
|
|
2539
2539
|
})[];
|
|
2540
2540
|
};
|
|
2541
2541
|
} & {
|
|
@@ -2852,7 +2852,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2852
2852
|
} | {
|
|
2853
2853
|
start: number;
|
|
2854
2854
|
end: number;
|
|
2855
|
-
type: "strong" | "em";
|
|
2855
|
+
type: "strong" | "em" | "list-item";
|
|
2856
2856
|
})[];
|
|
2857
2857
|
};
|
|
2858
2858
|
} & {
|
|
@@ -3168,7 +3168,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3168
3168
|
} | {
|
|
3169
3169
|
start: number;
|
|
3170
3170
|
end: number;
|
|
3171
|
-
type: "strong" | "em";
|
|
3171
|
+
type: "strong" | "em" | "list-item";
|
|
3172
3172
|
})[];
|
|
3173
3173
|
};
|
|
3174
3174
|
} & {
|
|
@@ -3486,7 +3486,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3486
3486
|
} | {
|
|
3487
3487
|
start: number;
|
|
3488
3488
|
end: number;
|
|
3489
|
-
type: "strong" | "em";
|
|
3489
|
+
type: "strong" | "em" | "list-item";
|
|
3490
3490
|
})[];
|
|
3491
3491
|
};
|
|
3492
3492
|
} & {
|
|
@@ -3802,7 +3802,7 @@ export declare const SlicesLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3802
3802
|
} | {
|
|
3803
3803
|
start: number;
|
|
3804
3804
|
end: number;
|
|
3805
|
-
type: "strong" | "em";
|
|
3805
|
+
type: "strong" | "em" | "list-item";
|
|
3806
3806
|
})[];
|
|
3807
3807
|
};
|
|
3808
3808
|
} & {
|
|
@@ -4155,7 +4155,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4155
4155
|
} | {
|
|
4156
4156
|
start: number;
|
|
4157
4157
|
end: number;
|
|
4158
|
-
type: "strong" | "em";
|
|
4158
|
+
type: "strong" | "em" | "list-item";
|
|
4159
4159
|
})[], ({
|
|
4160
4160
|
data: ({
|
|
4161
4161
|
__TYPE__: "ImageLink";
|
|
@@ -4207,7 +4207,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4207
4207
|
} | {
|
|
4208
4208
|
start: number;
|
|
4209
4209
|
end: number;
|
|
4210
|
-
type: "strong" | "em";
|
|
4210
|
+
type: "strong" | "em" | "list-item";
|
|
4211
4211
|
})[], unknown>;
|
|
4212
4212
|
}>]>;
|
|
4213
4213
|
}>, t.PartialC<{
|
|
@@ -4550,7 +4550,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4550
4550
|
} | {
|
|
4551
4551
|
start: number;
|
|
4552
4552
|
end: number;
|
|
4553
|
-
type: "strong" | "em";
|
|
4553
|
+
type: "strong" | "em" | "list-item";
|
|
4554
4554
|
})[], ({
|
|
4555
4555
|
data: ({
|
|
4556
4556
|
__TYPE__: "ImageLink";
|
|
@@ -4602,7 +4602,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4602
4602
|
} | {
|
|
4603
4603
|
start: number;
|
|
4604
4604
|
end: number;
|
|
4605
|
-
type: "strong" | "em";
|
|
4605
|
+
type: "strong" | "em" | "list-item";
|
|
4606
4606
|
})[], unknown>;
|
|
4607
4607
|
}>]>;
|
|
4608
4608
|
}>, t.PartialC<{
|
|
@@ -4947,7 +4947,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4947
4947
|
} | {
|
|
4948
4948
|
start: number;
|
|
4949
4949
|
end: number;
|
|
4950
|
-
type: "strong" | "em";
|
|
4950
|
+
type: "strong" | "em" | "list-item";
|
|
4951
4951
|
})[], ({
|
|
4952
4952
|
data: ({
|
|
4953
4953
|
__TYPE__: "ImageLink";
|
|
@@ -4999,7 +4999,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4999
4999
|
} | {
|
|
5000
5000
|
start: number;
|
|
5001
5001
|
end: number;
|
|
5002
|
-
type: "strong" | "em";
|
|
5002
|
+
type: "strong" | "em" | "list-item";
|
|
5003
5003
|
})[], unknown>;
|
|
5004
5004
|
}>]>;
|
|
5005
5005
|
}>, t.PartialC<{
|
|
@@ -5342,7 +5342,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5342
5342
|
} | {
|
|
5343
5343
|
start: number;
|
|
5344
5344
|
end: number;
|
|
5345
|
-
type: "strong" | "em";
|
|
5345
|
+
type: "strong" | "em" | "list-item";
|
|
5346
5346
|
})[], ({
|
|
5347
5347
|
data: ({
|
|
5348
5348
|
__TYPE__: "ImageLink";
|
|
@@ -5394,7 +5394,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5394
5394
|
} | {
|
|
5395
5395
|
start: number;
|
|
5396
5396
|
end: number;
|
|
5397
|
-
type: "strong" | "em";
|
|
5397
|
+
type: "strong" | "em" | "list-item";
|
|
5398
5398
|
})[], unknown>;
|
|
5399
5399
|
}>]>;
|
|
5400
5400
|
}>, t.PartialC<{
|
|
@@ -5736,7 +5736,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5736
5736
|
} | {
|
|
5737
5737
|
start: number;
|
|
5738
5738
|
end: number;
|
|
5739
|
-
type: "strong" | "em";
|
|
5739
|
+
type: "strong" | "em" | "list-item";
|
|
5740
5740
|
})[], ({
|
|
5741
5741
|
data: ({
|
|
5742
5742
|
__TYPE__: "ImageLink";
|
|
@@ -5788,7 +5788,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5788
5788
|
} | {
|
|
5789
5789
|
start: number;
|
|
5790
5790
|
end: number;
|
|
5791
|
-
type: "strong" | "em";
|
|
5791
|
+
type: "strong" | "em" | "list-item";
|
|
5792
5792
|
})[], unknown>;
|
|
5793
5793
|
}>]>;
|
|
5794
5794
|
}>, t.PartialC<{
|
|
@@ -6132,7 +6132,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6132
6132
|
} | {
|
|
6133
6133
|
start: number;
|
|
6134
6134
|
end: number;
|
|
6135
|
-
type: "strong" | "em";
|
|
6135
|
+
type: "strong" | "em" | "list-item";
|
|
6136
6136
|
})[], ({
|
|
6137
6137
|
data: ({
|
|
6138
6138
|
__TYPE__: "ImageLink";
|
|
@@ -6184,7 +6184,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6184
6184
|
} | {
|
|
6185
6185
|
start: number;
|
|
6186
6186
|
end: number;
|
|
6187
|
-
type: "strong" | "em";
|
|
6187
|
+
type: "strong" | "em" | "list-item";
|
|
6188
6188
|
})[], unknown>;
|
|
6189
6189
|
}>]>;
|
|
6190
6190
|
}>, t.PartialC<{
|
|
@@ -13,6 +13,8 @@ function convertWidget(field, assets, embeds) {
|
|
|
13
13
|
switch (field.type) {
|
|
14
14
|
case "Slices":
|
|
15
15
|
return (0, fields_1.importSlicesConverter)(field.value, assets, embeds);
|
|
16
|
+
case "Group":
|
|
17
|
+
return (0, fields_1.importGroupConverter)(field.value, assets, embeds);
|
|
16
18
|
default:
|
|
17
19
|
return (0, fields_1.convertNestableWidget)(field, assets, embeds);
|
|
18
20
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Asset, Embed } from "../../../common";
|
|
2
|
+
import type { GroupContent } from "../../../content";
|
|
3
|
+
import type { ImportGroup } from "../../validators/fields/ImportGroup";
|
|
4
|
+
export declare const importGroupConverter: (field: ImportGroup["value"], assets: Record<Asset["id"], Asset | undefined>, embeds: Record<string, Embed | undefined>) => GroupContent | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.importGroupConverter = void 0;
|
|
4
|
+
const content_1 = require("../../../content");
|
|
5
|
+
const RepeatableZone_1 = require("./RepeatableZone");
|
|
6
|
+
const importGroupConverter = (field, assets, embeds) => {
|
|
7
|
+
if (field === null)
|
|
8
|
+
return;
|
|
9
|
+
return {
|
|
10
|
+
__TYPE__: content_1.GroupContentType,
|
|
11
|
+
value: (0, RepeatableZone_1.repeatableZoneConverter)(field, assets, embeds),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
exports.importGroupConverter = importGroupConverter;
|