@todesktop/shared 7.49.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.
@@ -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;
@@ -182,4 +199,7 @@ export interface DesktopifyApp {
182
199
  companyName?: string;
183
200
  pollForAppUpdatesEveryXMinutes?: number;
184
201
  }
202
+ export interface DesktopifyApp2 extends DesktopifyApp {
203
+ windows: DesktopifyAppWindow[];
204
+ }
185
205
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.49.0",
3
+ "version": "7.50.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
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 DesktopifyApp {
253
+ export interface DesktopifyAppWindow {
254
+ id: string;
254
255
  name: string;
255
- targetUrl: string;
256
- appId: string;
257
- autoHideMenuBar?: boolean;
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;
@@ -295,3 +313,7 @@ export interface DesktopifyApp {
295
313
  companyName?: string;
296
314
  pollForAppUpdatesEveryXMinutes?: number;
297
315
  }
316
+
317
+ export interface DesktopifyApp2 extends DesktopifyApp {
318
+ windows: DesktopifyAppWindow[];
319
+ }