( blockIds: string[], blocks: Record<string, BlockState> )
| 106 | * Filters block IDs to only include those eligible for layout |
| 107 | */ |
| 108 | export function filterLayoutEligibleBlockIds( |
| 109 | blockIds: string[], |
| 110 | blocks: Record<string, BlockState> |
| 111 | ): string[] { |
| 112 | return blockIds.filter((id) => { |
| 113 | const block = blocks[id] |
| 114 | if (!block) return false |
| 115 | return !shouldSkipAutoLayout(block) |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Gets metrics for a container block |
no test coverage detected