@gem-sdk/pages 2.0.0-dev.696 → 2.0.0-dev.699
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.
|
@@ -301,9 +301,9 @@ const Toolbox = ()=>{
|
|
|
301
301
|
changeShopPlan
|
|
302
302
|
]);
|
|
303
303
|
const onUpdatePriceWithCurrency = react.useCallback((e)=>{
|
|
304
|
-
const
|
|
305
|
-
if (!
|
|
306
|
-
updatePriceWithCurrency(
|
|
304
|
+
const showPriceCurrency = e.detail;
|
|
305
|
+
if (!showPriceCurrency) return;
|
|
306
|
+
updatePriceWithCurrency(showPriceCurrency);
|
|
307
307
|
}, [
|
|
308
308
|
updatePriceWithCurrency
|
|
309
309
|
]);
|
|
@@ -9,6 +9,7 @@ const SALE_FUNNEL_PAGE_TYPES = [
|
|
|
9
9
|
'GP_PRE_SALE_PAGE'
|
|
10
10
|
];
|
|
11
11
|
const DropElement = ()=>{
|
|
12
|
+
const { t } = core.useI18n();
|
|
12
13
|
const editingPageType = core.useShopStore((s)=>s.pageType);
|
|
13
14
|
const isFunnelSalesPage = SALE_FUNNEL_PAGE_TYPES.includes(editingPageType || '');
|
|
14
15
|
const dispatchEventBuildWithSectionActiveTab = (value)=>{
|
|
@@ -117,7 +118,7 @@ const DropElement = ()=>{
|
|
|
117
118
|
children: [
|
|
118
119
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
119
120
|
className: "gp-text-16 gp-font-medium gp-mb-4 gp-text-[#212121]",
|
|
120
|
-
children: isFunnelSalesPage ? 'Start building with Sections/Elements or' : 'Start with Sections from sidebar'
|
|
121
|
+
children: isFunnelSalesPage ? t('Start building with Sections/Elements or') : t('Start with Sections from sidebar')
|
|
121
122
|
}),
|
|
122
123
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
123
124
|
className: "gp-flex gp-gap-3 gp-justify-between",
|
|
@@ -130,7 +131,7 @@ const DropElement = ()=>{
|
|
|
130
131
|
} else dispatchEventBuildWithSectionActiveTab(true);
|
|
131
132
|
},
|
|
132
133
|
className: "gp-flex gp-h-[40px] gp-px-6 gp-items-center gp-font-medium gp-justify-center gp-rounded-[8px] gp-bg-[#1C1C1C] gp-text-[14px] gp-text-white hover:gp-bg-[#3B3B3B]",
|
|
133
|
-
children: isFunnelSalesPage ? 'Use existing page designs' : 'Add sections'
|
|
134
|
+
children: isFunnelSalesPage ? t('Use existing page designs') : t('Add sections')
|
|
134
135
|
}),
|
|
135
136
|
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
136
137
|
"data-button-add-elements": true,
|
|
@@ -140,7 +141,7 @@ const DropElement = ()=>{
|
|
|
140
141
|
} else dispatchEventBuildWithSectionActiveTab(false);
|
|
141
142
|
},
|
|
142
143
|
className: "gp-flex gp-h-[40px] gp-px-6 gp-items-center gp-font-medium gp-justify-center gp-rounded-[8px] gp-bg-[#f4f4f4] gp-text-[14px] gp-text-[#212121] hover:gp-bg-[#E2E2E2]",
|
|
143
|
-
children: isFunnelSalesPage ? 'Explore templates' : 'Add elements'
|
|
144
|
+
children: isFunnelSalesPage ? t('Explore templates') : t('Add elements')
|
|
144
145
|
})
|
|
145
146
|
]
|
|
146
147
|
}),
|
|
@@ -179,7 +180,7 @@ const DropElement = ()=>{
|
|
|
179
180
|
"aria-hidden": "true",
|
|
180
181
|
id: "gp-img-to-layout-gallery-btn",
|
|
181
182
|
className: "gp-relative gp-cursor-pointer gp-text-[14px] gp-font-medium gp-text-[#3C67FF]",
|
|
182
|
-
children:
|
|
183
|
+
children: t('Start with Generating from URL or image')
|
|
183
184
|
})
|
|
184
185
|
})
|
|
185
186
|
]
|
|
@@ -297,9 +297,9 @@ const Toolbox = ()=>{
|
|
|
297
297
|
changeShopPlan
|
|
298
298
|
]);
|
|
299
299
|
const onUpdatePriceWithCurrency = useCallback((e)=>{
|
|
300
|
-
const
|
|
301
|
-
if (!
|
|
302
|
-
updatePriceWithCurrency(
|
|
300
|
+
const showPriceCurrency = e.detail;
|
|
301
|
+
if (!showPriceCurrency) return;
|
|
302
|
+
updatePriceWithCurrency(showPriceCurrency);
|
|
303
303
|
}, [
|
|
304
304
|
updatePriceWithCurrency
|
|
305
305
|
]);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useShopStore } from '@gem-sdk/core';
|
|
3
|
+
import { useI18n, useShopStore } from '@gem-sdk/core';
|
|
4
4
|
|
|
5
5
|
const SALE_FUNNEL_PAGE_TYPES = [
|
|
6
6
|
'GP_FUNNEL_PAGE',
|
|
7
7
|
'GP_PRE_SALE_PAGE'
|
|
8
8
|
];
|
|
9
9
|
const DropElement = ()=>{
|
|
10
|
+
const { t } = useI18n();
|
|
10
11
|
const editingPageType = useShopStore((s)=>s.pageType);
|
|
11
12
|
const isFunnelSalesPage = SALE_FUNNEL_PAGE_TYPES.includes(editingPageType || '');
|
|
12
13
|
const dispatchEventBuildWithSectionActiveTab = (value)=>{
|
|
@@ -115,7 +116,7 @@ const DropElement = ()=>{
|
|
|
115
116
|
children: [
|
|
116
117
|
/*#__PURE__*/ jsx("div", {
|
|
117
118
|
className: "gp-text-16 gp-font-medium gp-mb-4 gp-text-[#212121]",
|
|
118
|
-
children: isFunnelSalesPage ? 'Start building with Sections/Elements or' : 'Start with Sections from sidebar'
|
|
119
|
+
children: isFunnelSalesPage ? t('Start building with Sections/Elements or') : t('Start with Sections from sidebar')
|
|
119
120
|
}),
|
|
120
121
|
/*#__PURE__*/ jsxs("div", {
|
|
121
122
|
className: "gp-flex gp-gap-3 gp-justify-between",
|
|
@@ -128,7 +129,7 @@ const DropElement = ()=>{
|
|
|
128
129
|
} else dispatchEventBuildWithSectionActiveTab(true);
|
|
129
130
|
},
|
|
130
131
|
className: "gp-flex gp-h-[40px] gp-px-6 gp-items-center gp-font-medium gp-justify-center gp-rounded-[8px] gp-bg-[#1C1C1C] gp-text-[14px] gp-text-white hover:gp-bg-[#3B3B3B]",
|
|
131
|
-
children: isFunnelSalesPage ? 'Use existing page designs' : 'Add sections'
|
|
132
|
+
children: isFunnelSalesPage ? t('Use existing page designs') : t('Add sections')
|
|
132
133
|
}),
|
|
133
134
|
/*#__PURE__*/ jsx("button", {
|
|
134
135
|
"data-button-add-elements": true,
|
|
@@ -138,7 +139,7 @@ const DropElement = ()=>{
|
|
|
138
139
|
} else dispatchEventBuildWithSectionActiveTab(false);
|
|
139
140
|
},
|
|
140
141
|
className: "gp-flex gp-h-[40px] gp-px-6 gp-items-center gp-font-medium gp-justify-center gp-rounded-[8px] gp-bg-[#f4f4f4] gp-text-[14px] gp-text-[#212121] hover:gp-bg-[#E2E2E2]",
|
|
141
|
-
children: isFunnelSalesPage ? 'Explore templates' : 'Add elements'
|
|
142
|
+
children: isFunnelSalesPage ? t('Explore templates') : t('Add elements')
|
|
142
143
|
})
|
|
143
144
|
]
|
|
144
145
|
}),
|
|
@@ -177,7 +178,7 @@ const DropElement = ()=>{
|
|
|
177
178
|
"aria-hidden": "true",
|
|
178
179
|
id: "gp-img-to-layout-gallery-btn",
|
|
179
180
|
className: "gp-relative gp-cursor-pointer gp-text-[14px] gp-font-medium gp-text-[#3C67FF]",
|
|
180
|
-
children:
|
|
181
|
+
children: t('Start with Generating from URL or image')
|
|
181
182
|
})
|
|
182
183
|
})
|
|
183
184
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.699",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"next": "14.2.20"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
29
|
+
"@gem-sdk/core": "2.0.0-dev.699",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "2.0.0-dev.695",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "2.0.0-dev.695",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.695"
|