electron-types 39.0.0-beta.4 → 39.0.0

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.
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 39.0.0-beta.4
1
+ // Type definitions for Electron 39.0.0
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
@@ -1048,6 +1048,30 @@ declare namespace Electron {
1048
1048
  * You should seek to use the `steal` option as sparingly as possible.
1049
1049
  */
1050
1050
  focus(options?: FocusOptions): void;
1051
+ /**
1052
+ * Array of strings naming currently enabled accessibility support components.
1053
+ * Possible values:
1054
+ *
1055
+ * * `nativeAPIs` - Native OS accessibility APIs integration enabled.
1056
+ * * `webContents` - Web contents accessibility tree exposure enabled.
1057
+ * * `inlineTextBoxes` - Inline text boxes (character bounding boxes) enabled.
1058
+ * * `extendedProperties` - Extended accessibility properties enabled.
1059
+ * * `screenReader` - Screen reader specific mode enabled.
1060
+ * * `html` - HTML accessibility tree construction enabled.
1061
+ * * `labelImages` - Accessibility support for automatic image annotations.
1062
+ * * `pdfPrinting` - Accessibility support for PDF printing enabled.
1063
+ *
1064
+ * Notes:
1065
+ *
1066
+ * * The array may be empty if no accessibility modes are active.
1067
+ * * Use `app.isAccessibilitySupportEnabled()` for the legacy boolean check; prefer
1068
+ * this method for granular diagnostics or telemetry.
1069
+ *
1070
+ * Example:
1071
+ *
1072
+ * @platform darwin,win32
1073
+ */
1074
+ getAccessibilitySupportFeatures(): string[];
1051
1075
  /**
1052
1076
  * Resolve with an object containing the following:
1053
1077
  *
@@ -1506,11 +1530,32 @@ declare namespace Electron {
1506
1530
  * This API must be called after the `ready` event is emitted.
1507
1531
  *
1508
1532
  * > [!NOTE] Rendering accessibility tree can significantly affect the performance
1509
- * of your app. It should not be enabled by default.
1533
+ * of your app. It should not be enabled by default. Calling this method will
1534
+ * enable the following accessibility support features: `nativeAPIs`,
1535
+ * `webContents`, `inlineTextBoxes`, and `extendedProperties`.
1510
1536
  *
1511
1537
  * @platform darwin,win32
1512
1538
  */
1513
1539
  setAccessibilitySupportEnabled(enabled: boolean): void;
1540
+ /**
1541
+ * Possible values are:
1542
+ *
1543
+ * * `nativeAPIs` - Native OS accessibility APIs integration enabled.
1544
+ * * `webContents` - Web contents accessibility tree exposure enabled.
1545
+ * * `inlineTextBoxes` - Inline text boxes (character bounding boxes) enabled.
1546
+ * * `extendedProperties` - Extended accessibility properties enabled.
1547
+ * * `screenReader` - Screen reader specific mode enabled.
1548
+ * * `html` - HTML accessibility tree construction enabled.
1549
+ * * `labelImages` - Accessibility support for automatic image annotations.
1550
+ * * `pdfPrinting` - Accessibility support for PDF printing enabled.
1551
+ *
1552
+ * To disable all supported features, pass an empty array `[]`.
1553
+ *
1554
+ * Example:
1555
+ *
1556
+ * @platform darwin,win32
1557
+ */
1558
+ setAccessibilitySupportFeatures(features: string[]): void;
1514
1559
  /**
1515
1560
  * Sets the activation policy for a given app.
1516
1561
  *
@@ -3800,9 +3845,12 @@ declare namespace Electron {
3800
3845
  */
3801
3846
  tabbingIdentifier?: string;
3802
3847
  /**
3803
- * Use `WS_THICKFRAME` style for frameless windows on Windows, which adds standard
3804
- * window frame. Setting it to `false` will remove window shadow and window
3805
- * animations. Default is `true`.
3848
+ * Use `WS_THICKFRAME` style for frameless windows on Windows, which adds the
3849
+ * standard window frame. Setting it to `false` will remove window shadow and
3850
+ * window animations, and disable window resizing via dragging the window edges.
3851
+ * Default is `true`.
3852
+ *
3853
+ * @platform win32
3806
3854
  */
3807
3855
  thickFrame?: boolean;
3808
3856
  /**
@@ -13118,7 +13166,7 @@ declare namespace Electron {
13118
13166
  // Docs: https://electronjs.org/docs/api/system-preferences
13119
13167
 
13120
13168
  /**
13121
- * @platform win32
13169
+ * @platform win32,linux
13122
13170
  */
13123
13171
  on(event: 'accent-color-changed', listener: (event: Event,
13124
13172
  /**
@@ -13126,7 +13174,7 @@ declare namespace Electron {
13126
13174
  */
13127
13175
  newColor: string) => void): this;
13128
13176
  /**
13129
- * @platform win32
13177
+ * @platform win32,linux
13130
13178
  */
13131
13179
  off(event: 'accent-color-changed', listener: (event: Event,
13132
13180
  /**
@@ -13134,7 +13182,7 @@ declare namespace Electron {
13134
13182
  */
13135
13183
  newColor: string) => void): this;
13136
13184
  /**
13137
- * @platform win32
13185
+ * @platform win32,linux
13138
13186
  */
13139
13187
  once(event: 'accent-color-changed', listener: (event: Event,
13140
13188
  /**
@@ -13142,7 +13190,7 @@ declare namespace Electron {
13142
13190
  */
13143
13191
  newColor: string) => void): this;
13144
13192
  /**
13145
- * @platform win32
13193
+ * @platform win32,linux
13146
13194
  */
13147
13195
  addListener(event: 'accent-color-changed', listener: (event: Event,
13148
13196
  /**
@@ -13150,7 +13198,7 @@ declare namespace Electron {
13150
13198
  */
13151
13199
  newColor: string) => void): this;
13152
13200
  /**
13153
- * @platform win32
13201
+ * @platform win32,linux
13154
13202
  */
13155
13203
  removeListener(event: 'accent-color-changed', listener: (event: Event,
13156
13204
  /**
@@ -13209,8 +13257,6 @@ declare namespace Electron {
13209
13257
  * The users current system wide accent color preference in RGBA hexadecimal form.
13210
13258
  *
13211
13259
  * This API is only available on macOS 10.14 Mojave or newer.
13212
- *
13213
- * @platform win32,darwin
13214
13260
  */
13215
13261
  getAccentColor(): string;
13216
13262
  /**
@@ -18401,7 +18447,9 @@ declare namespace Electron {
18401
18447
  * If set, this will sandbox the renderer associated with the window, making it
18402
18448
  * compatible with the Chromium OS-level sandbox and disabling the Node.js engine.
18403
18449
  * This is not the same as the `nodeIntegration` option and the APIs available to
18404
- * the preload script are more limited. Read more about the option here.
18450
+ * the preload script are more limited. Default is `true` since Electron 20. The
18451
+ * sandbox will automatically be disabled when `nodeIntegration` is set to `true`.
18452
+ * Read more about the option here.
18405
18453
  */
18406
18454
  sandbox?: boolean;
18407
18455
  /**
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "39.0.0-beta.4",
3
- "extractedAt": "2025-12-24T03:17:43.467Z"
2
+ "electronVersion": "39.0.0",
3
+ "extractedAt": "2025-12-24T03:17:24.564Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "39.0.0-beta.4",
3
+ "version": "39.0.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",