Native Inserter: Add support for block variants#204
Merged
kean merged 5 commits intotask/insert-blockfrom Oct 29, 2025
Merged
Conversation
dcalhoun
approved these changes
Oct 29, 2025
Member
dcalhoun
left a comment
There was a problem hiding this comment.
Tested well for me. Changes make sense.
Co-authored-by: David Calhoun <github@davidcalhoun.me>
* Add a note about serializeBlocksForNative * Remove now redundant core/missing check * Move ordering to the JS land * Further refactoring * Pass displayName for Text * Localize categories * Extend most used blocks * Add gbk-most-used as a separate section * Add support for disabling blocks * Collapse long sections * Update the order of embeds * Fix linter errors
kean
added a commit
that referenced
this pull request
Oct 29, 2025
* Implement block insertion * Load bridge only if enabled * Refactor the component that handles insertion * Fix inserter not working when selected from tilte * Fix an issue with editor not restoring focus when block inserter is dismissed * Fix order of inserts * Native Inserter: Add support for block variants (#204) * Add support for block variants * Rename BlockType * Capitlize ID * Update src/components/native-block-inserter-button/index.jsx Co-authored-by: David Calhoun <github@davidcalhoun.me> * Native Inserter: Improve ordering of blocks and more (#206) * Add a note about serializeBlocksForNative * Remove now redundant core/missing check * Move ordering to the JS land * Further refactoring * Pass displayName for Text * Localize categories * Extend most used blocks * Add gbk-most-used as a separate section * Add support for disabling blocks * Collapse long sections * Update the order of embeds * Fix linter errors --------- Co-authored-by: David Calhoun <github@davidcalhoun.me> --------- Co-authored-by: David Calhoun <github@davidcalhoun.me>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Fixes CMM-892: Add support for block variants
How?
idfield toBlockType(renamed fromEditorBlockto match Gutenberg terminology)id(as oppose to non-uniquenameto identify the selected block)Testing Instructions
Screenshots or screencast
Known Issues