@dotdirfm/extension-api 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -21
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -52,13 +52,6 @@ export interface HostApi {
52
52
  onThemeChange(callback: (theme: ColorThemeData) => void): () => void;
53
53
  onClose(): void;
54
54
  executeCommand<T = unknown>(command: string, args?: unknown): Promise<T>;
55
- registerCommand(commandId: string, handler: (...args: unknown[]) => void | Promise<void>): () => void;
56
- registerKeybinding(binding: {
57
- command: string;
58
- key: string;
59
- mac?: string;
60
- when?: string;
61
- }): () => void;
62
55
  getExtensionResourceUrl(relativePath: string): Promise<string>;
63
56
  }
64
57
  export interface ViewerExtensionApi {
@@ -88,20 +81,7 @@ export interface FsProviderExtensionApi {
88
81
  export type DotDirHostReadyCallback = (api: ViewerExtensionApi | EditorExtensionApi) => void;
89
82
  export type FsProviderFactory = (hostApi: FsProviderHostApi) => FsProviderExtensionApi;
90
83
  export interface DotDirCommandsApi {
91
- registerCommand: (commandId: string, handler: (...args: unknown[]) => void | Promise<void>, options?: {
92
- title?: string;
93
- category?: string;
94
- icon?: string;
95
- when?: string;
96
- }) => {
97
- dispose: () => void;
98
- };
99
- registerKeybinding: (binding: {
100
- command: string;
101
- key: string;
102
- mac?: string;
103
- when?: string;
104
- }) => {
84
+ registerCommand: (commandId: string, handler: (...args: unknown[]) => void | Promise<void>) => {
105
85
  dispose: () => void;
106
86
  };
107
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdirfm/extension-api",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Shared host and extension API types for DotDir viewer/editor/fs provider extensions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",