MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / preprocessRawStyle

Function preprocessRawStyle

packages/extension/mcp/tools/code/collect.ts:71–80  ·  view source on GitHub ↗
(style: Record<string, string>)

Source from the content-addressed store, hash-verified

69}
70
71function preprocessRawStyle(style: Record<string, string>): Record<string, string> {
72 const out: Record<string, string> = {}
73 for (const [key, value] of Object.entries(style)) {
74 if (value == null) continue
75 let next = preprocessCssValue(String(value))
76 next = stripFallback(next)
77 out[key] = next
78 }
79 return out
80}
81
82function collectTextSegments(node: TextNode): StyledTextSegment[] | null {
83 try {

Callers 1

collectNodeDataFunction · 0.85

Calls 2

preprocessCssValueFunction · 0.90
stripFallbackFunction · 0.90

Tested by

no test coverage detected