electron-types 44.7.0 → 44.7.2

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@44.7.0
17
+ npm install -D electron-types@44.7.2
18
18
  # or
19
- yarn add -D electron-types@44.7.0
19
+ yarn add -D electron-types@44.7.2
20
20
  # or
21
- pnpm add -D electron-types@44.7.0
21
+ pnpm add -D electron-types@44.7.2
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.7.0
1
+ // Type definitions for Electron 44.7.2
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
@@ -9622,6 +9622,10 @@ declare namespace Electron {
9622
9622
  * Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu`
9623
9623
  * will be set as each window's top menu.
9624
9624
  *
9625
+ * On Linux, the menu bar uses GTK theme colors when GTK is available. If GTK
9626
+ * cannot initialize, it uses Chromium's built-in light or dark menu colors,
9627
+ * following `nativeTheme.shouldUseDarkColors`.
9628
+ *
9625
9629
  * Also on Windows and Linux, you can use a `&` in the top-level item name to
9626
9630
  * indicate which letter should get a generated accelerator. For example, using
9627
9631
  * `&File` for the file menu would result in a generated `Alt-F` accelerator that
@@ -16060,26 +16064,34 @@ declare namespace Electron {
16060
16064
  /**
16061
16065
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16062
16066
  * challenge, if the process was created with both
16063
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16064
- * `callback` should be called with credentials to respond to the challenge.
16065
- * Calling `callback` without arguments will cancel the request.
16067
+ * `respondToAuthRequestsFromMainProcess: true` and a `session` option.
16068
+ *
16069
+ * The default behavior is to cancel the authentication. To override this you
16070
+ * should prevent the default behavior with `event.preventDefault()` and call
16071
+ * `callback(username, password)` with the credentials. Calling `callback` without
16072
+ * arguments will cancel the request.
16066
16073
  *
16067
16074
  * This behaves the same as the `login` event on `app` but is scoped to the
16068
16075
  * individual utility process instance.
16069
16076
  */
16070
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16077
+ on(event: 'login', listener: (event: Event,
16078
+ authenticationResponseDetails: AuthenticationResponseDetails,
16071
16079
  authInfo: AuthInfo,
16072
16080
  callback: (username?: string, password?: string) => void) => void): this;
16073
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16081
+ off(event: 'login', listener: (event: Event,
16082
+ authenticationResponseDetails: AuthenticationResponseDetails,
16074
16083
  authInfo: AuthInfo,
16075
16084
  callback: (username?: string, password?: string) => void) => void): this;
16076
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16085
+ once(event: 'login', listener: (event: Event,
16086
+ authenticationResponseDetails: AuthenticationResponseDetails,
16077
16087
  authInfo: AuthInfo,
16078
16088
  callback: (username?: string, password?: string) => void) => void): this;
16079
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16089
+ addListener(event: 'login', listener: (event: Event,
16090
+ authenticationResponseDetails: AuthenticationResponseDetails,
16080
16091
  authInfo: AuthInfo,
16081
16092
  callback: (username?: string, password?: string) => void) => void): this;
16082
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16093
+ removeListener(event: 'login', listener: (event: Event,
16094
+ authenticationResponseDetails: AuthenticationResponseDetails,
16083
16095
  authInfo: AuthInfo,
16084
16096
  callback: (username?: string, password?: string) => void) => void): this;
16085
16097
  /**
@@ -16335,6 +16347,9 @@ declare namespace Electron {
16335
16347
  mouse: MouseInputEvent) => void): this;
16336
16348
  /**
16337
16349
  * Emitted when the `WebContents` loses focus.
16350
+ *
16351
+ * The `blur` event is also emitted when switching between windows or apps for the
16352
+ * `WebContents` that has focus within its window.
16338
16353
  */
16339
16354
  on(event: 'blur', listener: () => void): this;
16340
16355
  off(event: 'blur', listener: () => void): this;
@@ -17348,14 +17363,8 @@ declare namespace Electron {
17348
17363
  /**
17349
17364
  * Emitted when the `WebContents` gains focus.
17350
17365
  *
17351
- * Note that on macOS, having focus means the `WebContents` is the first responder
17352
- * of window, so switching focus between windows would not trigger the `focus` and
17353
- * `blur` events of `WebContents`, as the first responder of each window is not
17354
- * changed.
17355
- *
17356
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17357
- * focus change between different `WebContents` and `BrowserView` in the same
17358
- * window.
17366
+ * The `focus` event is also emitted when switching between windows or apps for the
17367
+ * `WebContents` that has focus within its window.
17359
17368
  */
17360
17369
  on(event: 'focus', listener: () => void): this;
17361
17370
  off(event: 'focus', listener: () => void): this;
@@ -21272,10 +21281,10 @@ declare namespace Electron {
21272
21281
 
21273
21282
  interface Config {
21274
21283
  /**
21275
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21276
- * when connecting to remote servers. Defaults to `tls1`.
21284
+ * Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
21285
+ * remote servers. Defaults to `tls1.2`.
21277
21286
  */
21278
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21287
+ minVersion?: ('tls1.2' | 'tls1.3');
21279
21288
  /**
21280
21289
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21281
21290
  * remote servers. Defaults to `tls1.3`.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "44.7.0",
3
- "extractedAt": "2026-10-07T20:16:04.291Z"
2
+ "electronVersion": "44.7.2",
3
+ "extractedAt": "2026-10-14T02:17:28.932Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "44.7.0",
3
+ "version": "44.7.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",