Files
deepseek-harness/packages/client/ui-context-menu/package.json
T
zhc 13a8cc11c7 refactor(client): move menu target kinds to their owners
Address review on context-menu target ownership and MenuRow typing.

- `ui-workspace` declares the `workspace` target and `ui-conversation`
  declares `sessionHeader`; `ui-context-menu` no longer depends on
  `@deepseek-ai/dsh-workspace`.
- Remove `buttonTargetKey`. A shared button now toggles only the popup it
  opened, tracked by its instance id, so the menu service needs no
  per-kind identity rule.
- Name the optional-or-undefined props helper in `MenuRow`, document its
  package-internal props, and replace the `MenuDecoration` component with a
  typed render helper.
2026-11-03 17:27:32 +08:00

71 lines
2.0 KiB
JSON

{
"name": "@deepseek-ai/dsh-client-ui-context-menu",
"description": "Typed, plugin-extensible context menus with captured targets and shared Web presentation",
"version": "0.2.2-alpha.3",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
"directory": "packages/client/ui-context-menu"
},
"type": "module",
"main": "lib/index.js",
"types": "lib/types/index.d.ts",
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"default": "./lib/index.js"
},
"./client": {
"types": "./lib/types/client/index.d.ts",
"default": "./lib/client.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json",
"./locale/*.json": "./locale/*.json"
},
"dsh": {
"client": {
"inject": [
"@deepseek-ai/dsh-client-locale",
"@deepseek-ai/dsh-client-ui-layout",
"@deepseek-ai/dsh-client-shortcuts"
],
"platform": "web"
}
},
"scripts": {
"bundle": "tsdown",
"watch": "tsdown --watch"
},
"license": "MIT",
"peerDependencies": {
"@deepseek-ai/cordis": "workspace:~"
},
"devDependencies": {
"@deepseek-ai/schemastery": "workspace:~",
"@deepseek-ai/cordis": "workspace:~",
"@deepseek-ai/dsh-client-locale": "workspace:*",
"@deepseek-ai/dsh-client-store": "workspace:*",
"@deepseek-ai/dsh-client-ui-slots": "workspace:*",
"@deepseek-ai/dsh-client-ui-primitives": "workspace:*",
"@deepseek-ai/dsh-client-ui-renderer": "workspace:*",
"@deepseek-ai/dsh-client-ui-layout": "workspace:*",
"@deepseek-ai/dsh-brand": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@deepseek-ai/dsh-client-test-runtime": "workspace:*",
"@deepseek-ai/dsh-session": "workspace:*",
"@deepseek-ai/dsh-client-ui-dockkit": "workspace:*",
"@deepseek-ai/dsh-client-shortcuts": "workspace:*"
},
"files": [
"locale/*.json",
"lib/index.js",
"lib/client.js",
"lib/types/**/*.d.ts"
]
}