@codemirror/view 6.28.2 → 6.28.3

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.28.3 (2024-07-01)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix an issue causing the IME interface to appear in the wrong spot on Chrome Windows.
6
+
1
7
  ## 6.28.2 (2024-06-21)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -7120,7 +7120,7 @@ class EditContextManager {
7120
7120
  let rects = [], prev = null;
7121
7121
  for (let i = this.toEditorPos(e.rangeStart), end = this.toEditorPos(e.rangeEnd); i < end; i++) {
7122
7122
  let rect = view.coordsForChar(i);
7123
- prev = (rect && new DOMRect(rect.left, rect.right, rect.right - rect.left, rect.bottom - rect.top))
7123
+ prev = (rect && new DOMRect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top))
7124
7124
  || prev || new DOMRect;
7125
7125
  rects.push(prev);
7126
7126
  }
package/dist/index.js CHANGED
@@ -7115,7 +7115,7 @@ class EditContextManager {
7115
7115
  let rects = [], prev = null;
7116
7116
  for (let i = this.toEditorPos(e.rangeStart), end = this.toEditorPos(e.rangeEnd); i < end; i++) {
7117
7117
  let rect = view.coordsForChar(i);
7118
- prev = (rect && new DOMRect(rect.left, rect.right, rect.right - rect.left, rect.bottom - rect.top))
7118
+ prev = (rect && new DOMRect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top))
7119
7119
  || prev || new DOMRect;
7120
7120
  rects.push(prev);
7121
7121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.28.2",
3
+ "version": "6.28.3",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",