@orion-studios/payload-studio 0.6.0-beta.173 → 0.6.0-beta.174
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/admin/index.mjs +2 -2
- package/dist/builder-v2/client.js +41 -1
- package/dist/builder-v2/client.mjs +41 -1
- package/dist/index.mjs +10 -10
- package/dist/studio-pages/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/{chunk-KHK6RTGC.mjs → chunk-JC3UV74N.mjs} +3 -3
- package/dist/{chunk-7HME6R2V.mjs → chunk-NGLIA2OE.mjs} +3 -3
package/dist/admin/index.mjs
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
socialMediaConnectionsField,
|
|
8
8
|
themePreferenceField,
|
|
9
9
|
withTooltips
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-JC3UV74N.mjs";
|
|
11
|
+
import "../chunk-W2UOCJDX.mjs";
|
|
11
12
|
import {
|
|
12
13
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
13
14
|
SOCIAL_MEDIA_ICON_OPTIONS,
|
|
14
15
|
SOCIAL_MEDIA_PLATFORMS,
|
|
15
16
|
SOCIAL_MEDIA_PLATFORM_LABELS
|
|
16
17
|
} from "../chunk-ZTXJG4K5.mjs";
|
|
17
|
-
import "../chunk-W2UOCJDX.mjs";
|
|
18
18
|
import "../chunk-6BWS3CLP.mjs";
|
|
19
19
|
export {
|
|
20
20
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
@@ -1776,7 +1776,9 @@ var quickVerticalAlignStyles = {
|
|
|
1776
1776
|
var negativePaddingCss = `
|
|
1777
1777
|
.orion-builder-v2-negative-padding {
|
|
1778
1778
|
display: flow-root;
|
|
1779
|
+
isolation: isolate;
|
|
1779
1780
|
overflow: visible;
|
|
1781
|
+
position: relative;
|
|
1780
1782
|
}
|
|
1781
1783
|
|
|
1782
1784
|
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
@@ -1784,13 +1786,27 @@ var negativePaddingCss = `
|
|
|
1784
1786
|
overflow: hidden;
|
|
1785
1787
|
}
|
|
1786
1788
|
|
|
1789
|
+
.orion-builder-v2-negative-padding::before {
|
|
1790
|
+
background: var(--orion-negative-padding-background, transparent);
|
|
1791
|
+
content: "";
|
|
1792
|
+
inset: calc(-1 * var(--orion-negative-padding-top, 0px))
|
|
1793
|
+
calc(-1 * var(--orion-negative-padding-right, 0px))
|
|
1794
|
+
calc(-1 * var(--orion-negative-padding-bottom, 0px))
|
|
1795
|
+
calc(-1 * var(--orion-negative-padding-left, 0px));
|
|
1796
|
+
pointer-events: none;
|
|
1797
|
+
position: absolute;
|
|
1798
|
+
z-index: -1;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1787
1801
|
.orion-builder-v2-negative-padding > * {
|
|
1788
1802
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1789
1803
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
1790
1804
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1791
1805
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1792
1806
|
max-width: none !important;
|
|
1807
|
+
position: relative;
|
|
1793
1808
|
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1809
|
+
z-index: 1;
|
|
1794
1810
|
}
|
|
1795
1811
|
`;
|
|
1796
1812
|
var canvasSelectionCss = `
|
|
@@ -2007,6 +2023,8 @@ var negativePaddingSides = ["top", "bottom", "left", "right"];
|
|
|
2007
2023
|
var negativePaddingSideFromProperty = (property) => property.startsWith("padding-") ? property.replace(/^padding-/, "") : "";
|
|
2008
2024
|
var negativePaddingAttributeForSide = (side) => `data-orion-negative-padding-${side}`;
|
|
2009
2025
|
var negativePaddingVariableForSide = (side) => `--orion-negative-padding-${side}`;
|
|
2026
|
+
var negativePaddingBackgroundAttribute = "data-orion-negative-padding-background";
|
|
2027
|
+
var negativePaddingBackgroundVariable = "--orion-negative-padding-background";
|
|
2010
2028
|
var spacingTargetForComponent = (component) => {
|
|
2011
2029
|
const element = component?.getEl?.();
|
|
2012
2030
|
return element || null;
|
|
@@ -2602,6 +2620,15 @@ function GrapesPageEditor({
|
|
|
2602
2620
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
2603
2621
|
);
|
|
2604
2622
|
if (!hasOtherNegativePadding) {
|
|
2623
|
+
const negativePaddingBackground = firstString(
|
|
2624
|
+
attrs[negativePaddingBackgroundAttribute],
|
|
2625
|
+
selected.getStyle?.()[negativePaddingBackgroundVariable]
|
|
2626
|
+
);
|
|
2627
|
+
if (negativePaddingBackground) {
|
|
2628
|
+
selected.addStyle?.({ "background-color": negativePaddingBackground });
|
|
2629
|
+
}
|
|
2630
|
+
selected.removeStyle?.(negativePaddingBackgroundVariable);
|
|
2631
|
+
selected.removeAttributes?.(negativePaddingBackgroundAttribute);
|
|
2605
2632
|
selected.removeClass?.("orion-builder-v2-negative-padding");
|
|
2606
2633
|
}
|
|
2607
2634
|
}
|
|
@@ -2629,10 +2656,23 @@ function GrapesPageEditor({
|
|
|
2629
2656
|
if (isPadding) {
|
|
2630
2657
|
const side = negativePaddingSideFromProperty(property);
|
|
2631
2658
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2659
|
+
const currentStyle = selected.getStyle?.() || {};
|
|
2660
|
+
const backgroundColor = firstString(
|
|
2661
|
+
currentStyle[negativePaddingBackgroundVariable],
|
|
2662
|
+
selected.getAttributes?.()[negativePaddingBackgroundAttribute],
|
|
2663
|
+
getStyleColorValue(currentStyle, "background-color")
|
|
2664
|
+
);
|
|
2632
2665
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2633
2666
|
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2634
|
-
selected.addAttributes?.({
|
|
2667
|
+
selected.addAttributes?.({
|
|
2668
|
+
...backgroundColor ? { [negativePaddingBackgroundAttribute]: backgroundColor } : {},
|
|
2669
|
+
[negativePaddingAttributeForSide(side)]: negativeStyleValue
|
|
2670
|
+
});
|
|
2635
2671
|
selected.addStyle?.({
|
|
2672
|
+
...backgroundColor ? {
|
|
2673
|
+
[negativePaddingBackgroundVariable]: backgroundColor,
|
|
2674
|
+
"background-color": "transparent"
|
|
2675
|
+
} : {},
|
|
2636
2676
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
2637
2677
|
[property]: "0px"
|
|
2638
2678
|
});
|
|
@@ -1652,7 +1652,9 @@ var quickVerticalAlignStyles = {
|
|
|
1652
1652
|
var negativePaddingCss = `
|
|
1653
1653
|
.orion-builder-v2-negative-padding {
|
|
1654
1654
|
display: flow-root;
|
|
1655
|
+
isolation: isolate;
|
|
1655
1656
|
overflow: visible;
|
|
1657
|
+
position: relative;
|
|
1656
1658
|
}
|
|
1657
1659
|
|
|
1658
1660
|
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
@@ -1660,13 +1662,27 @@ var negativePaddingCss = `
|
|
|
1660
1662
|
overflow: hidden;
|
|
1661
1663
|
}
|
|
1662
1664
|
|
|
1665
|
+
.orion-builder-v2-negative-padding::before {
|
|
1666
|
+
background: var(--orion-negative-padding-background, transparent);
|
|
1667
|
+
content: "";
|
|
1668
|
+
inset: calc(-1 * var(--orion-negative-padding-top, 0px))
|
|
1669
|
+
calc(-1 * var(--orion-negative-padding-right, 0px))
|
|
1670
|
+
calc(-1 * var(--orion-negative-padding-bottom, 0px))
|
|
1671
|
+
calc(-1 * var(--orion-negative-padding-left, 0px));
|
|
1672
|
+
pointer-events: none;
|
|
1673
|
+
position: absolute;
|
|
1674
|
+
z-index: -1;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1663
1677
|
.orion-builder-v2-negative-padding > * {
|
|
1664
1678
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1665
1679
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
1666
1680
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1667
1681
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1668
1682
|
max-width: none !important;
|
|
1683
|
+
position: relative;
|
|
1669
1684
|
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1685
|
+
z-index: 1;
|
|
1670
1686
|
}
|
|
1671
1687
|
`;
|
|
1672
1688
|
var canvasSelectionCss = `
|
|
@@ -1883,6 +1899,8 @@ var negativePaddingSides = ["top", "bottom", "left", "right"];
|
|
|
1883
1899
|
var negativePaddingSideFromProperty = (property) => property.startsWith("padding-") ? property.replace(/^padding-/, "") : "";
|
|
1884
1900
|
var negativePaddingAttributeForSide = (side) => `data-orion-negative-padding-${side}`;
|
|
1885
1901
|
var negativePaddingVariableForSide = (side) => `--orion-negative-padding-${side}`;
|
|
1902
|
+
var negativePaddingBackgroundAttribute = "data-orion-negative-padding-background";
|
|
1903
|
+
var negativePaddingBackgroundVariable = "--orion-negative-padding-background";
|
|
1886
1904
|
var spacingTargetForComponent = (component) => {
|
|
1887
1905
|
const element = component?.getEl?.();
|
|
1888
1906
|
return element || null;
|
|
@@ -2478,6 +2496,15 @@ function GrapesPageEditor({
|
|
|
2478
2496
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
2479
2497
|
);
|
|
2480
2498
|
if (!hasOtherNegativePadding) {
|
|
2499
|
+
const negativePaddingBackground = firstString(
|
|
2500
|
+
attrs[negativePaddingBackgroundAttribute],
|
|
2501
|
+
selected.getStyle?.()[negativePaddingBackgroundVariable]
|
|
2502
|
+
);
|
|
2503
|
+
if (negativePaddingBackground) {
|
|
2504
|
+
selected.addStyle?.({ "background-color": negativePaddingBackground });
|
|
2505
|
+
}
|
|
2506
|
+
selected.removeStyle?.(negativePaddingBackgroundVariable);
|
|
2507
|
+
selected.removeAttributes?.(negativePaddingBackgroundAttribute);
|
|
2481
2508
|
selected.removeClass?.("orion-builder-v2-negative-padding");
|
|
2482
2509
|
}
|
|
2483
2510
|
}
|
|
@@ -2505,10 +2532,23 @@ function GrapesPageEditor({
|
|
|
2505
2532
|
if (isPadding) {
|
|
2506
2533
|
const side = negativePaddingSideFromProperty(property);
|
|
2507
2534
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2535
|
+
const currentStyle = selected.getStyle?.() || {};
|
|
2536
|
+
const backgroundColor = firstString(
|
|
2537
|
+
currentStyle[negativePaddingBackgroundVariable],
|
|
2538
|
+
selected.getAttributes?.()[negativePaddingBackgroundAttribute],
|
|
2539
|
+
getStyleColorValue(currentStyle, "background-color")
|
|
2540
|
+
);
|
|
2508
2541
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2509
2542
|
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2510
|
-
selected.addAttributes?.({
|
|
2543
|
+
selected.addAttributes?.({
|
|
2544
|
+
...backgroundColor ? { [negativePaddingBackgroundAttribute]: backgroundColor } : {},
|
|
2545
|
+
[negativePaddingAttributeForSide(side)]: negativeStyleValue
|
|
2546
|
+
});
|
|
2511
2547
|
selected.addStyle?.({
|
|
2548
|
+
...backgroundColor ? {
|
|
2549
|
+
[negativePaddingBackgroundVariable]: backgroundColor,
|
|
2550
|
+
"background-color": "transparent"
|
|
2551
|
+
} : {},
|
|
2512
2552
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
2513
2553
|
[property]: "0px"
|
|
2514
2554
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JC3UV74N.mjs";
|
|
4
|
+
import {
|
|
5
|
+
blocks_exports
|
|
6
|
+
} from "./chunk-JQAHXYAM.mjs";
|
|
7
|
+
import {
|
|
8
|
+
admin_app_exports
|
|
9
|
+
} from "./chunk-RKTIFEUY.mjs";
|
|
10
|
+
import "./chunk-W2UOCJDX.mjs";
|
|
4
11
|
import {
|
|
5
12
|
nextjs_exports
|
|
6
13
|
} from "./chunk-ZADL33R6.mjs";
|
|
7
14
|
import "./chunk-ZTXJG4K5.mjs";
|
|
8
15
|
import {
|
|
9
16
|
studio_pages_exports
|
|
10
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NGLIA2OE.mjs";
|
|
18
|
+
import "./chunk-OQSEJXC4.mjs";
|
|
11
19
|
import "./chunk-7ZMXZRBP.mjs";
|
|
12
20
|
import {
|
|
13
21
|
studio_exports
|
|
14
22
|
} from "./chunk-ADIIWIYL.mjs";
|
|
15
|
-
import {
|
|
16
|
-
blocks_exports
|
|
17
|
-
} from "./chunk-JQAHXYAM.mjs";
|
|
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,
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
pageStudioModuleManifest,
|
|
8
8
|
resolveBuilderThemeTokens,
|
|
9
9
|
toEditorInitialDoc
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NGLIA2OE.mjs";
|
|
11
|
+
import "../chunk-OQSEJXC4.mjs";
|
|
11
12
|
import {
|
|
12
13
|
createDefaultStudioDocument,
|
|
13
14
|
defaultBuilderThemeTokens,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
studioDocumentToLayout
|
|
16
17
|
} from "../chunk-7ZMXZRBP.mjs";
|
|
17
18
|
import "../chunk-ADIIWIYL.mjs";
|
|
18
|
-
import "../chunk-OQSEJXC4.mjs";
|
|
19
19
|
import "../chunk-6BWS3CLP.mjs";
|
|
20
20
|
export {
|
|
21
21
|
createDefaultStudioDocument,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
adminNavIcons
|
|
3
|
+
} from "./chunk-W2UOCJDX.mjs";
|
|
1
4
|
import {
|
|
2
5
|
SOCIAL_MEDIA_DEFAULT_ICON_BY_PLATFORM,
|
|
3
6
|
SOCIAL_MEDIA_ICON_OPTIONS,
|
|
4
7
|
SOCIAL_MEDIA_PLATFORMS,
|
|
5
8
|
SOCIAL_MEDIA_PLATFORM_LABELS
|
|
6
9
|
} from "./chunk-ZTXJG4K5.mjs";
|
|
7
|
-
import {
|
|
8
|
-
adminNavIcons
|
|
9
|
-
} from "./chunk-W2UOCJDX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__export,
|
|
12
12
|
__require
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sectionStyleDefaults
|
|
3
|
+
} from "./chunk-OQSEJXC4.mjs";
|
|
1
4
|
import {
|
|
2
5
|
createDefaultStudioDocument,
|
|
3
6
|
defaultBuilderThemeTokens,
|
|
@@ -11,9 +14,6 @@ import {
|
|
|
11
14
|
createEmptyStudioDocument,
|
|
12
15
|
validateStudioDocument
|
|
13
16
|
} from "./chunk-ADIIWIYL.mjs";
|
|
14
|
-
import {
|
|
15
|
-
sectionStyleDefaults
|
|
16
|
-
} from "./chunk-OQSEJXC4.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./chunk-6BWS3CLP.mjs";
|