@overwolf/ow-electron 22.3.2 → 22.3.13-beta.3

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/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 22.3.0
1
+ // Type definitions for Electron 22.3.13
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/electron-typescript-definitions
@@ -408,8 +408,6 @@ declare namespace Electron {
408
408
  * application's `Info.plist` file must define the URL scheme within the
409
409
  * `CFBundleURLTypes` key, and set `NSPrincipalClass` to `AtomApplication`.
410
410
  *
411
- * You should call `event.preventDefault()` if you want to handle this event.
412
- *
413
411
  * As with the `open-file` event, be sure to register a listener for the `open-url`
414
412
  * event early in your application startup to detect if the the application being
415
413
  * is being opened to handle a URL. If you register the listener in response to a
@@ -976,21 +974,14 @@ declare namespace Electron {
976
974
  * Here are some examples of return values of the various language and locale APIs
977
975
  * with different configurations:
978
976
  *
979
- * * For Windows, where the application locale is German, the regional format is
980
- * Finnish (Finland), and the preferred system languages from most to least
981
- * preferred are French (Canada), English (US), Simplified Chinese (China),
982
- * Finnish, and Spanish (Latin America):
983
- * * `app.getLocale()` returns `'de'`
984
- * * `app.getSystemLocale()` returns `'fi-FI'`
985
- * * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
986
- * 'zh-Hans-CN', 'fi', 'es-419']`
987
- * * On macOS, where the application locale is German, the region is Finland, and
988
- * the preferred system languages from most to least preferred are French (Canada),
977
+ * On Windows, given application locale is German, the regional format is Finnish
978
+ * (Finland), and the preferred system languages from most to least preferred are
979
+ * French (Canada), English (US), Simplified Chinese (China), Finnish, and Spanish
980
+ * (Latin America):
981
+ *
982
+ * On macOS, given the application locale is German, the region is Finland, and the
983
+ * preferred system languages from most to least preferred are French (Canada),
989
984
  * English (US), Simplified Chinese, and Spanish (Latin America):
990
- * * `app.getLocale()` returns `'de'`
991
- * * `app.getSystemLocale()` returns `'fr-FI'`
992
- * * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
993
- * 'zh-Hans-FI', 'es-419']`
994
985
  *
995
986
  * Both the available languages and regions and the possible return values differ
996
987
  * between the two operating systems.
@@ -1003,7 +994,7 @@ declare namespace Electron {
1003
994
  * country code `FI` is used as the country code for preferred system languages
1004
995
  * that do not have associated countries in the language name.
1005
996
  */
1006
- getPreferredSystemLanguages(): Array<'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()' | 'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()'>;
997
+ getPreferredSystemLanguages(): string[];
1007
998
  /**
1008
999
  * The current system locale. On Windows and Linux, it is fetched using Chromium's
1009
1000
  * `i18n` library. On macOS, `[NSLocale currentLocale]` is used instead. To get the
@@ -3011,7 +3002,7 @@ declare namespace Electron {
3011
3002
  /**
3012
3003
  * Sets the touchBar layout for the current window. Specifying `null` or
3013
3004
  * `undefined` clears the touch bar. This method only has an effect if the machine
3014
- * has a touch bar and is running on macOS 10.12.1+.
3005
+ * has a touch bar.
3015
3006
  *
3016
3007
  * **Note:** The TouchBar API is currently experimental and may change or be
3017
3008
  * removed in future Electron releases.
@@ -8608,7 +8599,7 @@ declare namespace Electron {
8608
8599
  * information about how to set these in the context of Electron.
8609
8600
  *
8610
8601
  * This user consent was not required until macOS 10.14 Mojave, so this method will
8611
- * always return `true` if your system is running 10.13 High Sierra or lower.
8602
+ * always return `true` if your system is running 10.13 High Sierra.
8612
8603
  *
8613
8604
  * @platform darwin
8614
8605
  */
@@ -8616,9 +8607,6 @@ declare namespace Electron {
8616
8607
  /**
8617
8608
  * whether or not this device has the ability to use Touch ID.
8618
8609
  *
8619
- * **NOTE:** This API will return `false` on macOS systems older than Sierra
8620
- * 10.12.2.
8621
- *
8622
8610
  * @platform darwin
8623
8611
  */
8624
8612
  canPromptTouchID(): boolean;
@@ -8677,10 +8665,10 @@ declare namespace Electron {
8677
8665
  /**
8678
8666
  * Can be `not-determined`, `granted`, `denied`, `restricted` or `unknown`.
8679
8667
  *
8680
- * This user consent was not required on macOS 10.13 High Sierra or lower so this
8681
- * method will always return `granted`. macOS 10.14 Mojave or higher requires
8682
- * consent for `microphone` and `camera` access. macOS 10.15 Catalina or higher
8683
- * requires consent for `screen` access.
8668
+ * This user consent was not required on macOS 10.13 High Sierra so this method
8669
+ * will always return `granted`. macOS 10.14 Mojave or higher requires consent for
8670
+ * `microphone` and `camera` access. macOS 10.15 Catalina or higher requires
8671
+ * consent for `screen` access.
8684
8672
  *
8685
8673
  * Windows 10 has a global setting controlling `microphone` and `camera` access for
8686
8674
  * all win32 applications. It will always return `granted` for `screen` and for all
@@ -8798,9 +8786,6 @@ declare namespace Electron {
8798
8786
  * `node-keytar`, such that one would store an encryption key with `node-keytar`
8799
8787
  * and only fetch it if `promptTouchID()` resolves.
8800
8788
  *
8801
- * **NOTE:** This API will return a rejected Promise on macOS systems older than
8802
- * Sierra 10.12.2.
8803
- *
8804
8789
  * @platform darwin
8805
8790
  */
8806
8791
  promptTouchID(reason: string): Promise<void>;
@@ -11001,14 +10986,19 @@ declare namespace Electron {
11001
10986
  addListener(event: 'responsive', listener: Function): this;
11002
10987
  removeListener(event: 'responsive', listener: Function): this;
11003
10988
  /**
11004
- * Emitted when bluetooth device needs to be selected on call to
11005
- * `navigator.bluetooth.requestDevice`. To use `navigator.bluetooth` api
11006
- * `webBluetooth` should be enabled. If `event.preventDefault` is not called, first
11007
- * available device will be selected. `callback` should be called with `deviceId`
11008
- * to be selected, passing empty string to `callback` will cancel the request.
10989
+ * Emitted when a bluetooth device needs to be selected when a call to
10990
+ * `navigator.bluetooth.requestDevice` is made. `callback` should be called with
10991
+ * the `deviceId` of the device to be selected. Passing an empty string to
10992
+ * `callback` will cancel the request.
10993
+ *
10994
+ * If an event listener is not added for this event, or if `event.preventDefault`
10995
+ * is not called when handling this event, the first available device will be
10996
+ * automatically selected.
11009
10997
  *
11010
- * If no event listener is added for this event, all bluetooth requests will be
11011
- * cancelled.
10998
+ * Due to the nature of bluetooth, scanning for devices when
10999
+ * `navigator.bluetooth.requestDevice` is called may take time and will cause
11000
+ * `select-bluetooth-device` to fire multiple times until `callback` is called with
11001
+ * either a device id or an empty string to cancel the request.
11012
11002
  */
11013
11003
  on(event: 'select-bluetooth-device', listener: (event: Event,
11014
11004
  devices: BluetoothDevice[],
@@ -13507,10 +13497,10 @@ declare namespace Electron {
13507
13497
  */
13508
13498
  zoomToPageWidth?: boolean;
13509
13499
  /**
13510
- * Tab group name, allows opening the window as a native tab on macOS 10.12+.
13511
- * Windows with the same tabbing identifier will be grouped together. This also
13512
- * adds a native new tab button to your window's tab bar and allows your `app` and
13513
- * window to receive the `new-window-for-tab` event.
13500
+ * Tab group name, allows opening the window as a native tab. Windows with the same
13501
+ * tabbing identifier will be grouped together. This also adds a native new tab
13502
+ * button to your window's tab bar and allows your `app` and window to receive the
13503
+ * `new-window-for-tab` event.
13514
13504
  *
13515
13505
  * @platform darwin
13516
13506
  */
@@ -15958,8 +15948,8 @@ declare namespace Electron {
15958
15948
  interface TitleOptions {
15959
15949
  /**
15960
15950
  * The font family variant to display, can be `monospaced` or `monospacedDigit`.
15961
- * `monospaced` is available in macOS 10.15+ and `monospacedDigit` is available in
15962
- * macOS 10.11+. When left blank, the title uses the default system font.
15951
+ * `monospaced` is available in macOS 10.15+ When left blank, the title uses the
15952
+ * default system font.
15963
15953
  */
15964
15954
  fontType?: ('monospaced' | 'monospacedDigit');
15965
15955
  }
package/ow-electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for ow-electron 22.3.2
1
+ // Type definitions for ow-electron 22.3.13-beta.3
2
2
 
3
3
  import { App, BrowserWindow, Event } from 'electron'
4
4
  import { errorMonitor } from 'events';
@@ -42,6 +42,11 @@ declare namespace overwolf {
42
42
  * Client persistence phasing precent
43
43
  */
44
44
  readonly phasePercent: number
45
+
46
+ /**
47
+ * Overwolf installer provided UTM params
48
+ */
49
+ readonly utmParams: any;
45
50
  }
46
51
 
47
52
  interface CMPWindowOptions {
@@ -84,7 +89,7 @@ declare namespace overwolf {
84
89
  /**
85
90
  * A fake enum for all built-in packIge names
86
91
  */
87
- type PackageName = 'gep';
92
+ type PackageName = 'gep' | 'overlay';
88
93
 
89
94
  /**
90
95
  * Package info
@@ -101,14 +106,14 @@ declare namespace overwolf {
101
106
  /**
102
107
  * Register listener for Overwolf Package crashes.
103
108
  * Calling `event.preventDefault()` will prevent the package from automatically attempting to re-launch itself.
104
- *
109
+ *
105
110
  * @param {string | symbol} eventName Name of the node event ('crashed')
106
111
  * @param {(Event, any[]) => void} listener The listener that will be invoked when this event is fired
107
112
  * @returns {this} The current instance of the Overwolf Package Manager
108
113
  */
109
114
  on(
110
115
  eventName: 'crashed',
111
- listener: (event: Event, canRecover: boolean) => void,
116
+ listener: (event: Event, canRecover: boolean) => void
112
117
  ): this;
113
118
 
114
119
  /**
@@ -120,10 +125,10 @@ declare namespace overwolf {
120
125
  */
121
126
  on(
122
127
  eventName: 'ready',
123
- listener: (event: Event, packageName: PackageName) => void,
128
+ listener: (event: Event, packageName: PackageName) => void
124
129
  ): this;
125
130
 
126
- /**
131
+ /**
127
132
  * Register listener for when an Overwolf Package is ready to update
128
133
  *
129
134
  * @param {string | symbol} eventName Name of the node event ('package-update-pending')
@@ -132,7 +137,18 @@ declare namespace overwolf {
132
137
  */
133
138
  on(
134
139
  eventName: 'package-update-pending',
135
- listener: (event: Event, info: PackageInfo[]) => void,
140
+ listener: (event: Event, info: PackageInfo[]) => void
141
+ ): this;
142
+
143
+ /**
144
+ * Register listener for when an Overwolf Package updated
145
+ *
146
+ * @param {string | symbol} eventName Name of the node event ('updated')
147
+ * @returns {this} The current instance of the Overwolf Package Manager
148
+ */
149
+ on(
150
+ eventName: 'updated',
151
+ listener: (event: Event, packageName: string, version: string) => void
136
152
  ): this;
137
153
 
138
154
  /**
@@ -144,23 +160,30 @@ declare namespace overwolf {
144
160
  */
145
161
  on(
146
162
  eventName: 'failed-to-initialize',
147
- listener: (event: Event, packageName: PackageName) => void,
163
+ listener: (event: Event, packageName: PackageName) => void
148
164
  ): this;
149
165
 
150
- /**
151
- * Relaunch the Overwolf Package Manager. Call it to force all pending Overwolf Package updates.
152
- *
166
+ /**
167
+ * Relaunch the Overwolf Package Manager. Call it to force all pending Overwolf Package updates.
168
+ *
153
169
  * *The Overwolf Package Manager will automatically relaunch itself if an update is available and no package is currently running.*
154
- */
155
- relaunch(): void;
170
+ */
171
+ relaunch(): void;
156
172
 
157
173
  /**
158
174
  * @property {packages.IOverwolfGameEventPackage} gep The Game Events Provider Package Instance
159
- * note: available once 'ready' is fired.
175
+ * note: available once 'ready' is fired.
160
176
  */
161
177
  readonly gep: packages.OverwolfGameEventPackage;
162
178
  }
163
179
 
180
+ /**
181
+ * Game Events game detection Event
182
+ */
183
+ export interface GepGameLaunchEvent {
184
+ enable: (() => void);
185
+ }
186
+
164
187
  /**
165
188
  * Game Events Package interface
166
189
  */
@@ -232,7 +255,7 @@ declare namespace overwolf {
232
255
 
233
256
  /**
234
257
  * Register listener for a game being detected.
235
- * Calling `event.preventDefault()` will prevent the Game Events Provider Package from connecting to the game.
258
+ * Calling `event.enable()` to start gep for this game.
236
259
  *
237
260
  * @param {string | symbol} eventName Name of the node event ('game-detected')
238
261
  * @param {(Event, any[]) => void} listener The listener that will be invoked when this event is fired
@@ -240,7 +263,7 @@ declare namespace overwolf {
240
263
  */
241
264
  on(
242
265
  eventName: 'game-detected',
243
- listener: (event: Event, gameId: number, name: string, ...args: any[]) => void,
266
+ listener: (event: GepGameLaunchEvent, gameId: number, name: string, ...args: any[]) => void,
244
267
  ): this;
245
268
 
246
269
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "22.3.2",
4
- "owElectronVersion": "22.3.2",
3
+ "version": "22.3.13-beta.3",
4
+ "owElectronVersion": "22.3.13-beta.3",
5
5
  "repository": "https://github.com/electron/electron",
6
6
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
7
7
  "license": "MIT",
@@ -25,5 +25,8 @@
25
25
  },
26
26
  "engines": {
27
27
  "node": ">= 10.17.0"
28
+ },
29
+ "publishConfig": {
30
+ "tag": "beta"
28
31
  }
29
32
  }