@elementor/editor-editing-panel 3.32.0-59 → 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.mjs
CHANGED
|
@@ -3346,8 +3346,13 @@ import { __ as __21 } from "@wordpress/i18n";
|
|
|
3346
3346
|
import { getElementStyles as getElementStyles2 } from "@elementor/editor-elements";
|
|
3347
3347
|
var quickTransform = (props) => {
|
|
3348
3348
|
return Object.entries(props).map(([key, value]) => {
|
|
3349
|
-
if (value && typeof value === "object" && "$$type" in value
|
|
3350
|
-
|
|
3349
|
+
if (value && typeof value === "object" && "$$type" in value) {
|
|
3350
|
+
if (value?.$$type === "dimensions") {
|
|
3351
|
+
return Object.keys(value?.value ?? {}).map((nestedKey) => `${key}-${nestedKey}`);
|
|
3352
|
+
}
|
|
3353
|
+
if (Array.isArray(value?.value) && !value?.value?.length) {
|
|
3354
|
+
return [];
|
|
3355
|
+
}
|
|
3351
3356
|
}
|
|
3352
3357
|
return [key];
|
|
3353
3358
|
});
|