@domicile-desktop/sdk 0.0.0-alpha-6840a39cf5bb → 0.0.0-alpha-e8ef2eaa7f54

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.
@@ -26,6 +26,13 @@ export declare const WEBVIEW_LOADING_CHANGE_EVENT = "domicile-loading-change";
26
26
  * payload. Bubbles.
27
27
  */
28
28
  export declare const WEBVIEW_LOAD_PROGRESS_CHANGE_EVENT = "domicile-load-progress-change";
29
+ /**
30
+ * Fired when {@link HTMLWebViewElement.downloadCount},
31
+ * {@link HTMLWebViewElement.downloadReceivedBytes} or
32
+ * {@link HTMLWebViewElement.downloadTotalBytes} changes. Carries no payload.
33
+ * Bubbles.
34
+ */
35
+ export declare const WEBVIEW_DOWNLOADS_CHANGE_EVENT = "domicile-downloads-change";
29
36
  /**
30
37
  * Fired when {@link HTMLWebViewElement.url} or
31
38
  * {@link HTMLWebViewElement.security} changes. Carries no payload. Bubbles.
@@ -294,6 +301,19 @@ declare global {
294
301
  * {@link WEBVIEW_LOAD_PROGRESS_CHANGE_EVENT}.
295
302
  */
296
303
  readonly loadProgress: number;
304
+ /**
305
+ * How many of the page's downloads are in progress. A download counts once
306
+ * the shell has said where it goes. Changes fire
307
+ * {@link WEBVIEW_DOWNLOADS_CHANGE_EVENT}.
308
+ */
309
+ readonly downloadCount: number;
310
+ /** Bytes received across the downloads in progress. */
311
+ readonly downloadReceivedBytes: number;
312
+ /**
313
+ * Bytes expected across the downloads in progress. `0` when any one's size
314
+ * is unknown.
315
+ */
316
+ readonly downloadTotalBytes: number;
297
317
  /**
298
318
  * The current address, as a browser's address bar shows it. Differs from
299
319
  * {@link HTMLWebViewElement.src} after links and redirects.
@@ -32,6 +32,13 @@ export const WEBVIEW_LOADING_CHANGE_EVENT = "domicile-loading-change";
32
32
  * payload. Bubbles.
33
33
  */
34
34
  export const WEBVIEW_LOAD_PROGRESS_CHANGE_EVENT = "domicile-load-progress-change";
35
+ /**
36
+ * Fired when {@link HTMLWebViewElement.downloadCount},
37
+ * {@link HTMLWebViewElement.downloadReceivedBytes} or
38
+ * {@link HTMLWebViewElement.downloadTotalBytes} changes. Carries no payload.
39
+ * Bubbles.
40
+ */
41
+ export const WEBVIEW_DOWNLOADS_CHANGE_EVENT = "domicile-downloads-change";
35
42
  /**
36
43
  * Fired when {@link HTMLWebViewElement.url} or
37
44
  * {@link HTMLWebViewElement.security} changes. Carries no payload. Bubbles.
package/package.json CHANGED
@@ -120,7 +120,7 @@
120
120
  "test:unit": "bun test"
121
121
  },
122
122
  "type": "module",
123
- "version": "0.0.0-alpha-6840a39cf5bb",
123
+ "version": "0.0.0-alpha-e8ef2eaa7f54",
124
124
  "repository": {
125
125
  "type": "git",
126
126
  "url": "git+https://github.com/cprussin/domicile.git",