prosemirror-view 1.31.0 → 1.31.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/viewdesc.ts +4 -3
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2190,6 +2190,9 @@ var ViewTreeUpdater = function () {
|
|
|
2190
2190
|
return true;
|
|
2191
2191
|
} else if (!locked && (updated = this.recreateWrapper(next, node, outerDeco, innerDeco, view, pos))) {
|
|
2192
2192
|
this.top.children[this.index] = updated;
|
|
2193
|
+
updated.dirty = CONTENT_DIRTY;
|
|
2194
|
+
updated.updateChildren(view, pos + 1);
|
|
2195
|
+
updated.dirty = NOT_DIRTY;
|
|
2193
2196
|
this.changed = true;
|
|
2194
2197
|
this.index++;
|
|
2195
2198
|
return true;
|
|
@@ -2224,9 +2227,6 @@ var ViewTreeUpdater = function () {
|
|
|
2224
2227
|
_iterator.f();
|
|
2225
2228
|
}
|
|
2226
2229
|
|
|
2227
|
-
wrapper.dirty = CONTENT_DIRTY;
|
|
2228
|
-
wrapper.updateChildren(view, pos + 1);
|
|
2229
|
-
wrapper.dirty = NOT_DIRTY;
|
|
2230
2230
|
return wrapper;
|
|
2231
2231
|
}
|
|
2232
2232
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -1808,6 +1808,9 @@ class ViewTreeUpdater {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
else if (!locked && (updated = this.recreateWrapper(next, node, outerDeco, innerDeco, view, pos))) {
|
|
1810
1810
|
this.top.children[this.index] = updated;
|
|
1811
|
+
updated.dirty = CONTENT_DIRTY;
|
|
1812
|
+
updated.updateChildren(view, pos + 1);
|
|
1813
|
+
updated.dirty = NOT_DIRTY;
|
|
1811
1814
|
this.changed = true;
|
|
1812
1815
|
this.index++;
|
|
1813
1816
|
return true;
|
|
@@ -1830,9 +1833,6 @@ class ViewTreeUpdater {
|
|
|
1830
1833
|
next.children = [];
|
|
1831
1834
|
for (let ch of wrapper.children)
|
|
1832
1835
|
ch.parent = wrapper;
|
|
1833
|
-
wrapper.dirty = CONTENT_DIRTY;
|
|
1834
|
-
wrapper.updateChildren(view, pos + 1);
|
|
1835
|
-
wrapper.dirty = NOT_DIRTY;
|
|
1836
1836
|
return wrapper;
|
|
1837
1837
|
}
|
|
1838
1838
|
// Insert the node as a newly created node desc.
|
package/package.json
CHANGED
package/src/viewdesc.ts
CHANGED
|
@@ -1244,6 +1244,9 @@ class ViewTreeUpdater {
|
|
|
1244
1244
|
return true
|
|
1245
1245
|
} else if (!locked && (updated = this.recreateWrapper(next, node, outerDeco, innerDeco, view, pos))) {
|
|
1246
1246
|
this.top.children[this.index] = updated
|
|
1247
|
+
updated.dirty = CONTENT_DIRTY
|
|
1248
|
+
updated.updateChildren(view, pos + 1)
|
|
1249
|
+
updated.dirty = NOT_DIRTY
|
|
1247
1250
|
this.changed = true
|
|
1248
1251
|
this.index++
|
|
1249
1252
|
return true
|
|
@@ -1265,9 +1268,7 @@ class ViewTreeUpdater {
|
|
|
1265
1268
|
wrapper.children = next.children
|
|
1266
1269
|
next.children = []
|
|
1267
1270
|
for (let ch of wrapper.children) ch.parent = wrapper
|
|
1268
|
-
|
|
1269
|
-
wrapper.updateChildren(view, pos + 1)
|
|
1270
|
-
wrapper.dirty = NOT_DIRTY
|
|
1271
|
+
|
|
1271
1272
|
return wrapper
|
|
1272
1273
|
}
|
|
1273
1274
|
|