Export NodeViewRendererOptions

This commit is contained in:
sibiraj-s
2021-07-17 11:35:28 +05:30
committed by Hans Pagel
parent 122f0821aa
commit 8ed6ac4219
2 changed files with 6 additions and 6 deletions

View File

@@ -4,12 +4,7 @@ import { Node as ProseMirrorNode } from 'prosemirror-model'
import { Editor as CoreEditor } from './Editor' import { Editor as CoreEditor } from './Editor'
import { Node } from './Node' import { Node } from './Node'
import isiOS from './utilities/isiOS' import isiOS from './utilities/isiOS'
import { NodeViewRendererProps } from './types' import { NodeViewRendererProps, NodeViewRendererOptions } from './types'
interface NodeViewRendererOptions {
stopEvent: ((event: Event) => boolean) | null,
update: ((node: ProseMirrorNode, decorations: Decoration[]) => boolean) | null,
}
export class NodeView<Component, Editor extends CoreEditor = CoreEditor> implements ProseMirrorNodeView { export class NodeView<Component, Editor extends CoreEditor = CoreEditor> implements ProseMirrorNodeView {

View File

@@ -145,6 +145,11 @@ export type NodeViewProps = {
deleteNode: () => void, deleteNode: () => void,
} }
export interface NodeViewRendererOptions {
stopEvent: ((event: Event) => boolean) | null,
update: ((node: ProseMirrorNode, decorations: Decoration[]) => boolean) | null,
}
export type NodeViewRendererProps = { export type NodeViewRendererProps = {
editor: Editor, editor: Editor,
node: ProseMirrorNode, node: ProseMirrorNode,