@gem-sdk/pages 1.8.30 → 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.
- package/dist/cjs/pages/builder.js +27 -30
- package/dist/esm/pages/builder.js +28 -31
- package/package.json +1 -1
|
@@ -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, {
|
|
@@ -50,37 +49,35 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
|
|
|
50
49
|
}),
|
|
51
50
|
/*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
|
|
52
51
|
components: components,
|
|
53
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
children:
|
|
68
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
|
|
69
|
-
uid: "ROOT"
|
|
70
|
-
})
|
|
71
|
-
}) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
|
|
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",
|
|
61
|
+
children: [
|
|
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, {
|
|
72
67
|
uid: "ROOT"
|
|
73
68
|
})
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
}) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
|
|
70
|
+
uid: "ROOT"
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
74
|
+
id: "visual-content"
|
|
75
|
+
}),
|
|
76
|
+
/*#__PURE__*/ jsxRuntime.jsx(Footer.default, {})
|
|
77
|
+
]
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
}, "preview")
|
|
84
81
|
})
|
|
85
82
|
})
|
|
86
83
|
]
|
|
@@ -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
|
|
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, {
|
|
@@ -48,37 +47,35 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
|
|
|
48
47
|
}),
|
|
49
48
|
/*#__PURE__*/ jsx(BuilderComponentProvider, {
|
|
50
49
|
components: components,
|
|
51
|
-
children: /*#__PURE__*/ jsx(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
children:
|
|
66
|
-
children: /*#__PURE__*/ jsx(RenderPreview, {
|
|
67
|
-
uid: "ROOT"
|
|
68
|
-
})
|
|
69
|
-
}) : /*#__PURE__*/ jsx(RenderPreview, {
|
|
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",
|
|
59
|
+
children: [
|
|
60
|
+
/*#__PURE__*/ jsx(Header, {}),
|
|
61
|
+
/*#__PURE__*/ jsx("div", {
|
|
62
|
+
id: "storefront",
|
|
63
|
+
children: pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
|
|
64
|
+
children: /*#__PURE__*/ jsx(RenderPreview, {
|
|
70
65
|
uid: "ROOT"
|
|
71
66
|
})
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
}) : /*#__PURE__*/ jsx(RenderPreview, {
|
|
68
|
+
uid: "ROOT"
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ jsx("div", {
|
|
72
|
+
id: "visual-content"
|
|
73
|
+
}),
|
|
74
|
+
/*#__PURE__*/ jsx(Footer, {})
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
}, "preview")
|
|
82
79
|
})
|
|
83
80
|
})
|
|
84
81
|
]
|