Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 8x 71x 781x | const TEMPERATURE_KEYS = [
'COLORTEMP',
'_COLORTEMP',
'CCT',
'_CCT',
'COLORTEMPERATURE',
'_COLORTEMPERATURE',
'COLOR_TEMPERATURE',
'_COLOR_TEMPERATURE',
'TEMPCOLOR',
'_TEMPCOLOR',
'_SEARCH_COLORTEMP',
] as const;
/** Explicit source values only. No inference, validation, or renderer fallback. */
export function declaredColorTemperatures(metadata: Record<string, string>): string[] {
return [
...new Set(TEMPERATURE_KEYS.map((key) => metadata[key]?.trim()).filter((value): value is string => Boolean(value))),
];
}
|