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

29 lines • 2.39 kB
export { YooptaPlugin } from './plugins'; export { useBlockData, useYooptaEditor, useYooptaFocused, useBlockSelected, useYooptaReadOnly, useYooptaPluginOptions, } from './contexts/YooptaContext/YooptaContext'; import { YooptaEditor, type YooptaEditorProps, type YooptaOnChangeOptions } from './YooptaEditor'; export { deserializeHTML } from './parsers/deserializeHTML'; export { type EmailTemplateOptions } from './parsers/getEmail'; export { UI } from './UI'; export { useYooptaTools, Tools } from './contexts/YooptaContext/ToolsContext'; export { generateId } from './utils/generateId'; export { HOTKEYS } from './utils/hotkeys'; export { getRootBlockElementType, getRootBlockElement } from './utils/blockElements'; export { findPluginBlockByPath } from './utils/findPluginBlockByPath'; export { findSlateBySelectionPath } from './utils/findSlateBySelectionPath'; export { deserializeTextNodes } from './parsers/deserializeTextNodes'; export { serializeTextNodes, serializeTextNodesIntoMarkdown } from './parsers/serializeTextNodes'; export { createYooptaEditor } from './editor'; export { createYooptaMark, YooptaMarkParams, YooptaMark } from './marks'; export { YooEditor, SlateElement, YooptaBlockData, YooptaBlock, YooptaContentValue, SlateEditor, YooptaPath, YooptaPathIndex, YooptaEventChangePayload, YooptaEventsMap, YooptaEditorEventKeys, } from './editor/types'; export { buildBlockData, buildBlockElement } from './components/Editor/utils'; export { buildBlockElementsStructure } from './utils/blockElements'; export { buildSlateEditor } from './utils/buildSlate'; export { PluginElementRenderProps, PluginEventHandlerOptions, PluginCustomEditorRenderProps, PluginDeserializeParser, PluginSerializeParser, YooptaMarkProps, PluginOptions, } from './plugins/types'; export { Elements } from './editor/elements'; export { Blocks } from './editor/blocks'; export { Paths } from './editor/paths'; export { InsertBlockOperation, DeleteBlockOperation, NormalizePathsBlockOperation, SetSelectionBlockOperation, SplitBlockOperation, SetBlockValueOperation, SetBlockMetaOperation, MergeBlockOperation, MoveBlockOperation, SetSlateOperation, SetEditorValueOperation, YooptaOperation, } from './editor/core/applyTransforms'; import './styles.css'; export default YooptaEditor; export { YooptaEditorProps, YooptaOnChangeOptions }; //# sourceMappingURL=index.d.ts.map