UNPKG

armor-editor

Version:

Advanced rich text editor with premium armor-grade security, real-time collaboration, spell checking, track changes, and framework-agnostic design for React, Vue, Angular, Next.js, Nuxt.js

28 lines (27 loc) 625 B
export interface Command { id: string; title: string; description?: string; category: string; shortcut?: string; action: () => void; } export declare class CommandPalette { private commands; private palette; private input; private results; private editor; private isVisible; constructor(editor: any); private setupKeyListener; private registerDefaultCommands; registerCommand(command: Command): void; private createPalette; private updateResults; private handleKeydown; show(): void; hide(): void; toggle(): void; destroy(): void; }