Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/dependencies-GH-1875.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fiery-readers-grin.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/flat-terms-pull.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/new-things-rest.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-rice-pump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-suits-open.md

This file was deleted.

25 changes: 25 additions & 0 deletions packages/block-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/block-tools/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/editor",
"version": "3.0.4",
"version": "3.0.5",
"description": "Portable Text Editor made in React",
"keywords": [
"sanity",
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-character-pair-decorator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-character-pair-decorator/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugin-emoji-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-emoji-picker/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-input-rule/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-input-rule/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
9 changes: 9 additions & 0 deletions packages/plugin-markdown-shortcuts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-markdown-shortcuts/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-one-line/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-one-line/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/plugin-sdk-value/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sdk-value/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugin-typography/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-typography/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions packages/sanity-bridge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity-bridge/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/toolbar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/toolbar/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down