@riosst100/pwa-marketplace 1.8.9 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/i18n/en_US.json +9 -9
  2. package/package.json +1 -1
  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 +1 -2
  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/SellerCountry/sellerCountry.js +1 -1
  15. package/src/components/SellerDetail/sellerDetail.js +34 -3
  16. package/src/components/ShopBy/shopBy.js +92 -4
  17. package/src/components/ShopBy/shopBy.module.css +22 -0
  18. package/src/components/ShopByVehicles/shopByVehicles.js +1 -2
  19. package/src/components/ShopByVehicles/shopByVehicles.module.css +76 -0
  20. package/src/components/SocialLogin/img/facebook.svg +3 -0
  21. package/src/components/SocialLogin/img/google.svg +6 -0
  22. package/src/components/SocialLogin/img/instagram.svg +27 -0
  23. package/src/components/SocialLogin/img/wechat.svg +15 -0
  24. package/src/components/SocialLogin/img/weibo.svg +7 -0
  25. package/src/components/SocialLogin/index.js +10 -0
  26. package/src/components/SocialLogin/socialLogin.js +70 -0
  27. package/src/components/TrainsSets/index.js +2 -0
  28. package/src/components/TrainsSets/trainsSets.js +331 -0
  29. package/src/components/TrainsSets/trainsSets.module.css +76 -0
  30. package/src/components/TrainsSets/trainsSets.shimmer.js +49 -0
  31. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -0
  32. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js +48 -0
  33. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.js +147 -0
  34. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPage.module.css +52 -0
  35. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/accountInformationPageFragment.gql.js +10 -0
  36. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.js +206 -0
  37. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editForm.module.css +40 -0
  38. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.js +107 -0
  39. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/editModal.module.css +3 -0
  40. package/src/overwrites/venia-ui/lib/components/AccountInformationPage/index.js +14 -0
  41. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +107 -0
  42. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.module.css +73 -0
  43. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.js +58 -0
  44. package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenuItems.module.css +31 -0
  45. package/src/overwrites/venia-ui/lib/components/AccountMenu/index.js +1 -0
  46. package/src/overwrites/venia-ui/lib/components/Button/button.js +1 -1
  47. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.js +50 -0
  48. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCard.module.css +11 -0
  49. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.js +238 -0
  50. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/giftCards.module.css +98 -0
  51. package/src/overwrites/venia-ui/lib/components/CartPage/GiftCards/index.js +1 -0
  52. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +178 -0
  53. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.module.css +52 -0
  54. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode/index.js +1 -0
  55. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +321 -0
  56. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +61 -0
  57. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions/index.js +1 -0
  58. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/index.js +1 -0
  59. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +103 -0
  60. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.module.css +36 -0
  61. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +103 -0
  62. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.module.css +33 -0
  63. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +37 -0
  64. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.module.css +3 -0
  65. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +106 -0
  66. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.module.css +10 -0
  67. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ce.js +7 -0
  68. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +28 -0
  69. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
  70. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
  71. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/index.js +1 -0
  72. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +95 -0
  73. package/src/overwrites/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  74. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.js +123 -0
  75. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
  76. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ce.js +1 -0
  77. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +60 -0
  78. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
  79. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
  80. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/index.js +1 -0
  81. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.js +210 -0
  82. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/priceSummary.module.css +51 -0
  83. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/shippingSummary.js +58 -0
  84. package/src/overwrites/venia-ui/lib/components/CartPage/PriceSummary/taxSummary.js +57 -0
  85. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/editModal.js +41 -0
  86. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/index.js +1 -0
  87. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.js +80 -0
  88. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productDetail.module.css +33 -0
  89. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.js +153 -0
  90. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/EditModal/productForm.module.css +52 -0
  91. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  92. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/errorMessage.module.css +13 -0
  93. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/index.js +1 -0
  94. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +271 -0
  95. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +156 -0
  96. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.js +94 -0
  97. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/productListing.module.css +11 -0
  98. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/quantity.js +40 -0
  99. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.js +126 -0
  100. package/src/overwrites/venia-ui/lib/components/CartPage/cartPage.module.css +64 -0
  101. package/src/overwrites/venia-ui/lib/components/CartPage/index.js +1 -0
  102. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.js +190 -0
  103. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressBook.module.css +78 -0
  104. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.js +125 -0
  105. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/addressCard.module.css +94 -0
  106. package/src/overwrites/venia-ui/lib/components/CheckoutPage/AddressBook/index.js +1 -0
  107. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.js +213 -0
  108. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/billingAddress.module.css +36 -0
  109. package/src/overwrites/venia-ui/lib/components/CheckoutPage/BillingAddress/index.js +1 -0
  110. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +93 -0
  111. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/guestSignIn.module.css +55 -0
  112. package/src/overwrites/venia-ui/lib/components/CheckoutPage/GuestSignIn/index.js +1 -0
  113. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +102 -0
  114. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/index.js +1 -0
  115. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +54 -0
  116. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +60 -0
  117. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +84 -0
  118. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.module.css +20 -0
  119. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.js +38 -0
  120. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/showAllButton.module.css +28 -0
  121. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +213 -0
  122. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.module.css +24 -0
  123. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/index.js +1 -0
  124. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +162 -0
  125. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.module.css +70 -0
  126. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/index.js +1 -0
  127. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.js +34 -0
  128. package/src/overwrites/venia-ui/lib/components/CheckoutPage/OrderSummary/orderSummary.module.css +17 -0
  129. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +196 -0
  130. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeDropin.module.css +26 -0
  131. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +160 -0
  132. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.module.css +62 -0
  133. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js +348 -0
  134. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.module.css +58 -0
  135. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.js +44 -0
  136. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editCard.module.css +5 -0
  137. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editModal.js +88 -0
  138. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/editablePaymentCollection.js +23 -0
  139. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/index.js +1 -0
  140. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +99 -0
  141. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentInformation.module.css +23 -0
  142. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethodCollection.js +23 -0
  143. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.js +121 -0
  144. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/paymentMethods.module.css +34 -0
  145. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.js +71 -0
  146. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summary.module.css +23 -0
  147. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PaymentInformation/summaryPaymentCollection.js +23 -0
  148. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/index.js +1 -0
  149. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +63 -0
  150. package/src/overwrites/venia-ui/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.module.css +2 -0
  151. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/addressForm.js +18 -0
  152. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +401 -0
  153. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.module.css +58 -0
  154. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +455 -0
  155. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.module.css +52 -0
  156. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/index.js +3 -0
  157. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.js +66 -0
  158. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/card.module.css +12 -0
  159. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.js +65 -0
  160. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/editModal.module.css +90 -0
  161. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/index.js +1 -0
  162. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +149 -0
  163. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingInformation/shippingInformation.module.css +88 -0
  164. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.js +114 -0
  165. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/completedView.module.css +48 -0
  166. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/index.js +1 -0
  167. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +154 -0
  168. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingMethod.module.css +27 -0
  169. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.js +80 -0
  170. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/shippingRadios.module.css +22 -0
  171. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.js +85 -0
  172. package/src/overwrites/venia-ui/lib/components/CheckoutPage/ShippingMethod/updateModal.module.css +3 -0
  173. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +472 -0
  174. package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.module.css +186 -0
  175. package/src/overwrites/venia-ui/lib/components/CheckoutPage/index.js +1 -0
  176. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.js +323 -0
  177. package/src/overwrites/venia-ui/lib/components/CreateAccount/createAccount.module.css +52 -0
  178. package/src/overwrites/venia-ui/lib/components/CreateAccount/index.js +1 -0
  179. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.js +48 -0
  180. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/createAccountPage.module.css +21 -0
  181. package/src/overwrites/venia-ui/lib/components/CreateAccountPage/index.js +1 -0
  182. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.js +198 -0
  183. package/src/overwrites/venia-ui/lib/components/Dialog/dialog.module.css +189 -0
  184. package/src/overwrites/venia-ui/lib/components/Dialog/index.js +1 -0
  185. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +8 -7
  186. package/src/overwrites/venia-ui/lib/components/Gallery/item.js +12 -4
  187. package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +2 -2
  188. package/src/overwrites/venia-ui/lib/components/Header/header.js +37 -2
  189. package/src/overwrites/venia-ui/lib/components/Main/main.js +1 -1
  190. package/src/overwrites/venia-ui/lib/components/MegaMenu/shopByColumn.js +3 -2
  191. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -1
  192. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/index.js +1 -0
  193. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +22 -0
  194. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.js +143 -0
  195. package/src/overwrites/venia-ui/lib/components/MyAccount/ResetPassword/resetPassword.module.css +53 -0
  196. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.js +42 -0
  197. package/src/overwrites/venia-ui/lib/components/MyAccount/accountLink.module.css +33 -0
  198. package/src/overwrites/venia-ui/lib/components/MyAccount/index.js +1 -0
  199. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.js +38 -0
  200. package/src/overwrites/venia-ui/lib/components/MyAccount/myAccount.module.css +5 -0
  201. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +71 -0
  202. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/billingInformation.module.css +9 -0
  203. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/index.js +1 -0
  204. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.js +121 -0
  205. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/item.module.css +35 -0
  206. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.js +70 -0
  207. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/items.module.css +16 -0
  208. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.js +207 -0
  209. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderDetails.module.css +102 -0
  210. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.js +159 -0
  211. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/orderTotal.module.css +50 -0
  212. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +45 -0
  213. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.module.css +14 -0
  214. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +90 -0
  215. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.module.css +9 -0
  216. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +86 -0
  217. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.module.css +19 -0
  218. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.js +63 -0
  219. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/collapsedImageGallery.module.css +16 -0
  220. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js +15 -0
  221. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +227 -0
  222. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.module.css +70 -0
  223. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.js +70 -0
  224. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderProgressBar.module.css +14 -0
  225. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +324 -0
  226. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.module.css +146 -0
  227. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/resetButton.js +41 -0
  228. package/src/overwrites/venia-ui/lib/components/Password/index.js +1 -0
  229. package/src/overwrites/venia-ui/lib/components/Password/password.js +102 -0
  230. package/src/overwrites/venia-ui/lib/components/Password/password.module.css +26 -0
  231. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +29 -14
  232. package/src/overwrites/venia-ui/lib/components/Select/index.js +1 -0
  233. package/src/overwrites/venia-ui/lib/components/Select/option.js +28 -0
  234. package/src/overwrites/venia-ui/lib/components/Select/select.js +74 -0
  235. package/src/overwrites/venia-ui/lib/components/Select/select.module.css +25 -0
  236. package/src/overwrites/venia-ui/lib/components/SignIn/index.js +1 -0
  237. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.gql.js +50 -0
  238. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.js +224 -0
  239. package/src/overwrites/venia-ui/lib/components/SignIn/signIn.module.css +65 -0
  240. package/src/overwrites/venia-ui/lib/components/SignInPage/index.js +1 -0
  241. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.js +50 -0
  242. package/src/overwrites/venia-ui/lib/components/SignInPage/signInPage.module.css +17 -0
  243. package/src/overwrites/venia-ui/lib/components/TextInput/textInput.js +1 -1
  244. package/src/talons/Header/logo.gql.js +19 -0
  245. package/src/talons/Header/useLogo.js +19 -0
  246. package/src/talons/ShopBy/shopBy.gql.js +2 -2
  247. package/src/talons/ShopBy/useShopBy.js +10 -9
  248. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +1 -0
  249. package/src/talons/TrainsSets/trainsSets.gql.js +60 -0
  250. package/src/talons/TrainsSets/useTrainsSets.js +223 -0
@@ -0,0 +1,70 @@
1
+ import React from 'react';
2
+ import Button from '@magento/venia-ui/lib/components/Button';
3
+ import Image from '@magento/venia-ui/lib/components/Image';
4
+ import GoogleIcon from './img/google.svg';
5
+ import FacebookIcon from './img/facebook.svg';
6
+ import InstagramIcon from './img/instagram.svg';
7
+ import WechatIcon from './img/wechat.svg';
8
+ import WeiboIcon from './img/weibo.svg';
9
+
10
+ const socialLogin = () => {
11
+ return (
12
+ <div className='relative flex w-full justify-between items-center'>
13
+ <Button
14
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
15
+ >
16
+ <Image
17
+ alt='google'
18
+ className="relative"
19
+ src={GoogleIcon}
20
+ />
21
+ </Button>
22
+ <Button
23
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
24
+ >
25
+ <Image
26
+ alt='facebook'
27
+ className="relative"
28
+ src={FacebookIcon}
29
+ />
30
+ </Button>
31
+ <Button
32
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
33
+ >
34
+ <Image
35
+ alt='instagram'
36
+ className="relative"
37
+ src={InstagramIcon}
38
+ />
39
+ </Button>
40
+ <Button
41
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
42
+ >
43
+ <Image
44
+ alt='wechat'
45
+ className="relative"
46
+ src={WechatIcon}
47
+ />
48
+ </Button>
49
+ <Button
50
+ className="shadow-type-1 p-[14px] rounded-full w-[52px] h-[52px]"
51
+ >
52
+ <Image
53
+ alt='weibo'
54
+ className="relative"
55
+ src={WeiboIcon}
56
+ />
57
+ </Button>
58
+
59
+ <style global jsx>
60
+ {`
61
+ img[loading="eager"] {
62
+ display: contents;
63
+ }
64
+ `}
65
+ </style>
66
+ </div>
67
+ )
68
+ }
69
+
70
+ export default socialLogin
@@ -0,0 +1,2 @@
1
+ export { default } from './trainsSets';
2
+ export { default as TrainsSetsShimmer } from './trainsSets.shimmer';
@@ -0,0 +1,331 @@
1
+ import React, { Fragment, useEffect, useMemo, useState } from 'react';
2
+ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
3
+ import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
4
+ import { useTrainsSets } from '@riosst100/pwa-marketplace/src/talons/TrainsSets/useTrainsSets';
5
+ import { Link } from 'react-router-dom';
6
+ import resourceUrl from '@magento/peregrine/lib/util/makeUrl';
7
+ import defaultClasses from './trainsSets.module.css';
8
+ import { useStyle } from '@magento/venia-ui/lib/classify';
9
+ import cn from 'classnames';
10
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
11
+ import { TrainsSetsShimmer } from '@riosst100/pwa-marketplace/src/components/TrainsSets';
12
+ import CustomSortBy from '@riosst100/pwa-marketplace/src/components/CustomSortBy';
13
+ import ArraySearchInput from '@riosst100/pwa-marketplace/src/components/ArraySearchInput';
14
+ import { useCustomSort } from '@riosst100/pwa-marketplace/src/hooks/useCustomSort';
15
+ import Breadcrumbs from '@magento/venia-ui/lib/components/Breadcrumbs';
16
+
17
+ const TrainsSets = props => {
18
+ const { categoryId } = props
19
+
20
+ const { location } = globalThis;
21
+
22
+ const query = new URLSearchParams(location.search);
23
+
24
+ const [active, setActive] = useState('all');
25
+ const [activeTab, setActiveTab] = useState('all');
26
+ const [activeFilter, setActiveFilter] = useState('');
27
+ const [searchQuery, setSearchQuery] = useState('');
28
+
29
+ const shopby = query.get('shopby') || null;
30
+ const setType = query.get('set_type') || null;
31
+
32
+ let defaultSort = {
33
+ sortText: 'All (A-Z)',
34
+ value: 'all'
35
+ };
36
+
37
+ if (shopby == "release_year") {
38
+ defaultSort = {
39
+ sortText: 'All (By Year)',
40
+ value: 'date'
41
+ };
42
+ }
43
+
44
+ // if (productType == "expansion_sets") {
45
+ // defaultSort = {
46
+ // sortText: 'All (Expansion Sets)',
47
+ // value: 'all'
48
+ // };
49
+ // }
50
+
51
+ // Sorting
52
+ const sortProps = useCustomSort({ sortFromSearch: false, defaultSort: defaultSort});
53
+ const [currentSort] = sortProps;
54
+ // const [sortBy, setSortBy] = useState({
55
+ // sortText: 'All (A-Z)',
56
+ // value: 'all'
57
+ // });
58
+
59
+ // let availableSortBy = [
60
+ // {
61
+ // 'label': 'All (A-Z)',
62
+ // 'value': 'all'
63
+ // },
64
+ // {
65
+ // 'label': 'By Year',
66
+ // 'value': 'newest'
67
+ // }
68
+ // ];
69
+
70
+ const classes = useStyle(defaultClasses);
71
+
72
+ const talonProps = useTrainsSets({ activeFilter, searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
73
+
74
+ const { error, loading, trainsSets, categoryUrlSuffix, categoryUrlKey, productType, filteredTrainsSets, availableGroups, category } = talonProps;
75
+
76
+ if (loading && !trainsSets)
77
+ return <TrainsSetsShimmer />;
78
+ if (error && !trainsSets) return <ErrorView />;
79
+
80
+ if (!trainsSets && !loading && !error) {
81
+ return <TrainsSetsShimmer />;
82
+ }
83
+
84
+ const setsLengthArr = [];
85
+
86
+ const newTrainsSets = searchQuery || activeFilter ? filteredTrainsSets : trainsSets;
87
+
88
+ // useEffect(() => {
89
+ if (newTrainsSets && newTrainsSets.length) {
90
+ newTrainsSets.map((setRelease, index) => {
91
+ const { group, sets } = setRelease;
92
+
93
+ setsLengthArr[group] = sets.length
94
+ })
95
+ }
96
+ // }, [trainsSets])
97
+
98
+ const splitToNChunks = (array, n) => {
99
+ let result = [];
100
+ for (let i = n; i > 0; i--) {
101
+ result.push(array.splice(0, Math.ceil(array.length / i)));
102
+ }
103
+ return result;
104
+ }
105
+
106
+ const setRelases = newTrainsSets && newTrainsSets.length && newTrainsSets.map((setRelease, index) => {
107
+ const { group, sets } = setRelease;
108
+
109
+ const setsResult = [];
110
+
111
+ if (sets.length) {
112
+ sets.map((set, index) => {
113
+ const { set_name, option_id } = set;
114
+
115
+ const categoryUrl = resourceUrl(
116
+ `/${category?.url_path}${categoryUrlSuffix || ''}?${shopby}[filter]=${set_name},${option_id}`
117
+ );
118
+
119
+ setsResult.push(<li className='list-none'>
120
+ <Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-2">
121
+ {set_name}
122
+ </Link>
123
+ </li>)
124
+ })
125
+ }
126
+
127
+ let setsResultSplitted = [];
128
+ if (active == group || newTrainsSets.length == 1) {
129
+ setsResultSplitted = splitToNChunks(setsResult, 3);
130
+ }
131
+
132
+ return (
133
+ <>
134
+ {active == "all" && newTrainsSets.length > 1 ?
135
+ <div className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
136
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' >
137
+ {group}
138
+ </div>
139
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
140
+ </div> : ''}
141
+ {active == group || newTrainsSets.length == 1 ? setsResultSplitted && setsResultSplitted.length && setsResultSplitted.map((setsResult, index) =>
142
+ <div key={index} className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
143
+ {index == 0 ? <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2'>{group}</div> :
144
+ <div className='singles_item_group_letter text-xl font-semibold pb-1 mb-2' style={{"marginTop":"35px"}}></div>}
145
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
146
+ </div>
147
+ )
148
+ : ''}
149
+ </>
150
+ );
151
+ });
152
+
153
+ const handleActive = (val) => {
154
+ setActive(val);
155
+
156
+ setSearchQuery('')
157
+ }
158
+
159
+ const handleActiveTab = (val) => {
160
+ setActiveTab(val);
161
+ setActive('all');
162
+ setActiveFilter('');
163
+
164
+ setSearchQuery('')
165
+ }
166
+ const handleSearchQuery = (val) => {
167
+ setSearchQuery(val)
168
+ setActive('all')
169
+ }
170
+
171
+ let alpha = ['#', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
172
+
173
+ let title = "";
174
+ if (shopby == "trains_roadname") {
175
+ title = "Roadname";
176
+ }
177
+
178
+ if (shopby == "trains_brands") {
179
+ title = "Brands";
180
+ }
181
+
182
+ let availableFilters = [];
183
+
184
+ if (activeTab == "country") {
185
+ availableFilters = [
186
+ 'USA',
187
+ 'Canada',
188
+ 'UK',
189
+ 'Europe',
190
+ 'Asia',
191
+ 'Australia'
192
+ ];
193
+ }
194
+
195
+ if (activeTab == "trains_gauge") {
196
+ availableFilters = [
197
+ 'N Scale',
198
+ 'HO Scale',
199
+ 'O Scale',
200
+ 'G Scale',
201
+ 'S Scale',
202
+ 'Z Scale'
203
+ ];
204
+ }
205
+
206
+ const handleActiveFilter = (val) => {
207
+ setActiveFilter(val);
208
+
209
+ setActive('all');
210
+
211
+ setSearchQuery('')
212
+ }
213
+
214
+ return (
215
+ <Fragment>
216
+ <StoreTitle>{title}</StoreTitle>
217
+ <Breadcrumbs categoryId={categoryId} customPage={title} />
218
+ <ul className={classes.nav}>
219
+ {shopby == "trains_roadname" &&
220
+ <li className={classes.nav_item}>
221
+ <button
222
+ onClick={() => {
223
+ handleActiveTab('country')
224
+ }}
225
+ >
226
+ {activeTab == 'country' ? <b>By Country</b> : 'By Country'}
227
+ </button>
228
+ </li>
229
+ }
230
+ {shopby == "trains_brands" &&
231
+ <li className={classes.nav_item}>
232
+ <button
233
+ onClick={() => {
234
+ handleActiveTab('trains_gauge')
235
+ }}
236
+ >
237
+ {activeTab == 'trains_gauge' ? <b>By Gauge</b> : 'By Gauge'}
238
+ </button>
239
+ </li>
240
+ }
241
+ {/* <li className={classes.nav_item}>
242
+ <button
243
+ onClick={() => {
244
+ handleActiveTab('all')
245
+ }}
246
+ >
247
+ {activeTab == "all" ? <b>All</b> : 'All'}
248
+ </button>
249
+ </li> */}
250
+ </ul>
251
+ {activeTab != "all" ? <><ul className={classes.nav}>
252
+ {availableFilters.map((group, index) => (
253
+ <li key={index} className={classes.nav_item}>
254
+ <button
255
+ onClick={() => {
256
+ handleActiveFilter(group)
257
+ }}
258
+ >
259
+ {activeFilter == group ? <b>{group}</b> : group}
260
+ </button>
261
+ </li>
262
+ ))}
263
+ <li className={classes.nav_item}>
264
+ <button
265
+ onClick={() => {
266
+ handleActiveFilter('')
267
+ }}
268
+ >
269
+ {!activeFilter ? <b>All</b> : 'All'}
270
+ </button>
271
+ </li>
272
+ </ul>
273
+ </> : ''}
274
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
275
+ {title}
276
+ </h1>
277
+ <div className='border border-gray-100 px-6'>
278
+ {trainsSets ? (
279
+ <div
280
+ className={classes.toolbar}
281
+ >
282
+ <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={handleSearchQuery} /></div>
283
+ {/* <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} /> */}
284
+ </div>
285
+ ) : ''}
286
+ <section className='single_list-indexing-container relative m-auto pt-5'>
287
+ {<ul className='flex gap-2 justify-center flex-wrap'>
288
+ <li>
289
+ <button
290
+ className={cn(
291
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
292
+ 'leading-4 font-medium text-base hover_bg-gray-50'
293
+ )}
294
+ onClick={() => {
295
+ handleActive('all')
296
+ }}
297
+ >
298
+ {active == 'all' ? <b>All</b> : 'All'}
299
+ </button>
300
+ </li>
301
+ {alpha.map((letter, index) => (
302
+ <li key={index}>
303
+ <button
304
+ className={cn(
305
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
306
+ 'leading-4 font-medium text-base ',
307
+ setsLengthArr[letter] > 0 ? 'hover_bg-gray-50' : 'bg-gray-100 text-gray-400',
308
+ )}
309
+ onClick={() => {
310
+ handleActive(letter)
311
+ }}
312
+ disabled={setsLengthArr[letter] > 0 ? false : true}
313
+ >
314
+ {active == letter ? <b>{letter}</b> : letter}
315
+ </button>
316
+ </li>
317
+ ))}
318
+ </ul>}
319
+ </section>
320
+ <Divider className="mb-5 px-4 mt-5" />
321
+ <section className='singles-container'>
322
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
323
+ {newTrainsSets && newTrainsSets.length ? setRelases : (searchQuery ? <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found for <b>{searchQuery}</b> search query.</div> : <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found.</div>)}
324
+ </div>
325
+ </section>
326
+ </div>
327
+ </Fragment>
328
+ );
329
+ }
330
+
331
+ export default TrainsSets;
@@ -0,0 +1,76 @@
1
+ .nav {
2
+ composes: flex from global;
3
+ composes: flex-wrap from global;
4
+ margin: 50px 0 30px 0;
5
+ composes: gap-[10px] from global;
6
+ }
7
+
8
+ .nav_item {
9
+ composes: px-4 from global;
10
+ composes: py-2 from global;
11
+ composes: transition-colors from global;
12
+ composes: duration-150 from global;
13
+ composes: border from global;
14
+ composes: border-solid from global;
15
+ composes: leading-normal from global;
16
+ composes: text-base from global;
17
+ composes: text-colorDefault from global;
18
+ composes: bg-white from global;
19
+ composes: border-gray-100 from global;
20
+ border-radius: 5px;
21
+ }
22
+
23
+ .toolbar {
24
+ composes: relative from global;
25
+ composes: ml-2xs from global;
26
+ display: flex;
27
+ justify-content: space-between;
28
+ margin-top: 20px;
29
+ }
30
+
31
+ .tabs {
32
+ composes: flex from global;
33
+ composes: flex-wrap from global;
34
+ composes: mt-3 from global;
35
+ composes: gap-[15px] from global;
36
+ margin-bottom: 30px;
37
+ }
38
+
39
+ .tabs_item {
40
+ composes: px-4 from global;
41
+ composes: py-2 from global;
42
+ composes: transition-colors from global;
43
+ composes: duration-150 from global;
44
+ composes: border from global;
45
+ composes: border-solid from global;
46
+ composes: leading-normal from global;
47
+ composes: text-base from global;
48
+ composes: text-colorDefault from global;
49
+ composes: bg-white from global;
50
+ composes: border-gray-100 from global;
51
+ border-radius: 5px;
52
+ }
53
+
54
+ .singlesWrapper {
55
+ column-count: 1;
56
+ display: flex;
57
+ width: 100%;
58
+ flex-wrap: wrap;
59
+ flex-direction: row;
60
+ }
61
+
62
+ .singlesGroupWrapper {
63
+ width: 100%;
64
+ }
65
+
66
+ @media screen and (min-width: 768px) {
67
+ .singlesGroupWrapper {
68
+ width: 50%;
69
+ }
70
+ }
71
+
72
+ @media screen and (min-width: 1023px) {
73
+ .singlesGroupWrapper {
74
+ width: 33.33%;
75
+ }
76
+ }
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { useStyle } from '@magento/venia-ui/lib/classify';
3
+
4
+ import Shimmer from '@magento/venia-ui/lib/components/Shimmer';
5
+ import defaultClasses from './trainsSets.module.css';
6
+ import cn from 'classnames';
7
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
8
+
9
+ const TrainsSets = props => {
10
+ const classes = useStyle(defaultClasses, props.classes);
11
+
12
+ return (
13
+ <>
14
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'><Shimmer width="25%" height="6vh" /></h1>
15
+ <div className='border border-gray-100 px-6'>
16
+ <center>
17
+ <section className='single_list-indexing-container relative m-auto pt-5'>
18
+ <Shimmer width="95%" height="6vh" />
19
+ </section>
20
+ </center>
21
+ <Divider className="mb-5 px-4" />
22
+ <section className='singles-container'>
23
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
24
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
25
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
26
+ </div>
27
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
28
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
29
+ </div>
30
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
31
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
32
+ </div>
33
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
34
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
35
+ </div>
36
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
37
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
38
+ </div>
39
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
40
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
41
+ </div>
42
+ </div>
43
+ </section>
44
+ </div>
45
+ </>
46
+ );
47
+ };
48
+
49
+ export default TrainsSets;
@@ -16,6 +16,8 @@ import { useLocation } from 'react-router-dom';
16
16
  import SportCardsSets from '@riosst100/pwa-marketplace/src/components/SportCardsSets/sportCardsSets';
17
17
  import NonSportCardsSets from '@riosst100/pwa-marketplace/src/components/NonSportCardsSets/nonSportCardsSets';
18
18
  import LegoSets from '@riosst100/pwa-marketplace/src/components/LegoSets/legoSets';
19
+ import TrainsSets from '@riosst100/pwa-marketplace/src/components/TrainsSets/trainsSets';
20
+ import ShopByVehicles from '@riosst100/pwa-marketplace/src/components/ShopByVehicles/shopByVehicles';
19
21
 
20
22
  const MESSAGES = new Map().set(
21
23
  'NOT_FOUND',
@@ -92,6 +94,9 @@ const Category = props => {
92
94
  isLoading={loading} /> : shopby && parentCategoryUrlKey == "non-sports-cards" ? <NonSportCardsSets
93
95
  categoryId={uid}
94
96
  shopby={shopby}
97
+ isLoading={loading} /> : shopby == "trains_brands" || shopby == "trains_roadname" ? <TrainsSets
98
+ categoryId={uid}
99
+ shopby={shopby}
95
100
  isLoading={loading} /> : shopby == "sc_baseball_players" || shopby == "sc_baseball_teams" || shopby == "release" && parentCategoryUrlKey == "sport-cards" ? <SportCardsSets
96
101
  categoryId={uid}
97
102
  shopby={shopby}
@@ -0,0 +1,48 @@
1
+ import { gql } from '@apollo/client';
2
+ import { AccountInformationPageFragment } from './accountInformationPageFragment.gql';
3
+
4
+ export const SET_CUSTOMER_INFORMATION = gql`
5
+ mutation SetCustomerInformation($customerInput: CustomerInput!) {
6
+ updateCustomer(input: $customerInput) {
7
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
8
+ customer {
9
+ ...AccountInformationPageFragment
10
+ }
11
+ }
12
+ }
13
+ ${AccountInformationPageFragment}
14
+ `;
15
+
16
+ export const CHANGE_CUSTOMER_PASSWORD = gql`
17
+ mutation ChangeCustomerPassword(
18
+ $currentPassword: String!
19
+ $newPassword: String!
20
+ ) {
21
+ changeCustomerPassword(
22
+ currentPassword: $currentPassword
23
+ newPassword: $newPassword # eslint-disable-next-line @graphql-eslint/require-id-when-available
24
+ ) {
25
+ email
26
+ }
27
+ }
28
+ `;
29
+
30
+ export const GET_CUSTOMER_INFORMATION = gql`
31
+ query GetCustomerInformation {
32
+ # eslint-disable-next-line @graphql-eslint/require-id-when-available
33
+ customer {
34
+ ...AccountInformationPageFragment
35
+ }
36
+ }
37
+ ${AccountInformationPageFragment}
38
+ `;
39
+
40
+ export default {
41
+ mutations: {
42
+ setCustomerInformationMutation: SET_CUSTOMER_INFORMATION,
43
+ changeCustomerPasswordMutation: CHANGE_CUSTOMER_PASSWORD
44
+ },
45
+ queries: {
46
+ getCustomerInformationQuery: GET_CUSTOMER_INFORMATION
47
+ }
48
+ };