Function: toPaletteGroups()
toPaletteGroups(
catalog,registry):PaletteGroup[]
Defined in: toPaletteGroups.ts:15
The palette's sections: blocks group under the category each one declares, sections ordered by first appearance in the catalog — the consumer curates the palette by ordering their catalog, so no editorial order lives here. A block declaring no category files under the derived Content/Layout fallback, and those sections sort after every declared one; a fallback title matching a declared one joins that section, so titles stay unique — they are the keys collapse state and section rendering hang off.
Parameters
catalog
Catalog
registry
Registry