@elementor/editor-editing-panel 4.1.0-821 → 4.1.0-823
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 +66 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/controls-registry/controls-registry.tsx +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -1693,6 +1693,72 @@ declare const controlTypes: {
|
|
|
1693
1693
|
key: "email";
|
|
1694
1694
|
};
|
|
1695
1695
|
};
|
|
1696
|
+
readonly 'date-range': {
|
|
1697
|
+
readonly component: ControlComponent<() => react.JSX.Element>;
|
|
1698
|
+
readonly layout: "custom";
|
|
1699
|
+
readonly propTypeUtil: {
|
|
1700
|
+
extract: (prop: unknown) => {
|
|
1701
|
+
min?: any;
|
|
1702
|
+
max?: any;
|
|
1703
|
+
} | null;
|
|
1704
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1705
|
+
min?: any;
|
|
1706
|
+
max?: any;
|
|
1707
|
+
}>;
|
|
1708
|
+
create: {
|
|
1709
|
+
(value: {
|
|
1710
|
+
min?: any;
|
|
1711
|
+
max?: any;
|
|
1712
|
+
}): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1713
|
+
min?: any;
|
|
1714
|
+
max?: any;
|
|
1715
|
+
}>;
|
|
1716
|
+
(value: {
|
|
1717
|
+
min?: any;
|
|
1718
|
+
max?: any;
|
|
1719
|
+
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1720
|
+
min?: any;
|
|
1721
|
+
max?: any;
|
|
1722
|
+
}>;
|
|
1723
|
+
(value: (prev?: {
|
|
1724
|
+
min?: any;
|
|
1725
|
+
max?: any;
|
|
1726
|
+
} | undefined) => {
|
|
1727
|
+
min?: any;
|
|
1728
|
+
max?: any;
|
|
1729
|
+
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1730
|
+
min?: any;
|
|
1731
|
+
max?: any;
|
|
1732
|
+
}>;
|
|
1733
|
+
};
|
|
1734
|
+
schema: zod.ZodObject<{
|
|
1735
|
+
$$type: zod.ZodLiteral<"date-range">;
|
|
1736
|
+
value: zod.ZodType<{
|
|
1737
|
+
min?: any;
|
|
1738
|
+
max?: any;
|
|
1739
|
+
}, zod.ZodTypeDef, {
|
|
1740
|
+
min?: any;
|
|
1741
|
+
max?: any;
|
|
1742
|
+
}>;
|
|
1743
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1744
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1745
|
+
$$type: "date-range";
|
|
1746
|
+
value: {
|
|
1747
|
+
min?: any;
|
|
1748
|
+
max?: any;
|
|
1749
|
+
};
|
|
1750
|
+
disabled?: boolean | undefined;
|
|
1751
|
+
}, {
|
|
1752
|
+
$$type: "date-range";
|
|
1753
|
+
value: {
|
|
1754
|
+
min?: any;
|
|
1755
|
+
max?: any;
|
|
1756
|
+
};
|
|
1757
|
+
disabled?: boolean | undefined;
|
|
1758
|
+
}>;
|
|
1759
|
+
key: "date-range";
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1696
1762
|
};
|
|
1697
1763
|
type ControlType = keyof typeof controlTypes;
|
|
1698
1764
|
type ControlTypes = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1693,6 +1693,72 @@ declare const controlTypes: {
|
|
|
1693
1693
|
key: "email";
|
|
1694
1694
|
};
|
|
1695
1695
|
};
|
|
1696
|
+
readonly 'date-range': {
|
|
1697
|
+
readonly component: ControlComponent<() => react.JSX.Element>;
|
|
1698
|
+
readonly layout: "custom";
|
|
1699
|
+
readonly propTypeUtil: {
|
|
1700
|
+
extract: (prop: unknown) => {
|
|
1701
|
+
min?: any;
|
|
1702
|
+
max?: any;
|
|
1703
|
+
} | null;
|
|
1704
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1705
|
+
min?: any;
|
|
1706
|
+
max?: any;
|
|
1707
|
+
}>;
|
|
1708
|
+
create: {
|
|
1709
|
+
(value: {
|
|
1710
|
+
min?: any;
|
|
1711
|
+
max?: any;
|
|
1712
|
+
}): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1713
|
+
min?: any;
|
|
1714
|
+
max?: any;
|
|
1715
|
+
}>;
|
|
1716
|
+
(value: {
|
|
1717
|
+
min?: any;
|
|
1718
|
+
max?: any;
|
|
1719
|
+
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1720
|
+
min?: any;
|
|
1721
|
+
max?: any;
|
|
1722
|
+
}>;
|
|
1723
|
+
(value: (prev?: {
|
|
1724
|
+
min?: any;
|
|
1725
|
+
max?: any;
|
|
1726
|
+
} | undefined) => {
|
|
1727
|
+
min?: any;
|
|
1728
|
+
max?: any;
|
|
1729
|
+
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-range", {
|
|
1730
|
+
min?: any;
|
|
1731
|
+
max?: any;
|
|
1732
|
+
}>;
|
|
1733
|
+
};
|
|
1734
|
+
schema: zod.ZodObject<{
|
|
1735
|
+
$$type: zod.ZodLiteral<"date-range">;
|
|
1736
|
+
value: zod.ZodType<{
|
|
1737
|
+
min?: any;
|
|
1738
|
+
max?: any;
|
|
1739
|
+
}, zod.ZodTypeDef, {
|
|
1740
|
+
min?: any;
|
|
1741
|
+
max?: any;
|
|
1742
|
+
}>;
|
|
1743
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1744
|
+
}, "strict", zod.ZodTypeAny, {
|
|
1745
|
+
$$type: "date-range";
|
|
1746
|
+
value: {
|
|
1747
|
+
min?: any;
|
|
1748
|
+
max?: any;
|
|
1749
|
+
};
|
|
1750
|
+
disabled?: boolean | undefined;
|
|
1751
|
+
}, {
|
|
1752
|
+
$$type: "date-range";
|
|
1753
|
+
value: {
|
|
1754
|
+
min?: any;
|
|
1755
|
+
max?: any;
|
|
1756
|
+
};
|
|
1757
|
+
disabled?: boolean | undefined;
|
|
1758
|
+
}>;
|
|
1759
|
+
key: "date-range";
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1696
1762
|
};
|
|
1697
1763
|
type ControlType = keyof typeof controlTypes;
|
|
1698
1764
|
type ControlTypes = {
|
package/dist/index.js
CHANGED
|
@@ -2049,7 +2049,12 @@ var controlTypes = {
|
|
|
2049
2049
|
"date-time": { component: import_editor_controls.DateTimeControl, layout: "full", propTypeUtil: import_editor_props4.DateTimePropTypeUtil },
|
|
2050
2050
|
video: { component: import_editor_controls.VideoMediaControl, layout: "full", propTypeUtil: import_editor_props4.videoSrcPropTypeUtil },
|
|
2051
2051
|
"inline-editing": { component: import_editor_controls.InlineEditingControl, layout: "full", propTypeUtil: import_editor_props4.htmlV3PropTypeUtil },
|
|
2052
|
-
email: { component: import_editor_controls.EmailFormActionControl, layout: "custom", propTypeUtil: import_editor_props4.emailPropTypeUtil }
|
|
2052
|
+
email: { component: import_editor_controls.EmailFormActionControl, layout: "custom", propTypeUtil: import_editor_props4.emailPropTypeUtil },
|
|
2053
|
+
"date-range": {
|
|
2054
|
+
component: import_editor_controls.DateRangeControl,
|
|
2055
|
+
layout: "custom",
|
|
2056
|
+
propTypeUtil: import_editor_props4.dateRangePropTypeUtil
|
|
2057
|
+
}
|
|
2053
2058
|
};
|
|
2054
2059
|
var ControlsRegistry = class {
|
|
2055
2060
|
constructor(controlsRegistry2) {
|