@elementor/editor-components 3.35.0-455 → 3.35.0-457
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
CHANGED
|
@@ -4167,12 +4167,11 @@ function getOverridableProp({
|
|
|
4167
4167
|
}
|
|
4168
4168
|
|
|
4169
4169
|
// src/components/overridable-props/overridable-prop-indicator.tsx
|
|
4170
|
-
var FORBIDDEN_KEYS = ["_cssid", "attributes"];
|
|
4171
4170
|
function OverridablePropIndicator() {
|
|
4172
|
-
const {
|
|
4171
|
+
const { propType } = (0, import_editor_controls6.useBoundProp)();
|
|
4173
4172
|
const componentId = useCurrentComponentId();
|
|
4174
4173
|
const overridableProps = useOverridableProps(componentId);
|
|
4175
|
-
if (!isPropAllowed(
|
|
4174
|
+
if (!isPropAllowed(propType) || !componentId || !overridableProps) {
|
|
4176
4175
|
return null;
|
|
4177
4176
|
}
|
|
4178
4177
|
return /* @__PURE__ */ React31.createElement(Content2, { componentId, overridableProps });
|
|
@@ -4251,8 +4250,8 @@ function Content2({ componentId, overridableProps }) {
|
|
|
4251
4250
|
)
|
|
4252
4251
|
));
|
|
4253
4252
|
}
|
|
4254
|
-
function isPropAllowed(
|
|
4255
|
-
return
|
|
4253
|
+
function isPropAllowed(propType) {
|
|
4254
|
+
return propType.meta.overridable !== false;
|
|
4256
4255
|
}
|
|
4257
4256
|
|
|
4258
4257
|
// src/hooks/cleanup-overridable-props-on-delete.ts
|