From 0da439007a44422e1d5fb2481468ccc7ee35364a Mon Sep 17 00:00:00 2001
From: bdbch <6538827+bdbch@users.noreply.github.com>
Date: Sat, 27 Jul 2024 12:46:39 +0200
Subject: [PATCH 1/8] Shared rollup config (#5403)
* add one shared rollup config
* rename to baseConfig
---
package-lock.json | 474 +++++++++---------
package.json | 1 +
packages/core/rollup.config.js | 60 +--
.../extension-blockquote/rollup.config.js | 60 +--
packages/extension-bold/rollup.config.js | 60 +--
.../extension-bubble-menu/rollup.config.js | 60 +--
.../extension-bullet-list/rollup.config.js | 60 +--
.../rollup.config.js | 60 +--
.../rollup.config.js | 60 +--
.../extension-code-block/rollup.config.js | 60 +--
packages/extension-code/rollup.config.js | 60 +--
.../rollup.config.js | 60 +--
.../extension-collaboration/rollup.config.js | 60 +--
packages/extension-color/rollup.config.js | 60 +--
packages/extension-document/rollup.config.js | 60 +--
.../extension-dropcursor/rollup.config.js | 60 +--
.../extension-floating-menu/rollup.config.js | 60 +--
packages/extension-focus/rollup.config.js | 60 +--
.../extension-font-family/rollup.config.js | 60 +--
packages/extension-gapcursor/rollup.config.js | 60 +--
.../extension-hard-break/rollup.config.js | 60 +--
packages/extension-heading/rollup.config.js | 60 +--
packages/extension-highlight/rollup.config.js | 60 +--
packages/extension-history/rollup.config.js | 60 +--
.../rollup.config.js | 60 +--
packages/extension-image/rollup.config.js | 60 +--
packages/extension-italic/rollup.config.js | 60 +--
packages/extension-link/rollup.config.js | 60 +--
packages/extension-list-item/rollup.config.js | 60 +--
.../extension-list-keymap/rollup.config.js | 60 +--
packages/extension-mention/rollup.config.js | 60 +--
.../extension-ordered-list/rollup.config.js | 60 +--
packages/extension-paragraph/rollup.config.js | 60 +--
.../extension-placeholder/rollup.config.js | 60 +--
packages/extension-strike/rollup.config.js | 60 +--
packages/extension-subscript/rollup.config.js | 60 +--
.../extension-superscript/rollup.config.js | 60 +--
.../extension-table-cell/rollup.config.js | 60 +--
.../extension-table-header/rollup.config.js | 60 +--
packages/extension-table-row/rollup.config.js | 60 +--
packages/extension-table/rollup.config.js | 60 +--
packages/extension-task-item/rollup.config.js | 60 +--
packages/extension-task-list/rollup.config.js | 60 +--
.../extension-text-align/rollup.config.js | 60 +--
.../extension-text-style/rollup.config.js | 60 +--
packages/extension-text/rollup.config.js | 60 +--
.../extension-typography/rollup.config.js | 60 +--
packages/extension-underline/rollup.config.js | 60 +--
packages/extension-youtube/rollup.config.js | 60 +--
packages/html/rollup.config.js | 60 +--
packages/react/rollup.config.js | 60 +--
packages/starter-kit/rollup.config.js | 60 +--
packages/suggestion/rollup.config.js | 60 +--
packages/vue-2/rollup.config.js | 60 +--
packages/vue-3/rollup.config.js | 60 +--
shared/rollup-config/index.js | 62 +++
shared/rollup-config/package.json | 6 +
57 files changed, 415 insertions(+), 3308 deletions(-)
create mode 100644 shared/rollup-config/index.js
create mode 100644 shared/rollup-config/package.json
diff --git a/package-lock.json b/package-lock.json
index 913362adf30..108a13a46d5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,6 +7,7 @@
"name": "tiptap",
"workspaces": [
"demos",
+ "shared/*",
"packages/*"
],
"devDependencies": {
@@ -5088,6 +5089,10 @@
"vite": "^4.0.0"
}
},
+ "node_modules/@tiptap-shared/rollup-config": {
+ "resolved": "shared/rollup-config",
+ "link": true
+ },
"node_modules/@tiptap/core": {
"resolved": "packages/core",
"link": true
@@ -17897,159 +17902,159 @@
},
"packages/core": {
"name": "@tiptap/core",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-blockquote": {
"name": "@tiptap/extension-blockquote",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-bold": {
"name": "@tiptap/extension-bold",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-bubble-menu": {
"name": "@tiptap/extension-bubble-menu",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
"tippy.js": "^6.3.7"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-bullet-list": {
"name": "@tiptap/extension-bullet-list",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-character-count": {
"name": "@tiptap/extension-character-count",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-code": {
"name": "@tiptap/extension-code",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-code-block": {
"name": "@tiptap/extension-code-block",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-code-block-lowlight": {
"name": "@tiptap/extension-code-block-lowlight",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-code-block": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-code-block": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-code-block": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-code-block": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-collaboration": {
"name": "@tiptap/extension-collaboration",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"y-prosemirror": "^1.2.9"
},
"funding": {
@@ -18057,17 +18062,17 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"y-prosemirror": "^1.2.6"
}
},
"packages/extension-collaboration-cursor": {
"name": "@tiptap/extension-collaboration-cursor",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
"y-prosemirror": "^1.2.9"
},
"funding": {
@@ -18075,607 +18080,607 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
"y-prosemirror": "^1.2.6"
}
},
"packages/extension-color": {
"name": "@tiptap/extension-color",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-text-style": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-text-style": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-text-style": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-text-style": "^2.5.7"
}
},
"packages/extension-document": {
"name": "@tiptap/extension-document",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-dropcursor": {
"name": "@tiptap/extension-dropcursor",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-floating-menu": {
"name": "@tiptap/extension-floating-menu",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
"tippy.js": "^6.3.7"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-focus": {
"name": "@tiptap/extension-focus",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-font-family": {
"name": "@tiptap/extension-font-family",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-text-style": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-text-style": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-text-style": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-text-style": "^2.5.7"
}
},
"packages/extension-gapcursor": {
"name": "@tiptap/extension-gapcursor",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-hard-break": {
"name": "@tiptap/extension-hard-break",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-heading": {
"name": "@tiptap/extension-heading",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-highlight": {
"name": "@tiptap/extension-highlight",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-history": {
"name": "@tiptap/extension-history",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-horizontal-rule": {
"name": "@tiptap/extension-horizontal-rule",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-image": {
"name": "@tiptap/extension-image",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-italic": {
"name": "@tiptap/extension-italic",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-link": {
"name": "@tiptap/extension-link",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
"linkifyjs": "^4.1.0"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-list-item": {
"name": "@tiptap/extension-list-item",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-list-keymap": {
"name": "@tiptap/extension-list-keymap",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-mention": {
"name": "@tiptap/extension-mention",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
- "@tiptap/suggestion": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
+ "@tiptap/suggestion": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
- "@tiptap/suggestion": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
+ "@tiptap/suggestion": "^2.5.7"
}
},
"packages/extension-ordered-list": {
"name": "@tiptap/extension-ordered-list",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-paragraph": {
"name": "@tiptap/extension-paragraph",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-placeholder": {
"name": "@tiptap/extension-placeholder",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-strike": {
"name": "@tiptap/extension-strike",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-subscript": {
"name": "@tiptap/extension-subscript",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-superscript": {
"name": "@tiptap/extension-superscript",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-table": {
"name": "@tiptap/extension-table",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-table-cell": {
"name": "@tiptap/extension-table-cell",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-table-header": {
"name": "@tiptap/extension-table-header",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-table-row": {
"name": "@tiptap/extension-table-row",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-task-item": {
"name": "@tiptap/extension-task-item",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/extension-task-list": {
"name": "@tiptap/extension-task-list",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-text": {
"name": "@tiptap/extension-text",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-text-align": {
"name": "@tiptap/extension-text-align",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-text-style": {
"name": "@tiptap/extension-text-style",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-typography": {
"name": "@tiptap/extension-typography",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-underline": {
"name": "@tiptap/extension-underline",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/extension-youtube": {
"name": "@tiptap/extension-youtube",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5"
+ "@tiptap/core": "^2.5.7"
}
},
"packages/html": {
"name": "@tiptap/html",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
"zeed-dom": "^0.10.9"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/pm": {
"name": "@tiptap/pm",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
"prosemirror-changeset": "^2.2.1",
@@ -18704,17 +18709,17 @@
},
"packages/react": {
"name": "@tiptap/react",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
- "@tiptap/extension-bubble-menu": "^2.5.5",
- "@tiptap/extension-floating-menu": "^2.5.5",
+ "@tiptap/extension-bubble-menu": "^2.5.7",
+ "@tiptap/extension-floating-menu": "^2.5.7",
"@types/use-sync-external-store": "^0.0.6",
"use-sync-external-store": "^1.2.2"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"react": "^18.0.0",
@@ -18725,36 +18730,36 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
}
},
"packages/starter-kit": {
"name": "@tiptap/starter-kit",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/extension-blockquote": "^2.5.5",
- "@tiptap/extension-bold": "^2.5.5",
- "@tiptap/extension-bullet-list": "^2.5.5",
- "@tiptap/extension-code": "^2.5.5",
- "@tiptap/extension-code-block": "^2.5.5",
- "@tiptap/extension-document": "^2.5.5",
- "@tiptap/extension-dropcursor": "^2.5.5",
- "@tiptap/extension-gapcursor": "^2.5.5",
- "@tiptap/extension-hard-break": "^2.5.5",
- "@tiptap/extension-heading": "^2.5.5",
- "@tiptap/extension-history": "^2.5.5",
- "@tiptap/extension-horizontal-rule": "^2.5.5",
- "@tiptap/extension-italic": "^2.5.5",
- "@tiptap/extension-list-item": "^2.5.5",
- "@tiptap/extension-ordered-list": "^2.5.5",
- "@tiptap/extension-paragraph": "^2.5.5",
- "@tiptap/extension-strike": "^2.5.5",
- "@tiptap/extension-text": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/extension-blockquote": "^2.5.7",
+ "@tiptap/extension-bold": "^2.5.7",
+ "@tiptap/extension-bullet-list": "^2.5.7",
+ "@tiptap/extension-code": "^2.5.7",
+ "@tiptap/extension-code-block": "^2.5.7",
+ "@tiptap/extension-document": "^2.5.7",
+ "@tiptap/extension-dropcursor": "^2.5.7",
+ "@tiptap/extension-gapcursor": "^2.5.7",
+ "@tiptap/extension-hard-break": "^2.5.7",
+ "@tiptap/extension-heading": "^2.5.7",
+ "@tiptap/extension-history": "^2.5.7",
+ "@tiptap/extension-horizontal-rule": "^2.5.7",
+ "@tiptap/extension-italic": "^2.5.7",
+ "@tiptap/extension-list-item": "^2.5.7",
+ "@tiptap/extension-ordered-list": "^2.5.7",
+ "@tiptap/extension-paragraph": "^2.5.7",
+ "@tiptap/extension-strike": "^2.5.7",
+ "@tiptap/extension-text": "^2.5.7"
},
"funding": {
"type": "github",
@@ -18763,33 +18768,33 @@
},
"packages/suggestion": {
"name": "@tiptap/suggestion",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5"
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7"
}
},
"packages/vue-2": {
"name": "@tiptap/vue-2",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
- "@tiptap/extension-bubble-menu": "^2.5.5",
- "@tiptap/extension-floating-menu": "^2.5.5",
+ "@tiptap/extension-bubble-menu": "^2.5.7",
+ "@tiptap/extension-floating-menu": "^2.5.7",
"vue-ts-types": "^1.6.0"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"vue": "^2.6.0"
},
"funding": {
@@ -18797,8 +18802,8 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"vue": "^2.6.0"
}
},
@@ -18829,15 +18834,15 @@
},
"packages/vue-3": {
"name": "@tiptap/vue-3",
- "version": "2.5.5",
+ "version": "2.5.7",
"license": "MIT",
"dependencies": {
- "@tiptap/extension-bubble-menu": "^2.5.5",
- "@tiptap/extension-floating-menu": "^2.5.5"
+ "@tiptap/extension-bubble-menu": "^2.5.7",
+ "@tiptap/extension-floating-menu": "^2.5.7"
},
"devDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"vue": "^3.0.0"
},
"funding": {
@@ -18845,10 +18850,11 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
- "@tiptap/core": "^2.5.5",
- "@tiptap/pm": "^2.5.5",
+ "@tiptap/core": "^2.5.7",
+ "@tiptap/pm": "^2.5.7",
"vue": "^3.0.0"
}
- }
+ },
+ "shared/rollup-config": {}
}
}
diff --git a/package.json b/package.json
index 1da6621cf88..cf21df115f4 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
"packageManager": "npm@10.8.1",
"workspaces": [
"demos",
+ "shared/*",
"packages/*"
],
"browserslist": [
diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/core/rollup.config.js
+++ b/packages/core/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-blockquote/rollup.config.js b/packages/extension-blockquote/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-blockquote/rollup.config.js
+++ b/packages/extension-blockquote/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-bold/rollup.config.js b/packages/extension-bold/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-bold/rollup.config.js
+++ b/packages/extension-bold/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-bubble-menu/rollup.config.js b/packages/extension-bubble-menu/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-bubble-menu/rollup.config.js
+++ b/packages/extension-bubble-menu/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-bullet-list/rollup.config.js b/packages/extension-bullet-list/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-bullet-list/rollup.config.js
+++ b/packages/extension-bullet-list/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-character-count/rollup.config.js b/packages/extension-character-count/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-character-count/rollup.config.js
+++ b/packages/extension-character-count/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-code-block-lowlight/rollup.config.js b/packages/extension-code-block-lowlight/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-code-block-lowlight/rollup.config.js
+++ b/packages/extension-code-block-lowlight/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-code-block/rollup.config.js b/packages/extension-code-block/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-code-block/rollup.config.js
+++ b/packages/extension-code-block/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-code/rollup.config.js b/packages/extension-code/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-code/rollup.config.js
+++ b/packages/extension-code/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-collaboration-cursor/rollup.config.js b/packages/extension-collaboration-cursor/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-collaboration-cursor/rollup.config.js
+++ b/packages/extension-collaboration-cursor/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-collaboration/rollup.config.js b/packages/extension-collaboration/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-collaboration/rollup.config.js
+++ b/packages/extension-collaboration/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-color/rollup.config.js b/packages/extension-color/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-color/rollup.config.js
+++ b/packages/extension-color/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-document/rollup.config.js b/packages/extension-document/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-document/rollup.config.js
+++ b/packages/extension-document/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-dropcursor/rollup.config.js b/packages/extension-dropcursor/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-dropcursor/rollup.config.js
+++ b/packages/extension-dropcursor/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-floating-menu/rollup.config.js b/packages/extension-floating-menu/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-floating-menu/rollup.config.js
+++ b/packages/extension-floating-menu/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-focus/rollup.config.js b/packages/extension-focus/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-focus/rollup.config.js
+++ b/packages/extension-focus/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-font-family/rollup.config.js b/packages/extension-font-family/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-font-family/rollup.config.js
+++ b/packages/extension-font-family/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-gapcursor/rollup.config.js b/packages/extension-gapcursor/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-gapcursor/rollup.config.js
+++ b/packages/extension-gapcursor/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-hard-break/rollup.config.js b/packages/extension-hard-break/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-hard-break/rollup.config.js
+++ b/packages/extension-hard-break/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-heading/rollup.config.js b/packages/extension-heading/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-heading/rollup.config.js
+++ b/packages/extension-heading/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-highlight/rollup.config.js b/packages/extension-highlight/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-highlight/rollup.config.js
+++ b/packages/extension-highlight/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-history/rollup.config.js b/packages/extension-history/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-history/rollup.config.js
+++ b/packages/extension-history/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-horizontal-rule/rollup.config.js b/packages/extension-horizontal-rule/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-horizontal-rule/rollup.config.js
+++ b/packages/extension-horizontal-rule/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-image/rollup.config.js b/packages/extension-image/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-image/rollup.config.js
+++ b/packages/extension-image/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-italic/rollup.config.js b/packages/extension-italic/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-italic/rollup.config.js
+++ b/packages/extension-italic/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-link/rollup.config.js b/packages/extension-link/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-link/rollup.config.js
+++ b/packages/extension-link/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-list-item/rollup.config.js b/packages/extension-list-item/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-list-item/rollup.config.js
+++ b/packages/extension-list-item/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-list-keymap/rollup.config.js b/packages/extension-list-keymap/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-list-keymap/rollup.config.js
+++ b/packages/extension-list-keymap/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-mention/rollup.config.js b/packages/extension-mention/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-mention/rollup.config.js
+++ b/packages/extension-mention/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-ordered-list/rollup.config.js b/packages/extension-ordered-list/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-ordered-list/rollup.config.js
+++ b/packages/extension-ordered-list/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-paragraph/rollup.config.js b/packages/extension-paragraph/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-paragraph/rollup.config.js
+++ b/packages/extension-paragraph/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-placeholder/rollup.config.js b/packages/extension-placeholder/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-placeholder/rollup.config.js
+++ b/packages/extension-placeholder/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-strike/rollup.config.js b/packages/extension-strike/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-strike/rollup.config.js
+++ b/packages/extension-strike/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-subscript/rollup.config.js b/packages/extension-subscript/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-subscript/rollup.config.js
+++ b/packages/extension-subscript/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-superscript/rollup.config.js b/packages/extension-superscript/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-superscript/rollup.config.js
+++ b/packages/extension-superscript/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-table-cell/rollup.config.js b/packages/extension-table-cell/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-table-cell/rollup.config.js
+++ b/packages/extension-table-cell/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-table-header/rollup.config.js b/packages/extension-table-header/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-table-header/rollup.config.js
+++ b/packages/extension-table-header/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-table-row/rollup.config.js b/packages/extension-table-row/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-table-row/rollup.config.js
+++ b/packages/extension-table-row/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-table/rollup.config.js b/packages/extension-table/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-table/rollup.config.js
+++ b/packages/extension-table/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-task-item/rollup.config.js b/packages/extension-task-item/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-task-item/rollup.config.js
+++ b/packages/extension-task-item/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-task-list/rollup.config.js b/packages/extension-task-list/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-task-list/rollup.config.js
+++ b/packages/extension-task-list/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-text-align/rollup.config.js b/packages/extension-text-align/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-text-align/rollup.config.js
+++ b/packages/extension-text-align/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-text-style/rollup.config.js b/packages/extension-text-style/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-text-style/rollup.config.js
+++ b/packages/extension-text-style/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-text/rollup.config.js b/packages/extension-text/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-text/rollup.config.js
+++ b/packages/extension-text/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-typography/rollup.config.js b/packages/extension-typography/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-typography/rollup.config.js
+++ b/packages/extension-typography/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-underline/rollup.config.js b/packages/extension-underline/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-underline/rollup.config.js
+++ b/packages/extension-underline/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/extension-youtube/rollup.config.js b/packages/extension-youtube/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/extension-youtube/rollup.config.js
+++ b/packages/extension-youtube/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/html/rollup.config.js b/packages/html/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/html/rollup.config.js
+++ b/packages/html/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/react/rollup.config.js
+++ b/packages/react/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/starter-kit/rollup.config.js b/packages/starter-kit/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/starter-kit/rollup.config.js
+++ b/packages/starter-kit/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/suggestion/rollup.config.js b/packages/suggestion/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/suggestion/rollup.config.js
+++ b/packages/suggestion/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/vue-2/rollup.config.js b/packages/vue-2/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/vue-2/rollup.config.js
+++ b/packages/vue-2/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/packages/vue-3/rollup.config.js b/packages/vue-3/rollup.config.js
index 3394eaf7c1e..cb8e994031b 100644
--- a/packages/vue-3/rollup.config.js
+++ b/packages/vue-3/rollup.config.js
@@ -1,61 +1,5 @@
-import babel from '@rollup/plugin-babel'
-import commonjs from '@rollup/plugin-commonjs'
-import resolve from '@rollup/plugin-node-resolve'
-import autoExternal from 'rollup-plugin-auto-external'
-import sourcemaps from 'rollup-plugin-sourcemaps'
-import typescript from 'rollup-plugin-typescript2'
+import { baseConfig } from '@tiptap-shared/rollup-config'
import pkg from './package.json' assert { type: 'json' }
-export default {
- external: [/@tiptap\/pm\/.*/],
- input: 'src/index.ts',
- output: [
- {
- name: pkg.name,
- file: pkg.umd,
- format: 'umd',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.main,
- format: 'cjs',
- interop: 'compat',
- sourcemap: true,
- exports: 'named',
- },
- {
- name: pkg.name,
- file: pkg.module,
- format: 'es',
- sourcemap: true,
- exports: 'named',
- },
- ],
- plugins: [
- autoExternal({
- packagePath: './package.json',
- }),
- sourcemaps(),
- resolve(),
- commonjs(),
- babel({
- babelHelpers: 'bundled',
- exclude: '../../node_modules/**',
- }),
- typescript({
- tsconfig: '../../tsconfig.json',
- tsconfigOverride: {
- compilerOptions: {
- declaration: true,
- paths: {
- '@tiptap/*': ['packages/*/src'],
- },
- },
- include: null,
- },
- }),
- ],
-}
+export default baseConfig({ input: 'src/index.ts', pkg })
diff --git a/shared/rollup-config/index.js b/shared/rollup-config/index.js
new file mode 100644
index 00000000000..5a5703510fc
--- /dev/null
+++ b/shared/rollup-config/index.js
@@ -0,0 +1,62 @@
+import babel from '@rollup/plugin-babel'
+import commonjs from '@rollup/plugin-commonjs'
+import resolve from '@rollup/plugin-node-resolve'
+import autoExternal from 'rollup-plugin-auto-external'
+import sourcemaps from 'rollup-plugin-sourcemaps'
+import typescript from 'rollup-plugin-typescript2'
+
+export const baseConfig = ({
+ input = 'src/index.ts',
+ pkg,
+}) => ({
+ external: [/@tiptap\/pm\/.*/],
+ input,
+ output: [
+ {
+ name: pkg.name,
+ file: pkg.umd,
+ format: 'umd',
+ sourcemap: true,
+ exports: 'named',
+ },
+ {
+ name: pkg.name,
+ file: pkg.main,
+ format: 'cjs',
+ interop: 'compat',
+ sourcemap: true,
+ exports: 'named',
+ },
+ {
+ name: pkg.name,
+ file: pkg.module,
+ format: 'es',
+ sourcemap: true,
+ exports: 'named',
+ },
+ ],
+ plugins: [
+ autoExternal({
+ packagePath: './package.json',
+ }),
+ sourcemaps(),
+ resolve(),
+ commonjs(),
+ babel({
+ babelHelpers: 'bundled',
+ exclude: '../../node_modules/**',
+ }),
+ typescript({
+ tsconfig: '../../tsconfig.json',
+ tsconfigOverride: {
+ compilerOptions: {
+ declaration: true,
+ paths: {
+ '@tiptap/*': ['packages/*/src'],
+ },
+ },
+ include: null,
+ },
+ }),
+ ],
+})
diff --git a/shared/rollup-config/package.json b/shared/rollup-config/package.json
new file mode 100644
index 00000000000..f6b1ee2197b
--- /dev/null
+++ b/shared/rollup-config/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "@tiptap-shared/rollup-config",
+ "private": true,
+ "main": "index.js",
+ "type": "module"
+}
From bde3328ba244507e83a98bd5fde162ac464c2451 Mon Sep 17 00:00:00 2001
From: svenadlung
- That’s a boring paragraph followed by a fenced code block:
+ That's a boring paragraph followed by a fenced code block:
- That’s a boring paragraph followed by a fenced code block:
+ That's a boring paragraph followed by a fenced code block:
for (var i=1; i <= 20; i++)
{
diff --git a/demos/src/Examples/CodeBlockLanguage/Vue/index.vue b/demos/src/Examples/CodeBlockLanguage/Vue/index.vue
index 6a30301cd01..4846fb30c68 100644
--- a/demos/src/Examples/CodeBlockLanguage/Vue/index.vue
+++ b/demos/src/Examples/CodeBlockLanguage/Vue/index.vue
@@ -21,20 +21,19 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
-// load all highlight.js languages
-import { lowlight } from 'lowlight'
+// load all languages with "all" or common languages with "common"
+import { all, createLowlight } from 'lowlight'
import CodeBlockComponent from './CodeBlockComponent.vue'
-lowlight.registerLanguage('html', html)
-lowlight.registerLanguage('css', css)
-lowlight.registerLanguage('js', js)
-lowlight.registerLanguage('ts', ts)
+// create a lowlight instance
+const lowlight = createLowlight(all)
-// load specific languages only
-// import { lowlight } from 'lowlight/lib/core'
-// import javascript from 'highlight.js/lib/languages/javascript'
-// lowlight.registerLanguage('javascript', javascript)
+// you can also register languages
+lowlight.register('html', html)
+lowlight.register('css', css)
+lowlight.register('js', js)
+lowlight.register('ts', ts)
export default {
components: {
@@ -63,7 +62,7 @@ export default {
],
content: `
for (var i=1; i <= 20; i++)
{
diff --git a/demos/src/Experiments/All/Vue/index.vue b/demos/src/Experiments/All/Vue/index.vue
index cdd835a237f..5b1e370f7a9 100644
--- a/demos/src/Experiments/All/Vue/index.vue
+++ b/demos/src/Experiments/All/Vue/index.vue
@@ -108,7 +108,9 @@ import TextAlign from '@tiptap/extension-text-align'
import TextStyle from '@tiptap/extension-text-style'
import Underline from '@tiptap/extension-underline'
import { Editor, EditorContent } from '@tiptap/vue-3'
-import { lowlight } from 'lowlight'
+import { all, createLowlight } from 'lowlight'
+
+const lowlight = createLowlight(all)
export default {
components: {
@@ -182,14 +184,14 @@ export default {
- Isn’t that great? And all of that is editable. But wait, there’s more. Let’s try a code block: + Isn't that great? And all of that is editable. But wait, there's more. Let's try a code block:
for (var i=1; i <= 20; i++)
{
@@ -203,10 +205,10 @@ export default {
console.log(i);
}
- I know, I know, this is impressive. It’s only the tip of the iceberg though. Give it a try and click a little bit around. Don’t forget to check the other examples too. + I know, I know, this is impressive. It's only the tip of the iceberg though. Give it a try and click a little bit around. Don’t forget to check the other examples too.
- Wow, that’s amazing. Good work, boy! 👏 + Wow, that's amazing. Good work, boy! 👏@@ -214,9 +216,9 @@ export default {
— Mom
first paragraph
second paragraph
Oh, for some reason that’s purple.
+Oh, for some reason that's purple.
This isn’t highlighted.
+This isn't highlighted.
But that one is.
And this is highlighted too, but in a different color.
And this one has a data attribute.
diff --git a/demos/src/Nodes/CodeBlockLowlight/React/index.jsx b/demos/src/Nodes/CodeBlockLowlight/React/index.jsx index 6a5264f0c11..2f131dd350f 100644 --- a/demos/src/Nodes/CodeBlockLowlight/React/index.jsx +++ b/demos/src/Nodes/CodeBlockLowlight/React/index.jsx @@ -1,7 +1,3 @@ -// load specific languages only -// import { lowlight } from 'lowlight/lib/core' -// import javascript from 'highlight.js/lib/languages/javascript' -// lowlight.registerLanguage('javascript', javascript) import './styles.scss' import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight' @@ -13,14 +9,29 @@ import css from 'highlight.js/lib/languages/css' import js from 'highlight.js/lib/languages/javascript' import ts from 'highlight.js/lib/languages/typescript' import html from 'highlight.js/lib/languages/xml' -// load all highlight.js languages -import { lowlight } from 'lowlight' +// load all languages with "all" or common languages with "common" +import { all, createLowlight } from 'lowlight' import React from 'react' -lowlight.registerLanguage('html', html) -lowlight.registerLanguage('css', css) -lowlight.registerLanguage('js', js) -lowlight.registerLanguage('ts', ts) +// create a lowlight instance with all languages loaded +const lowlight = createLowlight(all) + +// This is only an example, all supported languages are already loaded above +// but you can also register only specific languages to reduce bundle-size +lowlight.register('html', html) +lowlight.register('css', css) +lowlight.register('js', js) +lowlight.register('ts', ts) + +/** + * Lowlight version 2.x had a different API + * import { lowlight } from 'lowlight' + * + * lowlight.registerLanguage('html', html) + * lowlight.registerLanguage('css', css) + * lowlight.registerLanguage('js', js) + * lowlight.registerLanguage('ts', ts) + */ export default () => { const editor = useEditor({ @@ -34,7 +45,7 @@ export default () => { ], content: `- That’s a boring paragraph followed by a fenced code block: + That's a boring paragraph followed by a fenced code block:
for (var i=1; i <= 20; i++)
{
diff --git a/demos/src/Nodes/CodeBlockLowlight/Vue/index.vue b/demos/src/Nodes/CodeBlockLowlight/Vue/index.vue
index dfd6a3defbb..5ee047ec5a3 100644
--- a/demos/src/Nodes/CodeBlockLowlight/Vue/index.vue
+++ b/demos/src/Nodes/CodeBlockLowlight/Vue/index.vue
@@ -25,13 +25,17 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
-// load all highlight.js languages
-import { lowlight } from 'lowlight'
+// load all languages with "all" or common languages with "common"
+import { all, createLowlight } from 'lowlight'
-lowlight.registerLanguage('html', html)
-lowlight.registerLanguage('css', css)
-lowlight.registerLanguage('js', js)
-lowlight.registerLanguage('ts', ts)
+// create a lowlight instance
+const lowlight = createLowlight(all)
+
+// you can also register languages
+lowlight.register('html', html)
+lowlight.register('css', css)
+lowlight.register('js', js)
+lowlight.register('ts', ts)
export default {
components: {
@@ -56,7 +60,7 @@ export default {
],
content: `
- That’s a boring paragraph followed by a fenced code block:
+ That's a boring paragraph followed by a fenced code block:
for (var i=1; i <= 20; i++)
{
diff --git a/package-lock.json b/package-lock.json
index c14c41295df..119ba5ec568 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -60,9 +60,9 @@
"@lexical/react": "^0.11.1",
"d3": "^7.3.0",
"fast-glob": "^3.2.11",
- "highlight.js": "^11.6.0",
+ "highlight.js": "^11.10.0",
"lexical": "^0.11.1",
- "lowlight": "^2.7.0",
+ "lowlight": "^3.1.0",
"remixicon": "^2.5.0",
"shiki": "^1.10.3",
"simplify-js": "^1.2.4",
@@ -116,14 +116,6 @@
"yjs": "^13.6.8"
}
},
- "demos/node_modules/@types/hast": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
- "dependencies": {
- "@types/unist": "*"
- }
- },
"demos/node_modules/@vitejs/plugin-vue": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.0.5.tgz",
@@ -345,6 +337,14 @@
"node": ">=8"
}
},
+ "demos/node_modules/highlight.js": {
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz",
+ "integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
"demos/node_modules/hosted-git-info": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
@@ -5066,14 +5066,6 @@
"@types/hast": "^3.0.4"
}
},
- "node_modules/@shikijs/core/node_modules/@types/hast": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
- "dependencies": {
- "@types/unist": "*"
- }
- },
"node_modules/@sveltejs/vite-plugin-svelte": {
"version": "2.5.3",
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.5.3.tgz",
@@ -5424,11 +5416,11 @@
"dev": true
},
"node_modules/@types/hast": {
- "version": "2.3.10",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz",
- "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==",
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
"dependencies": {
- "@types/unist": "^2"
+ "@types/unist": "*"
}
},
"node_modules/@types/json-schema": {
@@ -8328,6 +8320,14 @@
"node": ">=0.4.0"
}
},
+ "node_modules/dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/detect-file": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
@@ -8346,6 +8346,18 @@
"node": ">=8"
}
},
+ "node_modules/devlop": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "dependencies": {
+ "dequal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
"node_modules/didyoumean": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
@@ -9603,18 +9615,6 @@
"reusify": "^1.0.4"
}
},
- "node_modules/fault": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz",
- "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==",
- "dependencies": {
- "format": "^0.2.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/fd-slicer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
@@ -9877,14 +9877,6 @@
"node": ">= 0.12"
}
},
- "node_modules/format": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
- "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==",
- "engines": {
- "node": ">=0.4.x"
- }
- },
"node_modules/fraction.js": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -12398,27 +12390,19 @@
}
},
"node_modules/lowlight": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-2.9.0.tgz",
- "integrity": "sha512-OpcaUTCLmHuVuBcyNckKfH5B0oA4JUavb/M/8n9iAvanJYNQkrVm4pvyX0SUaqkBG4dnWHKt7p50B3ngAG2Rfw==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.1.0.tgz",
+ "integrity": "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ==",
"dependencies": {
- "@types/hast": "^2.0.0",
- "fault": "^2.0.0",
- "highlight.js": "~11.8.0"
+ "@types/hast": "^3.0.0",
+ "devlop": "^1.0.0",
+ "highlight.js": "~11.9.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/lowlight/node_modules/highlight.js": {
- "version": "11.8.0",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz",
- "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==",
- "engines": {
- "node": ">=12.0.0"
- }
- },
"node_modules/lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@@ -18049,7 +18033,8 @@
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
- "@tiptap/pm": "^2.5.8"
+ "@tiptap/pm": "^2.5.8",
+ "lowlight": "^2 || ^3"
},
"funding": {
"type": "github",
@@ -18058,7 +18043,9 @@
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
- "@tiptap/pm": "^2.5.8"
+ "@tiptap/pm": "^2.5.8",
+ "highlight.js": "^11",
+ "lowlight": "^2 || ^3"
}
},
"packages/extension-collaboration": {
diff --git a/packages/extension-code-block-lowlight/package.json b/packages/extension-code-block-lowlight/package.json
index f9dc1502a20..5e19d72a1b8 100644
--- a/packages/extension-code-block-lowlight/package.json
+++ b/packages/extension-code-block-lowlight/package.json
@@ -31,12 +31,15 @@
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
- "@tiptap/pm": "^2.5.8"
+ "@tiptap/pm": "^2.5.8",
+ "lowlight": "^2 || ^3"
},
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
- "@tiptap/pm": "^2.5.8"
+ "@tiptap/pm": "^2.5.8",
+ "lowlight": "^2 || ^3",
+ "highlight.js": "^11"
},
"repository": {
"type": "git",
diff --git a/tests/cypress/integration/extensions/codeBlockLowlight.spec.ts b/tests/cypress/integration/extensions/codeBlockLowlight.spec.ts
index e3b6fd6d13b..00f1df62515 100644
--- a/tests/cypress/integration/extensions/codeBlockLowlight.spec.ts
+++ b/tests/cypress/integration/extensions/codeBlockLowlight.spec.ts
@@ -5,7 +5,9 @@ import { CodeBlockLowlight } from '@tiptap/extension-code-block-lowlight'
import { Document } from '@tiptap/extension-document'
import { Paragraph } from '@tiptap/extension-paragraph'
import { Text } from '@tiptap/extension-text'
-import { lowlight } from 'lowlight'
+import { all, createLowlight } from 'lowlight'
+
+const lowlight = createLowlight(all)
describe('code block highlight', () => {
let Frontmatter
diff --git a/tests/cypress/tsconfig.json b/tests/cypress/tsconfig.json
index ebd9a998fde..7967d1ebd80 100644
--- a/tests/cypress/tsconfig.json
+++ b/tests/cypress/tsconfig.json
@@ -6,7 +6,7 @@
"sourceMap": false,
"types": ["cypress", "react", "react-dom"],
"paths": {
- "@tiptap/*": ["packages/*/dist", "packages/*/src"],
+ "@tiptap/*": ["packages/*/src", "packages/*/dist"],
"@tiptap/pm/*": ["../../pm/*/dist"]
},
"typeRoots": ["../../node_modules/@types", "../../node_modules/"],
From c01eccc0ea3a0a71511d0d773942f330432fa37f Mon Sep 17 00:00:00 2001
From: Nick the Sick
Date: Tue, 6 Aug 2024 16:53:31 +0200
Subject: [PATCH 7/8] chore: make into a patch version
---
.changeset/good-schools-pretend.md | 2 +-
.changeset/hungry-poems-bake.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.changeset/good-schools-pretend.md b/.changeset/good-schools-pretend.md
index 6d7244219e0..42ec46d1829 100644
--- a/.changeset/good-schools-pretend.md
+++ b/.changeset/good-schools-pretend.md
@@ -1,5 +1,5 @@
---
-"@tiptap/extension-code-block": minor
+"@tiptap/extension-code-block": patch
"@tiptap/extension-code-block-lowlight": patch
---
diff --git a/.changeset/hungry-poems-bake.md b/.changeset/hungry-poems-bake.md
index b3f05642134..189fc8fa26c 100644
--- a/.changeset/hungry-poems-bake.md
+++ b/.changeset/hungry-poems-bake.md
@@ -1,5 +1,5 @@
---
-"@tiptap/core": minor
+"@tiptap/core": patch
---
Add `ignoreWhitespace` option to `isNodeEmpty` to ignore any whitespace and hardbreaks in a node to check for emptiness
From 535dcccb40ca2f17d5db48d5f7a26220a636aafa Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 6 Aug 2024 17:03:26 +0200
Subject: [PATCH 8/8] chore(release): publish version v2.5.9 (#5451)
Co-authored-by: github-actions[bot]
---
.changeset/bright-mayflies-care.md | 6 ---
.changeset/cuddly-pants-destroy.md | 5 ---
.changeset/early-singers-begin.md | 5 ---
.changeset/good-schools-pretend.md | 6 ---
.changeset/hungry-poems-bake.md | 5 ---
.changeset/real-kiwis-double.md | 5 ---
.changeset/smooth-rice-obey.md | 12 ------
.changeset/wet-terms-fetch.md | 5 ---
.changeset/wise-beers-reflect.md | 5 ---
.changeset/yellow-rice-collect.md | 6 ---
demos/CHANGELOG.md | 6 +++
demos/package.json | 2 +-
packages/core/CHANGELOG.md | 10 +++++
packages/core/package.json | 6 +--
packages/extension-blockquote/CHANGELOG.md | 10 +++++
packages/extension-blockquote/package.json | 6 +--
packages/extension-bold/CHANGELOG.md | 10 +++++
packages/extension-bold/package.json | 6 +--
packages/extension-bubble-menu/CHANGELOG.md | 11 +++++
packages/extension-bubble-menu/package.json | 10 ++---
packages/extension-bullet-list/CHANGELOG.md | 10 +++++
packages/extension-bullet-list/package.json | 6 +--
.../extension-character-count/CHANGELOG.md | 11 +++++
.../extension-character-count/package.json | 10 ++---
.../CHANGELOG.md | 15 +++++++
.../package.json | 14 +++----
packages/extension-code-block/CHANGELOG.md | 12 ++++++
packages/extension-code-block/package.json | 10 ++---
packages/extension-code/CHANGELOG.md | 10 +++++
packages/extension-code/package.json | 6 +--
.../CHANGELOG.md | 11 +++++
.../package.json | 6 +--
packages/extension-collaboration/CHANGELOG.md | 12 ++++++
packages/extension-collaboration/package.json | 10 ++---
packages/extension-color/CHANGELOG.md | 11 +++++
packages/extension-color/package.json | 10 ++---
packages/extension-document/CHANGELOG.md | 10 +++++
packages/extension-document/package.json | 6 +--
packages/extension-dropcursor/CHANGELOG.md | 11 +++++
packages/extension-dropcursor/package.json | 10 ++---
packages/extension-floating-menu/CHANGELOG.md | 11 +++++
packages/extension-floating-menu/package.json | 10 ++---
packages/extension-focus/CHANGELOG.md | 11 +++++
packages/extension-focus/package.json | 10 ++---
packages/extension-font-family/CHANGELOG.md | 11 +++++
packages/extension-font-family/package.json | 10 ++---
packages/extension-gapcursor/CHANGELOG.md | 11 +++++
packages/extension-gapcursor/package.json | 10 ++---
packages/extension-hard-break/CHANGELOG.md | 10 +++++
packages/extension-hard-break/package.json | 6 +--
packages/extension-heading/CHANGELOG.md | 10 +++++
packages/extension-heading/package.json | 6 +--
packages/extension-highlight/CHANGELOG.md | 10 +++++
packages/extension-highlight/package.json | 6 +--
packages/extension-history/CHANGELOG.md | 11 +++++
packages/extension-history/package.json | 10 ++---
.../extension-horizontal-rule/CHANGELOG.md | 11 +++++
.../extension-horizontal-rule/package.json | 10 ++---
packages/extension-image/CHANGELOG.md | 10 +++++
packages/extension-image/package.json | 6 +--
packages/extension-italic/CHANGELOG.md | 10 +++++
packages/extension-italic/package.json | 6 +--
packages/extension-link/CHANGELOG.md | 11 +++++
packages/extension-link/package.json | 10 ++---
packages/extension-list-item/CHANGELOG.md | 10 +++++
packages/extension-list-item/package.json | 6 +--
packages/extension-list-keymap/CHANGELOG.md | 10 +++++
packages/extension-list-keymap/package.json | 6 +--
packages/extension-mention/CHANGELOG.md | 12 ++++++
packages/extension-mention/package.json | 14 +++----
packages/extension-ordered-list/CHANGELOG.md | 10 +++++
packages/extension-ordered-list/package.json | 6 +--
packages/extension-paragraph/CHANGELOG.md | 10 +++++
packages/extension-paragraph/package.json | 6 +--
packages/extension-placeholder/CHANGELOG.md | 12 ++++++
packages/extension-placeholder/package.json | 10 ++---
packages/extension-strike/CHANGELOG.md | 10 +++++
packages/extension-strike/package.json | 6 +--
packages/extension-subscript/CHANGELOG.md | 10 +++++
packages/extension-subscript/package.json | 6 +--
packages/extension-superscript/CHANGELOG.md | 10 +++++
packages/extension-superscript/package.json | 6 +--
packages/extension-table-cell/CHANGELOG.md | 10 +++++
packages/extension-table-cell/package.json | 6 +--
packages/extension-table-header/CHANGELOG.md | 10 +++++
packages/extension-table-header/package.json | 6 +--
packages/extension-table-row/CHANGELOG.md | 10 +++++
packages/extension-table-row/package.json | 6 +--
packages/extension-table/CHANGELOG.md | 11 +++++
packages/extension-table/package.json | 10 ++---
packages/extension-task-item/CHANGELOG.md | 12 ++++++
packages/extension-task-item/package.json | 10 ++---
packages/extension-task-list/CHANGELOG.md | 10 +++++
packages/extension-task-list/package.json | 6 +--
packages/extension-text-align/CHANGELOG.md | 10 +++++
packages/extension-text-align/package.json | 6 +--
packages/extension-text-style/CHANGELOG.md | 10 +++++
packages/extension-text-style/package.json | 6 +--
packages/extension-text/CHANGELOG.md | 10 +++++
packages/extension-text/package.json | 6 +--
packages/extension-typography/CHANGELOG.md | 10 +++++
packages/extension-typography/package.json | 6 +--
packages/extension-underline/CHANGELOG.md | 10 +++++
packages/extension-underline/package.json | 6 +--
packages/extension-youtube/CHANGELOG.md | 10 +++++
packages/extension-youtube/package.json | 6 +--
packages/html/CHANGELOG.md | 11 +++++
packages/html/package.json | 10 ++---
packages/pm/CHANGELOG.md | 2 +
packages/pm/package.json | 2 +-
packages/react/CHANGELOG.md | 23 +++++++++++
packages/react/package.json | 14 +++----
packages/starter-kit/CHANGELOG.md | 29 ++++++++++++++
packages/starter-kit/package.json | 40 +++++++++----------
packages/suggestion/CHANGELOG.md | 11 +++++
packages/suggestion/package.json | 10 ++---
packages/vue-2/CHANGELOG.md | 13 ++++++
packages/vue-2/package.json | 14 +++----
packages/vue-3/CHANGELOG.md | 13 ++++++
packages/vue-3/package.json | 14 +++----
120 files changed, 840 insertions(+), 294 deletions(-)
delete mode 100644 .changeset/bright-mayflies-care.md
delete mode 100644 .changeset/cuddly-pants-destroy.md
delete mode 100644 .changeset/early-singers-begin.md
delete mode 100644 .changeset/good-schools-pretend.md
delete mode 100644 .changeset/hungry-poems-bake.md
delete mode 100644 .changeset/real-kiwis-double.md
delete mode 100644 .changeset/smooth-rice-obey.md
delete mode 100644 .changeset/wet-terms-fetch.md
delete mode 100644 .changeset/wise-beers-reflect.md
delete mode 100644 .changeset/yellow-rice-collect.md
diff --git a/.changeset/bright-mayflies-care.md b/.changeset/bright-mayflies-care.md
deleted file mode 100644
index a3ada785582..00000000000
--- a/.changeset/bright-mayflies-care.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"tiptap-demos": patch
-"@tiptap/extension-code-block-lowlight": patch
----
-
-declare lowlight to be a peer dep of extension-code-block-lowlight, update usage to v3
diff --git a/.changeset/cuddly-pants-destroy.md b/.changeset/cuddly-pants-destroy.md
deleted file mode 100644
index f3602beb19b..00000000000
--- a/.changeset/cuddly-pants-destroy.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/core": patch
----
-
-Fix change criteria for isNodeEmpty to resolve #5415
diff --git a/.changeset/early-singers-begin.md b/.changeset/early-singers-begin.md
deleted file mode 100644
index 2b37530faa8..00000000000
--- a/.changeset/early-singers-begin.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/core": patch
----
-
-fix(core): findDuplicates - use Array.from when converting Set
diff --git a/.changeset/good-schools-pretend.md b/.changeset/good-schools-pretend.md
deleted file mode 100644
index 42ec46d1829..00000000000
--- a/.changeset/good-schools-pretend.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"@tiptap/extension-code-block": patch
-"@tiptap/extension-code-block-lowlight": patch
----
-
-`defaultLanguage` on Code Block Lowlight was not being respected properly, to address this we added `defaultLanguage` as an option to the code-block extension.
diff --git a/.changeset/hungry-poems-bake.md b/.changeset/hungry-poems-bake.md
deleted file mode 100644
index 189fc8fa26c..00000000000
--- a/.changeset/hungry-poems-bake.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/core": patch
----
-
-Add `ignoreWhitespace` option to `isNodeEmpty` to ignore any whitespace and hardbreaks in a node to check for emptiness
diff --git a/.changeset/real-kiwis-double.md b/.changeset/real-kiwis-double.md
deleted file mode 100644
index d10f60149c6..00000000000
--- a/.changeset/real-kiwis-double.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/core": patch
----
-
-This fixes a discrepency between `getMarksBetween` and `isActive(markName)` where the position used for getMarksBetween was off by one
diff --git a/.changeset/smooth-rice-obey.md b/.changeset/smooth-rice-obey.md
deleted file mode 100644
index 8a73ee788c2..00000000000
--- a/.changeset/smooth-rice-obey.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-"@tiptap/react": patch
----
-
-Optimize `useEditor` and `useEditorState` to reduce number of instances created while still being performant #5432
-
-The core of this change is two-fold:
- - have the effect run on every render (i.e. without a dep array)
- - schedule destruction of instances, but bail on the actual destruction if the instance was still mounted and a new instance had not been created yet
-
-It should plug a memory leak, where editor instances could be created but not cleaned up in strict mode.
-As well as fixing a bug where a re-render, with deps, was not applying new options that were set on `useEditor`.
diff --git a/.changeset/wet-terms-fetch.md b/.changeset/wet-terms-fetch.md
deleted file mode 100644
index 899f3200fbc..00000000000
--- a/.changeset/wet-terms-fetch.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/extension-placeholder": patch
----
-
-add back `considerAsAny` type but mark it deprecated
diff --git a/.changeset/wise-beers-reflect.md b/.changeset/wise-beers-reflect.md
deleted file mode 100644
index 7815d78912b..00000000000
--- a/.changeset/wise-beers-reflect.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@tiptap/extension-task-item": patch
----
-
-allow task items to be parsed when only having `