@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
46 lines • 2.27 kB
TypeScript
import { getAnchor } from './getAnchor';
import { getCurrent } from './getCurrent';
import { getEnd } from './getEnd';
import { getFirstPoint } from './getFirstPoint';
import { getFocus } from './getFocus';
import { getLastPoint } from './getLastPoint';
import { getNext } from './getNext';
import { getPrevious } from './getPrevious';
import { getRange } from './getRange';
import { getSelected } from './getSelected';
import { getSlateSelection } from './getSlateSelection';
import { getStart } from './getStart';
import { isBlockSelected } from './isBlockSelected';
import { isCollapsed } from './isCollapsed';
import { isEmpty } from './isEmpty';
import { isExpanded } from './isExpanded';
import { setCurrent } from './setCurrent';
import { setSelected } from './setSelected';
import { setSlateSelection } from './setSlateSelection';
import { toDOMRange } from './toDOMRange';
export declare const Selection: {
getCurrent: typeof getCurrent;
setCurrent: typeof setCurrent;
getSelected: typeof getSelected;
setSelected: typeof setSelected;
isBlockSelected: typeof isBlockSelected;
isEmpty: typeof isEmpty;
getNext: typeof getNext;
getPrevious: typeof getPrevious;
getSlateSelection: typeof getSlateSelection;
setSlateSelection: typeof setSlateSelection;
getRange: typeof getRange;
isExpanded: typeof isExpanded;
isCollapsed: typeof isCollapsed;
getAnchor: typeof getAnchor;
getFocus: typeof getFocus;
getStart: typeof getStart;
getEnd: typeof getEnd;
getFirstPoint: typeof getFirstPoint;
getLastPoint: typeof getLastPoint;
toDOMRange: typeof toDOMRange;
};
export { getAnchor, getCurrent, getEnd, getFirstPoint, getFocus, getLastPoint, getNext, getPrevious, getRange, getSelected, getSlateSelection, isBlockSelected, isCollapsed, isEmpty, isExpanded, setCurrent, setSelected, setSlateSelection, toDOMRange, };
export type { GetCurrentOptions, GetNextBlockOptions, GetPointOptions, GetRangeOptions, GetSelectedOptions, GetSlateSelectionOptions, IsBlockSelectedOptions, SetCurrentOptions, SetSelectedOptions, SetSlateSelectionOptions, } from './types';
export type { ToDOMRangeOptions } from './toDOMRange';
//# sourceMappingURL=index.d.ts.map