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

Function applyDisplayMode

packages/extension/utils/css.ts:779–787  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

777 }
778
779 function applyDisplayMode(value: string): string {
780 if (!displayMode || displayMode === 'reference') {
781 return stripFallback(value)
782 }
783 if (displayMode === 'resolved') {
784 return replaceVarFunctions(value, ({ full, fallback }) => fallback ?? full)
785 }
786 return value
787 }
788
789 function processValue(key: string, value: string) {
790 const protectedFragments = createProtectedFragments()

Callers 1

processValueFunction · 0.85

Calls 2

stripFallbackFunction · 0.85
replaceVarFunctionsFunction · 0.85

Tested by

no test coverage detected