Export NodeViewRendererOptions
This commit is contained in:
@@ -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 {
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user