@todesktop/shared 7.55.0 → 7.56.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.
@@ -180,11 +180,15 @@ export declare type DesktopifyAppTrayToggleMenuAction = {
180
180
  role: "toggleMenu";
181
181
  menu: DesktopifyMenuItemConstructorOptions[];
182
182
  };
183
- export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction;
183
+ export declare type DesktopifyAppTrayNoMenuAction = {
184
+ role: "noAction";
185
+ };
186
+ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoMenuAction;
184
187
  export interface DesktopifyAppTray {
188
+ id: string;
185
189
  icon: string;
186
- rightClick?: DesktopifyAppTrayAction;
187
- leftClick?: DesktopifyAppTrayAction;
190
+ rightClick: DesktopifyAppTrayAction;
191
+ leftClick: DesktopifyAppTrayAction;
188
192
  }
189
193
  export interface DesktopifyApp {
190
194
  name: string;
@@ -235,4 +239,8 @@ export interface DesktopifyApp2 extends DesktopifyApp {
235
239
  windows: DesktopifyAppWindow[];
236
240
  trays: DesktopifyAppTray[];
237
241
  }
242
+ export interface IApp2 extends IApp {
243
+ windows: DesktopifyAppWindow[];
244
+ trays: DesktopifyAppTray[];
245
+ }
238
246
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.55.0",
3
+ "version": "7.56.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -317,14 +317,20 @@ export type DesktopifyAppTrayToggleMenuAction = {
317
317
  menu: DesktopifyMenuItemConstructorOptions[];
318
318
  };
319
319
 
320
+ export type DesktopifyAppTrayNoMenuAction = {
321
+ role: "noAction";
322
+ };
323
+
320
324
  export type DesktopifyAppTrayAction =
321
325
  | DesktopifyAppTrayToggleMenuAction
322
- | DesktopifyAppTrayToggleWindowAction;
326
+ | DesktopifyAppTrayToggleWindowAction
327
+ | DesktopifyAppTrayNoMenuAction;
323
328
 
324
329
  export interface DesktopifyAppTray {
330
+ id: string;
325
331
  icon: string;
326
- rightClick?: DesktopifyAppTrayAction;
327
- leftClick?: DesktopifyAppTrayAction;
332
+ rightClick: DesktopifyAppTrayAction;
333
+ leftClick: DesktopifyAppTrayAction;
328
334
  }
329
335
 
330
336
  export interface DesktopifyApp {
@@ -377,3 +383,8 @@ export interface DesktopifyApp2 extends DesktopifyApp {
377
383
  windows: DesktopifyAppWindow[];
378
384
  trays: DesktopifyAppTray[];
379
385
  }
386
+
387
+ export interface IApp2 extends IApp {
388
+ windows: DesktopifyAppWindow[];
389
+ trays: DesktopifyAppTray[];
390
+ }