@todesktop/shared 7.139.0 → 7.141.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.
@@ -23,7 +23,11 @@ export interface MenuIconAssetDetails extends BaseAssetDetails {
23
23
  export interface TrayMenubarIconAssetDetails extends BaseAssetDetails {
24
24
  type: "trayMenubarIcon";
25
25
  }
26
- export declare type AssetDetails = AppIconAssetDetails | MenuIconAssetDetails | TrayMenubarIconAssetDetails;
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
  */
@@ -273,6 +277,11 @@ export interface DesktopifyApp2 {
273
277
  * Launch App at startup
274
278
  */
275
279
  shouldLaunchAtStartupByDefault?: boolean;
280
+ /**
281
+ * If `true` the app will prevent app from opening any protocols that are not
282
+ * already in a maybeAllowList or allowList (see `protocolLists.ts` in desktopify).
283
+ */
284
+ shouldOnlyAllowVerifiedProtocols?: boolean;
276
285
  /**
277
286
  * Disables non-essential logs
278
287
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.139.0",
3
+ "version": "7.141.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -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
@@ -396,6 +402,11 @@ export interface DesktopifyApp2 {
396
402
  * Launch App at startup
397
403
  */
398
404
  shouldLaunchAtStartupByDefault?: boolean;
405
+ /**
406
+ * If `true` the app will prevent app from opening any protocols that are not
407
+ * already in a maybeAllowList or allowList (see `protocolLists.ts` in desktopify).
408
+ */
409
+ shouldOnlyAllowVerifiedProtocols?: boolean;
399
410
  /**
400
411
  * Disables non-essential logs
401
412
  */