electron 8.2.3 → 8.3.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.
Files changed (2) hide show
  1. package/electron.d.ts +29 -7
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 8.2.3
1
+ // Type definitions for Electron 8.3.1
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -878,8 +878,10 @@ This method can only be called before app is ready.
878
878
  /**
879
879
  * On Linux, focuses on the first visible window. On macOS, makes the application
880
880
  * the active app. On Windows, focuses on the application's first window.
881
+ *
882
+ You should seek to use the `steal` option as sparingly as possible.
881
883
  */
882
- focus(): void;
884
+ focus(options?: FocusOptions): void;
883
885
  /**
884
886
  * Name of the application handling the protocol, or an empty string if there is no
885
887
  * handler. For instance, if Electron is the default handler of the URL, this could
@@ -5418,6 +5420,13 @@ Starts recording network events to `path`.
5418
5420
  readonly currentlyLoggingPath: string;
5419
5421
  }
5420
5422
 
5423
+ interface NewWindowEvent extends Event {
5424
+
5425
+ // Docs: http://electronjs.org/docs/api/structures/new-window-event
5426
+
5427
+ newGuest?: BrowserWindow;
5428
+ }
5429
+
5421
5430
  class Notification extends NodeJS.EventEmitter {
5422
5431
 
5423
5432
  // Docs: http://electronjs.org/docs/api/notification
@@ -8699,7 +8708,7 @@ The usage is the same with the `login` event of `app`.
8699
8708
  * reference the new `BrowserWindow` instance, failing to do so may result in
8700
8709
  * unexpected behavior. For example:
8701
8710
  */
8702
- on(event: 'new-window', listener: (event: Event,
8711
+ on(event: 'new-window', listener: (event: NewWindowEvent,
8703
8712
  url: string,
8704
8713
  frameName: string,
8705
8714
  /**
@@ -8721,7 +8730,7 @@ The usage is the same with the `login` event of `app`.
8721
8730
  * `Referer` header being sent, depending on the referrer policy.
8722
8731
  */
8723
8732
  referrer: Referrer) => void): this;
8724
- once(event: 'new-window', listener: (event: Event,
8733
+ once(event: 'new-window', listener: (event: NewWindowEvent,
8725
8734
  url: string,
8726
8735
  frameName: string,
8727
8736
  /**
@@ -8743,7 +8752,7 @@ The usage is the same with the `login` event of `app`.
8743
8752
  * `Referer` header being sent, depending on the referrer policy.
8744
8753
  */
8745
8754
  referrer: Referrer) => void): this;
8746
- addListener(event: 'new-window', listener: (event: Event,
8755
+ addListener(event: 'new-window', listener: (event: NewWindowEvent,
8747
8756
  url: string,
8748
8757
  frameName: string,
8749
8758
  /**
@@ -8765,7 +8774,7 @@ The usage is the same with the `login` event of `app`.
8765
8774
  * `Referer` header being sent, depending on the referrer policy.
8766
8775
  */
8767
8776
  referrer: Referrer) => void): this;
8768
- removeListener(event: 'new-window', listener: (event: Event,
8777
+ removeListener(event: 'new-window', listener: (event: NewWindowEvent,
8769
8778
  url: string,
8770
8779
  frameName: string,
8771
8780
  /**
@@ -9745,7 +9754,7 @@ Takes a V8 heap snapshot and saves it to `filePath`.
9745
9754
  unselect(): void;
9746
9755
  audioMuted: boolean;
9747
9756
  readonly debugger: Debugger;
9748
- readonly devToolsWebContents: WebContents;
9757
+ readonly devToolsWebContents: (WebContents) | (null);
9749
9758
  frameRate: number;
9750
9759
  readonly hostWebContents: WebContents;
9751
9760
  readonly id: number;
@@ -11578,6 +11587,15 @@ See webContents.sendInputEvent for detailed description of `event` object.
11578
11587
  medialCapitalAsWordStart?: boolean;
11579
11588
  }
11580
11589
 
11590
+ interface FocusOptions {
11591
+ /**
11592
+ * Make the receiver the active app even if another app is currently active.
11593
+ *
11594
+ * @platform darwin
11595
+ */
11596
+ steal: boolean;
11597
+ }
11598
+
11581
11599
  interface FoundInPageEvent extends Event {
11582
11600
  result: FoundInPageResult;
11583
11601
  }
@@ -13482,6 +13500,10 @@ See webContents.sendInputEvent for detailed description of `event` object.
13482
13500
  * Whether to enable the builtin spellchecker. Default is `false`.
13483
13501
  */
13484
13502
  spellcheck?: boolean;
13503
+ /**
13504
+ * Whether to enable the WebSQL api. Default is `true`.
13505
+ */
13506
+ enableWebSQL?: boolean;
13485
13507
  }
13486
13508
 
13487
13509
  interface DefaultFontFamily {
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "8.2.3",
19
+ "version": "8.3.1",
20
20
  "repository": "https://github.com/electron/electron",
21
21
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
22
22
  "license": "MIT",