@overwolf/ow-electron 44.10.1 → 44.11.3-beta.1

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "electron-api.json": "87f34c48c90a3227f08d7952d8b51e327e9af84268c2ae2fa32bcd8a32d7963d",
3
- "electron.d.ts": "41d9b5a40abcb3a30895240a41e3269519edadeb75ae583408e092b636ce9b75",
4
- "ow-electron-v44.10.1-darwin-arm64.zip": "cb9406d7e4908c7d3bfb4f0effffe9575d7be0f6bfc531931005fb21e85ba5d7",
5
- "ow-electron-v44.10.1-darwin-x64.zip": "510437d846ae825ebb96dcd440df49c1892ae992f19627f5bfa52f35d0120012",
6
- "ow-electron-v44.10.1-linux-arm64.zip": "8fab8c55d7c54b2e252f82f19db99c08fe141a45e903fbbeecb3861d941da918",
7
- "ow-electron-v44.10.1-linux-x64.zip": "0964cb378b656a246da6164fc45a890913ca0ec5df1d7f6e8ae005d3615a9f0e",
8
- "ow-electron-v44.10.1-win32-arm64.zip": "220b9496d7128880f85bba62dde7a4120c54b2b3f8c3e3851fb6f1f762db2940",
9
- "ow-electron-v44.10.1-win32-x64.zip": "6c876e44043d110ef1638d7712b3dabc74263b37e3f7661dae30a86838240a43"
2
+ "electron-api.json": "35702b1636123d09ef492e27f8cfca34d0531959c57c864265fffca194dc115e",
3
+ "electron.d.ts": "a3cddd177f68dd9f8b878499a26fa6b10783657fea3e56c27efc17774c5a84ac",
4
+ "ow-electron-v44.11.3-beta.1-darwin-arm64.zip": "22b89f083839b76ba6a36fabc108be461d7ce168431f2e5fc32fcc20b039892b",
5
+ "ow-electron-v44.11.3-beta.1-darwin-x64.zip": "83d4a1260e6d1eef4dae2c5c5c1cce582f3d5099dc7c79519bbe3fb1e85aecff",
6
+ "ow-electron-v44.11.3-beta.1-linux-arm64.zip": "e466ca17d35193fc7076f678d8d86f027f58a6af63f1ad1ddc895b0c8790177f",
7
+ "ow-electron-v44.11.3-beta.1-linux-x64.zip": "8c1096352b31d841cf3596a05ab5a22de7e0abb6b30dd0cb32731b924c43b811",
8
+ "ow-electron-v44.11.3-beta.1-win32-arm64.zip": "e69fdf4945acc84e1f2e6d031860c03f7494e644cf8e40cdc402da6ece69eef2",
9
+ "ow-electron-v44.11.3-beta.1-win32-x64.zip": "d2c06bd9155558e659b10c0a63603c5db49a91e64bf00ce581d3c025eeb29480"
10
10
  }
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.10.1
1
+ // Type definitions for Electron 44.11.3
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
@@ -10013,6 +10013,22 @@ declare namespace Electron {
10013
10013
  * one. It contains standard items such as `File`, `Edit`, `View`, and `Window`.
10014
10014
  */
10015
10015
  static setApplicationMenu(menu: (Menu) | (null)): void;
10016
+ /**
10017
+ * Sets the colors used to highlight the hovered or keyboard-focused item in every
10018
+ * menu the app shows, including context menus and the menu bar's dropdowns. Light
10019
+ * and dark colors are set separately, and any color left unset keeps the default
10020
+ * for that mode. Each call replaces the colors set by any previous call. Passing
10021
+ * `null` restores the defaults.
10022
+ *
10023
+ * Menus opened after the call use the new colors. The colors are not applied while
10024
+ * Windows high contrast mode or forced colors are active, so the user's system
10025
+ * colors take priority.
10026
+ *
10027
+ * This method has no effect on macOS and Linux.
10028
+ *
10029
+ * @platform win32
10030
+ */
10031
+ static setHighlightColors(options: (HighlightColorsOptions) | (null)): void;
10016
10032
  /**
10017
10033
  * Appends the `menuItem` to the menu.
10018
10034
  */
@@ -14914,7 +14930,9 @@ declare namespace Electron {
14914
14930
  *
14915
14931
  * Same as `subscribeNotification`, but uses `NSNotificationCenter` for local
14916
14932
  * defaults. This is necessary for events such as
14917
- * `NSUserDefaultsDidChangeNotification`.
14933
+ * `NSUserDefaultsDidChangeNotification`. `callback` is always called on the main
14934
+ * thread. Notifications posted on other threads are delivered to it
14935
+ * asynchronously.
14918
14936
  *
14919
14937
  * If `event` is null, the `NSNotificationCenter` doesn’t use it as criteria for
14920
14938
  * delivery to the observer. See docs for more information.
@@ -18794,7 +18812,9 @@ declare namespace Electron {
18794
18812
  */
18795
18813
  getDevToolsTitle(): string;
18796
18814
  /**
18797
- * If _offscreen rendering_ is enabled returns the current frame rate.
18815
+ * If _offscreen rendering_ is enabled returns the current frame rate. For an
18816
+ * `<owadview>` guest returns the frame rate it is capped to, or `0` if it is not
18817
+ * capped.
18798
18818
  */
18799
18819
  getFrameRate(): number;
18800
18820
  /**
@@ -19216,6 +19236,13 @@ declare namespace Electron {
19216
19236
  * If _offscreen rendering_ is enabled sets the frame rate to the specified number.
19217
19237
  * When `webPreferences.offscreen.useSharedTexture` is `false` only values between
19218
19238
  * 1 and 240 are accepted.
19239
+ *
19240
+ * For an `<owadview>` guest, caps the frame rate of the ad only (values between 0
19241
+ * and 240, where 0 removes the cap), whether its embedder is offscreen or not. The
19242
+ * embedder keeps its own frame rate. New guests start at the `adViewMaxFps`
19243
+ * Overwolf setting (30 unless the app's `package.json` changes it), which the
19244
+ * `--owadview-max-fps` switch overrides. The ad page can set the same value
19245
+ * through `__overwolf__.setFrameRate(fps)`; the last call wins.
19219
19246
  */
19220
19247
  setFrameRate(fps: number): void;
19221
19248
  /**
@@ -19403,7 +19430,8 @@ declare namespace Electron {
19403
19430
  * An `Integer` property that sets the frame rate of the web contents to the
19404
19431
  * specified number. Only values between 1 and 240 are accepted.
19405
19432
  *
19406
- * Only applicable if _offscreen rendering_ is enabled.
19433
+ * Only applicable if _offscreen rendering_ is enabled, or to an `<owadview>` guest
19434
+ * (see `contents.setFrameRate`).
19407
19435
  */
19408
19436
  frameRate: number;
19409
19437
  /**
@@ -22753,6 +22781,17 @@ declare namespace Electron {
22753
22781
  origin?: string;
22754
22782
  }
22755
22783
 
22784
+ interface HighlightColorsOptions {
22785
+ /**
22786
+ * Colors used when menus are drawn with light colors.
22787
+ */
22788
+ light?: Light;
22789
+ /**
22790
+ * Colors used when menus are drawn with dark colors.
22791
+ */
22792
+ dark?: Dark;
22793
+ }
22794
+
22756
22795
  interface IgnoreMouseEventsOptions {
22757
22796
  /**
22758
22797
  * If true, forwards mouse move messages to Chromium, enabling mouse related events
@@ -25436,6 +25475,18 @@ declare namespace Electron {
25436
25475
  interface Children {
25437
25476
  }
25438
25477
 
25478
+ interface Dark {
25479
+ /**
25480
+ * Background color of the hovered or keyboard-focused menu item, as a CSS color
25481
+ * string.
25482
+ */
25483
+ background?: string;
25484
+ /**
25485
+ * Text color of the hovered or keyboard-focused menu item, as a CSS color string.
25486
+ */
25487
+ foreground?: string;
25488
+ }
25489
+
25439
25490
  interface EditFlags {
25440
25491
  /**
25441
25492
  * Whether the renderer believes it can undo.
@@ -25548,6 +25599,18 @@ declare namespace Electron {
25548
25599
  enabled: boolean;
25549
25600
  }
25550
25601
 
25602
+ interface Light {
25603
+ /**
25604
+ * Background color of the hovered or keyboard-focused menu item, as a CSS color
25605
+ * string (e.g. `#0067c0`).
25606
+ */
25607
+ background?: string;
25608
+ /**
25609
+ * Text color of the hovered or keyboard-focused menu item, as a CSS color string.
25610
+ */
25611
+ foreground?: string;
25612
+ }
25613
+
25551
25614
  interface Margins {
25552
25615
  /**
25553
25616
  * Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen,
@@ -25973,6 +26036,7 @@ declare namespace Electron {
25973
26036
  type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
25974
26037
  type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
25975
26038
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
26039
+ type HighlightColorsOptions = Electron.HighlightColorsOptions;
25976
26040
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
25977
26041
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
25978
26042
  type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
@@ -26101,6 +26165,7 @@ declare namespace Electron {
26101
26165
  type WillResizeDetails = Electron.WillResizeDetails;
26102
26166
  type Animate = Electron.Animate;
26103
26167
  type Children = Electron.Children;
26168
+ type Dark = Electron.Dark;
26104
26169
  type EditFlags = Electron.EditFlags;
26105
26170
  type Env = Electron.Env;
26106
26171
  type FeatureReports = Electron.FeatureReports;
@@ -26108,6 +26173,7 @@ declare namespace Electron {
26108
26173
  type InputReports = Electron.InputReports;
26109
26174
  type Interfaces = Electron.Interfaces;
26110
26175
  type LaunchItems = Electron.LaunchItems;
26176
+ type Light = Electron.Light;
26111
26177
  type Margins = Electron.Margins;
26112
26178
  type MediaFlags = Electron.MediaFlags;
26113
26179
  type Metadata = Electron.Metadata;
@@ -26392,6 +26458,7 @@ declare namespace Electron {
26392
26458
  type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
26393
26459
  type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
26394
26460
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
26461
+ type HighlightColorsOptions = Electron.HighlightColorsOptions;
26395
26462
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
26396
26463
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
26397
26464
  type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
@@ -26520,6 +26587,7 @@ declare namespace Electron {
26520
26587
  type WillResizeDetails = Electron.WillResizeDetails;
26521
26588
  type Animate = Electron.Animate;
26522
26589
  type Children = Electron.Children;
26590
+ type Dark = Electron.Dark;
26523
26591
  type EditFlags = Electron.EditFlags;
26524
26592
  type Env = Electron.Env;
26525
26593
  type FeatureReports = Electron.FeatureReports;
@@ -26527,6 +26595,7 @@ declare namespace Electron {
26527
26595
  type InputReports = Electron.InputReports;
26528
26596
  type Interfaces = Electron.Interfaces;
26529
26597
  type LaunchItems = Electron.LaunchItems;
26598
+ type Light = Electron.Light;
26530
26599
  type Margins = Electron.Margins;
26531
26600
  type MediaFlags = Electron.MediaFlags;
26532
26601
  type Metadata = Electron.Metadata;
@@ -26734,6 +26803,7 @@ declare namespace Electron {
26734
26803
  type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
26735
26804
  type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
26736
26805
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
26806
+ type HighlightColorsOptions = Electron.HighlightColorsOptions;
26737
26807
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
26738
26808
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
26739
26809
  type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
@@ -26862,6 +26932,7 @@ declare namespace Electron {
26862
26932
  type WillResizeDetails = Electron.WillResizeDetails;
26863
26933
  type Animate = Electron.Animate;
26864
26934
  type Children = Electron.Children;
26935
+ type Dark = Electron.Dark;
26865
26936
  type EditFlags = Electron.EditFlags;
26866
26937
  type Env = Electron.Env;
26867
26938
  type FeatureReports = Electron.FeatureReports;
@@ -26869,6 +26940,7 @@ declare namespace Electron {
26869
26940
  type InputReports = Electron.InputReports;
26870
26941
  type Interfaces = Electron.Interfaces;
26871
26942
  type LaunchItems = Electron.LaunchItems;
26943
+ type Light = Electron.Light;
26872
26944
  type Margins = Electron.Margins;
26873
26945
  type MediaFlags = Electron.MediaFlags;
26874
26946
  type Metadata = Electron.Metadata;
@@ -27075,6 +27147,7 @@ declare namespace Electron {
27075
27147
  type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
27076
27148
  type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
27077
27149
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
27150
+ type HighlightColorsOptions = Electron.HighlightColorsOptions;
27078
27151
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
27079
27152
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
27080
27153
  type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
@@ -27203,6 +27276,7 @@ declare namespace Electron {
27203
27276
  type WillResizeDetails = Electron.WillResizeDetails;
27204
27277
  type Animate = Electron.Animate;
27205
27278
  type Children = Electron.Children;
27279
+ type Dark = Electron.Dark;
27206
27280
  type EditFlags = Electron.EditFlags;
27207
27281
  type Env = Electron.Env;
27208
27282
  type FeatureReports = Electron.FeatureReports;
@@ -27210,6 +27284,7 @@ declare namespace Electron {
27210
27284
  type InputReports = Electron.InputReports;
27211
27285
  type Interfaces = Electron.Interfaces;
27212
27286
  type LaunchItems = Electron.LaunchItems;
27287
+ type Light = Electron.Light;
27213
27288
  type Margins = Electron.Margins;
27214
27289
  type MediaFlags = Electron.MediaFlags;
27215
27290
  type Metadata = Electron.Metadata;
@@ -27513,6 +27588,7 @@ declare namespace Electron {
27513
27588
  type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
27514
27589
  type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
27515
27590
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
27591
+ type HighlightColorsOptions = Electron.HighlightColorsOptions;
27516
27592
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
27517
27593
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
27518
27594
  type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
@@ -27641,6 +27717,7 @@ declare namespace Electron {
27641
27717
  type WillResizeDetails = Electron.WillResizeDetails;
27642
27718
  type Animate = Electron.Animate;
27643
27719
  type Children = Electron.Children;
27720
+ type Dark = Electron.Dark;
27644
27721
  type EditFlags = Electron.EditFlags;
27645
27722
  type Env = Electron.Env;
27646
27723
  type FeatureReports = Electron.FeatureReports;
@@ -27648,6 +27725,7 @@ declare namespace Electron {
27648
27725
  type InputReports = Electron.InputReports;
27649
27726
  type Interfaces = Electron.Interfaces;
27650
27727
  type LaunchItems = Electron.LaunchItems;
27728
+ type Light = Electron.Light;
27651
27729
  type Margins = Electron.Margins;
27652
27730
  type MediaFlags = Electron.MediaFlags;
27653
27731
  type Metadata = Electron.Metadata;
@@ -1,4 +1,4 @@
1
- // Shared Overwolf type declarations for ow-electron 44.10.1
1
+ // Shared Overwolf type declarations for ow-electron 44.11.3-beta.1
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
@@ -66,6 +66,76 @@ declare global {
66
66
  */
67
67
  isCMPRequired(): Promise<boolean>;
68
68
 
69
+ /**
70
+ * Returns true if the app should show the CMP first layer.
71
+ *
72
+ * True when the CMP is required (see isCMPRequired) and the user has not
73
+ * answered it - not in the installer (e.g. an install without it)
74
+ * and not in the app (the first layer or the CMP
75
+ * window). The default consent ow-electron stores on startup does not
76
+ * count as an answer. Once the user answers, it returns false.
77
+ *
78
+ * Note that this is an async function and should be called with await.
79
+ * It rejects when the CMP is required and the user's stored consent can't
80
+ * be read - so wrap the call in try/catch:
81
+ *
82
+ * ```ts
83
+ * try {
84
+ * if (await app.overwolf.shouldShowCMPFirstLayer()) {
85
+ * await app.overwolf.openCMPFirstLayerWindow({ parent: mainWindow });
86
+ * }
87
+ * } catch (err) {
88
+ * // the stored consent could not be read
89
+ * }
90
+ * ```
91
+ */
92
+ shouldShowCMPFirstLayer(): Promise<boolean>;
93
+
94
+ /**
95
+ * Opens the CMP first layer - "We value your privacy" with "Manage" and
96
+ * "Accept All Purposes" - should be called when shouldShowCMPFirstLayer
97
+ * returns true.
98
+ *
99
+ * With a `parent`, it covers the parent's content area with a dimmed
100
+ * backdrop and follows the parent when it moves or resizes. Dragging
101
+ * the backdrop moves the parent (Windows). A parent smaller than the
102
+ * dialog grows to fit it; when it can't (its maximum size, a small
103
+ * screen, or it is maximized), the first layer opens as a dialog sized
104
+ * modal window over the parent instead (on macOS the parent stays
105
+ * enabled, the dialog stays above it). On Linux the first layer is
106
+ * always a dialog sized modal window over the parent - a window can't
107
+ * be placed over another under Wayland.
108
+ *
109
+ * - "Accept All Purposes" stores the consent and closes the first layer.
110
+ * - "Manage" closes the first layer and opens the CMP window (see
111
+ * openCMPWindow), modal over the parent.
112
+ *
113
+ * The window shows only once the page has rendered its dialog.
114
+ *
115
+ * Resolves when the first layer closes. Rejects when no page loads - a
116
+ * network error, an http error (e.g. 404), or the page did not render
117
+ * within 30 seconds, for the page and the default one - so wrap the
118
+ * call in try/catch:
119
+ *
120
+ * ```ts
121
+ * try {
122
+ * if (await app.overwolf.shouldShowCMPFirstLayer()) {
123
+ * await app.overwolf.openCMPFirstLayerWindow({ parent: mainWindow });
124
+ * }
125
+ * } catch (err) {
126
+ * // the stored consent could not be read, or the first layer was not shown
127
+ * }
128
+ * ```
129
+ */
130
+ openCMPFirstLayerWindow(options?: CMPFirstLayerWindowOptions): Promise<void>;
131
+
132
+ /**
133
+ * Rejects all consent for the user. Use it when the user asks to reject
134
+ * consent outside the CMP UI, for example by email.
135
+ * Resolves once the consent page has loaded and the consent has been rejected. Rejects when no page loads
136
+ */
137
+ rejectAllConsent(): Promise<void>;
138
+
69
139
  /**
70
140
  * Opens the CMP configuration window - should only be called when
71
141
  * isCMPRequired returns true.
@@ -107,16 +177,39 @@ declare global {
107
177
  */
108
178
  setExternalPaymentUserId(options: ExternalPaymentUserIdOptions): Promise<void>;
109
179
 
180
+ /**
181
+ * Reads a raw value out of the Overwolf storage by key.
182
+ *
183
+ * This is an escape hatch for values ow-electron starts storing before it
184
+ * exposes a dedicated property for them - prefer the typed properties
185
+ * (e.g. `utmParams`, `silentInstall`) where one exists.
186
+ *
187
+ * Returns `undefined` when the key was never written. Throws if `key` is
188
+ * empty, or if called before `app.ready`.
189
+ *
190
+ * Object values are returned as a copy - changing the returned object
191
+ * does not change what ow-electron has stored.
192
+ */
193
+ getStorageValue(key: string): any;
194
+
110
195
  /**
111
196
  * Client persistence phasing percent
112
197
  */
113
198
  readonly phasePercent: number;
114
199
 
115
200
  /**
116
- * Overwolf installer provided UTM params
201
+ * Overwolf installer provided UTM params.
202
+ *
203
+ * Returned as a copy - changing the returned object does not change what
204
+ * ow-electron has stored.
117
205
  */
118
206
  readonly utmParams: any;
119
207
 
208
+ /**
209
+ * Whether the app was installed silently by the Overwolf installer.
210
+ */
211
+ readonly silentInstall: boolean;
212
+
120
213
  /**
121
214
  * A unique identifier for the user machine.
122
215
  */
@@ -128,35 +221,97 @@ declare global {
128
221
  readonly uid: string;
129
222
  }
130
223
 
131
- interface CMPWindowOptions {
224
+ /**
225
+ * What the CMP window (openCMPWindow) and the CMP first layer
226
+ * (openCMPFirstLayerWindow) share: the parent window and the page's
227
+ * language, colors and font. A color or font left out keeps the page's
228
+ * own.
229
+ */
230
+ interface CMPBaseWindowOptions {
132
231
  /**
133
- * Select open tab. The default is 'purposes'
232
+ * The parent window. The CMP window opens centered over it; the first
233
+ * layer covers its content area (see openCMPFirstLayerWindow). Without
234
+ * it, both open over the focused window.
134
235
  */
135
- tab?: 'purposes' | 'features' | 'vendors';
236
+ parent?: BrowserWindow;
136
237
 
137
238
  /**
138
- * Whether this is a modal window. This only works when the window is a child
139
- * window. Default is `false`.
239
+ * Whether the window is modal to its parent. This only works with a
240
+ * `parent`. Default is `false`.
140
241
  */
141
242
  modal?: boolean;
142
243
 
143
244
  /**
144
- * Specify parent window. Default is `null`.
245
+ * The page language, e.g. 'de' or 'zh-tw'. Falls back to 'en' for a
246
+ * language the page doesn't have. Default is 'en'.
145
247
  */
146
- parent?: BrowserWindow;
248
+ language?: string;
147
249
 
148
250
  /**
149
- * Show window in the center of the screen. Default is `true`.
251
+ * The background color: the CMP window's (its preloader and the page)
252
+ * or the first layer dialog's. Default is '#0D0D0D'.
150
253
  */
151
- center?: boolean;
254
+ backgroundColor?: string;
152
255
 
153
256
  /**
154
- * Control the CMP preloader background window
257
+ * The text color. Default is the page's grays.
155
258
  */
156
- backgroundColor?: string;
259
+ textColor?: string;
260
+
261
+ /**
262
+ * The titles, links (and the first layer's app name, the CMP window's
263
+ * "Reject All Purposes") color. Default is `textColor` when it is set,
264
+ * the page's otherwise.
265
+ */
266
+ titleColor?: string;
267
+
268
+ /**
269
+ * The "Accept All Purposes" button color, e.g. '#3b96be'. In the CMP
270
+ * window also the consent switches, the active tab underline and the
271
+ * preloader spinner (unless `preLoaderSpinnerColor` is set).
272
+ */
273
+ buttonColor?: string;
274
+
275
+ /**
276
+ * The "Accept All Purposes" button (and consent switch) hover color.
277
+ * Default is a brighter `buttonColor`.
278
+ */
279
+ buttonHoverColor?: string;
280
+
281
+ /**
282
+ * The "Accept All Purposes" button text color. Default is '#ffffff'.
283
+ */
284
+ buttonTextColor?: string;
285
+
286
+ /**
287
+ * The font-family list for the page, e.g. 'Roboto, "Segoe UI", sans-serif'
288
+ * - an installed font, or one `fontUrl` loads. Letters, digits, spaces,
289
+ * quotes, commas, dots and dashes only. Default is the page's font.
290
+ */
291
+ fontFamily?: string;
292
+
293
+ /**
294
+ * A Google Fonts css url that loads `fontFamily`, e.g.
295
+ * 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'.
296
+ * Urls on other hosts are ignored.
297
+ */
298
+ fontUrl?: string;
299
+ }
300
+
301
+ interface CMPWindowOptions extends CMPBaseWindowOptions {
302
+ /**
303
+ * Select open tab. The default is 'purposes'
304
+ */
305
+ tab?: 'purposes' | 'features' | 'vendors';
306
+
307
+ /**
308
+ * Show window in the center of the screen. Default is `true`.
309
+ */
310
+ center?: boolean;
157
311
 
158
312
  /**
159
- * Control the CMP preloader color (spinner)
313
+ * Control the CMP preloader color (spinner). Default is `buttonColor`
314
+ * when it is set, '#D34037' otherwise.
160
315
  */
161
316
  preLoaderSpinnerColor?: string;
162
317
 
@@ -184,11 +339,24 @@ declare global {
184
339
  * Overrides the path of the cmp html
185
340
  */
186
341
  cmpURL?: string;
342
+ }
187
343
 
344
+ interface CMPFirstLayerWindowOptions extends CMPBaseWindowOptions {
188
345
  /**
189
- * Cmp html language
346
+ * The product name shown in the text. Default is `app.getName()`.
190
347
  */
191
- language?: string;
348
+ appName?: string;
349
+
350
+ /**
351
+ * Whether to dim the parent's content behind the dialog. Default is
352
+ * `true` with a parent, `false` without one.
353
+ */
354
+ backdrop?: boolean;
355
+
356
+ /**
357
+ * Overrides the first layer page url.
358
+ */
359
+ cmpFirstLayerURL?: string;
192
360
  }
193
361
 
194
362
  interface EmailHashes {
@@ -197,32 +365,32 @@ declare global {
197
365
  readonly md5?: string;
198
366
  }
199
367
 
200
- /**
201
- * A enum of the external payment providers we know about.
202
- */
203
- type ExternalPaymentProvider = 'tebex' | string;
204
-
205
- interface ExternalPaymentUserIdOptions {
206
368
  /**
207
- * The name of the external payment provider.
369
+ * A enum of the external payment providers we know about.
208
370
  */
209
- providerName: ExternalPaymentProvider;
371
+ type ExternalPaymentProvider = 'tebex' | string;
210
372
 
211
- /**
212
- * The user id your app passes to the external payment provider.
213
- */
214
- userId: string;
373
+ interface ExternalPaymentUserIdOptions {
374
+ /**
375
+ * The name of the external payment provider.
376
+ */
377
+ providerName: ExternalPaymentProvider;
378
+
379
+ /**
380
+ * The user id your app passes to the external payment provider.
381
+ */
382
+ userId: string;
383
+
384
+ /**
385
+ * Optional. The provider's recurring payment (subscription) agreement id.
386
+ */
387
+ paymentId?: string;
388
+ }
215
389
 
216
390
  /**
217
- * Optional. The provider's recurring payment (subscription) agreement id.
391
+ * A utility type for registering to `error` events, that includes the `errorMonitor` type
218
392
  */
219
- paymentId?: string;
220
- }
221
-
222
- /**
223
- * A utility type for registering to `error` events, that includes the `errorMonitor` type
224
- */
225
- type error = 'error' | typeof errorMonitor;
393
+ type error = 'error' | typeof errorMonitor;
226
394
 
227
395
  /**
228
396
  * Namespace containing everything related to Overwolf Packages
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "44.10.1",
4
- "owElectronVersion": "44.10.1",
5
- "electronVersion": "44.10.1",
3
+ "version": "44.11.3-beta.1",
4
+ "owElectronVersion": "44.11.3-beta.1",
5
+ "electronVersion": "44.11.3",
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,5 +45,8 @@
45
45
  },
46
46
  "engines": {
47
47
  "node": ">= 22.12.0"
48
+ },
49
+ "publishConfig": {
50
+ "tag": "44-x-y"
48
51
  }
49
52
  }