@codemirror/view 0.19.23 → 0.19.27

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,37 @@
1
+ ## 0.19.27 (2021-12-06)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug that could cause `EditorView.plugin` to inappropriately return `null` during plugin initialization.
6
+
7
+ Fix a bug where a block widget without `estimatedHeight` at the end of the document could fail to be drawn
8
+
9
+ ## 0.19.26 (2021-12-03)
10
+
11
+ ### New features
12
+
13
+ Widgets can now define a `destroy` method that is called when they are removed from the view.
14
+
15
+ ## 0.19.25 (2021-12-02)
16
+
17
+ ### Bug fixes
18
+
19
+ Widgets around replaced ranges are now visible when their side does not point towards the replaced range.
20
+
21
+ A replaced line with a line decoration no longer creates an extra empty line block in the editor.
22
+
23
+ The `scrollPastEnd` extension will now over-reserve space at the bottom of the editor on startup, to prevent restored scroll positions from being clipped.
24
+
25
+ ### New features
26
+
27
+ `EditorView.editorAttributes` and `contentAttributes` may now hold functions that produce the attributes.
28
+
29
+ ## 0.19.24 (2021-12-01)
30
+
31
+ ### Bug fixes
32
+
33
+ Fix a bug where `lineBlockAt`, for queries inside the viewport, would always return the first line in the viewport.
34
+
1
35
  ## 0.19.23 (2021-11-30)
2
36
 
3
37
  ### Bug fixes