@monaco-neovim-wasm/lib 0.1.13 → 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 +945 -734
- package/dist/monacoNeovim.d.ts +22 -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;
|
|
@@ -190,6 +200,7 @@ export declare class MonacoNeovimClient {
|
|
|
190
200
|
private recordingRegister;
|
|
191
201
|
private recordingRefreshArmed;
|
|
192
202
|
private recordingRefreshTimer;
|
|
203
|
+
private nvimBlocking;
|
|
193
204
|
private optimisticCursorUntil;
|
|
194
205
|
private optimisticCursorPos;
|
|
195
206
|
private optimisticCursorPrevPos;
|
|
@@ -208,7 +219,10 @@ export declare class MonacoNeovimClient {
|
|
|
208
219
|
private nowMs;
|
|
209
220
|
private scheduleRecordingRefresh;
|
|
210
221
|
private refreshRecordingState;
|
|
211
|
-
private
|
|
222
|
+
private sendImeText;
|
|
223
|
+
private armIgnoreNextInputEvent;
|
|
224
|
+
private shouldIgnoreNextInputEvent;
|
|
225
|
+
private clearIgnoreNextInputEvent;
|
|
212
226
|
constructor(editor: MonacoEditor.IStandaloneCodeEditor, options?: MonacoNeovimOptions);
|
|
213
227
|
start(seedLines?: string[]): Promise<void>;
|
|
214
228
|
stop(silent?: boolean): void;
|
|
@@ -240,6 +254,11 @@ export declare class MonacoNeovimClient {
|
|
|
240
254
|
private handleClipboardCopy;
|
|
241
255
|
private handleRequest;
|
|
242
256
|
private handleNotify;
|
|
257
|
+
private handleRedrawNotify;
|
|
258
|
+
private beginRedrawFrame;
|
|
259
|
+
private endRedrawFrame;
|
|
260
|
+
private processRedrawFrame;
|
|
261
|
+
private stageRedrawEvent;
|
|
243
262
|
private computeLinePatch;
|
|
244
263
|
private applyLinePatch;
|
|
245
264
|
private applyLinePatchToModel;
|
|
@@ -258,7 +277,6 @@ export declare class MonacoNeovimClient {
|
|
|
258
277
|
private applyMonacoMoveCursor;
|
|
259
278
|
private syncTabstopFromMonaco;
|
|
260
279
|
private updatePopupmenuSelection;
|
|
261
|
-
private handleRedraw;
|
|
262
280
|
private initTextInputListeners;
|
|
263
281
|
private scheduleResync;
|
|
264
282
|
private resyncBufferFromNvim;
|
|
@@ -285,6 +303,7 @@ export declare class MonacoNeovimClient {
|
|
|
285
303
|
private syncDotRepeatToNvim;
|
|
286
304
|
private handleKey;
|
|
287
305
|
private handleMouse;
|
|
306
|
+
private sendNvimMouse;
|
|
288
307
|
private handleSelection;
|
|
289
308
|
private syncVisualSelectionToNvim;
|
|
290
309
|
private sendInput;
|
|
@@ -308,6 +327,7 @@ export declare class MonacoNeovimClient {
|
|
|
308
327
|
private rpcCall;
|
|
309
328
|
private doClipboardPaste;
|
|
310
329
|
private updateCursor;
|
|
330
|
+
private requestSearchHighlightRefresh;
|
|
311
331
|
private scheduleCursorRefresh;
|
|
312
332
|
private refreshCursorMode;
|
|
313
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)
|