@codemirror/view 0.19.29 → 0.19.33
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 +50 -0
- package/dist/index.cjs +284 -125
- package/dist/index.d.ts +53 -2
- package/dist/index.js +285 -127
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
## 0.19.33 (2021-12-16)
|
|
2
|
+
|
|
3
|
+
### Breaking changes
|
|
4
|
+
|
|
5
|
+
`EditorView.scrollTo` and `EditorView.centerOn` are deprecated in favor of `EditorView.scrollIntoView`, and will be removed in the next breaking release.
|
|
6
|
+
|
|
7
|
+
### Bug fixes
|
|
8
|
+
|
|
9
|
+
Fix an issue that could cause the editor to unnecessarily interfere with composition (especially visible on macOS Chrome).
|
|
10
|
+
|
|
11
|
+
A composition started with multiple lines selected will no longer be interruptd by the editor.
|
|
12
|
+
|
|
13
|
+
### New features
|
|
14
|
+
|
|
15
|
+
The new `EditorView.scrollIntoView` function allows you to do more fine-grained scrolling.
|
|
16
|
+
|
|
17
|
+
## 0.19.32 (2021-12-15)
|
|
18
|
+
|
|
19
|
+
### Bug fixes
|
|
20
|
+
|
|
21
|
+
Fix a bug where CodeMirror's own event handers would run even after a user-supplied handler called `preventDefault` on an event.
|
|
22
|
+
|
|
23
|
+
Properly draw selections when negative text-indent is used for soft wrapping.
|
|
24
|
+
|
|
25
|
+
Fix an issue where `viewportLineBlocks` could hold inaccurate height information when the vertical scaling changed.
|
|
26
|
+
|
|
27
|
+
Fixes drop cursor positioning when the document is scrolled. Force a content measure when the editor comes into view
|
|
28
|
+
|
|
29
|
+
Fix a bug that could cause the editor to not measure its layout the first time it came into view.
|
|
30
|
+
|
|
31
|
+
## 0.19.31 (2021-12-13)
|
|
32
|
+
|
|
33
|
+
### New features
|
|
34
|
+
|
|
35
|
+
The package now exports a `dropCursor` extension that draws a cursor at the current drop position when dragging content over the editor.
|
|
36
|
+
|
|
37
|
+
## 0.19.30 (2021-12-13)
|
|
38
|
+
|
|
39
|
+
### Bug fixes
|
|
40
|
+
|
|
41
|
+
Refine Android key event handling to work properly in a GBoard corner case where pressing Enter fires a bunch of spurious deleteContentBackward events.
|
|
42
|
+
|
|
43
|
+
Fix a crash in `drawSelection` for some kinds of selections.
|
|
44
|
+
|
|
45
|
+
Prevent a possibility where some content updates causes duplicate text to remain in DOM.
|
|
46
|
+
|
|
47
|
+
### New features
|
|
48
|
+
|
|
49
|
+
Support a `maxLength` option to `MatchDecorator` that allows user code to control how far it scans into hidden parts of viewport lines.
|
|
50
|
+
|
|
1
51
|
## 0.19.29 (2021-12-09)
|
|
2
52
|
|
|
3
53
|
### Bug fixes
|