@faststore/core 2.0.151-alpha.0 → 2.0.153-alpha.0
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 +44 -44
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +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/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +5 -5
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/104.js +1 -1
- package/.next/server/chunks/{746.js → 289.js} +12 -8
- package/.next/server/chunks/312.js +35 -8
- package/.next/server/chunks/401.js +5 -5
- package/.next/server/chunks/74.js +30 -14
- package/.next/server/chunks/907.js +433 -353
- 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 +30 -15
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- 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/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/s.json +1 -1
- 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 +30 -14
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +5 -5
- package/.next/static/Jdc52lXcDWIk2D0wQ-Z4p/_buildManifest.js +1 -0
- package/.next/static/chunks/0-0e3914d9fc148f74.js +1 -0
- package/.next/static/chunks/{366-4a0572a47e2225d9.js → 366-c0bfd9890048babf.js} +1 -1
- package/.next/static/chunks/377-b3616792e1f5f651.js +1 -0
- package/.next/static/chunks/495.0ecd099878b2a36d.js +1 -0
- package/.next/static/chunks/64.ebbe1d2b40f980c7.js +1 -0
- package/.next/static/chunks/pages/{[...slug]-3c749c7d8561eb90.js → [...slug]-bd1885159f7dfbba.js} +1 -1
- package/.next/static/chunks/pages/s-1cbe740b5b781d28.js +1 -0
- package/.next/static/chunks/webpack-eb5ed34c93d07fac.js +1 -0
- package/.next/static/css/{2e9de35e0cb999e0.css → 1323734429a8aa40.css} +1 -1
- package/.next/static/css/7d822a137c54a781.css +1 -0
- package/.next/static/css/a0feab89b7648c5c.css +1 -0
- package/.next/static/css/a13a9f9cd349d906.css +1 -0
- package/.next/static/css/a45618030b16a245.css +1 -0
- package/.next/static/css/bde408cc006e64f8.css +1 -0
- package/.next/static/css/d462d9478ce00021.css +1 -0
- package/.next/trace +69 -69
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +12 -0
- package/cms/faststore/content-types.json +96 -2
- package/cms/faststore/sections.json +176 -0
- package/package.json +4 -4
- package/src/components/navigation/Navbar/Navbar.tsx +14 -8
- package/src/components/product/ProductGrid/ProductGrid.tsx +8 -3
- package/src/components/search/Filter/Filter.tsx +22 -3
- package/src/components/search/Filter/FilterSlider.tsx +14 -4
- package/src/components/search/SearchDropdown/SearchDropdown.tsx +17 -7
- package/src/components/search/SearchInput/SearchInput.tsx +10 -5
- package/src/components/search/SearchTop/SearchTop.tsx +17 -3
- package/src/components/search/Sort/Sort.tsx +21 -3
- package/src/components/sections/Navbar/Navbar.tsx +5 -0
- package/src/components/sections/ProductGallery/ProductGallery.tsx +44 -154
- package/src/components/ui/ProductGallery/ProductGallery.tsx +220 -0
- package/src/components/{sections → ui}/ProductGallery/ProductGalleryPage.tsx +9 -2
- package/src/components/ui/ProductGallery/index.ts +1 -0
- package/src/pages/[...slug].tsx +34 -17
- package/src/pages/s.tsx +38 -13
- package/src/sdk/search/formatSearchPath.ts +8 -1
- package/src/server/cms.ts +11 -2
- package/.next/static/SPkTG9-gxU2UejLG7FvOw/_buildManifest.js +0 -1
- package/.next/static/chunks/170.c17ce564bb568265.js +0 -1
- package/.next/static/chunks/327-43715af4f3fffaf6.js +0 -1
- package/.next/static/chunks/377-61e89c711b136605.js +0 -1
- package/.next/static/chunks/495.8ffebac98e9475dc.js +0 -1
- package/.next/static/chunks/pages/s-890c0c4b88484224.js +0 -1
- package/.next/static/chunks/webpack-5051dce9659282f3.js +0 -1
- package/.next/static/css/1de3e7b6ba8daaac.css +0 -1
- package/.next/static/css/43b1b3821e21630c.css +0 -1
- package/.next/static/css/48af598df5fe042d.css +0 -1
- package/.next/static/css/923c4a942e57bc91.css +0 -1
- package/.next/static/css/e434797816e17065.css +0 -1
- package/.next/static/css/e7a6f3559cf45c62.css +0 -1
- package/src/stories/brandless.stories.mdx +0 -87
- package/src/stories/changelog-template.stories.mdx +0 -10
- package/src/stories/colors.stories.mdx +0 -306
- package/src/stories/customizing.stories.mdx +0 -113
- package/src/stories/getting-started.stories.mdx +0 -68
- package/src/stories/grid-layout.stories.mdx +0 -53
- package/src/stories/icons.stories.mdx +0 -237
- package/src/stories/interactive-controls.stories.mdx +0 -50
- package/src/stories/midnight.stories.mdx +0 -56
- package/src/stories/refinements.stories.mdx +0 -96
- package/src/stories/soft-blue.stories.mdx +0 -56
- package/src/stories/spacing.stories.mdx +0 -38
- package/src/stories/typography.stories.mdx +0 -224
- /package/.next/static/{SPkTG9-gxU2UejLG7FvOw → Jdc52lXcDWIk2D0wQ-Z4p}/_ssgManifest.js +0 -0
- /package/src/components/{sections → ui}/ProductGallery/useDelayedFacets.ts +0 -0
- /package/src/components/{sections → ui}/ProductGallery/useDelayedPagination.ts +0 -0
- /package/src/components/{sections → ui}/ProductGallery/usePageProducts.ts +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"routes":{"/en-US/404":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/
|
|
1
|
+
{"version":3,"routes":{"/en-US/404":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/404.json"},"/en-US/500":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/500.json"},"/en-US/account":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/account.json"},"/en-US/checkout":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/checkout.json"},"/en-US":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/index.json"},"/en-US/login":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/login.json"},"/en-US/s":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/s.json"}},"dynamicRoutes":{"/[...slug]":{"routeRegex":"^/(.+?)(?:/)?$","dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/[...slug].json","fallback":null,"dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/(.+?)\\.json$"},"/[slug]/p":{"routeRegex":"^/([^/]+?)/p(?:/)?$","dataRoute":"/_next/data/Jdc52lXcDWIk2D0wQ-Z4p/[slug]/p.json","fallback":null,"dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/([^/]+?)/p\\.json$"}},"notFoundRoutes":[],"preview":{"previewModeId":"77f24a7a8b5944b891408d6c4299f163","previewModeSigningKey":"3dca2e0504d535bd4d09b2fd9bf8a7401b5a5209fe58cd8a1de6a081b73bde5c","previewModeEncryptionKey":"89c4284cacd5de0013a4ea75253de6e43e126857d60dce2e8bcf4a006159f469"}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"files": [
|
|
26
26
|
"static/chunks/226.b57e10ad9932f88c.js",
|
|
27
27
|
"static/chunks/336.0846f48eccce57e4.js",
|
|
28
|
-
"static/css/
|
|
28
|
+
"static/css/7d822a137c54a781.css",
|
|
29
29
|
"static/chunks/597.c5cf3fbeae5ceb63.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown": {
|
|
37
37
|
"id": 495,
|
|
38
38
|
"files": [
|
|
39
|
-
"static/chunks/495.
|
|
39
|
+
"static/chunks/495.0ecd099878b2a36d.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
-
"../components/
|
|
43
|
-
"id":
|
|
42
|
+
"../components/ui/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage": {
|
|
43
|
+
"id": 1064,
|
|
44
44
|
"files": [
|
|
45
|
-
"static/chunks/
|
|
45
|
+
"static/chunks/64.ebbe1d2b40f980c7.js"
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"pages404":true,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/[slug]/p","regex":"^/([^/]+?)/p(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>[^/]+?)/p(?:/)?$"},{"page":"/[...slug]","regex":"^/(.+?)(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"},{"page":"/checkout","regex":"^/checkout(?:/)?$","routeKeys":{},"namedRegex":"^/checkout(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/s","regex":"^/s(?:/)?$","routeKeys":{},"namedRegex":"^/s(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/
|
|
1
|
+
{"version":3,"pages404":true,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/[slug]/p","regex":"^/([^/]+?)/p(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>[^/]+?)/p(?:/)?$"},{"page":"/[...slug]","regex":"^/(.+?)(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"},{"page":"/checkout","regex":"^/checkout(?:/)?$","routeKeys":{},"namedRegex":"^/checkout(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/s","regex":"^/s(?:/)?$","routeKeys":{},"namedRegex":"^/s(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/index.json$"},{"page":"/404","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/404.json$"},{"page":"/500","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/500.json$"},{"page":"/account","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/account.json$"},{"page":"/checkout","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/checkout.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/login.json$"},{"page":"/s","dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/s.json$"},{"page":"/[slug]/p","routeKeys":{"slug":"slug"},"dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/([^/]+?)/p\\.json$","namedDataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/(?<slug>[^/]+?)/p\\.json$"},{"page":"/[...slug]","routeKeys":{"slug":"slug"},"dataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/Jdc52lXcDWIk2D0wQ\\-Z4p/(?<slug>.+?)\\.json$"}],"i18n":{"locales":["en-US"],"defaultLocale":"en-US"},"rewrites":[]}
|
|
@@ -399,7 +399,7 @@ const CarouselBullets = (0,external_react_.forwardRef)(function Bullets({ id, to
|
|
|
399
399
|
const bulletIndexes = (0,external_react_.useMemo)(() => Array(totalQuantity).fill(0), [totalQuantity]);
|
|
400
400
|
return (external_react_default().createElement("div", { ref: ref, "data-fs-carousel-bullets": true, "data-testid": testId, role: "tablist", ...otherProps }, bulletIndexes.map((_, idx) => {
|
|
401
401
|
const isActive = activeBullet === idx;
|
|
402
|
-
return (external_react_default().createElement(Button/* default */.Z, { key: `${id}-${idx}`, role: "tab", tabIndex: -1, "data-fs-carousel-bullet": true, testId: `${testId}-bullet`, onClick: (e) => onClick(e, idx), "aria-label": ariaLabelGenerator(id, idx, isActive), "aria-controls": ariaControlsGenerator?.(idx), "aria-selected": isActive }));
|
|
402
|
+
return (external_react_default().createElement(Button/* default */.Z, { key: `${id}-${idx}`, role: "tab", tabIndex: -1, "data-fs-carousel-bullet": true, testId: `${testId}-bullet`, onClick: (e) => onClick(e, idx), "aria-label": ariaLabelGenerator(id, idx, isActive), "aria-controls": ariaControlsGenerator?.(idx), "aria-selected": isActive, variant: "tertiary" }));
|
|
403
403
|
})));
|
|
404
404
|
});
|
|
405
405
|
/* harmony default export */ const Carousel_CarouselBullets = (CarouselBullets);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 289;
|
|
3
|
+
exports.ids = [289];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
6
|
/***/ 4436:
|
|
@@ -44,7 +44,8 @@ var jsx_runtime_ = __webpack_require__(997);
|
|
|
44
44
|
function ProductGrid_ProductGrid_ProductGrid({
|
|
45
45
|
products,
|
|
46
46
|
page,
|
|
47
|
-
pageSize
|
|
47
|
+
pageSize,
|
|
48
|
+
productCard
|
|
48
49
|
}) {
|
|
49
50
|
const aspectRatio = 1;
|
|
50
51
|
return /*#__PURE__*/jsx_runtime_.jsx(ProductGridSkeleton/* default */.Z, {
|
|
@@ -57,7 +58,8 @@ function ProductGrid_ProductGrid_ProductGrid({
|
|
|
57
58
|
children: /*#__PURE__*/jsx_runtime_.jsx(ProductCard/* default */.Z, {
|
|
58
59
|
product: product,
|
|
59
60
|
index: pageSize * page + idx + 1,
|
|
60
|
-
bordered:
|
|
61
|
+
bordered: productCard?.bordered,
|
|
62
|
+
showDiscountBadge: productCard?.showDiscountBadge,
|
|
61
63
|
aspectRatio: aspectRatio,
|
|
62
64
|
imgProps: {
|
|
63
65
|
width: 150,
|
|
@@ -76,7 +78,7 @@ function ProductGrid_ProductGrid_ProductGrid({
|
|
|
76
78
|
|
|
77
79
|
/***/ }),
|
|
78
80
|
|
|
79
|
-
/***/
|
|
81
|
+
/***/ 5289:
|
|
80
82
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
81
83
|
|
|
82
84
|
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
@@ -87,7 +89,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
87
89
|
/* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3221);
|
|
88
90
|
/* harmony import */ var src_components_product_ProductGrid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4436);
|
|
89
91
|
/* harmony import */ var src_sdk_search_Sentinel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(713);
|
|
90
|
-
/* harmony import */ var _usePageProducts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
92
|
+
/* harmony import */ var _usePageProducts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9521);
|
|
91
93
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(997);
|
|
92
94
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
|
93
95
|
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_usePageProducts__WEBPACK_IMPORTED_MODULE_2__]);
|
|
@@ -102,7 +104,8 @@ _usePageProducts__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.
|
|
|
102
104
|
|
|
103
105
|
function GalleryPage({
|
|
104
106
|
page,
|
|
105
|
-
title
|
|
107
|
+
title,
|
|
108
|
+
productCard
|
|
106
109
|
}) {
|
|
107
110
|
const products = (0,_usePageProducts__WEBPACK_IMPORTED_MODULE_2__/* .useProducts */ .r)(page) ?? [];
|
|
108
111
|
const {
|
|
@@ -117,7 +120,8 @@ function GalleryPage({
|
|
|
117
120
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_product_ProductGrid__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z, {
|
|
118
121
|
products: products,
|
|
119
122
|
page: page,
|
|
120
|
-
pageSize: itemsPerPage
|
|
123
|
+
pageSize: itemsPerPage,
|
|
124
|
+
productCard: productCard
|
|
121
125
|
})]
|
|
122
126
|
});
|
|
123
127
|
}
|
|
@@ -214,12 +214,18 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
214
214
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
|
215
215
|
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_SearchTop__WEBPACK_IMPORTED_MODULE_1__]);
|
|
216
216
|
_SearchTop__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
217
|
+
const _excluded = ["sort"];
|
|
218
|
+
|
|
217
219
|
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; }
|
|
218
220
|
|
|
219
221
|
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; }
|
|
220
222
|
|
|
221
223
|
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; }
|
|
222
224
|
|
|
225
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
226
|
+
|
|
227
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
228
|
+
|
|
223
229
|
|
|
224
230
|
|
|
225
231
|
|
|
@@ -229,7 +235,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
229
235
|
|
|
230
236
|
|
|
231
237
|
function SearchDropdown(_ref) {
|
|
232
|
-
let
|
|
238
|
+
let {
|
|
239
|
+
sort
|
|
240
|
+
} = _ref,
|
|
241
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
242
|
+
|
|
233
243
|
const {
|
|
234
244
|
values: {
|
|
235
245
|
onSearchSelection,
|
|
@@ -239,15 +249,25 @@ function SearchDropdown(_ref) {
|
|
|
239
249
|
}
|
|
240
250
|
} = (0,_faststore_ui__WEBPACK_IMPORTED_MODULE_4__/* .useSearch */ .R)();
|
|
241
251
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_faststore_ui__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
242
|
-
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_SearchHistory__WEBPACK_IMPORTED_MODULE_0__/* .SearchHistory */ .Z, {
|
|
252
|
+
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_SearchHistory__WEBPACK_IMPORTED_MODULE_0__/* .SearchHistory */ .Z, {
|
|
253
|
+
sort: sort
|
|
254
|
+
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_SearchTop__WEBPACK_IMPORTED_MODULE_1__/* .SearchTop */ .S, {
|
|
255
|
+
sort: sort
|
|
256
|
+
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
|
243
257
|
children: terms?.map(({
|
|
244
258
|
value: suggestion
|
|
245
259
|
}) => /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
|
|
246
260
|
term: term,
|
|
247
261
|
suggestion: suggestion,
|
|
248
262
|
linkProps: {
|
|
249
|
-
href: (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_8__/* .formatSearchPath */ .u)(
|
|
250
|
-
|
|
263
|
+
href: (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_8__/* .formatSearchPath */ .u)({
|
|
264
|
+
term: suggestion,
|
|
265
|
+
sort: sort
|
|
266
|
+
}),
|
|
267
|
+
onClick: () => onSearchSelection?.(suggestion, (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_8__/* .formatSearchPath */ .u)({
|
|
268
|
+
term: suggestion,
|
|
269
|
+
sort: sort
|
|
270
|
+
}))
|
|
251
271
|
}
|
|
252
272
|
}, suggestion))
|
|
253
273
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
|
@@ -548,7 +568,7 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
548
568
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
|
|
549
569
|
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_search_useTopSearch__WEBPACK_IMPORTED_MODULE_0__]);
|
|
550
570
|
src_sdk_search_useTopSearch__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
551
|
-
const _excluded = ["topTerms"];
|
|
571
|
+
const _excluded = ["topTerms", "sort"];
|
|
552
572
|
|
|
553
573
|
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; }
|
|
554
574
|
|
|
@@ -567,7 +587,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
567
587
|
|
|
568
588
|
function SearchTop(_ref) {
|
|
569
589
|
let {
|
|
570
|
-
topTerms
|
|
590
|
+
topTerms,
|
|
591
|
+
sort
|
|
571
592
|
} = _ref,
|
|
572
593
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
573
594
|
|
|
@@ -591,8 +612,14 @@ function SearchTop(_ref) {
|
|
|
591
612
|
value: term.value,
|
|
592
613
|
index: index,
|
|
593
614
|
linkProps: {
|
|
594
|
-
href: (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_5__/* .formatSearchPath */ .u)(
|
|
595
|
-
|
|
615
|
+
href: (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_5__/* .formatSearchPath */ .u)({
|
|
616
|
+
term: term.value,
|
|
617
|
+
sort: sort
|
|
618
|
+
}),
|
|
619
|
+
onClick: () => onSearchSelection?.(term.value, (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_5__/* .formatSearchPath */ .u)({
|
|
620
|
+
term: term.value,
|
|
621
|
+
sort: sort
|
|
622
|
+
}))
|
|
596
623
|
}
|
|
597
624
|
}, index))
|
|
598
625
|
}));
|
|
@@ -982,7 +982,7 @@ tslib_1.__exportStar(__webpack_require__(1397), exports);
|
|
|
982
982
|
tslib_1.__exportStar(__webpack_require__(5119), exports);
|
|
983
983
|
tslib_1.__exportStar(__webpack_require__(5248), exports);
|
|
984
984
|
tslib_1.__exportStar(__webpack_require__(8196), exports);
|
|
985
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
985
|
+
tslib_1.__exportStar(__webpack_require__(6569), exports);
|
|
986
986
|
tslib_1.__exportStar(__webpack_require__(9227), exports);
|
|
987
987
|
|
|
988
988
|
|
|
@@ -1106,7 +1106,7 @@ const graphql_1 = __webpack_require__(7343);
|
|
|
1106
1106
|
const type_js_1 = __webpack_require__(8196);
|
|
1107
1107
|
const enum_js_1 = __webpack_require__(775);
|
|
1108
1108
|
const scalar_js_1 = __webpack_require__(5248);
|
|
1109
|
-
const union_js_1 = __webpack_require__(
|
|
1109
|
+
const union_js_1 = __webpack_require__(6569);
|
|
1110
1110
|
const input_type_js_1 = __webpack_require__(6711);
|
|
1111
1111
|
const interface_js_1 = __webpack_require__(7869);
|
|
1112
1112
|
const directives_js_1 = __webpack_require__(6989);
|
|
@@ -1426,7 +1426,7 @@ exports.mergeType = mergeType;
|
|
|
1426
1426
|
|
|
1427
1427
|
/***/ }),
|
|
1428
1428
|
|
|
1429
|
-
/***/
|
|
1429
|
+
/***/ 6569:
|
|
1430
1430
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1431
1431
|
|
|
1432
1432
|
|
|
@@ -4378,7 +4378,7 @@ tslib_1.__exportStar(__webpack_require__(4528), exports);
|
|
|
4378
4378
|
tslib_1.__exportStar(__webpack_require__(4569), exports);
|
|
4379
4379
|
tslib_1.__exportStar(__webpack_require__(7537), exports);
|
|
4380
4380
|
tslib_1.__exportStar(__webpack_require__(3941), exports);
|
|
4381
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4381
|
+
tslib_1.__exportStar(__webpack_require__(2618), exports);
|
|
4382
4382
|
tslib_1.__exportStar(__webpack_require__(6543), exports);
|
|
4383
4383
|
tslib_1.__exportStar(__webpack_require__(2849), exports);
|
|
4384
4384
|
tslib_1.__exportStar(__webpack_require__(8008), exports);
|
|
@@ -4509,7 +4509,7 @@ function getObjectTag(object) {
|
|
|
4509
4509
|
|
|
4510
4510
|
/***/ }),
|
|
4511
4511
|
|
|
4512
|
-
/***/
|
|
4512
|
+
/***/ 2618:
|
|
4513
4513
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4514
4514
|
|
|
4515
4515
|
|
|
@@ -879,9 +879,9 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
879
879
|
/* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2541);
|
|
880
880
|
/* harmony import */ var src_components_cart_CartToggle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1419);
|
|
881
881
|
/* harmony import */ var src_components_search_SearchInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(475);
|
|
882
|
-
/* harmony import */ var
|
|
883
|
-
/* harmony import */ var
|
|
884
|
-
/* harmony import */ var
|
|
882
|
+
/* harmony import */ var src_components_ui_Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7758);
|
|
883
|
+
/* harmony import */ var src_components_ui_Link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1093);
|
|
884
|
+
/* harmony import */ var src_components_ui_Logo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5811);
|
|
885
885
|
/* harmony import */ var _NavbarLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6769);
|
|
886
886
|
/* harmony import */ var _NavbarSlider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(793);
|
|
887
887
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(997);
|
|
@@ -911,6 +911,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
911
911
|
function Navbar({
|
|
912
912
|
cart,
|
|
913
913
|
logo,
|
|
914
|
+
searchInput,
|
|
914
915
|
home,
|
|
915
916
|
links,
|
|
916
917
|
signIn,
|
|
@@ -959,15 +960,17 @@ function Navbar({
|
|
|
959
960
|
width: 32,
|
|
960
961
|
height: 32
|
|
961
962
|
})
|
|
962
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(
|
|
963
|
+
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_Link__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
|
|
963
964
|
href: "/",
|
|
964
965
|
"data-fs-navbar-logo": true,
|
|
965
966
|
prefetch: false,
|
|
966
967
|
title: homeLabel,
|
|
967
968
|
"aria-label": homeLabel,
|
|
968
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(
|
|
969
|
+
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_Logo__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, _objectSpread({}, logo))
|
|
969
970
|
})]
|
|
970
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_search_SearchInput__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
|
971
|
+
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_search_SearchInput__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
|
972
|
+
sort: searchInput?.sort
|
|
973
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_faststore_ui__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
|
971
974
|
searchExpanded: searchExpanded,
|
|
972
975
|
children: [searchExpanded && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
|
973
976
|
"data-fs-button-collapse": true,
|
|
@@ -986,10 +989,11 @@ function Navbar({
|
|
|
986
989
|
ref: searchMobileRef,
|
|
987
990
|
testId: "store-input-mobile",
|
|
988
991
|
buttonTestId: "store-input-mobile-button",
|
|
989
|
-
onSearchClick: handlerExpandSearch
|
|
992
|
+
onSearchClick: handlerExpandSearch,
|
|
993
|
+
sort: searchInput?.sort
|
|
990
994
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(react__WEBPACK_IMPORTED_MODULE_0__.Suspense, {
|
|
991
|
-
fallback: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(
|
|
992
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(
|
|
995
|
+
fallback: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_Button__WEBPACK_IMPORTED_MODULE_4__/* .ButtonSignInFallback */ .A, {}),
|
|
996
|
+
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_Button__WEBPACK_IMPORTED_MODULE_4__/* .ButtonSignIn */ .p, _objectSpread({}, signInButton))
|
|
993
997
|
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_cart_CartToggle__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _objectSpread({}, cart))]
|
|
994
998
|
})]
|
|
995
999
|
})
|
|
@@ -1340,7 +1344,7 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
1340
1344
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);
|
|
1341
1345
|
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_search_useSuggestions__WEBPACK_IMPORTED_MODULE_3__]);
|
|
1342
1346
|
src_sdk_search_useSuggestions__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
1343
|
-
const _excluded = ["onSearchClick", "buttonTestId", "containerStyle"];
|
|
1347
|
+
const _excluded = ["onSearchClick", "buttonTestId", "containerStyle", "sort"];
|
|
1344
1348
|
|
|
1345
1349
|
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; }
|
|
1346
1350
|
|
|
@@ -1377,7 +1381,8 @@ const SearchInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRe
|
|
|
1377
1381
|
let {
|
|
1378
1382
|
onSearchClick,
|
|
1379
1383
|
buttonTestId = 'fs-search-button',
|
|
1380
|
-
containerStyle
|
|
1384
|
+
containerStyle,
|
|
1385
|
+
sort
|
|
1381
1386
|
} = _ref,
|
|
1382
1387
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
1383
1388
|
|
|
@@ -1432,7 +1437,10 @@ const SearchInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRe
|
|
|
1432
1437
|
placeholder: "Search everything at the store",
|
|
1433
1438
|
onChange: e => setSearchQuery(e.target.value),
|
|
1434
1439
|
onSubmit: term => {
|
|
1435
|
-
const path = (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_9__/* .formatSearchPath */ .u)(
|
|
1440
|
+
const path = (0,src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_9__/* .formatSearchPath */ .u)({
|
|
1441
|
+
term,
|
|
1442
|
+
sort: sort
|
|
1443
|
+
});
|
|
1436
1444
|
onSearchSelection(term, path);
|
|
1437
1445
|
router.push(path);
|
|
1438
1446
|
},
|
|
@@ -1440,7 +1448,9 @@ const SearchInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRe
|
|
|
1440
1448
|
value: searchQuery
|
|
1441
1449
|
}, otherProps)), searchDropdownVisible && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(react__WEBPACK_IMPORTED_MODULE_1__.Suspense, {
|
|
1442
1450
|
fallback: null,
|
|
1443
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(SearchDropdown, {
|
|
1451
|
+
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx(SearchDropdown, {
|
|
1452
|
+
sort: sort
|
|
1453
|
+
})
|
|
1444
1454
|
})]
|
|
1445
1455
|
});
|
|
1446
1456
|
});
|
|
@@ -1881,6 +1891,7 @@ _navigation_Navbar__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies_
|
|
|
1881
1891
|
|
|
1882
1892
|
function Navbar({
|
|
1883
1893
|
logo,
|
|
1894
|
+
searchInput,
|
|
1884
1895
|
cartIcon,
|
|
1885
1896
|
signInButton,
|
|
1886
1897
|
navigation: {
|
|
@@ -1903,6 +1914,7 @@ function Navbar({
|
|
|
1903
1914
|
home: home,
|
|
1904
1915
|
menu: menu,
|
|
1905
1916
|
logo: logo,
|
|
1917
|
+
searchInput: searchInput,
|
|
1906
1918
|
cart: cartIcon,
|
|
1907
1919
|
links: pageLinks,
|
|
1908
1920
|
signIn: {
|
|
@@ -2352,12 +2364,16 @@ __webpack_async_result__();
|
|
|
2352
2364
|
/* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2339);
|
|
2353
2365
|
/* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2524);
|
|
2354
2366
|
|
|
2355
|
-
const formatSearchPath =
|
|
2367
|
+
const formatSearchPath = ({
|
|
2368
|
+
term,
|
|
2369
|
+
sort
|
|
2370
|
+
}) => {
|
|
2356
2371
|
const {
|
|
2357
2372
|
pathname,
|
|
2358
2373
|
search
|
|
2359
2374
|
} = (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)((0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_1__/* .initialize */ .j)({
|
|
2360
2375
|
term,
|
|
2376
|
+
sort,
|
|
2361
2377
|
base: '/s'
|
|
2362
2378
|
}));
|
|
2363
2379
|
return `${pathname}${search}`;
|