@evenicanpm/storefront-core 1.8.1 → 2.0.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.
Files changed (439) hide show
  1. package/docs.tsconfig.json +5 -5
  2. package/package.json +3 -3
  3. package/src/api-manager/datasources/d365/d365-cart.datasource.ts +13 -8
  4. package/src/api-manager/datasources/d365/d365-product.datasource.ts +7 -4
  5. package/src/api-manager/datasources/e4/cart/e4-cart.datasource.ts +7 -5
  6. package/src/api-manager/datasources/e4/categories/e4-categories.translator.ts +3 -3
  7. package/src/api-manager/datasources/e4/product/e4-product.translator.ts +3 -1
  8. package/src/api-manager/index.ts +3 -4
  9. package/src/api-manager/lib/category-helpers.ts +1 -1
  10. package/src/auth/auth-options.test.ts +1 -1
  11. package/src/auth/msal.ts +1 -1
  12. package/src/auth/providers/entra-external-id-provider.ts +1 -1
  13. package/src/auth/providers/index.ts +1 -1
  14. package/src/cms/blocks/components/category-carousel/index.tsx +3 -3
  15. package/src/cms/blocks/components/footer/index.tsx +1 -1
  16. package/src/cms/blocks/components/footer/sections/footer-app-store.tsx +1 -1
  17. package/src/cms/blocks/components/footer/sections/footer-contact.tsx +1 -1
  18. package/src/cms/blocks/components/footer/sections/footer-logo.tsx +2 -2
  19. package/src/cms/blocks/components/footer/sections/footer-social-links.tsx +7 -2
  20. package/src/cms/blocks/components/hero-carousel/index.tsx +2 -2
  21. package/src/cms/blocks/components/product-carousel/index.tsx +3 -3
  22. package/src/cms/blocks/components/product-section-fullwidth/index.tsx +4 -4
  23. package/src/cms/blocks/components/services/service-card.tsx +1 -1
  24. package/src/cms/blocks/components/shared/featured-product-card.tsx +3 -3
  25. package/src/cms/blocks/components/shared/product-category-item.tsx +3 -3
  26. package/src/cms/blocks/components/shared/product-grid.tsx +2 -2
  27. package/src/cms/blocks/components/shared/top-categories-card.tsx +2 -2
  28. package/src/cms/blocks/components/shared/top-rating-product-card.tsx +4 -4
  29. package/src/cms/blocks/icons/components/category.tsx +1 -0
  30. package/src/cms/blocks/icons/components/dotted-star.tsx +1 -0
  31. package/src/cms/blocks/icons/components/gift-box.tsx +1 -0
  32. package/src/cms/blocks/icons/components/light.tsx +1 -0
  33. package/src/cms/blocks/icons/components/new-arrival.tsx +1 -0
  34. package/src/cms/blocks/icons/components/rank-badge.tsx +1 -0
  35. package/src/cms/blocks/icons/index.ts +1 -6
  36. package/src/{components-v2 → components}/BazaarTextField.tsx +1 -1
  37. package/src/{components-v2 → components}/DropZone.tsx +2 -1
  38. package/src/{components-v2 → components}/ImageWithFallback.tsx +1 -1
  39. package/src/components/_tests_/BazaarCard.test.tsx +16 -0
  40. package/src/components/_tests_/BazaarImage.test.tsx +18 -0
  41. package/src/components/_tests_/BazaarMenu.test.tsx +46 -0
  42. package/src/components/_tests_/BazaarSwitch.test.tsx +17 -0
  43. package/src/components/_tests_/BazaarTextField.test.tsx +22 -0
  44. package/src/components/_tests_/BoxShadowCard.test.tsx +14 -0
  45. package/src/components/_tests_/DropZone.test.tsx +51 -0
  46. package/src/components/_tests_/HoverBox.test.tsx +9 -0
  47. package/src/components/_tests_/Image.test.tsx +12 -0
  48. package/src/components/_tests_/ImageWithFallback.test.tsx +76 -0
  49. package/src/components/_tests_/LazyImage.test.tsx +32 -0
  50. package/src/components/_tests_/Loading.test.tsx +15 -0
  51. package/src/components/_tests_/SearchInput.test.tsx +14 -0
  52. package/src/components/_tests_/SnackbarProvider.test.tsx +22 -0
  53. package/src/components/_tests_/Typography.test.tsx +53 -0
  54. package/src/components/_tests_/WhiteButton.test.tsx +20 -0
  55. package/src/components/_tests_/countries-input.test.tsx +39 -0
  56. package/src/components/_tests_/no-records.test.tsx +14 -0
  57. package/src/components/_tests_/site-logo.test.tsx +29 -0
  58. package/src/{components-v2 → components}/accordion/accordion-header.tsx +1 -1
  59. package/src/{components-v2 → components}/accordion/index.ts +1 -1
  60. package/src/{components-v2 → components}/carousel/carousel.tsx +3 -3
  61. package/src/{components-v2 → components}/carousel/components/carousel-arrows.tsx +1 -1
  62. package/src/{components-v2 → components}/carousel/components/carousel-dots.tsx +1 -1
  63. package/src/{components-v2 → components}/carousel/index.ts +1 -1
  64. package/src/{components-v2 → components}/carousel-cards/carousel-card-1/carousel-card-1.tsx +3 -3
  65. package/src/components/carousel-cards/carousel-card-1/index.ts +1 -0
  66. package/src/{components-v2 → components}/categories/Categories.stories.tsx +1 -1
  67. package/src/{components-v2 → components}/categories/__tests__/category-menu.test.tsx +1 -1
  68. package/src/{components-v2 → components}/categories/category-list/category-list.tsx +4 -4
  69. package/src/{components-v2/navbar/mega-menu → components/categories/category-list}/index.ts +1 -1
  70. package/src/{components-v2 → components}/categories/category-list/styles.ts +1 -1
  71. package/src/{components-v2 → components}/categories/category-list-item/category-menu-item.tsx +1 -1
  72. package/src/components/categories/category-list-item/index.ts +1 -0
  73. package/src/{components-v2 → components}/categories/category-menu.tsx +1 -1
  74. package/src/{components-v2 → components}/categories/mega-menu/banner.tsx +3 -3
  75. package/src/{components-v2 → components}/categories/mega-menu/column-list.tsx +4 -4
  76. package/src/{components-v2 → components}/categories/mega-menu/mega-menu-1.tsx +3 -3
  77. package/src/{components-v2 → components}/categories/mega-menu/mega-menu-2.tsx +4 -4
  78. package/src/{components-v2 → components}/flex-box/__tests__/flex-box.test.tsx +6 -8
  79. package/src/components/flex-box/index.ts +5 -0
  80. package/src/{components-v2 → components}/header/__tests__/header.test.tsx +8 -4
  81. package/src/{components-v2 → components}/header/__tests__/user.test.tsx +1 -1
  82. package/src/{components-v2 → components}/header/components/categories-menu.tsx +3 -3
  83. package/src/{components-v2 → components}/header/components/mobile-header.tsx +11 -11
  84. package/src/{components-v2 → components}/header/components/user.tsx +3 -3
  85. package/src/{components-v2 → components}/header/header.tsx +6 -6
  86. package/src/{components-v2 → components}/header/index.ts +1 -1
  87. package/src/{components-v2 → components}/header/sticky-header.tsx +3 -3
  88. package/src/{components-v2 → components}/icons/cart-bag.tsx +1 -0
  89. package/src/{components-v2 → components}/icons/category-outline.tsx +1 -0
  90. package/src/{components-v2 → components}/icons/category.tsx +1 -0
  91. package/src/{components-v2 → components}/icons/home.tsx +1 -0
  92. package/src/{components-v2 → components}/icons/search.tsx +1 -0
  93. package/src/{components-v2 → components}/icons/shopping-bag-outlined.tsx +1 -0
  94. package/src/{components-v2 → components}/icons/up-down.tsx +1 -0
  95. package/src/{components-v2 → components}/icons/user.tsx +1 -0
  96. package/src/{components-v2 → components}/icons/user2.tsx +1 -0
  97. package/src/{components-v2 → components}/mini-cart/components/cart-item.tsx +2 -2
  98. package/src/{components-v2 → components}/mini-cart/components/empty-view.tsx +2 -2
  99. package/src/{components-v2 → components}/mini-cart/components/top-header.tsx +2 -2
  100. package/src/{components-v2 → components}/mini-cart/index.ts +1 -1
  101. package/src/{components-v2 → components}/mini-cart/mini-cart-trigger.tsx +3 -5
  102. package/src/{components-v2 → components}/mini-cart/mini-cart.tsx +5 -5
  103. package/src/{components-v2 → components}/mobile-navigation/MobileNavigationBar.stories.tsx +2 -2
  104. package/src/{components-v2 → components}/mobile-navigation/index.ts +1 -1
  105. package/src/{components-v2 → components}/mobile-navigation/mobile-navigation-bar.tsx +5 -5
  106. package/src/{components-v2 → components}/mobile-navigation/styles/index.ts +2 -2
  107. package/src/{components-v2 → components}/nav-link/__tests__/nav-link.test.tsx +2 -1
  108. package/src/{components-v2 → components}/nav-link/index.ts +3 -3
  109. package/src/{components-v2 → components}/nav-link/nav-link-2.tsx +1 -1
  110. package/src/{components-v2 → components}/nav-link/nav-link-3.tsx +1 -1
  111. package/src/{components-v2 → components}/nav-link/nav-link.tsx +26 -10
  112. package/src/{components-v2 → components}/navbar/__tests__/navbar.test.tsx +4 -7
  113. package/src/{components-v2 → components}/navbar/categories.tsx +4 -4
  114. package/src/{components-v2 → components}/navbar/category-based-menu/category-based-menu.tsx +5 -5
  115. package/src/components/navbar/category-based-menu/index.ts +1 -0
  116. package/src/{components-v2 → components}/navbar/category-based-menu/styles.ts +4 -4
  117. package/src/{components-v2 → components}/navbar/index.ts +1 -1
  118. package/src/components/navbar/mega-menu/index.ts +1 -0
  119. package/src/{components-v2 → components}/navbar/mega-menu/mega-menu.tsx +3 -3
  120. package/src/{components-v2 → components}/navbar/mega-menu/styles.ts +1 -1
  121. package/src/{components-v2 → components}/navbar/mobile-menu/index.ts +1 -1
  122. package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.test.tsx +2 -2
  123. package/src/{components-v2 → components}/navbar/mobile-menu/mobile-menu.tsx +4 -4
  124. package/src/{components-v2 → components}/navbar/nav-list/cms-nav.test.tsx +1 -1
  125. package/src/components/navbar/nav-list/index.ts +1 -0
  126. package/src/{components-v2 → components}/navbar/nav-list/nav-item-child.tsx +4 -4
  127. package/src/{components-v2 → components}/navbar/nav-list/nav-list.tsx +8 -8
  128. package/src/{components-v2 → components}/navbar/navbar.tsx +3 -3
  129. package/src/{components-v2 → components}/navbar/styles.ts +2 -2
  130. package/src/{components-v2 → components}/navbar/utils/transform-nav.test.ts +1 -1
  131. package/src/{components-v2 → components}/no-records.tsx +1 -1
  132. package/src/{components-v2/navbar/nav-list → components/product-cards/product-card}/index.ts +1 -1
  133. package/src/{components-v2 → components}/product-cards/product-card/product-card.tsx +11 -11
  134. package/src/{components-v2 → components}/product-cards/product-card/styles/index.ts +1 -1
  135. package/src/{components-v2/categories/category-list → components/product-cards/product-card-plp}/index.ts +1 -1
  136. package/src/{components-v2 → components}/product-cards/product-card-plp/product-card.tsx +9 -9
  137. package/src/components/product-cards/product-card-plp-list/index.ts +1 -0
  138. package/src/{components-v2 → components}/product-cards/product-card-plp-list/product-card.tsx +9 -9
  139. package/src/components/product-cards/product-card-search/index.ts +1 -0
  140. package/src/{components-v2 → components}/product-cards/product-card-search/product-card.tsx +7 -7
  141. package/src/{components-v2 → components}/product-cards/product-price.tsx +2 -2
  142. package/src/{components-v2 → components}/product-cards/product-rating.tsx +2 -2
  143. package/src/{components-v2 → components}/product-cards/product-title.tsx +1 -1
  144. package/src/{components-v2 → components}/product-cards/quantity-buttons.tsx +2 -2
  145. package/src/{components-v2 → components}/product-dialog/__tests__/product-dialog.test.tsx +1 -1
  146. package/src/{components-v2 → components}/product-dialog/compound/product-dialog.tsx +5 -5
  147. package/src/{components-v2 → components}/product-dialog/index.tsx +1 -1
  148. package/src/{components-v2 → components}/product-dimensions/__tests__/product-dimensions.test.tsx +2 -2
  149. package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-error.tsx +4 -4
  150. package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-label.tsx +2 -2
  151. package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list-chip.tsx +1 -1
  152. package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group-list.tsx +2 -2
  153. package/src/{components-v2 → components}/product-dimensions/compound/dimensions-group.tsx +3 -3
  154. package/src/{components-v2 → components}/product-dimensions/compound/dimensions.tsx +1 -1
  155. package/src/{components-v2 → components}/product-dimensions/index.tsx +1 -1
  156. package/src/{components-v2 → components}/product-quantity-buttons/__tests__/product-quantity-buttons.test.tsx +10 -1
  157. package/src/{components-v2 → components}/product-quantity-buttons/compound/quantity-buttons-root.tsx +2 -2
  158. package/src/{components-v2 → components}/product-quantity-buttons/index.tsx +1 -1
  159. package/src/{components-v2 → components}/product-quantity-variants/__tests__/product-quantity-variants.test.tsx +6 -4
  160. package/src/{components-v2 → components}/product-quantity-variants/index.tsx +2 -2
  161. package/src/{components-v2 → components}/products-view/__tests__/products-view.test.tsx +11 -3
  162. package/src/{components-v2 → components}/products-view/compound/products-grid-view.tsx +7 -7
  163. package/src/{components-v2 → components}/products-view/compound/products-list-view.tsx +4 -4
  164. package/src/{components-v2 → components}/products-view/compound/types.ts +1 -1
  165. package/src/{components-v2 → components}/products-view/index.tsx +2 -2
  166. package/src/{components-v2/side-nav → components/progress}/index.ts +1 -1
  167. package/src/{components-v2 → components}/progress/progress.tsx +3 -3
  168. package/src/{components-v2/progress → components/scrollbar}/index.ts +1 -1
  169. package/src/{components-v2 → components}/scrollbar/scrollbar.tsx +1 -1
  170. package/src/{components-v2 → components}/search-bar/__tests__/search-bar.test.tsx +7 -1
  171. package/src/{components-v2 → components}/search-bar/compound/results-item-lg.tsx +2 -2
  172. package/src/{components-v2 → components}/search-bar/compound/results-item-sm.tsx +4 -4
  173. package/src/{components-v2 → components}/search-bar/compound/results-suspense.tsx +5 -5
  174. package/src/{components-v2 → components}/search-bar/compound/results.tsx +2 -2
  175. package/src/{components-v2 → components}/search-bar/compound/search-bar-root.tsx +5 -5
  176. package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-category.tsx +3 -3
  177. package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-search-icon.tsx +1 -1
  178. package/src/{components-v2 → components}/search-bar/compound/textfield.tsx +5 -5
  179. package/src/{components-v2 → components}/search-bar/index.tsx +1 -1
  180. package/src/{components-v2 → components}/section/compound/section-header.tsx +2 -2
  181. package/src/{components-v2 → components}/section/compound/section.tsx +1 -1
  182. package/src/{components-v2 → components}/section/index.ts +1 -1
  183. package/src/{components-v2 → components}/side-nav/__tests__/side-nav.test.tsx +17 -14
  184. package/src/{components-v2/scrollbar → components/side-nav}/index.ts +1 -1
  185. package/src/{components-v2 → components}/side-nav/side-nav.tsx +1 -1
  186. package/src/{components-v2 → components}/wishlist-dialogs/__tests__/create-new-list.test.tsx +1 -1
  187. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/add-to-wishlist-button.tsx +2 -2
  188. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-bottom-ui.tsx +1 -1
  189. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-dialog.tsx +4 -4
  190. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/add-to-wishlist-list.tsx +3 -3
  191. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-header.tsx +3 -3
  192. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/wishlist-dialog-item.tsx +4 -4
  193. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/index.tsx +1 -1
  194. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-bottom-ui.tsx +1 -1
  195. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-dialog.tsx +2 -2
  196. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/compound/create-wishlist-form.tsx +2 -2
  197. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/create-wishlist-button.tsx +2 -2
  198. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/index.tsx +1 -1
  199. package/src/{components-v2 → components}/wishlist-dialogs/styles.ts +1 -1
  200. package/src/hooks/use-overflow-detect.ts +4 -4
  201. package/src/lib/cart-cookie-handler.ts +2 -2
  202. package/src/lib/category-helpers.ts +1 -1
  203. package/src/lib/lib.ts +1 -1
  204. package/src/lib/refiner-utils.ts +2 -2
  205. package/src/{pages-v2 → pages}/account/account-navigation.tsx +4 -4
  206. package/src/{pages-v2 → pages}/account/addresses/address-item.tsx +2 -2
  207. package/src/{pages-v2 → pages}/account/dashboard-header.tsx +4 -4
  208. package/src/{pages-v2 → pages}/account/orders/icons/delivery.tsx +1 -0
  209. package/src/{pages-v2 → pages}/account/orders/icons/package-box.tsx +1 -0
  210. package/src/{pages-v2 → pages}/account/orders/icons/truck-filled.tsx +1 -0
  211. package/src/{pages-v2 → pages}/account/orders/order-progress.tsx +5 -5
  212. package/src/{pages-v2 → pages}/account/orders/order-row.tsx +2 -2
  213. package/src/{pages-v2 → pages}/account/orders/order-summary.tsx +4 -4
  214. package/src/{pages-v2 → pages}/account/orders/ordered-products.tsx +2 -2
  215. package/src/{pages-v2 → pages}/account/profile/profile-button.test.tsx +2 -2
  216. package/src/{pages-v2 → pages}/account/profile/profile-button.tsx +1 -1
  217. package/src/{pages-v2 → pages}/account/profile/user-info.tsx +2 -2
  218. package/src/{pages-v2 → pages}/account/styles.ts +1 -1
  219. package/src/{pages-v2 → pages}/account/wishlist/create-new-list.tsx +2 -2
  220. package/src/{pages-v2 → pages}/account/wishlist/create-wishlist-button.tsx +2 -2
  221. package/src/{pages-v2 → pages}/account/wishlist/wishlist-item.tsx +3 -3
  222. package/src/{pages-v2 → pages}/blog/blog-card.tsx +4 -4
  223. package/src/{pages-v2 → pages}/cart/__tests__/cart-item.test.tsx +1 -1
  224. package/src/{pages-v2 → pages}/cart/__tests__/checkout-form.test.tsx +1 -1
  225. package/src/{pages-v2 → pages}/cart/__tests__/estimate-shipping.test.tsx +11 -11
  226. package/src/{pages-v2 → pages}/cart/cart-item.tsx +50 -22
  227. package/src/{pages-v2 → pages}/cart/checkout-form.tsx +4 -4
  228. package/src/{pages-v2 → pages}/cart/coupon-entry.tsx +2 -2
  229. package/src/{pages-v2 → pages}/cart/estimate-shipping.tsx +2 -2
  230. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-form.tsx +2 -2
  231. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/checkout-step.tsx +4 -4
  232. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/index.ts +1 -1
  233. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/step-heading.tsx +4 -4
  234. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/address-card.tsx +2 -2
  235. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/delivery-address.tsx +25 -21
  236. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/new-address-form.tsx +2 -2
  237. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/customer-info/customer-information.tsx +2 -2
  238. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/payment-details.tsx +31 -14
  239. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-date.tsx +2 -2
  240. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/shipping/delivery-options.tsx +3 -3
  241. package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/cart-item.tsx +2 -2
  242. package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/checkout-alt-summary.tsx +3 -3
  243. package/src/pages/checkout/checkout-alt-summary/index.ts +1 -0
  244. package/src/{pages-v2 → pages}/checkout/checkout-alt-summary/list-item.tsx +2 -2
  245. package/src/{pages-v2 → pages}/confirmation/address.tsx +1 -1
  246. package/src/{pages-v2 → pages}/confirmation/confirmation-summary.tsx +2 -2
  247. package/src/{pages-v2 → pages}/confirmation/ordered-products.tsx +2 -2
  248. package/src/{pages-v2 → pages}/product-details/available-shops.tsx +2 -5
  249. package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-button.tsx +1 -2
  250. package/src/{pages-v2 → pages}/product-details/bopis/find-in-store-modal.tsx +4 -8
  251. package/src/{pages-v2 → pages}/product-details/bopis/pickup-option-select.tsx +1 -1
  252. package/src/pages/product-details/bopis/store-card/index.ts +1 -0
  253. package/src/{pages-v2 → pages}/product-details/bopis/store-card/shop-card.tsx +5 -5
  254. package/src/{pages-v2 → pages}/product-details/currency.ts +1 -1
  255. package/src/{pages-v2 → pages}/product-details/frequently-bought.tsx +3 -3
  256. package/src/{pages-v2 → pages}/product-details/frequently-product-card.tsx +5 -5
  257. package/src/{pages-v2 → pages}/product-details/product-comment.tsx +2 -2
  258. package/src/{pages-v2 → pages}/product-details/product-description.tsx +4 -2
  259. package/src/{pages-v2 → pages}/product-details/product-filter-card.tsx +5 -5
  260. package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-info.tsx +8 -9
  261. package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro-images.tsx +4 -4
  262. package/src/{pages-v2 → pages}/product-details/product-intro/compound/product-intro.tsx +3 -3
  263. package/src/{pages-v2 → pages}/product-details/product-review.tsx +3 -6
  264. package/src/{pages-v2 → pages}/product-details/product-tabs.tsx +1 -1
  265. package/src/{pages-v2 → pages}/product-details/related-products.tsx +2 -2
  266. package/src/{pages-v2 → pages}/product-list/facet-group.tsx +1 -1
  267. package/src/{pages-v2 → pages}/product-list/list-filter.tsx +2 -2
  268. package/src/{pages-v2 → pages}/product-list/pagination.tsx +1 -1
  269. package/src/{pages-v2 → pages}/product-list/product-list-context.tsx +3 -3
  270. package/src/{pages-v2 → pages}/product-list/product-list-view.tsx +4 -4
  271. package/src/{pages-v2 → pages}/product-list/quick-view-dialog-content.tsx +6 -11
  272. package/src/{pages-v2 → pages}/product-list/selected-facets.tsx +1 -1
  273. package/src/{pages-v2 → pages}/product-list/utils/search-for-category.ts +3 -3
  274. package/src/{pages-v2 → pages}/quickorder/order-upload.tsx +5 -2
  275. package/src/{pages-v2 → pages}/quickorder/provider.tsx +8 -8
  276. package/src/{pages-v2 → pages}/quickorder/quick-order-header.tsx +3 -3
  277. package/src/{pages-v2 → pages}/quickorder/quick-order-row.tsx +1 -1
  278. package/src/{pages-v2 → pages}/quickorder/quick-order-table.tsx +1 -1
  279. package/src/{pages-v2 → pages}/quickorder/quick-order.tsx +10 -10
  280. package/src/providers/notifications/README.md +1 -1
  281. package/src/providers/notifications/notification-context.tsx +10 -4
  282. package/tsconfig.json +1 -1
  283. package/typedoc.js +1 -1
  284. package/src/components-v2/carousel-cards/carousel-card-1/index.ts +0 -1
  285. package/src/components-v2/categories/category-list-item/index.ts +0 -1
  286. package/src/components-v2/flex-box/index.ts +0 -5
  287. package/src/components-v2/navbar/category-based-menu/index.ts +0 -1
  288. package/src/components-v2/product-cards/product-card/index.ts +0 -1
  289. package/src/components-v2/product-cards/product-card-plp/index.ts +0 -1
  290. package/src/components-v2/product-cards/product-card-plp-list/index.ts +0 -1
  291. package/src/components-v2/product-cards/product-card-search/index.ts +0 -1
  292. package/src/pages-v2/checkout/checkout-alt-summary/index.ts +0 -1
  293. package/src/pages-v2/product-details/bopis/store-card/index.ts +0 -1
  294. package/src/{components-v2 → components}/BazaarCard.stories.tsx +0 -0
  295. package/src/{components-v2 → components}/BazaarCard.tsx +0 -0
  296. package/src/{components-v2 → components}/BazaarImage.tsx +0 -0
  297. package/src/{components-v2 → components}/BazaarMenu.stories.tsx +0 -0
  298. package/src/{components-v2 → components}/BazaarMenu.tsx +0 -0
  299. package/src/{components-v2 → components}/BazaarSwitch.stories.tsx +0 -0
  300. package/src/{components-v2 → components}/BazaarSwitch.tsx +0 -0
  301. package/src/{components-v2 → components}/BazaarTextField.stories.tsx +0 -0
  302. package/src/{components-v2 → components}/BorderShadowCard.stories.tsx +0 -0
  303. package/src/{components-v2 → components}/BoxShadowCard.tsx +0 -0
  304. package/src/{components-v2 → components}/CountryInput.stories.tsx +0 -0
  305. package/src/{components-v2 → components}/DropZone.stories.tsx +0 -0
  306. package/src/{components-v2 → components}/HoverBox.stories.tsx +0 -0
  307. package/src/{components-v2 → components}/HoverBox.tsx +0 -0
  308. package/src/{components-v2 → components}/Image.tsx +0 -0
  309. package/src/{components-v2 → components}/LazyImage.tsx +0 -0
  310. package/src/{components-v2 → components}/Loading.stories.tsx +0 -0
  311. package/src/{components-v2 → components}/Loading.tsx +0 -0
  312. package/src/{components-v2 → components}/NoRecords.stories.tsx +0 -0
  313. package/src/{components-v2 → components}/README.md +0 -0
  314. package/src/{components-v2 → components}/SearchInput.stories.tsx +0 -0
  315. package/src/{components-v2 → components}/SearchInput.tsx +0 -0
  316. package/src/{components-v2 → components}/SiteLogo.stories.tsx +0 -0
  317. package/src/{components-v2 → components}/SnackbarProvider.tsx +0 -0
  318. package/src/{components-v2 → components}/T/__tests__/T.test.tsx +0 -0
  319. package/src/{components-v2 → components}/T/index.tsx +0 -0
  320. package/src/{components-v2 → components}/Typography.stories.tsx +0 -0
  321. package/src/{components-v2 → components}/Typography.tsx +0 -0
  322. package/src/{components-v2 → components}/WhiteButton.stories.tsx +0 -0
  323. package/src/{components-v2 → components}/WhiteButton.tsx +0 -0
  324. package/src/{components-v2 → components}/accordion/AccordionHeader.stories.tsx +0 -0
  325. package/src/{components-v2 → components}/accordion/__tests__/accordion-header.test.tsx +0 -0
  326. package/src/{components-v2 → components}/carousel/Carousel.stories.tsx +0 -0
  327. package/src/{components-v2 → components}/carousel/__tests__/carousel.test.tsx +0 -0
  328. package/src/{components-v2 → components}/carousel/styles/index.ts +0 -0
  329. package/src/{components-v2 → components}/carousel-cards/carousel-card-1/CarouselCard1.stories.tsx +0 -0
  330. package/src/{components-v2 → components}/carousel-cards/carousel-card-1/__tests__/carousel-card-1.test.tsx +0 -0
  331. package/src/{components-v2 → components}/carousel-cards/carousel-card-1/styles.ts +0 -0
  332. package/src/{components-v2 → components}/categories/category-list/types.ts +0 -0
  333. package/src/{components-v2 → components}/categories/category-list-item/styles.ts +0 -0
  334. package/src/{components-v2 → components}/categories/mega-menu/styles.ts +0 -0
  335. package/src/{components-v2 → components}/categories/types.ts +0 -0
  336. package/src/{components-v2 → components}/countries-input.tsx +0 -0
  337. package/src/{components-v2 → components}/flex-box/Flex.stories.tsx +0 -0
  338. package/src/{components-v2 → components}/flex-box/flex-between.tsx +0 -0
  339. package/src/{components-v2 → components}/flex-box/flex-box.tsx +0 -0
  340. package/src/{components-v2 → components}/flex-box/flex-row-center.tsx +0 -0
  341. package/src/{components-v2 → components}/header/Header.stories.tsx +0 -0
  342. package/src/{components-v2 → components}/header/hooks/use-header.ts +0 -0
  343. package/src/{components-v2 → components}/header/styles/index.ts +0 -0
  344. package/src/{components-v2 → components}/icons/__tests__/icons.test.tsx +1 -1
  345. package/src/{components-v2 → components}/mini-cart/__tests__/cart-item.test.tsx +0 -0
  346. package/src/{components-v2 → components}/mini-cart/__tests__/mini-cart.test.tsx +0 -0
  347. package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-empty.json +0 -0
  348. package/src/{components-v2 → components}/mini-cart/__tests__/test-cart-with-item.json +0 -0
  349. package/src/{components-v2 → components}/mini-cart/components/bottom-actions.tsx +0 -0
  350. package/src/{components-v2 → components}/mobile-navigation/__tests__/mobile-navigation-bar.test.tsx +2 -2
  351. package/src/{components-v2 → components}/nav-link/NavLink.stories.tsx +0 -0
  352. package/src/{components-v2 → components}/nav-link/NavLink2.stories.tsx +0 -0
  353. package/src/{components-v2 → components}/nav-link/NavLink3.stories.tsx +0 -0
  354. package/src/{components-v2 → components}/navbar/category-based-menu/types.ts +0 -0
  355. package/src/{components-v2 → components}/navbar/utils/transform-nav.ts +0 -0
  356. package/src/{components-v2 → components}/product-cards/__tests__/product-cards.test.tsx +0 -0
  357. package/src/{components-v2 → components}/product-cards/discount-chip.tsx +0 -0
  358. package/src/{components-v2 → components}/product-cards/favorite-button.tsx +0 -0
  359. package/src/{components-v2 → components}/product-cards/product-card/ProductCard.stories.tsx +0 -0
  360. package/src/{components-v2 → components}/product-cards/product-card-plp/ProductCardPlp.stories.tsx +0 -0
  361. package/src/{components-v2 → components}/product-cards/product-card-plp/styles/index.ts +0 -0
  362. package/src/{components-v2 → components}/product-cards/product-card-plp-list/ProductCardPlpList.stories.tsx +0 -0
  363. package/src/{components-v2 → components}/product-cards/product-card-plp-list/components/tags.tsx +0 -0
  364. package/src/{components-v2 → components}/product-cards/product-card-search/ProductCardSearch.stories.tsx +0 -0
  365. package/src/{components-v2 → components}/product-cards/product-card-search/styles/index.ts +0 -0
  366. package/src/{components-v2 → components}/product-dialog/ProductDialog.stories.tsx +0 -0
  367. package/src/{components-v2 → components}/product-dimensions/Dimensions.stories.tsx +0 -0
  368. package/src/{components-v2 → components}/product-dimensions/__mocks__/data.ts +0 -0
  369. package/src/{components-v2 → components}/product-dimensions/utils/has-selected-dimension.ts +0 -0
  370. package/src/{components-v2 → components}/product-quantity-buttons/ProductQuantity.stories.tsx +0 -0
  371. package/src/{components-v2 → components}/product-quantity-variants/ProductQuantity.stories.tsx +0 -0
  372. package/src/{components-v2 → components}/products-view/ProductsGrid.stories.tsx +0 -0
  373. package/src/{components-v2 → components}/products-view/ProductsList.stories.tsx +0 -0
  374. package/src/{components-v2 → components}/products-view/compound/context.ts +0 -0
  375. package/src/{components-v2 → components}/progress/ProgressBar.stories.tsx +0 -0
  376. package/src/{components-v2 → components}/progress/__tests__/progress.test.tsx +0 -0
  377. package/src/{components-v2 → components}/scrollbar/Scrollbar.stories.tsx +0 -0
  378. package/src/{components-v2 → components}/scrollbar/__tests__/scrollbar.test.tsx +0 -0
  379. package/src/{components-v2 → components}/scrollbar/styles.ts +0 -0
  380. package/src/{components-v2 → components}/search-bar/SearchBarLarge.stories.tsx +0 -0
  381. package/src/{components-v2 → components}/search-bar/compound/context.ts +0 -0
  382. package/src/{components-v2 → components}/search-bar/compound/textfield-adornment-button.tsx +0 -0
  383. package/src/{components-v2 → components}/search-bar/hooks/use-click-outside.ts +0 -0
  384. package/src/{components-v2 → components}/search-bar/hooks/use-search.ts +0 -0
  385. package/src/{components-v2 → components}/search-bar/styles/index.ts +0 -0
  386. package/src/{components-v2 → components}/search-bar/utils/findCategoryNameById.ts +0 -0
  387. package/src/{components-v2 → components}/section/Section.stories.tsx +0 -0
  388. package/src/{components-v2 → components}/section/__tests__/section.test.tsx +0 -0
  389. package/src/{components-v2 → components}/side-nav/SideNav.stories.tsx +0 -0
  390. package/src/{components-v2 → components}/site-logo.tsx +0 -0
  391. package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistDetailData.json +0 -0
  392. package/src/{components-v2 → components}/wishlist-dialogs/__tests__/wishlistsData.json +0 -0
  393. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/AddToWishlist.stories.tsx +0 -0
  394. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/compound/context.ts +0 -0
  395. package/src/{components-v2 → components}/wishlist-dialogs/add-to-wishlist/hooks/use-add-to-wishlist.ts +0 -0
  396. package/src/{components-v2 → components}/wishlist-dialogs/create-wishlist/CreateWishlistButton.stories.tsx +0 -0
  397. package/src/{pages-v2 → pages}/README.md +0 -0
  398. package/src/{pages-v2 → pages}/account/addresses/address-form.tsx +0 -0
  399. package/src/{pages-v2 → pages}/account/table-row.tsx +0 -0
  400. package/src/{pages-v2 → pages}/blog/pagination.tsx +0 -0
  401. package/src/{pages-v2 → pages}/cart/__tests__/cart-with-items.json +0 -0
  402. package/src/{pages-v2 → pages}/cart/__tests__/conutries.json +0 -0
  403. package/src/{pages-v2 → pages}/cart/__tests__/countries.json +0 -0
  404. package/src/{pages-v2 → pages}/cart/wrapper.tsx +0 -0
  405. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/node.tsx +0 -0
  406. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/address/styles.ts +0 -0
  407. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/steps/payment/safe-card-preview-data.tsx +0 -0
  408. package/src/{pages-v2 → pages}/checkout/checkout-alt-form/types.ts +0 -0
  409. package/src/{pages-v2 → pages}/product-details/bopis/search-header.tsx +0 -0
  410. package/src/{pages-v2 → pages}/product-details/bopis/store-card/styles.ts +0 -0
  411. package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/convertSecondsToTime.ts +0 -0
  412. package/src/{pages-v2 → pages}/product-details/bopis/store-card/utils/getDaysResources.ts +0 -0
  413. package/src/{pages-v2 → pages}/product-details/checkbox-label.tsx +0 -0
  414. package/src/{pages-v2 → pages}/product-details/product-intro/compound/context.ts +0 -0
  415. package/src/{pages-v2 → pages}/product-details/product-intro/compound/thumbnail-with-skeleton.tsx +0 -0
  416. package/src/{pages-v2 → pages}/product-details/product-intro/utils.ts +0 -0
  417. package/src/{pages-v2 → pages}/product-details/types.ts +0 -0
  418. package/src/{pages-v2 → pages}/product-list/breadcrumbs.tsx +0 -0
  419. package/src/{pages-v2 → pages}/product-list/checkbox-label.tsx +0 -0
  420. package/src/{pages-v2 → pages}/product-list/facet.tsx +0 -0
  421. package/src/{pages-v2 → pages}/product-list/product-list-state.ts +0 -0
  422. package/src/{pages-v2 → pages}/product-list/product-rating.tsx +0 -0
  423. package/src/{pages-v2 → pages}/product-list/quick-view-dialog.tsx +4 -4
  424. package/src/{pages-v2 → pages}/product-list/range-filter.tsx +0 -0
  425. package/src/{pages-v2 → pages}/product-list/scrollbar.tsx +0 -0
  426. package/src/{pages-v2 → pages}/product-list/search-bar.tsx +0 -0
  427. package/src/{pages-v2 → pages}/product-list/side-nav.tsx +0 -0
  428. package/src/{pages-v2 → pages}/product-list/swatch.tsx +0 -0
  429. package/src/{pages-v2 → pages}/product-list/types.ts +0 -0
  430. package/src/{pages-v2 → pages}/product-list/use-product-list.ts +0 -0
  431. package/src/{pages-v2 → pages}/product-list/useCategoryFilter.tsx +0 -0
  432. package/src/{pages-v2 → pages}/product-list/utils/facet-helpers.ts +0 -0
  433. package/src/{pages-v2 → pages}/product-list/utils/generate-breadcrumbs.ts +0 -0
  434. package/src/{pages-v2 → pages}/product-list/utils/getCategoryFilterFromSlug.ts +0 -0
  435. package/src/{pages-v2 → pages}/product-list/utils/product-list-helper.ts +4 -4
  436. /package/src/{pages-v2 → pages}/product-list/utils/product-list-types.ts +0 -0
  437. /package/src/{pages-v2 → pages}/product-list/utils/sort-options.ts +0 -0
  438. /package/src/{pages-v2 → pages}/product-list/utils/use-previous-refiners.ts +0 -0
  439. /package/src/{pages-v2 → pages}/quickorder/context.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
2
- import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
3
- import type { StepViewState } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/checkout-step";
1
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
2
+ import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
3
+ import type { StepViewState } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/checkout-step";
4
4
  import Avatar from "@mui/material/Avatar";
5
5
  import type { BoxProps } from "@mui/material/Box";
6
6
 
@@ -18,7 +18,7 @@ export default function Heading({
18
18
  stepViewState,
19
19
  ...props
20
20
  }: Readonly<Props>) {
21
- let viewStateColor;
21
+ let viewStateColor: string;
22
22
 
23
23
  switch (stepViewState) {
24
24
  case "active":
@@ -1,9 +1,9 @@
1
1
  import type { Address } from "@evenicanpm/storefront-core/src/api-manager/schemas/address.schema";
2
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
2
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
3
3
  import {
4
4
  H6,
5
5
  Paragraph,
6
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
6
+ } from "@evenicanpm/storefront-core/src/components/Typography";
7
7
  import { DeleteOutline, ModeEditOutline } from "@mui/icons-material";
8
8
  import { Card, IconButton } from "@mui/material";
9
9
  import Grid from "@mui/material/Grid2";
@@ -9,12 +9,12 @@ import useUpdateCart from "@evenicanpm/storefront-core/src/api-manager/services/
9
9
  import useUpdateCartLines from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/update-cart-lines";
10
10
  // API
11
11
  import getUser from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-user";
12
- import Menu from "@evenicanpm/storefront-core/src/components-v2/BazaarMenu";
13
- import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/checkout-step";
14
- import AddressCard from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/steps/address/address-card";
12
+ import Menu from "@evenicanpm/storefront-core/src/components/BazaarMenu";
13
+ import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/checkout-step";
14
+ import AddressCard from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/steps/address/address-card";
15
15
  // Local components
16
- import NewAddressForm from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/steps/address/new-address-form";
17
- import { AddressDropDownHandler } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/steps/address/styles";
16
+ import NewAddressForm from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/steps/address/new-address-form";
17
+ import { AddressDropDownHandler } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/steps/address/styles";
18
18
  import type { CountryRegionInfo } from "@msdyn365-commerce/retail-proxy";
19
19
  import { KeyboardArrowDownOutlined } from "@mui/icons-material";
20
20
  import { Box, MenuItem } from "@mui/material";
@@ -24,6 +24,7 @@ import { useLocale, useTranslations } from "next-intl";
24
24
  import React, {
25
25
  createContext,
26
26
  type ReactNode,
27
+ useCallback,
27
28
  useContext,
28
29
  useEffect,
29
30
  useState,
@@ -195,21 +196,24 @@ const DeliveryAddress: DeliveryAddressCompound = ({
195
196
  };
196
197
 
197
198
  // helper to pick and set selected address + title
198
- const pickAddress = (id?: number | null) => {
199
- if (!id || id < 0) {
200
- setSelectedAddressID(null);
201
- setTitle("Select Address");
202
- return;
203
- }
204
-
205
- const picked = addressList.find((a) => a.RecordId === id);
206
- if (picked) {
207
- setSelectedAddressID(picked.RecordId as number);
208
- setTitle(`${picked.Name}, ${picked.City}`);
209
- } else {
210
- pickAddress(addressList[0].RecordId);
211
- }
212
- };
199
+ const pickAddress = useCallback(
200
+ (id?: number | null) => {
201
+ if (!id || id < 0) {
202
+ setSelectedAddressID(null);
203
+ setTitle("Select Address");
204
+ return;
205
+ }
206
+
207
+ const picked = addressList.find((a) => a.RecordId === id);
208
+ if (picked) {
209
+ setSelectedAddressID(picked.RecordId as number);
210
+ setTitle(`${picked.Name}, ${picked.City}`);
211
+ } else {
212
+ pickAddress(addressList[0].RecordId);
213
+ }
214
+ },
215
+ [addressList],
216
+ );
213
217
 
214
218
  // keep dropdown title in sync
215
219
  useEffect(() => {
@@ -218,7 +222,7 @@ const DeliveryAddress: DeliveryAddressCompound = ({
218
222
  return;
219
223
  }
220
224
  pickAddress(cart.ShippingAddress?.RecordId ?? selectedAddressID);
221
- }, [addressList, cart.ShippingAddress]);
225
+ }, [addressList, cart.ShippingAddress, selectedAddressID, pickAddress]);
222
226
 
223
227
  // step submission -> completion
224
228
  useEffect(() => {
@@ -1,10 +1,10 @@
1
1
  import type { Address } from "@evenicanpm/storefront-core/src/api-manager/schemas/address.schema";
2
2
  import getStates from "@evenicanpm/storefront-core/src/api-manager/services/address/queries/get-states";
3
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
3
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
4
4
  import {
5
5
  H5,
6
6
  Paragraph,
7
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
7
+ } from "@evenicanpm/storefront-core/src/components/Typography";
8
8
  import { zodResolver } from "@hookform/resolvers/zod";
9
9
  import type { CountryRegionInfo } from "@msdyn365-commerce/retail-proxy";
10
10
  import { Box, FormControl, InputLabel, MenuItem, Select } from "@mui/material";
@@ -1,7 +1,7 @@
1
1
  import useUpdateCart from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/update-cart";
2
2
  import getUser from "@evenicanpm/storefront-core/src/api-manager/services/user/queries/get-user";
3
- import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
4
- import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/checkout-step";
3
+ import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
4
+ import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/checkout-step";
5
5
  import { yupResolver } from "@hookform/resolvers/yup";
6
6
  import Box from "@mui/material/Box";
7
7
  import Grid from "@mui/material/Grid2";
@@ -1,13 +1,13 @@
1
1
  import type { RetrieveCardPaymentAcceptResultInput } from "@evenicanpm/storefront-core/src/api-manager/schemas/cart.schema";
2
2
  import usePaymentAcceptResult from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/get-payment-accept-result";
3
3
  import getPaymentAcceptPoint from "@evenicanpm/storefront-core/src/api-manager/services/cart/queries/get-payment-accept-point";
4
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
4
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
5
5
  import {
6
6
  H6,
7
7
  Paragraph,
8
8
  Small,
9
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
10
- import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/checkout-step";
9
+ } from "@evenicanpm/storefront-core/src/components/Typography";
10
+ import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/checkout-step";
11
11
  import type { CardPaymentAcceptResult } from "@msdyn365-commerce/retail-proxy";
12
12
  import { Alert, Box, Card } from "@mui/material";
13
13
  import { useTranslations } from "next-intl";
@@ -73,13 +73,16 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
73
73
  const [iframeHeight, setIFrameHeight] = React.useState<number>(1);
74
74
  const [errorState, setErrorState] = React.useState<PaymentError[]>([]);
75
75
 
76
- const paymentConnectorMessage = (
77
- data: string,
78
- messageType: PaymentConnectorPostMessageType,
79
- ): PaymentConnectorPostMessage => ({
80
- message: JSON.stringify({ type: messageType, value: data }),
81
- targetOrigin: "*",
82
- });
76
+ const paymentConnectorMessage = React.useCallback(
77
+ (
78
+ data: string,
79
+ messageType: PaymentConnectorPostMessageType,
80
+ ): PaymentConnectorPostMessage => ({
81
+ message: JSON.stringify({ type: messageType, value: data }),
82
+ targetOrigin: "*",
83
+ }),
84
+ [],
85
+ );
83
86
 
84
87
  const handleResultsAccessCode = React.useCallback(
85
88
  async (accessCode: string) => {
@@ -113,7 +116,7 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
113
116
 
114
117
  const onIFrameMessage = React.useCallback(
115
118
  async (event: MessageEvent) => {
116
- let result;
119
+ let result: unknown;
117
120
  try {
118
121
  if (typeof event.data !== "string") return;
119
122
  result = JSON.parse(event.data);
@@ -122,8 +125,18 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
122
125
  return;
123
126
  }
124
127
 
125
- if (!result?.type || !cart.TotalAmount) return;
126
- const { type, value } = result;
128
+ if (
129
+ !result ||
130
+ typeof result !== "object" ||
131
+ !("type" in result) ||
132
+ !("value" in result) ||
133
+ !cart.TotalAmount
134
+ )
135
+ return;
136
+ const { type, value } = result as {
137
+ type: PaymentConnectorPostMessageType;
138
+ value: unknown;
139
+ };
127
140
 
128
141
  switch (type) {
129
142
  case PaymentConnectorPostMessageType.Height: {
@@ -139,6 +152,9 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
139
152
  }
140
153
  case PaymentConnectorPostMessageType.Result: {
141
154
  try {
155
+ if (typeof value !== "string") {
156
+ throw new Error("Invalid payment result access code");
157
+ }
142
158
  await handleResultsAccessCode(value);
143
159
  setStepSubmissionState("idle");
144
160
  handleStepCompletion();
@@ -175,6 +191,7 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
175
191
  postMessageToIframe,
176
192
  setStepSubmissionState,
177
193
  t,
194
+ paymentConnectorMessage,
178
195
  ],
179
196
  );
180
197
 
@@ -195,7 +212,7 @@ const PaymentDetails: PaymentDetailsCompound = (props) => {
195
212
  postMessageToIframe(
196
213
  paymentConnectorMessage("true", PaymentConnectorPostMessageType.Submit),
197
214
  );
198
- }, [postMessageToIframe]);
215
+ }, [postMessageToIframe, paymentConnectorMessage]);
199
216
 
200
217
  React.useEffect(() => {
201
218
  if (stepSubmissionState === "submitting") {
@@ -1,5 +1,5 @@
1
- import StepHeading from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/step-heading";
2
- import type { InitialValues } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/types";
1
+ import StepHeading from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/step-heading";
2
+ import type { InitialValues } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/types";
3
3
  import Box from "@mui/material/Box";
4
4
  import Card from "@mui/material/Card";
5
5
  import Grid from "@mui/material/Grid2";
@@ -2,14 +2,14 @@ import type { Address } from "@evenicanpm/storefront-core/src/api-manager/schema
2
2
  import useGetDeliveryOptions from "@evenicanpm/storefront-core/src/api-manager/services/address/mutations/get-delivery-options";
3
3
  import useRemoveCartLineDeliveryMode from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/remove-cart-line-delivery-mode";
4
4
  import useUpdateCartLineDeliveryMode from "@evenicanpm/storefront-core/src/api-manager/services/cart/mutations/update-cart-line-delivery-mode";
5
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
5
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
6
6
  import {
7
7
  H4,
8
8
  Paragraph,
9
9
  Span,
10
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
10
+ } from "@evenicanpm/storefront-core/src/components/Typography";
11
11
  import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
12
- import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-form/checkout-step";
12
+ import type { CheckoutStepComponentProps } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-form/checkout-step";
13
13
  import {
14
14
  type DeliveryOption,
15
15
  DeliveryPreferenceType,
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  import type { CartLine } from "@evenicanpm/storefront-core/src/api-manager/schemas/cart.schema";
4
- import { FlexBetween } from "@evenicanpm/storefront-core/src/components-v2/flex-box/index";
4
+ import { FlexBetween } from "@evenicanpm/storefront-core/src/components/flex-box/index";
5
5
  import {
6
6
  Paragraph,
7
7
  Span,
8
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
8
+ } from "@evenicanpm/storefront-core/src/components/Typography";
9
9
  import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
10
10
  import React, { createContext, type ReactNode, useContext } from "react";
11
11
 
@@ -6,10 +6,10 @@ import type {
6
6
  CartLine,
7
7
  } from "@evenicanpm/storefront-core/src/api-manager/schemas/cart.schema";
8
8
  // GLOBAL CUSTOM COMPONENTS
9
- import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
9
+ import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
10
10
  // LOCAL CUSTOM COMPONENTS
11
- import CartItem from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-summary/cart-item";
12
- import ListItem from "@evenicanpm/storefront-core/src/pages-v2/checkout/checkout-alt-summary/list-item";
11
+ import CartItem from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-summary/cart-item";
12
+ import ListItem from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-summary/list-item";
13
13
  import Box from "@mui/material/Box";
14
14
  import Divider from "@mui/material/Divider";
15
15
  import { useTranslations } from "next-intl";
@@ -0,0 +1 @@
1
+ export { default as CheckoutAltSummary } from "@evenicanpm/storefront-core/src/pages/checkout/checkout-alt-summary/checkout-alt-summary";
@@ -1,5 +1,5 @@
1
- import { FlexBetween } from "@evenicanpm/storefront-core/src/components-v2/flex-box/index";
2
- import { Paragraph } from "@evenicanpm/storefront-core/src/components-v2/Typography";
1
+ import { FlexBetween } from "@evenicanpm/storefront-core/src/components/flex-box/index";
2
+ import { Paragraph } from "@evenicanpm/storefront-core/src/components/Typography";
3
3
  import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
4
4
  import { createContext, type ReactNode, useContext } from "react";
5
5
 
@@ -4,7 +4,7 @@ import type { Address } from "@evenicanpm/storefront-core/src/api-manager/schema
4
4
  import {
5
5
  H5,
6
6
  Paragraph,
7
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
7
+ } from "@evenicanpm/storefront-core/src/components/Typography";
8
8
  import { Card } from "@mui/material";
9
9
  import { useTranslations } from "next-intl";
10
10
  import React, { createContext, type ReactNode, useContext } from "react";
@@ -4,11 +4,11 @@ import type { SalesOrder } from "@evenicanpm/storefront-core/src/api-manager/sch
4
4
  import {
5
5
  FlexBetween,
6
6
  FlexBox,
7
- } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
7
+ } from "@evenicanpm/storefront-core/src/components/flex-box";
8
8
  import {
9
9
  H6,
10
10
  Paragraph,
11
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
11
+ } from "@evenicanpm/storefront-core/src/components/Typography";
12
12
  import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
13
13
  import { Card, Divider } from "@mui/material";
14
14
  import { useTranslations } from "next-intl";
@@ -7,12 +7,12 @@ import type {
7
7
  import {
8
8
  FlexBetween,
9
9
  FlexBox,
10
- } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
10
+ } from "@evenicanpm/storefront-core/src/components/flex-box";
11
11
  import {
12
12
  H6,
13
13
  Paragraph,
14
14
  Span,
15
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
15
+ } from "@evenicanpm/storefront-core/src/components/Typography";
16
16
  import useCurrencyFormatter from "@evenicanpm/storefront-core/src/lib/currency-formatter";
17
17
  import { ProductDimensionType } from "@msdyn365-commerce/retail-proxy";
18
18
  import { Avatar, Box, Card } from "@mui/material";
@@ -1,11 +1,8 @@
1
1
  "use client";
2
2
 
3
- import FlexRowCenter from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-row-center";
3
+ import FlexRowCenter from "@evenicanpm/storefront-core/src/components/flex-box/flex-row-center";
4
4
  // GLOBAL CUSTOM COMPONENTS
5
- import {
6
- H3,
7
- H4,
8
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
5
+ import { H3, H4 } from "@evenicanpm/storefront-core/src/components/Typography";
9
6
  import Avatar from "@mui/material/Avatar";
10
7
  import Box from "@mui/material/Box";
11
8
  import Card from "@mui/material/Card";
@@ -1,5 +1,5 @@
1
1
  import type { AddToCartBopisInput } from "@evenicanpm/storefront-core/src/hooks/use-cart";
2
- import FindInStoreModal from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/find-in-store-modal";
2
+ import FindInStoreModal from "@evenicanpm/storefront-core/src/pages/product-details/bopis/find-in-store-modal";
3
3
  import { Button } from "@mui/material";
4
4
  import { useTranslations } from "next-intl";
5
5
  import React from "react";
@@ -55,7 +55,6 @@ const FindInStoreButton = ({
55
55
  handleClose={handleClose}
56
56
  handleAddToCart={onAddToCart}
57
57
  productId={productId}
58
- allDimensionsSelected={allDimensionsSelected}
59
58
  />
60
59
  </React.Fragment>
61
60
  );
@@ -4,9 +4,9 @@ import getStores from "@evenicanpm/storefront-core/src/api-manager/services/orga
4
4
  import getProductAvailability from "@evenicanpm/storefront-core/src/api-manager/services/product/queries/get-product-availability";
5
5
  import type { AddToCartBopisInput } from "@evenicanpm/storefront-core/src/hooks/use-cart";
6
6
  import { geolocate } from "@evenicanpm/storefront-core/src/lib/map-helper";
7
- import PickupOptionSelect from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/pickup-option-select";
8
- import SearchHeader from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/search-header";
9
- import ShopCard from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/store-card";
7
+ import PickupOptionSelect from "@evenicanpm/storefront-core/src/pages/product-details/bopis/pickup-option-select";
8
+ import SearchHeader from "@evenicanpm/storefront-core/src/pages/product-details/bopis/search-header";
9
+ import ShopCard from "@evenicanpm/storefront-core/src/pages/product-details/bopis/store-card";
10
10
  import type {
11
11
  DeliveryOption,
12
12
  ProductWarehouseInventoryAvailability,
@@ -31,7 +31,6 @@ type Props = {
31
31
  handleClose: () => void;
32
32
  handleAddToCart: (bopisInput: AddToCartBopisInput) => void;
33
33
  productId?: number;
34
- allDimensionsSelected: boolean;
35
34
  };
36
35
 
37
36
  const qrs: QueryResultSettings = {
@@ -56,7 +55,6 @@ const initialSearchArea: SearchArea = {
56
55
  * @param {boolean} props.open - Whether the modal is open or not
57
56
  * @param {Function} props.handleAddToCart - Function to handle adding the product to cart
58
57
  * @param {number} props.productId - ID of the product being searched
59
- * @param {boolean} props.allDimensionsSelected - Whether all product dimensions (size, color, etc.) are selected
60
58
  *
61
59
  * @returns {JSX.Element} - Rendered modal component that displays available stores with inventory information
62
60
  *
@@ -66,7 +64,6 @@ const initialSearchArea: SearchArea = {
66
64
  * open={modalOpen}
67
65
  * handleAddToCart={handleAddItemToCart}
68
66
  * productId={123456}
69
- * allDimensionsSelected={true}
70
67
  * />
71
68
  */
72
69
  const FindInStoreModal = ({
@@ -74,7 +71,6 @@ const FindInStoreModal = ({
74
71
  open,
75
72
  handleAddToCart,
76
73
  productId,
77
- allDimensionsSelected,
78
74
  }: Props): JSX.Element => {
79
75
  const t = useTranslations("productDetail");
80
76
  const [hideOutOfStock, setHideOutOfStock] = React.useState(false);
@@ -94,7 +90,7 @@ const FindInStoreModal = ({
94
90
  searchArea,
95
91
  },
96
92
  }),
97
- [allDimensionsSelected, productId, searchArea],
93
+ [productId, searchArea],
98
94
  );
99
95
 
100
96
  const { data: inventoryData } =
@@ -1,4 +1,4 @@
1
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
1
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
2
2
  import type { AddToCartBopisInput } from "@evenicanpm/storefront-core/src/hooks/use-cart";
3
3
  import type { DeliveryOption } from "@msdyn365-commerce/retail-proxy";
4
4
  import {
@@ -0,0 +1 @@
1
+ export { default } from "@evenicanpm/storefront-core/src/pages/product-details/bopis/store-card/shop-card";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  FlexBetween,
3
3
  FlexBox,
4
- } from "@evenicanpm/storefront-core/src/components-v2/flex-box/index";
4
+ } from "@evenicanpm/storefront-core/src/components/flex-box/index";
5
5
  // GLOBAL CUSTOM COMPONENTS
6
6
  import {
7
7
  H3,
8
8
  Span,
9
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
9
+ } from "@evenicanpm/storefront-core/src/components/Typography";
10
10
  import {
11
11
  buildStoreHours,
12
12
  type IHoursDisplayInfo,
13
13
  } from "@evenicanpm/storefront-core/src/lib/store-hours-helper";
14
14
  // STYLED COMPONENT
15
- import { ContentWrapper } from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/store-card/styles";
16
- import { convertSecondsToTime } from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/store-card/utils/convertSecondsToTime";
17
- import { getDaysResources } from "@evenicanpm/storefront-core/src/pages-v2/product-details/bopis/store-card/utils/getDaysResources";
15
+ import { ContentWrapper } from "@evenicanpm/storefront-core/src/pages/product-details/bopis/store-card/styles";
16
+ import { convertSecondsToTime } from "@evenicanpm/storefront-core/src/pages/product-details/bopis/store-card/utils/convertSecondsToTime";
17
+ import { getDaysResources } from "@evenicanpm/storefront-core/src/pages/product-details/bopis/store-card/utils/getDaysResources";
18
18
  import type {
19
19
  ProductWarehouseInventoryAvailability,
20
20
  StoreHours,
@@ -62,4 +62,4 @@ function currency(price: number, fraction = 2) {
62
62
  return formatCurrency;
63
63
  }
64
64
 
65
- export { currency, getDateDifference, calculateDiscount, renderProductCount };
65
+ export { calculateDiscount, currency, getDateDifference, renderProductCount };
@@ -3,17 +3,17 @@
3
3
  import {
4
4
  FlexBox,
5
5
  FlexRowCenter,
6
- } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
6
+ } from "@evenicanpm/storefront-core/src/components/flex-box";
7
7
  // GLOBAL CUSTOM COMPONENTS
8
8
  import {
9
9
  H2,
10
10
  H3,
11
11
  Span,
12
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
12
+ } from "@evenicanpm/storefront-core/src/components/Typography";
13
13
  // CUSTOM UTILS LIBRARY FUNCTION
14
14
  import { currency } from "@evenicanpm/storefront-core/src/lib/lib";
15
15
  // LOCAL CUSTOM COMPONENT
16
- import FrequentlyProductCard from "@evenicanpm/storefront-core/src/pages-v2/product-details/frequently-product-card";
16
+ import FrequentlyProductCard from "@evenicanpm/storefront-core/src/pages/product-details/frequently-product-card";
17
17
  // CUSTOM DATA MODEL
18
18
  import type { ProductSearchResult as Product } from "@msdyn365-commerce/retail-proxy";
19
19
  import Box from "@mui/material/Box";
@@ -1,12 +1,12 @@
1
- import BazaarCard from "@evenicanpm/storefront-core/src/components-v2/BazaarCard";
2
- import FlexBox from "@evenicanpm/storefront-core/src/components-v2/flex-box/flex-box";
1
+ import BazaarCard from "@evenicanpm/storefront-core/src/components/BazaarCard";
2
+ import FlexBox from "@evenicanpm/storefront-core/src/components/flex-box/flex-box";
3
3
  // GLOBAL CUSTOM COMPONENTS
4
- import HoverBox from "@evenicanpm/storefront-core/src/components-v2/HoverBox";
5
- import LazyImage from "@evenicanpm/storefront-core/src/components-v2/LazyImage";
4
+ import HoverBox from "@evenicanpm/storefront-core/src/components/HoverBox";
5
+ import LazyImage from "@evenicanpm/storefront-core/src/components/LazyImage";
6
6
  import {
7
7
  H6,
8
8
  Span,
9
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
9
+ } from "@evenicanpm/storefront-core/src/components/Typography";
10
10
  // CUSTOM UTILS LIBRARY FUNCTIONS
11
11
  import {
12
12
  calculateDiscount,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
 
3
3
  // GLOBAL CUSTOM COMPONENTS
4
- import { FlexBox } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
4
+ import { FlexBox } from "@evenicanpm/storefront-core/src/components/flex-box";
5
5
  import {
6
6
  H5,
7
7
  H6,
8
8
  Paragraph,
9
9
  Span,
10
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
10
+ } from "@evenicanpm/storefront-core/src/components/Typography";
11
11
  // CUSTOM UTILS LIBRARY FUNCTION
12
12
  import { getDateDifference } from "@evenicanpm/storefront-core/src/lib/lib";
13
13
  import Avatar from "@mui/material/Avatar";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { H3 } from "@evenicanpm/storefront-core/src/components-v2/Typography";
3
+ import { H3 } from "@evenicanpm/storefront-core/src/components/Typography";
4
4
  import type { AttributeValue } from "@msdyn365-commerce/retail-proxy";
5
5
 
6
6
  type Props = { attributes: AttributeValue[] };
@@ -10,12 +10,14 @@ export default function ProductDescription({ attributes }: Readonly<Props>) {
10
10
  <div>
11
11
  <H3 mb={2}>Specifications:</H3>
12
12
  {attributes?.map((attr, index) => {
13
- if (attr?.TextValue && attr?.Name)
13
+ if (attr?.TextValue && attr?.Name) {
14
14
  return (
15
15
  <div key={`attr-${index + 1}`}>
16
16
  {attr.Name}: {attr.TextValue}
17
17
  </div>
18
18
  );
19
+ }
20
+ return null;
19
21
  })}
20
22
  </div>
21
23
  );
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
 
3
- import AccordionHeader from "@evenicanpm/storefront-core/src/components-v2/accordion/accordion-header";
3
+ import AccordionHeader from "@evenicanpm/storefront-core/src/components/accordion/accordion-header";
4
4
  // GLOBAL CUSTOM COMPONENTS
5
5
  import {
6
6
  FlexBetween,
7
7
  FlexBox,
8
- } from "@evenicanpm/storefront-core/src/components-v2/flex-box";
8
+ } from "@evenicanpm/storefront-core/src/components/flex-box";
9
9
  import {
10
10
  H5,
11
11
  H6,
12
12
  Paragraph,
13
13
  Span,
14
- } from "@evenicanpm/storefront-core/src/components-v2/Typography";
14
+ } from "@evenicanpm/storefront-core/src/components/Typography";
15
15
  // LOCAL CUSTOM COMPONENTS
16
- import CheckboxLabel from "@evenicanpm/storefront-core/src/pages-v2/product-details/checkbox-label";
16
+ import CheckboxLabel from "@evenicanpm/storefront-core/src/pages/product-details/checkbox-label";
17
17
  // TYPE
18
18
  import type {
19
19
  ProductFilterKeys,
20
20
  ProductFilters,
21
21
  ProductFilterValues,
22
- } from "@evenicanpm/storefront-core/src/pages-v2/product-details/types";
22
+ } from "@evenicanpm/storefront-core/src/pages/product-details/types";
23
23
  import { Slider } from "@mui/material";
24
24
  // MUI
25
25
  import Box from "@mui/material/Box";