@elementor/editor-props 3.32.0-63 → 3.32.0-65
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 +92 -15
- package/dist/index.d.ts +92 -15
- package/dist/index.js +39 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/index.ts +5 -4
- package/src/prop-types/transform-prop-types/{move-transform.ts → transform-functions/move-transform.ts} +3 -3
- package/src/prop-types/transform-prop-types/{rotate-transform.ts → transform-functions/rotate-transform.ts} +3 -3
- package/src/prop-types/transform-prop-types/{scale-transform.ts → transform-functions/scale-transform.ts} +3 -3
- package/src/prop-types/transform-prop-types/{skew-transform.ts → transform-functions/skew-transform.ts} +3 -3
- package/src/prop-types/transform-prop-types/transform-functions.ts +18 -0
- package/src/prop-types/transform-prop-types/transform.ts +9 -13
package/dist/index.d.mts
CHANGED
|
@@ -2748,7 +2748,84 @@ declare const filterPropTypeUtil: {
|
|
|
2748
2748
|
type FilterItemPropValue = z.infer<typeof cssFilterFunctionPropUtil.schema>;
|
|
2749
2749
|
type FilterPropValue = z.infer<typeof filterPropTypeUtil.schema>;
|
|
2750
2750
|
|
|
2751
|
-
declare const
|
|
2751
|
+
declare const transformPropTypeUtil: {
|
|
2752
|
+
extract: (prop: unknown) => {
|
|
2753
|
+
'transform-functions'?: any;
|
|
2754
|
+
'transform-origin'?: any;
|
|
2755
|
+
perspective?: any;
|
|
2756
|
+
} | null;
|
|
2757
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform", {
|
|
2758
|
+
'transform-functions'?: any;
|
|
2759
|
+
'transform-origin'?: any;
|
|
2760
|
+
perspective?: any;
|
|
2761
|
+
}>;
|
|
2762
|
+
create: {
|
|
2763
|
+
(value: {
|
|
2764
|
+
'transform-functions'?: any;
|
|
2765
|
+
'transform-origin'?: any;
|
|
2766
|
+
perspective?: any;
|
|
2767
|
+
}): TransformablePropValue$1<"transform", {
|
|
2768
|
+
'transform-functions'?: any;
|
|
2769
|
+
'transform-origin'?: any;
|
|
2770
|
+
perspective?: any;
|
|
2771
|
+
}>;
|
|
2772
|
+
(value: {
|
|
2773
|
+
'transform-functions'?: any;
|
|
2774
|
+
'transform-origin'?: any;
|
|
2775
|
+
perspective?: any;
|
|
2776
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"transform", {
|
|
2777
|
+
'transform-functions'?: any;
|
|
2778
|
+
'transform-origin'?: any;
|
|
2779
|
+
perspective?: any;
|
|
2780
|
+
}>;
|
|
2781
|
+
(value: (prev?: {
|
|
2782
|
+
'transform-functions'?: any;
|
|
2783
|
+
'transform-origin'?: any;
|
|
2784
|
+
perspective?: any;
|
|
2785
|
+
} | undefined) => {
|
|
2786
|
+
'transform-functions'?: any;
|
|
2787
|
+
'transform-origin'?: any;
|
|
2788
|
+
perspective?: any;
|
|
2789
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"transform", {
|
|
2790
|
+
'transform-functions'?: any;
|
|
2791
|
+
'transform-origin'?: any;
|
|
2792
|
+
perspective?: any;
|
|
2793
|
+
}>;
|
|
2794
|
+
};
|
|
2795
|
+
schema: z.ZodObject<{
|
|
2796
|
+
$$type: z.ZodLiteral<"transform">;
|
|
2797
|
+
value: z.ZodType<{
|
|
2798
|
+
'transform-functions'?: any;
|
|
2799
|
+
'transform-origin'?: any;
|
|
2800
|
+
perspective?: any;
|
|
2801
|
+
}, z.ZodTypeDef, {
|
|
2802
|
+
'transform-functions'?: any;
|
|
2803
|
+
'transform-origin'?: any;
|
|
2804
|
+
perspective?: any;
|
|
2805
|
+
}>;
|
|
2806
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2807
|
+
}, "strict", z.ZodTypeAny, {
|
|
2808
|
+
$$type: "transform";
|
|
2809
|
+
value: {
|
|
2810
|
+
'transform-functions'?: any;
|
|
2811
|
+
'transform-origin'?: any;
|
|
2812
|
+
perspective?: any;
|
|
2813
|
+
};
|
|
2814
|
+
disabled?: boolean | undefined;
|
|
2815
|
+
}, {
|
|
2816
|
+
$$type: "transform";
|
|
2817
|
+
value: {
|
|
2818
|
+
'transform-functions'?: any;
|
|
2819
|
+
'transform-origin'?: any;
|
|
2820
|
+
perspective?: any;
|
|
2821
|
+
};
|
|
2822
|
+
disabled?: boolean | undefined;
|
|
2823
|
+
}>;
|
|
2824
|
+
key: "transform";
|
|
2825
|
+
};
|
|
2826
|
+
type TransformPropValue = z.infer<typeof transformPropTypeUtil.schema>;
|
|
2827
|
+
|
|
2828
|
+
declare const filterTypes: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
2752
2829
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2753
2830
|
value: z.ZodType<{
|
|
2754
2831
|
x?: any;
|
|
@@ -2852,7 +2929,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2852
2929
|
} | null;
|
|
2853
2930
|
};
|
|
2854
2931
|
disabled?: boolean | undefined;
|
|
2855
|
-
}>, z.ZodObject<{
|
|
2932
|
+
}>]>, z.ZodObject<{
|
|
2856
2933
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2857
2934
|
value: z.ZodType<{
|
|
2858
2935
|
x?: any;
|
|
@@ -2880,7 +2957,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2880
2957
|
z?: any;
|
|
2881
2958
|
};
|
|
2882
2959
|
disabled?: boolean | undefined;
|
|
2883
|
-
}>, z.ZodObject<{
|
|
2960
|
+
}>]>, z.ZodObject<{
|
|
2884
2961
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2885
2962
|
value: z.ZodType<{
|
|
2886
2963
|
x?: any;
|
|
@@ -2905,7 +2982,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2905
2982
|
};
|
|
2906
2983
|
disabled?: boolean | undefined;
|
|
2907
2984
|
}>]>;
|
|
2908
|
-
declare const
|
|
2985
|
+
declare const transformFunctionsPropTypeUtil: {
|
|
2909
2986
|
extract: (prop: unknown) => ({
|
|
2910
2987
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
2911
2988
|
value: {
|
|
@@ -2950,7 +3027,7 @@ declare const transformPropTypeUtil: {
|
|
|
2950
3027
|
};
|
|
2951
3028
|
disabled?: boolean | undefined;
|
|
2952
3029
|
})[] | null;
|
|
2953
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform", ({
|
|
3030
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform-functions", ({
|
|
2954
3031
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
2955
3032
|
value: {
|
|
2956
3033
|
x?: any;
|
|
@@ -3038,7 +3115,7 @@ declare const transformPropTypeUtil: {
|
|
|
3038
3115
|
y?: any;
|
|
3039
3116
|
};
|
|
3040
3117
|
disabled?: boolean | undefined;
|
|
3041
|
-
})[]): TransformablePropValue$1<"transform", ({
|
|
3118
|
+
})[]): TransformablePropValue$1<"transform-functions", ({
|
|
3042
3119
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3043
3120
|
value: {
|
|
3044
3121
|
x?: any;
|
|
@@ -3125,7 +3202,7 @@ declare const transformPropTypeUtil: {
|
|
|
3125
3202
|
y?: any;
|
|
3126
3203
|
};
|
|
3127
3204
|
disabled?: boolean | undefined;
|
|
3128
|
-
})[], createOptions?: CreateOptions): TransformablePropValue$1<"transform", ({
|
|
3205
|
+
})[], createOptions?: CreateOptions): TransformablePropValue$1<"transform-functions", ({
|
|
3129
3206
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3130
3207
|
value: {
|
|
3131
3208
|
x?: any;
|
|
@@ -3255,7 +3332,7 @@ declare const transformPropTypeUtil: {
|
|
|
3255
3332
|
y?: any;
|
|
3256
3333
|
};
|
|
3257
3334
|
disabled?: boolean | undefined;
|
|
3258
|
-
})[], createOptions: CreateOptions): TransformablePropValue$1<"transform", ({
|
|
3335
|
+
})[], createOptions: CreateOptions): TransformablePropValue$1<"transform-functions", ({
|
|
3259
3336
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3260
3337
|
value: {
|
|
3261
3338
|
x?: any;
|
|
@@ -3301,7 +3378,7 @@ declare const transformPropTypeUtil: {
|
|
|
3301
3378
|
})[]>;
|
|
3302
3379
|
};
|
|
3303
3380
|
schema: z.ZodObject<{
|
|
3304
|
-
$$type: z.ZodLiteral<"transform">;
|
|
3381
|
+
$$type: z.ZodLiteral<"transform-functions">;
|
|
3305
3382
|
value: z.ZodType<({
|
|
3306
3383
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3307
3384
|
value: {
|
|
@@ -3391,7 +3468,7 @@ declare const transformPropTypeUtil: {
|
|
|
3391
3468
|
})[]>;
|
|
3392
3469
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3393
3470
|
}, "strict", z.ZodTypeAny, {
|
|
3394
|
-
$$type: "transform";
|
|
3471
|
+
$$type: "transform-functions";
|
|
3395
3472
|
value: ({
|
|
3396
3473
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3397
3474
|
value: {
|
|
@@ -3438,7 +3515,7 @@ declare const transformPropTypeUtil: {
|
|
|
3438
3515
|
})[];
|
|
3439
3516
|
disabled?: boolean | undefined;
|
|
3440
3517
|
}, {
|
|
3441
|
-
$$type: "transform";
|
|
3518
|
+
$$type: "transform-functions";
|
|
3442
3519
|
value: ({
|
|
3443
3520
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3444
3521
|
value: {
|
|
@@ -3485,10 +3562,10 @@ declare const transformPropTypeUtil: {
|
|
|
3485
3562
|
})[];
|
|
3486
3563
|
disabled?: boolean | undefined;
|
|
3487
3564
|
}>;
|
|
3488
|
-
key: "transform";
|
|
3565
|
+
key: "transform-functions";
|
|
3489
3566
|
};
|
|
3490
|
-
type
|
|
3491
|
-
type
|
|
3567
|
+
type TransformFunctionsPropValue = z.infer<typeof transformFunctionsPropTypeUtil.schema>;
|
|
3568
|
+
type TransformFunctionsItemPropValue = z.infer<typeof filterTypes>;
|
|
3492
3569
|
|
|
3493
3570
|
declare const moveTransformPropTypeUtil: {
|
|
3494
3571
|
extract: (prop: unknown) => {
|
|
@@ -4304,4 +4381,4 @@ declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TV
|
|
|
4304
4381
|
type Nullish = null | undefined | '';
|
|
4305
4382
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
4306
4383
|
|
|
4307
|
-
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 ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type RotateTransformPropValue, type ScaleTransformPropValue, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringPropValue, type StrokePropValue, type
|
|
4384
|
+
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 ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type RotateTransformPropValue, type ScaleTransformPropValue, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, 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, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, gradientColorStopPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, positionPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.d.ts
CHANGED
|
@@ -2748,7 +2748,84 @@ declare const filterPropTypeUtil: {
|
|
|
2748
2748
|
type FilterItemPropValue = z.infer<typeof cssFilterFunctionPropUtil.schema>;
|
|
2749
2749
|
type FilterPropValue = z.infer<typeof filterPropTypeUtil.schema>;
|
|
2750
2750
|
|
|
2751
|
-
declare const
|
|
2751
|
+
declare const transformPropTypeUtil: {
|
|
2752
|
+
extract: (prop: unknown) => {
|
|
2753
|
+
'transform-functions'?: any;
|
|
2754
|
+
'transform-origin'?: any;
|
|
2755
|
+
perspective?: any;
|
|
2756
|
+
} | null;
|
|
2757
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform", {
|
|
2758
|
+
'transform-functions'?: any;
|
|
2759
|
+
'transform-origin'?: any;
|
|
2760
|
+
perspective?: any;
|
|
2761
|
+
}>;
|
|
2762
|
+
create: {
|
|
2763
|
+
(value: {
|
|
2764
|
+
'transform-functions'?: any;
|
|
2765
|
+
'transform-origin'?: any;
|
|
2766
|
+
perspective?: any;
|
|
2767
|
+
}): TransformablePropValue$1<"transform", {
|
|
2768
|
+
'transform-functions'?: any;
|
|
2769
|
+
'transform-origin'?: any;
|
|
2770
|
+
perspective?: any;
|
|
2771
|
+
}>;
|
|
2772
|
+
(value: {
|
|
2773
|
+
'transform-functions'?: any;
|
|
2774
|
+
'transform-origin'?: any;
|
|
2775
|
+
perspective?: any;
|
|
2776
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"transform", {
|
|
2777
|
+
'transform-functions'?: any;
|
|
2778
|
+
'transform-origin'?: any;
|
|
2779
|
+
perspective?: any;
|
|
2780
|
+
}>;
|
|
2781
|
+
(value: (prev?: {
|
|
2782
|
+
'transform-functions'?: any;
|
|
2783
|
+
'transform-origin'?: any;
|
|
2784
|
+
perspective?: any;
|
|
2785
|
+
} | undefined) => {
|
|
2786
|
+
'transform-functions'?: any;
|
|
2787
|
+
'transform-origin'?: any;
|
|
2788
|
+
perspective?: any;
|
|
2789
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"transform", {
|
|
2790
|
+
'transform-functions'?: any;
|
|
2791
|
+
'transform-origin'?: any;
|
|
2792
|
+
perspective?: any;
|
|
2793
|
+
}>;
|
|
2794
|
+
};
|
|
2795
|
+
schema: z.ZodObject<{
|
|
2796
|
+
$$type: z.ZodLiteral<"transform">;
|
|
2797
|
+
value: z.ZodType<{
|
|
2798
|
+
'transform-functions'?: any;
|
|
2799
|
+
'transform-origin'?: any;
|
|
2800
|
+
perspective?: any;
|
|
2801
|
+
}, z.ZodTypeDef, {
|
|
2802
|
+
'transform-functions'?: any;
|
|
2803
|
+
'transform-origin'?: any;
|
|
2804
|
+
perspective?: any;
|
|
2805
|
+
}>;
|
|
2806
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2807
|
+
}, "strict", z.ZodTypeAny, {
|
|
2808
|
+
$$type: "transform";
|
|
2809
|
+
value: {
|
|
2810
|
+
'transform-functions'?: any;
|
|
2811
|
+
'transform-origin'?: any;
|
|
2812
|
+
perspective?: any;
|
|
2813
|
+
};
|
|
2814
|
+
disabled?: boolean | undefined;
|
|
2815
|
+
}, {
|
|
2816
|
+
$$type: "transform";
|
|
2817
|
+
value: {
|
|
2818
|
+
'transform-functions'?: any;
|
|
2819
|
+
'transform-origin'?: any;
|
|
2820
|
+
perspective?: any;
|
|
2821
|
+
};
|
|
2822
|
+
disabled?: boolean | undefined;
|
|
2823
|
+
}>;
|
|
2824
|
+
key: "transform";
|
|
2825
|
+
};
|
|
2826
|
+
type TransformPropValue = z.infer<typeof transformPropTypeUtil.schema>;
|
|
2827
|
+
|
|
2828
|
+
declare const filterTypes: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
2752
2829
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2753
2830
|
value: z.ZodType<{
|
|
2754
2831
|
x?: any;
|
|
@@ -2852,7 +2929,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2852
2929
|
} | null;
|
|
2853
2930
|
};
|
|
2854
2931
|
disabled?: boolean | undefined;
|
|
2855
|
-
}>, z.ZodObject<{
|
|
2932
|
+
}>]>, z.ZodObject<{
|
|
2856
2933
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2857
2934
|
value: z.ZodType<{
|
|
2858
2935
|
x?: any;
|
|
@@ -2880,7 +2957,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2880
2957
|
z?: any;
|
|
2881
2958
|
};
|
|
2882
2959
|
disabled?: boolean | undefined;
|
|
2883
|
-
}>, z.ZodObject<{
|
|
2960
|
+
}>]>, z.ZodObject<{
|
|
2884
2961
|
$$type: z.ZodLiteral<"transform-move" | "transform-scale" | "transform-rotate" | "transform-skew">;
|
|
2885
2962
|
value: z.ZodType<{
|
|
2886
2963
|
x?: any;
|
|
@@ -2905,7 +2982,7 @@ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
|
|
|
2905
2982
|
};
|
|
2906
2983
|
disabled?: boolean | undefined;
|
|
2907
2984
|
}>]>;
|
|
2908
|
-
declare const
|
|
2985
|
+
declare const transformFunctionsPropTypeUtil: {
|
|
2909
2986
|
extract: (prop: unknown) => ({
|
|
2910
2987
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
2911
2988
|
value: {
|
|
@@ -2950,7 +3027,7 @@ declare const transformPropTypeUtil: {
|
|
|
2950
3027
|
};
|
|
2951
3028
|
disabled?: boolean | undefined;
|
|
2952
3029
|
})[] | null;
|
|
2953
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform", ({
|
|
3030
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"transform-functions", ({
|
|
2954
3031
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
2955
3032
|
value: {
|
|
2956
3033
|
x?: any;
|
|
@@ -3038,7 +3115,7 @@ declare const transformPropTypeUtil: {
|
|
|
3038
3115
|
y?: any;
|
|
3039
3116
|
};
|
|
3040
3117
|
disabled?: boolean | undefined;
|
|
3041
|
-
})[]): TransformablePropValue$1<"transform", ({
|
|
3118
|
+
})[]): TransformablePropValue$1<"transform-functions", ({
|
|
3042
3119
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3043
3120
|
value: {
|
|
3044
3121
|
x?: any;
|
|
@@ -3125,7 +3202,7 @@ declare const transformPropTypeUtil: {
|
|
|
3125
3202
|
y?: any;
|
|
3126
3203
|
};
|
|
3127
3204
|
disabled?: boolean | undefined;
|
|
3128
|
-
})[], createOptions?: CreateOptions): TransformablePropValue$1<"transform", ({
|
|
3205
|
+
})[], createOptions?: CreateOptions): TransformablePropValue$1<"transform-functions", ({
|
|
3129
3206
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3130
3207
|
value: {
|
|
3131
3208
|
x?: any;
|
|
@@ -3255,7 +3332,7 @@ declare const transformPropTypeUtil: {
|
|
|
3255
3332
|
y?: any;
|
|
3256
3333
|
};
|
|
3257
3334
|
disabled?: boolean | undefined;
|
|
3258
|
-
})[], createOptions: CreateOptions): TransformablePropValue$1<"transform", ({
|
|
3335
|
+
})[], createOptions: CreateOptions): TransformablePropValue$1<"transform-functions", ({
|
|
3259
3336
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3260
3337
|
value: {
|
|
3261
3338
|
x?: any;
|
|
@@ -3301,7 +3378,7 @@ declare const transformPropTypeUtil: {
|
|
|
3301
3378
|
})[]>;
|
|
3302
3379
|
};
|
|
3303
3380
|
schema: z.ZodObject<{
|
|
3304
|
-
$$type: z.ZodLiteral<"transform">;
|
|
3381
|
+
$$type: z.ZodLiteral<"transform-functions">;
|
|
3305
3382
|
value: z.ZodType<({
|
|
3306
3383
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3307
3384
|
value: {
|
|
@@ -3391,7 +3468,7 @@ declare const transformPropTypeUtil: {
|
|
|
3391
3468
|
})[]>;
|
|
3392
3469
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
3393
3470
|
}, "strict", z.ZodTypeAny, {
|
|
3394
|
-
$$type: "transform";
|
|
3471
|
+
$$type: "transform-functions";
|
|
3395
3472
|
value: ({
|
|
3396
3473
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3397
3474
|
value: {
|
|
@@ -3438,7 +3515,7 @@ declare const transformPropTypeUtil: {
|
|
|
3438
3515
|
})[];
|
|
3439
3516
|
disabled?: boolean | undefined;
|
|
3440
3517
|
}, {
|
|
3441
|
-
$$type: "transform";
|
|
3518
|
+
$$type: "transform-functions";
|
|
3442
3519
|
value: ({
|
|
3443
3520
|
$$type: "transform-move" | "transform-scale" | "transform-rotate" | "transform-skew";
|
|
3444
3521
|
value: {
|
|
@@ -3485,10 +3562,10 @@ declare const transformPropTypeUtil: {
|
|
|
3485
3562
|
})[];
|
|
3486
3563
|
disabled?: boolean | undefined;
|
|
3487
3564
|
}>;
|
|
3488
|
-
key: "transform";
|
|
3565
|
+
key: "transform-functions";
|
|
3489
3566
|
};
|
|
3490
|
-
type
|
|
3491
|
-
type
|
|
3567
|
+
type TransformFunctionsPropValue = z.infer<typeof transformFunctionsPropTypeUtil.schema>;
|
|
3568
|
+
type TransformFunctionsItemPropValue = z.infer<typeof filterTypes>;
|
|
3492
3569
|
|
|
3493
3570
|
declare const moveTransformPropTypeUtil: {
|
|
3494
3571
|
extract: (prop: unknown) => {
|
|
@@ -4304,4 +4381,4 @@ declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TV
|
|
|
4304
4381
|
type Nullish = null | undefined | '';
|
|
4305
4382
|
declare const isEmpty: (value: PropValue) => value is Nullish;
|
|
4306
4383
|
|
|
4307
|
-
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 ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type RotateTransformPropValue, type ScaleTransformPropValue, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringPropValue, type StrokePropValue, type
|
|
4384
|
+
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 ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type RotateTransformPropValue, type ScaleTransformPropValue, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, 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, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, gradientColorStopPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, positionPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ __export(index_exports, {
|
|
|
70
70
|
skewTransformPropTypeUtil: () => skewTransformPropTypeUtil,
|
|
71
71
|
stringPropTypeUtil: () => stringPropTypeUtil,
|
|
72
72
|
strokePropTypeUtil: () => strokePropTypeUtil,
|
|
73
|
+
transformFunctionsPropTypeUtil: () => transformFunctionsPropTypeUtil,
|
|
73
74
|
transformOriginPropTypeUtil: () => transformOriginPropTypeUtil,
|
|
74
75
|
transformPropTypeUtil: () => transformPropTypeUtil,
|
|
75
76
|
urlPropTypeUtil: () => urlPropTypeUtil
|
|
@@ -431,10 +432,21 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
431
432
|
var filterPropTypeUtil = createPropUtils("filter", import_schema30.z.array(cssFilterFunctionPropUtil.schema));
|
|
432
433
|
|
|
433
434
|
// src/prop-types/transform-prop-types/transform.ts
|
|
434
|
-
var import_schema35 = require("@elementor/schema");
|
|
435
|
-
|
|
436
|
-
// src/prop-types/transform-prop-types/move-transform.ts
|
|
437
435
|
var import_schema31 = require("@elementor/schema");
|
|
436
|
+
var transformPropTypeUtil = createPropUtils(
|
|
437
|
+
"transform",
|
|
438
|
+
import_schema31.z.strictObject({
|
|
439
|
+
"transform-functions": unknownChildrenSchema,
|
|
440
|
+
"transform-origin": unknownChildrenSchema,
|
|
441
|
+
perspective: unknownChildrenSchema
|
|
442
|
+
})
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
446
|
+
var import_schema36 = require("@elementor/schema");
|
|
447
|
+
|
|
448
|
+
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
449
|
+
var import_schema32 = require("@elementor/schema");
|
|
438
450
|
|
|
439
451
|
// src/prop-types/transform-prop-types/types.ts
|
|
440
452
|
var TransformFunctionKeys = {
|
|
@@ -444,62 +456,57 @@ var TransformFunctionKeys = {
|
|
|
444
456
|
skew: "transform-skew"
|
|
445
457
|
};
|
|
446
458
|
|
|
447
|
-
// src/prop-types/transform-prop-types/move-transform.ts
|
|
459
|
+
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
448
460
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
449
461
|
TransformFunctionKeys.move,
|
|
450
|
-
|
|
462
|
+
import_schema32.z.strictObject({
|
|
451
463
|
x: unknownChildrenSchema,
|
|
452
464
|
y: unknownChildrenSchema,
|
|
453
465
|
z: unknownChildrenSchema
|
|
454
466
|
})
|
|
455
467
|
);
|
|
456
468
|
|
|
457
|
-
// src/prop-types/transform-prop-types/rotate-transform.ts
|
|
458
|
-
var
|
|
469
|
+
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
470
|
+
var import_schema33 = require("@elementor/schema");
|
|
459
471
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
460
472
|
TransformFunctionKeys.rotate,
|
|
461
|
-
|
|
473
|
+
import_schema33.z.strictObject({
|
|
462
474
|
x: unknownChildrenSchema,
|
|
463
475
|
y: unknownChildrenSchema,
|
|
464
476
|
z: unknownChildrenSchema
|
|
465
477
|
})
|
|
466
478
|
);
|
|
467
479
|
|
|
468
|
-
// src/prop-types/transform-prop-types/scale-transform.ts
|
|
469
|
-
var
|
|
480
|
+
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
481
|
+
var import_schema34 = require("@elementor/schema");
|
|
470
482
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
471
483
|
TransformFunctionKeys.scale,
|
|
472
|
-
|
|
484
|
+
import_schema34.z.strictObject({
|
|
473
485
|
x: numberPropTypeUtil.schema.nullable(),
|
|
474
486
|
y: numberPropTypeUtil.schema.nullable(),
|
|
475
487
|
z: numberPropTypeUtil.schema.nullable()
|
|
476
488
|
})
|
|
477
489
|
);
|
|
478
490
|
|
|
479
|
-
// src/prop-types/transform-prop-types/skew-transform.ts
|
|
480
|
-
var
|
|
491
|
+
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
492
|
+
var import_schema35 = require("@elementor/schema");
|
|
481
493
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
482
494
|
TransformFunctionKeys.skew,
|
|
483
|
-
|
|
495
|
+
import_schema35.z.strictObject({
|
|
484
496
|
x: unknownChildrenSchema,
|
|
485
497
|
y: unknownChildrenSchema
|
|
486
498
|
})
|
|
487
499
|
);
|
|
488
500
|
|
|
489
|
-
// src/prop-types/transform-prop-types/transform.ts
|
|
490
|
-
var filterTypes =
|
|
491
|
-
|
|
492
|
-
scaleTransformPropTypeUtil.schema,
|
|
493
|
-
rotateTransformPropTypeUtil.schema,
|
|
494
|
-
skewTransformPropTypeUtil.schema
|
|
495
|
-
]);
|
|
496
|
-
var transformPropTypeUtil = createPropUtils("transform", import_schema35.z.array(filterTypes));
|
|
501
|
+
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
502
|
+
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
503
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema36.z.array(filterTypes));
|
|
497
504
|
|
|
498
505
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
499
|
-
var
|
|
506
|
+
var import_schema37 = require("@elementor/schema");
|
|
500
507
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
501
508
|
"transform-origin",
|
|
502
|
-
|
|
509
|
+
import_schema37.z.strictObject({
|
|
503
510
|
x: unknownChildrenSchema,
|
|
504
511
|
y: unknownChildrenSchema,
|
|
505
512
|
z: unknownChildrenSchema
|
|
@@ -507,10 +514,10 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
507
514
|
);
|
|
508
515
|
|
|
509
516
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
510
|
-
var
|
|
517
|
+
var import_schema38 = require("@elementor/schema");
|
|
511
518
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
512
519
|
"backdrop-filter",
|
|
513
|
-
|
|
520
|
+
import_schema38.z.array(cssFilterFunctionPropUtil.schema)
|
|
514
521
|
);
|
|
515
522
|
|
|
516
523
|
// src/utils/merge-props.ts
|
|
@@ -527,11 +534,11 @@ function mergeProps(current, updates) {
|
|
|
527
534
|
}
|
|
528
535
|
|
|
529
536
|
// src/utils/is-transformable.ts
|
|
530
|
-
var
|
|
531
|
-
var transformableSchema =
|
|
532
|
-
$$type:
|
|
533
|
-
value:
|
|
534
|
-
disabled:
|
|
537
|
+
var import_schema39 = require("@elementor/schema");
|
|
538
|
+
var transformableSchema = import_schema39.z.object({
|
|
539
|
+
$$type: import_schema39.z.string(),
|
|
540
|
+
value: import_schema39.z.any(),
|
|
541
|
+
disabled: import_schema39.z.boolean().optional()
|
|
535
542
|
});
|
|
536
543
|
var isTransformable = (value) => {
|
|
537
544
|
return transformableSchema.safeParse(value).success;
|
|
@@ -687,6 +694,7 @@ var isNullishObject = (value) => {
|
|
|
687
694
|
skewTransformPropTypeUtil,
|
|
688
695
|
stringPropTypeUtil,
|
|
689
696
|
strokePropTypeUtil,
|
|
697
|
+
transformFunctionsPropTypeUtil,
|
|
690
698
|
transformOriginPropTypeUtil,
|
|
691
699
|
transformPropTypeUtil,
|
|
692
700
|
urlPropTypeUtil
|