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
7 changes: 0 additions & 7 deletions .changeset/fix-key-rename-undo-inverse.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rekey-point-transform-path-scoped.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rename-colliding-keys-before-merge.md

This file was deleted.

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

## 8.0.3

### Patch Changes

- [#3182](https://github.com/portabletext/editor/pull/3182) [`ec6191e`](https://github.com/portabletext/editor/commit/ec6191eb024b3f9846a01fc9d391d54cc51c0178) Thanks [@christianhg](https://github.com/christianhg)! - fix: locate a renamed node by its new key when undoing a `_key` change

Undoing an edit that renamed a node's own `_key` (a collision-avoiding rename ahead of a block merge, for example) left the node stuck under its new key instead of restoring the old one: the undo step tried to find the node by the key it had before the rename, which no longer resolved to anything once the rename had applied. Undoing now locates the node by its current key first, so a rename reverts cleanly along with everything else in the same undo step.

- [#3182](https://github.com/portabletext/editor/pull/3182) [`f910394`](https://github.com/portabletext/editor/commit/f910394080cc184aee5bb5b2af74448f7641e6d3) Thanks [@christianhg](https://github.com/christianhg)! - fix: re-point positions only at the renamed node's own path when a `_key` changes

Renaming a node's `_key` no longer drags carets, selections, or tracked ranges sitting on an unrelated node that happens to carry the same key (keys are only unique among siblings, so twins across blocks are legal). Positions on the renamed node itself follow the rename as before; everything else stays put.

- [#3182](https://github.com/portabletext/editor/pull/3182) [`e653db5`](https://github.com/portabletext/editor/commit/e653db53b87e9c6791a7320c11f23cffb9e69d24) Thanks [@christianhg](https://github.com/christianhg)! - fix: rename colliding keys before a text block merge deletes the merging block

Merging a text block into its neighbor (backspace at its start, or forward delete at the end of the block before it) could silently mint fresh `_key`s for any child span or annotation whose key collided with one already in the destination block. On the wire this read as those nodes being destroyed and re-created rather than moved, so a collaborator applying the same patches lost their caret through the merge instead of following it. The merge now renames the colliding keys first, so the emitted patches express the rename followed by the move instead of a destroy-and-create.

## 8.0.2

### 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": "8.0.2",
"version": "8.0.3",
"description": "Portable Text Editor made in React",
"keywords": [
"collaborative",
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

## 9.0.3

### Patch Changes

- Updated dependencies []:
- @portabletext/plugin-input-rule@7.0.3

## 9.0.2

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

## 2.0.3

## 2.0.2

### 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": "2.0.2",
"version": "2.0.3",
"description": "Track the drop position during drag and drop for custom drop indicators",
"keywords": [
"dnd",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-emoji-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-emoji-picker

## 8.0.3

### Patch Changes

- Updated dependencies []:
- @portabletext/plugin-input-rule@7.0.3

## 8.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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": "8.0.2",
"version": "8.0.3",
"description": "Easily configure an Emoji Picker for the Portable Text Editor",
"keywords": [
"emoji-picker",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-input-rule/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @portabletext/plugin-input-rule

## 7.0.3

## 7.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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": "7.0.2",
"version": "7.0.3",
"description": "Easily configure Input Rules in the Portable Text Editor",
"keywords": [
"input-rule",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-list-index/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @portabletext/plugin-list-index

## 2.0.3

## 2.0.2

### 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": "2.0.2",
"version": "2.0.3",
"description": "Compute the list index of each list item for custom list rendering",
"keywords": [
"list-index",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugin-markdown-shortcuts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 9.0.3

### Patch Changes

- Updated dependencies []:
- @portabletext/plugin-character-pair-decorator@9.0.3
- @portabletext/plugin-input-rule@7.0.3

## 9.0.2

### 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": "9.0.2",
"version": "9.0.3",
"description": "Add helpful Markdown shortcuts to the editor",
"keywords": [
"behaviors",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-one-line/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 8.0.3

## 8.0.2

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

## 5.0.3

## 5.0.2

### 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": "5.0.2",
"version": "5.0.3",
"description": "Allow pasting links in the Portable Text Editor",
"keywords": [
"behaviors",
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-sdk-value/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 8.0.3

## 8.0.2

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

## 2.0.3

## 2.0.2

### 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": "2.0.2",
"version": "2.0.3",
"description": "Tables as real Portable Text, edited with spreadsheet-grade selection",
"keywords": [
"plugin",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-typeahead-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-typeahead-picker

## 7.0.3

### Patch Changes

- Updated dependencies []:
- @portabletext/plugin-input-rule@7.0.3

## 7.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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": "7.0.2",
"version": "7.0.3",
"description": "Build typeahead pickers (emoji, mentions, slash commands) for the Portable Text Editor",
"keywords": [
"autocomplete",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-typography/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @portabletext/plugin-typography

## 9.0.3

### Patch Changes

- Updated dependencies []:
- @portabletext/plugin-input-rule@7.0.3

## 9.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-typography/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-typography",
"version": "9.0.2",
"version": "9.0.3",
"description": "Automatically transform text to typographic variants",
"keywords": [
"plugin",
Expand Down
2 changes: 2 additions & 0 deletions packages/toolbar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 9.0.3

## 9.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/toolbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/toolbar",
"version": "9.0.2",
"version": "9.0.3",
"description": "Utilities for building a toolbar for the Portable Text Editor",
"keywords": [
"portabletext",
Expand Down
Loading