@lvce-editor/api 9.4.0 → 9.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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { activate } from './parts/Activation/Activation.ts';
2
2
  export { getAccessToken, type GetAccessTokenOptions } from './parts/Authentication/Authentication.ts';
3
3
  export { createElectronWebContentsView } from './parts/ElectronWebContentsView/ElectronWebContentsView.ts';
4
4
  export { executeCommand } from './parts/ExecuteCommand/ExecuteCommand.ts';
5
- export { showQuickInput, showQuickPick } from './parts/QuickPick/QuickPick.ts';
5
+ export { showFileQuickPick, showQuickInput, showQuickPick } from './parts/QuickPick/QuickPick.ts';
6
6
  export { getPreference, setPreference } from './parts/Preferences/Preferences.ts';
7
7
  export { deleteSecret, getSecret, storeSecret } from './parts/SecretStorage/SecretStorage.ts';
8
8
  export { registerCommand } from './parts/CommandRegistry/CommandRegistry.ts';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ export { activate } from "./parts/Activation/Activation.js";
2
2
  export { getAccessToken } from "./parts/Authentication/Authentication.js";
3
3
  export { createElectronWebContentsView } from "./parts/ElectronWebContentsView/ElectronWebContentsView.js";
4
4
  export { executeCommand } from "./parts/ExecuteCommand/ExecuteCommand.js";
5
- export { showQuickInput, showQuickPick } from "./parts/QuickPick/QuickPick.js";
5
+ export { showFileQuickPick, showQuickInput, showQuickPick } from "./parts/QuickPick/QuickPick.js";
6
6
  export { getPreference, setPreference } from "./parts/Preferences/Preferences.js";
7
7
  export { deleteSecret, getSecret, storeSecret } from "./parts/SecretStorage/SecretStorage.js";
8
8
  export { registerCommand } from "./parts/CommandRegistry/CommandRegistry.js";
@@ -1,4 +1,5 @@
1
1
  import type { ShowQuickInputOptions } from '../ShowQuickInputOptions/ShowQuickInputOptions.ts';
2
2
  import type { ShowQuickPickOptions } from '../ShowQuickPickOptions/ShowQuickPickOptions.ts';
3
+ export declare const showFileQuickPick: () => Promise<void>;
3
4
  export declare const showQuickInput: (options?: ShowQuickInputOptions) => Promise<string | undefined>;
4
5
  export declare const showQuickPick: (options: ShowQuickPickOptions) => Promise<unknown>;
@@ -1,4 +1,8 @@
1
1
  import { ExtensionManagementWorker } from '@lvce-editor/rpc-registry';
2
+ import { executeCommand } from "../ExecuteCommand/ExecuteCommand.js";
3
+ export const showFileQuickPick = async () => {
4
+ await executeCommand('QuickPick.showFile');
5
+ };
2
6
  export const showQuickInput = async (options = {}) => {
3
7
  return ExtensionManagementWorker.invoke('ExtensionHostQuickPick.showQuickInput', options);
4
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/api",
3
- "version": "9.4.0",
3
+ "version": "9.5.0",
4
4
  "description": "Tree-shakeable extension API for Lvce Editor extensions.",
5
5
  "keywords": [
6
6
  "lvce-editor",