kimi-code/apps/kimi-web/package.json
qer 6a469b3e07
refactor(web): replace hand-written icons with Remix Icon (#1293)
* refactor(web): replace hand-written icons with Remix Icon

Generate a tree-shaken Remix Icon subset at build time via @iconify/utils + @iconify-json/ri, keeping the <Icon>/iconSvg() API.

Add a chat-new icon for the new-chat buttons and reveal the workspace 'new chat in group' button on hover. Unify the message copy and undo buttons (matching hover style and tooltip, drop the undo hover label, align sizes). Switch the mobile switcher kebab to the horizontal dots icon and tweak sidebar search colors. Regenerate the design-system icon catalog.

* fix(web): address PR review feedback

Restore accessible names (aria-label) on the message copy and undo buttons. Keep the workspace add button reachable for keyboard users by revealing it on header focus-within. Update the nix pnpmDeps hash for the newly added icon dependencies.

* fix(web): address follow-up review feedback

Keep the workspace add/more buttons focusable without hover by revealing them via opacity instead of display:none, so keyboard and non-hover users can reach the control.

Drop explicit .ts extensions in icon imports to satisfy oxlint, and read the design-system icon catalog directly from the generated icon data.
2026-07-02 14:20:17 +08:00

40 lines
1 KiB
JSON

{
"name": "@moonshot-ai/kimi-web",
"version": "0.1.2",
"private": true,
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite",
"dev:stub": "node dev/stub-daemon.mjs",
"build": "vite build",
"typecheck": "vue-tsc --noEmit",
"test": "vitest run",
"check:style": "node scripts/check-style.mjs",
"gen:icons": "node scripts/gen-icon-data.mjs"
},
"dependencies": {
"@fontsource-variable/inter": "^5.2.8",
"@fontsource-variable/jetbrains-mono": "^5.2.8",
"@iconify-json/ri": "^1.2.10",
"@iconify/utils": "^3.1.3",
"@iconify/vue": "^5.0.1",
"@xterm/addon-fit": "^0.11.0",
"@xterm/xterm": "^6.0.0",
"katex": "^0.17.0",
"markstream-vue": "^1.0.4",
"mermaid": "^11.15.0",
"shiki": "^4.3.0",
"stream-markdown": "^0.0.16",
"vue": "^3.5.35",
"vue-i18n": "^11.4.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.4",
"typescript": "6.0.2",
"vite": "^6.3.3",
"vitest": "4.1.4",
"vue-tsc": "~3.2.0",
"ws": "^8.18.0"
}
}