@todesktop/shared 7.156.0 → 7.158.0

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.
@@ -93,6 +93,13 @@ export interface Build {
93
93
  releasedAt?: ISODate;
94
94
  shouldCodeSign: boolean;
95
95
  shouldRelease: boolean;
96
+ smokeTest?: {
97
+ buildServerExecutionId?: string;
98
+ isCanceled?: boolean;
99
+ linux?: SmokeTestProgress;
100
+ mac?: SmokeTestProgress;
101
+ win?: SmokeTestProgress;
102
+ };
96
103
  sourcePackageManager?: PackageManager;
97
104
  standardUniversalDownloadUrl?: URL;
98
105
  startedAt: ISODate;
@@ -136,6 +143,11 @@ export interface MacCustomManifest extends CustomManifest {
136
143
  export interface WindowsCustomManifest extends CustomManifest {
137
144
  artifacts: Record<WindowsArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
138
145
  }
146
+ export interface SmokeTestProgress {
147
+ message?: string;
148
+ progress: number;
149
+ state: 'progress' | 'done' | 'error';
150
+ }
139
151
  export declare const hasBuildKickedOff: (build: Build) => boolean;
140
152
  export declare const isPlatformBuildRunning: (platformBuild: PlatformBuild) => boolean;
141
153
  export declare const isCiBuildRunning: (build: Build) => boolean;
@@ -246,7 +246,7 @@ export interface DesktopifyApp2 {
246
246
  /**
247
247
  * Regex patterns for internal app urls
248
248
  */
249
- internalUrls?: ISwitchableValue<string>;
249
+ internalUrls: ISwitchableValue<string>;
250
250
  /**
251
251
  * By default ToDesktop uses native `window.open` to support Firebase social login.
252
252
  * This makes the app use electron's `window.open`.
@@ -255,7 +255,7 @@ export interface DesktopifyApp2 {
255
255
  /**
256
256
  * Specifys the app's user agent
257
257
  */
258
- userAgent?: ISwitchableValue<string>;
258
+ userAgent: ISwitchableValue<string>;
259
259
  /**
260
260
  * Disable devTools on all app windows
261
261
  */
@@ -263,7 +263,7 @@ export interface DesktopifyApp2 {
263
263
  /**
264
264
  * Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
265
265
  */
266
- appProtocol?: ISwitchableValue<string>;
266
+ appProtocol: ISwitchableValue<string>;
267
267
  /**
268
268
  * Disables the same-origin policy
269
269
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.156.0",
3
+ "version": "7.158.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -3,6 +3,9 @@ import {
3
3
  Configuration,
4
4
  PackagerOptions,
5
5
  PublishOptions,
6
+ // app-builder-lib shouldn't be installed as a dependency for dependent
7
+ // packages since it's too large
8
+ // @ts-ignore
6
9
  } from "app-builder-lib";
7
10
  import {
8
11
  MenuItemConstructorOptions,
@@ -130,6 +133,13 @@ export interface Build {
130
133
  releasedAt?: ISODate;
131
134
  shouldCodeSign: boolean;
132
135
  shouldRelease: boolean;
136
+ smokeTest?: {
137
+ buildServerExecutionId?: string;
138
+ isCanceled?: boolean;
139
+ linux?: SmokeTestProgress;
140
+ mac?: SmokeTestProgress;
141
+ win?: SmokeTestProgress;
142
+ };
133
143
  // sourceArchiveUrl: URL;
134
144
  sourcePackageManager?: PackageManager;
135
145
  standardUniversalDownloadUrl?: URL;
@@ -207,6 +217,12 @@ export interface WindowsCustomManifest extends CustomManifest {
207
217
  >;
208
218
  }
209
219
 
220
+ export interface SmokeTestProgress {
221
+ message?: string;
222
+ progress: number;
223
+ state: 'progress' | 'done' | 'error';
224
+ }
225
+
210
226
  export const hasBuildKickedOff = (build: Build): boolean => {
211
227
  if (!build) {
212
228
  return false;
@@ -371,7 +371,7 @@ export interface DesktopifyApp2 {
371
371
  /**
372
372
  * Regex patterns for internal app urls
373
373
  */
374
- internalUrls?: ISwitchableValue<string>;
374
+ internalUrls: ISwitchableValue<string>;
375
375
  /**
376
376
  * By default ToDesktop uses native `window.open` to support Firebase social login.
377
377
  * This makes the app use electron's `window.open`.
@@ -380,7 +380,7 @@ export interface DesktopifyApp2 {
380
380
  /**
381
381
  * Specifys the app's user agent
382
382
  */
383
- userAgent?: ISwitchableValue<string>;
383
+ userAgent: ISwitchableValue<string>;
384
384
  /**
385
385
  * Disable devTools on all app windows
386
386
  */
@@ -388,7 +388,7 @@ export interface DesktopifyApp2 {
388
388
  /**
389
389
  * Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
390
390
  */
391
- appProtocol?: ISwitchableValue<string>;
391
+ appProtocol: ISwitchableValue<string>;
392
392
  /**
393
393
  * Disables the same-origin policy
394
394
  */