From b86c5f33139943f1d27cf0643c06ae1e93109312 Mon Sep 17 00:00:00 2001 From: svenadlung Date: Tue, 28 Mar 2023 15:41:11 +0200 Subject: [PATCH 1/2] fix(extension-collaboration): fix history after late-registering plugins --- package-lock.json | 666 +++++++++--------- packages/core/src/ExtensionManager.ts | 2 +- .../src/collaboration.ts | 45 +- 3 files changed, 371 insertions(+), 342 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3a31b42b7a3..64948d58ea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ }, "demos": { "name": "tiptap-demos", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "dependencies": { "@hocuspocus/provider": "^1.1.3", "d3": "^7.3.0", @@ -19296,158 +19296,158 @@ }, "packages/core": { "name": "@tiptap/core", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-blockquote": { "name": "@tiptap/extension-blockquote", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.1" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-bold": { "name": "@tiptap/extension-bold", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-bubble-menu": { "name": "@tiptap/extension-bubble-menu", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { "tippy.js": "^6.3.7" }, "devDependencies": { - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-bullet-list": { "name": "@tiptap/extension-bullet-list", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-character-count": { "name": "@tiptap/extension-character-count", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-code": { "name": "@tiptap/extension-code", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-code-block": { "name": "@tiptap/extension-code-block", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-code-block-lowlight": { "name": "@tiptap/extension-code-block-lowlight", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-code-block": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-code-block": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/extension-code-block": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-code-block": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-collaboration": { "name": "@tiptap/extension-collaboration", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "y-prosemirror": "1.0.20" }, "funding": { @@ -19455,17 +19455,17 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "y-prosemirror": "1.0.20" } }, "packages/extension-collaboration-cursor": { "name": "@tiptap/extension-collaboration-cursor", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", "y-prosemirror": "1.0.20" }, "funding": { @@ -19473,592 +19473,592 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", + "@tiptap/core": "2.0.0-rc.1", "y-prosemirror": "1.0.20" } }, "packages/extension-color": { "name": "@tiptap/extension-color", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-text-style": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/extension-text-style": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" } }, "packages/extension-document": { "name": "@tiptap/extension-document", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-dropcursor": { "name": "@tiptap/extension-dropcursor", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-floating-menu": { "name": "@tiptap/extension-floating-menu", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { "tippy.js": "^6.3.7" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-focus": { "name": "@tiptap/extension-focus", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-font-family": { "name": "@tiptap/extension-font-family", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-text-style": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/extension-text-style": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" } }, "packages/extension-gapcursor": { "name": "@tiptap/extension-gapcursor", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-hard-break": { "name": "@tiptap/extension-hard-break", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-heading": { "name": "@tiptap/extension-heading", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-highlight": { "name": "@tiptap/extension-highlight", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-history": { "name": "@tiptap/extension-history", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-horizontal-rule": { "name": "@tiptap/extension-horizontal-rule", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-image": { "name": "@tiptap/extension-image", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-italic": { "name": "@tiptap/extension-italic", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-link": { "name": "@tiptap/extension-link", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { "linkifyjs": "^4.1.0" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-list-item": { "name": "@tiptap/extension-list-item", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-mention": { "name": "@tiptap/extension-mention", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", - "@tiptap/suggestion": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", + "@tiptap/suggestion": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209", - "@tiptap/suggestion": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", + "@tiptap/suggestion": "2.0.0-rc.1" } }, "packages/extension-ordered-list": { "name": "@tiptap/extension-ordered-list", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-paragraph": { "name": "@tiptap/extension-paragraph", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-placeholder": { "name": "@tiptap/extension-placeholder", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-strike": { "name": "@tiptap/extension-strike", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-subscript": { "name": "@tiptap/extension-subscript", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-superscript": { "name": "@tiptap/extension-superscript", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-table": { "name": "@tiptap/extension-table", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-table-cell": { "name": "@tiptap/extension-table-cell", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-table-header": { "name": "@tiptap/extension-table-header", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-table-row": { "name": "@tiptap/extension-table-row", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-task-item": { "name": "@tiptap/extension-task-item", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/extension-task-list": { "name": "@tiptap/extension-task-list", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-text": { "name": "@tiptap/extension-text", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-text-align": { "name": "@tiptap/extension-text-align", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-text-style": { "name": "@tiptap/extension-text-style", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-typography": { "name": "@tiptap/extension-typography", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-underline": { "name": "@tiptap/extension-underline", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/extension-youtube": { "name": "@tiptap/extension-youtube", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/html": { "name": "@tiptap/html", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { "zeed-dom": "^0.9.19" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/pm": { "name": "@tiptap/pm", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { "prosemirror-changeset": "^2.2.0", @@ -20085,20 +20085,20 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1" } }, "packages/react": { "name": "@tiptap/react", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220" + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "@types/react": "^18.0.1", "@types/react-dom": "^18.0.0", "react": "^18.0.0", @@ -20109,36 +20109,36 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0" } }, "packages/starter-kit": { "name": "@tiptap/starter-kit", - "version": "2.0.0-beta.220", - "license": "MIT", - "dependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-blockquote": "^2.0.0-beta.220", - "@tiptap/extension-bold": "^2.0.0-beta.220", - "@tiptap/extension-bullet-list": "^2.0.0-beta.220", - "@tiptap/extension-code": "^2.0.0-beta.220", - "@tiptap/extension-code-block": "^2.0.0-beta.220", - "@tiptap/extension-document": "^2.0.0-beta.220", - "@tiptap/extension-dropcursor": "^2.0.0-beta.220", - "@tiptap/extension-gapcursor": "^2.0.0-beta.220", - "@tiptap/extension-hard-break": "^2.0.0-beta.220", - "@tiptap/extension-heading": "^2.0.0-beta.220", - "@tiptap/extension-history": "^2.0.0-beta.220", - "@tiptap/extension-horizontal-rule": "^2.0.0-beta.220", - "@tiptap/extension-italic": "^2.0.0-beta.220", - "@tiptap/extension-list-item": "^2.0.0-beta.220", - "@tiptap/extension-ordered-list": "^2.0.0-beta.220", - "@tiptap/extension-paragraph": "^2.0.0-beta.220", - "@tiptap/extension-strike": "^2.0.0-beta.220", - "@tiptap/extension-text": "^2.0.0-beta.220" + "version": "2.0.0-rc.1", + "license": "MIT", + "dependencies": { + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-blockquote": "2.0.0-rc.1", + "@tiptap/extension-bold": "2.0.0-rc.1", + "@tiptap/extension-bullet-list": "2.0.0-rc.1", + "@tiptap/extension-code": "2.0.0-rc.1", + "@tiptap/extension-code-block": "2.0.0-rc.1", + "@tiptap/extension-document": "2.0.0-rc.1", + "@tiptap/extension-dropcursor": "2.0.0-rc.1", + "@tiptap/extension-gapcursor": "2.0.0-rc.1", + "@tiptap/extension-hard-break": "2.0.0-rc.1", + "@tiptap/extension-heading": "2.0.0-rc.1", + "@tiptap/extension-history": "2.0.0-rc.1", + "@tiptap/extension-horizontal-rule": "2.0.0-rc.1", + "@tiptap/extension-italic": "2.0.0-rc.1", + "@tiptap/extension-list-item": "2.0.0-rc.1", + "@tiptap/extension-ordered-list": "2.0.0-rc.1", + "@tiptap/extension-paragraph": "2.0.0-rc.1", + "@tiptap/extension-strike": "2.0.0-rc.1", + "@tiptap/extension-text": "2.0.0-rc.1" }, "funding": { "type": "github", @@ -20147,32 +20147,32 @@ }, "packages/suggestion": { "name": "@tiptap/suggestion", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "packages/vue-2": { "name": "@tiptap/vue-2", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220" + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^2.6.0" }, "funding": { @@ -20180,8 +20180,8 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^2.6.0" } }, @@ -20192,15 +20192,15 @@ }, "packages/vue-3": { "name": "@tiptap/vue-3", - "version": "2.0.0-beta.220", + "version": "2.0.0-rc.1", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220" + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1" }, "devDependencies": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^3.0.0" }, "funding": { @@ -20208,8 +20208,8 @@ "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.0.0-beta.209", - "@tiptap/pm": "^2.0.0-beta.209", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^3.0.0" } } @@ -24476,308 +24476,308 @@ "@tiptap/core": { "version": "file:packages/core", "requires": { - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-blockquote": { "version": "file:packages/extension-blockquote", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-bold": { "version": "file:packages/extension-bold", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-bubble-menu": { "version": "file:packages/extension-bubble-menu", "requires": { - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/pm": "2.0.0-rc.1", "tippy.js": "^6.3.7" } }, "@tiptap/extension-bullet-list": { "version": "file:packages/extension-bullet-list", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-character-count": { "version": "file:packages/extension-character-count", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-code": { "version": "file:packages/extension-code", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-code-block": { "version": "file:packages/extension-code-block", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-code-block-lowlight": { "version": "file:packages/extension-code-block-lowlight", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-code-block": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-code-block": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-collaboration": { "version": "file:packages/extension-collaboration", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "y-prosemirror": "1.0.20" } }, "@tiptap/extension-collaboration-cursor": { "version": "file:packages/extension-collaboration-cursor", "requires": { - "@tiptap/core": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", "y-prosemirror": "1.0.20" } }, "@tiptap/extension-color": { "version": "file:packages/extension-color", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-text-style": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" } }, "@tiptap/extension-document": { "version": "file:packages/extension-document", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-dropcursor": { "version": "file:packages/extension-dropcursor", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-floating-menu": { "version": "file:packages/extension-floating-menu", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "tippy.js": "^6.3.7" } }, "@tiptap/extension-focus": { "version": "file:packages/extension-focus", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-font-family": { "version": "file:packages/extension-font-family", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-text-style": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-text-style": "2.0.0-rc.1" } }, "@tiptap/extension-gapcursor": { "version": "file:packages/extension-gapcursor", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-hard-break": { "version": "file:packages/extension-hard-break", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-heading": { "version": "file:packages/extension-heading", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-highlight": { "version": "file:packages/extension-highlight", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-history": { "version": "file:packages/extension-history", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-horizontal-rule": { "version": "file:packages/extension-horizontal-rule", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-image": { "version": "file:packages/extension-image", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-italic": { "version": "file:packages/extension-italic", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-link": { "version": "file:packages/extension-link", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "linkifyjs": "^4.1.0" } }, "@tiptap/extension-list-item": { "version": "file:packages/extension-list-item", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-mention": { "version": "file:packages/extension-mention", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", - "@tiptap/suggestion": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", + "@tiptap/suggestion": "2.0.0-rc.1" } }, "@tiptap/extension-ordered-list": { "version": "file:packages/extension-ordered-list", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-paragraph": { "version": "file:packages/extension-paragraph", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-placeholder": { "version": "file:packages/extension-placeholder", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-strike": { "version": "file:packages/extension-strike", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-subscript": { "version": "file:packages/extension-subscript", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-superscript": { "version": "file:packages/extension-superscript", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-table": { "version": "file:packages/extension-table", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-table-cell": { "version": "file:packages/extension-table-cell", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-table-header": { "version": "file:packages/extension-table-header", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-table-row": { "version": "file:packages/extension-table-row", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-task-item": { "version": "file:packages/extension-task-item", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/extension-task-list": { "version": "file:packages/extension-task-list", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-text": { "version": "file:packages/extension-text", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-text-align": { "version": "file:packages/extension-text-align", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-text-style": { "version": "file:packages/extension-text-style", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-typography": { "version": "file:packages/extension-typography", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-underline": { "version": "file:packages/extension-underline", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/extension-youtube": { "version": "file:packages/extension-youtube", "requires": { - "@tiptap/core": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1" } }, "@tiptap/html": { "version": "file:packages/html", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "zeed-dom": "^0.9.19" } }, @@ -24807,10 +24807,10 @@ "@tiptap/react": { "version": "file:packages/react", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "@types/react": "^18.0.1", "@types/react-dom": "^18.0.0", "react": "^18.0.0", @@ -24820,41 +24820,41 @@ "@tiptap/starter-kit": { "version": "file:packages/starter-kit", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-blockquote": "^2.0.0-beta.220", - "@tiptap/extension-bold": "^2.0.0-beta.220", - "@tiptap/extension-bullet-list": "^2.0.0-beta.220", - "@tiptap/extension-code": "^2.0.0-beta.220", - "@tiptap/extension-code-block": "^2.0.0-beta.220", - "@tiptap/extension-document": "^2.0.0-beta.220", - "@tiptap/extension-dropcursor": "^2.0.0-beta.220", - "@tiptap/extension-gapcursor": "^2.0.0-beta.220", - "@tiptap/extension-hard-break": "^2.0.0-beta.220", - "@tiptap/extension-heading": "^2.0.0-beta.220", - "@tiptap/extension-history": "^2.0.0-beta.220", - "@tiptap/extension-horizontal-rule": "^2.0.0-beta.220", - "@tiptap/extension-italic": "^2.0.0-beta.220", - "@tiptap/extension-list-item": "^2.0.0-beta.220", - "@tiptap/extension-ordered-list": "^2.0.0-beta.220", - "@tiptap/extension-paragraph": "^2.0.0-beta.220", - "@tiptap/extension-strike": "^2.0.0-beta.220", - "@tiptap/extension-text": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-blockquote": "2.0.0-rc.1", + "@tiptap/extension-bold": "2.0.0-rc.1", + "@tiptap/extension-bullet-list": "2.0.0-rc.1", + "@tiptap/extension-code": "2.0.0-rc.1", + "@tiptap/extension-code-block": "2.0.0-rc.1", + "@tiptap/extension-document": "2.0.0-rc.1", + "@tiptap/extension-dropcursor": "2.0.0-rc.1", + "@tiptap/extension-gapcursor": "2.0.0-rc.1", + "@tiptap/extension-hard-break": "2.0.0-rc.1", + "@tiptap/extension-heading": "2.0.0-rc.1", + "@tiptap/extension-history": "2.0.0-rc.1", + "@tiptap/extension-horizontal-rule": "2.0.0-rc.1", + "@tiptap/extension-italic": "2.0.0-rc.1", + "@tiptap/extension-list-item": "2.0.0-rc.1", + "@tiptap/extension-ordered-list": "2.0.0-rc.1", + "@tiptap/extension-paragraph": "2.0.0-rc.1", + "@tiptap/extension-strike": "2.0.0-rc.1", + "@tiptap/extension-text": "2.0.0-rc.1" } }, "@tiptap/suggestion": { "version": "file:packages/suggestion", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220" + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1" } }, "@tiptap/vue-2": { "version": "file:packages/vue-2", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^2.6.0" }, "dependencies": { @@ -24867,10 +24867,10 @@ "@tiptap/vue-3": { "version": "file:packages/vue-3", "requires": { - "@tiptap/core": "^2.0.0-beta.220", - "@tiptap/extension-bubble-menu": "^2.0.0-beta.220", - "@tiptap/extension-floating-menu": "^2.0.0-beta.220", - "@tiptap/pm": "^2.0.0-beta.220", + "@tiptap/core": "2.0.0-rc.1", + "@tiptap/extension-bubble-menu": "2.0.0-rc.1", + "@tiptap/extension-floating-menu": "2.0.0-rc.1", + "@tiptap/pm": "2.0.0-rc.1", "vue": "^3.0.0" } }, diff --git a/packages/core/src/ExtensionManager.ts b/packages/core/src/ExtensionManager.ts index 8f45a914851..862981a1441 100644 --- a/packages/core/src/ExtensionManager.ts +++ b/packages/core/src/ExtensionManager.ts @@ -207,7 +207,7 @@ export class ExtensionManager { const { editor } = this // With ProseMirror, first plugins within an array are executed first. - // In tiptap, we provide the ability to override plugins, + // In Tiptap, we provide the ability to override plugins, // so it feels more natural to run plugins at the end of an array first. // That’s why we have to reverse the `extensions` array and sort again // based on the `priority` option. diff --git a/packages/extension-collaboration/src/collaboration.ts b/packages/extension-collaboration/src/collaboration.ts index 1d33d26f699..c1c64411b22 100644 --- a/packages/extension-collaboration/src/collaboration.ts +++ b/packages/extension-collaboration/src/collaboration.ts @@ -1,4 +1,5 @@ import { Extension } from '@tiptap/core' +import { EditorView } from '@tiptap/pm/view' import { redo, undo, @@ -37,7 +38,7 @@ export interface CollaborationOptions { */ fragment: any, /** - * Fired when the content from Yjs is initially rendered to tiptap. + * Fired when the content from Yjs is initially rendered to Tiptap. */ onFirstRender?: () => void, } @@ -109,13 +110,41 @@ export const Collaboration = Extension.create({ ? this.options.fragment : this.options.document.getXmlFragment(this.options.field) - return [ - ySyncPlugin(fragment, { - onFirstRender: () => { - this.options.onFirstRender?.apply(this) + const yUndoPluginInstance = yUndoPlugin() + const originalUndoPluginView = yUndoPluginInstance.spec.view + + yUndoPluginInstance.spec.view = (view: EditorView) => { + const { undoManager } = yUndoPluginKey.getState(view.state) + + if (undoManager.restore) { + undoManager.restore() + // eslint-disable-next-line + undoManager.restore = () => {} + } + + const viewRet = originalUndoPluginView(view) + + return { + destroy: () => { + const hasUndoManSelf = undoManager.trackedOrigins.has(undoManager) + // eslint-disable-next-line + const observers = undoManager._observers + + undoManager.restore = () => { + if (hasUndoManSelf) { + undoManager.trackedOrigins.add(undoManager) + } + + undoManager.doc.on('afterTransaction', undoManager.afterTransactionHandler) + // eslint-disable-next-line + undoManager._observers = observers + } + + viewRet.destroy() }, - }), - yUndoPlugin(), - ] + } + } + + return [ySyncPlugin(fragment), yUndoPluginInstance] }, }) From fb8dc342c140da04d779f3660f2f6a62df8796bd Mon Sep 17 00:00:00 2001 From: svenadlung Date: Tue, 28 Mar 2023 15:43:05 +0200 Subject: [PATCH 2/2] fix(extension-collaboration): fix history after late-registering plugins --- packages/extension-collaboration/src/collaboration.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/extension-collaboration/src/collaboration.ts b/packages/extension-collaboration/src/collaboration.ts index c1c64411b22..8758ead6597 100644 --- a/packages/extension-collaboration/src/collaboration.ts +++ b/packages/extension-collaboration/src/collaboration.ts @@ -110,6 +110,8 @@ export const Collaboration = Extension.create({ ? this.options.fragment : this.options.document.getXmlFragment(this.options.field) + // Quick fix until there is an official implementation (thanks to @hamflx). + // See https://github.com/yjs/y-prosemirror/issues/114 and https://github.com/yjs/y-prosemirror/issues/102 const yUndoPluginInstance = yUndoPlugin() const originalUndoPluginView = yUndoPluginInstance.spec.view