fix(ui): add katex package to fix build failure on missing CSS import

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-09 00:30:19 +08:00
parent 6d199c9f83
commit 2da2913679
2 changed files with 14 additions and 10 deletions

View File

@@ -37,6 +37,7 @@
"date-fns": "^4.1.0",
"html-to-image": "^1.11.13",
"ignore": "^7.0.5",
"katex": "^0.16.45",
"lucide-react": "^0.563.0",
"monaco-editor": "^0.55.1",
"motion": "^12.34.0",

23
pnpm-lock.yaml generated
View File

@@ -86,6 +86,9 @@ importers:
ignore:
specifier: ^7.0.5
version: 7.0.5
katex:
specifier: ^0.16.45
version: 0.16.45
lucide-react:
specifier: ^0.563.0
version: 0.563.0(react@19.2.4)
@@ -4552,14 +4555,14 @@ packages:
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
engines: {node: '>=4.0'}
katex@0.16.28:
resolution: {integrity: sha512-YHzO7721WbmAL6Ov1uzN/l5mY5WWWhJBSW+jq4tkfZfsxmo1hu6frS0EOswvjBUnWE6NtjEs48SFn5CQESRLZg==}
hasBin: true
katex@0.16.40:
resolution: {integrity: sha512-1DJcK/L05k1Y9Gf7wMcyuqFOL6BiY3vY0CFcAM/LPRN04NALxcl6u7lOWNsp3f/bCHWxigzQl6FbR95XJ4R84Q==}
hasBin: true
katex@0.16.45:
resolution: {integrity: sha512-pQpZbdBu7wCTmQUh7ufPmLr0pFoObnGUoL/yhtwJDgmmQpbkg/0HSVti25Fu4rmd1oCR6NGWe9vqTWuWv3GcNA==}
hasBin: true
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -8866,7 +8869,7 @@ snapshots:
'@streamdown/math@1.0.2(react@19.2.4)':
dependencies:
katex: 0.16.28
katex: 0.16.45
react: 19.2.4
rehype-katex: 7.0.1
remark-math: 6.0.0
@@ -11399,11 +11402,11 @@ snapshots:
object.assign: 4.1.7
object.values: 1.2.1
katex@0.16.28:
katex@0.16.40:
dependencies:
commander: 8.3.0
katex@0.16.40:
katex@0.16.45:
dependencies:
commander: 8.3.0
@@ -11814,7 +11817,7 @@ snapshots:
dagre-d3-es: 7.0.14
dayjs: 1.11.20
dompurify: 3.3.3
katex: 0.16.40
katex: 0.16.45
khroma: 2.1.0
lodash-es: 4.17.23
marked: 16.4.2
@@ -11936,7 +11939,7 @@ snapshots:
dependencies:
'@types/katex': 0.16.8
devlop: 1.1.0
katex: 0.16.28
katex: 0.16.45
micromark-factory-space: 2.0.1
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
@@ -12937,7 +12940,7 @@ snapshots:
'@types/katex': 0.16.8
hast-util-from-html-isomorphic: 2.0.0
hast-util-to-text: 4.0.2
katex: 0.16.28
katex: 0.16.45
unist-util-visit-parents: 6.0.2
vfile: 6.0.3