diff --git a/.changeset/tidy-baboons-lay.md b/.changeset/tidy-baboons-lay.md new file mode 100644 index 000000000..5819b9845 --- /dev/null +++ b/.changeset/tidy-baboons-lay.md @@ -0,0 +1,59 @@ +--- +"@tiptap/extension-collaboration-cursor": minor +"@tiptap/extension-code-block-lowlight": minor +"@tiptap/extension-character-count": minor +"@tiptap/extension-horizontal-rule": minor +"@tiptap/extension-collaboration": minor +"@tiptap/extension-floating-menu": minor +"@tiptap/extension-ordered-list": minor +"@tiptap/extension-table-header": minor +"@tiptap/extension-bubble-menu": minor +"@tiptap/extension-bullet-list": minor +"@tiptap/extension-font-family": minor +"@tiptap/extension-list-keymap": minor +"@tiptap/extension-placeholder": minor +"@tiptap/extension-superscript": minor +"@tiptap/extension-blockquote": minor +"@tiptap/extension-code-block": minor +"@tiptap/extension-dropcursor": minor +"@tiptap/extension-hard-break": minor +"@tiptap/extension-table-cell": minor +"@tiptap/extension-text-align": minor +"@tiptap/extension-text-style": minor +"@tiptap/extension-typography": minor +"@tiptap/extension-gapcursor": minor +"@tiptap/extension-highlight": minor +"@tiptap/extension-list-item": minor +"@tiptap/extension-paragraph": minor +"@tiptap/extension-subscript": minor +"@tiptap/extension-table-row": minor +"@tiptap/extension-task-item": minor +"@tiptap/extension-task-list": minor +"@tiptap/extension-underline": minor +"@tiptap/extension-document": minor +"@tiptap/extension-heading": minor +"@tiptap/extension-history": minor +"@tiptap/extension-mention": minor +"@tiptap/extension-youtube": minor +"@tiptap/extension-italic": minor +"@tiptap/extension-strike": minor +"@tiptap/extension-color": minor +"@tiptap/extension-focus": minor +"@tiptap/extension-image": minor +"@tiptap/extension-table": minor +"@tiptap/extension-bold": minor +"@tiptap/extension-code": minor +"@tiptap/extension-link": minor +"@tiptap/extension-text": minor +"@tiptap/starter-kit": minor +"@tiptap/suggestion": minor +"@tiptap/react": minor +"@tiptap/vue-2": minor +"@tiptap/vue-3": minor +"@tiptap/core": minor +"@tiptap/html": minor +"@tiptap/pm": minor +"tiptap-demos": minor +--- + +Bundling of packages no longer includes tiptap dependency type definitions diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be15126a1..ea44689dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,6 +55,7 @@ jobs: with: createGithubReleases: false publish: npm run publish + version: npm run version title: ${{ github.ref_name == 'main' && 'Publish a new stable version' || 'Publish a new pre-release version' }} commit: >- ${{ github.ref_name == 'main' && 'chore(release): publish a new release version' || 'chore(release): publish a new pre-release version' }} diff --git a/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.ts b/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.ts index 6de4df8c5..edd501ae3 100644 --- a/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.ts +++ b/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.ts @@ -28,7 +28,7 @@ export interface AnnotationOptions { /** * An event listener which receives annotations for the current selection. */ - onUpdate: (items: [any?]) => {}, + onUpdate: (items: any[]) => {}, /** * An initialized Y.js document. */ diff --git a/package-lock.json b/package-lock.json index 84d25e77c..34fd3846c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18849,10 +18849,10 @@ }, "packages/core": { "name": "@tiptap/core", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/pm": "^2.7.3" + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -18864,10 +18864,10 @@ }, "packages/extension-blockquote": { "name": "@tiptap/extension-blockquote", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -18879,10 +18879,10 @@ }, "packages/extension-bold": { "name": "@tiptap/extension-bold", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -18894,14 +18894,14 @@ }, "packages/extension-bubble-menu": { "name": "@tiptap/extension-bubble-menu", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { "tippy.js": "^6.3.7" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -18914,26 +18914,30 @@ }, "packages/extension-bullet-list": { "name": "@tiptap/extension-bullet-list", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-list-item": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.7.0" + "@tiptap/core": "^2.7.0", + "@tiptap/extension-list-item": "^2.7.0", + "@tiptap/extension-text-style": "^2.7.0" } }, "packages/extension-character-count": { "name": "@tiptap/extension-character-count", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -18946,10 +18950,10 @@ }, "packages/extension-code": { "name": "@tiptap/extension-code", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -18961,11 +18965,11 @@ }, "packages/extension-code-block": { "name": "@tiptap/extension-code-block", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -18978,12 +18982,12 @@ }, "packages/extension-code-block-lowlight": { "name": "@tiptap/extension-code-block-lowlight", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/extension-code-block": "^2.7.3", - "@tiptap/pm": "^2.7.3", + "@tiptap/core": "^2.7.4", + "@tiptap/extension-code-block": "^2.7.4", + "@tiptap/pm": "^2.7.4", "lowlight": "^2 || ^3" }, "funding": { @@ -19000,11 +19004,11 @@ }, "packages/extension-collaboration": { "name": "@tiptap/extension-collaboration", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3", + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4", "y-prosemirror": "^1.2.12" }, "funding": { @@ -19019,10 +19023,10 @@ }, "packages/extension-collaboration-cursor": { "name": "@tiptap/extension-collaboration-cursor", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", + "@tiptap/core": "^2.7.4", "y-prosemirror": "^1.2.12" }, "funding": { @@ -19086,11 +19090,11 @@ }, "packages/extension-color": { "name": "@tiptap/extension-color", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/extension-text-style": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "funding": { "type": "github", @@ -19103,10 +19107,10 @@ }, "packages/extension-document": { "name": "@tiptap/extension-document", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19118,11 +19122,11 @@ }, "packages/extension-dropcursor": { "name": "@tiptap/extension-dropcursor", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19135,14 +19139,14 @@ }, "packages/extension-floating-menu": { "name": "@tiptap/extension-floating-menu", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { "tippy.js": "^6.3.7" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19155,11 +19159,11 @@ }, "packages/extension-focus": { "name": "@tiptap/extension-focus", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19172,11 +19176,11 @@ }, "packages/extension-font-family": { "name": "@tiptap/extension-font-family", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/extension-text-style": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "funding": { "type": "github", @@ -19189,11 +19193,11 @@ }, "packages/extension-gapcursor": { "name": "@tiptap/extension-gapcursor", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19206,10 +19210,10 @@ }, "packages/extension-hard-break": { "name": "@tiptap/extension-hard-break", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19221,10 +19225,10 @@ }, "packages/extension-heading": { "name": "@tiptap/extension-heading", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19236,10 +19240,10 @@ }, "packages/extension-highlight": { "name": "@tiptap/extension-highlight", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19251,11 +19255,11 @@ }, "packages/extension-history": { "name": "@tiptap/extension-history", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19268,11 +19272,11 @@ }, "packages/extension-horizontal-rule": { "name": "@tiptap/extension-horizontal-rule", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19285,10 +19289,10 @@ }, "packages/extension-image": { "name": "@tiptap/extension-image", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19300,10 +19304,10 @@ }, "packages/extension-italic": { "name": "@tiptap/extension-italic", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19315,14 +19319,14 @@ }, "packages/extension-link": { "name": "@tiptap/extension-link", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { "linkifyjs": "^4.1.0" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19335,10 +19339,10 @@ }, "packages/extension-list-item": { "name": "@tiptap/extension-list-item", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19350,10 +19354,10 @@ }, "packages/extension-list-keymap": { "name": "@tiptap/extension-list-keymap", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19365,12 +19369,12 @@ }, "packages/extension-mention": { "name": "@tiptap/extension-mention", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3", - "@tiptap/suggestion": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4", + "@tiptap/suggestion": "^2.7.4" }, "funding": { "type": "github", @@ -19384,25 +19388,29 @@ }, "packages/extension-ordered-list": { "name": "@tiptap/extension-ordered-list", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-list-item": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" }, "peerDependencies": { - "@tiptap/core": "^2.7.0" + "@tiptap/core": "^2.7.0", + "@tiptap/extension-list-item": "^2.7.0", + "@tiptap/extension-text-style": "^2.7.0" } }, "packages/extension-paragraph": { "name": "@tiptap/extension-paragraph", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19414,11 +19422,11 @@ }, "packages/extension-placeholder": { "name": "@tiptap/extension-placeholder", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19431,10 +19439,10 @@ }, "packages/extension-strike": { "name": "@tiptap/extension-strike", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19446,10 +19454,10 @@ }, "packages/extension-subscript": { "name": "@tiptap/extension-subscript", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19461,10 +19469,10 @@ }, "packages/extension-superscript": { "name": "@tiptap/extension-superscript", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19476,11 +19484,11 @@ }, "packages/extension-table": { "name": "@tiptap/extension-table", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19493,10 +19501,10 @@ }, "packages/extension-table-cell": { "name": "@tiptap/extension-table-cell", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19508,10 +19516,10 @@ }, "packages/extension-table-header": { "name": "@tiptap/extension-table-header", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19523,10 +19531,10 @@ }, "packages/extension-table-row": { "name": "@tiptap/extension-table-row", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19538,11 +19546,11 @@ }, "packages/extension-task-item": { "name": "@tiptap/extension-task-item", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19555,10 +19563,10 @@ }, "packages/extension-task-list": { "name": "@tiptap/extension-task-list", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19570,10 +19578,10 @@ }, "packages/extension-text": { "name": "@tiptap/extension-text", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19585,10 +19593,10 @@ }, "packages/extension-text-align": { "name": "@tiptap/extension-text-align", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19600,10 +19608,10 @@ }, "packages/extension-text-style": { "name": "@tiptap/extension-text-style", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19615,10 +19623,10 @@ }, "packages/extension-typography": { "name": "@tiptap/extension-typography", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19630,10 +19638,10 @@ }, "packages/extension-underline": { "name": "@tiptap/extension-underline", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19645,10 +19653,10 @@ }, "packages/extension-youtube": { "name": "@tiptap/extension-youtube", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3" + "@tiptap/core": "^2.7.4" }, "funding": { "type": "github", @@ -19660,14 +19668,14 @@ }, "packages/html": { "name": "@tiptap/html", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { "zeed-dom": "^0.15.1" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19709,7 +19717,7 @@ }, "packages/pm": { "name": "@tiptap/pm", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { "prosemirror-changeset": "^2.2.1", @@ -19738,18 +19746,18 @@ }, "packages/react": { "name": "@tiptap/react", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.7.3", - "@tiptap/extension-floating-menu": "^2.7.3", + "@tiptap/extension-bubble-menu": "^2.7.4", + "@tiptap/extension-floating-menu": "^2.7.4", "@types/use-sync-external-store": "^0.0.6", "fast-deep-equal": "^3", "use-sync-external-store": "^1.2.2" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3", + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4", "@types/react": "^18.2.14", "@types/react-dom": "^18.2.6", "react": "^18.0.0", @@ -19768,29 +19776,29 @@ }, "packages/starter-kit": { "name": "@tiptap/starter-kit", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/extension-blockquote": "^2.7.3", - "@tiptap/extension-bold": "^2.7.3", - "@tiptap/extension-bullet-list": "^2.7.3", - "@tiptap/extension-code": "^2.7.3", - "@tiptap/extension-code-block": "^2.7.3", - "@tiptap/extension-document": "^2.7.3", - "@tiptap/extension-dropcursor": "^2.7.3", - "@tiptap/extension-gapcursor": "^2.7.3", - "@tiptap/extension-hard-break": "^2.7.3", - "@tiptap/extension-heading": "^2.7.3", - "@tiptap/extension-history": "^2.7.3", - "@tiptap/extension-horizontal-rule": "^2.7.3", - "@tiptap/extension-italic": "^2.7.3", - "@tiptap/extension-list-item": "^2.7.3", - "@tiptap/extension-ordered-list": "^2.7.3", - "@tiptap/extension-paragraph": "^2.7.3", - "@tiptap/extension-strike": "^2.7.3", - "@tiptap/extension-text": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-blockquote": "^2.7.4", + "@tiptap/extension-bold": "^2.7.4", + "@tiptap/extension-bullet-list": "^2.7.4", + "@tiptap/extension-code": "^2.7.4", + "@tiptap/extension-code-block": "^2.7.4", + "@tiptap/extension-document": "^2.7.4", + "@tiptap/extension-dropcursor": "^2.7.4", + "@tiptap/extension-gapcursor": "^2.7.4", + "@tiptap/extension-hard-break": "^2.7.4", + "@tiptap/extension-heading": "^2.7.4", + "@tiptap/extension-history": "^2.7.4", + "@tiptap/extension-horizontal-rule": "^2.7.4", + "@tiptap/extension-italic": "^2.7.4", + "@tiptap/extension-list-item": "^2.7.4", + "@tiptap/extension-ordered-list": "^2.7.4", + "@tiptap/extension-paragraph": "^2.7.4", + "@tiptap/extension-strike": "^2.7.4", + "@tiptap/extension-text": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19799,11 +19807,11 @@ }, "packages/suggestion": { "name": "@tiptap/suggestion", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3" + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4" }, "funding": { "type": "github", @@ -19816,16 +19824,16 @@ }, "packages/vue-2": { "name": "@tiptap/vue-2", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.7.3", - "@tiptap/extension-floating-menu": "^2.7.3", + "@tiptap/extension-bubble-menu": "^2.7.4", + "@tiptap/extension-floating-menu": "^2.7.4", "vue-ts-types": "^1.6.0" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3", + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4", "vue": "^2.6.0" }, "funding": { @@ -19876,15 +19884,15 @@ }, "packages/vue-3": { "name": "@tiptap/vue-3", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "dependencies": { - "@tiptap/extension-bubble-menu": "^2.7.3", - "@tiptap/extension-floating-menu": "^2.7.3" + "@tiptap/extension-bubble-menu": "^2.7.4", + "@tiptap/extension-floating-menu": "^2.7.4" }, "devDependencies": { - "@tiptap/core": "^2.7.3", - "@tiptap/pm": "^2.7.3", + "@tiptap/core": "^2.7.4", + "@tiptap/pm": "^2.7.4", "vue": "^3.0.0" }, "funding": { diff --git a/package.json b/package.json index c1bd83793..bed80906a 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install", "prepare": "husky install", "turbo": "turbo", - "changeset": "changeset" + "changeset": "changeset", + "version": "npm run changeset -- version && npm i" }, "devDependencies": { "@babel/core": "^7.24.7", diff --git a/packages/core/package.json b/packages/core/package.json index 4ba4626b0..59c7ce8d3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,7 +18,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/core/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -26,7 +26,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/core/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/core/src/ExtensionManager.ts b/packages/core/src/ExtensionManager.ts index ae994417c..a0fda44be 100644 --- a/packages/core/src/ExtensionManager.ts +++ b/packages/core/src/ExtensionManager.ts @@ -12,8 +12,9 @@ import { getSchemaByResolvedExtensions } from './helpers/getSchemaByResolvedExte import { getSchemaTypeByName } from './helpers/getSchemaTypeByName.js' import { isExtensionRulesEnabled } from './helpers/isExtensionRulesEnabled.js' import { splitExtensions } from './helpers/splitExtensions.js' -import { Mark, NodeConfig } from './index.js' +import type { NodeConfig } from './index.js' import { InputRule, inputRulesPlugin } from './InputRule.js' +import { Mark } from './Mark.js' import { PasteRule, pasteRulesPlugin } from './PasteRule.js' import { AnyConfig, Extensions, RawCommands } from './types.js' import { callOrReturn } from './utilities/callOrReturn.js' diff --git a/packages/extension-blockquote/package.json b/packages/extension-blockquote/package.json index b31575aa0..c4fd80d1a 100644 --- a/packages/extension-blockquote/package.json +++ b/packages/extension-blockquote/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-blockquote/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-blockquote/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bold/package.json b/packages/extension-bold/package.json index 92a7b66d4..7f7603bcc 100644 --- a/packages/extension-bold/package.json +++ b/packages/extension-bold/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bold/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bold/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bubble-menu/package.json b/packages/extension-bubble-menu/package.json index 7d7dd5d2f..007f3c07c 100644 --- a/packages/extension-bubble-menu/package.json +++ b/packages/extension-bubble-menu/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bubble-menu/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bubble-menu/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bullet-list/package.json b/packages/extension-bullet-list/package.json index 118fbad3c..4117144a9 100644 --- a/packages/extension-bullet-list/package.json +++ b/packages/extension-bullet-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bullet-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,16 +23,20 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bullet-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" ], "devDependencies": { - "@tiptap/core": "^2.7.4" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-list-item": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "peerDependencies": { - "@tiptap/core": "^2.7.0" + "@tiptap/core": "^2.7.0", + "@tiptap/extension-list-item": "^2.7.0", + "@tiptap/extension-text-style": "^2.7.0" }, "repository": { "type": "git", diff --git a/packages/extension-bullet-list/src/bullet-list.ts b/packages/extension-bullet-list/src/bullet-list.ts index fe86ff177..63ff3f237 100644 --- a/packages/extension-bullet-list/src/bullet-list.ts +++ b/packages/extension-bullet-list/src/bullet-list.ts @@ -1,7 +1,6 @@ import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core' - -import ListItem from '../../extension-list-item/src/index.js' -import TextStyle from '../../extension-text-style/src/index.js' +import { ListItem } from '@tiptap/extension-list-item' +import { TextStyle } from '@tiptap/extension-text-style' export interface BulletListOptions { /** diff --git a/packages/extension-character-count/package.json b/packages/extension-character-count/package.json index 441b35baf..db8192268 100644 --- a/packages/extension-character-count/package.json +++ b/packages/extension-character-count/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-character-count/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-character-count/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code-block-lowlight/package.json b/packages/extension-code-block-lowlight/package.json index ba5fa0df9..f51142579 100644 --- a/packages/extension-code-block-lowlight/package.json +++ b/packages/extension-code-block-lowlight/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code-block-lowlight/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code-block-lowlight/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code-block/package.json b/packages/extension-code-block/package.json index 825ec1b51..bf3146472 100644 --- a/packages/extension-code-block/package.json +++ b/packages/extension-code-block/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code-block/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code-block/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code/package.json b/packages/extension-code/package.json index e45e5ede0..339355490 100644 --- a/packages/extension-code/package.json +++ b/packages/extension-code/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration-cursor/package.json b/packages/extension-collaboration-cursor/package.json index 598507777..a4611089f 100644 --- a/packages/extension-collaboration-cursor/package.json +++ b/packages/extension-collaboration-cursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-collaboration-cursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-collaboration-cursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration/package.json b/packages/extension-collaboration/package.json index 7ae9cd348..5d7cf0c8d 100644 --- a/packages/extension-collaboration/package.json +++ b/packages/extension-collaboration/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-collaboration/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-collaboration/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-color/package.json b/packages/extension-color/package.json index ac53f8292..0070b4768 100644 --- a/packages/extension-color/package.json +++ b/packages/extension-color/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-color/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-color/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-document/package.json b/packages/extension-document/package.json index 25142d6c6..22ec8d96c 100644 --- a/packages/extension-document/package.json +++ b/packages/extension-document/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-document/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-document/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-dropcursor/package.json b/packages/extension-dropcursor/package.json index 509eb6139..871b78322 100644 --- a/packages/extension-dropcursor/package.json +++ b/packages/extension-dropcursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-dropcursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-dropcursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-floating-menu/package.json b/packages/extension-floating-menu/package.json index 9c4b749d1..b26b001c7 100644 --- a/packages/extension-floating-menu/package.json +++ b/packages/extension-floating-menu/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-floating-menu/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-floating-menu/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-focus/package.json b/packages/extension-focus/package.json index 35046b333..54d4885db 100644 --- a/packages/extension-focus/package.json +++ b/packages/extension-focus/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-focus/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-focus/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-font-family/package.json b/packages/extension-font-family/package.json index 455e100d7..81d71e5ec 100644 --- a/packages/extension-font-family/package.json +++ b/packages/extension-font-family/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-font-family/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-font-family/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-gapcursor/package.json b/packages/extension-gapcursor/package.json index 7a1091617..075717f72 100644 --- a/packages/extension-gapcursor/package.json +++ b/packages/extension-gapcursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-gapcursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-gapcursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-hard-break/package.json b/packages/extension-hard-break/package.json index 0ee769ad3..daa953432 100644 --- a/packages/extension-hard-break/package.json +++ b/packages/extension-hard-break/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-hard-break/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-hard-break/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-heading/package.json b/packages/extension-heading/package.json index 9efe19d65..8155b54a7 100644 --- a/packages/extension-heading/package.json +++ b/packages/extension-heading/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-heading/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-heading/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-highlight/package.json b/packages/extension-highlight/package.json index c8ad991ec..df6e3a335 100644 --- a/packages/extension-highlight/package.json +++ b/packages/extension-highlight/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-highlight/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-highlight/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-history/package.json b/packages/extension-history/package.json index 658712181..c5ad3d475 100644 --- a/packages/extension-history/package.json +++ b/packages/extension-history/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-history/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-history/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-horizontal-rule/package.json b/packages/extension-horizontal-rule/package.json index 18b674c9d..98768be3d 100644 --- a/packages/extension-horizontal-rule/package.json +++ b/packages/extension-horizontal-rule/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-horizontal-rule/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-horizontal-rule/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-image/package.json b/packages/extension-image/package.json index e3cb624fe..a8816cca1 100644 --- a/packages/extension-image/package.json +++ b/packages/extension-image/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-image/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-image/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-italic/package.json b/packages/extension-italic/package.json index 89c37efee..59e180291 100644 --- a/packages/extension-italic/package.json +++ b/packages/extension-italic/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-italic/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-italic/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-link/package.json b/packages/extension-link/package.json index cfeb3d4a0..1b60dc216 100644 --- a/packages/extension-link/package.json +++ b/packages/extension-link/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-link/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-link/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-list-item/package.json b/packages/extension-list-item/package.json index 500535b36..5478ca942 100644 --- a/packages/extension-list-item/package.json +++ b/packages/extension-list-item/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-list-item/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-list-item/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-list-keymap/package.json b/packages/extension-list-keymap/package.json index d50bcff2d..adcf8e366 100644 --- a/packages/extension-list-keymap/package.json +++ b/packages/extension-list-keymap/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-list-keymap/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-list-keymap/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-mention/package.json b/packages/extension-mention/package.json index 3fff8151d..ca38626fd 100644 --- a/packages/extension-mention/package.json +++ b/packages/extension-mention/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-mention/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-mention/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-ordered-list/package.json b/packages/extension-ordered-list/package.json index 1846460a1..e8b9b7a10 100644 --- a/packages/extension-ordered-list/package.json +++ b/packages/extension-ordered-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-ordered-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,16 +23,20 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-ordered-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" ], "devDependencies": { - "@tiptap/core": "^2.7.4" + "@tiptap/core": "^2.7.4", + "@tiptap/extension-list-item": "^2.7.4", + "@tiptap/extension-text-style": "^2.7.4" }, "peerDependencies": { - "@tiptap/core": "^2.7.0" + "@tiptap/core": "^2.7.0", + "@tiptap/extension-list-item": "^2.7.0", + "@tiptap/extension-text-style": "^2.7.0" }, "repository": { "type": "git", diff --git a/packages/extension-ordered-list/src/ordered-list.ts b/packages/extension-ordered-list/src/ordered-list.ts index ed2a45904..d4cf1c472 100644 --- a/packages/extension-ordered-list/src/ordered-list.ts +++ b/packages/extension-ordered-list/src/ordered-list.ts @@ -1,7 +1,6 @@ import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core' - -import ListItem from '../../extension-list-item/src/index.js' -import TextStyle from '../../extension-text-style/src/index.js' +import { ListItem } from '@tiptap/extension-list-item' +import { TextStyle } from '@tiptap/extension-text-style' export interface OrderedListOptions { /** diff --git a/packages/extension-paragraph/package.json b/packages/extension-paragraph/package.json index ad3bbe642..5d01062ac 100644 --- a/packages/extension-paragraph/package.json +++ b/packages/extension-paragraph/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-paragraph/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-paragraph/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-placeholder/package.json b/packages/extension-placeholder/package.json index 2eb16d3db..82630dbf0 100644 --- a/packages/extension-placeholder/package.json +++ b/packages/extension-placeholder/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-placeholder/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-placeholder/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-strike/package.json b/packages/extension-strike/package.json index 686ab6899..b8775d60b 100644 --- a/packages/extension-strike/package.json +++ b/packages/extension-strike/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-strike/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-strike/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-subscript/package.json b/packages/extension-subscript/package.json index cd3fbf1d0..0463a6be7 100644 --- a/packages/extension-subscript/package.json +++ b/packages/extension-subscript/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-subscript/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-subscript/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-superscript/package.json b/packages/extension-superscript/package.json index 4353d0f0c..1b6a2cc2a 100644 --- a/packages/extension-superscript/package.json +++ b/packages/extension-superscript/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-superscript/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-superscript/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-table-cell/package.json b/packages/extension-table-cell/package.json index f762ca3d7..f4823a595 100644 --- a/packages/extension-table-cell/package.json +++ b/packages/extension-table-cell/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-cell/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-cell/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-table-header/package.json b/packages/extension-table-header/package.json index ad683cab4..2b5908e58 100644 --- a/packages/extension-table-header/package.json +++ b/packages/extension-table-header/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-header/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-header/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-table-row/package.json b/packages/extension-table-row/package.json index f4e380039..ac9b85d6f 100644 --- a/packages/extension-table-row/package.json +++ b/packages/extension-table-row/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-row/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-row/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-table/package.json b/packages/extension-table/package.json index fd39de548..9ce4b7227 100644 --- a/packages/extension-table/package.json +++ b/packages/extension-table/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-item/package.json b/packages/extension-task-item/package.json index ff7af89ad..853ee6dc4 100644 --- a/packages/extension-task-item/package.json +++ b/packages/extension-task-item/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-task-item/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-task-item/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-list/package.json b/packages/extension-task-list/package.json index 6764fea6c..b9ff4d0d5 100644 --- a/packages/extension-task-list/package.json +++ b/packages/extension-task-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-task-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-task-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-align/package.json b/packages/extension-text-align/package.json index dbcac336b..cac5943c4 100644 --- a/packages/extension-text-align/package.json +++ b/packages/extension-text-align/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text-align/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text-align/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-style/package.json b/packages/extension-text-style/package.json index 42bb4c1af..92b0453bb 100644 --- a/packages/extension-text-style/package.json +++ b/packages/extension-text-style/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text-style/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text-style/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text/package.json b/packages/extension-text/package.json index d2f419fe1..0cc43ae39 100644 --- a/packages/extension-text/package.json +++ b/packages/extension-text/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-typography/package.json b/packages/extension-typography/package.json index c34a0171a..ebb975724 100644 --- a/packages/extension-typography/package.json +++ b/packages/extension-typography/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-typography/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-typography/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-underline/package.json b/packages/extension-underline/package.json index 332cc6388..5dd8ca47d 100644 --- a/packages/extension-underline/package.json +++ b/packages/extension-underline/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-underline/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-underline/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-youtube/package.json b/packages/extension-youtube/package.json index 2662bb3c4..dcaaa401a 100644 --- a/packages/extension-youtube/package.json +++ b/packages/extension-youtube/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-youtube/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-youtube/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" diff --git a/packages/html/package.json b/packages/html/package.json index 075866487..3c0d33f6c 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/html/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/html/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/packages/react/package.json b/packages/react/package.json index de1d92ad1..5ba3b8b7f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/react/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/react/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/packages/starter-kit/package.json b/packages/starter-kit/package.json index d5685b220..37c37598e 100644 --- a/packages/starter-kit/package.json +++ b/packages/starter-kit/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/starter-kit/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/starter-kit/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/packages/suggestion/package.json b/packages/suggestion/package.json index 67ebb35d6..f009b118e 100644 --- a/packages/suggestion/package.json +++ b/packages/suggestion/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/suggestion/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/suggestion/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/packages/vue-2/package.json b/packages/vue-2/package.json index 198a6736c..2f88028f7 100644 --- a/packages/vue-2/package.json +++ b/packages/vue-2/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/vue-2/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/vue-2/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/packages/vue-3/package.json b/packages/vue-3/package.json index d1ec882be..36bc2be08 100644 --- a/packages/vue-3/package.json +++ b/packages/vue-3/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/vue-3/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/vue-3/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", diff --git a/shared/rollup-config/index.js b/shared/rollup-config/index.js index 5a5703510..e36d7bcaf 100644 --- a/shared/rollup-config/index.js +++ b/shared/rollup-config/index.js @@ -51,9 +51,12 @@ export const baseConfig = ({ tsconfigOverride: { compilerOptions: { declaration: true, + rootDir: `./packages/${pkg.name.split('/')[1]}/src`, + declarationMap: true, paths: { - '@tiptap/*': ['packages/*/src'], + '@tiptap/*': ['packages/*/dist', 'packages/*/src'], }, + noEmit: false, }, include: null, }, diff --git a/tests/cypress/integration/core/mergeAttributes.spec.ts b/tests/cypress/integration/core/mergeAttributes.spec.ts index 9c68349d5..c51f21725 100644 --- a/tests/cypress/integration/core/mergeAttributes.spec.ts +++ b/tests/cypress/integration/core/mergeAttributes.spec.ts @@ -59,7 +59,7 @@ describe('mergeAttributes', () => { }) it('should ignore falsy values', () => { - const value = mergeAttributes(undefined, { class: 'foo' }) + const value = mergeAttributes(undefined as any, { class: 'foo' }) expect(value).to.deep.eq({ class: 'foo', diff --git a/tsconfig.json b/tsconfig.json index a87ea4b78..9c874d51d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,8 +15,9 @@ "rootDir": ".", "allowJs": true, "checkJs": false, + "noEmit": true, "paths": { - "@tiptap/*": ["packages/*/dist", "packages/*/src"] + "@tiptap/*": ["packages/*/src", "packages/*/dist"] }, "lib": [ "esnext", diff --git a/turbo.json b/turbo.json index db854deb7..2545b1979 100644 --- a/turbo.json +++ b/turbo.json @@ -2,7 +2,12 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "build": { - "inputs": ["src/**", "rollup.config.js"], + "inputs": [ + "src/**", + "rollup.config.js", + "../../tsconfig.json", + "../../shared/rollup-config/index.js" + ], "dependsOn": ["^build"], "outputs": ["dist/**"] },