@prismicio/types-internal 2.2.0-alpha.22 → 2.2.0-alpha.23
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 +936 -24
- package/lib/content/fields/GroupContent.d.ts +273 -7
- package/lib/content/fields/WidgetContent.d.ts +1248 -32
- package/lib/content/fields/nestable/NestableContent.d.ts +156 -4
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +582 -28
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +29 -46
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +195 -5
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +312 -8
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +117 -3
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +312 -8
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +312 -8
- package/lib/content/fields/slices/Slice/index.d.ts +702 -18
- package/lib/content/fields/slices/SliceItem.d.ts +702 -18
- package/lib/content/fields/slices/SlicesContent.d.ts +936 -24
- package/lib/import/converters/fields/nestable/Image.d.ts +25 -3
- package/lib/import/converters/fields/nestable/Image.js +5 -8
- package/lib/import/converters/fields/nestable/RichText/embedBlock.d.ts +4 -0
- package/lib/import/converters/fields/nestable/RichText/embedBlock.js +14 -0
- package/lib/import/converters/fields/nestable/RichText/imageBlock.d.ts +4 -0
- package/lib/import/converters/fields/nestable/RichText/imageBlock.js +12 -0
- package/lib/import/converters/fields/nestable/{RichText.d.ts → RichText/index.d.ts} +3 -3
- package/lib/import/converters/fields/nestable/RichText/index.js +22 -0
- package/lib/import/converters/fields/nestable/RichText/textBlock.d.ts +4 -0
- package/lib/import/converters/fields/nestable/RichText/textBlock.js +41 -0
- package/lib/import/converters/fields/nestable/index.d.ts +1 -1
- package/lib/import/converters/fields/nestable/index.js +1 -1
- package/package.json +1 -1
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +48 -58
- package/src/import/converters/fields/nestable/Image.ts +3 -13
- package/src/import/converters/fields/nestable/RichText/embedBlock.ts +17 -0
- package/src/import/converters/fields/nestable/RichText/imageBlock.ts +17 -0
- package/src/import/converters/fields/nestable/RichText/index.ts +23 -0
- package/src/import/converters/fields/nestable/RichText/textBlock.ts +48 -0
- package/src/import/converters/fields/nestable/index.ts +1 -1
- package/lib/import/converters/fields/nestable/RichText.js +0 -55
- package/src/import/converters/fields/nestable/RichText.ts +0 -62
- /package/lib/import/converters/fields/nestable/{GeooPoint.d.ts → GeoPoint.d.ts} +0 -0
- /package/lib/import/converters/fields/nestable/{GeooPoint.js → GeoPoint.js} +0 -0
- /package/src/import/converters/fields/nestable/{GeooPoint.ts → GeoPoint.ts} +0 -0
|
@@ -281,13 +281,89 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
281
281
|
text: t.StringC;
|
|
282
282
|
}>, t.PartialC<{
|
|
283
283
|
spans: t.Type<({
|
|
284
|
-
data?:
|
|
284
|
+
data?: ({
|
|
285
|
+
__TYPE__: "ImageLink";
|
|
286
|
+
} & {
|
|
287
|
+
id: string;
|
|
288
|
+
url: string;
|
|
289
|
+
height: string;
|
|
290
|
+
width: string;
|
|
291
|
+
size: string;
|
|
292
|
+
name: string;
|
|
293
|
+
kind: string;
|
|
294
|
+
} & {
|
|
295
|
+
date?: string | null | undefined;
|
|
296
|
+
}) | ({
|
|
297
|
+
id: string;
|
|
298
|
+
url: string;
|
|
299
|
+
name: string;
|
|
300
|
+
kind: string;
|
|
301
|
+
size: string;
|
|
302
|
+
} & {
|
|
303
|
+
date?: string | null | undefined;
|
|
304
|
+
} & {
|
|
305
|
+
__TYPE__: "FileLink";
|
|
306
|
+
} & {
|
|
307
|
+
size?: string;
|
|
308
|
+
}) | ({
|
|
309
|
+
__TYPE__: "DocumentLink";
|
|
310
|
+
} & {
|
|
311
|
+
id: string;
|
|
312
|
+
}) | ({
|
|
313
|
+
__TYPE__: "ExternalLink";
|
|
314
|
+
} & {
|
|
315
|
+
url: string;
|
|
316
|
+
} & {
|
|
317
|
+
kind?: "web";
|
|
318
|
+
target?: string | null | undefined;
|
|
319
|
+
preview?: {
|
|
320
|
+
title?: string;
|
|
321
|
+
} | null | undefined;
|
|
322
|
+
});
|
|
285
323
|
} & {
|
|
286
324
|
start: number;
|
|
287
325
|
end: number;
|
|
288
326
|
type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
289
327
|
})[], ({
|
|
290
|
-
data?:
|
|
328
|
+
data?: ({
|
|
329
|
+
__TYPE__: "ImageLink";
|
|
330
|
+
} & {
|
|
331
|
+
id: string;
|
|
332
|
+
url: string;
|
|
333
|
+
height: string;
|
|
334
|
+
width: string;
|
|
335
|
+
size: string;
|
|
336
|
+
name: string;
|
|
337
|
+
kind: string;
|
|
338
|
+
} & {
|
|
339
|
+
date?: string | null | undefined;
|
|
340
|
+
}) | ({
|
|
341
|
+
id: string;
|
|
342
|
+
url: string;
|
|
343
|
+
name: string;
|
|
344
|
+
kind: string;
|
|
345
|
+
size: string;
|
|
346
|
+
} & {
|
|
347
|
+
date?: string | null | undefined;
|
|
348
|
+
} & {
|
|
349
|
+
__TYPE__: "FileLink";
|
|
350
|
+
} & {
|
|
351
|
+
size?: string;
|
|
352
|
+
}) | ({
|
|
353
|
+
__TYPE__: "DocumentLink";
|
|
354
|
+
} & {
|
|
355
|
+
id: string;
|
|
356
|
+
}) | ({
|
|
357
|
+
__TYPE__: "ExternalLink";
|
|
358
|
+
} & {
|
|
359
|
+
url: string;
|
|
360
|
+
} & {
|
|
361
|
+
kind?: "web";
|
|
362
|
+
target?: string | null | undefined;
|
|
363
|
+
preview?: {
|
|
364
|
+
title?: string;
|
|
365
|
+
} | null | undefined;
|
|
366
|
+
});
|
|
291
367
|
} & {
|
|
292
368
|
start: number;
|
|
293
369
|
end: number;
|
|
@@ -556,7 +632,45 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
556
632
|
text: string;
|
|
557
633
|
} & {
|
|
558
634
|
spans?: ({
|
|
559
|
-
data?:
|
|
635
|
+
data?: ({
|
|
636
|
+
__TYPE__: "ImageLink";
|
|
637
|
+
} & {
|
|
638
|
+
id: string;
|
|
639
|
+
url: string;
|
|
640
|
+
height: string;
|
|
641
|
+
width: string;
|
|
642
|
+
size: string;
|
|
643
|
+
name: string;
|
|
644
|
+
kind: string;
|
|
645
|
+
} & {
|
|
646
|
+
date?: string | null | undefined;
|
|
647
|
+
}) | ({
|
|
648
|
+
id: string;
|
|
649
|
+
url: string;
|
|
650
|
+
name: string;
|
|
651
|
+
kind: string;
|
|
652
|
+
size: string;
|
|
653
|
+
} & {
|
|
654
|
+
date?: string | null | undefined;
|
|
655
|
+
} & {
|
|
656
|
+
__TYPE__: "FileLink";
|
|
657
|
+
} & {
|
|
658
|
+
size?: string;
|
|
659
|
+
}) | ({
|
|
660
|
+
__TYPE__: "DocumentLink";
|
|
661
|
+
} & {
|
|
662
|
+
id: string;
|
|
663
|
+
}) | ({
|
|
664
|
+
__TYPE__: "ExternalLink";
|
|
665
|
+
} & {
|
|
666
|
+
url: string;
|
|
667
|
+
} & {
|
|
668
|
+
kind?: "web";
|
|
669
|
+
target?: string | null | undefined;
|
|
670
|
+
preview?: {
|
|
671
|
+
title?: string;
|
|
672
|
+
} | null | undefined;
|
|
673
|
+
});
|
|
560
674
|
} & {
|
|
561
675
|
start: number;
|
|
562
676
|
end: number;
|
|
@@ -824,7 +938,45 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
824
938
|
text: string;
|
|
825
939
|
} & {
|
|
826
940
|
spans?: ({
|
|
827
|
-
data?:
|
|
941
|
+
data?: ({
|
|
942
|
+
__TYPE__: "ImageLink";
|
|
943
|
+
} & {
|
|
944
|
+
id: string;
|
|
945
|
+
url: string;
|
|
946
|
+
height: string;
|
|
947
|
+
width: string;
|
|
948
|
+
size: string;
|
|
949
|
+
name: string;
|
|
950
|
+
kind: string;
|
|
951
|
+
} & {
|
|
952
|
+
date?: string | null | undefined;
|
|
953
|
+
}) | ({
|
|
954
|
+
id: string;
|
|
955
|
+
url: string;
|
|
956
|
+
name: string;
|
|
957
|
+
kind: string;
|
|
958
|
+
size: string;
|
|
959
|
+
} & {
|
|
960
|
+
date?: string | null | undefined;
|
|
961
|
+
} & {
|
|
962
|
+
__TYPE__: "FileLink";
|
|
963
|
+
} & {
|
|
964
|
+
size?: string;
|
|
965
|
+
}) | ({
|
|
966
|
+
__TYPE__: "DocumentLink";
|
|
967
|
+
} & {
|
|
968
|
+
id: string;
|
|
969
|
+
}) | ({
|
|
970
|
+
__TYPE__: "ExternalLink";
|
|
971
|
+
} & {
|
|
972
|
+
url: string;
|
|
973
|
+
} & {
|
|
974
|
+
kind?: "web";
|
|
975
|
+
target?: string | null | undefined;
|
|
976
|
+
preview?: {
|
|
977
|
+
title?: string;
|
|
978
|
+
} | null | undefined;
|
|
979
|
+
});
|
|
828
980
|
} & {
|
|
829
981
|
start: number;
|
|
830
982
|
end: number;
|