@gem-sdk/pages 1.13.36 → 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.jsx("span", {
52
+ children: /*#__PURE__*/ jsxRuntime.jsxs("span", {
53
53
  className: "text-ellipsis whitespace-nowrap",
54
- children: item?.settings?.name || 'Popup Name'
54
+ children: [
55
+ item?.settings?.name || 'Popup Name',
56
+ " ",
57
+ index + 1
58
+ ]
55
59
  })
56
60
  }, item?.uid);
57
61
  })
@@ -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__*/ jsx("span", {
48
+ children: /*#__PURE__*/ jsxs("span", {
49
49
  className: "text-ellipsis whitespace-nowrap",
50
- children: item?.settings?.name || 'Popup Name'
50
+ children: [
51
+ item?.settings?.name || 'Popup Name',
52
+ " ",
53
+ index + 1
54
+ ]
51
55
  })
52
56
  }, item?.uid);
53
57
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.13.36",
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.24",
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": "*"