@riosst100/pwa-marketplace 1.8.8 → 1.9.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 (260) hide show
  1. package/i18n/en_US.json +9 -9
  2. package/package.json +1 -2
  3. package/src/componentOverrideMapping.js +15 -1
  4. package/src/components/AccountLayout/accountlayout.module.css +3 -0
  5. package/src/components/AccountLayout/index.js +147 -0
  6. package/src/components/BecomeSeller/becomeSeller.js +304 -178
  7. package/src/components/BecomeSeller/becomeSeller.module.css +3 -3
  8. package/src/components/BecomeSellerPage/becomeSellerPage.js +2 -1
  9. package/src/components/BecomeSellerPage/becomeSellerPage.module.css +2 -10
  10. package/src/components/LegoSets/legoSets.js +48 -18
  11. package/src/components/LiveChat/chatContent.js +39 -0
  12. package/src/components/LiveChat/index.js +52 -0
  13. package/src/components/LiveChat/liveChat.js +160 -0
  14. package/src/components/NonSportCardsSets/nonSportCardsSets.js +15 -2
  15. package/src/components/SellerCountry/sellerCountry.js +1 -1
  16. package/src/components/SellerDetail/sellerDetail.js +34 -3
  17. package/src/components/ShopBy/shopBy.js +99 -4
  18. package/src/components/ShopBy/shopBy.module.css +22 -0
  19. package/src/components/ShopByVehicles/index.js +2 -0
  20. package/src/components/ShopByVehicles/shopByVehicles.js +327 -0
  21. package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
  22. package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +50 -0
  23. package/src/components/SocialLogin/img/facebook.svg +3 -0
  24. package/src/components/SocialLogin/img/google.svg +6 -0
  25. package/src/components/SocialLogin/img/instagram.svg +27 -0
  26. package/src/components/SocialLogin/img/wechat.svg +15 -0
  27. package/src/components/SocialLogin/img/weibo.svg +7 -0
  28. package/src/components/SocialLogin/index.js +10 -0
  29. package/src/components/SocialLogin/socialLogin.js +70 -0
  30. package/src/components/SportCardsSets/sportCardsSets.js +6 -1
  31. package/src/components/TrainsSets/index.js +2 -0
  32. package/src/components/TrainsSets/trainsSets.js +331 -0
  33. package/src/components/TrainsSets/trainsSets.module.css +76 -0
  34. package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
  35. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
  36. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +4 -0
  37. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
  38. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
  39. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
  40. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
  41. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
  42. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
  43. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
  44. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
  45. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
  46. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
  47. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
  48. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
  49. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
  50. package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
  51. package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
  52. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
  53. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
  54. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
  55. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
  56. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
  57. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
  58. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
  59. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
  60. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
  61. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
  62. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
  63. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
  64. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
  65. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
  66. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
  67. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
  68. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
  69. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
  70. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
  71. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
  72. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
  73. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
  74. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
  75. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
  76. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
  77. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
  78. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  79. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
  80. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
  81. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
  82. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
  83. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
  84. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
  85. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
  86. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
  87. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
  88. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
  89. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
  90. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
  91. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
  92. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
  93. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
  94. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
  95. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
  96. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  97. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
  98. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
  99. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
  100. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
  101. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
  102. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
  103. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
  104. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
  105. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
  106. package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
  107. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
  108. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
  109. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
  110. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
  111. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
  112. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
  113. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
  114. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
  116. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
  117. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
  118. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
  119. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
  120. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
  121. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
  122. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
  123. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
  124. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
  125. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
  126. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
  127. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
  128. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
  129. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
  130. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
  131. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
  132. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
  133. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
  134. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
  135. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
  136. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
  137. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
  138. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
  139. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
  140. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
  141. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
  142. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
  143. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
  144. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
  145. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
  146. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
  147. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
  148. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
  149. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
  150. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
  151. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
  152. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
  153. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
  154. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
  155. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  156. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
  157. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
  158. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
  159. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
  160. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
  161. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
  162. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
  163. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
  164. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
  165. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
  166. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
  167. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
  168. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
  169. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
  170. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
  171. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
  172. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
  173. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
  174. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
  175. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
  176. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
  177. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
  178. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
  179. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
  180. package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
  181. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
  182. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
  183. package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
  184. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
  185. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
  186. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
  187. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
  188. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
  189. package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
  190. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
  191. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
  192. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
  193. package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
  194. package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
  195. package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
  196. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
  197. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
  198. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
  199. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
  200. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
  201. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
  202. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
  203. package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
  204. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
  205. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
  206. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
  207. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
  208. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
  209. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
  210. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
  211. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
  212. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
  213. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
  214. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
  215. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
  216. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
  217. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
  218. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
  219. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
  220. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
  221. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
  222. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
  223. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
  224. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
  225. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
  226. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
  227. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
  228. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
  229. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
  230. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
  231. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
  232. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
  233. package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
  234. package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
  235. package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
  236. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +30 -15
  237. package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
  238. package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
  239. package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
  240. package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
  241. package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
  242. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
  243. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
  244. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
  245. package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
  246. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
  247. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
  248. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
  249. package/src/talons/Header/logo.gql.js +19 -0
  250. package/src/talons/Header/useLogo.js +19 -0
  251. package/src/talons/LegoSets/legoSets.gql.js +2 -2
  252. package/src/talons/LegoSets/useLegoSets.js +4 -2
  253. package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +1 -1
  254. package/src/talons/ShopBy/shopBy.gql.js +2 -2
  255. package/src/talons/ShopBy/useShopBy.js +20 -9
  256. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +60 -0
  257. package/src/talons/ShopByVehicles/useShopByVehicles.js +222 -0
  258. package/src/talons/SportCardsSets/useSportCardsSets.js +1 -1
  259. package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
  260. package/src/talons/TrainsSets/useTrainsSets.js +223 -0
@@ -93,13 +93,15 @@ export const useLegoSets = props => {
93
93
  filters: newFilters,
94
94
  categoryUrlKey: categoryUrlKey,
95
95
  activeTab: activeTab,
96
- shopby: shopby
96
+ shopby: shopby,
97
+ activeFilter: activeFilter
97
98
  }
98
99
  });
99
100
  // }
100
101
  }, [
101
102
  runQuery,
102
- activeTab
103
+ activeTab,
104
+ activeFilter
103
105
  // queryResponse
104
106
  // filterTypeMap,
105
107
  // search,
@@ -165,7 +165,7 @@ export const useNonSportCardsSets = props => {
165
165
 
166
166
  if (searchQuery) {
167
167
 
168
- setActive('all')
168
+ // setActive('all')
169
169
 
170
170
  nonSportCardsSets.map(({ group, sets }, index) => {
171
171
  const newSets = sets.filter(function(set) {
@@ -12,8 +12,8 @@ export const GET_STORE_CONFIG_DATA = gql`
12
12
  `;
13
13
 
14
14
  export const GET_SHOP_BY_DATA_QUERY = gql`
15
- query getShopByData($categoryUrlKey: String!, $attributeCode: String, $filters: ProductAttributeFilterInput!) {
16
- shopByData(categoryUrlKey: $categoryUrlKey, attributeCode: $attributeCode, filters: $filters) {
15
+ query getShopByData($activeFilter: String, $categoryUrlKey: String!, $attributeCode: String, $filters: ProductAttributeFilterInput!) {
16
+ shopByData(activeFilter: $activeFilter, categoryUrlKey: $categoryUrlKey, attributeCode: $attributeCode, filters: $filters) {
17
17
  label
18
18
  count
19
19
  attribute_code
@@ -1,7 +1,6 @@
1
1
  import { useQuery, useLazyQuery } from '@apollo/client';
2
2
  import { useEffect, useMemo } from 'react';
3
3
  import { useLocation } from 'react-router-dom';
4
- import { useAppContext } from '@magento/peregrine/lib/context/app';
5
4
 
6
5
  import mergeOperations from '@magento/peregrine/lib/util/shallowMerge';
7
6
  import DEFAULT_OPERATIONS from './shopBy.gql';
@@ -9,7 +8,7 @@ import { getFilterInput, getFiltersFromSearch } from '@magento/peregrine/lib/tal
9
8
 
10
9
  export const useShopBy = props => {
11
10
 
12
- const { searchQuery, active, setActive, currentSort, categoryId, shopby } = props
11
+ const { searchQuery, activeFilter, active, setActive, currentSort, categoryId, shopby } = props
13
12
 
14
13
  const { value: sortby } = currentSort
15
14
 
@@ -59,14 +58,10 @@ export const useShopBy = props => {
59
58
 
60
59
  const filters = getFiltersFromSearch(search);
61
60
 
62
- // console.log(search)
63
-
64
61
  // Construct the filter arg object.
65
62
  const newFilters = {};
66
63
  filters.forEach((values, key) => {
67
64
  newFilters[key] = getFilterInput(values, filterTypeMap.get(key));
68
- // console.log(key)
69
- // console.log(values)
70
65
 
71
66
  if (key == "sc_baseball_release") {
72
67
  for(let item of values) {
@@ -97,11 +92,16 @@ export const useShopBy = props => {
97
92
  variables: {
98
93
  filters: newFilters,
99
94
  categoryUrlKey: categoryUrlKey,
100
- attributeCode: shopby
95
+ attributeCode: shopby,
96
+ activeFilter: activeFilter
101
97
  }
102
98
  });
103
99
  }, [
104
100
  runQuery,
101
+ activeFilter,
102
+ shopby,
103
+ categoryUrlKey,
104
+ filters
105
105
  // filterTypeMap,
106
106
  // search
107
107
  ]);
@@ -141,6 +141,9 @@ export const useShopBy = props => {
141
141
  if (!alpha.includes(firstLetter)) {
142
142
  firstLetter = '#';
143
143
  }
144
+ if (shopby == "vehicles_year" || shopby == "trains_gauge" || shopby == "vehicles_scale" || shopby == "lego_theme" || shopby == "lego_subtheme" || shopby == "lego_interest") {
145
+ firstLetter = '#';
146
+ }
144
147
  acc[firstLetter] = acc[firstLetter] || [];
145
148
  acc[firstLetter].push(item);
146
149
  return acc;
@@ -199,6 +202,9 @@ export const useShopBy = props => {
199
202
  if (!alpha.includes(firstLetter)) {
200
203
  firstLetter = '#';
201
204
  }
205
+ if (shopby == "vehicles_year" || shopby == "trains_gauge" || shopby == "vehicles_scale" || shopby == "lego_theme" || shopby == "lego_subtheme" || shopby == "lego_interest") {
206
+ firstLetter = '#';
207
+ }
202
208
  acc[firstLetter] = acc[firstLetter] || [];
203
209
  acc[firstLetter].push(item);
204
210
  return acc;
@@ -210,9 +216,14 @@ export const useShopBy = props => {
210
216
 
211
217
  // console.log(dataResult)
212
218
 
213
- const availableGroups = originalDataResult ? Object.keys(originalDataResult).sort() : [];
219
+ let availableGroups = originalDataResult ? Object.keys(originalDataResult).sort() : [];
214
220
 
215
- const filteredAvailableGroups = dataResult ? Object.keys(dataResult).sort() : [];
221
+ let filteredAvailableGroups = dataResult ? Object.keys(dataResult).sort() : [];
222
+
223
+ if (shopby == "vehicles_year" || shopby == "trains_gauge" || shopby == "vehicles_scale" || shopby == "lego_theme" || shopby == "lego_subtheme" || shopby == "lego_interest") {
224
+ availableGroups = ['#'];
225
+ filteredAvailableGroups = ['#'];
226
+ }
216
227
 
217
228
 
218
229
  const attributeData = queryResponse?.data?.shopByData && queryResponse?.data?.shopByData.length ? queryResponse.data.shopByData[0] : null
@@ -0,0 +1,60 @@
1
+ import { gql } from '@apollo/client';
2
+
3
+ export const GET_STORE_CONFIG_DATA = gql`
4
+ query getStoreConfigData {
5
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
6
+ storeConfig {
7
+ store_code
8
+ product_url_suffix
9
+ category_url_suffix
10
+ }
11
+ }
12
+ `;
13
+
14
+ export const GET_SHOP_BY_DATA_QUERY = gql`
15
+ query getShopByVehicles($categoryUrlKey: String!, $activeTab: String, $filters: ProductAttributeFilterInput!, $shopby: String, $activeFilter: String) {
16
+ shopByVehicles(categoryUrlKey: $categoryUrlKey, activeTab: $activeTab, filters: $filters, shopby: $shopby, activeFilter: $activeFilter) {
17
+ group
18
+ sets {
19
+ set_name
20
+ option_id
21
+ release_year
22
+ vehicles_diecast
23
+ }
24
+ }
25
+ }
26
+ `;
27
+
28
+ export const GET_CATEGORY_CONTENT = gql`
29
+ query getCategoryData($id: String!) {
30
+ categories(filters: { category_uid: { in: [$id] } }) {
31
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
32
+ items {
33
+ uid
34
+ name
35
+ url_key
36
+ url_path
37
+ }
38
+ }
39
+ }
40
+ `;
41
+
42
+ export const GET_FILTER_INPUTS = gql`
43
+ query GetFilterInputsForCategory {
44
+ __type(name: "ProductAttributeFilterInput") {
45
+ inputFields {
46
+ name
47
+ type {
48
+ name
49
+ }
50
+ }
51
+ }
52
+ }
53
+ `;
54
+
55
+ export default {
56
+ getStoreConfigData: GET_STORE_CONFIG_DATA,
57
+ getShopByVehiclesQuery: GET_SHOP_BY_DATA_QUERY,
58
+ getCategoryContentQuery: GET_CATEGORY_CONTENT,
59
+ getFilterInputsQuery: GET_FILTER_INPUTS,
60
+ };
@@ -0,0 +1,222 @@
1
+ import { useQuery, useLazyQuery } from '@apollo/client';
2
+ import { useEffect, useMemo } from 'react';
3
+ import { useLocation } from 'react-router-dom';
4
+ import { useAppContext } from '@magento/peregrine/lib/context/app';
5
+
6
+ import mergeOperations from '@magento/peregrine/lib/util/shallowMerge';
7
+ import DEFAULT_OPERATIONS from './shopByVehicles.gql';
8
+ import { getFilterInput, getFiltersFromSearch } from '@magento/peregrine/lib/talons/FilterModal/helpers';
9
+
10
+ export const useShopByVehicles = props => {
11
+
12
+ const { searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab, activeFilter } = props
13
+
14
+ const { value: sortby } = currentSort
15
+
16
+ const operations = mergeOperations(DEFAULT_OPERATIONS, null);
17
+ const { getStoreConfigData, getShopByVehiclesQuery, getCategoryContentQuery, getFilterInputsQuery } = operations;
18
+ const { pathname, search } = useLocation();
19
+ const [runQuery, queryResponse] = useLazyQuery(getShopByVehiclesQuery, {
20
+ fetchPolicy: 'cache-and-network',
21
+ nextFetchPolicy: 'cache-first'
22
+ });
23
+
24
+ const pathnameArr = pathname.split('/');
25
+
26
+ const categoryUrlKey = pathnameArr[pathnameArr.length - 1].replace('.html','');
27
+ const parentCategoryUrlKey = pathnameArr[pathnameArr.length - 2].replace('.html','');
28
+ const productType = shopby;
29
+
30
+
31
+
32
+ // const { error, loading, data } = useQuery(getShopByVehiclesQuery, {
33
+ // fetchPolicy: 'cache-and-network',
34
+ // nextFetchPolicy: 'cache-first',
35
+ // skip: !storeConfigData,
36
+ // variables: {
37
+ // categoryUrlKey: categoryUrlKey,
38
+ // setType: setType
39
+ // }
40
+ // });
41
+ const { data: introspectionData } = useQuery(getFilterInputsQuery);
42
+
43
+ const filterTypeMap = useMemo(() => {
44
+ const typeMap = new Map();
45
+ if (introspectionData) {
46
+ introspectionData.__type.inputFields.forEach(({ name, type }) => {
47
+ typeMap.set(name, type.name);
48
+ });
49
+ }
50
+ return typeMap;
51
+ }, [introspectionData]);
52
+ const filters = getFiltersFromSearch(search);
53
+
54
+ // console.log(search)
55
+
56
+ // Construct the filter arg object.
57
+ const newFilters = {};
58
+ filters.forEach((values, key) => {
59
+ newFilters[key] = getFilterInput(values, filterTypeMap.get(key));
60
+ // console.log(key)
61
+ // console.log(values)
62
+
63
+ if (key == "sc_baseball_release") {
64
+ for(let item of values) {
65
+ if(item) {
66
+ // console.log(item.split(',')[0])
67
+ const data = search.split('&');
68
+ data.pop();
69
+ activeFilters.push(
70
+ {
71
+ 'label': item.split(',')[0],
72
+ 'path': data
73
+ }
74
+ )
75
+ }
76
+ }
77
+ }
78
+ });
79
+
80
+ useEffect(() => {
81
+ // console.log("MASUK")
82
+
83
+ // if (queryResponse.data) {
84
+
85
+
86
+
87
+ // Use the category uid for the current category page regardless of the
88
+ // applied filters. Follow-up in PWA-404.
89
+ // newFilters['category_uid'] = { eq: id };
90
+
91
+ runQuery({
92
+ variables: {
93
+ filters: newFilters,
94
+ categoryUrlKey: categoryUrlKey,
95
+ activeTab: activeTab,
96
+ shopby: shopby,
97
+ activeFilter: activeFilter
98
+ }
99
+ });
100
+ // }
101
+ }, [
102
+ runQuery,
103
+ activeTab,
104
+ activeFilter
105
+ // queryResponse
106
+ // filterTypeMap,
107
+ // search,
108
+ // newFilters,
109
+ // shopby,
110
+ // categoryUrlKey
111
+ ]);
112
+
113
+ const { data: storeConfigData } = useQuery(getStoreConfigData, {
114
+ fetchPolicy: 'cache-and-network',
115
+ nextFetchPolicy: 'cache-first'
116
+ });
117
+
118
+ const categoryUrlSuffix = storeConfigData?.storeConfig?.category_url_suffix;
119
+
120
+ // { data: queryResponse, error, loading }
121
+
122
+
123
+
124
+ // console.log(data)
125
+
126
+ // const isBackgroundLoading = !!data && loading;
127
+
128
+ const availableLeagues = [];
129
+
130
+ // console.log(queryResponse.data)
131
+
132
+ const shopByVehicles = useMemo(() => {
133
+ if (!queryResponse) {
134
+ return null;
135
+ }
136
+
137
+ // console.log(data)
138
+
139
+ const shopByVehicles = queryResponse?.data?.shopByVehicles;
140
+ if (!shopByVehicles) {
141
+ return null;
142
+ }
143
+
144
+ return shopByVehicles.slice().sort((a, b) =>a.group.toLowerCase().localeCompare(b.group.toLowerCase()));
145
+ }, [queryResponse]);
146
+
147
+ const availableGroups = shopByVehicles && shopByVehicles.length ? shopByVehicles.map(({ group }) => group) : [];
148
+
149
+ // const availableLeagues = shopByVehicles && shopByVehicles.length ? shopByVehicles.map(({ sets }) => shopByVehicles.map(({ sc_league }) => sc_league)) : [];
150
+ // console.log(availableLeagues)
151
+ // sc_league
152
+
153
+ const filteredShopByVehicles = useMemo(() => {
154
+ if (!shopByVehicles) {
155
+ return null;
156
+ }
157
+
158
+ const filteredSets = [];
159
+
160
+ if (searchQuery) {
161
+
162
+ // useEffect(() => {
163
+ // setActive('all')
164
+ // }, [active]);
165
+
166
+ shopByVehicles.map(({ group, sets }, index) => {
167
+ const newSets = sets.filter(function(set) {
168
+ return set.set_name.search(new RegExp(searchQuery, "i")) != -1 || group.search(new RegExp(searchQuery, "i")) != -1;
169
+ // return set.set_name.includes(searchQuery);
170
+ });
171
+
172
+ if (newSets && newSets.length) {
173
+ filteredSets.push({
174
+ 'group': group,
175
+ 'sets': newSets
176
+ })
177
+ }
178
+ })
179
+ }
180
+
181
+ return searchQuery ? filteredSets : shopByVehicles;
182
+ }, [shopByVehicles, searchQuery]);
183
+
184
+ // useEffect(() => {
185
+ // setPageLoading(isBackgroundLoading);
186
+ // }, [isBackgroundLoading, setPageLoading]);
187
+
188
+ const { data: categoryData, loading: categoryLoading } = useQuery(
189
+ getCategoryContentQuery,
190
+ {
191
+ fetchPolicy: 'cache-and-network',
192
+ nextFetchPolicy: 'cache-first',
193
+ skip: !categoryId,
194
+ variables: {
195
+ id: categoryId
196
+ }
197
+ }
198
+ );
199
+
200
+ const category =
201
+ categoryData && categoryData.categories.items.length
202
+ ? categoryData.categories.items[0]
203
+ : null;
204
+
205
+ const error = queryResponse?.error;
206
+ const loading = queryResponse?.loading;
207
+
208
+ // console.log(shopByVehicles)
209
+
210
+ return {
211
+ error,
212
+ loading,
213
+ shopByVehicles,
214
+ filteredShopByVehicles,
215
+ categoryUrlSuffix,
216
+ categoryUrlKey,
217
+ productType,
218
+ availableGroups,
219
+ category,
220
+ // availableLeagues
221
+ };
222
+ };
@@ -192,7 +192,7 @@ export const useSportCardsSets = props => {
192
192
 
193
193
  if (searchQuery) {
194
194
 
195
- setActive('all')
195
+ // setActive('all')
196
196
 
197
197
  sportCardsSets.map(({ group, sets }, index) => {
198
198
  const newSets = sets.filter(function(set) {
@@ -0,0 +1,60 @@
1
+ import { gql } from '@apollo/client';
2
+
3
+ export const GET_STORE_CONFIG_DATA = gql`
4
+ query getStoreConfigData {
5
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
6
+ storeConfig {
7
+ store_code
8
+ product_url_suffix
9
+ category_url_suffix
10
+ }
11
+ }
12
+ `;
13
+
14
+ export const GET_SETS_QUERY = gql`
15
+ query getTrainsSets($categoryUrlKey: String!, $activeTab: String, $filters: ProductAttributeFilterInput!, $shopby: String, $activeFilter: String) {
16
+ trainsSets(categoryUrlKey: $categoryUrlKey, activeTab: $activeTab, filters: $filters, shopby: $shopby, activeFilter: $activeFilter) {
17
+ group
18
+ sets {
19
+ set_name
20
+ option_id
21
+ country
22
+ trains_gauge
23
+ }
24
+ }
25
+ }
26
+ `;
27
+
28
+ export const GET_CATEGORY_CONTENT = gql`
29
+ query getCategoryData($id: String!) {
30
+ categories(filters: { category_uid: { in: [$id] } }) {
31
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
32
+ items {
33
+ uid
34
+ name
35
+ url_key
36
+ url_path
37
+ }
38
+ }
39
+ }
40
+ `;
41
+
42
+ export const GET_FILTER_INPUTS = gql`
43
+ query GetFilterInputsForCategory {
44
+ __type(name: "ProductAttributeFilterInput") {
45
+ inputFields {
46
+ name
47
+ type {
48
+ name
49
+ }
50
+ }
51
+ }
52
+ }
53
+ `;
54
+
55
+ export default {
56
+ getStoreConfigData: GET_STORE_CONFIG_DATA,
57
+ getTrainsSetsQuery: GET_SETS_QUERY,
58
+ getCategoryContentQuery: GET_CATEGORY_CONTENT,
59
+ getFilterInputsQuery: GET_FILTER_INPUTS,
60
+ };