@gem-sdk/pages 1.8.27 → 1.8.31

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.
@@ -24,7 +24,6 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
24
24
  react.useEffect(()=>{
25
25
  setLoadSuccess(true);
26
26
  }, []);
27
- const WrapProvider = pageType === 'GP_COLLECTION' ? CollectionGlobalProvider.default : react.Fragment;
28
27
  return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
29
28
  children: [
30
29
  /*#__PURE__*/ jsxRuntime.jsx(nextSeo.NextSeo, {
@@ -48,65 +47,38 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
48
47
  })
49
48
  ]
50
49
  }),
51
- /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderComponentProvider, {
50
+ /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
52
51
  components: components,
53
- children: [
54
- /*#__PURE__*/ jsxRuntime.jsx(WrapProvider, {
55
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
56
- data: sectionData,
57
- children: /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderPreviewProvider, {
58
- state: initState,
52
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
53
+ data: sectionData,
54
+ children: /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderPreviewProvider, {
55
+ state: initState,
56
+ children: [
57
+ /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
58
+ /*#__PURE__*/ jsxRuntime.jsx(PopupManager.default, {}),
59
+ loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
60
+ className: "builder z-1 relative",
59
61
  children: [
60
- /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
61
- /*#__PURE__*/ jsxRuntime.jsx(PopupManager.default, {}),
62
- loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
63
- className: "builder z-1 relative",
64
- children: [
65
- /*#__PURE__*/ jsxRuntime.jsx(Header.default, {}),
66
- /*#__PURE__*/ jsxRuntime.jsx("div", {
67
- id: "storefront",
68
- children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
69
- uid: "ROOT"
70
- })
71
- }),
72
- /*#__PURE__*/ jsxRuntime.jsx("div", {
73
- id: "visual-content"
74
- }),
75
- /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
76
- ]
77
- })
78
- ]
79
- }, "preview")
80
- })
81
- }),
82
- /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
83
- data: sectionData,
84
- children: /*#__PURE__*/ jsxRuntime.jsxs(core.BuilderPreviewProvider, {
85
- state: initState,
86
- children: [
87
- /*#__PURE__*/ jsxRuntime.jsx(Toolbox.default, {}),
88
- loadSuccess && /*#__PURE__*/ jsxRuntime.jsxs("div", {
89
- className: "builder",
90
- children: [
91
- /*#__PURE__*/ jsxRuntime.jsx("div", {
92
- id: "storefront",
93
- children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsxRuntime.jsx(CollectionGlobalProvider.default, {
94
- children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
95
- uid: "ROOT"
96
- })
97
- }) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
62
+ /*#__PURE__*/ jsxRuntime.jsx(Header.default, {}),
63
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
64
+ id: "storefront",
65
+ children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsxRuntime.jsx(CollectionGlobalProvider.default, {
66
+ children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
98
67
  uid: "ROOT"
99
68
  })
100
- }),
101
- /*#__PURE__*/ jsxRuntime.jsx("div", {
102
- id: "visual-content"
69
+ }) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
70
+ uid: "ROOT"
103
71
  })
104
- ]
105
- })
106
- ]
107
- }, "preview")
108
- })
109
- ]
72
+ }),
73
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
74
+ id: "visual-content"
75
+ }),
76
+ /*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
77
+ ]
78
+ })
79
+ ]
80
+ }, "preview")
81
+ })
110
82
  })
111
83
  ]
112
84
  });
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { BuilderComponentProvider, SectionProvider, BuilderPreviewProvider, RenderPreview } from '@gem-sdk/core';
3
3
  import { NextSeo } from 'next-seo';
4
4
  import Head from 'next/head';
5
- import { useState, useEffect, Fragment as Fragment$1 } from 'react';
5
+ import { useState, useEffect } from 'react';
6
6
  import Toolbox from '../components/builder/Toolbox.js';
7
7
  import Header from '../components/Header.js';
8
8
  import Footer from '../components/Footer.js';
@@ -22,7 +22,6 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
22
22
  useEffect(()=>{
23
23
  setLoadSuccess(true);
24
24
  }, []);
25
- const WrapProvider = pageType === 'GP_COLLECTION' ? CollectionGlobalProvider : Fragment$1;
26
25
  return /*#__PURE__*/ jsxs(Fragment, {
27
26
  children: [
28
27
  /*#__PURE__*/ jsx(NextSeo, {
@@ -46,65 +45,38 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
46
45
  })
47
46
  ]
48
47
  }),
49
- /*#__PURE__*/ jsxs(BuilderComponentProvider, {
48
+ /*#__PURE__*/ jsx(BuilderComponentProvider, {
50
49
  components: components,
51
- children: [
52
- /*#__PURE__*/ jsx(WrapProvider, {
53
- children: /*#__PURE__*/ jsx(SectionProvider, {
54
- data: sectionData,
55
- children: /*#__PURE__*/ jsxs(BuilderPreviewProvider, {
56
- state: initState,
50
+ children: /*#__PURE__*/ jsx(SectionProvider, {
51
+ data: sectionData,
52
+ children: /*#__PURE__*/ jsxs(BuilderPreviewProvider, {
53
+ state: initState,
54
+ children: [
55
+ /*#__PURE__*/ jsx(Toolbox, {}),
56
+ /*#__PURE__*/ jsx(PopupManager, {}),
57
+ loadSuccess && /*#__PURE__*/ jsxs("div", {
58
+ className: "builder z-1 relative",
57
59
  children: [
58
- /*#__PURE__*/ jsx(Toolbox, {}),
59
- /*#__PURE__*/ jsx(PopupManager, {}),
60
- loadSuccess && /*#__PURE__*/ jsxs("div", {
61
- className: "builder z-1 relative",
62
- children: [
63
- /*#__PURE__*/ jsx(Header, {}),
64
- /*#__PURE__*/ jsx("div", {
65
- id: "storefront",
66
- children: /*#__PURE__*/ jsx(RenderPreview, {
67
- uid: "ROOT"
68
- })
69
- }),
70
- /*#__PURE__*/ jsx("div", {
71
- id: "visual-content"
72
- }),
73
- /*#__PURE__*/ jsx(Footer, {})
74
- ]
75
- })
76
- ]
77
- }, "preview")
78
- })
79
- }),
80
- /*#__PURE__*/ jsx(SectionProvider, {
81
- data: sectionData,
82
- children: /*#__PURE__*/ jsxs(BuilderPreviewProvider, {
83
- state: initState,
84
- children: [
85
- /*#__PURE__*/ jsx(Toolbox, {}),
86
- loadSuccess && /*#__PURE__*/ jsxs("div", {
87
- className: "builder",
88
- children: [
89
- /*#__PURE__*/ jsx("div", {
90
- id: "storefront",
91
- children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
92
- children: /*#__PURE__*/ jsx(RenderPreview, {
93
- uid: "ROOT"
94
- })
95
- }) : /*#__PURE__*/ jsx(RenderPreview, {
60
+ /*#__PURE__*/ jsx(Header, {}),
61
+ /*#__PURE__*/ jsx("div", {
62
+ id: "storefront",
63
+ children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
64
+ children: /*#__PURE__*/ jsx(RenderPreview, {
96
65
  uid: "ROOT"
97
66
  })
98
- }),
99
- /*#__PURE__*/ jsx("div", {
100
- id: "visual-content"
67
+ }) : /*#__PURE__*/ jsx(RenderPreview, {
68
+ uid: "ROOT"
101
69
  })
102
- ]
103
- })
104
- ]
105
- }, "preview")
106
- })
107
- ]
70
+ }),
71
+ /*#__PURE__*/ jsx("div", {
72
+ id: "visual-content"
73
+ }),
74
+ /*#__PURE__*/ jsx(Footer, {})
75
+ ]
76
+ })
77
+ ]
78
+ }, "preview")
79
+ })
108
80
  })
109
81
  ]
110
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.8.27",
3
+ "version": "1.8.31",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",