@lvce-editor/test-worker 7.3.0 → 7.5.0
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/api.d.ts +4 -0
- package/dist/testWorkerMain.js +27 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -434,7 +434,10 @@ interface RunAndDebug {
|
|
|
434
434
|
|
|
435
435
|
interface Search {
|
|
436
436
|
readonly clearSearchResults: () => Promise<void>;
|
|
437
|
+
readonly collapseAll: () => Promise<void>;
|
|
437
438
|
readonly collapseDetails: () => Promise<void>;
|
|
439
|
+
readonly copy: () => Promise<void>;
|
|
440
|
+
readonly copyPath: () => Promise<void>;
|
|
438
441
|
readonly dismissItem: () => Promise<void>;
|
|
439
442
|
readonly focusFirst: () => Promise<void>;
|
|
440
443
|
readonly focusIndex: (index: number) => Promise<void>;
|
|
@@ -442,6 +445,7 @@ interface Search {
|
|
|
442
445
|
readonly focusNextPage: () => Promise<void>;
|
|
443
446
|
readonly focusPrevious: () => Promise<void>;
|
|
444
447
|
readonly focusPreviousPage: () => Promise<void>;
|
|
448
|
+
readonly handleListBlur: () => Promise<void>;
|
|
445
449
|
readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
446
450
|
readonly open: () => Promise<void>;
|
|
447
451
|
readonly openDetails: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1996,7 +1996,7 @@ const cursorHome = async () => {
|
|
|
1996
1996
|
const copyLineUp = async () => {
|
|
1997
1997
|
await invoke$1('Editor.copyLineUp');
|
|
1998
1998
|
};
|
|
1999
|
-
const copy = async () => {
|
|
1999
|
+
const copy$1 = async () => {
|
|
2000
2000
|
await invoke$1('Editor.copy');
|
|
2001
2001
|
};
|
|
2002
2002
|
const closeColorPicker = async () => {
|
|
@@ -2064,7 +2064,7 @@ const shouldHaveDiagnostics = async expectedDiagnostics => {
|
|
|
2064
2064
|
if (!areDiagnosticsEqual(diagnostics, expectedDiagnostics)) {
|
|
2065
2065
|
const stringifiedActual = JSON.stringify(diagnostics);
|
|
2066
2066
|
const stringifiedExpected = JSON.stringify(expectedDiagnostics);
|
|
2067
|
-
throw new Error(`Expected editor to have diagnostics ${
|
|
2067
|
+
throw new Error(`Expected editor to have diagnostics ${stringifiedExpected} but was ${stringifiedActual}`);
|
|
2068
2068
|
}
|
|
2069
2069
|
};
|
|
2070
2070
|
|
|
@@ -2074,7 +2074,7 @@ const Editor = {
|
|
|
2074
2074
|
closeColorPicker,
|
|
2075
2075
|
closeCompletion,
|
|
2076
2076
|
closeCompletionDetails,
|
|
2077
|
-
copy,
|
|
2077
|
+
copy: copy$1,
|
|
2078
2078
|
copyLineDown,
|
|
2079
2079
|
copyLineUp,
|
|
2080
2080
|
cursorCharacterLeft,
|
|
@@ -2240,7 +2240,7 @@ const handleDragOverIndex = async index => {
|
|
|
2240
2240
|
const selectDown = async () => {
|
|
2241
2241
|
await invoke$1('Explorer.selectDown');
|
|
2242
2242
|
};
|
|
2243
|
-
const collapseAll$
|
|
2243
|
+
const collapseAll$2 = async () => {
|
|
2244
2244
|
// @ts-ignore
|
|
2245
2245
|
await invoke$1('Explorer.collapseAll');
|
|
2246
2246
|
};
|
|
@@ -2334,7 +2334,7 @@ const Explorer = {
|
|
|
2334
2334
|
acceptEdit,
|
|
2335
2335
|
cancelEdit,
|
|
2336
2336
|
clickCurrent,
|
|
2337
|
-
collapseAll: collapseAll$
|
|
2337
|
+
collapseAll: collapseAll$2,
|
|
2338
2338
|
expandAll,
|
|
2339
2339
|
expandRecursively,
|
|
2340
2340
|
focus: focus$1,
|
|
@@ -3181,7 +3181,7 @@ const clear$1 = async () => {
|
|
|
3181
3181
|
// @ts-ignore
|
|
3182
3182
|
return invoke$1('References.clear');
|
|
3183
3183
|
};
|
|
3184
|
-
const collapseAll = async () => {
|
|
3184
|
+
const collapseAll$1 = async () => {
|
|
3185
3185
|
// @ts-ignore
|
|
3186
3186
|
return invoke$1('References.collapseAll');
|
|
3187
3187
|
};
|
|
@@ -3193,7 +3193,7 @@ const refresh = async () => {
|
|
|
3193
3193
|
const References = {
|
|
3194
3194
|
__proto__: null,
|
|
3195
3195
|
clear: clear$1,
|
|
3196
|
-
collapseAll,
|
|
3196
|
+
collapseAll: collapseAll$1,
|
|
3197
3197
|
refresh
|
|
3198
3198
|
};
|
|
3199
3199
|
|
|
@@ -3323,11 +3323,30 @@ const setLimit = async limit => {
|
|
|
3323
3323
|
// @ts-ignore
|
|
3324
3324
|
await invoke$1('Search.setLimit', limit);
|
|
3325
3325
|
};
|
|
3326
|
+
const handleListBlur = async () => {
|
|
3327
|
+
// @ts-ignore
|
|
3328
|
+
await invoke$1('Search.handleListBlur');
|
|
3329
|
+
};
|
|
3330
|
+
const collapseAll = async () => {
|
|
3331
|
+
// @ts-ignore
|
|
3332
|
+
await invoke$1('Search.collapseAll');
|
|
3333
|
+
};
|
|
3334
|
+
const copy = async () => {
|
|
3335
|
+
// @ts-ignore
|
|
3336
|
+
await invoke$1('Search.copy');
|
|
3337
|
+
};
|
|
3338
|
+
const copyPath = async () => {
|
|
3339
|
+
// @ts-ignore
|
|
3340
|
+
await invoke$1('Search.copyPath');
|
|
3341
|
+
};
|
|
3326
3342
|
|
|
3327
3343
|
const Search = {
|
|
3328
3344
|
__proto__: null,
|
|
3329
3345
|
clearSearchResults,
|
|
3346
|
+
collapseAll,
|
|
3330
3347
|
collapseDetails,
|
|
3348
|
+
copy,
|
|
3349
|
+
copyPath,
|
|
3331
3350
|
dismissItem,
|
|
3332
3351
|
focusFirst: focusFirst$1,
|
|
3333
3352
|
focusIndex: focusIndex$1,
|
|
@@ -3335,6 +3354,7 @@ const Search = {
|
|
|
3335
3354
|
focusNextPage,
|
|
3336
3355
|
focusPrevious: focusPrevious$1,
|
|
3337
3356
|
focusPreviousPage,
|
|
3357
|
+
handleListBlur,
|
|
3338
3358
|
handleWheel,
|
|
3339
3359
|
open: open$1,
|
|
3340
3360
|
openDetails,
|