@elementor/editor-components 4.0.0-511 → 4.0.0-513
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.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
- package/src/components/instance-editing-panel/override-prop-control.tsx +7 -2
- package/src/components/overridable-props/overridable-prop-control.tsx +2 -1
- package/src/init.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
37
37
|
// src/init.ts
|
|
38
38
|
var import_editor = require("@elementor/editor");
|
|
39
39
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
40
|
+
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
40
41
|
var import_editor_documents13 = require("@elementor/editor-documents");
|
|
41
42
|
var import_editor_editing_panel8 = require("@elementor/editor-editing-panel");
|
|
42
43
|
var import_editor_elements_panel = require("@elementor/editor-elements-panel");
|
|
@@ -4058,7 +4059,7 @@ function OverrideControl({ overridableProp, overrides }) {
|
|
|
4058
4059
|
const controls = useControlsByWidgetType(
|
|
4059
4060
|
overridableProp?.originPropFields?.widgetType ?? overridableProp.widgetType
|
|
4060
4061
|
);
|
|
4061
|
-
const controlReplacements = (0,
|
|
4062
|
+
const controlReplacements = (0, import_editor_controls3.getControlReplacements)();
|
|
4062
4063
|
const matchingOverride = getMatchingOverride(overrides, overridableProp.overrideKey);
|
|
4063
4064
|
const recursiveOriginValue = useResolvedOriginValue(matchingOverride, overridableProp);
|
|
4064
4065
|
const propType = getPropTypeForComponentOverride(overridableProp);
|
|
@@ -4302,7 +4303,7 @@ function OverridablePropControl({
|
|
|
4302
4303
|
const { value, bind, setValue, placeholder, ...propContext } = (0, import_editor_controls5.useBoundProp)(componentOverridablePropTypeUtil);
|
|
4303
4304
|
const componentId = useCurrentComponentId();
|
|
4304
4305
|
const overridableProps = useOverridableProps(componentId);
|
|
4305
|
-
const filteredReplacements = (0,
|
|
4306
|
+
const filteredReplacements = (0, import_editor_controls5.getControlReplacements)().filter(
|
|
4306
4307
|
(r) => !r.id || r.id !== OVERRIDABLE_PROP_REPLACEMENT_ID
|
|
4307
4308
|
);
|
|
4308
4309
|
if (!componentId) {
|
|
@@ -5637,7 +5638,7 @@ function init() {
|
|
|
5637
5638
|
priority: 1,
|
|
5638
5639
|
indicator: OverridablePropIndicator
|
|
5639
5640
|
});
|
|
5640
|
-
(0,
|
|
5641
|
+
(0, import_editor_controls7.registerControlReplacement)({
|
|
5641
5642
|
id: OVERRIDABLE_PROP_REPLACEMENT_ID,
|
|
5642
5643
|
component: OverridablePropControl,
|
|
5643
5644
|
condition: ({ value }) => componentOverridablePropTypeUtil.isValid(value)
|