@todesktop/shared 7.66.0 → 7.69.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/desktopify.d.ts +3 -2
- package/lib/desktopify2.d.ts +9 -4
- package/lib/toDesktop.d.ts +1 -0
- package/package.json +1 -1
- package/src/desktopify.ts +3 -2
- package/src/desktopify2.ts +9 -4
- package/src/toDesktop.ts +1 -0
package/lib/desktopify.d.ts
CHANGED
|
@@ -30,8 +30,9 @@ export declare enum BuildStatus {
|
|
|
30
30
|
cancelled = "cancelled"
|
|
31
31
|
}
|
|
32
32
|
export declare type Arch = "ia32" | "x64" | "arm64";
|
|
33
|
+
export declare type MacArch = "ia32" | "x64" | "arm64" | "universal";
|
|
33
34
|
export declare type LinuxArtifactName = "appImage" | "deb" | "rpm" | "snap";
|
|
34
|
-
export declare type MacArtifactName = "dmg" | "zip";
|
|
35
|
+
export declare type MacArtifactName = "dmg" | "zip" | "installer";
|
|
35
36
|
export declare type WindowsArtifactName = "msi" | "nsis" | "appx";
|
|
36
37
|
declare type ArtifactDownload = Record<Arch, {
|
|
37
38
|
size: number;
|
|
@@ -127,7 +128,7 @@ export interface LinuxCustomManifest extends CustomManifest {
|
|
|
127
128
|
artifacts: Record<LinuxArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
|
|
128
129
|
}
|
|
129
130
|
export interface MacCustomManifest extends CustomManifest {
|
|
130
|
-
artifacts: Record<MacArtifactName, Record<
|
|
131
|
+
artifacts: Record<MacArtifactName, Record<MacArch, CustomManifestArtifactDetails | null> | null>;
|
|
131
132
|
}
|
|
132
133
|
export interface WindowsCustomManifest extends CustomManifest {
|
|
133
134
|
artifacts: Record<WindowsArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
|
package/lib/desktopify2.d.ts
CHANGED
|
@@ -106,14 +106,14 @@ export interface DesktopifyAppWindow {
|
|
|
106
106
|
* Allows user to `Cmd+F` or `Edit>Find` to search for text on page
|
|
107
107
|
*/
|
|
108
108
|
isFindInPageEnabled?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Whether the window is in kiosk mode
|
|
111
|
-
*/
|
|
112
|
-
kiosk?: boolean;
|
|
113
109
|
/**
|
|
114
110
|
* Inital visibility of window
|
|
115
111
|
*/
|
|
116
112
|
visibility: "visible" | "hidden" | "show-when-contents-loaded";
|
|
113
|
+
/**
|
|
114
|
+
* MacOS option for whether the window should be visible on all workspaces
|
|
115
|
+
*/
|
|
116
|
+
visibleOnAllWorkspaces: boolean;
|
|
117
117
|
/**
|
|
118
118
|
* Does the window have a minimum width. Default is `false`
|
|
119
119
|
*/
|
|
@@ -239,6 +239,11 @@ export interface DesktopifyApp2 {
|
|
|
239
239
|
* @unused
|
|
240
240
|
*/
|
|
241
241
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
242
|
+
/**
|
|
243
|
+
* An array of plugin modules. Can work with semver specificity
|
|
244
|
+
* e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
245
|
+
*/
|
|
246
|
+
plugins?: string[];
|
|
242
247
|
/**
|
|
243
248
|
* The app's windows
|
|
244
249
|
*/
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -281,6 +281,7 @@ export interface IApp extends BaseApp {
|
|
|
281
281
|
shouldCreateNSISInstallers?: boolean;
|
|
282
282
|
shouldCreateRPMPackages?: boolean;
|
|
283
283
|
shouldCreateSnapFiles?: boolean;
|
|
284
|
+
shouldCreateMacUniversalInstaller?: boolean;
|
|
284
285
|
shouldLaunchAtStartupByDefault?: boolean;
|
|
285
286
|
shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
|
|
286
287
|
shouldReuseRendererProcess?: boolean;
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -46,8 +46,9 @@ export enum BuildStatus {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export type Arch = "ia32" | "x64" | "arm64";
|
|
49
|
+
export type MacArch = "ia32" | "x64" | "arm64" | "universal";
|
|
49
50
|
export type LinuxArtifactName = "appImage" | "deb" | "rpm" | "snap";
|
|
50
|
-
export type MacArtifactName = "dmg" | "zip";
|
|
51
|
+
export type MacArtifactName = "dmg" | "zip" | "installer";
|
|
51
52
|
export type WindowsArtifactName = "msi" | "nsis" | "appx";
|
|
52
53
|
|
|
53
54
|
type ArtifactDownload = Record<
|
|
@@ -191,7 +192,7 @@ export interface LinuxCustomManifest extends CustomManifest {
|
|
|
191
192
|
export interface MacCustomManifest extends CustomManifest {
|
|
192
193
|
artifacts: Record<
|
|
193
194
|
MacArtifactName,
|
|
194
|
-
Record<
|
|
195
|
+
Record<MacArch, CustomManifestArtifactDetails | null> | null
|
|
195
196
|
>;
|
|
196
197
|
}
|
|
197
198
|
|
package/src/desktopify2.ts
CHANGED
|
@@ -208,14 +208,14 @@ export interface DesktopifyAppWindow {
|
|
|
208
208
|
* Allows user to `Cmd+F` or `Edit>Find` to search for text on page
|
|
209
209
|
*/
|
|
210
210
|
isFindInPageEnabled?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Whether the window is in kiosk mode
|
|
213
|
-
*/
|
|
214
|
-
kiosk?: boolean;
|
|
215
211
|
/**
|
|
216
212
|
* Inital visibility of window
|
|
217
213
|
*/
|
|
218
214
|
visibility: "visible" | "hidden" | "show-when-contents-loaded";
|
|
215
|
+
/**
|
|
216
|
+
* MacOS option for whether the window should be visible on all workspaces
|
|
217
|
+
*/
|
|
218
|
+
visibleOnAllWorkspaces: boolean;
|
|
219
219
|
/**
|
|
220
220
|
* Does the window have a minimum width. Default is `false`
|
|
221
221
|
*/
|
|
@@ -346,6 +346,11 @@ export interface DesktopifyApp2 {
|
|
|
346
346
|
* @unused
|
|
347
347
|
*/
|
|
348
348
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
349
|
+
/**
|
|
350
|
+
* An array of plugin modules. Can work with semver specificity
|
|
351
|
+
* e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
352
|
+
*/
|
|
353
|
+
plugins?: string[];
|
|
349
354
|
/**
|
|
350
355
|
* The app's windows
|
|
351
356
|
*/
|
package/src/toDesktop.ts
CHANGED
|
@@ -312,6 +312,7 @@ export interface IApp extends BaseApp {
|
|
|
312
312
|
shouldCreateNSISInstallers?: boolean;
|
|
313
313
|
shouldCreateRPMPackages?: boolean;
|
|
314
314
|
shouldCreateSnapFiles?: boolean;
|
|
315
|
+
shouldCreateMacUniversalInstaller?: boolean;
|
|
315
316
|
shouldLaunchAtStartupByDefault?: boolean;
|
|
316
317
|
shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
|
|
317
318
|
shouldReuseRendererProcess?: boolean;
|