@lvce-editor/test-worker 10.9.0 → 10.11.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 +7 -0
- package/dist/testWorkerMain.js +35 -4
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -258,6 +258,8 @@ interface Extension {
|
|
|
258
258
|
|
|
259
259
|
interface ExtensionDetail {
|
|
260
260
|
readonly copyReadmeLink: (href: string) => Promise<void>;
|
|
261
|
+
readonly focusNextTab: () => Promise<void>;
|
|
262
|
+
readonly focusPreviousTab: () => Promise<void>;
|
|
261
263
|
readonly handleClickCategory: (categoryId: string) => Promise<void>;
|
|
262
264
|
readonly handleClickDisable: () => Promise<void>;
|
|
263
265
|
readonly handleClickEnable: () => Promise<void>;
|
|
@@ -266,6 +268,7 @@ interface ExtensionDetail {
|
|
|
266
268
|
readonly handleImageContextMenu: () => Promise<void>;
|
|
267
269
|
readonly handleReadmeContextMenu: (x: number, y: number, nodeName: string, href: string) => Promise<void>;
|
|
268
270
|
readonly handleScroll: (scrollTop: number) => Promise<void>;
|
|
271
|
+
readonly handleTabFocus: (tabName: string) => Promise<void>;
|
|
269
272
|
readonly hideSizeLink: () => Promise<void>;
|
|
270
273
|
readonly open: (extensionId: string) => Promise<void>;
|
|
271
274
|
readonly openCommands: () => Promise<void>;
|
|
@@ -286,6 +289,7 @@ interface ExtensionSearch {
|
|
|
286
289
|
readonly clearSearchResults: () => Promise<void>;
|
|
287
290
|
readonly copyExtensionId: () => Promise<void>;
|
|
288
291
|
readonly copyExtensionInfo: () => Promise<void>;
|
|
292
|
+
readonly handleClick: (index: number) => Promise<void>;
|
|
289
293
|
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
290
294
|
readonly handleInput: (value: string) => Promise<void>;
|
|
291
295
|
readonly open: () => Promise<void>;
|
|
@@ -493,11 +497,14 @@ interface Settings {
|
|
|
493
497
|
|
|
494
498
|
interface SettingsView {
|
|
495
499
|
readonly clear: (searchValue: string) => Promise<void>;
|
|
500
|
+
readonly clearHistory: () => Promise<void>;
|
|
501
|
+
readonly handleClickFilterButton: (x: number, y: number) => Promise<void>;
|
|
496
502
|
readonly handleInput: (searchValue: string) => Promise<void>;
|
|
497
503
|
readonly handleScroll: (scrollTop: number) => Promise<void>;
|
|
498
504
|
readonly selectExtensions: () => Promise<void>;
|
|
499
505
|
readonly selectTab: (tabId: string) => Promise<void>;
|
|
500
506
|
readonly selectTextEditor: () => Promise<void>;
|
|
507
|
+
readonly selectWindow: () => Promise<void>;
|
|
501
508
|
readonly selectWorkspace: () => Promise<void>;
|
|
502
509
|
readonly show: () => Promise<void>;
|
|
503
510
|
readonly useNextSearchValue: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1614,7 +1614,7 @@ const focusNext$8 = async () => {
|
|
|
1614
1614
|
const focusPrevious$7 = async () => {
|
|
1615
1615
|
await invoke$1('ActivityBar.focusPrevious');
|
|
1616
1616
|
};
|
|
1617
|
-
const handleClick$
|
|
1617
|
+
const handleClick$3 = async index => {
|
|
1618
1618
|
await invoke$1('ActivityBar.handleClick', index);
|
|
1619
1619
|
};
|
|
1620
1620
|
const handleContextMenu$5 = async () => {
|
|
@@ -1631,7 +1631,7 @@ const ActivityBar = {
|
|
|
1631
1631
|
focusLast: focusLast$6,
|
|
1632
1632
|
focusNext: focusNext$8,
|
|
1633
1633
|
focusPrevious: focusPrevious$7,
|
|
1634
|
-
handleClick: handleClick$
|
|
1634
|
+
handleClick: handleClick$3,
|
|
1635
1635
|
handleContextMenu: handleContextMenu$5,
|
|
1636
1636
|
selectCurrent
|
|
1637
1637
|
};
|
|
@@ -2317,7 +2317,7 @@ const copyRelativePath = async () => {
|
|
|
2317
2317
|
// @ts-ignore
|
|
2318
2318
|
await invoke$1('Explorer.copyRelativePath');
|
|
2319
2319
|
};
|
|
2320
|
-
const handleClick$
|
|
2320
|
+
const handleClick$2 = async index => {
|
|
2321
2321
|
await invoke$1('Explorer.handleClick', index);
|
|
2322
2322
|
};
|
|
2323
2323
|
const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
|
|
@@ -2389,7 +2389,7 @@ const Explorer = {
|
|
|
2389
2389
|
focusNext: focusNext$7,
|
|
2390
2390
|
handleArrowLeft: handleArrowLeft$1,
|
|
2391
2391
|
handleBlur,
|
|
2392
|
-
handleClick: handleClick$
|
|
2392
|
+
handleClick: handleClick$2,
|
|
2393
2393
|
handleClickAt: handleClickAt$2,
|
|
2394
2394
|
handleCopy,
|
|
2395
2395
|
handleCut,
|
|
@@ -2471,6 +2471,12 @@ const selectFeatures = async () => {
|
|
|
2471
2471
|
const selectChangelog = async () => {
|
|
2472
2472
|
await selectTab$1('Changelog');
|
|
2473
2473
|
};
|
|
2474
|
+
const focusNextTab = async () => {
|
|
2475
|
+
await invoke$1('ExtensionDetail.focusNextTab');
|
|
2476
|
+
};
|
|
2477
|
+
const focusPreviousTab = async () => {
|
|
2478
|
+
await invoke$1('ExtensionDetail.focusPreviousTab');
|
|
2479
|
+
};
|
|
2474
2480
|
const open$6 = extensionId => {
|
|
2475
2481
|
const uri = `extension-detail://${extensionId}`;
|
|
2476
2482
|
return invoke$1('Main.openUri', uri);
|
|
@@ -2510,10 +2516,15 @@ const handleScroll$1 = async scrollTop => {
|
|
|
2510
2516
|
const hideSizeLink = async () => {
|
|
2511
2517
|
return invoke$1('ExtensionDetail.hideSizeLink');
|
|
2512
2518
|
};
|
|
2519
|
+
const handleTabFocus = async tabName => {
|
|
2520
|
+
return invoke$1('ExtensionDetail.handleTabFocus', tabName);
|
|
2521
|
+
};
|
|
2513
2522
|
|
|
2514
2523
|
const ExtensionDetail = {
|
|
2515
2524
|
__proto__: null,
|
|
2516
2525
|
copyReadmeLink,
|
|
2526
|
+
focusNextTab,
|
|
2527
|
+
focusPreviousTab,
|
|
2517
2528
|
handleClickCategory,
|
|
2518
2529
|
handleClickDisable,
|
|
2519
2530
|
handleClickEnable,
|
|
@@ -2522,6 +2533,7 @@ const ExtensionDetail = {
|
|
|
2522
2533
|
handleImageContextMenu,
|
|
2523
2534
|
handleReadmeContextMenu,
|
|
2524
2535
|
handleScroll: handleScroll$1,
|
|
2536
|
+
handleTabFocus,
|
|
2525
2537
|
hideSizeLink,
|
|
2526
2538
|
open: open$6,
|
|
2527
2539
|
openCommands,
|
|
@@ -2558,6 +2570,10 @@ const handleInput$4 = async value => {
|
|
|
2558
2570
|
// @ts-ignore
|
|
2559
2571
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2560
2572
|
};
|
|
2573
|
+
const handleClick$1 = async index => {
|
|
2574
|
+
// @ts-ignore
|
|
2575
|
+
await invoke$1('Extensions.handleClick', index);
|
|
2576
|
+
};
|
|
2561
2577
|
const handleContextMenu$4 = async (button, x, y) => {
|
|
2562
2578
|
// @ts-ignore
|
|
2563
2579
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
@@ -2580,6 +2596,7 @@ const ExtensionSearch = {
|
|
|
2580
2596
|
clearSearchResults: clearSearchResults$1,
|
|
2581
2597
|
copyExtensionId,
|
|
2582
2598
|
copyExtensionInfo,
|
|
2599
|
+
handleClick: handleClick$1,
|
|
2583
2600
|
handleContextMenu: handleContextMenu$4,
|
|
2584
2601
|
handleInput: handleInput$4,
|
|
2585
2602
|
open: open$4
|
|
@@ -3557,6 +3574,10 @@ const clear = async searchValue => {
|
|
|
3557
3574
|
// @ts-ignore
|
|
3558
3575
|
return invoke$1('Settings.clear', searchValue, Script);
|
|
3559
3576
|
};
|
|
3577
|
+
const clearHistory = async () => {
|
|
3578
|
+
// @ts-ignore
|
|
3579
|
+
return invoke$1('Settings.clearHistory', searchValue, Script);
|
|
3580
|
+
};
|
|
3560
3581
|
const selectTab = async tabId => {
|
|
3561
3582
|
// @ts-ignore
|
|
3562
3583
|
return invoke$1('Settings.handleClickTab', tabId);
|
|
@@ -3570,19 +3591,29 @@ const selectTextEditor = async () => {
|
|
|
3570
3591
|
const selectExtensions = async () => {
|
|
3571
3592
|
await selectTab('extensions');
|
|
3572
3593
|
};
|
|
3594
|
+
const selectWindow = async () => {
|
|
3595
|
+
await selectTab('window');
|
|
3596
|
+
};
|
|
3573
3597
|
const handleScroll = async scrollTop => {
|
|
3574
3598
|
// @ts-ignore
|
|
3575
3599
|
await invoke$1('Settings.handleScroll', scrollTop, Script);
|
|
3576
3600
|
};
|
|
3601
|
+
const handleClickFilterButton = async (x, y) => {
|
|
3602
|
+
// @ts-ignore
|
|
3603
|
+
await invoke$1('Settings.handleClickFilterButton', x, y);
|
|
3604
|
+
};
|
|
3577
3605
|
|
|
3578
3606
|
const SettingsView = {
|
|
3579
3607
|
__proto__: null,
|
|
3580
3608
|
clear,
|
|
3609
|
+
clearHistory,
|
|
3610
|
+
handleClickFilterButton,
|
|
3581
3611
|
handleInput: handleInput$1,
|
|
3582
3612
|
handleScroll,
|
|
3583
3613
|
selectExtensions,
|
|
3584
3614
|
selectTab,
|
|
3585
3615
|
selectTextEditor,
|
|
3616
|
+
selectWindow,
|
|
3586
3617
|
selectWorkspace,
|
|
3587
3618
|
show: show$1,
|
|
3588
3619
|
useNextSearchValue,
|