@codemirror/view 0.19.21 → 0.19.25
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 +46 -0
- package/dist/index.cjs +276 -181
- package/dist/index.d.ts +69 -17
- package/dist/index.js +276 -181
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
## 0.19.25 (2021-12-02)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Widgets around replaced ranges are now visible when their side does not point towards the replaced range.
|
|
6
|
+
|
|
7
|
+
A replaced line with a line decoration no longer creates an extra empty line block in the editor.
|
|
8
|
+
|
|
9
|
+
The `scrollPastEnd` extension will now over-reserve space at the bottom of the editor on startup, to prevent restored scroll positions from being clipped.
|
|
10
|
+
|
|
11
|
+
### New features
|
|
12
|
+
|
|
13
|
+
`EditorView.editorAttributes` and `contentAttributes` may now hold functions that produce the attributes.
|
|
14
|
+
|
|
15
|
+
## 0.19.24 (2021-12-01)
|
|
16
|
+
|
|
17
|
+
### Bug fixes
|
|
18
|
+
|
|
19
|
+
Fix a bug where `lineBlockAt`, for queries inside the viewport, would always return the first line in the viewport.
|
|
20
|
+
|
|
21
|
+
## 0.19.23 (2021-11-30)
|
|
22
|
+
|
|
23
|
+
### Bug fixes
|
|
24
|
+
|
|
25
|
+
Fix an issue where after some kinds of changes, `EditorView.viewportLineBlocks` held an out-of-date set of blocks.
|
|
26
|
+
|
|
27
|
+
### New features
|
|
28
|
+
|
|
29
|
+
Export `EditorView.documentPadding`, with information about the vertical padding of the document.
|
|
30
|
+
|
|
31
|
+
## 0.19.22 (2021-11-30)
|
|
32
|
+
|
|
33
|
+
### Bug fixes
|
|
34
|
+
|
|
35
|
+
Fix an issue where editors with large vertical padding (for example via `scrollPastEnd`) could sometimes lose their scroll position on Chrome.
|
|
36
|
+
|
|
37
|
+
Avoid some unnecessary DOM measuring work by more carefully checking whether it is needed.
|
|
38
|
+
|
|
39
|
+
### New features
|
|
40
|
+
|
|
41
|
+
The new `elementAtHeight`, `lineBlockAtHeight`, and `lineBlockAt` methods provide a simpler and more efficient replacement for the (now deprecated) `blockAtHeight`, `visualLineAtHeight`, and `visualLineAt` methods.
|
|
42
|
+
|
|
43
|
+
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.
|
|
44
|
+
|
|
45
|
+
The editor view's new `viewportLineBlocks` property provides an array of in-viewport line blocks, and replaces the (now deprecated) `viewportLines` method.
|
|
46
|
+
|
|
1
47
|
## 0.19.21 (2021-11-26)
|
|
2
48
|
|
|
3
49
|
### Bug fixes
|