components/elements/registry
Source: registry.js:13
Single registration point for all content-block elements. Each element folder exports its full definition { type, region, required, properties, component, adapter } from its index.js (block contract in schema.js, component + props adapter next to it). Adding a new element = add the folder, import it here - rendering (ComponentRenderer), layout regions (SlidePage) and content validation (scripts/validate-content.mjs via elements/schemas.js) all pick it up from the registry.
Other
ELEMENT_REGISTRY
All registered element definitions.
getElementDefinition
The registered definition for a block type, or null for unknown types.
Parameters
type(string) — A block'stypevalue, e.g. "quoteList".
Returns
Object | null
getBlockRegion
The layout region a content block renders in: the block's own region field if set, otherwise its element's default, otherwise "content". SlidePage wraps each region ("storyTitle" | "headline" | "content") in its own container.
Parameters
block(Object) — A content block, e.g.{ type: "headline", text: "..." }.
Returns
string