@faststore/core 3.99.1 → 4.0.0-dev.4
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/.turbo/turbo-generate.log +29 -0
- package/.turbo/turbo-test.log +47 -16
- package/@generated/cached-operations.json +24 -0
- package/@generated/gql.ts +134 -210
- package/@generated/graphql.ts +1628 -3037
- package/@generated/index.ts +1 -1
- package/@generated/persisted-documents.json +1 -1
- package/@generated/schema.graphql +1854 -1743
- package/CHANGELOG.md +28 -4
- package/README.md +2 -1
- package/api/index.ts +6 -7
- package/cms/faststore/base.jsonc +1 -1
- package/cms/faststore/components/cms_component__alert.jsonc +5 -1
- package/cms/faststore/components/cms_component__bannernewsletter.jsonc +5 -1
- package/cms/faststore/components/cms_component__bannertext.jsonc +5 -1
- package/cms/faststore/components/cms_component__breadcrumb.jsonc +16 -4
- package/cms/faststore/components/cms_component__cartsidebar.jsonc +21 -1
- package/cms/faststore/components/cms_component__children.jsonc +5 -1
- package/cms/faststore/components/cms_component__crosssellingshelf.jsonc +5 -1
- package/cms/faststore/components/cms_component__emptystate.jsonc +8 -3
- package/cms/faststore/components/cms_component__footer.jsonc +9 -3
- package/cms/faststore/components/cms_component__hero.jsonc +5 -1
- package/cms/faststore/components/cms_component__incentives.jsonc +5 -1
- package/cms/faststore/components/cms_component__navbar.jsonc +139 -1
- package/cms/faststore/components/cms_component__newsletter.jsonc +5 -1
- package/cms/faststore/components/cms_component__productdetails.jsonc +33 -1
- package/cms/faststore/components/cms_component__productgallery.jsonc +113 -15
- package/cms/faststore/components/cms_component__productshelf.jsonc +5 -1
- package/cms/faststore/components/cms_component__producttiles.jsonc +5 -1
- package/cms/faststore/components/cms_component__regionbar.jsonc +5 -1
- package/cms/faststore/components/cms_component__regionmodal.jsonc +5 -1
- package/cms/faststore/components/cms_component__regionpopover.jsonc +5 -1
- package/cms/faststore/components/cms_component__scrolltotopbutton.jsonc +29 -0
- package/cms/faststore/components/cms_component__search.jsonc +5 -1
- package/cms/faststore/content-types.json +115 -0
- package/cms/faststore/pages/cms_content_type__globalsections.jsonc +52 -0
- package/cms/faststore/pages/cms_content_type__home.jsonc +6 -0
- package/cms/faststore/pages/cms_content_type__landingpage.jsonc +8 -1
- package/cms/faststore/pages/cms_content_type__pdp.jsonc +6 -0
- package/cms/faststore/pages/cms_content_type__plp.jsonc +17 -0
- package/cms/faststore/pages/cms_content_type__search.jsonc +17 -0
- package/cms/faststore/schema.json +547 -43
- package/cms/faststore/sections.json +330 -21
- package/discovery.config.default.js +49 -3
- package/next-env.d.ts +2 -1
- package/next.config.js +48 -26
- package/package.json +47 -60
- package/public/icons.svg +5 -1
- package/scripts/i18n.js +76 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +2 -1
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss +25 -24
- package/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss +8 -6
- package/src/components/account/MyAccountLayout/styles.scss +16 -12
- package/src/components/account/MyAccountMenu/styles.scss +21 -22
- package/src/components/account/MyAccountUserDetails/styles.module.scss +4 -2
- package/src/components/account/components/MyAccountAccordion/styles.scss +4 -2
- package/src/components/account/components/MyAccountHeader/styles.scss +3 -1
- package/src/components/account/components/MyAccountTable/styles.scss +6 -4
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +21 -19
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +3 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +5 -3
- package/src/components/account/orders/MyAccountListOrders/styles.module.scss +25 -22
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountBudgetsCard/styles.scss +7 -5
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss +7 -5
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss +3 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss +8 -6
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss +3 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss +8 -6
- package/src/components/account/orders/MyAccountOrderDetails/section.module.scss +36 -43
- package/src/components/account/profile/profile.module.scss +3 -1
- package/src/components/account/section.module.scss +3 -1
- package/src/components/account/security/styles.module.scss +14 -8
- package/src/components/cart/CartSidebar/CartSidebar.tsx +10 -1
- package/src/components/cart/CartSidebar/section.module.scss +19 -17
- package/src/components/cart/EmptyCart/EmptyCart.tsx +12 -4
- package/src/components/cms/GlobalSections.tsx +12 -12
- package/src/components/cms/RenderSections.tsx +10 -2
- package/src/components/cms/plp/Components.ts +9 -0
- package/src/components/common/Alert/section.module.scss +10 -5
- package/src/components/common/PreviewTag/section.module.scss +48 -40
- package/src/components/common/Toast/section.module.scss +4 -2
- package/src/components/localization/LocalizationSelector/LocalizationSelector.tsx +320 -0
- package/src/components/localization/LocalizationSelector/index.ts +1 -0
- package/src/components/localization/LocalizationSelector/section.module.scss +18 -0
- package/src/components/localization/index.ts +1 -0
- package/src/components/navigation/Navbar/Navbar.tsx +49 -1
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +19 -1
- package/src/components/navigation/NavbarSlider/section.module.scss +12 -10
- package/src/components/product/OutOfStock/OutOfStock.tsx +6 -1
- package/src/components/product/ProductCard/ProductCard.tsx +1 -1
- package/src/components/region/RegionModal/RegionModal.tsx +4 -1
- package/src/components/region/RegionModal/section.module.scss +10 -8
- package/src/components/region/RegionPopover/RegionPopover.tsx +6 -5
- package/src/components/region/RegionPopover/section.module.scss +9 -7
- package/src/components/region/RegionSlider/RegionSlider.tsx +5 -2
- package/src/components/region/RegionSlider/section.module.scss +16 -13
- package/src/components/search/Filter/FilterDeliveryMethodFacet.tsx +5 -5
- package/src/components/search/Filter/FilterDesktop.tsx +13 -4
- package/src/components/search/Filter/FilterSlider.tsx +18 -6
- package/src/components/search/Filter/section.module.scss +21 -19
- package/src/components/search/SearchDropdown/SearchDropdown.tsx +9 -7
- package/src/components/search/SearchHistory/SearchHistory.tsx +7 -2
- package/src/components/search/SearchInput/SearchInput.tsx +21 -8
- package/src/components/search/SearchProductItem/SearchProductItem.tsx +10 -3
- package/src/components/search/SearchTop/SearchTop.tsx +30 -24
- package/src/components/search/Sort/Sort.tsx +17 -19
- package/src/components/sections/Alert/Alert.tsx +6 -1
- package/src/components/sections/BannerNewsletter/section.module.scss +6 -4
- package/src/components/sections/BannerText/section.module.scss +5 -3
- package/src/components/sections/Breadcrumb/Breadcrumb.tsx +6 -2
- package/src/components/sections/Breadcrumb/section.module.scss +7 -5
- package/src/components/sections/EmptyState/section.module.scss +5 -3
- package/src/components/sections/Footer/Footer.tsx +1 -5
- package/src/components/sections/Footer/section.module.scss +10 -8
- package/src/components/sections/Hero/Hero.tsx +3 -1
- package/src/components/sections/Hero/section.module.scss +6 -4
- package/src/components/sections/Incentives/section.module.scss +5 -3
- package/src/components/sections/Navbar/Navbar.tsx +45 -0
- package/src/components/sections/Navbar/section.module.scss +34 -33
- package/src/components/sections/Newsletter/section.module.scss +10 -8
- package/src/components/sections/ProductDetails/ProductDetails.tsx +23 -1
- package/src/components/sections/ProductDetails/section.module.scss +32 -30
- package/src/components/sections/ProductGallery/EmptyGallery.tsx +13 -16
- package/src/components/sections/ProductGallery/section.module.scss +42 -39
- package/src/components/sections/ProductShelf/section.module.scss +22 -17
- package/src/components/sections/ProductTiles/section.module.scss +15 -13
- package/src/components/sections/RegionBar/section.module.scss +5 -3
- package/src/components/sections/ScrollToTopButton/ScrollToTopButton.tsx +4 -3
- package/src/components/sections/ScrollToTopButton/section.module.scss +4 -2
- package/src/components/templates/LandingPage/LandingPage.tsx +22 -16
- package/src/components/templates/ProductListingPage/ProductListing.tsx +1 -13
- package/src/components/templates/ProductListingPage/ProductListingPage.tsx +8 -3
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +14 -11
- package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +2 -1
- package/src/components/ui/Button/ButtonSignIn/ButtonSignInFallback/ButtonSignInFallback.tsx +3 -1
- package/src/components/ui/Link/Link.tsx +19 -2
- package/src/components/ui/LinkButton/LinkButton.tsx +28 -0
- package/src/components/ui/LinkButton/index.ts +2 -0
- package/src/components/ui/LocalizationButton/LocalizationButton.tsx +124 -0
- package/src/components/ui/LocalizationButton/index.ts +1 -0
- package/src/components/ui/PickupPoints/PickupPointCards.tsx +2 -4
- package/src/components/ui/ProductComparison/ProductComparisonSidebar.tsx +34 -17
- package/src/components/ui/ProductDescription/ProductDescription.tsx +8 -3
- package/src/components/ui/ProductDetails/AddToCartLoadingSkeleton.tsx +6 -2
- package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +17 -5
- package/src/components/ui/ProductGallery/ProductGallery.tsx +7 -3
- package/src/components/ui/ProductGallery/ProductGalleryPage.tsx +1 -3
- package/src/components/ui/ShippingSimulation/ShippingSimulation.tsx +6 -1
- package/src/customizations/src/styles/custom-mixins.scss +0 -2
- package/src/experimental/index.ts +26 -0
- package/src/experimental/myAccountServerSideProps.ts +11 -2
- package/src/experimental/searchServerSideFunctions/getServerSideProps.ts +13 -7
- package/src/experimental/searchServerSideFunctions/getStaticProps.ts +5 -4
- package/src/instrumentation.ts +20 -6
- package/src/pages/404.tsx +5 -4
- package/src/pages/500.tsx +5 -4
- package/src/pages/[...slug].tsx +7 -4
- package/src/pages/[slug]/p.tsx +26 -8
- package/src/pages/_app.tsx +9 -1
- package/src/pages/api/fs/logout.ts +3 -2
- package/src/pages/api/graphql.ts +7 -23
- package/src/pages/api/preview.ts +21 -8
- package/src/pages/checkout.tsx +15 -5
- package/src/pages/index.tsx +19 -10
- package/src/pages/login.tsx +5 -4
- package/src/pages/pvt/account/403.tsx +11 -2
- package/src/pages/pvt/account/404.tsx +13 -3
- package/src/pages/pvt/account/index.tsx +6 -4
- package/src/pages/pvt/account/orders/[id].tsx +11 -3
- package/src/pages/pvt/account/orders/index.tsx +11 -3
- package/src/pages/pvt/account/profile.tsx +11 -2
- package/src/pages/pvt/account/security.tsx +11 -2
- package/src/pages/pvt/account/user-details.tsx +11 -2
- package/src/pages/s.tsx +26 -6
- package/src/proxy.ts +154 -0
- package/src/sdk/account/refreshToken.ts +4 -4
- package/src/sdk/account/useReorder.ts +8 -2
- package/src/sdk/analytics/platform/vtex/search.ts +3 -2
- package/src/sdk/cart/redirectToCheckout.ts +14 -8
- package/src/sdk/cart/useCheckoutButton.ts +7 -1
- package/src/sdk/deliveryPromise/useDeliveryPromise.ts +10 -18
- package/src/sdk/graphql/request.ts +102 -50
- package/src/sdk/localization/bindingSelector.ts +91 -0
- package/src/sdk/localization/index.ts +4 -0
- package/src/sdk/localization/match-url.ts +64 -0
- package/src/sdk/localization/types.ts +31 -0
- package/src/sdk/localization/useBindingSelector.ts +183 -0
- package/src/sdk/localization/useLocaleValidation.ts +49 -0
- package/src/sdk/localization/useLocalizationConfig.tsx +160 -0
- package/src/sdk/offer/fetcher.ts +3 -2
- package/src/sdk/product/useLocalizedVariables.ts +1 -1
- package/src/sdk/product/usePageProductsQuery.ts +2 -2
- package/src/sdk/product/useProductGalleryQuery.ts +1 -2
- package/src/sdk/product/useProductLink.ts +3 -1
- package/src/sdk/search/formatSearchPath.ts +28 -3
- package/src/sdk/search/state.ts +22 -13
- package/src/sdk/search/useSearchBase.ts +10 -0
- package/src/sdk/search/useSearchHistory.ts +41 -7
- package/src/sdk/session/index.ts +21 -3
- package/src/sdk/shipping/useShippingSimulation.ts +10 -2
- package/src/sdk/tsconfig.json +6 -0
- package/src/sdk/ui/useLink.ts +48 -0
- package/src/server/cms/global.ts +40 -0
- package/src/server/cms/index.ts +18 -10
- package/src/server/cms/pdp.ts +1 -0
- package/src/server/cms/plp.ts +3 -0
- package/src/server/content/service.ts +36 -24
- package/src/server/content/types.ts +10 -3
- package/src/server/index.ts +27 -20
- package/src/server/options.ts +27 -2
- package/src/styles/global/index.scss +10 -7
- package/src/styles/main.scss +3 -3
- package/src/typings/locales.ts +41 -0
- package/src/utils/fetchProductGallerySSR.ts +3 -1
- package/src/utils/getBaseDomain.ts +2 -1
- package/src/utils/getRequestHostname.ts +26 -0
- package/src/utils/globalSettings.ts +11 -0
- package/src/utils/localization/bindingPaths.ts +337 -0
- package/src/utils/localization/validateLocaleForHostname.ts +69 -0
- package/src/utils/localization/withLocaleValidation.ts +36 -0
- package/src/utils/utilities.ts +22 -0
- package/test/pages/api/preview.test.ts +93 -0
- package/test/sdk/localization/bindingSelector.test.ts +246 -0
- package/test/sdk/localization/store-url.browser.test.ts +140 -0
- package/test/sdk/localization/store-url.test.ts +96 -0
- package/test/sdk/localization/useBindingSelector.test.tsx +219 -0
- package/test/sdk/search/useSearchHistory.test.ts +222 -0
- package/test/server/cms/index.test.ts +3 -4
- package/test/server/content/service.test.ts +98 -0
- package/test/server/index.test.ts +10 -22
- package/test/utils/cookieCacheBusting.test.ts +32 -24
- package/test/utils/getRequestHostname.test.ts +71 -0
- package/test/utils/localization/bindingPaths.test.ts +706 -0
- package/test/utils/match-url.test.ts +388 -0
- package/tsconfig.json +11 -3
- package/vitest.config.ts +61 -0
- package/.next/BUILD_ID +0 -1
- package/.next/build-manifest.json +0 -197
- package/.next/cache/.tsbuildinfo +0 -1
- package/.next/cache/config.json +0 -7
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-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 +0 -1
- package/.next/images-manifest.json +0 -1
- package/.next/next-minimal-server.js.nft.json +0 -1
- package/.next/next-server.js.nft.json +0 -1
- package/.next/package.json +0 -1
- package/.next/prerender-manifest.js +0 -1
- package/.next/prerender-manifest.json +0 -1
- package/.next/react-loadable-manifest.json +0 -478
- package/.next/required-server-files.json +0 -1
- package/.next/routes-manifest.json +0 -1
- package/.next/server/chunks/1280.js +0 -1
- package/.next/server/chunks/1454.js +0 -1
- package/.next/server/chunks/1554.js +0 -1
- package/.next/server/chunks/1607.js +0 -1
- package/.next/server/chunks/1780.js +0 -1
- package/.next/server/chunks/1917.js +0 -1
- package/.next/server/chunks/1972.js +0 -1
- package/.next/server/chunks/2230.js +0 -1
- package/.next/server/chunks/2249.js +0 -1
- package/.next/server/chunks/2430.js +0 -1
- package/.next/server/chunks/2445.js +0 -12
- package/.next/server/chunks/2570.js +0 -1
- package/.next/server/chunks/2792.js +0 -1
- package/.next/server/chunks/2903.js +0 -1
- package/.next/server/chunks/294.js +0 -1
- package/.next/server/chunks/2955.js +0 -1
- package/.next/server/chunks/3006.js +0 -1
- package/.next/server/chunks/3029.js +0 -1
- package/.next/server/chunks/3060.js +0 -1
- package/.next/server/chunks/3408.js +0 -1
- package/.next/server/chunks/3483.js +0 -1
- package/.next/server/chunks/3683.js +0 -1
- package/.next/server/chunks/3836.js +0 -1
- package/.next/server/chunks/3890.js +0 -494
- package/.next/server/chunks/3922.js +0 -1
- package/.next/server/chunks/3945.js +0 -1
- package/.next/server/chunks/3951.js +0 -7
- package/.next/server/chunks/416.js +0 -1
- package/.next/server/chunks/4194.js +0 -1
- package/.next/server/chunks/4365.js +0 -1
- package/.next/server/chunks/4451.js +0 -1
- package/.next/server/chunks/4803.js +0 -1
- package/.next/server/chunks/4913.js +0 -13
- package/.next/server/chunks/5402.js +0 -1
- package/.next/server/chunks/5723.js +0 -13
- package/.next/server/chunks/5796.js +0 -1
- package/.next/server/chunks/6393.js +0 -1
- package/.next/server/chunks/6457.js +0 -6
- package/.next/server/chunks/6698.js +0 -1
- package/.next/server/chunks/6804.js +0 -6
- package/.next/server/chunks/6886.js +0 -1
- package/.next/server/chunks/7098.js +0 -9
- package/.next/server/chunks/7169.js +0 -1
- package/.next/server/chunks/7228.js +0 -1
- package/.next/server/chunks/7275.js +0 -1
- package/.next/server/chunks/7371.js +0 -1
- package/.next/server/chunks/7692.js +0 -1
- package/.next/server/chunks/7799.js +0 -1
- package/.next/server/chunks/8068.js +0 -1
- package/.next/server/chunks/83.js +0 -1
- package/.next/server/chunks/831.js +0 -1
- package/.next/server/chunks/8563.js +0 -1
- package/.next/server/chunks/8569.js +0 -1
- package/.next/server/chunks/8687.js +0 -1
- package/.next/server/chunks/870.js +0 -1
- package/.next/server/chunks/8737.js +0 -1
- package/.next/server/chunks/8741.js +0 -1
- package/.next/server/chunks/9088.js +0 -1
- package/.next/server/chunks/9117.js +0 -1
- package/.next/server/chunks/9237.js +0 -1
- package/.next/server/chunks/948.js +0 -3
- package/.next/server/chunks/9563.js +0 -3
- package/.next/server/chunks/9570.js +0 -1
- package/.next/server/chunks/9740.js +0 -1
- package/.next/server/chunks/9853.js +0 -1
- package/.next/server/chunks/9984.js +0 -1
- package/.next/server/chunks/9985.js +0 -1
- package/.next/server/chunks/9990.js +0 -1
- package/.next/server/chunks/ButtonSignIn.js +0 -1
- package/.next/server/chunks/Dropdown.js +0 -1
- package/.next/server/chunks/DropdownButton.js +0 -1
- package/.next/server/chunks/DropdownItem.js +0 -1
- package/.next/server/chunks/DropdownMenu.js +0 -1
- package/.next/server/chunks/FilterSkeleton.js +0 -1
- package/.next/server/chunks/ScrollToTopButton.js +0 -1
- package/.next/server/chunks/UIBannerText.js +0 -1
- package/.next/server/chunks/UISKUMatrixSidebar.js +0 -1
- package/.next/server/chunks/font-manifest.json +0 -1
- package/.next/server/edge-instrumentation.js +0 -2
- package/.next/server/edge-instrumentation.js.map +0 -1
- package/.next/server/edge-runtime-webpack.js +0 -157
- package/.next/server/edge-runtime-webpack.js.map +0 -1
- package/.next/server/font-manifest.json +0 -1
- package/.next/server/functions-config-manifest.json +0 -1
- package/.next/server/instrumentation.js +0 -1
- package/.next/server/instrumentation.js.nft.json +0 -1
- package/.next/server/middleware-build-manifest.js +0 -1
- package/.next/server/middleware-manifest.json +0 -6
- package/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/.next/server/next-font-manifest.js +0 -1
- package/.next/server/next-font-manifest.json +0 -1
- package/.next/server/pages/404.js +0 -1
- package/.next/server/pages/404.js.nft.json +0 -1
- package/.next/server/pages/500.js +0 -1
- package/.next/server/pages/500.js.nft.json +0 -1
- package/.next/server/pages/[...slug].js +0 -1
- package/.next/server/pages/[...slug].js.nft.json +0 -1
- package/.next/server/pages/[slug]/p.js +0 -1
- package/.next/server/pages/[slug]/p.js.nft.json +0 -1
- package/.next/server/pages/_app.js +0 -1
- package/.next/server/pages/_app.js.nft.json +0 -1
- package/.next/server/pages/_document.js +0 -1
- package/.next/server/pages/_document.js.nft.json +0 -1
- package/.next/server/pages/_error.js +0 -1
- package/.next/server/pages/_error.js.nft.json +0 -1
- package/.next/server/pages/api/fs/logout.js +0 -1
- package/.next/server/pages/api/fs/logout.js.nft.json +0 -1
- package/.next/server/pages/api/graphql.js +0 -3
- package/.next/server/pages/api/graphql.js.nft.json +0 -1
- package/.next/server/pages/api/health/live.js +0 -1
- package/.next/server/pages/api/health/live.js.nft.json +0 -1
- package/.next/server/pages/api/health/ready.js +0 -1
- package/.next/server/pages/api/health/ready.js.nft.json +0 -1
- package/.next/server/pages/api/preview.js +0 -1
- package/.next/server/pages/api/preview.js.nft.json +0 -1
- package/.next/server/pages/checkout.js +0 -1
- package/.next/server/pages/checkout.js.nft.json +0 -1
- package/.next/server/pages/en-US/404.html +0 -42
- package/.next/server/pages/en-US/404.json +0 -1
- package/.next/server/pages/en-US/500.html +0 -42
- package/.next/server/pages/en-US/500.json +0 -1
- package/.next/server/pages/en-US/checkout.html +0 -42
- package/.next/server/pages/en-US/checkout.json +0 -1
- package/.next/server/pages/en-US/login.html +0 -42
- package/.next/server/pages/en-US/login.json +0 -1
- package/.next/server/pages/en-US/s.html +0 -42
- package/.next/server/pages/en-US/s.json +0 -1
- package/.next/server/pages/en-US.html +0 -42
- package/.next/server/pages/en-US.json +0 -1
- package/.next/server/pages/index.js +0 -1
- package/.next/server/pages/index.js.nft.json +0 -1
- package/.next/server/pages/login.js +0 -1
- package/.next/server/pages/login.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/403.js +0 -1
- package/.next/server/pages/pvt/account/403.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/404.js +0 -1
- package/.next/server/pages/pvt/account/404.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/[...unknown].js +0 -1
- package/.next/server/pages/pvt/account/[...unknown].js.nft.json +0 -1
- package/.next/server/pages/pvt/account/orders/[id].js +0 -1
- package/.next/server/pages/pvt/account/orders/[id].js.nft.json +0 -1
- package/.next/server/pages/pvt/account/orders.js +0 -1
- package/.next/server/pages/pvt/account/orders.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/profile.js +0 -1
- package/.next/server/pages/pvt/account/profile.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/security.js +0 -1
- package/.next/server/pages/pvt/account/security.js.nft.json +0 -1
- package/.next/server/pages/pvt/account/user-details.js +0 -1
- package/.next/server/pages/pvt/account/user-details.js.nft.json +0 -1
- package/.next/server/pages/pvt/account.js +0 -1
- package/.next/server/pages/pvt/account.js.nft.json +0 -1
- package/.next/server/pages/s.js +0 -1
- package/.next/server/pages/s.js.nft.json +0 -1
- package/.next/server/pages-manifest.json +0 -1
- package/.next/server/webpack-api-runtime.js +0 -1
- package/.next/server/webpack-runtime.js +0 -1
- package/.next/static/NAuY8lqaeBBZf9CMZuYI2/_buildManifest.js +0 -1
- package/.next/static/NAuY8lqaeBBZf9CMZuYI2/_ssgManifest.js +0 -1
- package/.next/static/chunks/227-f109b24190a008ab.js +0 -8
- package/.next/static/chunks/2284.185d834d9829b652.js +0 -1
- package/.next/static/chunks/2851.e68ed3c8d27a032a.js +0 -1
- package/.next/static/chunks/2927.5a79877943a6bf7c.js +0 -1
- package/.next/static/chunks/3155.7bc4c730a79d9ecb.js +0 -1
- package/.next/static/chunks/3166-0b30a3887c0c346d.js +0 -1
- package/.next/static/chunks/3399.017c5209b74b0d97.js +0 -1
- package/.next/static/chunks/3483.ef53d632a763da3f.js +0 -1
- package/.next/static/chunks/349.b3b38e1e9f719dda.js +0 -1
- package/.next/static/chunks/3802.5e8b0b689eacc0f8.js +0 -1
- package/.next/static/chunks/3836.620480018be48233.js +0 -1
- package/.next/static/chunks/4436.e7af66f0b654ee36.js +0 -1
- package/.next/static/chunks/4803.b1920b6e3a1a6304.js +0 -1
- package/.next/static/chunks/5796.4351370494d8b8b6.js +0 -1
- package/.next/static/chunks/6393.55f991b1a6bb4fe7.js +0 -1
- package/.next/static/chunks/6700.b23221a57514e737.js +0 -1
- package/.next/static/chunks/6789.960162355435a81d.js +0 -1
- package/.next/static/chunks/7191-befad64ba238a817.js +0 -1
- package/.next/static/chunks/7692.8d5bf4560341a2f6.js +0 -1
- package/.next/static/chunks/7861.7f9f1a124a43da30.js +0 -6
- package/.next/static/chunks/8068.43663fb64762f7b8.js +0 -1
- package/.next/static/chunks/83.e0c16f0299b364a5.js +0 -1
- package/.next/static/chunks/8325.dabe9aa22eaadeed.js +0 -1
- package/.next/static/chunks/8587.53c8ce185ed1a2cb.js +0 -1
- package/.next/static/chunks/9173-e89da04079c35360.js +0 -2
- package/.next/static/chunks/9237.7555603703f81bf7.js +0 -1
- package/.next/static/chunks/9298-1d1ed0a54133cb59.js +0 -28
- package/.next/static/chunks/9399.d116a7fd62024783.js +0 -1
- package/.next/static/chunks/941.3e2782ab9c490eb0.js +0 -1
- package/.next/static/chunks/9701.f9a0bfffba8807dc.js +0 -1
- package/.next/static/chunks/9909.787576b171184aa5.js +0 -1
- package/.next/static/chunks/9960.7ef77f8a8b046170.js +0 -1
- package/.next/static/chunks/9979.aedbc094bdc2c599.js +0 -1
- package/.next/static/chunks/BannerNewsletter.00328ad162109908.js +0 -1
- package/.next/static/chunks/BannerText.dbbec87cadb8a521.js +0 -1
- package/.next/static/chunks/ButtonSignIn.f6e210eaca873e48.js +0 -1
- package/.next/static/chunks/CartItem.b34e295377f6f94f.js +0 -1
- package/.next/static/chunks/CartSidebar.ac447d1ef6276da1.js +0 -1
- package/.next/static/chunks/Dropdown.38b48c749bad6b60.js +0 -1
- package/.next/static/chunks/DropdownButton.66fa6b25dddb3a07.js +0 -1
- package/.next/static/chunks/DropdownItem.38b8f5a07c7f422a.js +0 -1
- package/.next/static/chunks/DropdownMenu.48b11521a24c6efd.js +0 -1
- package/.next/static/chunks/EmptyCart.320e2f94a0d5e6b1.js +0 -1
- package/.next/static/chunks/FilterSkeleton.7ab99e28f92341c9.js +0 -1
- package/.next/static/chunks/Footer.166b02c2f13980c6.js +0 -1
- package/.next/static/chunks/Gift.c49ba26da2fbab5e.js +0 -1
- package/.next/static/chunks/Newsletter.fc406f6029057022.js +0 -1
- package/.next/static/chunks/OrderSummary.5957d69f990d9add.js +0 -1
- package/.next/static/chunks/PreviewTag.f4f0c8710a7bcad9.js +0 -1
- package/.next/static/chunks/ProductShelf.cc46f5cdeeaeaff6.js +0 -1
- package/.next/static/chunks/ProductTiles.9b804e51b0704d60.js +0 -1
- package/.next/static/chunks/RegionModal.319ad44250cb12d2.js +0 -1
- package/.next/static/chunks/RegionSlider.0e0e93369f4f9c92.js +0 -1
- package/.next/static/chunks/ScrollToTopButton.c15431f2e8bb93ef.js +0 -1
- package/.next/static/chunks/ShoppingAssistant.ba191eb4dbed67e5.js +0 -1
- package/.next/static/chunks/Toast.5f90f0436708be5e.js +0 -1
- package/.next/static/chunks/UIBannerText.7315b16af4457059.js +0 -1
- package/.next/static/chunks/UISKUMatrixSidebar.b4349b2682bbe183.js +0 -1
- package/.next/static/chunks/UIToast.19a8664c01a00d3a.js +0 -1
- package/.next/static/chunks/framework-d514426edf885c68.js +0 -33
- package/.next/static/chunks/main-ec03882c4375091d.js +0 -1
- package/.next/static/chunks/pages/404-e3dfbbac003b02a2.js +0 -1
- package/.next/static/chunks/pages/500-c7814e085081d7b8.js +0 -1
- package/.next/static/chunks/pages/[...slug]-dc8a395a43b081f1.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-644f1132f5a0f736.js +0 -1
- package/.next/static/chunks/pages/_app-84aaff8a9d4de60e.js +0 -1
- package/.next/static/chunks/pages/_error-2b0148be56a716e9.js +0 -1
- package/.next/static/chunks/pages/checkout-2071467ad42dfb99.js +0 -1
- package/.next/static/chunks/pages/index-8774d5b4a8744eb2.js +0 -1
- package/.next/static/chunks/pages/login-e74747c9f9cb5b49.js +0 -1
- package/.next/static/chunks/pages/pvt/account/403-491e6b062487b30f.js +0 -1
- package/.next/static/chunks/pages/pvt/account/404-5ad472d9f2ee1980.js +0 -1
- package/.next/static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js +0 -1
- package/.next/static/chunks/pages/pvt/account/orders/[id]-64e42157c0974c48.js +0 -1
- package/.next/static/chunks/pages/pvt/account/orders-faab39f2aff05fae.js +0 -1
- package/.next/static/chunks/pages/pvt/account/profile-9672177ee2665bc0.js +0 -1
- package/.next/static/chunks/pages/pvt/account/security-03eb1ccab9a30563.js +0 -1
- package/.next/static/chunks/pages/pvt/account/user-details-7838e3f79781596c.js +0 -1
- package/.next/static/chunks/pages/pvt/account-65fefcc699344bdb.js +0 -1
- package/.next/static/chunks/pages/s-162ba789e6611175.js +0 -1
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
- package/.next/static/chunks/webpack-f621ff3e951d2982.js +0 -1
- package/.next/static/css/02259c549b2179f2.css +0 -1
- package/.next/static/css/02eaf202d3d11fd1.css +0 -1
- package/.next/static/css/033e241c58ba6fbb.css +0 -1
- package/.next/static/css/042d012bc1895b5c.css +0 -1
- package/.next/static/css/14176a4704ff97b2.css +0 -1
- package/.next/static/css/146a8678babc61bf.css +0 -1
- package/.next/static/css/16d65422bfa80f51.css +0 -1
- package/.next/static/css/1c4983f11b861ea0.css +0 -1
- package/.next/static/css/204754bbd8cc4bef.css +0 -1
- package/.next/static/css/24d91007fc96be10.css +0 -1
- package/.next/static/css/2980acad3f8e1028.css +0 -1
- package/.next/static/css/2c19433e38fd7533.css +0 -1
- package/.next/static/css/31380ebc6e671486.css +0 -1
- package/.next/static/css/42df884711219edb.css +0 -1
- package/.next/static/css/4f0597b0bf0ef2e1.css +0 -1
- package/.next/static/css/54cedf4b65e5863f.css +0 -1
- package/.next/static/css/6580147d7ab8fcca.css +0 -1
- package/.next/static/css/6819dddf2b1b5ea7.css +0 -1
- package/.next/static/css/7ef7762f412ed665.css +0 -1
- package/.next/static/css/82f3cd529b672812.css +0 -1
- package/.next/static/css/837662922091162f.css +0 -1
- package/.next/static/css/8e6ab59ace21e03b.css +0 -1
- package/.next/static/css/a852afa9be31e946.css +0 -1
- package/.next/static/css/b684b347c5cc6514.css +0 -1
- package/.next/static/css/bcdaef0a83277ef5.css +0 -1
- package/.next/static/css/c33615999008d3f9.css +0 -1
- package/.next/static/css/c34f6ea9953e2f63.css +0 -1
- package/.next/static/css/ea11d74a2848b093.css +0 -1
- package/.next/static/css/f16438bcf4508fb3.css +0 -1
- package/.next/static/css/f60366555f563deb.css +0 -1
- package/.next/trace +0 -143
- package/.turbo/turbo-build.log +0 -140
- package/jest.config.js +0 -17
- package/public/~partytown/debug/partytown-atomics.js +0 -556
- package/public/~partytown/debug/partytown-media.js +0 -374
- package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
- package/public/~partytown/debug/partytown-sw.js +0 -59
- package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
- package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
- package/public/~partytown/debug/partytown.js +0 -72
- package/public/~partytown/partytown-atomics.js +0 -2
- package/public/~partytown/partytown-media.js +0 -2
- package/public/~partytown/partytown-sw.js +0 -2
- package/public/~partytown/partytown.js +0 -2
- package/src/middleware__DISABLED.ts +0 -65
- package/src/server/generator/generateGraphQLSchemaFile.ts +0 -3
- package/src/server/generator/schema.ts +0 -81
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from 'vitest'
|
|
2
|
+
import { matchURLBinding } from '../../src/sdk/localization/match-url'
|
|
3
|
+
|
|
4
|
+
vi.mock(import('../../discovery.config.js'), async (original) => ({
|
|
5
|
+
default: {
|
|
6
|
+
...((await original()).default ?? {}),
|
|
7
|
+
localization: {
|
|
8
|
+
enabled: true,
|
|
9
|
+
defaultLocale: 'pt-BR',
|
|
10
|
+
regions: {
|
|
11
|
+
CA: {
|
|
12
|
+
code: 'CA',
|
|
13
|
+
name: 'Canada',
|
|
14
|
+
dateFormat: 'YYYY-MM-DD',
|
|
15
|
+
timeFormat: '12h',
|
|
16
|
+
timeFormatMask: 'hh:mm a',
|
|
17
|
+
unitSystem: 'metric',
|
|
18
|
+
defaultTimezone: 'GMT-5',
|
|
19
|
+
},
|
|
20
|
+
US: {
|
|
21
|
+
code: 'US',
|
|
22
|
+
name: 'United States',
|
|
23
|
+
dateFormat: 'MM/DD/YYYY',
|
|
24
|
+
timeFormat: '12h',
|
|
25
|
+
timeFormatMask: 'hh:mm a',
|
|
26
|
+
unitSystem: 'imperial',
|
|
27
|
+
defaultTimezone: 'GMT-5',
|
|
28
|
+
},
|
|
29
|
+
IT: {
|
|
30
|
+
code: 'IT',
|
|
31
|
+
name: 'Italy',
|
|
32
|
+
dateFormat: 'DD/MM/YYYY',
|
|
33
|
+
timeFormat: '24h',
|
|
34
|
+
timeFormatMask: 'HH:mm',
|
|
35
|
+
unitSystem: 'metric',
|
|
36
|
+
defaultTimezone: 'GMT+1',
|
|
37
|
+
},
|
|
38
|
+
BR: {
|
|
39
|
+
code: 'BR',
|
|
40
|
+
name: 'Brazil',
|
|
41
|
+
dateFormat: 'DD/MM/YYYY',
|
|
42
|
+
timeFormat: '24h',
|
|
43
|
+
timeFormatMask: 'HH:mm',
|
|
44
|
+
unitSystem: 'metric',
|
|
45
|
+
defaultTimezone: 'GMT-3',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
locales: {
|
|
49
|
+
'pt-BR': {
|
|
50
|
+
code: 'pt-BR',
|
|
51
|
+
name: 'português',
|
|
52
|
+
languageCode: 'pt',
|
|
53
|
+
languageName: 'Portuguese',
|
|
54
|
+
script: 'Latn',
|
|
55
|
+
textDirection: 'ltr',
|
|
56
|
+
regionCode: 'BR',
|
|
57
|
+
bindings: [
|
|
58
|
+
{
|
|
59
|
+
currencyCode: 'BRL',
|
|
60
|
+
url: 'https://brandless.myvtex.com',
|
|
61
|
+
salesChannel: '1',
|
|
62
|
+
isDefault: true,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
'en-CA': {
|
|
67
|
+
code: 'en-CA',
|
|
68
|
+
name: 'English',
|
|
69
|
+
languageCode: 'en',
|
|
70
|
+
languageName: 'English',
|
|
71
|
+
script: 'Latn',
|
|
72
|
+
textDirection: 'ltr',
|
|
73
|
+
regionCode: 'CA',
|
|
74
|
+
bindings: [
|
|
75
|
+
{
|
|
76
|
+
currencyCode: 'BRL',
|
|
77
|
+
url: 'https://brandless.fast.store/pt-BR',
|
|
78
|
+
salesChannel: '1',
|
|
79
|
+
isDefault: true,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
currencyCode: 'USD',
|
|
83
|
+
url: 'https://brandless.fast.store/en-CA',
|
|
84
|
+
salesChannel: '2',
|
|
85
|
+
isDefault: false,
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
'it-IT': {
|
|
90
|
+
code: 'it-IT',
|
|
91
|
+
name: 'italiano',
|
|
92
|
+
languageCode: 'it',
|
|
93
|
+
languageName: 'Italian',
|
|
94
|
+
script: 'Latn',
|
|
95
|
+
textDirection: 'ltr',
|
|
96
|
+
regionCode: 'IT',
|
|
97
|
+
bindings: [
|
|
98
|
+
{
|
|
99
|
+
currencyCode: 'USD',
|
|
100
|
+
url: 'https://brandless.fast.store/it-IT',
|
|
101
|
+
salesChannel: '2',
|
|
102
|
+
isDefault: false,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
currencyCode: 'EUR',
|
|
106
|
+
url: 'https://brandless.fast.store/europe/it',
|
|
107
|
+
salesChannel: '3',
|
|
108
|
+
isDefault: false,
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
'fr-CA': {
|
|
113
|
+
code: 'fr-CA',
|
|
114
|
+
name: 'français',
|
|
115
|
+
languageCode: 'fr',
|
|
116
|
+
languageName: 'French',
|
|
117
|
+
script: 'Latn',
|
|
118
|
+
textDirection: 'ltr',
|
|
119
|
+
regionCode: 'CA',
|
|
120
|
+
bindings: [
|
|
121
|
+
{
|
|
122
|
+
currencyCode: 'CAD',
|
|
123
|
+
url: 'https://brandless.fast.store/america/fr',
|
|
124
|
+
salesChannel: '4',
|
|
125
|
+
isDefault: false,
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
'en-GB': {
|
|
130
|
+
code: 'en-GB',
|
|
131
|
+
name: 'English',
|
|
132
|
+
languageCode: 'en',
|
|
133
|
+
languageName: 'English',
|
|
134
|
+
script: 'Latn',
|
|
135
|
+
textDirection: 'ltr',
|
|
136
|
+
regionCode: 'GB',
|
|
137
|
+
bindings: [
|
|
138
|
+
{
|
|
139
|
+
currencyCode: 'EUR',
|
|
140
|
+
url: 'https://brandless.fast.store/emea-eur',
|
|
141
|
+
salesChannel: '5',
|
|
142
|
+
isDefault: false,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
'en-US': {
|
|
147
|
+
code: 'en-US',
|
|
148
|
+
name: 'English',
|
|
149
|
+
languageCode: 'en',
|
|
150
|
+
languageName: 'English',
|
|
151
|
+
script: 'Latn',
|
|
152
|
+
textDirection: 'ltr',
|
|
153
|
+
regionCode: 'US',
|
|
154
|
+
bindings: [
|
|
155
|
+
{
|
|
156
|
+
currencyCode: 'USD',
|
|
157
|
+
url: 'https://brandless.fast.store/en-US',
|
|
158
|
+
salesChannel: '2',
|
|
159
|
+
isDefault: false,
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
currencies: {
|
|
165
|
+
BRL: {
|
|
166
|
+
code: 'BRL',
|
|
167
|
+
name: 'Brazilian Real',
|
|
168
|
+
symbol: 'R$',
|
|
169
|
+
},
|
|
170
|
+
USD: {
|
|
171
|
+
code: 'USD',
|
|
172
|
+
name: 'US Dollar',
|
|
173
|
+
symbol: '$',
|
|
174
|
+
},
|
|
175
|
+
EUR: {
|
|
176
|
+
code: 'EUR',
|
|
177
|
+
name: 'Euro',
|
|
178
|
+
symbol: '€',
|
|
179
|
+
},
|
|
180
|
+
CAD: {
|
|
181
|
+
code: 'CAD',
|
|
182
|
+
name: 'Canadian Dollar',
|
|
183
|
+
symbol: '$',
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
}))
|
|
189
|
+
|
|
190
|
+
import config from 'discovery.config'
|
|
191
|
+
|
|
192
|
+
describe('URL match', () => {
|
|
193
|
+
describe('Root domain bindings', () => {
|
|
194
|
+
it('should match root domain without path', () => {
|
|
195
|
+
const ptBR = {
|
|
196
|
+
config: config.localization['locales']['pt-BR'],
|
|
197
|
+
binding: {
|
|
198
|
+
currencyCode: 'BRL',
|
|
199
|
+
url: 'https://brandless.myvtex.com',
|
|
200
|
+
salesChannel: '1',
|
|
201
|
+
isDefault: true,
|
|
202
|
+
},
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
expect(matchURLBinding('https://brandless.myvtex.com')).toEqual(ptBR)
|
|
206
|
+
expect(matchURLBinding('https://brandless.myvtex.com:3000')).toEqual(ptBR)
|
|
207
|
+
expect(
|
|
208
|
+
matchURLBinding('https://brandless.myvtex.com?test=123&v=2')
|
|
209
|
+
).toEqual(ptBR)
|
|
210
|
+
})
|
|
211
|
+
})
|
|
212
|
+
|
|
213
|
+
describe('Locale path bindings', () => {
|
|
214
|
+
it('should match locale paths like /en-CA', () => {
|
|
215
|
+
const enCa = {
|
|
216
|
+
config: config.localization['locales']['en-CA'],
|
|
217
|
+
binding: {
|
|
218
|
+
currencyCode: 'USD',
|
|
219
|
+
url: 'https://brandless.fast.store/en-CA',
|
|
220
|
+
salesChannel: '2',
|
|
221
|
+
isDefault: false,
|
|
222
|
+
},
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
expect(
|
|
226
|
+
matchURLBinding('https://brandless.fast.store:3000/en-CA')
|
|
227
|
+
).toEqual(enCa)
|
|
228
|
+
expect(matchURLBinding('https://brandless.fast.store/en-CA')).toEqual(
|
|
229
|
+
enCa
|
|
230
|
+
)
|
|
231
|
+
expect(
|
|
232
|
+
matchURLBinding('https://brandless.fast.store/en-CA?test=1')
|
|
233
|
+
).toEqual(enCa)
|
|
234
|
+
})
|
|
235
|
+
|
|
236
|
+
it('should match locale paths like /it-IT', () => {
|
|
237
|
+
const itIT = {
|
|
238
|
+
config: config.localization['locales']['it-IT'],
|
|
239
|
+
binding: {
|
|
240
|
+
currencyCode: 'USD',
|
|
241
|
+
url: 'https://brandless.fast.store/it-IT',
|
|
242
|
+
salesChannel: '2',
|
|
243
|
+
isDefault: false,
|
|
244
|
+
},
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
expect(matchURLBinding('https://brandless.fast.store/it-IT')).toEqual(
|
|
248
|
+
itIT
|
|
249
|
+
)
|
|
250
|
+
})
|
|
251
|
+
|
|
252
|
+
it('should match locale paths with additional path segments', () => {
|
|
253
|
+
const enCa = {
|
|
254
|
+
config: config.localization['locales']['en-CA'],
|
|
255
|
+
binding: {
|
|
256
|
+
currencyCode: 'BRL',
|
|
257
|
+
url: 'https://brandless.fast.store/pt-BR',
|
|
258
|
+
salesChannel: '1',
|
|
259
|
+
isDefault: true,
|
|
260
|
+
},
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Should match even with additional path segments after the locale path
|
|
264
|
+
expect(
|
|
265
|
+
matchURLBinding('https://brandless.fast.store/pt-BR/products')
|
|
266
|
+
).toEqual(enCa)
|
|
267
|
+
expect(
|
|
268
|
+
matchURLBinding('https://brandless.fast.store/pt-BR/office')
|
|
269
|
+
).toEqual(enCa)
|
|
270
|
+
expect(
|
|
271
|
+
matchURLBinding('https://brandless.fast.store/pt-BR/p?id=123')
|
|
272
|
+
).toEqual(enCa)
|
|
273
|
+
})
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
describe('Custom path bindings', () => {
|
|
277
|
+
it('should match custom path /europe/it', () => {
|
|
278
|
+
const europeIt = {
|
|
279
|
+
config: config.localization['locales']['it-IT'],
|
|
280
|
+
binding: {
|
|
281
|
+
currencyCode: 'EUR',
|
|
282
|
+
url: 'https://brandless.fast.store/europe/it',
|
|
283
|
+
salesChannel: '3',
|
|
284
|
+
isDefault: false,
|
|
285
|
+
},
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
expect(matchURLBinding('https://brandless.fast.store/europe/it')).toEqual(
|
|
289
|
+
europeIt
|
|
290
|
+
)
|
|
291
|
+
expect(
|
|
292
|
+
matchURLBinding('https://brandless.fast.store/europe/it?q=test')
|
|
293
|
+
).toEqual(europeIt)
|
|
294
|
+
})
|
|
295
|
+
|
|
296
|
+
it('should match custom path /america/fr', () => {
|
|
297
|
+
const americaFr = {
|
|
298
|
+
config: config.localization['locales']['fr-CA'],
|
|
299
|
+
binding: {
|
|
300
|
+
currencyCode: 'CAD',
|
|
301
|
+
url: 'https://brandless.fast.store/america/fr',
|
|
302
|
+
salesChannel: '4',
|
|
303
|
+
isDefault: false,
|
|
304
|
+
},
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
expect(
|
|
308
|
+
matchURLBinding('https://brandless.fast.store/america/fr')
|
|
309
|
+
).toEqual(americaFr)
|
|
310
|
+
})
|
|
311
|
+
|
|
312
|
+
it('should match custom path /emea-eur', () => {
|
|
313
|
+
const emeaEur = {
|
|
314
|
+
config: config.localization['locales']['en-GB'],
|
|
315
|
+
binding: {
|
|
316
|
+
currencyCode: 'EUR',
|
|
317
|
+
url: 'https://brandless.fast.store/emea-eur',
|
|
318
|
+
salesChannel: '5',
|
|
319
|
+
isDefault: false,
|
|
320
|
+
},
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
expect(matchURLBinding('https://brandless.fast.store/emea-eur')).toEqual(
|
|
324
|
+
emeaEur
|
|
325
|
+
)
|
|
326
|
+
})
|
|
327
|
+
|
|
328
|
+
it('should match custom path with additional path segments', () => {
|
|
329
|
+
const europeIt = {
|
|
330
|
+
config: config.localization['locales']['it-IT'],
|
|
331
|
+
binding: {
|
|
332
|
+
currencyCode: 'EUR',
|
|
333
|
+
url: 'https://brandless.fast.store/europe/it',
|
|
334
|
+
salesChannel: '3',
|
|
335
|
+
isDefault: false,
|
|
336
|
+
},
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Should match even with additional path segments after the binding path
|
|
340
|
+
expect(
|
|
341
|
+
matchURLBinding('https://brandless.fast.store/europe/it/products')
|
|
342
|
+
).toEqual(europeIt)
|
|
343
|
+
expect(
|
|
344
|
+
matchURLBinding('https://brandless.fast.store/europe/it/office')
|
|
345
|
+
).toEqual(europeIt)
|
|
346
|
+
expect(
|
|
347
|
+
matchURLBinding('https://brandless.fast.store/europe/it/p?id=123')
|
|
348
|
+
).toEqual(europeIt)
|
|
349
|
+
})
|
|
350
|
+
})
|
|
351
|
+
|
|
352
|
+
describe('Path normalization', () => {
|
|
353
|
+
it('should handle trailing slashes correctly', () => {
|
|
354
|
+
const enCa = {
|
|
355
|
+
config: config.localization['locales']['en-CA'],
|
|
356
|
+
binding: {
|
|
357
|
+
currencyCode: 'BRL',
|
|
358
|
+
url: 'https://brandless.fast.store/pt-BR',
|
|
359
|
+
salesChannel: '1',
|
|
360
|
+
isDefault: true,
|
|
361
|
+
},
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// With and without trailing slash should match
|
|
365
|
+
expect(matchURLBinding('https://brandless.fast.store/pt-BR/')).toEqual(
|
|
366
|
+
enCa
|
|
367
|
+
)
|
|
368
|
+
expect(matchURLBinding('https://brandless.fast.store/pt-BR')).toEqual(
|
|
369
|
+
enCa
|
|
370
|
+
)
|
|
371
|
+
})
|
|
372
|
+
|
|
373
|
+
it('should handle root path variations', () => {
|
|
374
|
+
const ptBR = {
|
|
375
|
+
config: config.localization['locales']['pt-BR'],
|
|
376
|
+
binding: {
|
|
377
|
+
currencyCode: 'BRL',
|
|
378
|
+
url: 'https://brandless.myvtex.com',
|
|
379
|
+
salesChannel: '1',
|
|
380
|
+
isDefault: true,
|
|
381
|
+
},
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
expect(matchURLBinding('https://brandless.myvtex.com/')).toEqual(ptBR)
|
|
385
|
+
expect(matchURLBinding('https://brandless.myvtex.com')).toEqual(ptBR)
|
|
386
|
+
})
|
|
387
|
+
})
|
|
388
|
+
})
|
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"allowSyntheticDefaultImports": true,
|
|
4
4
|
"declaration": false,
|
|
5
5
|
"moduleResolution": "node",
|
|
6
|
-
"jsx": "
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
7
|
"jsxImportSource": "react",
|
|
8
8
|
"resolveJsonModule": true,
|
|
9
9
|
"module": "esnext",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"forceConsistentCasingInFileNames": true,
|
|
25
|
-
"noImplicitAny":
|
|
25
|
+
"noImplicitAny": false,
|
|
26
26
|
"incremental": true,
|
|
27
27
|
"isolatedModules": true,
|
|
28
28
|
"target": "es5",
|
|
@@ -31,6 +31,14 @@
|
|
|
31
31
|
"esModuleInterop": true,
|
|
32
32
|
"strict": false
|
|
33
33
|
},
|
|
34
|
-
"include": [
|
|
34
|
+
"include": [
|
|
35
|
+
"*.d.ts",
|
|
36
|
+
"index.ts",
|
|
37
|
+
"src/**/*.ts",
|
|
38
|
+
"src/**/*.tsx",
|
|
39
|
+
"@generated/**/*.ts",
|
|
40
|
+
"test/**/*.ts",
|
|
41
|
+
"test/**/*.tsx"
|
|
42
|
+
],
|
|
35
43
|
"exclude": ["node_modules", "public"]
|
|
36
44
|
}
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import react from '@vitejs/plugin-react'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
|
|
4
|
+
import { defineConfig } from 'vitest/config'
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
test: {
|
|
8
|
+
globals: true,
|
|
9
|
+
projects: [
|
|
10
|
+
{
|
|
11
|
+
extends: true,
|
|
12
|
+
test: {
|
|
13
|
+
name: 'browser',
|
|
14
|
+
environment: 'jsdom',
|
|
15
|
+
include: ['./test/**/*.browser.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
extends: true,
|
|
20
|
+
test: {
|
|
21
|
+
name: 'node',
|
|
22
|
+
include: ['./test/**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
23
|
+
exclude: ['./test/**/*.browser.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
resolve: {
|
|
29
|
+
alias: {
|
|
30
|
+
src: fileURLToPath(new URL('./src', import.meta.url)),
|
|
31
|
+
'@generated': fileURLToPath(new URL('./@generated', import.meta.url)),
|
|
32
|
+
'discovery.config': fileURLToPath(
|
|
33
|
+
new URL('./discovery.config.js', import.meta.url)
|
|
34
|
+
),
|
|
35
|
+
'graphql/language/printer': 'graphql/language/printer.js',
|
|
36
|
+
'graphql/language': 'graphql/language/index.js',
|
|
37
|
+
graphql: 'graphql/index.js',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
plugins: [
|
|
41
|
+
react(),
|
|
42
|
+
{
|
|
43
|
+
name: 'virtual-module',
|
|
44
|
+
resolveId(id) {
|
|
45
|
+
if (id.endsWith('persisted-documents.json')) {
|
|
46
|
+
return id
|
|
47
|
+
}
|
|
48
|
+
return null
|
|
49
|
+
},
|
|
50
|
+
load(id) {
|
|
51
|
+
if (id.endsWith('persisted-documents.json')) {
|
|
52
|
+
return JSON.stringify({
|
|
53
|
+
'4b33c5c07f440dc7489e55619dc2211a13786e72':
|
|
54
|
+
'fragment ServerCollectionPage on Query { collection(slug: $slug) { id } } query ServerCollectionPageQuery($slug: String!) { collection(slug: $slug) { breadcrumbList { itemListElement { item name position } } meta { selectedFacets { key value } } seo { description title } } ...ServerCollectionPage }',
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
return null
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
})
|
package/.next/BUILD_ID
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
NAuY8lqaeBBZf9CMZuYI2
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"polyfillFiles": [
|
|
3
|
-
"static/chunks/polyfills-c67a75d1b6f99dc8.js"
|
|
4
|
-
],
|
|
5
|
-
"devFiles": [],
|
|
6
|
-
"ampDevFiles": [],
|
|
7
|
-
"lowPriorityFiles": [
|
|
8
|
-
"static/NAuY8lqaeBBZf9CMZuYI2/_buildManifest.js",
|
|
9
|
-
"static/NAuY8lqaeBBZf9CMZuYI2/_ssgManifest.js"
|
|
10
|
-
],
|
|
11
|
-
"rootMainFiles": [],
|
|
12
|
-
"pages": {
|
|
13
|
-
"/": [
|
|
14
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
15
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
16
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
17
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
18
|
-
"static/css/2c19433e38fd7533.css",
|
|
19
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
20
|
-
"static/css/837662922091162f.css",
|
|
21
|
-
"static/css/02259c549b2179f2.css",
|
|
22
|
-
"static/chunks/pages/index-8774d5b4a8744eb2.js"
|
|
23
|
-
],
|
|
24
|
-
"/404": [
|
|
25
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
26
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
27
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
28
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
29
|
-
"static/css/2c19433e38fd7533.css",
|
|
30
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
31
|
-
"static/css/2980acad3f8e1028.css",
|
|
32
|
-
"static/chunks/pages/404-e3dfbbac003b02a2.js"
|
|
33
|
-
],
|
|
34
|
-
"/500": [
|
|
35
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
36
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
37
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
38
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
39
|
-
"static/css/2c19433e38fd7533.css",
|
|
40
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
41
|
-
"static/css/2980acad3f8e1028.css",
|
|
42
|
-
"static/chunks/pages/500-c7814e085081d7b8.js"
|
|
43
|
-
],
|
|
44
|
-
"/[...slug]": [
|
|
45
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
46
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
47
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
48
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
49
|
-
"static/css/2c19433e38fd7533.css",
|
|
50
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
51
|
-
"static/css/31380ebc6e671486.css",
|
|
52
|
-
"static/chunks/7191-befad64ba238a817.js",
|
|
53
|
-
"static/chunks/pages/[...slug]-dc8a395a43b081f1.js"
|
|
54
|
-
],
|
|
55
|
-
"/[slug]/p": [
|
|
56
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
57
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
58
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
59
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
60
|
-
"static/chunks/227-f109b24190a008ab.js",
|
|
61
|
-
"static/css/2c19433e38fd7533.css",
|
|
62
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
63
|
-
"static/css/837662922091162f.css",
|
|
64
|
-
"static/css/1c4983f11b861ea0.css",
|
|
65
|
-
"static/chunks/3166-0b30a3887c0c346d.js",
|
|
66
|
-
"static/css/54cedf4b65e5863f.css",
|
|
67
|
-
"static/chunks/pages/[slug]/p-644f1132f5a0f736.js"
|
|
68
|
-
],
|
|
69
|
-
"/_app": [
|
|
70
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
71
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
72
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
73
|
-
"static/css/146a8678babc61bf.css",
|
|
74
|
-
"static/chunks/pages/_app-84aaff8a9d4de60e.js"
|
|
75
|
-
],
|
|
76
|
-
"/_error": [
|
|
77
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
78
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
79
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
80
|
-
"static/chunks/pages/_error-2b0148be56a716e9.js"
|
|
81
|
-
],
|
|
82
|
-
"/checkout": [
|
|
83
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
84
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
85
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
86
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
87
|
-
"static/css/2c19433e38fd7533.css",
|
|
88
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
89
|
-
"static/chunks/pages/checkout-2071467ad42dfb99.js"
|
|
90
|
-
],
|
|
91
|
-
"/login": [
|
|
92
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
93
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
94
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
95
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
96
|
-
"static/css/2c19433e38fd7533.css",
|
|
97
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
98
|
-
"static/css/2980acad3f8e1028.css",
|
|
99
|
-
"static/chunks/pages/login-e74747c9f9cb5b49.js"
|
|
100
|
-
],
|
|
101
|
-
"/pvt/account": [
|
|
102
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
103
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
104
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
105
|
-
"static/chunks/pages/pvt/account-65fefcc699344bdb.js"
|
|
106
|
-
],
|
|
107
|
-
"/pvt/account/403": [
|
|
108
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
109
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
110
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
111
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
112
|
-
"static/css/2c19433e38fd7533.css",
|
|
113
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
114
|
-
"static/css/6819dddf2b1b5ea7.css",
|
|
115
|
-
"static/chunks/pages/pvt/account/403-491e6b062487b30f.js"
|
|
116
|
-
],
|
|
117
|
-
"/pvt/account/404": [
|
|
118
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
119
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
120
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
121
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
122
|
-
"static/css/2c19433e38fd7533.css",
|
|
123
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
124
|
-
"static/css/ea11d74a2848b093.css",
|
|
125
|
-
"static/chunks/pages/pvt/account/404-5ad472d9f2ee1980.js"
|
|
126
|
-
],
|
|
127
|
-
"/pvt/account/[...unknown]": [
|
|
128
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
129
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
130
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
131
|
-
"static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js"
|
|
132
|
-
],
|
|
133
|
-
"/pvt/account/orders": [
|
|
134
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
135
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
136
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
137
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
138
|
-
"static/css/2c19433e38fd7533.css",
|
|
139
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
140
|
-
"static/css/14176a4704ff97b2.css",
|
|
141
|
-
"static/chunks/pages/pvt/account/orders-faab39f2aff05fae.js"
|
|
142
|
-
],
|
|
143
|
-
"/pvt/account/orders/[id]": [
|
|
144
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
145
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
146
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
147
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
148
|
-
"static/css/2c19433e38fd7533.css",
|
|
149
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
150
|
-
"static/css/82f3cd529b672812.css",
|
|
151
|
-
"static/chunks/pages/pvt/account/orders/[id]-64e42157c0974c48.js"
|
|
152
|
-
],
|
|
153
|
-
"/pvt/account/profile": [
|
|
154
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
155
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
156
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
157
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
158
|
-
"static/css/2c19433e38fd7533.css",
|
|
159
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
160
|
-
"static/css/a852afa9be31e946.css",
|
|
161
|
-
"static/chunks/pages/pvt/account/profile-9672177ee2665bc0.js"
|
|
162
|
-
],
|
|
163
|
-
"/pvt/account/security": [
|
|
164
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
165
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
166
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
167
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
168
|
-
"static/css/2c19433e38fd7533.css",
|
|
169
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
170
|
-
"static/css/24d91007fc96be10.css",
|
|
171
|
-
"static/chunks/pages/pvt/account/security-03eb1ccab9a30563.js"
|
|
172
|
-
],
|
|
173
|
-
"/pvt/account/user-details": [
|
|
174
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
175
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
176
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
177
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
178
|
-
"static/css/2c19433e38fd7533.css",
|
|
179
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
180
|
-
"static/css/16d65422bfa80f51.css",
|
|
181
|
-
"static/chunks/pages/pvt/account/user-details-7838e3f79781596c.js"
|
|
182
|
-
],
|
|
183
|
-
"/s": [
|
|
184
|
-
"static/chunks/webpack-f621ff3e951d2982.js",
|
|
185
|
-
"static/chunks/framework-d514426edf885c68.js",
|
|
186
|
-
"static/chunks/main-ec03882c4375091d.js",
|
|
187
|
-
"static/chunks/9298-1d1ed0a54133cb59.js",
|
|
188
|
-
"static/css/2c19433e38fd7533.css",
|
|
189
|
-
"static/chunks/9173-e89da04079c35360.js",
|
|
190
|
-
"static/css/31380ebc6e671486.css",
|
|
191
|
-
"static/chunks/7191-befad64ba238a817.js",
|
|
192
|
-
"static/css/2980acad3f8e1028.css",
|
|
193
|
-
"static/chunks/pages/s-162ba789e6611175.js"
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
"ampFirstPages": []
|
|
197
|
-
}
|