@todesktop/shared 7.95.0 → 7.98.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,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WindowsEVOnboardingProvider = exports.WindowsEVOnboardingSteps = void 0;
4
3
  var WindowsEVOnboardingSteps;
5
4
  (function (WindowsEVOnboardingSteps) {
6
5
  WindowsEVOnboardingSteps["hasChosenProvider"] = "hasChosenProvider";
@@ -19,7 +19,8 @@ export declare type SemanticVersion = string;
19
19
  export declare type URL = string;
20
20
  export declare enum PackageManager {
21
21
  npm = "npm",
22
- yarn = "yarn"
22
+ yarn = "yarn",
23
+ pnpm = "pnpm"
23
24
  }
24
25
  export declare enum BuildStatus {
25
26
  queued = "queued",
package/lib/desktopify.js CHANGED
@@ -1,6 +1,5 @@
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;
4
3
  var PlatformName;
5
4
  (function (PlatformName) {
6
5
  PlatformName["linux"] = "linux";
@@ -11,6 +10,7 @@ var PackageManager;
11
10
  (function (PackageManager) {
12
11
  PackageManager["npm"] = "npm";
13
12
  PackageManager["yarn"] = "yarn";
13
+ PackageManager["pnpm"] = "pnpm";
14
14
  })(PackageManager = exports.PackageManager || (exports.PackageManager = {}));
15
15
  var BuildStatus;
16
16
  (function (BuildStatus) {
@@ -32,13 +32,19 @@ export declare type DesktopifyAppTrayToggleMenuAction = {
32
32
  role: "toggleMenu";
33
33
  menu: DesktopifyMenuItemConstructorOptions[];
34
34
  };
35
+ /**
36
+ * Custom Menu Role
37
+ */
38
+ export declare type DesktopifyAppTrayCustomMenuAction = {
39
+ role: "customMenu";
40
+ };
35
41
  /**
36
42
  * No Action Tray Action
37
43
  */
38
44
  export declare type DesktopifyAppTrayNoAction = {
39
45
  role: "noAction";
40
46
  };
41
- export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
47
+ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction | DesktopifyAppTrayCustomMenuAction | DesktopifyAppTrayToggleWindowAction | DesktopifyAppTrayNoAction;
42
48
  export interface DesktopifyAppTray {
43
49
  id: string;
44
50
  icon?: string;
@@ -48,6 +54,7 @@ export interface DesktopifyAppTray {
48
54
  linuxIcon?: string;
49
55
  bundledIcon?: string;
50
56
  useTemplateImage?: boolean;
57
+ customMenu?: DesktopifyAppMenu[];
51
58
  rightClick: DesktopifyAppTrayAction;
52
59
  leftClick: DesktopifyAppTrayAction;
53
60
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.allowedWebPreferencesOptions = exports.allowedBrowserWindowConstructorOptions = void 0;
4
3
  /**
5
4
  * Whitelist of allowed DesktopifyWindow Options.
6
5
  * These attrs (if set) are passed to the `BrowserWindow` constructor
package/lib/index.js CHANGED
@@ -1,23 +1,14 @@
1
1
  "use strict";
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
- };
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
12
5
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.schemaVersion = void 0;
14
6
  const package_json_1 = require("../package.json");
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);
7
+ __export(require("./toDesktop"));
8
+ __export(require("./desktopify"));
9
+ __export(require("./validations"));
10
+ __export(require("./plans"));
11
+ __export(require("./base"));
12
+ __export(require("./desktopify2"));
22
13
  const schemaVersion = package_json_1.version;
23
14
  exports.schemaVersion = schemaVersion;
package/lib/plans.js CHANGED
@@ -1,6 +1,5 @@
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;
4
3
  function pick(objectInput, ...keys) {
5
4
  const objectOutput = {};
6
5
  keys.forEach((key) => {
package/lib/toDesktop.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WindowsHSMCertType = void 0;
4
3
  var WindowsHSMCertType;
5
4
  (function (WindowsHSMCertType) {
6
5
  WindowsHSMCertType["ev"] = "ev";
@@ -1,6 +1,5 @@
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;
4
3
  const yup = require("yup");
5
4
  const semver = require("semver");
6
5
  const isRegex = require("is-regex");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.95.0",
3
+ "version": "7.98.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -34,6 +34,7 @@ export type URL = string; // TODO: define more
34
34
  export enum PackageManager {
35
35
  npm = "npm",
36
36
  yarn = "yarn",
37
+ pnpm = "pnpm",
37
38
  }
38
39
 
39
40
  export enum BuildStatus {
@@ -57,6 +57,13 @@ export type DesktopifyAppTrayToggleMenuAction = {
57
57
  menu: DesktopifyMenuItemConstructorOptions[];
58
58
  };
59
59
 
60
+ /**
61
+ * Custom Menu Role
62
+ */
63
+ export type DesktopifyAppTrayCustomMenuAction = {
64
+ role: "customMenu";
65
+ };
66
+
60
67
  /**
61
68
  * No Action Tray Action
62
69
  */
@@ -66,6 +73,7 @@ export type DesktopifyAppTrayNoAction = {
66
73
 
67
74
  export type DesktopifyAppTrayAction =
68
75
  | DesktopifyAppTrayToggleMenuAction
76
+ | DesktopifyAppTrayCustomMenuAction
69
77
  | DesktopifyAppTrayToggleWindowAction
70
78
  | DesktopifyAppTrayNoAction;
71
79
 
@@ -78,6 +86,7 @@ export interface DesktopifyAppTray {
78
86
  linuxIcon?: string;
79
87
  bundledIcon?: string;
80
88
  useTemplateImage?: boolean;
89
+ customMenu?: DesktopifyAppMenu[];
81
90
  rightClick: DesktopifyAppTrayAction;
82
91
  leftClick: DesktopifyAppTrayAction;
83
92
  }