sugar-high
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -662,16 +662,17 @@ // @ts-check | ||
tokens | ||
.map(([type, value]) => ( | ||
{ | ||
.map(([type, value]) => { | ||
const tokenType = TokenTypes[type] | ||
return { | ||
type: 'element', | ||
tagName: 'span', | ||
children: [{ | ||
type, // token type | ||
value: value, // to encode | ||
type: 'text', // text node | ||
value, // to encode | ||
}], | ||
properties: { | ||
className: `sh__token--${TokenTypes[type]}`, | ||
style: { color: `var(--sh-${TokenTypes[type]})` }, | ||
className: `sh__token--${tokenType}`, | ||
style: { color: `var(--sh-${tokenType})` }, | ||
}, | ||
} | ||
)) | ||
}) | ||
) | ||
@@ -678,0 +679,0 @@ lines.push(createLine(lineTokens)) |
{ | ||
"name": "sugar-high", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"type": "module", | ||
@@ -20,3 +20,3 @@ "types": "./lib/index.d.ts", | ||
"@types/react": "19.0.7", | ||
"codice": "^0.5.0", | ||
"codice": "^1.0.0-beta.0", | ||
"next": "15.1.5", | ||
@@ -29,3 +29,6 @@ "react": "^19.0.0", | ||
}, | ||
"resolutions": { | ||
"sugar-high": "link:./" | ||
}, | ||
"packageManager": "pnpm@8.7.1" | ||
} |
21450
711