slate-angular 1.9.1 → 1.9.2

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.
@@ -1482,7 +1482,7 @@
1482
1482
  for (var _m = __values(slate.Editor.levels(e, { at: slate.Path.parent(op.path) })), _o = _m.next(); !_o.done; _o = _m.next()) {
1483
1483
  var _p = __read(_o.value, 2), node = _p[0], path = _p[1];
1484
1484
  var key = AngularEditor.findKey(e, node);
1485
- matches.push([path, key]);
1485
+ matches.push([slate.Editor.pathRef(editor, path), key]);
1486
1486
  }
1487
1487
  }
1488
1488
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
@@ -1497,7 +1497,7 @@
1497
1497
  var _s = __read(_r.value, 2), node = _s[0], path = _s[1];
1498
1498
  if (path.length > commonPath.length) {
1499
1499
  var key = AngularEditor.findKey(e, node);
1500
- matches.push([path, key]);
1500
+ matches.push([slate.Editor.pathRef(editor, path), key]);
1501
1501
  }
1502
1502
  }
1503
1503
  }
@@ -1514,8 +1514,8 @@
1514
1514
  apply(op);
1515
1515
  try {
1516
1516
  for (var matches_1 = __values(matches), matches_1_1 = matches_1.next(); !matches_1_1.done; matches_1_1 = matches_1.next()) {
1517
- var _t = __read(matches_1_1.value, 2), path = _t[0], key = _t[1];
1518
- var _u = __read(slate.Editor.node(e, path), 1), node = _u[0];
1517
+ var _t = __read(matches_1_1.value, 2), source = _t[0], key = _t[1];
1518
+ var _u = __read(slate.Editor.node(e, slate.Path.isPath(source) ? source : source.current), 1), node = _u[0];
1519
1519
  NODE_TO_KEY.set(node, key);
1520
1520
  }
1521
1521
  }