@prismicio/types-internal 3.5.0 → 3.6.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 +1927 -1579
- package/lib/content/fields/GroupContent.js +6 -9
- package/lib/content/fields/RepeatableContent.d.ts +51 -123
- package/lib/content/fields/RepeatableContent.js +10 -14
- package/lib/content/fields/WidgetContent.d.ts +2015 -1667
- package/lib/content/fields/nestable/NestableContent.d.ts +312 -254
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +301 -0
- package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
- package/lib/content/fields/nestable/TableContent.d.ts +410 -913
- package/lib/content/fields/nestable/TableContent.js +38 -57
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +624 -508
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +128 -118
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +624 -508
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +312 -254
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +312 -254
- package/lib/content/fields/slices/Slice/index.d.ts +1103 -933
- package/lib/content/fields/slices/SliceItem.d.ts +1100 -930
- package/lib/content/fields/slices/SlicesContent.d.ts +1563 -1273
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +8 -16
- package/src/content/fields/nestable/RichTextContent/index.ts +6 -6
- package/src/content/fields/nestable/TableContent.ts +48 -81
|
@@ -438,127 +438,137 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
438
438
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
439
439
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
440
440
|
type: t.LiteralC<"tableRow">;
|
|
441
|
-
content: t.ArrayC<t.
|
|
442
|
-
type: t.LiteralC<"tableHeader">;
|
|
441
|
+
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
442
|
+
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
443
443
|
content: t.ExactC<t.TypeC<{
|
|
444
444
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
445
|
-
value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
446
|
-
type: t.
|
|
447
|
-
|
|
448
|
-
|
|
445
|
+
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
446
|
+
type: t.LiteralC<"image">;
|
|
447
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
448
|
+
origin: t.ExactC<t.TypeC<{
|
|
449
|
+
id: t.StringC;
|
|
450
|
+
url: t.StringC;
|
|
451
|
+
width: t.NumberC;
|
|
452
|
+
height: t.NumberC;
|
|
453
|
+
}>>;
|
|
454
|
+
width: t.NumberC;
|
|
455
|
+
height: t.NumberC;
|
|
456
|
+
edit: t.TypeC<{
|
|
457
|
+
zoom: t.NumberC;
|
|
458
|
+
crop: t.TypeC<{
|
|
459
|
+
x: t.NumberC;
|
|
460
|
+
y: t.NumberC;
|
|
461
|
+
}>;
|
|
462
|
+
background: t.StringC;
|
|
463
|
+
}>;
|
|
449
464
|
}>, t.PartialC<{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
__TYPE__: "ExternalLink";
|
|
529
|
-
} & {
|
|
530
|
-
url: string;
|
|
531
|
-
} & {
|
|
532
|
-
kind?: "web";
|
|
533
|
-
target?: string | null | undefined;
|
|
534
|
-
preview?: {
|
|
535
|
-
title?: string;
|
|
536
|
-
} | null | undefined;
|
|
537
|
-
});
|
|
538
|
-
start: number;
|
|
539
|
-
end: number;
|
|
540
|
-
type: "hyperlink";
|
|
541
|
-
} | {
|
|
542
|
-
data: string;
|
|
543
|
-
start: number;
|
|
544
|
-
end: number;
|
|
545
|
-
type: "label";
|
|
546
|
-
} | {
|
|
547
|
-
start: number;
|
|
548
|
-
end: number;
|
|
549
|
-
type: "strong" | "em" | "list-item";
|
|
550
|
-
})[], unknown>;
|
|
465
|
+
url: t.StringC;
|
|
466
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
467
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
468
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
469
|
+
}>]>>, t.PartialC<{
|
|
470
|
+
linkTo: t.UnionC<[t.Type<({
|
|
471
|
+
__TYPE__: "ImageLink";
|
|
472
|
+
} & {
|
|
473
|
+
kind: "image";
|
|
474
|
+
id: string;
|
|
475
|
+
url: string;
|
|
476
|
+
height: string;
|
|
477
|
+
width: string;
|
|
478
|
+
size: string;
|
|
479
|
+
name: string;
|
|
480
|
+
} & {
|
|
481
|
+
date?: string | null | undefined;
|
|
482
|
+
}) | ({
|
|
483
|
+
__TYPE__: "FileLink";
|
|
484
|
+
} & {
|
|
485
|
+
kind: "file";
|
|
486
|
+
id: string;
|
|
487
|
+
url: string;
|
|
488
|
+
name: string;
|
|
489
|
+
size: string;
|
|
490
|
+
} & {
|
|
491
|
+
date?: string | null | undefined;
|
|
492
|
+
}) | ({
|
|
493
|
+
__TYPE__: "DocumentLink";
|
|
494
|
+
} & {
|
|
495
|
+
id: string;
|
|
496
|
+
}) | ({
|
|
497
|
+
__TYPE__: "ExternalLink";
|
|
498
|
+
} & {
|
|
499
|
+
url: string;
|
|
500
|
+
} & {
|
|
501
|
+
kind?: "web";
|
|
502
|
+
target?: string | null | undefined;
|
|
503
|
+
preview?: {
|
|
504
|
+
title?: string;
|
|
505
|
+
} | null | undefined;
|
|
506
|
+
}), ({
|
|
507
|
+
__TYPE__: "ImageLink";
|
|
508
|
+
} & {
|
|
509
|
+
kind: "image";
|
|
510
|
+
id: string;
|
|
511
|
+
url: string;
|
|
512
|
+
height: string;
|
|
513
|
+
width: string;
|
|
514
|
+
size: string;
|
|
515
|
+
name: string;
|
|
516
|
+
} & {
|
|
517
|
+
date?: string | null | undefined;
|
|
518
|
+
}) | ({
|
|
519
|
+
__TYPE__: "FileLink";
|
|
520
|
+
} & {
|
|
521
|
+
kind: "file";
|
|
522
|
+
id: string;
|
|
523
|
+
url: string;
|
|
524
|
+
name: string;
|
|
525
|
+
size: string;
|
|
526
|
+
} & {
|
|
527
|
+
date?: string | null | undefined;
|
|
528
|
+
}) | ({
|
|
529
|
+
__TYPE__: "DocumentLink";
|
|
530
|
+
} & {
|
|
531
|
+
id: string;
|
|
532
|
+
}) | ({
|
|
533
|
+
__TYPE__: "ExternalLink";
|
|
534
|
+
} & {
|
|
535
|
+
url: string;
|
|
536
|
+
} & {
|
|
537
|
+
kind?: "web";
|
|
538
|
+
target?: string | null | undefined;
|
|
539
|
+
preview?: {
|
|
540
|
+
title?: string;
|
|
541
|
+
} | null | undefined;
|
|
542
|
+
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
551
543
|
}>]>;
|
|
552
544
|
}>, t.PartialC<{
|
|
553
|
-
label: t.
|
|
554
|
-
direction: t.
|
|
555
|
-
}>]
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
545
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
546
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
547
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
548
|
+
type: t.LiteralC<"embed">;
|
|
549
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
550
|
+
embed_url: t.StringC;
|
|
551
|
+
type: t.StringC;
|
|
552
|
+
}>, t.PartialC<{
|
|
553
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
554
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
555
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
556
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
557
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
558
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
559
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
560
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
561
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
562
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
563
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
564
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
565
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
566
|
+
all: t.UnknownC;
|
|
567
|
+
}>>]>;
|
|
568
|
+
}>, t.PartialC<{
|
|
569
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
570
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
571
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
562
572
|
type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
|
|
563
573
|
content: t.IntersectionC<[t.TypeC<{
|
|
564
574
|
text: t.StringC;
|
|
@@ -668,9 +678,9 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
668
678
|
}>, t.PartialC<{
|
|
669
679
|
label: t.StringC;
|
|
670
680
|
direction: t.StringC;
|
|
671
|
-
}>]
|
|
681
|
+
}>]>>]>>;
|
|
672
682
|
}>>;
|
|
673
|
-
}
|
|
683
|
+
}>>>;
|
|
674
684
|
}>>>;
|
|
675
685
|
}>>, t.ExactC<t.TypeC<{
|
|
676
686
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|