@todesktop/shared 7.37.0 → 7.37.3

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.
@@ -137,7 +137,7 @@ export declare const isPlatformBuildRunning: (platformBuild: PlatformBuild) => b
137
137
  export declare const isCiBuildRunning: (build: Build) => boolean;
138
138
  export declare const isBuildRunning: (build: Build) => boolean;
139
139
  export declare const isBuildCancellable: (build: Build) => boolean;
140
- export interface IDesktopifyApp {
140
+ export interface DesktopifyApp {
141
141
  name: string;
142
142
  targetUrl: string;
143
143
  appId: string;
@@ -163,19 +163,19 @@ export interface IDesktopifyApp {
163
163
  preventBackgroundThrottling?: boolean;
164
164
  googleOAuthIsExternal?: boolean;
165
165
  shouldUseRealUserAgent?: boolean;
166
- extraBrowserWindowOptions?: string;
166
+ extraBrowserWindowOptions?: any;
167
167
  menubarIcon?: string;
168
168
  trayIcon?: string;
169
169
  toggleVisibilityKeyboardShortcut?: string;
170
170
  appType?: string;
171
- runtimeEnvs?: {
172
- [propertyName: string]: string;
173
- };
171
+ runtimeEnvs?: string;
174
172
  shouldLaunchAtStartupByDefault?: boolean;
175
173
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
176
174
  shouldReuseRendererProcess?: boolean;
177
175
  shouldMakeSameDomainAnExternalLink?: boolean;
178
176
  enablePushNotifications?: boolean;
179
- themeSource?: string;
177
+ themeSource?: "system" | "light" | "dark";
178
+ crashReporter?: string;
179
+ companyName?: string;
180
180
  }
181
181
  export {};
@@ -278,7 +278,7 @@ export interface IApp {
278
278
  login?: string;
279
279
  };
280
280
  subscription?: IStripeSubscription;
281
- themeSource?: "auto" | "light" | "dark";
281
+ themeSource?: "system" | "light" | "dark";
282
282
  toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
283
283
  trayIcon?: string;
284
284
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.37.0",
3
+ "version": "7.37.3",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -250,7 +250,7 @@ export const isBuildRunning = (build: Build): boolean => {
250
250
  export const isBuildCancellable = (build: Build): boolean =>
251
251
  hasBuildKickedOff(build) && isBuildRunning(build);
252
252
 
253
- export interface IDesktopifyApp {
253
+ export interface DesktopifyApp {
254
254
  name: string;
255
255
  targetUrl: string;
256
256
  appId: string;
@@ -276,16 +276,18 @@ export interface IDesktopifyApp {
276
276
  preventBackgroundThrottling?: boolean;
277
277
  googleOAuthIsExternal?: boolean;
278
278
  shouldUseRealUserAgent?: boolean;
279
- extraBrowserWindowOptions?: string;
279
+ extraBrowserWindowOptions?: any;
280
280
  menubarIcon?: string;
281
281
  trayIcon?: string;
282
282
  toggleVisibilityKeyboardShortcut?: string;
283
283
  appType?: string;
284
- runtimeEnvs?: { [propertyName: string]: string };
284
+ runtimeEnvs?: string;
285
285
  shouldLaunchAtStartupByDefault?: boolean;
286
286
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
287
287
  shouldReuseRendererProcess?: boolean;
288
288
  shouldMakeSameDomainAnExternalLink?: boolean;
289
289
  enablePushNotifications?: boolean;
290
- themeSource?: string;
290
+ themeSource?: "system" | "light" | "dark";
291
+ crashReporter?: string;
292
+ companyName?: string;
291
293
  }
package/src/toDesktop.ts CHANGED
@@ -309,7 +309,7 @@ export interface IApp {
309
309
  shouldReuseRendererProcess?: boolean;
310
310
  snapStore?: { login?: string };
311
311
  subscription?: IStripeSubscription;
312
- themeSource?: "auto" | "light" | "dark";
312
+ themeSource?: "system" | "light" | "dark";
313
313
  toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
314
314
  trayIcon?: string;
315
315
  url: string;