@orion-studios/payload-studio 0.6.0-beta.172 → 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 +48 -1
- package/dist/builder-v2/client.mjs +48 -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,26 @@ 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;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1785
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1786
|
+
overflow: hidden;
|
|
1787
|
+
}
|
|
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;
|
|
1780
1799
|
}
|
|
1781
1800
|
|
|
1782
1801
|
.orion-builder-v2-negative-padding > * {
|
|
@@ -1785,7 +1804,9 @@ var negativePaddingCss = `
|
|
|
1785
1804
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1786
1805
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1787
1806
|
max-width: none !important;
|
|
1807
|
+
position: relative;
|
|
1788
1808
|
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1809
|
+
z-index: 1;
|
|
1789
1810
|
}
|
|
1790
1811
|
`;
|
|
1791
1812
|
var canvasSelectionCss = `
|
|
@@ -2002,6 +2023,8 @@ var negativePaddingSides = ["top", "bottom", "left", "right"];
|
|
|
2002
2023
|
var negativePaddingSideFromProperty = (property) => property.startsWith("padding-") ? property.replace(/^padding-/, "") : "";
|
|
2003
2024
|
var negativePaddingAttributeForSide = (side) => `data-orion-negative-padding-${side}`;
|
|
2004
2025
|
var negativePaddingVariableForSide = (side) => `--orion-negative-padding-${side}`;
|
|
2026
|
+
var negativePaddingBackgroundAttribute = "data-orion-negative-padding-background";
|
|
2027
|
+
var negativePaddingBackgroundVariable = "--orion-negative-padding-background";
|
|
2005
2028
|
var spacingTargetForComponent = (component) => {
|
|
2006
2029
|
const element = component?.getEl?.();
|
|
2007
2030
|
return element || null;
|
|
@@ -2591,11 +2614,21 @@ function GrapesPageEditor({
|
|
|
2591
2614
|
if (side) {
|
|
2592
2615
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2593
2616
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2617
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2594
2618
|
const attrs = selected.getAttributes?.() || {};
|
|
2595
2619
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2596
2620
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
2597
2621
|
);
|
|
2598
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);
|
|
2599
2632
|
selected.removeClass?.("orion-builder-v2-negative-padding");
|
|
2600
2633
|
}
|
|
2601
2634
|
}
|
|
@@ -2623,9 +2656,23 @@ function GrapesPageEditor({
|
|
|
2623
2656
|
if (isPadding) {
|
|
2624
2657
|
const side = negativePaddingSideFromProperty(property);
|
|
2625
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
|
+
);
|
|
2626
2665
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2627
|
-
selected.
|
|
2666
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2667
|
+
selected.addAttributes?.({
|
|
2668
|
+
...backgroundColor ? { [negativePaddingBackgroundAttribute]: backgroundColor } : {},
|
|
2669
|
+
[negativePaddingAttributeForSide(side)]: negativeStyleValue
|
|
2670
|
+
});
|
|
2628
2671
|
selected.addStyle?.({
|
|
2672
|
+
...backgroundColor ? {
|
|
2673
|
+
[negativePaddingBackgroundVariable]: backgroundColor,
|
|
2674
|
+
"background-color": "transparent"
|
|
2675
|
+
} : {},
|
|
2629
2676
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
2630
2677
|
[property]: "0px"
|
|
2631
2678
|
});
|
|
@@ -1652,7 +1652,26 @@ 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;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1661
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1662
|
+
overflow: hidden;
|
|
1663
|
+
}
|
|
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;
|
|
1656
1675
|
}
|
|
1657
1676
|
|
|
1658
1677
|
.orion-builder-v2-negative-padding > * {
|
|
@@ -1661,7 +1680,9 @@ var negativePaddingCss = `
|
|
|
1661
1680
|
margin-bottom: var(--orion-negative-padding-bottom, 0px) !important;
|
|
1662
1681
|
margin-left: var(--orion-negative-padding-left, 0px) !important;
|
|
1663
1682
|
max-width: none !important;
|
|
1683
|
+
position: relative;
|
|
1664
1684
|
width: calc(100% - var(--orion-negative-padding-left, 0px) - var(--orion-negative-padding-right, 0px)) !important;
|
|
1685
|
+
z-index: 1;
|
|
1665
1686
|
}
|
|
1666
1687
|
`;
|
|
1667
1688
|
var canvasSelectionCss = `
|
|
@@ -1878,6 +1899,8 @@ var negativePaddingSides = ["top", "bottom", "left", "right"];
|
|
|
1878
1899
|
var negativePaddingSideFromProperty = (property) => property.startsWith("padding-") ? property.replace(/^padding-/, "") : "";
|
|
1879
1900
|
var negativePaddingAttributeForSide = (side) => `data-orion-negative-padding-${side}`;
|
|
1880
1901
|
var negativePaddingVariableForSide = (side) => `--orion-negative-padding-${side}`;
|
|
1902
|
+
var negativePaddingBackgroundAttribute = "data-orion-negative-padding-background";
|
|
1903
|
+
var negativePaddingBackgroundVariable = "--orion-negative-padding-background";
|
|
1881
1904
|
var spacingTargetForComponent = (component) => {
|
|
1882
1905
|
const element = component?.getEl?.();
|
|
1883
1906
|
return element || null;
|
|
@@ -2467,11 +2490,21 @@ function GrapesPageEditor({
|
|
|
2467
2490
|
if (side) {
|
|
2468
2491
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2469
2492
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2493
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2470
2494
|
const attrs = selected.getAttributes?.() || {};
|
|
2471
2495
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2472
2496
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
2473
2497
|
);
|
|
2474
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);
|
|
2475
2508
|
selected.removeClass?.("orion-builder-v2-negative-padding");
|
|
2476
2509
|
}
|
|
2477
2510
|
}
|
|
@@ -2499,9 +2532,23 @@ function GrapesPageEditor({
|
|
|
2499
2532
|
if (isPadding) {
|
|
2500
2533
|
const side = negativePaddingSideFromProperty(property);
|
|
2501
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
|
+
);
|
|
2502
2541
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2503
|
-
selected.
|
|
2542
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2543
|
+
selected.addAttributes?.({
|
|
2544
|
+
...backgroundColor ? { [negativePaddingBackgroundAttribute]: backgroundColor } : {},
|
|
2545
|
+
[negativePaddingAttributeForSide(side)]: negativeStyleValue
|
|
2546
|
+
});
|
|
2504
2547
|
selected.addStyle?.({
|
|
2548
|
+
...backgroundColor ? {
|
|
2549
|
+
[negativePaddingBackgroundVariable]: backgroundColor,
|
|
2550
|
+
"background-color": "transparent"
|
|
2551
|
+
} : {},
|
|
2505
2552
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
2506
2553
|
[property]: "0px"
|
|
2507
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";
|