@yoopta/editor
Version:
<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311
17 lines • 557 B
TypeScript
import { YooEditor } from '../../editor/types';
type MultiSelectionOptions = {
editor: YooEditor;
};
type SelectionState = {
selectionStarted: boolean;
indexToSelect: null | number;
startedIndexToSelect: null | number;
};
export declare function useMultiSelection({ editor }: MultiSelectionOptions): {
onMouseDown: (e: React.MouseEvent) => void;
onShiftArrowUp: (event: any) => void;
onShiftArrowDown: (event: any) => void;
selectionState: SelectionState;
};
export {};
//# sourceMappingURL=selection.d.ts.map