UNPKG

@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

19 lines • 710 B
/// <reference types="react" /> import { YooEditor } from '../../editor/types'; export type RectangeSelectionProps = { editor: YooEditor; root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | false; }; export type RectangeSelectionState = { origin: [number, number]; coords: [number, number]; selection: boolean; }; export type SelectionBoxProps = { origin: RectangeSelectionState['origin']; coords: RectangeSelectionState['coords']; isOpen: boolean; }; declare const SelectionBox: ({ origin, coords, isOpen }: SelectionBoxProps) => import("react/jsx-runtime").JSX.Element | null; export { SelectionBox }; //# sourceMappingURL=SelectionBox.d.ts.map