@gem-sdk/pages 2.0.0-dev.453 → 2.0.0-dev.479
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.
- package/dist/cjs/pages/static-v2.js +20 -16
- package/dist/esm/pages/static-v2.js +21 -17
- package/package.json +2 -2
|
@@ -14,6 +14,7 @@ var react = require('react');
|
|
|
14
14
|
|
|
15
15
|
const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, dynamicDiscountOffer, isPreview, interaction, pageBackground })=>{
|
|
16
16
|
const router$1 = router.useRouter();
|
|
17
|
+
const { t } = core.useI18n();
|
|
17
18
|
const baseAssetURL = process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
18
19
|
useTrackingView.useTrackingView(shopToken, pageHandle, router$1.isFallback);
|
|
19
20
|
const customCodeHeaderID = 'custom-code-header';
|
|
@@ -109,22 +110,25 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
|
|
|
109
110
|
}),
|
|
110
111
|
/*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
|
|
111
112
|
data: sectionData,
|
|
112
|
-
children:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(core.I18nProvider, {
|
|
114
|
+
t: t,
|
|
115
|
+
children: builderData?.map((builder)=>/*#__PURE__*/ jsxRuntime.jsxs(core.BuilderProvider, {
|
|
116
|
+
state: builder.data,
|
|
117
|
+
lazy: builder.lazy,
|
|
118
|
+
priority: builder.priority,
|
|
119
|
+
isPostPurchase: isPostPurchase,
|
|
120
|
+
isPreview: isPreview,
|
|
121
|
+
children: [
|
|
122
|
+
/*#__PURE__*/ jsxRuntime.jsx(core.Render, {
|
|
123
|
+
uid: builder.uid
|
|
124
|
+
}),
|
|
125
|
+
hasInteraction && /*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
126
|
+
defer: true,
|
|
127
|
+
src: `${baseAssetURL}/assets-v2/gp-flow-action-lip.js`
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
}, builder.uid))
|
|
131
|
+
})
|
|
128
132
|
}),
|
|
129
133
|
isPostPurchase && /*#__PURE__*/ jsxRuntime.jsx(FooterForPostPurchase.default, {
|
|
130
134
|
shopName: shopName || ''
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
|
|
2
|
+
import { useI18n, PageProvider, BuilderComponentProvider, SectionProvider, I18nProvider, BuilderProvider, Render } from '@gem-sdk/core';
|
|
3
3
|
import { NextSeo } from 'next-seo';
|
|
4
4
|
import Head from 'next/head';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
@@ -12,6 +12,7 @@ import { useEffect } from 'react';
|
|
|
12
12
|
|
|
13
13
|
const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, dynamicDiscountOffer, isPreview, interaction, pageBackground })=>{
|
|
14
14
|
const router = useRouter();
|
|
15
|
+
const { t } = useI18n();
|
|
15
16
|
const baseAssetURL = process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
16
17
|
useTrackingView(shopToken, pageHandle, router.isFallback);
|
|
17
18
|
const customCodeHeaderID = 'custom-code-header';
|
|
@@ -107,22 +108,25 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
|
|
|
107
108
|
}),
|
|
108
109
|
/*#__PURE__*/ jsx(SectionProvider, {
|
|
109
110
|
data: sectionData,
|
|
110
|
-
children:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
111
|
+
children: /*#__PURE__*/ jsx(I18nProvider, {
|
|
112
|
+
t: t,
|
|
113
|
+
children: builderData?.map((builder)=>/*#__PURE__*/ jsxs(BuilderProvider, {
|
|
114
|
+
state: builder.data,
|
|
115
|
+
lazy: builder.lazy,
|
|
116
|
+
priority: builder.priority,
|
|
117
|
+
isPostPurchase: isPostPurchase,
|
|
118
|
+
isPreview: isPreview,
|
|
119
|
+
children: [
|
|
120
|
+
/*#__PURE__*/ jsx(Render, {
|
|
121
|
+
uid: builder.uid
|
|
122
|
+
}),
|
|
123
|
+
hasInteraction && /*#__PURE__*/ jsx(Script, {
|
|
124
|
+
defer: true,
|
|
125
|
+
src: `${baseAssetURL}/assets-v2/gp-flow-action-lip.js`
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
}, builder.uid))
|
|
129
|
+
})
|
|
126
130
|
}),
|
|
127
131
|
isPostPurchase && /*#__PURE__*/ jsx(FooterForPostPurchase, {
|
|
128
132
|
shopName: shopName || ''
|
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.479",
|
|
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.479",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "2.0.0-dev.348",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "2.0.0-dev.348",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.348"
|