@codemirror/view 0.19.6 → 0.19.10

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,53 @@
1
+ ## 0.19.10 (2021-11-02)
2
+
3
+ ### Bug fixes
4
+
5
+ Don't crash when `IntersectionObserver` fires its callback without any records. Try to handle some backspace issues on Chrome Android
6
+
7
+ Using backspace near uneditable widgets on Chrome Android should now be more reliable.
8
+
9
+ Work around a number of browser bugs by always rendering zero-width spaces around in-content widgets, so that browsers will treat the positions near them as valid cursor positions and not try to run composition across widget boundaries.
10
+
11
+ Work around bogus composition changes created by Chrome Android after handled backspace presses.
12
+
13
+ Work around an issue where tapping on an uneditable node in the editor would sometimes fail to show the virtual keyboard on Chrome Android.
14
+
15
+ Prevent translation services from translating the editor content. Show direction override characters as special chars by default
16
+
17
+ `specialChars` will now, by default, replace direction override chars, to mitigate https://trojansource.codes/ attacks.
18
+
19
+ ### New features
20
+
21
+ The editor view will, if `parent` is given but `root` is not, derive the root from the parent element.
22
+
23
+ Line decorations now accept a `class` property to directly add DOM classes to the line.
24
+
25
+ ## 0.19.9 (2021-10-01)
26
+
27
+ ### Bug fixes
28
+
29
+ Fix an issue where some kinds of reflows in the surrounding document could move unrendered parts of the editor into view without the editor noticing and updating its viewport.
30
+
31
+ Fix an occasional crash in the selection drawing extension.
32
+
33
+ ## 0.19.8 (2021-09-26)
34
+
35
+ ### Bug fixes
36
+
37
+ Fix a bug that could, on DOM changes near block widgets, insert superfluous line breaks.
38
+
39
+ Make interacting with a destroyed editor view do nothing, rather than crash, to avoid tripping people up with pending timeouts and such.
40
+
41
+ Make sure `ViewUpdate.viewportChanged` is true whenever `visibleRanges` changes, so that plugins acting only on visible ranges can use it to check when to update.
42
+
43
+ Fix line-wise cut on empty lines.
44
+
45
+ ## 0.19.7 (2021-09-13)
46
+
47
+ ### Bug fixes
48
+
49
+ The view is now aware of the new `EditorState.readOnly` property, and suppresses events that modify the document when it is true.
50
+
1
51
  ## 0.19.6 (2021-09-10)
2
52
 
3
53
  ### Bug fixes