@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.mjs
CHANGED
|
@@ -2048,7 +2048,7 @@ function updateValue(path, value, values) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
2050
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2051
|
-
var
|
|
2051
|
+
var createTopLevelObjectType = ({ schema }) => {
|
|
2052
2052
|
const schemaPropType = {
|
|
2053
2053
|
key: "",
|
|
2054
2054
|
kind: "object",
|
|
@@ -2069,7 +2069,7 @@ var SettingsField = ({ bind, children, propDisplayName }) => {
|
|
|
2069
2069
|
} = useElement();
|
|
2070
2070
|
const elementSettingValues = useElementSettings(elementId, Object.keys(propsSchema));
|
|
2071
2071
|
const value = { [bind]: elementSettingValues?.[bind] ?? null };
|
|
2072
|
-
const propType =
|
|
2072
|
+
const propType = createTopLevelObjectType({ schema: propsSchema });
|
|
2073
2073
|
const undoableUpdateElementProp = useUndoableUpdateElementProp({
|
|
2074
2074
|
elementId,
|
|
2075
2075
|
propDisplayName
|
|
@@ -3029,7 +3029,7 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3029
3029
|
const stylesSchema = getStylesSchema2();
|
|
3030
3030
|
const stylesInheritanceChain = useStylesInheritanceChain([bind]);
|
|
3031
3031
|
const { value, canEdit, ...fields } = useStylesField(bind, { history: { propDisplayName } });
|
|
3032
|
-
const propType =
|
|
3032
|
+
const propType = createTopLevelObjectType({ schema: stylesSchema });
|
|
3033
3033
|
const [actualValue] = stylesInheritanceChain;
|
|
3034
3034
|
const placeholderValues = {
|
|
3035
3035
|
[bind]: actualValue?.value
|
|
@@ -5213,7 +5213,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5213
5213
|
}
|
|
5214
5214
|
});
|
|
5215
5215
|
};
|
|
5216
|
-
const propType =
|
|
5216
|
+
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
5217
5217
|
return /* @__PURE__ */ React91.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React91.createElement(PropKeyProvider5, { bind }, children));
|
|
5218
5218
|
};
|
|
5219
5219
|
|