@gem-sdk/pages 1.25.13 → 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.
|
@@ -37,11 +37,6 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
37
37
|
const totalSection = core.useBuilderPreviewStore((state)=>state.state.ROOT.childrens?.length);
|
|
38
38
|
const [link, setLink] = react.useState('');
|
|
39
39
|
const [isInput, setIsInput] = react.useState(false);
|
|
40
|
-
const onClick = (index)=>{
|
|
41
|
-
if (index === 1) {
|
|
42
|
-
setIsInput(true);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
40
|
react.useEffect(()=>{
|
|
46
41
|
if (!isInput || totalSection === 0) {
|
|
47
42
|
setLink('');
|
|
@@ -82,11 +77,10 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
82
77
|
className: "absolute top-[-12px] bg-white px-[8px] text-[14px] font-normal text-[#9E9E9E]",
|
|
83
78
|
children: "Add section"
|
|
84
79
|
}),
|
|
85
|
-
ACTIONS_DATA.map((action
|
|
80
|
+
ACTIONS_DATA.map((action)=>{
|
|
86
81
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
87
82
|
className: `relative mx-1 h-[60px] w-[172px] cursor-pointer flex-col items-center justify-center rounded-[3px] bg-[#F4F4F4] hover:bg-black/10 ${isInput ? 'hidden' : 'flex'}`,
|
|
88
83
|
id: action.id,
|
|
89
|
-
onClick: ()=>onClick(index),
|
|
90
84
|
"aria-hidden": true,
|
|
91
85
|
children: [
|
|
92
86
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
@@ -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
|
]
|
|
@@ -33,11 +33,6 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
33
33
|
const totalSection = useBuilderPreviewStore((state)=>state.state.ROOT.childrens?.length);
|
|
34
34
|
const [link, setLink] = useState('');
|
|
35
35
|
const [isInput, setIsInput] = useState(false);
|
|
36
|
-
const onClick = (index)=>{
|
|
37
|
-
if (index === 1) {
|
|
38
|
-
setIsInput(true);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
36
|
useEffect(()=>{
|
|
42
37
|
if (!isInput || totalSection === 0) {
|
|
43
38
|
setLink('');
|
|
@@ -78,11 +73,10 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
78
73
|
className: "absolute top-[-12px] bg-white px-[8px] text-[14px] font-normal text-[#9E9E9E]",
|
|
79
74
|
children: "Add section"
|
|
80
75
|
}),
|
|
81
|
-
ACTIONS_DATA.map((action
|
|
76
|
+
ACTIONS_DATA.map((action)=>{
|
|
82
77
|
return /*#__PURE__*/ jsxs("div", {
|
|
83
78
|
className: `relative mx-1 h-[60px] w-[172px] cursor-pointer flex-col items-center justify-center rounded-[3px] bg-[#F4F4F4] hover:bg-black/10 ${isInput ? 'hidden' : 'flex'}`,
|
|
84
79
|
id: action.id,
|
|
85
|
-
onClick: ()=>onClick(index),
|
|
86
80
|
"aria-hidden": true,
|
|
87
81
|
children: [
|
|
88
82
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -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
|
]
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "1.25.
|
|
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.
|
|
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"
|