@sigma-file-manager/api 1.7.0 → 1.7.1
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/index.d.ts +41 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export interface ExtensionManifestMediaItem {
|
|
|
172
172
|
type: ExtensionManifestMediaType;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export interface
|
|
175
|
+
export interface ExtensionManifestBase {
|
|
176
176
|
id: string;
|
|
177
177
|
name: string;
|
|
178
178
|
previousName?: string;
|
|
@@ -185,16 +185,53 @@ export interface ExtensionManifest {
|
|
|
185
185
|
media?: ExtensionManifestMediaItem[];
|
|
186
186
|
categories?: string[];
|
|
187
187
|
tags?: string[];
|
|
188
|
-
extensionType: ExtensionType;
|
|
189
|
-
main?: string;
|
|
190
188
|
permissions: ExtensionPermission[];
|
|
191
189
|
activationEvents?: ExtensionActivationEvent[];
|
|
192
|
-
contributes?: ExtensionContributions;
|
|
193
190
|
platforms?: PlatformOS[];
|
|
194
191
|
binaries?: ManifestBinaryDefinition[];
|
|
195
192
|
engines: ExtensionEngines;
|
|
196
193
|
}
|
|
197
194
|
|
|
195
|
+
export interface ThemeOnlyExtensionContributions {
|
|
196
|
+
themes: ExtensionThemeContribution[];
|
|
197
|
+
commands?: never;
|
|
198
|
+
contextMenu?: never;
|
|
199
|
+
sidebar?: never;
|
|
200
|
+
toolbar?: never;
|
|
201
|
+
configuration?: never;
|
|
202
|
+
keybindings?: never;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface ApiExtensionManifest extends ExtensionManifestBase {
|
|
206
|
+
extensionType: 'api';
|
|
207
|
+
main: string;
|
|
208
|
+
contributes?: ExtensionContributions;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface ThemeOnlyApiExtensionManifest extends ExtensionManifestBase {
|
|
212
|
+
extensionType: 'api';
|
|
213
|
+
main?: never;
|
|
214
|
+
contributes: ThemeOnlyExtensionContributions;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface IframeExtensionManifest extends ExtensionManifestBase {
|
|
218
|
+
extensionType: 'iframe';
|
|
219
|
+
main: string;
|
|
220
|
+
contributes?: ExtensionContributions;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface WebviewExtensionManifest extends ExtensionManifestBase {
|
|
224
|
+
extensionType: 'webview';
|
|
225
|
+
main: string;
|
|
226
|
+
contributes?: ExtensionContributions;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type ExtensionManifest
|
|
230
|
+
= | ApiExtensionManifest
|
|
231
|
+
| ThemeOnlyApiExtensionManifest
|
|
232
|
+
| IframeExtensionManifest
|
|
233
|
+
| WebviewExtensionManifest;
|
|
234
|
+
|
|
198
235
|
export interface Disposable {
|
|
199
236
|
dispose(): void;
|
|
200
237
|
}
|