slate 0.72.3 → 0.72.8-202203118579

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,13 @@
1
1
  # slate
2
2
 
3
+ ## 0.72.8-202203118579
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4816](https://github.com/ianstormtaylor/slate/pull/4816) [`6d62abc1`](https://github.com/ianstormtaylor/slate/commit/6d62abc1039cf93ce90bd9332a505471df8118ba) Thanks [@dylans](https://github.com/dylans)! - - Revert #4749, DOM & Slate selection are mismatching
8
+
9
+ * [#4804](https://github.com/ianstormtaylor/slate/pull/4804) [`03861afc`](https://github.com/ianstormtaylor/slate/commit/03861afc62c3b27339d20151ca8a3e52f51ff973) Thanks [@suilang](https://github.com/suilang)! - update insertText logic when selection is not collapsed
10
+
3
11
  ## 0.72.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -2105,7 +2105,7 @@ var Editor = {
2105
2105
  match: n => Editor.isBlock(editor, n)
2106
2106
  });
2107
2107
  var blockPath = endBlock ? endBlock[1] : [];
2108
- var first = Editor.start(editor, []);
2108
+ var first = Editor.start(editor, start);
2109
2109
  var before = {
2110
2110
  anchor: first,
2111
2111
  focus: end
@@ -5847,7 +5847,8 @@ var TextTransforms = {
5847
5847
  return;
5848
5848
  }
5849
5849
 
5850
- var pointRef = Editor.pointRef(editor, end);
5850
+ var start = Range.start(at);
5851
+ var pointRef = Editor.pointRef(editor, start);
5851
5852
  Transforms.delete(editor, {
5852
5853
  at,
5853
5854
  voids