@overwolf/ow-electron 42.7.1-beta.9 → 42.11.2-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 CHANGED
@@ -7,7 +7,7 @@ We currently have these npm packages:
7
7
  few features to it
8
8
  - [@overwolf/ow-electron-builder](https://www.npmjs.com/package/@overwolf/ow-electron-builder) is a packaged based on electron-builder which
9
9
  supports building ow-electron
10
- - @overwolf/electron-is-overwolf - similar to
10
+ - [@overwolf/electron-is-overwolf](https://www.npmjs.com/package/@overwolf/electron-is-overwolf) - similar to
11
11
  [electron-is-dev](https://www.npmjs.com/package/electron-is-dev)
12
12
 
13
13
  There is no problem that both packages reside side-by-side with the original
package/checksums.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "electron-api.json": "7420cc8b42253caf92867b60cdee60f71c97379f7edcda8139f3292b688a2232",
3
- "electron.d.ts": "18bd4cd7afa712aa563edf1684ebf6f6a4f490ae013c7c68b80b37b1a90ad5bd",
4
- "ow-electron-v42.7.1-beta.9-darwin-arm64.zip": "4d16158b2b64d153435a3e19b58ec224dbb283dc85f4566eb0a5a421b145ec08",
5
- "ow-electron-v42.7.1-beta.9-darwin-x64.zip": "cbc7f9d1d30e465df08c368ae2464a3138804e6fb2fe6978c485b0b164c9b5af",
6
- "ow-electron-v42.7.1-beta.9-linux-arm64.zip": "3ce98204d2f2fdf3516e0c499d7a5623b5ccb02dbe3119555887da241cc3f097",
7
- "ow-electron-v42.7.1-beta.9-linux-armv7l.zip": "32d446a7a8f1f430c2030a1b2cd4220e52f95d24a607db28539b00ac6141c1d5",
8
- "ow-electron-v42.7.1-beta.9-linux-x64.zip": "77eb9083054cf601380e2ee5e0d51dde3463efb5ef7c4024e5372a538eca83fa",
9
- "ow-electron-v42.7.1-beta.9-win32-arm64.zip": "e8b8f99a4e4685cd1210d071124c963b768fe681d840076e9b2548cc2e0c23b3",
10
- "ow-electron-v42.7.1-beta.9-win32-ia32.zip": "ee27a1906b61f712d66d155017539592477eeb094eec1c2ff3b2b468106efa56",
11
- "ow-electron-v42.7.1-beta.9-win32-x64.zip": "1e01f9a6be1f56cf99083a486cba07c52bb7cc517e2f70271ddc508cb2911b46"
2
+ "electron-api.json": "a1b4fcd99c51ae55029ee63db770ba286a56b3fc96847d477dc07b10f6759b1a",
3
+ "electron.d.ts": "2cd42e2c8edaf078ead15fc52f743380d7817f4e26517730b655fea84e141c2a",
4
+ "ow-electron-v42.11.2-beta.0-darwin-arm64.zip": "d027cd7cf5f0c5e7c188ee8e5ab15af2bf11cab26f622ce3b28732813bc1a3bb",
5
+ "ow-electron-v42.11.2-beta.0-darwin-x64.zip": "78e2fcbdfdea51c683a44e6013ed39871b8e7ff6139eff898bb697a778ea098c",
6
+ "ow-electron-v42.11.2-beta.0-linux-arm64.zip": "d4119f66049fed022e8039fb3bb99a76e73162bd1ea2414d6b936fe32abadb98",
7
+ "ow-electron-v42.11.2-beta.0-linux-armv7l.zip": "8a6524d35e1a1cfc7b59fbfb9bc393085df2b7134337951eb67c2d310127b3af",
8
+ "ow-electron-v42.11.2-beta.0-linux-x64.zip": "6096a1d54f0e50e7766e88dccd6b21ea7e94da04a6bc3de33787efe69eb2c146",
9
+ "ow-electron-v42.11.2-beta.0-win32-arm64.zip": "2477fd310512cad10f899cb3b732612628afb5078b3b6c822784e8695dee5aad",
10
+ "ow-electron-v42.11.2-beta.0-win32-ia32.zip": "7551bc5d56f5dbf5ac7cd714f1043b2b79d8aba45a32ec8bc46b17e8956ffae1",
11
+ "ow-electron-v42.11.2-beta.0-win32-x64.zip": "9c0bd45d491ed689b6b103a721baf76bac6c3cfdfd2866ebe3723c1e4f2b72a3"
12
12
  }
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 42.7.1-beta.9
1
+ // Type definitions for Electron 42.11.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
@@ -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
@@ -17096,23 +17192,23 @@ declare namespace Electron {
17096
17192
  * The usage is the same with the `login` event of `app`.
17097
17193
  */
17098
17194
  on(event: 'login', listener: (event: Event,
17099
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17195
+ authenticationResponseDetails: AuthenticationResponseDetails,
17100
17196
  authInfo: AuthInfo,
17101
17197
  callback: (username?: string, password?: string) => void) => void): this;
17102
17198
  off(event: 'login', listener: (event: Event,
17103
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17199
+ authenticationResponseDetails: AuthenticationResponseDetails,
17104
17200
  authInfo: AuthInfo,
17105
17201
  callback: (username?: string, password?: string) => void) => void): this;
17106
17202
  once(event: 'login', listener: (event: Event,
17107
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17203
+ authenticationResponseDetails: AuthenticationResponseDetails,
17108
17204
  authInfo: AuthInfo,
17109
17205
  callback: (username?: string, password?: string) => void) => void): this;
17110
17206
  addListener(event: 'login', listener: (event: Event,
17111
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17207
+ authenticationResponseDetails: AuthenticationResponseDetails,
17112
17208
  authInfo: AuthInfo,
17113
17209
  callback: (username?: string, password?: string) => void) => void): this;
17114
17210
  removeListener(event: 'login', listener: (event: Event,
17115
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17211
+ authenticationResponseDetails: AuthenticationResponseDetails,
17116
17212
  authInfo: AuthInfo,
17117
17213
  callback: (username?: string, password?: string) => void) => void): this;
17118
17214
  /**
@@ -18879,6 +18975,22 @@ declare namespace Electron {
18879
18975
  * For example:
18880
18976
  */
18881
18977
  postMessage(channel: string, message: any, transfer?: MessagePortMain[]): void;
18978
+ /**
18979
+ * Resolves with the generated PDF data.
18980
+ *
18981
+ * Prints the frame's web page as PDF.
18982
+ *
18983
+ * Unlike `webContents.printToPDF`, this method prints only the contents of the
18984
+ * frame it is called on. This can be used to print an individual `<iframe>` from
18985
+ * the main process.
18986
+ *
18987
+ * The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
18988
+ *
18989
+ * An example of printing an iframe to PDF:
18990
+ *
18991
+ * See Page.printToPdf for more information.
18992
+ */
18993
+ printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
18882
18994
  /**
18883
18995
  * Whether the reload was initiated successfully. Only results in `false` when the
18884
18996
  * frame has no history.
@@ -20207,6 +20319,13 @@ declare namespace Electron {
20207
20319
  * another value by including an `=`, followed by the value. Special values `yes`
20208
20320
  * and `1` are interpreted as `true`, while `no` and `0` are interpreted as
20209
20321
  * `false`.
20322
+ *
20323
+ * Security-critical preferences cannot be used to make the guest less secure than
20324
+ * its embedder. When the embedder has any of `contextIsolation`, `javascript`,
20325
+ * `nodeIntegration`, `nodeIntegrationInWorker`, `sandbox`,
20326
+ * `nodeIntegrationInSubFrames` or `enableWebSQL` set to its more secure value, the
20327
+ * guest inherits that value and the corresponding `webpreferences` entry is
20328
+ * ignored.
20210
20329
  */
20211
20330
  webpreferences: string;
20212
20331
  }
@@ -20391,6 +20510,18 @@ declare namespace Electron {
20391
20510
  interface AuthenticationResponseDetails {
20392
20511
  url: string;
20393
20512
  pid: number;
20513
+ /**
20514
+ * Indicates whether the request is for a navigation.
20515
+ */
20516
+ isRequestForNavigation: boolean;
20517
+ /**
20518
+ * Indicates whether this is the first authentication attempt.
20519
+ */
20520
+ firstAuthAttempt: boolean;
20521
+ /**
20522
+ * The headers returned in the response.
20523
+ */
20524
+ responseHeaders?: Record<string, (string) | (string[])>;
20394
20525
  }
20395
20526
 
20396
20527
  interface AuthInfo {
@@ -21924,10 +22055,6 @@ declare namespace Electron {
21924
22055
  baseURLForDataURL?: string;
21925
22056
  }
21926
22057
 
21927
- interface LoginAuthenticationResponseDetails {
21928
- url: string;
21929
- }
21930
-
21931
22058
  interface LoginItemSettings {
21932
22059
  /**
21933
22060
  * `true` if the app is set to open at login.
@@ -22992,70 +23119,6 @@ declare namespace Electron {
22992
23119
  numSockets?: number;
22993
23120
  }
22994
23121
 
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
23122
  interface Privileges {
23060
23123
  /**
23061
23124
  * Default false.
@@ -23593,6 +23656,15 @@ declare namespace Electron {
23593
23656
  * The total amount of memory not being used by applications or disk cache.
23594
23657
  */
23595
23658
  free: number;
23659
+ /**
23660
+ * The kernel's estimate of the amount of memory available for allocation without
23661
+ * swapping, from `/proc/meminfo` `MemAvailable`. Use this as the memory pressure
23662
+ * signal on Linux; `free` there is `MemFree`, which excludes page cache and other
23663
+ * reclaimable memory.
23664
+ *
23665
+ * @platform linux
23666
+ */
23667
+ available: number;
23596
23668
  /**
23597
23669
  * The amount of memory that currently has been paged out to storage. Includes
23598
23670
  * memory for file caches, network buffers, and other system services.
@@ -24939,7 +25011,6 @@ declare namespace Electron {
24939
25011
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
24940
25012
  type LoadFileOptions = Electron.LoadFileOptions;
24941
25013
  type LoadURLOptions = Electron.LoadURLOptions;
24942
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
24943
25014
  type LoginItemSettings = Electron.LoginItemSettings;
24944
25015
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
24945
25016
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -24979,7 +25050,6 @@ declare namespace Electron {
24979
25050
  type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
24980
25051
  type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
24981
25052
  type PreconnectOptions = Electron.PreconnectOptions;
24982
- type PrintToPDFOptions = Electron.PrintToPDFOptions;
24983
25053
  type Privileges = Electron.Privileges;
24984
25054
  type ProgressBarOptions = Electron.ProgressBarOptions;
24985
25055
  type Provider = Electron.Provider;
@@ -25122,6 +25192,8 @@ declare namespace Electron {
25122
25192
  type PreloadScript = Electron.PreloadScript;
25123
25193
  type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
25124
25194
  type PrinterInfo = Electron.PrinterInfo;
25195
+ type PrintToPDFMargins = Electron.PrintToPDFMargins;
25196
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
25125
25197
  type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
25126
25198
  type ProcessMetric = Electron.ProcessMetric;
25127
25199
  type Product = Electron.Product;
@@ -25347,7 +25419,6 @@ declare namespace Electron {
25347
25419
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
25348
25420
  type LoadFileOptions = Electron.LoadFileOptions;
25349
25421
  type LoadURLOptions = Electron.LoadURLOptions;
25350
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
25351
25422
  type LoginItemSettings = Electron.LoginItemSettings;
25352
25423
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25353
25424
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -25387,7 +25458,6 @@ declare namespace Electron {
25387
25458
  type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
25388
25459
  type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
25389
25460
  type PreconnectOptions = Electron.PreconnectOptions;
25390
- type PrintToPDFOptions = Electron.PrintToPDFOptions;
25391
25461
  type Privileges = Electron.Privileges;
25392
25462
  type ProgressBarOptions = Electron.ProgressBarOptions;
25393
25463
  type Provider = Electron.Provider;
@@ -25530,6 +25600,8 @@ declare namespace Electron {
25530
25600
  type PreloadScript = Electron.PreloadScript;
25531
25601
  type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
25532
25602
  type PrinterInfo = Electron.PrinterInfo;
25603
+ type PrintToPDFMargins = Electron.PrintToPDFMargins;
25604
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
25533
25605
  type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
25534
25606
  type ProcessMetric = Electron.ProcessMetric;
25535
25607
  type Product = Electron.Product;
@@ -25682,7 +25754,6 @@ declare namespace Electron {
25682
25754
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
25683
25755
  type LoadFileOptions = Electron.LoadFileOptions;
25684
25756
  type LoadURLOptions = Electron.LoadURLOptions;
25685
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
25686
25757
  type LoginItemSettings = Electron.LoginItemSettings;
25687
25758
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25688
25759
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -25722,7 +25793,6 @@ declare namespace Electron {
25722
25793
  type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
25723
25794
  type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
25724
25795
  type PreconnectOptions = Electron.PreconnectOptions;
25725
- type PrintToPDFOptions = Electron.PrintToPDFOptions;
25726
25796
  type Privileges = Electron.Privileges;
25727
25797
  type ProgressBarOptions = Electron.ProgressBarOptions;
25728
25798
  type Provider = Electron.Provider;
@@ -25865,6 +25935,8 @@ declare namespace Electron {
25865
25935
  type PreloadScript = Electron.PreloadScript;
25866
25936
  type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
25867
25937
  type PrinterInfo = Electron.PrinterInfo;
25938
+ type PrintToPDFMargins = Electron.PrintToPDFMargins;
25939
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
25868
25940
  type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
25869
25941
  type ProcessMetric = Electron.ProcessMetric;
25870
25942
  type Product = Electron.Product;
@@ -26016,7 +26088,6 @@ declare namespace Electron {
26016
26088
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
26017
26089
  type LoadFileOptions = Electron.LoadFileOptions;
26018
26090
  type LoadURLOptions = Electron.LoadURLOptions;
26019
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
26020
26091
  type LoginItemSettings = Electron.LoginItemSettings;
26021
26092
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26022
26093
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -26056,7 +26127,6 @@ declare namespace Electron {
26056
26127
  type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
26057
26128
  type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
26058
26129
  type PreconnectOptions = Electron.PreconnectOptions;
26059
- type PrintToPDFOptions = Electron.PrintToPDFOptions;
26060
26130
  type Privileges = Electron.Privileges;
26061
26131
  type ProgressBarOptions = Electron.ProgressBarOptions;
26062
26132
  type Provider = Electron.Provider;
@@ -26199,6 +26269,8 @@ declare namespace Electron {
26199
26269
  type PreloadScript = Electron.PreloadScript;
26200
26270
  type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
26201
26271
  type PrinterInfo = Electron.PrinterInfo;
26272
+ type PrintToPDFMargins = Electron.PrintToPDFMargins;
26273
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
26202
26274
  type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
26203
26275
  type ProcessMetric = Electron.ProcessMetric;
26204
26276
  type Product = Electron.Product;
@@ -26445,7 +26517,6 @@ declare namespace Electron {
26445
26517
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
26446
26518
  type LoadFileOptions = Electron.LoadFileOptions;
26447
26519
  type LoadURLOptions = Electron.LoadURLOptions;
26448
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
26449
26520
  type LoginItemSettings = Electron.LoginItemSettings;
26450
26521
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26451
26522
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -26485,7 +26556,6 @@ declare namespace Electron {
26485
26556
  type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
26486
26557
  type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
26487
26558
  type PreconnectOptions = Electron.PreconnectOptions;
26488
- type PrintToPDFOptions = Electron.PrintToPDFOptions;
26489
26559
  type Privileges = Electron.Privileges;
26490
26560
  type ProgressBarOptions = Electron.ProgressBarOptions;
26491
26561
  type Provider = Electron.Provider;
@@ -26628,6 +26698,8 @@ declare namespace Electron {
26628
26698
  type PreloadScript = Electron.PreloadScript;
26629
26699
  type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
26630
26700
  type PrinterInfo = Electron.PrinterInfo;
26701
+ type PrintToPDFMargins = Electron.PrintToPDFMargins;
26702
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
26631
26703
  type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
26632
26704
  type ProcessMetric = Electron.ProcessMetric;
26633
26705
  type Product = Electron.Product;
@@ -26840,6 +26912,10 @@ declare namespace NodeJS {
26840
26912
  * to the system.
26841
26913
  * * `free` Integer - The total amount of memory not being used by applications or
26842
26914
  * disk cache.
26915
+ * * `available` Integer _Linux_ - The kernel's estimate of the amount of memory
26916
+ * available for allocation without swapping, from `/proc/meminfo` `MemAvailable`.
26917
+ * Use this as the memory pressure signal on Linux; `free` there is `MemFree`,
26918
+ * which excludes page cache and other reclaimable memory.
26843
26919
  * * `fileBacked` Integer _macOS_ - The amount of memory that currently has been
26844
26920
  * paged out to storage. Includes memory for file caches, network buffers, and
26845
26921
  * other system services.
@@ -1,4 +1,4 @@
1
- // Type definitions for ow-electron 42.7.1-beta.9 - "mix" entry.
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
@@ -1,4 +1,4 @@
1
- // Shared Overwolf type declarations for ow-electron.
1
+ // Shared Overwolf type declarations for ow-electron 42.11.2
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 call before app.ready
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 date (email address) for ad targeting
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 call after app.ready
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 call after app.ready
92
- * See https://www.chromium.org/developers/design-documents/accessibility for more
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;
@@ -99,11 +102,13 @@ declare global {
99
102
  * (e.g. Tebex) with this machine.
100
103
  * Call this once on every app launch, after app.ready.
101
104
  * Rejects if userId is missing. providerName defaults to 'tebex'.
105
+ * Rejects with 'ow-electron is not ready yet!' if called before app.ready.
106
+ * A failed analytics report does not reject.
102
107
  */
103
108
  setExternalPaymentUserId(options: ExternalPaymentUserIdOptions): Promise<void>;
104
109
 
105
110
  /**
106
- * Client persistence phasing precent
111
+ * Client persistence phasing percent
107
112
  */
108
113
  readonly phasePercent: number;
109
114
 
@@ -113,12 +118,12 @@ declare global {
113
118
  readonly utmParams: any;
114
119
 
115
120
  /**
116
- * @property returns a unique identifier for the user machine
121
+ * A unique identifier for the user machine.
117
122
  */
118
123
  readonly muid: string;
119
124
 
120
125
  /**
121
- * @property returns the ow-electron uid (Overwolf App Id)
126
+ * The ow-electron uid (Overwolf App Id).
122
127
  */
123
128
  readonly uid: string;
124
129
  }
@@ -224,7 +229,7 @@ declare global {
224
229
  */
225
230
  namespace packages {
226
231
  /**
227
- * A fake enum for all built-in packIge names
232
+ * A fake enum for all built-in package names
228
233
  */
229
234
  type PackageName = 'gep' | 'overlay' | 'recorder' | 'utility' | 'crn' | string;
230
235
 
@@ -356,7 +361,7 @@ declare global {
356
361
  /**
357
362
  * Relaunch the Overwolf Package Manager. Call it to force all pending Overwolf Package updates.
358
363
  *
359
- * *The Overwolf Package Manager will automatically relaunch itself if an update is available and no package is currently running.*
364
+ * The Overwolf Package Manager will automatically relaunch itself if an update is available and no package is currently running.*
360
365
  */
361
366
  relaunch(): void;
362
367
 
@@ -457,18 +462,20 @@ declare global {
457
462
  getChannel(...packageNames: PackageName[]): Promise<CurrentChannelsResult>;
458
463
 
459
464
  /**
460
- * @property returns the path to the application's logs folder.
461
- *
462
- * */
465
+ * The path to the application's logs folder.
466
+ */
463
467
  readonly logsFolderPath: string;
464
468
 
465
469
  /**
466
- * @property returns the ow-electron phase percentage (used by package manager).
470
+ * The ow-electron phase percentage (used by the package manager).
467
471
  */
468
472
  readonly phasePercent: number;
469
473
  }
470
474
  }
471
475
 
476
+ /**
477
+ * The `<owadview>` HTML element, used to display Overwolf ads.
478
+ */
472
479
  interface AdviewTag extends HTMLElement {
473
480
  /**
474
481
  * A JSON string of custom tracking key-value pairs to report with the ad.
package/ow-electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for ow-electron 42.7.1-beta.9
1
+ // Type definitions for ow-electron
2
2
  //
3
3
  // Default, self-contained entry: bundles Electron's own type definitions, for
4
4
  // projects that do NOT have the `electron` package installed.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "42.7.1-beta.9",
4
- "owElectronVersion": "42.7.1-beta.9",
5
- "electronVersion": "42.7.1",
3
+ "version": "42.11.2-beta.0",
4
+ "owElectronVersion": "42.11.2-beta.0",
5
+ "electronVersion": "42.11.2",
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",