Skip to main content

Module catalog

Module catalog 

Source
Expand description

The catalog as data: core.catalog.json (embedded by the generator), the catalog ids, token groups, and the merged VIEW of the core plus registered extensions every lookup goes through. Mirrors src/catalog.ts.

Structs§

CatalogView
The core merged with registered extensions. Extension names never shadow a core name (define_extension refuses that), so a plain overlay is exact.

Constants§

A2UI_BASIC_CATALOG_ID
The vendored A2UI basic catalog.
A2UI_VERSION
The A2UI wire version the vendored schemas carry.
CORE_CATALOG_ID
https://ui.exponential.at/catalogs/core/v1
CORE_LITE_CATALOG_ID
The prompt-sized subset: a lite surface is a valid core surface.
SUPPORTED_CATALOG_IDS
What a client advertises as supportedCatalogIds.
UNKNOWN_COMPONENT
The placeholder component painted for anything unmapped.

Statics§

CORE
The parsed core catalog, once per process. VAPP-106: the RUNTIME catalog, without the model-facing descriptions and examples (descriptions()).
CORE_MACROS
The core macro table, once per process.
TOKEN_GROUPS
Token groups → names, flattened (type.size, not nested), in source order.

Functions§

component_def
The component definition in the core (no extensions).
component_names
Component names in source order, optionally the lite subset, never the hidden placeholder.
is_known_token
True when the reference names a token group AND a name in it.
parse_token_ref
parse_token_ref_str over a JSON value.
parse_token_ref_str
$spacing.md → ("spacing", "md"), $type.size.sm → ("type.size", "sm"); None when the string is not a well-formed reference.