v3.0.0-alpha.1
Pre-release
Pre-release
3.0.0-alpha.1 (2022-07-01)
Bug Fixes
- Add RedirectShopper (8636ec4)
- Add shipping method name and shipping method to custom function (2a1d9c4)
- Add useMemo and force refresh by accessToken (dda604e)
- Address country lock controller (56e3234)
- Allow a React node as label on
CartLink
component (8f738a2) - Allow uppercase letters in customer email input (ed0418b)
- API request without any includes (67d8a93)
- Automatic place order for Paypal and Checkout.com (7505a70)
- Autoselect first shipping method if it is single. Resolve #234 (c655252)
- Availability (e489656)
- Braintree styles (7534f4c)
- Callback response from
Errors
component (506a5df) - Cannot read property 'map' (fa91d89)
- Check billing and shipping address (ab64ffe)
- Check if there is
do_not_ship
set totrue
and the order doesn't have the shipping address (e329673) - Children props types (0108740)
- Children props types (cb83a0f)
- Clean order when it is placed (ae7dfed)
- Console warning if children are null or boolean (794ddea)
- Currency JSON (3e44e19)
- Diable AddToCart button and show availability without a VariantSelector (044f873)
- Disable
AddToCartButton
(1402783) - Disable AddToCartButton when inventory quantity is zero (197e0a2)
- Disable button when the order is equal to zero (1f01c37)
- Disabled the place order button (6311180)
- Dispatch sku code properly between contexts (3336dd1)
- Duplicate
payment_source
request (07e7c05) - Duplicate customer addresses (92dd652)
- Duplicate error messages (bfc3ee3)
- Edit default success_url and failure_url by configuration object (dd6b278)
- Empty availability (f447f7e)
- Enable styles configuration to AdyenPayment (2de4089)
- Export AdjustmentAmount (7282219)
- Export components (4b2d74c)
- Expose customer email through onBlur function (d117f57)
- Expose deliveryLeadTimeForShipment as prop of ShippingMethodName component (b1c1b12)
- Expose htmlFor prop for ShippingMethodName component (3264f0e)
- Expose lineItem prop to LineItem components (7f1a04b)
- Expose parentRef for custom children function (3c0cb7c)
- Expose prices resource within Price custom children props (40cd364)
- Expose text prop as AvailabilityTemplate children props (5854a53)
- Filter
line_items
byitem_type
to show the correct error (b9fac7d) - Filter addresses by shipping_country_lock if it has a value (ee20600)
- Follow right SKUs sort (7d027d9)
- Force include resources to order query (5506ebd)
- Free label on
ShippingMethodPrice
(0a25fd5) - Get order for the thank you page (936e1fa)
- Get remove coupon response by onClick (fdb326a)
- Hydrate props properly (b544e09)
- import getSdk in example page (0dae0b5)
- Import only countries and states packages (1995905)
- Include
line_items.item
(2251cd0) - Include resources to order (34c0ec8)
- Include resources to order request (872b761)
- Infinite loop without an order (8c3487e)
- Line items counter, resolve #223 (1a473c7)
- List of stock transfers (05940d3)
- Lose order data when reload the thank you page (b8d8389)
- Manage resources to include (019749f)
- Miss types (7945aa4)
- Order does not include resources after updating/creating a coupon (f4f08d2)
- Payment by Braintree (6924744)
- Paypal styling config, add stop propagation for payment buttons, and export new types (dbbcace)
- Place an order with total amount equal to zero (e837502)
- Place order by paypal (da1e242)
- Place order without payment source when order total amount is equal to zero (9ccddb2)
- quantity prop on
LineItemsEmpty
component (393ee2a) - React is not defined (cde123f)
- Read Stripe payment_method attribute if options attribute is not available (3c6c37b)
- Redirect flow with Adyen 3DS-1 (564fa9a)
- Regroup bundle items (7ab48d9)
- Rehydrate payment source among payment components (83b87e2)
- Rehydrate payment source props (52372ac)
- Reload line_items when they are empty (0e47d9f)
- Reload Price component (1a0a92f)
- Reload the order when a coupon is added or removed (bbc43b7)
- Remove
line_item
when adding a new one usingbuyNowMode
(ce84eb2) - Remove gift card from LineItem when it is a discount (dddaf1e)
- Remove glitch on auto-preselecting the shipping method (e08db5e)
- Remove reset shipping address by isBusiness prop (adcba89)
- Remove types minimization (0f82209)
- Remove useMemo (8537c82)
- Rename
SkuContainer
toSkusContainer
(cdf7c97) - Rename and expose
element
prop toattributeValue
prop on the generic field component (cf8cd34) - Reset form properly when isBusiness changes (a90bafd)
- Reset form properly when isBusiness changes (4ad6832)
- Reset form when isBusiness prop changes status (39b0db6)
- Reset form when isBusiness prop changes status (8805914)
- Reset shipping method selector when add or remove a coupon (a1d0b68)
- Reset state selector value (fb4a07d)
- Restore payment source patch to save card details (cc8fd48)
- Revert minimize-js version (cd6add3)
- Save customer address (bbc9078)
- Save customer address book and include order resources (e0ae246)
- Save line_2 value properly (20efbbd)
- Save stripe wallet (869314b)
- Select Adyen customer card (07e4034)
- Select customer card with Adyen (4aed200)
- Set @commercelayer/js-auth to latest version
2.3.0
(b4103fd) - Set default value to
QuantitySelector
(77f2328) - Set default value to
QuantitySelector
(844155d) - Set default value to
QuantitySelectory
component (67e0a10) - Shipping method price label (4a4e5df)
- Show
checkout.com
card after placing an order (71da4e2) - Show
formatted_price_amount_for_shipment
by default (40dfcb3) - Show adyen 3DS with latest version (16f6c72)
- Show card details and paypal gateway (0216ee3)
- Show free items (c4afb40)
- Show GiftCardOrCouponRemoveButton properly (4b4f17e)
- Show label free if the price is equal to zero (7b00ca3)
- Show multiple bundles in a single order (42109a0)
- Show payment method amount correctly (e4f99a2)
- Show right label for amount equal to zero and free over amount (21d6be9)
- Show selected customer card (c6a5a70)
- Show stripe errors (06762d8)
- Sku do not track (f4cb6cf)
- Stock transferts visualization and improve the resources include (1355ec4)
- The
StockTransferField
reads HTML attribute properly (a4a0ab4) - Types (e57b7ae)
- Types issues (e123cd9)
- Update klarna order (355a06a)
- Wrong key for
line_2
attribute (adaf308)
Features
- Add
buyNowMode
andcheckoutUrl
props toAddToCartButton
(4290d8f) - Add
redirectToHostedCart
andhostedCartUrl
props toAddToCartButton
component (6c55fbe) - Add bundles and adjstments (977a429)
- Add components OrderList and OrderListRow (a912ce8)
- Add components OrderList and OrderListRow (35789aa)
- Add CRUD functions for Customer Address (4fb0a1f)
- Add customer address form (1064d7b)
- Add customer payment (b700bae)
- Add data testing attribute to
PaymentMethod
component (34a8586) - Add delete customer address (73d6885)
- Add edit mode to AddressField (8a2a9fb)
- Add handleCallback prop to VariantSelector (3c82190)
- Add infinite scroll to OrderList (30cb1bb)
- Add infinite scroll to OrderList (ebb583f)
- Add Klarna components (8359afc)
- Add klarna_payments to gateways configuration (2c423ea)
- Add new
fetchOrder
prop toOrderContainer
and improve network requests (2a8061b) - Add new classes to OrderList (b758529)
- Add new component AdjustmentAmount (898b57a)
- Add new component CustomerField (40b64be)
- Add new component LineItemsEmpty (df7d9a7)
- Add new custom template for customer address and payment cards (6c72694)
- Add new custom template system to Address component (31ee769)
- Add new markup and props to
LineItemOptions
(83449f1) - Add new prop
placeholderTranslation
toGiftCardOrCouponInputProps
(1858295) - Add new prop isBusiness to BillingAddressForm (26b7160)
- Add new prop placeholder and set placeholder image if src is empty (90ef08c)
- Add new prop showShippingMethodPrice to AvailabilityTemplate and force the include line_items within LineItemsContainer (1a4e3f2)
- Add new prop typeAccepted to LineItemsCount (ae7e7d3)
- Add new sdk to VariantReducer and ItemReducer (e52b8c2)
- Add new SKUs components (ab1abf1)
- Add onChange prop to BaseSelectComponentProps (e280404)
- Add order info to klarna payment (4be9770)
- Add place order after the authorization flow (5b69c7f)
- Add place order callback flow (c1eb7a1)
- Add props for actions column (9415409)
- Add props for actions column (e5474c7)
- Add semantic-release, build by tsc, tsc-alias, and minimize-js (ca58d55)
- Add semantic-release, build by tsc, tsc-alias, and minimize-js (df91a98)
- Add sorti for customer addresses (dacdc9e)
- Allow to use
Sku
context by cart components (042944a) - apply both gift_card and coupon on the same order (ef0a4bc)
- check for out of stock and shipping method available for shipments (09bffa2)
- CheckoutLink is linked to hosted checkout by default with a boolean prop
hostedCheckout
(9ff6f4c) - Create
CartLink
component (af4e50d) - Create checkout.com components (6f22ed2)
- Export CustomerField (4a2fc90)
- Expose address as param of onSelect function (ed11101)
- Expose types and add shipmentId to ShippingMethodRadioButton onChange prop (1b0c6b1)
- Filter customer orders (1cd7855)
- Implement new sdk and improve network requests (ed9bcf7)
- Implement new SDK to Availabilty and Variant components (20d08b9)
- Implement new SDK to CommerceLayer and Prices components (793ea48)
- Implement new SDK to customer addresses (b97e4bc)
- Implement new SDK to Payment components (550c2ea)
- Implement new SDK to Shipments components (3cb532d)
- Implement new SDK to the order reducer (678257f)
- Implement new SDK to the order reducer (2a070b3)
- Import Klarna external JS script (158adee)
- Rebase my account components and add three shaking for some components. Resolve #233 (3d6987f)
- Rename LineItemSkuCode component to LineItemCode (9326063)
- Rewrite OrderContext and OrderReducer, minimize API requests (72cf0a4)
- Set
success_url
andfailure_url
withwindow.location.href
value (f1cb7ce) - Show Klarna widget (677603c)
- Start implementing new SDK (66f23cf)
- Start implementing new SDK (85541d1)
- Update checkout_com_payments with card token (93ba658)
- Update order attributes by
attributes
prop if an order is already loaded (88cac16)
Performance Improvements
autoSelectSingleShippingMethod
accept even a function (a42368d)- Add
autoSelectSingleShippingMethod
prop toShipment
component (91034c9) - Add await before dispatching the callback event (7085bca)
- Add new
GenericField
component (6afd0d8) - Add nullify payment source (db87c74)
- Add value to onSubmit callback as prop and reset form after submitting (75a659f)
- Allow the metadata updating on
OrderContainer
(7f0f8b1) - Avoid duplicate requests from external re-rendering (afd08ef)
- Clean line items on buy now mode (70b942a)
- Clean message if title and detail are equal (df882d6)
- Improve network requests (da6951a)
- Reduce network requests (d969698)
- Remove cjs version (6ea1494)
- Remove cjs version (2257b4c)
- Remove unused reset prop (5749728)
- Set
undefined
quantity whenline_items
have not loaded yet (cfd068e) - Set attribute field to errors handler (bff96e0)
- Update library @ac-dev/state-service (2f084e8)
- Update metadata order by
attributes
prop onOrderContainer
, resolve #214 (bfbd499) - Use
labelFreeOver
when the amount is equal to zero (5aa22d3)
BREAKING CHANGES
- Remove cjs version