feat(webui): render Mermaid diagrams with Pele (#6302)

* feat(webui): render Mermaid diagrams with Pele

* fix(webui): reserve diagram replacement capacity

* fix(webui): prebundle lazy diagram worker dependencies

* fix(webui): account diagram capacity by encoded size

* fix(webui): use shared hover hints for diagram actions

* docs(webui): focus diagram guide on usage
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-19 17:16:20 +08:00
1 parent 0f3b47bc3a
commit f57018aa7f
40 files changed
+2335 -1458

No files matched your search

+5 -1
View File
@@ -27,11 +27,13 @@
"@radix-ui/react-tooltip": "^1.1.6",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"css-tree": "3.1.0",
"diff": "^9.0.0",
"i18next": "^26.0.6",
"lucide-react": "^0.469.0",
"micromark-factory-space": "^2.0.1",
"micromark-util-decode-string": "^2.0.1",
"pele": "1.6.0",
"qrcode": "^1.5.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
@@ -43,7 +45,8 @@
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"remend": "1.3.0",
"streamdown": "2.5.0",
"saxes": "6.0.0",
"streamdown": "2.6.0",
"tailwind-merge": "^2.6.0",
"unified": "^11.0.5"
},
@@ -54,6 +57,7 @@
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/css-tree": "^2.3.10",
"@types/node": "^24.0.0",
"@types/mdast": "^4.0.4",
"@types/qrcode": "^1.5.6",