@todesktop/shared 7.186.21 → 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.
- package/lib/desktopify2.d.ts +20 -0
- package/package.json +1 -1
- package/src/desktopify2.ts +19 -0
package/lib/desktopify2.d.ts
CHANGED
|
@@ -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
package/src/desktopify2.ts
CHANGED
|
@@ -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>;
|