@gem-sdk/pages 1.23.0-staging.27 → 1.23.0-staging.270

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { BuilderComponentProvider, SectionProvider, BuilderProvider, Render, AddOn } from '@gem-sdk/core';
2
+ import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render, AddOn } from '@gem-sdk/core';
3
3
  import { NextSeo } from 'next-seo';
4
4
  import dynamic from 'next/dynamic';
5
5
  import Head from 'next/head';
@@ -36,23 +36,25 @@ const ProductDetailPage = ({ themeStyle, fontStyle, seo, product, components, bu
36
36
  })
37
37
  ]
38
38
  }),
39
- /*#__PURE__*/ jsx(BuilderComponentProvider, {
40
- components: components,
41
- children: /*#__PURE__*/ jsx(SectionProvider, {
42
- data: sectionData,
43
- children: /*#__PURE__*/ jsxs(ProductProvider, {
44
- product: product,
45
- children: [
46
- builderData && /*#__PURE__*/ jsx(BuilderProvider, {
47
- state: builderData,
48
- children: /*#__PURE__*/ jsx(Render, {
49
- uid: "ROOT"
39
+ /*#__PURE__*/ jsx(PageProvider, {
40
+ children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
41
+ components: components,
42
+ children: /*#__PURE__*/ jsx(SectionProvider, {
43
+ data: sectionData,
44
+ children: /*#__PURE__*/ jsxs(ProductProvider, {
45
+ product: product,
46
+ children: [
47
+ builderData && /*#__PURE__*/ jsx(BuilderProvider, {
48
+ state: builderData,
49
+ children: /*#__PURE__*/ jsx(Render, {
50
+ uid: "ROOT"
51
+ })
52
+ }),
53
+ /*#__PURE__*/ jsx(AddOn, {
54
+ name: "sticky-add-to-cart"
50
55
  })
51
- }),
52
- /*#__PURE__*/ jsx(AddOn, {
53
- name: "sticky-add-to-cart"
54
- })
55
- ]
56
+ ]
57
+ })
56
58
  })
57
59
  })
58
60
  })
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
2
+ import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
3
3
  import { NextSeo } from 'next-seo';
4
4
  import Head from 'next/head';
5
5
  import { useRouter } from 'next/router';
@@ -59,18 +59,20 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
59
59
  }, fontStyle))
60
60
  ]
61
61
  }),
62
- /*#__PURE__*/ jsx(BuilderComponentProvider, {
63
- components: components,
64
- children: /*#__PURE__*/ jsx(SectionProvider, {
65
- data: sectionData,
66
- children: builderData?.map((builder)=>/*#__PURE__*/ jsx(BuilderProvider, {
67
- state: builder.data,
68
- lazy: builder.lazy,
69
- priority: builder.priority,
70
- children: /*#__PURE__*/ jsx(Render, {
71
- uid: builder.uid
72
- })
73
- }, builder.uid))
62
+ /*#__PURE__*/ jsx(PageProvider, {
63
+ children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
64
+ components: components,
65
+ children: /*#__PURE__*/ jsx(SectionProvider, {
66
+ data: sectionData,
67
+ children: builderData?.map((builder)=>/*#__PURE__*/ jsx(BuilderProvider, {
68
+ state: builder.data,
69
+ lazy: builder.lazy,
70
+ priority: builder.priority,
71
+ children: /*#__PURE__*/ jsx(Render, {
72
+ uid: builder.uid
73
+ })
74
+ }, builder.uid))
75
+ })
74
76
  })
75
77
  })
76
78
  ]
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
2
+ import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
3
3
  import { NextSeo } from 'next-seo';
4
4
  import Head from 'next/head';
5
5
  import { useRouter } from 'next/router';
@@ -48,17 +48,19 @@ const StaticPage = ({ components, builderData, sectionData, seo, themeStyle, fon
48
48
  })
49
49
  ]
50
50
  }),
51
- /*#__PURE__*/ jsx(BuilderComponentProvider, {
52
- components: components,
53
- children: /*#__PURE__*/ jsx(SectionProvider, {
54
- data: sectionData,
55
- children: /*#__PURE__*/ jsx(Fragment, {
56
- children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
57
- state: builderData,
58
- children: /*#__PURE__*/ jsx(Render, {
59
- uid: "ROOT"
60
- })
61
- }, "body")
51
+ /*#__PURE__*/ jsx(PageProvider, {
52
+ children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
53
+ components: components,
54
+ children: /*#__PURE__*/ jsx(SectionProvider, {
55
+ data: sectionData,
56
+ children: /*#__PURE__*/ jsx(Fragment, {
57
+ children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
58
+ state: builderData,
59
+ children: /*#__PURE__*/ jsx(Render, {
60
+ uid: "ROOT"
61
+ })
62
+ }, "body")
63
+ })
62
64
  })
63
65
  })
64
66
  })
@@ -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.23.0-staging.27",
3
+ "version": "1.23.0-staging.270",
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.23.0-staging.26",
28
+ "@gem-sdk/core": "1.23.0-staging.270",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.23.0-staging.26",
30
30
  "@gem-sdk/plugin-quick-view": "1.23.0-staging.26",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.23.0-staging.26"