@overwolf/ow-electron 37.2.6 → 37.7.0-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 +538 -328
- package/electron.d.ts +112 -5
- package/ow-electron.d.ts +4 -4
- 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.7.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
|
|
@@ -1219,7 +1219,7 @@ declare namespace Electron {
|
|
|
1219
1219
|
* called first, a default log directory will be created equivalent to calling
|
|
1220
1220
|
* `app.setAppLogsPath()` without a `path` parameter.
|
|
1221
1221
|
*/
|
|
1222
|
-
getPath(name: 'home' | 'appData' | 'userData' | 'sessionData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'recent' | 'logs' | 'crashDumps'): string;
|
|
1222
|
+
getPath(name: 'home' | 'appData' | 'assets' | 'userData' | 'sessionData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'recent' | 'logs' | 'crashDumps'): string;
|
|
1223
1223
|
/**
|
|
1224
1224
|
* The user's preferred system languages from most preferred to least preferred,
|
|
1225
1225
|
* including the country codes if applicable. A user can modify and add to this
|
|
@@ -1256,6 +1256,12 @@ declare namespace Electron {
|
|
|
1256
1256
|
* that do not have associated countries in the language name.
|
|
1257
1257
|
*/
|
|
1258
1258
|
getPreferredSystemLanguages(): string[];
|
|
1259
|
+
/**
|
|
1260
|
+
* An array containing documents in the most recent documents list.
|
|
1261
|
+
*
|
|
1262
|
+
* @platform darwin,win32
|
|
1263
|
+
*/
|
|
1264
|
+
getRecentDocuments(): string[];
|
|
1259
1265
|
/**
|
|
1260
1266
|
* The current system locale. On Windows and Linux, it is fetched using Chromium's
|
|
1261
1267
|
* `i18n` library. On macOS, `[NSLocale currentLocale]` is used instead. To get the
|
|
@@ -2575,6 +2581,19 @@ declare namespace Electron {
|
|
|
2575
2581
|
* Focuses on the window.
|
|
2576
2582
|
*/
|
|
2577
2583
|
focus(): void;
|
|
2584
|
+
/**
|
|
2585
|
+
* the system accent color and highlighting of active window border in Hex RGB
|
|
2586
|
+
* format.
|
|
2587
|
+
*
|
|
2588
|
+
* If a color has been set for the window that differs from the system accent
|
|
2589
|
+
* color, the window accent color will be returned. Otherwise, a boolean will be
|
|
2590
|
+
* returned, with `true` indicating that the window uses the global system accent
|
|
2591
|
+
* color, and `false` indicating that accent color highlighting is disabled for
|
|
2592
|
+
* this window.
|
|
2593
|
+
*
|
|
2594
|
+
* @platform win32
|
|
2595
|
+
*/
|
|
2596
|
+
getAccentColor(): (string) | (boolean);
|
|
2578
2597
|
/**
|
|
2579
2598
|
* Gets the background color of the window in Hex (`#RRGGBB`) format.
|
|
2580
2599
|
*
|
|
@@ -2934,6 +2953,23 @@ declare namespace Electron {
|
|
|
2934
2953
|
* @platform darwin
|
|
2935
2954
|
*/
|
|
2936
2955
|
selectPreviousTab(): void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Sets the system accent color and highlighting of active window border.
|
|
2958
|
+
*
|
|
2959
|
+
* The `accentColor` parameter accepts the following values:
|
|
2960
|
+
*
|
|
2961
|
+
* * **Color string** - Sets a custom accent color using standard CSS color formats
|
|
2962
|
+
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in RGBA/HSLA formats
|
|
2963
|
+
* are ignored and the color is treated as fully opaque.
|
|
2964
|
+
* * **`true`** - Uses the system's default accent color from user preferences in
|
|
2965
|
+
* System Settings.
|
|
2966
|
+
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
2967
|
+
*
|
|
2968
|
+
* Examples:
|
|
2969
|
+
*
|
|
2970
|
+
* @platform win32
|
|
2971
|
+
*/
|
|
2972
|
+
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
2937
2973
|
/**
|
|
2938
2974
|
* Sets whether the window should show always on top of other windows. After
|
|
2939
2975
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -5226,6 +5262,19 @@ declare namespace Electron {
|
|
|
5226
5262
|
*/
|
|
5227
5263
|
focus(): void;
|
|
5228
5264
|
focusOnWebView(): void;
|
|
5265
|
+
/**
|
|
5266
|
+
* the system accent color and highlighting of active window border in Hex RGB
|
|
5267
|
+
* format.
|
|
5268
|
+
*
|
|
5269
|
+
* If a color has been set for the window that differs from the system accent
|
|
5270
|
+
* color, the window accent color will be returned. Otherwise, a boolean will be
|
|
5271
|
+
* returned, with `true` indicating that the window uses the global system accent
|
|
5272
|
+
* color, and `false` indicating that accent color highlighting is disabled for
|
|
5273
|
+
* this window.
|
|
5274
|
+
*
|
|
5275
|
+
* @platform win32
|
|
5276
|
+
*/
|
|
5277
|
+
getAccentColor(): (string) | (boolean);
|
|
5229
5278
|
/**
|
|
5230
5279
|
* Gets the background color of the window in Hex (`#RRGGBB`) format.
|
|
5231
5280
|
*
|
|
@@ -5645,6 +5694,23 @@ declare namespace Electron {
|
|
|
5645
5694
|
* @platform darwin
|
|
5646
5695
|
*/
|
|
5647
5696
|
selectPreviousTab(): void;
|
|
5697
|
+
/**
|
|
5698
|
+
* Sets the system accent color and highlighting of active window border.
|
|
5699
|
+
*
|
|
5700
|
+
* The `accentColor` parameter accepts the following values:
|
|
5701
|
+
*
|
|
5702
|
+
* * **Color string** - Sets a custom accent color using standard CSS color formats
|
|
5703
|
+
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in RGBA/HSLA formats
|
|
5704
|
+
* are ignored and the color is treated as fully opaque.
|
|
5705
|
+
* * **`true`** - Uses the system's default accent color from user preferences in
|
|
5706
|
+
* System Settings.
|
|
5707
|
+
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
5708
|
+
*
|
|
5709
|
+
* Examples:
|
|
5710
|
+
*
|
|
5711
|
+
* @platform win32
|
|
5712
|
+
*/
|
|
5713
|
+
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
5648
5714
|
/**
|
|
5649
5715
|
* Sets whether the window should show always on top of other windows. After
|
|
5650
5716
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -12609,8 +12675,11 @@ declare namespace Electron {
|
|
|
12609
12675
|
* get complete permission handling. Most web APIs do a permission check and then
|
|
12610
12676
|
* make a permission request if the check is denied. To clear the handler, call
|
|
12611
12677
|
* `setPermissionCheckHandler(null)`.
|
|
12678
|
+
*
|
|
12679
|
+
* > [!NOTE] `isMainFrame` will always be `false` for a `fileSystem` request as a
|
|
12680
|
+
* result of Chromium limitations.
|
|
12612
12681
|
*/
|
|
12613
|
-
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'storage-access' | 'top-level-storage-access' | 'usb' | 'deprecated-sync-clipboard-read', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
12682
|
+
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'storage-access' | 'top-level-storage-access' | 'usb' | 'deprecated-sync-clipboard-read' | 'fileSystem', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
12614
12683
|
/**
|
|
12615
12684
|
* Sets the handler which can be used to respond to permission requests for the
|
|
12616
12685
|
* `session`. Calling `callback(true)` will allow the permission and
|
|
@@ -14490,6 +14559,13 @@ declare namespace Electron {
|
|
|
14490
14559
|
* @platform darwin,win32
|
|
14491
14560
|
*/
|
|
14492
14561
|
getBounds(): Rectangle;
|
|
14562
|
+
/**
|
|
14563
|
+
* The GUID used to uniquely identify the tray icon and allow it to retain its
|
|
14564
|
+
* position between relaunches, or null if none is set.
|
|
14565
|
+
*
|
|
14566
|
+
* @platform darwin,win32
|
|
14567
|
+
*/
|
|
14568
|
+
getGUID(): (string) | (null);
|
|
14493
14569
|
/**
|
|
14494
14570
|
* Whether double click events will be ignored.
|
|
14495
14571
|
*
|
|
@@ -21589,7 +21665,7 @@ declare namespace Electron {
|
|
|
21589
21665
|
*/
|
|
21590
21666
|
securityOrigin?: string;
|
|
21591
21667
|
/**
|
|
21592
|
-
* The type of media access being requested, can be `video`, `audio` or `unknown
|
|
21668
|
+
* The type of media access being requested, can be `video`, `audio` or `unknown`.
|
|
21593
21669
|
*/
|
|
21594
21670
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
21595
21671
|
/**
|
|
@@ -21598,9 +21674,21 @@ declare namespace Electron {
|
|
|
21598
21674
|
*/
|
|
21599
21675
|
requestingUrl?: string;
|
|
21600
21676
|
/**
|
|
21601
|
-
* Whether the frame making the request is the main frame
|
|
21677
|
+
* Whether the frame making the request is the main frame.
|
|
21602
21678
|
*/
|
|
21603
21679
|
isMainFrame: boolean;
|
|
21680
|
+
/**
|
|
21681
|
+
* The path of a `fileSystem` request.
|
|
21682
|
+
*/
|
|
21683
|
+
filePath?: string;
|
|
21684
|
+
/**
|
|
21685
|
+
* Whether a `fileSystem` request is a directory.
|
|
21686
|
+
*/
|
|
21687
|
+
isDirectory?: boolean;
|
|
21688
|
+
/**
|
|
21689
|
+
* The access type of a `fileSystem` request. Can be `writable` or `readable`.
|
|
21690
|
+
*/
|
|
21691
|
+
fileAccessType?: ('writable' | 'readable');
|
|
21604
21692
|
}
|
|
21605
21693
|
|
|
21606
21694
|
interface PluginCrashedEvent extends DOMEvent {
|
|
@@ -22241,6 +22329,20 @@ declare namespace Electron {
|
|
|
22241
22329
|
* The total amount of memory not being used by applications or disk cache.
|
|
22242
22330
|
*/
|
|
22243
22331
|
free: number;
|
|
22332
|
+
/**
|
|
22333
|
+
* The amount of memory that currently has been paged out to storage. Includes
|
|
22334
|
+
* memory for file caches, network buffers, and other system services.
|
|
22335
|
+
*
|
|
22336
|
+
* @platform darwin
|
|
22337
|
+
*/
|
|
22338
|
+
fileBacked: number;
|
|
22339
|
+
/**
|
|
22340
|
+
* The amount of memory that is marked as "purgeable". The system can reclaim it if
|
|
22341
|
+
* memory pressure increases.
|
|
22342
|
+
*
|
|
22343
|
+
* @platform darwin
|
|
22344
|
+
*/
|
|
22345
|
+
purgeable: number;
|
|
22244
22346
|
/**
|
|
22245
22347
|
* The total amount of swap memory in Kilobytes available to the system.
|
|
22246
22348
|
*
|
|
@@ -25210,6 +25312,11 @@ declare namespace NodeJS {
|
|
|
25210
25312
|
* to the system.
|
|
25211
25313
|
* * `free` Integer - The total amount of memory not being used by applications or
|
|
25212
25314
|
* disk cache.
|
|
25315
|
+
* * `fileBacked` Integer _macOS_ - The amount of memory that currently has been
|
|
25316
|
+
* paged out to storage. Includes memory for file caches, network buffers, and
|
|
25317
|
+
* other system services.
|
|
25318
|
+
* * `purgeable` Integer _macOS_ - The amount of memory that is marked as
|
|
25319
|
+
* "purgeable". The system can reclaim it if memory pressure increases.
|
|
25213
25320
|
* * `swapTotal` Integer _Windows_ _Linux_ - The total amount of swap memory in
|
|
25214
25321
|
* Kilobytes available to the system.
|
|
25215
25322
|
* * `swapFree` Integer _Windows_ _Linux_ - The free amount of swap memory in
|
package/ow-electron.d.ts
CHANGED
|
@@ -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.7.0-beta.0",
|
|
4
|
+
"owElectronVersion": "37.7.0-beta.0",
|
|
5
|
+
"electronVersion": "37.7.0",
|
|
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
|
}
|