@orion-studios/payload-studio 0.6.0-beta.130 → 0.6.0-beta.131

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.
@@ -2644,12 +2644,17 @@ function GrapesPageEditor({
2644
2644
  };
2645
2645
  const applyQuickLayout = (layout) => {
2646
2646
  const nextStyle = quickLayoutStyles[layout];
2647
- applySelectedStyle({
2648
- ...nextStyle,
2649
- ...quickLayoutState.spacing ? { padding: quickSpacingStyles[quickLayoutState.spacing] } : {},
2650
- ...quickLayoutState.hidden ? { display: "none" } : {},
2651
- ...quickLayoutState.sticky ? { position: "sticky", top: "0px", "z-index": "10" } : {}
2652
- });
2647
+ applySelectedStyleAndAttributes(
2648
+ {
2649
+ ...nextStyle,
2650
+ ...quickLayoutState.spacing ? { padding: quickSpacingStyles[quickLayoutState.spacing] } : {},
2651
+ ...quickLayoutState.hidden ? { display: "none" } : {},
2652
+ ...quickLayoutState.sticky ? { position: "sticky", top: "0px", "z-index": "10" } : {}
2653
+ },
2654
+ {
2655
+ "data-orion-layout-mode": layout
2656
+ }
2657
+ );
2653
2658
  };
2654
2659
  const applyQuickSpacing = (spacing) => {
2655
2660
  applySelectedStyle({ padding: quickSpacingStyles[spacing] });
@@ -2520,12 +2520,17 @@ function GrapesPageEditor({
2520
2520
  };
2521
2521
  const applyQuickLayout = (layout) => {
2522
2522
  const nextStyle = quickLayoutStyles[layout];
2523
- applySelectedStyle({
2524
- ...nextStyle,
2525
- ...quickLayoutState.spacing ? { padding: quickSpacingStyles[quickLayoutState.spacing] } : {},
2526
- ...quickLayoutState.hidden ? { display: "none" } : {},
2527
- ...quickLayoutState.sticky ? { position: "sticky", top: "0px", "z-index": "10" } : {}
2528
- });
2523
+ applySelectedStyleAndAttributes(
2524
+ {
2525
+ ...nextStyle,
2526
+ ...quickLayoutState.spacing ? { padding: quickSpacingStyles[quickLayoutState.spacing] } : {},
2527
+ ...quickLayoutState.hidden ? { display: "none" } : {},
2528
+ ...quickLayoutState.sticky ? { position: "sticky", top: "0px", "z-index": "10" } : {}
2529
+ },
2530
+ {
2531
+ "data-orion-layout-mode": layout
2532
+ }
2533
+ );
2529
2534
  };
2530
2535
  const applyQuickSpacing = (spacing) => {
2531
2536
  applySelectedStyle({ padding: quickSpacingStyles[spacing] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.130",
3
+ "version": "0.6.0-beta.131",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",