@elementor/editor-props 4.0.0-573 → 4.0.0-597
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 +148 -1
- package/dist/index.d.ts +148 -1
- package/dist/index.js +57 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/html-v3.ts +15 -0
- package/src/prop-types/index.ts +1 -0
- package/src/utils/adjust-llm-prop-value-schema.ts +13 -0
package/dist/index.d.mts
CHANGED
|
@@ -2988,6 +2988,153 @@ declare const htmlV2PropTypeUtil: {
|
|
|
2988
2988
|
type HtmlV2PropValue = z.infer<typeof htmlV2PropTypeUtil.schema>;
|
|
2989
2989
|
type HtmlV2Value = z.infer<typeof htmlV2ValueSchema>;
|
|
2990
2990
|
|
|
2991
|
+
declare const htmlV3ValueSchema: z.ZodObject<{
|
|
2992
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
2993
|
+
$$type: z.ZodLiteral<"string">;
|
|
2994
|
+
value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
2995
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2996
|
+
}, "strict", z.ZodTypeAny, {
|
|
2997
|
+
$$type: "string";
|
|
2998
|
+
value: string | null;
|
|
2999
|
+
disabled?: boolean | undefined;
|
|
3000
|
+
}, {
|
|
3001
|
+
$$type: "string";
|
|
3002
|
+
value: string | null;
|
|
3003
|
+
disabled?: boolean | undefined;
|
|
3004
|
+
}>>;
|
|
3005
|
+
children: z.ZodArray<z.ZodUnknown, "many">;
|
|
3006
|
+
}, "strip", z.ZodTypeAny, {
|
|
3007
|
+
content: {
|
|
3008
|
+
$$type: "string";
|
|
3009
|
+
value: string | null;
|
|
3010
|
+
disabled?: boolean | undefined;
|
|
3011
|
+
} | null;
|
|
3012
|
+
children: unknown[];
|
|
3013
|
+
}, {
|
|
3014
|
+
content: {
|
|
3015
|
+
$$type: "string";
|
|
3016
|
+
value: string | null;
|
|
3017
|
+
disabled?: boolean | undefined;
|
|
3018
|
+
} | null;
|
|
3019
|
+
children: unknown[];
|
|
3020
|
+
}>;
|
|
3021
|
+
declare const htmlV3PropTypeUtil: {
|
|
3022
|
+
extract: (prop: unknown) => {
|
|
3023
|
+
content: {
|
|
3024
|
+
$$type: "string";
|
|
3025
|
+
value: string | null;
|
|
3026
|
+
disabled?: boolean | undefined;
|
|
3027
|
+
} | null;
|
|
3028
|
+
children: unknown[];
|
|
3029
|
+
} | null;
|
|
3030
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"html-v3", {
|
|
3031
|
+
content: {
|
|
3032
|
+
$$type: "string";
|
|
3033
|
+
value: string | null;
|
|
3034
|
+
disabled?: boolean | undefined;
|
|
3035
|
+
} | null;
|
|
3036
|
+
children: unknown[];
|
|
3037
|
+
}>;
|
|
3038
|
+
create: {
|
|
3039
|
+
(value: {
|
|
3040
|
+
content: {
|
|
3041
|
+
$$type: "string";
|
|
3042
|
+
value: string | null;
|
|
3043
|
+
disabled?: boolean | undefined;
|
|
3044
|
+
} | null;
|
|
3045
|
+
children: unknown[];
|
|
3046
|
+
}): TransformablePropValue$1<"html-v3", {
|
|
3047
|
+
content: {
|
|
3048
|
+
$$type: "string";
|
|
3049
|
+
value: string | null;
|
|
3050
|
+
disabled?: boolean | undefined;
|
|
3051
|
+
} | null;
|
|
3052
|
+
children: unknown[];
|
|
3053
|
+
}>;
|
|
3054
|
+
(value: {
|
|
3055
|
+
content: {
|
|
3056
|
+
$$type: "string";
|
|
3057
|
+
value: string | null;
|
|
3058
|
+
disabled?: boolean | undefined;
|
|
3059
|
+
} | null;
|
|
3060
|
+
children: unknown[];
|
|
3061
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"html-v3", {
|
|
3062
|
+
content: {
|
|
3063
|
+
$$type: "string";
|
|
3064
|
+
value: string | null;
|
|
3065
|
+
disabled?: boolean | undefined;
|
|
3066
|
+
} | null;
|
|
3067
|
+
children: unknown[];
|
|
3068
|
+
}>;
|
|
3069
|
+
(value: (prev?: {
|
|
3070
|
+
content: {
|
|
3071
|
+
$$type: "string";
|
|
3072
|
+
value: string | null;
|
|
3073
|
+
disabled?: boolean | undefined;
|
|
3074
|
+
} | null;
|
|
3075
|
+
children: unknown[];
|
|
3076
|
+
} | undefined) => {
|
|
3077
|
+
content: {
|
|
3078
|
+
$$type: "string";
|
|
3079
|
+
value: string | null;
|
|
3080
|
+
disabled?: boolean | undefined;
|
|
3081
|
+
} | null;
|
|
3082
|
+
children: unknown[];
|
|
3083
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"html-v3", {
|
|
3084
|
+
content: {
|
|
3085
|
+
$$type: "string";
|
|
3086
|
+
value: string | null;
|
|
3087
|
+
disabled?: boolean | undefined;
|
|
3088
|
+
} | null;
|
|
3089
|
+
children: unknown[];
|
|
3090
|
+
}>;
|
|
3091
|
+
};
|
|
3092
|
+
schema: z.ZodObject<{
|
|
3093
|
+
$$type: z.ZodLiteral<"html-v3">;
|
|
3094
|
+
value: z.ZodType<{
|
|
3095
|
+
content: {
|
|
3096
|
+
$$type: "string";
|
|
3097
|
+
value: string | null;
|
|
3098
|
+
disabled?: boolean | undefined;
|
|
3099
|
+
} | null;
|
|
3100
|
+
children: unknown[];
|
|
3101
|
+
}, z.ZodTypeDef, {
|
|
3102
|
+
content: {
|
|
3103
|
+
$$type: "string";
|
|
3104
|
+
value: string | null;
|
|
3105
|
+
disabled?: boolean | undefined;
|
|
3106
|
+
} | null;
|
|
3107
|
+
children: unknown[];
|
|
3108
|
+
}>;
|
|
3109
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3110
|
+
}, "strict", z.ZodTypeAny, {
|
|
3111
|
+
$$type: "html-v3";
|
|
3112
|
+
value: {
|
|
3113
|
+
content: {
|
|
3114
|
+
$$type: "string";
|
|
3115
|
+
value: string | null;
|
|
3116
|
+
disabled?: boolean | undefined;
|
|
3117
|
+
} | null;
|
|
3118
|
+
children: unknown[];
|
|
3119
|
+
};
|
|
3120
|
+
disabled?: boolean | undefined;
|
|
3121
|
+
}, {
|
|
3122
|
+
$$type: "html-v3";
|
|
3123
|
+
value: {
|
|
3124
|
+
content: {
|
|
3125
|
+
$$type: "string";
|
|
3126
|
+
value: string | null;
|
|
3127
|
+
disabled?: boolean | undefined;
|
|
3128
|
+
} | null;
|
|
3129
|
+
children: unknown[];
|
|
3130
|
+
};
|
|
3131
|
+
disabled?: boolean | undefined;
|
|
3132
|
+
}>;
|
|
3133
|
+
key: "html-v3";
|
|
3134
|
+
};
|
|
3135
|
+
type HtmlV3PropValue = z.infer<typeof htmlV3PropTypeUtil.schema>;
|
|
3136
|
+
type HtmlV3Value = z.infer<typeof htmlV3ValueSchema>;
|
|
3137
|
+
|
|
2991
3138
|
declare const cssFilterFunctionPropUtil: {
|
|
2992
3139
|
extract: (prop: unknown) => {
|
|
2993
3140
|
func: {
|
|
@@ -6504,4 +6651,4 @@ declare const Schema: {
|
|
|
6504
6651
|
removeIntention: typeof removeIntention;
|
|
6505
6652
|
};
|
|
6506
6653
|
|
|
6507
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
|
6654
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.d.ts
CHANGED
|
@@ -2988,6 +2988,153 @@ declare const htmlV2PropTypeUtil: {
|
|
|
2988
2988
|
type HtmlV2PropValue = z.infer<typeof htmlV2PropTypeUtil.schema>;
|
|
2989
2989
|
type HtmlV2Value = z.infer<typeof htmlV2ValueSchema>;
|
|
2990
2990
|
|
|
2991
|
+
declare const htmlV3ValueSchema: z.ZodObject<{
|
|
2992
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
2993
|
+
$$type: z.ZodLiteral<"string">;
|
|
2994
|
+
value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
2995
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2996
|
+
}, "strict", z.ZodTypeAny, {
|
|
2997
|
+
$$type: "string";
|
|
2998
|
+
value: string | null;
|
|
2999
|
+
disabled?: boolean | undefined;
|
|
3000
|
+
}, {
|
|
3001
|
+
$$type: "string";
|
|
3002
|
+
value: string | null;
|
|
3003
|
+
disabled?: boolean | undefined;
|
|
3004
|
+
}>>;
|
|
3005
|
+
children: z.ZodArray<z.ZodUnknown, "many">;
|
|
3006
|
+
}, "strip", z.ZodTypeAny, {
|
|
3007
|
+
content: {
|
|
3008
|
+
$$type: "string";
|
|
3009
|
+
value: string | null;
|
|
3010
|
+
disabled?: boolean | undefined;
|
|
3011
|
+
} | null;
|
|
3012
|
+
children: unknown[];
|
|
3013
|
+
}, {
|
|
3014
|
+
content: {
|
|
3015
|
+
$$type: "string";
|
|
3016
|
+
value: string | null;
|
|
3017
|
+
disabled?: boolean | undefined;
|
|
3018
|
+
} | null;
|
|
3019
|
+
children: unknown[];
|
|
3020
|
+
}>;
|
|
3021
|
+
declare const htmlV3PropTypeUtil: {
|
|
3022
|
+
extract: (prop: unknown) => {
|
|
3023
|
+
content: {
|
|
3024
|
+
$$type: "string";
|
|
3025
|
+
value: string | null;
|
|
3026
|
+
disabled?: boolean | undefined;
|
|
3027
|
+
} | null;
|
|
3028
|
+
children: unknown[];
|
|
3029
|
+
} | null;
|
|
3030
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"html-v3", {
|
|
3031
|
+
content: {
|
|
3032
|
+
$$type: "string";
|
|
3033
|
+
value: string | null;
|
|
3034
|
+
disabled?: boolean | undefined;
|
|
3035
|
+
} | null;
|
|
3036
|
+
children: unknown[];
|
|
3037
|
+
}>;
|
|
3038
|
+
create: {
|
|
3039
|
+
(value: {
|
|
3040
|
+
content: {
|
|
3041
|
+
$$type: "string";
|
|
3042
|
+
value: string | null;
|
|
3043
|
+
disabled?: boolean | undefined;
|
|
3044
|
+
} | null;
|
|
3045
|
+
children: unknown[];
|
|
3046
|
+
}): TransformablePropValue$1<"html-v3", {
|
|
3047
|
+
content: {
|
|
3048
|
+
$$type: "string";
|
|
3049
|
+
value: string | null;
|
|
3050
|
+
disabled?: boolean | undefined;
|
|
3051
|
+
} | null;
|
|
3052
|
+
children: unknown[];
|
|
3053
|
+
}>;
|
|
3054
|
+
(value: {
|
|
3055
|
+
content: {
|
|
3056
|
+
$$type: "string";
|
|
3057
|
+
value: string | null;
|
|
3058
|
+
disabled?: boolean | undefined;
|
|
3059
|
+
} | null;
|
|
3060
|
+
children: unknown[];
|
|
3061
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"html-v3", {
|
|
3062
|
+
content: {
|
|
3063
|
+
$$type: "string";
|
|
3064
|
+
value: string | null;
|
|
3065
|
+
disabled?: boolean | undefined;
|
|
3066
|
+
} | null;
|
|
3067
|
+
children: unknown[];
|
|
3068
|
+
}>;
|
|
3069
|
+
(value: (prev?: {
|
|
3070
|
+
content: {
|
|
3071
|
+
$$type: "string";
|
|
3072
|
+
value: string | null;
|
|
3073
|
+
disabled?: boolean | undefined;
|
|
3074
|
+
} | null;
|
|
3075
|
+
children: unknown[];
|
|
3076
|
+
} | undefined) => {
|
|
3077
|
+
content: {
|
|
3078
|
+
$$type: "string";
|
|
3079
|
+
value: string | null;
|
|
3080
|
+
disabled?: boolean | undefined;
|
|
3081
|
+
} | null;
|
|
3082
|
+
children: unknown[];
|
|
3083
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"html-v3", {
|
|
3084
|
+
content: {
|
|
3085
|
+
$$type: "string";
|
|
3086
|
+
value: string | null;
|
|
3087
|
+
disabled?: boolean | undefined;
|
|
3088
|
+
} | null;
|
|
3089
|
+
children: unknown[];
|
|
3090
|
+
}>;
|
|
3091
|
+
};
|
|
3092
|
+
schema: z.ZodObject<{
|
|
3093
|
+
$$type: z.ZodLiteral<"html-v3">;
|
|
3094
|
+
value: z.ZodType<{
|
|
3095
|
+
content: {
|
|
3096
|
+
$$type: "string";
|
|
3097
|
+
value: string | null;
|
|
3098
|
+
disabled?: boolean | undefined;
|
|
3099
|
+
} | null;
|
|
3100
|
+
children: unknown[];
|
|
3101
|
+
}, z.ZodTypeDef, {
|
|
3102
|
+
content: {
|
|
3103
|
+
$$type: "string";
|
|
3104
|
+
value: string | null;
|
|
3105
|
+
disabled?: boolean | undefined;
|
|
3106
|
+
} | null;
|
|
3107
|
+
children: unknown[];
|
|
3108
|
+
}>;
|
|
3109
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3110
|
+
}, "strict", z.ZodTypeAny, {
|
|
3111
|
+
$$type: "html-v3";
|
|
3112
|
+
value: {
|
|
3113
|
+
content: {
|
|
3114
|
+
$$type: "string";
|
|
3115
|
+
value: string | null;
|
|
3116
|
+
disabled?: boolean | undefined;
|
|
3117
|
+
} | null;
|
|
3118
|
+
children: unknown[];
|
|
3119
|
+
};
|
|
3120
|
+
disabled?: boolean | undefined;
|
|
3121
|
+
}, {
|
|
3122
|
+
$$type: "html-v3";
|
|
3123
|
+
value: {
|
|
3124
|
+
content: {
|
|
3125
|
+
$$type: "string";
|
|
3126
|
+
value: string | null;
|
|
3127
|
+
disabled?: boolean | undefined;
|
|
3128
|
+
} | null;
|
|
3129
|
+
children: unknown[];
|
|
3130
|
+
};
|
|
3131
|
+
disabled?: boolean | undefined;
|
|
3132
|
+
}>;
|
|
3133
|
+
key: "html-v3";
|
|
3134
|
+
};
|
|
3135
|
+
type HtmlV3PropValue = z.infer<typeof htmlV3PropTypeUtil.schema>;
|
|
3136
|
+
type HtmlV3Value = z.infer<typeof htmlV3ValueSchema>;
|
|
3137
|
+
|
|
2991
3138
|
declare const cssFilterFunctionPropUtil: {
|
|
2992
3139
|
extract: (prop: unknown) => {
|
|
2993
3140
|
func: {
|
|
@@ -6504,4 +6651,4 @@ declare const Schema: {
|
|
|
6504
6651
|
removeIntention: typeof removeIntention;
|
|
6505
6652
|
};
|
|
6506
6653
|
|
|
6507
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
|
6654
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
gradientColorStopPropTypeUtil: () => gradientColorStopPropTypeUtil,
|
|
57
57
|
htmlPropTypeUtil: () => htmlPropTypeUtil,
|
|
58
58
|
htmlV2PropTypeUtil: () => htmlV2PropTypeUtil,
|
|
59
|
+
htmlV3PropTypeUtil: () => htmlV3PropTypeUtil,
|
|
59
60
|
hueRotateFilterPropTypeUtil: () => hueRotateFilterPropTypeUtil,
|
|
60
61
|
imageAttachmentIdPropType: () => imageAttachmentIdPropType,
|
|
61
62
|
imagePropTypeUtil: () => imagePropTypeUtil,
|
|
@@ -488,14 +489,22 @@ var htmlV2ValueSchema = import_schema33.z.object({
|
|
|
488
489
|
});
|
|
489
490
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
490
491
|
|
|
492
|
+
// src/prop-types/html-v3.ts
|
|
493
|
+
var import_schema34 = require("@elementor/schema");
|
|
494
|
+
var htmlV3ValueSchema = import_schema34.z.object({
|
|
495
|
+
content: stringPropTypeUtil.schema.nullable(),
|
|
496
|
+
children: import_schema34.z.array(import_schema34.z.unknown())
|
|
497
|
+
});
|
|
498
|
+
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
499
|
+
|
|
491
500
|
// src/prop-types/filter-prop-types/filter.ts
|
|
492
|
-
var
|
|
501
|
+
var import_schema40 = require("@elementor/schema");
|
|
493
502
|
|
|
494
503
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
495
|
-
var
|
|
504
|
+
var import_schema35 = require("@elementor/schema");
|
|
496
505
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
497
506
|
"drop-shadow",
|
|
498
|
-
|
|
507
|
+
import_schema35.z.object({
|
|
499
508
|
xAxis: unknownChildrenSchema,
|
|
500
509
|
yAxis: unknownChildrenSchema,
|
|
501
510
|
blur: unknownChildrenSchema,
|
|
@@ -504,37 +513,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
504
513
|
);
|
|
505
514
|
|
|
506
515
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
507
|
-
var
|
|
516
|
+
var import_schema36 = require("@elementor/schema");
|
|
508
517
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
509
518
|
"blur",
|
|
510
|
-
|
|
519
|
+
import_schema36.z.strictObject({
|
|
511
520
|
size: unknownChildrenSchema
|
|
512
521
|
})
|
|
513
522
|
);
|
|
514
523
|
|
|
515
524
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
516
|
-
var
|
|
525
|
+
var import_schema37 = require("@elementor/schema");
|
|
517
526
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
518
527
|
"color-tone",
|
|
519
|
-
|
|
528
|
+
import_schema37.z.strictObject({
|
|
520
529
|
size: unknownChildrenSchema
|
|
521
530
|
})
|
|
522
531
|
);
|
|
523
532
|
|
|
524
533
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
525
|
-
var
|
|
534
|
+
var import_schema38 = require("@elementor/schema");
|
|
526
535
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
527
536
|
"hue-rotate",
|
|
528
|
-
|
|
537
|
+
import_schema38.z.strictObject({
|
|
529
538
|
size: unknownChildrenSchema
|
|
530
539
|
})
|
|
531
540
|
);
|
|
532
541
|
|
|
533
542
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
534
|
-
var
|
|
543
|
+
var import_schema39 = require("@elementor/schema");
|
|
535
544
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
536
545
|
"intensity",
|
|
537
|
-
|
|
546
|
+
import_schema39.z.strictObject({
|
|
538
547
|
size: unknownChildrenSchema
|
|
539
548
|
})
|
|
540
549
|
);
|
|
@@ -542,9 +551,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
542
551
|
// src/prop-types/filter-prop-types/filter.ts
|
|
543
552
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
544
553
|
"css-filter-func",
|
|
545
|
-
|
|
554
|
+
import_schema40.z.object({
|
|
546
555
|
func: stringPropTypeUtil.schema,
|
|
547
|
-
args:
|
|
556
|
+
args: import_schema40.z.union([
|
|
548
557
|
blurFilterPropTypeUtil.schema,
|
|
549
558
|
intensityFilterPropTypeUtil.schema,
|
|
550
559
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -553,13 +562,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
553
562
|
])
|
|
554
563
|
})
|
|
555
564
|
);
|
|
556
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
565
|
+
var filterPropTypeUtil = createPropUtils("filter", import_schema40.z.array(cssFilterFunctionPropUtil.schema));
|
|
557
566
|
|
|
558
567
|
// src/prop-types/transform-prop-types/transform.ts
|
|
559
|
-
var
|
|
568
|
+
var import_schema41 = require("@elementor/schema");
|
|
560
569
|
var transformPropTypeUtil = createPropUtils(
|
|
561
570
|
"transform",
|
|
562
|
-
|
|
571
|
+
import_schema41.z.strictObject({
|
|
563
572
|
"transform-functions": unknownChildrenSchema,
|
|
564
573
|
"transform-origin": unknownChildrenSchema,
|
|
565
574
|
perspective: unknownChildrenSchema,
|
|
@@ -568,10 +577,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
568
577
|
);
|
|
569
578
|
|
|
570
579
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
571
|
-
var
|
|
580
|
+
var import_schema46 = require("@elementor/schema");
|
|
572
581
|
|
|
573
582
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
574
|
-
var
|
|
583
|
+
var import_schema42 = require("@elementor/schema");
|
|
575
584
|
|
|
576
585
|
// src/prop-types/transform-prop-types/types.ts
|
|
577
586
|
var TransformFunctionKeys = {
|
|
@@ -584,7 +593,7 @@ var TransformFunctionKeys = {
|
|
|
584
593
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
585
594
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
586
595
|
TransformFunctionKeys.move,
|
|
587
|
-
|
|
596
|
+
import_schema42.z.strictObject({
|
|
588
597
|
x: unknownChildrenSchema,
|
|
589
598
|
y: unknownChildrenSchema,
|
|
590
599
|
z: unknownChildrenSchema
|
|
@@ -592,10 +601,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
592
601
|
);
|
|
593
602
|
|
|
594
603
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
595
|
-
var
|
|
604
|
+
var import_schema43 = require("@elementor/schema");
|
|
596
605
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
597
606
|
TransformFunctionKeys.rotate,
|
|
598
|
-
|
|
607
|
+
import_schema43.z.strictObject({
|
|
599
608
|
x: unknownChildrenSchema,
|
|
600
609
|
y: unknownChildrenSchema,
|
|
601
610
|
z: unknownChildrenSchema
|
|
@@ -603,10 +612,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
603
612
|
);
|
|
604
613
|
|
|
605
614
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
606
|
-
var
|
|
615
|
+
var import_schema44 = require("@elementor/schema");
|
|
607
616
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
608
617
|
TransformFunctionKeys.scale,
|
|
609
|
-
|
|
618
|
+
import_schema44.z.strictObject({
|
|
610
619
|
x: numberPropTypeUtil.schema.nullable(),
|
|
611
620
|
y: numberPropTypeUtil.schema.nullable(),
|
|
612
621
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -614,10 +623,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
614
623
|
);
|
|
615
624
|
|
|
616
625
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
617
|
-
var
|
|
626
|
+
var import_schema45 = require("@elementor/schema");
|
|
618
627
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
619
628
|
TransformFunctionKeys.skew,
|
|
620
|
-
|
|
629
|
+
import_schema45.z.strictObject({
|
|
621
630
|
x: unknownChildrenSchema,
|
|
622
631
|
y: unknownChildrenSchema
|
|
623
632
|
})
|
|
@@ -625,13 +634,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
625
634
|
|
|
626
635
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
627
636
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
628
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
637
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema46.z.array(filterTypes));
|
|
629
638
|
|
|
630
639
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
631
|
-
var
|
|
640
|
+
var import_schema47 = require("@elementor/schema");
|
|
632
641
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
633
642
|
"transform-origin",
|
|
634
|
-
|
|
643
|
+
import_schema47.z.strictObject({
|
|
635
644
|
x: unknownChildrenSchema,
|
|
636
645
|
y: unknownChildrenSchema,
|
|
637
646
|
z: unknownChildrenSchema
|
|
@@ -639,20 +648,20 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
639
648
|
);
|
|
640
649
|
|
|
641
650
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
642
|
-
var
|
|
651
|
+
var import_schema48 = require("@elementor/schema");
|
|
643
652
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
644
653
|
"perspective-origin",
|
|
645
|
-
|
|
654
|
+
import_schema48.z.strictObject({
|
|
646
655
|
x: unknownChildrenSchema,
|
|
647
656
|
y: unknownChildrenSchema
|
|
648
657
|
})
|
|
649
658
|
);
|
|
650
659
|
|
|
651
660
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
652
|
-
var
|
|
661
|
+
var import_schema49 = require("@elementor/schema");
|
|
653
662
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
654
663
|
"backdrop-filter",
|
|
655
|
-
|
|
664
|
+
import_schema49.z.array(cssFilterFunctionPropUtil.schema)
|
|
656
665
|
);
|
|
657
666
|
|
|
658
667
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
@@ -691,6 +700,16 @@ var adjustLlmPropValueSchema = (value, { transformers = {}, forceKey = void 0 }
|
|
|
691
700
|
}
|
|
692
701
|
};
|
|
693
702
|
}
|
|
703
|
+
case "html-v3": {
|
|
704
|
+
const { value: rawHtmlV3PropValue } = transformablePropValue;
|
|
705
|
+
return {
|
|
706
|
+
$$type: "html-v3",
|
|
707
|
+
value: {
|
|
708
|
+
content: rawHtmlV3PropValue.content,
|
|
709
|
+
children: rawHtmlV3PropValue.children ?? []
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
}
|
|
694
713
|
default:
|
|
695
714
|
const transformer = transformers?.[transformablePropValue.$$type];
|
|
696
715
|
if (transformer) {
|
|
@@ -1067,11 +1086,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1067
1086
|
};
|
|
1068
1087
|
|
|
1069
1088
|
// src/utils/is-transformable.ts
|
|
1070
|
-
var
|
|
1071
|
-
var transformableSchema =
|
|
1072
|
-
$$type:
|
|
1073
|
-
value:
|
|
1074
|
-
disabled:
|
|
1089
|
+
var import_schema50 = require("@elementor/schema");
|
|
1090
|
+
var transformableSchema = import_schema50.z.object({
|
|
1091
|
+
$$type: import_schema50.z.string(),
|
|
1092
|
+
value: import_schema50.z.any(),
|
|
1093
|
+
disabled: import_schema50.z.boolean().optional()
|
|
1075
1094
|
});
|
|
1076
1095
|
var isTransformable = (value) => {
|
|
1077
1096
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1316,6 +1335,7 @@ var Schema = {
|
|
|
1316
1335
|
gradientColorStopPropTypeUtil,
|
|
1317
1336
|
htmlPropTypeUtil,
|
|
1318
1337
|
htmlV2PropTypeUtil,
|
|
1338
|
+
htmlV3PropTypeUtil,
|
|
1319
1339
|
hueRotateFilterPropTypeUtil,
|
|
1320
1340
|
imageAttachmentIdPropType,
|
|
1321
1341
|
imagePropTypeUtil,
|