@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 +1 -0
- package/lib/desktopify2.d.ts +10 -1
- package/package.json +1 -1
- package/src/base.ts +1 -0
- package/src/desktopify2.ts +11 -0
package/lib/base.d.ts
CHANGED
package/lib/desktopify2.d.ts
CHANGED
|
@@ -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
package/src/base.ts
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -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 {
|