diff --git a/.changeset/composable-product-details.md b/.changeset/composable-product-details.md deleted file mode 100644 index a3ad0cc9..00000000 --- a/.changeset/composable-product-details.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@godaddy/gd-commerce-storefront': minor ---- - -Add composable product parts. `ProductDetailsRoot` with display parts (`ProductDetailsGallery`, `ProductDetailsTitle`, `ProductDetailsPrice`, `ProductDetailsDescription`, `ProductDetailsBackLink`) and purchase parts (`ProductDetailsPurchase`, `ProductDetailsOptions`, `ProductDetailsOption`, `ProductDetailsPurchaseStatus`, `ProductDetailsAvailability`, `ProductDetailsQuantity`, `ProductDetailsAddToCart`) build custom product layouts. `useProductDetails` reads product state and `useProductDetailsOption` builds custom option controls. Only server-verified SKUs can be added in any layout. `ProductDetails` is now composed from these parts and is visually unchanged. Its markup gains wrapper elements, and the disabled add button now gets its accessible description from a hidden reason element. diff --git a/packages/commerce-storefront/CHANGELOG.md b/packages/commerce-storefront/CHANGELOG.md index 75ed93b7..5c697558 100644 --- a/packages/commerce-storefront/CHANGELOG.md +++ b/packages/commerce-storefront/CHANGELOG.md @@ -1,5 +1,11 @@ # @godaddy/gd-commerce-storefront +## 0.3.0 + +### Minor Changes + +- 03a836e: Add composable product parts. `ProductDetailsRoot` with display parts (`ProductDetailsGallery`, `ProductDetailsTitle`, `ProductDetailsPrice`, `ProductDetailsDescription`, `ProductDetailsBackLink`) and purchase parts (`ProductDetailsPurchase`, `ProductDetailsOptions`, `ProductDetailsOption`, `ProductDetailsPurchaseStatus`, `ProductDetailsAvailability`, `ProductDetailsQuantity`, `ProductDetailsAddToCart`) build custom product layouts. `useProductDetails` reads product state and `useProductDetailsOption` builds custom option controls. Only server-verified SKUs can be added in any layout. `ProductDetails` is now composed from these parts and is visually unchanged. Its markup gains wrapper elements, and the disabled add button now gets its accessible description from a hidden reason element. + ## 0.2.0 ### Minor Changes diff --git a/packages/commerce-storefront/package.json b/packages/commerce-storefront/package.json index e043a479..aa166163 100644 --- a/packages/commerce-storefront/package.json +++ b/packages/commerce-storefront/package.json @@ -1,6 +1,6 @@ { "name": "@godaddy/gd-commerce-storefront", - "version": "0.2.0", + "version": "0.3.0", "description": "Opinionated React storefront templates for GoDaddy Commerce", "type": "module", "license": "MIT",