@todesktop/shared 7.189.1 → 7.189.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/lib/desktopify2.d.ts +4 -0
- package/lib/toDesktop.d.ts +2 -0
- package/package.json +1 -1
- package/src/desktopify2.ts +4 -0
- package/src/toDesktop.ts +6 -0
package/lib/desktopify2.d.ts
CHANGED
|
@@ -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
|
*/
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -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;
|
|
@@ -165,6 +166,7 @@ export interface UserIHaveAcceptedInviteFrom {
|
|
|
165
166
|
email: string;
|
|
166
167
|
firstName: string;
|
|
167
168
|
lastName: string;
|
|
169
|
+
receiver?: Pick<IUser, 'id' | 'email'>;
|
|
168
170
|
}
|
|
169
171
|
export interface CiInput {
|
|
170
172
|
appData: IApp;
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -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
|
|
@@ -189,6 +192,9 @@ export interface UserIHaveAcceptedInviteFrom {
|
|
|
189
192
|
email: string;
|
|
190
193
|
firstName: string;
|
|
191
194
|
lastName: string;
|
|
195
|
+
|
|
196
|
+
// duplicated user details about the person who accepted the invite
|
|
197
|
+
receiver?: Pick<IUser, 'id' | 'email'>;
|
|
192
198
|
}
|
|
193
199
|
|
|
194
200
|
export interface CiInput {
|