- fixed Year-Prefix Bug in MetricParser - added metric_confidence and metric_proof_text to database - added Entity-Check and Annual-Priority to LLM prompt - improved UI: added confidence traffic light and mouse-over proof tooltip - restored missing API endpoints (create, bulk, wiki-override)
20 lines
429 B
JavaScript
20 lines
429 B
JavaScript
import postcss from 'postcss'
|
|
import postcssNested from 'postcss-nested'
|
|
import postcssJs from 'postcss-js'
|
|
|
|
export default function parseObjectStyles(styles) {
|
|
if (!Array.isArray(styles)) {
|
|
return parseObjectStyles([styles])
|
|
}
|
|
|
|
return styles.flatMap((style) => {
|
|
return postcss([
|
|
postcssNested({
|
|
bubble: ['screen'],
|
|
}),
|
|
]).process(style, {
|
|
parser: postcssJs,
|
|
}).root.nodes
|
|
})
|
|
}
|