@monaco-neovim-wasm/lib 0.1.20 → 0.1.22
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/dist/client/bufferSync.d.ts +2 -0
- package/dist/client/inputEventDeduper.d.ts +3 -2
- package/dist/client/insertDelegation.d.ts +5 -0
- package/dist/client/keyHandler.d.ts +2 -1
- package/dist/client/monacoNeovimClient.d.ts +4 -0
- package/dist/client/overlays.d.ts +1 -0
- package/dist/client/recording.d.ts +3 -0
- package/dist/client/textInputListeners.d.ts +2 -2
- package/dist/monaco-neovim-wasm.es.js +476 -426
- package/package.json +1 -1
|
@@ -31,11 +31,13 @@ export type BufferSyncManagerInit = {
|
|
|
31
31
|
getBufferState: (id: number) => BufferState | null;
|
|
32
32
|
isDelegateInsertToMonaco: () => boolean;
|
|
33
33
|
isExitingInsertMode: () => boolean;
|
|
34
|
+
shouldAcceptNvimBufLinesDuringDelegatedInsert: () => boolean;
|
|
34
35
|
isCompositionActive: () => boolean;
|
|
35
36
|
setPendingResyncAfterComposition: (pending: boolean) => void;
|
|
36
37
|
getSyncModelFromMonaco: () => "insertOnly" | "always" | "never";
|
|
37
38
|
getInsertSyncDebounceMs: () => number;
|
|
38
39
|
scheduleVisualSelectionRefresh: () => void;
|
|
40
|
+
scheduleCursorRefresh: () => void;
|
|
39
41
|
getLastMode: () => string;
|
|
40
42
|
isVisualMode: (mode: string) => boolean;
|
|
41
43
|
incrementPendingNvimBufUpdates: () => void;
|
|
@@ -6,9 +6,10 @@ export declare class InputEventDeduper {
|
|
|
6
6
|
private armed;
|
|
7
7
|
private untilMs;
|
|
8
8
|
private target;
|
|
9
|
+
private expectedData;
|
|
9
10
|
constructor(init: InputEventDeduperInit);
|
|
10
11
|
reset(): void;
|
|
11
|
-
arm(target?: EventTarget | null, ms?: number): void;
|
|
12
|
-
shouldIgnore(target?: EventTarget | null): boolean;
|
|
12
|
+
arm(target?: EventTarget | null, ms?: number, expectedData?: string | null): void;
|
|
13
|
+
shouldIgnore(target?: EventTarget | null, data?: unknown): boolean;
|
|
13
14
|
clear(): void;
|
|
14
15
|
}
|
|
@@ -7,6 +7,7 @@ export type InsertDelegationManagerInit = {
|
|
|
7
7
|
setPreedit: (text: string | null) => void;
|
|
8
8
|
setEditorReadOnly: (readOnly: boolean) => void;
|
|
9
9
|
getRecordingRegister: () => string;
|
|
10
|
+
getExecutingRegister: () => string;
|
|
10
11
|
isNvimBlocking: () => boolean;
|
|
11
12
|
getActiveState: () => BufferState | null;
|
|
12
13
|
ensureActiveState: () => BufferState | null;
|
|
@@ -29,6 +30,9 @@ export declare class InsertDelegationManager {
|
|
|
29
30
|
private exitingInsertMode;
|
|
30
31
|
private pendingKeysAfterExit;
|
|
31
32
|
private exitInsertTimer;
|
|
33
|
+
private lastMode;
|
|
34
|
+
private suppressDelegationUntil;
|
|
35
|
+
private lastVisualModeAt;
|
|
32
36
|
private dotRepeatKeys;
|
|
33
37
|
private dotRepeatBackspaces;
|
|
34
38
|
private delegatedInsertReplayPossible;
|
|
@@ -51,6 +55,7 @@ export declare class InsertDelegationManager {
|
|
|
51
55
|
setDelegatedInsertReplayPossible(possible: boolean): void;
|
|
52
56
|
appendPendingKeysAfterExit(keys: string): void;
|
|
53
57
|
shouldIgnoreInsertExitCursor(nowMs: number, ln: unknown, col0: unknown): boolean;
|
|
58
|
+
suppressDelegation(ms: number): void;
|
|
54
59
|
applyMode(mode: string): void;
|
|
55
60
|
armInsertExit(): void;
|
|
56
61
|
finalizeDelegatedInsertDotRepeat(): void;
|
|
@@ -4,6 +4,7 @@ export type KeyHandlerInsertDelegation = {
|
|
|
4
4
|
isDelegating: () => boolean;
|
|
5
5
|
exitDelegatedInsertMode: (key: string) => void;
|
|
6
6
|
appendPendingKeysAfterExit: (keys: string) => void;
|
|
7
|
+
suppressDelegation: (ms: number) => void;
|
|
7
8
|
getLastDelegatedDotRepeat: () => {
|
|
8
9
|
prefix: string;
|
|
9
10
|
keys: string;
|
|
@@ -23,7 +24,7 @@ export type KeyHandlerManagerInit = {
|
|
|
23
24
|
setPendingEscAfterComposition: (pending: boolean) => void;
|
|
24
25
|
insertDelegation: KeyHandlerInsertDelegation;
|
|
25
26
|
handleNormalModeKey: (key: string) => void;
|
|
26
|
-
armIgnoreNextInputEvent: (target?: EventTarget | null, ms?: number) => void;
|
|
27
|
+
armIgnoreNextInputEvent: (target?: EventTarget | null, ms?: number, expectedData?: string | null) => void;
|
|
27
28
|
flushPendingMonacoSync: () => void;
|
|
28
29
|
sendInput: (keys: string) => void;
|
|
29
30
|
scheduleCursorRefresh: () => void;
|
|
@@ -54,9 +54,12 @@ export declare class MonacoNeovimClient {
|
|
|
54
54
|
private lastImeCommitAt;
|
|
55
55
|
private lastImeCommitText;
|
|
56
56
|
private nvimBlocking;
|
|
57
|
+
private nvimExecuting;
|
|
57
58
|
private editorReadOnly;
|
|
58
59
|
private applyingFromNvim;
|
|
59
60
|
private ignoreSelectionSyncUntil;
|
|
61
|
+
private acceptNvimBufLinesDuringDelegatedInsertUntil;
|
|
62
|
+
private pendingModePull;
|
|
60
63
|
private debugLog;
|
|
61
64
|
private nowMs;
|
|
62
65
|
private sendImeText;
|
|
@@ -115,6 +118,7 @@ export declare class MonacoNeovimClient {
|
|
|
115
118
|
private applyNvimMode;
|
|
116
119
|
private setEditorReadOnly;
|
|
117
120
|
private flushPendingMonacoSyncBlocking;
|
|
121
|
+
private scheduleModePull;
|
|
118
122
|
private sendInput;
|
|
119
123
|
private pasteText;
|
|
120
124
|
private handleMonacoModelChange;
|
|
@@ -5,12 +5,15 @@ export type RecordingManagerInit = {
|
|
|
5
5
|
export declare class RecordingManager {
|
|
6
6
|
private readonly init;
|
|
7
7
|
private recordingRegister;
|
|
8
|
+
private executingRegister;
|
|
8
9
|
private recordingRefreshArmed;
|
|
9
10
|
private recordingRefreshTimer;
|
|
10
11
|
constructor(init: RecordingManagerInit);
|
|
11
12
|
reset(): void;
|
|
12
13
|
getRegister(): string;
|
|
14
|
+
getExecutingRegister(): string;
|
|
13
15
|
setRegister(reg: unknown): void;
|
|
16
|
+
setExecutingRegister(reg: unknown): void;
|
|
14
17
|
handleNormalModeKey(key: string): void;
|
|
15
18
|
scheduleRefresh(): void;
|
|
16
19
|
refreshFromNvim(): Promise<void>;
|
|
@@ -28,8 +28,8 @@ export type TextInputListenerInit = {
|
|
|
28
28
|
scheduleCursorSyncToNvim: () => void;
|
|
29
29
|
scheduleResync: () => void;
|
|
30
30
|
setPreedit: (text: string | null) => void;
|
|
31
|
-
armIgnoreNextInputEvent: (target: EventTarget | null, ms: number) => void;
|
|
32
|
-
shouldIgnoreNextInputEvent: (target: EventTarget | null) => boolean;
|
|
31
|
+
armIgnoreNextInputEvent: (target: EventTarget | null, ms: number, expectedData?: string | null) => void;
|
|
32
|
+
shouldIgnoreNextInputEvent: (target: EventTarget | null, data?: unknown) => boolean;
|
|
33
33
|
clearIgnoreNextInputEvent: () => void;
|
|
34
34
|
nowMs: () => number;
|
|
35
35
|
setIgnoreSelectionSyncUntil: (deadlineMs: number) => void;
|