@codemirror/view 0.19.47 → 0.20.1

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,55 @@
1
+ ## 0.20.1 (2022-04-20)
2
+
3
+ ### Bug fixes
4
+
5
+ Remove debug statements that accidentally made it into 0.20.0.
6
+
7
+ Fix a regression in `moveVertically`.
8
+
9
+ ## 0.20.0 (2022-04-20)
10
+
11
+ ### Breaking changes
12
+
13
+ The deprecated interfaces `blockAtHeight`, `visualLineAtHeight`, `viewportLines`, `visualLineAt`, `scrollPosIntoView`, `scrollTo`, and `centerOn` were removed from the library.
14
+
15
+ 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.
16
+
17
+ Atomic ranges are now specified through a facet (`EditorView.atomicRanges`).
18
+
19
+ Scroll margins are now specified through a facet (`EditorView.scrollMargins`).
20
+
21
+ Plugin fields no longer exist in the library (and are replaced by facets holding function values).
22
+
23
+ This package no longer re-exports the Range type from @codemirror/state.
24
+
25
+ ### Bug fixes
26
+
27
+ Fix a bug where zero-length block widgets could cause `viewportLineBlocks` to contain overlapping ranges.
28
+
29
+ ### New features
30
+
31
+ 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.
32
+
33
+ `rectangularSelection` and `crosshairCursor` from @codemirror/rectangular-selection were merged into this package.
34
+
35
+ This package now exports the tooltip functionality that used to live in @codemirror/tooltip.
36
+
37
+ The exports from the old @codemirror/panel package are now available from this package.
38
+
39
+ The exports from the old @codemirror/gutter package are now available from this package.
40
+
41
+ ## 0.19.48 (2022-03-30)
42
+
43
+ ### Bug fixes
44
+
45
+ Fix an issue where DOM syncing could crash when a DOM node was moved from a parent to a child node (via widgets reusing existing nodes).
46
+
47
+ To avoid interfering with things like a vim mode too much, the editor will now only activate the tab-to-move-focus escape hatch after an escape press that wasn't handled by an event handler.
48
+
49
+ Make sure the view measures itself before the page is printed.
50
+
51
+ Tweak types of view plugin defining functions to avoid TypeScript errors when the plugin value doesn't have any of the interface's properties.
52
+
1
53
  ## 0.19.47 (2022-03-08)
2
54
 
3
55
  ### Bug fixes