@gem-sdk/pages 1.56.0-staging.16 → 1.56.0-staging.17
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.
|
@@ -9,10 +9,11 @@ var useTrackingView = require('../libs/hooks/use-tracking-view.js');
|
|
|
9
9
|
var parseHtml = require('../libs/parse-html.js');
|
|
10
10
|
var Header = require('../components/builder/Header.js');
|
|
11
11
|
var FooterForPostPurchase = require('../components/FooterForPostPurchase.js');
|
|
12
|
+
var Script = require('next/script');
|
|
12
13
|
|
|
13
14
|
const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, isPreview, interaction })=>{
|
|
14
15
|
const router$1 = router.useRouter();
|
|
15
|
-
process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
16
|
+
const baseAssetURL = process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
16
17
|
useTrackingView.useTrackingView(shopToken, pageHandle, router$1.isFallback);
|
|
17
18
|
if (router$1.isFallback) {
|
|
18
19
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
@@ -89,15 +90,21 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
|
|
|
89
90
|
}),
|
|
90
91
|
/*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
|
|
91
92
|
data: sectionData,
|
|
92
|
-
children: builderData?.map((builder)=>/*#__PURE__*/ jsxRuntime.
|
|
93
|
+
children: builderData?.map((builder)=>/*#__PURE__*/ jsxRuntime.jsxs(core.BuilderProvider, {
|
|
93
94
|
state: builder.data,
|
|
94
95
|
lazy: builder.lazy,
|
|
95
96
|
priority: builder.priority,
|
|
96
97
|
isPostPurchase: isPostPurchase,
|
|
97
98
|
isPreview: isPreview,
|
|
98
|
-
children:
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
children: [
|
|
100
|
+
/*#__PURE__*/ jsxRuntime.jsx(core.Render, {
|
|
101
|
+
uid: builder.uid
|
|
102
|
+
}),
|
|
103
|
+
/*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
104
|
+
defer: true,
|
|
105
|
+
src: `${baseAssetURL}/assets-v2/gp-flow-action-lip.js`
|
|
106
|
+
})
|
|
107
|
+
]
|
|
101
108
|
}, builder.uid))
|
|
102
109
|
}),
|
|
103
110
|
isPostPurchase && /*#__PURE__*/ jsxRuntime.jsx(FooterForPostPurchase.default, {
|
|
@@ -7,10 +7,11 @@ import { useTrackingView } from '../libs/hooks/use-tracking-view.js';
|
|
|
7
7
|
import { parseHtml } from '../libs/parse-html.js';
|
|
8
8
|
import Header from '../components/builder/Header.js';
|
|
9
9
|
import FooterForPostPurchase from '../components/FooterForPostPurchase.js';
|
|
10
|
+
import Script from 'next/script';
|
|
10
11
|
|
|
11
12
|
const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, isPreview, interaction })=>{
|
|
12
13
|
const router = useRouter();
|
|
13
|
-
process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
14
|
+
const baseAssetURL = process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
|
|
14
15
|
useTrackingView(shopToken, pageHandle, router.isFallback);
|
|
15
16
|
if (router.isFallback) {
|
|
16
17
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -87,15 +88,21 @@ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, f
|
|
|
87
88
|
}),
|
|
88
89
|
/*#__PURE__*/ jsx(SectionProvider, {
|
|
89
90
|
data: sectionData,
|
|
90
|
-
children: builderData?.map((builder)=>/*#__PURE__*/
|
|
91
|
+
children: builderData?.map((builder)=>/*#__PURE__*/ jsxs(BuilderProvider, {
|
|
91
92
|
state: builder.data,
|
|
92
93
|
lazy: builder.lazy,
|
|
93
94
|
priority: builder.priority,
|
|
94
95
|
isPostPurchase: isPostPurchase,
|
|
95
96
|
isPreview: isPreview,
|
|
96
|
-
children:
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ jsx(Render, {
|
|
99
|
+
uid: builder.uid
|
|
100
|
+
}),
|
|
101
|
+
/*#__PURE__*/ jsx(Script, {
|
|
102
|
+
defer: true,
|
|
103
|
+
src: `${baseAssetURL}/assets-v2/gp-flow-action-lip.js`
|
|
104
|
+
})
|
|
105
|
+
]
|
|
99
106
|
}, builder.uid))
|
|
100
107
|
}),
|
|
101
108
|
isPostPurchase && /*#__PURE__*/ jsx(FooterForPostPurchase, {
|