@orion-studios/payload-studio 0.6.0-beta.174 → 0.6.0-beta.175
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.
|
@@ -2979,6 +2979,7 @@ function GrapesPageEditor({
|
|
|
2979
2979
|
}
|
|
2980
2980
|
const computed = window.getComputedStyle(element);
|
|
2981
2981
|
const attrs = component.getAttributes?.() || {};
|
|
2982
|
+
const style = component.getStyle?.() || {};
|
|
2982
2983
|
spacingProperties.forEach((property) => {
|
|
2983
2984
|
const negativePaddingSide = negativePaddingSideFromProperty(property);
|
|
2984
2985
|
const negativePaddingValue = negativePaddingSide ? firstString(attrs[negativePaddingAttributeForSide(negativePaddingSide)]) : "";
|
|
@@ -2986,6 +2987,10 @@ function GrapesPageEditor({
|
|
|
2986
2987
|
writeStylePanelLength(property, negativePaddingValue);
|
|
2987
2988
|
return;
|
|
2988
2989
|
}
|
|
2990
|
+
if (property.startsWith("margin-")) {
|
|
2991
|
+
writeStylePanelLength(property, firstString(style[property], computed.getPropertyValue(property)));
|
|
2992
|
+
return;
|
|
2993
|
+
}
|
|
2989
2994
|
writeStylePanelLength(property, computed.getPropertyValue(property));
|
|
2990
2995
|
});
|
|
2991
2996
|
});
|
|
@@ -2855,6 +2855,7 @@ function GrapesPageEditor({
|
|
|
2855
2855
|
}
|
|
2856
2856
|
const computed = window.getComputedStyle(element);
|
|
2857
2857
|
const attrs = component.getAttributes?.() || {};
|
|
2858
|
+
const style = component.getStyle?.() || {};
|
|
2858
2859
|
spacingProperties.forEach((property) => {
|
|
2859
2860
|
const negativePaddingSide = negativePaddingSideFromProperty(property);
|
|
2860
2861
|
const negativePaddingValue = negativePaddingSide ? firstString(attrs[negativePaddingAttributeForSide(negativePaddingSide)]) : "";
|
|
@@ -2862,6 +2863,10 @@ function GrapesPageEditor({
|
|
|
2862
2863
|
writeStylePanelLength(property, negativePaddingValue);
|
|
2863
2864
|
return;
|
|
2864
2865
|
}
|
|
2866
|
+
if (property.startsWith("margin-")) {
|
|
2867
|
+
writeStylePanelLength(property, firstString(style[property], computed.getPropertyValue(property)));
|
|
2868
|
+
return;
|
|
2869
|
+
}
|
|
2865
2870
|
writeStylePanelLength(property, computed.getPropertyValue(property));
|
|
2866
2871
|
});
|
|
2867
2872
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
3
|
} from "./chunk-JC3UV74N.mjs";
|
|
4
|
-
import {
|
|
5
|
-
blocks_exports
|
|
6
|
-
} from "./chunk-JQAHXYAM.mjs";
|
|
7
4
|
import {
|
|
8
5
|
admin_app_exports
|
|
9
6
|
} from "./chunk-RKTIFEUY.mjs";
|
|
10
7
|
import "./chunk-W2UOCJDX.mjs";
|
|
8
|
+
import {
|
|
9
|
+
blocks_exports
|
|
10
|
+
} from "./chunk-JQAHXYAM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
nextjs_exports
|
|
13
13
|
} from "./chunk-ZADL33R6.mjs";
|
package/package.json
CHANGED