@remirror/core-utils
Advanced tools
Comparing version 1.0.0-next.58 to 1.0.0-next.59
# @remirror/core-utils | ||
## 1.0.0-next.59 | ||
> 2020-12-12 | ||
### Patch Changes | ||
- [`e69115f1`](https://github.com/remirror/remirror/commit/e69115f141c12c7dd21bd89c716b12b279414364) [#825](https://github.com/remirror/remirror/pull/825) Thanks [@tommoor](https://github.com/tommoor)! - Fix `getMarkRange` not returning the entire mark length, instead stopping at the first change in mark. This fix also resolves the infinite loop described in #823. | ||
- Updated dependencies []: | ||
- @remirror/core-constants@1.0.0-next.59 | ||
- @remirror/core-helpers@1.0.0-next.59 | ||
- @remirror/core-types@1.0.0-next.59 | ||
- @remirror/pm@1.0.0-next.59 | ||
## 1.0.0-next.58 | ||
@@ -4,0 +18,0 @@ |
@@ -139,9 +139,10 @@ "use strict"; | ||
if (mark) { | ||
for (var startIndex = $pos.index(), startPos = $pos.start() + start.offset; startIndex > 0 && mark.isInSet($pos.parent.child(startIndex - 1).marks); ) startIndex -= 1, | ||
for (var startIndex = $pos.index(), startPos = $pos.start() + start.offset, endIndex = startIndex + 1, endPos = startPos + start.node.nodeSize; startIndex > 0 && mark.isInSet($pos.parent.child(startIndex - 1).marks); ) startIndex -= 1, | ||
startPos -= $pos.parent.child(startIndex).nodeSize; | ||
var from = startPos, to = startPos + start.node.nodeSize; | ||
for (;endIndex < $pos.parent.childCount && mark.isInSet($pos.parent.child(endIndex).marks); ) endPos += $pos.parent.child(endIndex).nodeSize, | ||
endIndex += 1; | ||
return { | ||
from: from, | ||
to: to, | ||
text: $pos.doc.textBetween(from, to, coreConstants.LEAF_NODE_REPLACING_CHARACTER, "\n\n"), | ||
from: startPos, | ||
to: endPos, | ||
text: $pos.doc.textBetween(startPos, endPos, coreConstants.LEAF_NODE_REPLACING_CHARACTER, "\n\n"), | ||
mark: mark | ||
@@ -148,0 +149,0 @@ }; |
{ | ||
"name": "@remirror/core-utils", | ||
"version": "1.0.0-next.58", | ||
"version": "1.0.0-next.59", | ||
"description": "Core utilities for dealing with the dom and prosemirror within remirror", | ||
@@ -24,5 +24,5 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core-utils", | ||
"@babel/runtime": "^7.12.0", | ||
"@remirror/core-constants": "1.0.0-next.58", | ||
"@remirror/core-helpers": "1.0.0-next.58", | ||
"@remirror/core-types": "1.0.0-next.58", | ||
"@remirror/core-constants": "1.0.0-next.59", | ||
"@remirror/core-helpers": "1.0.0-next.59", | ||
"@remirror/core-types": "1.0.0-next.59", | ||
"@types/min-document": "^2.19.0", | ||
@@ -33,3 +33,3 @@ "min-document": "^2.19.0", | ||
"devDependencies": { | ||
"@remirror/pm": "1.0.0-next.58", | ||
"@remirror/pm": "1.0.0-next.59", | ||
"@types/node": "^14.14.3", | ||
@@ -39,3 +39,3 @@ "domino": "^2.1.6" | ||
"peerDependencies": { | ||
"@remirror/pm": "1.0.0-next.58", | ||
"@remirror/pm": "1.0.0-next.59", | ||
"@types/node": "*" | ||
@@ -42,0 +42,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
484026
12926
+ Added@remirror/core-constants@1.0.0-next.59(transitive)
+ Added@remirror/core-helpers@1.0.0-next.59(transitive)
+ Added@remirror/core-types@1.0.0-next.59(transitive)
+ Added@remirror/pm@1.0.0-next.59(transitive)
- Removed@remirror/core-constants@1.0.0-next.58(transitive)
- Removed@remirror/core-helpers@1.0.0-next.58(transitive)
- Removed@remirror/core-types@1.0.0-next.58(transitive)
- Removed@remirror/pm@1.0.0-next.58(transitive)