@lvce-editor/test-worker 14.3.0 → 14.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 CHANGED
@@ -610,6 +610,8 @@ interface Main {
610
610
  readonly focusLast: () => Promise<void>;
611
611
  readonly focusNext: () => Promise<void>;
612
612
  readonly focusPrevious: () => Promise<void>;
613
+ readonly handleClickAction: (action: string, rawGroupId: string) => Promise<void>;
614
+ readonly handleClickCloseTab: (rawGroupIndex: string, rawIndex: string) => Promise<void>;
613
615
  readonly handleClickTogglePreview: () => Promise<void>;
614
616
  readonly handleModifiedStatusChange: (uri: string, newStatus: boolean) => Promise<void>;
615
617
  readonly handleTabContextMenu: (button: number, x: number, y: number) => Promise<void>;
@@ -2327,6 +2327,9 @@ const openKeyBindings = async () => {
2327
2327
  const handleClickTogglePreview = async () => {
2328
2328
  await invoke('Main.handleClickTogglePreview');
2329
2329
  };
2330
+ const handleClickAction = async (action, rawGroupId) => {
2331
+ await invoke('Main.handleClickAction', action, rawGroupId);
2332
+ };
2330
2333
  const closeAllEditors = async () => {
2331
2334
  await invoke('Main.closeAllEditors');
2332
2335
  };
@@ -2363,6 +2366,9 @@ const focusNext$7 = async () => {
2363
2366
  const focusPrevious$6 = async () => {
2364
2367
  await invoke('Main.focusPrevious');
2365
2368
  };
2369
+ const handleClickCloseTab = async (rawGroupIndex, rawIndex) => {
2370
+ await invoke('Main.handleClickCloseTab', rawGroupIndex, rawIndex);
2371
+ };
2366
2372
  const focusLast$5 = async () => {
2367
2373
  await invoke('Main.focusLast');
2368
2374
  };
@@ -2388,6 +2394,8 @@ const Main = {
2388
2394
  focusLast: focusLast$5,
2389
2395
  focusNext: focusNext$7,
2390
2396
  focusPrevious: focusPrevious$6,
2397
+ handleClickAction,
2398
+ handleClickCloseTab,
2391
2399
  handleClickTogglePreview,
2392
2400
  handleModifiedStatusChange,
2393
2401
  handleTabContextMenu,
@@ -3366,10 +3374,11 @@ const getFileMapWeb = async url => {
3366
3374
  };
3367
3375
 
3368
3376
  const loadFixtureToMemFs = async fileMap => {
3369
- for (const [path, content] of Object.entries(fileMap)) {
3377
+ await Promise.all(Object.entries(fileMap).map(entry => {
3378
+ const [path, content] = entry;
3370
3379
  const memfsPath = `memfs:///fixture/${path}`;
3371
- await invoke('FileSystem.writeFile', memfsPath, content);
3372
- }
3380
+ return invoke('FileSystem.writeFile', memfsPath, content);
3381
+ }));
3373
3382
  return `memfs:///fixture`;
3374
3383
  };
3375
3384
 
@@ -4017,10 +4026,7 @@ const selectItem2 = async ({
4017
4026
  const {
4018
4027
  promise
4019
4028
  } = await registerCallbackCommand(callbackCommand);
4020
-
4021
- // @ts-ignore
4022
- invoke('QuickPick.selectItem', label);
4023
- await promise;
4029
+ await Promise.all([promise, invoke('QuickPick.selectItem', label)]);
4024
4030
  };
4025
4031
 
4026
4032
  const QuickPick = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "14.3.0",
3
+ "version": "14.5.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",