Skip to content

Containers

Containers = ReadonlyMap<string, RegisteredContainer>

Defined in: packages/editor/src/schema/container-types.ts:74

Map of registered editable containers carried on EditorContext.

Keyed by bare block-object _type (e.g. 'callout', 'table'). Each entry is a rich RegisteredContainer carrying its field plus any positional of registrations.

The map preserves positional structure: a _type declared inside a parent’s of array surfaces as a nested entry on that parent’s of, NOT as a separate top-level entry. Path-driven resolution (see resolveContainerAt) reaches positional entries by walking the tree.

Top-level entries are global fallbacks: when path-driven descent does not find a positional override, the resolver falls back to the top-level entry for the type if one is registered.