@todesktop/shared 7.184.3 → 7.184.5

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.
@@ -150,7 +150,7 @@ export interface SmokeTestProgress {
150
150
  message?: string;
151
151
  progress: number;
152
152
  screenshot?: string;
153
- state: 'progress' | 'done' | 'error' | 'skipped';
153
+ state: "progress" | "done" | "error" | "skipped";
154
154
  updatedAppHasNoMainErrors?: boolean;
155
155
  }
156
156
  export declare const hasBuildKickedOff: (build: Build) => boolean;
@@ -31,7 +31,7 @@ export declare type AssetDetails = AppIconAssetDetails | MenuIconAssetDetails |
31
31
  /**
32
32
  * Custom ToDesktop Roles for Application & Tray Menus
33
33
  */
34
- declare type todesktopRoles = "todesktop:launch-at-startup" | "todesktop:check-for-updates" | "todesktop:quit" | "todesktop:new-window" | "todesktop:new-tab" | "todesktop:check-for-updates" | "todesktop:history-home" | "todesktop:history-back" | "todesktop:history-forward" | "todesktop:show-window" | "todesktop:hide-window" | "todesktop:toggle-window" | "todesktop:toggle-window0" | "todesktop:toggle-window1" | "todesktop:toggle-window2" | "todesktop:toggle-window3" | "todesktop:toggle-window4";
34
+ declare type todesktopRoles = "todesktop:launch-at-startup" | "todesktop:check-for-updates" | "todesktop:quit" | "todesktop:quit-completely" | "todesktop:new-window" | "todesktop:new-tab" | "todesktop:check-for-updates" | "todesktop:history-home" | "todesktop:history-back" | "todesktop:history-forward" | "todesktop:show-window" | "todesktop:hide-window" | "todesktop:toggle-window" | "todesktop:toggle-window0" | "todesktop:toggle-window1" | "todesktop:toggle-window2" | "todesktop:toggle-window3" | "todesktop:toggle-window4";
35
35
  export interface DesktopifyMenuItemConstructorOptions extends Omit<MenuItemConstructorOptions, "role" | "submenu"> {
36
36
  platforms?: NodeJS.Platform[];
37
37
  submenu?: DesktopifyMenuItemConstructorOptions[];
@@ -95,14 +95,14 @@ export declare type DesktopifyAppMenu = DesktopifyMenuItemConstructorOptions;
95
95
  * when the window is created
96
96
  */
97
97
  export declare const allowedBrowserWindowConstructorOptions: Readonly<(keyof BrowserWindowConstructorOptions)[]>;
98
- export declare type whitelistedBrowserWindowConstructorOptions = typeof allowedBrowserWindowConstructorOptions[number];
98
+ export declare type whitelistedBrowserWindowConstructorOptions = (typeof allowedBrowserWindowConstructorOptions)[number];
99
99
  /**
100
100
  * Whitelist of allowed DesktopifyWindow Web Preferences Options.
101
101
  * These attrs (if set) are passed to the webPreferences object in the `BrowserWindow` constructor
102
102
  * when the window is created
103
103
  */
104
104
  export declare const allowedWebPreferencesOptions: Readonly<(keyof WebPreferences)[]>;
105
- export declare type whitelistedWebPreferencesOptions = typeof allowedWebPreferencesOptions[number];
105
+ export declare type whitelistedWebPreferencesOptions = (typeof allowedWebPreferencesOptions)[number];
106
106
  /**
107
107
  * Interface for ToDesktop App Windows
108
108
  */
@@ -391,7 +391,7 @@ export interface DesktopifyApp2 {
391
391
  /**
392
392
  * Whether the app should have full access to Electron APIs
393
393
  * @default false
394
- */
394
+ */
395
395
  shouldHaveFullAccessToElectronAPIs?: boolean;
396
396
  }
397
397
  export interface IApp2 extends BaseApp {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.184.3",
3
+ "version": "7.184.5",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "author": "Dave Jeffery <dave@davejeffery.com>",
15
15
  "license": "UNLICENSED",
16
16
  "dependencies": {
17
- "@todesktop/client-electron-types": "^13.1.8",
17
+ "@todesktop/client-electron-types": "^23.1.1",
18
18
  "@types/debug": "^4.1.1",
19
19
  "@types/node": "^16.4.12",
20
20
  "@types/yup": "^0.26.9",
package/src/desktopify.ts CHANGED
@@ -7,10 +7,6 @@ import {
7
7
  // packages since it's too large
8
8
  // @ts-ignore
9
9
  } from "app-builder-lib";
10
- import {
11
- MenuItemConstructorOptions,
12
- BrowserWindowConstructorOptions,
13
- } from "@todesktop/client-electron-types";
14
10
 
15
11
  type appBuilderLib = PackagerOptions & PublishOptions;
16
12
  export interface IAppBuilderLib extends appBuilderLib {
@@ -224,7 +220,7 @@ export interface SmokeTestProgress {
224
220
  message?: string;
225
221
  progress: number;
226
222
  screenshot?: string;
227
- state: 'progress' | 'done' | 'error' | 'skipped';
223
+ state: "progress" | "done" | "error" | "skipped";
228
224
  updatedAppHasNoMainErrors?: boolean;
229
225
  }
230
226
 
@@ -49,6 +49,7 @@ type todesktopRoles =
49
49
  | "todesktop:launch-at-startup"
50
50
  | "todesktop:check-for-updates"
51
51
  | "todesktop:quit"
52
+ | "todesktop:quit-completely"
52
53
  | "todesktop:new-window"
53
54
  | "todesktop:new-tab"
54
55
  | "todesktop:check-for-updates"
@@ -188,7 +189,7 @@ export const allowedBrowserWindowConstructorOptions: Readonly<
188
189
 
189
190
  // Make type from all numbered index values
190
191
  export type whitelistedBrowserWindowConstructorOptions =
191
- typeof allowedBrowserWindowConstructorOptions[number];
192
+ (typeof allowedBrowserWindowConstructorOptions)[number];
192
193
 
193
194
  /**
194
195
  * Whitelist of allowed DesktopifyWindow Web Preferences Options.
@@ -219,7 +220,7 @@ export const allowedWebPreferencesOptions: Readonly<(keyof WebPreferences)[]> =
219
220
 
220
221
  // Make type from all numbered index values
221
222
  export type whitelistedWebPreferencesOptions =
222
- typeof allowedWebPreferencesOptions[number];
223
+ (typeof allowedWebPreferencesOptions)[number];
223
224
 
224
225
  /**
225
226
  * Interface for ToDesktop App Windows
@@ -517,7 +518,7 @@ export interface DesktopifyApp2 {
517
518
  /**
518
519
  * Whether the app should have full access to Electron APIs
519
520
  * @default false
520
- */
521
+ */
521
522
  shouldHaveFullAccessToElectronAPIs?: boolean;
522
523
  }
523
524