@codemirror/view 0.19.48 → 0.20.2

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,49 @@
1
+ ## 0.20.2 (2022-04-22)
2
+
3
+ ### New features
4
+
5
+ The new `hideOn` option to `hoverTooltip` allows more fine-grained control over when the tooltip should hide.
6
+
7
+ ## 0.20.1 (2022-04-20)
8
+
9
+ ### Bug fixes
10
+
11
+ Remove debug statements that accidentally made it into 0.20.0.
12
+
13
+ Fix a regression in `moveVertically`.
14
+
15
+ ## 0.20.0 (2022-04-20)
16
+
17
+ ### Breaking changes
18
+
19
+ The deprecated interfaces `blockAtHeight`, `visualLineAtHeight`, `viewportLines`, `visualLineAt`, `scrollPosIntoView`, `scrollTo`, and `centerOn` were removed from the library.
20
+
21
+ All decorations are now provided through `EditorView.decorations`, and are part of a single precedence ordering. Decoration sources that need access to the view are provided as functions.
22
+
23
+ Atomic ranges are now specified through a facet (`EditorView.atomicRanges`).
24
+
25
+ Scroll margins are now specified through a facet (`EditorView.scrollMargins`).
26
+
27
+ Plugin fields no longer exist in the library (and are replaced by facets holding function values).
28
+
29
+ This package no longer re-exports the Range type from @codemirror/state.
30
+
31
+ ### Bug fixes
32
+
33
+ Fix a bug where zero-length block widgets could cause `viewportLineBlocks` to contain overlapping ranges.
34
+
35
+ ### New features
36
+
37
+ The new `perLineTextDirection` facet configures whether the editor reads text direction per line, or uses a single direction for the entire editor. `EditorView.textDirectionAt` returns the direction around a given position.
38
+
39
+ `rectangularSelection` and `crosshairCursor` from @codemirror/rectangular-selection were merged into this package.
40
+
41
+ This package now exports the tooltip functionality that used to live in @codemirror/tooltip.
42
+
43
+ The exports from the old @codemirror/panel package are now available from this package.
44
+
45
+ The exports from the old @codemirror/gutter package are now available from this package.
46
+
1
47
  ## 0.19.48 (2022-03-30)
2
48
 
3
49
  ### Bug fixes