@contentful/experiences-validators 1.42.0-prerelease-20250627T1335-d74dad7.0 → 1.42.0-prerelease-20250630T1135-a8b68d4.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/dist/types.d.ts CHANGED
@@ -576,148 +576,232 @@ declare const ComponentSettingsSchema: z.ZodObject<{
576
576
  }>>;
577
577
  thumbnailId: z.ZodOptional<z.ZodEnum<["columns", "columnsPlusRight", "imagesSquare", "subtitles", "rowsPlusBottom", "userRectangle", "textbox", "monitorPlay", "article", "table", "star", "heartStraight", "frameCorners", "rows", "dotsThreeOutline", "listDashes", "checkerBoard", "gridFour", "slideshow", "diamondsFour", "cards", "textColumns", "duplex"]>>;
578
578
  category: z.ZodOptional<z.ZodString>;
579
- variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
580
- parameterId: z.ZodString;
581
- type: z.ZodLiteral<"ContentTypeMapping">;
582
- pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
583
- path: z.ZodString;
579
+ prebindingDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
582
+ parameterId: z.ZodString;
583
+ type: z.ZodLiteral<"ContentTypeMapping">;
584
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
585
+ path: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ path: string;
588
+ }, {
589
+ path: string;
590
+ }>>;
584
591
  }, "strip", z.ZodTypeAny, {
585
- path: string;
592
+ type: "ContentTypeMapping";
593
+ parameterId: string;
594
+ pathsByContentType: Record<string, {
595
+ path: string;
596
+ }>;
586
597
  }, {
587
- path: string;
588
- }>>;
589
- }, "strip", z.ZodTypeAny, {
590
- type: "ContentTypeMapping";
591
- parameterId: string;
592
- pathsByContentType: Record<string, {
593
- path: string;
594
- }>;
595
- }, {
596
- type: "ContentTypeMapping";
597
- parameterId: string;
598
- pathsByContentType: Record<string, {
599
- path: string;
600
- }>;
601
- }>>>;
602
- parameterDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
603
- defaultSource: z.ZodOptional<z.ZodObject<{
604
- type: z.ZodEnum<["Entry"]>;
605
- contentTypeId: z.ZodString;
606
- link: z.ZodObject<{
598
+ type: "ContentTypeMapping";
599
+ parameterId: string;
600
+ pathsByContentType: Record<string, {
601
+ path: string;
602
+ }>;
603
+ }>>>;
604
+ parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
605
+ defaultSource: z.ZodOptional<z.ZodObject<{
606
+ type: z.ZodEnum<["Entry"]>;
607
+ contentTypeId: z.ZodString;
608
+ link: z.ZodObject<{
609
+ sys: z.ZodObject<{
610
+ type: z.ZodLiteral<"Link">;
611
+ id: z.ZodString;
612
+ linkType: z.ZodEnum<["Entry"]>;
613
+ }, "strict", z.ZodTypeAny, {
614
+ type: "Link";
615
+ id: string;
616
+ linkType: "Entry";
617
+ }, {
618
+ type: "Link";
619
+ id: string;
620
+ linkType: "Entry";
621
+ }>;
622
+ }, "strict", z.ZodTypeAny, {
623
+ sys: {
624
+ type: "Link";
625
+ id: string;
626
+ linkType: "Entry";
627
+ };
628
+ }, {
629
+ sys: {
630
+ type: "Link";
631
+ id: string;
632
+ linkType: "Entry";
633
+ };
634
+ }>;
635
+ }, "strict", z.ZodTypeAny, {
636
+ type: "Entry";
637
+ contentTypeId: string;
638
+ link: {
639
+ sys: {
640
+ type: "Link";
641
+ id: string;
642
+ linkType: "Entry";
643
+ };
644
+ };
645
+ }, {
646
+ type: "Entry";
647
+ contentTypeId: string;
648
+ link: {
649
+ sys: {
650
+ type: "Link";
651
+ id: string;
652
+ linkType: "Entry";
653
+ };
654
+ };
655
+ }>>;
656
+ contentTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
607
657
  sys: z.ZodObject<{
608
658
  type: z.ZodLiteral<"Link">;
609
659
  id: z.ZodString;
610
- linkType: z.ZodEnum<["Entry"]>;
611
- }, "strict", z.ZodTypeAny, {
660
+ linkType: z.ZodEnum<["ContentType"]>;
661
+ }, "strip", z.ZodTypeAny, {
612
662
  type: "Link";
613
663
  id: string;
614
- linkType: "Entry";
664
+ linkType: "ContentType";
615
665
  }, {
616
666
  type: "Link";
617
667
  id: string;
618
- linkType: "Entry";
668
+ linkType: "ContentType";
619
669
  }>;
620
- }, "strict", z.ZodTypeAny, {
670
+ }, "strip", z.ZodTypeAny, {
621
671
  sys: {
622
672
  type: "Link";
623
673
  id: string;
624
- linkType: "Entry";
674
+ linkType: "ContentType";
625
675
  };
626
676
  }, {
627
677
  sys: {
628
678
  type: "Link";
629
679
  id: string;
630
- linkType: "Entry";
680
+ linkType: "ContentType";
631
681
  };
632
- }>;
633
- }, "strict", z.ZodTypeAny, {
634
- type: "Entry";
635
- contentTypeId: string;
636
- link: {
682
+ }>>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ contentTypes: Record<string, {
637
685
  sys: {
638
686
  type: "Link";
639
687
  id: string;
640
- linkType: "Entry";
688
+ linkType: "ContentType";
689
+ };
690
+ }>;
691
+ defaultSource?: {
692
+ type: "Entry";
693
+ contentTypeId: string;
694
+ link: {
695
+ sys: {
696
+ type: "Link";
697
+ id: string;
698
+ linkType: "Entry";
699
+ };
641
700
  };
642
- };
701
+ } | undefined;
643
702
  }, {
644
- type: "Entry";
645
- contentTypeId: string;
646
- link: {
703
+ contentTypes: Record<string, {
647
704
  sys: {
648
705
  type: "Link";
649
706
  id: string;
650
- linkType: "Entry";
707
+ linkType: "ContentType";
651
708
  };
652
- };
653
- }>>;
654
- contentTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
655
- sys: z.ZodObject<{
656
- type: z.ZodLiteral<"Link">;
657
- id: z.ZodString;
658
- linkType: z.ZodEnum<["ContentType"]>;
659
- }, "strip", z.ZodTypeAny, {
660
- type: "Link";
661
- id: string;
662
- linkType: "ContentType";
663
- }, {
664
- type: "Link";
665
- id: string;
666
- linkType: "ContentType";
667
709
  }>;
668
- }, "strip", z.ZodTypeAny, {
669
- sys: {
670
- type: "Link";
671
- id: string;
672
- linkType: "ContentType";
673
- };
674
- }, {
675
- sys: {
676
- type: "Link";
677
- id: string;
678
- linkType: "ContentType";
679
- };
710
+ defaultSource?: {
711
+ type: "Entry";
712
+ contentTypeId: string;
713
+ link: {
714
+ sys: {
715
+ type: "Link";
716
+ id: string;
717
+ linkType: "Entry";
718
+ };
719
+ };
720
+ } | undefined;
680
721
  }>>;
681
- }, "strip", z.ZodTypeAny, {
682
- contentTypes: Record<string, {
683
- sys: {
684
- type: "Link";
685
- id: string;
686
- linkType: "ContentType";
687
- };
688
- }>;
689
- defaultSource?: {
690
- type: "Entry";
691
- contentTypeId: string;
692
- link: {
722
+ passToNodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
723
+ nodeId: z.ZodString;
724
+ parameterId: z.ZodString;
725
+ prebindingId: z.ZodString;
726
+ }, "strict", z.ZodTypeAny, {
727
+ parameterId: string;
728
+ nodeId: string;
729
+ prebindingId: string;
730
+ }, {
731
+ parameterId: string;
732
+ nodeId: string;
733
+ prebindingId: string;
734
+ }>, "many">>;
735
+ }, "strict", z.ZodTypeAny, {
736
+ id: string;
737
+ parameterDefinitions: Record<string, {
738
+ contentTypes: Record<string, {
693
739
  sys: {
694
740
  type: "Link";
695
741
  id: string;
696
- linkType: "Entry";
742
+ linkType: "ContentType";
697
743
  };
698
- };
699
- } | undefined;
700
- }, {
701
- contentTypes: Record<string, {
702
- sys: {
703
- type: "Link";
704
- id: string;
705
- linkType: "ContentType";
706
- };
744
+ }>;
745
+ defaultSource?: {
746
+ type: "Entry";
747
+ contentTypeId: string;
748
+ link: {
749
+ sys: {
750
+ type: "Link";
751
+ id: string;
752
+ linkType: "Entry";
753
+ };
754
+ };
755
+ } | undefined;
707
756
  }>;
708
- defaultSource?: {
709
- type: "Entry";
710
- contentTypeId: string;
711
- link: {
757
+ variableMappings?: Record<string, {
758
+ type: "ContentTypeMapping";
759
+ parameterId: string;
760
+ pathsByContentType: Record<string, {
761
+ path: string;
762
+ }>;
763
+ }> | undefined;
764
+ passToNodes?: {
765
+ parameterId: string;
766
+ nodeId: string;
767
+ prebindingId: string;
768
+ }[] | undefined;
769
+ }, {
770
+ id: string;
771
+ parameterDefinitions: Record<string, {
772
+ contentTypes: Record<string, {
712
773
  sys: {
713
774
  type: "Link";
714
775
  id: string;
715
- linkType: "Entry";
776
+ linkType: "ContentType";
716
777
  };
717
- };
718
- } | undefined;
719
- }>>>;
720
- }, "strip", z.ZodTypeAny, {
778
+ }>;
779
+ defaultSource?: {
780
+ type: "Entry";
781
+ contentTypeId: string;
782
+ link: {
783
+ sys: {
784
+ type: "Link";
785
+ id: string;
786
+ linkType: "Entry";
787
+ };
788
+ };
789
+ } | undefined;
790
+ }>;
791
+ variableMappings?: Record<string, {
792
+ type: "ContentTypeMapping";
793
+ parameterId: string;
794
+ pathsByContentType: Record<string, {
795
+ path: string;
796
+ }>;
797
+ }> | undefined;
798
+ passToNodes?: {
799
+ parameterId: string;
800
+ nodeId: string;
801
+ prebindingId: string;
802
+ }[] | undefined;
803
+ }>, "many">>;
804
+ }, "strict", z.ZodTypeAny, {
721
805
  variableDefinitions: Record<string, {
722
806
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
723
807
  displayName?: string | undefined;
@@ -754,33 +838,41 @@ declare const ComponentSettingsSchema: z.ZodObject<{
754
838
  }>;
755
839
  thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
756
840
  category?: string | undefined;
757
- variableMappings?: Record<string, {
758
- type: "ContentTypeMapping";
759
- parameterId: string;
760
- pathsByContentType: Record<string, {
761
- path: string;
762
- }>;
763
- }> | undefined;
764
- parameterDefinitions?: Record<string, {
765
- contentTypes: Record<string, {
766
- sys: {
767
- type: "Link";
768
- id: string;
769
- linkType: "ContentType";
770
- };
771
- }>;
772
- defaultSource?: {
773
- type: "Entry";
774
- contentTypeId: string;
775
- link: {
841
+ prebindingDefinitions?: {
842
+ id: string;
843
+ parameterDefinitions: Record<string, {
844
+ contentTypes: Record<string, {
776
845
  sys: {
777
846
  type: "Link";
778
847
  id: string;
779
- linkType: "Entry";
848
+ linkType: "ContentType";
780
849
  };
781
- };
782
- } | undefined;
783
- }> | undefined;
850
+ }>;
851
+ defaultSource?: {
852
+ type: "Entry";
853
+ contentTypeId: string;
854
+ link: {
855
+ sys: {
856
+ type: "Link";
857
+ id: string;
858
+ linkType: "Entry";
859
+ };
860
+ };
861
+ } | undefined;
862
+ }>;
863
+ variableMappings?: Record<string, {
864
+ type: "ContentTypeMapping";
865
+ parameterId: string;
866
+ pathsByContentType: Record<string, {
867
+ path: string;
868
+ }>;
869
+ }> | undefined;
870
+ passToNodes?: {
871
+ parameterId: string;
872
+ nodeId: string;
873
+ prebindingId: string;
874
+ }[] | undefined;
875
+ }[] | undefined;
784
876
  }, {
785
877
  variableDefinitions: Record<string, {
786
878
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
@@ -818,33 +910,41 @@ declare const ComponentSettingsSchema: z.ZodObject<{
818
910
  }>;
819
911
  thumbnailId?: "columns" | "columnsPlusRight" | "imagesSquare" | "subtitles" | "rowsPlusBottom" | "userRectangle" | "textbox" | "monitorPlay" | "article" | "table" | "star" | "heartStraight" | "frameCorners" | "rows" | "dotsThreeOutline" | "listDashes" | "checkerBoard" | "gridFour" | "slideshow" | "diamondsFour" | "cards" | "textColumns" | "duplex" | undefined;
820
912
  category?: string | undefined;
821
- variableMappings?: Record<string, {
822
- type: "ContentTypeMapping";
823
- parameterId: string;
824
- pathsByContentType: Record<string, {
825
- path: string;
826
- }>;
827
- }> | undefined;
828
- parameterDefinitions?: Record<string, {
829
- contentTypes: Record<string, {
830
- sys: {
831
- type: "Link";
832
- id: string;
833
- linkType: "ContentType";
834
- };
835
- }>;
836
- defaultSource?: {
837
- type: "Entry";
838
- contentTypeId: string;
839
- link: {
913
+ prebindingDefinitions?: {
914
+ id: string;
915
+ parameterDefinitions: Record<string, {
916
+ contentTypes: Record<string, {
840
917
  sys: {
841
918
  type: "Link";
842
919
  id: string;
843
- linkType: "Entry";
920
+ linkType: "ContentType";
844
921
  };
845
- };
846
- } | undefined;
847
- }> | undefined;
922
+ }>;
923
+ defaultSource?: {
924
+ type: "Entry";
925
+ contentTypeId: string;
926
+ link: {
927
+ sys: {
928
+ type: "Link";
929
+ id: string;
930
+ linkType: "Entry";
931
+ };
932
+ };
933
+ } | undefined;
934
+ }>;
935
+ variableMappings?: Record<string, {
936
+ type: "ContentTypeMapping";
937
+ parameterId: string;
938
+ pathsByContentType: Record<string, {
939
+ path: string;
940
+ }>;
941
+ }> | undefined;
942
+ passToNodes?: {
943
+ parameterId: string;
944
+ nodeId: string;
945
+ prebindingId: string;
946
+ }[] | undefined;
947
+ }[] | undefined;
848
948
  }>;
849
949
  declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
850
950
  componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-validators",
3
- "version": "1.42.0-prerelease-20250627T1335-d74dad7.0",
3
+ "version": "1.42.0-prerelease-20250630T1135-a8b68d4.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "registry": "https://npm.pkg.github.com/"
53
53
  },
54
- "gitHead": "d94245a3255ca582bb11d5a944436f3f95c62d2a"
54
+ "gitHead": "fef03f40081f64415d179b9d61fcb1677fd13ba5"
55
55
  }