slate 0.72.8 → 0.73.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # slate
2
2
 
3
+ ## 0.73.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#4848](https://github.com/ianstormtaylor/slate/pull/4848) [`482b090e`](https://github.com/ianstormtaylor/slate/commit/482b090e6f6f4c5fbc85e6dd2ea65387156ae8b5) Thanks [@rockettomatooo](https://github.com/rockettomatooo)! - fix point transform for insert_text operations to account for affinity
8
+
3
9
  ## 0.72.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -3340,7 +3340,7 @@ var Point = {
3340
3340
 
3341
3341
  case 'insert_text':
3342
3342
  {
3343
- if (Path.equals(op.path, path) && op.offset <= offset) {
3343
+ if (Path.equals(op.path, path) && (op.offset < offset || op.offset === offset && affinity === 'forward')) {
3344
3344
  p.offset += op.text.length;
3345
3345
  }
3346
3346