-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display Block Information by matching block variations (#27469)
* getBlockTypeWithVariationInfo selector, BlockDescription component and first changes to display the proper info * revert BlockCard component and make the passed attributes top level with depracation * remove BlockDescription * change InserterPreviewPanel to use BlockCard with passing top level properties * create new custom hook for block's display information * use new hook in BlockInspector * revert BlockIcon and augment BlockTitle * Navigation List View update * remove previous selector * refactor BlockSwitcher to function component and use the new hook * change hook * use CreateSelector and declare WPBlockDisplayInformation typedef * revert BlockSwitcher to handle in separate PR * remove getBlockDisplayInformation selector * add `isActive` API for block variations to use for trying to find a match * doc for `isActive` in block variation * jsdoc fix * address review feedback part 1 * fix BlockTitle tests * rename hook to `useBlockDisplayInformation` * fix export * useBlockDisplayInformation README * move login in useSelect * e2e tests * blockTitle extra safeguard that existed before * Update docs Co-authored-by: Greg Ziółkowski <[email protected]> * Update docs Co-authored-by: Greg Ziółkowski <[email protected]> * Update docs Co-authored-by: Greg Ziółkowski <[email protected]> * Update docs Co-authored-by: Greg Ziółkowski <[email protected]> * rewordings * remove experimental status * small refactoring Co-authored-by: Greg Ziółkowski <[email protected]>
- Loading branch information
1 parent
9e48e87
commit 4b14897
Showing
16 changed files
with
345 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.