(selectedOutputs: string[], blockId: string)
| 178 | * Get selected field names for a specific block from output IDs |
| 179 | */ |
| 180 | export function getSelectedFieldNames(selectedOutputs: string[], blockId: string): string[] { |
| 181 | return selectedOutputs |
| 182 | .filter((outputId) => { |
| 183 | const blockIdForOutput = extractBlockIdFromOutputId(outputId) |
| 184 | return blockIdForOutput === blockId && outputId.includes('_') |
| 185 | }) |
| 186 | .map((outputId) => extractPathFromOutputId(outputId, blockId)) |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Internal helper to traverse an object path without parsing |
nothing calls this directly
no test coverage detected