getContainerChildren
getContainerChildren(
containers,node,parent?): {children:Node[];container:RegisteredContainer; } |undefined
Defined in: get-container-children.ts:24
Resolve a container node’s editable child array.
Returns {children, container} for a node registered as a container:
children is the node’s editable child array, and container is the
node’s own container registration. Read container.field.name for the
path segment that reaches children, and thread container back in as
parent when descending into them.
Returns undefined for anything that is not a container: text blocks,
spans, leaves, and unregistered objects. It is node-based and resolves
in one step with no path re-walk, so recursive descent over containers
is linear in nesting depth. The caller seeds the document root from
context.value itself.
Parameters
Section titled “Parameters”containers
Section titled “containers”Containers
Node
parent?
Section titled “parent?”RegisteredContainer
Returns
Section titled “Returns”{ children: Node[]; container: RegisteredContainer; } | undefined