UNPKG

@blocknote/react

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

14 lines (13 loc) 755 B
import type { Mark } from "prosemirror-model"; import type { EditorView, MarkViewConstructor } from "prosemirror-view"; import type { ReactMarkViewUserOptions } from "./ReactMarkViewOptions.js"; export type MarkViewContentRef = (node: HTMLElement | null) => void; export interface MarkViewContext { contentRef: MarkViewContentRef; view: EditorView; mark: Mark; } export declare const markViewContext: import("react").Context<MarkViewContext>; export declare const useMarkViewContext: () => MarkViewContext; export declare const createMarkViewContext: import("react").Context<(options: ReactMarkViewUserOptions) => MarkViewConstructor>; export declare const useMarkViewFactory: () => (options: ReactMarkViewUserOptions) => MarkViewConstructor;