mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
editor: update tiptap packages to v2.1.7
This commit is contained in:
committed by
Abdullah Atta
parent
73f3a31614
commit
e42f1a65f5
672
packages/editor/package-lock.json
generated
672
packages/editor/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,40 +5,43 @@
|
|||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.10.0",
|
"@emotion/react": "11.11.1",
|
||||||
"@notesnook/core": "file:../core",
|
"@notesnook/core": "file:../core",
|
||||||
"@notesnook/theme": "file:../theme",
|
"@notesnook/theme": "file:../theme",
|
||||||
"@notesnook/ui": "file:../ui",
|
"@notesnook/ui": "file:../ui",
|
||||||
"@social-embed/lib": "^0.0.2-next.1",
|
"@social-embed/lib": "^0.0.2-next.1",
|
||||||
"@theme-ui/components": ">=0.14.0",
|
"@theme-ui/components": ">=0.14.0",
|
||||||
"@theme-ui/core": ">=0.14.0",
|
"@theme-ui/core": ">=0.14.0",
|
||||||
"@tiptap/core": "2.0.3",
|
"@tiptap/core": "2.1.7",
|
||||||
"@tiptap/extension-character-count": "2.0.3",
|
"@tiptap/extension-character-count": "2.1.7",
|
||||||
"@tiptap/extension-color": "2.0.3",
|
"@tiptap/extension-color": "2.1.7",
|
||||||
"@tiptap/extension-font-family": "2.0.3",
|
"@tiptap/extension-font-family": "2.1.7",
|
||||||
"@tiptap/extension-history": "2.0.3",
|
"@tiptap/extension-history": "2.1.7",
|
||||||
"@tiptap/extension-horizontal-rule": "2.0.3",
|
"@tiptap/extension-horizontal-rule": "2.1.7",
|
||||||
"@tiptap/extension-link": "2.0.3",
|
"@tiptap/extension-link": "2.1.7",
|
||||||
"@tiptap/extension-placeholder": "2.0.3",
|
"@tiptap/extension-list-keymap": "2.1.7",
|
||||||
"@tiptap/extension-subscript": "2.0.3",
|
"@tiptap/extension-placeholder": "2.1.7",
|
||||||
"@tiptap/extension-superscript": "2.0.3",
|
"@tiptap/extension-subscript": "2.1.7",
|
||||||
"@tiptap/extension-table": "2.0.3",
|
"@tiptap/extension-superscript": "2.1.7",
|
||||||
"@tiptap/extension-table-cell": "2.0.3",
|
"@tiptap/extension-table": "2.1.7",
|
||||||
"@tiptap/extension-table-header": "2.0.3",
|
"@tiptap/extension-table-cell": "2.1.7",
|
||||||
"@tiptap/extension-table-row": "2.0.3",
|
"@tiptap/extension-table-header": "2.1.7",
|
||||||
"@tiptap/extension-task-item": "2.0.3",
|
"@tiptap/extension-table-row": "2.1.7",
|
||||||
"@tiptap/extension-task-list": "2.0.3",
|
"@tiptap/extension-task-item": "2.1.7",
|
||||||
"@tiptap/extension-text-align": "2.0.3",
|
"@tiptap/extension-task-list": "2.1.7",
|
||||||
"@tiptap/extension-text-style": "2.0.3",
|
"@tiptap/extension-text-align": "2.1.7",
|
||||||
"@tiptap/extension-underline": "2.0.3",
|
"@tiptap/extension-text-style": "2.1.7",
|
||||||
"@tiptap/pm": "2.0.3",
|
"@tiptap/extension-underline": "2.1.7",
|
||||||
"@tiptap/starter-kit": "2.0.3",
|
"@tiptap/pm": "2.1.7",
|
||||||
|
"@tiptap/starter-kit": "2.1.7",
|
||||||
|
"clipboard-polyfill": "4.0.0",
|
||||||
"detect-indent": "^7.0.0",
|
"detect-indent": "^7.0.0",
|
||||||
"entities": "^4.5.0",
|
"entities": "^4.5.0",
|
||||||
"katex": "0.16.4",
|
"katex": "0.16.4",
|
||||||
"nanoid": "^4.0.1",
|
"nanoid": "^4.0.1",
|
||||||
"prism-themes": "^1.9.0",
|
"prism-themes": "^1.9.0",
|
||||||
"prosemirror-codemark": "^0.4.1",
|
"prosemirror-codemark": "^0.4.2",
|
||||||
|
"prosemirror-view": "^1.31.7",
|
||||||
"re-resizable": "^6.9.9",
|
"re-resizable": "^6.9.9",
|
||||||
"react-colorful": "^5.5.1",
|
"react-colorful": "^5.5.1",
|
||||||
"react-modal": "3.13.1",
|
"react-modal": "3.13.1",
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
diff --git a/node_modules/@tiptap/extension-link/dist/index.cjs b/node_modules/@tiptap/extension-link/dist/index.cjs
|
|
||||||
index 301cdb9..a12e459 100644
|
|
||||||
--- a/node_modules/@tiptap/extension-link/dist/index.cjs
|
|
||||||
+++ b/node_modules/@tiptap/extension-link/dist/index.cjs
|
|
||||||
@@ -110,7 +110,8 @@ function clickHandler(options) {
|
|
||||||
const href = (_b = link === null || link === void 0 ? void 0 : link.href) !== null && _b !== void 0 ? _b : attrs.href;
|
|
||||||
const target = (_c = link === null || link === void 0 ? void 0 : link.target) !== null && _c !== void 0 ? _c : attrs.target;
|
|
||||||
if (link && href) {
|
|
||||||
- window.open(href, target);
|
|
||||||
+ event.preventDefault();
|
|
||||||
+ if (view.editable) window.open(href, target);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
diff --git a/node_modules/@tiptap/extension-link/dist/index.js b/node_modules/@tiptap/extension-link/dist/index.js
|
|
||||||
index e3b8602..46265e6 100644
|
|
||||||
--- a/node_modules/@tiptap/extension-link/dist/index.js
|
|
||||||
+++ b/node_modules/@tiptap/extension-link/dist/index.js
|
|
||||||
@@ -106,7 +106,8 @@ function clickHandler(options) {
|
|
||||||
const href = (_b = link === null || link === void 0 ? void 0 : link.href) !== null && _b !== void 0 ? _b : attrs.href;
|
|
||||||
const target = (_c = link === null || link === void 0 ? void 0 : link.target) !== null && _c !== void 0 ? _c : attrs.target;
|
|
||||||
if (link && href) {
|
|
||||||
- window.open(href, target);
|
|
||||||
+ event.preventDefault();
|
|
||||||
+ if (view.editable) window.open(href, target);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
24
packages/editor/patches/@tiptap+extension-link+2.1.7.patch
Normal file
24
packages/editor/patches/@tiptap+extension-link+2.1.7.patch
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/node_modules/@tiptap/extension-link/dist/index.cjs b/node_modules/@tiptap/extension-link/dist/index.cjs
|
||||||
|
index 6a1103c..cc4a5bc 100644
|
||||||
|
--- a/node_modules/@tiptap/extension-link/dist/index.cjs
|
||||||
|
+++ b/node_modules/@tiptap/extension-link/dist/index.cjs
|
||||||
|
@@ -99,6 +99,7 @@ function clickHandler(options) {
|
||||||
|
const href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : attrs.href;
|
||||||
|
const target = (_b = link === null || link === void 0 ? void 0 : link.target) !== null && _b !== void 0 ? _b : attrs.target;
|
||||||
|
if (link && href) {
|
||||||
|
+ event.preventDefault();
|
||||||
|
if (view.editable) {
|
||||||
|
window.open(href, target);
|
||||||
|
}
|
||||||
|
diff --git a/node_modules/@tiptap/extension-link/dist/index.js b/node_modules/@tiptap/extension-link/dist/index.js
|
||||||
|
index 3a42663..874fe33 100644
|
||||||
|
--- a/node_modules/@tiptap/extension-link/dist/index.js
|
||||||
|
+++ b/node_modules/@tiptap/extension-link/dist/index.js
|
||||||
|
@@ -95,6 +95,7 @@ function clickHandler(options) {
|
||||||
|
const href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : attrs.href;
|
||||||
|
const target = (_b = link === null || link === void 0 ? void 0 : link.target) !== null && _b !== void 0 ? _b : attrs.target;
|
||||||
|
if (link && href) {
|
||||||
|
+ event.preventDefault();
|
||||||
|
if (view.editable) {
|
||||||
|
window.open(href, target);
|
||||||
|
}
|
||||||
@@ -59,7 +59,7 @@ export function createMathView(inline: boolean) {
|
|||||||
return (
|
return (
|
||||||
node: ProseNode,
|
node: ProseNode,
|
||||||
view: EditorView,
|
view: EditorView,
|
||||||
getPos: boolean | (() => number)
|
getPos: boolean | (() => number | undefined)
|
||||||
): MathView => {
|
): MathView => {
|
||||||
/** @todo is this necessary?
|
/** @todo is this necessary?
|
||||||
* Docs says that for any function proprs, the current plugin instance
|
* Docs says that for any function proprs, the current plugin instance
|
||||||
|
|||||||
Reference in New Issue
Block a user