Repository navigation
Version Packages - #1510
Merged
Merged
Version Packages#1510
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@godaddy/gd-commerce-storefront@0.5.0
Minor Changes
AddToCartButtonnow says why it is disabled through its accessible description: more than the available stock, a quantity that is not a whole number of 1 or more, the cart still loading, the store connecting, the store not reachable, or no store connected.ProductDetailsQuantityshows the quantity message under the field and marks the field invalid. A SKU whose available count is negative (oversold) now counts as sold out, like a count of 0. Default rendering is unchanged for quantities that can be added.CartDrawerRootbuilds a custom cart drawer andCartRootbuilds a cart page, both from the same parts:CartTitle,CartDescription,CartClose,CartNotices,CartItems,CartEmpty,CartSummary,CartSubtotal,CartCheckoutNoteandCartCheckout.CartItemsrenders its child as the item for every line, built fromCartItemRootwithCartItemImage,CartItemName,CartItemOptions,CartItemPrice,CartItemQuantityandCartItemRemove.useCartreads the cart anywhere inside the provider, for example for a custom cart button, anduseCartItemreads one line.CommerceProviderandCommerceStorefronttake an optionalonItemAddedcallback, called after every live or sample add, so a site with a cart page can confirm adds. An add now opens the drawer only when aCartDrawerorCartDrawerRootis mounted. Without one,openstaysfalseandCartButtondoes nothing. Every action still goes through the shared cart queue, and the sample cart never reaches the store.CartDraweris now composed from these parts. Visual change: the packaged drawer now shows the 1px divider between cart lines that it always declared, which the CSS reset hid. Thecommerce-cart-checkout-adjustments-noteclass moved from the note's paragraph to its outer element, so hiding it also removes its spacing. Markup changes: each part has a wrapper<div>, the line list is arole="list"element instead of a<ul>, its lines arerole="listitem"elements, and the drawer panel sits inside a positioning element.Patch Changes
Catalog'stitle,descriptionandshowHeaderprops. They still work. ComposeCatalogRootwith<CatalogHeader title='…' description='…' />instead, or leaveCatalogHeaderout when the page renders its own H1. Catalog loading placeholders now render inside theCatalogProductselement, so they follow the host's grid. The packaged catalog's placeholders now use its loaded spacing from thelgbreakpoint, 32px between cards and 40px above and below, instead of 24px and 32px.