From cdacf9e1ee45528987093341477b40670a271230 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Tue, 23 Aug 2022 13:57:41 +1000 Subject: [PATCH 01/24] Group block: remove default layout for the group block and use a variation picker in the placeholder. --- packages/block-library/src/group/edit.js | 54 ++++++++++++++++++- .../block-library/src/group/variations.js | 6 +-- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/group/edit.js b/packages/block-library/src/group/edit.js index efe0d0ede9ebc..183f5d7fcabef 100644 --- a/packages/block-library/src/group/edit.js +++ b/packages/block-library/src/group/edit.js @@ -9,10 +9,12 @@ import { InspectorControls, useInnerBlocksProps, useSetting, + __experimentalBlockVariationPicker, store as blockEditorStore, } from '@wordpress/block-editor'; import { SelectControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; +import { store as blocksStore } from '@wordpress/blocks'; const htmlElementMessages = { header: __( @@ -25,7 +27,7 @@ const htmlElementMessages = { "The
element should represent a standalone portion of the document that can't be better represented by another element." ), article: __( - 'The
element should represent a self contained, syndicatable portion of the document.' + 'The
element should represent a self-contained, syndicatable portion of the document.' ), aside: __( "The