@gem-sdk/pages 1.25.13 → 1.25.26

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, index)=>{
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", {
@@ -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, index)=>{
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", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.25.13",
3
+ "version": "1.25.26",
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.11",
28
+ "@gem-sdk/core": "1.25.26",
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"