@elementor/editor-editing-panel 3.32.0-63 → 3.32.0-64
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 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/controls-registry/create-top-level-object-type.ts +1 -1
- package/src/controls-registry/settings-field.tsx +2 -2
- package/src/controls-registry/styles-field.tsx +2 -2
- package/src/dynamics/dynamic-control.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -2027,7 +2027,7 @@ function updateValue(path, value, values) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
2029
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2030
|
-
var
|
|
2030
|
+
var createTopLevelObjectType = ({ schema }) => {
|
|
2031
2031
|
const schemaPropType = {
|
|
2032
2032
|
key: "",
|
|
2033
2033
|
kind: "object",
|
|
@@ -2048,7 +2048,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2048
2048
|
} = useElement();
|
|
2049
2049
|
const elementSettingValues = (0, import_editor_elements6.useElementSettings)(elementId, Object.keys(propsSchema));
|
|
2050
2050
|
const value = { [bind]: elementSettingValues?.[bind] ?? null };
|
|
2051
|
-
const propType =
|
|
2051
|
+
const propType = createTopLevelObjectType({ schema: propsSchema });
|
|
2052
2052
|
const undoableUpdateElementProp = useUndoableUpdateElementProp({
|
|
2053
2053
|
elementId,
|
|
2054
2054
|
propDisplayName
|
|
@@ -2987,7 +2987,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
2987
2987
|
const stylesSchema = (0, import_editor_styles4.getStylesSchema)();
|
|
2988
2988
|
const stylesInheritanceChain = useStylesInheritanceChain([bind]);
|
|
2989
2989
|
const { value, canEdit, ...fields } = useStylesField(bind, { history: { propDisplayName } });
|
|
2990
|
-
const propType =
|
|
2990
|
+
const propType = createTopLevelObjectType({ schema: stylesSchema });
|
|
2991
2991
|
const [actualValue] = stylesInheritanceChain;
|
|
2992
2992
|
const placeholderValues = {
|
|
2993
2993
|
[bind]: actualValue?.value
|
|
@@ -5105,7 +5105,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
});
|
|
5107
5107
|
};
|
|
5108
|
-
const propType =
|
|
5108
|
+
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5109
5109
|
return /* @__PURE__ */ React91.createElement(import_editor_controls56.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React91.createElement(import_editor_controls56.PropKeyProvider, { bind }, children));
|
|
5110
5110
|
};
|
|
5111
5111
|
|