@todesktop/shared 7.186.20 → 7.186.22

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.
@@ -32,7 +32,9 @@ export declare enum BuildStatus {
32
32
  cancelled = "cancelled"
33
33
  }
34
34
  export declare type Arch = 'ia32' | 'x64' | 'arm64';
35
- export declare type MacArch = 'ia32' | 'x64' | 'arm64' | 'universal';
35
+ export declare type MacArch = 'x64' | 'arm64' | 'universal';
36
+ export declare type LinuxArch = 'x64' | 'arm64';
37
+ export declare type WindowsArch = 'ia32' | 'x64' | 'arm64' | 'universal';
36
38
  export declare type LinuxArtifactName = 'appImage' | 'deb' | 'rpm' | 'snap';
37
39
  export declare type MacArtifactName = 'dmg' | 'zip' | 'installer';
38
40
  export declare type WindowsArtifactName = 'msi' | 'nsis' | 'nsis-web' | 'nsis-web-7z' | 'appx';
@@ -143,13 +145,13 @@ export interface CustomManifest {
143
145
  version: SemanticVersion;
144
146
  }
145
147
  export interface LinuxCustomManifest extends CustomManifest {
146
- artifacts: Record<LinuxArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
148
+ artifacts: Record<LinuxArtifactName, Record<LinuxArch, CustomManifestArtifactDetails | null> | null>;
147
149
  }
148
150
  export interface MacCustomManifest extends CustomManifest {
149
151
  artifacts: Record<MacArtifactName, Record<MacArch, CustomManifestArtifactDetails | null> | null>;
150
152
  }
151
153
  export interface WindowsCustomManifest extends CustomManifest {
152
- artifacts: Record<WindowsArtifactName, Record<Arch, CustomManifestArtifactDetails | null> | null>;
154
+ artifacts: Record<WindowsArtifactName, Record<WindowsArch, CustomManifestArtifactDetails | null> | null>;
153
155
  }
154
156
  export interface SmokeTestProgress {
155
157
  appLaunched?: boolean;
@@ -166,6 +166,23 @@ export interface DesktopifyAppWindow {
166
166
  * Allows user to `Cmd+F` or `Edit>Find` to search for text on page
167
167
  */
168
168
  isFindInPageEnabled?: boolean;
169
+ /**
170
+ * Configuration options for find in page
171
+ */
172
+ findInPageOptions?: {
173
+ horizontalPlacement?: {
174
+ type: 'left' | 'default' | 'right';
175
+ left: FindInPagePlacement;
176
+ default: FindInPagePlacement;
177
+ right: FindInPagePlacement;
178
+ };
179
+ verticalPlacement?: {
180
+ type: 'top' | 'default' | 'bottom';
181
+ top: FindInPagePlacement;
182
+ default: FindInPagePlacement;
183
+ bottom: FindInPagePlacement;
184
+ };
185
+ };
169
186
  /**
170
187
  * Inital visibility of window
171
188
  */
@@ -456,6 +473,9 @@ export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
456
473
  */
457
474
  shouldProtectContent?: boolean;
458
475
  }
476
+ export declare type FindInPagePlacement = {
477
+ offset: number;
478
+ };
459
479
  export interface IApp2<Plugin = DesktopAppPlugin> extends BaseApp {
460
480
  desktopApp: DesktopifyApp2<Plugin>;
461
481
  desktopAppOverrides?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.186.20",
3
+ "version": "7.186.22",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -48,7 +48,9 @@ export enum BuildStatus {
48
48
  }
49
49
 
50
50
  export type Arch = 'ia32' | 'x64' | 'arm64';
51
- export type MacArch = 'ia32' | 'x64' | 'arm64' | 'universal';
51
+ export type MacArch = 'x64' | 'arm64' | 'universal';
52
+ export type LinuxArch = 'x64' | 'arm64';
53
+ export type WindowsArch = 'ia32' | 'x64' | 'arm64' | 'universal';
52
54
  export type LinuxArtifactName = 'appImage' | 'deb' | 'rpm' | 'snap';
53
55
  export type MacArtifactName = 'dmg' | 'zip' | 'installer';
54
56
  export type WindowsArtifactName =
@@ -206,7 +208,7 @@ export interface CustomManifest {
206
208
  export interface LinuxCustomManifest extends CustomManifest {
207
209
  artifacts: Record<
208
210
  LinuxArtifactName,
209
- Record<Arch, CustomManifestArtifactDetails | null> | null
211
+ Record<LinuxArch, CustomManifestArtifactDetails | null> | null
210
212
  >;
211
213
  }
212
214
 
@@ -220,7 +222,7 @@ export interface MacCustomManifest extends CustomManifest {
220
222
  export interface WindowsCustomManifest extends CustomManifest {
221
223
  artifacts: Record<
222
224
  WindowsArtifactName,
223
- Record<Arch, CustomManifestArtifactDetails | null> | null
225
+ Record<WindowsArch, CustomManifestArtifactDetails | null> | null
224
226
  >;
225
227
  }
226
228
 
@@ -292,6 +292,23 @@ export interface DesktopifyAppWindow {
292
292
  * Allows user to `Cmd+F` or `Edit>Find` to search for text on page
293
293
  */
294
294
  isFindInPageEnabled?: boolean;
295
+ /**
296
+ * Configuration options for find in page
297
+ */
298
+ findInPageOptions?: {
299
+ horizontalPlacement?: {
300
+ type: 'left' | 'default' | 'right';
301
+ left: FindInPagePlacement;
302
+ default: FindInPagePlacement;
303
+ right: FindInPagePlacement;
304
+ };
305
+ verticalPlacement?: {
306
+ type: 'top' | 'default' | 'bottom';
307
+ top: FindInPagePlacement;
308
+ default: FindInPagePlacement;
309
+ bottom: FindInPagePlacement;
310
+ };
311
+ };
295
312
  /**
296
313
  * Inital visibility of window
297
314
  */
@@ -595,6 +612,8 @@ export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
595
612
  shouldProtectContent?: boolean;
596
613
  }
597
614
 
615
+ export type FindInPagePlacement = { offset: number };
616
+
598
617
  export interface IApp2<Plugin = DesktopAppPlugin> extends BaseApp {
599
618
  // Be careful when coercing to `IApp2` that we always check for `desktopApp` first
600
619
  desktopApp: DesktopifyApp2<Plugin>;