diff --git a/package-lock.json b/package-lock.json index 6436a65c8..49c4824ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18947,10 +18947,12 @@ "name": "@tiptap/extension-collaboration", "version": "2.0.0-beta.211", "license": "MIT", + "dependencies": { + "y-prosemirror": "1.0.20" + }, "devDependencies": { "@tiptap/core": "^2.0.0-beta.211", - "@tiptap/pm": "^2.0.0-beta.211", - "y-prosemirror": "1.0.20" + "@tiptap/pm": "^2.0.0-beta.211" }, "funding": { "type": "github", @@ -18965,17 +18967,18 @@ "name": "@tiptap/extension-collaboration-cursor", "version": "2.0.0-beta.211", "license": "MIT", - "devDependencies": { - "@tiptap/core": "^2.0.0-beta.211", + "dependencies": { "y-prosemirror": "1.0.20" }, + "devDependencies": { + "@tiptap/core": "^2.0.0-beta.211" + }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "y-prosemirror": "1.0.20" + "@tiptap/core": "^2.0.0-beta.209" } }, "packages/extension-color": { diff --git a/packages/core/src/NodeView.ts b/packages/core/src/NodeView.ts index c104e821f..6d409b215 100644 --- a/packages/core/src/NodeView.ts +++ b/packages/core/src/NodeView.ts @@ -9,12 +9,12 @@ import { isiOS } from './utilities/isiOS' export class NodeView< Component, - Editor extends CoreEditor = CoreEditor, + NodeEditor extends CoreEditor = CoreEditor, Options extends NodeViewRendererOptions = NodeViewRendererOptions, > implements ProseMirrorNodeView { component: Component - editor: Editor + editor: NodeEditor options: Options @@ -30,7 +30,7 @@ export class NodeView< constructor(component: Component, props: NodeViewRendererProps, options?: Partial) { this.component = component - this.editor = props.editor as Editor + this.editor = props.editor as NodeEditor this.options = { stopEvent: null, ignoreMutation: null,