@todesktop/shared 7.140.0 → 7.142.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/lib/desktopify2.d.ts +9 -1
- package/package.json +1 -1
- package/src/desktopify2.ts +11 -1
package/lib/desktopify2.d.ts
CHANGED
|
@@ -23,7 +23,11 @@ export interface MenuIconAssetDetails extends BaseAssetDetails {
|
|
|
23
23
|
export interface TrayMenubarIconAssetDetails extends BaseAssetDetails {
|
|
24
24
|
type: "trayMenubarIcon";
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export interface FileAssetDetails extends BaseAssetDetails {
|
|
27
|
+
md5Hash: string;
|
|
28
|
+
type: "file";
|
|
29
|
+
}
|
|
30
|
+
export declare type AssetDetails = AppIconAssetDetails | MenuIconAssetDetails | TrayMenubarIconAssetDetails | FileAssetDetails;
|
|
27
31
|
/**
|
|
28
32
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
29
33
|
*/
|
|
@@ -359,6 +363,10 @@ export interface DesktopifyApp2 {
|
|
|
359
363
|
[lang in ValidTranslationLanguages]?: string;
|
|
360
364
|
};
|
|
361
365
|
};
|
|
366
|
+
/**
|
|
367
|
+
* File assets that get bundled with the app and are available offline
|
|
368
|
+
*/
|
|
369
|
+
fileAssetDetails: FileAssetDetails;
|
|
362
370
|
}
|
|
363
371
|
export interface IApp2 extends BaseApp {
|
|
364
372
|
desktopApp: DesktopifyApp2;
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -31,10 +31,16 @@ export interface TrayMenubarIconAssetDetails extends BaseAssetDetails {
|
|
|
31
31
|
type: "trayMenubarIcon";
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
export interface FileAssetDetails extends BaseAssetDetails {
|
|
35
|
+
md5Hash: string;
|
|
36
|
+
type: "file";
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
export type AssetDetails =
|
|
35
40
|
| AppIconAssetDetails
|
|
36
41
|
| MenuIconAssetDetails
|
|
37
|
-
| TrayMenubarIconAssetDetails
|
|
42
|
+
| TrayMenubarIconAssetDetails
|
|
43
|
+
| FileAssetDetails;
|
|
38
44
|
|
|
39
45
|
/**
|
|
40
46
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
@@ -482,6 +488,10 @@ export interface DesktopifyApp2 {
|
|
|
482
488
|
[lang in ValidTranslationLanguages]?: string;
|
|
483
489
|
};
|
|
484
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* File assets that get bundled with the app and are available offline
|
|
493
|
+
*/
|
|
494
|
+
fileAssetDetails: FileAssetDetails;
|
|
485
495
|
}
|
|
486
496
|
|
|
487
497
|
export interface IApp2 extends BaseApp {
|