@gem-sdk/pages 1.56.0-staging.16 → 1.56.0-staging.24
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/components/builder/InteractionSelectOnPageHeader.js +1 -1
- package/dist/cjs/components/image-to-layout/DropElement.js +2 -0
- package/dist/cjs/pages/static-v2.js +12 -5
- package/dist/esm/components/builder/InteractionSelectOnPageHeader.js +1 -1
- package/dist/esm/components/image-to-layout/DropElement.js +2 -0
- package/dist/esm/pages/static-v2.js +12 -5
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
19
19
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20
20
|
children: [
|
|
21
21
|
/*#__PURE__*/ jsxRuntime.jsxs("header", {
|
|
22
|
-
className: "gp-flex gp-justify-between gp-items-center gp-h-10 gp-fixed gp-top-0 gp-left-0 gp-w-full gp-z-100 gp-bg-black gp-text-white",
|
|
22
|
+
className: "gp-flex gp-justify-between gp-items-center gp-h-10 gp-fixed gp-top-0 gp-left-0 gp-w-full gp-z-100 gp-bg-black gp-text-white interaction-select-mode-header",
|
|
23
23
|
children: [
|
|
24
24
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
25
25
|
className: "gp-ml-4 gp-text-xs gp-mt-1",
|
|
@@ -106,11 +106,13 @@ const DropElement = ()=>{
|
|
|
106
106
|
className: "gp-flex gp-w-[291px] gp-justify-between",
|
|
107
107
|
children: [
|
|
108
108
|
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
109
|
+
"data-button-add-section": true,
|
|
109
110
|
onClick: ()=>dispatchEventBuildWithSectionActiveTab(true),
|
|
110
111
|
className: "gp-flex gp-h-[40px] gp-w-[136px] 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]",
|
|
111
112
|
children: "Add sections"
|
|
112
113
|
}),
|
|
113
114
|
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
115
|
+
"data-button-add-elements": true,
|
|
114
116
|
onClick: ()=>dispatchEventBuildWithSectionActiveTab(false),
|
|
115
117
|
className: "gp-flex gp-h-[40px] gp-w-[136px] 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]",
|
|
116
118
|
children: "Add elements"
|
|
@@ -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, {
|
|
@@ -15,7 +15,7 @@ const InteractionSelectOnPageHeader = ()=>{
|
|
|
15
15
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
16
16
|
children: [
|
|
17
17
|
/*#__PURE__*/ jsxs("header", {
|
|
18
|
-
className: "gp-flex gp-justify-between gp-items-center gp-h-10 gp-fixed gp-top-0 gp-left-0 gp-w-full gp-z-100 gp-bg-black gp-text-white",
|
|
18
|
+
className: "gp-flex gp-justify-between gp-items-center gp-h-10 gp-fixed gp-top-0 gp-left-0 gp-w-full gp-z-100 gp-bg-black gp-text-white interaction-select-mode-header",
|
|
19
19
|
children: [
|
|
20
20
|
/*#__PURE__*/ jsx("div", {
|
|
21
21
|
className: "gp-ml-4 gp-text-xs gp-mt-1",
|
|
@@ -104,11 +104,13 @@ const DropElement = ()=>{
|
|
|
104
104
|
className: "gp-flex gp-w-[291px] gp-justify-between",
|
|
105
105
|
children: [
|
|
106
106
|
/*#__PURE__*/ jsx("button", {
|
|
107
|
+
"data-button-add-section": true,
|
|
107
108
|
onClick: ()=>dispatchEventBuildWithSectionActiveTab(true),
|
|
108
109
|
className: "gp-flex gp-h-[40px] gp-w-[136px] 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]",
|
|
109
110
|
children: "Add sections"
|
|
110
111
|
}),
|
|
111
112
|
/*#__PURE__*/ jsx("button", {
|
|
113
|
+
"data-button-add-elements": true,
|
|
112
114
|
onClick: ()=>dispatchEventBuildWithSectionActiveTab(false),
|
|
113
115
|
className: "gp-flex gp-h-[40px] gp-w-[136px] 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]",
|
|
114
116
|
children: "Add elements"
|
|
@@ -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, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "1.56.0-staging.
|
|
3
|
+
"version": "1.56.0-staging.24",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"next": "latest"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "1.56.0-staging.
|
|
29
|
+
"@gem-sdk/core": "1.56.0-staging.24",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "1.56.0-staging.0",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "1.56.0-staging.0",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "1.56.0-staging.0"
|