@todesktop/shared 7.35.0 → 7.37.1

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,4 +137,45 @@ 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 DesktopifyApp {
141
+ name: string;
142
+ targetUrl: string;
143
+ appId: string;
144
+ height: number;
145
+ width: number;
146
+ fullScreen: boolean;
147
+ isResizable: boolean;
148
+ minHeight?: number;
149
+ minWidth?: number;
150
+ maxHeight?: number;
151
+ maxWidth?: number;
152
+ singleInstance: boolean;
153
+ disableContextMenu: boolean;
154
+ titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover";
155
+ alwaysOnTop: boolean;
156
+ internalUrls?: string;
157
+ isNativeWindowOpenDisabled?: boolean;
158
+ isFindInPageEnabled?: boolean;
159
+ userAgent?: string;
160
+ disableDevTools: boolean;
161
+ appProtocol?: string;
162
+ insecure?: boolean;
163
+ preventBackgroundThrottling?: boolean;
164
+ googleOAuthIsExternal?: boolean;
165
+ shouldUseRealUserAgent?: boolean;
166
+ extraBrowserWindowOptions?: string;
167
+ menubarIcon?: string;
168
+ trayIcon?: string;
169
+ toggleVisibilityKeyboardShortcut?: string;
170
+ appType?: string;
171
+ runtimeEnvs?: {
172
+ [propertyName: string]: string;
173
+ };
174
+ shouldLaunchAtStartupByDefault?: boolean;
175
+ shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
176
+ shouldReuseRendererProcess?: boolean;
177
+ shouldMakeSameDomainAnExternalLink?: boolean;
178
+ enablePushNotifications?: boolean;
179
+ themeSource?: string;
180
+ }
140
181
  export {};
@@ -111,6 +111,9 @@ export interface IAppMeta {
111
111
  appPath?: FilePath;
112
112
  appProtocolScheme?: string;
113
113
  copyright?: string;
114
+ dmg?: {
115
+ background?: FilePath;
116
+ };
114
117
  extraContentFiles?: ExtraFileReference[];
115
118
  electronMirror?: string;
116
119
  extraResources?: ExtraFileReference[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.35.0",
3
+ "version": "7.37.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -249,3 +249,43 @@ export const isBuildRunning = (build: Build): boolean => {
249
249
 
250
250
  export const isBuildCancellable = (build: Build): boolean =>
251
251
  hasBuildKickedOff(build) && isBuildRunning(build);
252
+
253
+ export interface DesktopifyApp {
254
+ name: string;
255
+ targetUrl: string;
256
+ appId: string;
257
+ height: number;
258
+ width: number;
259
+ fullScreen: boolean;
260
+ isResizable: boolean;
261
+ minHeight?: number;
262
+ minWidth?: number;
263
+ maxHeight?: number;
264
+ maxWidth?: number;
265
+ singleInstance: boolean;
266
+ disableContextMenu: boolean;
267
+ titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover";
268
+ alwaysOnTop: boolean;
269
+ internalUrls?: string;
270
+ isNativeWindowOpenDisabled?: boolean;
271
+ isFindInPageEnabled?: boolean;
272
+ userAgent?: string;
273
+ disableDevTools: boolean;
274
+ appProtocol?: string;
275
+ insecure?: boolean;
276
+ preventBackgroundThrottling?: boolean;
277
+ googleOAuthIsExternal?: boolean;
278
+ shouldUseRealUserAgent?: boolean;
279
+ extraBrowserWindowOptions?: string;
280
+ menubarIcon?: string;
281
+ trayIcon?: string;
282
+ toggleVisibilityKeyboardShortcut?: string;
283
+ appType?: string;
284
+ runtimeEnvs?: { [propertyName: string]: string };
285
+ shouldLaunchAtStartupByDefault?: boolean;
286
+ shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
287
+ shouldReuseRendererProcess?: boolean;
288
+ shouldMakeSameDomainAnExternalLink?: boolean;
289
+ enablePushNotifications?: boolean;
290
+ themeSource?: string;
291
+ }
package/src/toDesktop.ts CHANGED
@@ -134,6 +134,9 @@ export interface IAppMeta {
134
134
  appPath?: FilePath;
135
135
  appProtocolScheme?: string;
136
136
  copyright?: string;
137
+ dmg?: {
138
+ background?: FilePath;
139
+ };
137
140
  extraContentFiles?: ExtraFileReference[];
138
141
  electronMirror?: string;
139
142
  extraResources?: ExtraFileReference[];