prosemirror-view
Advanced tools
Comparing version 1.23.9 to 1.23.10
{ | ||
"name": "prosemirror-view", | ||
"version": "1.23.9", | ||
"version": "1.23.10", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -515,5 +515,6 @@ function compareObjs(a, b) { | ||
let end = children[i + 1], dSize | ||
if (end == -1 || oldStart > end + oldOffset) continue | ||
if (oldEnd >= children[i] + oldOffset) { | ||
children[i + 1] = -1 | ||
if (end < 0 || oldStart > end + oldOffset) continue | ||
let start = children[i] + oldOffset | ||
if (oldEnd >= start) { | ||
children[i + 1] = oldStart <= start ? -2 : -1 | ||
} else if (newStart >= offset && (dSize = (newEnd - newStart) - (oldEnd - oldStart))) { | ||
@@ -530,3 +531,8 @@ children[i] += dSize | ||
let mustRebuild = false | ||
for (let i = 0; i < children.length; i += 3) if (children[i + 1] == -1) { // Touched nodes | ||
for (let i = 0; i < children.length; i += 3) if (children[i + 1] < 0) { // Touched nodes | ||
if (children[i + 1] == -2) { | ||
mustRebuild = true | ||
children[i + 1] = -1 | ||
continue | ||
} | ||
let from = mapping.map(oldChildren[i] + oldOffset), fromLocal = from - offset | ||
@@ -533,0 +539,0 @@ if (fromLocal < 0 || fromLocal >= node.content.size) { |
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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1606989
14940