diff --git a/.changeset/three-pots-jog.md b/.changeset/three-pots-jog.md deleted file mode 100644 index 2f30208880..0000000000 --- a/.changeset/three-pots-jog.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@udecode/plate-link": patch ---- - -fix: -- overall, marks should be kept on link insert/edit -- `unwrapLink`: new option `split` - - if true: split the link above anchor/focus before unwrapping -- `upsertLink`: - - replaced `update` option by `insertTextInLink`: if true, insert text when selection is in url - - `upsertLinkText`: If the text is different than the link above text, replace link children by a new text. The new text has the same marks than the first text replaced. -- specs: - - https://github.com/udecode/editor-protocol/issues/47 - - https://github.com/udecode/editor-protocol/issues/50 - - https://github.com/udecode/editor-protocol/issues/58 - - https://github.com/udecode/editor-protocol/issues/59 - - https://github.com/udecode/editor-protocol/issues/60 diff --git a/packages/headless/CHANGELOG.md b/packages/headless/CHANGELOG.md index 491899dccf..218059930a 100644 --- a/packages/headless/CHANGELOG.md +++ b/packages/headless/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-headless +## 16.2.1 + ## 16.2.0 ## 16.1.1 diff --git a/packages/headless/package.json b/packages/headless/package.json index 7437229075..4d0cbc25b2 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-headless", - "version": "16.2.0", + "version": "16.2.1", "description": "Plate – a plugin system for slate", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -39,7 +39,7 @@ "@udecode/plate-indent-list": "16.2.0", "@udecode/plate-kbd": "16.2.0", "@udecode/plate-line-height": "16.2.0", - "@udecode/plate-link": "16.2.0", + "@udecode/plate-link": "16.2.1", "@udecode/plate-list": "16.2.0", "@udecode/plate-media": "16.2.0", "@udecode/plate-mention": "16.2.0", @@ -51,7 +51,7 @@ "@udecode/plate-serializer-csv": "16.2.0", "@udecode/plate-serializer-docx": "16.2.0", "@udecode/plate-serializer-html": "16.2.0", - "@udecode/plate-serializer-md": "16.2.0", + "@udecode/plate-serializer-md": "16.2.1", "@udecode/plate-table": "16.2.0", "@udecode/plate-trailing-block": "16.2.0" }, diff --git a/packages/nodes/link/CHANGELOG.md b/packages/nodes/link/CHANGELOG.md index 044abc8b1d..80a1de0c83 100644 --- a/packages/nodes/link/CHANGELOG.md +++ b/packages/nodes/link/CHANGELOG.md @@ -1,5 +1,23 @@ # @udecode/plate-link +## 16.2.1 + +### Patch Changes + +- [#1765](https://github.com/udecode/plate/pull/1765) by [@zbeyens](https://github.com/zbeyens) – fix: + - overall, marks should be kept on link insert/edit + - `unwrapLink`: new option `split` + - if true: split the link above anchor/focus before unwrapping + - `upsertLink`: + - replaced `update` option by `insertTextInLink`: if true, insert text when selection is in url + - `upsertLinkText`: If the text is different than the link above text, replace link children by a new text. The new text has the same marks than the first text replaced. + - specs: + - https://github.com/udecode/editor-protocol/issues/47 + - https://github.com/udecode/editor-protocol/issues/50 + - https://github.com/udecode/editor-protocol/issues/58 + - https://github.com/udecode/editor-protocol/issues/59 + - https://github.com/udecode/editor-protocol/issues/60 + ## 16.2.0 ## 16.1.0 diff --git a/packages/nodes/link/package.json b/packages/nodes/link/package.json index afea9644e6..caab7eab28 100644 --- a/packages/nodes/link/package.json +++ b/packages/nodes/link/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-link", - "version": "16.2.0", + "version": "16.2.1", "description": "Link plugin for Plate", "license": "MIT", "homepage": "https://plate.udecode.io", diff --git a/packages/plate/CHANGELOG.md b/packages/plate/CHANGELOG.md index fbf6ba8c66..7459b85297 100644 --- a/packages/plate/CHANGELOG.md +++ b/packages/plate/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate +## 16.2.1 + ## 16.2.0 ## 16.1.1 diff --git a/packages/plate/package.json b/packages/plate/package.json index 74ca6ea798..ae2a4b3422 100644 --- a/packages/plate/package.json +++ b/packages/plate/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate", - "version": "16.2.0", + "version": "16.2.1", "description": "Plate – a plugin system for slate", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -19,8 +19,8 @@ ], "types": "dist/index.d.ts", "dependencies": { - "@udecode/plate-headless": "16.2.0", - "@udecode/plate-ui": "16.2.0" + "@udecode/plate-headless": "16.2.1", + "@udecode/plate-ui": "16.2.1" }, "peerDependencies": { "react": ">=16.8.0", diff --git a/packages/serializers/md/CHANGELOG.md b/packages/serializers/md/CHANGELOG.md index 7c94f051f7..f2c7d1f5c8 100644 --- a/packages/serializers/md/CHANGELOG.md +++ b/packages/serializers/md/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-md-serializer +## 16.2.1 + ## 16.2.0 ## 16.1.0 diff --git a/packages/serializers/md/package.json b/packages/serializers/md/package.json index ff14b8921c..6ae54a509f 100644 --- a/packages/serializers/md/package.json +++ b/packages/serializers/md/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-serializer-md", - "version": "16.2.0", + "version": "16.2.1", "description": "Markdown serializer plugin for Plate", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -23,7 +23,7 @@ "@udecode/plate-code-block": "16.2.0", "@udecode/plate-core": "16.2.0", "@udecode/plate-heading": "16.2.0", - "@udecode/plate-link": "16.2.0", + "@udecode/plate-link": "16.2.1", "@udecode/plate-list": "16.2.0", "@udecode/plate-paragraph": "16.2.0", "remark-parse": "^9.0.0", diff --git a/packages/ui/nodes/link/CHANGELOG.md b/packages/ui/nodes/link/CHANGELOG.md index 30437c2a6a..6af3f5bed5 100644 --- a/packages/ui/nodes/link/CHANGELOG.md +++ b/packages/ui/nodes/link/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-link-ui +## 16.2.1 + ## 16.2.0 ## 16.1.0 diff --git a/packages/ui/nodes/link/package.json b/packages/ui/nodes/link/package.json index 05cd8dddc2..78e9bb2c73 100644 --- a/packages/ui/nodes/link/package.json +++ b/packages/ui/nodes/link/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-ui-link", - "version": "16.2.0", + "version": "16.2.1", "description": "Link UI for Plate", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -20,7 +20,7 @@ "types": "dist/index.d.ts", "dependencies": { "@udecode/plate-core": "16.2.0", - "@udecode/plate-link": "16.2.0", + "@udecode/plate-link": "16.2.1", "@udecode/plate-styled-components": "16.2.0", "@udecode/plate-ui-button": "16.2.0", "@udecode/plate-ui-toolbar": "16.2.0" diff --git a/packages/ui/nodes/media/CHANGELOG.md b/packages/ui/nodes/media/CHANGELOG.md index 81ceb4abcc..e55cb8b172 100644 --- a/packages/ui/nodes/media/CHANGELOG.md +++ b/packages/ui/nodes/media/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-ui-media +## 16.2.1 + ## 16.2.0 ## 16.1.0 diff --git a/packages/ui/nodes/media/package.json b/packages/ui/nodes/media/package.json index cb4922de80..eaa0f4ad35 100644 --- a/packages/ui/nodes/media/package.json +++ b/packages/ui/nodes/media/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-ui-media", - "version": "16.2.0", + "version": "16.2.1", "description": "Media embed UI for Plate", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -21,10 +21,10 @@ "dependencies": { "@udecode/plate-core": "16.2.0", "@udecode/plate-floating": "16.2.0", - "@udecode/plate-link": "16.2.0", + "@udecode/plate-link": "16.2.1", "@udecode/plate-media": "16.2.0", "@udecode/plate-styled-components": "16.2.0", - "@udecode/plate-ui-link": "16.2.0", + "@udecode/plate-ui-link": "16.2.1", "@udecode/plate-ui-toolbar": "16.2.0", "js-video-url-parser": "0.5.1" }, diff --git a/packages/ui/plate/CHANGELOG.md b/packages/ui/plate/CHANGELOG.md index 26dddf07c4..4223ec81f7 100644 --- a/packages/ui/plate/CHANGELOG.md +++ b/packages/ui/plate/CHANGELOG.md @@ -1,5 +1,7 @@ # @udecode/plate-ui +## 16.2.1 + ## 16.2.0 ## 16.1.1 diff --git a/packages/ui/plate/package.json b/packages/ui/plate/package.json index 88769e39e8..ed5809e75d 100644 --- a/packages/ui/plate/package.json +++ b/packages/ui/plate/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-ui", - "version": "16.2.0", + "version": "16.2.1", "description": "Plate UI", "license": "MIT", "homepage": "https://plate.udecode.io", @@ -19,7 +19,7 @@ ], "types": "dist/index.d.ts", "dependencies": { - "@udecode/plate-headless": "16.2.0", + "@udecode/plate-headless": "16.2.1", "@udecode/plate-styled-components": "16.2.0", "@udecode/plate-ui-alignment": "16.2.0", "@udecode/plate-ui-block-quote": "16.2.0", @@ -31,9 +31,9 @@ "@udecode/plate-ui-find-replace": "16.2.0", "@udecode/plate-ui-font": "16.2.0", "@udecode/plate-ui-line-height": "16.2.0", - "@udecode/plate-ui-link": "16.2.0", + "@udecode/plate-ui-link": "16.2.1", "@udecode/plate-ui-list": "16.2.0", - "@udecode/plate-ui-media": "16.2.0", + "@udecode/plate-ui-media": "16.2.1", "@udecode/plate-ui-mention": "16.2.0", "@udecode/plate-ui-placeholder": "16.2.0", "@udecode/plate-ui-table": "16.2.0",