@orion-studios/payload-studio 0.6.0-beta.171 → 0.6.0-beta.173
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.
|
@@ -1779,11 +1779,18 @@ var negativePaddingCss = `
|
|
|
1779
1779
|
overflow: visible;
|
|
1780
1780
|
}
|
|
1781
1781
|
|
|
1782
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1783
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1784
|
+
overflow: hidden;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1782
1787
|
.orion-builder-v2-negative-padding > * {
|
|
1783
1788
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1784
1789
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
1785
1790
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1786
1791
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1792
|
+
max-width: none !important;
|
|
1793
|
+
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1787
1794
|
}
|
|
1788
1795
|
`;
|
|
1789
1796
|
var canvasSelectionCss = `
|
|
@@ -2589,6 +2596,7 @@ function GrapesPageEditor({
|
|
|
2589
2596
|
if (side) {
|
|
2590
2597
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2591
2598
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2599
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2592
2600
|
const attrs = selected.getAttributes?.() || {};
|
|
2593
2601
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2594
2602
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
@@ -2622,6 +2630,7 @@ function GrapesPageEditor({
|
|
|
2622
2630
|
const side = negativePaddingSideFromProperty(property);
|
|
2623
2631
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2624
2632
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2633
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2625
2634
|
selected.addAttributes?.({ [negativePaddingAttributeForSide(side)]: negativeStyleValue });
|
|
2626
2635
|
selected.addStyle?.({
|
|
2627
2636
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
@@ -1655,11 +1655,18 @@ var negativePaddingCss = `
|
|
|
1655
1655
|
overflow: visible;
|
|
1656
1656
|
}
|
|
1657
1657
|
|
|
1658
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1659
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1660
|
+
overflow: hidden;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1658
1663
|
.orion-builder-v2-negative-padding > * {
|
|
1659
1664
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1660
1665
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
1661
1666
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1662
1667
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1668
|
+
max-width: none !important;
|
|
1669
|
+
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1663
1670
|
}
|
|
1664
1671
|
`;
|
|
1665
1672
|
var canvasSelectionCss = `
|
|
@@ -2465,6 +2472,7 @@ function GrapesPageEditor({
|
|
|
2465
2472
|
if (side) {
|
|
2466
2473
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2467
2474
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2475
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2468
2476
|
const attrs = selected.getAttributes?.() || {};
|
|
2469
2477
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2470
2478
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
@@ -2498,6 +2506,7 @@ function GrapesPageEditor({
|
|
|
2498
2506
|
const side = negativePaddingSideFromProperty(property);
|
|
2499
2507
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2500
2508
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2509
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2501
2510
|
selected.addAttributes?.({ [negativePaddingAttributeForSide(side)]: negativeStyleValue });
|
|
2502
2511
|
selected.addStyle?.({
|
|
2503
2512
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
package/dist/index.mjs
CHANGED
|
@@ -5,13 +5,6 @@ import {
|
|
|
5
5
|
nextjs_exports
|
|
6
6
|
} from "./chunk-ZADL33R6.mjs";
|
|
7
7
|
import "./chunk-ZTXJG4K5.mjs";
|
|
8
|
-
import {
|
|
9
|
-
blocks_exports
|
|
10
|
-
} from "./chunk-JQAHXYAM.mjs";
|
|
11
|
-
import {
|
|
12
|
-
admin_app_exports
|
|
13
|
-
} from "./chunk-RKTIFEUY.mjs";
|
|
14
|
-
import "./chunk-W2UOCJDX.mjs";
|
|
15
8
|
import {
|
|
16
9
|
studio_pages_exports
|
|
17
10
|
} from "./chunk-7HME6R2V.mjs";
|
|
@@ -19,7 +12,14 @@ import "./chunk-7ZMXZRBP.mjs";
|
|
|
19
12
|
import {
|
|
20
13
|
studio_exports
|
|
21
14
|
} from "./chunk-ADIIWIYL.mjs";
|
|
15
|
+
import {
|
|
16
|
+
blocks_exports
|
|
17
|
+
} from "./chunk-JQAHXYAM.mjs";
|
|
22
18
|
import "./chunk-OQSEJXC4.mjs";
|
|
19
|
+
import {
|
|
20
|
+
admin_app_exports
|
|
21
|
+
} from "./chunk-RKTIFEUY.mjs";
|
|
22
|
+
import "./chunk-W2UOCJDX.mjs";
|
|
23
23
|
import "./chunk-6BWS3CLP.mjs";
|
|
24
24
|
export {
|
|
25
25
|
admin_exports as admin,
|
package/package.json
CHANGED