From b606575884e4ce8d11c9284da524a34a8aa30aa9 Mon Sep 17 00:00:00 2001 From: Duncan Krebbers Date: Wed, 5 May 2021 13:38:54 +0200 Subject: [PATCH 1/4] HorizontalRule is included in defaultExtensions Set 'default extension' for horizontalRule to true in api-nodes documentation. --- docs/src/docPages/api/nodes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/docPages/api/nodes.md b/docs/src/docPages/api/nodes.md index 72ea511d0..d13e00586 100644 --- a/docs/src/docPages/api/nodes.md +++ b/docs/src/docPages/api/nodes.md @@ -16,7 +16,7 @@ If you think of the document as a tree, then nodes are just a type of content in | [HardBreak](/api/nodes/hard-break) | Yes | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-hard-break/) | | [Hashtag](/api/nodes/hashtag) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-hashtag/) | | [Heading](/api/nodes/heading) | Yes | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-heading/) | -| [HorizontalRule](/api/nodes/horizontal-rule) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-horizontal-rule/) | +| [HorizontalRule](/api/nodes/horizontal-rule) | Yes | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-horizontal-rule/) | | [Image](/api/nodes/image) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-image/) | | [ListItem](/api/nodes/list-item) | Yes | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-list-item/) | | [Mention](/api/nodes/mention) | Yes | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-mention/) | From 5c5680d00e931f53f7e5218b43fc1b2e3b15f60b Mon Sep 17 00:00:00 2001 From: Chris O'Sullivan Date: Wed, 5 May 2021 09:44:07 -0500 Subject: [PATCH 2/4] Change how ref is handled in VueRenderer --- packages/vue-3/src/VueRenderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-3/src/VueRenderer.ts b/packages/vue-3/src/VueRenderer.ts index 738ae67e7..3ad0b7cd6 100644 --- a/packages/vue-3/src/VueRenderer.ts +++ b/packages/vue-3/src/VueRenderer.ts @@ -41,7 +41,7 @@ export class VueRenderer { } get ref(): any { - return this.editor.contentComponent?.ctx.$refs[this.id] + return this.editor.contentComponent?.refs[this.id] } updateProps(props: Record = {}): void { From d5dd568d862fee60c975ec7314615032f0558872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 5 May 2021 18:21:36 +0200 Subject: [PATCH 3/4] fix: fix lint error --- packages/extension-horizontal-rule/src/horizontal-rule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extension-horizontal-rule/src/horizontal-rule.ts b/packages/extension-horizontal-rule/src/horizontal-rule.ts index 680bc2759..d2a4b8e9a 100644 --- a/packages/extension-horizontal-rule/src/horizontal-rule.ts +++ b/packages/extension-horizontal-rule/src/horizontal-rule.ts @@ -70,7 +70,7 @@ export const HorizontalRule = Node.create({ addInputRules() { return [ - nodeInputRule(/^(?:---|\—-|___\s|\*\*\*\s)$/, this.type), + nodeInputRule(/^(?:---|—-|___\s|\*\*\*\s)$/, this.type), ] }, }) From 9b32e15a8f1d0d33998f431b792e7f364de15083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 5 May 2021 18:32:25 +0200 Subject: [PATCH 4/4] Publish - @tiptap/extension-horizontal-rule@2.0.0-beta.9 - @tiptap/starter-kit@2.0.0-beta.40 - @tiptap/vue-3@2.0.0-beta.28 --- packages/extension-horizontal-rule/CHANGELOG.md | 11 +++++++++++ packages/extension-horizontal-rule/package.json | 2 +- packages/starter-kit/CHANGELOG.md | 8 ++++++++ packages/starter-kit/package.json | 4 ++-- packages/vue-3/CHANGELOG.md | 8 ++++++++ packages/vue-3/package.json | 2 +- 6 files changed, 31 insertions(+), 4 deletions(-) diff --git a/packages/extension-horizontal-rule/CHANGELOG.md b/packages/extension-horizontal-rule/CHANGELOG.md index 094eb2c4b..94af9d4a2 100644 --- a/packages/extension-horizontal-rule/CHANGELOG.md +++ b/packages/extension-horizontal-rule/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0-beta.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-horizontal-rule@2.0.0-beta.8...@tiptap/extension-horizontal-rule@2.0.0-beta.9) (2021-05-05) + + +### Bug Fixes + +* fix lint error ([d5dd568](https://github.com/ueberdosis/tiptap/commit/d5dd568d862fee60c975ec7314615032f0558872)) + + + + + # [2.0.0-beta.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-horizontal-rule@2.0.0-beta.7...@tiptap/extension-horizontal-rule@2.0.0-beta.8) (2021-05-04) **Note:** Version bump only for package @tiptap/extension-horizontal-rule diff --git a/packages/extension-horizontal-rule/package.json b/packages/extension-horizontal-rule/package.json index 4956d0f19..4a99853f0 100644 --- a/packages/extension-horizontal-rule/package.json +++ b/packages/extension-horizontal-rule/package.json @@ -1,7 +1,7 @@ { "name": "@tiptap/extension-horizontal-rule", "description": "horizontal rule extension for tiptap", - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.9", "homepage": "https://tiptap.dev", "keywords": [ "tiptap", diff --git a/packages/starter-kit/CHANGELOG.md b/packages/starter-kit/CHANGELOG.md index 75a6fa3ea..b887bc625 100644 --- a/packages/starter-kit/CHANGELOG.md +++ b/packages/starter-kit/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0-beta.40](https://github.com/ueberdosis/tiptap/compare/@tiptap/starter-kit@2.0.0-beta.39...@tiptap/starter-kit@2.0.0-beta.40) (2021-05-05) + +**Note:** Version bump only for package @tiptap/starter-kit + + + + + # [2.0.0-beta.39](https://github.com/ueberdosis/tiptap/compare/@tiptap/starter-kit@2.0.0-beta.38...@tiptap/starter-kit@2.0.0-beta.39) (2021-05-05) **Note:** Version bump only for package @tiptap/starter-kit diff --git a/packages/starter-kit/package.json b/packages/starter-kit/package.json index b06fc492a..ae9fabef7 100644 --- a/packages/starter-kit/package.json +++ b/packages/starter-kit/package.json @@ -1,7 +1,7 @@ { "name": "@tiptap/starter-kit", "description": "starter kit for tiptap", - "version": "2.0.0-beta.39", + "version": "2.0.0-beta.40", "homepage": "https://tiptap.dev", "keywords": [ "tiptap", @@ -34,7 +34,7 @@ "@tiptap/extension-hard-break": "^2.0.0-beta.6", "@tiptap/extension-heading": "^2.0.0-beta.6", "@tiptap/extension-history": "^2.0.0-beta.5", - "@tiptap/extension-horizontal-rule": "^2.0.0-beta.8", + "@tiptap/extension-horizontal-rule": "^2.0.0-beta.9", "@tiptap/extension-italic": "^2.0.0-beta.6", "@tiptap/extension-list-item": "^2.0.0-beta.6", "@tiptap/extension-ordered-list": "^2.0.0-beta.6", diff --git a/packages/vue-3/CHANGELOG.md b/packages/vue-3/CHANGELOG.md index 7ad792976..64e525e4e 100644 --- a/packages/vue-3/CHANGELOG.md +++ b/packages/vue-3/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0-beta.28](https://github.com/ueberdosis/tiptap/compare/@tiptap/vue-3@2.0.0-beta.27...@tiptap/vue-3@2.0.0-beta.28) (2021-05-05) + +**Note:** Version bump only for package @tiptap/vue-3 + + + + + # [2.0.0-beta.27](https://github.com/ueberdosis/tiptap/compare/@tiptap/vue-3@2.0.0-beta.26...@tiptap/vue-3@2.0.0-beta.27) (2021-05-04) **Note:** Version bump only for package @tiptap/vue-3 diff --git a/packages/vue-3/package.json b/packages/vue-3/package.json index e16352389..67cb5fc04 100644 --- a/packages/vue-3/package.json +++ b/packages/vue-3/package.json @@ -1,7 +1,7 @@ { "name": "@tiptap/vue-3", "description": "Vue components for tiptap", - "version": "2.0.0-beta.27", + "version": "2.0.0-beta.28", "homepage": "https://tiptap.dev", "keywords": [ "tiptap",