@todesktop/shared 7.117.0 → 7.118.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 +1 -0
- package/lib/desktopify.js +1 -0
- package/lib/desktopify2.js +1 -0
- package/lib/index.js +19 -9
- package/lib/plans.js +1 -0
- package/lib/plugin.d.ts +3 -5
- package/lib/toDesktop.js +1 -0
- package/lib/validations.js +1 -0
- package/package.json +1 -1
- package/src/plugin.ts +3 -5
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";
|
package/lib/desktopify2.js
CHANGED
|
@@ -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,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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("./plugin"), exports);
|
|
22
|
+
__exportStar(require("./desktopify2"), exports);
|
|
13
23
|
const schemaVersion = package_json_1.version;
|
|
14
24
|
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.getEssentialPlanIds = exports.getCLIScalePlanIds = exports.getCLIPerformancePlanIds = exports.getCLIFounderPlanIds = exports.getCLIPlanIds = 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/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare type AjvJSONSchemaType = object;
|
|
1
2
|
export interface DesktopAppPlugin {
|
|
2
3
|
/**
|
|
3
4
|
* Configuration gathered from the todesktop plugin.
|
|
@@ -22,15 +23,12 @@ export declare type PluginPreferences = {
|
|
|
22
23
|
};
|
|
23
24
|
export declare type PluginPreference = NumberSpec | TextSpec;
|
|
24
25
|
export declare type TextSpec = PreferenceSpec<"text", {
|
|
25
|
-
|
|
26
|
-
maxLength?: number;
|
|
27
|
-
pattern?: RegExp;
|
|
26
|
+
validator?: AjvJSONSchemaType;
|
|
28
27
|
value?: string;
|
|
29
28
|
placeholder?: string;
|
|
30
29
|
}>;
|
|
31
30
|
export declare type NumberSpec = PreferenceSpec<"number", {
|
|
32
|
-
|
|
33
|
-
max?: number;
|
|
31
|
+
validator?: AjvJSONSchemaType;
|
|
34
32
|
value?: number;
|
|
35
33
|
placeholder?: number;
|
|
36
34
|
}>;
|
package/lib/toDesktop.js
CHANGED
package/lib/validations.js
CHANGED
|
@@ -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
package/src/plugin.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type AjvJSONSchemaType = object;
|
|
1
2
|
export interface DesktopAppPlugin {
|
|
2
3
|
/**
|
|
3
4
|
* Configuration gathered from the todesktop plugin.
|
|
@@ -29,9 +30,7 @@ export type PluginPreference = NumberSpec | TextSpec;
|
|
|
29
30
|
export type TextSpec = PreferenceSpec<
|
|
30
31
|
"text",
|
|
31
32
|
{
|
|
32
|
-
|
|
33
|
-
maxLength?: number;
|
|
34
|
-
pattern?: RegExp;
|
|
33
|
+
validator?: AjvJSONSchemaType;
|
|
35
34
|
value?: string;
|
|
36
35
|
placeholder?: string;
|
|
37
36
|
}
|
|
@@ -40,8 +39,7 @@ export type TextSpec = PreferenceSpec<
|
|
|
40
39
|
export type NumberSpec = PreferenceSpec<
|
|
41
40
|
"number",
|
|
42
41
|
{
|
|
43
|
-
|
|
44
|
-
max?: number;
|
|
42
|
+
validator?: AjvJSONSchemaType;
|
|
45
43
|
value?: number;
|
|
46
44
|
placeholder?: number;
|
|
47
45
|
}
|