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
15 changes: 0 additions & 15 deletions .changeset/apply-autoresolve-to-engine-block.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/delete-forward-expanded-selection.md

This file was deleted.

20 changes: 20 additions & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 7.10.12

### Patch Changes

- [#2968](https://github.com/portabletext/editor/pull/2968) [`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1) Thanks [@christianhg](https://github.com/christianhg)! - fix: apply value-sync auto-resolutions to the block the engine receives

When an `update value` carried a block the editor could repair
automatically (a child missing its `_key`, an empty `children` array,
unused `markDefs`), the repair was emitted as patches while the raw,
un-repaired block proceeded into the editor. The editor then held an
invalid shape that diverged from the document: the emitted patch minted
one key, internal normalization minted another. The repair is now
applied to the block before it enters the editor, so the emitted patch
and the editor state agree, and the editor never holds the un-repaired
shape.

- [#3008](https://github.com/portabletext/editor/pull/3008) [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb) Thanks [@christianhg](https://github.com/christianhg)! - fix: require a collapsed selection for the forward-delete empty-block hop

Selecting a range that ends in an empty block (highlighting empty lines, for example) and pressing Delete now deletes the whole range. Previously the forward-delete rule that hops a caret past an empty block also matched expanded selections, so only the block at the focus edge was affected and the covered empty lines remained. Backspace was unaffected.

## 7.10.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/editor",
"version": "7.10.11",
"version": "7.10.12",
"description": "Portable Text Editor made in React",
"keywords": [
"collaborative",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugin-character-pair-decorator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 8.0.40

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12
- @portabletext/plugin-input-rule@6.0.9

## 8.0.39

### 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": "8.0.39",
"version": "8.0.40",
"description": "Automatically match a pair of characters and decorate the text in between",
"keywords": [
"behaviors",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-dnd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-dnd

## 1.0.24

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 1.0.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dnd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-dnd",
"version": "1.0.23",
"version": "1.0.24",
"description": "Track the drop position during drag and drop for custom drop indicators",
"keywords": [
"dnd",
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

## 7.0.40

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12
- @portabletext/plugin-input-rule@6.0.9

## 7.0.39

### 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": "7.0.39",
"version": "7.0.40",
"description": "Easily configure an Emoji Picker for the Portable Text Editor",
"keywords": [
"emoji-picker",
Expand Down Expand Up @@ -84,7 +84,7 @@
"vitest": "catalog:tooling"
},
"peerDependencies": {
"@portabletext/editor": "workspace:^7.10.11",
"@portabletext/editor": "workspace:^7.10.12",
"react": "^19.2"
},
"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

## 6.0.9

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 6.0.8

### 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": "6.0.8",
"version": "6.0.9",
"description": "Easily configure Input Rules in the Portable Text Editor",
"keywords": [
"input-rule",
Expand Down Expand Up @@ -84,7 +84,7 @@
"vitest": "catalog:tooling"
},
"peerDependencies": {
"@portabletext/editor": "workspace:^7.10.11",
"@portabletext/editor": "workspace:^7.10.12",
"react": "^19.2"
},
"engines": {
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-list-index/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-list-index

## 1.0.24

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 1.0.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-list-index/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-list-index",
"version": "1.0.23",
"version": "1.0.24",
"description": "Compute the list index of each list item for custom list rendering",
"keywords": [
"list-index",
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

## 8.0.40

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12
- @portabletext/plugin-character-pair-decorator@8.0.40
- @portabletext/plugin-input-rule@6.0.9

## 8.0.39

### 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": "8.0.39",
"version": "8.0.40",
"description": "Add helpful Markdown shortcuts to the editor",
"keywords": [
"behaviors",
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

## 7.0.39

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 7.0.38

### 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": "7.0.38",
"version": "7.0.39",
"description": "Restrict the Portable Text Editor to a single line",
"keywords": [
"behaviors",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-paste-link/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-paste-link

## 4.0.39

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 4.0.38

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-paste-link/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-paste-link",
"version": "4.0.38",
"version": "4.0.39",
"description": "Allow pasting links in the Portable Text Editor",
"keywords": [
"behaviors",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-sdk-value/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 7.1.4

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 7.1.3

### 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": "7.1.3",
"version": "7.1.4",
"description": "Connect a Portable Text Editor with a Sanity document using the SDK",
"keywords": [
"@sanity/sdk",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-table/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-table

## 1.3.9

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 1.3.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-table",
"version": "1.3.8",
"version": "1.3.9",
"description": "Tables as real Portable Text, edited with spreadsheet-grade selection",
"keywords": [
"plugin",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugin-typeahead-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @portabletext/plugin-typeahead-picker

## 6.0.40

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12
- @portabletext/plugin-input-rule@6.0.9

## 6.0.39

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-typeahead-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-typeahead-picker",
"version": "6.0.39",
"version": "6.0.40",
"description": "Build typeahead pickers (emoji, mentions, slash commands) for the Portable Text Editor",
"keywords": [
"autocomplete",
Expand Down Expand Up @@ -89,7 +89,7 @@
"vitest": "catalog:tooling"
},
"peerDependencies": {
"@portabletext/editor": "workspace:^7.10.11",
"@portabletext/editor": "workspace:^7.10.12",
"react": "^19.2"
},
"engines": {
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

## 8.0.40

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12
- @portabletext/plugin-input-rule@6.0.9

## 8.0.39

### 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": "8.0.39",
"version": "8.0.40",
"description": "Automatically transform text to typographic variants",
"keywords": [
"plugin",
Expand Down Expand Up @@ -81,7 +81,7 @@
"vitest": "catalog:tooling"
},
"peerDependencies": {
"@portabletext/editor": "workspace:^7.10.11",
"@portabletext/editor": "workspace:^7.10.12",
"react": "^19.2"
},
"engines": {
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

## 8.0.39

### Patch Changes

- Updated dependencies [[`5ddcc5b`](https://github.com/portabletext/editor/commit/5ddcc5b42ec2560cde1650489d9219212c5d67b1), [`c600e92`](https://github.com/portabletext/editor/commit/c600e92bb94ec52762f63983bbd48f7b64654bfb)]:
- @portabletext/editor@7.10.12

## 8.0.38

### 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": "8.0.38",
"version": "8.0.39",
"description": "Utilities for building a toolbar for the Portable Text Editor",
"keywords": [
"portabletext",
Expand Down Expand Up @@ -81,7 +81,7 @@
"vitest": "catalog:tooling"
},
"peerDependencies": {
"@portabletext/editor": "workspace:^7.10.11",
"@portabletext/editor": "workspace:^7.10.12",
"react": "^19.2.7"
},
"engines": {
Expand Down
Loading