@elementor/editor-props 4.3.0-1046 → 4.3.0-1048
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 +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +51 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/escaped-html.ts +7 -0
- package/src/prop-types/index.ts +1 -0
- package/src/utils/test-utils/stubs.ts +28 -0
package/dist/index.d.mts
CHANGED
|
@@ -4069,6 +4069,31 @@ declare const htmlV3PropTypeUtil: {
|
|
|
4069
4069
|
type HtmlV3PropValue = z.infer<typeof htmlV3PropTypeUtil.schema>;
|
|
4070
4070
|
type HtmlV3Value = z.infer<typeof htmlV3ValueSchema>;
|
|
4071
4071
|
|
|
4072
|
+
declare const escapedHtmlPropTypeUtil: {
|
|
4073
|
+
extract: (prop: unknown) => string | null;
|
|
4074
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"escaped-html", string | null>;
|
|
4075
|
+
create: {
|
|
4076
|
+
(value: string | null): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4077
|
+
(value: string | null, createOptions?: CreateOptions): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4078
|
+
(value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4079
|
+
};
|
|
4080
|
+
schema: z.ZodObject<{
|
|
4081
|
+
$$type: z.ZodLiteral<"escaped-html">;
|
|
4082
|
+
value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
4083
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4084
|
+
}, "strict", z.ZodTypeAny, {
|
|
4085
|
+
$$type: "escaped-html";
|
|
4086
|
+
value: string | null;
|
|
4087
|
+
disabled?: boolean | undefined;
|
|
4088
|
+
}, {
|
|
4089
|
+
$$type: "escaped-html";
|
|
4090
|
+
value: string | null;
|
|
4091
|
+
disabled?: boolean | undefined;
|
|
4092
|
+
}>;
|
|
4093
|
+
key: "escaped-html";
|
|
4094
|
+
};
|
|
4095
|
+
type EscapedHtmlPropValue = z.infer<typeof escapedHtmlPropTypeUtil.schema>;
|
|
4096
|
+
|
|
4072
4097
|
declare const cssFilterFunctionPropUtil: {
|
|
4073
4098
|
extract: (prop: unknown) => {
|
|
4074
4099
|
func: {
|
|
@@ -7775,4 +7800,4 @@ declare const Schema: {
|
|
|
7775
7800
|
setDynamicTagNamesResolver: typeof setDynamicTagNamesResolver;
|
|
7776
7801
|
};
|
|
7777
7802
|
|
|
7778
|
-
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 EmailsPropValue, type ExtractValueOptions, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type FontFamilyPropValue, type GradientColorStopPropValue, type GridTrackSizePropValue, 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 QueryFilterKeyConfig, type QueryFilterPropValue, 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, emailsPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, fontFamilyPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, gridTrackSizePropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryFilterArrayPropTypeUtil, queryFilterPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7803
|
+
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 EmailsPropValue, type EscapedHtmlPropValue, type ExtractValueOptions, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type FontFamilyPropValue, type GradientColorStopPropValue, type GridTrackSizePropValue, 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 QueryFilterKeyConfig, type QueryFilterPropValue, 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, emailsPropTypeUtil, escapedHtmlPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, fontFamilyPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, gridTrackSizePropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryFilterArrayPropTypeUtil, queryFilterPropTypeUtil, 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
|
@@ -4069,6 +4069,31 @@ declare const htmlV3PropTypeUtil: {
|
|
|
4069
4069
|
type HtmlV3PropValue = z.infer<typeof htmlV3PropTypeUtil.schema>;
|
|
4070
4070
|
type HtmlV3Value = z.infer<typeof htmlV3ValueSchema>;
|
|
4071
4071
|
|
|
4072
|
+
declare const escapedHtmlPropTypeUtil: {
|
|
4073
|
+
extract: (prop: unknown) => string | null;
|
|
4074
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"escaped-html", string | null>;
|
|
4075
|
+
create: {
|
|
4076
|
+
(value: string | null): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4077
|
+
(value: string | null, createOptions?: CreateOptions): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4078
|
+
(value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): TransformablePropValue$1<"escaped-html", string | null>;
|
|
4079
|
+
};
|
|
4080
|
+
schema: z.ZodObject<{
|
|
4081
|
+
$$type: z.ZodLiteral<"escaped-html">;
|
|
4082
|
+
value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
4083
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4084
|
+
}, "strict", z.ZodTypeAny, {
|
|
4085
|
+
$$type: "escaped-html";
|
|
4086
|
+
value: string | null;
|
|
4087
|
+
disabled?: boolean | undefined;
|
|
4088
|
+
}, {
|
|
4089
|
+
$$type: "escaped-html";
|
|
4090
|
+
value: string | null;
|
|
4091
|
+
disabled?: boolean | undefined;
|
|
4092
|
+
}>;
|
|
4093
|
+
key: "escaped-html";
|
|
4094
|
+
};
|
|
4095
|
+
type EscapedHtmlPropValue = z.infer<typeof escapedHtmlPropTypeUtil.schema>;
|
|
4096
|
+
|
|
4072
4097
|
declare const cssFilterFunctionPropUtil: {
|
|
4073
4098
|
extract: (prop: unknown) => {
|
|
4074
4099
|
func: {
|
|
@@ -7775,4 +7800,4 @@ declare const Schema: {
|
|
|
7775
7800
|
setDynamicTagNamesResolver: typeof setDynamicTagNamesResolver;
|
|
7776
7801
|
};
|
|
7777
7802
|
|
|
7778
|
-
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 EmailsPropValue, type ExtractValueOptions, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type FontFamilyPropValue, type GradientColorStopPropValue, type GridTrackSizePropValue, 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 QueryFilterKeyConfig, type QueryFilterPropValue, 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, emailsPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, fontFamilyPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, gridTrackSizePropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryFilterArrayPropTypeUtil, queryFilterPropTypeUtil, queryPropTypeUtil, rewrapOverridableValue, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, spanPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, timeRangePropTypeUtil, timeStringPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
|
|
7803
|
+
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 EmailsPropValue, type EscapedHtmlPropValue, type ExtractValueOptions, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type FontFamilyPropValue, type GradientColorStopPropValue, type GridTrackSizePropValue, 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 QueryFilterKeyConfig, type QueryFilterPropValue, 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, emailsPropTypeUtil, escapedHtmlPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, fontFamilyPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, gridTrackSizePropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isOverridable, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, numberRangePropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryFilterArrayPropTypeUtil, queryFilterPropTypeUtil, 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
|
@@ -50,6 +50,7 @@ __export(index_exports, {
|
|
|
50
50
|
dropShadowFilterPropTypeUtil: () => dropShadowFilterPropTypeUtil,
|
|
51
51
|
emailPropTypeUtil: () => emailPropTypeUtil,
|
|
52
52
|
emailsPropTypeUtil: () => emailsPropTypeUtil,
|
|
53
|
+
escapedHtmlPropTypeUtil: () => escapedHtmlPropTypeUtil,
|
|
53
54
|
evaluateTerm: () => evaluateTerm,
|
|
54
55
|
extractValue: () => extractValue,
|
|
55
56
|
filterEmptyValues: () => filterEmptyValues,
|
|
@@ -628,14 +629,18 @@ var htmlV3ValueSchema = import_schema43.z.object({
|
|
|
628
629
|
});
|
|
629
630
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
630
631
|
|
|
632
|
+
// src/prop-types/escaped-html.ts
|
|
633
|
+
var import_schema44 = require("@elementor/schema");
|
|
634
|
+
var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", import_schema44.z.string().nullable());
|
|
635
|
+
|
|
631
636
|
// src/prop-types/filter-prop-types/filter.ts
|
|
632
|
-
var
|
|
637
|
+
var import_schema50 = require("@elementor/schema");
|
|
633
638
|
|
|
634
639
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
635
|
-
var
|
|
640
|
+
var import_schema45 = require("@elementor/schema");
|
|
636
641
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
637
642
|
"drop-shadow",
|
|
638
|
-
|
|
643
|
+
import_schema45.z.object({
|
|
639
644
|
xAxis: unknownChildrenSchema,
|
|
640
645
|
yAxis: unknownChildrenSchema,
|
|
641
646
|
blur: unknownChildrenSchema,
|
|
@@ -644,37 +649,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
644
649
|
);
|
|
645
650
|
|
|
646
651
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
647
|
-
var
|
|
652
|
+
var import_schema46 = require("@elementor/schema");
|
|
648
653
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
649
654
|
"blur",
|
|
650
|
-
|
|
655
|
+
import_schema46.z.strictObject({
|
|
651
656
|
size: unknownChildrenSchema
|
|
652
657
|
})
|
|
653
658
|
);
|
|
654
659
|
|
|
655
660
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
656
|
-
var
|
|
661
|
+
var import_schema47 = require("@elementor/schema");
|
|
657
662
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
658
663
|
"color-tone",
|
|
659
|
-
|
|
664
|
+
import_schema47.z.strictObject({
|
|
660
665
|
size: unknownChildrenSchema
|
|
661
666
|
})
|
|
662
667
|
);
|
|
663
668
|
|
|
664
669
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
665
|
-
var
|
|
670
|
+
var import_schema48 = require("@elementor/schema");
|
|
666
671
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
667
672
|
"hue-rotate",
|
|
668
|
-
|
|
673
|
+
import_schema48.z.strictObject({
|
|
669
674
|
size: unknownChildrenSchema
|
|
670
675
|
})
|
|
671
676
|
);
|
|
672
677
|
|
|
673
678
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
674
|
-
var
|
|
679
|
+
var import_schema49 = require("@elementor/schema");
|
|
675
680
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
676
681
|
"intensity",
|
|
677
|
-
|
|
682
|
+
import_schema49.z.strictObject({
|
|
678
683
|
size: unknownChildrenSchema
|
|
679
684
|
})
|
|
680
685
|
);
|
|
@@ -682,9 +687,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
682
687
|
// src/prop-types/filter-prop-types/filter.ts
|
|
683
688
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
684
689
|
"css-filter-func",
|
|
685
|
-
|
|
690
|
+
import_schema50.z.object({
|
|
686
691
|
func: stringPropTypeUtil.schema,
|
|
687
|
-
args:
|
|
692
|
+
args: import_schema50.z.union([
|
|
688
693
|
blurFilterPropTypeUtil.schema,
|
|
689
694
|
intensityFilterPropTypeUtil.schema,
|
|
690
695
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -693,13 +698,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
693
698
|
])
|
|
694
699
|
})
|
|
695
700
|
);
|
|
696
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
701
|
+
var filterPropTypeUtil = createPropUtils("filter", import_schema50.z.array(cssFilterFunctionPropUtil.schema));
|
|
697
702
|
|
|
698
703
|
// src/prop-types/transform-prop-types/transform.ts
|
|
699
|
-
var
|
|
704
|
+
var import_schema51 = require("@elementor/schema");
|
|
700
705
|
var transformPropTypeUtil = createPropUtils(
|
|
701
706
|
"transform",
|
|
702
|
-
|
|
707
|
+
import_schema51.z.strictObject({
|
|
703
708
|
"transform-functions": unknownChildrenSchema,
|
|
704
709
|
"transform-origin": unknownChildrenSchema,
|
|
705
710
|
perspective: unknownChildrenSchema,
|
|
@@ -708,10 +713,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
708
713
|
);
|
|
709
714
|
|
|
710
715
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
711
|
-
var
|
|
716
|
+
var import_schema56 = require("@elementor/schema");
|
|
712
717
|
|
|
713
718
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
714
|
-
var
|
|
719
|
+
var import_schema52 = require("@elementor/schema");
|
|
715
720
|
|
|
716
721
|
// src/prop-types/transform-prop-types/types.ts
|
|
717
722
|
var TransformFunctionKeys = {
|
|
@@ -724,7 +729,7 @@ var TransformFunctionKeys = {
|
|
|
724
729
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
725
730
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
726
731
|
TransformFunctionKeys.move,
|
|
727
|
-
|
|
732
|
+
import_schema52.z.strictObject({
|
|
728
733
|
x: unknownChildrenSchema,
|
|
729
734
|
y: unknownChildrenSchema,
|
|
730
735
|
z: unknownChildrenSchema
|
|
@@ -732,10 +737,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
732
737
|
);
|
|
733
738
|
|
|
734
739
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
735
|
-
var
|
|
740
|
+
var import_schema53 = require("@elementor/schema");
|
|
736
741
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
737
742
|
TransformFunctionKeys.rotate,
|
|
738
|
-
|
|
743
|
+
import_schema53.z.strictObject({
|
|
739
744
|
x: unknownChildrenSchema,
|
|
740
745
|
y: unknownChildrenSchema,
|
|
741
746
|
z: unknownChildrenSchema
|
|
@@ -743,10 +748,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
743
748
|
);
|
|
744
749
|
|
|
745
750
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
746
|
-
var
|
|
751
|
+
var import_schema54 = require("@elementor/schema");
|
|
747
752
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
748
753
|
TransformFunctionKeys.scale,
|
|
749
|
-
|
|
754
|
+
import_schema54.z.strictObject({
|
|
750
755
|
x: numberPropTypeUtil.schema.nullable(),
|
|
751
756
|
y: numberPropTypeUtil.schema.nullable(),
|
|
752
757
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -754,10 +759,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
754
759
|
);
|
|
755
760
|
|
|
756
761
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
757
|
-
var
|
|
762
|
+
var import_schema55 = require("@elementor/schema");
|
|
758
763
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
759
764
|
TransformFunctionKeys.skew,
|
|
760
|
-
|
|
765
|
+
import_schema55.z.strictObject({
|
|
761
766
|
x: unknownChildrenSchema,
|
|
762
767
|
y: unknownChildrenSchema
|
|
763
768
|
})
|
|
@@ -765,13 +770,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
765
770
|
|
|
766
771
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
767
772
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
768
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
773
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema56.z.array(filterTypes));
|
|
769
774
|
|
|
770
775
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
771
|
-
var
|
|
776
|
+
var import_schema57 = require("@elementor/schema");
|
|
772
777
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
773
778
|
"transform-origin",
|
|
774
|
-
|
|
779
|
+
import_schema57.z.strictObject({
|
|
775
780
|
x: unknownChildrenSchema,
|
|
776
781
|
y: unknownChildrenSchema,
|
|
777
782
|
z: unknownChildrenSchema
|
|
@@ -779,49 +784,49 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
779
784
|
);
|
|
780
785
|
|
|
781
786
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
782
|
-
var
|
|
787
|
+
var import_schema58 = require("@elementor/schema");
|
|
783
788
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
784
789
|
"perspective-origin",
|
|
785
|
-
|
|
790
|
+
import_schema58.z.strictObject({
|
|
786
791
|
x: unknownChildrenSchema,
|
|
787
792
|
y: unknownChildrenSchema
|
|
788
793
|
})
|
|
789
794
|
);
|
|
790
795
|
|
|
791
796
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
792
|
-
var
|
|
797
|
+
var import_schema59 = require("@elementor/schema");
|
|
793
798
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
794
799
|
"backdrop-filter",
|
|
795
|
-
|
|
800
|
+
import_schema59.z.array(cssFilterFunctionPropUtil.schema)
|
|
796
801
|
);
|
|
797
802
|
|
|
798
803
|
// src/prop-types/date-range.ts
|
|
799
|
-
var
|
|
804
|
+
var import_schema60 = require("@elementor/schema");
|
|
800
805
|
var dateRangePropTypeUtil = createPropUtils(
|
|
801
806
|
"date-range",
|
|
802
|
-
|
|
807
|
+
import_schema60.z.strictObject({
|
|
803
808
|
min: unknownChildrenSchema,
|
|
804
809
|
max: unknownChildrenSchema
|
|
805
810
|
})
|
|
806
811
|
);
|
|
807
812
|
|
|
808
813
|
// src/prop-types/date-string.ts
|
|
809
|
-
var
|
|
810
|
-
var dateStringPropTypeUtil = createPropUtils("date-string",
|
|
814
|
+
var import_schema61 = require("@elementor/schema");
|
|
815
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", import_schema61.z.string());
|
|
811
816
|
|
|
812
817
|
// src/prop-types/time-range.ts
|
|
813
|
-
var
|
|
818
|
+
var import_schema62 = require("@elementor/schema");
|
|
814
819
|
var timeRangePropTypeUtil = createPropUtils(
|
|
815
820
|
"time-range",
|
|
816
|
-
|
|
821
|
+
import_schema62.z.strictObject({
|
|
817
822
|
min: unknownChildrenSchema,
|
|
818
823
|
max: unknownChildrenSchema
|
|
819
824
|
})
|
|
820
825
|
);
|
|
821
826
|
|
|
822
827
|
// src/prop-types/time-string.ts
|
|
823
|
-
var
|
|
824
|
-
var timeStringPropTypeUtil = createPropUtils("time-string",
|
|
828
|
+
var import_schema63 = require("@elementor/schema");
|
|
829
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", import_schema63.z.string());
|
|
825
830
|
|
|
826
831
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
827
832
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
@@ -1288,11 +1293,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1288
1293
|
};
|
|
1289
1294
|
|
|
1290
1295
|
// src/utils/is-transformable.ts
|
|
1291
|
-
var
|
|
1292
|
-
var transformableSchema =
|
|
1293
|
-
$$type:
|
|
1294
|
-
value:
|
|
1295
|
-
disabled:
|
|
1296
|
+
var import_schema64 = require("@elementor/schema");
|
|
1297
|
+
var transformableSchema = import_schema64.z.object({
|
|
1298
|
+
$$type: import_schema64.z.string(),
|
|
1299
|
+
value: import_schema64.z.any(),
|
|
1300
|
+
disabled: import_schema64.z.boolean().optional()
|
|
1296
1301
|
});
|
|
1297
1302
|
var isTransformable = (value) => {
|
|
1298
1303
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1561,6 +1566,7 @@ var Schema = {
|
|
|
1561
1566
|
dropShadowFilterPropTypeUtil,
|
|
1562
1567
|
emailPropTypeUtil,
|
|
1563
1568
|
emailsPropTypeUtil,
|
|
1569
|
+
escapedHtmlPropTypeUtil,
|
|
1564
1570
|
evaluateTerm,
|
|
1565
1571
|
extractValue,
|
|
1566
1572
|
filterEmptyValues,
|