prosemirror-transform 1.3.2 → 1.3.3

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,3 +1,9 @@
1
+ ## 1.3.3 (2021-09-29)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix an inconsistency in `deleteRange` where it would delete the parent node for ranges covering all textblocks in a given parent.
6
+
1
7
  ## 1.3.2 (2021-04-06)
2
8
 
3
9
  ### Bug fixes
package/dist/index.es.js CHANGED
@@ -1677,7 +1677,10 @@ function coveredDepths($from, $to) {
1677
1677
  $to.end(d) > $to.pos + ($to.depth - d) ||
1678
1678
  $from.node(d).type.spec.isolating ||
1679
1679
  $to.node(d).type.spec.isolating) { break }
1680
- if (start == $to.start(d)) { result.push(d); }
1680
+ if (start == $to.start(d) ||
1681
+ (d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent &&
1682
+ d && $to.start(d - 1) == start - 1))
1683
+ { result.push(d); }
1681
1684
  }
1682
1685
  return result
1683
1686
  }