diff --git a/.changeset/dependencies-GH-1875.md b/.changeset/dependencies-GH-1875.md deleted file mode 100644 index bac046a7c..000000000 --- a/.changeset/dependencies-GH-1875.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@portabletext/block-tools": patch -"@portabletext/editor": patch -"@portabletext/plugin-sdk-value": patch -"@portabletext/sanity-bridge": patch ---- - -fix(deps): update sanity monorepo to ^4.16.0 diff --git a/.changeset/fiery-readers-grin.md b/.changeset/fiery-readers-grin.md deleted file mode 100644 index 391172bdd..000000000 --- a/.changeset/fiery-readers-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@portabletext/block-tools': patch ---- - -fix: remove unneeded outer trim of html string diff --git a/.changeset/flat-terms-pull.md b/.changeset/flat-terms-pull.md deleted file mode 100644 index 0ccedd6c7..000000000 --- a/.changeset/flat-terms-pull.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@portabletext/block-tools': minor ---- - -feat: vastly improve deserialization of Word Online documents - -Specialized rules have been added to handle documents coming from Word Online. This fixes issues with formatting and block styles getting lost, as well as whitespace disappearing and images not being parsed correctly. diff --git a/.changeset/new-things-rest.md b/.changeset/new-things-rest.md deleted file mode 100644 index 7b5d8b7c0..000000000 --- a/.changeset/new-things-rest.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@portabletext/block-tools': patch ---- - -fix: improve whitespace handling - -Trimming whitespace is now more reliable because it happens in a post processing step after the ordinary deserialization and block flattening has been conducted. This fixes issues with lonely images in Google Docs paragraphs being removed and improves trimming whitespace after tables. - diff --git a/.changeset/pretty-rice-pump.md b/.changeset/pretty-rice-pump.md deleted file mode 100644 index 21b866e3f..000000000 --- a/.changeset/pretty-rice-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@portabletext/block-tools': patch ---- - -fix: trim whitespace between block elements diff --git a/.changeset/silver-suits-open.md b/.changeset/silver-suits-open.md deleted file mode 100644 index 0796bf816..000000000 --- a/.changeset/silver-suits-open.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@portabletext/block-tools': minor ---- - -feat: improve deserialization of Word documents diff --git a/packages/block-tools/CHANGELOG.md b/packages/block-tools/CHANGELOG.md index 0fc7eda8f..2c768461d 100644 --- a/packages/block-tools/CHANGELOG.md +++ b/packages/block-tools/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 4.1.0 + +### Minor Changes + +- [#1902](https://github.com/portabletext/editor/pull/1902) [`507c5bc`](https://github.com/portabletext/editor/commit/507c5bc6f72a7f6f84cf30614497f22af253173d) Thanks [@christianhg](https://github.com/christianhg)! - feat: vastly improve deserialization of Word Online documents + + Specialized rules have been added to handle documents coming from Word Online. This fixes issues with formatting and block styles getting lost, as well as whitespace disappearing and images not being parsed correctly. + +- [#1902](https://github.com/portabletext/editor/pull/1902) [`891099c`](https://github.com/portabletext/editor/commit/891099ce17dee2574921ac7d99dfce8686e995d5) Thanks [@christianhg](https://github.com/christianhg)! - feat: improve deserialization of Word documents + +### Patch Changes + +- [#1875](https://github.com/portabletext/editor/pull/1875) [`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update sanity monorepo to ^4.16.0 + +- [#1902](https://github.com/portabletext/editor/pull/1902) [`e955746`](https://github.com/portabletext/editor/commit/e955746bef160d160b7079c16d30dbbaa7792d12) Thanks [@christianhg](https://github.com/christianhg)! - fix: remove unneeded outer trim of html string + +- [#1899](https://github.com/portabletext/editor/pull/1899) [`a17ca1e`](https://github.com/portabletext/editor/commit/a17ca1e37cae14fcbded8a8b1340ab8f25d2cf08) Thanks [@christianhg](https://github.com/christianhg)! - fix: improve whitespace handling + + Trimming whitespace is now more reliable because it happens in a post processing step after the ordinary deserialization and block flattening has been conducted. This fixes issues with lonely images in Google Docs paragraphs being removed and improves trimming whitespace after tables. + +- [#1902](https://github.com/portabletext/editor/pull/1902) [`a82c3b6`](https://github.com/portabletext/editor/commit/a82c3b61535c2074982517750c19cd1b3f5f05fb) Thanks [@christianhg](https://github.com/christianhg)! - fix: trim whitespace between block elements + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/sanity-bridge@1.2.3 + ## 4.0.2 ### Patch Changes diff --git a/packages/block-tools/package.json b/packages/block-tools/package.json index b2216250b..4371194ff 100644 --- a/packages/block-tools/package.json +++ b/packages/block-tools/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/block-tools", - "version": "4.0.2", + "version": "4.1.0", "description": "Can format HTML, Slate JSON or Sanity block array into any other format.", "keywords": [ "portable-text", diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 083f11f61..c876d1eab 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 3.0.5 + +### Patch Changes + +- [#1875](https://github.com/portabletext/editor/pull/1875) [`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update sanity monorepo to ^4.16.0 + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667), [`e955746`](https://github.com/portabletext/editor/commit/e955746bef160d160b7079c16d30dbbaa7792d12), [`507c5bc`](https://github.com/portabletext/editor/commit/507c5bc6f72a7f6f84cf30614497f22af253173d), [`a17ca1e`](https://github.com/portabletext/editor/commit/a17ca1e37cae14fcbded8a8b1340ab8f25d2cf08), [`a82c3b6`](https://github.com/portabletext/editor/commit/a82c3b61535c2074982517750c19cd1b3f5f05fb), [`891099c`](https://github.com/portabletext/editor/commit/891099ce17dee2574921ac7d99dfce8686e995d5)]: + - @portabletext/block-tools@4.1.0 + - @portabletext/sanity-bridge@1.2.3 + ## 3.0.4 ### Patch Changes diff --git a/packages/editor/package.json b/packages/editor/package.json index 2b8b2ee1a..6f55ce306 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/editor", - "version": "3.0.4", + "version": "3.0.5", "description": "Portable Text Editor made in React", "keywords": [ "sanity", @@ -134,7 +134,7 @@ "vitest-browser-react": "^2.0.2" }, "peerDependencies": { - "@portabletext/sanity-bridge": "workspace:^1.2.2", + "@portabletext/sanity-bridge": "workspace:^1.2.3", "@sanity/schema": "^4.16.0", "@sanity/types": "^4.16.0", "react": "^18.3 || ^19", diff --git a/packages/plugin-character-pair-decorator/CHANGELOG.md b/packages/plugin-character-pair-decorator/CHANGELOG.md index d73084dd9..7105c8a6f 100644 --- a/packages/plugin-character-pair-decorator/CHANGELOG.md +++ b/packages/plugin-character-pair-decorator/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 4.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + ## 4.0.4 ### Patch Changes diff --git a/packages/plugin-character-pair-decorator/package.json b/packages/plugin-character-pair-decorator/package.json index 484969758..afcacf7d4 100644 --- a/packages/plugin-character-pair-decorator/package.json +++ b/packages/plugin-character-pair-decorator/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-character-pair-decorator", - "version": "4.0.4", + "version": "4.0.5", "description": "Automatically match a pair of characters and decorate the text in between", "keywords": [ "portabletext", diff --git a/packages/plugin-emoji-picker/CHANGELOG.md b/packages/plugin-emoji-picker/CHANGELOG.md index 215a88dc3..63ae3f98e 100644 --- a/packages/plugin-emoji-picker/CHANGELOG.md +++ b/packages/plugin-emoji-picker/CHANGELOG.md @@ -1,5 +1,13 @@ # @portabletext/plugin-emoji-picker +## 3.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + - @portabletext/plugin-input-rule@1.0.5 + ## 3.0.4 ### Patch Changes diff --git a/packages/plugin-emoji-picker/package.json b/packages/plugin-emoji-picker/package.json index 71f942cfb..3026bc219 100644 --- a/packages/plugin-emoji-picker/package.json +++ b/packages/plugin-emoji-picker/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-emoji-picker", - "version": "3.0.4", + "version": "3.0.5", "description": "Easily configure an Emoji Picker for the Portable Text Editor", "keywords": [ "portabletext", @@ -78,7 +78,7 @@ "vitest": "^4.0.9" }, "peerDependencies": { - "@portabletext/editor": "workspace:^3.0.4", + "@portabletext/editor": "workspace:^3.0.5", "react": "^18.3 || ^19" }, "engines": { diff --git a/packages/plugin-input-rule/CHANGELOG.md b/packages/plugin-input-rule/CHANGELOG.md index f4975f0c5..4dd6638bf 100644 --- a/packages/plugin-input-rule/CHANGELOG.md +++ b/packages/plugin-input-rule/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-input-rule +## 1.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + ## 1.0.4 ### Patch Changes diff --git a/packages/plugin-input-rule/package.json b/packages/plugin-input-rule/package.json index c7c8999d1..8f14821dc 100644 --- a/packages/plugin-input-rule/package.json +++ b/packages/plugin-input-rule/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-input-rule", - "version": "1.0.4", + "version": "1.0.5", "description": "Easily configure input rules in the Portable Text Editor", "keywords": [ "portabletext", @@ -76,7 +76,7 @@ "vitest": "^4.0.9" }, "peerDependencies": { - "@portabletext/editor": "workspace:^3.0.4", + "@portabletext/editor": "workspace:^3.0.5", "react": "^18.3 || ^19" }, "engines": { diff --git a/packages/plugin-markdown-shortcuts/CHANGELOG.md b/packages/plugin-markdown-shortcuts/CHANGELOG.md index 522673381..50bc985c1 100644 --- a/packages/plugin-markdown-shortcuts/CHANGELOG.md +++ b/packages/plugin-markdown-shortcuts/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 4.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + - @portabletext/plugin-character-pair-decorator@4.0.5 + - @portabletext/plugin-input-rule@1.0.5 + ## 4.0.4 ### Patch Changes diff --git a/packages/plugin-markdown-shortcuts/package.json b/packages/plugin-markdown-shortcuts/package.json index 0a589441c..b9a3a1355 100644 --- a/packages/plugin-markdown-shortcuts/package.json +++ b/packages/plugin-markdown-shortcuts/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-markdown-shortcuts", - "version": "4.0.4", + "version": "4.0.5", "description": "Adds helpful Markdown shortcuts to the editor", "keywords": [ "portabletext", diff --git a/packages/plugin-one-line/CHANGELOG.md b/packages/plugin-one-line/CHANGELOG.md index a950bf32a..1f0a4f3c8 100644 --- a/packages/plugin-one-line/CHANGELOG.md +++ b/packages/plugin-one-line/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + ## 3.0.4 ### Patch Changes diff --git a/packages/plugin-one-line/package.json b/packages/plugin-one-line/package.json index 0a05b1fe0..3e75cf52e 100644 --- a/packages/plugin-one-line/package.json +++ b/packages/plugin-one-line/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-one-line", - "version": "3.0.4", + "version": "3.0.5", "description": "🤏 Restricts the Portable Text Editor to a single line", "keywords": [ "portabletext", diff --git a/packages/plugin-sdk-value/CHANGELOG.md b/packages/plugin-sdk-value/CHANGELOG.md index 76f267366..7e01e229a 100644 --- a/packages/plugin-sdk-value/CHANGELOG.md +++ b/packages/plugin-sdk-value/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 3.0.5 + +### Patch Changes + +- [#1875](https://github.com/portabletext/editor/pull/1875) [`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update sanity monorepo to ^4.16.0 + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + ## 3.0.4 ### Patch Changes diff --git a/packages/plugin-sdk-value/package.json b/packages/plugin-sdk-value/package.json index c500cf810..c58ae7c0c 100644 --- a/packages/plugin-sdk-value/package.json +++ b/packages/plugin-sdk-value/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-sdk-value", - "version": "3.0.4", + "version": "3.0.5", "description": "Synchronizes the Portable Text Editor value with the Sanity SDK, allowing for two-way editing.", "keywords": [ "portabletext", diff --git a/packages/plugin-typography/CHANGELOG.md b/packages/plugin-typography/CHANGELOG.md index 836d71bf7..ddc0cfde2 100644 --- a/packages/plugin-typography/CHANGELOG.md +++ b/packages/plugin-typography/CHANGELOG.md @@ -1,5 +1,13 @@ # @portabletext/plugin-typography +## 4.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + - @portabletext/plugin-input-rule@1.0.5 + ## 4.0.4 ### Patch Changes diff --git a/packages/plugin-typography/package.json b/packages/plugin-typography/package.json index a55a1e386..eb1ef8f9d 100644 --- a/packages/plugin-typography/package.json +++ b/packages/plugin-typography/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-typography", - "version": "4.0.4", + "version": "4.0.5", "description": "Automatically transform text to typographic variants", "keywords": [ "portabletext", @@ -75,7 +75,7 @@ "vitest": "^4.0.9" }, "peerDependencies": { - "@portabletext/editor": "workspace:^3.0.4", + "@portabletext/editor": "workspace:^3.0.5", "react": "^18.3 || ^19" }, "engines": { diff --git a/packages/sanity-bridge/CHANGELOG.md b/packages/sanity-bridge/CHANGELOG.md index b84d38656..dbe649ecf 100644 --- a/packages/sanity-bridge/CHANGELOG.md +++ b/packages/sanity-bridge/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.2.3 + +### Patch Changes + +- [#1875](https://github.com/portabletext/editor/pull/1875) [`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update sanity monorepo to ^4.16.0 + ## 1.2.2 ### Patch Changes diff --git a/packages/sanity-bridge/package.json b/packages/sanity-bridge/package.json index 2f9bcd405..0e67e7bb9 100644 --- a/packages/sanity-bridge/package.json +++ b/packages/sanity-bridge/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/sanity-bridge", - "version": "1.2.2", + "version": "1.2.3", "description": "Convert a Sanity Schema to a Portable Text Schema", "keywords": [ "sanity", diff --git a/packages/toolbar/CHANGELOG.md b/packages/toolbar/CHANGELOG.md index 034f3c0d9..b37452638 100644 --- a/packages/toolbar/CHANGELOG.md +++ b/packages/toolbar/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 4.0.5 + +### Patch Changes + +- Updated dependencies [[`9ac5955`](https://github.com/portabletext/editor/commit/9ac5955011432373fb1eddf1e9501ea9d49cb667)]: + - @portabletext/editor@3.0.5 + ## 4.0.4 ### Patch Changes diff --git a/packages/toolbar/package.json b/packages/toolbar/package.json index 8e876f0ae..a99067894 100644 --- a/packages/toolbar/package.json +++ b/packages/toolbar/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/toolbar", - "version": "4.0.4", + "version": "4.0.5", "description": "Utilities for building a toolbar for the Portable Text Editor", "keywords": [ "portabletext", @@ -62,7 +62,7 @@ "typescript-eslint": "^8.46.1" }, "peerDependencies": { - "@portabletext/editor": "workspace:^3.0.4", + "@portabletext/editor": "workspace:^3.0.5", "react": "^18.3 || ^19" }, "engines": {