@elementor/editor-props 4.1.0-821 → 4.1.0-823
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 +90 -1
- package/dist/index.d.ts +90 -1
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -5
- 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/index.ts +2 -0
package/dist/index.d.mts
CHANGED
|
@@ -6924,6 +6924,95 @@ declare const hueRotateFilterPropTypeUtil: {
|
|
|
6924
6924
|
key: "hue-rotate";
|
|
6925
6925
|
};
|
|
6926
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
|
+
|
|
6927
7016
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
6928
7017
|
type Nullish = null | undefined | '';
|
|
6929
7018
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -6987,4 +7076,4 @@ declare const Schema: {
|
|
|
6987
7076
|
removeIntention: typeof removeIntention;
|
|
6988
7077
|
};
|
|
6989
7078
|
|
|
6990
|
-
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
|
@@ -6924,6 +6924,95 @@ declare const hueRotateFilterPropTypeUtil: {
|
|
|
6924
6924
|
key: "hue-rotate";
|
|
6925
6925
|
};
|
|
6926
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
|
+
|
|
6927
7016
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
6928
7017
|
type Nullish = null | undefined | '';
|
|
6929
7018
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -6987,4 +7076,4 @@ declare const Schema: {
|
|
|
6987
7076
|
removeIntention: typeof removeIntention;
|
|
6988
7077
|
};
|
|
6989
7078
|
|
|
6990
|
-
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,
|
|
@@ -711,6 +713,20 @@ var backdropFilterPropTypeUtil = createPropUtils(
|
|
|
711
713
|
import_schema53.z.array(cssFilterFunctionPropUtil.schema)
|
|
712
714
|
);
|
|
713
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
|
+
|
|
714
730
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
715
731
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
716
732
|
var defaultOptions = {
|
|
@@ -1133,11 +1149,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1133
1149
|
};
|
|
1134
1150
|
|
|
1135
1151
|
// src/utils/is-transformable.ts
|
|
1136
|
-
var
|
|
1137
|
-
var transformableSchema =
|
|
1138
|
-
$$type:
|
|
1139
|
-
value:
|
|
1140
|
-
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()
|
|
1141
1157
|
});
|
|
1142
1158
|
var isTransformable = (value) => {
|
|
1143
1159
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1370,6 +1386,8 @@ var Schema = {
|
|
|
1370
1386
|
createArrayPropUtils,
|
|
1371
1387
|
createPropUtils,
|
|
1372
1388
|
cssFilterFunctionPropUtil,
|
|
1389
|
+
dateRangePropTypeUtil,
|
|
1390
|
+
dateStringPropTypeUtil,
|
|
1373
1391
|
dimensionsPropTypeUtil,
|
|
1374
1392
|
dropShadowFilterPropTypeUtil,
|
|
1375
1393
|
emailPropTypeUtil,
|