@magento/venia-ui 9.0.0 → 9.2.0-alpha.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 (299) hide show
  1. package/i18n/en_US.json +21 -1
  2. package/lib/RootComponents/CMS/__tests__/cms.spec.js +50 -20
  3. package/lib/RootComponents/CMS/cms.js +39 -43
  4. package/lib/RootComponents/CMS/cms.module.css +17 -14
  5. package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
  6. package/lib/RootComponents/Category/__tests__/__snapshots__/category.spec.js.snap +2 -2
  7. package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +60 -0
  8. package/lib/RootComponents/Category/__tests__/category.spec.js +1 -1
  9. package/lib/RootComponents/Category/__tests__/categoryContent.spec.js +8 -0
  10. package/lib/RootComponents/Category/category.gql.js +2 -1
  11. package/lib/RootComponents/Category/category.js +6 -6
  12. package/lib/RootComponents/Category/categoryContent.js +11 -4
  13. package/lib/components/Accordion/section.js +6 -2
  14. package/lib/components/AccountChip/accountChip.gql.js +1 -1
  15. package/lib/components/AccountInformationPage/accountInformationPage.gql.js +5 -7
  16. package/lib/components/AccountInformationPage/accountInformationPage.js +5 -1
  17. package/lib/components/AccountInformationPage/editForm.js +22 -4
  18. package/lib/components/AccountMenu/accountMenu.js +1 -1
  19. package/lib/components/AccountMenu/accountMenuItems.js +2 -1
  20. package/lib/components/AddressBookPage/__tests__/__snapshots__/addressCard.spec.js.snap +5 -0
  21. package/lib/components/AddressBookPage/addEditDialog.js +36 -10
  22. package/lib/components/AddressBookPage/addressBookPage.js +5 -2
  23. package/lib/components/AddressBookPage/addressCard.js +17 -4
  24. package/lib/components/App/app.js +5 -1
  25. package/lib/components/App/localeProvider.js +2 -1
  26. package/lib/components/Breadcrumbs/breadcrumbs.js +3 -3
  27. package/lib/components/Breadcrumbs/breadcrumbs.module.css +11 -3
  28. package/lib/components/CartPage/GiftCards/giftCard.js +1 -0
  29. package/lib/components/CartPage/GiftCards/giftCards.js +2 -0
  30. package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +3 -0
  31. package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +3 -0
  32. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +10 -2
  33. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +2 -1
  34. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +1 -1
  35. package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +1 -1
  36. package/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +1 -0
  37. package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +4 -1
  38. package/lib/components/CartPage/PriceSummary/discountSummary.js +8 -2
  39. package/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +4 -1
  40. package/lib/components/CartPage/PriceSummary/priceSummary.js +10 -3
  41. package/lib/components/CartPage/PriceSummary/shippingSummary.js +6 -1
  42. package/lib/components/CartPage/PriceSummary/taxSummary.js +1 -1
  43. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productDetail.spec.js.snap +3 -3
  44. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +2 -2
  45. package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +1 -1
  46. package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/errorMessage.spec.js.snap +11 -0
  47. package/lib/components/CartPage/ProductListing/__tests__/errorMessage.spec.js +20 -0
  48. package/lib/components/CartPage/ProductListing/__tests__/product.spec.js +1 -0
  49. package/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
  50. package/lib/components/CartPage/ProductListing/errorMessage.module.css +9 -0
  51. package/lib/components/CartPage/ProductListing/product.js +17 -10
  52. package/lib/components/CartPage/ProductListing/productListing.js +6 -1
  53. package/lib/components/CartPage/ProductListing/productListing.module.css +6 -0
  54. package/lib/components/CartPage/ProductListing/quantity.js +3 -0
  55. package/lib/components/CartPage/cartPage.js +1 -1
  56. package/lib/components/CategoryList/__tests__/categoryList.spec.js +2 -0
  57. package/lib/components/CategoryList/categoryList.js +4 -2
  58. package/lib/components/CategoryList/categoryList.module.css +2 -0
  59. package/lib/components/CategoryList/categoryTile.js +2 -0
  60. package/lib/components/CategoryList/categoryTile.module.css +2 -0
  61. package/lib/components/CategoryList/index.js +2 -0
  62. package/lib/components/CategoryTree/categoryBranch.js +2 -1
  63. package/lib/components/CategoryTree/categoryLeaf.js +1 -0
  64. package/lib/components/CategoryTree/categoryTree.js +3 -3
  65. package/lib/components/Checkbox/checkbox.module.css +11 -3
  66. package/lib/components/Checkout/addressForm.js +2 -3
  67. package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +6 -2
  68. package/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +12 -12
  69. package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/item.spec.js.snap +2 -2
  70. package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
  71. package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
  72. package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +4 -1
  73. package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/orderConfirmationPage.spec.js.snap +1 -1
  74. package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +6 -0
  75. package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +10 -4
  76. package/lib/components/CheckoutPage/OrderSummary/orderSummary.js +1 -1
  77. package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +2 -1
  78. package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +11 -1
  79. package/lib/components/CheckoutPage/PaymentInformation/editCard.js +1 -1
  80. package/lib/components/CheckoutPage/PaymentInformation/editModal.js +1 -1
  81. package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +1 -1
  82. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +8 -0
  83. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/guestForm.spec.js +56 -1
  84. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +27 -4
  85. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +96 -9
  86. package/lib/components/CheckoutPage/ShippingInformation/card.js +1 -1
  87. package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +14 -3
  88. package/lib/components/CheckoutPage/ShippingMethod/completedView.js +1 -0
  89. package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +2 -1
  90. package/lib/components/CheckoutPage/ShippingMethod/updateModal.js +1 -0
  91. package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +32 -0
  92. package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +2 -0
  93. package/lib/components/CheckoutPage/checkoutPage.js +26 -4
  94. package/lib/components/ContactPage/__tests__/__snapshots__/contactLink.spec.js.snap +11 -0
  95. package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.shimmer.spec.js.snap +113 -0
  96. package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.spec.js.snap +312 -0
  97. package/lib/components/ContactPage/__tests__/contactLink.spec.js +58 -0
  98. package/lib/components/ContactPage/__tests__/contactPage.shimmer.spec.js +20 -0
  99. package/lib/components/ContactPage/__tests__/contactPage.spec.js +159 -0
  100. package/lib/components/ContactPage/contactLink.js +21 -0
  101. package/lib/components/ContactPage/contactPage.js +270 -0
  102. package/lib/components/ContactPage/contactPage.module.css +81 -0
  103. package/lib/components/ContactPage/contactPage.shimmer.js +104 -0
  104. package/lib/components/ContactPage/contactPage.shimmer.module.css +27 -0
  105. package/lib/components/ContactPage/index.js +2 -0
  106. package/lib/components/CreateAccount/createAccount.js +5 -0
  107. package/lib/components/Dialog/dialog.js +18 -4
  108. package/lib/components/ErrorMessage/errorMessage.js +7 -2
  109. package/lib/components/ErrorView/errorView.js +4 -2
  110. package/lib/components/Field/field.module.css +10 -6
  111. package/lib/components/FilterModal/CurrentFilters/currentFilter.js +7 -3
  112. package/lib/components/FilterModal/FilterList/__tests__/filterItem.spec.js +34 -5
  113. package/lib/components/FilterModal/FilterList/filterDefault.js +3 -2
  114. package/lib/components/FilterModal/FilterList/filterItem.js +27 -7
  115. package/lib/components/FilterModal/FilterList/filterList.js +6 -1
  116. package/lib/components/FilterModal/filterBlock.js +9 -4
  117. package/lib/components/FilterModal/filterFooter.js +1 -0
  118. package/lib/components/FilterModal/filterModal.js +6 -1
  119. package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +1 -0
  120. package/lib/components/FilterSidebar/filterSidebar.js +6 -1
  121. package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +15 -0
  122. package/lib/components/Footer/__tests__/footer.spec.js +13 -1
  123. package/lib/components/Footer/footer.js +17 -8
  124. package/lib/components/Footer/footer.module.css +18 -3
  125. package/lib/components/Footer/sampleData.js +8 -3
  126. package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +3 -0
  127. package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.js +4 -2
  128. package/lib/components/ForgotPassword/forgotPassword.gql.js +0 -1
  129. package/lib/components/FormError/formError.js +10 -4
  130. package/lib/components/Gallery/__tests__/__snapshots__/addToCartButton.spec.js.snap +0 -3
  131. package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -0
  132. package/lib/components/Gallery/addToCartButton.js +27 -22
  133. package/lib/components/Gallery/item.js +16 -4
  134. package/lib/components/Gallery/item.module.css +3 -1
  135. package/lib/components/Head/index.js +2 -1
  136. package/lib/components/Header/__tests__/header.spec.js +1 -1
  137. package/lib/components/Header/accountTrigger.js +1 -0
  138. package/lib/components/Header/cartTrigger.js +4 -1
  139. package/lib/components/Header/currencySwitcher.module.css +1 -1
  140. package/lib/components/Header/header.js +1 -1
  141. package/lib/components/Header/header.module.css +100 -96
  142. package/lib/components/Header/navTrigger.js +1 -0
  143. package/lib/components/Header/searchTrigger.js +1 -0
  144. package/lib/components/LegacyMiniCart/cartOptions.gql.js +7 -6
  145. package/lib/components/LegacyMiniCart/cartOptions.js +1 -1
  146. package/lib/components/LegacyMiniCart/editFormFragment.gql.js +7 -3
  147. package/lib/components/LegacyMiniCart/kebab.js +1 -0
  148. package/lib/components/LegacyMiniCart/product.js +1 -1
  149. package/lib/components/LegacyMiniCart/productOptions.js +6 -1
  150. package/lib/components/LegacyMiniCart/section.js +15 -5
  151. package/lib/components/Link/link.js +6 -4
  152. package/lib/components/Mask/mask.js +3 -3
  153. package/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +1 -0
  154. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +9 -0
  155. package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +6 -0
  156. package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +2 -0
  157. package/lib/components/MegaMenu/megaMenu.js +6 -2
  158. package/lib/components/MegaMenu/megaMenu.module.css +8 -11
  159. package/lib/components/MegaMenu/megaMenuItem.js +27 -6
  160. package/lib/components/MegaMenu/megaMenuItem.module.css +0 -5
  161. package/lib/components/MegaMenu/submenu.js +5 -3
  162. package/lib/components/MegaMenu/submenuColumn.js +15 -4
  163. package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +4 -4
  164. package/lib/components/MiniCart/ProductList/item.js +7 -4
  165. package/lib/components/MiniCart/ProductList/productList.js +5 -1
  166. package/lib/components/MiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +1 -1
  167. package/lib/components/MiniCart/miniCart.gql.js +4 -3
  168. package/lib/components/MiniCart/miniCart.js +9 -4
  169. package/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +1 -1
  170. package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.shimmer.spec.js.snap +40 -0
  171. package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +173 -0
  172. package/lib/components/Newsletter/__tests__/newsletter.shimmer.spec.js +10 -0
  173. package/lib/components/Newsletter/__tests__/newsletter.spec.js +143 -0
  174. package/lib/components/Newsletter/index.js +1 -0
  175. package/lib/components/Newsletter/newsletter.js +148 -0
  176. package/lib/components/Newsletter/newsletter.module.css +94 -0
  177. package/lib/components/Newsletter/newsletter.shimmer.js +46 -0
  178. package/lib/components/Newsletter/newsletter.shimmer.module.css +11 -0
  179. package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -1
  180. package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/shippingMethod.spec.js.snap +3 -0
  181. package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +4 -1
  182. package/lib/components/OrderHistoryPage/OrderDetails/item.js +1 -1
  183. package/lib/components/OrderHistoryPage/OrderDetails/items.js +1 -1
  184. package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +1 -1
  185. package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +4 -1
  186. package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +5 -1
  187. package/lib/components/OrderHistoryPage/orderHistoryPage.js +8 -1
  188. package/lib/components/Pagination/pagination.js +1 -1
  189. package/lib/components/Pagination/tile.js +5 -1
  190. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/__snapshots__/boolean.spec.js.snap +20 -0
  191. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/boolean.spec.js +52 -0
  192. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +74 -0
  193. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +9 -0
  194. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +1 -0
  195. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/__snapshots__/date.spec.js.snap +25 -0
  196. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/date.spec.js +52 -0
  197. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +82 -0
  198. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +9 -0
  199. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +1 -0
  200. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/__snapshots__/dateTime.spec.js.snap +29 -0
  201. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/dateTime.spec.js +53 -0
  202. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +85 -0
  203. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +9 -0
  204. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +1 -0
  205. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +36 -0
  206. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/multiSelect.spec.js +88 -0
  207. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +1 -0
  208. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +99 -0
  209. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +13 -0
  210. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/__snapshots__/price.spec.js.snap +23 -0
  211. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/price.spec.js +52 -0
  212. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +1 -0
  213. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +74 -0
  214. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +9 -0
  215. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/__snapshots__/select.spec.js.snap +36 -0
  216. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/select.spec.js +88 -0
  217. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +1 -0
  218. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +99 -0
  219. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +13 -0
  220. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/__snapshots__/text.spec.js.snap +33 -0
  221. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/text.spec.js +74 -0
  222. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +1 -0
  223. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +88 -0
  224. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +13 -0
  225. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/__snapshots__/textarea.spec.js.snap +33 -0
  226. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/textarea.spec.js +74 -0
  227. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +1 -0
  228. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +88 -0
  229. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +13 -0
  230. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/__snapshots__/attributeType.spec.js.snap +101 -0
  231. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/attributeType.spec.js +173 -0
  232. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +61 -0
  233. package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +1 -0
  234. package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +49 -0
  235. package/lib/components/ProductFullDetail/CustomAttributes/__tests__/customAttributes.spec.js +78 -0
  236. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +66 -0
  237. package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +14 -0
  238. package/lib/components/ProductFullDetail/CustomAttributes/index.js +1 -0
  239. package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +39 -0
  240. package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +3 -1
  241. package/lib/components/ProductFullDetail/productFullDetail.js +18 -3
  242. package/lib/components/ProductOptions/__tests__/__snapshots__/option.spec.js.snap +1 -1
  243. package/lib/components/ProductOptions/__tests__/__snapshots__/options.spec.js.snap +2 -2
  244. package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +44 -2
  245. package/lib/components/ProductOptions/__tests__/__snapshots__/swatchList.spec.js.snap +22 -1
  246. package/lib/components/ProductOptions/__tests__/swatch.spec.js +0 -2
  247. package/lib/components/ProductOptions/option.js +2 -2
  248. package/lib/components/ProductOptions/swatch.js +7 -5
  249. package/lib/components/ProductOptions/swatch.module.css +11 -0
  250. package/lib/components/ProductOptions/tile.js +1 -0
  251. package/lib/components/ProductSort/__tests__/__snapshots__/sortItem.spec.js.snap +14 -0
  252. package/lib/components/ProductSort/__tests__/sortItem.spec.js +61 -0
  253. package/lib/components/ProductSort/productSort.js +84 -40
  254. package/lib/components/ProductSort/sortItem.js +26 -11
  255. package/lib/components/RadioGroup/radio.module.css +13 -5
  256. package/lib/components/RadioGroup/radioGroup.js +2 -1
  257. package/lib/components/Rating/__tests__/__snapshots__/rating.spec.js.snap +27 -0
  258. package/lib/components/Rating/__tests__/rating.spec.js +13 -0
  259. package/lib/components/Rating/index.js +1 -0
  260. package/lib/components/Rating/rating.js +30 -0
  261. package/lib/components/Rating/rating.module.css +21 -0
  262. package/lib/components/RichContent/richContent.module.css +52 -59
  263. package/lib/components/SearchBar/autocomplete.js +2 -0
  264. package/lib/components/SearchBar/searchBar.js +1 -1
  265. package/lib/components/SearchBar/searchBar.module.css +1 -0
  266. package/lib/components/SearchBar/searchField.js +1 -0
  267. package/lib/components/SearchBar/suggestedCategory.js +1 -1
  268. package/lib/components/SearchBar/suggestedProduct.js +6 -1
  269. package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +195 -1
  270. package/lib/components/SearchPage/__tests__/searchPage.spec.js +13 -0
  271. package/lib/components/SearchPage/searchPage.js +20 -6
  272. package/lib/components/Shimmer/shimmer.js +11 -2
  273. package/lib/components/Shimmer/shimmer.module.css +4 -8
  274. package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +126 -0
  275. package/lib/components/SignIn/__tests__/signIn.spec.js +11 -0
  276. package/lib/components/SignIn/signIn.gql.js +8 -4
  277. package/lib/components/SignIn/signIn.js +24 -4
  278. package/lib/components/TextArea/textArea.module.css +9 -0
  279. package/lib/components/TextInput/textInput.module.css +4 -0
  280. package/lib/components/ToastContainer/toast.js +23 -3
  281. package/lib/components/ToastContainer/toast.module.css +3 -0
  282. package/lib/components/Trigger/trigger.js +9 -2
  283. package/lib/components/Wishlist/AddToListButton/addToListButton.ee.js +1 -0
  284. package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.js +2 -0
  285. package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +1 -0
  286. package/lib/components/Wishlist/WishlistDialog/wishlistDialog.js +1 -0
  287. package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistPage.spec.js.snap +5 -5
  288. package/lib/components/WishlistPage/createWishlist.ee.js +2 -0
  289. package/lib/components/WishlistPage/wishlist.js +8 -3
  290. package/lib/components/WishlistPage/wishlistItem.js +17 -4
  291. package/lib/components/WishlistPage/wishlistPage.js +5 -3
  292. package/lib/defaultRoutes.json +6 -0
  293. package/lib/targets/__tests__/venia-ui-targets.spec.js +2 -0
  294. package/lib/util/__tests__/shrinkGETQuery.spec.js +1 -1
  295. package/lib/util/apolloCache.js +2 -2
  296. package/lib/util/formValidators.js +10 -8
  297. package/lib/util/toCamelCase.js +3 -0
  298. package/package.json +17 -14
  299. package/upward.yml +19 -40
@@ -42,7 +42,10 @@ export default props => {
42
42
 
43
43
  return cards.value ? (
44
44
  <Fragment>
45
- <span className={classes.lineItemLabel}>
45
+ <span
46
+ className={classes.lineItemLabel}
47
+ data-cy="PriceSummary-GiftCardSummary-label"
48
+ >
46
49
  <FormattedMessage
47
50
  id={'giftCardSummary.lineItemLabel'}
48
51
  defaultMessage={'Gift Card(s) applied'}
@@ -81,6 +81,7 @@ const PriceSummary = props => {
81
81
  disabled={isPriceUpdating}
82
82
  priority={'high'}
83
83
  onClick={handleProceedToCheckout}
84
+ data-cy="PriceSummary-checkoutButton"
84
85
  >
85
86
  <FormattedMessage
86
87
  id={'priceSummary.checkoutButton'}
@@ -91,7 +92,7 @@ const PriceSummary = props => {
91
92
  ) : null;
92
93
 
93
94
  return (
94
- <div className={classes.root}>
95
+ <div className={classes.root} data-cy="PriceSummary-root">
95
96
  <div className={classes.lineItems}>
96
97
  <span className={classes.lineItemLabel}>
97
98
  <FormattedMessage
@@ -99,7 +100,10 @@ const PriceSummary = props => {
99
100
  defaultMessage={'Subtotal'}
100
101
  />
101
102
  </span>
102
- <span className={priceClass}>
103
+ <span
104
+ data-cy="PriceSummary-subtotalValue"
105
+ className={priceClass}
106
+ >
103
107
  <Price
104
108
  value={subtotal.value}
105
109
  currencyCode={subtotal.currency}
@@ -136,7 +140,10 @@ const PriceSummary = props => {
136
140
  isCheckout={isCheckout}
137
141
  />
138
142
  <span className={classes.totalLabel}>{totalPriceLabel}</span>
139
- <span className={totalPriceClass}>
143
+ <span
144
+ data-cy="PriceSummary-totalValue"
145
+ className={totalPriceClass}
146
+ >
140
147
  <Price value={total.value} currencyCode={total.currency} />
141
148
  </span>
142
149
  </div>
@@ -45,7 +45,12 @@ const ShippingSummary = props => {
45
45
  return (
46
46
  <>
47
47
  <span className={classes.lineItemLabel}>{shippingLabel}</span>
48
- <span className={classes.price}>{price}</span>
48
+ <span
49
+ data-cy="ShippingSummary-shippingValue"
50
+ className={classes.price}
51
+ >
52
+ {price}
53
+ </span>
49
54
  </>
50
55
  );
51
56
  };
@@ -47,7 +47,7 @@ const TaxSummary = props => {
47
47
  return (
48
48
  <>
49
49
  <span className={classes.lineItemLabel}>{taxLabel}</span>
50
- <span className={classes.price}>
50
+ <span data-cy="TaxSummary-taxValue" className={classes.price}>
51
51
  <Price value={tax.value} currencyCode={tax.currency} />
52
52
  </span>
53
53
  </>
@@ -25,7 +25,7 @@ exports[`renders product details with base price and in stock 1`] = `
25
25
  >
26
26
  <span>
27
27
  <mock-FormattedMessage
28
- defaultMessage="SKU #"
28
+ defaultMessage="SKU # {sku}"
29
29
  id="productDetail.skuNumber"
30
30
  values={
31
31
  Object {
@@ -82,7 +82,7 @@ exports[`renders product details with unknown stock value 1`] = `
82
82
  >
83
83
  <span>
84
84
  <mock-FormattedMessage
85
- defaultMessage="SKU #"
85
+ defaultMessage="SKU # {sku}"
86
86
  id="productDetail.skuNumber"
87
87
  values={
88
88
  Object {
@@ -139,7 +139,7 @@ exports[`renders product details with variant price and out of stock 1`] = `
139
139
  >
140
140
  <span>
141
141
  <mock-FormattedMessage
142
- defaultMessage="SKU #"
142
+ defaultMessage="SKU # {sku}"
143
143
  id="productDetail.skuNumber"
144
144
  values={
145
145
  Object {
@@ -122,7 +122,7 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
122
122
  >
123
123
  <span>
124
124
  <mock-FormattedMessage
125
- defaultMessage="SKU #"
125
+ defaultMessage="SKU # {sku}"
126
126
  id="productDetail.skuNumber"
127
127
  values={
128
128
  Object {
@@ -468,7 +468,7 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
468
468
  >
469
469
  <span>
470
470
  <mock-FormattedMessage
471
- defaultMessage="SKU #"
471
+ defaultMessage="SKU # {sku}"
472
472
  id="productDetail.skuNumber"
473
473
  values={
474
474
  Object {
@@ -61,7 +61,7 @@ const ProductDetail = props => {
61
61
  <span>
62
62
  <FormattedMessage
63
63
  id={'productDetail.skuNumber'}
64
- defaultMessage={'SKU #'}
64
+ defaultMessage={'SKU # {sku}'}
65
65
  values={{ sku }}
66
66
  />
67
67
  </span>
@@ -0,0 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders error message 1`] = `
4
+ <div
5
+ className="root"
6
+ >
7
+ Something went wrong.
8
+ </div>
9
+ `;
10
+
11
+ exports[`renders nothing when no error 1`] = `null`;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { createTestInstance } from '@magento/peregrine';
3
+
4
+ import ErrorMessage from '../errorMessage';
5
+
6
+ jest.mock('../../../../classify');
7
+
8
+ test('renders error message', () => {
9
+ const error = new Error('Something went wrong.');
10
+ const tree = createTestInstance(<ErrorMessage error={error} />);
11
+
12
+ expect(tree.toJSON()).toMatchSnapshot();
13
+ });
14
+
15
+ test('renders nothing when no error', () => {
16
+ const error = null;
17
+ const tree = createTestInstance(<ErrorMessage error={error} />);
18
+
19
+ expect(tree.toJSON()).toMatchSnapshot();
20
+ });
@@ -51,6 +51,7 @@ const props = {
51
51
  }
52
52
  },
53
53
  quantity: 1,
54
+ errors: null,
54
55
  configurable_options: [
55
56
  {
56
57
  configurable_product_option_value_uid: '12345asd'
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { shape, string } from 'prop-types';
3
+ import { useStyle } from '../../../classify';
4
+ import defaultClasses from './errorMessage.module.css';
5
+
6
+ const ErrorMessage = props => {
7
+ const { error } = props;
8
+ const classes = useStyle(defaultClasses, props.classes);
9
+
10
+ if (!error || !error.message) {
11
+ return null;
12
+ }
13
+
14
+ return <div className={classes.root}>{error.message}</div>;
15
+ };
16
+
17
+ ErrorMessage.defaultProps = {
18
+ classes: null,
19
+ error: null
20
+ };
21
+
22
+ ErrorMessage.propTypes = {
23
+ classes: shape({
24
+ root: string
25
+ }),
26
+ error: shape({
27
+ message: string
28
+ })
29
+ };
30
+
31
+ export default ErrorMessage;
@@ -0,0 +1,9 @@
1
+ .root {
2
+ border-left: 5px solid rgb(var(--venia-global-color-error));
3
+ color: rgb(var(--venia-global-color-error));
4
+ font-size: var(--venia-typography-body-S-fontSize);
5
+ font-weight: var(--venia-global-fontWeight-semibold);
6
+ line-height: var(--venia-global-lineHeight-300);
7
+ padding: 1rem 0 1rem 1rem;
8
+ margin-bottom: 1rem;
9
+ }
@@ -72,6 +72,7 @@ const Product = props => {
72
72
  id: 'product.editItem',
73
73
  defaultMessage: 'Edit item'
74
74
  })}
75
+ data-cy="Product-Section-editItem"
75
76
  onClick={handleEditItem}
76
77
  icon="Edit2"
77
78
  classes={{
@@ -94,10 +95,14 @@ const Product = props => {
94
95
  : '';
95
96
 
96
97
  return (
97
- <li className={classes.root}>
98
+ <li className={classes.root} data-cy="Product-root">
98
99
  <span className={classes.errorText}>{errorMessage}</span>
99
100
  <div className={itemClassName}>
100
- <Link to={itemLink} className={classes.imageContainer}>
101
+ <Link
102
+ to={itemLink}
103
+ className={classes.imageContainer}
104
+ data-cy="Product-imageContainer"
105
+ >
101
106
  <Image
102
107
  alt={name}
103
108
  classes={{
@@ -109,7 +114,7 @@ const Product = props => {
109
114
  />
110
115
  </Link>
111
116
  <div className={classes.details}>
112
- <div className={classes.name}>
117
+ <div className={classes.name} data-cy="Product-name">
113
118
  <Link to={itemLink}>{name}</Link>
114
119
  </div>
115
120
  <ProductOptions
@@ -119,7 +124,7 @@ const Product = props => {
119
124
  optionLabel: classes.optionLabel
120
125
  }}
121
126
  />
122
- <span className={classes.price}>
127
+ <span className={classes.price} data-cy="Product-price">
123
128
  <Price currencyCode={currency} value={unitPrice} />
124
129
  <FormattedMessage
125
130
  id={'product.price'}
@@ -149,6 +154,7 @@ const Product = props => {
149
154
  id: 'product.removeFromCart',
150
155
  defaultMessage: 'Remove from cart'
151
156
  })}
157
+ data-cy="Product-Section-removeFromCart"
152
158
  onClick={handleRemoveFromCart}
153
159
  icon="Trash"
154
160
  classes={{
@@ -174,9 +180,10 @@ const Product = props => {
174
180
  export default Product;
175
181
 
176
182
  export const REMOVE_ITEM_MUTATION = gql`
177
- mutation removeItem($cartId: String!, $itemId: Int!) {
178
- removeItemFromCart(input: { cart_id: $cartId, cart_item_id: $itemId })
179
- @connection(key: "removeItemFromCart") {
183
+ mutation removeItem($cartId: String!, $itemId: ID!) {
184
+ removeItemFromCart(
185
+ input: { cart_id: $cartId, cart_item_uid: $itemId }
186
+ ) {
180
187
  cart {
181
188
  id
182
189
  ...CartPageFragment
@@ -191,15 +198,15 @@ export const REMOVE_ITEM_MUTATION = gql`
191
198
  export const UPDATE_QUANTITY_MUTATION = gql`
192
199
  mutation updateItemQuantity(
193
200
  $cartId: String!
194
- $itemId: Int!
201
+ $itemId: ID!
195
202
  $quantity: Float!
196
203
  ) {
197
204
  updateCartItems(
198
205
  input: {
199
206
  cart_id: $cartId
200
- cart_items: [{ cart_item_id: $itemId, quantity: $quantity }]
207
+ cart_items: [{ cart_item_uid: $itemId, quantity: $quantity }]
201
208
  }
202
- ) @connection(key: "updateCartItems") {
209
+ ) {
203
210
  cart {
204
211
  id
205
212
  ...CartPageFragment
@@ -6,6 +6,7 @@ import { useStyle } from '../../../classify';
6
6
  import LoadingIndicator from '../../LoadingIndicator';
7
7
  import defaultClasses from './productListing.module.css';
8
8
  import Product from './product';
9
+ import ErrorMessage from './errorMessage';
9
10
 
10
11
  const EditModal = React.lazy(() => import('./EditModal'));
11
12
  /**
@@ -35,6 +36,7 @@ const ProductListing = props => {
35
36
  const {
36
37
  activeEditItem,
37
38
  isLoading,
39
+ error,
38
40
  items,
39
41
  setActiveEditItem,
40
42
  wishlistConfig
@@ -68,7 +70,10 @@ const ProductListing = props => {
68
70
 
69
71
  return (
70
72
  <Fragment>
71
- <ul className={classes.root}>{productComponents}</ul>
73
+ <ErrorMessage error={error} />
74
+ <ul className={classes.root} data-cy="ProductListing-root">
75
+ {productComponents}
76
+ </ul>
72
77
  <Suspense fallback={null}>
73
78
  <EditModal
74
79
  item={activeEditItem}
@@ -2,3 +2,9 @@
2
2
  display: grid;
3
3
  grid-gap: 2rem 1rem;
4
4
  }
5
+
6
+ .errorText {
7
+ color: rgb(var(--venia-global-color-error));
8
+ line-height: var(--venia-global-lineHeight-300);
9
+ margin-bottom: 1rem;
10
+ }
@@ -49,6 +49,7 @@ export const QuantityFields = props => {
49
49
  disabled={isDecrementDisabled}
50
50
  onClick={handleDecrement}
51
51
  type="button"
52
+ data-cy="Quantity-decrementButton"
52
53
  >
53
54
  <Icon classes={iconClasses} src={MinusIcon} size={22} />
54
55
  </button>
@@ -57,6 +58,7 @@ export const QuantityFields = props => {
57
58
  id: 'quantity.input',
58
59
  defaultMessage: 'Item Quantity'
59
60
  })}
61
+ data-cy="QuantityFields-input"
60
62
  classes={{ input: classes.input }}
61
63
  field="quantity"
62
64
  id={itemId}
@@ -75,6 +77,7 @@ export const QuantityFields = props => {
75
77
  disabled={isIncrementDisabled}
76
78
  onClick={handleIncrement}
77
79
  type="button"
80
+ data-cy="Quantity-incrementButton"
78
81
  >
79
82
  <Icon classes={iconClasses} src={PlusIcon} size={20} />
80
83
  </button>
@@ -85,7 +85,7 @@ const CartPage = props => {
85
85
  ) : null;
86
86
 
87
87
  return (
88
- <div className={classes.root}>
88
+ <div className={classes.root} data-cy="CartPage-root">
89
89
  <StoreTitle>
90
90
  {formatMessage({
91
91
  id: 'cartPage.title',
@@ -1,3 +1,5 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  import React from 'react';
2
4
  import { createTestInstance } from '@magento/peregrine';
3
5
 
@@ -1,6 +1,8 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  import React from 'react';
2
4
  import { useIntl } from 'react-intl';
3
- import { string, number, shape } from 'prop-types';
5
+ import { string, shape } from 'prop-types';
4
6
  import { useCategoryList } from '@magento/peregrine/lib/talons/CategoryList/useCategoryList';
5
7
 
6
8
  import { useStyle } from '../../classify';
@@ -90,7 +92,7 @@ const CategoryList = props => {
90
92
  };
91
93
 
92
94
  CategoryList.propTypes = {
93
- id: number.isRequired,
95
+ id: string.isRequired,
94
96
  title: string,
95
97
  classes: shape({
96
98
  root: string,
@@ -1,3 +1,5 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  .root {
2
4
  padding: 1rem;
3
5
  }
@@ -1,3 +1,5 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  import React, { useMemo } from 'react';
2
4
  import { arrayOf, string, shape } from 'prop-types';
3
5
  import { Link } from 'react-router-dom';
@@ -1,3 +1,5 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  .root {
2
4
  display: block;
3
5
  line-height: 1rem;
@@ -1 +1,3 @@
1
+ /* Deprecated in PWA-12.1.0*/
2
+
1
3
  export { default } from './categoryList';
@@ -21,6 +21,7 @@ const Branch = props => {
21
21
  <li className={classes.root}>
22
22
  <button
23
23
  className={classes.target}
24
+ data-cy="CategoryTree-Branch-target"
24
25
  type="button"
25
26
  onClick={handleClick}
26
27
  >
@@ -34,7 +35,7 @@ export default Branch;
34
35
 
35
36
  Branch.propTypes = {
36
37
  category: shape({
37
- id: number.isRequired,
38
+ uid: string.isRequired,
38
39
  include_in_menu: number,
39
40
  name: string.isRequired
40
41
  }).isRequired,
@@ -32,6 +32,7 @@ const Leaf = props => {
32
32
  <li className={classes.root}>
33
33
  <Link
34
34
  className={classes.target}
35
+ data-cy="CategoryTree-Leaf-target"
35
36
  to={destination}
36
37
  onClick={handleClick}
37
38
  >
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { func, number, shape, string } from 'prop-types';
2
+ import { func, shape, string } from 'prop-types';
3
3
  import { useCategoryTree } from '@magento/peregrine/lib/talons/CategoryTree';
4
4
 
5
5
  import { useStyle } from '../../classify';
@@ -41,7 +41,7 @@ const Tree = props => {
41
41
  : null;
42
42
 
43
43
  return (
44
- <div className={classes.root}>
44
+ <div className={classes.root} data-cy="CategoryTree-root">
45
45
  <ul className={classes.tree}>{branches}</ul>
46
46
  </div>
47
47
  );
@@ -50,7 +50,7 @@ const Tree = props => {
50
50
  export default Tree;
51
51
 
52
52
  Tree.propTypes = {
53
- categoryId: number,
53
+ categoryId: string,
54
54
  classes: shape({
55
55
  root: string,
56
56
  tree: string
@@ -11,15 +11,19 @@
11
11
  line-height: 1.5rem;
12
12
  }
13
13
 
14
+ .input_base {
15
+ border-radius: 4px;
16
+ height: 1.5rem;
17
+ width: 1.5rem;
18
+ }
19
+
14
20
  .input {
21
+ composes: input_base;
15
22
  -webkit-appearance: none;
16
23
  background: none;
17
24
  border: 2px solid transparent;
18
- border-radius: 4px;
19
25
  cursor: pointer;
20
26
  grid-area: input;
21
- height: 1.5rem;
22
- width: 1.5rem;
23
27
  }
24
28
 
25
29
  .icon {
@@ -58,3 +62,7 @@
58
62
  box-shadow: -3px 3px rgb(var(--venia-brand-color-1-100));
59
63
  outline: none;
60
64
  }
65
+
66
+ .input_shimmer {
67
+ composes: input_base;
68
+ }
@@ -185,8 +185,7 @@ export default AddressForm;
185
185
 
186
186
  export const SET_GUEST_EMAIL_MUTATION = gql`
187
187
  mutation setGuestEmailOnCart($cartId: String!, $email: String!) {
188
- setGuestEmailOnCart(input: { cart_id: $cartId, email: $email })
189
- @connection(key: "setGuestEmailOnCart") {
188
+ setGuestEmailOnCart(input: { cart_id: $cartId, email: $email }) {
190
189
  cart {
191
190
  id
192
191
  }
@@ -225,7 +224,7 @@ export const SET_SHIPPING_ADDRESS_MUTATION = gql`
225
224
  }
226
225
  ]
227
226
  }
228
- ) @connection(key: "setShippingAddressesOnCart") {
227
+ ) {
229
228
  cart {
230
229
  id
231
230
  shipping_addresses {
@@ -11,7 +11,7 @@ import SignIn from '@magento/venia-ui/lib/components/SignIn';
11
11
  import defaultClasses from './guestSignIn.module.css';
12
12
 
13
13
  const GuestSignIn = props => {
14
- const { isActive, toggleActiveContent } = props;
14
+ const { isActive, toggleActiveContent, initialValues } = props;
15
15
 
16
16
  const talonProps = useGuestSignIn({ toggleActiveContent });
17
17
  const {
@@ -32,6 +32,7 @@ const GuestSignIn = props => {
32
32
  classes={{ modal_active: undefined, root: classes.signInRoot }}
33
33
  showCreateAccount={toggleCreateAccountView}
34
34
  showForgotPassword={toggleForgotPasswordView}
35
+ initialValues={initialValues}
35
36
  />
36
37
  );
37
38
  } else if (view === 'FORGOT_PASSWORD') {
@@ -85,5 +86,8 @@ GuestSignIn.propTypes = {
85
86
  createAccountRoot: string
86
87
  }),
87
88
  isActive: bool.isRequired,
88
- toggleActiveContent: func.isRequired
89
+ toggleActiveContent: func.isRequired,
90
+ initialValues: shape({
91
+ email: string.isRequired
92
+ })
89
93
  };
@@ -18,16 +18,16 @@ export default {
18
18
  quantity: 3,
19
19
  configurable_options: [
20
20
  {
21
- id: 179,
21
+ configurable_product_option_uid: 179,
22
22
  option_label: 'Fashion Color',
23
- value_id: 18,
23
+ configurable_product_option_value_uid: 18,
24
24
  value_label: 'Peach',
25
25
  __typename: 'SelectedConfigurableOption'
26
26
  },
27
27
  {
28
- id: 182,
28
+ configurable_product_option_uid: 182,
29
29
  option_label: 'Fashion Size',
30
- value_id: 27,
30
+ configurable_product_option_value_uid: 27,
31
31
  value_label: 'M',
32
32
  __typename: 'SelectedConfigurableOption'
33
33
  }
@@ -49,16 +49,16 @@ export default {
49
49
  quantity: 1,
50
50
  configurable_options: [
51
51
  {
52
- id: 179,
52
+ configurable_product_option_uid: 179,
53
53
  option_label: 'Fashion Color',
54
- value_id: 21,
54
+ configurable_product_option_value_uid: 21,
55
55
  value_label: 'Rain',
56
56
  __typename: 'SelectedConfigurableOption'
57
57
  },
58
58
  {
59
- id: 182,
59
+ configurable_product_option_uid: 182,
60
60
  option_label: 'Fashion Size',
61
- value_id: 29,
61
+ configurable_product_option_value_uid: 29,
62
62
  value_label: 'XS',
63
63
  __typename: 'SelectedConfigurableOption'
64
64
  }
@@ -80,16 +80,16 @@ export default {
80
80
  quantity: 3,
81
81
  configurable_options: [
82
82
  {
83
- id: 179,
83
+ configurable_product_option_uid: 179,
84
84
  option_label: 'Fashion Color',
85
- value_id: 20,
85
+ configurable_product_option_value_uid: 20,
86
86
  value_label: 'Lilac',
87
87
  __typename: 'SelectedConfigurableOption'
88
88
  },
89
89
  {
90
- id: 182,
90
+ configurable_product_option_uid: 182,
91
91
  option_label: 'Fashion Size',
92
- value_id: 26,
92
+ configurable_product_option_value_uid: 26,
93
93
  value_label: 'L',
94
94
  __typename: 'SelectedConfigurableOption'
95
95
  }
@@ -24,7 +24,7 @@ exports[`Snapshot test 1`] = `
24
24
  />
25
25
  <span>
26
26
  <mock-FormattedMessage
27
- defaultMessage="Qty :"
27
+ defaultMessage="Qty : {quantity}"
28
28
  id="checkoutPage.quantity"
29
29
  values={
30
30
  Object {
@@ -70,7 +70,7 @@ exports[`Snapshot test when configured to use variant image 1`] = `
70
70
  />
71
71
  <span>
72
72
  <mock-FormattedMessage
73
- defaultMessage="Qty :"
73
+ defaultMessage="Qty : {quantity}"
74
74
  id="checkoutPage.quantity"
75
75
  values={
76
76
  Object {