@lofcz/embedpdf-plugin-commands 2.15.0 → 3.0.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +0,0 @@
1
- import { CommandsPlugin, ResolvedCommand } from '../../lib/index.ts';
2
- export declare const useCommandsCapability: () => {
3
- provides: Readonly<import('../../lib/index.ts').CommandsCapability> | null;
4
- isLoading: boolean;
5
- ready: Promise<void>;
6
- };
7
- export declare const useCommandsPlugin: () => {
8
- plugin: CommandsPlugin | null;
9
- isLoading: boolean;
10
- ready: Promise<void>;
11
- };
12
- /**
13
- * Hook to get a reactive command for a specific document
14
- * Automatically updates when command state changes
15
- * @param commandId Command ID
16
- * @param documentId Document ID
17
- * @returns ResolvedCommand or null if not available
18
- */
19
- export declare const useCommand: (commandId: string, documentId: string) => ResolvedCommand | null;
20
- /**
21
- * Hook to execute a command
22
- */
23
- export declare const useCommandExecutor: (documentId: string) => (commandId: string) => void;
@@ -1,4 +0,0 @@
1
- export * from './hooks';
2
- export * from './components';
3
- export * from '../lib/index.ts';
4
- export declare const CommandsPluginPackage: import('@embedpdf/core').WithAutoMount<import('@embedpdf/core').PluginPackage<import('../lib/index.ts').CommandsPlugin, import('../lib/index.ts').CommandsPluginConfig, import('../lib/index.ts').CommandsState, import('../lib/actions').SetDisabledCategoriesAction>>;
@@ -1 +0,0 @@
1
- export * from './keyboard-handler';
@@ -1,10 +0,0 @@
1
- import { CommandsCapability } from '../../lib/types';
2
- /**
3
- * Build a shortcut string from a keyboard event
4
- * @example Ctrl+Shift+A -> "ctrl+shift+a"
5
- */
6
- export declare function buildShortcutString(event: KeyboardEvent): string | null;
7
- /**
8
- * Handle keyboard events and execute commands based on shortcuts
9
- */
10
- export declare function createKeyDownHandler(commands: CommandsCapability): (event: KeyboardEvent) => void;