From 76262ae82f04b607d8bb0e291bc7c14ad366c028 Mon Sep 17 00:00:00 2001 From: Gustavo Rosolem Date: Fri, 26 Apr 2019 15:23:54 -0300 Subject: [PATCH] Add `product-summary.shelf` --- CHANGELOG.md | 2 ++ store/blocks.json | 15 +++++++++++++++ store/interfaces.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84907bf3..1e34e67b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Rename `product-summary.unstable--flex` to `product-summary.shelf` ## [2.18.0] - 2019-04-25 diff --git a/store/blocks.json b/store/blocks.json index 2026ca1b..d6c7e3fd 100644 --- a/store/blocks.json +++ b/store/blocks.json @@ -1,4 +1,19 @@ { + "product-summary.shelf": { + "children": [ + "product-summary-image", + "product-summary-name", + "product-summary-attachment-list", + "product-summary-space", + "product-summary-column#1" + ] + }, + "product-summary-column#1": { + "children": [ + "product-summary-price", + "product-summary-buy-button" + ] + }, "product-summary.unstable--flex": { "children": [ "product-summary-image", diff --git a/store/interfaces.json b/store/interfaces.json index aa1b4b64..abfb9fcb 100644 --- a/store/interfaces.json +++ b/store/interfaces.json @@ -3,6 +3,34 @@ "component": "ProductSummaryLegacy", "allowed": ["add-to-list-btn#product-summary"] }, + "product-summary.shelf": { + "allowed": [ + "product-summary-column", + "product-summary-attachment-list", + "product-summary-buy-button", + "product-summary-description", + "product-summary-image", + "product-summary-name", + "product-summary-price", + "product-summary-space", + "product-rating-inline" + ], + "component": "ProductSummaryCustom", + "composition": "children" + }, + "product-summary-column": { + "allowed": [ + "product-summary-attachment-list", + "product-summary-buy-button", + "product-summary-description", + "product-summary-image", + "product-summary-name", + "product-summary-price", + "product-summary-space" + ], + "component": "Column", + "composition": "children" + }, "product-summary.unstable--flex": { "allowed": [ "unstable--product-summary-column",