@codemirror/view 6.21.0 → 6.21.2
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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 6.21.2 (2023-10-02)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Fix a regression that broke dragging text from inside the editor.
|
|
6
|
+
|
|
7
|
+
## 6.21.1 (2023-10-02)
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations.
|
|
12
|
+
|
|
1
13
|
## 6.21.0 (2023-09-29)
|
|
2
14
|
|
|
3
15
|
### Bug fixes
|
package/dist/index.cjs
CHANGED
|
@@ -1653,7 +1653,8 @@ class ContentBuilder {
|
|
|
1653
1653
|
this.flushBuffer();
|
|
1654
1654
|
else
|
|
1655
1655
|
this.pendingBuffer = 0 /* Buf.No */;
|
|
1656
|
-
if (!
|
|
1656
|
+
if (!this.posCovered() &&
|
|
1657
|
+
!(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))
|
|
1657
1658
|
this.getLine();
|
|
1658
1659
|
}
|
|
1659
1660
|
buildText(length, active, openStart) {
|
|
@@ -4070,7 +4071,7 @@ handlers.mousedown = (view, event) => {
|
|
|
4070
4071
|
let mouseSel = view.inputState.mouseSelection;
|
|
4071
4072
|
if (mouseSel) {
|
|
4072
4073
|
mouseSel.start(event);
|
|
4073
|
-
return
|
|
4074
|
+
return mouseSel.dragging === false;
|
|
4074
4075
|
}
|
|
4075
4076
|
}
|
|
4076
4077
|
return false;
|
package/dist/index.js
CHANGED
|
@@ -1650,7 +1650,8 @@ class ContentBuilder {
|
|
|
1650
1650
|
this.flushBuffer();
|
|
1651
1651
|
else
|
|
1652
1652
|
this.pendingBuffer = 0 /* Buf.No */;
|
|
1653
|
-
if (!
|
|
1653
|
+
if (!this.posCovered() &&
|
|
1654
|
+
!(openEnd && this.content.length && this.content[this.content.length - 1] instanceof BlockWidgetView))
|
|
1654
1655
|
this.getLine();
|
|
1655
1656
|
}
|
|
1656
1657
|
buildText(length, active, openStart) {
|
|
@@ -4066,7 +4067,7 @@ handlers.mousedown = (view, event) => {
|
|
|
4066
4067
|
let mouseSel = view.inputState.mouseSelection;
|
|
4067
4068
|
if (mouseSel) {
|
|
4068
4069
|
mouseSel.start(event);
|
|
4069
|
-
return
|
|
4070
|
+
return mouseSel.dragging === false;
|
|
4070
4071
|
}
|
|
4071
4072
|
}
|
|
4072
4073
|
return false;
|