@contentful/experiences-validators 1.42.0-prerelease-20250630T1135-a8b68d4.0 → 1.42.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,232 +576,116 @@ 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
- 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;
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;
584
+ }, "strip", z.ZodTypeAny, {
585
+ path: string;
586
+ }, {
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
+ defaultValue: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
604
+ sys: z.ZodObject<{
605
+ type: z.ZodLiteral<"Link">;
606
+ id: z.ZodString;
607
+ linkType: z.ZodEnum<["Entry"]>;
586
608
  }, "strip", z.ZodTypeAny, {
587
- path: string;
609
+ type: "Link";
610
+ id: string;
611
+ linkType: "Entry";
588
612
  }, {
589
- path: string;
590
- }>>;
591
- }, "strip", z.ZodTypeAny, {
592
- type: "ContentTypeMapping";
593
- parameterId: string;
594
- pathsByContentType: Record<string, {
595
- path: string;
613
+ type: "Link";
614
+ id: string;
615
+ linkType: "Entry";
596
616
  }>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ sys: {
619
+ type: "Link";
620
+ id: string;
621
+ linkType: "Entry";
622
+ };
597
623
  }, {
598
- type: "ContentTypeMapping";
599
- parameterId: string;
600
- pathsByContentType: Record<string, {
601
- path: string;
602
- }>;
624
+ sys: {
625
+ type: "Link";
626
+ id: string;
627
+ linkType: "Entry";
628
+ };
603
629
  }>>>;
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<{
657
- sys: z.ZodObject<{
658
- type: z.ZodLiteral<"Link">;
659
- id: z.ZodString;
660
- linkType: z.ZodEnum<["ContentType"]>;
661
- }, "strip", z.ZodTypeAny, {
662
- type: "Link";
663
- id: string;
664
- linkType: "ContentType";
665
- }, {
666
- type: "Link";
667
- id: string;
668
- linkType: "ContentType";
669
- }>;
630
+ contentTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
631
+ sys: z.ZodObject<{
632
+ type: z.ZodLiteral<"Link">;
633
+ id: z.ZodString;
634
+ linkType: z.ZodEnum<["ContentType"]>;
670
635
  }, "strip", z.ZodTypeAny, {
671
- sys: {
672
- type: "Link";
673
- id: string;
674
- linkType: "ContentType";
675
- };
636
+ type: "Link";
637
+ id: string;
638
+ linkType: "ContentType";
676
639
  }, {
677
- sys: {
678
- type: "Link";
679
- id: string;
680
- linkType: "ContentType";
681
- };
682
- }>>;
683
- }, "strip", z.ZodTypeAny, {
684
- contentTypes: Record<string, {
685
- sys: {
686
- type: "Link";
687
- id: string;
688
- linkType: "ContentType";
689
- };
640
+ type: "Link";
641
+ id: string;
642
+ linkType: "ContentType";
690
643
  }>;
691
- defaultSource?: {
692
- type: "Entry";
693
- contentTypeId: string;
694
- link: {
695
- sys: {
696
- type: "Link";
697
- id: string;
698
- linkType: "Entry";
699
- };
700
- };
701
- } | undefined;
644
+ }, "strip", z.ZodTypeAny, {
645
+ sys: {
646
+ type: "Link";
647
+ id: string;
648
+ linkType: "ContentType";
649
+ };
702
650
  }, {
703
- contentTypes: Record<string, {
704
- sys: {
705
- type: "Link";
706
- id: string;
707
- linkType: "ContentType";
708
- };
709
- }>;
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;
651
+ sys: {
652
+ type: "Link";
653
+ id: string;
654
+ linkType: "ContentType";
655
+ };
721
656
  }>>;
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, {
739
- sys: {
740
- type: "Link";
741
- id: string;
742
- linkType: "ContentType";
743
- };
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;
657
+ }, "strip", z.ZodTypeAny, {
658
+ contentTypes: Record<string, {
659
+ sys: {
660
+ type: "Link";
661
+ id: string;
662
+ linkType: "ContentType";
663
+ };
756
664
  }>;
757
- variableMappings?: Record<string, {
758
- type: "ContentTypeMapping";
759
- parameterId: string;
760
- pathsByContentType: Record<string, {
761
- path: string;
762
- }>;
665
+ defaultValue?: Record<string, {
666
+ sys: {
667
+ type: "Link";
668
+ id: string;
669
+ linkType: "Entry";
670
+ };
763
671
  }> | undefined;
764
- passToNodes?: {
765
- parameterId: string;
766
- nodeId: string;
767
- prebindingId: string;
768
- }[] | undefined;
769
672
  }, {
770
- id: string;
771
- parameterDefinitions: Record<string, {
772
- contentTypes: Record<string, {
773
- sys: {
774
- type: "Link";
775
- id: string;
776
- linkType: "ContentType";
777
- };
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;
673
+ contentTypes: Record<string, {
674
+ sys: {
675
+ type: "Link";
676
+ id: string;
677
+ linkType: "ContentType";
678
+ };
790
679
  }>;
791
- variableMappings?: Record<string, {
792
- type: "ContentTypeMapping";
793
- parameterId: string;
794
- pathsByContentType: Record<string, {
795
- path: string;
796
- }>;
680
+ defaultValue?: Record<string, {
681
+ sys: {
682
+ type: "Link";
683
+ id: string;
684
+ linkType: "Entry";
685
+ };
797
686
  }> | undefined;
798
- passToNodes?: {
799
- parameterId: string;
800
- nodeId: string;
801
- prebindingId: string;
802
- }[] | undefined;
803
- }>, "many">>;
804
- }, "strict", z.ZodTypeAny, {
687
+ }>>>;
688
+ }, "strip", z.ZodTypeAny, {
805
689
  variableDefinitions: Record<string, {
806
690
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
807
691
  displayName?: string | undefined;
@@ -838,41 +722,29 @@ declare const ComponentSettingsSchema: z.ZodObject<{
838
722
  }>;
839
723
  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;
840
724
  category?: string | undefined;
841
- prebindingDefinitions?: {
842
- id: string;
843
- parameterDefinitions: Record<string, {
844
- contentTypes: Record<string, {
845
- sys: {
846
- type: "Link";
847
- id: string;
848
- linkType: "ContentType";
849
- };
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;
725
+ variableMappings?: Record<string, {
726
+ type: "ContentTypeMapping";
727
+ parameterId: string;
728
+ pathsByContentType: Record<string, {
729
+ path: string;
862
730
  }>;
863
- variableMappings?: Record<string, {
864
- type: "ContentTypeMapping";
865
- parameterId: string;
866
- pathsByContentType: Record<string, {
867
- path: string;
868
- }>;
731
+ }> | undefined;
732
+ parameterDefinitions?: Record<string, {
733
+ contentTypes: Record<string, {
734
+ sys: {
735
+ type: "Link";
736
+ id: string;
737
+ linkType: "ContentType";
738
+ };
739
+ }>;
740
+ defaultValue?: Record<string, {
741
+ sys: {
742
+ type: "Link";
743
+ id: string;
744
+ linkType: "Entry";
745
+ };
869
746
  }> | undefined;
870
- passToNodes?: {
871
- parameterId: string;
872
- nodeId: string;
873
- prebindingId: string;
874
- }[] | undefined;
875
- }[] | undefined;
747
+ }> | undefined;
876
748
  }, {
877
749
  variableDefinitions: Record<string, {
878
750
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
@@ -910,41 +782,29 @@ declare const ComponentSettingsSchema: z.ZodObject<{
910
782
  }>;
911
783
  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;
912
784
  category?: string | undefined;
913
- prebindingDefinitions?: {
914
- id: string;
915
- parameterDefinitions: Record<string, {
916
- contentTypes: Record<string, {
917
- sys: {
918
- type: "Link";
919
- id: string;
920
- linkType: "ContentType";
921
- };
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;
785
+ variableMappings?: Record<string, {
786
+ type: "ContentTypeMapping";
787
+ parameterId: string;
788
+ pathsByContentType: Record<string, {
789
+ path: string;
934
790
  }>;
935
- variableMappings?: Record<string, {
936
- type: "ContentTypeMapping";
937
- parameterId: string;
938
- pathsByContentType: Record<string, {
939
- path: string;
940
- }>;
791
+ }> | undefined;
792
+ parameterDefinitions?: Record<string, {
793
+ contentTypes: Record<string, {
794
+ sys: {
795
+ type: "Link";
796
+ id: string;
797
+ linkType: "ContentType";
798
+ };
799
+ }>;
800
+ defaultValue?: Record<string, {
801
+ sys: {
802
+ type: "Link";
803
+ id: string;
804
+ linkType: "Entry";
805
+ };
941
806
  }> | undefined;
942
- passToNodes?: {
943
- parameterId: string;
944
- nodeId: string;
945
- prebindingId: string;
946
- }[] | undefined;
947
- }[] | undefined;
807
+ }> | undefined;
948
808
  }>;
949
809
  declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
950
810
  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-20250630T1135-a8b68d4.0",
3
+ "version": "1.42.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": "fef03f40081f64415d179b9d61fcb1677fd13ba5"
54
+ "gitHead": "3ab2b99ee2c569ef8caaed66f81fe2b533039184"
55
55
  }