I have the same question as #12219 but I'm interested in how to list all registered blocks in Chrome's Console (JavaScript)?
The documentation list is not up-to-date here: https://codex.wordpress.org/Gutenberg
It'd be easier to keep similar questions in one place, but have you tried the getBlockTypes function from the @wordpress/blocks package?
It uses the data package internally, so this would be equal to running wp.data.select( 'core/blocks' ).getBlockTypes() in the Chrome dev tools. This gives you a list of all registered block types, from both core and plugins.
Please note that for up-to-date Gutenberg documentation I would advise against using the Codex. Try the Gutenberg Handbook instead: https://wordpress.org/gutenberg/handbook/
Awesome. Thank you.
Most helpful comment
It'd be easier to keep similar questions in one place, but have you tried the
getBlockTypesfunction from the@wordpress/blockspackage?It uses the data package internally, so this would be equal to running
wp.data.select( 'core/blocks' ).getBlockTypes()in the Chrome dev tools. This gives you a list of all registered block types, from both core and plugins.Please note that for up-to-date Gutenberg documentation I would advise against using the Codex. Try the Gutenberg Handbook instead: https://wordpress.org/gutenberg/handbook/