deck-plugin-sdk 1.10.2 → 1.11.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.
@@ -162,6 +162,7 @@ export declare function registerStar(pane: string, run: () => void): () => void;
162
162
  export declare function registerVaultKey(pane: string, run: () => void): () => void;
163
163
  /** The pane's address bar registers how to focus it, for Ctrl+L. */
164
164
  export declare function registerAddressBar(pane: string, focus: () => void): () => void;
165
+ export declare function registerBrowserControls(pane: string, holds: () => boolean): () => void;
165
166
  /** Tell Rust which chords to take from a page. Called when a browser pane mounts and whenever a
166
167
  * binding changes. */
167
168
  export declare function syncBrowserKeys(): void;
@@ -233,5 +234,15 @@ export declare const pageBox: (pane: string) => DOMRect | null;
233
234
  export declare const paneWindow: (pane: string) => Window;
234
235
  /** Close the pane's webview to give back its memory, keeping the tab and its address. */
235
236
  export declare function discardBrowserPane(pane: string): Promise<void>;
237
+ /** Is this page's site one never to put to sleep (Browser settings)? "slack.com" covers
238
+ * app.slack.com too. */
239
+ export declare function neverSleeps(url: string, list?: string[]): boolean;
240
+ /** The sites open in browser tabs right now (not private ones), each once: host, a page title and
241
+ * its icon. For picking a site rather than typing it. */
242
+ export declare function openSites(): {
243
+ host: string;
244
+ title: string;
245
+ favicon: string;
246
+ }[];
236
247
  export declare function picturePages(on: boolean): void;
237
248
  export declare function trackBrowser(pane: string, el: HTMLElement, url: string): () => void;
@@ -45,6 +45,8 @@ export interface LayoutTab {
45
45
  hidden?: boolean;
46
46
  /** The tab group it is in (LayoutWorkspace.groups); a group's tabs sit together in one zone. */
47
47
  group?: string;
48
+ /** A colour of its own, an index into GROUP_COLORS: a faint tint behind the tab. */
49
+ color?: number;
48
50
  /**
49
51
  * Torn off into a window of its own (core/floatwin.ts): the window's id. Such a tab is in no
50
52
  * zone, though it keeps its x/y to go back to. A restart reopens the window (Layout.floats has