@todesktop/shared 7.91.0 → 7.95.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,7 +5,7 @@ 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[];
@@ -41,7 +41,11 @@ export declare type DesktopifyAppTrayNoAction = {
41
41
  export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
42
42
  export interface DesktopifyAppTray {
43
43
  id: string;
44
- icon: string;
44
+ icon?: string;
45
+ useSeparateIcons?: boolean;
46
+ windowsIcon?: string;
47
+ macOSIcon?: string;
48
+ linuxIcon?: string;
45
49
  bundledIcon?: string;
46
50
  useTemplateImage?: boolean;
47
51
  rightClick: DesktopifyAppTrayAction;
@@ -163,6 +167,13 @@ export interface DesktopifyApp2 {
163
167
  * The app icon
164
168
  */
165
169
  icon?: string;
170
+ /**
171
+ * Instead of using one icon for every platform, use a separate icon for different platforms
172
+ */
173
+ useSeparateIcons?: boolean;
174
+ windowsIcon?: string;
175
+ macOSIcon?: string;
176
+ linuxIcon?: string;
166
177
  /**
167
178
  * The name of the company that the app belongs to
168
179
  */
@@ -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.91.0",
3
+ "version": "7.95.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"> {
@@ -66,7 +71,11 @@ export type DesktopifyAppTrayAction =
66
71
 
67
72
  export interface DesktopifyAppTray {
68
73
  id: string;
69
- icon: string;
74
+ icon?: string;
75
+ useSeparateIcons?: boolean;
76
+ windowsIcon?: string;
77
+ macOSIcon?: string;
78
+ linuxIcon?: string;
70
79
  bundledIcon?: string;
71
80
  useTemplateImage?: boolean;
72
81
  rightClick: DesktopifyAppTrayAction;
@@ -270,6 +279,13 @@ export interface DesktopifyApp2 {
270
279
  * The app icon
271
280
  */
272
281
  icon?: string;
282
+ /**
283
+ * Instead of using one icon for every platform, use a separate icon for different platforms
284
+ */
285
+ useSeparateIcons?: boolean;
286
+ windowsIcon?: string;
287
+ macOSIcon?: string;
288
+ linuxIcon?: string;
273
289
  /**
274
290
  * The name of the company that the app belongs to
275
291
  */