@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 +0 -1
- package/lib/desktopify.d.ts +2 -1
- package/lib/desktopify.js +1 -1
- package/lib/desktopify2.d.ts +8 -1
- package/lib/desktopify2.js +0 -1
- package/lib/index.js +9 -18
- package/lib/plans.js +0 -1
- package/lib/toDesktop.js +0 -1
- package/lib/validations.js +0 -1
- package/package.json +1 -1
- package/src/desktopify.ts +1 -0
- package/src/desktopify2.ts +9 -0
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";
|
package/lib/desktopify.d.ts
CHANGED
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) {
|
package/lib/desktopify2.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/desktopify2.js
CHANGED
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
package/lib/validations.js
CHANGED
|
@@ -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
package/src/desktopify.ts
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -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
|
}
|