@todesktop/shared 7.57.0 → 7.58.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 +7 -1
- package/package.json +1 -1
- package/src/desktopify2.ts +8 -1
package/lib/desktopify2.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface DesktopifyAppTray {
|
|
|
41
41
|
rightClick: DesktopifyAppTrayAction;
|
|
42
42
|
leftClick: DesktopifyAppTrayAction;
|
|
43
43
|
}
|
|
44
|
+
export declare type DesktopifyAppMenu = DesktopifyMenuItemConstructorOptions[];
|
|
44
45
|
/**
|
|
45
46
|
* Whitelist of allowed DesktopifyWindow Options.
|
|
46
47
|
* These attrs (if set) are passed to the `BrowserWindow` constructor
|
|
@@ -82,7 +83,7 @@ export interface DesktopifyAppWindow {
|
|
|
82
83
|
/**
|
|
83
84
|
* The window's application menu
|
|
84
85
|
*/
|
|
85
|
-
applicationMenu:
|
|
86
|
+
applicationMenu: DesktopifyAppMenu[];
|
|
86
87
|
/**
|
|
87
88
|
* Keyboard shortcut to toggle window visibility
|
|
88
89
|
*/
|
|
@@ -244,9 +245,14 @@ export interface DesktopifyApp2 {
|
|
|
244
245
|
* The app's trays
|
|
245
246
|
*/
|
|
246
247
|
trays: DesktopifyAppTray[];
|
|
248
|
+
/**
|
|
249
|
+
* The app's menus
|
|
250
|
+
*/
|
|
251
|
+
menus: DesktopifyAppMenu[];
|
|
247
252
|
}
|
|
248
253
|
export interface IApp2 extends IApp {
|
|
249
254
|
windows: DesktopifyAppWindow[];
|
|
250
255
|
trays: DesktopifyAppTray[];
|
|
256
|
+
menus: DesktopifyAppMenu[];
|
|
251
257
|
}
|
|
252
258
|
export {};
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -67,6 +67,8 @@ export interface DesktopifyAppTray {
|
|
|
67
67
|
leftClick: DesktopifyAppTrayAction;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
export type DesktopifyAppMenu = DesktopifyMenuItemConstructorOptions[];
|
|
71
|
+
|
|
70
72
|
/**
|
|
71
73
|
* Whitelist of allowed DesktopifyWindow Options.
|
|
72
74
|
* These attrs (if set) are passed to the `BrowserWindow` constructor
|
|
@@ -183,7 +185,7 @@ export interface DesktopifyAppWindow {
|
|
|
183
185
|
/**
|
|
184
186
|
* The window's application menu
|
|
185
187
|
*/
|
|
186
|
-
applicationMenu:
|
|
188
|
+
applicationMenu: DesktopifyAppMenu[];
|
|
187
189
|
/**
|
|
188
190
|
* Keyboard shortcut to toggle window visibility
|
|
189
191
|
*/
|
|
@@ -350,9 +352,14 @@ export interface DesktopifyApp2 {
|
|
|
350
352
|
* The app's trays
|
|
351
353
|
*/
|
|
352
354
|
trays: DesktopifyAppTray[];
|
|
355
|
+
/**
|
|
356
|
+
* The app's menus
|
|
357
|
+
*/
|
|
358
|
+
menus: DesktopifyAppMenu[];
|
|
353
359
|
}
|
|
354
360
|
|
|
355
361
|
export interface IApp2 extends IApp {
|
|
356
362
|
windows: DesktopifyAppWindow[];
|
|
357
363
|
trays: DesktopifyAppTray[];
|
|
364
|
+
menus: DesktopifyAppMenu[];
|
|
358
365
|
}
|