electron-types 45.0.0-beta.2 → 45.0.0-beta.3

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/README.md CHANGED
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
14
14
  Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
15
15
 
16
16
  ```bash
17
- npm install -D electron-types@45.0.0-beta.2
17
+ npm install -D electron-types@45.0.0-beta.3
18
18
  # or
19
- yarn add -D electron-types@45.0.0-beta.2
19
+ yarn add -D electron-types@45.0.0-beta.3
20
20
  # or
21
- pnpm add -D electron-types@45.0.0-beta.2
21
+ pnpm add -D electron-types@45.0.0-beta.3
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 45.0.0-beta.2
1
+ // Type definitions for Electron 45.0.0-beta.3
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/typescript-definitions
@@ -16318,26 +16318,34 @@ declare namespace Electron {
16318
16318
  /**
16319
16319
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16320
16320
  * challenge, if the process was created with both
16321
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16322
- * `callback` should be called with credentials to respond to the challenge.
16323
- * Calling `callback` without arguments will cancel the request.
16321
+ * `respondToAuthRequestsFromMainProcess: true` and a `session` option.
16322
+ *
16323
+ * The default behavior is to cancel the authentication. To override this you
16324
+ * should prevent the default behavior with `event.preventDefault()` and call
16325
+ * `callback(username, password)` with the credentials. Calling `callback` without
16326
+ * arguments will cancel the request.
16324
16327
  *
16325
16328
  * This behaves the same as the `login` event on `app` but is scoped to the
16326
16329
  * individual utility process instance.
16327
16330
  */
16328
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16331
+ on(event: 'login', listener: (event: Event,
16332
+ authenticationResponseDetails: AuthenticationResponseDetails,
16329
16333
  authInfo: AuthInfo,
16330
16334
  callback: (username?: string, password?: string) => void) => void): this;
16331
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16335
+ off(event: 'login', listener: (event: Event,
16336
+ authenticationResponseDetails: AuthenticationResponseDetails,
16332
16337
  authInfo: AuthInfo,
16333
16338
  callback: (username?: string, password?: string) => void) => void): this;
16334
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16339
+ once(event: 'login', listener: (event: Event,
16340
+ authenticationResponseDetails: AuthenticationResponseDetails,
16335
16341
  authInfo: AuthInfo,
16336
16342
  callback: (username?: string, password?: string) => void) => void): this;
16337
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16343
+ addListener(event: 'login', listener: (event: Event,
16344
+ authenticationResponseDetails: AuthenticationResponseDetails,
16338
16345
  authInfo: AuthInfo,
16339
16346
  callback: (username?: string, password?: string) => void) => void): this;
16340
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16347
+ removeListener(event: 'login', listener: (event: Event,
16348
+ authenticationResponseDetails: AuthenticationResponseDetails,
16341
16349
  authInfo: AuthInfo,
16342
16350
  callback: (username?: string, password?: string) => void) => void): this;
16343
16351
  /**
@@ -16593,6 +16601,9 @@ declare namespace Electron {
16593
16601
  mouse: MouseInputEvent) => void): this;
16594
16602
  /**
16595
16603
  * Emitted when the `WebContents` loses focus.
16604
+ *
16605
+ * The `blur` event is also emitted when switching between windows or apps for the
16606
+ * `WebContents` that has focus within its window.
16596
16607
  */
16597
16608
  on(event: 'blur', listener: () => void): this;
16598
16609
  off(event: 'blur', listener: () => void): this;
@@ -17606,14 +17617,8 @@ declare namespace Electron {
17606
17617
  /**
17607
17618
  * Emitted when the `WebContents` gains focus.
17608
17619
  *
17609
- * Note that on macOS, having focus means the `WebContents` is the first responder
17610
- * of window, so switching focus between windows would not trigger the `focus` and
17611
- * `blur` events of `WebContents`, as the first responder of each window is not
17612
- * changed.
17613
- *
17614
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17615
- * focus change between different `WebContents` and `BrowserView` in the same
17616
- * window.
17620
+ * The `focus` event is also emitted when switching between windows or apps for the
17621
+ * `WebContents` that has focus within its window.
17617
17622
  */
17618
17623
  on(event: 'focus', listener: () => void): this;
17619
17624
  off(event: 'focus', listener: () => void): this;
@@ -21572,10 +21577,10 @@ declare namespace Electron {
21572
21577
 
21573
21578
  interface Config {
21574
21579
  /**
21575
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21576
- * when connecting to remote servers. Defaults to `tls1`.
21580
+ * Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
21581
+ * remote servers. Defaults to `tls1.2`.
21577
21582
  */
21578
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21583
+ minVersion?: ('tls1.2' | 'tls1.3');
21579
21584
  /**
21580
21585
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21581
21586
  * remote servers. Defaults to `tls1.3`.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "45.0.0-beta.2",
3
- "extractedAt": "2026-10-13T02:31:27.267Z"
2
+ "electronVersion": "45.0.0-beta.3",
3
+ "extractedAt": "2026-10-14T07:18:14.524Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "45.0.0-beta.2",
3
+ "version": "45.0.0-beta.3",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",