@contentful/experiences-validators 1.42.0-dev-20250630T1405-f8cda11.0 → 1.42.0-prerelease-20250620T1340-2128bcf.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
@@ -168,7 +168,7 @@ declare const ComponentPropertyValueSchema: z.ZodDiscriminatedUnion<"type", [z.Z
168
168
  type: "NoValue";
169
169
  }>]>;
170
170
  type ComponentPropertyValue = z.infer<typeof ComponentPropertyValueSchema>;
171
- declare const ParameterSchema: z.ZodObject<{
171
+ declare const PatternPropertySchema: z.ZodObject<{
172
172
  type: z.ZodLiteral<"BoundValue">;
173
173
  path: z.ZodString;
174
174
  }, "strip", z.ZodTypeAny, {
@@ -413,7 +413,7 @@ type BoundValue = z.infer<typeof BoundValueSchema>;
413
413
  type NoValue = z.infer<typeof NoValueSchema>;
414
414
  type UnboundValue = z.infer<typeof UnboundValueSchema>;
415
415
  type ComponentValue = z.infer<typeof ComponentValueSchema>;
416
- type Parameter = z.infer<typeof ParameterSchema>;
416
+ type PatternProperty = z.infer<typeof PatternPropertySchema>;
417
417
 
418
418
  declare const ComponentSettingsSchema: z.ZodObject<{
419
419
  variableDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -576,245 +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
- parameterDefinitions: z.ZodRecord<z.ZodString, z.ZodObject<{
582
- defaultSource: z.ZodOptional<z.ZodObject<{
583
- type: z.ZodEnum<["Entry"]>;
584
- contentTypeId: z.ZodString;
585
- link: z.ZodObject<{
586
- sys: z.ZodObject<{
587
- type: z.ZodLiteral<"Link">;
588
- id: z.ZodString;
589
- linkType: z.ZodEnum<["Entry"]>;
590
- }, "strict", z.ZodTypeAny, {
591
- type: "Link";
592
- id: string;
593
- linkType: "Entry";
594
- }, {
595
- type: "Link";
596
- id: string;
597
- linkType: "Entry";
598
- }>;
599
- }, "strict", z.ZodTypeAny, {
600
- sys: {
601
- type: "Link";
602
- id: string;
603
- linkType: "Entry";
604
- };
605
- }, {
606
- sys: {
607
- type: "Link";
608
- id: string;
609
- linkType: "Entry";
610
- };
611
- }>;
612
- }, "strict", z.ZodTypeAny, {
613
- type: "Entry";
614
- contentTypeId: string;
615
- link: {
616
- sys: {
617
- type: "Link";
618
- id: string;
619
- linkType: "Entry";
620
- };
621
- };
622
- }, {
623
- type: "Entry";
624
- contentTypeId: string;
625
- link: {
626
- sys: {
627
- type: "Link";
628
- id: string;
629
- linkType: "Entry";
630
- };
631
- };
632
- }>>;
633
- contentTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
634
- sys: z.ZodObject<{
635
- type: z.ZodLiteral<"Link">;
636
- id: z.ZodString;
637
- linkType: z.ZodEnum<["ContentType"]>;
638
- }, "strip", z.ZodTypeAny, {
639
- type: "Link";
640
- id: string;
641
- linkType: "ContentType";
642
- }, {
643
- type: "Link";
644
- id: string;
645
- linkType: "ContentType";
646
- }>;
647
- }, "strip", z.ZodTypeAny, {
648
- sys: {
649
- type: "Link";
650
- id: string;
651
- linkType: "ContentType";
652
- };
653
- }, {
654
- sys: {
655
- type: "Link";
656
- id: string;
657
- linkType: "ContentType";
658
- };
659
- }>>;
660
- passToNodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
- nodeId: z.ZodString;
662
- parameterId: z.ZodString;
663
- prebindingId: z.ZodString;
664
- }, "strict", z.ZodTypeAny, {
665
- parameterId: string;
666
- nodeId: string;
667
- prebindingId: string;
668
- }, {
669
- parameterId: string;
670
- nodeId: string;
671
- prebindingId: string;
672
- }>, "many">>;
579
+ variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
580
+ parameterDefinitionId: z.ZodString;
581
+ type: z.ZodLiteral<"ContentTypeMapping">;
582
+ pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
583
+ path: z.ZodString;
673
584
  }, "strip", z.ZodTypeAny, {
674
- contentTypes: Record<string, {
675
- sys: {
676
- type: "Link";
677
- id: string;
678
- linkType: "ContentType";
679
- };
680
- }>;
681
- defaultSource?: {
682
- type: "Entry";
683
- contentTypeId: string;
684
- link: {
685
- sys: {
686
- type: "Link";
687
- id: string;
688
- linkType: "Entry";
689
- };
690
- };
691
- } | undefined;
692
- passToNodes?: {
693
- parameterId: string;
694
- nodeId: string;
695
- prebindingId: string;
696
- }[] | undefined;
585
+ path: string;
697
586
  }, {
698
- contentTypes: Record<string, {
699
- sys: {
700
- type: "Link";
701
- id: string;
702
- linkType: "ContentType";
703
- };
704
- }>;
705
- defaultSource?: {
706
- type: "Entry";
707
- contentTypeId: string;
708
- link: {
709
- sys: {
710
- type: "Link";
711
- id: string;
712
- linkType: "Entry";
713
- };
714
- };
715
- } | undefined;
716
- passToNodes?: {
717
- parameterId: string;
718
- nodeId: string;
719
- prebindingId: string;
720
- }[] | undefined;
587
+ path: string;
721
588
  }>>;
722
- variableMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
723
- parameterId: z.ZodString;
724
- type: z.ZodLiteral<"ContentTypeMapping">;
725
- pathsByContentType: z.ZodRecord<z.ZodString, z.ZodObject<{
726
- path: z.ZodString;
589
+ }, "strip", z.ZodTypeAny, {
590
+ type: "ContentTypeMapping";
591
+ parameterDefinitionId: string;
592
+ pathsByContentType: Record<string, {
593
+ path: string;
594
+ }>;
595
+ }, {
596
+ type: "ContentTypeMapping";
597
+ parameterDefinitionId: 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"]>;
727
608
  }, "strip", z.ZodTypeAny, {
728
- path: string;
609
+ type: "Link";
610
+ id: string;
611
+ linkType: "Entry";
729
612
  }, {
730
- path: string;
731
- }>>;
732
- }, "strip", z.ZodTypeAny, {
733
- type: "ContentTypeMapping";
734
- parameterId: string;
735
- pathsByContentType: Record<string, {
736
- path: string;
613
+ type: "Link";
614
+ id: string;
615
+ linkType: "Entry";
737
616
  }>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ sys: {
619
+ type: "Link";
620
+ id: string;
621
+ linkType: "Entry";
622
+ };
738
623
  }, {
739
- type: "ContentTypeMapping";
740
- parameterId: string;
741
- pathsByContentType: Record<string, {
742
- path: string;
743
- }>;
624
+ sys: {
625
+ type: "Link";
626
+ id: string;
627
+ linkType: "Entry";
628
+ };
744
629
  }>>>;
745
- allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
746
- }, "strict", z.ZodTypeAny, {
747
- id: string;
748
- parameterDefinitions: Record<string, {
749
- contentTypes: Record<string, {
750
- sys: {
751
- type: "Link";
752
- id: string;
753
- linkType: "ContentType";
754
- };
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"]>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ type: "Link";
637
+ id: string;
638
+ linkType: "ContentType";
639
+ }, {
640
+ type: "Link";
641
+ id: string;
642
+ linkType: "ContentType";
755
643
  }>;
756
- defaultSource?: {
757
- type: "Entry";
758
- contentTypeId: string;
759
- link: {
760
- sys: {
761
- type: "Link";
762
- id: string;
763
- linkType: "Entry";
764
- };
765
- };
766
- } | undefined;
767
- passToNodes?: {
768
- parameterId: string;
769
- nodeId: string;
770
- prebindingId: string;
771
- }[] | undefined;
644
+ }, "strip", z.ZodTypeAny, {
645
+ sys: {
646
+ type: "Link";
647
+ id: string;
648
+ linkType: "ContentType";
649
+ };
650
+ }, {
651
+ sys: {
652
+ type: "Link";
653
+ id: string;
654
+ linkType: "ContentType";
655
+ };
656
+ }>>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ contentTypes: Record<string, {
659
+ sys: {
660
+ type: "Link";
661
+ id: string;
662
+ linkType: "ContentType";
663
+ };
772
664
  }>;
773
- variableMappings?: Record<string, {
774
- type: "ContentTypeMapping";
775
- parameterId: string;
776
- pathsByContentType: Record<string, {
777
- path: string;
778
- }>;
665
+ defaultValue?: Record<string, {
666
+ sys: {
667
+ type: "Link";
668
+ id: string;
669
+ linkType: "Entry";
670
+ };
779
671
  }> | undefined;
780
- allowedVariableOverrides?: string[] | undefined;
781
672
  }, {
782
- id: string;
783
- parameterDefinitions: Record<string, {
784
- contentTypes: Record<string, {
785
- sys: {
786
- type: "Link";
787
- id: string;
788
- linkType: "ContentType";
789
- };
790
- }>;
791
- defaultSource?: {
792
- type: "Entry";
793
- contentTypeId: string;
794
- link: {
795
- sys: {
796
- type: "Link";
797
- id: string;
798
- linkType: "Entry";
799
- };
800
- };
801
- } | undefined;
802
- passToNodes?: {
803
- parameterId: string;
804
- nodeId: string;
805
- prebindingId: string;
806
- }[] | undefined;
673
+ contentTypes: Record<string, {
674
+ sys: {
675
+ type: "Link";
676
+ id: string;
677
+ linkType: "ContentType";
678
+ };
807
679
  }>;
808
- variableMappings?: Record<string, {
809
- type: "ContentTypeMapping";
810
- parameterId: string;
811
- pathsByContentType: Record<string, {
812
- path: string;
813
- }>;
680
+ defaultValue?: Record<string, {
681
+ sys: {
682
+ type: "Link";
683
+ id: string;
684
+ linkType: "Entry";
685
+ };
814
686
  }> | undefined;
815
- allowedVariableOverrides?: string[] | undefined;
816
- }>, "many">>;
817
- }, "strict", z.ZodTypeAny, {
687
+ }>>>;
688
+ }, "strip", z.ZodTypeAny, {
818
689
  variableDefinitions: Record<string, {
819
690
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
820
691
  displayName?: string | undefined;
@@ -851,42 +722,29 @@ declare const ComponentSettingsSchema: z.ZodObject<{
851
722
  }>;
852
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;
853
724
  category?: string | undefined;
854
- prebindingDefinitions?: {
855
- id: string;
856
- parameterDefinitions: Record<string, {
857
- contentTypes: Record<string, {
858
- sys: {
859
- type: "Link";
860
- id: string;
861
- linkType: "ContentType";
862
- };
863
- }>;
864
- defaultSource?: {
865
- type: "Entry";
866
- contentTypeId: string;
867
- link: {
868
- sys: {
869
- type: "Link";
870
- id: string;
871
- linkType: "Entry";
872
- };
873
- };
874
- } | undefined;
875
- passToNodes?: {
876
- parameterId: string;
877
- nodeId: string;
878
- prebindingId: string;
879
- }[] | undefined;
725
+ variableMappings?: Record<string, {
726
+ type: "ContentTypeMapping";
727
+ parameterDefinitionId: string;
728
+ pathsByContentType: Record<string, {
729
+ path: string;
880
730
  }>;
881
- variableMappings?: Record<string, {
882
- type: "ContentTypeMapping";
883
- parameterId: string;
884
- pathsByContentType: Record<string, {
885
- path: string;
886
- }>;
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
+ };
887
746
  }> | undefined;
888
- allowedVariableOverrides?: string[] | undefined;
889
- }[] | undefined;
747
+ }> | undefined;
890
748
  }, {
891
749
  variableDefinitions: Record<string, {
892
750
  type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
@@ -924,42 +782,29 @@ declare const ComponentSettingsSchema: z.ZodObject<{
924
782
  }>;
925
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;
926
784
  category?: string | undefined;
927
- prebindingDefinitions?: {
928
- id: string;
929
- parameterDefinitions: Record<string, {
930
- contentTypes: Record<string, {
931
- sys: {
932
- type: "Link";
933
- id: string;
934
- linkType: "ContentType";
935
- };
936
- }>;
937
- defaultSource?: {
938
- type: "Entry";
939
- contentTypeId: string;
940
- link: {
941
- sys: {
942
- type: "Link";
943
- id: string;
944
- linkType: "Entry";
945
- };
946
- };
947
- } | undefined;
948
- passToNodes?: {
949
- parameterId: string;
950
- nodeId: string;
951
- prebindingId: string;
952
- }[] | undefined;
785
+ variableMappings?: Record<string, {
786
+ type: "ContentTypeMapping";
787
+ parameterDefinitionId: string;
788
+ pathsByContentType: Record<string, {
789
+ path: string;
953
790
  }>;
954
- variableMappings?: Record<string, {
955
- type: "ContentTypeMapping";
956
- parameterId: string;
957
- pathsByContentType: Record<string, {
958
- path: string;
959
- }>;
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
+ };
960
806
  }> | undefined;
961
- allowedVariableOverrides?: string[] | undefined;
962
- }[] | undefined;
807
+ }> | undefined;
963
808
  }>;
964
809
  declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
965
810
  componentTree: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
@@ -988,4 +833,4 @@ type ComponentDefinitionPropertyType = z.infer<typeof DefinitionPropertyTypeSche
988
833
  declare const SchemaVersions: z.ZodLiteral<"2023-09-28">;
989
834
  type SchemaVersions = z.infer<typeof SchemaVersions>;
990
835
 
991
- export { type BoundValue, type Breakpoint, type ComponentDefinitionPropertyType, type ComponentPropertyValue, type ComponentTreeNode, type ComponentValue, type DesignValue, type PatternComponentSettings as ExperienceComponentSettings, type ExperienceComponentTree, type ExperienceDataSource, type ExperienceFields, type ExperienceUnboundValues, type ExperienceUsedComponents, type NoValue, type Parameter, type PatternFields, type PrimitiveValue, SchemaVersions, type UnboundValue, type ValuesByBreakpoint };
836
+ export { type BoundValue, type Breakpoint, type ComponentDefinitionPropertyType, type ComponentPropertyValue, type ComponentTreeNode, type ComponentValue, type DesignValue, type PatternComponentSettings as ExperienceComponentSettings, type ExperienceComponentTree, type ExperienceDataSource, type ExperienceFields, type ExperienceUnboundValues, type ExperienceUsedComponents, type NoValue, type PatternFields, type PatternProperty, type PrimitiveValue, SchemaVersions, type UnboundValue, type ValuesByBreakpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-validators",
3
- "version": "1.42.0-dev-20250630T1405-f8cda11.0",
3
+ "version": "1.42.0-prerelease-20250620T1340-2128bcf.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": "8eeeb81e983889e3436e2a1cf14be363e8746bf2"
54
+ "gitHead": "3223211766bc1d3788c989c2faa660938d562dcf"
55
55
  }