@todesktop/shared 7.123.0 → 7.127.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 +15 -1
- package/package.json +1 -1
- package/src/desktopify2.ts +15 -1
package/lib/desktopify2.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface DesktopifyMenuItemConstructorOptions extends Omit<MenuItemConst
|
|
|
17
17
|
actionType?: "jsEvent" | "role";
|
|
18
18
|
iconUrl?: string;
|
|
19
19
|
bundledIcon?: string;
|
|
20
|
+
useTemplateImage?: boolean;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Toggle Window Tray Action
|
|
@@ -168,9 +169,13 @@ export interface DesktopifyApp2 {
|
|
|
168
169
|
*/
|
|
169
170
|
name: string;
|
|
170
171
|
/**
|
|
171
|
-
* The app icon
|
|
172
|
+
* The app icon url
|
|
172
173
|
*/
|
|
173
174
|
icon?: string;
|
|
175
|
+
/**
|
|
176
|
+
* The locally-bundled app icon.
|
|
177
|
+
*/
|
|
178
|
+
bundledIcon?: string;
|
|
174
179
|
/**
|
|
175
180
|
* Instead of using one icon for every platform, use a separate icon for different platforms
|
|
176
181
|
*/
|
|
@@ -297,6 +302,15 @@ export interface DesktopifyApp2 {
|
|
|
297
302
|
* Once set the menu bar will only show when users press the single Alt key.
|
|
298
303
|
*/
|
|
299
304
|
autoHideMenuBar?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Sets whether an offline screen will be displayed if the internet is disconnected
|
|
307
|
+
* on initial page load. The color of the re-connect button that is shown is customizable.
|
|
308
|
+
*/
|
|
309
|
+
offlineScreen?: {
|
|
310
|
+
enabled: boolean;
|
|
311
|
+
buttonBackgroundColor: string;
|
|
312
|
+
buttonTextColor: string;
|
|
313
|
+
};
|
|
300
314
|
}
|
|
301
315
|
export interface IApp2 extends BaseApp {
|
|
302
316
|
desktopApp: DesktopifyApp2;
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface DesktopifyMenuItemConstructorOptions
|
|
|
40
40
|
actionType?: "jsEvent" | "role";
|
|
41
41
|
iconUrl?: string;
|
|
42
42
|
bundledIcon?: string;
|
|
43
|
+
useTemplateImage?: boolean;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
/**
|
|
@@ -281,9 +282,13 @@ export interface DesktopifyApp2 {
|
|
|
281
282
|
*/
|
|
282
283
|
name: string;
|
|
283
284
|
/**
|
|
284
|
-
* The app icon
|
|
285
|
+
* The app icon url
|
|
285
286
|
*/
|
|
286
287
|
icon?: string;
|
|
288
|
+
/**
|
|
289
|
+
* The locally-bundled app icon.
|
|
290
|
+
*/
|
|
291
|
+
bundledIcon?: string;
|
|
287
292
|
/**
|
|
288
293
|
* Instead of using one icon for every platform, use a separate icon for different platforms
|
|
289
294
|
*/
|
|
@@ -410,6 +415,15 @@ export interface DesktopifyApp2 {
|
|
|
410
415
|
* Once set the menu bar will only show when users press the single Alt key.
|
|
411
416
|
*/
|
|
412
417
|
autoHideMenuBar?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Sets whether an offline screen will be displayed if the internet is disconnected
|
|
420
|
+
* on initial page load. The color of the re-connect button that is shown is customizable.
|
|
421
|
+
*/
|
|
422
|
+
offlineScreen?: {
|
|
423
|
+
enabled: boolean;
|
|
424
|
+
buttonBackgroundColor: string;
|
|
425
|
+
buttonTextColor: string;
|
|
426
|
+
};
|
|
413
427
|
}
|
|
414
428
|
|
|
415
429
|
export interface IApp2 extends BaseApp {
|