/* Backward-compatible facade over `NativeContextMenuBinder`. * * Keeps the `ContextMenuBinder.bindMenu({...})` / `destroyMenu(selector)` * surface that the rest of the codebase imports. The only signature change * vs the legacy jquery-contextmenu integration is in the `build` callback: * it now receives a native `HTMLElement` + `MouseEvent` instead of a jQuery * wrapper + `JQuery.Event`. Call sites updated alongside. */ import NativeContextMenuBinder, { type ContextMenuArgs, type ContextMenuBuildResponse, type ContextMenuItem, } from './native-context-menu'; import './css/context-menu.css'; export type { ContextMenuArgs, ContextMenuBuildResponse, ContextMenuItem }; export default class ContextMenuBinder { static bindMenu(args: ContextMenuArgs): void { NativeContextMenuBinder.bindMenu(args); } static destroyMenu(selector: string): void { NativeContextMenuBinder.destroyMenu(selector); } }