@codemirror/view 0.19.22 → 0.19.26

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