@overwolf/ow-electron 42.7.1 → 42.11.4-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/checksums.json +10 -10
- package/electron.d.ts +195 -94
- package/ow-electron-mix.d.ts +1 -1
- package/ow-electron-types.d.ts +20 -15
- package/ow-electron.d.ts +1 -1
- package/package.json +6 -3
package/checksums.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"electron-api.json": "
|
|
3
|
-
"electron.d.ts": "
|
|
4
|
-
"ow-electron-v42.
|
|
5
|
-
"ow-electron-v42.
|
|
6
|
-
"ow-electron-v42.
|
|
7
|
-
"ow-electron-v42.
|
|
8
|
-
"ow-electron-v42.
|
|
9
|
-
"ow-electron-v42.
|
|
10
|
-
"ow-electron-v42.
|
|
11
|
-
"ow-electron-v42.
|
|
2
|
+
"electron-api.json": "46d2fa37e197582dee4600e456583719f38d83820d34191a8a7c69787662cd2e",
|
|
3
|
+
"electron.d.ts": "9c4dbcdd7d61dab1154f21a3ca467efe030525bb7c21be5023da9fcd42f611bf",
|
|
4
|
+
"ow-electron-v42.11.4-beta.0-darwin-arm64.zip": "726bccdbc0f9623f5b562dc6f3e77a1212511589cd7f7fd2aa75e84ac0f6e4e9",
|
|
5
|
+
"ow-electron-v42.11.4-beta.0-darwin-x64.zip": "bdf7e79ef7aaee9a218fc6cc62b85431d17962400747732aefad597533866a7c",
|
|
6
|
+
"ow-electron-v42.11.4-beta.0-linux-arm64.zip": "359fc7233c0b5c5446a23a657706fa8b2a56d61c19e255c890b21b04c485dcd0",
|
|
7
|
+
"ow-electron-v42.11.4-beta.0-linux-armv7l.zip": "4d0421d19053bdd528207da605755532a04c50cd479d0aa6d83d62c292e63cd6",
|
|
8
|
+
"ow-electron-v42.11.4-beta.0-linux-x64.zip": "885ae9bf3788b25b30fa42601708a368fdefef093acddcc08f4e97f4645745d7",
|
|
9
|
+
"ow-electron-v42.11.4-beta.0-win32-arm64.zip": "56b3650e18baf2e3055e185f4f65e99e82d82177dcebbcef30097cd8206ac657",
|
|
10
|
+
"ow-electron-v42.11.4-beta.0-win32-ia32.zip": "faf24c89915ec55d2c3f30ef9d3b9e49a35a100c74365e47fe8bc35aa6c36e5c",
|
|
11
|
+
"ow-electron-v42.11.4-beta.0-win32-x64.zip": "f8d849d911b91a12a6ed18f3cf25e88a5fb134334706856807c0874f9f8524f9"
|
|
12
12
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 42.
|
|
1
|
+
// Type definitions for Electron 42.11.4
|
|
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
|
|
@@ -1561,6 +1561,11 @@ declare namespace Electron {
|
|
|
1561
1561
|
* line, the system's single instance mechanism will be bypassed, and you have to
|
|
1562
1562
|
* use this method to ensure single instance.
|
|
1563
1563
|
*
|
|
1564
|
+
* > [!NOTE] On macOS and Linux, the second instance's command line arguments and
|
|
1565
|
+
* `additionalData` are sent to the primary instance in a single message that is
|
|
1566
|
+
* limited to 32 MB. Larger messages are dropped: this method still returns
|
|
1567
|
+
* `false`, but the primary instance does not emit `second-instance`.
|
|
1568
|
+
*
|
|
1564
1569
|
* An example of activating the window of primary instance when a second instance
|
|
1565
1570
|
* starts:
|
|
1566
1571
|
*/
|
|
@@ -9634,6 +9639,8 @@ declare namespace Electron {
|
|
|
9634
9639
|
* or just displayed.
|
|
9635
9640
|
*
|
|
9636
9641
|
* This property can be dynamically changed.
|
|
9642
|
+
*
|
|
9643
|
+
* @platform linux,win32
|
|
9637
9644
|
*/
|
|
9638
9645
|
registerAccelerator: boolean;
|
|
9639
9646
|
/**
|
|
@@ -11179,6 +11186,95 @@ declare namespace Electron {
|
|
|
11179
11186
|
options: Options;
|
|
11180
11187
|
}
|
|
11181
11188
|
|
|
11189
|
+
interface PrintToPDFMargins {
|
|
11190
|
+
|
|
11191
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-margins
|
|
11192
|
+
|
|
11193
|
+
/**
|
|
11194
|
+
* Bottom margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11195
|
+
*/
|
|
11196
|
+
bottom?: number;
|
|
11197
|
+
/**
|
|
11198
|
+
* Left margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11199
|
+
*/
|
|
11200
|
+
left?: number;
|
|
11201
|
+
/**
|
|
11202
|
+
* Right margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11203
|
+
*/
|
|
11204
|
+
right?: number;
|
|
11205
|
+
/**
|
|
11206
|
+
* Top margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11207
|
+
*/
|
|
11208
|
+
top?: number;
|
|
11209
|
+
}
|
|
11210
|
+
|
|
11211
|
+
interface PrintToPDFOptions {
|
|
11212
|
+
|
|
11213
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-options
|
|
11214
|
+
|
|
11215
|
+
/**
|
|
11216
|
+
* Whether to display header and footer. Defaults to false.
|
|
11217
|
+
*/
|
|
11218
|
+
displayHeaderFooter?: boolean;
|
|
11219
|
+
/**
|
|
11220
|
+
* HTML template for the print footer. Should use the same format as the
|
|
11221
|
+
* `headerTemplate`.
|
|
11222
|
+
*/
|
|
11223
|
+
footerTemplate?: string;
|
|
11224
|
+
/**
|
|
11225
|
+
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
11226
|
+
* to false.
|
|
11227
|
+
*
|
|
11228
|
+
* @experimental
|
|
11229
|
+
*/
|
|
11230
|
+
generateDocumentOutline?: boolean;
|
|
11231
|
+
/**
|
|
11232
|
+
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
11233
|
+
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
11234
|
+
* WCAG standards.
|
|
11235
|
+
*
|
|
11236
|
+
* @experimental
|
|
11237
|
+
*/
|
|
11238
|
+
generateTaggedPDF?: boolean;
|
|
11239
|
+
/**
|
|
11240
|
+
* HTML template for the print header. Should be valid HTML markup with following
|
|
11241
|
+
* classes used to inject printing values into them: `date` (formatted print date),
|
|
11242
|
+
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
11243
|
+
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
11244
|
+
* class=title></span>` would generate span containing the title.
|
|
11245
|
+
*/
|
|
11246
|
+
headerTemplate?: string;
|
|
11247
|
+
/**
|
|
11248
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
11249
|
+
*/
|
|
11250
|
+
landscape?: boolean;
|
|
11251
|
+
margins?: PrintToPDFMargins;
|
|
11252
|
+
/**
|
|
11253
|
+
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
11254
|
+
* means print all pages.
|
|
11255
|
+
*/
|
|
11256
|
+
pageRanges?: string;
|
|
11257
|
+
/**
|
|
11258
|
+
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
11259
|
+
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
11260
|
+
* `height` and `width` in inches. Defaults to `Letter`.
|
|
11261
|
+
*/
|
|
11262
|
+
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
11263
|
+
/**
|
|
11264
|
+
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
11265
|
+
* which case the content will be scaled to fit the paper size.
|
|
11266
|
+
*/
|
|
11267
|
+
preferCSSPageSize?: boolean;
|
|
11268
|
+
/**
|
|
11269
|
+
* Whether to print background graphics. Defaults to false.
|
|
11270
|
+
*/
|
|
11271
|
+
printBackground?: boolean;
|
|
11272
|
+
/**
|
|
11273
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
11274
|
+
*/
|
|
11275
|
+
scale?: number;
|
|
11276
|
+
}
|
|
11277
|
+
|
|
11182
11278
|
interface ProcessMemoryInfo {
|
|
11183
11279
|
|
|
11184
11280
|
// Docs: https://electronjs.org/docs/api/structures/process-memory-info
|
|
@@ -13211,8 +13307,12 @@ declare namespace Electron {
|
|
|
13211
13307
|
* is available and `useSystemPicker` is set to `true`, the handler will not be
|
|
13212
13308
|
* invoked.
|
|
13213
13309
|
*
|
|
13214
|
-
* Passing a WebFrameMain object as a video or audio stream
|
|
13215
|
-
*
|
|
13310
|
+
* Passing a WebFrameMain object as a video or audio stream captures the whole
|
|
13311
|
+
* `webContents` that contains that frame (the tab), not just the frame:
|
|
13312
|
+
* `request.frame` from an `<iframe>` therefore grants that iframe a capture of the
|
|
13313
|
+
* page that embeds it. Check `request.frame` before using it this way, and note
|
|
13314
|
+
* that the callback throws if the frame has been destroyed by the time it is
|
|
13315
|
+
* called.
|
|
13216
13316
|
*
|
|
13217
13317
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13218
13318
|
*/
|
|
@@ -17096,23 +17196,23 @@ declare namespace Electron {
|
|
|
17096
17196
|
* The usage is the same with the `login` event of `app`.
|
|
17097
17197
|
*/
|
|
17098
17198
|
on(event: 'login', listener: (event: Event,
|
|
17099
|
-
authenticationResponseDetails:
|
|
17199
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17100
17200
|
authInfo: AuthInfo,
|
|
17101
17201
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17102
17202
|
off(event: 'login', listener: (event: Event,
|
|
17103
|
-
authenticationResponseDetails:
|
|
17203
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17104
17204
|
authInfo: AuthInfo,
|
|
17105
17205
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17106
17206
|
once(event: 'login', listener: (event: Event,
|
|
17107
|
-
authenticationResponseDetails:
|
|
17207
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17108
17208
|
authInfo: AuthInfo,
|
|
17109
17209
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17110
17210
|
addListener(event: 'login', listener: (event: Event,
|
|
17111
|
-
authenticationResponseDetails:
|
|
17211
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17112
17212
|
authInfo: AuthInfo,
|
|
17113
17213
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17114
17214
|
removeListener(event: 'login', listener: (event: Event,
|
|
17115
|
-
authenticationResponseDetails:
|
|
17215
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
17116
17216
|
authInfo: AuthInfo,
|
|
17117
17217
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
17118
17218
|
/**
|
|
@@ -17952,7 +18052,9 @@ declare namespace Electron {
|
|
|
17952
18052
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
17953
18053
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
17954
18054
|
* identifier is restricted to the web contents that it is registered to and is
|
|
17955
|
-
* only valid for 10 seconds.
|
|
18055
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18056
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18057
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
17956
18058
|
*/
|
|
17957
18059
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
17958
18060
|
/**
|
|
@@ -18879,6 +18981,22 @@ declare namespace Electron {
|
|
|
18879
18981
|
* For example:
|
|
18880
18982
|
*/
|
|
18881
18983
|
postMessage(channel: string, message: any, transfer?: MessagePortMain[]): void;
|
|
18984
|
+
/**
|
|
18985
|
+
* Resolves with the generated PDF data.
|
|
18986
|
+
*
|
|
18987
|
+
* Prints the frame's web page as PDF.
|
|
18988
|
+
*
|
|
18989
|
+
* Unlike `webContents.printToPDF`, this method prints only the contents of the
|
|
18990
|
+
* frame it is called on. This can be used to print an individual `<iframe>` from
|
|
18991
|
+
* the main process.
|
|
18992
|
+
*
|
|
18993
|
+
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
18994
|
+
*
|
|
18995
|
+
* An example of printing an iframe to PDF:
|
|
18996
|
+
*
|
|
18997
|
+
* See Page.printToPdf for more information.
|
|
18998
|
+
*/
|
|
18999
|
+
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
18882
19000
|
/**
|
|
18883
19001
|
* Whether the reload was initiated successfully. Only results in `false` when the
|
|
18884
19002
|
* frame has no history.
|
|
@@ -19164,8 +19282,10 @@ declare namespace Electron {
|
|
|
19164
19282
|
*/
|
|
19165
19283
|
nodeIntegrationInSubFrames?: boolean;
|
|
19166
19284
|
/**
|
|
19167
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19168
|
-
*
|
|
19285
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19286
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19287
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19288
|
+
* can be found in Multithreading.
|
|
19169
19289
|
*/
|
|
19170
19290
|
nodeIntegrationInWorker?: boolean;
|
|
19171
19291
|
/**
|
|
@@ -19730,6 +19850,10 @@ declare namespace Electron {
|
|
|
19730
19850
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
19731
19851
|
/**
|
|
19732
19852
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
19853
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
19854
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
19855
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
19856
|
+
* `event.senderFrame` identifies the sender.
|
|
19733
19857
|
*
|
|
19734
19858
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
19735
19859
|
* guest page and embedder page:
|
|
@@ -20112,7 +20236,9 @@ declare namespace Electron {
|
|
|
20112
20236
|
unselect(): void;
|
|
20113
20237
|
/**
|
|
20114
20238
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20115
|
-
* open new windows.
|
|
20239
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20240
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20241
|
+
* disabled by default.
|
|
20116
20242
|
*/
|
|
20117
20243
|
allowpopups: boolean;
|
|
20118
20244
|
/**
|
|
@@ -20207,6 +20333,13 @@ declare namespace Electron {
|
|
|
20207
20333
|
* another value by including an `=`, followed by the value. Special values `yes`
|
|
20208
20334
|
* and `1` are interpreted as `true`, while `no` and `0` are interpreted as
|
|
20209
20335
|
* `false`.
|
|
20336
|
+
*
|
|
20337
|
+
* Security-critical preferences cannot be used to make the guest less secure than
|
|
20338
|
+
* its embedder. When the embedder has any of `contextIsolation`, `javascript`,
|
|
20339
|
+
* `nodeIntegration`, `nodeIntegrationInWorker`, `sandbox`,
|
|
20340
|
+
* `nodeIntegrationInSubFrames` or `enableWebSQL` set to its more secure value, the
|
|
20341
|
+
* guest inherits that value and the corresponding `webpreferences` entry is
|
|
20342
|
+
* ignored.
|
|
20210
20343
|
*/
|
|
20211
20344
|
webpreferences: string;
|
|
20212
20345
|
}
|
|
@@ -20391,6 +20524,18 @@ declare namespace Electron {
|
|
|
20391
20524
|
interface AuthenticationResponseDetails {
|
|
20392
20525
|
url: string;
|
|
20393
20526
|
pid: number;
|
|
20527
|
+
/**
|
|
20528
|
+
* Indicates whether the request is for a navigation.
|
|
20529
|
+
*/
|
|
20530
|
+
isRequestForNavigation: boolean;
|
|
20531
|
+
/**
|
|
20532
|
+
* Indicates whether this is the first authentication attempt.
|
|
20533
|
+
*/
|
|
20534
|
+
firstAuthAttempt: boolean;
|
|
20535
|
+
/**
|
|
20536
|
+
* The headers returned in the response.
|
|
20537
|
+
*/
|
|
20538
|
+
responseHeaders?: Record<string, (string) | (string[])>;
|
|
20394
20539
|
}
|
|
20395
20540
|
|
|
20396
20541
|
interface AuthInfo {
|
|
@@ -21509,6 +21654,15 @@ declare namespace Electron {
|
|
|
21509
21654
|
* The blocked path attempting to be accessed.
|
|
21510
21655
|
*/
|
|
21511
21656
|
path: string;
|
|
21657
|
+
/**
|
|
21658
|
+
* The frame that initiated access. May be `null` if the frame has since been
|
|
21659
|
+
* destroyed.
|
|
21660
|
+
*/
|
|
21661
|
+
frame: (WebFrameMain) | (null);
|
|
21662
|
+
/**
|
|
21663
|
+
* The WebContents that contains `frame`.
|
|
21664
|
+
*/
|
|
21665
|
+
webContents: (WebContents) | (null);
|
|
21512
21666
|
}
|
|
21513
21667
|
|
|
21514
21668
|
interface FindInPageOptions {
|
|
@@ -21924,10 +22078,6 @@ declare namespace Electron {
|
|
|
21924
22078
|
baseURLForDataURL?: string;
|
|
21925
22079
|
}
|
|
21926
22080
|
|
|
21927
|
-
interface LoginAuthenticationResponseDetails {
|
|
21928
|
-
url: string;
|
|
21929
|
-
}
|
|
21930
|
-
|
|
21931
22081
|
interface LoginItemSettings {
|
|
21932
22082
|
/**
|
|
21933
22083
|
* `true` if the app is set to open at login.
|
|
@@ -22891,7 +23041,8 @@ declare namespace Electron {
|
|
|
22891
23041
|
*/
|
|
22892
23042
|
embeddingOrigin?: string;
|
|
22893
23043
|
/**
|
|
22894
|
-
* The
|
|
23044
|
+
* The origin of the requesting frame, for `media`, `hid`, `usb` and `serial`
|
|
23045
|
+
* checks.
|
|
22895
23046
|
*/
|
|
22896
23047
|
securityOrigin?: string;
|
|
22897
23048
|
/**
|
|
@@ -22899,8 +23050,8 @@ declare namespace Electron {
|
|
|
22899
23050
|
*/
|
|
22900
23051
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
22901
23052
|
/**
|
|
22902
|
-
* The last URL the requesting frame loaded.
|
|
22903
|
-
*
|
|
23053
|
+
* The last URL the requesting frame loaded. Not provided when the check is not
|
|
23054
|
+
* made on behalf of a document (for example for a service worker).
|
|
22904
23055
|
*/
|
|
22905
23056
|
requestingUrl?: string;
|
|
22906
23057
|
/**
|
|
@@ -22992,70 +23143,6 @@ declare namespace Electron {
|
|
|
22992
23143
|
numSockets?: number;
|
|
22993
23144
|
}
|
|
22994
23145
|
|
|
22995
|
-
interface PrintToPDFOptions {
|
|
22996
|
-
/**
|
|
22997
|
-
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
22998
|
-
*/
|
|
22999
|
-
landscape?: boolean;
|
|
23000
|
-
/**
|
|
23001
|
-
* Whether to display header and footer. Defaults to false.
|
|
23002
|
-
*/
|
|
23003
|
-
displayHeaderFooter?: boolean;
|
|
23004
|
-
/**
|
|
23005
|
-
* Whether to print background graphics. Defaults to false.
|
|
23006
|
-
*/
|
|
23007
|
-
printBackground?: boolean;
|
|
23008
|
-
/**
|
|
23009
|
-
* Scale of the webpage rendering. Defaults to 1.
|
|
23010
|
-
*/
|
|
23011
|
-
scale?: number;
|
|
23012
|
-
/**
|
|
23013
|
-
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
23014
|
-
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
23015
|
-
* `height` and `width` in inches. Defaults to `Letter`.
|
|
23016
|
-
*/
|
|
23017
|
-
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
23018
|
-
margins?: Margins;
|
|
23019
|
-
/**
|
|
23020
|
-
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
23021
|
-
* means print all pages.
|
|
23022
|
-
*/
|
|
23023
|
-
pageRanges?: string;
|
|
23024
|
-
/**
|
|
23025
|
-
* HTML template for the print header. Should be valid HTML markup with following
|
|
23026
|
-
* classes used to inject printing values into them: `date` (formatted print date),
|
|
23027
|
-
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
23028
|
-
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
23029
|
-
* class=title></span>` would generate span containing the title.
|
|
23030
|
-
*/
|
|
23031
|
-
headerTemplate?: string;
|
|
23032
|
-
/**
|
|
23033
|
-
* HTML template for the print footer. Should use the same format as the
|
|
23034
|
-
* `headerTemplate`.
|
|
23035
|
-
*/
|
|
23036
|
-
footerTemplate?: string;
|
|
23037
|
-
/**
|
|
23038
|
-
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
23039
|
-
* which case the content will be scaled to fit the paper size.
|
|
23040
|
-
*/
|
|
23041
|
-
preferCSSPageSize?: boolean;
|
|
23042
|
-
/**
|
|
23043
|
-
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
23044
|
-
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
23045
|
-
* WCAG standards.
|
|
23046
|
-
*
|
|
23047
|
-
* @experimental
|
|
23048
|
-
*/
|
|
23049
|
-
generateTaggedPDF?: boolean;
|
|
23050
|
-
/**
|
|
23051
|
-
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
23052
|
-
* to false.
|
|
23053
|
-
*
|
|
23054
|
-
* @experimental
|
|
23055
|
-
*/
|
|
23056
|
-
generateDocumentOutline?: boolean;
|
|
23057
|
-
}
|
|
23058
|
-
|
|
23059
23146
|
interface Privileges {
|
|
23060
23147
|
/**
|
|
23061
23148
|
* Default false.
|
|
@@ -23572,7 +23659,8 @@ declare namespace Electron {
|
|
|
23572
23659
|
/**
|
|
23573
23660
|
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
23574
23661
|
* loopback device will capture system audio, and is currently only supported on
|
|
23575
|
-
* Windows. If a WebFrameMain is specified, will capture audio from
|
|
23662
|
+
* Windows. If a WebFrameMain is specified, will capture audio from the
|
|
23663
|
+
* `webContents` that contains that frame.
|
|
23576
23664
|
*/
|
|
23577
23665
|
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
23578
23666
|
/**
|
|
@@ -23593,6 +23681,15 @@ declare namespace Electron {
|
|
|
23593
23681
|
* The total amount of memory not being used by applications or disk cache.
|
|
23594
23682
|
*/
|
|
23595
23683
|
free: number;
|
|
23684
|
+
/**
|
|
23685
|
+
* The kernel's estimate of the amount of memory available for allocation without
|
|
23686
|
+
* swapping, from `/proc/meminfo` `MemAvailable`. Use this as the memory pressure
|
|
23687
|
+
* signal on Linux; `free` there is `MemFree`, which excludes page cache and other
|
|
23688
|
+
* reclaimable memory.
|
|
23689
|
+
*
|
|
23690
|
+
* @platform linux
|
|
23691
|
+
*/
|
|
23692
|
+
available: number;
|
|
23596
23693
|
/**
|
|
23597
23694
|
* The amount of memory that currently has been paged out to storage. Includes
|
|
23598
23695
|
* memory for file caches, network buffers, and other system services.
|
|
@@ -24939,7 +25036,6 @@ declare namespace Electron {
|
|
|
24939
25036
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
24940
25037
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
24941
25038
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
24942
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
24943
25039
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
24944
25040
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
24945
25041
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -24979,7 +25075,6 @@ declare namespace Electron {
|
|
|
24979
25075
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
24980
25076
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
24981
25077
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
24982
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
24983
25078
|
type Privileges = Electron.Privileges;
|
|
24984
25079
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
24985
25080
|
type Provider = Electron.Provider;
|
|
@@ -25122,6 +25217,8 @@ declare namespace Electron {
|
|
|
25122
25217
|
type PreloadScript = Electron.PreloadScript;
|
|
25123
25218
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25124
25219
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25220
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25221
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25125
25222
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25126
25223
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25127
25224
|
type Product = Electron.Product;
|
|
@@ -25347,7 +25444,6 @@ declare namespace Electron {
|
|
|
25347
25444
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
25348
25445
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
25349
25446
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25350
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
25351
25447
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25352
25448
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25353
25449
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -25387,7 +25483,6 @@ declare namespace Electron {
|
|
|
25387
25483
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25388
25484
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25389
25485
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25390
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25391
25486
|
type Privileges = Electron.Privileges;
|
|
25392
25487
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25393
25488
|
type Provider = Electron.Provider;
|
|
@@ -25530,6 +25625,8 @@ declare namespace Electron {
|
|
|
25530
25625
|
type PreloadScript = Electron.PreloadScript;
|
|
25531
25626
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25532
25627
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25628
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25629
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25533
25630
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25534
25631
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25535
25632
|
type Product = Electron.Product;
|
|
@@ -25682,7 +25779,6 @@ declare namespace Electron {
|
|
|
25682
25779
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
25683
25780
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
25684
25781
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25685
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
25686
25782
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25687
25783
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25688
25784
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -25722,7 +25818,6 @@ declare namespace Electron {
|
|
|
25722
25818
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25723
25819
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25724
25820
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25725
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25726
25821
|
type Privileges = Electron.Privileges;
|
|
25727
25822
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25728
25823
|
type Provider = Electron.Provider;
|
|
@@ -25865,6 +25960,8 @@ declare namespace Electron {
|
|
|
25865
25960
|
type PreloadScript = Electron.PreloadScript;
|
|
25866
25961
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25867
25962
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25963
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25964
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25868
25965
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25869
25966
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25870
25967
|
type Product = Electron.Product;
|
|
@@ -26016,7 +26113,6 @@ declare namespace Electron {
|
|
|
26016
26113
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
26017
26114
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
26018
26115
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26019
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
26020
26116
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26021
26117
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
26022
26118
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -26056,7 +26152,6 @@ declare namespace Electron {
|
|
|
26056
26152
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26057
26153
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26058
26154
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26059
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26060
26155
|
type Privileges = Electron.Privileges;
|
|
26061
26156
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26062
26157
|
type Provider = Electron.Provider;
|
|
@@ -26199,6 +26294,8 @@ declare namespace Electron {
|
|
|
26199
26294
|
type PreloadScript = Electron.PreloadScript;
|
|
26200
26295
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26201
26296
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26297
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26298
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26202
26299
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26203
26300
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26204
26301
|
type Product = Electron.Product;
|
|
@@ -26445,7 +26542,6 @@ declare namespace Electron {
|
|
|
26445
26542
|
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
26446
26543
|
type LoadFileOptions = Electron.LoadFileOptions;
|
|
26447
26544
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26448
|
-
type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
|
|
26449
26545
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26450
26546
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
26451
26547
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
@@ -26485,7 +26581,6 @@ declare namespace Electron {
|
|
|
26485
26581
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26486
26582
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26487
26583
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26488
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26489
26584
|
type Privileges = Electron.Privileges;
|
|
26490
26585
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26491
26586
|
type Provider = Electron.Provider;
|
|
@@ -26628,6 +26723,8 @@ declare namespace Electron {
|
|
|
26628
26723
|
type PreloadScript = Electron.PreloadScript;
|
|
26629
26724
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26630
26725
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26726
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26727
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26631
26728
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26632
26729
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26633
26730
|
type Product = Electron.Product;
|
|
@@ -26840,6 +26937,10 @@ declare namespace NodeJS {
|
|
|
26840
26937
|
* to the system.
|
|
26841
26938
|
* * `free` Integer - The total amount of memory not being used by applications or
|
|
26842
26939
|
* disk cache.
|
|
26940
|
+
* * `available` Integer _Linux_ - The kernel's estimate of the amount of memory
|
|
26941
|
+
* available for allocation without swapping, from `/proc/meminfo` `MemAvailable`.
|
|
26942
|
+
* Use this as the memory pressure signal on Linux; `free` there is `MemFree`,
|
|
26943
|
+
* which excludes page cache and other reclaimable memory.
|
|
26843
26944
|
* * `fileBacked` Integer _macOS_ - The amount of memory that currently has been
|
|
26844
26945
|
* paged out to storage. Includes memory for file caches, network buffers, and
|
|
26845
26946
|
* other system services.
|
package/ow-electron-mix.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for ow-electron
|
|
1
|
+
// Type definitions for ow-electron - "mix" entry.
|
|
2
2
|
//
|
|
3
3
|
// Use this entry when your project ALSO has the `electron` package installed.
|
|
4
4
|
// Unlike ow-electron.d.ts, it does NOT bundle a copy of Electron's types - it
|
package/ow-electron-types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Shared Overwolf type declarations for ow-electron.
|
|
1
|
+
// Shared Overwolf type declarations for ow-electron 42.11.4
|
|
2
2
|
//
|
|
3
3
|
// This file *augments* the existing `electron` types instead of bundling a copy
|
|
4
4
|
// of them. It only adds members to the global `Electron` namespace and to the
|
|
@@ -37,10 +37,13 @@ declare global {
|
|
|
37
37
|
overwolf: OverwolfApi;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* The Overwolf APIs, exposed on Electron's `app` object as `app.overwolf`.
|
|
42
|
+
*/
|
|
40
43
|
interface OverwolfApi {
|
|
41
44
|
/**
|
|
42
45
|
* Disable sending any anonymous analytics,
|
|
43
|
-
* this should be
|
|
46
|
+
* this should be called before app.ready
|
|
44
47
|
*/
|
|
45
48
|
disableAnonymousAnalytics(): void;
|
|
46
49
|
|
|
@@ -50,7 +53,7 @@ declare global {
|
|
|
50
53
|
disableAdsOptimization(): void;
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
|
-
* Opt out from using first party
|
|
56
|
+
* Opt out from using first party data (email address) for ad targeting
|
|
54
57
|
*/
|
|
55
58
|
disableAdsFPD(): void;
|
|
56
59
|
|
|
@@ -81,15 +84,15 @@ declare global {
|
|
|
81
84
|
|
|
82
85
|
/**
|
|
83
86
|
* Generate a hashed email, to allow for better ad performance,
|
|
84
|
-
* this should be
|
|
87
|
+
* this should be called after app.ready
|
|
85
88
|
* NOTE: the email is not stored! only the hashed email.
|
|
86
89
|
*/
|
|
87
90
|
generateUserEmailHashes(email: string): EmailHashes;
|
|
88
91
|
|
|
89
92
|
/**
|
|
90
93
|
* Set the user email hashes (see generateUserEmailHashes),
|
|
91
|
-
* this should be
|
|
92
|
-
* See https://
|
|
94
|
+
* this should be called after app.ready
|
|
95
|
+
* See https://unifiedid.com/docs/getting-started/gs-normalization-encoding#email-address-normalization for more
|
|
93
96
|
* details how to normalize email before creating hash
|
|
94
97
|
*/
|
|
95
98
|
setUserEmailHashes(emailHashes?: EmailHashes): void;
|
|
@@ -105,7 +108,7 @@ declare global {
|
|
|
105
108
|
setExternalPaymentUserId(options: ExternalPaymentUserIdOptions): Promise<void>;
|
|
106
109
|
|
|
107
110
|
/**
|
|
108
|
-
* Client persistence phasing
|
|
111
|
+
* Client persistence phasing percent
|
|
109
112
|
*/
|
|
110
113
|
readonly phasePercent: number;
|
|
111
114
|
|
|
@@ -115,12 +118,12 @@ declare global {
|
|
|
115
118
|
readonly utmParams: any;
|
|
116
119
|
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* A unique identifier for the user machine.
|
|
119
122
|
*/
|
|
120
123
|
readonly muid: string;
|
|
121
124
|
|
|
122
125
|
/**
|
|
123
|
-
*
|
|
126
|
+
* The ow-electron uid (Overwolf App Id).
|
|
124
127
|
*/
|
|
125
128
|
readonly uid: string;
|
|
126
129
|
}
|
|
@@ -226,7 +229,7 @@ declare global {
|
|
|
226
229
|
*/
|
|
227
230
|
namespace packages {
|
|
228
231
|
/**
|
|
229
|
-
* A fake enum for all built-in
|
|
232
|
+
* A fake enum for all built-in package names
|
|
230
233
|
*/
|
|
231
234
|
type PackageName = 'gep' | 'overlay' | 'recorder' | 'utility' | 'crn' | string;
|
|
232
235
|
|
|
@@ -358,7 +361,7 @@ declare global {
|
|
|
358
361
|
/**
|
|
359
362
|
* Relaunch the Overwolf Package Manager. Call it to force all pending Overwolf Package updates.
|
|
360
363
|
*
|
|
361
|
-
*
|
|
364
|
+
* The Overwolf Package Manager will automatically relaunch itself if an update is available and no package is currently running.*
|
|
362
365
|
*/
|
|
363
366
|
relaunch(): void;
|
|
364
367
|
|
|
@@ -459,18 +462,20 @@ declare global {
|
|
|
459
462
|
getChannel(...packageNames: PackageName[]): Promise<CurrentChannelsResult>;
|
|
460
463
|
|
|
461
464
|
/**
|
|
462
|
-
*
|
|
463
|
-
|
|
464
|
-
* */
|
|
465
|
+
* The path to the application's logs folder.
|
|
466
|
+
*/
|
|
465
467
|
readonly logsFolderPath: string;
|
|
466
468
|
|
|
467
469
|
/**
|
|
468
|
-
*
|
|
470
|
+
* The ow-electron phase percentage (used by the package manager).
|
|
469
471
|
*/
|
|
470
472
|
readonly phasePercent: number;
|
|
471
473
|
}
|
|
472
474
|
}
|
|
473
475
|
|
|
476
|
+
/**
|
|
477
|
+
* The `<owadview>` HTML element, used to display Overwolf ads.
|
|
478
|
+
*/
|
|
474
479
|
interface AdviewTag extends HTMLElement {
|
|
475
480
|
/**
|
|
476
481
|
* A JSON string of custom tracking key-value pairs to report with the ad.
|
package/ow-electron.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron",
|
|
3
|
-
"version": "42.
|
|
4
|
-
"owElectronVersion": "42.
|
|
5
|
-
"electronVersion": "42.
|
|
3
|
+
"version": "42.11.4-beta.0",
|
|
4
|
+
"owElectronVersion": "42.11.4-beta.0",
|
|
5
|
+
"electronVersion": "42.11.4",
|
|
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",
|
|
@@ -44,5 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">= 22.12.0"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"tag": "42-x-y"
|
|
47
50
|
}
|
|
48
51
|
}
|