@gem-sdk/pages 1.13.35 → 1.13.38
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.
|
@@ -34,7 +34,7 @@ const PopupManager = ()=>{
|
|
|
34
34
|
]);
|
|
35
35
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
36
36
|
className: "pointer-events-none fixed inset-y-0 right-0 z-10 flex w-10 flex-col items-center justify-center gap-1 overflow-y-auto overflow-x-hidden text-sm",
|
|
37
|
-
children: popups?.map((item)=>{
|
|
37
|
+
children: popups?.map((item, index)=>{
|
|
38
38
|
const display = item?.advanced?.d;
|
|
39
39
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
40
40
|
className: core.cls('pointer-events-auto w-full shrink cursor-pointer select-none items-center justify-center whitespace-nowrap py-2 text-white [writing-mode:vertical-lr]', {
|
|
@@ -49,9 +49,13 @@ const PopupManager = ()=>{
|
|
|
49
49
|
'--d-tablet': display?.tablet ? 'inline-flex' : 'none',
|
|
50
50
|
'--d-mobile': display?.mobile ? 'inline-flex' : 'none'
|
|
51
51
|
},
|
|
52
|
-
children: /*#__PURE__*/ jsxRuntime.
|
|
52
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("span", {
|
|
53
53
|
className: "text-ellipsis whitespace-nowrap",
|
|
54
|
-
children:
|
|
54
|
+
children: [
|
|
55
|
+
item?.settings?.name || 'Popup Name',
|
|
56
|
+
" ",
|
|
57
|
+
index + 1
|
|
58
|
+
]
|
|
55
59
|
})
|
|
56
60
|
}, item?.uid);
|
|
57
61
|
})
|
|
@@ -257,7 +257,7 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
257
257
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
258
258
|
"aria-disabled": !link,
|
|
259
259
|
id: "gp-img-to-layout-bottom-generate-btn",
|
|
260
|
-
className: `generate-image-to-layout-btn
|
|
260
|
+
className: `generate-image-to-layout-btn flex h-[36px] w-[86px] cursor-pointer items-center justify-center rounded-[3px] text-sm font-medium text-white ${!link ? 'btn-disable cursor-not-allowed' : ''}`,
|
|
261
261
|
children: "Generate"
|
|
262
262
|
})
|
|
263
263
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useBuilderPreviewStore, useModalStore, cls } from '@gem-sdk/core';
|
|
3
3
|
import { memo, useMemo, useCallback, useEffect } from 'react';
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ const PopupManager = ()=>{
|
|
|
30
30
|
]);
|
|
31
31
|
return /*#__PURE__*/ jsx("div", {
|
|
32
32
|
className: "pointer-events-none fixed inset-y-0 right-0 z-10 flex w-10 flex-col items-center justify-center gap-1 overflow-y-auto overflow-x-hidden text-sm",
|
|
33
|
-
children: popups?.map((item)=>{
|
|
33
|
+
children: popups?.map((item, index)=>{
|
|
34
34
|
const display = item?.advanced?.d;
|
|
35
35
|
return /*#__PURE__*/ jsx("div", {
|
|
36
36
|
className: cls('pointer-events-auto w-full shrink cursor-pointer select-none items-center justify-center whitespace-nowrap py-2 text-white [writing-mode:vertical-lr]', {
|
|
@@ -45,9 +45,13 @@ const PopupManager = ()=>{
|
|
|
45
45
|
'--d-tablet': display?.tablet ? 'inline-flex' : 'none',
|
|
46
46
|
'--d-mobile': display?.mobile ? 'inline-flex' : 'none'
|
|
47
47
|
},
|
|
48
|
-
children: /*#__PURE__*/
|
|
48
|
+
children: /*#__PURE__*/ jsxs("span", {
|
|
49
49
|
className: "text-ellipsis whitespace-nowrap",
|
|
50
|
-
children:
|
|
50
|
+
children: [
|
|
51
|
+
item?.settings?.name || 'Popup Name',
|
|
52
|
+
" ",
|
|
53
|
+
index + 1
|
|
54
|
+
]
|
|
51
55
|
})
|
|
52
56
|
}, item?.uid);
|
|
53
57
|
})
|
|
@@ -253,7 +253,7 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
|
253
253
|
/*#__PURE__*/ jsx("div", {
|
|
254
254
|
"aria-disabled": !link,
|
|
255
255
|
id: "gp-img-to-layout-bottom-generate-btn",
|
|
256
|
-
className: `generate-image-to-layout-btn
|
|
256
|
+
className: `generate-image-to-layout-btn flex h-[36px] w-[86px] cursor-pointer items-center justify-center rounded-[3px] text-sm font-medium text-white ${!link ? 'btn-disable cursor-not-allowed' : ''}`,
|
|
257
257
|
children: "Generate"
|
|
258
258
|
})
|
|
259
259
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.38",
|
|
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.13.
|
|
28
|
+
"@gem-sdk/core": "1.13.38",
|
|
29
29
|
"@gem-sdk/plugin-cookie-bar": "*",
|
|
30
30
|
"@gem-sdk/plugin-quick-view": "*",
|
|
31
31
|
"@gem-sdk/plugin-sticky-add-to-cart": "*"
|