electron-types 45.0.0-beta.1 → 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.1
17
+ npm install -D electron-types@45.0.0-beta.3
18
18
  # or
19
- yarn add -D electron-types@45.0.0-beta.1
19
+ yarn add -D electron-types@45.0.0-beta.3
20
20
  # or
21
- pnpm add -D electron-types@45.0.0-beta.1
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.1
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
@@ -9802,6 +9802,10 @@ declare namespace Electron {
9802
9802
  * Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu`
9803
9803
  * will be set as each window's top menu.
9804
9804
  *
9805
+ * On Linux, the menu bar uses GTK theme colors when GTK is available. If GTK
9806
+ * cannot initialize, it uses Chromium's built-in light or dark menu colors,
9807
+ * following `nativeTheme.shouldUseDarkColors`.
9808
+ *
9805
9809
  * Also on Windows and Linux, you can use a `&` in the top-level item name to
9806
9810
  * indicate which letter should get a generated accelerator. For example, using
9807
9811
  * `&File` for the file menu would result in a generated `Alt-F` accelerator that
@@ -16314,26 +16318,34 @@ declare namespace Electron {
16314
16318
  /**
16315
16319
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16316
16320
  * challenge, if the process was created with both
16317
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16318
- * `callback` should be called with credentials to respond to the challenge.
16319
- * 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.
16320
16327
  *
16321
16328
  * This behaves the same as the `login` event on `app` but is scoped to the
16322
16329
  * individual utility process instance.
16323
16330
  */
16324
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16331
+ on(event: 'login', listener: (event: Event,
16332
+ authenticationResponseDetails: AuthenticationResponseDetails,
16325
16333
  authInfo: AuthInfo,
16326
16334
  callback: (username?: string, password?: string) => void) => void): this;
16327
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16335
+ off(event: 'login', listener: (event: Event,
16336
+ authenticationResponseDetails: AuthenticationResponseDetails,
16328
16337
  authInfo: AuthInfo,
16329
16338
  callback: (username?: string, password?: string) => void) => void): this;
16330
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16339
+ once(event: 'login', listener: (event: Event,
16340
+ authenticationResponseDetails: AuthenticationResponseDetails,
16331
16341
  authInfo: AuthInfo,
16332
16342
  callback: (username?: string, password?: string) => void) => void): this;
16333
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16343
+ addListener(event: 'login', listener: (event: Event,
16344
+ authenticationResponseDetails: AuthenticationResponseDetails,
16334
16345
  authInfo: AuthInfo,
16335
16346
  callback: (username?: string, password?: string) => void) => void): this;
16336
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16347
+ removeListener(event: 'login', listener: (event: Event,
16348
+ authenticationResponseDetails: AuthenticationResponseDetails,
16337
16349
  authInfo: AuthInfo,
16338
16350
  callback: (username?: string, password?: string) => void) => void): this;
16339
16351
  /**
@@ -16589,6 +16601,9 @@ declare namespace Electron {
16589
16601
  mouse: MouseInputEvent) => void): this;
16590
16602
  /**
16591
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.
16592
16607
  */
16593
16608
  on(event: 'blur', listener: () => void): this;
16594
16609
  off(event: 'blur', listener: () => void): this;
@@ -17602,14 +17617,8 @@ declare namespace Electron {
17602
17617
  /**
17603
17618
  * Emitted when the `WebContents` gains focus.
17604
17619
  *
17605
- * Note that on macOS, having focus means the `WebContents` is the first responder
17606
- * of window, so switching focus between windows would not trigger the `focus` and
17607
- * `blur` events of `WebContents`, as the first responder of each window is not
17608
- * changed.
17609
- *
17610
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17611
- * focus change between different `WebContents` and `BrowserView` in the same
17612
- * window.
17620
+ * The `focus` event is also emitted when switching between windows or apps for the
17621
+ * `WebContents` that has focus within its window.
17613
17622
  */
17614
17623
  on(event: 'focus', listener: () => void): this;
17615
17624
  off(event: 'focus', listener: () => void): this;
@@ -21568,10 +21577,10 @@ declare namespace Electron {
21568
21577
 
21569
21578
  interface Config {
21570
21579
  /**
21571
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21572
- * 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`.
21573
21582
  */
21574
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21583
+ minVersion?: ('tls1.2' | 'tls1.3');
21575
21584
  /**
21576
21585
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21577
21586
  * remote servers. Defaults to `tls1.3`.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "45.0.0-beta.1",
3
- "extractedAt": "2026-10-09T02:27:15.882Z"
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.1",
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",