(category: BlockCategory)
| 68 | |
| 69 | /** All blocks in a given category. */ |
| 70 | export function getBlocksByCategory(category: BlockCategory): BlockConfig[] { |
| 71 | return Object.values(BLOCK_REGISTRY).filter((block) => block.category === category) |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * The canonical "latest-version, toolbar-visible" set of blocks for a |