@gem-sdk/pages 1.58.0-staging.31 → 1.58.0-staging.34
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.
|
@@ -38,8 +38,13 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
38
38
|
}, [
|
|
39
39
|
handleClickOutside
|
|
40
40
|
]);
|
|
41
|
+
react.useEffect(()=>{
|
|
42
|
+
setHoverOption(null);
|
|
43
|
+
}, [
|
|
44
|
+
selectType
|
|
45
|
+
]);
|
|
41
46
|
const isShowOverlay = react.useMemo(()=>{
|
|
42
|
-
return hoverOption !== 'ELEMENT' && (selectType === 'PAGE' || selectType === 'ELEMENT' && hoverOption === 'PAGE')
|
|
47
|
+
return hoverOption !== 'ELEMENT' && (selectType === 'PAGE' || selectType === 'ELEMENT' && hoverOption === 'PAGE');
|
|
43
48
|
}, [
|
|
44
49
|
hoverOption,
|
|
45
50
|
selectType
|
|
@@ -88,7 +93,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
88
93
|
className: "gp-grow",
|
|
89
94
|
children: title
|
|
90
95
|
}),
|
|
91
|
-
|
|
96
|
+
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
92
97
|
className: "gp-w-[21px]",
|
|
93
98
|
children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
94
99
|
width: "16",
|
|
@@ -106,7 +111,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
106
111
|
})
|
|
107
112
|
]
|
|
108
113
|
}),
|
|
109
|
-
openDropdown &&
|
|
114
|
+
openDropdown && /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
110
115
|
ref: popupRef,
|
|
111
116
|
className: "gp-p-2 gp-flex gp-flex-col gp-absolute gp-top-[calc(100%_+_4px)] gp-w-[280px] gp-bg-[#151515] gp-rounded-xl gp-text-white",
|
|
112
117
|
children: [
|
|
@@ -34,8 +34,13 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
34
34
|
}, [
|
|
35
35
|
handleClickOutside
|
|
36
36
|
]);
|
|
37
|
+
useEffect(()=>{
|
|
38
|
+
setHoverOption(null);
|
|
39
|
+
}, [
|
|
40
|
+
selectType
|
|
41
|
+
]);
|
|
37
42
|
const isShowOverlay = useMemo(()=>{
|
|
38
|
-
return hoverOption !== 'ELEMENT' && (selectType === 'PAGE' || selectType === 'ELEMENT' && hoverOption === 'PAGE')
|
|
43
|
+
return hoverOption !== 'ELEMENT' && (selectType === 'PAGE' || selectType === 'ELEMENT' && hoverOption === 'PAGE');
|
|
39
44
|
}, [
|
|
40
45
|
hoverOption,
|
|
41
46
|
selectType
|
|
@@ -84,7 +89,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
84
89
|
className: "gp-grow",
|
|
85
90
|
children: title
|
|
86
91
|
}),
|
|
87
|
-
|
|
92
|
+
/*#__PURE__*/ jsx("div", {
|
|
88
93
|
className: "gp-w-[21px]",
|
|
89
94
|
children: /*#__PURE__*/ jsx("svg", {
|
|
90
95
|
width: "16",
|
|
@@ -102,7 +107,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
102
107
|
})
|
|
103
108
|
]
|
|
104
109
|
}),
|
|
105
|
-
openDropdown &&
|
|
110
|
+
openDropdown && /*#__PURE__*/ jsxs("div", {
|
|
106
111
|
ref: popupRef,
|
|
107
112
|
className: "gp-p-2 gp-flex gp-flex-col gp-absolute gp-top-[calc(100%_+_4px)] gp-w-[280px] gp-bg-[#151515] gp-rounded-xl gp-text-white",
|
|
108
113
|
children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "1.58.0-staging.
|
|
3
|
+
"version": "1.58.0-staging.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"next": "latest"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "1.58.0-staging.
|
|
29
|
+
"@gem-sdk/core": "1.58.0-staging.34",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "1.58.0-staging.25",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "1.58.0-staging.25",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "1.58.0-staging.25"
|