@todesktop/shared 7.67.0 → 7.70.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.
@@ -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<Arch, CustomManifestArtifactDetails | null> | null>;
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>;
@@ -39,6 +39,7 @@ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction
39
39
  export interface DesktopifyAppTray {
40
40
  id: string;
41
41
  icon: string;
42
+ bundledIcon: string;
42
43
  rightClick: DesktopifyAppTrayAction;
43
44
  leftClick: DesktopifyAppTrayAction;
44
45
  }
@@ -239,6 +240,11 @@ export interface DesktopifyApp2 {
239
240
  * @unused
240
241
  */
241
242
  pollForAppUpdatesEveryXMinutes?: number;
243
+ /**
244
+ * An array of plugin modules. Can work with semver specificity
245
+ * e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
246
+ */
247
+ plugins?: string[];
242
248
  /**
243
249
  * The app's windows
244
250
  */
@@ -281,11 +281,13 @@ 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;
287
288
  snapStore?: {
288
289
  login?: string;
290
+ description?: string;
289
291
  };
290
292
  themeSource?: "system" | "light" | "dark";
291
293
  themeSourceMac?: "system" | "light" | "dark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.67.0",
3
+ "version": "7.70.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
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<Arch, CustomManifestArtifactDetails | null> | null
195
+ Record<MacArch, CustomManifestArtifactDetails | null> | null
195
196
  >;
196
197
  }
197
198
 
@@ -64,6 +64,7 @@ export type DesktopifyAppTrayAction =
64
64
  export interface DesktopifyAppTray {
65
65
  id: string;
66
66
  icon: string;
67
+ bundledIcon: string;
67
68
  rightClick: DesktopifyAppTrayAction;
68
69
  leftClick: DesktopifyAppTrayAction;
69
70
  }
@@ -215,7 +216,7 @@ export interface DesktopifyAppWindow {
215
216
  /**
216
217
  * MacOS option for whether the window should be visible on all workspaces
217
218
  */
218
- visibleOnAllWorkspaces: boolean;
219
+ visibleOnAllWorkspaces: boolean;
219
220
  /**
220
221
  * Does the window have a minimum width. Default is `false`
221
222
  */
@@ -346,6 +347,11 @@ export interface DesktopifyApp2 {
346
347
  * @unused
347
348
  */
348
349
  pollForAppUpdatesEveryXMinutes?: number;
350
+ /**
351
+ * An array of plugin modules. Can work with semver specificity
352
+ * e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
353
+ */
354
+ plugins?: string[];
349
355
  /**
350
356
  * The app's windows
351
357
  */
package/src/toDesktop.ts CHANGED
@@ -312,10 +312,11 @@ 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;
318
- snapStore?: { login?: string };
319
+ snapStore?: { login?: string; description?: string };
319
320
  themeSource?: "system" | "light" | "dark";
320
321
  themeSourceMac?: "system" | "light" | "dark";
321
322
  toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;