diff --git a/packages/block-editor/src/components/inspector-controls-tabs/styles-tab.js b/packages/block-editor/src/components/inspector-controls-tabs/styles-tab.js
index 0643d47d26965f..3a7f625d10de26 100644
--- a/packages/block-editor/src/components/inspector-controls-tabs/styles-tab.js
+++ b/packages/block-editor/src/components/inspector-controls-tabs/styles-tab.js
@@ -41,6 +41,7 @@ const StylesTab = ( { blockName, clientId, hasBlockStyles } ) => {
label={ __( 'Dimensions' ) }
/>
+
>
);
};
diff --git a/packages/block-editor/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js b/packages/block-editor/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js
index 65677506893034..8d09a076e087de 100644
--- a/packages/block-editor/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js
+++ b/packages/block-editor/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js
@@ -38,6 +38,7 @@ export default function useInspectorControlsTabs( blockName ) {
dimensions: dimensionsGroup,
list: listGroup,
position: positionGroup,
+ styles: stylesGroup,
typography: typographyGroup,
} = InspectorControlsGroups;
@@ -55,6 +56,7 @@ export default function useInspectorControlsTabs( blockName ) {
...( useSlotFills( borderGroup.Slot.__unstableName ) || [] ),
...( useSlotFills( colorGroup.Slot.__unstableName ) || [] ),
...( useSlotFills( dimensionsGroup.Slot.__unstableName ) || [] ),
+ ...( useSlotFills( stylesGroup.Slot.__unstableName ) || [] ),
...( useSlotFills( typographyGroup.Slot.__unstableName ) || [] ),
];
diff --git a/packages/block-editor/src/components/inspector-controls/groups.js b/packages/block-editor/src/components/inspector-controls/groups.js
index 46fca564925aa6..e4c8a7e072dc12 100644
--- a/packages/block-editor/src/components/inspector-controls/groups.js
+++ b/packages/block-editor/src/components/inspector-controls/groups.js
@@ -15,6 +15,7 @@ const InspectorControlsTypography = createSlotFill(
'InspectorControlsTypography'
);
const InspectorControlsListView = createSlotFill( 'InspectorControlsListView' );
+const InspectorControlsStyles = createSlotFill( 'InspectorControlsStyles' );
const groups = {
default: InspectorControlsDefault,
@@ -23,6 +24,7 @@ const groups = {
color: InspectorControlsColor,
dimensions: InspectorControlsDimensions,
list: InspectorControlsListView,
+ styles: InspectorControlsStyles,
typography: InspectorControlsTypography,
position: InspectorControlsPosition,
};
From 926f6dbfee8c92e701c4bd220ce93726639b1d88 Mon Sep 17 00:00:00 2001
From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
Date: Thu, 19 Jan 2023 11:23:34 +0800
Subject: [PATCH 09/11] Alias default inspector controls group as settings
---
.../block-editor/src/components/inspector-controls/groups.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/packages/block-editor/src/components/inspector-controls/groups.js b/packages/block-editor/src/components/inspector-controls/groups.js
index e4c8a7e072dc12..f1adbb66252b5f 100644
--- a/packages/block-editor/src/components/inspector-controls/groups.js
+++ b/packages/block-editor/src/components/inspector-controls/groups.js
@@ -24,6 +24,7 @@ const groups = {
color: InspectorControlsColor,
dimensions: InspectorControlsDimensions,
list: InspectorControlsListView,
+ settings: InspectorControlsDefault, // Alias for default.
styles: InspectorControlsStyles,
typography: InspectorControlsTypography,
position: InspectorControlsPosition,
From 0363671e96dcb2159cb90726d8d9649a83db7419 Mon Sep 17 00:00:00 2001
From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
Date: Wed, 25 Jan 2023 16:49:19 +1000
Subject: [PATCH 10/11] Update cover advanced controls after rebase
---
packages/block-library/src/cover/edit/inspector-controls.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/block-library/src/cover/edit/inspector-controls.js b/packages/block-library/src/cover/edit/inspector-controls.js
index 4b8dc3876da5ee..b07f257ebf903d 100644
--- a/packages/block-library/src/cover/edit/inspector-controls.js
+++ b/packages/block-library/src/cover/edit/inspector-controls.js
@@ -335,7 +335,7 @@ export default function CoverInspectorControls( {
/>
-
+
Date: Fri, 27 Jan 2023 12:02:55 +1000
Subject: [PATCH 11/11] Add version to deprecation messages
---
packages/block-editor/src/components/inspector-controls/fill.js | 1 +
.../src/components/inspector-controls/fill.native.js | 1 +
packages/block-editor/src/components/inspector-controls/slot.js | 1 +
.../src/components/inspector-controls/slot.native.js | 1 +
4 files changed, 4 insertions(+)
diff --git a/packages/block-editor/src/components/inspector-controls/fill.js b/packages/block-editor/src/components/inspector-controls/fill.js
index e710a24597ee9a..8b3e3f600bd846 100644
--- a/packages/block-editor/src/components/inspector-controls/fill.js
+++ b/packages/block-editor/src/components/inspector-controls/fill.js
@@ -29,6 +29,7 @@ export default function InspectorControlsFill( {
'`__experimentalGroup` property in `InspectorControlsFill`',
{
since: '6.2',
+ version: '6.4',
alternative: '`group`',
}
);
diff --git a/packages/block-editor/src/components/inspector-controls/fill.native.js b/packages/block-editor/src/components/inspector-controls/fill.native.js
index 418a9229e81841..37c084806da689 100644
--- a/packages/block-editor/src/components/inspector-controls/fill.native.js
+++ b/packages/block-editor/src/components/inspector-controls/fill.native.js
@@ -29,6 +29,7 @@ export default function InspectorControlsFill( {
'`__experimentalGroup` property in `InspectorControlsFill`',
{
since: '6.2',
+ version: '6.4',
alternative: '`group`',
}
);
diff --git a/packages/block-editor/src/components/inspector-controls/slot.js b/packages/block-editor/src/components/inspector-controls/slot.js
index 949742e735d0fb..883421cacec233 100644
--- a/packages/block-editor/src/components/inspector-controls/slot.js
+++ b/packages/block-editor/src/components/inspector-controls/slot.js
@@ -26,6 +26,7 @@ export default function InspectorControlsSlot( {
'`__experimentalGroup` property in `InspectorControlsSlot`',
{
since: '6.2',
+ version: '6.4',
alternative: '`group`',
}
);
diff --git a/packages/block-editor/src/components/inspector-controls/slot.native.js b/packages/block-editor/src/components/inspector-controls/slot.native.js
index ed3913563624d4..4354e08165d914 100644
--- a/packages/block-editor/src/components/inspector-controls/slot.native.js
+++ b/packages/block-editor/src/components/inspector-controls/slot.native.js
@@ -19,6 +19,7 @@ export default function InspectorControlsSlot( {
'`__experimentalGroup` property in `InspectorControlsSlot`',
{
since: '6.2',
+ version: '6.4',
alternative: '`group`',
}
);