electron 35.0.1 β 36.0.0-alpha.2
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/README.md +0 -1
- package/checksums.json +75 -75
- package/electron.d.ts +138 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
[](https://electronjs.org)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/electron/electron/actions/workflows/build.yml)
|
|
4
|
-
[](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/main)
|
|
5
4
|
[](https://discord.gg/electronjs)
|
|
6
5
|
|
|
7
6
|
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-
|
|
14
|
-
"electron-
|
|
15
|
-
"electron-
|
|
16
|
-
"electron-
|
|
17
|
-
"electron-
|
|
18
|
-
"electron-
|
|
19
|
-
"electron-
|
|
20
|
-
"electron-
|
|
21
|
-
"electron-
|
|
22
|
-
"electron-
|
|
23
|
-
"electron-
|
|
24
|
-
"electron-
|
|
25
|
-
"electron-
|
|
26
|
-
"electron-
|
|
27
|
-
"electron-
|
|
28
|
-
"electron-
|
|
29
|
-
"electron-
|
|
30
|
-
"electron-
|
|
31
|
-
"electron-
|
|
32
|
-
"electron-
|
|
33
|
-
"electron-
|
|
34
|
-
"electron-
|
|
35
|
-
"electron-
|
|
36
|
-
"electron-
|
|
37
|
-
"electron-
|
|
38
|
-
"electron-
|
|
39
|
-
"electron-
|
|
40
|
-
"electron-
|
|
41
|
-
"electron-
|
|
42
|
-
"electron-
|
|
43
|
-
"electron-
|
|
44
|
-
"electron-
|
|
45
|
-
"electron-
|
|
46
|
-
"electron-
|
|
47
|
-
"electron-
|
|
48
|
-
"electron-
|
|
49
|
-
"electron-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"libcxx-objects-
|
|
64
|
-
"libcxx-objects-
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v36.0.0-alpha.2-darwin-arm64.zip": "0333546bbc35a5238192447612bda49df08f711edd18a9687c7db3d3f8d087b1",
|
|
3
|
+
"chromedriver-v36.0.0-alpha.2-darwin-x64.zip": "6b999301799cea789bfcc8d193afad9d82c478a1f419dbbd66e1af30b338c332",
|
|
4
|
+
"chromedriver-v36.0.0-alpha.2-linux-arm64.zip": "411b00255daed4b52c5b09e17db15fe2600fc8b3484784a50ce3cde0391a3acd",
|
|
5
|
+
"chromedriver-v36.0.0-alpha.2-linux-armv7l.zip": "ac17a2735c5ad268fde29bcd083179a6b0e9dc776e5e2f7be228c06451b78625",
|
|
6
|
+
"chromedriver-v36.0.0-alpha.2-linux-x64.zip": "1876fc0a58e398f5ba802c3d85ff1775b99d6db046dde5f6ec71c18626e71f85",
|
|
7
|
+
"chromedriver-v36.0.0-alpha.2-mas-arm64.zip": "acf04e6d1b4ef6db73c5be013e4f3833615a8002609a63230b742f1456b8e350",
|
|
8
|
+
"chromedriver-v36.0.0-alpha.2-mas-x64.zip": "560e6c6fb8f8bcccdeb1e540ff46b17c34263216ce7af7e639fa43f7292376a3",
|
|
9
|
+
"chromedriver-v36.0.0-alpha.2-win32-arm64.zip": "0223982e25e24bc3df790a9c36e3c13a9466f8024709e02a1f2b69d4ec4939b6",
|
|
10
|
+
"chromedriver-v36.0.0-alpha.2-win32-ia32.zip": "113721cff5c2c70a7f7204a3b3843b2050fa1e3676c8de49fe09b397a458ec7e",
|
|
11
|
+
"chromedriver-v36.0.0-alpha.2-win32-x64.zip": "49997a64c46a41e0e6b74f30a1e59e88fedce2796c94e8ee4ccd7852092939b0",
|
|
12
|
+
"electron-api.json": "b859fecb5500817a2e83f2f7a63891093ac77353ab35e5c866a5da8c37ba4810",
|
|
13
|
+
"electron-v36.0.0-alpha.2-darwin-arm64-dsym-snapshot.zip": "485c05656ddf7c70f72358c665766d8f2b75ec397a4be250fce19f3f23b28b07",
|
|
14
|
+
"electron-v36.0.0-alpha.2-darwin-arm64-dsym.zip": "2b89fa5e8374d0cfe981765b20a37016f6eb83deeb8a69a1cb4a229e795c9f91",
|
|
15
|
+
"electron-v36.0.0-alpha.2-darwin-arm64-symbols.zip": "4e9c513ef4fd6dababecf70bfae9a9d98ea262cc26130ad88e61f0082103e7ac",
|
|
16
|
+
"electron-v36.0.0-alpha.2-darwin-arm64.zip": "fb39576b36c60dea0189ee5c7911d4b42d5496ec9b799d189e5442a7684ac1f5",
|
|
17
|
+
"electron-v36.0.0-alpha.2-darwin-x64-dsym-snapshot.zip": "4173fb5f0b9b49575f13cce1d7a0e035198f9ca9c93915edddadc6267a37314c",
|
|
18
|
+
"electron-v36.0.0-alpha.2-darwin-x64-dsym.zip": "095c93101804b3a5567948729b05cc1832400ada2a10fd27f376cf984d7b794a",
|
|
19
|
+
"electron-v36.0.0-alpha.2-darwin-x64-symbols.zip": "cb4b7cadd22ae5fd987f8dd43e06987f75237a347d82352e1c6db110f793ccac",
|
|
20
|
+
"electron-v36.0.0-alpha.2-darwin-x64.zip": "7183828524478521e71aecbe85fe4ffe81d61db6afc62c2fe3e25ffb2c361da6",
|
|
21
|
+
"electron-v36.0.0-alpha.2-linux-arm64-debug.zip": "de3ce7b72c6cb051acb01f84826d958d52dd1fc3ca67cbe6ec88251ff8a2dd5d",
|
|
22
|
+
"electron-v36.0.0-alpha.2-linux-arm64-symbols.zip": "17f5047e3b4b49d3e60f5b7952be7736dd1984701d6daf0cac7569ef8d15e4e2",
|
|
23
|
+
"electron-v36.0.0-alpha.2-linux-arm64.zip": "715e81c1e6ff85228a4b8b6c4776aed6db24b4b96f66bc0c9196174657805f97",
|
|
24
|
+
"electron-v36.0.0-alpha.2-linux-armv7l-debug.zip": "de3ce7b72c6cb051acb01f84826d958d52dd1fc3ca67cbe6ec88251ff8a2dd5d",
|
|
25
|
+
"electron-v36.0.0-alpha.2-linux-armv7l-symbols.zip": "a96fcacdfedc27b6eeb0ca2f0cbe8fc68206ba2cc083d818668785ba51410b98",
|
|
26
|
+
"electron-v36.0.0-alpha.2-linux-armv7l.zip": "3694673a88fa8ca61cc730515c018ff463a2ee30675f02dc54ab2cbef2f39a0e",
|
|
27
|
+
"electron-v36.0.0-alpha.2-linux-x64-debug.zip": "6d9d18c6b2f578a9ad2b0b6e662fa4c2e7e27837f53d0a5e36c0f0253d147340",
|
|
28
|
+
"electron-v36.0.0-alpha.2-linux-x64-symbols.zip": "14a10939bfce5002d98a5b13260b33be7577f42b5469646fbc191fe08373bc93",
|
|
29
|
+
"electron-v36.0.0-alpha.2-linux-x64.zip": "87f9df7f8a6fe5b02d6f6c2724562d80096af867574cc0e653ac538ef2919e1e",
|
|
30
|
+
"electron-v36.0.0-alpha.2-mas-arm64-dsym-snapshot.zip": "ec3bd50584f4975f100f3d8445cd1753385ade18345caefdccd4bd82398acde6",
|
|
31
|
+
"electron-v36.0.0-alpha.2-mas-arm64-dsym.zip": "9fb0a4f9af18fc9d3d97af7e30c50ea2410c3497455281e3976f366fde10171d",
|
|
32
|
+
"electron-v36.0.0-alpha.2-mas-arm64-symbols.zip": "6c382c1619674ed82c6caaa207073f0fbeb23cd4be8e5ba3d08de24c066936ba",
|
|
33
|
+
"electron-v36.0.0-alpha.2-mas-arm64.zip": "e9b4b97c49b420adb9435fc0b012701cb8ac72e50444fbf9effce9c4639d7689",
|
|
34
|
+
"electron-v36.0.0-alpha.2-mas-x64-dsym-snapshot.zip": "39edf79e04d3df09ccd372025916e50b4f9cc23c395eda041d056889f0aa1958",
|
|
35
|
+
"electron-v36.0.0-alpha.2-mas-x64-dsym.zip": "8aa1c4d190b2f7f236a1760f3c6255a3881dec4c8f5f253b88987fb00bcdcc34",
|
|
36
|
+
"electron-v36.0.0-alpha.2-mas-x64-symbols.zip": "4aa8dabc6e9a51861a788ab0308cbf140193ad87d8c5a0bc225dc1a811e291a3",
|
|
37
|
+
"electron-v36.0.0-alpha.2-mas-x64.zip": "155f0b1b47ff36e7fcd7affa706d2f75ffad587276afa3aab2b65096da9abb49",
|
|
38
|
+
"electron-v36.0.0-alpha.2-win32-arm64-pdb.zip": "4df3bec777416b12b2823d5318a9c9615997aa6934fba88e40e45519c12d2cd8",
|
|
39
|
+
"electron-v36.0.0-alpha.2-win32-arm64-symbols.zip": "b29d6aec1f6c0a9f218ca156dd997f3c108cd9bfedbc2c25bb027f48bd442f5e",
|
|
40
|
+
"electron-v36.0.0-alpha.2-win32-arm64-toolchain-profile.zip": "c23f84aabb09c24cd2ae759a547fdba4206af19a3bb0f4554a91cd9528648ad0",
|
|
41
|
+
"electron-v36.0.0-alpha.2-win32-arm64.zip": "b81610504dcd0d1e8dfceea3e18865b596f0181a6599f7b0a8ab595bc8e1a85f",
|
|
42
|
+
"electron-v36.0.0-alpha.2-win32-ia32-pdb.zip": "8973acaba1bb904709e5b74eb8cfc012950bb93c43faf430d922698167fbfcba",
|
|
43
|
+
"electron-v36.0.0-alpha.2-win32-ia32-symbols.zip": "58177b45b0a432834ab57da533c5835ca32164cfd41dc827c0d275f6a081008c",
|
|
44
|
+
"electron-v36.0.0-alpha.2-win32-ia32-toolchain-profile.zip": "c23f84aabb09c24cd2ae759a547fdba4206af19a3bb0f4554a91cd9528648ad0",
|
|
45
|
+
"electron-v36.0.0-alpha.2-win32-ia32.zip": "e894f990113a4b4ae9ef5d728f1114e5b2d942c41add6d02eb6bd2a6849f3d8a",
|
|
46
|
+
"electron-v36.0.0-alpha.2-win32-x64-pdb.zip": "0d35c22610d040e7f2979c1651ea0c0556c4fa86029322f35a69dd487e3fa3de",
|
|
47
|
+
"electron-v36.0.0-alpha.2-win32-x64-symbols.zip": "7e865bd5e563c6c00a5dc01c98d2a9b9402a09dfce5db31c7cd69612a5efa98d",
|
|
48
|
+
"electron-v36.0.0-alpha.2-win32-x64-toolchain-profile.zip": "c23f84aabb09c24cd2ae759a547fdba4206af19a3bb0f4554a91cd9528648ad0",
|
|
49
|
+
"electron-v36.0.0-alpha.2-win32-x64.zip": "745b4f06fdd6176f2fd4c5bc1a4def1c23efc66bf57a05aa59f7d058ce25d970",
|
|
50
|
+
"electron.d.ts": "d0a6e2c822e3639c953c5cd0cdacef10bd4fdc72907e497817509e52ec4559bd",
|
|
51
|
+
"ffmpeg-v36.0.0-alpha.2-darwin-arm64.zip": "37419a9b64f22eb55b4860355fa2cc132b9ca4c3577053af0b416b7a0c26a1c6",
|
|
52
|
+
"ffmpeg-v36.0.0-alpha.2-darwin-x64.zip": "c16be588544353d818d78198e7f9f2d177dcdc9709e0c5749756e4c93f639aef",
|
|
53
|
+
"ffmpeg-v36.0.0-alpha.2-linux-arm64.zip": "75de019791487126d2534bd491e9dd0eebf8042d08e424b3dcfc202fd201931b",
|
|
54
|
+
"ffmpeg-v36.0.0-alpha.2-linux-armv7l.zip": "1ccf8442b3133c6e448d262b466c948e5d2d272e83850c27a7cc676c47a7e84c",
|
|
55
|
+
"ffmpeg-v36.0.0-alpha.2-linux-x64.zip": "d0862bbae58dbd5b2edc0c6f3f4a1df536bfcbc4d435b1616fb5c0e860a61582",
|
|
56
|
+
"ffmpeg-v36.0.0-alpha.2-mas-arm64.zip": "37419a9b64f22eb55b4860355fa2cc132b9ca4c3577053af0b416b7a0c26a1c6",
|
|
57
|
+
"ffmpeg-v36.0.0-alpha.2-mas-x64.zip": "c16be588544353d818d78198e7f9f2d177dcdc9709e0c5749756e4c93f639aef",
|
|
58
|
+
"ffmpeg-v36.0.0-alpha.2-win32-arm64.zip": "800cbe49b4c3caae80a42ceaa71eb33b8c77e9101df688e7963fb3d7c0ddb201",
|
|
59
|
+
"ffmpeg-v36.0.0-alpha.2-win32-ia32.zip": "c5b9a1692777cfa26674b5a49af6a1b6070ca26aa09919b1c2a68b0b4b742655",
|
|
60
|
+
"ffmpeg-v36.0.0-alpha.2-win32-x64.zip": "4781bad5cbe913c3789a4fa92b6bc68426a319694ebfcbff260dbf3672e18625",
|
|
61
|
+
"hunspell_dictionaries.zip": "aa20be48029071216d993c05fdd8436a4e9d0c078b2009409413164613baecba",
|
|
62
|
+
"libcxx-objects-v36.0.0-alpha.2-linux-arm64.zip": "8dd6119de612ddf3f623e9f4c3ad878e53f259d61f59e61764bb3f7fe32544f5",
|
|
63
|
+
"libcxx-objects-v36.0.0-alpha.2-linux-armv7l.zip": "b19253efa3d5961ee4dc23df711a5cb74ebf6ac43c6c429d5040badeb30e0224",
|
|
64
|
+
"libcxx-objects-v36.0.0-alpha.2-linux-x64.zip": "423a9ea9f2111d8ac0c1b9a367e7b2760c5d97465f80ab451a370cee684940a1",
|
|
65
|
+
"libcxx_headers.zip": "fa0256d69b6ad33d6adc8dbaf52bd4c0f2d48111818a16bd365d27b393a78eaf",
|
|
66
|
+
"libcxxabi_headers.zip": "8d2be3ff3947761bede1eb0ca33be1b37e234a0fcbada9f4debc128891f89ac9",
|
|
67
|
+
"mksnapshot-v36.0.0-alpha.2-darwin-arm64.zip": "38557770b5ca0748602d35348efad40fd0fa74bf5584afa196ae770e140e2748",
|
|
68
|
+
"mksnapshot-v36.0.0-alpha.2-darwin-x64.zip": "71b5585a42066915f0cf1f8dcf596f843e5b88995b200159f56f09b3f9c8c44f",
|
|
69
|
+
"mksnapshot-v36.0.0-alpha.2-linux-arm64-x64.zip": "09ab627828f05ebde1e3c037cd2d542917d5439e0d93679d1f0a1d574c249047",
|
|
70
|
+
"mksnapshot-v36.0.0-alpha.2-linux-armv7l-x64.zip": "766f550ae45ac401e5de6b66fe6df9256f15ff1f20aab7570eca2bc2c0555488",
|
|
71
|
+
"mksnapshot-v36.0.0-alpha.2-linux-x64.zip": "3d86f30d776c960319004b6c40eceb2275a849c69996c4d541addc6bf9726590",
|
|
72
|
+
"mksnapshot-v36.0.0-alpha.2-mas-arm64.zip": "a6387247d2d7d7f5616a39283f28d49d36ef94cefadc19b0a3067b355c71af30",
|
|
73
|
+
"mksnapshot-v36.0.0-alpha.2-mas-x64.zip": "730bcbf952f40a779eb827e6c80fc01f51fef2f4e822e909ba06b08fdb20583b",
|
|
74
|
+
"mksnapshot-v36.0.0-alpha.2-win32-arm64-x64.zip": "4302198d76aadc2926affb94611ca496fa1279d55358dc60c87d32761af1d884",
|
|
75
|
+
"mksnapshot-v36.0.0-alpha.2-win32-ia32.zip": "ff64ca697bd2572d3165989c1d3f2cc6ac4280abcfb332411cb08e3c582c8552",
|
|
76
|
+
"mksnapshot-v36.0.0-alpha.2-win32-x64.zip": "716137a4fe85d44ba3eda77a3e1003bb3c01d96ef634893452e36a139caef86f"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 36.0.0-alpha.2
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -7896,6 +7896,104 @@ declare namespace Electron {
|
|
|
7896
7896
|
version: string;
|
|
7897
7897
|
}
|
|
7898
7898
|
|
|
7899
|
+
class Extensions extends NodeEventEmitter {
|
|
7900
|
+
|
|
7901
|
+
// Docs: https://electronjs.org/docs/api/extensions-api
|
|
7902
|
+
|
|
7903
|
+
/**
|
|
7904
|
+
* Emitted after an extension is loaded. This occurs whenever an extension is added
|
|
7905
|
+
* to the "enabled" set of extensions. This includes:
|
|
7906
|
+
*
|
|
7907
|
+
* * Extensions being loaded from `Extensions.loadExtension`.
|
|
7908
|
+
* * Extensions being reloaded:
|
|
7909
|
+
* * from a crash.
|
|
7910
|
+
* * if the extension requested it (`chrome.runtime.reload()`).
|
|
7911
|
+
*/
|
|
7912
|
+
on(event: 'extension-loaded', listener: (event: Event,
|
|
7913
|
+
extension: Extension) => void): this;
|
|
7914
|
+
off(event: 'extension-loaded', listener: (event: Event,
|
|
7915
|
+
extension: Extension) => void): this;
|
|
7916
|
+
once(event: 'extension-loaded', listener: (event: Event,
|
|
7917
|
+
extension: Extension) => void): this;
|
|
7918
|
+
addListener(event: 'extension-loaded', listener: (event: Event,
|
|
7919
|
+
extension: Extension) => void): this;
|
|
7920
|
+
removeListener(event: 'extension-loaded', listener: (event: Event,
|
|
7921
|
+
extension: Extension) => void): this;
|
|
7922
|
+
/**
|
|
7923
|
+
* Emitted after an extension is loaded and all necessary browser state is
|
|
7924
|
+
* initialized to support the start of the extension's background page.
|
|
7925
|
+
*/
|
|
7926
|
+
on(event: 'extension-ready', listener: (event: Event,
|
|
7927
|
+
extension: Extension) => void): this;
|
|
7928
|
+
off(event: 'extension-ready', listener: (event: Event,
|
|
7929
|
+
extension: Extension) => void): this;
|
|
7930
|
+
once(event: 'extension-ready', listener: (event: Event,
|
|
7931
|
+
extension: Extension) => void): this;
|
|
7932
|
+
addListener(event: 'extension-ready', listener: (event: Event,
|
|
7933
|
+
extension: Extension) => void): this;
|
|
7934
|
+
removeListener(event: 'extension-ready', listener: (event: Event,
|
|
7935
|
+
extension: Extension) => void): this;
|
|
7936
|
+
/**
|
|
7937
|
+
* Emitted after an extension is unloaded. This occurs when
|
|
7938
|
+
* `Session.removeExtension` is called.
|
|
7939
|
+
*/
|
|
7940
|
+
on(event: 'extension-unloaded', listener: (event: Event,
|
|
7941
|
+
extension: Extension) => void): this;
|
|
7942
|
+
off(event: 'extension-unloaded', listener: (event: Event,
|
|
7943
|
+
extension: Extension) => void): this;
|
|
7944
|
+
once(event: 'extension-unloaded', listener: (event: Event,
|
|
7945
|
+
extension: Extension) => void): this;
|
|
7946
|
+
addListener(event: 'extension-unloaded', listener: (event: Event,
|
|
7947
|
+
extension: Extension) => void): this;
|
|
7948
|
+
removeListener(event: 'extension-unloaded', listener: (event: Event,
|
|
7949
|
+
extension: Extension) => void): this;
|
|
7950
|
+
/**
|
|
7951
|
+
* A list of all loaded extensions.
|
|
7952
|
+
*
|
|
7953
|
+
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
7954
|
+
* is emitted.
|
|
7955
|
+
*/
|
|
7956
|
+
getAllExtensions(): Extension[];
|
|
7957
|
+
/**
|
|
7958
|
+
* The loaded extension with the given ID.
|
|
7959
|
+
*
|
|
7960
|
+
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
7961
|
+
* is emitted.
|
|
7962
|
+
*/
|
|
7963
|
+
getExtension(extensionId: string): (Extension) | (null);
|
|
7964
|
+
/**
|
|
7965
|
+
* resolves when the extension is loaded.
|
|
7966
|
+
*
|
|
7967
|
+
* This method will raise an exception if the extension could not be loaded. If
|
|
7968
|
+
* there are warnings when installing the extension (e.g. if the extension requests
|
|
7969
|
+
* an API that Electron does not support) then they will be logged to the console.
|
|
7970
|
+
*
|
|
7971
|
+
* Note that Electron does not support the full range of Chrome extensions APIs.
|
|
7972
|
+
* See Supported Extensions APIs for more details on what is supported.
|
|
7973
|
+
*
|
|
7974
|
+
* Note that in previous versions of Electron, extensions that were loaded would be
|
|
7975
|
+
* remembered for future runs of the application. This is no longer the case:
|
|
7976
|
+
* `loadExtension` must be called on every boot of your app if you want the
|
|
7977
|
+
* extension to be loaded.
|
|
7978
|
+
*
|
|
7979
|
+
* This API does not support loading packed (.crx) extensions.
|
|
7980
|
+
*
|
|
7981
|
+
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
7982
|
+
* is emitted.
|
|
7983
|
+
*
|
|
7984
|
+
* **Note:** Loading extensions into in-memory (non-persistent) sessions is not
|
|
7985
|
+
* supported and will throw an error.
|
|
7986
|
+
*/
|
|
7987
|
+
loadExtension(path: string, options?: LoadExtensionOptions): Promise<Electron.Extension>;
|
|
7988
|
+
/**
|
|
7989
|
+
* Unloads an extension.
|
|
7990
|
+
*
|
|
7991
|
+
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
7992
|
+
* is emitted.
|
|
7993
|
+
*/
|
|
7994
|
+
removeExtension(extensionId: string): void;
|
|
7995
|
+
}
|
|
7996
|
+
|
|
7899
7997
|
interface FileFilter {
|
|
7900
7998
|
|
|
7901
7999
|
// Docs: https://electronjs.org/docs/api/structures/file-filter
|
|
@@ -10378,10 +10476,6 @@ declare namespace Electron {
|
|
|
10378
10476
|
* the name of the printer as shown in Print Preview.
|
|
10379
10477
|
*/
|
|
10380
10478
|
displayName: string;
|
|
10381
|
-
/**
|
|
10382
|
-
* whether or not a given printer is set as the default printer on the OS.
|
|
10383
|
-
*/
|
|
10384
|
-
isDefault: boolean;
|
|
10385
10479
|
/**
|
|
10386
10480
|
* the name of the printer as understood by the OS.
|
|
10387
10481
|
*/
|
|
@@ -10390,10 +10484,6 @@ declare namespace Electron {
|
|
|
10390
10484
|
* an object containing a variable number of platform-specific printer information.
|
|
10391
10485
|
*/
|
|
10392
10486
|
options: Options;
|
|
10393
|
-
/**
|
|
10394
|
-
* the current status of the printer.
|
|
10395
|
-
*/
|
|
10396
|
-
status: number;
|
|
10397
10487
|
}
|
|
10398
10488
|
|
|
10399
10489
|
interface ProcessMemoryInfo {
|
|
@@ -12132,6 +12222,10 @@ declare namespace Electron {
|
|
|
12132
12222
|
*
|
|
12133
12223
|
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
12134
12224
|
* is emitted.
|
|
12225
|
+
*
|
|
12226
|
+
* **Deprecated:** Use the new `ses.extensions.getAllExtensions` API.
|
|
12227
|
+
*
|
|
12228
|
+
* @deprecated
|
|
12135
12229
|
*/
|
|
12136
12230
|
getAllExtensions(): Extension[];
|
|
12137
12231
|
/**
|
|
@@ -12147,6 +12241,10 @@ declare namespace Electron {
|
|
|
12147
12241
|
*
|
|
12148
12242
|
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
12149
12243
|
* is emitted.
|
|
12244
|
+
*
|
|
12245
|
+
* **Deprecated:** Use the new `ses.extensions.getExtension` API.
|
|
12246
|
+
*
|
|
12247
|
+
* @deprecated
|
|
12150
12248
|
*/
|
|
12151
12249
|
getExtension(extensionId: string): (Extension) | (null);
|
|
12152
12250
|
/**
|
|
@@ -12242,6 +12340,10 @@ declare namespace Electron {
|
|
|
12242
12340
|
*
|
|
12243
12341
|
* **Note:** Loading extensions into in-memory (non-persistent) sessions is not
|
|
12244
12342
|
* supported and will throw an error.
|
|
12343
|
+
*
|
|
12344
|
+
* **Deprecated:** Use the new `ses.extensions.loadExtension` API.
|
|
12345
|
+
*
|
|
12346
|
+
* @deprecated
|
|
12245
12347
|
*/
|
|
12246
12348
|
loadExtension(path: string, options?: LoadExtensionOptions): Promise<Electron.Extension>;
|
|
12247
12349
|
/**
|
|
@@ -12261,6 +12363,10 @@ declare namespace Electron {
|
|
|
12261
12363
|
*
|
|
12262
12364
|
* **Note:** This API cannot be called before the `ready` event of the `app` module
|
|
12263
12365
|
* is emitted.
|
|
12366
|
+
*
|
|
12367
|
+
* **Deprecated:** Use the new `ses.extensions.removeExtension` API.
|
|
12368
|
+
*
|
|
12369
|
+
* @deprecated
|
|
12264
12370
|
*/
|
|
12265
12371
|
removeExtension(extensionId: string): void;
|
|
12266
12372
|
/**
|
|
@@ -12479,6 +12585,11 @@ declare namespace Electron {
|
|
|
12479
12585
|
*
|
|
12480
12586
|
*/
|
|
12481
12587
|
readonly cookies: Cookies;
|
|
12588
|
+
/**
|
|
12589
|
+
* A `Extensions` object for this session.
|
|
12590
|
+
*
|
|
12591
|
+
*/
|
|
12592
|
+
readonly extensions: Extensions;
|
|
12482
12593
|
/**
|
|
12483
12594
|
* A `NetLog` object for this session.
|
|
12484
12595
|
*
|
|
@@ -12917,16 +13028,6 @@ declare namespace Electron {
|
|
|
12917
13028
|
* @platform darwin
|
|
12918
13029
|
*/
|
|
12919
13030
|
getUserDefault<Type extends keyof UserDefaultTypes>(key: string, type: Type): UserDefaultTypes[Type];
|
|
12920
|
-
/**
|
|
12921
|
-
* `true` if DWM composition (Aero Glass) is enabled, and `false` otherwise.
|
|
12922
|
-
*
|
|
12923
|
-
* **Deprecated:** This function has been always returning `true` since Electron
|
|
12924
|
-
* 23, which only supports Windows 10+.
|
|
12925
|
-
*
|
|
12926
|
-
* @deprecated
|
|
12927
|
-
* @platform win32
|
|
12928
|
-
*/
|
|
12929
|
-
isAeroGlassEnabled(): boolean;
|
|
12930
13031
|
/**
|
|
12931
13032
|
* Whether the Swipe between pages setting is on.
|
|
12932
13033
|
*
|
|
@@ -16005,6 +16106,10 @@ declare namespace Electron {
|
|
|
16005
16106
|
* that you call `texture.release()` as soon as you're done with the texture. By
|
|
16006
16107
|
* managing the texture lifecycle by yourself, you can safely pass the
|
|
16007
16108
|
* `texture.textureInfo` to other processes through IPC.
|
|
16109
|
+
*
|
|
16110
|
+
* More details can be found in the offscreen rendering tutorial. To learn about
|
|
16111
|
+
* how to handle the texture in native code, refer to offscreen rendering's code
|
|
16112
|
+
* documentation..
|
|
16008
16113
|
*/
|
|
16009
16114
|
on(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
16010
16115
|
dirtyRect: Rectangle,
|
|
@@ -17290,6 +17395,13 @@ declare namespace Electron {
|
|
|
17290
17395
|
*
|
|
17291
17396
|
*/
|
|
17292
17397
|
readonly devToolsWebContents: (WebContents) | (null);
|
|
17398
|
+
/**
|
|
17399
|
+
* A `WebFrameMain | null` property that represents the currently focused frame in
|
|
17400
|
+
* this WebContents. Can be the top frame, an inner `<iframe>`, or `null` if
|
|
17401
|
+
* nothing is focused.
|
|
17402
|
+
*
|
|
17403
|
+
*/
|
|
17404
|
+
readonly focusedFrame: (WebFrameMain) | (null);
|
|
17293
17405
|
/**
|
|
17294
17406
|
* An `Integer` property that sets the frame rate of the web contents to the
|
|
17295
17407
|
* specified number. Only values between 1 and 240 are accepted.
|
|
@@ -17349,12 +17461,12 @@ declare namespace Electron {
|
|
|
17349
17461
|
*/
|
|
17350
17462
|
readonly navigationHistory: NavigationHistory;
|
|
17351
17463
|
/**
|
|
17352
|
-
* A `WebFrameMain` property that represents the frame that opened this
|
|
17464
|
+
* A `WebFrameMain | null` property that represents the frame that opened this
|
|
17353
17465
|
* WebContents, either with open(), or by navigating a link with a target
|
|
17354
17466
|
* attribute.
|
|
17355
17467
|
*
|
|
17356
17468
|
*/
|
|
17357
|
-
readonly opener: WebFrameMain;
|
|
17469
|
+
readonly opener: (WebFrameMain) | (null);
|
|
17358
17470
|
/**
|
|
17359
17471
|
* A `Session` used by this webContents.
|
|
17360
17472
|
*
|
|
@@ -19184,10 +19296,10 @@ declare namespace Electron {
|
|
|
19184
19296
|
*/
|
|
19185
19297
|
storages?: Array<'cookies' | 'filesystem' | 'indexdb' | 'localstorage' | 'shadercache' | 'websql' | 'serviceworkers' | 'cachestorage'>;
|
|
19186
19298
|
/**
|
|
19187
|
-
* The types of quotas to clear, can be `temporary
|
|
19188
|
-
*
|
|
19299
|
+
* The types of quotas to clear, can be `temporary`. If not specified, clear all
|
|
19300
|
+
* quotas.
|
|
19189
19301
|
*/
|
|
19190
|
-
quotas?: Array<'temporary'
|
|
19302
|
+
quotas?: Array<'temporary'>;
|
|
19191
19303
|
}
|
|
19192
19304
|
|
|
19193
19305
|
interface ClientCertRequestParams {
|
|
@@ -23334,6 +23446,7 @@ declare namespace Electron {
|
|
|
23334
23446
|
type Dialog = Electron.Dialog;
|
|
23335
23447
|
type Dock = Electron.Dock;
|
|
23336
23448
|
type DownloadItem = Electron.DownloadItem;
|
|
23449
|
+
type Extensions = Electron.Extensions;
|
|
23337
23450
|
const globalShortcut: GlobalShortcut;
|
|
23338
23451
|
type GlobalShortcut = Electron.GlobalShortcut;
|
|
23339
23452
|
const inAppPurchase: InAppPurchase;
|
|
@@ -24307,6 +24420,7 @@ declare namespace Electron {
|
|
|
24307
24420
|
type Dialog = Electron.Dialog;
|
|
24308
24421
|
type Dock = Electron.Dock;
|
|
24309
24422
|
type DownloadItem = Electron.DownloadItem;
|
|
24423
|
+
type Extensions = Electron.Extensions;
|
|
24310
24424
|
const globalShortcut: GlobalShortcut;
|
|
24311
24425
|
type GlobalShortcut = Electron.GlobalShortcut;
|
|
24312
24426
|
const inAppPurchase: InAppPurchase;
|
package/package.json
CHANGED