@monaco-neovim-wasm/lib 0.1.12 → 0.1.15
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/monaco-neovim-wasm.es.js +968 -747
- package/dist/monacoNeovim.d.ts +23 -2
- package/dist/nvimWorker.js +3 -3
- package/dist/nvimWorkerAsyncify.js +3 -3
- package/package.json +1 -1
package/dist/monacoNeovim.d.ts
CHANGED
|
@@ -166,11 +166,21 @@ export declare class MonacoNeovimClient {
|
|
|
166
166
|
private popupEl;
|
|
167
167
|
private popupItems;
|
|
168
168
|
private popupSelected;
|
|
169
|
+
private pendingRedrawEvents;
|
|
170
|
+
private stagingRedrawFrame;
|
|
171
|
+
private stagedCmdlineText;
|
|
172
|
+
private stagedCmdlineCursorByte;
|
|
173
|
+
private stagedMessageText;
|
|
174
|
+
private stagedPopupItems;
|
|
175
|
+
private stagedPopupSelected;
|
|
176
|
+
private stagedSearchRefresh;
|
|
169
177
|
private preeditEl;
|
|
170
178
|
private preeditVisible;
|
|
171
179
|
private compositionActive;
|
|
172
180
|
private pendingResyncAfterComposition;
|
|
173
181
|
private ignoreNextInputEvent;
|
|
182
|
+
private ignoreNextInputEventUntil;
|
|
183
|
+
private ignoreNextInputEventTarget;
|
|
174
184
|
private pendingEscAfterComposition;
|
|
175
185
|
private exitingInsertMode;
|
|
176
186
|
private pendingKeysAfterExit;
|
|
@@ -181,6 +191,7 @@ export declare class MonacoNeovimClient {
|
|
|
181
191
|
private recentNormalKeys;
|
|
182
192
|
private lastDelegatedInsertPrefix;
|
|
183
193
|
private lastDelegatedDotRepeat;
|
|
194
|
+
private lastClipboardText;
|
|
184
195
|
private ignoreInsertExitCursor;
|
|
185
196
|
private ignoreMonacoCursorSyncToNvimUntil;
|
|
186
197
|
private ignoreTextKeydownUntil;
|
|
@@ -189,6 +200,7 @@ export declare class MonacoNeovimClient {
|
|
|
189
200
|
private recordingRegister;
|
|
190
201
|
private recordingRefreshArmed;
|
|
191
202
|
private recordingRefreshTimer;
|
|
203
|
+
private nvimBlocking;
|
|
192
204
|
private optimisticCursorUntil;
|
|
193
205
|
private optimisticCursorPos;
|
|
194
206
|
private optimisticCursorPrevPos;
|
|
@@ -207,7 +219,10 @@ export declare class MonacoNeovimClient {
|
|
|
207
219
|
private nowMs;
|
|
208
220
|
private scheduleRecordingRefresh;
|
|
209
221
|
private refreshRecordingState;
|
|
210
|
-
private
|
|
222
|
+
private sendImeText;
|
|
223
|
+
private armIgnoreNextInputEvent;
|
|
224
|
+
private shouldIgnoreNextInputEvent;
|
|
225
|
+
private clearIgnoreNextInputEvent;
|
|
211
226
|
constructor(editor: MonacoEditor.IStandaloneCodeEditor, options?: MonacoNeovimOptions);
|
|
212
227
|
start(seedLines?: string[]): Promise<void>;
|
|
213
228
|
stop(silent?: boolean): void;
|
|
@@ -239,6 +254,11 @@ export declare class MonacoNeovimClient {
|
|
|
239
254
|
private handleClipboardCopy;
|
|
240
255
|
private handleRequest;
|
|
241
256
|
private handleNotify;
|
|
257
|
+
private handleRedrawNotify;
|
|
258
|
+
private beginRedrawFrame;
|
|
259
|
+
private endRedrawFrame;
|
|
260
|
+
private processRedrawFrame;
|
|
261
|
+
private stageRedrawEvent;
|
|
242
262
|
private computeLinePatch;
|
|
243
263
|
private applyLinePatch;
|
|
244
264
|
private applyLinePatchToModel;
|
|
@@ -257,7 +277,6 @@ export declare class MonacoNeovimClient {
|
|
|
257
277
|
private applyMonacoMoveCursor;
|
|
258
278
|
private syncTabstopFromMonaco;
|
|
259
279
|
private updatePopupmenuSelection;
|
|
260
|
-
private handleRedraw;
|
|
261
280
|
private initTextInputListeners;
|
|
262
281
|
private scheduleResync;
|
|
263
282
|
private resyncBufferFromNvim;
|
|
@@ -284,6 +303,7 @@ export declare class MonacoNeovimClient {
|
|
|
284
303
|
private syncDotRepeatToNvim;
|
|
285
304
|
private handleKey;
|
|
286
305
|
private handleMouse;
|
|
306
|
+
private sendNvimMouse;
|
|
287
307
|
private handleSelection;
|
|
288
308
|
private syncVisualSelectionToNvim;
|
|
289
309
|
private sendInput;
|
|
@@ -307,6 +327,7 @@ export declare class MonacoNeovimClient {
|
|
|
307
327
|
private rpcCall;
|
|
308
328
|
private doClipboardPaste;
|
|
309
329
|
private updateCursor;
|
|
330
|
+
private requestSearchHighlightRefresh;
|
|
310
331
|
private scheduleCursorRefresh;
|
|
311
332
|
private refreshCursorMode;
|
|
312
333
|
private applyCursorStyle;
|
package/dist/nvimWorker.js
CHANGED
|
@@ -446,7 +446,7 @@ let mt = class {
|
|
|
446
446
|
p = () => BigInt((/* @__PURE__ */ new Date()).getTime()) * 1000000n;
|
|
447
447
|
else
|
|
448
448
|
return 28;
|
|
449
|
-
const h = u.flags & ht ? d : p() + d;
|
|
449
|
+
const h = (u.flags & ht) !== 0 ? d : p() + d;
|
|
450
450
|
for (; h > p(); )
|
|
451
451
|
;
|
|
452
452
|
return new pt(u.userdata, 0, c).write_bytes(l, a), 0;
|
|
@@ -962,7 +962,7 @@ for (var y = 0; y < 32768; ++y) {
|
|
|
962
962
|
var C = (y & 43690) >> 1 | (y & 21845) << 1;
|
|
963
963
|
C = (C & 52428) >> 2 | (C & 13107) << 2, C = (C & 61680) >> 4 | (C & 3855) << 4, be[y] = ((C & 65280) >> 8 | (C & 255) << 8) >> 1;
|
|
964
964
|
}
|
|
965
|
-
var J = function(r, e, t) {
|
|
965
|
+
var J = (function(r, e, t) {
|
|
966
966
|
for (var i = r.length, o = 0, n = new V(e); o < i; ++o)
|
|
967
967
|
r[o] && ++n[r[o] - 1];
|
|
968
968
|
var s = new V(e);
|
|
@@ -980,7 +980,7 @@ var J = function(r, e, t) {
|
|
|
980
980
|
for (a = new V(i), o = 0; o < i; ++o)
|
|
981
981
|
r[o] && (a[o] = be[s[r[o] - 1]++] >> 15 - r[o]);
|
|
982
982
|
return a;
|
|
983
|
-
}, te = new E(288);
|
|
983
|
+
}), te = new E(288);
|
|
984
984
|
for (var y = 0; y < 144; ++y)
|
|
985
985
|
te[y] = 8;
|
|
986
986
|
for (var y = 144; y < 256; ++y)
|
|
@@ -446,7 +446,7 @@ let It = class {
|
|
|
446
446
|
p = () => BigInt((/* @__PURE__ */ new Date()).getTime()) * 1000000n;
|
|
447
447
|
else
|
|
448
448
|
return 28;
|
|
449
|
-
const h = u.flags & lt ? d : p() + d;
|
|
449
|
+
const h = (u.flags & lt) !== 0 ? d : p() + d;
|
|
450
450
|
for (; h > p(); )
|
|
451
451
|
;
|
|
452
452
|
return new ct(u.userdata, 0, c).write_bytes(l, o), 0;
|
|
@@ -962,7 +962,7 @@ for (var w = 0; w < 32768; ++w) {
|
|
|
962
962
|
var j = (w & 43690) >> 1 | (w & 21845) << 1;
|
|
963
963
|
j = (j & 52428) >> 2 | (j & 13107) << 2, j = (j & 61680) >> 4 | (j & 3855) << 4, Me[w] = ((j & 65280) >> 8 | (j & 255) << 8) >> 1;
|
|
964
964
|
}
|
|
965
|
-
var ae = function(n, e, t) {
|
|
965
|
+
var ae = (function(n, e, t) {
|
|
966
966
|
for (var i = n.length, a = 0, r = new X(e); a < i; ++a)
|
|
967
967
|
n[a] && ++r[n[a] - 1];
|
|
968
968
|
var s = new X(e);
|
|
@@ -980,7 +980,7 @@ var ae = function(n, e, t) {
|
|
|
980
980
|
for (o = new X(i), a = 0; a < i; ++a)
|
|
981
981
|
n[a] && (o[a] = Me[s[n[a] - 1]++] >> 15 - n[a]);
|
|
982
982
|
return o;
|
|
983
|
-
}, _e = new v(288);
|
|
983
|
+
}), _e = new v(288);
|
|
984
984
|
for (var w = 0; w < 144; ++w)
|
|
985
985
|
_e[w] = 8;
|
|
986
986
|
for (var w = 144; w < 256; ++w)
|