@elementor/editor-props 4.0.0-564 → 4.0.0-591

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 CHANGED
@@ -9,6 +9,7 @@ type DependencyTerm = {
9
9
  nestedPath?: string[];
10
10
  value: PropValue;
11
11
  newValue?: TransformablePropValue$1<string>;
12
+ effect?: 'disable' | 'hide';
12
13
  };
13
14
  type Dependency = {
14
15
  relation: 'or' | 'and';
@@ -1624,6 +1625,174 @@ declare const linkPropTypeUtil: {
1624
1625
  };
1625
1626
  type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1626
1627
 
1628
+ declare const emailPropTypeUtil: {
1629
+ extract: (prop: unknown) => {
1630
+ message?: any;
1631
+ to?: any;
1632
+ subject?: any;
1633
+ from?: any;
1634
+ 'meta-data'?: any;
1635
+ 'send-as'?: any;
1636
+ 'from-name'?: any;
1637
+ 'reply-to'?: any;
1638
+ cc?: any;
1639
+ bcc?: any;
1640
+ } | null;
1641
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"email", {
1642
+ message?: any;
1643
+ to?: any;
1644
+ subject?: any;
1645
+ from?: any;
1646
+ 'meta-data'?: any;
1647
+ 'send-as'?: any;
1648
+ 'from-name'?: any;
1649
+ 'reply-to'?: any;
1650
+ cc?: any;
1651
+ bcc?: any;
1652
+ }>;
1653
+ create: {
1654
+ (value: {
1655
+ message?: any;
1656
+ to?: any;
1657
+ subject?: any;
1658
+ from?: any;
1659
+ 'meta-data'?: any;
1660
+ 'send-as'?: any;
1661
+ 'from-name'?: any;
1662
+ 'reply-to'?: any;
1663
+ cc?: any;
1664
+ bcc?: any;
1665
+ }): TransformablePropValue$1<"email", {
1666
+ message?: any;
1667
+ to?: any;
1668
+ subject?: any;
1669
+ from?: any;
1670
+ 'meta-data'?: any;
1671
+ 'send-as'?: any;
1672
+ 'from-name'?: any;
1673
+ 'reply-to'?: any;
1674
+ cc?: any;
1675
+ bcc?: any;
1676
+ }>;
1677
+ (value: {
1678
+ message?: any;
1679
+ to?: any;
1680
+ subject?: any;
1681
+ from?: any;
1682
+ 'meta-data'?: any;
1683
+ 'send-as'?: any;
1684
+ 'from-name'?: any;
1685
+ 'reply-to'?: any;
1686
+ cc?: any;
1687
+ bcc?: any;
1688
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"email", {
1689
+ message?: any;
1690
+ to?: any;
1691
+ subject?: any;
1692
+ from?: any;
1693
+ 'meta-data'?: any;
1694
+ 'send-as'?: any;
1695
+ 'from-name'?: any;
1696
+ 'reply-to'?: any;
1697
+ cc?: any;
1698
+ bcc?: any;
1699
+ }>;
1700
+ (value: (prev?: {
1701
+ message?: any;
1702
+ to?: any;
1703
+ subject?: any;
1704
+ from?: any;
1705
+ 'meta-data'?: any;
1706
+ 'send-as'?: any;
1707
+ 'from-name'?: any;
1708
+ 'reply-to'?: any;
1709
+ cc?: any;
1710
+ bcc?: any;
1711
+ } | undefined) => {
1712
+ message?: any;
1713
+ to?: any;
1714
+ subject?: any;
1715
+ from?: any;
1716
+ 'meta-data'?: any;
1717
+ 'send-as'?: any;
1718
+ 'from-name'?: any;
1719
+ 'reply-to'?: any;
1720
+ cc?: any;
1721
+ bcc?: any;
1722
+ }, createOptions: CreateOptions): TransformablePropValue$1<"email", {
1723
+ message?: any;
1724
+ to?: any;
1725
+ subject?: any;
1726
+ from?: any;
1727
+ 'meta-data'?: any;
1728
+ 'send-as'?: any;
1729
+ 'from-name'?: any;
1730
+ 'reply-to'?: any;
1731
+ cc?: any;
1732
+ bcc?: any;
1733
+ }>;
1734
+ };
1735
+ schema: z.ZodObject<{
1736
+ $$type: z.ZodLiteral<"email">;
1737
+ value: z.ZodType<{
1738
+ message?: any;
1739
+ to?: any;
1740
+ subject?: any;
1741
+ from?: any;
1742
+ 'meta-data'?: any;
1743
+ 'send-as'?: any;
1744
+ 'from-name'?: any;
1745
+ 'reply-to'?: any;
1746
+ cc?: any;
1747
+ bcc?: any;
1748
+ }, z.ZodTypeDef, {
1749
+ message?: any;
1750
+ to?: any;
1751
+ subject?: any;
1752
+ from?: any;
1753
+ 'meta-data'?: any;
1754
+ 'send-as'?: any;
1755
+ 'from-name'?: any;
1756
+ 'reply-to'?: any;
1757
+ cc?: any;
1758
+ bcc?: any;
1759
+ }>;
1760
+ disabled: z.ZodOptional<z.ZodBoolean>;
1761
+ }, "strict", z.ZodTypeAny, {
1762
+ $$type: "email";
1763
+ value: {
1764
+ message?: any;
1765
+ to?: any;
1766
+ subject?: any;
1767
+ from?: any;
1768
+ 'meta-data'?: any;
1769
+ 'send-as'?: any;
1770
+ 'from-name'?: any;
1771
+ 'reply-to'?: any;
1772
+ cc?: any;
1773
+ bcc?: any;
1774
+ };
1775
+ disabled?: boolean | undefined;
1776
+ }, {
1777
+ $$type: "email";
1778
+ value: {
1779
+ message?: any;
1780
+ to?: any;
1781
+ subject?: any;
1782
+ from?: any;
1783
+ 'meta-data'?: any;
1784
+ 'send-as'?: any;
1785
+ 'from-name'?: any;
1786
+ 'reply-to'?: any;
1787
+ cc?: any;
1788
+ bcc?: any;
1789
+ };
1790
+ disabled?: boolean | undefined;
1791
+ }>;
1792
+ key: "email";
1793
+ };
1794
+ type EmailPropValue = z.infer<typeof emailPropTypeUtil.schema>;
1795
+
1627
1796
  declare const selectionSizePropTypeUtil: {
1628
1797
  extract: (prop: unknown) => {
1629
1798
  selection: {
@@ -2819,6 +2988,153 @@ declare const htmlV2PropTypeUtil: {
2819
2988
  type HtmlV2PropValue = z.infer<typeof htmlV2PropTypeUtil.schema>;
2820
2989
  type HtmlV2Value = z.infer<typeof htmlV2ValueSchema>;
2821
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
+
2822
3138
  declare const cssFilterFunctionPropUtil: {
2823
3139
  extract: (prop: unknown) => {
2824
3140
  func: {
@@ -6335,4 +6651,4 @@ declare const Schema: {
6335
6651
  removeIntention: typeof removeIntention;
6336
6652
  };
6337
6653
 
6338
- 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 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, 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 };