@codemirror/autocomplete 0.19.14 → 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 +36 -0
- package/dist/index.cjs +355 -64
- package/dist/index.d.ts +98 -16
- package/dist/index.js +333 -48
- package/package.json +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 0.20.1 (2022-05-16)
|
|
2
|
+
|
|
3
|
+
### New features
|
|
4
|
+
|
|
5
|
+
The new `closeOnBlur` option determines whether the completion tooltip is closed when the editor loses focus.
|
|
6
|
+
|
|
7
|
+
`CompletionResult` objects with `filter: false` may now have a `getMatch` property that determines the matched range in the options.
|
|
8
|
+
|
|
9
|
+
## 0.20.0 (2022-04-20)
|
|
10
|
+
|
|
11
|
+
### Breaking changes
|
|
12
|
+
|
|
13
|
+
`CompletionResult.span` has been renamed to `validFor`, and may now hold a function as well as a regular expression.
|
|
14
|
+
|
|
15
|
+
### Bug fixes
|
|
16
|
+
|
|
17
|
+
Remove code that dropped any options beyond the 300th one when matching and sorting option lists.
|
|
18
|
+
|
|
19
|
+
Completion will now apply to all cursors when there are multiple cursors.
|
|
20
|
+
|
|
21
|
+
### New features
|
|
22
|
+
|
|
23
|
+
`CompletionResult.update` can now be used to implement quick autocompletion updates in a synchronous way.
|
|
24
|
+
|
|
25
|
+
The @codemirror/closebrackets package was merged into this one.
|
|
26
|
+
|
|
27
|
+
## 0.19.15 (2022-03-23)
|
|
28
|
+
|
|
29
|
+
### New features
|
|
30
|
+
|
|
31
|
+
The `selectedCompletionIndex` function tells you the position of the currently selected completion.
|
|
32
|
+
|
|
33
|
+
The new `setSelectionCompletion` function creates a state effect that moves the selected completion to a given index.
|
|
34
|
+
|
|
35
|
+
A completion's `info` method may now return null to indicate that no further info is available.
|
|
36
|
+
|
|
1
37
|
## 0.19.14 (2022-03-10)
|
|
2
38
|
|
|
3
39
|
### Bug fixes
|