All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Props
variation
anddisplayMode
toremove-button
.
- Item prices when
unitMultiplier
was different than1
.
- Moved
ItemContext
to react folder.
- Prop
width
toproduct-list-image
block.
- Rename block
product-quantity
toproduct-quantity-label
.
- New component
ProductQuantity
. - Prop
showListPrice
toPrice
component.
Advanced configuration
section in the documentation.
- Logic concerning the rendering of
product-list-content-desktop
andproduct-list-content-mobile
.
- Improved React typings.
- Improved linter and fixed resulting errors.
- Styles builder updated to major 2.
- Security updates.
- Product list layout.
- Messages now reflect decisions made when implementing errors in shipping-calculator:
your cart
anditem
are nowthe cart
andproduct
.
- Support for CSS customization through the use of CSS handles.
- "Remove" button from availability message.
- Documentation on how to use this component on the blocks-structure level.
- Desktop skeleton appearing on phone screens.
- Skeleton appearance was delayed.
- Component's preview width values, in order to keep the expected behavior on mobile devices.
- Margins in mobile version.
- Font weight.
- New
item
argument to callback functionsonQuantityChange
andonRemove
passed toProductList
component.
interfaces
preview structure.
image
interface name toproduct-list-image
.
- Images with higher resolutions are now displayed if the user device has retina screen.
- Preview skeleton to replace loading spinner.
testId
prop toDropdown
component in order to allow the proper tests.
- Every remove button
id
has item's identifier now.
- Improvements to
id
attribution of some elements.
- "Remove" label to option zero in the quantity selector dropdown.
ids
to Styleguide components and HTML elements.
- Bug that caused the product name to move slightly when the selected quantity changed between 1 and any other number.
- Quantity selector now allows selecting the value zero.
- Bug that caused the component to crash when a negative number was input into the quantity selector.
- When the selling price of an item is zero, the text "FREE" is shown in place of the price and the price per unit is not shown, even when the item quantity is greater than one.
- Icon to replace the product image when its
imageUrl
isnull
.
ListItem
was broken into several smaller components in order to implement theblocks
structure usingflex-layout
.- Moved
README.md
location to comply with IO Docs Builder requirements.
- UI for unavailable items.
- Change events now send the item's
uniqueId
instead of itsindex
.
- Price per unit text is now translated.
- Removed "Cart" title from component.
- Changed UI details to make layout work well and to improve some components' behavior.
- Replaced the implemented currency component in favor of
FormattedCurrency
fromvtex.format-currency
.
- Fix bug that caused the component to break when a huge value was input in the quantity selector.
- Improved UI for all device types.
- Initial version of
ProductList
that implements some minimum functionalities.