diff --git a/packages/ui/api-report.md b/packages/ui/api-report.md index d0128c588..2f7efd0a5 100644 --- a/packages/ui/api-report.md +++ b/packages/ui/api-report.md @@ -1025,10 +1025,10 @@ export function useLanguages(): { export function useLocalStorageState(key: string, defaultValue: T): readonly [T, (setter: ((value: T) => T) | T) => void]; // @public (undocumented) -export function useMenuClipboardEvents(source: TLUiEventSource): { - copy: () => void; - cut: () => void; - paste: (data: ClipboardItem[] | DataTransfer, point?: VecLike) => Promise; +export function useMenuClipboardEvents(): { + copy: (source: TLUiEventSource) => void; + cut: (source: TLUiEventSource) => void; + paste: (data: ClipboardItem[] | DataTransfer, source: TLUiEventSource, point?: VecLike) => Promise; }; // @public (undocumented) diff --git a/packages/ui/src/lib/components/ContextMenu.tsx b/packages/ui/src/lib/components/ContextMenu.tsx index 0b2dd0722..a106198b3 100644 --- a/packages/ui/src/lib/components/ContextMenu.tsx +++ b/packages/ui/src/lib/components/ContextMenu.tsx @@ -5,7 +5,6 @@ import * as React from 'react' import { useValue } from 'signia-react' import { MenuChild } from '../hooks/menuHelpers' import { useBreakpoint } from '../hooks/useBreakpoint' -import { useMenuClipboardEvents } from '../hooks/useClipboardEvents' import { useContextMenuSchema } from '../hooks/useContextMenuSchema' import { useMenuIsOpen } from '../hooks/useMenuIsOpen' import { useReadonly } from '../hooks/useReadonly' @@ -61,7 +60,6 @@ function ContextMenuContent() { const [_, handleSubOpenChange] = useMenuIsOpen('context menu sub') const isReadonly = useReadonly() - const { paste } = useMenuClipboardEvents('context-menu') const breakpoint = useBreakpoint() const container = useContainer() @@ -73,42 +71,6 @@ function ContextMenuContent() { switch (item.type) { case 'custom': { switch (item.id) { - case 'MENU_PASTE': { - return ( - <_ContextMenu.Item key={item.id}> -