@faststore/core 2.0.134-alpha.0 → 2.0.135-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 -0
- package/.next/build-manifest.json +132 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/config.json +7 -0
- package/.next/cache/eslint/.cache_1gneedd +1 -0
- package/.next/cache/next-server.js.nft.json +1 -0
- 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/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +48 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/chunks/104.js +703 -0
- package/.next/server/chunks/120.js +437 -0
- package/.next/server/chunks/123.js +58 -0
- package/.next/server/chunks/143.js +106 -0
- package/.next/server/chunks/183.js +80 -0
- package/.next/server/chunks/247.js +61 -0
- package/.next/server/chunks/256.js +1786 -0
- package/.next/server/chunks/280.js +324 -0
- package/.next/server/chunks/287.js +58 -0
- package/.next/server/chunks/312.js +670 -0
- package/.next/server/chunks/336.js +821 -0
- package/.next/server/chunks/350.js +142 -0
- package/.next/server/chunks/368.js +253 -0
- package/.next/server/chunks/401.js +7241 -0
- package/.next/server/chunks/431.js +7241 -0
- package/.next/server/chunks/502.js +600 -0
- package/.next/server/chunks/557.js +132 -0
- package/.next/server/chunks/576.js +80 -0
- package/.next/server/chunks/597.js +169 -0
- package/.next/server/chunks/608.js +644 -0
- package/.next/server/chunks/644.js +235 -0
- package/.next/server/chunks/664.js +3401 -0
- package/.next/server/chunks/676.js +32 -0
- package/.next/server/chunks/701.js +87 -0
- package/.next/server/chunks/74.js +2520 -0
- package/.next/server/chunks/746.js +225 -0
- package/.next/server/chunks/82.js +371 -0
- package/.next/server/chunks/854.js +72 -0
- package/.next/server/chunks/859.js +959 -0
- package/.next/server/chunks/886.js +120 -0
- package/.next/server/chunks/98.js +124 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/pages/404.js +393 -0
- package/.next/server/pages/404.js.nft.json +1 -0
- package/.next/server/pages/500.js +395 -0
- package/.next/server/pages/500.js.nft.json +1 -0
- package/.next/server/pages/[...slug].js +708 -0
- package/.next/server/pages/[...slug].js.nft.json +1 -0
- package/.next/server/pages/[slug]/p.js +2388 -0
- package/.next/server/pages/[slug]/p.js.nft.json +1 -0
- package/.next/server/pages/_app.js +368 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +304 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +164 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages/account.js +370 -0
- package/.next/server/pages/account.js.nft.json +1 -0
- package/.next/server/pages/api/graphql.js +315 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -0
- package/.next/server/pages/api/preview.js +118 -0
- package/.next/server/pages/api/preview.js.nft.json +1 -0
- package/.next/server/pages/checkout.js +370 -0
- package/.next/server/pages/checkout.js.nft.json +1 -0
- package/.next/server/pages/en-US/404.html +81 -0
- package/.next/server/pages/en-US/404.json +1 -0
- package/.next/server/pages/en-US/500.html +81 -0
- package/.next/server/pages/en-US/500.json +1 -0
- package/.next/server/pages/en-US/account.html +81 -0
- package/.next/server/pages/en-US/account.json +1 -0
- package/.next/server/pages/en-US/checkout.html +81 -0
- package/.next/server/pages/en-US/checkout.json +1 -0
- package/.next/server/pages/en-US/login.html +81 -0
- package/.next/server/pages/en-US/login.json +1 -0
- package/.next/server/pages/en-US/s.html +81 -0
- package/.next/server/pages/en-US/s.json +1 -0
- package/.next/server/pages/en-US.html +81 -0
- package/.next/server/pages/en-US.json +1 -0
- package/.next/server/pages/index.js +967 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/login.js +375 -0
- package/.next/server/pages/login.js.nft.json +1 -0
- package/.next/server/pages/s.js +438 -0
- package/.next/server/pages/s.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +16 -0
- package/.next/server/webpack-api-runtime.js +229 -0
- package/.next/server/webpack-runtime.js +229 -0
- package/.next/static/RfATetV4YfvX5h6l_dzKd/_buildManifest.js +1 -0
- package/.next/static/RfATetV4YfvX5h6l_dzKd/_ssgManifest.js +1 -0
- package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
- package/.next/static/chunks/170.c17ce564bb568265.js +1 -0
- package/.next/static/chunks/202-80a2f2380b08e20d.js +1 -0
- package/.next/static/chunks/226.b57e10ad9932f88c.js +1 -0
- package/.next/static/chunks/336.0846f48eccce57e4.js +1 -0
- package/.next/static/chunks/366-4a0572a47e2225d9.js +1 -0
- package/.next/static/chunks/391-47b923ef44945418.js +1 -0
- package/.next/static/chunks/495.8ffebac98e9475dc.js +1 -0
- package/.next/static/chunks/502.7fd4f230c33d8eca.js +1 -0
- package/.next/static/chunks/545-1d3d08edfd2ee4c6.js +1 -0
- package/.next/static/chunks/597.c5cf3fbeae5ceb63.js +1 -0
- package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
- package/.next/static/chunks/706-cbadf253bebb094f.js +1 -0
- package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
- package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
- package/.next/static/chunks/main-fd466221927468fd.js +1 -0
- package/.next/static/chunks/pages/404-eb7e8c41c852c36d.js +1 -0
- package/.next/static/chunks/pages/500-7dc597fd3f74e419.js +1 -0
- package/.next/static/chunks/pages/[...slug]-a0cf0c079a55bf65.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-d740b4fba658ca99.js +1 -0
- package/.next/static/chunks/pages/_app-3e4e7e579cb0681a.js +1 -0
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
- package/.next/static/chunks/pages/account-7f4c51b747b4edd0.js +1 -0
- package/.next/static/chunks/pages/checkout-cb8871ab88a1471f.js +1 -0
- package/.next/static/chunks/pages/index-efc87faefbfc1c42.js +1 -0
- package/.next/static/chunks/pages/login-9490b01a047906c0.js +1 -0
- package/.next/static/chunks/pages/s-9fdb82cf9875f2ed.js +1 -0
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/static/chunks/webpack-ce3960dc6e16b370.js +1 -0
- package/.next/static/css/161ccac1909562f3.css +1 -0
- package/.next/static/css/48af598df5fe042d.css +1 -0
- package/.next/static/css/587c27bbda64e700.css +1 -0
- package/.next/static/css/5bd04b22f4d69d95.css +1 -0
- package/.next/static/css/73426e282e7b3685.css +1 -0
- package/.next/static/css/9c478df3dd8312bc.css +1 -0
- package/.next/static/css/9cd06a344b528d1d.css +1 -0
- package/.next/static/css/bc39c02d387d74b8.css +1 -0
- package/.next/static/css/c4e7bbc97da4a4ee.css +1 -0
- package/.next/static/css/e02cdad8fc000339.css +1 -0
- package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
- package/.next/trace +68 -0
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/public/~partytown/debug/partytown-atomics.js +556 -0
- package/public/~partytown/debug/partytown-media.js +374 -0
- package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
- package/public/~partytown/debug/partytown-sw.js +59 -0
- package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
- package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
- package/public/~partytown/debug/partytown.js +72 -0
- package/public/~partytown/partytown-atomics.js +2 -0
- package/public/~partytown/partytown-media.js +2 -0
- package/public/~partytown/partytown-sw.js +2 -0
- package/public/~partytown/partytown.js +2 -0
- package/src/components/navigation/Navbar/Navbar.tsx +1 -0
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +6 -1
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +1 -1
- package/src/components/product/ProductCard/ProductCard.tsx +1 -0
- package/src/components/sections/Hero/Hero.tsx +1 -1
- package/src/components/sections/ProductGallery/ProductGallery.tsx +0 -1
- package/src/components/sections/ProductGallery/ProductGalleryPage.tsx +2 -42
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +3 -3
- package/src/components/ui/Gift/Gift.tsx +2 -5
- package/src/components/navigation/NavbarSlider/section.module.scss +0 -26
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
exports.id = 183;
|
|
2
|
+
exports.ids = [183];
|
|
3
|
+
exports.modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 7183:
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
seo: {
|
|
10
|
+
title: 'NextJSStore',
|
|
11
|
+
description: 'Fast Demo Store',
|
|
12
|
+
titleTemplate: '%s | FastStore',
|
|
13
|
+
author: 'Store Framework'
|
|
14
|
+
},
|
|
15
|
+
// Theming
|
|
16
|
+
theme: 'custom-theme',
|
|
17
|
+
// Ecommerce Platform
|
|
18
|
+
platform: 'vtex',
|
|
19
|
+
// Platform specific configs for API
|
|
20
|
+
api: {
|
|
21
|
+
storeId: 'storeframework',
|
|
22
|
+
workspace: 'master',
|
|
23
|
+
environment: 'vtexcommercestable',
|
|
24
|
+
hideUnavailableItems: true
|
|
25
|
+
},
|
|
26
|
+
// Default session
|
|
27
|
+
session: {
|
|
28
|
+
currency: {
|
|
29
|
+
code: 'USD',
|
|
30
|
+
symbol: '$'
|
|
31
|
+
},
|
|
32
|
+
locale: 'en-US',
|
|
33
|
+
channel: '{"salesChannel":"1","regionId":""}',
|
|
34
|
+
country: 'USA',
|
|
35
|
+
postalCode: null,
|
|
36
|
+
geoCoordinates: null,
|
|
37
|
+
person: null
|
|
38
|
+
},
|
|
39
|
+
// Default cart
|
|
40
|
+
cart: {
|
|
41
|
+
id: '',
|
|
42
|
+
items: [],
|
|
43
|
+
messages: [],
|
|
44
|
+
shouldSplitItem: true
|
|
45
|
+
},
|
|
46
|
+
// Production URLs
|
|
47
|
+
storeUrl: 'https://vtexfaststore.com',
|
|
48
|
+
secureSubdomain: 'https://secure.vtexfaststore.com',
|
|
49
|
+
checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
|
|
50
|
+
loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
|
|
51
|
+
accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
|
|
52
|
+
// Lighthouse CI
|
|
53
|
+
lighthouse: {
|
|
54
|
+
server: process.env.BASE_SITE_URL || 'http://localhost:3000',
|
|
55
|
+
pages: {
|
|
56
|
+
home: '/',
|
|
57
|
+
pdp: '/apple-magic-mouse/p',
|
|
58
|
+
collection: '/office'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
// E2E CI
|
|
62
|
+
cypress: {
|
|
63
|
+
pages: {
|
|
64
|
+
home: '/',
|
|
65
|
+
pdp: '/apple-magic-mouse/p',
|
|
66
|
+
collection: '/office',
|
|
67
|
+
collection_filtered: '/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
|
|
68
|
+
search: '/s?q=orange'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
analytics: {
|
|
72
|
+
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
|
|
73
|
+
gtmContainerId: 'GTM-PGHZ95N'
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/***/ })
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 247;
|
|
3
|
+
exports.ids = [247];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 7549:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2691);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const Price = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Price({ value, as: Component = 'span', variant = 'selling', testId = 'fs-price', formatter = (price) => price, SRText, ...otherProps }, ref) {
|
|
18
|
+
const formattedPrice = formatter(value, variant);
|
|
19
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, { ref: ref, "data-fs-price": true, "data-fs-price-variant": variant, "data-testid": testId, ...otherProps },
|
|
20
|
+
SRText && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { text: SRText }),
|
|
21
|
+
formattedPrice));
|
|
22
|
+
});
|
|
23
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Price);
|
|
24
|
+
//# sourceMappingURL=Price.js.map
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 5346:
|
|
29
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
30
|
+
|
|
31
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32
|
+
/* harmony export */ "P": () => (/* binding */ useFormattedPrice)
|
|
33
|
+
/* harmony export */ });
|
|
34
|
+
/* unused harmony export usePriceFormatter */
|
|
35
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
36
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
37
|
+
/* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7295);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const usePriceFormatter = ({
|
|
41
|
+
decimals
|
|
42
|
+
} = {}) => {
|
|
43
|
+
const {
|
|
44
|
+
currency,
|
|
45
|
+
locale
|
|
46
|
+
} = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
|
|
47
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(price => Intl.NumberFormat(locale, {
|
|
48
|
+
style: 'currency',
|
|
49
|
+
currency: currency.code,
|
|
50
|
+
minimumFractionDigits: decimals ? 2 : 0
|
|
51
|
+
}).format(price), [currency.code, locale, decimals]);
|
|
52
|
+
};
|
|
53
|
+
const useFormattedPrice = price => {
|
|
54
|
+
const formatter = usePriceFormatter();
|
|
55
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => formatter(price), [formatter, price]);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/***/ })
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
;
|