@orion-studios/payload-studio 0.5.0-beta.6 → 0.5.0-beta.7

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/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  admin_exports
3
3
  } from "./chunk-J7W5EE3B.mjs";
4
- import {
5
- studio_exports
6
- } from "./chunk-N67KVM2S.mjs";
7
4
  import {
8
5
  admin_app_exports
9
6
  } from "./chunk-AAOHJDNS.mjs";
7
+ import {
8
+ blocks_exports
9
+ } from "./chunk-PC5622T7.mjs";
10
+ import {
11
+ studio_exports
12
+ } from "./chunk-N67KVM2S.mjs";
10
13
  import {
11
14
  studio_pages_exports
12
15
  } from "./chunk-UJFU323N.mjs";
16
+ import "./chunk-ETRRXURT.mjs";
13
17
  import {
14
18
  nextjs_exports
15
19
  } from "./chunk-ZLLNO5FM.mjs";
16
- import {
17
- blocks_exports
18
- } from "./chunk-PC5622T7.mjs";
19
- import "./chunk-ETRRXURT.mjs";
20
20
  import "./chunk-6BWS3CLP.mjs";
21
21
  export {
22
22
  admin_exports as admin,
@@ -590,7 +590,7 @@ function getDefaultBlock(blockType) {
590
590
  switch (blockType) {
591
591
  case "hero":
592
592
  return withSectionStyleDefaults2({
593
- backgroundColor: "#124a37",
593
+ backgroundColor: "",
594
594
  blockType: "hero",
595
595
  headline: "New Hero Section",
596
596
  kicker: "Optional kicker",
@@ -755,7 +755,7 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
755
755
  paddingBottom: sectionPaddingMap[sectionPaddingY],
756
756
  paddingTop: sectionPaddingMap[sectionPaddingY]
757
757
  },
758
- sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : {}
758
+ sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : block.blockType === "hero" ? { background: "transparent" } : {}
759
759
  };
760
760
  };
761
761
  function getRelationID(value) {
@@ -562,7 +562,7 @@ function getDefaultBlock(blockType) {
562
562
  switch (blockType) {
563
563
  case "hero":
564
564
  return withSectionStyleDefaults2({
565
- backgroundColor: "#124a37",
565
+ backgroundColor: "",
566
566
  blockType: "hero",
567
567
  headline: "New Hero Section",
568
568
  kicker: "Optional kicker",
@@ -727,7 +727,7 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
727
727
  paddingBottom: sectionPaddingMap[sectionPaddingY],
728
728
  paddingTop: sectionPaddingMap[sectionPaddingY]
729
729
  },
730
- sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : {}
730
+ sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : block.blockType === "hero" ? { background: "transparent" } : {}
731
731
  };
732
732
  };
733
733
  function getRelationID(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.5.0-beta.6",
3
+ "version": "0.5.0-beta.7",
4
4
  "description": "Unified Payload CMS toolkit for Orion Studios",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {