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.es.js
CHANGED
|
@@ -550,8 +550,10 @@ var GeneralTransforms = {
|
|
|
550
550
|
}
|
|
551
551
|
var preferNext = false;
|
|
552
552
|
if (prev && next) {
|
|
553
|
-
if (Path.
|
|
554
|
-
preferNext =
|
|
553
|
+
if (Path.isSibling(prev[1], _path4)) {
|
|
554
|
+
preferNext = false;
|
|
555
|
+
} else if (Path.equals(next[1], _path4)) {
|
|
556
|
+
preferNext = true;
|
|
555
557
|
} else {
|
|
556
558
|
preferNext = Path.common(prev[1], _path4).length < Path.common(next[1], _path4).length;
|
|
557
559
|
}
|