@codemirror/autocomplete
Advanced tools
Comparing version 0.20.0 to 0.20.1
@@ -0,1 +1,9 @@ | ||
## 0.20.1 (2022-05-16) | ||
### New features | ||
The new `closeOnBlur` option determines whether the completion tooltip is closed when the editor loses focus. | ||
`CompletionResult` objects with `filter: false` may now have a `getMatch` property that determines the matched range in the options. | ||
## 0.20.0 (2022-04-20) | ||
@@ -2,0 +10,0 @@ |
@@ -21,2 +21,7 @@ import * as _codemirror_state from '@codemirror/state'; | ||
/** | ||
Determines whether the completion tooltip is closed when the | ||
editor loses focus. Defaults to true. | ||
*/ | ||
closeOnBlur?: boolean; | ||
/** | ||
The maximum number of options to render to the DOM. | ||
@@ -247,2 +252,10 @@ */ | ||
/** | ||
When [`filter`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.filter) is set to | ||
`false`, this may be provided to compute the ranges on the label | ||
that match the input. Should return an array of numbers where | ||
each pair of adjacent numbers provide the start and end of a | ||
range. | ||
*/ | ||
getMatch?: (completion: Completion) => readonly number[]; | ||
/** | ||
Synchronously update the completion result after typing or | ||
@@ -249,0 +262,0 @@ deletion. If given, this should not do any expensive work, since |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171769
3899