@codemirror/autocomplete
Advanced tools
Comparing version 6.9.0 to 6.9.1
@@ -0,1 +1,9 @@ | ||
## 6.9.1 (2023-09-14) | ||
### Bug fixes | ||
Make sure the cursor is scrolled into view after inserting completion text. | ||
Make sure scrolling completions into view doesn't get confused when the tooltip is scaled. | ||
## 6.9.0 (2023-07-18) | ||
@@ -2,0 +10,0 @@ |
@@ -12,3 +12,3 @@ import * as _codemirror_state from '@codemirror/state'; | ||
The label to show in the completion picker. This is what input | ||
is matched agains to determine whether a completion matches (and | ||
is matched against to determine whether a completion matches (and | ||
how well it matches). | ||
@@ -79,3 +79,3 @@ */ | ||
*/ | ||
declare type CompletionInfo = Node | null | { | ||
type CompletionInfo = Node | null | { | ||
dom: Node; | ||
@@ -201,3 +201,3 @@ destroy?(): void; | ||
*/ | ||
declare type CompletionSource = (context: CompletionContext) => CompletionResult | null | Promise<CompletionResult | null>; | ||
type CompletionSource = (context: CompletionContext) => CompletionResult | null | Promise<CompletionResult | null>; | ||
/** | ||
@@ -350,9 +350,9 @@ Interface for objects returned by completion sources. | ||
/** | ||
By default, [info](https://codemirror.net/6/docs/ref/#autocomplet.Completion.info) tooltips are | ||
placed to the side of the selected. This option can be used to | ||
override that. It will be given rectangles for the list of | ||
completions, the selected option, the info element, and the | ||
availble [tooltip space](https://codemirror.net/6/docs/ref/#view.tooltips^config.tooltipSpace), | ||
and should return style and/or class strings for the info | ||
element. | ||
By default, [info](https://codemirror.net/6/docs/ref/#autocomplete.Completion.info) tooltips are | ||
placed to the side of the selected completion. This option can | ||
be used to override that. It will be given rectangles for the | ||
list of completions, the selected option, the info element, and | ||
the availble [tooltip | ||
space](https://codemirror.net/6/docs/ref/#view.tooltips^config.tooltipSpace), and should return | ||
style and/or class strings for the info element. | ||
*/ | ||
@@ -359,0 +359,0 @@ positionInfo?: (view: EditorView, list: Rect, option: Rect, info: Rect, space: Rect) => { |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "6.9.0", | ||
"version": "6.9.1", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -31,3 +31,3 @@ "scripts": { | ||
"@codemirror/state": "^6.0.0", | ||
"@codemirror/view": "^6.6.0", | ||
"@codemirror/view": "^6.17.0", | ||
"@lezer/common": "^1.0.0" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
228703
4484
Updated@codemirror/view@^6.17.0