@prismicio/types-internal 3.4.0-alpha.13 → 3.4.0-alpha.14

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 (45) hide show
  1. package/lib/content/Document.d.ts +498 -3366
  2. package/lib/content/fields/GroupContent.d.ts +1 -1
  3. package/lib/content/fields/GroupContent.js +2 -1
  4. package/lib/content/fields/WidgetContent.d.ts +514 -3382
  5. package/lib/content/fields/nestable/NestableContent.d.ts +68 -546
  6. package/lib/content/fields/nestable/NestableContent.js +7 -8
  7. package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
  8. package/lib/content/fields/nestable/RepeatableContent.js +5 -2
  9. package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -641
  10. package/lib/content/fields/nestable/RichTextContent/index.js +4 -8
  11. package/lib/content/fields/nestable/TableContent.d.ts +637 -834
  12. package/lib/content/fields/nestable/TableContent.js +10 -7
  13. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +190 -1146
  14. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +26 -252
  15. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +190 -1146
  16. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -546
  17. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -546
  18. package/lib/content/fields/slices/Slice/index.d.ts +269 -2029
  19. package/lib/content/fields/slices/SliceItem.d.ts +463 -2223
  20. package/lib/content/fields/slices/SlicesContent.d.ts +394 -2784
  21. package/lib/customtypes/widgets/Group.d.ts +36 -36
  22. package/lib/customtypes/widgets/Widget.d.ts +54 -54
  23. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -6
  24. package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
  25. package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
  26. package/lib/customtypes/widgets/nestable/RichText.js +0 -2
  27. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -12
  28. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -12
  29. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -48
  30. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +18 -18
  31. package/lib/customtypes/widgets/slices/Slices.d.ts +72 -72
  32. package/package.json +1 -1
  33. package/src/content/fields/GroupContent.ts +2 -1
  34. package/src/content/fields/nestable/NestableContent.ts +13 -9
  35. package/src/content/fields/nestable/RepeatableContent.ts +6 -2
  36. package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
  37. package/src/content/fields/nestable/RichTextContent/index.ts +3 -7
  38. package/src/content/fields/nestable/TableContent.ts +10 -7
  39. package/src/customtypes/widgets/nestable/NestableWidget.ts +1 -1
  40. package/src/customtypes/widgets/nestable/RichText.ts +0 -2
  41. package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
  42. package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
  43. package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
  44. package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
  45. package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
@@ -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" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
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>;
326
326
  content: t.IntersectionC<[t.TypeC<{
327
327
  text: t.StringC;
328
328
  }>, t.PartialC<{
@@ -431,14 +431,18 @@ 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
- }>]>>, 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>;
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.ExactC<t.TypeC<{
443
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
444
+ value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
445
+ 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>;
442
446
  content: t.IntersectionC<[t.TypeC<{
443
447
  text: t.StringC;
444
448
  }>, t.PartialC<{
@@ -548,10 +552,13 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
548
552
  label: t.StringC;
549
553
  direction: t.StringC;
550
554
  }>]>>>;
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
+ }>>;
556
+ }>>, t.ExactC<t.TypeC<{
557
+ type: t.LiteralC<"tableCell">;
558
+ content: t.ExactC<t.TypeC<{
559
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
560
+ value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
561
+ 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>;
555
562
  content: t.IntersectionC<[t.TypeC<{
556
563
  text: t.StringC;
557
564
  }>, t.PartialC<{
@@ -661,12 +668,12 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
661
668
  label: t.StringC;
662
669
  direction: t.StringC;
663
670
  }>]>>>;
664
- }>>]>>;
665
- }>>>;
666
- }>>]>>;
667
- }>>, t.ExactC<t.TypeC<{
668
- __TYPE__: t.LiteralC<"SeparatorContent">;
671
+ }>>;
672
+ }>>]>>;
673
+ }>>>;
669
674
  }>>, t.ExactC<t.TypeC<{
675
+ __TYPE__: t.LiteralC<"TableContent">;
676
+ }>>]>, t.ExactC<t.TypeC<{
670
677
  __TYPE__: t.LiteralC<"RepeatableContent">;
671
678
  type: t.LiteralC<"Link">;
672
679
  value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -747,238 +754,5 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
747
754
  variant: t.StringC;
748
755
  }>]>>]>]>;
749
756
  }>>]>>;
750
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
751
- content: t.ArrayC<t.ExactC<t.TypeC<{
752
- type: t.LiteralC<"tableRow">;
753
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
754
- type: t.LiteralC<"tableHeader">;
755
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
756
- 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>;
757
- content: t.IntersectionC<[t.TypeC<{
758
- text: t.StringC;
759
- }>, t.PartialC<{
760
- spans: t.Type<({
761
- data: ({
762
- __TYPE__: "ImageLink";
763
- } & {
764
- kind: "image";
765
- id: string;
766
- url: string;
767
- height: string;
768
- width: string;
769
- size: string;
770
- name: string;
771
- } & {
772
- date?: string | null | undefined;
773
- }) | ({
774
- __TYPE__: "FileLink";
775
- } & {
776
- kind: "file";
777
- id: string;
778
- url: string;
779
- name: string;
780
- size: string;
781
- } & {
782
- date?: string | null | undefined;
783
- }) | ({
784
- __TYPE__: "DocumentLink";
785
- } & {
786
- id: string;
787
- }) | ({
788
- __TYPE__: "ExternalLink";
789
- } & {
790
- url: string;
791
- } & {
792
- kind?: "web";
793
- target?: string | null | undefined;
794
- preview?: {
795
- title?: string;
796
- } | null | undefined;
797
- });
798
- start: number;
799
- end: number;
800
- type: "hyperlink";
801
- } | {
802
- data: string;
803
- start: number;
804
- end: number;
805
- type: "label";
806
- } | {
807
- start: number;
808
- end: number;
809
- type: "strong" | "em" | "list-item";
810
- })[], ({
811
- data: ({
812
- __TYPE__: "ImageLink";
813
- } & {
814
- kind: "image";
815
- id: string;
816
- url: string;
817
- height: string;
818
- width: string;
819
- size: string;
820
- name: string;
821
- } & {
822
- date?: string | null | undefined;
823
- }) | ({
824
- __TYPE__: "FileLink";
825
- } & {
826
- kind: "file";
827
- id: string;
828
- url: string;
829
- name: string;
830
- size: string;
831
- } & {
832
- date?: string | null | undefined;
833
- }) | ({
834
- __TYPE__: "DocumentLink";
835
- } & {
836
- id: string;
837
- }) | ({
838
- __TYPE__: "ExternalLink";
839
- } & {
840
- url: string;
841
- } & {
842
- kind?: "web";
843
- target?: string | null | undefined;
844
- preview?: {
845
- title?: string;
846
- } | null | undefined;
847
- });
848
- start: number;
849
- end: number;
850
- type: "hyperlink";
851
- } | {
852
- data: string;
853
- start: number;
854
- end: number;
855
- type: "label";
856
- } | {
857
- start: number;
858
- end: number;
859
- type: "strong" | "em" | "list-item";
860
- })[], unknown>;
861
- }>]>;
862
- }>, t.PartialC<{
863
- label: t.StringC;
864
- direction: t.StringC;
865
- }>]>>>;
866
- }>>, t.ExactC<t.TypeC<{
867
- type: t.LiteralC<"tableCell">;
868
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
869
- 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>;
870
- content: t.IntersectionC<[t.TypeC<{
871
- text: t.StringC;
872
- }>, t.PartialC<{
873
- spans: t.Type<({
874
- data: ({
875
- __TYPE__: "ImageLink";
876
- } & {
877
- kind: "image";
878
- id: string;
879
- url: string;
880
- height: string;
881
- width: string;
882
- size: string;
883
- name: string;
884
- } & {
885
- date?: string | null | undefined;
886
- }) | ({
887
- __TYPE__: "FileLink";
888
- } & {
889
- kind: "file";
890
- id: string;
891
- url: string;
892
- name: string;
893
- size: string;
894
- } & {
895
- date?: string | null | undefined;
896
- }) | ({
897
- __TYPE__: "DocumentLink";
898
- } & {
899
- id: string;
900
- }) | ({
901
- __TYPE__: "ExternalLink";
902
- } & {
903
- url: string;
904
- } & {
905
- kind?: "web";
906
- target?: string | null | undefined;
907
- preview?: {
908
- title?: string;
909
- } | null | undefined;
910
- });
911
- start: number;
912
- end: number;
913
- type: "hyperlink";
914
- } | {
915
- data: string;
916
- start: number;
917
- end: number;
918
- type: "label";
919
- } | {
920
- start: number;
921
- end: number;
922
- type: "strong" | "em" | "list-item";
923
- })[], ({
924
- data: ({
925
- __TYPE__: "ImageLink";
926
- } & {
927
- kind: "image";
928
- id: string;
929
- url: string;
930
- height: string;
931
- width: string;
932
- size: string;
933
- name: string;
934
- } & {
935
- date?: string | null | undefined;
936
- }) | ({
937
- __TYPE__: "FileLink";
938
- } & {
939
- kind: "file";
940
- id: string;
941
- url: string;
942
- name: string;
943
- size: string;
944
- } & {
945
- date?: string | null | undefined;
946
- }) | ({
947
- __TYPE__: "DocumentLink";
948
- } & {
949
- id: string;
950
- }) | ({
951
- __TYPE__: "ExternalLink";
952
- } & {
953
- url: string;
954
- } & {
955
- kind?: "web";
956
- target?: string | null | undefined;
957
- preview?: {
958
- title?: string;
959
- } | null | undefined;
960
- });
961
- start: number;
962
- end: number;
963
- type: "hyperlink";
964
- } | {
965
- data: string;
966
- start: number;
967
- end: number;
968
- type: "label";
969
- } | {
970
- start: number;
971
- end: number;
972
- type: "strong" | "em" | "list-item";
973
- })[], unknown>;
974
- }>]>;
975
- }>, t.PartialC<{
976
- label: t.StringC;
977
- direction: t.StringC;
978
- }>]>>>;
979
- }>>]>>;
980
- }>>>;
981
- }>>, t.ExactC<t.TypeC<{
982
- __TYPE__: t.LiteralC<"TableContent">;
983
- }>>]>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
757
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
984
758
  }>>>;