@todesktop/shared 7.47.0 → 7.50.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 +22 -0
- package/lib/toDesktop.d.ts +2 -0
- package/package.json +1 -1
- package/src/desktopify.ts +35 -11
- package/src/toDesktop.ts +2 -0
package/lib/desktopify.d.ts
CHANGED
|
@@ -137,6 +137,23 @@ 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 DesktopifyAppWindow {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
url: string;
|
|
144
|
+
fullScreen: boolean;
|
|
145
|
+
minHeight?: number;
|
|
146
|
+
minWidth?: number;
|
|
147
|
+
maxHeight?: number;
|
|
148
|
+
maxWidth?: number;
|
|
149
|
+
height: number;
|
|
150
|
+
width: number;
|
|
151
|
+
isResizable: boolean;
|
|
152
|
+
titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover";
|
|
153
|
+
alwaysOnTop: boolean;
|
|
154
|
+
visibility: "visible" | "hidden" | "show-when-contents-loaded";
|
|
155
|
+
isMain: boolean;
|
|
156
|
+
}
|
|
140
157
|
export interface DesktopifyApp {
|
|
141
158
|
name: string;
|
|
142
159
|
targetUrl: string;
|
|
@@ -177,7 +194,12 @@ export interface DesktopifyApp {
|
|
|
177
194
|
shouldMakeSameDomainAnExternalLink?: boolean;
|
|
178
195
|
enablePushNotifications?: boolean;
|
|
179
196
|
themeSource?: "system" | "light" | "dark";
|
|
197
|
+
themeSourceMac?: "system" | "light" | "dark";
|
|
180
198
|
crashReporter?: string;
|
|
181
199
|
companyName?: string;
|
|
200
|
+
pollForAppUpdatesEveryXMinutes?: number;
|
|
201
|
+
}
|
|
202
|
+
export interface DesktopifyApp2 extends DesktopifyApp {
|
|
203
|
+
windows: DesktopifyAppWindow[];
|
|
182
204
|
}
|
|
183
205
|
export {};
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -295,10 +295,12 @@ export interface IApp {
|
|
|
295
295
|
};
|
|
296
296
|
subscription?: IStripeSubscription;
|
|
297
297
|
themeSource?: "system" | "light" | "dark";
|
|
298
|
+
themeSourceMac?: "system" | "light" | "dark";
|
|
298
299
|
toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
|
|
299
300
|
trayIcon?: string;
|
|
300
301
|
url: string;
|
|
301
302
|
windowOptions: IWindowOptions;
|
|
303
|
+
pollForAppUpdatesEveryXMinutes?: number;
|
|
302
304
|
}
|
|
303
305
|
export interface IUser {
|
|
304
306
|
id: string;
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -250,24 +250,42 @@ 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
|
|
253
|
+
export interface DesktopifyAppWindow {
|
|
254
|
+
id: string;
|
|
254
255
|
name: string;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
url: string;
|
|
257
|
+
fullScreen: boolean;
|
|
258
|
+
minHeight?: number;
|
|
259
|
+
minWidth?: number;
|
|
260
|
+
maxHeight?: number;
|
|
261
|
+
maxWidth?: number;
|
|
258
262
|
height: number;
|
|
259
263
|
width: number;
|
|
260
|
-
fullScreen: boolean;
|
|
261
264
|
isResizable: boolean;
|
|
265
|
+
titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover";
|
|
266
|
+
alwaysOnTop: boolean;
|
|
267
|
+
visibility: "visible" | "hidden" | "show-when-contents-loaded";
|
|
268
|
+
isMain: boolean;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface DesktopifyApp {
|
|
272
|
+
name: string;
|
|
273
|
+
targetUrl: string;
|
|
274
|
+
appId: string;
|
|
275
|
+
autoHideMenuBar?: boolean; // remove
|
|
276
|
+
height: number; // remove
|
|
277
|
+
width: number; // remove
|
|
278
|
+
fullScreen: boolean; // remove
|
|
279
|
+
isResizable: boolean; // remove
|
|
262
280
|
isTitleStatic?: boolean;
|
|
263
|
-
minHeight?: number;
|
|
264
|
-
minWidth?: number;
|
|
265
|
-
maxHeight?: number;
|
|
266
|
-
maxWidth?: number;
|
|
281
|
+
minHeight?: number; // remove
|
|
282
|
+
minWidth?: number; // remove
|
|
283
|
+
maxHeight?: number; // remove
|
|
284
|
+
maxWidth?: number; // remove
|
|
267
285
|
singleInstance: boolean;
|
|
268
286
|
disableContextMenu: boolean;
|
|
269
|
-
titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover";
|
|
270
|
-
alwaysOnTop: boolean;
|
|
287
|
+
titleBarStyle?: "hidden" | "hiddenInset" | "customButtonsOnHover"; // remove
|
|
288
|
+
alwaysOnTop: boolean; // remove
|
|
271
289
|
internalUrls?: string;
|
|
272
290
|
isNativeWindowOpenDisabled?: boolean;
|
|
273
291
|
isFindInPageEnabled?: boolean;
|
|
@@ -290,6 +308,12 @@ export interface DesktopifyApp {
|
|
|
290
308
|
shouldMakeSameDomainAnExternalLink?: boolean;
|
|
291
309
|
enablePushNotifications?: boolean;
|
|
292
310
|
themeSource?: "system" | "light" | "dark";
|
|
311
|
+
themeSourceMac?: "system" | "light" | "dark";
|
|
293
312
|
crashReporter?: string;
|
|
294
313
|
companyName?: string;
|
|
314
|
+
pollForAppUpdatesEveryXMinutes?: number;
|
|
295
315
|
}
|
|
316
|
+
|
|
317
|
+
export interface DesktopifyApp2 extends DesktopifyApp {
|
|
318
|
+
windows: DesktopifyAppWindow[];
|
|
319
|
+
}
|
package/src/toDesktop.ts
CHANGED
|
@@ -326,10 +326,12 @@ export interface IApp {
|
|
|
326
326
|
snapStore?: { login?: string };
|
|
327
327
|
subscription?: IStripeSubscription;
|
|
328
328
|
themeSource?: "system" | "light" | "dark";
|
|
329
|
+
themeSourceMac?: "system" | "light" | "dark";
|
|
329
330
|
toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
|
|
330
331
|
trayIcon?: string;
|
|
331
332
|
url: string;
|
|
332
333
|
windowOptions: IWindowOptions;
|
|
334
|
+
pollForAppUpdatesEveryXMinutes?: number;
|
|
333
335
|
}
|
|
334
336
|
|
|
335
337
|
export interface IUser {
|