@faststore/core 3.44.2 → 3.45.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 +122 -57
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- 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.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +66 -74
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/129.js +1 -0
- package/.next/server/chunks/1506.js +1 -1
- package/.next/server/chunks/1999.js +1 -0
- package/.next/server/chunks/2091.js +1 -0
- package/.next/server/chunks/2230.js +1 -0
- package/.next/server/chunks/2773.js +1 -0
- package/.next/server/chunks/2880.js +1 -1
- package/.next/server/chunks/3006.js +1 -0
- package/.next/server/chunks/4289.js +2 -2
- package/.next/server/chunks/4559.js +16 -3
- package/.next/server/chunks/4746.js +1 -1
- package/.next/server/chunks/5636.js +2 -0
- package/.next/server/chunks/5772.js +1 -0
- package/.next/server/chunks/6594.js +1 -1
- package/.next/server/chunks/674.js +1 -1
- package/.next/server/chunks/7228.js +1 -1
- package/.next/server/chunks/8038.js +1 -0
- package/.next/server/chunks/804.js +1 -1
- package/.next/server/chunks/8307.js +1 -0
- package/.next/server/chunks/831.js +1 -1
- package/.next/server/chunks/8562.js +1 -1
- package/.next/server/chunks/8646.js +1 -1
- package/.next/server/chunks/9559.js +9 -0
- package/.next/server/chunks/9664.js +1 -0
- package/.next/server/chunks/UIBannerText.js +1 -1
- package/.next/server/functions-config-manifest.json +1 -1
- 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 +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +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/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/account/403.js +1 -0
- package/.next/server/pages/account/403.js.nft.json +1 -0
- package/.next/server/pages/account/404.js +1 -0
- package/.next/server/pages/account/404.js.nft.json +1 -0
- package/.next/server/pages/account/[...unknown].js +1 -0
- package/.next/server/pages/account/[...unknown].js.nft.json +1 -0
- package/.next/server/pages/account/orders/[id].js +1 -0
- package/.next/server/pages/account/orders/[id].js.nft.json +1 -0
- package/.next/server/pages/account/orders.js +1 -0
- package/.next/server/pages/account/orders.js.nft.json +1 -0
- package/.next/server/pages/account/profile.js +1 -1
- package/.next/server/pages/account/profile.js.nft.json +1 -1
- package/.next/server/pages/account/security.js +1 -0
- package/.next/server/pages/account/security.js.nft.json +1 -0
- package/.next/server/pages/account/user-details.js +1 -0
- package/.next/server/pages/account/user-details.js.nft.json +1 -0
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +2 -2
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account/403.html +28 -0
- package/.next/server/pages/en-US/account/403.json +1 -0
- package/.next/server/pages/en-US/account/404.html +28 -0
- package/.next/server/pages/en-US/account/404.json +1 -0
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js +1 -1
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{1552.8751332da83cadc5.js → 1552.2705dd1ff3aee879.js} +1 -1
- package/.next/static/chunks/4349-e6912711a345e5b6.js +1 -0
- package/.next/static/chunks/4625-a77d5db94b3a2b8f.js +1 -0
- package/.next/static/chunks/4746.f94ab461c31311bb.js +1 -0
- package/.next/static/chunks/4774.0450cb0efbfe76f4.js +1 -0
- package/.next/static/chunks/5836.92639eae2107d7af.js +1 -0
- package/.next/static/chunks/630.a3bf6c7cd8c945e1.js +6 -0
- package/.next/static/chunks/6335-580edc7c2c0fb418.js +1 -0
- package/.next/static/chunks/{2004.a778e11dd3802b72.js → 6410.bd3fa399df59cc80.js} +1 -1
- package/.next/static/chunks/6536.be112cd4a3efe253.js +1 -0
- package/.next/static/chunks/6867.27c1cb57ed76dd02.js +1 -0
- package/.next/static/chunks/7498-9b4ed9d4a65914cc.js +1 -0
- package/.next/static/chunks/7959.df78bb2e81b8d29c.js +1 -0
- package/.next/static/chunks/{9.89f24163370f3a22.js → 9.1db9e34673fbd5c9.js} +1 -1
- package/.next/static/chunks/9540.19d844fec8517602.js +1 -0
- package/.next/static/chunks/{1418-e86227bcf9a5d486.js → 9770-6f30493e3f7ab51b.js} +3 -3
- package/.next/static/chunks/BannerNewsletter.3031c9944928c34a.js +1 -0
- package/.next/static/chunks/BannerText.ca4ae220fed6bdd6.js +1 -0
- package/.next/static/chunks/CartSidebar.3d23093834f2c79a.js +1 -0
- package/.next/static/chunks/{Dropdown.7fe839c5ffce4687.js → Dropdown.534482865327310f.js} +1 -1
- package/.next/static/chunks/{DropdownButton.3991a37657e1d194.js → DropdownButton.90e7cb14e5866e74.js} +1 -1
- package/.next/static/chunks/{DropdownItem.0b3c39f881ca0832.js → DropdownItem.e74df13f69f8c3aa.js} +1 -1
- package/.next/static/chunks/{DropdownMenu.943b2d11ffa50ff6.js → DropdownMenu.56cde48e9fbbefe5.js} +1 -1
- package/.next/static/chunks/{Footer.1f83637df0884013.js → Footer.4bb5645e731073e7.js} +1 -1
- package/.next/static/chunks/Newsletter.f87cd1eca34af5e1.js +1 -0
- package/.next/static/chunks/ProductShelf.9b64813b3d1f4c9a.js +1 -0
- package/.next/static/chunks/ProductTiles.ebf02b46a32f5a53.js +1 -0
- package/.next/static/chunks/RegionModal.cdf4facd086a88e0.js +1 -0
- package/.next/static/chunks/Toast.fbfeced8149ed940.js +1 -0
- package/.next/static/chunks/{UIBannerText.45cf608e46cde628.js → UIBannerText.ef0582cb5cb01720.js} +1 -1
- package/.next/static/chunks/UISKUMatrixSidebar.64a50464062c77e9.js +1 -0
- package/.next/static/chunks/UIToast.22fea5cca8ee2b21.js +1 -0
- package/.next/static/chunks/pages/{404-6300c433469b7262.js → 404-e89b928faf6b9125.js} +1 -1
- package/.next/static/chunks/pages/{500-2d1dd344c8a8827f.js → 500-604704ba70e1e80a.js} +1 -1
- package/.next/static/chunks/pages/[...slug]-f80d7d8c8c7948a4.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-748d6a1dbe59a2c8.js +1 -0
- package/.next/static/chunks/pages/_app-1be58ebde3e0b964.js +1 -0
- package/.next/static/chunks/pages/account/403-e4e6145815eeef01.js +1 -0
- package/.next/static/chunks/pages/account/404-ecfebfad41d655e9.js +1 -0
- package/.next/static/chunks/pages/account/[...unknown]-b233f92b64bd80cb.js +1 -0
- package/.next/static/chunks/pages/account/orders/[id]-8ab11c6c528911e9.js +1 -0
- package/.next/static/chunks/pages/account/orders-41bc5ef76c592a64.js +1 -0
- package/.next/static/chunks/pages/account/profile-2f501aabce910508.js +1 -0
- package/.next/static/chunks/pages/account/security-10e9e41318110950.js +1 -0
- package/.next/static/chunks/pages/account/user-details-5a7f30c290c25ec9.js +1 -0
- package/.next/static/chunks/pages/{checkout-93b647fc45454d97.js → checkout-cf3d3c3669a5e50b.js} +1 -1
- package/.next/static/chunks/pages/{index-07bc320fc045538c.js → index-e79b4e1ce52a8ea0.js} +1 -1
- package/.next/static/chunks/pages/{login-2454f1cd309c27d2.js → login-013b1f7a2b4bb9e0.js} +1 -1
- package/.next/static/chunks/pages/s-deeb7a0bdb02aaa9.js +1 -0
- package/.next/static/chunks/webpack-72d55466bef693ae.js +1 -0
- package/.next/static/css/2557aa3eaecf6ef0.css +1 -0
- package/.next/static/css/5347dbc8b71de47d.css +1 -0
- package/.next/static/css/84d35f475d0dc928.css +1 -0
- package/.next/static/css/9d1abf05f9ffaf8f.css +1 -0
- package/.next/static/css/b7bba8fce075688b.css +1 -0
- package/.next/static/css/{b8945ac5f5327c34.css → ec42ef906960d09f.css} +1 -1
- package/.next/static/iXgIvAYuYuXvEl83Xy7jT/_buildManifest.js +1 -0
- package/.next/static/iXgIvAYuYuXvEl83Xy7jT/_ssgManifest.js +1 -0
- package/.next/trace +129 -112
- package/.turbo/turbo-build.log +40 -30
- package/.turbo/turbo-test.log +5 -5
- package/@generated/gql.ts +34 -2
- package/@generated/graphql.ts +1566 -2
- package/@generated/persisted-documents.json +4 -1
- package/@generated/schema.graphql +748 -0
- package/CHANGELOG.md +6 -0
- package/discovery.config.default.js +1 -1
- package/package.json +7 -8
- package/public/icons.svg +106 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +68 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerBody.tsx +21 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerHeader.tsx +39 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/index.ts +3 -0
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss +121 -0
- package/src/components/account/MyAccountDrawer/OrganizationSignInButton/OrganizationSignInButton.tsx +50 -0
- package/src/components/account/MyAccountDrawer/OrganizationSignInButton/index.ts +1 -0
- package/src/components/account/MyAccountDrawer/ProfileSummary/ProfileSummary.tsx +67 -0
- package/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss +91 -0
- package/src/components/account/MyAccountLayout/MyAccountLayout.tsx +2 -2
- package/src/components/account/MyAccountLayout/styles.scss +8 -4
- package/src/components/account/MyAccountMenu/styles.scss +3 -2
- package/src/components/account/components/BottomSheet/BottomSheet.tsx +58 -0
- package/src/components/account/components/BottomSheet/styles.scss +35 -0
- package/src/components/account/components/MyAccountAccordion/MyAccountAccordion.tsx +13 -0
- package/src/components/account/components/MyAccountAccordion/MyAccountAccordionButton.tsx +35 -0
- package/src/components/account/components/MyAccountAccordion/MyAccountAccordionItem.tsx +21 -0
- package/src/components/account/components/MyAccountAccordion/MyAccountAccordionPanel.tsx +16 -0
- package/src/components/account/components/MyAccountAccordion/index.ts +4 -0
- package/src/components/account/components/MyAccountAccordion/styles.scss +88 -0
- package/src/components/account/components/MyAccountCard/MyAccountCard.tsx +13 -0
- package/src/components/account/components/MyAccountCard/index.ts +1 -0
- package/src/components/account/components/MyAccountCard/styles.scss +23 -0
- package/src/components/account/components/MyAccountStatusBadge/MyAccountStatusBadge.tsx +28 -0
- package/src/components/account/components/MyAccountStatusBadge/index.ts +1 -0
- package/src/components/account/components/MyAccountStatusBadge/styles.scss +54 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/MyAccountFilterFacetDateRange.tsx +113 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/index.ts +2 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/styles.scss +43 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx +209 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/index.ts +1 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +24 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +296 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/MyAccountListOrdersEmptyState.tsx +20 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/index.ts +1 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/styles.scss +43 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +210 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/index.ts +1 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +153 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/MyAccountSelectedTags.tsx +119 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/index.ts +1 -0
- package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/styles.scss +69 -0
- package/src/components/account/orders/MyAccountListOrders/index.ts +1 -0
- package/src/components/account/orders/MyAccountListOrders/styles.module.scss +100 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/MyAccountDeliveryCard.tsx +47 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/styles.scss +44 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordion.tsx +93 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionDeliveryInfo.tsx +86 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionProducts.tsx +74 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/index.ts +6 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss +193 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/MyAccountMoreInformationCard.tsx +31 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss +22 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/MyAccountOrderActionModal.tsx +121 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/index.ts +2 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss +40 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/useOrderActionModal.ts +38 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/MyAccountOrderActions.tsx +154 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss +33 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +106 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/MyAccountOrderedByCard.tsx +54 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/styles.scss +65 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentCard.tsx +157 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentFlagsIcon.tsx +106 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/styles.scss +76 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/MyAccountStatusCard.tsx +276 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss +205 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/useConnectorPositioning.ts +74 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/MyAccountSummaryCard.tsx +92 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/styles.scss +45 -0
- package/src/components/account/orders/MyAccountOrderDetails/index.ts +1 -0
- package/src/components/account/orders/MyAccountOrderDetails/section.module.scss +114 -0
- package/src/components/account/utils/useFormatPrice.ts +18 -0
- package/src/components/cms/RenderSections.tsx +1 -1
- package/src/components/navigation/Navbar/Navbar.tsx +16 -1
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +18 -3
- package/src/customizations/src/myAccount/extensions/orders/[id]/after.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/orders/[id]/before.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/orders/after.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/orders/before.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/profile/after.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/profile/before.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/security/after.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/security/before.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/user-details/after.tsx +7 -0
- package/src/customizations/src/myAccount/extensions/user-details/before.tsx +7 -0
- package/src/experimental/myAccountSeverSideProps.ts +12 -1
- package/src/pages/account/403.tsx +103 -0
- package/src/pages/account/404.tsx +95 -0
- package/src/pages/account/[...unknown].tsx +39 -0
- package/src/pages/account/index.tsx +8 -16
- package/src/pages/account/orders/[id].tsx +764 -0
- package/src/pages/account/orders/index.tsx +273 -0
- package/src/pages/account/orders/styles.module.scss +35 -0
- package/src/pages/account/profile.tsx +62 -17
- package/src/pages/account/security.tsx +94 -0
- package/src/pages/account/user-details.tsx +94 -0
- package/src/sdk/account/getMyAccountRoutes.ts +13 -12
- package/src/sdk/account/useApproveOrder.ts +53 -0
- package/src/sdk/account/useCancelOrder.ts +34 -0
- package/src/sdk/account/useDebounce.ts +23 -0
- package/src/sdk/account/useRejectOrder.ts +53 -0
- package/src/sdk/search/useMyAccountFilter.ts +157 -0
- package/src/sdk/session/index.ts +8 -0
- package/src/utils/myAccountRedirect.tsx +36 -0
- package/src/utils/userOrderStatus.ts +141 -0
- package/src/utils/utilities.ts +35 -3
- package/test/server/index.test.ts +9 -1
- package/.next/server/chunks/1246.js +0 -1
- package/.next/server/chunks/2443.js +0 -1
- package/.next/server/chunks/4725.js +0 -1
- package/.next/server/chunks/563.js +0 -1
- package/.next/server/chunks/6968.js +0 -10
- package/.next/server/chunks/7468.js +0 -1
- package/.next/server/chunks/8355.js +0 -1
- package/.next/static/chunks/1173.ca14a5bc4e1264f4.js +0 -1
- package/.next/static/chunks/2206.44239ce81a09bc17.js +0 -1
- package/.next/static/chunks/4349-87a956a73b97519c.js +0 -1
- package/.next/static/chunks/4625-553d20c86b0ca577.js +0 -1
- package/.next/static/chunks/4746.2e16ec0663a3873f.js +0 -1
- package/.next/static/chunks/4774.8e70c01dcd0ed4b3.js +0 -1
- package/.next/static/chunks/4865.4017be0f8e7c8cf0.js +0 -1
- package/.next/static/chunks/5259-90f7ef92cf24e49a.js +0 -1
- package/.next/static/chunks/5836.48126b7866819f9e.js +0 -1
- package/.next/static/chunks/630.13d3dd939b789798.js +0 -6
- package/.next/static/chunks/6335-6eb4ff84af184b88.js +0 -1
- package/.next/static/chunks/6536.d5260107222db13c.js +0 -1
- package/.next/static/chunks/7498-72289e704e7c7056.js +0 -1
- package/.next/static/chunks/7959.7c721505286572c0.js +0 -1
- package/.next/static/chunks/BannerNewsletter.8982f42e60ed8828.js +0 -1
- package/.next/static/chunks/BannerText.5b250db1cf67e44f.js +0 -1
- package/.next/static/chunks/CartSidebar.aa9e43be37034654.js +0 -1
- package/.next/static/chunks/Newsletter.9db4df2d4fb33227.js +0 -1
- package/.next/static/chunks/ProductShelf.9cea36116836c161.js +0 -1
- package/.next/static/chunks/ProductTiles.059a4a6360e1d4ea.js +0 -1
- package/.next/static/chunks/RegionModal.4594b707a1092551.js +0 -1
- package/.next/static/chunks/Toast.01d4ac8bf14c1be5.js +0 -1
- package/.next/static/chunks/UIButton.3186f933c0ecfb31.js +0 -1
- package/.next/static/chunks/UISKUMatrixSidebar.9ac3980a60cfc358.js +0 -1
- package/.next/static/chunks/UIToast.221eb10681d2f642.js +0 -1
- package/.next/static/chunks/pages/[...slug]-c1a62d58f5940747.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-555dc09a5e78260e.js +0 -1
- package/.next/static/chunks/pages/_app-d5641120092ee13b.js +0 -1
- package/.next/static/chunks/pages/account/profile-23b2e9fbbd95a30b.js +0 -1
- package/.next/static/chunks/pages/s-9901e6857f517b8b.js +0 -1
- package/.next/static/chunks/webpack-f338de6955d58a39.js +0 -1
- package/.next/static/css/249b9deaabc0d32d.css +0 -1
- package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_buildManifest.js +0 -1
- package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_ssgManifest.js +0 -1
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
} from 'src/components/cms/GlobalSections'
|
|
8
8
|
|
|
9
9
|
import { injectGlobalSections } from 'src/server/cms/global'
|
|
10
|
+
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
10
11
|
|
|
11
12
|
export type MyAccountProps = {
|
|
12
13
|
globalSections: GlobalSectionsData
|
|
@@ -16,7 +17,17 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
16
17
|
MyAccountProps,
|
|
17
18
|
Record<string, string>,
|
|
18
19
|
Locator
|
|
19
|
-
> = async ({ previewData }) => {
|
|
20
|
+
> = async ({ previewData, query }) => {
|
|
21
|
+
// TODO validate permissions here
|
|
22
|
+
|
|
23
|
+
const { isFaststoreMyAccountEnabled, redirect } = getMyAccountRedirect({
|
|
24
|
+
query,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
if (!isFaststoreMyAccountEnabled) {
|
|
28
|
+
return { redirect }
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
const [
|
|
21
32
|
globalSectionsPromise,
|
|
22
33
|
globalSectionsHeaderPromise,
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { Locator } from '@vtex/client-cms'
|
|
2
|
+
import type { GetStaticProps } from 'next'
|
|
3
|
+
import { NextSeo } from 'next-seo'
|
|
4
|
+
import type { ComponentType } from 'react'
|
|
5
|
+
import {
|
|
6
|
+
type GlobalSectionsData,
|
|
7
|
+
getGlobalSectionsData,
|
|
8
|
+
} from 'src/components/cms/GlobalSections'
|
|
9
|
+
|
|
10
|
+
import { LinkButton } from '@faststore/ui'
|
|
11
|
+
import { MyAccountLayout } from 'src/components/account'
|
|
12
|
+
import { default as GLOBAL_COMPONENTS } from 'src/components/cms/global/Components'
|
|
13
|
+
import RenderSections from 'src/components/cms/RenderSections'
|
|
14
|
+
import { OverriddenDefaultEmptyState as EmptyState } from 'src/components/sections/EmptyState/OverriddenDefaultEmptyState'
|
|
15
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
16
|
+
import PLUGINS_COMPONENTS from 'src/plugins'
|
|
17
|
+
import { type PageContentType, getPage } from 'src/server/cms'
|
|
18
|
+
import { injectGlobalSections } from 'src/server/cms/global'
|
|
19
|
+
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
20
|
+
|
|
21
|
+
/* A list of components that can be used in the CMS. */
|
|
22
|
+
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
23
|
+
...GLOBAL_COMPONENTS,
|
|
24
|
+
...PLUGINS_COMPONENTS,
|
|
25
|
+
...CUSTOM_COMPONENTS,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type Props = {
|
|
29
|
+
globalSections: GlobalSectionsData
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function Page({ globalSections }: Props) {
|
|
33
|
+
return (
|
|
34
|
+
<RenderSections
|
|
35
|
+
globalSections={globalSections.sections}
|
|
36
|
+
components={COMPONENTS}
|
|
37
|
+
>
|
|
38
|
+
<NextSeo noindex nofollow />
|
|
39
|
+
|
|
40
|
+
<MyAccountLayout>
|
|
41
|
+
<EmptyState
|
|
42
|
+
title="Unauthorized Access"
|
|
43
|
+
titleIcon={{ icon: 'ShoppingCart', alt: 'Shopping Cart' }}
|
|
44
|
+
subtitle="You don't have permission to access this page."
|
|
45
|
+
showLoader={false}
|
|
46
|
+
>
|
|
47
|
+
<LinkButton variant="secondary" href="/account">
|
|
48
|
+
Back to Account
|
|
49
|
+
</LinkButton>
|
|
50
|
+
</EmptyState>
|
|
51
|
+
</MyAccountLayout>
|
|
52
|
+
</RenderSections>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const getStaticProps: GetStaticProps<
|
|
57
|
+
Props,
|
|
58
|
+
Record<string, string>,
|
|
59
|
+
Locator
|
|
60
|
+
> = async ({ previewData }) => {
|
|
61
|
+
// TODO validate permissions here
|
|
62
|
+
|
|
63
|
+
const { isFaststoreMyAccountEnabled, redirect } = getMyAccountRedirect({
|
|
64
|
+
query: {},
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
if (!isFaststoreMyAccountEnabled) {
|
|
68
|
+
return { redirect }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const [
|
|
72
|
+
globalSectionsPromise,
|
|
73
|
+
globalSectionsHeaderPromise,
|
|
74
|
+
globalSectionsFooterPromise,
|
|
75
|
+
] = getGlobalSectionsData(previewData)
|
|
76
|
+
|
|
77
|
+
const [page, globalSections, globalSectionsHeader, globalSectionsFooter] =
|
|
78
|
+
await Promise.all([
|
|
79
|
+
getPage<PageContentType>({
|
|
80
|
+
...(previewData?.contentType === '403' && previewData),
|
|
81
|
+
contentType: '403',
|
|
82
|
+
}),
|
|
83
|
+
globalSectionsPromise,
|
|
84
|
+
globalSectionsHeaderPromise,
|
|
85
|
+
globalSectionsFooterPromise,
|
|
86
|
+
])
|
|
87
|
+
|
|
88
|
+
const globalSectionsResult = injectGlobalSections({
|
|
89
|
+
globalSections,
|
|
90
|
+
globalSectionsHeader,
|
|
91
|
+
globalSectionsFooter,
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
props: {
|
|
96
|
+
// The sections from the CMS page are not utilized here for the My Account page.
|
|
97
|
+
// page,
|
|
98
|
+
globalSections: globalSectionsResult,
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export default Page
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { Locator } from '@vtex/client-cms'
|
|
2
|
+
import type { GetStaticProps } from 'next'
|
|
3
|
+
import { NextSeo } from 'next-seo'
|
|
4
|
+
import type { ComponentType } from 'react'
|
|
5
|
+
import {
|
|
6
|
+
type GlobalSectionsData,
|
|
7
|
+
getGlobalSectionsData,
|
|
8
|
+
} from 'src/components/cms/GlobalSections'
|
|
9
|
+
|
|
10
|
+
import { MyAccountLayout } from 'src/components/account'
|
|
11
|
+
import { default as GLOBAL_COMPONENTS } from 'src/components/cms/global/Components'
|
|
12
|
+
import RenderSections, {
|
|
13
|
+
RenderSectionsBase,
|
|
14
|
+
} from 'src/components/cms/RenderSections'
|
|
15
|
+
import { OverriddenDefaultEmptyState as EmptyState } from 'src/components/sections/EmptyState/OverriddenDefaultEmptyState'
|
|
16
|
+
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
17
|
+
import PLUGINS_COMPONENTS from 'src/plugins'
|
|
18
|
+
import { type PageContentType, getPage } from 'src/server/cms'
|
|
19
|
+
import { injectGlobalSections } from 'src/server/cms/global'
|
|
20
|
+
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
21
|
+
|
|
22
|
+
/* A list of components that can be used in the CMS. */
|
|
23
|
+
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
24
|
+
...GLOBAL_COMPONENTS,
|
|
25
|
+
EmptyState,
|
|
26
|
+
...PLUGINS_COMPONENTS,
|
|
27
|
+
...CUSTOM_COMPONENTS,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type Props = {
|
|
31
|
+
page: PageContentType
|
|
32
|
+
globalSections: GlobalSectionsData
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function Page({ page: { sections }, globalSections }: Props) {
|
|
36
|
+
return (
|
|
37
|
+
<RenderSections
|
|
38
|
+
globalSections={globalSections.sections}
|
|
39
|
+
components={COMPONENTS}
|
|
40
|
+
>
|
|
41
|
+
<NextSeo noindex nofollow />
|
|
42
|
+
|
|
43
|
+
<MyAccountLayout>
|
|
44
|
+
{sections && sections.length > 0 && (
|
|
45
|
+
<RenderSectionsBase sections={sections} components={COMPONENTS} />
|
|
46
|
+
)}
|
|
47
|
+
</MyAccountLayout>
|
|
48
|
+
</RenderSections>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const getStaticProps: GetStaticProps<
|
|
53
|
+
Props,
|
|
54
|
+
Record<string, string>,
|
|
55
|
+
Locator
|
|
56
|
+
> = async ({ previewData }) => {
|
|
57
|
+
// TODO validate permissions here
|
|
58
|
+
|
|
59
|
+
const { isFaststoreMyAccountEnabled, redirect } = getMyAccountRedirect({
|
|
60
|
+
query: {},
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
if (!isFaststoreMyAccountEnabled) {
|
|
64
|
+
return { redirect }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const [
|
|
68
|
+
globalSectionsPromise,
|
|
69
|
+
globalSectionsHeaderPromise,
|
|
70
|
+
globalSectionsFooterPromise,
|
|
71
|
+
] = getGlobalSectionsData(previewData)
|
|
72
|
+
|
|
73
|
+
const [page, globalSections, globalSectionsHeader, globalSectionsFooter] =
|
|
74
|
+
await Promise.all([
|
|
75
|
+
getPage<PageContentType>({
|
|
76
|
+
...(previewData?.contentType === '404' && previewData),
|
|
77
|
+
contentType: '404',
|
|
78
|
+
}),
|
|
79
|
+
globalSectionsPromise,
|
|
80
|
+
globalSectionsHeaderPromise,
|
|
81
|
+
globalSectionsFooterPromise,
|
|
82
|
+
])
|
|
83
|
+
|
|
84
|
+
const globalSectionsResult = injectGlobalSections({
|
|
85
|
+
globalSections,
|
|
86
|
+
globalSectionsHeader,
|
|
87
|
+
globalSectionsFooter,
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
props: { page, globalSections: globalSectionsResult },
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export default Page
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Locator } from '@vtex/client-cms'
|
|
2
|
+
import type { GetStaticPaths, GetStaticProps } from 'next'
|
|
3
|
+
|
|
4
|
+
import type { MyAccountProps } from 'src/experimental/myAccountSeverSideProps'
|
|
5
|
+
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
6
|
+
|
|
7
|
+
export default function Page() {
|
|
8
|
+
return <></>
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const getStaticProps: GetStaticProps<
|
|
12
|
+
MyAccountProps,
|
|
13
|
+
Record<string, string>,
|
|
14
|
+
Locator
|
|
15
|
+
> = async () => {
|
|
16
|
+
// TODO validate permissions here
|
|
17
|
+
|
|
18
|
+
const { isFaststoreMyAccountEnabled, redirect } = getMyAccountRedirect({
|
|
19
|
+
query: {},
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
if (!isFaststoreMyAccountEnabled) {
|
|
23
|
+
return { redirect }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
redirect: {
|
|
28
|
+
destination: '/account/404',
|
|
29
|
+
permanent: false,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const getStaticPaths: GetStaticPaths = async () => {
|
|
35
|
+
return {
|
|
36
|
+
paths: [],
|
|
37
|
+
fallback: 'blocking',
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import storeConfig from 'discovery.config'
|
|
2
|
-
|
|
3
1
|
import type { GetServerSideProps, NextPage } from 'next'
|
|
2
|
+
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
4
3
|
|
|
5
4
|
const MyAccountRedirectPage: NextPage = () => {
|
|
6
5
|
return null
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
export const getServerSideProps: GetServerSideProps = async ({ query }) => {
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
redirect: {
|
|
13
|
-
destination: '/account/profile',
|
|
14
|
-
permanent: false,
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
}
|
|
9
|
+
// TODO validate permissions here
|
|
18
10
|
|
|
19
|
-
const
|
|
11
|
+
const { isFaststoreMyAccountEnabled, redirect } = getMyAccountRedirect({
|
|
12
|
+
query,
|
|
13
|
+
})
|
|
20
14
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const values = Array.isArray(value) ? value : [value]
|
|
24
|
-
values.forEach((v) => v && searchParams.append(key, v))
|
|
15
|
+
if (!isFaststoreMyAccountEnabled) {
|
|
16
|
+
return { redirect }
|
|
25
17
|
}
|
|
26
18
|
|
|
27
19
|
return {
|
|
28
20
|
redirect: {
|
|
29
|
-
destination:
|
|
21
|
+
destination: '/account/profile',
|
|
30
22
|
permanent: false,
|
|
31
23
|
},
|
|
32
24
|
}
|