@todesktop/shared 7.189.1 → 7.189.2

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.
@@ -253,6 +253,10 @@ export type AutoUpdateConfiguration = {
253
253
  };
254
254
  };
255
255
  export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
256
+ /**
257
+ * Relaxes our "deny" policy when attempting to open a window with an `"about:blank"` URL.
258
+ */
259
+ allowAboutBlankWindowOpenHandler?: boolean;
256
260
  /**
257
261
  * Used as appUserModelId on windows
258
262
  */
@@ -150,6 +150,7 @@ export interface IUser extends Schemable {
150
150
  export interface FeatureFlags {
151
151
  desktopAppPlugins: boolean;
152
152
  macAppStore: boolean;
153
+ aboutBlankWindowOpenHandler: boolean;
153
154
  }
154
155
  export interface UserIHaveSentInviteTo {
155
156
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.189.1",
3
+ "version": "7.189.2",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -385,6 +385,10 @@ export type AutoUpdateConfiguration = {
385
385
  };
386
386
 
387
387
  export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
388
+ /**
389
+ * Relaxes our "deny" policy when attempting to open a window with an `"about:blank"` URL.
390
+ */
391
+ allowAboutBlankWindowOpenHandler?: boolean;
388
392
  /**
389
393
  * Used as appUserModelId on windows
390
394
  */
package/src/toDesktop.ts CHANGED
@@ -170,6 +170,9 @@ export interface FeatureFlags {
170
170
 
171
171
  // Whether the user can create builds for the mac app store.
172
172
  macAppStore: boolean;
173
+
174
+ // Whether the user can see the toggle for allowing blank urls
175
+ aboutBlankWindowOpenHandler: boolean;
173
176
  }
174
177
 
175
178
  // uses an `email` identifier because an invited user may not have an account