mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
15 lines
638 B
TypeScript
15 lines
638 B
TypeScript
import { NodeViewRenderer, NodeViewRendererOptions } from "@tiptap/core";
|
|
import { Decoration } from "prosemirror-view";
|
|
import { Node as ProseMirrorNode } from "prosemirror-model";
|
|
export interface ReactNodeViewRendererOptions extends NodeViewRendererOptions {
|
|
update: ((props: {
|
|
oldNode: ProseMirrorNode;
|
|
oldDecorations: Decoration[];
|
|
newNode: ProseMirrorNode;
|
|
newDecorations: Decoration[];
|
|
updateProps: () => void;
|
|
}) => boolean) | null;
|
|
as?: string;
|
|
}
|
|
export declare function ReactNodeViewRenderer(component: any, options?: Partial<ReactNodeViewRendererOptions>): NodeViewRenderer;
|