@todesktop/shared 7.184.27 → 7.184.29

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/base.d.ts CHANGED
@@ -90,6 +90,7 @@ export interface IAppMeta {
90
90
  icon?: FilePath;
91
91
  };
92
92
  nodeVersion?: string;
93
+ npmVersion?: string;
93
94
  packageManager?: 'npm' | 'yarn' | 'pnpm';
94
95
  productName?: string;
95
96
  schemaVersion: number;
@@ -64,13 +64,22 @@ export declare type DesktopifyAppTrayToggleMenuAction = {
64
64
  role: 'toggleMenu';
65
65
  menu: DesktopifyMenuItemConstructorOptions[];
66
66
  };
67
+ /**
68
+ * JS Event Tray Action
69
+ *
70
+ * @param event - The name of the event
71
+ */
72
+ export declare type DesktopifyAppTrayJSEventAction = {
73
+ role: 'jsEvent';
74
+ event: string;
75
+ };
67
76
  /**
68
77
  * No Action Tray Action
69
78
  */
70
79
  export declare type DesktopifyAppTrayNoAction = {
71
80
  role: 'noAction';
72
81
  };
73
- export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
82
+ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayJSEventAction | DesktopifyAppTrayNoAction;
74
83
  export interface DesktopifyAppTray {
75
84
  id: string;
76
85
  objectId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.184.27",
3
+ "version": "7.184.29",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -102,6 +102,7 @@ export interface IAppMeta {
102
102
  icon?: FilePath;
103
103
  };
104
104
  nodeVersion?: string;
105
+ npmVersion?: string;
105
106
  packageManager?: 'npm' | 'yarn' | 'pnpm';
106
107
  productName?: string;
107
108
  schemaVersion: number;
@@ -101,6 +101,16 @@ export type DesktopifyAppTrayToggleMenuAction = {
101
101
  menu: DesktopifyMenuItemConstructorOptions[];
102
102
  };
103
103
 
104
+ /**
105
+ * JS Event Tray Action
106
+ *
107
+ * @param event - The name of the event
108
+ */
109
+ export type DesktopifyAppTrayJSEventAction = {
110
+ role: 'jsEvent';
111
+ event: string;
112
+ };
113
+
104
114
  /**
105
115
  * No Action Tray Action
106
116
  */
@@ -111,6 +121,7 @@ export type DesktopifyAppTrayNoAction = {
111
121
  export type DesktopifyAppTrayAction =
112
122
  | DesktopifyAppTrayToggleMenuAction
113
123
  | DesktopifyAppTrayToggleWindowAction
124
+ | DesktopifyAppTrayJSEventAction
114
125
  | DesktopifyAppTrayNoAction;
115
126
 
116
127
  export interface DesktopifyAppTray {