slate 0.142.0 → 0.142.1

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.js CHANGED
@@ -3656,6 +3656,13 @@ var inlineInsertionPoint = function inlineInsertionPoint(editor, point) {
3656
3656
  };
3657
3657
  var getInsertionPoint = function getInsertionPoint(editor, point) {
3658
3658
  var _inline$point, _inline$affinity;
3659
+ if (!Text.isText(Node.getIf(editor, point.path))) {
3660
+ return {
3661
+ point: point,
3662
+ affinity: false,
3663
+ inlineAffinity: null
3664
+ };
3665
+ }
3659
3666
  var inline = inlineInsertionPoint(editor, point);
3660
3667
  var result = (_inline$point = inline === null || inline === void 0 ? void 0 : inline.point) !== null && _inline$point !== void 0 ? _inline$point : point;
3661
3668
  var affinity = inline !== null;