@overwolf/ow-electron 44.5.1-beta.0 → 44.9.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/abi_version CHANGED
@@ -1 +1 @@
1
- 146
1
+ 149
package/checksums.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "electron-api.json": "f8bef058651c6d18077be03be98b61cc05511d9d1992de5286c6b1bbbe5bee2a",
3
- "electron.d.ts": "30b8a0ea2abbb4d1f38b6fdf789b78abf50d01a1773c743f9ed915b9e1d12080",
4
- "ow-electron-v44.5.1-beta.0-darwin-arm64.zip": "d72da3ffabde62ec526c3d1e72bfd836d952e226240757f4593987f7f4012386",
5
- "ow-electron-v44.5.1-beta.0-darwin-x64.zip": "603683b246f9e58ff1d4ee478769cbeb8116e25fc159e682b7714830e29f4b8d",
6
- "ow-electron-v44.5.1-beta.0-linux-arm64.zip": "7566ce597a279d74b3f07096c6c877323c8166f7199b029482858c695c8c8d12",
7
- "ow-electron-v44.5.1-beta.0-linux-x64.zip": "d569d1189dfa0c632f0121325f7aca9f877a9658eb8d4a5bcf208fb8ee8b9f09",
8
- "ow-electron-v44.5.1-beta.0-win32-arm64.zip": "6ba86d5d5cfdf4ce61d51e2d270eaca464a7f88c143d14c6d9b3f43bb0760e9e",
9
- "ow-electron-v44.5.1-beta.0-win32-x64.zip": "3139a0ba1c9d8dab02915b39ede76039b68825e2579413979b271b2bdc58f12d"
2
+ "electron-api.json": "47f60eb00dfceaf3672df6c45d08d5f466630fc4aeb11a44f6bff4f3685e1228",
3
+ "electron.d.ts": "91100bcedd4312b90e6e8acf7fe1c03a670b16e31e06ba74d287337419ec3b07",
4
+ "ow-electron-v44.9.0-darwin-arm64.zip": "d9d25ff6d9ad577c043eb84dd83b6fb44da8650bb8d716d390ccf6efb6637faf",
5
+ "ow-electron-v44.9.0-darwin-x64.zip": "bacc5a9ec0096d5e63e3838ac737d4fc9369c75cb824814997aebbd0929edaf4",
6
+ "ow-electron-v44.9.0-linux-arm64.zip": "71a25f13646d287d70a78a435d17191d0b96ab2007fc0c09a0ebf03d676728c6",
7
+ "ow-electron-v44.9.0-linux-x64.zip": "aa3d2f7dd1df351b4744d22c6c8dd35ad5a4f133181db626e67d8f432a2a753d",
8
+ "ow-electron-v44.9.0-win32-arm64.zip": "4156e90faf61e2534f1c1cb10c8f05d38d199db8f788cc0c19f671a6ef881dce",
9
+ "ow-electron-v44.9.0-win32-x64.zip": "2c53bb73f53d2e216ee28800e35215618e3f2baea370679961e14bff13d70313"
10
10
  }
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.5.1
1
+ // Type definitions for Electron 44.9.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
@@ -187,6 +187,96 @@ declare namespace Electron {
187
187
  * Contains app-specific state stored by the activity.
188
188
  */
189
189
  userInfo: unknown) => void): this;
190
+ /**
191
+ * Emitted when an app shim connects to your app. Shims can only connect after
192
+ * `app.startAppShimServer()` has been called.
193
+ *
194
+ * Any process running as the same user can connect. Verify the shim before
195
+ * creating windows in it, for example with `shim.satisfiesCodeRequirement()`, and
196
+ * call `shim.quit()` to reject a shim that you do not trust.
197
+ *
198
+ * @experimental
199
+ * @platform darwin
200
+ */
201
+ on(event: 'app-shim-connected', listener: (event: Event,
202
+ shim: AppShimHost) => void): this;
203
+ /**
204
+ * @experimental
205
+ * @platform darwin
206
+ */
207
+ off(event: 'app-shim-connected', listener: (event: Event,
208
+ shim: AppShimHost) => void): this;
209
+ /**
210
+ * @experimental
211
+ * @platform darwin
212
+ */
213
+ once(event: 'app-shim-connected', listener: (event: Event,
214
+ shim: AppShimHost) => void): this;
215
+ /**
216
+ * @experimental
217
+ * @platform darwin
218
+ */
219
+ addListener(event: 'app-shim-connected', listener: (event: Event,
220
+ shim: AppShimHost) => void): this;
221
+ /**
222
+ * @experimental
223
+ * @platform darwin
224
+ */
225
+ removeListener(event: 'app-shim-connected', listener: (event: Event,
226
+ shim: AppShimHost) => void): this;
227
+ /**
228
+ * Emitted when an app shim was launched but could not connect because your app's
229
+ * bundle has been replaced by a different version since your app started. A shim
230
+ * loads the version of Electron that is on disk, which cannot communicate with the
231
+ * version that is still running.
232
+ *
233
+ * The shim quits without showing any UI, so use this event to tell the user what
234
+ * happened. Shims can connect again after your app restarts.
235
+ *
236
+ * @experimental
237
+ * @platform darwin
238
+ */
239
+ on(event: 'app-shim-version-mismatch', listener: (event: Event,
240
+ /**
241
+ * The path of the app shim's bundle.
242
+ */
243
+ bundlePath: string) => void): this;
244
+ /**
245
+ * @experimental
246
+ * @platform darwin
247
+ */
248
+ off(event: 'app-shim-version-mismatch', listener: (event: Event,
249
+ /**
250
+ * The path of the app shim's bundle.
251
+ */
252
+ bundlePath: string) => void): this;
253
+ /**
254
+ * @experimental
255
+ * @platform darwin
256
+ */
257
+ once(event: 'app-shim-version-mismatch', listener: (event: Event,
258
+ /**
259
+ * The path of the app shim's bundle.
260
+ */
261
+ bundlePath: string) => void): this;
262
+ /**
263
+ * @experimental
264
+ * @platform darwin
265
+ */
266
+ addListener(event: 'app-shim-version-mismatch', listener: (event: Event,
267
+ /**
268
+ * The path of the app shim's bundle.
269
+ */
270
+ bundlePath: string) => void): this;
271
+ /**
272
+ * @experimental
273
+ * @platform darwin
274
+ */
275
+ removeListener(event: 'app-shim-version-mismatch', listener: (event: Event,
276
+ /**
277
+ * The path of the app shim's bundle.
278
+ */
279
+ bundlePath: string) => void): this;
190
280
  /**
191
281
  * Emitted before the application starts closing its windows. Calling
192
282
  * `event.preventDefault()` will prevent the default behavior, which is terminating
@@ -1905,6 +1995,28 @@ declare namespace Electron {
1905
1995
  * @platform mas
1906
1996
  */
1907
1997
  startAccessingSecurityScopedResource(bookmarkData: string): Function;
1998
+ /**
1999
+ * Starts accepting connections from app shims. An `app-shim-connected` event is
2000
+ * emitted for each shim that connects.
2001
+ *
2002
+ * Throws if the server cannot be started, for example because another copy of your
2003
+ * app has already started a server with the same `name`.
2004
+ *
2005
+ * This method can only be called after the app is ready. It is not available in
2006
+ * Mac App Store builds.
2007
+ *
2008
+ * @experimental
2009
+ * @platform darwin
2010
+ */
2011
+ startAppShimServer(options?: StartAppShimServerOptions): void;
2012
+ /**
2013
+ * Stops accepting connections from app shims. Shims that have already connected
2014
+ * stay connected.
2015
+ *
2016
+ * @experimental
2017
+ * @platform darwin
2018
+ */
2019
+ stopAppShimServer(): void;
1908
2020
  /**
1909
2021
  * Updates the current activity if its type matches `type`, merging the entries
1910
2022
  * from `userInfo` into its current `userInfo` dictionary.
@@ -2012,6 +2124,230 @@ declare namespace Electron {
2012
2124
  userAgentFallback: string;
2013
2125
  }
2014
2126
 
2127
+ class AppShimHost extends NodeEventEmitter {
2128
+
2129
+ // Docs: https://electronjs.org/docs/api/app-shim-host
2130
+
2131
+ /**
2132
+ * Emitted when the user clicks the shim's Dock icon, or launches the shim again
2133
+ * while it is already running.
2134
+ *
2135
+ * @experimental
2136
+ */
2137
+ on(event: 'activate', listener: (event: Event,
2138
+ hasVisibleWindows: boolean) => void): this;
2139
+ /**
2140
+ * @experimental
2141
+ */
2142
+ off(event: 'activate', listener: (event: Event,
2143
+ hasVisibleWindows: boolean) => void): this;
2144
+ /**
2145
+ * @experimental
2146
+ */
2147
+ once(event: 'activate', listener: (event: Event,
2148
+ hasVisibleWindows: boolean) => void): this;
2149
+ /**
2150
+ * @experimental
2151
+ */
2152
+ addListener(event: 'activate', listener: (event: Event,
2153
+ hasVisibleWindows: boolean) => void): this;
2154
+ /**
2155
+ * @experimental
2156
+ */
2157
+ removeListener(event: 'activate', listener: (event: Event,
2158
+ hasVisibleWindows: boolean) => void): this;
2159
+ /**
2160
+ * Emitted when the shim's process has exited or its connection was lost. All
2161
+ * windows that were created in the shim have already been closed.
2162
+ *
2163
+ * @experimental
2164
+ */
2165
+ on(event: 'disconnected', listener: (event: Event) => void): this;
2166
+ /**
2167
+ * @experimental
2168
+ */
2169
+ off(event: 'disconnected', listener: (event: Event) => void): this;
2170
+ /**
2171
+ * @experimental
2172
+ */
2173
+ once(event: 'disconnected', listener: (event: Event) => void): this;
2174
+ /**
2175
+ * @experimental
2176
+ */
2177
+ addListener(event: 'disconnected', listener: (event: Event) => void): this;
2178
+ /**
2179
+ * @experimental
2180
+ */
2181
+ removeListener(event: 'disconnected', listener: (event: Event) => void): this;
2182
+ /**
2183
+ * Emitted when the user opens a file with the shim.
2184
+ *
2185
+ * @experimental
2186
+ */
2187
+ on(event: 'open-file', listener: (event: Event,
2188
+ path: string) => void): this;
2189
+ /**
2190
+ * @experimental
2191
+ */
2192
+ off(event: 'open-file', listener: (event: Event,
2193
+ path: string) => void): this;
2194
+ /**
2195
+ * @experimental
2196
+ */
2197
+ once(event: 'open-file', listener: (event: Event,
2198
+ path: string) => void): this;
2199
+ /**
2200
+ * @experimental
2201
+ */
2202
+ addListener(event: 'open-file', listener: (event: Event,
2203
+ path: string) => void): this;
2204
+ /**
2205
+ * @experimental
2206
+ */
2207
+ removeListener(event: 'open-file', listener: (event: Event,
2208
+ path: string) => void): this;
2209
+ /**
2210
+ * Emitted when the user opens a URL with the shim.
2211
+ *
2212
+ * @experimental
2213
+ */
2214
+ on(event: 'open-url', listener: (event: Event,
2215
+ url: string) => void): this;
2216
+ /**
2217
+ * @experimental
2218
+ */
2219
+ off(event: 'open-url', listener: (event: Event,
2220
+ url: string) => void): this;
2221
+ /**
2222
+ * @experimental
2223
+ */
2224
+ once(event: 'open-url', listener: (event: Event,
2225
+ url: string) => void): this;
2226
+ /**
2227
+ * @experimental
2228
+ */
2229
+ addListener(event: 'open-url', listener: (event: Event,
2230
+ url: string) => void): this;
2231
+ /**
2232
+ * @experimental
2233
+ */
2234
+ removeListener(event: 'open-url', listener: (event: Event,
2235
+ url: string) => void): this;
2236
+ /**
2237
+ * Emitted when the shim is asked to quit: by the user, for example with Cmd+Q or
2238
+ * from its Dock menu, or by macOS at logout.
2239
+ *
2240
+ * By default, the shim quits and its windows are closed without emitting their
2241
+ * `close` events. To keep the shim running, call `event.preventDefault()`. You can
2242
+ * then close its windows yourself and call `shim.quit()` when you are done.
2243
+ *
2244
+ * `event.preventDefault()` must be called synchronously in the listener. If your
2245
+ * app's main process is unresponsive for more than five seconds, the shim quits
2246
+ * without waiting for it.
2247
+ *
2248
+ * @experimental
2249
+ */
2250
+ on(event: 'quit-requested', listener: (event: Event) => void): this;
2251
+ /**
2252
+ * @experimental
2253
+ */
2254
+ off(event: 'quit-requested', listener: (event: Event) => void): this;
2255
+ /**
2256
+ * @experimental
2257
+ */
2258
+ once(event: 'quit-requested', listener: (event: Event) => void): this;
2259
+ /**
2260
+ * @experimental
2261
+ */
2262
+ addListener(event: 'quit-requested', listener: (event: Event) => void): this;
2263
+ /**
2264
+ * @experimental
2265
+ */
2266
+ removeListener(event: 'quit-requested', listener: (event: Event) => void): this;
2267
+ /**
2268
+ * Bounces the shim's Dock icon, in the same way that `dock.bounce()` bounces your
2269
+ * app's.
2270
+ *
2271
+ * @experimental
2272
+ */
2273
+ bounce(type?: 'critical' | 'informational'): void;
2274
+ /**
2275
+ * Cancels a bounce started by `shim.bounce()`.
2276
+ *
2277
+ * @experimental
2278
+ */
2279
+ cancelBounce(): void;
2280
+ /**
2281
+ * Whether the shim's process is still connected.
2282
+ *
2283
+ * @experimental
2284
+ */
2285
+ isConnected(): boolean;
2286
+ /**
2287
+ * Quits the shim's process and closes its windows. The windows do not emit `close`
2288
+ * events. They emit `closed` shortly after this method returns.
2289
+ * `shim.isConnected()` returns `false` as soon as this method returns.
2290
+ *
2291
+ * @experimental
2292
+ */
2293
+ quit(): void;
2294
+ /**
2295
+ * Whether the code signature of the shim's process satisfies `requirement`. The
2296
+ * check is performed on the running process that connected, not on the bundle at
2297
+ * `shim.bundlePath`.
2298
+ *
2299
+ * Throws if `requirement` cannot be parsed.
2300
+ *
2301
+ * @experimental
2302
+ */
2303
+ satisfiesCodeRequirement(requirement: string): boolean;
2304
+ /**
2305
+ * Sets the menu bar that is shown while the shim is the active app. This is the
2306
+ * shim's equivalent of `Menu.setApplicationMenu()`. Passing `null` restores the
2307
+ * shim's minimal default menu.
2308
+ *
2309
+ * The `click` handlers of the menu's items and the menu's `menu-will-show` event
2310
+ * run in your app's main process. Items with a `role` act on the shim instead of
2311
+ * your app: for example, the `quit` role quits the shim. The default labels of the
2312
+ * `about`, `hide` and `quit` roles use the shim's name.
2313
+ *
2314
+ * The shim displays the menu's items as they were when this method was called.
2315
+ * Later changes to an item's `label`, `enabled`, `checked` or `visible` properties
2316
+ * are applied when the shim becomes the active app, when one of its menus is
2317
+ * opened, and after an item is clicked.
2318
+ *
2319
+ * @experimental
2320
+ */
2321
+ setApplicationMenu(menu: (Menu) | (null)): void;
2322
+ /**
2323
+ * Sets the text displayed on the shim's Dock icon. An empty string clears it.
2324
+ *
2325
+ * @experimental
2326
+ */
2327
+ setBadge(text: string): void;
2328
+ /**
2329
+ * A `string` representing the bundle identifier from that bundle's `Info.plist`.
2330
+ * This value is not verified, so do not use it to decide whether to trust the
2331
+ * shim. Use `shim.satisfiesCodeRequirement()` instead.
2332
+ *
2333
+ * @experimental
2334
+ */
2335
+ readonly bundleId: string;
2336
+ /**
2337
+ * A `string` representing the path of the app bundle that the shim's process was
2338
+ * launched from.
2339
+ *
2340
+ * @experimental
2341
+ */
2342
+ readonly bundlePath: string;
2343
+ /**
2344
+ * A `number` representing the process ID of the shim.
2345
+ *
2346
+ * @experimental
2347
+ */
2348
+ readonly pid: number;
2349
+ }
2350
+
2015
2351
  interface AutoUpdater extends NodeJS.EventEmitter {
2016
2352
 
2017
2353
  // Docs: https://electronjs.org/docs/api/auto-updater
@@ -3855,6 +4191,15 @@ declare namespace Electron {
3855
4191
  * `false`. Not supported on Wayland (Linux).
3856
4192
  */
3857
4193
  alwaysOnTop?: boolean;
4194
+ /**
4195
+ * Creates the native window in the process of this app shim, so that it belongs to
4196
+ * the shim's Dock icon and not to your app's. See AppShimHost for what affordances
4197
+ * are granted to the window.
4198
+ *
4199
+ * @experimental
4200
+ * @platform darwin
4201
+ */
4202
+ appShim?: AppShimHost;
3858
4203
  /**
3859
4204
  * Auto hide the menu bar unless the `Alt` key is pressed. Default is `false`.
3860
4205
  *
@@ -9628,6 +9973,10 @@ declare namespace Electron {
9628
9973
  * Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu`
9629
9974
  * will be set as each window's top menu.
9630
9975
  *
9976
+ * On Linux, the menu bar uses GTK theme colors when GTK is available. If GTK
9977
+ * cannot initialize, it uses Chromium's built-in light or dark menu colors,
9978
+ * following `nativeTheme.shouldUseDarkColors`.
9979
+ *
9631
9980
  * Also on Windows and Linux, you can use a `&` in the top-level item name to
9632
9981
  * indicate which letter should get a generated accelerator. For example, using
9633
9982
  * `&File` for the file menu would result in a generated `Alt-F` accelerator that
@@ -10434,9 +10783,6 @@ declare namespace Electron {
10434
10783
 
10435
10784
  // Docs: https://electronjs.org/docs/api/notification
10436
10785
 
10437
- /**
10438
- * @platform darwin,win32
10439
- */
10440
10786
  on(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10441
10787
  /**
10442
10788
  * @deprecated
@@ -10447,9 +10793,6 @@ declare namespace Electron {
10447
10793
  * @platform win32
10448
10794
  */
10449
10795
  selectionIndex: number) => void): this;
10450
- /**
10451
- * @platform darwin,win32
10452
- */
10453
10796
  off(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10454
10797
  /**
10455
10798
  * @deprecated
@@ -10460,9 +10803,6 @@ declare namespace Electron {
10460
10803
  * @platform win32
10461
10804
  */
10462
10805
  selectionIndex: number) => void): this;
10463
- /**
10464
- * @platform darwin,win32
10465
- */
10466
10806
  once(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10467
10807
  /**
10468
10808
  * @deprecated
@@ -10473,9 +10813,6 @@ declare namespace Electron {
10473
10813
  * @platform win32
10474
10814
  */
10475
10815
  selectionIndex: number) => void): this;
10476
- /**
10477
- * @platform darwin,win32
10478
- */
10479
10816
  addListener(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10480
10817
  /**
10481
10818
  * @deprecated
@@ -10486,9 +10823,6 @@ declare namespace Electron {
10486
10823
  * @platform win32
10487
10824
  */
10488
10825
  selectionIndex: number) => void): this;
10489
- /**
10490
- * @platform darwin,win32
10491
- */
10492
10826
  removeListener(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10493
10827
  /**
10494
10828
  * @deprecated
@@ -11621,6 +11955,12 @@ declare namespace Electron {
11621
11955
 
11622
11956
  // Docs: https://electronjs.org/docs/api/protocol
11623
11957
 
11958
+ /**
11959
+ * The source registered for `scheme` with `protocol.registerSource`, or `null`.
11960
+ *
11961
+ * @experimental
11962
+ */
11963
+ getSource(scheme: string): (ProtocolSource) | (null);
11624
11964
  /**
11625
11965
  * Register a protocol handler for `scheme`. Requests made to URLs with this scheme
11626
11966
  * will delegate to this handler to determine what response should be sent.
@@ -11684,7 +12024,7 @@ declare namespace Electron {
11684
12024
  */
11685
12025
  interceptStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
11686
12026
  /**
11687
- * Whether `scheme` is already handled.
12027
+ * Whether `scheme` already has a handler or a source.
11688
12028
  */
11689
12029
  isProtocolHandled(scheme: string): boolean;
11690
12030
  /**
@@ -11779,6 +12119,28 @@ declare namespace Electron {
11779
12119
  * correctly expect streaming responses.
11780
12120
  */
11781
12121
  registerSchemesAsPrivileged(customSchemes: CustomScheme[]): void;
12122
+ /**
12123
+ * Serves `scheme` from directories on disk without a JavaScript handler. Each
12124
+ * request is matched against `routes` (a route with a `host` wins over one
12125
+ * without, then the longest `path` prefix wins), the rest of the URL's path is
12126
+ * resolved inside that route's `root`, and the file is streamed to the requester
12127
+ * the way `file:` URLs are, including from `asar` archives, with `Content-Type`
12128
+ * taken from the file extension. A path that resolves outside `root`, a missing
12129
+ * file, a request that matches no route, or a method other than `GET`/`HEAD` fails
12130
+ * with `net::ERR_FILE_NOT_FOUND`. A URL whose path ends in `/` serves the route's
12131
+ * `index` file.
12132
+ *
12133
+ * Use this instead of `protocol.handle` when a scheme only serves an app's own
12134
+ * bundled files: no request touches the main thread, so pages and their
12135
+ * subresources load at the same speed whether or not the main process is busy.
12136
+ *
12137
+ * A scheme has either a handler or a source; `protocol.unhandle` removes either,
12138
+ * and `protocol.isProtocolHandled` reports both. `webRequest` listeners apply to
12139
+ * these requests as to any other.
12140
+ *
12141
+ * @experimental
12142
+ */
12143
+ registerSource(scheme: string, source: ProtocolSource): void;
11782
12144
  /**
11783
12145
  * Whether the protocol was successfully registered
11784
12146
  *
@@ -11809,7 +12171,8 @@ declare namespace Electron {
11809
12171
  */
11810
12172
  registerStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
11811
12173
  /**
11812
- * Removes a protocol handler registered with `protocol.handle`.
12174
+ * Removes a protocol handler registered with `protocol.handle` or a source
12175
+ * registered with `protocol.registerSource`.
11813
12176
  */
11814
12177
  unhandle(scheme: string): void;
11815
12178
  /**
@@ -11926,6 +12289,32 @@ declare namespace Electron {
11926
12289
  data: (string) | (Buffer);
11927
12290
  }
11928
12291
 
12292
+ interface ProtocolRoute {
12293
+
12294
+ // Docs: https://electronjs.org/docs/api/structures/protocol-route
12295
+
12296
+ /**
12297
+ * Which URLs on the scheme this route serves. A route without `match` serves every
12298
+ * URL.
12299
+ */
12300
+ match?: Match;
12301
+ /**
12302
+ * What the matched URLs are served from.
12303
+ */
12304
+ source: Source;
12305
+ }
12306
+
12307
+ interface ProtocolSource {
12308
+
12309
+ // Docs: https://electronjs.org/docs/api/structures/protocol-source
12310
+
12311
+ /**
12312
+ * How URLs on the scheme map to directories on disk; see
12313
+ * `protocol.registerSource`.
12314
+ */
12315
+ routes: ProtocolRoute[];
12316
+ }
12317
+
11929
12318
  interface ProxyConfig {
11930
12319
 
11931
12320
  // Docs: https://electronjs.org/docs/api/structures/proxy-config
@@ -13527,7 +13916,7 @@ declare namespace Electron {
13527
13916
  *
13528
13917
  * Passing `null` instead of a function resets the handler to its default state.
13529
13918
  */
13530
- setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: Streams) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
13919
+ setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: (Streams) | (null)) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
13531
13920
  /**
13532
13921
  * Sets download saving directory. By default, the download directory will be the
13533
13922
  * `Downloads` under the respective app folder.
@@ -16011,26 +16400,34 @@ declare namespace Electron {
16011
16400
  /**
16012
16401
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16013
16402
  * challenge, if the process was created with both
16014
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16015
- * `callback` should be called with credentials to respond to the challenge.
16016
- * Calling `callback` without arguments will cancel the request.
16403
+ * `respondToAuthRequestsFromMainProcess: true` and a `session` option.
16404
+ *
16405
+ * The default behavior is to cancel the authentication. To override this you
16406
+ * should prevent the default behavior with `event.preventDefault()` and call
16407
+ * `callback(username, password)` with the credentials. Calling `callback` without
16408
+ * arguments will cancel the request.
16017
16409
  *
16018
16410
  * This behaves the same as the `login` event on `app` but is scoped to the
16019
16411
  * individual utility process instance.
16020
16412
  */
16021
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16413
+ on(event: 'login', listener: (event: Event,
16414
+ authenticationResponseDetails: AuthenticationResponseDetails,
16022
16415
  authInfo: AuthInfo,
16023
16416
  callback: (username?: string, password?: string) => void) => void): this;
16024
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16417
+ off(event: 'login', listener: (event: Event,
16418
+ authenticationResponseDetails: AuthenticationResponseDetails,
16025
16419
  authInfo: AuthInfo,
16026
16420
  callback: (username?: string, password?: string) => void) => void): this;
16027
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16421
+ once(event: 'login', listener: (event: Event,
16422
+ authenticationResponseDetails: AuthenticationResponseDetails,
16028
16423
  authInfo: AuthInfo,
16029
16424
  callback: (username?: string, password?: string) => void) => void): this;
16030
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16425
+ addListener(event: 'login', listener: (event: Event,
16426
+ authenticationResponseDetails: AuthenticationResponseDetails,
16031
16427
  authInfo: AuthInfo,
16032
16428
  callback: (username?: string, password?: string) => void) => void): this;
16033
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16429
+ removeListener(event: 'login', listener: (event: Event,
16430
+ authenticationResponseDetails: AuthenticationResponseDetails,
16034
16431
  authInfo: AuthInfo,
16035
16432
  callback: (username?: string, password?: string) => void) => void): this;
16036
16433
  /**
@@ -16286,6 +16683,9 @@ declare namespace Electron {
16286
16683
  mouse: MouseInputEvent) => void): this;
16287
16684
  /**
16288
16685
  * Emitted when the `WebContents` loses focus.
16686
+ *
16687
+ * The `blur` event is also emitted when switching between windows or apps for the
16688
+ * `WebContents` that has focus within its window.
16289
16689
  */
16290
16690
  on(event: 'blur', listener: () => void): this;
16291
16691
  off(event: 'blur', listener: () => void): this;
@@ -17299,14 +17699,8 @@ declare namespace Electron {
17299
17699
  /**
17300
17700
  * Emitted when the `WebContents` gains focus.
17301
17701
  *
17302
- * Note that on macOS, having focus means the `WebContents` is the first responder
17303
- * of window, so switching focus between windows would not trigger the `focus` and
17304
- * `blur` events of `WebContents`, as the first responder of each window is not
17305
- * changed.
17306
- *
17307
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17308
- * focus change between different `WebContents` and `BrowserView` in the same
17309
- * window.
17702
+ * The `focus` event is also emitted when switching between windows or apps for the
17703
+ * `WebContents` that has focus within its window.
17310
17704
  */
17311
17705
  on(event: 'focus', listener: () => void): this;
17312
17706
  off(event: 'focus', listener: () => void): this;
@@ -21223,10 +21617,10 @@ declare namespace Electron {
21223
21617
 
21224
21618
  interface Config {
21225
21619
  /**
21226
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21227
- * when connecting to remote servers. Defaults to `tls1`.
21620
+ * Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
21621
+ * remote servers. Defaults to `tls1.2`.
21228
21622
  */
21229
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21623
+ minVersion?: ('tls1.2' | 'tls1.3');
21230
21624
  /**
21231
21625
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21232
21626
  * remote servers. Defaults to `tls1.3`.
@@ -22499,6 +22893,20 @@ declare namespace Electron {
22499
22893
  args?: string[];
22500
22894
  }
22501
22895
 
22896
+ interface Match {
22897
+ /**
22898
+ * Host name to match, for standard schemes. It is compared with the URL's host as
22899
+ * a whole, case-insensitively; there is no wildcard or subdomain matching. Omit to
22900
+ * match any host.
22901
+ */
22902
+ host?: string;
22903
+ /**
22904
+ * Path prefix to match, starting with `/` and written as it appears in a URL
22905
+ * (percent-encoded). Defaults to `/`.
22906
+ */
22907
+ path?: string;
22908
+ }
22909
+
22502
22910
  interface MenuItemConstructorOptions {
22503
22911
  /**
22504
22912
  * Will be called with `click(menuItem, window, event)` when the menu item is
@@ -22940,8 +23348,6 @@ declare namespace Electron {
22940
23348
  /**
22941
23349
  * Actions to add to the notification. Please read the available actions and
22942
23350
  * limitations in the `NotificationAction` documentation.
22943
- *
22944
- * @platform darwin,win32
22945
23351
  */
22946
23352
  actions?: NotificationAction[];
22947
23353
  /**
@@ -23998,6 +24404,30 @@ declare namespace Electron {
23998
24404
  topFrameSite: string;
23999
24405
  }
24000
24406
 
24407
+ interface Source {
24408
+ /**
24409
+ * Must be `directory`.
24410
+ */
24411
+ type: string;
24412
+ /**
24413
+ * Absolute path of the directory. The part of the URL's path after `match.path` is
24414
+ * resolved inside it; paths that would leave it are not served. May point into an
24415
+ * `asar` archive.
24416
+ */
24417
+ root: string;
24418
+ /**
24419
+ * File served for a URL whose path ends in `/`. Defaults to `index.html`; an empty
24420
+ * string disables it.
24421
+ */
24422
+ index?: string;
24423
+ /**
24424
+ * Response headers added to every file served by this route. Headers computed by
24425
+ * the file loader, including `Content-Type`, `Content-Length`, and
24426
+ * `Content-Range`, will override these supplied values.
24427
+ */
24428
+ headers?: Record<string, string>;
24429
+ }
24430
+
24001
24431
  interface SourcesOptions {
24002
24432
  /**
24003
24433
  * An array of strings that lists the types of desktop sources to be captured,
@@ -24019,6 +24449,16 @@ declare namespace Electron {
24019
24449
  fetchWindowIcons?: boolean;
24020
24450
  }
24021
24451
 
24452
+ interface StartAppShimServerOptions {
24453
+ /**
24454
+ * A name for this server, which lets several running copies of your app each have
24455
+ * their own. It can only contain letters, digits, `.`, `-` and `_`, and must match
24456
+ * the `ElectronAppShimServerName` of the shims that connect to it. Default is
24457
+ * `appshim`.
24458
+ */
24459
+ name?: string;
24460
+ }
24461
+
24022
24462
  interface StartLoggingOptions {
24023
24463
  /**
24024
24464
  * What kinds of data should be captured. By default, only metadata about requests
@@ -25435,6 +25875,7 @@ declare namespace Electron {
25435
25875
  type LoadURLOptions = Electron.LoadURLOptions;
25436
25876
  type LoginItemSettings = Electron.LoginItemSettings;
25437
25877
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25878
+ type Match = Electron.Match;
25438
25879
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
25439
25880
  type MessageBoxOptions = Electron.MessageBoxOptions;
25440
25881
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -25498,7 +25939,9 @@ declare namespace Electron {
25498
25939
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
25499
25940
  type Settings = Electron.Settings;
25500
25941
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
25942
+ type Source = Electron.Source;
25501
25943
  type SourcesOptions = Electron.SourcesOptions;
25944
+ type StartAppShimServerOptions = Electron.StartAppShimServerOptions;
25502
25945
  type StartLoggingOptions = Electron.StartLoggingOptions;
25503
25946
  type StartTask = Electron.StartTask;
25504
25947
  type Streams = Electron.Streams;
@@ -25625,6 +26068,8 @@ declare namespace Electron {
25625
26068
  type ProtocolRequest = Electron.ProtocolRequest;
25626
26069
  type ProtocolResponse = Electron.ProtocolResponse;
25627
26070
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26071
+ type ProtocolRoute = Electron.ProtocolRoute;
26072
+ type ProtocolSource = Electron.ProtocolSource;
25628
26073
  type ProxyConfig = Electron.ProxyConfig;
25629
26074
  type Rectangle = Electron.Rectangle;
25630
26075
  type Referrer = Electron.Referrer;
@@ -25672,6 +26117,7 @@ declare namespace Electron {
25672
26117
  type Event<Params extends object = {}> = Electron.Event<Params>;
25673
26118
  const app: App;
25674
26119
  type App = Electron.App;
26120
+ type AppShimHost = Electron.AppShimHost;
25675
26121
  const autoUpdater: AutoUpdater;
25676
26122
  type AutoUpdater = Electron.AutoUpdater;
25677
26123
  class BaseWindow extends Electron.BaseWindow {}
@@ -25848,6 +26294,7 @@ declare namespace Electron {
25848
26294
  type LoadURLOptions = Electron.LoadURLOptions;
25849
26295
  type LoginItemSettings = Electron.LoginItemSettings;
25850
26296
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26297
+ type Match = Electron.Match;
25851
26298
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
25852
26299
  type MessageBoxOptions = Electron.MessageBoxOptions;
25853
26300
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -25911,7 +26358,9 @@ declare namespace Electron {
25911
26358
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
25912
26359
  type Settings = Electron.Settings;
25913
26360
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
26361
+ type Source = Electron.Source;
25914
26362
  type SourcesOptions = Electron.SourcesOptions;
26363
+ type StartAppShimServerOptions = Electron.StartAppShimServerOptions;
25915
26364
  type StartLoggingOptions = Electron.StartLoggingOptions;
25916
26365
  type StartTask = Electron.StartTask;
25917
26366
  type Streams = Electron.Streams;
@@ -26038,6 +26487,8 @@ declare namespace Electron {
26038
26487
  type ProtocolRequest = Electron.ProtocolRequest;
26039
26488
  type ProtocolResponse = Electron.ProtocolResponse;
26040
26489
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26490
+ type ProtocolRoute = Electron.ProtocolRoute;
26491
+ type ProtocolSource = Electron.ProtocolSource;
26041
26492
  type ProxyConfig = Electron.ProxyConfig;
26042
26493
  type Rectangle = Electron.Rectangle;
26043
26494
  type Referrer = Electron.Referrer;
@@ -26185,6 +26636,7 @@ declare namespace Electron {
26185
26636
  type LoadURLOptions = Electron.LoadURLOptions;
26186
26637
  type LoginItemSettings = Electron.LoginItemSettings;
26187
26638
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26639
+ type Match = Electron.Match;
26188
26640
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26189
26641
  type MessageBoxOptions = Electron.MessageBoxOptions;
26190
26642
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -26248,7 +26700,9 @@ declare namespace Electron {
26248
26700
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
26249
26701
  type Settings = Electron.Settings;
26250
26702
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
26703
+ type Source = Electron.Source;
26251
26704
  type SourcesOptions = Electron.SourcesOptions;
26705
+ type StartAppShimServerOptions = Electron.StartAppShimServerOptions;
26252
26706
  type StartLoggingOptions = Electron.StartLoggingOptions;
26253
26707
  type StartTask = Electron.StartTask;
26254
26708
  type Streams = Electron.Streams;
@@ -26375,6 +26829,8 @@ declare namespace Electron {
26375
26829
  type ProtocolRequest = Electron.ProtocolRequest;
26376
26830
  type ProtocolResponse = Electron.ProtocolResponse;
26377
26831
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
26832
+ type ProtocolRoute = Electron.ProtocolRoute;
26833
+ type ProtocolSource = Electron.ProtocolSource;
26378
26834
  type ProxyConfig = Electron.ProxyConfig;
26379
26835
  type Rectangle = Electron.Rectangle;
26380
26836
  type Referrer = Electron.Referrer;
@@ -26521,6 +26977,7 @@ declare namespace Electron {
26521
26977
  type LoadURLOptions = Electron.LoadURLOptions;
26522
26978
  type LoginItemSettings = Electron.LoginItemSettings;
26523
26979
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26980
+ type Match = Electron.Match;
26524
26981
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26525
26982
  type MessageBoxOptions = Electron.MessageBoxOptions;
26526
26983
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -26584,7 +27041,9 @@ declare namespace Electron {
26584
27041
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
26585
27042
  type Settings = Electron.Settings;
26586
27043
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
27044
+ type Source = Electron.Source;
26587
27045
  type SourcesOptions = Electron.SourcesOptions;
27046
+ type StartAppShimServerOptions = Electron.StartAppShimServerOptions;
26588
27047
  type StartLoggingOptions = Electron.StartLoggingOptions;
26589
27048
  type StartTask = Electron.StartTask;
26590
27049
  type Streams = Electron.Streams;
@@ -26711,6 +27170,8 @@ declare namespace Electron {
26711
27170
  type ProtocolRequest = Electron.ProtocolRequest;
26712
27171
  type ProtocolResponse = Electron.ProtocolResponse;
26713
27172
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
27173
+ type ProtocolRoute = Electron.ProtocolRoute;
27174
+ type ProtocolSource = Electron.ProtocolSource;
26714
27175
  type ProxyConfig = Electron.ProxyConfig;
26715
27176
  type Rectangle = Electron.Rectangle;
26716
27177
  type Referrer = Electron.Referrer;
@@ -26758,6 +27219,7 @@ declare namespace Electron {
26758
27219
  type Event<Params extends object = {}> = Electron.Event<Params>;
26759
27220
  const app: App;
26760
27221
  type App = Electron.App;
27222
+ type AppShimHost = Electron.AppShimHost;
26761
27223
  const autoUpdater: AutoUpdater;
26762
27224
  type AutoUpdater = Electron.AutoUpdater;
26763
27225
  class BaseWindow extends Electron.BaseWindow {}
@@ -26953,6 +27415,7 @@ declare namespace Electron {
26953
27415
  type LoadURLOptions = Electron.LoadURLOptions;
26954
27416
  type LoginItemSettings = Electron.LoginItemSettings;
26955
27417
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
27418
+ type Match = Electron.Match;
26956
27419
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
26957
27420
  type MessageBoxOptions = Electron.MessageBoxOptions;
26958
27421
  type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
@@ -27016,7 +27479,9 @@ declare namespace Electron {
27016
27479
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
27017
27480
  type Settings = Electron.Settings;
27018
27481
  type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
27482
+ type Source = Electron.Source;
27019
27483
  type SourcesOptions = Electron.SourcesOptions;
27484
+ type StartAppShimServerOptions = Electron.StartAppShimServerOptions;
27020
27485
  type StartLoggingOptions = Electron.StartLoggingOptions;
27021
27486
  type StartTask = Electron.StartTask;
27022
27487
  type Streams = Electron.Streams;
@@ -27143,6 +27608,8 @@ declare namespace Electron {
27143
27608
  type ProtocolRequest = Electron.ProtocolRequest;
27144
27609
  type ProtocolResponse = Electron.ProtocolResponse;
27145
27610
  type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
27611
+ type ProtocolRoute = Electron.ProtocolRoute;
27612
+ type ProtocolSource = Electron.ProtocolSource;
27146
27613
  type ProxyConfig = Electron.ProxyConfig;
27147
27614
  type Rectangle = Electron.Rectangle;
27148
27615
  type Referrer = Electron.Referrer;
@@ -1,4 +1,4 @@
1
- // Shared Overwolf type declarations for ow-electron 42.11.8
1
+ // Shared Overwolf type declarations for ow-electron 44.9.0
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
@@ -107,18 +107,6 @@ declare global {
107
107
  */
108
108
  setExternalPaymentUserId(options: ExternalPaymentUserIdOptions): Promise<void>;
109
109
 
110
- /**
111
- * Reads a raw value out of the Overwolf storage by key.
112
- *
113
- * This is an escape hatch for values ow-electron starts storing before it
114
- * exposes a dedicated property for them - prefer the typed properties
115
- * (e.g. `utmParams`, `silentInstall`) where one exists.
116
- *
117
- * Returns `undefined` when the key was never written. Throws if `key` is
118
- * empty, or if called before `app.ready`.
119
- */
120
- getStorageValue(key: string): any;
121
-
122
110
  /**
123
111
  * Client persistence phasing percent
124
112
  */
@@ -129,11 +117,6 @@ declare global {
129
117
  */
130
118
  readonly utmParams: any;
131
119
 
132
- /**
133
- * Whether the app was installed silently by the Overwolf installer.
134
- */
135
- readonly silentInstall: boolean;
136
-
137
120
  /**
138
121
  * A unique identifier for the user machine.
139
122
  */
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "44.5.1-beta.0",
4
- "owElectronVersion": "44.5.1-beta.0",
5
- "electronVersion": "44.5.1",
3
+ "version": "44.9.0",
4
+ "owElectronVersion": "44.9.0",
5
+ "electronVersion": "44.9.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",
@@ -45,8 +45,5 @@
45
45
  },
46
46
  "engines": {
47
47
  "node": ">= 22.12.0"
48
- },
49
- "publishConfig": {
50
- "tag": "44-x-y"
51
48
  }
52
49
  }