slate 0.117.2 → 0.118.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/dist/index.es.js +4 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/transforms/general.d.ts.map +1 -1
- package/dist/slate.js +4 -2
- package/dist/slate.min.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -705,8 +705,10 @@ var GeneralTransforms = {
|
|
|
705
705
|
}
|
|
706
706
|
var preferNext = false;
|
|
707
707
|
if (prev && next) {
|
|
708
|
-
if (Path.
|
|
709
|
-
preferNext =
|
|
708
|
+
if (Path.isSibling(prev[1], _path4)) {
|
|
709
|
+
preferNext = false;
|
|
710
|
+
} else if (Path.equals(next[1], _path4)) {
|
|
711
|
+
preferNext = true;
|
|
710
712
|
} else {
|
|
711
713
|
preferNext = Path.common(prev[1], _path4).length < Path.common(next[1], _path4).length;
|
|
712
714
|
}
|