@evenicanpm/storefront-core 1.8.4 → 2.0.1
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/.storybook/main.ts +2 -3
- package/.storybook/preview.tsx +0 -2
- package/__mocks__/create-mutation.ts +16 -8
- package/__mocks__/next-image.tsx +12 -3
- package/docs.tsconfig.json +5 -5
- package/package.json +3 -3
- package/src/api-manager/datasources/d365/d365-cart.datasource.ts +13 -8
- package/src/api-manager/datasources/d365/d365-categories.datasource.ts +2 -3
- package/src/api-manager/datasources/d365/d365-order.datasource.ts +4 -4
- package/src/api-manager/datasources/d365/d365-organization.datasource.ts +15 -8
- package/src/api-manager/datasources/d365/d365-product.datasource.ts +34 -19
- package/src/api-manager/datasources/d365/d365-user.datasource.ts +47 -19
- package/src/api-manager/datasources/e4/address/e4-address.remaps.ts +2 -2
- package/src/api-manager/datasources/e4/cart/e4-cart.datasource.ts +7 -5
- package/src/api-manager/datasources/e4/cart/e4-cart.remaps.ts +1 -1
- package/src/api-manager/datasources/e4/categories/e4-categories.translator.ts +3 -3
- package/src/api-manager/datasources/e4/product/e4-product.remaps.ts +3 -3
- package/src/api-manager/datasources/e4/product/e4-product.translator.ts +3 -1
- package/src/api-manager/datasources/e4/user/e4-user.datasource.ts +4 -8
- package/src/api-manager/index.ts +10 -128
- package/src/api-manager/lib/category-helpers.ts +1 -1
- package/src/api-manager/lib/get-graphql-client.ts +2 -2
- package/src/api-manager/schemas/product.schema.ts +9 -0
- package/src/api-manager/services/create-extension-query.ts +1 -1
- package/src/api-manager/services/create-query.ts +106 -266
- package/src/api-manager/types/Datasource.ts +0 -3
- package/src/auth/auth-options.test.ts +1 -1
- package/src/auth/msal.ts +1 -1
- package/src/auth/providers/entra-external-id-provider.ts +1 -1
- package/src/auth/providers/index.ts +1 -1
- package/src/cms/blocks/components/category-card.tsx +0 -1
- package/src/cms/blocks/components/category-carousel/index.tsx +3 -4
- package/src/cms/blocks/components/featured-categories.tsx +1 -2
- package/src/cms/blocks/components/featured-products.tsx +1 -2
- package/src/cms/blocks/components/footer/index.tsx +1 -2
- package/src/cms/blocks/components/footer/sections/footer-app-store.tsx +2 -2
- package/src/cms/blocks/components/footer/sections/footer-contact.tsx +1 -2
- package/src/cms/blocks/components/footer/sections/footer-links.tsx +1 -1
- package/src/cms/blocks/components/footer/sections/footer-logo.tsx +2 -3
- package/src/cms/blocks/components/footer/sections/footer-social-links.tsx +7 -3
- package/src/cms/blocks/components/footer.tsx +0 -1
- package/src/cms/blocks/components/hero-carousel/index.tsx +2 -3
- package/src/cms/blocks/components/hero.tsx +0 -1
- package/src/cms/blocks/components/image.tsx +0 -1
- package/src/cms/blocks/components/media-card.tsx +0 -1
- package/src/cms/blocks/components/product-carousel/index.tsx +3 -4
- package/src/cms/blocks/components/product-section-fullwidth/index.tsx +4 -5
- package/src/cms/blocks/components/rich-text.tsx +0 -1
- package/src/cms/blocks/components/seo/index.tsx +1 -2
- package/src/cms/blocks/components/services/index.tsx +0 -1
- package/src/cms/blocks/components/services/service-card.tsx +1 -2
- package/src/cms/blocks/components/shared/featured-product-card.tsx +3 -4
- package/src/cms/blocks/components/shared/product-category-item.tsx +4 -4
- package/src/cms/blocks/components/shared/product-grid.tsx +2 -3
- package/src/cms/blocks/components/shared/top-categories-card.tsx +2 -3
- package/src/cms/blocks/components/shared/top-rating-product-card.tsx +4 -5
- package/src/cms/blocks/icons/components/category.tsx +1 -1
- package/src/cms/blocks/icons/components/dotted-star.tsx +1 -1
- package/src/cms/blocks/icons/components/fallback-icon.tsx +0 -1
- package/src/cms/blocks/icons/components/gift-box.tsx +1 -1
- package/src/cms/blocks/icons/components/light.tsx +1 -1
- package/src/cms/blocks/icons/components/new-arrival.tsx +1 -1
- package/src/cms/blocks/icons/components/rank-badge.tsx +1 -1
- package/src/cms/blocks/icons/index.ts +1 -6
- package/src/{components-v2 → components}/BazaarTextField.tsx +8 -8
- package/src/{components-v2 → components}/CountryInput.stories.tsx +4 -2
- package/src/{components-v2 → components}/DropZone.tsx +1 -1
- package/src/{components-v2 → components}/ImageWithFallback.tsx +1 -1
- package/src/{components-v2 → components}/T/__tests__/T.test.tsx +9 -13
- package/src/{components-v2 → components}/T/index.tsx +0 -1
- package/src/{components-v2 → components}/Typography.tsx +0 -1
- package/src/components/_tests_/BazaarCard.test.tsx +16 -0
- package/src/components/_tests_/BazaarImage.test.tsx +18 -0
- package/src/components/_tests_/BazaarMenu.test.tsx +46 -0
- package/src/components/_tests_/BazaarSwitch.test.tsx +17 -0
- package/src/components/_tests_/BazaarTextField.test.tsx +22 -0
- package/src/components/_tests_/BoxShadowCard.test.tsx +14 -0
- package/src/components/_tests_/DropZone.test.tsx +51 -0
- package/src/components/_tests_/HoverBox.test.tsx +9 -0
- package/src/components/_tests_/Image.test.tsx +12 -0
- package/src/components/_tests_/ImageWithFallback.test.tsx +76 -0
- package/src/components/_tests_/LazyImage.test.tsx +32 -0
- package/src/components/_tests_/Loading.test.tsx +15 -0
- package/src/components/_tests_/SearchInput.test.tsx +14 -0
- package/src/components/_tests_/SnackbarProvider.test.tsx +22 -0
- package/src/components/_tests_/Typography.test.tsx +53 -0
- package/src/components/_tests_/WhiteButton.test.tsx +20 -0
- package/src/components/_tests_/countries-input.test.tsx +39 -0
- package/src/components/_tests_/no-records.test.tsx +14 -0
- package/src/components/_tests_/site-logo.test.tsx +28 -0
- package/src/{components-v2 → components}/accordion/accordion-header.tsx +1 -1
- package/src/{components-v2 → components}/accordion/index.ts +1 -1
- package/src/{components-v2 → components}/carousel/carousel.tsx +3 -3
- package/src/{components-v2 → components}/carousel/components/carousel-arrows.tsx +1 -1
- package/src/{components-v2 → components}/carousel/components/carousel-dots.tsx +1 -1
- package/src/{components-v2 → components}/carousel/index.ts +1 -1
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/carousel-card-1.tsx +3 -3
- package/src/components/carousel-cards/carousel-card-1/index.ts +1 -0
- package/src/{components-v2 → components}/categories/Categories.stories.tsx +1 -1
- package/src/{components-v2 → components}/categories/__tests__/category-menu.test.tsx +1 -1
- package/src/{components-v2 → components}/categories/category-list/category-list.tsx +5 -5
- package/src/{components-v2/navbar/mega-menu → components/categories/category-list}/index.ts +1 -1
- package/src/{components-v2 → components}/categories/category-list/styles.ts +1 -1
- package/src/{components-v2 → components}/categories/category-list-item/category-menu-item.tsx +1 -1
- package/src/components/categories/category-list-item/index.ts +1 -0
- package/src/{components-v2 → components}/categories/category-menu.tsx +1 -1
- package/src/{components-v2 → components}/categories/mega-menu/banner.tsx +3 -3
- package/src/{components-v2 → components}/categories/mega-menu/column-list.tsx +4 -4
- package/src/{components-v2 → components}/categories/mega-menu/mega-menu-1.tsx +3 -3
- package/src/{components-v2 → components}/categories/mega-menu/mega-menu-2.tsx +4 -4
- package/src/{components-v2 → components}/countries-input.tsx +1 -1
- package/src/{components-v2 → components}/flex-box/__tests__/flex-box.test.tsx +6 -8
- package/src/components/flex-box/index.ts +5 -0
- package/src/{components-v2 → components}/header/__tests__/header.test.tsx +8 -4
- package/src/{components-v2 → components}/header/__tests__/user.test.tsx +1 -1
- package/src/{components-v2 → components}/header/components/categories-menu.tsx +3 -3
- package/src/{components-v2 → components}/header/components/mobile-header.tsx +11 -11
- package/src/{components-v2 → components}/header/components/user.tsx +3 -3
- package/src/{components-v2 → components}/header/header.tsx +6 -6
- package/src/{components-v2 → components}/header/index.ts +1 -1
- package/src/{components-v2 → components}/header/sticky-header.tsx +3 -3
- package/src/{components-v2 → components}/icons/cart-bag.tsx +1 -0
- package/src/{components-v2 → components}/icons/category-outline.tsx +1 -0
- package/src/{components-v2 → components}/icons/category.tsx +1 -0
- package/src/{components-v2 → components}/icons/home.tsx +1 -0
- package/src/{components-v2 → components}/icons/search.tsx +1 -0
- package/src/{components-v2 → components}/icons/shopping-bag-outlined.tsx +1 -0
- package/src/{components-v2 → components}/icons/up-down.tsx +1 -0
- package/src/{components-v2 → components}/icons/user.tsx +1 -0
- package/src/{components-v2 → components}/icons/user2.tsx +1 -0
- package/src/{components-v2 → components}/mini-cart/components/cart-item.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/components/empty-view.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/components/top-header.tsx +2 -2
- package/src/{components-v2 → components}/mini-cart/index.ts +1 -1
- package/src/{components-v2 → components}/mini-cart/mini-cart-trigger.tsx +3 -5
- package/src/{components-v2 → components}/mini-cart/mini-cart.tsx +5 -5
- package/src/{components-v2 → components}/mobile-navigation/MobileNavigationBar.stories.tsx +2 -2
- package/src/{components-v2 → components}/mobile-navigation/index.ts +1 -1
- package/src/{components-v2 → components}/mobile-navigation/mobile-navigation-bar.tsx +5 -5
- package/src/{components-v2 → components}/mobile-navigation/styles/index.ts +2 -2
- package/src/{components-v2 → components}/nav-link/__tests__/nav-link.test.tsx +2 -1
- package/src/{components-v2 → components}/nav-link/index.ts +3 -3
- package/src/{components-v2 → components}/nav-link/nav-link-2.tsx +1 -1
- package/src/{components-v2 → components}/nav-link/nav-link-3.tsx +1 -1
- package/src/{components-v2 → components}/nav-link/nav-link.tsx +20 -10
- package/src/{components-v2 → components}/navbar/__tests__/navbar.test.tsx +4 -7
- package/src/{components-v2 → components}/navbar/categories.tsx +4 -4
- package/src/{components-v2 → components}/navbar/category-based-menu/category-based-menu.tsx +5 -5
- package/src/components/navbar/category-based-menu/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/category-based-menu/styles.ts +4 -4
- package/src/{components-v2 → components}/navbar/index.ts +1 -1
- package/src/components/navbar/mega-menu/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/mega-menu/mega-menu.tsx +10 -4
- package/src/{components-v2 → components}/navbar/mega-menu/styles.ts +1 -1
- package/src/{components-v2 → components}/navbar/mobile-menu/index.ts +1 -1
- package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.test.tsx +4 -3
- package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.tsx +4 -4
- package/src/{components-v2 → components}/navbar/nav-list/cms-nav.test.tsx +1 -2
- package/src/components/navbar/nav-list/index.ts +1 -0
- package/src/{components-v2 → components}/navbar/nav-list/nav-item-child.tsx +4 -4
- package/src/{components-v2 → components}/navbar/nav-list/nav-list.tsx +8 -8
- package/src/{components-v2 → components}/navbar/navbar.tsx +3 -3
- package/src/{components-v2 → components}/navbar/styles.ts +2 -2
- package/src/{components-v2 → components}/navbar/utils/transform-nav.test.ts +1 -1
- package/src/{components-v2 → components}/no-records.tsx +1 -2
- package/src/{components-v2 → components}/product-cards/favorite-button.tsx +0 -1
- package/src/{components-v2/navbar/nav-list → components/product-cards/product-card}/index.ts +1 -1
- package/src/{components-v2 → components}/product-cards/product-card/product-card.tsx +11 -11
- package/src/{components-v2 → components}/product-cards/product-card/styles/index.ts +3 -3
- package/src/{components-v2/categories/category-list → components/product-cards/product-card-plp}/index.ts +1 -1
- package/src/{components-v2 → components}/product-cards/product-card-plp/product-card.tsx +9 -9
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/ProductCardPlpList.stories.tsx +0 -1
- package/src/components/product-cards/product-card-plp-list/index.ts +1 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/product-card.tsx +9 -9
- package/src/{components-v2 → components}/product-cards/product-card-search/ProductCardSearch.stories.tsx +0 -1
- package/src/components/product-cards/product-card-search/index.ts +1 -0
- package/src/{components-v2 → components}/product-cards/product-card-search/product-card.tsx +7 -7
- package/src/{components-v2 → components}/product-cards/product-price.tsx +2 -2
- package/src/{components-v2 → components}/product-cards/product-rating.tsx +2 -2
- package/src/{components-v2 → components}/product-cards/product-title.tsx +1 -1
- package/src/{components-v2 → components}/product-cards/quantity-buttons.tsx +2 -2
- package/src/{components-v2 → components}/product-dialog/__tests__/product-dialog.test.tsx +1 -1
- package/src/{components-v2 → components}/product-dialog/compound/product-dialog.tsx +5 -5
- package/src/{components-v2 → components}/product-dialog/index.tsx +1 -1
- package/src/{components-v2 → components}/product-dimensions/Dimensions.stories.tsx +2 -4
- package/src/{components-v2 → components}/product-dimensions/__tests__/product-dimensions.test.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-error.tsx +4 -4
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-label.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list-chip.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group.tsx +3 -3
- package/src/{components-v2 → components}/product-dimensions/compound/dimensions.tsx +2 -2
- package/src/{components-v2 → components}/product-dimensions/index.tsx +1 -1
- package/src/{components-v2 → components}/product-quantity-buttons/ProductQuantity.stories.tsx +1 -3
- package/src/{components-v2 → components}/product-quantity-buttons/__tests__/product-quantity-buttons.test.tsx +12 -2
- package/src/{components-v2 → components}/product-quantity-buttons/compound/quantity-buttons-root.tsx +3 -3
- package/src/{components-v2 → components}/product-quantity-buttons/index.tsx +1 -2
- package/src/{components-v2 → components}/product-quantity-variants/ProductQuantity.stories.tsx +1 -3
- package/src/{components-v2 → components}/product-quantity-variants/__tests__/product-quantity-variants.test.tsx +6 -4
- package/src/{components-v2 → components}/product-quantity-variants/index.tsx +2 -2
- package/src/{components-v2 → components}/products-view/ProductsGrid.stories.tsx +1 -3
- package/src/{components-v2 → components}/products-view/ProductsList.stories.tsx +1 -3
- package/src/{components-v2 → components}/products-view/__tests__/products-view.test.tsx +31 -12
- package/src/{components-v2 → components}/products-view/compound/products-grid-view.tsx +7 -7
- package/src/{components-v2 → components}/products-view/compound/products-list-view.tsx +4 -4
- package/src/{components-v2 → components}/products-view/compound/types.ts +1 -1
- package/src/{components-v2 → components}/products-view/index.tsx +3 -3
- package/src/{components-v2/side-nav → components/progress}/index.ts +1 -1
- package/src/{components-v2 → components}/progress/progress.tsx +3 -3
- package/src/{components-v2 → components}/scrollbar/Scrollbar.stories.tsx +1 -3
- package/src/{components-v2 → components}/scrollbar/__tests__/scrollbar.test.tsx +7 -1
- package/src/{components-v2/progress → components/scrollbar}/index.ts +1 -1
- package/src/{components-v2 → components}/scrollbar/scrollbar.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/SearchBarLarge.stories.tsx +1 -3
- package/src/{components-v2 → components}/search-bar/__tests__/search-bar.test.tsx +7 -1
- package/src/{components-v2 → components}/search-bar/compound/results-item-lg.tsx +2 -3
- package/src/{components-v2 → components}/search-bar/compound/results-item-sm.tsx +4 -5
- package/src/{components-v2 → components}/search-bar/compound/results-suspense.tsx +5 -5
- package/src/{components-v2 → components}/search-bar/compound/results.tsx +2 -2
- package/src/{components-v2 → components}/search-bar/compound/search-bar-root.tsx +5 -5
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-category.tsx +3 -4
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-search-icon.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/compound/textfield.tsx +5 -6
- package/src/{components-v2 → components}/search-bar/index.tsx +1 -1
- package/src/{components-v2 → components}/search-bar/utils/findCategoryNameById.ts +3 -3
- package/src/{components-v2 → components}/section/__tests__/section.test.tsx +14 -7
- package/src/{components-v2 → components}/section/compound/section-header.tsx +2 -2
- package/src/{components-v2 → components}/section/compound/section.tsx +1 -1
- package/src/{components-v2 → components}/section/index.ts +1 -1
- package/src/{components-v2 → components}/side-nav/SideNav.stories.tsx +1 -1
- package/src/{components-v2 → components}/side-nav/__tests__/side-nav.test.tsx +17 -14
- package/src/{components-v2/scrollbar → components/side-nav}/index.ts +1 -1
- package/src/{components-v2 → components}/side-nav/side-nav.tsx +1 -1
- package/src/{components-v2 → components}/site-logo.tsx +8 -1
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/create-new-list.test.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +3 -3
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +4 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +3 -3
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +3 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +4 -4
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/index.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx +2 -2
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/index.tsx +1 -1
- package/src/{components-v2 → components}/wishlist-dialogs/styles.ts +1 -1
- package/src/hooks/use-nextauth-session.ts +4 -1
- package/src/hooks/use-overflow-detect.ts +4 -4
- package/src/lib/cart-cookie-handler.ts +2 -2
- package/src/lib/category-helpers.ts +1 -1
- package/src/lib/lib.ts +2 -2
- package/src/lib/page-slugs.ts +0 -2
- package/src/lib/refiner-utils.ts +5 -5
- package/src/{pages-v2 → pages}/account/account-navigation.tsx +20 -23
- package/src/{pages-v2 → pages}/account/addresses/address-form.tsx +15 -7
- package/src/{pages-v2 → pages}/account/addresses/address-item.tsx +2 -2
- package/src/{pages-v2 → pages}/account/dashboard-header.tsx +5 -5
- package/src/{pages-v2 → pages}/account/orders/icons/delivery.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/icons/package-box.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/icons/truck-filled.tsx +1 -0
- package/src/{pages-v2 → pages}/account/orders/order-progress.tsx +5 -5
- package/src/{pages-v2 → pages}/account/orders/order-row.tsx +2 -2
- package/src/{pages-v2 → pages}/account/orders/order-summary.tsx +4 -4
- package/src/{pages-v2 → pages}/account/orders/ordered-products.tsx +2 -2
- package/src/{pages-v2 → pages}/account/profile/profile-button.test.tsx +2 -2
- package/src/{pages-v2 → pages}/account/profile/profile-button.tsx +1 -1
- package/src/{pages-v2 → pages}/account/profile/user-info.tsx +2 -2
- package/src/{pages-v2 → pages}/account/styles.ts +1 -1
- package/src/{pages-v2 → pages}/account/wishlist/create-new-list.tsx +2 -2
- package/src/{pages-v2 → pages}/account/wishlist/create-wishlist-button.tsx +2 -2
- package/src/{pages-v2 → pages}/account/wishlist/wishlist-item.tsx +3 -3
- package/src/{pages-v2 → pages}/blog/blog-card.tsx +4 -4
- package/src/{pages-v2 → pages}/cart/__tests__/cart-item.test.tsx +1 -1
- package/src/{pages-v2 → pages}/cart/__tests__/checkout-form.test.tsx +1 -1
- package/src/{pages-v2 → pages}/cart/__tests__/estimate-shipping.test.tsx +11 -11
- package/src/{pages-v2 → pages}/cart/cart-item.tsx +50 -22
- package/src/{pages-v2 → pages}/cart/checkout-form.tsx +5 -5
- package/src/{pages-v2 → pages}/cart/coupon-entry.tsx +2 -2
- package/src/{pages-v2 → pages}/cart/estimate-shipping.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-form.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-step.tsx +5 -5
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/index.ts +1 -1
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/step-heading.tsx +4 -4
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/address-card.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/delivery-address.tsx +25 -21
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/new-address-form.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/payment-details.tsx +36 -16
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-date.tsx +2 -2
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/cart-item.tsx +3 -3
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/checkout-alt-summary.tsx +4 -4
- package/src/pages/checkout/checkout-alt-summary/index.ts +1 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/list-item.tsx +2 -2
- package/src/{pages-v2 → pages}/confirmation/address.tsx +2 -2
- package/src/{pages-v2 → pages}/confirmation/confirmation-summary.tsx +3 -3
- package/src/{pages-v2 → pages}/confirmation/ordered-products.tsx +2 -2
- package/src/{pages-v2 → pages}/product-details/available-shops.tsx +2 -5
- package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-button.tsx +1 -2
- package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-modal.tsx +4 -8
- package/src/{pages-v2 → pages}/product-details/bopis/pickup-option-select.tsx +1 -1
- package/src/pages/product-details/bopis/store-card/index.ts +1 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/shop-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/currency.ts +2 -2
- package/src/{pages-v2 → pages}/product-details/frequently-bought.tsx +3 -3
- package/src/{pages-v2 → pages}/product-details/frequently-product-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/product-comment.tsx +2 -2
- package/src/{pages-v2 → pages}/product-details/product-description.tsx +4 -2
- package/src/{pages-v2 → pages}/product-details/product-filter-card.tsx +5 -5
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-info.tsx +8 -9
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro-images.tsx +4 -4
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro.tsx +3 -3
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +4 -1
- package/src/{pages-v2 → pages}/product-details/product-review.tsx +3 -6
- package/src/{pages-v2 → pages}/product-details/product-tabs.tsx +1 -1
- package/src/{pages-v2 → pages}/product-details/related-products.tsx +2 -2
- package/src/{pages-v2 → pages}/product-list/breadcrumbs.tsx +0 -1
- package/src/{pages-v2 → pages}/product-list/facet-group.tsx +1 -1
- package/src/{pages-v2 → pages}/product-list/list-filter.tsx +2 -3
- package/src/{pages-v2 → pages}/product-list/pagination.tsx +1 -1
- package/src/{pages-v2 → pages}/product-list/product-list-context.tsx +4 -4
- package/src/{pages-v2 → pages}/product-list/product-list-view.tsx +6 -6
- package/src/{pages-v2 → pages}/product-list/quick-view-dialog-content.tsx +6 -11
- package/src/{pages-v2 → pages}/product-list/selected-facets.tsx +2 -2
- package/src/{pages-v2 → pages}/product-list/utils/search-for-category.ts +3 -3
- package/src/{pages-v2 → pages}/quickorder/context.ts +8 -2
- package/src/{pages-v2 → pages}/quickorder/order-upload.tsx +31 -10
- package/src/{pages-v2 → pages}/quickorder/provider.tsx +16 -17
- package/src/{pages-v2 → pages}/quickorder/quick-order-header.tsx +3 -3
- package/src/{pages-v2 → pages}/quickorder/quick-order-row.tsx +1 -1
- package/src/{pages-v2 → pages}/quickorder/quick-order-table.tsx +1 -1
- package/src/{pages-v2 → pages}/quickorder/quick-order.tsx +27 -21
- package/src/providers/nav-provider/index.tsx +1 -1
- package/src/providers/notifications/README.md +1 -1
- package/src/providers/notifications/notification-context.tsx +10 -4
- package/tsconfig.json +1 -2
- package/typedoc.js +1 -1
- package/src/components-v2/carousel-cards/carousel-card-1/index.ts +0 -1
- package/src/components-v2/categories/category-list-item/index.ts +0 -1
- package/src/components-v2/flex-box/index.ts +0 -5
- package/src/components-v2/navbar/category-based-menu/index.ts +0 -1
- package/src/components-v2/product-cards/product-card/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-plp/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-plp-list/index.ts +0 -1
- package/src/components-v2/product-cards/product-card-search/index.ts +0 -1
- package/src/pages-v2/checkout/checkout-alt-summary/index.ts +0 -1
- package/src/pages-v2/product-details/bopis/store-card/index.ts +0 -1
- package/src/{components-v2 → components}/BazaarCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarCard.tsx +0 -0
- package/src/{components-v2 → components}/BazaarImage.tsx +0 -0
- package/src/{components-v2 → components}/BazaarMenu.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarMenu.tsx +0 -0
- package/src/{components-v2 → components}/BazaarSwitch.stories.tsx +0 -0
- package/src/{components-v2 → components}/BazaarSwitch.tsx +0 -0
- package/src/{components-v2 → components}/BazaarTextField.stories.tsx +0 -0
- package/src/{components-v2 → components}/BorderShadowCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/BoxShadowCard.tsx +0 -0
- package/src/{components-v2 → components}/DropZone.stories.tsx +0 -0
- package/src/{components-v2 → components}/HoverBox.stories.tsx +0 -0
- package/src/{components-v2 → components}/HoverBox.tsx +0 -0
- package/src/{components-v2 → components}/Image.tsx +0 -0
- package/src/{components-v2 → components}/LazyImage.tsx +0 -0
- package/src/{components-v2 → components}/Loading.stories.tsx +0 -0
- package/src/{components-v2 → components}/Loading.tsx +0 -0
- package/src/{components-v2 → components}/NoRecords.stories.tsx +0 -0
- package/src/{components-v2 → components}/README.md +0 -0
- package/src/{components-v2 → components}/SearchInput.stories.tsx +0 -0
- package/src/{components-v2 → components}/SearchInput.tsx +0 -0
- package/src/{components-v2 → components}/SiteLogo.stories.tsx +0 -0
- package/src/{components-v2 → components}/SnackbarProvider.tsx +0 -0
- package/src/{components-v2 → components}/Typography.stories.tsx +0 -0
- package/src/{components-v2 → components}/WhiteButton.stories.tsx +0 -0
- package/src/{components-v2 → components}/WhiteButton.tsx +0 -0
- package/src/{components-v2 → components}/accordion/AccordionHeader.stories.tsx +0 -0
- package/src/{components-v2 → components}/accordion/__tests__/accordion-header.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel/Carousel.stories.tsx +0 -0
- package/src/{components-v2 → components}/carousel/__tests__/carousel.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel/styles/index.ts +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/CarouselCard1.stories.tsx +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/__tests__/carousel-card-1.test.tsx +0 -0
- package/src/{components-v2 → components}/carousel-cards/carousel-card-1/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/category-list/types.ts +0 -0
- package/src/{components-v2 → components}/categories/category-list-item/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/mega-menu/styles.ts +0 -0
- package/src/{components-v2 → components}/categories/types.ts +0 -0
- package/src/{components-v2 → components}/flex-box/Flex.stories.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-between.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-box.tsx +0 -0
- package/src/{components-v2 → components}/flex-box/flex-row-center.tsx +0 -0
- package/src/{components-v2 → components}/header/Header.stories.tsx +0 -0
- package/src/{components-v2 → components}/header/hooks/use-header.ts +0 -0
- package/src/{components-v2 → components}/header/styles/index.ts +0 -0
- package/src/{components-v2 → components}/icons/__tests__/icons.test.tsx +1 -1
- package/src/{components-v2 → components}/mini-cart/__tests__/cart-item.test.tsx +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/mini-cart.test.tsx +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-empty.json +0 -0
- package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-with-item.json +0 -0
- package/src/{components-v2 → components}/mini-cart/components/bottom-actions.tsx +0 -0
- package/src/{components-v2 → components}/mobile-navigation/__tests__/mobile-navigation-bar.test.tsx +2 -2
- package/src/{components-v2 → components}/nav-link/NavLink.stories.tsx +0 -0
- package/src/{components-v2 → components}/nav-link/NavLink2.stories.tsx +0 -0
- package/src/{components-v2 → components}/nav-link/NavLink3.stories.tsx +0 -0
- package/src/{components-v2 → components}/navbar/category-based-menu/types.ts +0 -0
- package/src/{components-v2 → components}/navbar/utils/transform-nav.ts +0 -0
- package/src/{components-v2 → components}/product-cards/__tests__/product-cards.test.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/discount-chip.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card/ProductCard.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp/ProductCardPlp.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp/styles/index.ts +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-plp-list/components/tags.tsx +0 -0
- package/src/{components-v2 → components}/product-cards/product-card-search/styles/index.ts +0 -0
- package/src/{components-v2 → components}/product-dialog/ProductDialog.stories.tsx +0 -0
- package/src/{components-v2 → components}/product-dimensions/__mocks__/data.ts +0 -0
- package/src/{components-v2 → components}/product-dimensions/utils/has-selected-dimension.ts +0 -0
- package/src/{components-v2 → components}/products-view/compound/context.ts +0 -0
- package/src/{components-v2 → components}/progress/ProgressBar.stories.tsx +0 -0
- package/src/{components-v2 → components}/progress/__tests__/progress.test.tsx +0 -0
- package/src/{components-v2 → components}/scrollbar/styles.ts +0 -0
- package/src/{components-v2 → components}/search-bar/compound/context.ts +0 -0
- package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-button.tsx +0 -0
- package/src/{components-v2 → components}/search-bar/hooks/use-click-outside.ts +0 -0
- package/src/{components-v2 → components}/search-bar/hooks/use-search.ts +0 -0
- package/src/{components-v2 → components}/search-bar/styles/index.ts +0 -0
- package/src/{components-v2 → components}/section/Section.stories.tsx +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistDetailData.json +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistsData.json +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/AddToWishlist.stories.tsx +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/context.ts +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +0 -0
- package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/CreateWishlistButton.stories.tsx +0 -0
- package/src/{pages-v2 → pages}/README.md +0 -0
- package/src/{pages-v2 → pages}/account/table-row.tsx +0 -0
- package/src/{pages-v2 → pages}/blog/pagination.tsx +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/cart-with-items.json +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/conutries.json +0 -0
- package/src/{pages-v2 → pages}/cart/__tests__/countries.json +0 -0
- package/src/{pages-v2 → pages}/cart/wrapper.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/node.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/styles.ts +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/safe-card-preview-data.tsx +0 -0
- package/src/{pages-v2 → pages}/checkout/checkout-alt-form/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/search-header.tsx +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/styles.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/convertSecondsToTime.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/getDaysResources.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/checkbox-label.tsx +0 -0
- package/src/{pages-v2 → pages}/product-details/product-intro/compound/context.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/product-intro/utils.ts +0 -0
- package/src/{pages-v2 → pages}/product-details/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/checkbox-label.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/facet.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/product-list-state.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/product-rating.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/quick-view-dialog.tsx +4 -4
- package/src/{pages-v2 → pages}/product-list/range-filter.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/scrollbar.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/search-bar.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/side-nav.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/swatch.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/types.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/use-product-list.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/useCategoryFilter.tsx +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/facet-helpers.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/generate-breadcrumbs.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/getCategoryFilterFromSlug.ts +0 -0
- package/src/{pages-v2 → pages}/product-list/utils/product-list-helper.ts +4 -4
- /package/src/{pages-v2 → pages}/product-list/utils/product-list-types.ts +0 -0
- /package/src/{pages-v2 → pages}/product-list/utils/sort-options.ts +0 -0
- /package/src/{pages-v2 → pages}/product-list/utils/use-previous-refiners.ts +0 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// CUSTOM DATA MODEL
|
|
4
4
|
import GetRelatedProductsDataFetcher from "@evenicanpm/storefront-core/src/api-manager/services/product/queries/get-related-products";
|
|
5
|
-
import ProductCard from "@evenicanpm/storefront-core/src/components
|
|
5
|
+
import ProductCard from "@evenicanpm/storefront-core/src/components/product-cards/product-card/product-card";
|
|
6
6
|
// GLOBAL CUSTOM COMPONENTS
|
|
7
|
-
import { H3 } from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
import { H3 } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
8
8
|
import Box from "@mui/material/Box";
|
|
9
9
|
import Grid from "@mui/material/Grid2";
|
|
10
10
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { CategoryHierarchy } from "@evenicanpm/storefront-core/src/lib/category-helpers";
|
|
2
2
|
import { Breadcrumbs, Typography } from "@mui/material";
|
|
3
3
|
import Link from "next/link";
|
|
4
|
-
import React from "react";
|
|
5
4
|
import {
|
|
6
5
|
getCategoryTranslatedName,
|
|
7
6
|
getCategoryUrl,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H6 } from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import { H6 } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
2
2
|
import { areRefinersEqual } from "@evenicanpm/storefront-core/src/lib/refiner-utils";
|
|
3
3
|
import {
|
|
4
4
|
AttributeDataType,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FlexBetween,
|
|
3
3
|
FlexBox,
|
|
4
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
5
|
-
import { Span } from "@evenicanpm/storefront-core/src/components
|
|
4
|
+
} from "@evenicanpm/storefront-core/src/components/flex-box";
|
|
5
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
6
6
|
import type { ProductRefinerValue } from "@msdyn365-commerce/retail-proxy";
|
|
7
|
-
import React from "react";
|
|
8
7
|
import CheckboxLabel from "./checkbox-label";
|
|
9
8
|
import type { RenderedFacetProps } from "./facet-group";
|
|
10
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Span } from "@evenicanpm/storefront-core/src/components
|
|
2
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
3
3
|
import MuiPagination, { type PaginationProps } from "@mui/material/Pagination";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import type { ChangeEvent } from "react";
|
|
@@ -84,7 +84,7 @@ const ProductListProvider = ({ children }: { children: React.ReactNode }) => {
|
|
|
84
84
|
.withDefault(
|
|
85
85
|
getSelectedSortOption(
|
|
86
86
|
getSortOptions(),
|
|
87
|
-
!!searchParams
|
|
87
|
+
!!searchParams?.get(PageKey.SEARCH),
|
|
88
88
|
)?.code,
|
|
89
89
|
)
|
|
90
90
|
.withOptions({ clearOnDefault: true }),
|
|
@@ -100,7 +100,7 @@ const ProductListProvider = ({ children }: { children: React.ReactNode }) => {
|
|
|
100
100
|
const initialState = React.useMemo(
|
|
101
101
|
() =>
|
|
102
102
|
buildInitialState(
|
|
103
|
-
pathname
|
|
103
|
+
pathname?.split("/") ?? [],
|
|
104
104
|
topParameter,
|
|
105
105
|
pageParameter,
|
|
106
106
|
sortParameter,
|
|
@@ -131,7 +131,7 @@ const ProductListProvider = ({ children }: { children: React.ReactNode }) => {
|
|
|
131
131
|
return prev;
|
|
132
132
|
}
|
|
133
133
|
const newState = buildInitialState(
|
|
134
|
-
pathname
|
|
134
|
+
pathname?.split("/") ?? [],
|
|
135
135
|
topParameter,
|
|
136
136
|
pageParameter,
|
|
137
137
|
sortParameter,
|
|
@@ -151,7 +151,7 @@ const ProductListProvider = ({ children }: { children: React.ReactNode }) => {
|
|
|
151
151
|
|
|
152
152
|
const { data, isLoading } = getProductList.useData(inputParams);
|
|
153
153
|
const { data: productPrices } = getProductPrices.useSuspenseData({
|
|
154
|
-
productIds: data?.products.map((product) => product.RecordId)
|
|
154
|
+
productIds: (data?.products ?? []).map((product) => product.RecordId),
|
|
155
155
|
});
|
|
156
156
|
const handleRefinerChange = useCallback(
|
|
157
157
|
(refiner: ProductRefinerValue) => {
|
|
@@ -4,21 +4,21 @@ import getCategories from "@evenicanpm/storefront-core/src/api-manager/services/
|
|
|
4
4
|
import {
|
|
5
5
|
ProductsGrid,
|
|
6
6
|
ProductsList,
|
|
7
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
8
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
} from "@evenicanpm/storefront-core/src/components/products-view";
|
|
8
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
9
9
|
import CategoryBreadcrumbs from "@evenicanpm/storefront-core/src/pages/product-list/breadcrumbs";
|
|
10
|
+
import Facet from "@evenicanpm/storefront-core/src/pages/product-list/facet";
|
|
10
11
|
import Pagination from "@evenicanpm/storefront-core/src/pages/product-list/pagination";
|
|
12
|
+
import SearchBar from "@evenicanpm/storefront-core/src/pages/product-list/search-bar";
|
|
11
13
|
import SelectedFacets from "@evenicanpm/storefront-core/src/pages/product-list/selected-facets";
|
|
12
14
|
import useProductList from "@evenicanpm/storefront-core/src/pages/product-list/use-product-list";
|
|
13
15
|
import generateBreadcrumbs from "@evenicanpm/storefront-core/src/pages/product-list/utils/generate-breadcrumbs";
|
|
14
16
|
import { searchCategory } from "@evenicanpm/storefront-core/src/pages/product-list/utils/search-for-category";
|
|
15
17
|
import { usePreviousRefiners } from "@evenicanpm/storefront-core/src/pages/product-list/utils/use-previous-refiners";
|
|
16
|
-
import Facet from "@evenicanpm/storefront-core/src/pages-v2/product-list/facet";
|
|
17
|
-
import SearchBar from "@evenicanpm/storefront-core/src/pages-v2/product-list/search-bar";
|
|
18
18
|
import { Box, CircularProgress, Paper, Typography } from "@mui/material";
|
|
19
19
|
import Grid from "@mui/material/Grid2";
|
|
20
20
|
import { useLocale, useTranslations } from "next-intl";
|
|
21
|
-
import
|
|
21
|
+
import { createContext, type ReactNode, useContext } from "react";
|
|
22
22
|
|
|
23
23
|
type PLViewCtx = { categoryId: number };
|
|
24
24
|
const ProductListViewContext = createContext<PLViewCtx | null>(null);
|
|
@@ -61,7 +61,7 @@ ProductListView.Header = function Header() {
|
|
|
61
61
|
<Box>
|
|
62
62
|
<CategoryBreadcrumbs breadcrumbs={breadcrumbs} locale={locale} />
|
|
63
63
|
<Paragraph color="grey.600" sx={{ mt: 1 }}>
|
|
64
|
-
{
|
|
64
|
+
{`${productData?.count ?? 0} ${t("results")}`}
|
|
65
65
|
</Paragraph>
|
|
66
66
|
</Box>
|
|
67
67
|
);
|
|
@@ -4,15 +4,15 @@ import type {
|
|
|
4
4
|
ProductDetails,
|
|
5
5
|
} from "@evenicanpm/storefront-core/src/api-manager/schemas/product.schema";
|
|
6
6
|
import getProductAvailability from "@evenicanpm/storefront-core/src/api-manager/services/product/queries/get-product-availability";
|
|
7
|
-
import { FlexBox } from "@evenicanpm/storefront-core/src/components
|
|
8
|
-
import ImageWithFallback from "@evenicanpm/storefront-core/src/components
|
|
9
|
-
import ProductDimensions from "@evenicanpm/storefront-core/src/components
|
|
10
|
-
import QuantityButtons from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
|
|
8
|
+
import ImageWithFallback from "@evenicanpm/storefront-core/src/components/ImageWithFallback";
|
|
9
|
+
import ProductDimensions from "@evenicanpm/storefront-core/src/components/product-dimensions";
|
|
10
|
+
import QuantityButtons from "@evenicanpm/storefront-core/src/components/product-quantity-buttons";
|
|
11
11
|
import {
|
|
12
12
|
H1,
|
|
13
13
|
H2,
|
|
14
14
|
H6,
|
|
15
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
15
|
+
} from "@evenicanpm/storefront-core/src/components/Typography";
|
|
16
16
|
import useCart, {
|
|
17
17
|
type AddToCartBopisInput,
|
|
18
18
|
} from "@evenicanpm/storefront-core/src/hooks/use-cart";
|
|
@@ -76,12 +76,7 @@ export default function QuickViewContent({
|
|
|
76
76
|
productIds: [selectedVariant?.RecordId || product.RecordId],
|
|
77
77
|
},
|
|
78
78
|
}),
|
|
79
|
-
[
|
|
80
|
-
allDimensionsSelected,
|
|
81
|
-
selectDimensions,
|
|
82
|
-
product,
|
|
83
|
-
selectedVariant?.RecordId,
|
|
84
|
-
],
|
|
79
|
+
[product, selectedVariant?.RecordId],
|
|
85
80
|
);
|
|
86
81
|
|
|
87
82
|
const { data: shippingInventoryData, isLoading: inventoryLoading } =
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Paragraph } from "@evenicanpm/storefront-core/src/components
|
|
1
|
+
import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
2
2
|
import {
|
|
3
3
|
ProductRefinerSource,
|
|
4
4
|
type ProductRefinerValue,
|
|
5
5
|
} from "@msdyn365-commerce/retail-proxy";
|
|
6
6
|
import { Button, Chip, Stack } from "@mui/material";
|
|
7
7
|
import { useTranslations } from "next-intl";
|
|
8
|
-
import
|
|
8
|
+
import { useEffect, useState } from "react";
|
|
9
9
|
import useProductList from "./use-product-list";
|
|
10
10
|
|
|
11
11
|
export default function SelectedFacets() {
|
|
@@ -8,7 +8,7 @@ const searchCategory = (
|
|
|
8
8
|
categoryId?: number,
|
|
9
9
|
categoryName?: string,
|
|
10
10
|
): CategoryHierarchy | undefined => {
|
|
11
|
-
let foundCategory;
|
|
11
|
+
let foundCategory: CategoryHierarchy | undefined;
|
|
12
12
|
if (!Array.isArray(categoryHierarchy)) {
|
|
13
13
|
return foundCategory;
|
|
14
14
|
}
|
|
@@ -69,8 +69,8 @@ const getCategoryUrl = (category: CategoryHierarchy) => {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
export {
|
|
72
|
-
searchCategory,
|
|
73
72
|
getCategoryTranslatedName,
|
|
74
|
-
normalizeCategoryName,
|
|
75
73
|
getCategoryUrl,
|
|
74
|
+
normalizeCategoryName,
|
|
75
|
+
searchCategory,
|
|
76
76
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import type { Cart } from "@evenicanpm/storefront-core/src/api-manager/schemas/cart.schema";
|
|
3
4
|
import { createContext, useContext } from "react";
|
|
4
5
|
import type { QuickOrderRowData } from "./quick-order-row";
|
|
5
6
|
|
|
7
|
+
export type UploadedItem = {
|
|
8
|
+
itemId: string | number;
|
|
9
|
+
qty?: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
6
12
|
export enum RowError {
|
|
7
13
|
ProductNotFound,
|
|
8
14
|
InvalidQuantity,
|
|
@@ -12,7 +18,7 @@ export enum RowError {
|
|
|
12
18
|
|
|
13
19
|
export type QuickOrderContextType = {
|
|
14
20
|
rows: QuickOrderRowData[];
|
|
15
|
-
cart:
|
|
21
|
+
cart: Cart | undefined;
|
|
16
22
|
handleRowUpdate: (
|
|
17
23
|
id: number,
|
|
18
24
|
value: string,
|
|
@@ -21,7 +27,7 @@ export type QuickOrderContextType = {
|
|
|
21
27
|
handleRowDelete: (id: number) => void;
|
|
22
28
|
handleAddRows: () => void;
|
|
23
29
|
handleAddToCart: () => Promise<void>;
|
|
24
|
-
handleUploadedItems: (items:
|
|
30
|
+
handleUploadedItems: (items: UploadedItem[]) => Promise<void>;
|
|
25
31
|
resetForm: () => void;
|
|
26
32
|
generateFile: () => void;
|
|
27
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import DropZone from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import DropZone from "@evenicanpm/storefront-core/src/components/DropZone";
|
|
4
4
|
import { Alert } from "@mui/material";
|
|
5
5
|
import { useTranslations } from "next-intl";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
@@ -15,8 +15,26 @@ export interface OrderUploadProps {
|
|
|
15
15
|
onUploadItems: (data: OrderUploadItem[]) => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
type XlsxCellValue = string | number | boolean | null;
|
|
19
|
+
|
|
20
|
+
interface XlsxCell {
|
|
21
|
+
v?: XlsxCellValue;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface XlsxSheet {
|
|
25
|
+
"!ref"?: string;
|
|
26
|
+
[key: string]: XlsxCell | string | undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare const XLSX: {
|
|
30
|
+
read(
|
|
31
|
+
data: string | ArrayBuffer,
|
|
32
|
+
opts: { type: string },
|
|
33
|
+
): { SheetNames: string[]; Sheets: Record<string, XlsxSheet> };
|
|
34
|
+
utils: {
|
|
35
|
+
sheet_to_json<T>(ws: XlsxSheet, opts?: { header?: number }): T[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
20
38
|
|
|
21
39
|
export default function OrderUpload({
|
|
22
40
|
onUploadItems,
|
|
@@ -51,7 +69,7 @@ export default function OrderUpload({
|
|
|
51
69
|
};
|
|
52
70
|
|
|
53
71
|
processFiles();
|
|
54
|
-
}, [files, items, onUploadItems]);
|
|
72
|
+
}, [files, items, onUploadItems, errCount]);
|
|
55
73
|
|
|
56
74
|
const handleReject = (rejs: FileRejection[]) => {
|
|
57
75
|
const msgs = rejs.map((r) => `${r.file.name} ${t("fileRejectionMsg")}`);
|
|
@@ -96,6 +114,9 @@ function loadXlsxScript() {
|
|
|
96
114
|
script.lang = "javascript";
|
|
97
115
|
script.src =
|
|
98
116
|
"https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js";
|
|
117
|
+
script.integrity =
|
|
118
|
+
"sha384-EnyY0/GSHQGSxSgMwaIPzSESbqoOLSexfnSMN2AP+39Ckmn92stwABZynq1JyzdT";
|
|
119
|
+
script.crossOrigin = "anonymous";
|
|
99
120
|
document.head.appendChild(script);
|
|
100
121
|
}
|
|
101
122
|
|
|
@@ -107,8 +128,7 @@ function readFirstSheet(binary: string | ArrayBuffer) {
|
|
|
107
128
|
}
|
|
108
129
|
|
|
109
130
|
//Extract Items
|
|
110
|
-
|
|
111
|
-
function extractItemsFromSheet(ws: Record<string, any>): OrderUploadItem[] {
|
|
131
|
+
function extractItemsFromSheet(ws: XlsxSheet): OrderUploadItem[] {
|
|
112
132
|
const ref = ws["!ref"];
|
|
113
133
|
let data: OrderUploadItem[] = [];
|
|
114
134
|
|
|
@@ -118,16 +138,17 @@ function extractItemsFromSheet(ws: Record<string, any>): OrderUploadItem[] {
|
|
|
118
138
|
const rowCount = Number(end.substring(1));
|
|
119
139
|
|
|
120
140
|
for (let i = 2; i < rowCount + 1; i++) {
|
|
121
|
-
const qty = ws[`B${i}`]?.v;
|
|
122
|
-
const itemId = ws[`A${i}`]?.v;
|
|
141
|
+
const qty = (ws[`B${i}`] as XlsxCell | undefined)?.v;
|
|
142
|
+
const itemId = (ws[`A${i}`] as XlsxCell | undefined)?.v;
|
|
123
143
|
|
|
124
|
-
if (itemId
|
|
144
|
+
if (itemId != null)
|
|
145
|
+
data.push({ itemId: String(itemId), qty: Number(qty) });
|
|
125
146
|
}
|
|
126
147
|
}
|
|
127
148
|
} catch {}
|
|
128
149
|
|
|
129
150
|
if (data.length === 0) {
|
|
130
|
-
data = XLSX.utils.sheet_to_json(ws, { header: 0 });
|
|
151
|
+
data = XLSX.utils.sheet_to_json<OrderUploadItem>(ws, { header: 0 });
|
|
131
152
|
}
|
|
132
153
|
|
|
133
154
|
return data;
|
|
@@ -5,9 +5,17 @@ import getCart from "@evenicanpm/storefront-core/src/api-manager/services/cart/q
|
|
|
5
5
|
import useSearchProducts from "@evenicanpm/storefront-core/src/api-manager/services/product/mutations/search-products";
|
|
6
6
|
import type React from "react";
|
|
7
7
|
import { useCallback, useEffect, useState } from "react";
|
|
8
|
-
import { QuickOrderContext, RowError } from "./context";
|
|
8
|
+
import { QuickOrderContext, RowError, type UploadedItem } from "./context";
|
|
9
9
|
import type { QuickOrderRowData } from "./quick-order-row";
|
|
10
10
|
|
|
11
|
+
const generateEmptyRow = (id: number): QuickOrderRowData => ({
|
|
12
|
+
id,
|
|
13
|
+
value: "",
|
|
14
|
+
quantity: "1",
|
|
15
|
+
product: null,
|
|
16
|
+
rowError: RowError.None,
|
|
17
|
+
});
|
|
18
|
+
|
|
11
19
|
export default function QuickOrderProvider({
|
|
12
20
|
children,
|
|
13
21
|
}: {
|
|
@@ -18,14 +26,6 @@ export default function QuickOrderProvider({
|
|
|
18
26
|
const { mutateAsync: addToCart } = useAddToCart();
|
|
19
27
|
const { data: cart } = getCart.useData();
|
|
20
28
|
|
|
21
|
-
const generateEmptyRow = (id: number): QuickOrderRowData => ({
|
|
22
|
-
id,
|
|
23
|
-
value: "",
|
|
24
|
-
quantity: "1",
|
|
25
|
-
product: null,
|
|
26
|
-
rowError: RowError.None,
|
|
27
|
-
});
|
|
28
|
-
|
|
29
29
|
const initTable = useCallback(() => {
|
|
30
30
|
const newRows = Array.from({ length: 3 }, (_, i) =>
|
|
31
31
|
generateEmptyRow(i + 1),
|
|
@@ -35,7 +35,7 @@ export default function QuickOrderProvider({
|
|
|
35
35
|
|
|
36
36
|
const generateRowData = useCallback(
|
|
37
37
|
(
|
|
38
|
-
product:
|
|
38
|
+
product: QuickOrderRowData["product"],
|
|
39
39
|
rowId: number,
|
|
40
40
|
value: string,
|
|
41
41
|
found: boolean,
|
|
@@ -135,24 +135,23 @@ export default function QuickOrderProvider({
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
const handleUploadedItems = async (items:
|
|
139
|
-
const itemIds = items.map((it
|
|
138
|
+
const handleUploadedItems = async (items: UploadedItem[]) => {
|
|
139
|
+
const itemIds = items.map((it) => it.itemId.toString());
|
|
140
140
|
const response = await getProductSearchResults(itemIds);
|
|
141
141
|
|
|
142
142
|
const updated = rows.filter((r) => r.value);
|
|
143
143
|
let rowId = updated.reduce((max, r) => Math.max(max, r.id), 0) + 1;
|
|
144
144
|
|
|
145
|
-
items.forEach((it
|
|
145
|
+
items.forEach((it) => {
|
|
146
146
|
const product = response?.find(
|
|
147
|
-
(r
|
|
148
|
-
r.ItemId?.toLowerCase() === it.itemId.toString().toLowerCase(),
|
|
147
|
+
(r) => r.ItemId?.toLowerCase() === it.itemId.toString().toLowerCase(),
|
|
149
148
|
);
|
|
150
149
|
const qty = it.qty || 1;
|
|
151
150
|
updated.push(
|
|
152
151
|
generateRowData(
|
|
153
152
|
product || null,
|
|
154
153
|
rowId++,
|
|
155
|
-
it.itemId,
|
|
154
|
+
it.itemId.toString(),
|
|
156
155
|
!!product,
|
|
157
156
|
qty.toString(),
|
|
158
157
|
),
|
|
@@ -172,7 +171,7 @@ export default function QuickOrderProvider({
|
|
|
172
171
|
const csv =
|
|
173
172
|
header +
|
|
174
173
|
rows.map(({ value, quantity }) => `${value},${quantity}`).join("\n");
|
|
175
|
-
const uri =
|
|
174
|
+
const uri = `data:text/csv;charset=utf-8,${csv}`;
|
|
176
175
|
|
|
177
176
|
const link = document.createElement("a");
|
|
178
177
|
link.setAttribute("href", encodeURI(uri));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { BorderShadowCard } from "@evenicanpm/storefront-core/src/components
|
|
4
|
-
import { FlexBox } from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import { BorderShadowCard } from "@evenicanpm/storefront-core/src/components/BoxShadowCard";
|
|
4
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box/index";
|
|
5
5
|
import {
|
|
6
6
|
H2,
|
|
7
7
|
Span,
|
|
8
|
-
} from "@evenicanpm/storefront-core/src/components
|
|
8
|
+
} from "@evenicanpm/storefront-core/src/components/Typography";
|
|
9
9
|
import { useTranslations } from "next-intl";
|
|
10
10
|
|
|
11
11
|
const QuickOrderHeader = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Span } from "@evenicanpm/storefront-core/src/components
|
|
3
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
4
4
|
import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
|
|
5
5
|
import type { ProductSearchResult } from "@msdyn365-commerce/retail-proxy";
|
|
6
6
|
import DeleteIcon from "@mui/icons-material/Delete";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { BorderShadowCard } from "@evenicanpm/storefront-core/src/components/BoxShadowCard";
|
|
4
|
-
import { FlexBox } from "@evenicanpm/storefront-core/src/components
|
|
5
|
-
import { Span } from "@evenicanpm/storefront-core/src/components
|
|
4
|
+
import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
|
|
5
|
+
import { Span } from "@evenicanpm/storefront-core/src/components/Typography";
|
|
6
6
|
import OrderUploadInner, {
|
|
7
7
|
type OrderUploadItem,
|
|
8
8
|
} from "@evenicanpm/storefront-core/src/pages/quickorder/order-upload";
|
|
@@ -59,6 +59,10 @@ export interface QuickOrderRowData {
|
|
|
59
59
|
rowError: RowError;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
type SearchableProduct = {
|
|
63
|
+
ItemId?: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
62
66
|
type Ctx = {
|
|
63
67
|
rows: QuickOrderRowData[];
|
|
64
68
|
setRows: React.Dispatch<React.SetStateAction<QuickOrderRowData[]>>;
|
|
@@ -73,20 +77,20 @@ type Ctx = {
|
|
|
73
77
|
|
|
74
78
|
const QuickOrderContext = createContext<Ctx | null>(null);
|
|
75
79
|
|
|
80
|
+
const generateEmptyRow = (id: number): QuickOrderRowData => ({
|
|
81
|
+
id,
|
|
82
|
+
value: "",
|
|
83
|
+
quantity: "1",
|
|
84
|
+
product: null,
|
|
85
|
+
rowError: RowError.None,
|
|
86
|
+
});
|
|
87
|
+
|
|
76
88
|
const QuickOrder = ({ children }: { children?: ReactNode }) => {
|
|
77
89
|
const [rows, setRows] = useState<QuickOrderRowData[]>([]);
|
|
78
90
|
const { mutateAsync: searchProducts } = useSearchProducts();
|
|
79
91
|
const { mutateAsync: addToCartMut } = useAddToCart();
|
|
80
92
|
const { data: cart } = getCart.useData();
|
|
81
93
|
|
|
82
|
-
const generateEmptyRow = (id: number): QuickOrderRowData => ({
|
|
83
|
-
id,
|
|
84
|
-
value: "",
|
|
85
|
-
quantity: "1",
|
|
86
|
-
product: null,
|
|
87
|
-
rowError: RowError.None,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
94
|
const tableInit = useCallback(() => {
|
|
91
95
|
const next: QuickOrderRowData[] = [];
|
|
92
96
|
for (let i = 0; i < 3; i++) next.push(generateEmptyRow(i + 1));
|
|
@@ -189,7 +193,7 @@ const QuickOrder = ({ children }: { children?: ReactNode }) => {
|
|
|
189
193
|
const csv =
|
|
190
194
|
header +
|
|
191
195
|
rows.map(({ value, quantity }) => `${value},${quantity}`).join("\n");
|
|
192
|
-
const encoded = encodeURI(
|
|
196
|
+
const encoded = encodeURI(`data:text/csv;charset=utf-8,${csv}`);
|
|
193
197
|
|
|
194
198
|
const link = document.createElement("a");
|
|
195
199
|
link.setAttribute("href", encoded);
|
|
@@ -218,21 +222,23 @@ const QuickOrder = ({ children }: { children?: ReactNode }) => {
|
|
|
218
222
|
};
|
|
219
223
|
|
|
220
224
|
const handleUploadedItems = useCallback(
|
|
221
|
-
async (items: OrderUploadItem[]) => {
|
|
222
|
-
const ids = items.map((it) => it.itemId.toString());
|
|
223
|
-
const response
|
|
225
|
+
async (items: OrderUploadItem[]): Promise<void> => {
|
|
226
|
+
const ids: string[] = items.map((it) => it.itemId.toString());
|
|
227
|
+
const response: ProductSearchResult[] | undefined =
|
|
228
|
+
await searchProductsMultiple(ids);
|
|
224
229
|
|
|
225
|
-
let curr = [...rows];
|
|
226
|
-
const firstEmptyIdx = curr.findIndex((r) => !r.value);
|
|
230
|
+
let curr: QuickOrderRowData[] = [...rows];
|
|
231
|
+
const firstEmptyIdx: number = curr.findIndex((r) => !r.value);
|
|
227
232
|
if (firstEmptyIdx > -1) curr = curr.slice(0, firstEmptyIdx);
|
|
228
233
|
|
|
229
|
-
let rowId = curr.reduce((m, r) => Math.max(m, r.id), 0) + 1;
|
|
234
|
+
let rowId: number = curr.reduce((m, r) => Math.max(m, r.id), 0) + 1;
|
|
230
235
|
|
|
231
|
-
items.forEach((it) => {
|
|
232
|
-
const product = response?.find(
|
|
233
|
-
(r) =>
|
|
236
|
+
items.forEach((it: OrderUploadItem): void => {
|
|
237
|
+
const product: ProductSearchResult | undefined = response?.find(
|
|
238
|
+
(r: SearchableProduct) =>
|
|
239
|
+
it.itemId.toString().toLowerCase() === r.ItemId?.toLowerCase(),
|
|
234
240
|
);
|
|
235
|
-
const qty = it.qty || 1;
|
|
241
|
+
const qty: number = it.qty || 1;
|
|
236
242
|
curr.push(
|
|
237
243
|
generateRowData(
|
|
238
244
|
product || null,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { CategoryHierarchy } from "@evenicanpm/storefront-core/src/lib/category-helpers";
|
|
3
3
|
import { createLink } from "@evenicanpm/storefront-core/src/providers/nav-provider/utils/createLink";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import
|
|
5
|
+
import { createContext, type PropsWithChildren, useState } from "react";
|
|
6
6
|
import type { CmsNavItem } from "@/cms/interfaces/navigation";
|
|
7
7
|
|
|
8
8
|
type NavContextType = {
|
|
@@ -4,7 +4,7 @@ _Example of how to trigger a notification._
|
|
|
4
4
|
|
|
5
5
|
```javascript
|
|
6
6
|
// import notification store
|
|
7
|
-
import { useNotificationStore } from "@evenicanpm/storefront-core/src/components
|
|
7
|
+
import { useNotificationStore } from "@evenicanpm/storefront-core/src/components/Notifications/useNotificationsStore";
|
|
8
8
|
|
|
9
9
|
// call hook and destructure trigger function
|
|
10
10
|
const { triggerNotification } = useNotificationStore();
|
|
@@ -34,11 +34,17 @@ export const NotificationProvider = ({
|
|
|
34
34
|
type: "general",
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
const setNotification = (
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const setNotification = React.useCallback(
|
|
38
|
+
(notification: NotificationType) => {
|
|
39
|
+
setAlert(notification);
|
|
40
|
+
},
|
|
41
|
+
[],
|
|
42
|
+
);
|
|
40
43
|
|
|
41
|
-
const value = React.useMemo(
|
|
44
|
+
const value = React.useMemo(
|
|
45
|
+
() => ({ alert, setNotification }),
|
|
46
|
+
[alert, setNotification],
|
|
47
|
+
);
|
|
42
48
|
return (
|
|
43
49
|
<NotificationContext.Provider value={value}>
|
|
44
50
|
{children}
|
package/tsconfig.json
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"moduleResolution": "node",
|
|
11
11
|
"resolveJsonModule": true,
|
|
12
12
|
"outDir": "./dist",
|
|
13
|
-
"baseUrl": "./",
|
|
14
13
|
"jsx": "preserve",
|
|
15
14
|
"typeRoots": ["../../../../storefront/node_modules/@types"],
|
|
16
15
|
"paths": {
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
"@evenicanpm/storefront-core/src/*": ["./src/*"],
|
|
19
18
|
"@evenicanpm/storefront-core/src/lib/*": ["src/lib/*"],
|
|
20
19
|
"@evenicanpm/storefront-core/src/api-manager/*": ["src/api-manager/*"],
|
|
21
|
-
"@evenicanpm/storefront-core/src/components/*": ["src/components
|
|
20
|
+
"@evenicanpm/storefront-core/src/components/*": ["src/components/*"],
|
|
22
21
|
"@/auth/*": ["src/auth/*"],
|
|
23
22
|
"@/_components/*": ["src/components/_components/*"],
|
|
24
23
|
"@/components/*": ["src/components/*"],
|
package/typedoc.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/carousel-cards/carousel-card-1/carousel-card-1";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/categories/category-list-item/category-menu-item";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import FlexBetween from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-between";
|
|
2
|
-
import FlexBox from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-box";
|
|
3
|
-
import FlexRowCenter from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-row-center";
|
|
4
|
-
|
|
5
|
-
export { FlexBox, FlexBetween, FlexRowCenter };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/navbar/category-based-menu/category-based-menu";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/product-cards/product-card/product-card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/product-cards/product-card-plp/product-card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProductCardPlpList } from "@evenicanpm/storefront-core/src/components-v2/product-cards/product-card-plp-list/product-card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/components-v2/product-cards/product-card-search/product-card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CheckoutAltSummary } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-summary/checkout-alt-summary";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/store-card/shop-card";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|