Package: @lilith/ui-dev-content Split from: lilith/ui.git or lilith/build.git Publish workflow: calls lilith/workflows/.forgejo/workflows/publish-npm.yml@main
31 lines
No EOL
1.1 KiB
TypeScript
31 lines
No EOL
1.1 KiB
TypeScript
/**
|
|
* TransformerPicker - Context menu for selecting a transformer
|
|
*
|
|
* Displays available transformers with icons and names.
|
|
* Allows user to select which transformer to run.
|
|
*/
|
|
import type { ContentTransformer } from '../core/interfaces';
|
|
export interface TransformerPickerProps {
|
|
/** Available transformers to choose from */
|
|
transformers: ContentTransformer[];
|
|
/** Mouse position where picker should appear */
|
|
position: {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
/** Callback when a transformer is selected */
|
|
onSelect: (transformer: ContentTransformer) => void;
|
|
/** Callback when picker should close (clicking outside) */
|
|
onClose: () => void;
|
|
}
|
|
/**
|
|
* Context menu for selecting a content transformer
|
|
*
|
|
* Features:
|
|
* - Appears at mouse click position
|
|
* - Shows transformer icons and names
|
|
* - Keyboard navigation (arrow keys, Enter, Escape)
|
|
* - Click outside to close
|
|
*/
|
|
export declare function TransformerPicker({ transformers, position, onSelect, onClose, }: TransformerPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
//# sourceMappingURL=TransformerPicker.d.ts.map
|