@todesktop/shared 7.122.0 → 7.126.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.
@@ -15,6 +15,9 @@ export interface DesktopifyMenuItemConstructorOptions extends Omit<MenuItemConst
15
15
  event?: string;
16
16
  targetWindowId?: string;
17
17
  actionType?: "jsEvent" | "role";
18
+ iconUrl?: string;
19
+ bundledIcon?: string;
20
+ useTemplateImage?: boolean;
18
21
  }
19
22
  /**
20
23
  * Toggle Window Tray Action
@@ -295,6 +298,15 @@ export interface DesktopifyApp2 {
295
298
  * Once set the menu bar will only show when users press the single Alt key.
296
299
  */
297
300
  autoHideMenuBar?: boolean;
301
+ /**
302
+ * Sets whether an offline screen will be displayed if the internet is disconnected
303
+ * on initial page load. The color of the re-connect button that is shown is customizable.
304
+ */
305
+ offlineScreen?: {
306
+ enabled: boolean;
307
+ buttonBackgroundColor: string;
308
+ buttonTextColor: string;
309
+ };
298
310
  }
299
311
  export interface IApp2 extends BaseApp {
300
312
  desktopApp: DesktopifyApp2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.122.0",
3
+ "version": "7.126.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -38,6 +38,9 @@ export interface DesktopifyMenuItemConstructorOptions
38
38
  event?: string;
39
39
  targetWindowId?: string;
40
40
  actionType?: "jsEvent" | "role";
41
+ iconUrl?: string;
42
+ bundledIcon?: string;
43
+ useTemplateImage?: boolean;
41
44
  }
42
45
 
43
46
  /**
@@ -408,6 +411,15 @@ export interface DesktopifyApp2 {
408
411
  * Once set the menu bar will only show when users press the single Alt key.
409
412
  */
410
413
  autoHideMenuBar?: boolean;
414
+ /**
415
+ * Sets whether an offline screen will be displayed if the internet is disconnected
416
+ * on initial page load. The color of the re-connect button that is shown is customizable.
417
+ */
418
+ offlineScreen?: {
419
+ enabled: boolean;
420
+ buttonBackgroundColor: string;
421
+ buttonTextColor: string;
422
+ };
411
423
  }
412
424
 
413
425
  export interface IApp2 extends BaseApp {