Repository navigation
Inspector Controls: Stabilize the experimental control groups #47105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
df716e0
a9e5464
ae013cd
1721c3e
8867545
3d34025
5478054
4ec133e
926f6db
0363671
a36fbf0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ import { | |
| __experimentalToolsPanelContext as ToolsPanelContext, | ||
| } from '@wordpress/components'; | ||
| import warning from '@wordpress/warning'; | ||
| import deprecated from '@wordpress/deprecated'; | ||
|
|
||
| /** | ||
| * Internal dependencies | ||
|
|
@@ -19,9 +20,22 @@ import useDisplayBlockControls from '../use-display-block-controls'; | |
| import groups from './groups'; | ||
|
|
||
| export default function InspectorControlsFill( { | ||
| __experimentalGroup: group = 'default', | ||
| children, | ||
| group = 'default', | ||
| __experimentalGroup, | ||
| } ) { | ||
| if ( __experimentalGroup ) { | ||
| deprecated( | ||
| '`__experimentalGroup` property in `InspectorControlsFill`', | ||
| { | ||
| since: '6.2', | ||
| version: '6.4', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we follow-up on these deprecations as we've reached the target version.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR is up removing the deprecations and old experimental prop here: #56023 |
||
| alternative: '`group`', | ||
| } | ||
| ); | ||
| group = __experimentalGroup; | ||
| } | ||
|
|
||
| const isDisplayed = useDisplayBlockControls(); | ||
| const Fill = groups[ group ]?.Fill; | ||
| if ( ! Fill ) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.