@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.
@@ -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.UnionC<[t.ExactC<t.TypeC<{
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.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>;
447
- content: t.IntersectionC<[t.TypeC<{
448
- text: t.StringC;
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
- spans: t.Type<({
451
- data: ({
452
- __TYPE__: "ImageLink";
453
- } & {
454
- kind: "image";
455
- id: string;
456
- url: string;
457
- height: string;
458
- width: string;
459
- size: string;
460
- name: string;
461
- } & {
462
- date?: string | null | undefined;
463
- }) | ({
464
- __TYPE__: "FileLink";
465
- } & {
466
- kind: "file";
467
- id: string;
468
- url: string;
469
- name: string;
470
- size: string;
471
- } & {
472
- date?: string | null | undefined;
473
- }) | ({
474
- __TYPE__: "DocumentLink";
475
- } & {
476
- id: string;
477
- }) | ({
478
- __TYPE__: "ExternalLink";
479
- } & {
480
- url: string;
481
- } & {
482
- kind?: "web";
483
- target?: string | null | undefined;
484
- preview?: {
485
- title?: string;
486
- } | null | undefined;
487
- });
488
- start: number;
489
- end: number;
490
- type: "hyperlink";
491
- } | {
492
- data: string;
493
- start: number;
494
- end: number;
495
- type: "label";
496
- } | {
497
- start: number;
498
- end: number;
499
- type: "strong" | "em" | "list-item";
500
- })[], ({
501
- data: ({
502
- __TYPE__: "ImageLink";
503
- } & {
504
- kind: "image";
505
- id: string;
506
- url: string;
507
- height: string;
508
- width: string;
509
- size: string;
510
- name: string;
511
- } & {
512
- date?: string | null | undefined;
513
- }) | ({
514
- __TYPE__: "FileLink";
515
- } & {
516
- kind: "file";
517
- id: string;
518
- url: string;
519
- name: string;
520
- size: string;
521
- } & {
522
- date?: string | null | undefined;
523
- }) | ({
524
- __TYPE__: "DocumentLink";
525
- } & {
526
- id: string;
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.StringC;
554
- direction: t.StringC;
555
- }>]>>>;
556
- }>>;
557
- }>>, t.ExactC<t.TypeC<{
558
- type: t.LiteralC<"tableCell">;
559
- content: t.ExactC<t.TypeC<{
560
- __TYPE__: t.LiteralC<"StructuredTextContent">;
561
- value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
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">;