@codemirror/view 0.19.20 → 0.19.24

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,41 @@
1
+ ## 0.19.24 (2021-12-01)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug where `lineBlockAt`, for queries inside the viewport, would always return the first line in the viewport.
6
+
7
+ ## 0.19.23 (2021-11-30)
8
+
9
+ ### Bug fixes
10
+
11
+ Fix an issue where after some kinds of changes, `EditorView.viewportLineBlocks` held an out-of-date set of blocks.
12
+
13
+ ### New features
14
+
15
+ Export `EditorView.documentPadding`, with information about the vertical padding of the document.
16
+
17
+ ## 0.19.22 (2021-11-30)
18
+
19
+ ### Bug fixes
20
+
21
+ Fix an issue where editors with large vertical padding (for example via `scrollPastEnd`) could sometimes lose their scroll position on Chrome.
22
+
23
+ Avoid some unnecessary DOM measuring work by more carefully checking whether it is needed.
24
+
25
+ ### New features
26
+
27
+ The new `elementAtHeight`, `lineBlockAtHeight`, and `lineBlockAt` methods provide a simpler and more efficient replacement for the (now deprecated) `blockAtHeight`, `visualLineAtHeight`, and `visualLineAt` methods.
28
+
29
+ The editor view now exports a `documentTop` getter that gives you the vertical position of the top of the document. All height info is queried and reported relative to this top.
30
+
31
+ The editor view's new `viewportLineBlocks` property provides an array of in-viewport line blocks, and replaces the (now deprecated) `viewportLines` method.
32
+
33
+ ## 0.19.21 (2021-11-26)
34
+
35
+ ### Bug fixes
36
+
37
+ Fix a problem where the DOM update would unnecessarily trigger browser relayouts.
38
+
1
39
  ## 0.19.20 (2021-11-19)
2
40
 
3
41
  ### Bug fixes