@contentful/experiences-validators 1.42.0-dev-20250630T1149-4da2e67.0 → 1.42.0-dev-20250630T1405-f8cda11.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/index.cjs +21 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +285 -147
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +262 -147
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -576,148 +576,245 @@ 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
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
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<{
|
|
607
634
|
sys: z.ZodObject<{
|
|
608
635
|
type: z.ZodLiteral<"Link">;
|
|
609
636
|
id: z.ZodString;
|
|
610
|
-
linkType: z.ZodEnum<["
|
|
611
|
-
}, "
|
|
637
|
+
linkType: z.ZodEnum<["ContentType"]>;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
612
639
|
type: "Link";
|
|
613
640
|
id: string;
|
|
614
|
-
linkType: "
|
|
641
|
+
linkType: "ContentType";
|
|
615
642
|
}, {
|
|
616
643
|
type: "Link";
|
|
617
644
|
id: string;
|
|
618
|
-
linkType: "
|
|
645
|
+
linkType: "ContentType";
|
|
619
646
|
}>;
|
|
620
|
-
}, "
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
621
648
|
sys: {
|
|
622
649
|
type: "Link";
|
|
623
650
|
id: string;
|
|
624
|
-
linkType: "
|
|
651
|
+
linkType: "ContentType";
|
|
625
652
|
};
|
|
626
653
|
}, {
|
|
627
654
|
sys: {
|
|
628
655
|
type: "Link";
|
|
629
656
|
id: string;
|
|
630
|
-
linkType: "
|
|
657
|
+
linkType: "ContentType";
|
|
631
658
|
};
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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">>;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
contentTypes: Record<string, {
|
|
637
675
|
sys: {
|
|
638
676
|
type: "Link";
|
|
639
677
|
id: string;
|
|
640
|
-
linkType: "
|
|
678
|
+
linkType: "ContentType";
|
|
641
679
|
};
|
|
642
|
-
}
|
|
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;
|
|
643
697
|
}, {
|
|
644
|
-
|
|
645
|
-
contentTypeId: string;
|
|
646
|
-
link: {
|
|
698
|
+
contentTypes: Record<string, {
|
|
647
699
|
sys: {
|
|
648
700
|
type: "Link";
|
|
649
701
|
id: string;
|
|
650
|
-
linkType: "
|
|
702
|
+
linkType: "ContentType";
|
|
651
703
|
};
|
|
652
|
-
}
|
|
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;
|
|
653
721
|
}>>;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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;
|
|
659
727
|
}, "strip", z.ZodTypeAny, {
|
|
660
|
-
|
|
661
|
-
id: string;
|
|
662
|
-
linkType: "ContentType";
|
|
728
|
+
path: string;
|
|
663
729
|
}, {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
linkType: "ContentType";
|
|
667
|
-
}>;
|
|
730
|
+
path: string;
|
|
731
|
+
}>>;
|
|
668
732
|
}, "strip", z.ZodTypeAny, {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
733
|
+
type: "ContentTypeMapping";
|
|
734
|
+
parameterId: string;
|
|
735
|
+
pathsByContentType: Record<string, {
|
|
736
|
+
path: string;
|
|
737
|
+
}>;
|
|
674
738
|
}, {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
linkType: "ContentType";
|
|
687
|
-
};
|
|
688
|
-
}>;
|
|
689
|
-
defaultSource?: {
|
|
690
|
-
type: "Entry";
|
|
691
|
-
contentTypeId: string;
|
|
692
|
-
link: {
|
|
739
|
+
type: "ContentTypeMapping";
|
|
740
|
+
parameterId: string;
|
|
741
|
+
pathsByContentType: Record<string, {
|
|
742
|
+
path: string;
|
|
743
|
+
}>;
|
|
744
|
+
}>>>;
|
|
745
|
+
allowedVariableOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
746
|
+
}, "strict", z.ZodTypeAny, {
|
|
747
|
+
id: string;
|
|
748
|
+
parameterDefinitions: Record<string, {
|
|
749
|
+
contentTypes: Record<string, {
|
|
693
750
|
sys: {
|
|
694
751
|
type: "Link";
|
|
695
752
|
id: string;
|
|
696
|
-
linkType: "
|
|
753
|
+
linkType: "ContentType";
|
|
697
754
|
};
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
755
|
+
}>;
|
|
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;
|
|
707
772
|
}>;
|
|
708
|
-
|
|
709
|
-
type: "
|
|
710
|
-
|
|
711
|
-
|
|
773
|
+
variableMappings?: Record<string, {
|
|
774
|
+
type: "ContentTypeMapping";
|
|
775
|
+
parameterId: string;
|
|
776
|
+
pathsByContentType: Record<string, {
|
|
777
|
+
path: string;
|
|
778
|
+
}>;
|
|
779
|
+
}> | undefined;
|
|
780
|
+
allowedVariableOverrides?: string[] | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
id: string;
|
|
783
|
+
parameterDefinitions: Record<string, {
|
|
784
|
+
contentTypes: Record<string, {
|
|
712
785
|
sys: {
|
|
713
786
|
type: "Link";
|
|
714
787
|
id: string;
|
|
715
|
-
linkType: "
|
|
788
|
+
linkType: "ContentType";
|
|
716
789
|
};
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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;
|
|
807
|
+
}>;
|
|
808
|
+
variableMappings?: Record<string, {
|
|
809
|
+
type: "ContentTypeMapping";
|
|
810
|
+
parameterId: string;
|
|
811
|
+
pathsByContentType: Record<string, {
|
|
812
|
+
path: string;
|
|
813
|
+
}>;
|
|
814
|
+
}> | undefined;
|
|
815
|
+
allowedVariableOverrides?: string[] | undefined;
|
|
816
|
+
}>, "many">>;
|
|
817
|
+
}, "strict", z.ZodTypeAny, {
|
|
721
818
|
variableDefinitions: Record<string, {
|
|
722
819
|
type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
|
|
723
820
|
displayName?: string | undefined;
|
|
@@ -754,33 +851,42 @@ declare const ComponentSettingsSchema: z.ZodObject<{
|
|
|
754
851
|
}>;
|
|
755
852
|
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
853
|
category?: string | undefined;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
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: {
|
|
854
|
+
prebindingDefinitions?: {
|
|
855
|
+
id: string;
|
|
856
|
+
parameterDefinitions: Record<string, {
|
|
857
|
+
contentTypes: Record<string, {
|
|
776
858
|
sys: {
|
|
777
859
|
type: "Link";
|
|
778
860
|
id: string;
|
|
779
|
-
linkType: "
|
|
861
|
+
linkType: "ContentType";
|
|
780
862
|
};
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
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;
|
|
880
|
+
}>;
|
|
881
|
+
variableMappings?: Record<string, {
|
|
882
|
+
type: "ContentTypeMapping";
|
|
883
|
+
parameterId: string;
|
|
884
|
+
pathsByContentType: Record<string, {
|
|
885
|
+
path: string;
|
|
886
|
+
}>;
|
|
887
|
+
}> | undefined;
|
|
888
|
+
allowedVariableOverrides?: string[] | undefined;
|
|
889
|
+
}[] | undefined;
|
|
784
890
|
}, {
|
|
785
891
|
variableDefinitions: Record<string, {
|
|
786
892
|
type: "Text" | "RichText" | "Number" | "Date" | "Boolean" | "Location" | "Media" | "Object" | "Hyperlink" | "Array" | "Link";
|
|
@@ -818,33 +924,42 @@ declare const ComponentSettingsSchema: z.ZodObject<{
|
|
|
818
924
|
}>;
|
|
819
925
|
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
926
|
category?: string | undefined;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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: {
|
|
927
|
+
prebindingDefinitions?: {
|
|
928
|
+
id: string;
|
|
929
|
+
parameterDefinitions: Record<string, {
|
|
930
|
+
contentTypes: Record<string, {
|
|
840
931
|
sys: {
|
|
841
932
|
type: "Link";
|
|
842
933
|
id: string;
|
|
843
|
-
linkType: "
|
|
934
|
+
linkType: "ContentType";
|
|
844
935
|
};
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
|
|
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;
|
|
953
|
+
}>;
|
|
954
|
+
variableMappings?: Record<string, {
|
|
955
|
+
type: "ContentTypeMapping";
|
|
956
|
+
parameterId: string;
|
|
957
|
+
pathsByContentType: Record<string, {
|
|
958
|
+
path: string;
|
|
959
|
+
}>;
|
|
960
|
+
}> | undefined;
|
|
961
|
+
allowedVariableOverrides?: string[] | undefined;
|
|
962
|
+
}[] | undefined;
|
|
848
963
|
}>;
|
|
849
964
|
declare const PatternFieldsCMAShapeSchema: z.ZodObject<{
|
|
850
965
|
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-dev-
|
|
3
|
+
"version": "1.42.0-dev-20250630T1405-f8cda11.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": "
|
|
54
|
+
"gitHead": "8eeeb81e983889e3436e2a1cf14be363e8746bf2"
|
|
55
55
|
}
|