@lvce-editor/test-worker 13.17.0 → 13.18.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
@@ -368,6 +368,7 @@ interface Explorer {
368
368
  readonly handleDragOver: (x: number, y: number) => Promise<void>;
369
369
  readonly handleDragOverIndex: (index: number) => Promise<void>;
370
370
  readonly handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
371
+ readonly handleDropIndex: (fileHandles: readonly FileSystemHandle[], files: readonly any[], paths: readonly string[], index: number) => Promise<void>;
371
372
  readonly handleEscape: () => Promise<void>;
372
373
  readonly handleInputBlur: () => Promise<void>;
373
374
  readonly handlePaste: () => Promise<void>;
@@ -433,7 +434,7 @@ interface ExtensionSearch {
433
434
  }
434
435
 
435
436
  interface FileSystem {
436
- readonly addFileHandle: (file: File) => Promise<void>;
437
+ readonly addFileHandle: (file: File | FileSystemHandle) => Promise<void>;
437
438
  readonly chmod: (uri: string, permissions: any) => Promise<void>;
438
439
  readonly createDroppedFileHandle: () => Promise<DroppedFileHandle>;
439
440
  readonly createExecutable: (content: string) => Promise<string>;
@@ -509,6 +510,11 @@ interface KeyBoard {
509
510
  readonly press: (key: string) => Promise<void>;
510
511
  }
511
512
 
513
+ interface Layout {
514
+ readonly handleWorkspaceRefresh: () => Promise<void>;
515
+ readonly showSideBar: () => Promise<void>;
516
+ }
517
+
512
518
  interface LanguageModels {
513
519
  readonly addModel: () => Promise<void>;
514
520
  readonly clearFilterInput: () => Promise<void>;
@@ -765,6 +771,7 @@ export interface TestApi {
765
771
  readonly IframeInspector: IframeInspector
766
772
  readonly KeyBindingsEditor: KeyBindingsEditor
767
773
  readonly KeyBoard: KeyBoard
774
+ readonly Layout: Layout
768
775
  readonly LanguageModels: LanguageModels
769
776
  readonly Main: Main
770
777
  readonly Open: Open
@@ -2635,6 +2635,9 @@ const handleBlur = async () => {
2635
2635
  const handleEscape = async () => {
2636
2636
  await invoke$1('Explorer.handleEscape');
2637
2637
  };
2638
+ const handleDropIndex = async (fileHandles, files, paths, index) => {
2639
+ await invoke$1('Explorer.handleDropIndex', fileHandles, files, paths, index);
2640
+ };
2638
2641
  const handleInputBlur = async () => {
2639
2642
  await invoke$1('Explorer.handleInputBlur');
2640
2643
  };
@@ -2768,6 +2771,7 @@ const Explorer = {
2768
2771
  handleDragOver,
2769
2772
  handleDragOverIndex,
2770
2773
  handleDrop,
2774
+ handleDropIndex,
2771
2775
  handleEscape,
2772
2776
  handleInputBlur,
2773
2777
  handlePaste,
@@ -3402,6 +3406,18 @@ const KeyBoard = {
3402
3406
  press
3403
3407
  };
3404
3408
 
3409
+ const showSideBar = async () => {
3410
+ await execute$1('Layout.showSideBar');
3411
+ };
3412
+ const handleWorkspaceRefresh = async () => {
3413
+ await invoke$1('Layout.handleWorkspaceRefresh');
3414
+ };
3415
+
3416
+ const Layout = {
3417
+ handleWorkspaceRefresh,
3418
+ showSideBar
3419
+ };
3420
+
3405
3421
  const open$4 = async () => {
3406
3422
  await invoke$1('Main.openUri', 'language-models:///1');
3407
3423
  };
@@ -4334,6 +4350,7 @@ const createApi = (platform, assetDir) => {
4334
4350
  KeyBindingsEditor,
4335
4351
  KeyBoard,
4336
4352
  LanguageModels,
4353
+ Layout,
4337
4354
  Locator: createLocator,
4338
4355
  Main,
4339
4356
  Open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "13.17.0",
3
+ "version": "13.18.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",