@elementor/editor-props 4.1.0-832 → 4.1.0-834
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/index.ts +2 -0
- package/src/prop-types/time-range.ts +14 -0
- package/src/prop-types/time-string.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -7013,6 +7013,95 @@ declare const dateStringPropTypeUtil: {
|
|
|
7013
7013
|
};
|
|
7014
7014
|
type DateStringPropValue = z.infer<typeof dateStringPropTypeUtil.schema>;
|
|
7015
7015
|
|
|
7016
|
+
declare const timeRangePropTypeUtil: {
|
|
7017
|
+
extract: (prop: unknown) => {
|
|
7018
|
+
min?: any;
|
|
7019
|
+
max?: any;
|
|
7020
|
+
} | null;
|
|
7021
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"time-range", {
|
|
7022
|
+
min?: any;
|
|
7023
|
+
max?: any;
|
|
7024
|
+
}>;
|
|
7025
|
+
create: {
|
|
7026
|
+
(value: {
|
|
7027
|
+
min?: any;
|
|
7028
|
+
max?: any;
|
|
7029
|
+
}): TransformablePropValue$1<"time-range", {
|
|
7030
|
+
min?: any;
|
|
7031
|
+
max?: any;
|
|
7032
|
+
}>;
|
|
7033
|
+
(value: {
|
|
7034
|
+
min?: any;
|
|
7035
|
+
max?: any;
|
|
7036
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"time-range", {
|
|
7037
|
+
min?: any;
|
|
7038
|
+
max?: any;
|
|
7039
|
+
}>;
|
|
7040
|
+
(value: (prev?: {
|
|
7041
|
+
min?: any;
|
|
7042
|
+
max?: any;
|
|
7043
|
+
} | undefined) => {
|
|
7044
|
+
min?: any;
|
|
7045
|
+
max?: any;
|
|
7046
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"time-range", {
|
|
7047
|
+
min?: any;
|
|
7048
|
+
max?: any;
|
|
7049
|
+
}>;
|
|
7050
|
+
};
|
|
7051
|
+
schema: z.ZodObject<{
|
|
7052
|
+
$$type: z.ZodLiteral<"time-range">;
|
|
7053
|
+
value: z.ZodType<{
|
|
7054
|
+
min?: any;
|
|
7055
|
+
max?: any;
|
|
7056
|
+
}, z.ZodTypeDef, {
|
|
7057
|
+
min?: any;
|
|
7058
|
+
max?: any;
|
|
7059
|
+
}>;
|
|
7060
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7061
|
+
}, "strict", z.ZodTypeAny, {
|
|
7062
|
+
$$type: "time-range";
|
|
7063
|
+
value: {
|
|
7064
|
+
min?: any;
|
|
7065
|
+
max?: any;
|
|
7066
|
+
};
|
|
7067
|
+
disabled?: boolean | undefined;
|
|
7068
|
+
}, {
|
|
7069
|
+
$$type: "time-range";
|
|
7070
|
+
value: {
|
|
7071
|
+
min?: any;
|
|
7072
|
+
max?: any;
|
|
7073
|
+
};
|
|
7074
|
+
disabled?: boolean | undefined;
|
|
7075
|
+
}>;
|
|
7076
|
+
key: "time-range";
|
|
7077
|
+
};
|
|
7078
|
+
type TimeRangePropValue = z.infer<typeof timeRangePropTypeUtil.schema>;
|
|
7079
|
+
|
|
7080
|
+
declare const timeStringPropTypeUtil: {
|
|
7081
|
+
extract: (prop: unknown) => string | null;
|
|
7082
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"time-string", string>;
|
|
7083
|
+
create: {
|
|
7084
|
+
(value: string): TransformablePropValue$1<"time-string", string>;
|
|
7085
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"time-string", string>;
|
|
7086
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"time-string", string>;
|
|
7087
|
+
};
|
|
7088
|
+
schema: z.ZodObject<{
|
|
7089
|
+
$$type: z.ZodLiteral<"time-string">;
|
|
7090
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7091
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7092
|
+
}, "strict", z.ZodTypeAny, {
|
|
7093
|
+
$$type: "time-string";
|
|
7094
|
+
value: string;
|
|
7095
|
+
disabled?: boolean | undefined;
|
|
7096
|
+
}, {
|
|
7097
|
+
$$type: "time-string";
|
|
7098
|
+
value: string;
|
|
7099
|
+
disabled?: boolean | undefined;
|
|
7100
|
+
}>;
|
|
7101
|
+
key: "time-string";
|
|
7102
|
+
};
|
|
7103
|
+
type TimeStringPropValue = z.infer<typeof timeStringPropTypeUtil.schema>;
|
|
7104
|
+
|
|
7016
7105
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
7017
7106
|
type Nullish = null | undefined | '';
|
|
7018
7107
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -7087,4 +7176,4 @@ declare const Schema: {
|
|
|
7087
7176
|
removeIntention: typeof removeIntention;
|
|
7088
7177
|
};
|
|
7089
7178
|
|
|
7090
|
-
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 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, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -7013,6 +7013,95 @@ declare const dateStringPropTypeUtil: {
|
|
|
7013
7013
|
};
|
|
7014
7014
|
type DateStringPropValue = z.infer<typeof dateStringPropTypeUtil.schema>;
|
|
7015
7015
|
|
|
7016
|
+
declare const timeRangePropTypeUtil: {
|
|
7017
|
+
extract: (prop: unknown) => {
|
|
7018
|
+
min?: any;
|
|
7019
|
+
max?: any;
|
|
7020
|
+
} | null;
|
|
7021
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"time-range", {
|
|
7022
|
+
min?: any;
|
|
7023
|
+
max?: any;
|
|
7024
|
+
}>;
|
|
7025
|
+
create: {
|
|
7026
|
+
(value: {
|
|
7027
|
+
min?: any;
|
|
7028
|
+
max?: any;
|
|
7029
|
+
}): TransformablePropValue$1<"time-range", {
|
|
7030
|
+
min?: any;
|
|
7031
|
+
max?: any;
|
|
7032
|
+
}>;
|
|
7033
|
+
(value: {
|
|
7034
|
+
min?: any;
|
|
7035
|
+
max?: any;
|
|
7036
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"time-range", {
|
|
7037
|
+
min?: any;
|
|
7038
|
+
max?: any;
|
|
7039
|
+
}>;
|
|
7040
|
+
(value: (prev?: {
|
|
7041
|
+
min?: any;
|
|
7042
|
+
max?: any;
|
|
7043
|
+
} | undefined) => {
|
|
7044
|
+
min?: any;
|
|
7045
|
+
max?: any;
|
|
7046
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"time-range", {
|
|
7047
|
+
min?: any;
|
|
7048
|
+
max?: any;
|
|
7049
|
+
}>;
|
|
7050
|
+
};
|
|
7051
|
+
schema: z.ZodObject<{
|
|
7052
|
+
$$type: z.ZodLiteral<"time-range">;
|
|
7053
|
+
value: z.ZodType<{
|
|
7054
|
+
min?: any;
|
|
7055
|
+
max?: any;
|
|
7056
|
+
}, z.ZodTypeDef, {
|
|
7057
|
+
min?: any;
|
|
7058
|
+
max?: any;
|
|
7059
|
+
}>;
|
|
7060
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7061
|
+
}, "strict", z.ZodTypeAny, {
|
|
7062
|
+
$$type: "time-range";
|
|
7063
|
+
value: {
|
|
7064
|
+
min?: any;
|
|
7065
|
+
max?: any;
|
|
7066
|
+
};
|
|
7067
|
+
disabled?: boolean | undefined;
|
|
7068
|
+
}, {
|
|
7069
|
+
$$type: "time-range";
|
|
7070
|
+
value: {
|
|
7071
|
+
min?: any;
|
|
7072
|
+
max?: any;
|
|
7073
|
+
};
|
|
7074
|
+
disabled?: boolean | undefined;
|
|
7075
|
+
}>;
|
|
7076
|
+
key: "time-range";
|
|
7077
|
+
};
|
|
7078
|
+
type TimeRangePropValue = z.infer<typeof timeRangePropTypeUtil.schema>;
|
|
7079
|
+
|
|
7080
|
+
declare const timeStringPropTypeUtil: {
|
|
7081
|
+
extract: (prop: unknown) => string | null;
|
|
7082
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"time-string", string>;
|
|
7083
|
+
create: {
|
|
7084
|
+
(value: string): TransformablePropValue$1<"time-string", string>;
|
|
7085
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"time-string", string>;
|
|
7086
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"time-string", string>;
|
|
7087
|
+
};
|
|
7088
|
+
schema: z.ZodObject<{
|
|
7089
|
+
$$type: z.ZodLiteral<"time-string">;
|
|
7090
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7091
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
7092
|
+
}, "strict", z.ZodTypeAny, {
|
|
7093
|
+
$$type: "time-string";
|
|
7094
|
+
value: string;
|
|
7095
|
+
disabled?: boolean | undefined;
|
|
7096
|
+
}, {
|
|
7097
|
+
$$type: "time-string";
|
|
7098
|
+
value: string;
|
|
7099
|
+
disabled?: boolean | undefined;
|
|
7100
|
+
}>;
|
|
7101
|
+
key: "time-string";
|
|
7102
|
+
};
|
|
7103
|
+
type TimeStringPropValue = z.infer<typeof timeStringPropTypeUtil.schema>;
|
|
7104
|
+
|
|
7016
7105
|
declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TValue | null;
|
|
7017
7106
|
type Nullish = null | undefined | '';
|
|
7018
7107
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
@@ -7087,4 +7176,4 @@ declare const Schema: {
|
|
|
7087
7176
|
removeIntention: typeof removeIntention;
|
|
7088
7177
|
};
|
|
7089
7178
|
|
|
7090
|
-
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 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, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,8 @@ __export(index_exports, {
|
|
|
91
91
|
stringPropTypeUtil: () => stringPropTypeUtil,
|
|
92
92
|
strokePropTypeUtil: () => strokePropTypeUtil,
|
|
93
93
|
svgSrcPropTypeUtil: () => svgSrcPropTypeUtil,
|
|
94
|
+
timeRangePropTypeUtil: () => timeRangePropTypeUtil,
|
|
95
|
+
timeStringPropTypeUtil: () => timeStringPropTypeUtil,
|
|
94
96
|
transformFunctionsPropTypeUtil: () => transformFunctionsPropTypeUtil,
|
|
95
97
|
transformOriginPropTypeUtil: () => transformOriginPropTypeUtil,
|
|
96
98
|
transformPropTypeUtil: () => transformPropTypeUtil,
|
|
@@ -729,6 +731,20 @@ var dateRangePropTypeUtil = createPropUtils(
|
|
|
729
731
|
var import_schema55 = require("@elementor/schema");
|
|
730
732
|
var dateStringPropTypeUtil = createPropUtils("date-string", import_schema55.z.string());
|
|
731
733
|
|
|
734
|
+
// src/prop-types/time-range.ts
|
|
735
|
+
var import_schema56 = require("@elementor/schema");
|
|
736
|
+
var timeRangePropTypeUtil = createPropUtils(
|
|
737
|
+
"time-range",
|
|
738
|
+
import_schema56.z.strictObject({
|
|
739
|
+
min: unknownChildrenSchema,
|
|
740
|
+
max: unknownChildrenSchema
|
|
741
|
+
})
|
|
742
|
+
);
|
|
743
|
+
|
|
744
|
+
// src/prop-types/time-string.ts
|
|
745
|
+
var import_schema57 = require("@elementor/schema");
|
|
746
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", import_schema57.z.string());
|
|
747
|
+
|
|
732
748
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
733
749
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
734
750
|
var defaultOptions = {
|
|
@@ -1151,11 +1167,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1151
1167
|
};
|
|
1152
1168
|
|
|
1153
1169
|
// src/utils/is-transformable.ts
|
|
1154
|
-
var
|
|
1155
|
-
var transformableSchema =
|
|
1156
|
-
$$type:
|
|
1157
|
-
value:
|
|
1158
|
-
disabled:
|
|
1170
|
+
var import_schema58 = require("@elementor/schema");
|
|
1171
|
+
var transformableSchema = import_schema58.z.object({
|
|
1172
|
+
$$type: import_schema58.z.string(),
|
|
1173
|
+
value: import_schema58.z.any(),
|
|
1174
|
+
disabled: import_schema58.z.boolean().optional()
|
|
1159
1175
|
});
|
|
1160
1176
|
var isTransformable = (value) => {
|
|
1161
1177
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1464,6 +1480,8 @@ var Schema = {
|
|
|
1464
1480
|
stringPropTypeUtil,
|
|
1465
1481
|
strokePropTypeUtil,
|
|
1466
1482
|
svgSrcPropTypeUtil,
|
|
1483
|
+
timeRangePropTypeUtil,
|
|
1484
|
+
timeStringPropTypeUtil,
|
|
1467
1485
|
transformFunctionsPropTypeUtil,
|
|
1468
1486
|
transformOriginPropTypeUtil,
|
|
1469
1487
|
transformPropTypeUtil,
|