@portabletext/editor 2.20.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portabletext/editor",
3
- "version": "2.20.0",
3
+ "version": "2.21.0",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -73,7 +73,7 @@
73
73
  "slate-dom": "^0.118.1",
74
74
  "slate-react": "0.118.2",
75
75
  "xstate": "^5.24.0",
76
- "@portabletext/block-tools": "^4.0.1",
76
+ "@portabletext/block-tools": "^4.0.2",
77
77
  "@portabletext/keyboard-shortcuts": "^2.1.0",
78
78
  "@portabletext/patches": "^2.0.0",
79
79
  "@portabletext/schema": "^2.0.0"
@@ -81,8 +81,8 @@
81
81
  "devDependencies": {
82
82
  "@sanity/diff-match-patch": "^3.2.0",
83
83
  "@sanity/pkg-utils": "^9.0.3",
84
- "@sanity/schema": "^4.14.1",
85
- "@sanity/types": "^4.14.1",
84
+ "@sanity/schema": "^4.14.2",
85
+ "@sanity/types": "^4.14.2",
86
86
  "@types/debug": "^4.1.12",
87
87
  "@types/lodash": "^4.17.20",
88
88
  "@types/lodash.startcase": "^4.4.9",
@@ -106,14 +106,14 @@
106
106
  "vite": "^7.1.12",
107
107
  "vitest": "^4.0.6",
108
108
  "vitest-browser-react": "^2.0.2",
109
- "@portabletext/sanity-bridge": "1.2.1",
109
+ "@portabletext/sanity-bridge": "1.2.2",
110
110
  "@portabletext/test": "^1.0.0",
111
111
  "racejar": "2.0.0"
112
112
  },
113
113
  "peerDependencies": {
114
- "@portabletext/sanity-bridge": "^1.2.1",
115
- "@sanity/schema": "^4.14.1",
116
- "@sanity/types": "^4.14.1",
114
+ "@portabletext/sanity-bridge": "^1.2.2",
115
+ "@sanity/schema": "^4.14.2",
116
+ "@sanity/types": "^4.14.2",
117
117
  "react": "^18.3 || ^19",
118
118
  "rxjs": "^7.8.2"
119
119
  },
@@ -158,6 +158,7 @@ export type SyntheticBehaviorEvent =
158
158
  block: BlockWithOptionalKey
159
159
  placement: InsertPlacement
160
160
  select?: 'start' | 'end' | 'none'
161
+ at?: NonNullable<EditorSelection>
161
162
  }
162
163
  | {
163
164
  type: StrictExtract<SyntheticBehaviorEventType, 'insert.child'>