editor: update tiptap to 2.1.11

This commit is contained in:
Abdullah Atta
2023-09-25 10:36:31 +05:00
parent e8b1bb649c
commit bb77385b66
4 changed files with 376 additions and 333 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -12,28 +12,28 @@
"@social-embed/lib": "^0.0.2-next.1",
"@theme-ui/components": ">=0.14.0",
"@theme-ui/core": ">=0.14.0",
"@tiptap/core": "2.1.7",
"@tiptap/extension-character-count": "2.1.7",
"@tiptap/extension-color": "2.1.7",
"@tiptap/extension-font-family": "2.1.7",
"@tiptap/extension-history": "2.1.7",
"@tiptap/extension-horizontal-rule": "2.1.7",
"@tiptap/extension-link": "2.1.7",
"@tiptap/extension-list-keymap": "2.1.7",
"@tiptap/extension-placeholder": "2.1.7",
"@tiptap/extension-subscript": "2.1.7",
"@tiptap/extension-superscript": "2.1.7",
"@tiptap/extension-table": "2.1.7",
"@tiptap/extension-table-cell": "2.1.7",
"@tiptap/extension-table-header": "2.1.7",
"@tiptap/extension-table-row": "2.1.7",
"@tiptap/extension-task-item": "2.1.7",
"@tiptap/extension-task-list": "2.1.7",
"@tiptap/extension-text-align": "2.1.7",
"@tiptap/extension-text-style": "2.1.7",
"@tiptap/extension-underline": "2.1.7",
"@tiptap/pm": "2.1.7",
"@tiptap/starter-kit": "2.1.7",
"@tiptap/core": "2.1.11",
"@tiptap/extension-character-count": "2.1.11",
"@tiptap/extension-color": "2.1.11",
"@tiptap/extension-font-family": "2.1.11",
"@tiptap/extension-history": "2.1.11",
"@tiptap/extension-horizontal-rule": "2.1.11",
"@tiptap/extension-link": "2.1.11",
"@tiptap/extension-list-keymap": "2.1.11",
"@tiptap/extension-placeholder": "2.1.11",
"@tiptap/extension-subscript": "2.1.11",
"@tiptap/extension-superscript": "2.1.11",
"@tiptap/extension-table": "2.1.11",
"@tiptap/extension-table-cell": "2.1.11",
"@tiptap/extension-table-header": "2.1.11",
"@tiptap/extension-table-row": "2.1.11",
"@tiptap/extension-task-item": "2.1.11",
"@tiptap/extension-task-list": "2.1.11",
"@tiptap/extension-text-align": "2.1.11",
"@tiptap/extension-text-style": "2.1.11",
"@tiptap/extension-underline": "2.1.11",
"@tiptap/pm": "2.1.11",
"@tiptap/starter-kit": "2.1.11",
"clipboard-polyfill": "4.0.0",
"detect-indent": "^7.0.0",
"entities": "^4.5.0",
@@ -41,7 +41,7 @@
"nanoid": "^4.0.1",
"prism-themes": "^1.9.0",
"prosemirror-codemark": "^0.4.2",
"prosemirror-view": "^1.31.7",
"prosemirror-view": "^1.31.8",
"re-resizable": "^6.9.9",
"react-colorful": "^5.5.1",
"react-modal": "3.13.1",

View File

@@ -1,8 +1,8 @@
diff --git a/node_modules/@tiptap/extension-link/dist/index.cjs b/node_modules/@tiptap/extension-link/dist/index.cjs
index 6a1103c..cc4a5bc 100644
index ecedb96..6c69974 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) {
@@ -103,6 +103,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) {
@@ -11,10 +11,10 @@ index 6a1103c..cc4a5bc 100644
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
index 06aedaf..9c3543c 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) {
@@ -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) {

View File

@@ -4,6 +4,7 @@ exports[`delete checked items in a nested task list 1`] = `
[
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -40,6 +41,7 @@ exports[`delete checked items in a nested task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -76,6 +78,7 @@ exports[`delete checked items in a nested task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -95,6 +98,7 @@ exports[`delete checked items in a nested task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -143,6 +147,7 @@ exports[`delete checked items in a task list 1`] = `
[
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -173,6 +178,7 @@ exports[`sort checked items to the bottom of the task list 1`] = `
[
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -209,6 +215,7 @@ exports[`sort checked items to the bottom of the task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -245,6 +252,7 @@ exports[`sort checked items to the bottom of the task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [
@@ -264,6 +272,7 @@ exports[`sort checked items to the bottom of the task list 1`] = `
},
{
"attrs": {
"readonly": false,
"title": null,
},
"content": [