@elementor/editor-props 4.1.0-833 → 4.1.0-836
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 +65 -1
- package/dist/index.d.ts +65 -1
- package/dist/index.js +78 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/index.ts +1 -0
- package/src/prop-types/number-range.ts +14 -0
package/dist/index.d.mts
CHANGED
|
@@ -3026,6 +3026,70 @@ declare const keyValuePropTypeUtil: {
|
|
|
3026
3026
|
};
|
|
3027
3027
|
type KeyValuePropValue = z.infer<typeof keyValuePropTypeUtil.schema>;
|
|
3028
3028
|
|
|
3029
|
+
declare const numberRangePropTypeUtil: {
|
|
3030
|
+
extract: (prop: unknown) => {
|
|
3031
|
+
min?: any;
|
|
3032
|
+
max?: any;
|
|
3033
|
+
} | null;
|
|
3034
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"number-range", {
|
|
3035
|
+
min?: any;
|
|
3036
|
+
max?: any;
|
|
3037
|
+
}>;
|
|
3038
|
+
create: {
|
|
3039
|
+
(value: {
|
|
3040
|
+
min?: any;
|
|
3041
|
+
max?: any;
|
|
3042
|
+
}): TransformablePropValue$1<"number-range", {
|
|
3043
|
+
min?: any;
|
|
3044
|
+
max?: any;
|
|
3045
|
+
}>;
|
|
3046
|
+
(value: {
|
|
3047
|
+
min?: any;
|
|
3048
|
+
max?: any;
|
|
3049
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"number-range", {
|
|
3050
|
+
min?: any;
|
|
3051
|
+
max?: any;
|
|
3052
|
+
}>;
|
|
3053
|
+
(value: (prev?: {
|
|
3054
|
+
min?: any;
|
|
3055
|
+
max?: any;
|
|
3056
|
+
} | undefined) => {
|
|
3057
|
+
min?: any;
|
|
3058
|
+
max?: any;
|
|
3059
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"number-range", {
|
|
3060
|
+
min?: any;
|
|
3061
|
+
max?: any;
|
|
3062
|
+
}>;
|
|
3063
|
+
};
|
|
3064
|
+
schema: z.ZodObject<{
|
|
3065
|
+
$$type: z.ZodLiteral<"number-range">;
|
|
3066
|
+
value: z.ZodType<{
|
|
3067
|
+
min?: any;
|
|
3068
|
+
max?: any;
|
|
3069
|
+
}, z.ZodTypeDef, {
|
|
3070
|
+
min?: any;
|
|
3071
|
+
max?: any;
|
|
3072
|
+
}>;
|
|
3073
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3074
|
+
}, "strict", z.ZodTypeAny, {
|
|
3075
|
+
$$type: "number-range";
|
|
3076
|
+
value: {
|
|
3077
|
+
min?: any;
|
|
3078
|
+
max?: any;
|
|
3079
|
+
};
|
|
3080
|
+
disabled?: boolean | undefined;
|
|
3081
|
+
}, {
|
|
3082
|
+
$$type: "number-range";
|
|
3083
|
+
value: {
|
|
3084
|
+
min?: any;
|
|
3085
|
+
max?: any;
|
|
3086
|
+
};
|
|
3087
|
+
disabled?: boolean | undefined;
|
|
3088
|
+
}>;
|
|
3089
|
+
key: "number-range";
|
|
3090
|
+
};
|
|
3091
|
+
type NumberRangePropValue = z.infer<typeof numberRangePropTypeUtil.schema>;
|
|
3092
|
+
|
|
3029
3093
|
declare const DateTimePropTypeUtil: {
|
|
3030
3094
|
extract: (prop: unknown) => {
|
|
3031
3095
|
date?: any;
|
|
@@ -7176,4 +7240,4 @@ declare const Schema: {
|
|
|
7176
7240
|
removeIntention: typeof removeIntention;
|
|
7177
7241
|
};
|
|
7178
7242
|
|
|
7179
|
-
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 ExtractValueOptions, 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 OverridableTransformable, 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 TimeRangePropValue, type TimeStringPropValue, 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, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7243
|
+
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 ExtractValueOptions, 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 NumberRangePropValue, type ObjectPropType, type ObjectPropValue, type OverridableTransformable, 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 TimeRangePropValue, type TimeStringPropValue, 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, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
package/dist/index.d.ts
CHANGED
|
@@ -3026,6 +3026,70 @@ declare const keyValuePropTypeUtil: {
|
|
|
3026
3026
|
};
|
|
3027
3027
|
type KeyValuePropValue = z.infer<typeof keyValuePropTypeUtil.schema>;
|
|
3028
3028
|
|
|
3029
|
+
declare const numberRangePropTypeUtil: {
|
|
3030
|
+
extract: (prop: unknown) => {
|
|
3031
|
+
min?: any;
|
|
3032
|
+
max?: any;
|
|
3033
|
+
} | null;
|
|
3034
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"number-range", {
|
|
3035
|
+
min?: any;
|
|
3036
|
+
max?: any;
|
|
3037
|
+
}>;
|
|
3038
|
+
create: {
|
|
3039
|
+
(value: {
|
|
3040
|
+
min?: any;
|
|
3041
|
+
max?: any;
|
|
3042
|
+
}): TransformablePropValue$1<"number-range", {
|
|
3043
|
+
min?: any;
|
|
3044
|
+
max?: any;
|
|
3045
|
+
}>;
|
|
3046
|
+
(value: {
|
|
3047
|
+
min?: any;
|
|
3048
|
+
max?: any;
|
|
3049
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"number-range", {
|
|
3050
|
+
min?: any;
|
|
3051
|
+
max?: any;
|
|
3052
|
+
}>;
|
|
3053
|
+
(value: (prev?: {
|
|
3054
|
+
min?: any;
|
|
3055
|
+
max?: any;
|
|
3056
|
+
} | undefined) => {
|
|
3057
|
+
min?: any;
|
|
3058
|
+
max?: any;
|
|
3059
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"number-range", {
|
|
3060
|
+
min?: any;
|
|
3061
|
+
max?: any;
|
|
3062
|
+
}>;
|
|
3063
|
+
};
|
|
3064
|
+
schema: z.ZodObject<{
|
|
3065
|
+
$$type: z.ZodLiteral<"number-range">;
|
|
3066
|
+
value: z.ZodType<{
|
|
3067
|
+
min?: any;
|
|
3068
|
+
max?: any;
|
|
3069
|
+
}, z.ZodTypeDef, {
|
|
3070
|
+
min?: any;
|
|
3071
|
+
max?: any;
|
|
3072
|
+
}>;
|
|
3073
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3074
|
+
}, "strict", z.ZodTypeAny, {
|
|
3075
|
+
$$type: "number-range";
|
|
3076
|
+
value: {
|
|
3077
|
+
min?: any;
|
|
3078
|
+
max?: any;
|
|
3079
|
+
};
|
|
3080
|
+
disabled?: boolean | undefined;
|
|
3081
|
+
}, {
|
|
3082
|
+
$$type: "number-range";
|
|
3083
|
+
value: {
|
|
3084
|
+
min?: any;
|
|
3085
|
+
max?: any;
|
|
3086
|
+
};
|
|
3087
|
+
disabled?: boolean | undefined;
|
|
3088
|
+
}>;
|
|
3089
|
+
key: "number-range";
|
|
3090
|
+
};
|
|
3091
|
+
type NumberRangePropValue = z.infer<typeof numberRangePropTypeUtil.schema>;
|
|
3092
|
+
|
|
3029
3093
|
declare const DateTimePropTypeUtil: {
|
|
3030
3094
|
extract: (prop: unknown) => {
|
|
3031
3095
|
date?: any;
|
|
@@ -7176,4 +7240,4 @@ declare const Schema: {
|
|
|
7176
7240
|
removeIntention: typeof removeIntention;
|
|
7177
7241
|
};
|
|
7178
7242
|
|
|
7179
|
-
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 ExtractValueOptions, 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 OverridableTransformable, 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 TimeRangePropValue, type TimeStringPropValue, 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, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7243
|
+
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 ExtractValueOptions, 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 NumberRangePropValue, type ObjectPropType, type ObjectPropValue, type OverridableTransformable, 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 TimeRangePropValue, type TimeStringPropValue, 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, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
package/dist/index.js
CHANGED
|
@@ -75,6 +75,7 @@ __export(index_exports, {
|
|
|
75
75
|
mergeProps: () => mergeProps,
|
|
76
76
|
moveTransformPropTypeUtil: () => moveTransformPropTypeUtil,
|
|
77
77
|
numberPropTypeUtil: () => numberPropTypeUtil,
|
|
78
|
+
numberRangePropTypeUtil: () => numberRangePropTypeUtil,
|
|
78
79
|
parseHtmlChildren: () => parseHtmlChildren,
|
|
79
80
|
perspectiveOriginPropTypeUtil: () => perspectiveOriginPropTypeUtil,
|
|
80
81
|
positionPropTypeUtil: () => positionPropTypeUtil,
|
|
@@ -492,72 +493,82 @@ var gradientColorStopPropTypeUtil = createPropUtils(
|
|
|
492
493
|
import_schema32.z.array(colorStopPropTypeUtil.schema)
|
|
493
494
|
);
|
|
494
495
|
|
|
495
|
-
// src/prop-types/
|
|
496
|
+
// src/prop-types/number-range.ts
|
|
496
497
|
var import_schema33 = require("@elementor/schema");
|
|
498
|
+
var numberRangePropTypeUtil = createPropUtils(
|
|
499
|
+
"number-range",
|
|
500
|
+
import_schema33.z.strictObject({
|
|
501
|
+
min: unknownChildrenSchema,
|
|
502
|
+
max: unknownChildrenSchema
|
|
503
|
+
})
|
|
504
|
+
);
|
|
505
|
+
|
|
506
|
+
// src/prop-types/date-time.ts
|
|
507
|
+
var import_schema34 = require("@elementor/schema");
|
|
497
508
|
var DateTimePropTypeUtil = createPropUtils(
|
|
498
509
|
"date-time",
|
|
499
|
-
|
|
510
|
+
import_schema34.z.strictObject({
|
|
500
511
|
date: unknownChildrenSchema,
|
|
501
512
|
time: unknownChildrenSchema
|
|
502
513
|
})
|
|
503
514
|
);
|
|
504
515
|
|
|
505
516
|
// src/prop-types/position.ts
|
|
506
|
-
var
|
|
517
|
+
var import_schema35 = require("@elementor/schema");
|
|
507
518
|
var positionPropTypeUtil = createPropUtils(
|
|
508
519
|
"object-position",
|
|
509
|
-
|
|
520
|
+
import_schema35.z.strictObject({
|
|
510
521
|
x: unknownChildrenSchema,
|
|
511
522
|
y: unknownChildrenSchema
|
|
512
523
|
})
|
|
513
524
|
);
|
|
514
525
|
|
|
515
526
|
// src/prop-types/query.ts
|
|
516
|
-
var
|
|
527
|
+
var import_schema36 = require("@elementor/schema");
|
|
517
528
|
var queryPropTypeUtil = createPropUtils(
|
|
518
529
|
"query",
|
|
519
|
-
|
|
530
|
+
import_schema36.z.strictObject({
|
|
520
531
|
id: unknownChildrenSchema,
|
|
521
532
|
label: unknownChildrenSchema
|
|
522
533
|
})
|
|
523
534
|
);
|
|
524
535
|
|
|
525
536
|
// src/prop-types/html.ts
|
|
526
|
-
var
|
|
527
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
537
|
+
var import_schema37 = require("@elementor/schema");
|
|
538
|
+
var htmlPropTypeUtil = createPropUtils("html", import_schema37.z.string().nullable());
|
|
528
539
|
|
|
529
540
|
// src/prop-types/html-v2.ts
|
|
530
|
-
var
|
|
531
|
-
var childElementSchema =
|
|
532
|
-
() =>
|
|
533
|
-
id:
|
|
534
|
-
type:
|
|
535
|
-
content:
|
|
536
|
-
children:
|
|
541
|
+
var import_schema38 = require("@elementor/schema");
|
|
542
|
+
var childElementSchema = import_schema38.z.lazy(
|
|
543
|
+
() => import_schema38.z.object({
|
|
544
|
+
id: import_schema38.z.string(),
|
|
545
|
+
type: import_schema38.z.string(),
|
|
546
|
+
content: import_schema38.z.string().optional(),
|
|
547
|
+
children: import_schema38.z.array(childElementSchema).optional()
|
|
537
548
|
})
|
|
538
549
|
);
|
|
539
|
-
var htmlV2ValueSchema =
|
|
540
|
-
content:
|
|
541
|
-
children:
|
|
550
|
+
var htmlV2ValueSchema = import_schema38.z.object({
|
|
551
|
+
content: import_schema38.z.string().nullable(),
|
|
552
|
+
children: import_schema38.z.array(childElementSchema)
|
|
542
553
|
});
|
|
543
554
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
544
555
|
|
|
545
556
|
// src/prop-types/html-v3.ts
|
|
546
|
-
var
|
|
547
|
-
var htmlV3ValueSchema =
|
|
557
|
+
var import_schema39 = require("@elementor/schema");
|
|
558
|
+
var htmlV3ValueSchema = import_schema39.z.object({
|
|
548
559
|
content: stringPropTypeUtil.schema.nullable(),
|
|
549
|
-
children:
|
|
560
|
+
children: import_schema39.z.array(import_schema39.z.unknown())
|
|
550
561
|
});
|
|
551
562
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
552
563
|
|
|
553
564
|
// src/prop-types/filter-prop-types/filter.ts
|
|
554
|
-
var
|
|
565
|
+
var import_schema45 = require("@elementor/schema");
|
|
555
566
|
|
|
556
567
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
557
|
-
var
|
|
568
|
+
var import_schema40 = require("@elementor/schema");
|
|
558
569
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
559
570
|
"drop-shadow",
|
|
560
|
-
|
|
571
|
+
import_schema40.z.object({
|
|
561
572
|
xAxis: unknownChildrenSchema,
|
|
562
573
|
yAxis: unknownChildrenSchema,
|
|
563
574
|
blur: unknownChildrenSchema,
|
|
@@ -566,37 +577,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
566
577
|
);
|
|
567
578
|
|
|
568
579
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
569
|
-
var
|
|
580
|
+
var import_schema41 = require("@elementor/schema");
|
|
570
581
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
571
582
|
"blur",
|
|
572
|
-
|
|
583
|
+
import_schema41.z.strictObject({
|
|
573
584
|
size: unknownChildrenSchema
|
|
574
585
|
})
|
|
575
586
|
);
|
|
576
587
|
|
|
577
588
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
578
|
-
var
|
|
589
|
+
var import_schema42 = require("@elementor/schema");
|
|
579
590
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
580
591
|
"color-tone",
|
|
581
|
-
|
|
592
|
+
import_schema42.z.strictObject({
|
|
582
593
|
size: unknownChildrenSchema
|
|
583
594
|
})
|
|
584
595
|
);
|
|
585
596
|
|
|
586
597
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
587
|
-
var
|
|
598
|
+
var import_schema43 = require("@elementor/schema");
|
|
588
599
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
589
600
|
"hue-rotate",
|
|
590
|
-
|
|
601
|
+
import_schema43.z.strictObject({
|
|
591
602
|
size: unknownChildrenSchema
|
|
592
603
|
})
|
|
593
604
|
);
|
|
594
605
|
|
|
595
606
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
596
|
-
var
|
|
607
|
+
var import_schema44 = require("@elementor/schema");
|
|
597
608
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
598
609
|
"intensity",
|
|
599
|
-
|
|
610
|
+
import_schema44.z.strictObject({
|
|
600
611
|
size: unknownChildrenSchema
|
|
601
612
|
})
|
|
602
613
|
);
|
|
@@ -604,9 +615,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
604
615
|
// src/prop-types/filter-prop-types/filter.ts
|
|
605
616
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
606
617
|
"css-filter-func",
|
|
607
|
-
|
|
618
|
+
import_schema45.z.object({
|
|
608
619
|
func: stringPropTypeUtil.schema,
|
|
609
|
-
args:
|
|
620
|
+
args: import_schema45.z.union([
|
|
610
621
|
blurFilterPropTypeUtil.schema,
|
|
611
622
|
intensityFilterPropTypeUtil.schema,
|
|
612
623
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -615,13 +626,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
615
626
|
])
|
|
616
627
|
})
|
|
617
628
|
);
|
|
618
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
629
|
+
var filterPropTypeUtil = createPropUtils("filter", import_schema45.z.array(cssFilterFunctionPropUtil.schema));
|
|
619
630
|
|
|
620
631
|
// src/prop-types/transform-prop-types/transform.ts
|
|
621
|
-
var
|
|
632
|
+
var import_schema46 = require("@elementor/schema");
|
|
622
633
|
var transformPropTypeUtil = createPropUtils(
|
|
623
634
|
"transform",
|
|
624
|
-
|
|
635
|
+
import_schema46.z.strictObject({
|
|
625
636
|
"transform-functions": unknownChildrenSchema,
|
|
626
637
|
"transform-origin": unknownChildrenSchema,
|
|
627
638
|
perspective: unknownChildrenSchema,
|
|
@@ -630,10 +641,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
630
641
|
);
|
|
631
642
|
|
|
632
643
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
633
|
-
var
|
|
644
|
+
var import_schema51 = require("@elementor/schema");
|
|
634
645
|
|
|
635
646
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
636
|
-
var
|
|
647
|
+
var import_schema47 = require("@elementor/schema");
|
|
637
648
|
|
|
638
649
|
// src/prop-types/transform-prop-types/types.ts
|
|
639
650
|
var TransformFunctionKeys = {
|
|
@@ -646,7 +657,7 @@ var TransformFunctionKeys = {
|
|
|
646
657
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
647
658
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
648
659
|
TransformFunctionKeys.move,
|
|
649
|
-
|
|
660
|
+
import_schema47.z.strictObject({
|
|
650
661
|
x: unknownChildrenSchema,
|
|
651
662
|
y: unknownChildrenSchema,
|
|
652
663
|
z: unknownChildrenSchema
|
|
@@ -654,10 +665,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
654
665
|
);
|
|
655
666
|
|
|
656
667
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
657
|
-
var
|
|
668
|
+
var import_schema48 = require("@elementor/schema");
|
|
658
669
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
659
670
|
TransformFunctionKeys.rotate,
|
|
660
|
-
|
|
671
|
+
import_schema48.z.strictObject({
|
|
661
672
|
x: unknownChildrenSchema,
|
|
662
673
|
y: unknownChildrenSchema,
|
|
663
674
|
z: unknownChildrenSchema
|
|
@@ -665,10 +676,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
665
676
|
);
|
|
666
677
|
|
|
667
678
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
668
|
-
var
|
|
679
|
+
var import_schema49 = require("@elementor/schema");
|
|
669
680
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
670
681
|
TransformFunctionKeys.scale,
|
|
671
|
-
|
|
682
|
+
import_schema49.z.strictObject({
|
|
672
683
|
x: numberPropTypeUtil.schema.nullable(),
|
|
673
684
|
y: numberPropTypeUtil.schema.nullable(),
|
|
674
685
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -676,10 +687,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
676
687
|
);
|
|
677
688
|
|
|
678
689
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
679
|
-
var
|
|
690
|
+
var import_schema50 = require("@elementor/schema");
|
|
680
691
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
681
692
|
TransformFunctionKeys.skew,
|
|
682
|
-
|
|
693
|
+
import_schema50.z.strictObject({
|
|
683
694
|
x: unknownChildrenSchema,
|
|
684
695
|
y: unknownChildrenSchema
|
|
685
696
|
})
|
|
@@ -687,13 +698,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
687
698
|
|
|
688
699
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
689
700
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
690
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
701
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema51.z.array(filterTypes));
|
|
691
702
|
|
|
692
703
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
693
|
-
var
|
|
704
|
+
var import_schema52 = require("@elementor/schema");
|
|
694
705
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
695
706
|
"transform-origin",
|
|
696
|
-
|
|
707
|
+
import_schema52.z.strictObject({
|
|
697
708
|
x: unknownChildrenSchema,
|
|
698
709
|
y: unknownChildrenSchema,
|
|
699
710
|
z: unknownChildrenSchema
|
|
@@ -701,49 +712,49 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
701
712
|
);
|
|
702
713
|
|
|
703
714
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
704
|
-
var
|
|
715
|
+
var import_schema53 = require("@elementor/schema");
|
|
705
716
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
706
717
|
"perspective-origin",
|
|
707
|
-
|
|
718
|
+
import_schema53.z.strictObject({
|
|
708
719
|
x: unknownChildrenSchema,
|
|
709
720
|
y: unknownChildrenSchema
|
|
710
721
|
})
|
|
711
722
|
);
|
|
712
723
|
|
|
713
724
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
714
|
-
var
|
|
725
|
+
var import_schema54 = require("@elementor/schema");
|
|
715
726
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
716
727
|
"backdrop-filter",
|
|
717
|
-
|
|
728
|
+
import_schema54.z.array(cssFilterFunctionPropUtil.schema)
|
|
718
729
|
);
|
|
719
730
|
|
|
720
731
|
// src/prop-types/date-range.ts
|
|
721
|
-
var
|
|
732
|
+
var import_schema55 = require("@elementor/schema");
|
|
722
733
|
var dateRangePropTypeUtil = createPropUtils(
|
|
723
734
|
"date-range",
|
|
724
|
-
|
|
735
|
+
import_schema55.z.strictObject({
|
|
725
736
|
min: unknownChildrenSchema,
|
|
726
737
|
max: unknownChildrenSchema
|
|
727
738
|
})
|
|
728
739
|
);
|
|
729
740
|
|
|
730
741
|
// src/prop-types/date-string.ts
|
|
731
|
-
var
|
|
732
|
-
var dateStringPropTypeUtil = createPropUtils("date-string",
|
|
742
|
+
var import_schema56 = require("@elementor/schema");
|
|
743
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", import_schema56.z.string());
|
|
733
744
|
|
|
734
745
|
// src/prop-types/time-range.ts
|
|
735
|
-
var
|
|
746
|
+
var import_schema57 = require("@elementor/schema");
|
|
736
747
|
var timeRangePropTypeUtil = createPropUtils(
|
|
737
748
|
"time-range",
|
|
738
|
-
|
|
749
|
+
import_schema57.z.strictObject({
|
|
739
750
|
min: unknownChildrenSchema,
|
|
740
751
|
max: unknownChildrenSchema
|
|
741
752
|
})
|
|
742
753
|
);
|
|
743
754
|
|
|
744
755
|
// src/prop-types/time-string.ts
|
|
745
|
-
var
|
|
746
|
-
var timeStringPropTypeUtil = createPropUtils("time-string",
|
|
756
|
+
var import_schema58 = require("@elementor/schema");
|
|
757
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", import_schema58.z.string());
|
|
747
758
|
|
|
748
759
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
749
760
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
@@ -1167,11 +1178,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1167
1178
|
};
|
|
1168
1179
|
|
|
1169
1180
|
// src/utils/is-transformable.ts
|
|
1170
|
-
var
|
|
1171
|
-
var transformableSchema =
|
|
1172
|
-
$$type:
|
|
1173
|
-
value:
|
|
1174
|
-
disabled:
|
|
1181
|
+
var import_schema59 = require("@elementor/schema");
|
|
1182
|
+
var transformableSchema = import_schema59.z.object({
|
|
1183
|
+
$$type: import_schema59.z.string(),
|
|
1184
|
+
value: import_schema59.z.any(),
|
|
1185
|
+
disabled: import_schema59.z.boolean().optional()
|
|
1175
1186
|
});
|
|
1176
1187
|
var isTransformable = (value) => {
|
|
1177
1188
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1464,6 +1475,7 @@ var Schema = {
|
|
|
1464
1475
|
mergeProps,
|
|
1465
1476
|
moveTransformPropTypeUtil,
|
|
1466
1477
|
numberPropTypeUtil,
|
|
1478
|
+
numberRangePropTypeUtil,
|
|
1467
1479
|
parseHtmlChildren,
|
|
1468
1480
|
perspectiveOriginPropTypeUtil,
|
|
1469
1481
|
positionPropTypeUtil,
|