@elementor/editor-props 4.1.0-820 → 4.1.0-822
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.d.mts +103 -1
- package/dist/index.d.ts +103 -1
- package/dist/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/date-range.ts +14 -0
- package/src/prop-types/date-string.ts +7 -0
- package/src/prop-types/image-src.ts +1 -0
- package/src/prop-types/index.ts +2 -0
package/dist/index.d.mts
CHANGED
|
@@ -746,6 +746,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
746
746
|
} | {
|
|
747
747
|
id: null;
|
|
748
748
|
url?: any;
|
|
749
|
+
alt?: any;
|
|
749
750
|
} | null;
|
|
750
751
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"image-src", {
|
|
751
752
|
url: null;
|
|
@@ -753,6 +754,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
753
754
|
} | {
|
|
754
755
|
id: null;
|
|
755
756
|
url?: any;
|
|
757
|
+
alt?: any;
|
|
756
758
|
}>;
|
|
757
759
|
create: {
|
|
758
760
|
(value: {
|
|
@@ -761,12 +763,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
761
763
|
} | {
|
|
762
764
|
id: null;
|
|
763
765
|
url?: any;
|
|
766
|
+
alt?: any;
|
|
764
767
|
}): TransformablePropValue$1<"image-src", {
|
|
765
768
|
url: null;
|
|
766
769
|
id?: any;
|
|
767
770
|
} | {
|
|
768
771
|
id: null;
|
|
769
772
|
url?: any;
|
|
773
|
+
alt?: any;
|
|
770
774
|
}>;
|
|
771
775
|
(value: {
|
|
772
776
|
url: null;
|
|
@@ -774,12 +778,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
774
778
|
} | {
|
|
775
779
|
id: null;
|
|
776
780
|
url?: any;
|
|
781
|
+
alt?: any;
|
|
777
782
|
}, createOptions?: CreateOptions): TransformablePropValue$1<"image-src", {
|
|
778
783
|
url: null;
|
|
779
784
|
id?: any;
|
|
780
785
|
} | {
|
|
781
786
|
id: null;
|
|
782
787
|
url?: any;
|
|
788
|
+
alt?: any;
|
|
783
789
|
}>;
|
|
784
790
|
(value: (prev?: {
|
|
785
791
|
url: null;
|
|
@@ -787,18 +793,21 @@ declare const imageSrcPropTypeUtil: {
|
|
|
787
793
|
} | {
|
|
788
794
|
id: null;
|
|
789
795
|
url?: any;
|
|
796
|
+
alt?: any;
|
|
790
797
|
} | undefined) => {
|
|
791
798
|
url: null;
|
|
792
799
|
id?: any;
|
|
793
800
|
} | {
|
|
794
801
|
id: null;
|
|
795
802
|
url?: any;
|
|
803
|
+
alt?: any;
|
|
796
804
|
}, createOptions: CreateOptions): TransformablePropValue$1<"image-src", {
|
|
797
805
|
url: null;
|
|
798
806
|
id?: any;
|
|
799
807
|
} | {
|
|
800
808
|
id: null;
|
|
801
809
|
url?: any;
|
|
810
|
+
alt?: any;
|
|
802
811
|
}>;
|
|
803
812
|
};
|
|
804
813
|
schema: z.ZodObject<{
|
|
@@ -809,12 +818,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
809
818
|
} | {
|
|
810
819
|
id: null;
|
|
811
820
|
url?: any;
|
|
821
|
+
alt?: any;
|
|
812
822
|
}, z.ZodTypeDef, {
|
|
813
823
|
url: null;
|
|
814
824
|
id?: any;
|
|
815
825
|
} | {
|
|
816
826
|
id: null;
|
|
817
827
|
url?: any;
|
|
828
|
+
alt?: any;
|
|
818
829
|
}>;
|
|
819
830
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
820
831
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -825,6 +836,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
825
836
|
} | {
|
|
826
837
|
id: null;
|
|
827
838
|
url?: any;
|
|
839
|
+
alt?: any;
|
|
828
840
|
};
|
|
829
841
|
disabled?: boolean | undefined;
|
|
830
842
|
}, {
|
|
@@ -835,6 +847,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
835
847
|
} | {
|
|
836
848
|
id: null;
|
|
837
849
|
url?: any;
|
|
850
|
+
alt?: any;
|
|
838
851
|
};
|
|
839
852
|
disabled?: boolean | undefined;
|
|
840
853
|
}>;
|
|
@@ -6911,6 +6924,95 @@ declare const hueRotateFilterPropTypeUtil: {
|
|
|
6911
6924
|
key: "hue-rotate";
|
|
6912
6925
|
};
|
|
6913
6926
|
|
|
6927
|
+
declare const dateRangePropTypeUtil: {
|
|
6928
|
+
extract: (prop: unknown) => {
|
|
6929
|
+
min?: any;
|
|
6930
|
+
max?: any;
|
|
6931
|
+
} | null;
|
|
6932
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"date-range", {
|
|
6933
|
+
min?: any;
|
|
6934
|
+
max?: any;
|
|
6935
|
+
}>;
|
|
6936
|
+
create: {
|
|
6937
|
+
(value: {
|
|
6938
|
+
min?: any;
|
|
6939
|
+
max?: any;
|
|
6940
|
+
}): TransformablePropValue$1<"date-range", {
|
|
6941
|
+
min?: any;
|
|
6942
|
+
max?: any;
|
|
6943
|
+
}>;
|
|
6944
|
+
(value: {
|
|
6945
|
+
min?: any;
|
|
6946
|
+
max?: any;
|
|
6947
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"date-range", {
|
|
6948
|
+
min?: any;
|
|
6949
|
+
max?: any;
|
|
6950
|
+
}>;
|
|
6951
|
+
(value: (prev?: {
|
|
6952
|
+
min?: any;
|
|
6953
|
+
max?: any;
|
|
6954
|
+
} | undefined) => {
|
|
6955
|
+
min?: any;
|
|
6956
|
+
max?: any;
|
|
6957
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"date-range", {
|
|
6958
|
+
min?: any;
|
|
6959
|
+
max?: any;
|
|
6960
|
+
}>;
|
|
6961
|
+
};
|
|
6962
|
+
schema: z.ZodObject<{
|
|
6963
|
+
$$type: z.ZodLiteral<"date-range">;
|
|
6964
|
+
value: z.ZodType<{
|
|
6965
|
+
min?: any;
|
|
6966
|
+
max?: any;
|
|
6967
|
+
}, z.ZodTypeDef, {
|
|
6968
|
+
min?: any;
|
|
6969
|
+
max?: any;
|
|
6970
|
+
}>;
|
|
6971
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6972
|
+
}, "strict", z.ZodTypeAny, {
|
|
6973
|
+
$$type: "date-range";
|
|
6974
|
+
value: {
|
|
6975
|
+
min?: any;
|
|
6976
|
+
max?: any;
|
|
6977
|
+
};
|
|
6978
|
+
disabled?: boolean | undefined;
|
|
6979
|
+
}, {
|
|
6980
|
+
$$type: "date-range";
|
|
6981
|
+
value: {
|
|
6982
|
+
min?: any;
|
|
6983
|
+
max?: any;
|
|
6984
|
+
};
|
|
6985
|
+
disabled?: boolean | undefined;
|
|
6986
|
+
}>;
|
|
6987
|
+
key: "date-range";
|
|
6988
|
+
};
|
|
6989
|
+
type DateRangePropValue = z.infer<typeof dateRangePropTypeUtil.schema>;
|
|
6990
|
+
|
|
6991
|
+
declare const dateStringPropTypeUtil: {
|
|
6992
|
+
extract: (prop: unknown) => string | null;
|
|
6993
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"date-string", string>;
|
|
6994
|
+
create: {
|
|
6995
|
+
(value: string): TransformablePropValue$1<"date-string", string>;
|
|
6996
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"date-string", string>;
|
|
6997
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"date-string", string>;
|
|
6998
|
+
};
|
|
6999
|
+
schema: z.ZodObject<{
|
|
7000
|
+
$$type: z.ZodLiteral<"date-string">;
|
|
7001
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7002
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7003
|
+
}, "strict", z.ZodTypeAny, {
|
|
7004
|
+
$$type: "date-string";
|
|
7005
|
+
value: string;
|
|
7006
|
+
disabled?: boolean | undefined;
|
|
7007
|
+
}, {
|
|
7008
|
+
$$type: "date-string";
|
|
7009
|
+
value: string;
|
|
7010
|
+
disabled?: boolean | undefined;
|
|
7011
|
+
}>;
|
|
7012
|
+
key: "date-string";
|
|
7013
|
+
};
|
|
7014
|
+
type DateStringPropValue = z.infer<typeof dateStringPropTypeUtil.schema>;
|
|
7015
|
+
|
|
6914
7016
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
6915
7017
|
type Nullish = null | undefined | '';
|
|
6916
7018
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -6974,4 +7076,4 @@ declare const Schema: {
|
|
|
6974
7076
|
removeIntention: typeof removeIntention;
|
|
6975
7077
|
};
|
|
6976
7078
|
|
|
6977
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type SpanPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type SvgSrcPropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7079
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type DateRangePropValue, type DateStringPropValue, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type SpanPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type SvgSrcPropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dateRangePropTypeUtil, dateStringPropTypeUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
package/dist/index.d.ts
CHANGED
|
@@ -746,6 +746,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
746
746
|
} | {
|
|
747
747
|
id: null;
|
|
748
748
|
url?: any;
|
|
749
|
+
alt?: any;
|
|
749
750
|
} | null;
|
|
750
751
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"image-src", {
|
|
751
752
|
url: null;
|
|
@@ -753,6 +754,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
753
754
|
} | {
|
|
754
755
|
id: null;
|
|
755
756
|
url?: any;
|
|
757
|
+
alt?: any;
|
|
756
758
|
}>;
|
|
757
759
|
create: {
|
|
758
760
|
(value: {
|
|
@@ -761,12 +763,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
761
763
|
} | {
|
|
762
764
|
id: null;
|
|
763
765
|
url?: any;
|
|
766
|
+
alt?: any;
|
|
764
767
|
}): TransformablePropValue$1<"image-src", {
|
|
765
768
|
url: null;
|
|
766
769
|
id?: any;
|
|
767
770
|
} | {
|
|
768
771
|
id: null;
|
|
769
772
|
url?: any;
|
|
773
|
+
alt?: any;
|
|
770
774
|
}>;
|
|
771
775
|
(value: {
|
|
772
776
|
url: null;
|
|
@@ -774,12 +778,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
774
778
|
} | {
|
|
775
779
|
id: null;
|
|
776
780
|
url?: any;
|
|
781
|
+
alt?: any;
|
|
777
782
|
}, createOptions?: CreateOptions): TransformablePropValue$1<"image-src", {
|
|
778
783
|
url: null;
|
|
779
784
|
id?: any;
|
|
780
785
|
} | {
|
|
781
786
|
id: null;
|
|
782
787
|
url?: any;
|
|
788
|
+
alt?: any;
|
|
783
789
|
}>;
|
|
784
790
|
(value: (prev?: {
|
|
785
791
|
url: null;
|
|
@@ -787,18 +793,21 @@ declare const imageSrcPropTypeUtil: {
|
|
|
787
793
|
} | {
|
|
788
794
|
id: null;
|
|
789
795
|
url?: any;
|
|
796
|
+
alt?: any;
|
|
790
797
|
} | undefined) => {
|
|
791
798
|
url: null;
|
|
792
799
|
id?: any;
|
|
793
800
|
} | {
|
|
794
801
|
id: null;
|
|
795
802
|
url?: any;
|
|
803
|
+
alt?: any;
|
|
796
804
|
}, createOptions: CreateOptions): TransformablePropValue$1<"image-src", {
|
|
797
805
|
url: null;
|
|
798
806
|
id?: any;
|
|
799
807
|
} | {
|
|
800
808
|
id: null;
|
|
801
809
|
url?: any;
|
|
810
|
+
alt?: any;
|
|
802
811
|
}>;
|
|
803
812
|
};
|
|
804
813
|
schema: z.ZodObject<{
|
|
@@ -809,12 +818,14 @@ declare const imageSrcPropTypeUtil: {
|
|
|
809
818
|
} | {
|
|
810
819
|
id: null;
|
|
811
820
|
url?: any;
|
|
821
|
+
alt?: any;
|
|
812
822
|
}, z.ZodTypeDef, {
|
|
813
823
|
url: null;
|
|
814
824
|
id?: any;
|
|
815
825
|
} | {
|
|
816
826
|
id: null;
|
|
817
827
|
url?: any;
|
|
828
|
+
alt?: any;
|
|
818
829
|
}>;
|
|
819
830
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
820
831
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -825,6 +836,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
825
836
|
} | {
|
|
826
837
|
id: null;
|
|
827
838
|
url?: any;
|
|
839
|
+
alt?: any;
|
|
828
840
|
};
|
|
829
841
|
disabled?: boolean | undefined;
|
|
830
842
|
}, {
|
|
@@ -835,6 +847,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
835
847
|
} | {
|
|
836
848
|
id: null;
|
|
837
849
|
url?: any;
|
|
850
|
+
alt?: any;
|
|
838
851
|
};
|
|
839
852
|
disabled?: boolean | undefined;
|
|
840
853
|
}>;
|
|
@@ -6911,6 +6924,95 @@ declare const hueRotateFilterPropTypeUtil: {
|
|
|
6911
6924
|
key: "hue-rotate";
|
|
6912
6925
|
};
|
|
6913
6926
|
|
|
6927
|
+
declare const dateRangePropTypeUtil: {
|
|
6928
|
+
extract: (prop: unknown) => {
|
|
6929
|
+
min?: any;
|
|
6930
|
+
max?: any;
|
|
6931
|
+
} | null;
|
|
6932
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"date-range", {
|
|
6933
|
+
min?: any;
|
|
6934
|
+
max?: any;
|
|
6935
|
+
}>;
|
|
6936
|
+
create: {
|
|
6937
|
+
(value: {
|
|
6938
|
+
min?: any;
|
|
6939
|
+
max?: any;
|
|
6940
|
+
}): TransformablePropValue$1<"date-range", {
|
|
6941
|
+
min?: any;
|
|
6942
|
+
max?: any;
|
|
6943
|
+
}>;
|
|
6944
|
+
(value: {
|
|
6945
|
+
min?: any;
|
|
6946
|
+
max?: any;
|
|
6947
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"date-range", {
|
|
6948
|
+
min?: any;
|
|
6949
|
+
max?: any;
|
|
6950
|
+
}>;
|
|
6951
|
+
(value: (prev?: {
|
|
6952
|
+
min?: any;
|
|
6953
|
+
max?: any;
|
|
6954
|
+
} | undefined) => {
|
|
6955
|
+
min?: any;
|
|
6956
|
+
max?: any;
|
|
6957
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"date-range", {
|
|
6958
|
+
min?: any;
|
|
6959
|
+
max?: any;
|
|
6960
|
+
}>;
|
|
6961
|
+
};
|
|
6962
|
+
schema: z.ZodObject<{
|
|
6963
|
+
$$type: z.ZodLiteral<"date-range">;
|
|
6964
|
+
value: z.ZodType<{
|
|
6965
|
+
min?: any;
|
|
6966
|
+
max?: any;
|
|
6967
|
+
}, z.ZodTypeDef, {
|
|
6968
|
+
min?: any;
|
|
6969
|
+
max?: any;
|
|
6970
|
+
}>;
|
|
6971
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6972
|
+
}, "strict", z.ZodTypeAny, {
|
|
6973
|
+
$$type: "date-range";
|
|
6974
|
+
value: {
|
|
6975
|
+
min?: any;
|
|
6976
|
+
max?: any;
|
|
6977
|
+
};
|
|
6978
|
+
disabled?: boolean | undefined;
|
|
6979
|
+
}, {
|
|
6980
|
+
$$type: "date-range";
|
|
6981
|
+
value: {
|
|
6982
|
+
min?: any;
|
|
6983
|
+
max?: any;
|
|
6984
|
+
};
|
|
6985
|
+
disabled?: boolean | undefined;
|
|
6986
|
+
}>;
|
|
6987
|
+
key: "date-range";
|
|
6988
|
+
};
|
|
6989
|
+
type DateRangePropValue = z.infer<typeof dateRangePropTypeUtil.schema>;
|
|
6990
|
+
|
|
6991
|
+
declare const dateStringPropTypeUtil: {
|
|
6992
|
+
extract: (prop: unknown) => string | null;
|
|
6993
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"date-string", string>;
|
|
6994
|
+
create: {
|
|
6995
|
+
(value: string): TransformablePropValue$1<"date-string", string>;
|
|
6996
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"date-string", string>;
|
|
6997
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"date-string", string>;
|
|
6998
|
+
};
|
|
6999
|
+
schema: z.ZodObject<{
|
|
7000
|
+
$$type: z.ZodLiteral<"date-string">;
|
|
7001
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7002
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7003
|
+
}, "strict", z.ZodTypeAny, {
|
|
7004
|
+
$$type: "date-string";
|
|
7005
|
+
value: string;
|
|
7006
|
+
disabled?: boolean | undefined;
|
|
7007
|
+
}, {
|
|
7008
|
+
$$type: "date-string";
|
|
7009
|
+
value: string;
|
|
7010
|
+
disabled?: boolean | undefined;
|
|
7011
|
+
}>;
|
|
7012
|
+
key: "date-string";
|
|
7013
|
+
};
|
|
7014
|
+
type DateStringPropValue = z.infer<typeof dateStringPropTypeUtil.schema>;
|
|
7015
|
+
|
|
6914
7016
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
6915
7017
|
type Nullish = null | undefined | '';
|
|
6916
7018
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -6974,4 +7076,4 @@ declare const Schema: {
|
|
|
6974
7076
|
removeIntention: typeof removeIntention;
|
|
6975
7077
|
};
|
|
6976
7078
|
|
|
6977
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type SpanPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type SvgSrcPropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7079
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type DateRangePropValue, type DateStringPropValue, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type SpanPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type SvgSrcPropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dateRangePropTypeUtil, dateStringPropTypeUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,8 @@ __export(index_exports, {
|
|
|
44
44
|
createArrayPropUtils: () => createArrayPropUtils,
|
|
45
45
|
createPropUtils: () => createPropUtils,
|
|
46
46
|
cssFilterFunctionPropUtil: () => cssFilterFunctionPropUtil,
|
|
47
|
+
dateRangePropTypeUtil: () => dateRangePropTypeUtil,
|
|
48
|
+
dateStringPropTypeUtil: () => dateStringPropTypeUtil,
|
|
47
49
|
dimensionsPropTypeUtil: () => dimensionsPropTypeUtil,
|
|
48
50
|
dropShadowFilterPropTypeUtil: () => dropShadowFilterPropTypeUtil,
|
|
49
51
|
emailPropTypeUtil: () => emailPropTypeUtil,
|
|
@@ -247,7 +249,8 @@ var imageSrcPropTypeUtil = createPropUtils(
|
|
|
247
249
|
}).or(
|
|
248
250
|
import_schema12.z.strictObject({
|
|
249
251
|
id: import_schema12.z.null(),
|
|
250
|
-
url: unknownChildrenSchema
|
|
252
|
+
url: unknownChildrenSchema,
|
|
253
|
+
alt: unknownChildrenSchema
|
|
251
254
|
})
|
|
252
255
|
)
|
|
253
256
|
);
|
|
@@ -710,6 +713,20 @@ var backdropFilterPropTypeUtil = createPropUtils(
|
|
|
710
713
|
import_schema53.z.array(cssFilterFunctionPropUtil.schema)
|
|
711
714
|
);
|
|
712
715
|
|
|
716
|
+
// src/prop-types/date-range.ts
|
|
717
|
+
var import_schema54 = require("@elementor/schema");
|
|
718
|
+
var dateRangePropTypeUtil = createPropUtils(
|
|
719
|
+
"date-range",
|
|
720
|
+
import_schema54.z.strictObject({
|
|
721
|
+
min: unknownChildrenSchema,
|
|
722
|
+
max: unknownChildrenSchema
|
|
723
|
+
})
|
|
724
|
+
);
|
|
725
|
+
|
|
726
|
+
// src/prop-types/date-string.ts
|
|
727
|
+
var import_schema55 = require("@elementor/schema");
|
|
728
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", import_schema55.z.string());
|
|
729
|
+
|
|
713
730
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
714
731
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
715
732
|
var defaultOptions = {
|
|
@@ -1132,11 +1149,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1132
1149
|
};
|
|
1133
1150
|
|
|
1134
1151
|
// src/utils/is-transformable.ts
|
|
1135
|
-
var
|
|
1136
|
-
var transformableSchema =
|
|
1137
|
-
$$type:
|
|
1138
|
-
value:
|
|
1139
|
-
disabled:
|
|
1152
|
+
var import_schema56 = require("@elementor/schema");
|
|
1153
|
+
var transformableSchema = import_schema56.z.object({
|
|
1154
|
+
$$type: import_schema56.z.string(),
|
|
1155
|
+
value: import_schema56.z.any(),
|
|
1156
|
+
disabled: import_schema56.z.boolean().optional()
|
|
1140
1157
|
});
|
|
1141
1158
|
var isTransformable = (value) => {
|
|
1142
1159
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1369,6 +1386,8 @@ var Schema = {
|
|
|
1369
1386
|
createArrayPropUtils,
|
|
1370
1387
|
createPropUtils,
|
|
1371
1388
|
cssFilterFunctionPropUtil,
|
|
1389
|
+
dateRangePropTypeUtil,
|
|
1390
|
+
dateStringPropTypeUtil,
|
|
1372
1391
|
dimensionsPropTypeUtil,
|
|
1373
1392
|
dropShadowFilterPropTypeUtil,
|
|
1374
1393
|
emailPropTypeUtil,
|