@prismicio/types-internal 3.4.0-alpha.2 → 3.4.0-alpha.4

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 (55) hide show
  1. package/lib/content/Document.d.ts +3305 -3323
  2. package/lib/content/fields/RepeatableContent.d.ts +51 -123
  3. package/lib/content/fields/RepeatableContent.js +10 -14
  4. package/lib/content/fields/WidgetContent.d.ts +3046 -3064
  5. package/lib/content/fields/nestable/NestableContent.d.ts +501 -504
  6. package/lib/content/fields/nestable/NestableContent.js +0 -7
  7. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
  8. package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
  9. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
  10. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
  11. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
  12. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
  13. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
  14. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
  15. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
  16. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
  17. package/lib/content/fields/nestable/RichTextContent/index.d.ts +637 -9
  18. package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
  19. package/lib/content/fields/nestable/TableContent.d.ts +245 -12
  20. package/lib/content/fields/nestable/TableContent.js +7 -7
  21. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1013 -1019
  22. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +234 -235
  23. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1013 -1019
  24. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +501 -504
  25. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +499 -502
  26. package/lib/content/fields/slices/Slice/index.d.ts +1852 -1862
  27. package/lib/content/fields/slices/SliceItem.d.ts +1957 -1967
  28. package/lib/content/fields/slices/SlicesContent.d.ts +2619 -2634
  29. package/lib/customtypes/CustomType.d.ts +0 -108
  30. package/lib/customtypes/Section.d.ts +0 -108
  31. package/lib/customtypes/diff/SharedSlice.d.ts +0 -48
  32. package/lib/customtypes/diff/Variation.d.ts +0 -48
  33. package/lib/customtypes/widgets/Group.d.ts +0 -36
  34. package/lib/customtypes/widgets/Widget.d.ts +0 -126
  35. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -6
  36. package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -2
  37. package/lib/customtypes/widgets/nestable/RichText.d.ts +2 -0
  38. package/lib/customtypes/widgets/nestable/RichText.js +2 -0
  39. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -12
  40. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -12
  41. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -48
  42. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -36
  43. package/lib/customtypes/widgets/slices/Slices.d.ts +0 -168
  44. package/package.json +1 -1
  45. package/src/content/fields/nestable/NestableContent.ts +0 -12
  46. package/src/content/fields/nestable/RichTextContent/Block.ts +35 -0
  47. package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +81 -0
  48. package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +42 -0
  49. package/src/content/fields/nestable/RichTextContent/TableBlock.ts +36 -0
  50. package/src/content/fields/nestable/RichTextContent/TextBlock.ts +108 -0
  51. package/src/content/fields/nestable/RichTextContent/index.ts +2 -2
  52. package/src/content/fields/nestable/TableContent.ts +6 -6
  53. package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -2
  54. package/src/customtypes/widgets/nestable/RichText.ts +2 -0
  55. package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
@@ -322,7 +322,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
322
322
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
323
323
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
324
324
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
325
- 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>;
325
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
326
326
  content: t.IntersectionC<[t.TypeC<{
327
327
  text: t.StringC;
328
328
  }>, t.PartialC<{
@@ -431,243 +431,242 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
431
431
  }>, t.PartialC<{
432
432
  label: t.StringC;
433
433
  direction: t.StringC;
434
- }>]>>]>>;
435
- }>>, t.ExactC<t.TypeC<{
436
- __TYPE__: t.LiteralC<"SeparatorContent">;
437
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
438
- content: t.ArrayC<t.ExactC<t.TypeC<{
439
- type: t.LiteralC<"tableRow">;
440
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
441
- type: t.LiteralC<"tableHeader">;
442
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
443
- 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>;
444
- content: t.IntersectionC<[t.TypeC<{
445
- text: t.StringC;
434
+ }>]>>, t.ExactC<t.TypeC<{
435
+ type: t.LiteralC<"table">;
436
+ content: t.ArrayC<t.ExactC<t.TypeC<{
437
+ type: t.LiteralC<"tableRow">;
438
+ content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
439
+ type: t.LiteralC<"tableHeader">;
440
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
441
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
442
+ content: t.IntersectionC<[t.TypeC<{
443
+ text: t.StringC;
444
+ }>, t.PartialC<{
445
+ spans: t.Type<({
446
+ data: ({
447
+ __TYPE__: "ImageLink";
448
+ } & {
449
+ kind: "image";
450
+ id: string;
451
+ url: string;
452
+ height: string;
453
+ width: string;
454
+ size: string;
455
+ name: string;
456
+ } & {
457
+ date?: string | null | undefined;
458
+ }) | ({
459
+ __TYPE__: "FileLink";
460
+ } & {
461
+ kind: "file";
462
+ id: string;
463
+ url: string;
464
+ name: string;
465
+ size: string;
466
+ } & {
467
+ date?: string | null | undefined;
468
+ }) | ({
469
+ __TYPE__: "DocumentLink";
470
+ } & {
471
+ id: string;
472
+ }) | ({
473
+ __TYPE__: "ExternalLink";
474
+ } & {
475
+ url: string;
476
+ } & {
477
+ kind?: "web";
478
+ target?: string | null | undefined;
479
+ preview?: {
480
+ title?: string;
481
+ } | null | undefined;
482
+ });
483
+ start: number;
484
+ end: number;
485
+ type: "hyperlink";
486
+ } | {
487
+ data: string;
488
+ start: number;
489
+ end: number;
490
+ type: "label";
491
+ } | {
492
+ start: number;
493
+ end: number;
494
+ type: "strong" | "em" | "list-item";
495
+ })[], ({
496
+ data: ({
497
+ __TYPE__: "ImageLink";
498
+ } & {
499
+ kind: "image";
500
+ id: string;
501
+ url: string;
502
+ height: string;
503
+ width: string;
504
+ size: string;
505
+ name: string;
506
+ } & {
507
+ date?: string | null | undefined;
508
+ }) | ({
509
+ __TYPE__: "FileLink";
510
+ } & {
511
+ kind: "file";
512
+ id: string;
513
+ url: string;
514
+ name: string;
515
+ size: string;
516
+ } & {
517
+ date?: string | null | undefined;
518
+ }) | ({
519
+ __TYPE__: "DocumentLink";
520
+ } & {
521
+ id: string;
522
+ }) | ({
523
+ __TYPE__: "ExternalLink";
524
+ } & {
525
+ url: string;
526
+ } & {
527
+ kind?: "web";
528
+ target?: string | null | undefined;
529
+ preview?: {
530
+ title?: string;
531
+ } | null | undefined;
532
+ });
533
+ start: number;
534
+ end: number;
535
+ type: "hyperlink";
536
+ } | {
537
+ data: string;
538
+ start: number;
539
+ end: number;
540
+ type: "label";
541
+ } | {
542
+ start: number;
543
+ end: number;
544
+ type: "strong" | "em" | "list-item";
545
+ })[], unknown>;
546
+ }>]>;
446
547
  }>, t.PartialC<{
447
- spans: t.Type<({
448
- data: ({
449
- __TYPE__: "ImageLink";
450
- } & {
451
- kind: "image";
452
- id: string;
453
- url: string;
454
- height: string;
455
- width: string;
456
- size: string;
457
- name: string;
458
- } & {
459
- date?: string | null | undefined;
460
- }) | ({
461
- __TYPE__: "FileLink";
462
- } & {
463
- kind: "file";
464
- id: string;
465
- url: string;
466
- name: string;
467
- size: string;
468
- } & {
469
- date?: string | null | undefined;
470
- }) | ({
471
- __TYPE__: "DocumentLink";
472
- } & {
473
- id: string;
474
- }) | ({
475
- __TYPE__: "ExternalLink";
476
- } & {
477
- url: string;
478
- } & {
479
- kind?: "web";
480
- target?: string | null | undefined;
481
- preview?: {
482
- title?: string;
483
- } | null | undefined;
484
- });
485
- start: number;
486
- end: number;
487
- type: "hyperlink";
488
- } | {
489
- data: string;
490
- start: number;
491
- end: number;
492
- type: "label";
493
- } | {
494
- start: number;
495
- end: number;
496
- type: "strong" | "em" | "list-item";
497
- })[], ({
498
- data: ({
499
- __TYPE__: "ImageLink";
500
- } & {
501
- kind: "image";
502
- id: string;
503
- url: string;
504
- height: string;
505
- width: string;
506
- size: string;
507
- name: string;
508
- } & {
509
- date?: string | null | undefined;
510
- }) | ({
511
- __TYPE__: "FileLink";
512
- } & {
513
- kind: "file";
514
- id: string;
515
- url: string;
516
- name: string;
517
- size: string;
518
- } & {
519
- date?: string | null | undefined;
520
- }) | ({
521
- __TYPE__: "DocumentLink";
522
- } & {
523
- id: string;
524
- }) | ({
525
- __TYPE__: "ExternalLink";
526
- } & {
527
- url: string;
528
- } & {
529
- kind?: "web";
530
- target?: string | null | undefined;
531
- preview?: {
532
- title?: string;
533
- } | null | undefined;
534
- });
535
- start: number;
536
- end: number;
537
- type: "hyperlink";
538
- } | {
539
- data: string;
540
- start: number;
541
- end: number;
542
- type: "label";
543
- } | {
544
- start: number;
545
- end: number;
546
- type: "strong" | "em" | "list-item";
547
- })[], unknown>;
548
- }>]>;
549
- }>, t.PartialC<{
550
- label: t.StringC;
551
- direction: t.StringC;
552
- }>]>>>;
553
- }>>, t.ExactC<t.TypeC<{
554
- type: t.LiteralC<"tableCell">;
555
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
556
- 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>;
557
- content: t.IntersectionC<[t.TypeC<{
558
- text: t.StringC;
548
+ label: t.StringC;
549
+ direction: t.StringC;
550
+ }>]>>>;
551
+ }>>, t.ExactC<t.TypeC<{
552
+ type: t.LiteralC<"tableCell">;
553
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
554
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
555
+ content: t.IntersectionC<[t.TypeC<{
556
+ text: t.StringC;
557
+ }>, t.PartialC<{
558
+ spans: t.Type<({
559
+ data: ({
560
+ __TYPE__: "ImageLink";
561
+ } & {
562
+ kind: "image";
563
+ id: string;
564
+ url: string;
565
+ height: string;
566
+ width: string;
567
+ size: string;
568
+ name: string;
569
+ } & {
570
+ date?: string | null | undefined;
571
+ }) | ({
572
+ __TYPE__: "FileLink";
573
+ } & {
574
+ kind: "file";
575
+ id: string;
576
+ url: string;
577
+ name: string;
578
+ size: string;
579
+ } & {
580
+ date?: string | null | undefined;
581
+ }) | ({
582
+ __TYPE__: "DocumentLink";
583
+ } & {
584
+ id: string;
585
+ }) | ({
586
+ __TYPE__: "ExternalLink";
587
+ } & {
588
+ url: string;
589
+ } & {
590
+ kind?: "web";
591
+ target?: string | null | undefined;
592
+ preview?: {
593
+ title?: string;
594
+ } | null | undefined;
595
+ });
596
+ start: number;
597
+ end: number;
598
+ type: "hyperlink";
599
+ } | {
600
+ data: string;
601
+ start: number;
602
+ end: number;
603
+ type: "label";
604
+ } | {
605
+ start: number;
606
+ end: number;
607
+ type: "strong" | "em" | "list-item";
608
+ })[], ({
609
+ data: ({
610
+ __TYPE__: "ImageLink";
611
+ } & {
612
+ kind: "image";
613
+ id: string;
614
+ url: string;
615
+ height: string;
616
+ width: string;
617
+ size: string;
618
+ name: string;
619
+ } & {
620
+ date?: string | null | undefined;
621
+ }) | ({
622
+ __TYPE__: "FileLink";
623
+ } & {
624
+ kind: "file";
625
+ id: string;
626
+ url: string;
627
+ name: string;
628
+ size: string;
629
+ } & {
630
+ date?: string | null | undefined;
631
+ }) | ({
632
+ __TYPE__: "DocumentLink";
633
+ } & {
634
+ id: string;
635
+ }) | ({
636
+ __TYPE__: "ExternalLink";
637
+ } & {
638
+ url: string;
639
+ } & {
640
+ kind?: "web";
641
+ target?: string | null | undefined;
642
+ preview?: {
643
+ title?: string;
644
+ } | null | undefined;
645
+ });
646
+ start: number;
647
+ end: number;
648
+ type: "hyperlink";
649
+ } | {
650
+ data: string;
651
+ start: number;
652
+ end: number;
653
+ type: "label";
654
+ } | {
655
+ start: number;
656
+ end: number;
657
+ type: "strong" | "em" | "list-item";
658
+ })[], unknown>;
659
+ }>]>;
559
660
  }>, t.PartialC<{
560
- spans: t.Type<({
561
- data: ({
562
- __TYPE__: "ImageLink";
563
- } & {
564
- kind: "image";
565
- id: string;
566
- url: string;
567
- height: string;
568
- width: string;
569
- size: string;
570
- name: string;
571
- } & {
572
- date?: string | null | undefined;
573
- }) | ({
574
- __TYPE__: "FileLink";
575
- } & {
576
- kind: "file";
577
- id: string;
578
- url: string;
579
- name: string;
580
- size: string;
581
- } & {
582
- date?: string | null | undefined;
583
- }) | ({
584
- __TYPE__: "DocumentLink";
585
- } & {
586
- id: string;
587
- }) | ({
588
- __TYPE__: "ExternalLink";
589
- } & {
590
- url: string;
591
- } & {
592
- kind?: "web";
593
- target?: string | null | undefined;
594
- preview?: {
595
- title?: string;
596
- } | null | undefined;
597
- });
598
- start: number;
599
- end: number;
600
- type: "hyperlink";
601
- } | {
602
- data: string;
603
- start: number;
604
- end: number;
605
- type: "label";
606
- } | {
607
- start: number;
608
- end: number;
609
- type: "strong" | "em" | "list-item";
610
- })[], ({
611
- data: ({
612
- __TYPE__: "ImageLink";
613
- } & {
614
- kind: "image";
615
- id: string;
616
- url: string;
617
- height: string;
618
- width: string;
619
- size: string;
620
- name: string;
621
- } & {
622
- date?: string | null | undefined;
623
- }) | ({
624
- __TYPE__: "FileLink";
625
- } & {
626
- kind: "file";
627
- id: string;
628
- url: string;
629
- name: string;
630
- size: string;
631
- } & {
632
- date?: string | null | undefined;
633
- }) | ({
634
- __TYPE__: "DocumentLink";
635
- } & {
636
- id: string;
637
- }) | ({
638
- __TYPE__: "ExternalLink";
639
- } & {
640
- url: string;
641
- } & {
642
- kind?: "web";
643
- target?: string | null | undefined;
644
- preview?: {
645
- title?: string;
646
- } | null | undefined;
647
- });
648
- start: number;
649
- end: number;
650
- type: "hyperlink";
651
- } | {
652
- data: string;
653
- start: number;
654
- end: number;
655
- type: "label";
656
- } | {
657
- start: number;
658
- end: number;
659
- type: "strong" | "em" | "list-item";
660
- })[], unknown>;
661
- }>]>;
662
- }>, t.PartialC<{
663
- label: t.StringC;
664
- direction: t.StringC;
665
- }>]>>>;
666
- }>>]>>;
667
- }>>>;
661
+ label: t.StringC;
662
+ direction: t.StringC;
663
+ }>]>>>;
664
+ }>>]>>;
665
+ }>>>;
666
+ }>>]>>;
667
+ }>>, t.ExactC<t.TypeC<{
668
+ __TYPE__: t.LiteralC<"SeparatorContent">;
668
669
  }>>, t.ExactC<t.TypeC<{
669
- __TYPE__: t.LiteralC<"TableContent">;
670
- }>>]>, t.ExactC<t.TypeC<{
671
670
  __TYPE__: t.LiteralC<"RepeatableContent">;
672
671
  type: t.LiteralC<"Link">;
673
672
  value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{