electron 1.8.4 → 1.8.8

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.
Files changed (2) hide show
  1. package/electron.d.ts +22 -11
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 1.8.4
1
+ // Type definitions for Electron 1.8.8
2
2
  // Project: http://electron.atom.io/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -1579,7 +1579,7 @@ declare namespace Electron {
1579
1579
  * Sets a 16 x 16 pixel overlay onto the current taskbar icon, usually used to
1580
1580
  * convey some sort of application status or to passively notify the user.
1581
1581
  */
1582
- setOverlayIcon(overlay: NativeImage, description: string): void;
1582
+ setOverlayIcon(overlay: NativeImage | null, description: string): void;
1583
1583
  /**
1584
1584
  * Sets parent as current window's parent window, passing null will turn current
1585
1585
  * window into a top-level window.
@@ -4425,7 +4425,7 @@ declare namespace Electron {
4425
4425
  /**
4426
4426
  * Sets the image associated with this tray icon when pressed on macOS.
4427
4427
  */
4428
- setPressedImage(image: NativeImage): void;
4428
+ setPressedImage(image: NativeImage | string): void;
4429
4429
  /**
4430
4430
  * Sets the title displayed aside of the tray icon in the status bar.
4431
4431
  */
@@ -7778,9 +7778,9 @@ declare namespace Electron {
7778
7778
 
7779
7779
  interface ProgressBarOptions {
7780
7780
  /**
7781
- * Mode for the progress bar. Can be none, normal, indeterminate, error, or paused.
7781
+ * Mode for the progress bar. Can be none, normal, indeterminate, error or paused.
7782
7782
  */
7783
- mode: ('none' | 'normal' | 'indeterminate' | 'error');
7783
+ mode: ('none' | 'normal' | 'indeterminate' | 'error' | 'paused');
7784
7784
  }
7785
7785
 
7786
7786
  interface Provider {
@@ -7900,6 +7900,7 @@ declare namespace Electron {
7900
7900
 
7901
7901
  interface ResourceUsage {
7902
7902
  images: MemoryUsageDetails;
7903
+ scripts: MemoryUsageDetails;
7903
7904
  cssStyleSheets: MemoryUsageDetails;
7904
7905
  xslStyleSheets: MemoryUsageDetails;
7905
7906
  fonts: MemoryUsageDetails;
@@ -7983,11 +7984,26 @@ declare namespace Electron {
7983
7984
  }
7984
7985
 
7985
7986
  interface SizeOptions {
7987
+ /**
7988
+ * true to make the webview container automatically resize within the bounds
7989
+ * specified by the attributes normal, min and max.
7990
+ */
7991
+ enableAutoSize?: boolean;
7986
7992
  /**
7987
7993
  * Normal size of the page. This can be used in combination with the attribute to
7988
7994
  * manually resize the webview guest contents.
7989
7995
  */
7990
- normal?: Normal;
7996
+ normal?: Size;
7997
+ /**
7998
+ * Minimum size of the page. This can be used in combination with the attribute to
7999
+ * manually resize the webview guest contents.
8000
+ */
8001
+ min?: Size;
8002
+ /**
8003
+ * Maximium size of the page. This can be used in combination with the attribute to
8004
+ * manually resize the webview guest contents.
8005
+ */
8006
+ max?: Size;
7991
8007
  }
7992
8008
 
7993
8009
  interface SourcesOptions {
@@ -8328,11 +8344,6 @@ declare namespace Electron {
8328
8344
  canRotate: boolean;
8329
8345
  }
8330
8346
 
8331
- interface Normal {
8332
- width: number;
8333
- height: number;
8334
- }
8335
-
8336
8347
  interface Options {
8337
8348
  }
8338
8349
 
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "test": "test"
25
25
  },
26
26
  "name": "electron",
27
- "version": "1.8.4",
27
+ "version": "1.8.8",
28
28
  "repository": "https://github.com/electron/electron",
29
29
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
30
30
  "license": "MIT",