@todesktop/shared 7.116.0 → 7.119.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 +9 -12
- package/lib/toDesktop.js +1 -0
- package/lib/validations.js +1 -0
- package/package.json +1 -1
- package/src/plugin.ts +13 -13
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.
|
|
@@ -20,29 +21,25 @@ export declare type ToDesktopPlugin = {
|
|
|
20
21
|
export declare type PluginPreferences = {
|
|
21
22
|
[id: string]: PluginPreference;
|
|
22
23
|
};
|
|
23
|
-
export declare type PluginPreference = NumberSpec | TextSpec;
|
|
24
|
+
export declare type PluginPreference = NumberSpec | TextSpec | CheckboxSpec;
|
|
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
|
-
export declare type TextValue = PreferenceValue<string>;
|
|
32
30
|
export declare type NumberSpec = PreferenceSpec<"number", {
|
|
33
|
-
|
|
34
|
-
max?: number;
|
|
31
|
+
validator?: AjvJSONSchemaType;
|
|
35
32
|
value?: number;
|
|
36
33
|
placeholder?: number;
|
|
37
34
|
}>;
|
|
38
|
-
export declare type
|
|
35
|
+
export declare type CheckboxSpec = PreferenceSpec<"checkbox", {
|
|
36
|
+
validator?: AjvJSONSchemaType;
|
|
37
|
+
value?: boolean;
|
|
38
|
+
}>;
|
|
39
39
|
interface PreferenceSpec<T, V> {
|
|
40
40
|
name: string;
|
|
41
41
|
description: string;
|
|
42
42
|
type: T;
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
interface PreferenceValue<V> {
|
|
46
|
-
value: V;
|
|
43
|
+
spec: V;
|
|
47
44
|
}
|
|
48
45
|
export {};
|
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.
|
|
@@ -24,38 +25,37 @@ export type PluginPreferences = {
|
|
|
24
25
|
[id: string]: PluginPreference;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
export type PluginPreference = NumberSpec | TextSpec;
|
|
28
|
+
export type PluginPreference = NumberSpec | TextSpec | CheckboxSpec;
|
|
28
29
|
|
|
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
|
}
|
|
38
37
|
>;
|
|
39
|
-
export type TextValue = PreferenceValue<string>;
|
|
40
38
|
|
|
41
39
|
export type NumberSpec = PreferenceSpec<
|
|
42
40
|
"number",
|
|
43
41
|
{
|
|
44
|
-
|
|
45
|
-
max?: number;
|
|
42
|
+
validator?: AjvJSONSchemaType;
|
|
46
43
|
value?: number;
|
|
47
44
|
placeholder?: number;
|
|
48
45
|
}
|
|
49
46
|
>;
|
|
50
|
-
|
|
47
|
+
|
|
48
|
+
export type CheckboxSpec = PreferenceSpec<
|
|
49
|
+
"checkbox",
|
|
50
|
+
{
|
|
51
|
+
validator?: AjvJSONSchemaType;
|
|
52
|
+
value?: boolean;
|
|
53
|
+
}
|
|
54
|
+
>;
|
|
51
55
|
|
|
52
56
|
interface PreferenceSpec<T, V> {
|
|
53
57
|
name: string;
|
|
54
58
|
description: string;
|
|
55
59
|
type: T;
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface PreferenceValue<V> {
|
|
60
|
-
value: V;
|
|
60
|
+
spec: V;
|
|
61
61
|
}
|