@elementor/editor-editing-panel 3.32.0-58 → 3.32.0-60
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 +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/utils/get-recently-used-styles.ts +9 -2
package/dist/index.js
CHANGED
|
@@ -3292,8 +3292,13 @@ var import_i18n21 = require("@wordpress/i18n");
|
|
|
3292
3292
|
var import_editor_elements9 = require("@elementor/editor-elements");
|
|
3293
3293
|
var quickTransform = (props) => {
|
|
3294
3294
|
return Object.entries(props).map(([key, value]) => {
|
|
3295
|
-
if (value && typeof value === "object" && "$$type" in value
|
|
3296
|
-
|
|
3295
|
+
if (value && typeof value === "object" && "$$type" in value) {
|
|
3296
|
+
if (value?.$$type === "dimensions") {
|
|
3297
|
+
return Object.keys(value?.value ?? {}).map((nestedKey) => `${key}-${nestedKey}`);
|
|
3298
|
+
}
|
|
3299
|
+
if (Array.isArray(value?.value) && !value?.value?.length) {
|
|
3300
|
+
return [];
|
|
3301
|
+
}
|
|
3297
3302
|
}
|
|
3298
3303
|
return [key];
|
|
3299
3304
|
});
|