@portabletext/editor 3.0.5 → 3.0.6

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": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -73,7 +73,7 @@
73
73
  "slate-dom": "^0.119.0",
74
74
  "slate-react": "0.119.0",
75
75
  "xstate": "^5.24.0",
76
- "@portabletext/block-tools": "^4.1.0",
76
+ "@portabletext/block-tools": "^4.1.1",
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.16.0",
85
- "@sanity/types": "^4.16.0",
84
+ "@sanity/schema": "^4.17.0",
85
+ "@sanity/types": "^4.17.0",
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.9",
108
108
  "vitest-browser-react": "^2.0.2",
109
- "@portabletext/sanity-bridge": "1.2.3",
109
+ "@portabletext/sanity-bridge": "1.2.4",
110
110
  "@portabletext/test": "^1.0.0",
111
111
  "racejar": "2.0.0"
112
112
  },
113
113
  "peerDependencies": {
114
- "@portabletext/sanity-bridge": "^1.2.3",
115
- "@sanity/schema": "^4.16.0",
116
- "@sanity/types": "^4.16.0",
114
+ "@portabletext/sanity-bridge": "^1.2.4",
115
+ "@sanity/schema": "^4.17.0",
116
+ "@sanity/types": "^4.17.0",
117
117
  "react": "^18.3 || ^19",
118
118
  "rxjs": "^7.8.2"
119
119
  },
@@ -246,6 +246,9 @@ function createActors(config: {
246
246
  })
247
247
 
248
248
  return () => {
249
+ // Flushing pending patches and mutations before unmounting
250
+ mutationActor.send({type: 'emit changes'})
251
+
249
252
  subscription.unsubscribe()
250
253
  }
251
254
  })