@magento/venia-ui 9.1.0-beta.1 → 9.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18n/en_US.json +22 -7
- package/lib/RootComponents/CMS/__tests__/cms.spec.js +50 -20
- package/lib/RootComponents/CMS/cms.js +39 -43
- package/lib/RootComponents/CMS/cms.module.css +17 -14
- package/lib/RootComponents/Category/NoProductsFound/noProductsFound.js +1 -1
- package/lib/RootComponents/Category/__tests__/__snapshots__/category.spec.js.snap +2 -2
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +60 -0
- package/lib/RootComponents/Category/__tests__/category.spec.js +1 -1
- package/lib/RootComponents/Category/__tests__/categoryContent.spec.js +8 -0
- package/lib/RootComponents/Category/category.gql.js +2 -1
- package/lib/RootComponents/Category/category.js +6 -6
- package/lib/RootComponents/Category/categoryContent.js +11 -4
- package/lib/components/Accordion/section.js +6 -2
- package/lib/components/AccountChip/accountChip.gql.js +1 -1
- package/lib/components/AccountInformationPage/accountInformationPage.gql.js +5 -7
- package/lib/components/AccountInformationPage/accountInformationPage.js +5 -1
- package/lib/components/AccountInformationPage/editForm.js +22 -4
- package/lib/components/AccountMenu/accountMenu.js +1 -1
- package/lib/components/AccountMenu/accountMenuItems.js +2 -1
- package/lib/components/AddressBookPage/__tests__/__snapshots__/addressCard.spec.js.snap +5 -0
- package/lib/components/AddressBookPage/addEditDialog.js +36 -10
- package/lib/components/AddressBookPage/addressBookPage.js +5 -2
- package/lib/components/AddressBookPage/addressCard.js +17 -4
- package/lib/components/App/app.js +5 -1
- package/lib/components/App/localeProvider.js +2 -1
- package/lib/components/Breadcrumbs/breadcrumbs.js +3 -3
- package/lib/components/Breadcrumbs/breadcrumbs.module.css +10 -3
- package/lib/components/CartPage/GiftCards/giftCard.js +1 -0
- package/lib/components/CartPage/GiftCards/giftCards.js +2 -0
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +3 -0
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +3 -0
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingForm.js +10 -2
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingMethods.js +2 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadio.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/ShippingMethods/shippingRadios.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/giftCardSection.ee.js +1 -0
- package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +4 -1
- package/lib/components/CartPage/PriceSummary/discountSummary.js +8 -2
- package/lib/components/CartPage/PriceSummary/giftCardSummary.ee.js +4 -1
- package/lib/components/CartPage/PriceSummary/priceSummary.js +10 -3
- package/lib/components/CartPage/PriceSummary/shippingSummary.js +6 -1
- package/lib/components/CartPage/PriceSummary/taxSummary.js +1 -1
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productDetail.spec.js.snap +3 -3
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +2 -2
- package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +1 -1
- package/lib/components/CartPage/ProductListing/__tests__/__snapshots__/errorMessage.spec.js.snap +11 -0
- package/lib/components/CartPage/ProductListing/__tests__/errorMessage.spec.js +20 -0
- package/lib/components/CartPage/ProductListing/__tests__/product.spec.js +1 -0
- package/lib/components/CartPage/ProductListing/errorMessage.js +31 -0
- package/lib/components/CartPage/ProductListing/errorMessage.module.css +9 -0
- package/lib/components/CartPage/ProductListing/product.js +14 -7
- package/lib/components/CartPage/ProductListing/productListing.js +6 -1
- package/lib/components/CartPage/ProductListing/productListing.module.css +6 -0
- package/lib/components/CartPage/ProductListing/quantity.js +3 -0
- package/lib/components/CartPage/cartPage.js +1 -1
- package/lib/components/CategoryList/__tests__/categoryList.spec.js +2 -0
- package/lib/components/CategoryList/categoryList.js +4 -2
- package/lib/components/CategoryList/categoryList.module.css +2 -0
- package/lib/components/CategoryList/categoryTile.js +2 -0
- package/lib/components/CategoryList/categoryTile.module.css +2 -0
- package/lib/components/CategoryList/index.js +2 -0
- package/lib/components/CategoryTree/categoryBranch.js +2 -1
- package/lib/components/CategoryTree/categoryLeaf.js +1 -0
- package/lib/components/CategoryTree/categoryTree.js +3 -3
- package/lib/components/Checkbox/checkbox.module.css +11 -3
- package/lib/components/Checkout/addressForm.js +2 -3
- package/lib/components/CheckoutPage/GuestSignIn/guestSignIn.js +6 -2
- package/lib/components/CheckoutPage/ItemsReview/__fixtures__/cartItems.js +12 -12
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/item.spec.js.snap +2 -2
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
- package/lib/components/CheckoutPage/ItemsReview/item.js +1 -1
- package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +4 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/orderConfirmationPage.spec.js.snap +1 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +6 -0
- package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +10 -4
- package/lib/components/CheckoutPage/OrderSummary/orderSummary.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/braintreeSummary.js +2 -1
- package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +11 -1
- package/lib/components/CheckoutPage/PaymentInformation/editCard.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/editModal.js +1 -1
- package/lib/components/CheckoutPage/PaymentInformation/paymentInformation.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +8 -0
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/guestForm.spec.js +56 -1
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +27 -4
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +96 -9
- package/lib/components/CheckoutPage/ShippingInformation/card.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +14 -3
- package/lib/components/CheckoutPage/ShippingMethod/completedView.js +1 -0
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +2 -1
- package/lib/components/CheckoutPage/ShippingMethod/updateModal.js +1 -0
- package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +32 -0
- package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +2 -0
- package/lib/components/CheckoutPage/checkoutPage.js +26 -4
- package/lib/components/ContactPage/__tests__/__snapshots__/contactLink.spec.js.snap +11 -0
- package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.shimmer.spec.js.snap +113 -0
- package/lib/components/ContactPage/__tests__/__snapshots__/contactPage.spec.js.snap +312 -0
- package/lib/components/ContactPage/__tests__/contactLink.spec.js +58 -0
- package/lib/components/ContactPage/__tests__/contactPage.shimmer.spec.js +20 -0
- package/lib/components/ContactPage/__tests__/contactPage.spec.js +159 -0
- package/lib/components/ContactPage/contactLink.js +21 -0
- package/lib/components/ContactPage/contactPage.js +270 -0
- package/lib/components/ContactPage/contactPage.module.css +81 -0
- package/lib/components/ContactPage/contactPage.shimmer.js +104 -0
- package/lib/components/ContactPage/contactPage.shimmer.module.css +27 -0
- package/lib/components/ContactPage/index.js +2 -0
- package/lib/components/CreateAccount/createAccount.js +5 -0
- package/lib/components/Dialog/dialog.js +18 -4
- package/lib/components/ErrorMessage/errorMessage.js +7 -2
- package/lib/components/ErrorView/errorView.js +4 -2
- package/lib/components/Field/field.module.css +10 -6
- package/lib/components/FilterModal/CurrentFilters/currentFilter.js +7 -3
- package/lib/components/FilterModal/FilterList/__tests__/filterItem.spec.js +34 -5
- package/lib/components/FilterModal/FilterList/filterDefault.js +3 -2
- package/lib/components/FilterModal/FilterList/filterItem.js +27 -7
- package/lib/components/FilterModal/FilterList/filterList.js +6 -1
- package/lib/components/FilterModal/filterBlock.js +9 -4
- package/lib/components/FilterModal/filterFooter.js +1 -0
- package/lib/components/FilterModal/filterModal.js +6 -1
- package/lib/components/FilterModalOpenButton/filterModalOpenButton.js +1 -0
- package/lib/components/FilterSidebar/filterSidebar.js +6 -1
- package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +14 -0
- package/lib/components/Footer/__tests__/footer.spec.js +9 -1
- package/lib/components/Footer/footer.js +14 -7
- package/lib/components/Footer/sampleData.js +8 -3
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +3 -0
- package/lib/components/ForgotPassword/FormSubmissionSuccessful/formSubmissionSuccessful.js +4 -2
- package/lib/components/ForgotPassword/forgotPassword.gql.js +0 -1
- package/lib/components/FormError/formError.js +10 -4
- package/lib/components/Gallery/__tests__/__snapshots__/addToCartButton.spec.js.snap +0 -3
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +1 -0
- package/lib/components/Gallery/addToCartButton.js +24 -20
- package/lib/components/Gallery/item.js +15 -4
- package/lib/components/Gallery/item.module.css +1 -0
- package/lib/components/Head/index.js +2 -1
- package/lib/components/Header/__tests__/header.spec.js +1 -1
- package/lib/components/Header/accountTrigger.js +1 -0
- package/lib/components/Header/cartTrigger.js +4 -1
- package/lib/components/Header/header.js +1 -1
- package/lib/components/Header/navTrigger.js +1 -0
- package/lib/components/Header/searchTrigger.js +1 -0
- package/lib/components/LegacyMiniCart/cartOptions.gql.js +4 -3
- package/lib/components/LegacyMiniCart/editFormFragment.gql.js +7 -3
- package/lib/components/LegacyMiniCart/kebab.js +1 -0
- package/lib/components/LegacyMiniCart/productOptions.js +6 -1
- package/lib/components/LegacyMiniCart/section.js +15 -5
- package/lib/components/Link/link.js +6 -4
- package/lib/components/Mask/mask.js +3 -3
- package/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +1 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +9 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +6 -0
- package/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +2 -0
- package/lib/components/MegaMenu/megaMenu.js +6 -2
- package/lib/components/MegaMenu/megaMenuItem.js +27 -6
- package/lib/components/MegaMenu/megaMenuItem.module.css +0 -5
- package/lib/components/MegaMenu/submenu.js +5 -3
- package/lib/components/MegaMenu/submenuColumn.js +15 -4
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +4 -4
- package/lib/components/MiniCart/ProductList/item.js +5 -2
- package/lib/components/MiniCart/ProductList/productList.js +5 -1
- package/lib/components/MiniCart/__tests__/__snapshots__/miniCart.spec.js.snap +1 -1
- package/lib/components/MiniCart/miniCart.gql.js +3 -2
- package/lib/components/MiniCart/miniCart.js +9 -4
- package/lib/components/MyAccount/ResetPassword/resetPassword.gql.js +1 -1
- package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.shimmer.spec.js.snap +40 -0
- package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +14 -8
- package/lib/components/Newsletter/__tests__/newsletter.shimmer.spec.js +10 -0
- package/lib/components/Newsletter/__tests__/newsletter.spec.js +25 -2
- package/lib/components/Newsletter/newsletter.js +27 -6
- package/lib/components/Newsletter/newsletter.shimmer.js +46 -0
- package/lib/components/Newsletter/newsletter.shimmer.module.css +11 -0
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/shippingMethod.spec.js.snap +3 -0
- package/lib/components/OrderHistoryPage/OrderDetails/billingInformation.js +4 -1
- package/lib/components/OrderHistoryPage/OrderDetails/item.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/items.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/paymentMethod.js +1 -1
- package/lib/components/OrderHistoryPage/OrderDetails/shippingInformation.js +4 -1
- package/lib/components/OrderHistoryPage/OrderDetails/shippingMethod.js +5 -1
- package/lib/components/OrderHistoryPage/orderHistoryPage.js +8 -1
- package/lib/components/Pagination/pagination.js +1 -1
- package/lib/components/Pagination/tile.js +5 -1
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/__snapshots__/boolean.spec.js.snap +20 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/__tests__/boolean.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/boolean.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Boolean/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/__snapshots__/date.spec.js.snap +25 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/__tests__/date.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.js +82 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/date.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Date/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/__snapshots__/dateTime.spec.js.snap +29 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/__tests__/dateTime.spec.js +53 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.js +85 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/dateTime.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/DateTime/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/__snapshots__/multiSelect.spec.js.snap +36 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/__tests__/multiSelect.spec.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.js +99 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Multiselect/multiselect.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/__snapshots__/price.spec.js.snap +23 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/__tests__/price.spec.js +52 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Price/price.module.css +9 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/__snapshots__/select.spec.js.snap +36 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/__tests__/select.spec.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.js +99 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Select/select.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/__snapshots__/text.spec.js.snap +33 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/__tests__/text.spec.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Text/text.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/__snapshots__/textarea.spec.js.snap +33 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/__tests__/textarea.spec.js +74 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.js +88 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/Textarea/textarea.module.css +13 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/__snapshots__/attributeType.spec.js.snap +101 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/__tests__/attributeType.spec.js +173 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/attributeType.js +61 -0
- package/lib/components/ProductFullDetail/CustomAttributes/AttributeType/index.js +1 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +49 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/customAttributes.spec.js +78 -0
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +66 -0
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.module.css +14 -0
- package/lib/components/ProductFullDetail/CustomAttributes/index.js +1 -0
- package/lib/components/ProductFullDetail/__tests__/__snapshots__/productFullDetail.spec.js.snap +39 -0
- package/lib/components/ProductFullDetail/__tests__/productFullDetail.spec.js +3 -1
- package/lib/components/ProductFullDetail/productFullDetail.js +18 -3
- package/lib/components/ProductOptions/__tests__/__snapshots__/option.spec.js.snap +1 -1
- package/lib/components/ProductOptions/__tests__/__snapshots__/options.spec.js.snap +2 -2
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatch.spec.js.snap +44 -2
- package/lib/components/ProductOptions/__tests__/__snapshots__/swatchList.spec.js.snap +22 -1
- package/lib/components/ProductOptions/__tests__/swatch.spec.js +0 -2
- package/lib/components/ProductOptions/option.js +2 -2
- package/lib/components/ProductOptions/swatch.js +7 -5
- package/lib/components/ProductOptions/swatch.module.css +11 -0
- package/lib/components/ProductOptions/tile.js +1 -0
- package/lib/components/ProductSort/__tests__/__snapshots__/sortItem.spec.js.snap +14 -0
- package/lib/components/ProductSort/__tests__/sortItem.spec.js +61 -0
- package/lib/components/ProductSort/productSort.js +84 -40
- package/lib/components/ProductSort/sortItem.js +26 -11
- package/lib/components/RadioGroup/radio.module.css +13 -5
- package/lib/components/RadioGroup/radioGroup.js +2 -1
- package/lib/components/Rating/__tests__/__snapshots__/rating.spec.js.snap +27 -0
- package/lib/components/Rating/__tests__/rating.spec.js +13 -0
- package/lib/components/Rating/index.js +1 -0
- package/lib/components/Rating/rating.js +30 -0
- package/lib/components/Rating/rating.module.css +21 -0
- package/lib/components/RichContent/richContent.module.css +52 -59
- package/lib/components/SearchBar/autocomplete.js +2 -0
- package/lib/components/SearchBar/searchBar.js +1 -1
- package/lib/components/SearchBar/searchField.js +1 -0
- package/lib/components/SearchBar/suggestedCategory.js +1 -1
- package/lib/components/SearchBar/suggestedProduct.js +6 -1
- package/lib/components/SearchPage/__tests__/__snapshots__/searchPage.spec.js.snap +41 -1
- package/lib/components/SearchPage/__tests__/searchPage.spec.js +8 -0
- package/lib/components/SearchPage/searchPage.js +12 -6
- package/lib/components/Shimmer/shimmer.js +11 -2
- package/lib/components/Shimmer/shimmer.module.css +4 -8
- package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +126 -0
- package/lib/components/SignIn/__tests__/signIn.spec.js +11 -0
- package/lib/components/SignIn/signIn.gql.js +8 -4
- package/lib/components/SignIn/signIn.js +24 -4
- package/lib/components/TextArea/textArea.module.css +9 -0
- package/lib/components/TextInput/textInput.module.css +4 -0
- package/lib/components/ToastContainer/toast.js +23 -3
- package/lib/components/ToastContainer/toast.module.css +3 -0
- package/lib/components/Trigger/trigger.js +9 -2
- package/lib/components/Wishlist/AddToListButton/addToListButton.ee.js +1 -0
- package/lib/components/Wishlist/WishlistDialog/CreateWishlistForm/createWishlistForm.js +2 -0
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +1 -0
- package/lib/components/Wishlist/WishlistDialog/wishlistDialog.js +1 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistPage.spec.js.snap +5 -5
- package/lib/components/WishlistPage/createWishlist.ee.js +2 -0
- package/lib/components/WishlistPage/wishlist.js +8 -3
- package/lib/components/WishlistPage/wishlistItem.js +17 -4
- package/lib/components/WishlistPage/wishlistPage.js +5 -3
- package/lib/defaultRoutes.json +6 -0
- package/lib/targets/__tests__/venia-ui-targets.spec.js +2 -0
- package/lib/util/__tests__/shrinkGETQuery.spec.js +1 -1
- package/lib/util/apolloCache.js +2 -2
- package/lib/util/formValidators.js +10 -8
- package/lib/util/toCamelCase.js +3 -0
- package/package.json +17 -14
- package/upward.yml +19 -40
|
@@ -42,7 +42,10 @@ export default props => {
|
|
|
42
42
|
|
|
43
43
|
return cards.value ? (
|
|
44
44
|
<Fragment>
|
|
45
|
-
<span
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
@@ -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
|
+
});
|
|
@@ -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
|
|
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={{
|
|
@@ -175,8 +181,9 @@ export default Product;
|
|
|
175
181
|
|
|
176
182
|
export const REMOVE_ITEM_MUTATION = gql`
|
|
177
183
|
mutation removeItem($cartId: String!, $itemId: ID!) {
|
|
178
|
-
removeItemFromCart(
|
|
179
|
-
|
|
184
|
+
removeItemFromCart(
|
|
185
|
+
input: { cart_id: $cartId, cart_item_uid: $itemId }
|
|
186
|
+
) {
|
|
180
187
|
cart {
|
|
181
188
|
id
|
|
182
189
|
...CartPageFragment
|
|
@@ -199,7 +206,7 @@ export const UPDATE_QUANTITY_MUTATION = gql`
|
|
|
199
206
|
cart_id: $cartId
|
|
200
207
|
cart_items: [{ cart_item_uid: $itemId, quantity: $quantity }]
|
|
201
208
|
}
|
|
202
|
-
)
|
|
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
|
-
<
|
|
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}
|
|
@@ -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>
|
|
@@ -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,
|
|
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:
|
|
95
|
+
id: string.isRequired,
|
|
94
96
|
title: string,
|
|
95
97
|
classes: shape({
|
|
96
98
|
root: string,
|
|
@@ -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
|
-
|
|
38
|
+
uid: string.isRequired,
|
|
38
39
|
include_in_menu: number,
|
|
39
40
|
name: string.isRequired
|
|
40
41
|
}).isRequired,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { func,
|
|
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:
|
|
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
|
-
)
|
|
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
|
-
|
|
21
|
+
configurable_product_option_uid: 179,
|
|
22
22
|
option_label: 'Fashion Color',
|
|
23
|
-
|
|
23
|
+
configurable_product_option_value_uid: 18,
|
|
24
24
|
value_label: 'Peach',
|
|
25
25
|
__typename: 'SelectedConfigurableOption'
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
|
|
28
|
+
configurable_product_option_uid: 182,
|
|
29
29
|
option_label: 'Fashion Size',
|
|
30
|
-
|
|
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
|
-
|
|
52
|
+
configurable_product_option_uid: 179,
|
|
53
53
|
option_label: 'Fashion Color',
|
|
54
|
-
|
|
54
|
+
configurable_product_option_value_uid: 21,
|
|
55
55
|
value_label: 'Rain',
|
|
56
56
|
__typename: 'SelectedConfigurableOption'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
|
|
59
|
+
configurable_product_option_uid: 182,
|
|
60
60
|
option_label: 'Fashion Size',
|
|
61
|
-
|
|
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
|
-
|
|
83
|
+
configurable_product_option_uid: 179,
|
|
84
84
|
option_label: 'Fashion Color',
|
|
85
|
-
|
|
85
|
+
configurable_product_option_value_uid: 20,
|
|
86
86
|
value_label: 'Lilac',
|
|
87
87
|
__typename: 'SelectedConfigurableOption'
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
|
|
90
|
+
configurable_product_option_uid: 182,
|
|
91
91
|
option_label: 'Fashion Size',
|
|
92
|
-
|
|
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 {
|
package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap
CHANGED
|
@@ -66,7 +66,7 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
66
66
|
</dl>
|
|
67
67
|
<span>
|
|
68
68
|
<mock-FormattedMessage
|
|
69
|
-
defaultMessage="Qty :"
|
|
69
|
+
defaultMessage="Qty : {quantity}"
|
|
70
70
|
id="checkoutPage.quantity"
|
|
71
71
|
values={
|
|
72
72
|
Object {
|
|
@@ -130,7 +130,7 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
130
130
|
</dl>
|
|
131
131
|
<span>
|
|
132
132
|
<mock-FormattedMessage
|
|
133
|
-
defaultMessage="Qty :"
|
|
133
|
+
defaultMessage="Qty : {quantity}"
|
|
134
134
|
id="checkoutPage.quantity"
|
|
135
135
|
values={
|
|
136
136
|
Object {
|
|
@@ -194,7 +194,7 @@ https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/produc
|
|
|
194
194
|
</dl>
|
|
195
195
|
<span>
|
|
196
196
|
<mock-FormattedMessage
|
|
197
|
-
defaultMessage="Qty :"
|
|
197
|
+
defaultMessage="Qty : {quantity}"
|
|
198
198
|
id="checkoutPage.quantity"
|
|
199
199
|
values={
|
|
200
200
|
Object {
|