@gem-sdk/pages 1.25.26 → 1.25.44

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.
@@ -14,7 +14,7 @@ var ImageToLayout = require('../components/image-to-layout/ImageToLayout.js');
14
14
  var AddSectionImageToLayout = require('../components/image-to-layout/AddSectionImageToLayout.js');
15
15
  var Toolbar = require('../components/builder/Toolbar.js');
16
16
 
17
- const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor })=>{
17
+ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor, hiddenToolbar })=>{
18
18
  const [loadSuccess, setLoadSuccess] = react.useState(false);
19
19
  const initState = react.useMemo(()=>({
20
20
  ROOT: {
@@ -60,14 +60,14 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
60
60
  isThemeSectionEditor: isThemeSectionEditor,
61
61
  children: [
62
62
  /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
63
- /*#__PURE__*/ jsxRuntime.jsx(Toolbar.default, {}),
63
+ !hiddenToolbar && /*#__PURE__*/ jsxRuntime.jsx(Toolbar.default, {}),
64
64
  /*#__PURE__*/ jsxRuntime.jsx(PopupManager.default, {}),
65
65
  loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
66
66
  className: "builder z-1 relative",
67
67
  children: [
68
- isThemeSectionEditor ? /*#__PURE__*/ jsxRuntime.jsx("div", {
68
+ !hiddenToolbar && (isThemeSectionEditor ? /*#__PURE__*/ jsxRuntime.jsx("div", {
69
69
  className: "h-[40px] bg-[#f4f4f4]"
70
- }) : /*#__PURE__*/ jsxRuntime.jsx(Header.default, {}),
70
+ }) : /*#__PURE__*/ jsxRuntime.jsx(Header.default, {})),
71
71
  /*#__PURE__*/ jsxRuntime.jsx("div", {
72
72
  id: "storefront",
73
73
  className: isThemeSectionEditor ? 'theme-section-editor' : '',
@@ -88,7 +88,7 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
88
88
  /*#__PURE__*/ jsxRuntime.jsx("div", {
89
89
  id: "visual-content"
90
90
  }),
91
- !isThemeSectionEditor && /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
91
+ !isThemeSectionEditor && !hiddenToolbar && /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
92
92
  ]
93
93
  })
94
94
  ]
@@ -12,7 +12,7 @@ import ImageToLayout from '../components/image-to-layout/ImageToLayout.js';
12
12
  import AddSectionImageToLayout from '../components/image-to-layout/AddSectionImageToLayout.js';
13
13
  import Toolbar from '../components/builder/Toolbar.js';
14
14
 
15
- const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor })=>{
15
+ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor, hiddenToolbar })=>{
16
16
  const [loadSuccess, setLoadSuccess] = useState(false);
17
17
  const initState = useMemo(()=>({
18
18
  ROOT: {
@@ -58,14 +58,14 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
58
58
  isThemeSectionEditor: isThemeSectionEditor,
59
59
  children: [
60
60
  /*#__PURE__*/ jsx(Toolbox, {}),
61
- /*#__PURE__*/ jsx(Toolbar, {}),
61
+ !hiddenToolbar && /*#__PURE__*/ jsx(Toolbar, {}),
62
62
  /*#__PURE__*/ jsx(PopupManager, {}),
63
63
  loadSuccess && /*#__PURE__*/ jsxs("div", {
64
64
  className: "builder z-1 relative",
65
65
  children: [
66
- isThemeSectionEditor ? /*#__PURE__*/ jsx("div", {
66
+ !hiddenToolbar && (isThemeSectionEditor ? /*#__PURE__*/ jsx("div", {
67
67
  className: "h-[40px] bg-[#f4f4f4]"
68
- }) : /*#__PURE__*/ jsx(Header, {}),
68
+ }) : /*#__PURE__*/ jsx(Header, {})),
69
69
  /*#__PURE__*/ jsx("div", {
70
70
  id: "storefront",
71
71
  className: isThemeSectionEditor ? 'theme-section-editor' : '',
@@ -86,7 +86,7 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
86
86
  /*#__PURE__*/ jsx("div", {
87
87
  id: "visual-content"
88
88
  }),
89
- !isThemeSectionEditor && /*#__PURE__*/ jsx(Footer, {})
89
+ !isThemeSectionEditor && !hiddenToolbar && /*#__PURE__*/ jsx(Footer, {})
90
90
  ]
91
91
  })
92
92
  ]
@@ -147,6 +147,7 @@ type BuilderPageProps = {
147
147
  pageType: ShopType.PublishedThemePageType;
148
148
  editorImageToLayout?: boolean;
149
149
  isThemeSectionEditor?: boolean;
150
+ hiddenToolbar?: boolean;
150
151
  };
151
152
  declare const BuilderPage: React.FC<BuilderPageProps>;
152
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.25.26",
3
+ "version": "1.25.44",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "next-seo": "^6.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "1.25.26",
28
+ "@gem-sdk/core": "1.25.38",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.25.0",
30
30
  "@gem-sdk/plugin-quick-view": "1.25.0",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.25.0"