@overwolf/ow-electron 37.7.0 → 37.10.3-beta.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.
- package/README.md +1 -1
- package/checksums.json +10 -10
- package/electron-api.json +371 -322
- package/electron.d.ts +61 -3
- package/ow-electron.d.ts +5 -5
- package/package.json +6 -3
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 37.
|
|
1
|
+
// Type definitions for Electron 37.10.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
|
|
@@ -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
|
*
|
|
@@ -1345,6 +1369,13 @@ declare namespace Electron {
|
|
|
1345
1369
|
* whether or not the current OS version allows for native emoji pickers.
|
|
1346
1370
|
*/
|
|
1347
1371
|
isEmojiPanelSupported(): boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
* whether hardware acceleration is currently disabled.
|
|
1374
|
+
*
|
|
1375
|
+
* > [!NOTE] This information is only usable after the `gpu-info-update` event is
|
|
1376
|
+
* emitted.
|
|
1377
|
+
*/
|
|
1378
|
+
isHardwareAccelerationEnabled(): boolean;
|
|
1348
1379
|
/**
|
|
1349
1380
|
* `true` if the application—including all of its windows—is hidden (e.g. with
|
|
1350
1381
|
* `Command-H`), `false` otherwise.
|
|
@@ -1506,11 +1537,32 @@ declare namespace Electron {
|
|
|
1506
1537
|
* This API must be called after the `ready` event is emitted.
|
|
1507
1538
|
*
|
|
1508
1539
|
* > [!NOTE] Rendering accessibility tree can significantly affect the performance
|
|
1509
|
-
* of your app. It should not be enabled by default.
|
|
1540
|
+
* of your app. It should not be enabled by default. Calling this method will
|
|
1541
|
+
* enable the following accessibility support features: `nativeAPIs`,
|
|
1542
|
+
* `webContents`, `inlineTextBoxes`, and `extendedProperties`.
|
|
1510
1543
|
*
|
|
1511
1544
|
* @platform darwin,win32
|
|
1512
1545
|
*/
|
|
1513
1546
|
setAccessibilitySupportEnabled(enabled: boolean): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* Possible values are:
|
|
1549
|
+
*
|
|
1550
|
+
* * `nativeAPIs` - Native OS accessibility APIs integration enabled.
|
|
1551
|
+
* * `webContents` - Web contents accessibility tree exposure enabled.
|
|
1552
|
+
* * `inlineTextBoxes` - Inline text boxes (character bounding boxes) enabled.
|
|
1553
|
+
* * `extendedProperties` - Extended accessibility properties enabled.
|
|
1554
|
+
* * `screenReader` - Screen reader specific mode enabled.
|
|
1555
|
+
* * `html` - HTML accessibility tree construction enabled.
|
|
1556
|
+
* * `labelImages` - Accessibility support for automatic image annotations.
|
|
1557
|
+
* * `pdfPrinting` - Accessibility support for PDF printing enabled.
|
|
1558
|
+
*
|
|
1559
|
+
* To disable all supported features, pass an empty array `[]`.
|
|
1560
|
+
*
|
|
1561
|
+
* Example:
|
|
1562
|
+
*
|
|
1563
|
+
* @platform darwin,win32
|
|
1564
|
+
*/
|
|
1565
|
+
setAccessibilitySupportFeatures(features: string[]): void;
|
|
1514
1566
|
/**
|
|
1515
1567
|
* Sets the activation policy for a given app.
|
|
1516
1568
|
*
|
|
@@ -18328,7 +18380,9 @@ declare namespace Electron {
|
|
|
18328
18380
|
* If set, this will sandbox the renderer associated with the window, making it
|
|
18329
18381
|
* compatible with the Chromium OS-level sandbox and disabling the Node.js engine.
|
|
18330
18382
|
* This is not the same as the `nodeIntegration` option and the APIs available to
|
|
18331
|
-
* the preload script are more limited.
|
|
18383
|
+
* the preload script are more limited. Default is `true` since Electron 20. The
|
|
18384
|
+
* sandbox will automatically be disabled when `nodeIntegration` is set to `true`.
|
|
18385
|
+
* Read more about the option here.
|
|
18332
18386
|
*/
|
|
18333
18387
|
sandbox?: boolean;
|
|
18334
18388
|
/**
|
|
@@ -24461,6 +24515,8 @@ declare namespace Electron {
|
|
|
24461
24515
|
type IncomingMessage = Electron.IncomingMessage;
|
|
24462
24516
|
const net: Net;
|
|
24463
24517
|
type Net = Electron.Net;
|
|
24518
|
+
const parentPort: ParentPort;
|
|
24519
|
+
type ParentPort = Electron.ParentPort;
|
|
24464
24520
|
const systemPreferences: SystemPreferences;
|
|
24465
24521
|
type SystemPreferences = Electron.SystemPreferences;
|
|
24466
24522
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
@@ -24810,6 +24866,8 @@ declare namespace Electron {
|
|
|
24810
24866
|
const netLog: NetLog;
|
|
24811
24867
|
type NetLog = Electron.NetLog;
|
|
24812
24868
|
class Notification extends Electron.Notification {}
|
|
24869
|
+
const parentPort: ParentPort;
|
|
24870
|
+
type ParentPort = Electron.ParentPort;
|
|
24813
24871
|
const powerMonitor: PowerMonitor;
|
|
24814
24872
|
type PowerMonitor = Electron.PowerMonitor;
|
|
24815
24873
|
const powerSaveBlocker: PowerSaveBlocker;
|
package/ow-electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for ow-electron 37.
|
|
1
|
+
// Type definitions for ow-electron 37.10.3
|
|
2
2
|
|
|
3
3
|
import { App, BrowserWindow, Event, WebviewTag } from 'electron';
|
|
4
4
|
import { errorMonitor } from 'events';
|
|
@@ -354,7 +354,7 @@ declare namespace overwolf {
|
|
|
354
354
|
eventName: 'game-detected',
|
|
355
355
|
listener: (event: GepGameLaunchEvent, gameId: number, name: string, ...args: any[]) => void,
|
|
356
356
|
): this;
|
|
357
|
-
|
|
357
|
+
|
|
358
358
|
/**
|
|
359
359
|
* Register listener for a game exit event.
|
|
360
360
|
*
|
|
@@ -364,12 +364,12 @@ declare namespace overwolf {
|
|
|
364
364
|
*/
|
|
365
365
|
on(
|
|
366
366
|
eventName: 'game-exit',
|
|
367
|
-
listener: (event: Event, gameId: number,
|
|
367
|
+
listener: (event: Event, gameId: number, name: string, pid: number) => void,
|
|
368
368
|
): this;
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
* Register listener for when a detected game is ran as
|
|
372
|
-
* If this fires, it means the app must also run as
|
|
371
|
+
* Register listener for when a detected game is ran as adminstrator.
|
|
372
|
+
* If this fires, it means the app must also run as adminstrator in order for Game Events to be detected.
|
|
373
373
|
*
|
|
374
374
|
* @param {string | symbol} eventName Name of the node event ('elevated-privileges-required')
|
|
375
375
|
* @param {(Event, any[]) => void} listener The listener that will be invoked when this event is fired
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron",
|
|
3
|
-
"version": "37.
|
|
4
|
-
"owElectronVersion": "37.
|
|
5
|
-
"electronVersion": "37.
|
|
3
|
+
"version": "37.10.3-beta.0",
|
|
4
|
+
"owElectronVersion": "37.10.3-beta.0",
|
|
5
|
+
"electronVersion": "37.10.3",
|
|
6
6
|
"repository": "https://github.com/electron/electron",
|
|
7
7
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
8
8
|
"license": "MIT",
|
|
@@ -26,5 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">= 10.17.0"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"tag": "beta"
|
|
29
32
|
}
|
|
30
33
|
}
|