(containerId: string, blocks: Record<string, BlockState>)
| 142 | * @returns Array of node IDs that are direct children of this container |
| 143 | */ |
| 144 | export function findChildNodes(containerId: string, blocks: Record<string, BlockState>): string[] { |
| 145 | return Object.values(blocks) |
| 146 | .filter((block) => block.data?.parentId === containerId) |
| 147 | .map((block) => block.id) |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Find all descendant nodes, including children, grandchildren, etc. |
no outgoing calls
no test coverage detected