@todesktop/shared 7.97.0 → 7.98.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.
@@ -32,13 +32,19 @@ export declare type DesktopifyAppTrayToggleMenuAction = {
32
32
  role: "toggleMenu";
33
33
  menu: DesktopifyMenuItemConstructorOptions[];
34
34
  };
35
+ /**
36
+ * Custom Menu Role
37
+ */
38
+ export declare type DesktopifyAppTrayCustomMenuAction = {
39
+ role: "customMenu";
40
+ };
35
41
  /**
36
42
  * No Action Tray Action
37
43
  */
38
44
  export declare type DesktopifyAppTrayNoAction = {
39
45
  role: "noAction";
40
46
  };
41
- export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
47
+ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayCustomMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
42
48
  export interface DesktopifyAppTray {
43
49
  id: string;
44
50
  icon?: string;
@@ -48,6 +54,7 @@ export interface DesktopifyAppTray {
48
54
  linuxIcon?: string;
49
55
  bundledIcon?: string;
50
56
  useTemplateImage?: boolean;
57
+ customMenu?: DesktopifyAppMenu[];
51
58
  rightClick: DesktopifyAppTrayAction;
52
59
  leftClick: DesktopifyAppTrayAction;
53
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.97.0",
3
+ "version": "7.98.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -57,6 +57,13 @@ export type DesktopifyAppTrayToggleMenuAction = {
57
57
  menu: DesktopifyMenuItemConstructorOptions[];
58
58
  };
59
59
 
60
+ /**
61
+ * Custom Menu Role
62
+ */
63
+ export type DesktopifyAppTrayCustomMenuAction = {
64
+ role: "customMenu";
65
+ };
66
+
60
67
  /**
61
68
  * No Action Tray Action
62
69
  */
@@ -66,6 +73,7 @@ export type DesktopifyAppTrayNoAction = {
66
73
 
67
74
  export type DesktopifyAppTrayAction =
68
75
  | DesktopifyAppTrayToggleMenuAction
76
+ | DesktopifyAppTrayCustomMenuAction
69
77
  | DesktopifyAppTrayToggleWindowAction
70
78
  | DesktopifyAppTrayNoAction;
71
79
 
@@ -78,6 +86,7 @@ export interface DesktopifyAppTray {
78
86
  linuxIcon?: string;
79
87
  bundledIcon?: string;
80
88
  useTemplateImage?: boolean;
89
+ customMenu?: DesktopifyAppMenu[];
81
90
  rightClick: DesktopifyAppTrayAction;
82
91
  leftClick: DesktopifyAppTrayAction;
83
92
  }