@gem-sdk/pages 1.25.3 → 1.25.5

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.
@@ -18,13 +18,13 @@ const Toolbox = ()=>{
18
18
  const matchMutate = core.useMatchMutate();
19
19
  const provider = core.useShopStore((s)=>s.provider);
20
20
  const changeStorefrontInfo = core.useShopStore((s)=>s.changeStorefrontInfo);
21
+ const setDynamicProduct = core.usePageStore((s)=>s.setDynamicProduct);
22
+ const setDynamicCollection = core.usePageStore((s)=>s.setDynamicCollection);
21
23
  const initState = core.useBuilderPreviewStore((s)=>s.initState);
22
24
  const state = core.useBuilderPreviewStore((s)=>s.state);
23
25
  const initNormalizeState = core.useBuilderPreviewStore((s)=>s.forceChangeState);
24
26
  const forceChangeItemProp = core.useBuilderPreviewStore((s)=>s.forceChangeItemProp);
25
27
  const changeItemPropByKey = core.useBuilderPreviewStore((s)=>s.changeItemPropByKey);
26
- const setDynamicProduct = core.useBuilderPreviewStore((s)=>s.setDynamicProduct);
27
- const setDynamicCollection = core.useBuilderPreviewStore((s)=>s.setDynamicCollection);
28
28
  const addItem = core.useBuilderPreviewStore((s)=>s.addItem);
29
29
  const moveItem = core.useBuilderPreviewStore((s)=>s.moveItem);
30
30
  const removeItem = core.useBuilderPreviewStore((s)=>s.removeItem);
@@ -50,48 +50,50 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
50
50
  })
51
51
  ]
52
52
  }),
53
- /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
54
- components: components,
55
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
56
- data: sectionData,
57
- children: /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderPreviewProvider, {
58
- state: initState,
59
- isThemeSectionEditor: isThemeSectionEditor,
60
- children: [
61
- /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
62
- /*#__PURE__*/ jsxRuntime.jsx(Toolbar.default, {}),
63
- /*#__PURE__*/ jsxRuntime.jsx(PopupManager.default, {}),
64
- loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
65
- className: "builder z-1 relative",
66
- children: [
67
- isThemeSectionEditor ? /*#__PURE__*/ jsxRuntime.jsx("div", {
68
- className: "h-[40px] bg-[#f4f4f4]"
69
- }) : /*#__PURE__*/ jsxRuntime.jsx(Header.default, {}),
70
- /*#__PURE__*/ jsxRuntime.jsx("div", {
71
- id: "storefront",
72
- className: isThemeSectionEditor ? 'theme-section-editor' : '',
73
- children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsxRuntime.jsx(CollectionGlobalProvider.default, {
74
- children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
53
+ /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
54
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
55
+ components: components,
56
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
57
+ data: sectionData,
58
+ children: /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderPreviewProvider, {
59
+ state: initState,
60
+ isThemeSectionEditor: isThemeSectionEditor,
61
+ children: [
62
+ /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
63
+ /*#__PURE__*/ jsxRuntime.jsx(Toolbar.default, {}),
64
+ /*#__PURE__*/ jsxRuntime.jsx(PopupManager.default, {}),
65
+ loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
66
+ className: "builder z-1 relative",
67
+ children: [
68
+ isThemeSectionEditor ? /*#__PURE__*/ jsxRuntime.jsx("div", {
69
+ className: "h-[40px] bg-[#f4f4f4]"
70
+ }) : /*#__PURE__*/ jsxRuntime.jsx(Header.default, {}),
71
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
72
+ id: "storefront",
73
+ className: isThemeSectionEditor ? 'theme-section-editor' : '',
74
+ children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsxRuntime.jsx(CollectionGlobalProvider.default, {
75
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
76
+ uid: "ROOT"
77
+ })
78
+ }) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
75
79
  uid: "ROOT"
76
80
  })
77
- }) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
78
- uid: "ROOT"
79
- })
80
- }),
81
- /*#__PURE__*/ jsxRuntime.jsx(ImageToLayout.default, {
82
- editorImageToLayout: editorImageToLayout || false
83
- }),
84
- /*#__PURE__*/ jsxRuntime.jsx(AddSectionImageToLayout.default, {
85
- editorImageToLayout: editorImageToLayout || false
86
- }),
87
- /*#__PURE__*/ jsxRuntime.jsx("div", {
88
- id: "visual-content"
89
- }),
90
- !isThemeSectionEditor && /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
91
- ]
92
- })
93
- ]
94
- }, "preview")
81
+ }),
82
+ /*#__PURE__*/ jsxRuntime.jsx(ImageToLayout.default, {
83
+ editorImageToLayout: editorImageToLayout || false
84
+ }),
85
+ /*#__PURE__*/ jsxRuntime.jsx(AddSectionImageToLayout.default, {
86
+ editorImageToLayout: editorImageToLayout || false
87
+ }),
88
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
89
+ id: "visual-content"
90
+ }),
91
+ !isThemeSectionEditor && /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
92
+ ]
93
+ })
94
+ ]
95
+ }, "preview")
96
+ })
95
97
  })
96
98
  })
97
99
  ]
@@ -40,16 +40,18 @@ const CollectionDetailPage = ({ seo, components, builderData, sectionData, theme
40
40
  })
41
41
  ]
42
42
  }),
43
- /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
44
- components: components,
45
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
46
- data: sectionData,
47
- children: /*#__PURE__*/ jsxRuntime.jsx(CollectionProvider, {
48
- collection: collection,
49
- children: builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
50
- state: builderData,
51
- children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
52
- uid: "ROOT"
43
+ /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
44
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
45
+ components: components,
46
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
47
+ data: sectionData,
48
+ children: /*#__PURE__*/ jsxRuntime.jsx(CollectionProvider, {
49
+ collection: collection,
50
+ children: builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
51
+ state: builderData,
52
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
53
+ uid: "ROOT"
54
+ })
53
55
  })
54
56
  })
55
57
  })
@@ -40,23 +40,25 @@ const ProductDetailPage = ({ themeStyle, fontStyle, seo, product, components, bu
40
40
  })
41
41
  ]
42
42
  }),
43
- /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
44
- components: components,
45
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
46
- data: sectionData,
47
- children: /*#__PURE__*/ jsxRuntime.jsxs(ProductProvider, {
48
- product: product,
49
- children: [
50
- builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
51
- state: builderData,
52
- children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
53
- uid: "ROOT"
43
+ /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
44
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
45
+ components: components,
46
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
47
+ data: sectionData,
48
+ children: /*#__PURE__*/ jsxRuntime.jsxs(ProductProvider, {
49
+ product: product,
50
+ children: [
51
+ builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
52
+ state: builderData,
53
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
54
+ uid: "ROOT"
55
+ })
56
+ }),
57
+ /*#__PURE__*/ jsxRuntime.jsx(core.AddOn, {
58
+ name: "sticky-add-to-cart"
54
59
  })
55
- }),
56
- /*#__PURE__*/ jsxRuntime.jsx(core.AddOn, {
57
- name: "sticky-add-to-cart"
58
- })
59
- ]
60
+ ]
61
+ })
60
62
  })
61
63
  })
62
64
  })
@@ -61,18 +61,20 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
61
61
  }, fontStyle))
62
62
  ]
63
63
  }),
64
- /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
65
- components: components,
66
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
67
- data: sectionData,
68
- children: builderData?.map((builder)=>/*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
69
- state: builder.data,
70
- lazy: builder.lazy,
71
- priority: builder.priority,
72
- children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
73
- uid: builder.uid
74
- })
75
- }, builder.uid))
64
+ /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
65
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
66
+ components: components,
67
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
68
+ data: sectionData,
69
+ children: builderData?.map((builder)=>/*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
70
+ state: builder.data,
71
+ lazy: builder.lazy,
72
+ priority: builder.priority,
73
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
74
+ uid: builder.uid
75
+ })
76
+ }, builder.uid))
77
+ })
76
78
  })
77
79
  })
78
80
  ]
@@ -52,17 +52,19 @@ const StaticPage = ({ components, builderData, sectionData, seo, themeStyle, fon
52
52
  })
53
53
  ]
54
54
  }),
55
- /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
56
- components: components,
57
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
58
- data: sectionData,
59
- children: /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
60
- children: builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
61
- state: builderData,
62
- children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
63
- uid: "ROOT"
64
- })
65
- }, "body")
55
+ /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
56
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
57
+ components: components,
58
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
59
+ data: sectionData,
60
+ children: /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
61
+ children: builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
62
+ state: builderData,
63
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
64
+ uid: "ROOT"
65
+ })
66
+ }, "body")
67
+ })
66
68
  })
67
69
  })
68
70
  })
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { useMatchMutate, useShopStore, useBuilderPreviewStore, useSectionStore, useModalStore } from '@gem-sdk/core';
2
+ import { useMatchMutate, useShopStore, usePageStore, useBuilderPreviewStore, useSectionStore, useModalStore } from '@gem-sdk/core';
3
3
  import { memo, useMemo, useCallback, useEffect } from 'react';
4
4
  import { getStorefrontApi } from '../../libs/get-storefront-api.js';
5
5
  import { createFontUrl } from '../../libs/google-fonts.js';
@@ -14,13 +14,13 @@ const Toolbox = ()=>{
14
14
  const matchMutate = useMatchMutate();
15
15
  const provider = useShopStore((s)=>s.provider);
16
16
  const changeStorefrontInfo = useShopStore((s)=>s.changeStorefrontInfo);
17
+ const setDynamicProduct = usePageStore((s)=>s.setDynamicProduct);
18
+ const setDynamicCollection = usePageStore((s)=>s.setDynamicCollection);
17
19
  const initState = useBuilderPreviewStore((s)=>s.initState);
18
20
  const state = useBuilderPreviewStore((s)=>s.state);
19
21
  const initNormalizeState = useBuilderPreviewStore((s)=>s.forceChangeState);
20
22
  const forceChangeItemProp = useBuilderPreviewStore((s)=>s.forceChangeItemProp);
21
23
  const changeItemPropByKey = useBuilderPreviewStore((s)=>s.changeItemPropByKey);
22
- const setDynamicProduct = useBuilderPreviewStore((s)=>s.setDynamicProduct);
23
- const setDynamicCollection = useBuilderPreviewStore((s)=>s.setDynamicCollection);
24
24
  const addItem = useBuilderPreviewStore((s)=>s.addItem);
25
25
  const moveItem = useBuilderPreviewStore((s)=>s.moveItem);
26
26
  const removeItem = useBuilderPreviewStore((s)=>s.removeItem);
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import { BuilderComponentProvider, SectionProvider, BuilderPreviewProvider, RenderPreview } from '@gem-sdk/core';
2
+ import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderPreviewProvider, RenderPreview } from '@gem-sdk/core';
3
3
  import { NextSeo } from 'next-seo';
4
4
  import Head from 'next/head';
5
5
  import { useState, useMemo, useEffect } from 'react';
@@ -48,48 +48,50 @@ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, page
48
48
  })
49
49
  ]
50
50
  }),
51
- /*#__PURE__*/ jsx(BuilderComponentProvider, {
52
- components: components,
53
- children: /*#__PURE__*/ jsx(SectionProvider, {
54
- data: sectionData,
55
- children: /*#__PURE__*/ jsxs(BuilderPreviewProvider, {
56
- state: initState,
57
- isThemeSectionEditor: isThemeSectionEditor,
58
- children: [
59
- /*#__PURE__*/ jsx(Toolbox, {}),
60
- /*#__PURE__*/ jsx(Toolbar, {}),
61
- /*#__PURE__*/ jsx(PopupManager, {}),
62
- loadSuccess && /*#__PURE__*/ jsxs("div", {
63
- className: "builder z-1 relative",
64
- children: [
65
- isThemeSectionEditor ? /*#__PURE__*/ jsx("div", {
66
- className: "h-[40px] bg-[#f4f4f4]"
67
- }) : /*#__PURE__*/ jsx(Header, {}),
68
- /*#__PURE__*/ jsx("div", {
69
- id: "storefront",
70
- className: isThemeSectionEditor ? 'theme-section-editor' : '',
71
- children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
72
- children: /*#__PURE__*/ jsx(RenderPreview, {
51
+ /*#__PURE__*/ jsx(PageProvider, {
52
+ children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
53
+ components: components,
54
+ children: /*#__PURE__*/ jsx(SectionProvider, {
55
+ data: sectionData,
56
+ children: /*#__PURE__*/ jsxs(BuilderPreviewProvider, {
57
+ state: initState,
58
+ isThemeSectionEditor: isThemeSectionEditor,
59
+ children: [
60
+ /*#__PURE__*/ jsx(Toolbox, {}),
61
+ /*#__PURE__*/ jsx(Toolbar, {}),
62
+ /*#__PURE__*/ jsx(PopupManager, {}),
63
+ loadSuccess && /*#__PURE__*/ jsxs("div", {
64
+ className: "builder z-1 relative",
65
+ children: [
66
+ isThemeSectionEditor ? /*#__PURE__*/ jsx("div", {
67
+ className: "h-[40px] bg-[#f4f4f4]"
68
+ }) : /*#__PURE__*/ jsx(Header, {}),
69
+ /*#__PURE__*/ jsx("div", {
70
+ id: "storefront",
71
+ className: isThemeSectionEditor ? 'theme-section-editor' : '',
72
+ children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
73
+ children: /*#__PURE__*/ jsx(RenderPreview, {
74
+ uid: "ROOT"
75
+ })
76
+ }) : /*#__PURE__*/ jsx(RenderPreview, {
73
77
  uid: "ROOT"
74
78
  })
75
- }) : /*#__PURE__*/ jsx(RenderPreview, {
76
- uid: "ROOT"
77
- })
78
- }),
79
- /*#__PURE__*/ jsx(ImageToLayout, {
80
- editorImageToLayout: editorImageToLayout || false
81
- }),
82
- /*#__PURE__*/ jsx(AddSectionImageToLayout, {
83
- editorImageToLayout: editorImageToLayout || false
84
- }),
85
- /*#__PURE__*/ jsx("div", {
86
- id: "visual-content"
87
- }),
88
- !isThemeSectionEditor && /*#__PURE__*/ jsx(Footer, {})
89
- ]
90
- })
91
- ]
92
- }, "preview")
79
+ }),
80
+ /*#__PURE__*/ jsx(ImageToLayout, {
81
+ editorImageToLayout: editorImageToLayout || false
82
+ }),
83
+ /*#__PURE__*/ jsx(AddSectionImageToLayout, {
84
+ editorImageToLayout: editorImageToLayout || false
85
+ }),
86
+ /*#__PURE__*/ jsx("div", {
87
+ id: "visual-content"
88
+ }),
89
+ !isThemeSectionEditor && /*#__PURE__*/ jsx(Footer, {})
90
+ ]
91
+ })
92
+ ]
93
+ }, "preview")
94
+ })
93
95
  })
94
96
  })
95
97
  ]
@@ -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 dynamic from 'next/dynamic';
5
5
  import Head from 'next/head';
@@ -36,16 +36,18 @@ const CollectionDetailPage = ({ seo, components, builderData, sectionData, theme
36
36
  })
37
37
  ]
38
38
  }),
39
- /*#__PURE__*/ jsx(BuilderComponentProvider, {
40
- components: components,
41
- children: /*#__PURE__*/ jsx(SectionProvider, {
42
- data: sectionData,
43
- children: /*#__PURE__*/ jsx(CollectionProvider, {
44
- collection: collection,
45
- children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
46
- state: builderData,
47
- children: /*#__PURE__*/ jsx(Render, {
48
- 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__*/ jsx(CollectionProvider, {
45
+ collection: collection,
46
+ children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
47
+ state: builderData,
48
+ children: /*#__PURE__*/ jsx(Render, {
49
+ uid: "ROOT"
50
+ })
49
51
  })
50
52
  })
51
53
  })
@@ -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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.25.3",
3
+ "version": "1.25.5",
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.0",
28
+ "@gem-sdk/core": "1.25.5",
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"