@todesktop/shared 7.90.0 → 7.94.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/base.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WindowsEVOnboardingProvider = exports.WindowsEVOnboardingSteps = void 0;
3
4
  var WindowsEVOnboardingSteps;
4
5
  (function (WindowsEVOnboardingSteps) {
5
6
  WindowsEVOnboardingSteps["hasChosenProvider"] = "hasChosenProvider";
package/lib/desktopify.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBuildCancellable = exports.isBuildRunning = exports.isCiBuildRunning = exports.isPlatformBuildRunning = exports.hasBuildKickedOff = exports.ManifestCategory = exports.BuildStatus = exports.PackageManager = exports.PlatformName = void 0;
3
4
  var PlatformName;
4
5
  (function (PlatformName) {
5
6
  PlatformName["linux"] = "linux";
@@ -5,13 +5,14 @@ import { BaseApp } from "./base";
5
5
  /**
6
6
  * Custom ToDesktop Roles for Application & Tray Menus
7
7
  */
8
- 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";
8
+ 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-window0" | "todesktop:toggle-window1" | "todesktop:toggle-window2" | "todesktop:toggle-window3" | "todesktop:toggle-window4";
9
9
  export interface DesktopifyMenuItemConstructorOptions extends Omit<MenuItemConstructorOptions, "role" | "submenu"> {
10
10
  platforms?: NodeJS.Platform[];
11
11
  submenu?: DesktopifyMenuItemConstructorOptions[];
12
12
  role?: MenuItemConstructorOptions["role"] | todesktopRoles;
13
13
  useSystemLabel?: boolean;
14
14
  event?: string;
15
+ actionType?: "jsEvent" | "role";
15
16
  }
16
17
  /**
17
18
  * Toggle Window Tray Action
@@ -162,6 +163,13 @@ export interface DesktopifyApp2 {
162
163
  * The app icon
163
164
  */
164
165
  icon?: string;
166
+ /**
167
+ * Instead of using one icon for every platform, use a separate icon for different platforms
168
+ */
169
+ useSeparateIcons?: boolean;
170
+ windowsIcon?: string;
171
+ macOSIcon?: string;
172
+ linuxIcon?: string;
165
173
  /**
166
174
  * The name of the company that the app belongs to
167
175
  */
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allowedWebPreferencesOptions = exports.allowedBrowserWindowConstructorOptions = void 0;
3
4
  /**
4
5
  * Whitelist of allowed DesktopifyWindow Options.
5
6
  * These attrs (if set) are passed to the `BrowserWindow` constructor
package/lib/index.js CHANGED
@@ -1,14 +1,23 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.schemaVersion = void 0;
6
14
  const package_json_1 = require("../package.json");
7
- __export(require("./toDesktop"));
8
- __export(require("./desktopify"));
9
- __export(require("./validations"));
10
- __export(require("./plans"));
11
- __export(require("./base"));
12
- __export(require("./desktopify2"));
15
+ __exportStar(require("./toDesktop"), exports);
16
+ __exportStar(require("./desktopify"), exports);
17
+ __exportStar(require("./validations"), exports);
18
+ __exportStar(require("./getSiteInfo"), exports);
19
+ __exportStar(require("./plans"), exports);
20
+ __exportStar(require("./base"), exports);
21
+ __exportStar(require("./desktopify2"), exports);
13
22
  const schemaVersion = package_json_1.version;
14
23
  exports.schemaVersion = schemaVersion;
package/lib/plans.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getEnterprisePlanIds = exports.getProfessionalPlanIds = exports.getCLIPlanIds = exports.getEssentialPlanIds = exports.getPlanEnvironment = exports.prodPlanIds = exports.devPlanIds = void 0;
3
4
  function pick(objectInput, ...keys) {
4
5
  const objectOutput = {};
5
6
  keys.forEach((key) => {
package/lib/toDesktop.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WindowsHSMCertType = void 0;
3
4
  var WindowsHSMCertType;
4
5
  (function (WindowsHSMCertType) {
5
6
  WindowsHSMCertType["ev"] = "ev";
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shouldMinimizeToTrayIsActive = exports.appConfigValidation = exports.appProtocolValidation = exports.internalAppRegexValidation = exports.widthValidation = exports.heightValidation = exports.urlValidationForm = exports.urlValidation = exports.iconValidation = exports.forceVersionValidation = exports.appTitleValidation = void 0;
3
4
  const yup = require("yup");
4
5
  const semver = require("semver");
5
6
  const isRegex = require("is-regex");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.90.0",
3
+ "version": "7.94.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -30,6 +30,6 @@
30
30
  "tslint-eslint-rules": "5.4.0",
31
31
  "tslint-react": "^3.6.0",
32
32
  "tslint-react-hooks": "1.1.0",
33
- "typescript": "^3.4.5"
33
+ "typescript": "^3.9.10"
34
34
  }
35
35
  }
@@ -20,7 +20,12 @@ type todesktopRoles =
20
20
  | "todesktop:history-back"
21
21
  | "todesktop:history-forward"
22
22
  | "todesktop:show-window"
23
- | "todesktop:hide-window";
23
+ | "todesktop:hide-window"
24
+ | "todesktop:toggle-window0"
25
+ | "todesktop:toggle-window1"
26
+ | "todesktop:toggle-window2"
27
+ | "todesktop:toggle-window3"
28
+ | "todesktop:toggle-window4";
24
29
 
25
30
  export interface DesktopifyMenuItemConstructorOptions
26
31
  extends Omit<MenuItemConstructorOptions, "role" | "submenu"> {
@@ -29,6 +34,7 @@ export interface DesktopifyMenuItemConstructorOptions
29
34
  role?: MenuItemConstructorOptions["role"] | todesktopRoles;
30
35
  useSystemLabel?: boolean;
31
36
  event?: string;
37
+ actionType?: "jsEvent" | "role";
32
38
  }
33
39
 
34
40
  /**
@@ -269,6 +275,13 @@ export interface DesktopifyApp2 {
269
275
  * The app icon
270
276
  */
271
277
  icon?: string;
278
+ /**
279
+ * Instead of using one icon for every platform, use a separate icon for different platforms
280
+ */
281
+ useSeparateIcons?: boolean;
282
+ windowsIcon?: string;
283
+ macOSIcon?: string;
284
+ linuxIcon?: string;
272
285
  /**
273
286
  * The name of the company that the app belongs to
274
287
  */