mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat(core): add context menu for navigation and explorer (#13216)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a customizable context menu component for desktop interfaces, enabling right-click menus in various UI elements. * Added context menu support to document list items and navigation tree nodes, allowing users to access additional operations via right-click. * **Improvements** * Enhanced submenu and menu item components to support both dropdown and context menu variants based on context. * Updated click handling in workbench links to prevent unintended actions on non-left mouse button clicks. * **Chores** * Added `@radix-ui/react-context-menu` as a dependency to relevant frontend packages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -320,6 +320,7 @@ __metadata:
|
||||
"@emotion/styled": "npm:^11.14.0"
|
||||
"@radix-ui/react-avatar": "npm:^1.1.2"
|
||||
"@radix-ui/react-collapsible": "npm:^1.1.2"
|
||||
"@radix-ui/react-context-menu": "npm:^2.2.15"
|
||||
"@radix-ui/react-dialog": "npm:^1.1.3"
|
||||
"@radix-ui/react-dropdown-menu": "npm:^2.1.3"
|
||||
"@radix-ui/react-popover": "npm:^1.1.3"
|
||||
@@ -418,6 +419,7 @@ __metadata:
|
||||
"@marsidev/react-turnstile": "npm:^1.1.0"
|
||||
"@preact/signals-core": "npm:^1.8.0"
|
||||
"@radix-ui/react-collapsible": "npm:^1.1.2"
|
||||
"@radix-ui/react-context-menu": "npm:^2.1.15"
|
||||
"@radix-ui/react-dialog": "npm:^1.1.3"
|
||||
"@radix-ui/react-popover": "npm:^1.1.3"
|
||||
"@radix-ui/react-scroll-area": "npm:^1.2.2"
|
||||
@@ -11238,7 +11240,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@radix-ui/react-context-menu@npm:^2.2.3":
|
||||
"@radix-ui/react-context-menu@npm:^2.1.15, @radix-ui/react-context-menu@npm:^2.2.15, @radix-ui/react-context-menu@npm:^2.2.3":
|
||||
version: 2.2.15
|
||||
resolution: "@radix-ui/react-context-menu@npm:2.2.15"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user