@orion-studios/payload-studio 0.5.0-beta.101 → 0.5.0-beta.102

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,24 +1,24 @@
1
+ import {
2
+ admin_exports
3
+ } from "./chunk-74XFAVXU.mjs";
1
4
  import {
2
5
  admin_app_exports
3
6
  } from "./chunk-XVH5SCBD.mjs";
4
7
  import {
5
- admin_exports
6
- } from "./chunk-74XFAVXU.mjs";
8
+ blocks_exports
9
+ } from "./chunk-5MBN5YVW.mjs";
7
10
  import {
8
11
  nextjs_exports
9
12
  } from "./chunk-BET2YLAS.mjs";
10
13
  import "./chunk-ZTXJG4K5.mjs";
11
- import {
12
- blocks_exports
13
- } from "./chunk-5MBN5YVW.mjs";
14
14
  import {
15
15
  studio_exports
16
16
  } from "./chunk-ADIIWIYL.mjs";
17
17
  import {
18
18
  studio_pages_exports
19
- } from "./chunk-BWTH5HKD.mjs";
20
- import "./chunk-PF3EBZXF.mjs";
19
+ } from "./chunk-BN3GGCI5.mjs";
21
20
  import "./chunk-WY7RQGSN.mjs";
21
+ import "./chunk-PF3EBZXF.mjs";
22
22
  import "./chunk-6BWS3CLP.mjs";
23
23
  export {
24
24
  admin_exports as admin,
@@ -25,6 +25,9 @@ export type BuilderRenderWithSectionShell = (
25
25
  },
26
26
  className: string,
27
27
  content: ReactNode,
28
+ options?: {
29
+ inheritProjectStyles?: boolean
30
+ },
28
31
  ) => ReactNode
29
32
 
30
33
  export type BuilderInlineTextComponentProps = {
@@ -25,6 +25,9 @@ export type BuilderRenderWithSectionShell = (
25
25
  },
26
26
  className: string,
27
27
  content: ReactNode,
28
+ options?: {
29
+ inheritProjectStyles?: boolean
30
+ },
28
31
  ) => ReactNode
29
32
 
30
33
  export type BuilderInlineTextComponentProps = {
@@ -4693,7 +4693,8 @@ function BuilderPageEditor({
4693
4693
  "--orion-studio-surface-subtle": subtleSurface
4694
4694
  };
4695
4695
  }, [resolvedThemeTokens]);
4696
- const renderWithSectionShell = (block, className, content) => {
4696
+ const renderWithSectionShell = (block, className, content, options) => {
4697
+ const inheritProjectStyles = options?.inheritProjectStyles === true;
4697
4698
  const shell = sectionStyleFromBlock(block, pageDefaults);
4698
4699
  const blockSettings = isRecord6(block.settings) ? block.settings : {};
4699
4700
  const blockTypography = isRecord6(blockSettings.typography) ? blockSettings.typography : {};
@@ -4718,10 +4719,12 @@ function BuilderPageEditor({
4718
4719
  className: shell.contentClass,
4719
4720
  style: {
4720
4721
  ...shell.contentStyle,
4721
- "--orion-builder-heading-align": headingAlign,
4722
- "--orion-builder-heading-color": headingColor,
4723
- color: bodyColor,
4724
- ...typographyStyle
4722
+ ...inheritProjectStyles ? {} : {
4723
+ "--orion-builder-heading-align": headingAlign,
4724
+ "--orion-builder-heading-color": headingColor,
4725
+ color: bodyColor,
4726
+ ...typographyStyle
4727
+ }
4725
4728
  },
4726
4729
  children: content
4727
4730
  }
@@ -4573,7 +4573,8 @@ function BuilderPageEditor({
4573
4573
  "--orion-studio-surface-subtle": subtleSurface
4574
4574
  };
4575
4575
  }, [resolvedThemeTokens]);
4576
- const renderWithSectionShell = (block, className, content) => {
4576
+ const renderWithSectionShell = (block, className, content, options) => {
4577
+ const inheritProjectStyles = options?.inheritProjectStyles === true;
4577
4578
  const shell = sectionStyleFromBlock(block, pageDefaults);
4578
4579
  const blockSettings = isRecord6(block.settings) ? block.settings : {};
4579
4580
  const blockTypography = isRecord6(blockSettings.typography) ? blockSettings.typography : {};
@@ -4598,10 +4599,12 @@ function BuilderPageEditor({
4598
4599
  className: shell.contentClass,
4599
4600
  style: {
4600
4601
  ...shell.contentStyle,
4601
- "--orion-builder-heading-align": headingAlign,
4602
- "--orion-builder-heading-color": headingColor,
4603
- color: bodyColor,
4604
- ...typographyStyle
4602
+ ...inheritProjectStyles ? {} : {
4603
+ "--orion-builder-heading-align": headingAlign,
4604
+ "--orion-builder-heading-color": headingColor,
4605
+ color: bodyColor,
4606
+ ...typographyStyle
4607
+ }
4605
4608
  },
4606
4609
  children: content
4607
4610
  }
@@ -4,14 +4,14 @@ import {
4
4
  pagePaletteGroups,
5
5
  pageStudioModuleManifest,
6
6
  resolveBuilderThemeTokens
7
- } from "../chunk-BWTH5HKD.mjs";
7
+ } from "../chunk-BN3GGCI5.mjs";
8
+ import "../chunk-WY7RQGSN.mjs";
8
9
  import {
9
10
  createDefaultStudioDocument,
10
11
  defaultBuilderThemeTokens,
11
12
  layoutToStudioDocument,
12
13
  studioDocumentToLayout
13
14
  } from "../chunk-PF3EBZXF.mjs";
14
- import "../chunk-WY7RQGSN.mjs";
15
15
  import "../chunk-6BWS3CLP.mjs";
16
16
  export {
17
17
  createDefaultStudioDocument,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.5.0-beta.101",
3
+ "version": "0.5.0-beta.102",
4
4
  "description": "Unified Payload CMS toolkit for Orion Studios",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -1,3 +1,6 @@
1
+ import {
2
+ sectionStyleDefaults
3
+ } from "./chunk-WY7RQGSN.mjs";
1
4
  import {
2
5
  createDefaultStudioDocument,
3
6
  defaultBuilderThemeTokens,
@@ -5,9 +8,6 @@ import {
5
8
  migrateBlockToSettingsV2,
6
9
  studioDocumentToLayout
7
10
  } from "./chunk-PF3EBZXF.mjs";
8
- import {
9
- sectionStyleDefaults
10
- } from "./chunk-WY7RQGSN.mjs";
11
11
  import {
12
12
  __export
13
13
  } from "./chunk-6BWS3CLP.mjs";