A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: update patch for @tiptap/extension-link
Abdullah Atta2ada289e741c
diff --git a/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.199.patch b/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.199.patchdeleted file mode 100644index ff631f8bb..000000000--- a/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.199.patch+++ /dev/null@@ -1,36 +0,0 @@-diff --git a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.cjs.js b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.cjs.js-index 9255061..5bf92a9 100644---- a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.cjs.js-+++ b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.cjs.js-@@ -103,6 +103,7 @@ function clickHandler(options) {- key: new prosemirrorState.PluginKey('handleClickLink'),- props: {- handleClick: (view, pos, event) => {-+ if (event.button !== 1) return;- var _a;- const attrs = core.getAttributes(view.state, options.type.name);- const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');-diff --git a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.esm.js b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.esm.js-index 9837f4d..a0fc2e0 100644---- a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.esm.js-+++ b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.esm.js-@@ -99,6 +99,7 @@ function clickHandler(options) {- key: new PluginKey('handleClickLink'),- props: {- handleClick: (view, pos, event) => {-+ if (event.button !== 1) return;- var _a;- const attrs = getAttributes(view.state, options.type.name);- const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');-diff --git a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.umd.js b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.umd.js-index 5b617c6..1ffb397 100644---- a/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.umd.js-+++ b/node_modules/@tiptap/extension-link/dist/tiptap-extension-link.umd.js-@@ -101,6 +101,7 @@- key: new prosemirrorState.PluginKey('handleClickLink'),- props: {- handleClick: (view, pos, event) => {-+ if (event.button !== 1) return;- var _a;- const attrs = core.getAttributes(view.state, options.type.name);- const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');diff --git a/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.218.patch b/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.218.patchnew file mode 100644index 000000000..7e2a52458--- /dev/null+++ b/packages/editor/patches/@tiptap+extension-link+2.0.0-beta.218.patch@@ -0,0 +1,39 @@+diff --git a/node_modules/@tiptap/extension-link/dist/index.cjs b/node_modules/@tiptap/extension-link/dist/index.cjs+index c5a8ab7..fa6e342 100644+--- a/node_modules/@tiptap/extension-link/dist/index.cjs++++ b/node_modules/@tiptap/extension-link/dist/index.cjs+@@ -101,6 +101,8 @@ function clickHandler(options) {+ key: new state.PluginKey('handleClickLink'),+ props: {+ handleClick: (view, pos, event) => {++ if (event.button !== 1) return;+++ var _a, _b, _c;+ const attrs = core.getAttributes(view.state, options.type.name);+ const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');+diff --git a/node_modules/@tiptap/extension-link/dist/index.js b/node_modules/@tiptap/extension-link/dist/index.js+index 3dfe757..dd6d3b5 100644+--- a/node_modules/@tiptap/extension-link/dist/index.js++++ b/node_modules/@tiptap/extension-link/dist/index.js+@@ -97,6 +97,8 @@ function clickHandler(options) {+ key: new PluginKey('handleClickLink'),+ props: {+ handleClick: (view, pos, event) => {++ if (event.button !== 1) return;+++ var _a, _b, _c;+ const attrs = getAttributes(view.state, options.type.name);+ const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');+diff --git a/node_modules/@tiptap/extension-link/dist/index.umd.js b/node_modules/@tiptap/extension-link/dist/index.umd.js+index c75d4ed..d1d7f33 100644+--- a/node_modules/@tiptap/extension-link/dist/index.umd.js++++ b/node_modules/@tiptap/extension-link/dist/index.umd.js+@@ -99,6 +99,8 @@+ key: new state.PluginKey('handleClickLink'),+ props: {+ handleClick: (view, pos, event) => {++ if (event.button !== 1) return;+++ var _a, _b, _c;+ const attrs = core.getAttributes(view.state, options.type.name);+ const link = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('a');diff --git a/packages/editor/tsconfig.json b/packages/editor/tsconfig.jsonindex aaa528f38..32cfe86a6 100644--- a/packages/editor/tsconfig.json+++ b/packages/editor/tsconfig.json@@ -3,7 +3,9 @@"compilerOptions": {"lib": ["DOM", "DOM.Iterable", "ESNext"],"jsx": "react-jsx",- "outDir": "./dist/"+ "outDir": "./dist/",+ "experimentalDecorators": true,+ "useDefineForClassFields": false},"include": ["src/"]}