@codemirror/view 6.39.5 → 6.39.7
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 +12 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 6.39.7 (2025-12-24)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Fix a bug that could sometimes cause the document to become mangled during composition.
|
|
6
|
+
|
|
7
|
+
## 6.39.6 (2025-12-23)
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
Fix an issue when composing on the boundary of a decoration, where the text after the composition would get garbled.
|
|
12
|
+
|
|
1
13
|
## 6.39.5 (2025-12-22)
|
|
2
14
|
|
|
3
15
|
### Bug fixes
|
package/dist/index.cjs
CHANGED
|
@@ -2304,6 +2304,9 @@ class TileBuilder {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
this.cache.reused.set(mark, 2 /* Reused.DOM */);
|
|
2306
2306
|
}
|
|
2307
|
+
let oldTile = Tile.get(composition.text);
|
|
2308
|
+
if (oldTile)
|
|
2309
|
+
this.cache.reused.set(oldTile, 2 /* Reused.DOM */);
|
|
2307
2310
|
let text = new TextTile(composition.text, composition.text.nodeValue);
|
|
2308
2311
|
text.flags |= 8 /* TileFlag.Composition */;
|
|
2309
2312
|
head.append(text);
|
|
@@ -2604,6 +2607,7 @@ class TileUpdate {
|
|
|
2604
2607
|
if (composition && next.fromA <= composition.range.fromA && next.toA >= composition.range.toA) {
|
|
2605
2608
|
this.emit(posB, composition.range.fromB);
|
|
2606
2609
|
this.builder.addComposition(composition, compositionContext);
|
|
2610
|
+
this.text.skip(composition.range.toB - composition.range.fromB);
|
|
2607
2611
|
this.emit(composition.range.toB, next.toB);
|
|
2608
2612
|
}
|
|
2609
2613
|
else {
|
package/dist/index.js
CHANGED
|
@@ -2300,6 +2300,9 @@ class TileBuilder {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
this.cache.reused.set(mark, 2 /* Reused.DOM */);
|
|
2302
2302
|
}
|
|
2303
|
+
let oldTile = Tile.get(composition.text);
|
|
2304
|
+
if (oldTile)
|
|
2305
|
+
this.cache.reused.set(oldTile, 2 /* Reused.DOM */);
|
|
2303
2306
|
let text = new TextTile(composition.text, composition.text.nodeValue);
|
|
2304
2307
|
text.flags |= 8 /* TileFlag.Composition */;
|
|
2305
2308
|
head.append(text);
|
|
@@ -2600,6 +2603,7 @@ class TileUpdate {
|
|
|
2600
2603
|
if (composition && next.fromA <= composition.range.fromA && next.toA >= composition.range.toA) {
|
|
2601
2604
|
this.emit(posB, composition.range.fromB);
|
|
2602
2605
|
this.builder.addComposition(composition, compositionContext);
|
|
2606
|
+
this.text.skip(composition.range.toB - composition.range.fromB);
|
|
2603
2607
|
this.emit(composition.range.toB, next.toB);
|
|
2604
2608
|
}
|
|
2605
2609
|
else {
|