@faststore/core 2.1.31 → 2.1.35
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +67 -67
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +3 -3
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/186.js +16 -39
- package/.next/server/chunks/253.js +22 -48
- package/.next/server/chunks/289.js +4 -7
- package/.next/server/chunks/350.js +1 -1
- package/.next/server/chunks/721.js +22 -51
- package/.next/server/chunks/74.js +154 -215
- package/.next/server/chunks/81.js +88 -172
- package/.next/server/chunks/907.js +54 -100
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +82 -135
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +2 -2
- package/.next/static/chunks/209-d1d2eeaeefbc68f7.js +1 -0
- package/.next/static/chunks/548-6b23e7ad82cd22b9.js +1 -0
- package/.next/static/chunks/{64.7ea3677ac3a10e00.js → 64.2f385ef39cd5877d.js} +1 -1
- package/.next/static/chunks/706-1020d118bb59b204.js +1 -0
- package/.next/static/chunks/{738-67a288ca3569cdbb.js → 738-a5ff304828f20cbf.js} +1 -1
- package/.next/static/chunks/791-681afeb766a9098f.js +1 -0
- package/.next/static/chunks/pages/404-14d27e3706f3d2c3.js +1 -0
- package/.next/static/chunks/pages/500-250ccf5c9626e451.js +1 -0
- package/.next/static/chunks/pages/[...slug]-bcfaf0c5d60b57a0.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-c1f2b05344981f12.js +1 -0
- package/.next/static/chunks/pages/index-bdbfb082027ed2b7.js +1 -0
- package/.next/static/chunks/pages/login-b1bdf30c951bb60d.js +1 -0
- package/.next/static/chunks/webpack-73cade94715ad9e1.js +1 -0
- package/.next/static/css/208b7dd52a0981bd.css +1 -0
- package/.next/static/css/41ef280537acec50.css +1 -0
- package/.next/static/css/4ad5a6bd11a9f8d8.css +1 -0
- package/.next/static/css/5330ae3076254840.css +1 -0
- package/.next/static/css/5972921daee792bb.css +1 -0
- package/.next/static/css/6e1a7434f061d0ef.css +1 -0
- package/.next/static/css/82a475e147f4b2ee.css +1 -0
- package/.next/static/css/af5ef0767b748cb3.css +1 -0
- package/.next/static/css/cb7d1fcea42fab9c.css +1 -0
- package/.next/static/css/d67fbe2a613293c1.css +1 -0
- package/.next/static/uXS-aZT8ClbPcIudKFF0d/_buildManifest.js +1 -0
- package/.next/trace +80 -80
- package/.turbo/turbo-build.log +10 -19
- package/package.json +8 -8
- package/src/components/common/Alert/Alert.tsx +5 -8
- package/src/components/navigation/Navbar/Navbar.tsx +22 -22
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +8 -7
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +15 -14
- package/src/components/product/ProductGrid/ProductGrid.tsx +5 -10
- package/src/components/region/RegionBar/RegionBar.tsx +27 -13
- package/src/components/search/Filter/Filter.tsx +6 -11
- package/src/components/sections/Alert/Alert.tsx +17 -13
- package/src/components/sections/Alert/Overrides.tsx +13 -25
- package/src/components/sections/BannerText/BannerText.tsx +24 -20
- package/src/components/sections/BannerText/Overrides.tsx +11 -23
- package/src/components/sections/Breadcrumb/Overrides.tsx +13 -25
- package/src/components/sections/EmptyState/EmptyState.tsx +6 -8
- package/src/components/sections/EmptyState/Overrides.tsx +12 -24
- package/src/components/sections/Hero/Hero.tsx +15 -12
- package/src/components/sections/Hero/Overrides.tsx +12 -24
- package/src/components/sections/Navbar/Overrides.tsx +43 -31
- package/src/components/sections/Newsletter/Overrides.tsx +28 -26
- package/src/components/sections/ProductDetails/Overrides.tsx +51 -38
- package/src/components/sections/ProductDetails/ProductDetails.tsx +22 -30
- package/src/components/sections/ProductGallery/Overrides.tsx +44 -35
- package/src/components/sections/ProductShelf/Overrides.tsx +14 -28
- package/src/components/sections/RegionBar/Overrides.tsx +12 -24
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +9 -7
- package/src/components/ui/ImageGallery/ImageGallery.tsx +13 -19
- package/src/components/ui/Newsletter/Newsletter.tsx +23 -24
- package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +21 -17
- package/src/components/ui/ProductGallery/ProductGallery.tsx +31 -38
- package/src/components/ui/ProductShelf/ProductShelf.tsx +11 -16
- package/src/components/ui/ShippingSimulation/ShippingSimulation.tsx +2 -3
- package/src/components/ui/SkuSelector/Selectors.tsx +8 -7
- package/src/customizations/components/overrides/Alert.tsx +3 -7
- package/src/customizations/components/overrides/BannerText.tsx +3 -7
- package/src/customizations/components/overrides/Breadcrumb.tsx +3 -7
- package/src/customizations/components/overrides/EmptyState.tsx +3 -6
- package/src/customizations/components/overrides/Hero.tsx +3 -8
- package/src/customizations/components/overrides/Navbar.tsx +3 -16
- package/src/customizations/components/overrides/Newsletter.tsx +3 -11
- package/src/customizations/components/overrides/ProductDetails.tsx +3 -18
- package/src/customizations/components/overrides/ProductGallery.tsx +3 -16
- package/src/customizations/components/overrides/ProductShelf.tsx +3 -8
- package/src/customizations/components/overrides/RegionBar.tsx +3 -8
- package/src/typings/overrideDefinitionUtils.ts +40 -0
- package/src/typings/overrides.ts +267 -0
- package/src/utils/overrides.ts +53 -0
- package/.next/static/chunks/209-9a50f2317fccb202.js +0 -1
- package/.next/static/chunks/548-ab84e9e8b49413ab.js +0 -1
- package/.next/static/chunks/706-5aea41dd07970d2d.js +0 -1
- package/.next/static/chunks/791-63b1ccf9964b6517.js +0 -1
- package/.next/static/chunks/pages/404-d5f20744ecd83121.js +0 -1
- package/.next/static/chunks/pages/500-3911549ab88d0378.js +0 -1
- package/.next/static/chunks/pages/[...slug]-2232ce78cb672654.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-16595182cbda6bb9.js +0 -1
- package/.next/static/chunks/pages/index-7c2ec2e4b6081dbc.js +0 -1
- package/.next/static/chunks/pages/login-4cc4b8e52608f076.js +0 -1
- package/.next/static/chunks/webpack-a86bbea19dfdfd35.js +0 -1
- package/.next/static/css/08e3fc80f9bad95d.css +0 -1
- package/.next/static/css/1b23beb5af203ffb.css +0 -1
- package/.next/static/css/4b19e1e142e038b0.css +0 -1
- package/.next/static/css/584640ffee46aa49.css +0 -1
- package/.next/static/css/7486a2a5fcda5283.css +0 -1
- package/.next/static/css/7d822a137c54a781.css +0 -1
- package/.next/static/css/a49f71ae6bb528e0.css +0 -1
- package/.next/static/css/d1ad1d89f8d5c7a1.css +0 -1
- package/.next/static/css/e02cdad8fc000339.css +0 -1
- package/.next/static/css/f9d59f597a4d8f82.css +0 -1
- package/.next/static/xYGxa3PwWTjNHEfOkCiX-/_buildManifest.js +0 -1
- package/src/typings/overrides.d.ts +0 -97
- /package/.next/static/{xYGxa3PwWTjNHEfOkCiX- → uXS-aZT8ClbPcIudKFF0d}/_ssgManifest.js +0 -0
|
@@ -66,48 +66,26 @@ const BannerTextContent = (0,external_react_.forwardRef)(function BannerTextCont
|
|
|
66
66
|
});
|
|
67
67
|
/* harmony default export */ const BannerText_BannerTextContent = (BannerTextContent);
|
|
68
68
|
//# sourceMappingURL=BannerTextContent.js.map
|
|
69
|
+
// EXTERNAL MODULE: ./src/utils/overrides.ts
|
|
70
|
+
var overrides = __webpack_require__(59104);
|
|
69
71
|
;// CONCATENATED MODULE: ./src/customizations/components/overrides/BannerText.tsx
|
|
70
72
|
// This is an example of how it can be used on the starter.
|
|
71
73
|
const SECTION = 'BannerText';
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
components: {
|
|
75
|
-
BannerText: {
|
|
76
|
-
props: {}
|
|
77
|
-
},
|
|
78
|
-
BannerTextContent: {
|
|
79
|
-
props: {}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
74
|
+
const override = {
|
|
75
|
+
section: SECTION
|
|
82
76
|
};
|
|
83
|
-
/* harmony default export */ const overrides_BannerText = (overrides);
|
|
84
|
-
;// CONCATENATED MODULE: ./src/components/sections/BannerText/Overrides.tsx
|
|
85
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
86
|
-
|
|
87
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
88
|
-
|
|
89
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
90
77
|
|
|
78
|
+
;// CONCATENATED MODULE: ./src/components/sections/BannerText/Overrides.tsx
|
|
91
79
|
|
|
92
80
|
|
|
93
|
-
const bannerTextComponentsCustomization = {};
|
|
94
|
-
const bannerTextPropsCustomization = {};
|
|
95
|
-
Object.entries(overrides_BannerText.components).forEach(([key, value]) => {
|
|
96
|
-
if (value.Component) {
|
|
97
|
-
bannerTextComponentsCustomization[key] = value.Component;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.entries(overrides_BannerText.components).forEach(([key, value]) => {
|
|
101
|
-
if (value.props) {
|
|
102
|
-
bannerTextPropsCustomization[key] = value.props;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
81
|
|
|
106
|
-
const
|
|
82
|
+
const {
|
|
83
|
+
BannerText: Overrides_BannerText,
|
|
84
|
+
BannerTextContent: Overrides_BannerTextContent
|
|
85
|
+
} = (0,overrides/* getSectionOverrides */.f)({
|
|
107
86
|
BannerText: BannerText_BannerText,
|
|
108
87
|
BannerTextContent: BannerText_BannerTextContent
|
|
109
|
-
},
|
|
110
|
-
|
|
88
|
+
}, override);
|
|
111
89
|
|
|
112
90
|
// EXTERNAL MODULE: ./src/components/sections/Section/index.ts
|
|
113
91
|
var Section = __webpack_require__(57067);
|
|
@@ -117,43 +95,43 @@ var section_module_default = /*#__PURE__*/__webpack_require__.n(section_module);
|
|
|
117
95
|
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
118
96
|
var jsx_runtime_ = __webpack_require__(20997);
|
|
119
97
|
;// CONCATENATED MODULE: ./src/components/sections/BannerText/BannerText.tsx
|
|
120
|
-
function
|
|
98
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
121
99
|
|
|
122
|
-
function
|
|
100
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
123
101
|
|
|
124
|
-
function
|
|
102
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
125
103
|
|
|
126
104
|
|
|
127
105
|
|
|
128
106
|
|
|
129
107
|
|
|
130
|
-
const {
|
|
131
|
-
BannerText: BannerTextWrapper,
|
|
132
|
-
BannerTextContent: BannerText_BannerText_BannerTextContent
|
|
133
|
-
} = Components; // TODO: Change actionPath and actionLabel with Link
|
|
134
108
|
|
|
109
|
+
// TODO: Change actionPath and actionLabel with Link
|
|
135
110
|
function BannerText_BannerText_BannerText({
|
|
136
111
|
title,
|
|
137
112
|
caption,
|
|
138
113
|
link: {
|
|
139
|
-
url: linkUrl =
|
|
140
|
-
text: linkText =
|
|
114
|
+
url: linkUrl = Overrides_BannerTextContent.props.link,
|
|
115
|
+
text: linkText = Overrides_BannerTextContent.props.linkText
|
|
141
116
|
},
|
|
142
|
-
variant =
|
|
143
|
-
colorVariant =
|
|
117
|
+
variant = Overrides_BannerText.props.variant ?? 'primary',
|
|
118
|
+
colorVariant = Overrides_BannerText.props.colorVariant ?? 'main'
|
|
144
119
|
}) {
|
|
145
120
|
return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
|
|
146
121
|
className: `${(section_module_default()).section} section-banner layout__section`,
|
|
147
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
122
|
+
children: /*#__PURE__*/jsx_runtime_.jsx("div", {
|
|
123
|
+
className: "layout__content",
|
|
124
|
+
children: /*#__PURE__*/jsx_runtime_.jsx(Overrides_BannerText.Component, _objectSpread(_objectSpread({}, Overrides_BannerText.props), {}, {
|
|
125
|
+
variant: variant,
|
|
126
|
+
colorVariant: colorVariant,
|
|
127
|
+
children: /*#__PURE__*/jsx_runtime_.jsx(Overrides_BannerTextContent.Component, _objectSpread(_objectSpread({}, Overrides_BannerTextContent.props), {}, {
|
|
128
|
+
title: title,
|
|
129
|
+
caption: caption,
|
|
130
|
+
link: linkUrl,
|
|
131
|
+
linkText: linkText
|
|
132
|
+
}))
|
|
155
133
|
}))
|
|
156
|
-
})
|
|
134
|
+
})
|
|
157
135
|
});
|
|
158
136
|
}
|
|
159
137
|
|
|
@@ -243,8 +221,12 @@ __webpack_async_result__();
|
|
|
243
221
|
|
|
244
222
|
// EXPORTS
|
|
245
223
|
__webpack_require__.d(__webpack_exports__, {
|
|
246
|
-
"
|
|
247
|
-
"
|
|
224
|
+
"zx": () => (/* binding */ Overrides_Button),
|
|
225
|
+
"N9": () => (/* binding */ HeaderIcon),
|
|
226
|
+
"yk": () => (/* binding */ InputFieldEmail),
|
|
227
|
+
"s9": () => (/* binding */ InputFieldName),
|
|
228
|
+
"eA": () => (/* binding */ ToastIconError),
|
|
229
|
+
"$B": () => (/* binding */ ToastIconSuccess)
|
|
248
230
|
});
|
|
249
231
|
|
|
250
232
|
// EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
|
|
@@ -253,64 +235,34 @@ var Icon = __webpack_require__(25045);
|
|
|
253
235
|
var InputField = __webpack_require__(28287);
|
|
254
236
|
// EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
|
|
255
237
|
var Button = __webpack_require__(57578);
|
|
238
|
+
// EXTERNAL MODULE: ./src/utils/overrides.ts
|
|
239
|
+
var overrides = __webpack_require__(59104);
|
|
256
240
|
;// CONCATENATED MODULE: ./src/customizations/components/overrides/Newsletter.tsx
|
|
257
241
|
// This is an example of how it can be used on the starter.
|
|
258
242
|
const SECTION = 'Newsletter';
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
components: {
|
|
262
|
-
ToastIconSuccess: {
|
|
263
|
-
props: {}
|
|
264
|
-
},
|
|
265
|
-
ToastIconError: {
|
|
266
|
-
props: {}
|
|
267
|
-
},
|
|
268
|
-
HeaderIcon: {
|
|
269
|
-
props: {}
|
|
270
|
-
},
|
|
271
|
-
InputFieldName: {
|
|
272
|
-
props: {}
|
|
273
|
-
},
|
|
274
|
-
InputFieldEmail: {
|
|
275
|
-
props: {}
|
|
276
|
-
},
|
|
277
|
-
Button: {
|
|
278
|
-
props: {}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
243
|
+
const override = {
|
|
244
|
+
section: SECTION
|
|
281
245
|
};
|
|
282
|
-
/* harmony default export */ const Newsletter = (overrides);
|
|
283
|
-
;// CONCATENATED MODULE: ./src/components/sections/Newsletter/Overrides.tsx
|
|
284
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
285
|
-
|
|
286
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
287
246
|
|
|
288
|
-
|
|
247
|
+
;// CONCATENATED MODULE: ./src/components/sections/Newsletter/Overrides.tsx
|
|
289
248
|
|
|
290
249
|
|
|
291
250
|
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
if (value.props) {
|
|
301
|
-
newsletterPropsCustomization[key] = value.props;
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
const Components = _objectSpread({
|
|
251
|
+
const {
|
|
252
|
+
ToastIconSuccess,
|
|
253
|
+
ToastIconError,
|
|
254
|
+
HeaderIcon,
|
|
255
|
+
InputFieldName,
|
|
256
|
+
InputFieldEmail,
|
|
257
|
+
Button: Overrides_Button
|
|
258
|
+
} = (0,overrides/* getSectionOverrides */.f)({
|
|
306
259
|
ToastIconSuccess: Icon/* default */.Z,
|
|
307
260
|
ToastIconError: Icon/* default */.Z,
|
|
308
261
|
HeaderIcon: Icon/* default */.Z,
|
|
309
262
|
InputFieldName: InputField/* default */.Z,
|
|
310
263
|
InputFieldEmail: InputField/* default */.Z,
|
|
311
264
|
Button: Button/* default */.Z
|
|
312
|
-
},
|
|
313
|
-
|
|
265
|
+
}, override);
|
|
314
266
|
|
|
315
267
|
|
|
316
268
|
/***/ }),
|
|
@@ -339,8 +291,9 @@ __webpack_async_result__();
|
|
|
339
291
|
|
|
340
292
|
// EXPORTS
|
|
341
293
|
__webpack_require__.d(__webpack_exports__, {
|
|
342
|
-
"
|
|
343
|
-
"
|
|
294
|
+
"IW": () => (/* binding */ Overrides_ProductShelf),
|
|
295
|
+
"EM": () => (/* binding */ __experimentalCarousel),
|
|
296
|
+
"zM": () => (/* binding */ __experimentalProductCard)
|
|
344
297
|
});
|
|
345
298
|
|
|
346
299
|
// EXTERNAL MODULE: ../components/dist/organisms/ProductShelf/ProductShelf.js
|
|
@@ -735,54 +688,30 @@ function Carousel_Carousel_Carousel({
|
|
|
735
688
|
/* harmony default export */ const ui_Carousel_Carousel = (Carousel_Carousel_Carousel);
|
|
736
689
|
;// CONCATENATED MODULE: ./src/components/ui/Carousel/index.ts
|
|
737
690
|
|
|
691
|
+
// EXTERNAL MODULE: ./src/utils/overrides.ts
|
|
692
|
+
var overrides = __webpack_require__(59104);
|
|
738
693
|
;// CONCATENATED MODULE: ./src/customizations/components/overrides/ProductShelf.tsx
|
|
739
694
|
// This is an example of how it can be used on the starter.
|
|
740
695
|
const SECTION = 'ProductShelf';
|
|
741
|
-
const
|
|
742
|
-
|
|
743
|
-
components: {
|
|
744
|
-
ProductShelf: {
|
|
745
|
-
props: {}
|
|
746
|
-
},
|
|
747
|
-
__experimentalCarousel: {
|
|
748
|
-
props: {}
|
|
749
|
-
},
|
|
750
|
-
__experimentalProductCard: {
|
|
751
|
-
props: {}
|
|
752
|
-
}
|
|
753
|
-
}
|
|
696
|
+
const override = {
|
|
697
|
+
section: SECTION
|
|
754
698
|
};
|
|
755
|
-
/* harmony default export */ const overrides_ProductShelf = (overrides);
|
|
756
|
-
;// CONCATENATED MODULE: ./src/components/sections/ProductShelf/Overrides.tsx
|
|
757
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
758
|
-
|
|
759
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
760
|
-
|
|
761
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
762
699
|
|
|
700
|
+
;// CONCATENATED MODULE: ./src/components/sections/ProductShelf/Overrides.tsx
|
|
763
701
|
|
|
764
702
|
|
|
765
703
|
|
|
766
704
|
|
|
767
|
-
const productShelfComponentsCustomization = {};
|
|
768
|
-
const productShelfPropsCustomization = {};
|
|
769
|
-
Object.entries(overrides_ProductShelf.components).forEach(([key, value]) => {
|
|
770
|
-
if (value.Component) {
|
|
771
|
-
productShelfComponentsCustomization[key] = value.Component;
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
Object.entries(overrides_ProductShelf.components).forEach(([key, value]) => {
|
|
775
|
-
if (value.props) {
|
|
776
|
-
productShelfPropsCustomization[key] = value.props;
|
|
777
|
-
}
|
|
778
|
-
});
|
|
779
705
|
|
|
780
|
-
const
|
|
706
|
+
const {
|
|
707
|
+
ProductShelf: Overrides_ProductShelf,
|
|
708
|
+
__experimentalCarousel,
|
|
709
|
+
__experimentalProductCard
|
|
710
|
+
} = (0,overrides/* getSectionOverrides */.f)({
|
|
781
711
|
ProductShelf: ProductShelf/* default */.Z,
|
|
782
712
|
__experimentalCarousel: ui_Carousel_Carousel,
|
|
783
713
|
__experimentalProductCard: ProductCard/* default */.Z
|
|
784
|
-
},
|
|
785
|
-
|
|
714
|
+
}, override);
|
|
786
715
|
|
|
787
716
|
|
|
788
717
|
/***/ }),
|
|
@@ -895,14 +824,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
895
824
|
|
|
896
825
|
|
|
897
826
|
|
|
898
|
-
const {
|
|
899
|
-
ToastIconSuccess,
|
|
900
|
-
ToastIconError,
|
|
901
|
-
HeaderIcon,
|
|
902
|
-
InputFieldEmail,
|
|
903
|
-
InputFieldName,
|
|
904
|
-
Button
|
|
905
|
-
} = src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .Components */ .z;
|
|
906
827
|
|
|
907
828
|
const cmsToHtml = content => {
|
|
908
829
|
if (!content) {
|
|
@@ -971,21 +892,21 @@ const Newsletter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef
|
|
|
971
892
|
if (data?.subscribeToNewsletter?.id) {
|
|
972
893
|
pushToast(_objectSpread(_objectSpread({}, toastSubscribe), {}, {
|
|
973
894
|
status: 'INFO',
|
|
974
|
-
icon: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(ToastIconSuccess, _objectSpread(_objectSpread({
|
|
895
|
+
icon: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconSuccess.Component */ .$B.Component, _objectSpread(_objectSpread({
|
|
975
896
|
width: 30,
|
|
976
897
|
height: 30
|
|
977
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
978
|
-
name: toastSubscribe.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
898
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconSuccess.props */ .$B.props), {}, {
|
|
899
|
+
name: toastSubscribe.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconSuccess.props.name */ .$B.props.name
|
|
979
900
|
}))
|
|
980
901
|
}));
|
|
981
902
|
} else {
|
|
982
903
|
pushToast(_objectSpread(_objectSpread({}, toastSubscribeError), {}, {
|
|
983
904
|
status: 'ERROR',
|
|
984
|
-
icon: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(ToastIconError, _objectSpread(_objectSpread({
|
|
905
|
+
icon: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconError.Component */ .eA.Component, _objectSpread(_objectSpread({
|
|
985
906
|
width: 30,
|
|
986
907
|
height: 30
|
|
987
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
988
|
-
name: toastSubscribe.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
908
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconError.props */ .eA.props), {}, {
|
|
909
|
+
name: toastSubscribe.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ToastIconError.props.name */ .eA.props.name
|
|
989
910
|
}))
|
|
990
911
|
}));
|
|
991
912
|
}
|
|
@@ -1004,11 +925,11 @@ const Newsletter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef
|
|
|
1004
925
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("header", {
|
|
1005
926
|
"data-fs-newsletter-header": true,
|
|
1006
927
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("h3", {
|
|
1007
|
-
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(HeaderIcon, _objectSpread(_objectSpread({
|
|
928
|
+
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .HeaderIcon.Component */ .N9.Component, _objectSpread(_objectSpread({
|
|
1008
929
|
width: 32,
|
|
1009
930
|
height: 32
|
|
1010
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1011
|
-
name: icon?.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
931
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .HeaderIcon.props */ .N9.props), {}, {
|
|
932
|
+
name: icon?.icon ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .HeaderIcon.props.name */ .N9.props.name
|
|
1012
933
|
})), title]
|
|
1013
934
|
}), description && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("span", {
|
|
1014
935
|
children: [" ", description]
|
|
@@ -1016,20 +937,20 @@ const Newsletter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef
|
|
|
1016
937
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx("div", {
|
|
1017
938
|
"data-fs-newsletter-controls": true,
|
|
1018
939
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
|
|
1019
|
-
children: [displayNameInput ? /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(InputFieldName, _objectSpread(_objectSpread({
|
|
940
|
+
children: [displayNameInput ? /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldName.Component */ .s9.Component, _objectSpread(_objectSpread({
|
|
1020
941
|
id: "newsletter-name",
|
|
1021
942
|
required: true
|
|
1022
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1023
|
-
label: nameInputLabel ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
943
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldName.props */ .s9.props), {}, {
|
|
944
|
+
label: nameInputLabel ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldName.props.label */ .s9.props.label // Dynamic props shouldn't be overridable
|
|
1024
945
|
// This decision can be reviewed later if needed
|
|
1025
946
|
,
|
|
1026
947
|
inputRef: nameInputRef
|
|
1027
|
-
})) : null, /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(InputFieldEmail, _objectSpread(_objectSpread({
|
|
948
|
+
})) : null, /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldEmail.Component */ .yk.Component, _objectSpread(_objectSpread({
|
|
1028
949
|
id: "newsletter-email",
|
|
1029
950
|
type: "email",
|
|
1030
951
|
required: true
|
|
1031
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1032
|
-
label: emailInputLabel ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
952
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldEmail.props */ .yk.props), {}, {
|
|
953
|
+
label: emailInputLabel ?? src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .InputFieldEmail.props.label */ .yk.props.label // Dynamic props shouldn't be overridable
|
|
1033
954
|
// This decision can be reviewed later if needed
|
|
1034
955
|
,
|
|
1035
956
|
inputRef: emailInputRef
|
|
@@ -1038,11 +959,11 @@ const Newsletter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef
|
|
|
1038
959
|
dangerouslySetInnerHTML: {
|
|
1039
960
|
__html: cmsToHtml(privacyPolicy)
|
|
1040
961
|
}
|
|
1041
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(Button, _objectSpread(_objectSpread({
|
|
962
|
+
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .Button.Component */ .zx.Component, _objectSpread(_objectSpread({
|
|
1042
963
|
variant: "secondary",
|
|
1043
964
|
inverse: true,
|
|
1044
965
|
type: "submit"
|
|
1045
|
-
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
966
|
+
}, src_components_sections_Newsletter_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .Button.props */ .zx.props), {}, {
|
|
1046
967
|
children: loading ? subscribeButtonLoadingLabel : subscribeButtonLabel
|
|
1047
968
|
}))]
|
|
1048
969
|
})
|
|
@@ -1114,19 +1035,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
1114
1035
|
|
|
1115
1036
|
|
|
1116
1037
|
|
|
1117
|
-
const {
|
|
1118
|
-
ProductShelf: ProductShelfWrapper,
|
|
1119
|
-
__experimentalCarousel: Carousel,
|
|
1120
|
-
__experimentalProductCard: ProductCard
|
|
1121
|
-
} = src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .Components */ .z;
|
|
1122
1038
|
|
|
1123
1039
|
function ProductShelf(_ref) {
|
|
1124
1040
|
let {
|
|
1125
1041
|
title,
|
|
1126
1042
|
inView,
|
|
1127
1043
|
productCardConfiguration: {
|
|
1128
|
-
bordered = src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1129
|
-
showDiscountBadge = src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1044
|
+
bordered = src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalProductCard.props.bordered */ .zM.props.bordered,
|
|
1045
|
+
showDiscountBadge = src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalProductCard.props.showDiscountBadge */ .zM.props.showDiscountBadge
|
|
1130
1046
|
} = {}
|
|
1131
1047
|
} = _ref,
|
|
1132
1048
|
variables = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1163,18 +1079,18 @@ function ProductShelf(_ref) {
|
|
|
1163
1079
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
|
|
1164
1080
|
aspectRatio: aspectRatio,
|
|
1165
1081
|
loading: products === undefined,
|
|
1166
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(
|
|
1167
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(
|
|
1082
|
+
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ProductShelf.Component */ .IW.Component, _objectSpread(_objectSpread({}, src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .ProductShelf.props */ .IW.props), {}, {
|
|
1083
|
+
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalCarousel.Component */ .EM.Component, _objectSpread(_objectSpread({
|
|
1168
1084
|
id: titleId || id
|
|
1169
|
-
}, src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1170
|
-
children: productEdges.map((product, idx) => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(
|
|
1085
|
+
}, src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalCarousel.props */ .EM.props), {}, {
|
|
1086
|
+
children: productEdges.map((product, idx) => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalProductCard.Component */ .zM.Component, _objectSpread(_objectSpread({
|
|
1171
1087
|
aspectRatio: aspectRatio,
|
|
1172
1088
|
imgProps: {
|
|
1173
1089
|
width: 216,
|
|
1174
1090
|
height: 216,
|
|
1175
1091
|
sizes: '(max-width: 768px) 42vw, 30vw'
|
|
1176
1092
|
}
|
|
1177
|
-
}, src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .
|
|
1093
|
+
}, src_components_sections_ProductShelf_Overrides__WEBPACK_IMPORTED_MODULE_4__/* .__experimentalProductCard.props */ .zM.props), {}, {
|
|
1178
1094
|
bordered: bordered,
|
|
1179
1095
|
showDiscountBadge: showDiscountBadge // Dynamic props shouldn't be overridable
|
|
1180
1096
|
// This decision can be reviewed later if needed
|