@onexapis/cli 1.1.48 → 1.1.49

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.
@@ -720,18 +720,22 @@ function PreviewApp() {
720
720
  {/* Inject theme CSS variables (Gap 2) */}
721
721
  {themeCSS && <style dangerouslySetInnerHTML={{ __html: themeCSS }} />}
722
722
 
723
- {/* Header — hidden if page config sets hideHeader: true */}
724
- {headerSections.length > 0 && !currentPage.config?.hideHeader && (
725
- <header>{headerSections.map(renderSection)}</header>
726
- )}
723
+ {/* Header — hidden if page config sets hideHeader (top-level or metadata) */}
724
+ {headerSections.length > 0 &&
725
+ !currentPage.config?.hideHeader &&
726
+ !currentPage.config?.metadata?.hideHeader && (
727
+ <header>{headerSections.map(renderSection)}</header>
728
+ )}
727
729
 
728
730
  {/* Page sections */}
729
731
  <main>{pageSections.map(renderSection)}</main>
730
732
 
731
- {/* Footer — hidden if page config sets hideFooter: true */}
732
- {footerSections.length > 0 && !currentPage.config?.hideFooter && (
733
- <footer>{footerSections.map(renderSection)}</footer>
734
- )}
733
+ {/* Footer — hidden if page config sets hideFooter (top-level or metadata) */}
734
+ {footerSections.length > 0 &&
735
+ !currentPage.config?.hideFooter &&
736
+ !currentPage.config?.metadata?.hideFooter && (
737
+ <footer>{footerSections.map(renderSection)}</footer>
738
+ )}
735
739
  </>
736
740
  );
737
741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onexapis/cli",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
4
4
  "description": "CLI tool for OneX theme development - scaffolds themes using @onexapis/core",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -16,8 +16,10 @@ export const forgotPasswordPageConfig: Omit<
16
16
  themeId: "my-simple",
17
17
  editable: true,
18
18
  published: true,
19
- hideHeader: true,
20
- hideFooter: true,
19
+ metadata: {
20
+ hideHeader: true,
21
+ hideFooter: true,
22
+ },
21
23
 
22
24
  seo: {
23
25
  title: "Forgot Password",
@@ -16,8 +16,10 @@ export const loginPageConfig: Omit<
16
16
  themeId: "my-simple",
17
17
  editable: true,
18
18
  published: true,
19
- hideHeader: true,
20
- hideFooter: true,
19
+ metadata: {
20
+ hideHeader: true,
21
+ hideFooter: true,
22
+ },
21
23
 
22
24
  seo: {
23
25
  title: "Sign In",
@@ -16,8 +16,10 @@ export const registerPageConfig: Omit<
16
16
  themeId: "my-simple",
17
17
  editable: true,
18
18
  published: true,
19
- hideHeader: true,
20
- hideFooter: true,
19
+ metadata: {
20
+ hideHeader: true,
21
+ hideFooter: true,
22
+ },
21
23
 
22
24
  seo: {
23
25
  title: "Create Account",
@@ -16,8 +16,10 @@ export const verifyCodePageConfig: Omit<
16
16
  themeId: "my-simple",
17
17
  editable: true,
18
18
  published: true,
19
- hideHeader: true,
20
- hideFooter: true,
19
+ metadata: {
20
+ hideHeader: true,
21
+ hideFooter: true,
22
+ },
21
23
 
22
24
  seo: {
23
25
  title: "Verify Your Account",