From 54e9e72e504910e742b2b68cc3d1eed4316bc995 Mon Sep 17 00:00:00 2001 From: Emil Pettersson Date: Sun, 28 Jul 2024 15:08:19 +0200 Subject: [PATCH] Updated for v31.3.0+wvcus --- checksums.json | 32 +++++++++++++++--------------- electron.d.ts | 53 +++++++++++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- 3 files changed, 69 insertions(+), 18 deletions(-) diff --git a/checksums.json b/checksums.json index 0c1f69d..8d6f386 100644 --- a/checksums.json +++ b/checksums.json @@ -1,18 +1,18 @@ { - "electron-api.json": "46eec6c893e484e23502ab9cb2bcc439830ca6f11ae3da0454c99b331fff53af", - "electron-v31.2.1+wvcus-darwin-arm64-dsym.zip": "b6042e4515a60fa06f171178425c7cffb1e1069d1a421dc0c7f0c11ca47c62e7", - "electron-v31.2.1+wvcus-darwin-arm64-symbols.zip": "eb70d8687ba087035669f779b086f01494b8defc18faffbba55628cc5ceb15e3", - "electron-v31.2.1+wvcus-darwin-arm64.zip": "c12c1cf8613747b1a1bc99f2fb580978371af8fd56513543242d8feef1da0d53", - "electron-v31.2.1+wvcus-darwin-x64-dsym.zip": "1fb745d99b32cf527a3363196ae7309f7aa13730817558585377cc52764257d1", - "electron-v31.2.1+wvcus-darwin-x64-symbols.zip": "fe1d578127a755a10069cbc163fe57c87166c96f4bb63cdfe723901428f0f760", - "electron-v31.2.1+wvcus-darwin-x64.zip": "2fc8a1260036aed9ab38c4c00a6ebfd3b6299e40b2ee1f2e53e9ffff3fb75612", - "electron-v31.2.1+wvcus-linux-x64-symbols.zip": "38591a7672c6b8824eaf3bd66dfc35d7f22fbcaff63788798c5fe5ddbbaf0da7", - "electron-v31.2.1+wvcus-linux-x64.zip": "de437188a5556b79728fae7538105227c89ba9d0eb717a0d525f3e0432eab79a", - "electron-v31.2.1+wvcus-win32-ia32-pdb.zip": "9926f2f0e93d578cfb3075bd600956da98ee8e6db2866c9a82d5019ec1719d1b", - "electron-v31.2.1+wvcus-win32-ia32-symbols.zip": "e04504a9b05b3032caa6abb98b8dec6eef07bd670ddab4cffe71eb8c842bdccf", - "electron-v31.2.1+wvcus-win32-ia32.zip": "2a0476fb529130a19bc930dcac50810c00851f2475dd73636435575fa1a3f35a", - "electron-v31.2.1+wvcus-win32-x64-pdb.zip": "33d0a5f3f72331599f2f02e0b24d028cea27d8f33520929669509e0933b994cc", - "electron-v31.2.1+wvcus-win32-x64-symbols.zip": "98915d0276a27b204ab9a87082ab99c6ec8c64223a42b1de234e3be566c4b2f5", - "electron-v31.2.1+wvcus-win32-x64.zip": "d1f87c08e26f3b548c153d4cf7267771907837ca4d7058fc7230c555b95e7642", - "electron.d.ts": "ea43646216edc6f896f006d07c19c01a9d5bbb91409425e37e0f9f60ed494b3d" + "electron-api.json": "8e5ad04eae9c1c17e632dbd77eb8de81721f427c43af4146616df5fa06b57c4f", + "electron-v31.3.0+wvcus-darwin-arm64-dsym.zip": "b75c130cc7506f9755c780c60174eb6ae0f7f3e081007831b1796156070382e6", + "electron-v31.3.0+wvcus-darwin-arm64-symbols.zip": "b25ed04338c8e6bc4ae84af61525d8ccc00f7647acc2ec3bceed3f36cc048d31", + "electron-v31.3.0+wvcus-darwin-arm64.zip": "91e9e23646d22f15840d7c7fb585ecabc4a4adb495d0ed105082d16d36518b05", + "electron-v31.3.0+wvcus-darwin-x64-dsym.zip": "852f5e5b4e2a726aefa875e92e8c83c17235e9e2cbe2ba012594641417f7e8f1", + "electron-v31.3.0+wvcus-darwin-x64-symbols.zip": "6dd53978b9c7d66c43f1e834c0f0df8d4784e84878feb7c641c0b67f7ee7b90f", + "electron-v31.3.0+wvcus-darwin-x64.zip": "419482927d070c76c734f2c73d70ad561785a6b0dded84359cc9a2da9c1c0f8a", + "electron-v31.3.0+wvcus-linux-x64-symbols.zip": "c6994872704cb5b6ecd8883a687af74af9984be000a4a1f86a5ef526e8d67031", + "electron-v31.3.0+wvcus-linux-x64.zip": "7fb1a9186d249b7935e01673dadee1bdee8f850a427b0942087de95658bb1b3e", + "electron-v31.3.0+wvcus-win32-ia32-pdb.zip": "8f7b7f6b6b0bcbbae30b15e13ed7c94665b6a9fc0a78c11921933f39efc60c63", + "electron-v31.3.0+wvcus-win32-ia32-symbols.zip": "e6237a384420c790c431adbbc1eb448f2002727c05567a56e00601e05db14da1", + "electron-v31.3.0+wvcus-win32-ia32.zip": "cf4790d35dfd620aaed133952d0c0bdd8bd537e369046dae0d95dfb94525eb3c", + "electron-v31.3.0+wvcus-win32-x64-pdb.zip": "29690da997eefb449ab85acb2ebeb22617d027001ff3d814409498c4a8e82131", + "electron-v31.3.0+wvcus-win32-x64-symbols.zip": "ab0d5c431905c6bd7e8698567df30f916bbf1a721db7b9676997a3f2ea60879a", + "electron-v31.3.0+wvcus-win32-x64.zip": "e72157e01c9119346f8ad03690f909f38fc3e0d26b767f3c08296eea76ce5799", + "electron.d.ts": "a8a4eb9637c7e2581b0c8fc081a5ebe2f2d5cafefe74910c72800ec9eb40ad92" } diff --git a/electron.d.ts b/electron.d.ts index 8531316..c0daf19 100644 --- a/electron.d.ts +++ b/electron.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Electron 31.2.1+wcus +// Type definitions for Electron 31.3.0+wcus // Project: http://electronjs.org/ // Definitions by: The Electron Team // Definitions: https://github.com/electron/typescript-definitions @@ -5257,6 +5257,10 @@ declare namespace Electron { isFocused(): boolean; /** * Whether the window is in fullscreen mode. + * + * **Note:** On macOS, fullscreen transitions take place asynchronously. When + * querying for a BrowserWindow's fullscreen status, you should ensure that either + * the 'enter-full-screen' or 'leave-full-screen' events have been emitted. */ isFullScreen(): boolean; /** @@ -7740,6 +7744,14 @@ declare namespace Electron { * The Content-Disposition field from the response header. */ getContentDisposition(): string; + /** + * The current download speed in bytes per second. + */ + getCurrentBytesPerSecond(): number; + /** + * Number of seconds since the UNIX epoch when the download ended. + */ + getEndTime(): number; /** * ETag header value. */ @@ -7760,6 +7772,10 @@ declare namespace Electron { * The files mime type. */ getMimeType(): string; + /** + * The download completion in percent. + */ + getPercentComplete(): number; /** * The received bytes of the download item. */ @@ -11128,6 +11144,21 @@ declare namespace Electron { extension: Extension) => void): this; removeListener(event: 'extension-unloaded', listener: (event: Event, extension: Extension) => void): this; + on(event: 'file-system-access-restricted', listener: (event: Event, + details: FileSystemAccessRestrictedDetails, + callback: (action: 'allow' | 'deny' | 'tryAgain') => void) => void): this; + off(event: 'file-system-access-restricted', listener: (event: Event, + details: FileSystemAccessRestrictedDetails, + callback: (action: 'allow' | 'deny' | 'tryAgain') => void) => void): this; + once(event: 'file-system-access-restricted', listener: (event: Event, + details: FileSystemAccessRestrictedDetails, + callback: (action: 'allow' | 'deny' | 'tryAgain') => void) => void): this; + addListener(event: 'file-system-access-restricted', listener: (event: Event, + details: FileSystemAccessRestrictedDetails, + callback: (action: 'allow' | 'deny' | 'tryAgain') => void) => void): this; + removeListener(event: 'file-system-access-restricted', listener: (event: Event, + details: FileSystemAccessRestrictedDetails, + callback: (action: 'allow' | 'deny' | 'tryAgain') => void) => void): this; /** * Emitted after `navigator.hid.requestDevice` has been called and * `select-hid-device` has fired if a new device becomes available before the @@ -19146,6 +19177,21 @@ declare namespace Electron { size: ('small' | 'normal' | 'large'); } + interface FileSystemAccessRestrictedDetails { + /** + * The origin that initiated access to the blocked path. + */ + origin: string; + /** + * Whether or not the path is a directory. + */ + isDirectory: boolean; + /** + * The blocked path attempting to be accessed. + */ + path: string; + } + interface FindInPageOptions { /** * Whether to search forward or backward, defaults to `true`. @@ -21923,6 +21969,7 @@ declare namespace Electron { type EntryAtIndex = Electron.EntryAtIndex; type FeedURLOptions = Electron.FeedURLOptions; type FileIconOptions = Electron.FileIconOptions; + type FileSystemAccessRestrictedDetails = Electron.FileSystemAccessRestrictedDetails; type FindInPageOptions = Electron.FindInPageOptions; type FocusOptions = Electron.FocusOptions; type ForkOptions = Electron.ForkOptions; @@ -22270,6 +22317,7 @@ declare namespace Electron { type EntryAtIndex = Electron.EntryAtIndex; type FeedURLOptions = Electron.FeedURLOptions; type FileIconOptions = Electron.FileIconOptions; + type FileSystemAccessRestrictedDetails = Electron.FileSystemAccessRestrictedDetails; type FindInPageOptions = Electron.FindInPageOptions; type FocusOptions = Electron.FocusOptions; type ForkOptions = Electron.ForkOptions; @@ -22547,6 +22595,7 @@ declare namespace Electron { type EntryAtIndex = Electron.EntryAtIndex; type FeedURLOptions = Electron.FeedURLOptions; type FileIconOptions = Electron.FileIconOptions; + type FileSystemAccessRestrictedDetails = Electron.FileSystemAccessRestrictedDetails; type FindInPageOptions = Electron.FindInPageOptions; type FocusOptions = Electron.FocusOptions; type ForkOptions = Electron.ForkOptions; @@ -22821,6 +22870,7 @@ declare namespace Electron { type EntryAtIndex = Electron.EntryAtIndex; type FeedURLOptions = Electron.FeedURLOptions; type FileIconOptions = Electron.FileIconOptions; + type FileSystemAccessRestrictedDetails = Electron.FileSystemAccessRestrictedDetails; type FindInPageOptions = Electron.FindInPageOptions; type FocusOptions = Electron.FocusOptions; type ForkOptions = Electron.ForkOptions; @@ -23185,6 +23235,7 @@ declare namespace Electron { type EntryAtIndex = Electron.EntryAtIndex; type FeedURLOptions = Electron.FeedURLOptions; type FileIconOptions = Electron.FileIconOptions; + type FileSystemAccessRestrictedDetails = Electron.FileSystemAccessRestrictedDetails; type FindInPageOptions = Electron.FindInPageOptions; type FocusOptions = Electron.FocusOptions; type ForkOptions = Electron.ForkOptions; diff --git a/package.json b/package.json index a8866d6..f357f88 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "node": ">= 12.20.55" }, "name": "electron", - "version": "31.2.1+wvcus", + "version": "31.3.0+wvcus", "repository": "https://github.com/castlabs/electron-releases", "description": "Build cross platform desktop apps with JavaScript, HTML, CSS, and Widevine DRM protection", "license": "MIT",