@overwolf/ow-electron 44.11.3-beta.1 → 44.11.3-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/checksums.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "electron-api.json": "35702b1636123d09ef492e27f8cfca34d0531959c57c864265fffca194dc115e",
3
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"
4
+ "ow-electron-v44.11.3-beta.3-darwin-arm64.zip": "754c95cdf1e4c1f114007a03b59475e918bfd438a44cd954209ecb41611608c7",
5
+ "ow-electron-v44.11.3-beta.3-darwin-x64.zip": "68485b4ae35364188f6ac3ef04e26d53af7171b87111049859dd757847a8aead",
6
+ "ow-electron-v44.11.3-beta.3-linux-arm64.zip": "7449362c003931abe5cc809fa62edf11419da6a6a3d8f093c4ccc0a9b7ff5c57",
7
+ "ow-electron-v44.11.3-beta.3-linux-x64.zip": "1308834cd9683875d05e834e6e592d3f439feb8bc1bbae46f229b5f8ee55043e",
8
+ "ow-electron-v44.11.3-beta.3-win32-arm64.zip": "e69fdf4945acc84e1f2e6d031860c03f7494e644cf8e40cdc402da6ece69eef2",
9
+ "ow-electron-v44.11.3-beta.3-win32-x64.zip": "261fec7cd3bb2e0466072064ee3e3fdea352ff6e87c5d289f1ff20e6220690fc"
10
10
  }
@@ -1,4 +1,4 @@
1
- // Shared Overwolf type declarations for ow-electron 44.11.3-beta.1
1
+ // Shared Overwolf type declarations for ow-electron 44.11.3-beta.3
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
@@ -112,7 +112,10 @@ declare global {
112
112
  *
113
113
  * The window shows only once the page has rendered its dialog.
114
114
  *
115
- * Resolves when the first layer closes. Rejects when no page loads - a
115
+ * Resolves once the user is done: after "Accept All Purposes", or after
116
+ * "Manage" once the CMP window closes. It also resolves when the parent
117
+ * closes first. Calling it again while it is pending focuses the open
118
+ * window and returns the same promise. Rejects when no page loads - a
116
119
  * network error, an http error (e.g. 404), or the page did not render
117
120
  * within 30 seconds, for the page and the default one - so wrap the
118
121
  * call in try/catch:
@@ -132,13 +135,19 @@ declare global {
132
135
  /**
133
136
  * Rejects all consent for the user. Use it when the user asks to reject
134
137
  * 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
138
+ * Resolves once the rejected consent is stored. Rejects when the consent
139
+ * page fails to load or does not store it. Calling it again while it is
140
+ * pending returns the same promise. It is safe to call at app startup.
136
141
  */
137
142
  rejectAllConsent(): Promise<void>;
138
143
 
139
144
  /**
140
145
  * Opens the CMP configuration window - should only be called when
141
146
  * isCMPRequired returns true.
147
+ *
148
+ * Resolves once the window has opened, not when it closes. When its page
149
+ * fails to load (a network error, an http error, or not loaded within 30
150
+ * seconds), the window closes by itself.
142
151
  */
143
152
  openCMPWindow(options?: CMPWindowOptions): Promise<void>;
144
153
 
@@ -353,6 +362,12 @@ declare global {
353
362
  */
354
363
  backdrop?: boolean;
355
364
 
365
+ /**
366
+ * The preloader spinner color of the CMP window "Manage" opens.
367
+ * Default is `buttonColor` when it is set, '#D34037' otherwise.
368
+ */
369
+ preLoaderSpinnerColor?: string;
370
+
356
371
  /**
357
372
  * Overrides the first layer page url.
358
373
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron",
3
- "version": "44.11.3-beta.1",
4
- "owElectronVersion": "44.11.3-beta.1",
3
+ "version": "44.11.3-beta.3",
4
+ "owElectronVersion": "44.11.3-beta.3",
5
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",