mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update npm
This commit is contained in:
parent
8341712d58
commit
1bd85100b9
5320 changed files with 58396 additions and 344722 deletions
67
node_modules/@codemirror/autocomplete/dist/index.d.ts
generated
vendored
67
node_modules/@codemirror/autocomplete/dist/index.d.ts
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
import * as _codemirror_state from '@codemirror/state';
|
||||
import { EditorState, TransactionSpec, Transaction, StateCommand, Facet, Extension, StateEffect } from '@codemirror/state';
|
||||
import { EditorState, ChangeDesc, TransactionSpec, Transaction, StateCommand, Facet, Extension, StateEffect } from '@codemirror/state';
|
||||
import { EditorView, Rect, KeyBinding, Command } from '@codemirror/view';
|
||||
import * as _lezer_common from '@lezer/common';
|
||||
|
||||
|
@ -9,7 +9,7 @@ Objects type used to represent individual completions.
|
|||
interface Completion {
|
||||
/**
|
||||
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).
|
||||
*/
|
||||
label: string;
|
||||
|
@ -54,6 +54,11 @@ interface Completion {
|
|||
*/
|
||||
type?: string;
|
||||
/**
|
||||
When this option is selected, and one of these characters is
|
||||
typed, insert the completion before typing the character.
|
||||
*/
|
||||
commitCharacters?: readonly string[];
|
||||
/**
|
||||
When given, should be a number from -99 to 99 that adjusts how
|
||||
this completion is ranked compared to other completions that
|
||||
match the input as well as this one. A negative number moves it
|
||||
|
@ -75,7 +80,7 @@ The type returned from
|
|||
node, null to indicate there is no info, or an object with an
|
||||
optional `destroy` method that cleans up the node.
|
||||
*/
|
||||
declare type CompletionInfo = Node | null | {
|
||||
type CompletionInfo = Node | null | {
|
||||
dom: Node;
|
||||
destroy?(): void;
|
||||
};
|
||||
|
@ -196,7 +201,7 @@ may return its [result](https://codemirror.net/6/docs/ref/#autocomplete.Completi
|
|||
synchronously or as a promise. Returning null indicates no
|
||||
completions are available.
|
||||
*/
|
||||
declare type CompletionSource = (context: CompletionContext) => CompletionResult | null | Promise<CompletionResult | null>;
|
||||
type CompletionSource = (context: CompletionContext) => CompletionResult | null | Promise<CompletionResult | null>;
|
||||
/**
|
||||
Interface for objects returned by completion sources.
|
||||
*/
|
||||
|
@ -255,6 +260,20 @@ interface CompletionResult {
|
|||
completion still applies in the new state.
|
||||
*/
|
||||
update?: (current: CompletionResult, from: number, to: number, context: CompletionContext) => CompletionResult | null;
|
||||
/**
|
||||
When results contain position-dependent information in, for
|
||||
example, `apply` methods, you can provide this method to update
|
||||
the result for transactions that happen after the query. It is
|
||||
not necessary to update `from` and `to`—those are tracked
|
||||
automatically.
|
||||
*/
|
||||
map?: (current: CompletionResult, changes: ChangeDesc) => CompletionResult | null;
|
||||
/**
|
||||
Set a default set of [commit
|
||||
characters](https://codemirror.net/6/docs/ref/#autocomplete.Completion.commitCharacters) for all
|
||||
options in this result.
|
||||
*/
|
||||
commitCharacters?: readonly string[];
|
||||
}
|
||||
/**
|
||||
This annotation is added to transactions that are produced by
|
||||
|
@ -275,6 +294,14 @@ interface CompletionConfig {
|
|||
*/
|
||||
activateOnTyping?: boolean;
|
||||
/**
|
||||
The amount of time to wait for further typing before querying
|
||||
completion sources via
|
||||
[`activateOnTyping`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.activateOnTyping).
|
||||
Defaults to 100, which should be fine unless your completion
|
||||
source is very slow and/or doesn't use `validFor`.
|
||||
*/
|
||||
activateOnTypingDelay?: number;
|
||||
/**
|
||||
By default, when completion opens, the first option is selected
|
||||
and can be confirmed with
|
||||
[`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion). When this
|
||||
|
@ -340,17 +367,17 @@ interface CompletionConfig {
|
|||
80.
|
||||
*/
|
||||
addToOptions?: {
|
||||
render: (completion: Completion, state: EditorState) => Node | null;
|
||||
render: (completion: Completion, state: EditorState, view: EditorView) => Node | null;
|
||||
position: number;
|
||||
}[];
|
||||
/**
|
||||
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.
|
||||
*/
|
||||
positionInfo?: (view: EditorView, list: Rect, option: Rect, info: Rect, space: Rect) => {
|
||||
style?: string;
|
||||
|
@ -363,12 +390,26 @@ interface CompletionConfig {
|
|||
*/
|
||||
compareCompletions?: (a: Completion, b: Completion) => number;
|
||||
/**
|
||||
When set to true (the default is false), turn off fuzzy matching
|
||||
of completions and only show those that start with the text the
|
||||
user typed. Only takes effect for results where
|
||||
[`filter`](https://codemirror.net/6/docs/ref/#autocomplete.CompletionResult.filter) isn't false.
|
||||
*/
|
||||
filterStrict?: boolean;
|
||||
/**
|
||||
By default, commands relating to an open completion only take
|
||||
effect 75 milliseconds after the completion opened, so that key
|
||||
presses made before the user is aware of the tooltip don't go to
|
||||
the tooltip. This option can be used to configure that delay.
|
||||
*/
|
||||
interactionDelay?: number;
|
||||
/**
|
||||
When there are multiple asynchronous completion sources, this
|
||||
controls how long the extension waits for a slow source before
|
||||
displaying results from faster sources. Defaults to 100
|
||||
milliseconds.
|
||||
*/
|
||||
updateSyncTime?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -564,4 +605,4 @@ the currently selected completion.
|
|||
*/
|
||||
declare function setSelectedCompletion(index: number): StateEffect<unknown>;
|
||||
|
||||
export { CloseBracketConfig, Completion, CompletionContext, CompletionInfo, CompletionResult, CompletionSection, CompletionSource, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion };
|
||||
export { type CloseBracketConfig, type Completion, CompletionContext, type CompletionInfo, type CompletionResult, type CompletionSection, type CompletionSource, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue