electron 45.0.0-alpha.4 → 45.0.0-alpha.6
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/checksums.json +67 -67
- package/electron.d.ts +168 -22
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v45.0.0-alpha.
|
|
3
|
-
"chromedriver-v45.0.0-alpha.
|
|
4
|
-
"chromedriver-v45.0.0-alpha.
|
|
5
|
-
"chromedriver-v45.0.0-alpha.
|
|
6
|
-
"chromedriver-v45.0.0-alpha.
|
|
7
|
-
"chromedriver-v45.0.0-alpha.
|
|
8
|
-
"chromedriver-v45.0.0-alpha.
|
|
9
|
-
"chromedriver-v45.0.0-alpha.
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v45.0.0-alpha.
|
|
12
|
-
"electron-v45.0.0-alpha.
|
|
13
|
-
"electron-v45.0.0-alpha.
|
|
14
|
-
"electron-v45.0.0-alpha.
|
|
15
|
-
"electron-v45.0.0-alpha.
|
|
16
|
-
"electron-v45.0.0-alpha.
|
|
17
|
-
"electron-v45.0.0-alpha.
|
|
18
|
-
"electron-v45.0.0-alpha.
|
|
19
|
-
"electron-v45.0.0-alpha.
|
|
20
|
-
"electron-v45.0.0-alpha.
|
|
21
|
-
"electron-v45.0.0-alpha.
|
|
22
|
-
"electron-v45.0.0-alpha.
|
|
23
|
-
"electron-v45.0.0-alpha.
|
|
24
|
-
"electron-v45.0.0-alpha.
|
|
25
|
-
"electron-v45.0.0-alpha.
|
|
26
|
-
"electron-v45.0.0-alpha.
|
|
27
|
-
"electron-v45.0.0-alpha.
|
|
28
|
-
"electron-v45.0.0-alpha.
|
|
29
|
-
"electron-v45.0.0-alpha.
|
|
30
|
-
"electron-v45.0.0-alpha.
|
|
31
|
-
"electron-v45.0.0-alpha.
|
|
32
|
-
"electron-v45.0.0-alpha.
|
|
33
|
-
"electron-v45.0.0-alpha.
|
|
34
|
-
"electron-v45.0.0-alpha.
|
|
35
|
-
"electron-v45.0.0-alpha.
|
|
36
|
-
"electron-v45.0.0-alpha.
|
|
37
|
-
"electron-v45.0.0-alpha.
|
|
38
|
-
"electron-v45.0.0-alpha.
|
|
39
|
-
"electron-v45.0.0-alpha.
|
|
40
|
-
"electron-v45.0.0-alpha.
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v45.0.0-alpha.
|
|
43
|
-
"ffmpeg-v45.0.0-alpha.
|
|
44
|
-
"ffmpeg-v45.0.0-alpha.
|
|
45
|
-
"ffmpeg-v45.0.0-alpha.
|
|
46
|
-
"ffmpeg-v45.0.0-alpha.
|
|
47
|
-
"ffmpeg-v45.0.0-alpha.
|
|
48
|
-
"ffmpeg-v45.0.0-alpha.
|
|
49
|
-
"ffmpeg-v45.0.0-alpha.
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v45.0.0-alpha.
|
|
52
|
-
"libcxx-objects-v45.0.0-alpha.
|
|
53
|
-
"libcxx_headers.zip": "
|
|
54
|
-
"libcxxabi_headers.zip": "
|
|
55
|
-
"mksnapshot-v45.0.0-alpha.
|
|
56
|
-
"mksnapshot-v45.0.0-alpha.
|
|
57
|
-
"mksnapshot-v45.0.0-alpha.
|
|
58
|
-
"mksnapshot-v45.0.0-alpha.
|
|
59
|
-
"mksnapshot-v45.0.0-alpha.
|
|
60
|
-
"mksnapshot-v45.0.0-alpha.
|
|
61
|
-
"mksnapshot-v45.0.0-alpha.
|
|
62
|
-
"mksnapshot-v45.0.0-alpha.
|
|
63
|
-
"xcache-v45.0.0-alpha.
|
|
64
|
-
"xcache-v45.0.0-alpha.
|
|
65
|
-
"xcache-v45.0.0-alpha.
|
|
66
|
-
"xcache-v45.0.0-alpha.
|
|
67
|
-
"xcache-v45.0.0-alpha.
|
|
68
|
-
"xcache-v45.0.0-alpha.
|
|
2
|
+
"chromedriver-v45.0.0-alpha.6-darwin-arm64.zip": "4682275d153647835b23254077b6643a06c5851910809cf5dc7ed616591597ff",
|
|
3
|
+
"chromedriver-v45.0.0-alpha.6-darwin-x64.zip": "17d742227312ee232fa9bbbd05269c9ce18e2b901ce74b1f4b23fdae3ca3a2a1",
|
|
4
|
+
"chromedriver-v45.0.0-alpha.6-linux-arm64.zip": "917ff8151dcd2a2a3cda50c781afbe3b89e38174139652401cff9fd54082b152",
|
|
5
|
+
"chromedriver-v45.0.0-alpha.6-linux-x64.zip": "6e3cb69b8bd5565d16456b662bc9a45037644f3ab716d3a112ac175f5500354d",
|
|
6
|
+
"chromedriver-v45.0.0-alpha.6-mas-arm64.zip": "464fcd9ee6b83fea72a6629d9c2f6c7bb70e7f8fa08674bc1d35900bbd9d49a1",
|
|
7
|
+
"chromedriver-v45.0.0-alpha.6-mas-x64.zip": "fe4d541009d272996a7e89646fc5d8aa83b70854a63728f514a6540aaf72eade",
|
|
8
|
+
"chromedriver-v45.0.0-alpha.6-win32-arm64.zip": "e848ea5d73e943acc811725cb14ae8c501a6b710472cfcdeab6cc9a69701b77a",
|
|
9
|
+
"chromedriver-v45.0.0-alpha.6-win32-x64.zip": "5661795353d2822676a23ee2ba7b2a312241d9e0b2fd9bae21860367827e31b6",
|
|
10
|
+
"electron-api.json": "f857c022d01c390d5b71b85bdb4e1a8e26c07d1245c1eea2d624564bb1c48293",
|
|
11
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
12
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-dsym.tar.xz": "4326b4d17fe58f17d9aeb4edc9e732f856b4209667e562cd84431335ed42fc92",
|
|
13
|
+
"electron-v45.0.0-alpha.6-darwin-arm64-symbols.zip": "226ccd7780c5fcb19c806ffe303ce655370b742694493dc42b76e2e6f9e61c00",
|
|
14
|
+
"electron-v45.0.0-alpha.6-darwin-arm64.zip": "52bc97443088442fc90d75112abfcddb328268b76c1aa5913e3a2469ad365a7a",
|
|
15
|
+
"electron-v45.0.0-alpha.6-darwin-x64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
16
|
+
"electron-v45.0.0-alpha.6-darwin-x64-dsym.tar.xz": "9b7a275acd0cda9b0d3439f88b2eae2c06e8026578aa03eda15635f4bb2b8f66",
|
|
17
|
+
"electron-v45.0.0-alpha.6-darwin-x64-symbols.zip": "9ec29fe42968c36d8c8c8e48bd4c00760140dc5169276e721903a3e462e680c4",
|
|
18
|
+
"electron-v45.0.0-alpha.6-darwin-x64.zip": "bd69539324e1d86deafa0137af5334b9e950c53ac0a71fab6ede1259ecd838aa",
|
|
19
|
+
"electron-v45.0.0-alpha.6-linux-arm64-debug.zip": "66e6e3b8e56800bbc59e0a9ad40e8f2b311bbb6fffcc03a78ee1431727db7beb",
|
|
20
|
+
"electron-v45.0.0-alpha.6-linux-arm64-symbols.zip": "38cdfaf12861b121e953b1e5b452bc5ee4c211b2519d4e4cf23a270fef1c1bec",
|
|
21
|
+
"electron-v45.0.0-alpha.6-linux-arm64.zip": "11da524a02b68f8893793b2fb87bc400d2e447ffbbf63a181764de4c8afed034",
|
|
22
|
+
"electron-v45.0.0-alpha.6-linux-x64-debug.zip": "a80f1d4315dcea9006d5862c414aeb3b436548d8e28d9d19aa6b7ea0a3180ae2",
|
|
23
|
+
"electron-v45.0.0-alpha.6-linux-x64-symbols.zip": "87715373cc1b3e572d7b8eae6298cf8389d88ee45f47831fd555717b72279545",
|
|
24
|
+
"electron-v45.0.0-alpha.6-linux-x64.zip": "1396ea4c28b30abe719a4b0ffa5aabb591b834c9cf941f02f5f569376267f9f6",
|
|
25
|
+
"electron-v45.0.0-alpha.6-mas-arm64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
26
|
+
"electron-v45.0.0-alpha.6-mas-arm64-dsym.tar.xz": "e4ee7e4ce2a6aee5f8f5d29ad491c518ca80fe75b5db10fdcaa0cf6a79dcf76e",
|
|
27
|
+
"electron-v45.0.0-alpha.6-mas-arm64-symbols.zip": "bb89065373dbac411cbeb3199ab0c817334a5fc5d31420b7835ecb35390d3211",
|
|
28
|
+
"electron-v45.0.0-alpha.6-mas-arm64.zip": "a2b46647ff8fea7f14c00ef67cf6eda899cebb87b65b26939112bebb2d45787a",
|
|
29
|
+
"electron-v45.0.0-alpha.6-mas-x64-dsym-snapshot.zip": "d36a30a9f3d91696bae78f204891bc8f9f99c1e3ad3ab6ae13ae87e69b3ba531",
|
|
30
|
+
"electron-v45.0.0-alpha.6-mas-x64-dsym.tar.xz": "fa9b8b837eb3bf912674470bbc7b4ff56f1b85037a3e26ee5f57f7aac689050a",
|
|
31
|
+
"electron-v45.0.0-alpha.6-mas-x64-symbols.zip": "caca9ff3410e67e2d3c1fd9a34153dbef75433fcc3ff3da056336ac0ad09cf7d",
|
|
32
|
+
"electron-v45.0.0-alpha.6-mas-x64.zip": "825be0662ee89a983c0f6d75751d5842166b725a22244a2a269b92c19061ada8",
|
|
33
|
+
"electron-v45.0.0-alpha.6-win32-arm64-pdb.zip": "0f619c83bfb9c7b6d17de14f45d230db7348009f77b075233e55a9c532f1488f",
|
|
34
|
+
"electron-v45.0.0-alpha.6-win32-arm64-symbols.zip": "5e540e294b1bf94e8accb97a09cfd70575d37e97dcebe97af29511333ecf6b6c",
|
|
35
|
+
"electron-v45.0.0-alpha.6-win32-arm64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
36
|
+
"electron-v45.0.0-alpha.6-win32-arm64.zip": "4ab16870f531d4b03851920d33ccc95c661240c6fbb485c5ee153e46bd5d93de",
|
|
37
|
+
"electron-v45.0.0-alpha.6-win32-x64-pdb.zip": "c4dc3b30f045885685517bbb4c322d9cd2df9248e0e8537eddd042fb92343269",
|
|
38
|
+
"electron-v45.0.0-alpha.6-win32-x64-symbols.zip": "febce548ed8f4f2e3b0a2ece6562fd1e2436bcd4c4442324a891640b93c9130b",
|
|
39
|
+
"electron-v45.0.0-alpha.6-win32-x64-toolchain-profile.zip": "c74afb2f66851265ce1b0bbe06018bb54fbc928e15ba08f24e194acd6a80f2a1",
|
|
40
|
+
"electron-v45.0.0-alpha.6-win32-x64.zip": "b0bb360cbed59dedf89ac7234810354bc9b185027fabbea08d5a0b13b36cbb97",
|
|
41
|
+
"electron.d.ts": "96f9b5d8a568b20f87d2cd9d7ac6d646a42a8fa6f0797f90ee99ef6db02ee237",
|
|
42
|
+
"ffmpeg-v45.0.0-alpha.6-darwin-arm64.zip": "a84cdb5c7c3e96bce368014941d5d9f4f2837df3fa914b6dbdebb7f978a86f86",
|
|
43
|
+
"ffmpeg-v45.0.0-alpha.6-darwin-x64.zip": "bb250eef761df12d5d188b558510a443224745d90d46bbcb448afbcd5ff1d3bc",
|
|
44
|
+
"ffmpeg-v45.0.0-alpha.6-linux-arm64.zip": "c7832db04fa7ea60f7a4b71d7d0b9b8d3272c200e2ee663c4eea774b1bafd3f4",
|
|
45
|
+
"ffmpeg-v45.0.0-alpha.6-linux-x64.zip": "f4d98767e7a8c6528af718e42b6e3612582cf44fe3bce72df336a9f2a1844c30",
|
|
46
|
+
"ffmpeg-v45.0.0-alpha.6-mas-arm64.zip": "085f4d956cdd0415507fa279b92254f9fc55f6988060037e6c682812d47b1269",
|
|
47
|
+
"ffmpeg-v45.0.0-alpha.6-mas-x64.zip": "e26fb1521ef812144a6196e1d2983078b3660151606b623aa4f8f925838fbfe4",
|
|
48
|
+
"ffmpeg-v45.0.0-alpha.6-win32-arm64.zip": "ae3816bb326985c8b4dbad305c79f5b8c00f6c676685d31226d49145f7968709",
|
|
49
|
+
"ffmpeg-v45.0.0-alpha.6-win32-x64.zip": "c8f6950605a7d157b387c5eea9ce20eef7ff0f41aca7f89f7879986db330b508",
|
|
50
|
+
"hunspell_dictionaries.zip": "f9da4998d4e5cb077ee6bbb6b2070e46d50762cacf30d01fb15f526288b09596",
|
|
51
|
+
"libcxx-objects-v45.0.0-alpha.6-linux-arm64.zip": "541cc82f8eb330b46a292ff5c77a43b2bcd7de253ad4c4675acdd1fc429977cc",
|
|
52
|
+
"libcxx-objects-v45.0.0-alpha.6-linux-x64.zip": "a25429c124b19666750a109b4019e1643b78cde138f55c9003df126cafabad77",
|
|
53
|
+
"libcxx_headers.zip": "e498eb4294e8cd780eeff40cbf952bc33e7241cf9a4347b5589c5692b82b8b4a",
|
|
54
|
+
"libcxxabi_headers.zip": "5ba5baf788753aba2989de3242dd5f4d130f05d8cb11458f71d78496693026f9",
|
|
55
|
+
"mksnapshot-v45.0.0-alpha.6-darwin-arm64.zip": "32ee55ee98945bd58d914ded7ecec700f401b67eb6dc8d327c6f7fdccbf116f7",
|
|
56
|
+
"mksnapshot-v45.0.0-alpha.6-darwin-x64.zip": "fae03a5db8c861a993da862365fd03c173abe5502d1d4d47263505cdd91faf5f",
|
|
57
|
+
"mksnapshot-v45.0.0-alpha.6-linux-arm64-x64.zip": "097becd7729ea07679976fd7ee608fdd19a740b1eabd05997c2d8cea622aa731",
|
|
58
|
+
"mksnapshot-v45.0.0-alpha.6-linux-x64.zip": "e12c845698ac751aef258427aeafe738ac7f648d6e16dfe44f95ed8e0697b430",
|
|
59
|
+
"mksnapshot-v45.0.0-alpha.6-mas-arm64.zip": "9f4f3b2e911ebf1820601b9ba0e5558a8fa226869050b204dd9090861012de7d",
|
|
60
|
+
"mksnapshot-v45.0.0-alpha.6-mas-x64.zip": "be26377fef1f6473268b660a8c2a9db65518732a3f5e4dd9654ec373781939aa",
|
|
61
|
+
"mksnapshot-v45.0.0-alpha.6-win32-arm64-x64.zip": "18d8d4551d94713e057896a12e4866feb7178c12cb07011e496d5ef79ccff697",
|
|
62
|
+
"mksnapshot-v45.0.0-alpha.6-win32-x64.zip": "093e92fd396235f2549f052c0d325a419f5df89a922250ff0fe728653c7eee4d",
|
|
63
|
+
"xcache-v45.0.0-alpha.6-darwin-arm64.zip": "329f850188f0071a300c29dfb7efc926c2b3f91005c487c56b6ec56802246c5b",
|
|
64
|
+
"xcache-v45.0.0-alpha.6-darwin-x64.zip": "635f42a856f52ca46792615009272e09a5144c2ea5d7a07a2afe84872d0e2824",
|
|
65
|
+
"xcache-v45.0.0-alpha.6-linux-arm64.zip": "adf7e860ac2aaf7780e1b76b363407d06239f19b4340ca3f1ff47a3163309dc4",
|
|
66
|
+
"xcache-v45.0.0-alpha.6-linux-x64.zip": "8f328e5260b100245308329eb86055450f6c28f8297b6a77de2b3bac61b7efb2",
|
|
67
|
+
"xcache-v45.0.0-alpha.6-win32-arm64.zip": "2af73fce62af6033f762c65a3897764bbc8121f558465d9909cf6a9fd1fb3c1d",
|
|
68
|
+
"xcache-v45.0.0-alpha.6-win32-x64.zip": "507d9413c475a62c5faef846c84f8dd457cda7b9beeaed8f4928bb31523e09b1"
|
|
69
69
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 45.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 45.0.0-alpha.6
|
|
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
|
|
@@ -7685,6 +7685,14 @@ declare namespace Electron {
|
|
|
7685
7685
|
* indicating the failure of the command.
|
|
7686
7686
|
*
|
|
7687
7687
|
* Send given command to the debugging target.
|
|
7688
|
+
*
|
|
7689
|
+
* > [!NOTE]
|
|
7690
|
+
*
|
|
7691
|
+
* * If `sendCommand` is called before the target has navigated (e.g. immediately
|
|
7692
|
+
* after `attach()`), the returned promise may not resolve until navigation occurs.
|
|
7693
|
+
* * If the command's response has no `result` data, as defined by that command's
|
|
7694
|
+
* entry in the remote debugging protocol, the promise resolves with an empty
|
|
7695
|
+
* object (`{}`), not `null` or `undefined`.
|
|
7688
7696
|
*/
|
|
7689
7697
|
sendCommand(method: string, commandParams?: any, sessionId?: string): Promise<any>;
|
|
7690
7698
|
}
|
|
@@ -8292,6 +8300,14 @@ declare namespace Electron {
|
|
|
8292
8300
|
* actual name of saved file will be different.
|
|
8293
8301
|
*/
|
|
8294
8302
|
getFilename(): string;
|
|
8303
|
+
/**
|
|
8304
|
+
* The origin that started the download (for example `https://example.com`, or
|
|
8305
|
+
* `null` for an opaque origin), or an empty string if the download was not started
|
|
8306
|
+
* by web content (for example `webContents.downloadURL()`). Use this rather than
|
|
8307
|
+
* `getURL()` or the `webContents` to decide whose download it is: the URL is
|
|
8308
|
+
* chosen by the initiator and the `webContents` is the whole tab.
|
|
8309
|
+
*/
|
|
8310
|
+
getInitiatorOrigin(): string;
|
|
8295
8311
|
/**
|
|
8296
8312
|
* Last-Modified header value.
|
|
8297
8313
|
*/
|
|
@@ -9812,6 +9828,9 @@ declare namespace Electron {
|
|
|
9812
9828
|
* This property can be dynamically changed; setting it to `undefined` removes the
|
|
9813
9829
|
* badge. Only available on macOS 14 and up.
|
|
9814
9830
|
*
|
|
9831
|
+
* Badges are not displayed in Dock menus, though the same item shows its badge in
|
|
9832
|
+
* an application menu.
|
|
9833
|
+
*
|
|
9815
9834
|
* @platform darwin
|
|
9816
9835
|
*/
|
|
9817
9836
|
badge?: MenuItemBadge;
|
|
@@ -11732,6 +11751,12 @@ declare namespace Electron {
|
|
|
11732
11751
|
* Register a protocol handler for `scheme`. Requests made to URLs with this scheme
|
|
11733
11752
|
* will delegate to this handler to determine what response should be sent.
|
|
11734
11753
|
*
|
|
11754
|
+
* In addition to the standard `Request` fields, `request.initiatorOrigin` is set
|
|
11755
|
+
* to the origin that issued the request (for example `https://example.com`, or
|
|
11756
|
+
* `null` for an opaque origin) when web content made it; it is absent for requests
|
|
11757
|
+
* the browser started itself. Unlike `request.referrer` it is not controlled by
|
|
11758
|
+
* the requesting page, so prefer it when deciding whether to serve a request.
|
|
11759
|
+
*
|
|
11735
11760
|
* Either a `Response` or a `Promise<Response>` can be returned.
|
|
11736
11761
|
*
|
|
11737
11762
|
* Example:
|
|
@@ -11936,6 +11961,12 @@ declare namespace Electron {
|
|
|
11936
11961
|
// Docs: https://electronjs.org/docs/api/structures/protocol-request
|
|
11937
11962
|
|
|
11938
11963
|
headers: Record<string, string>;
|
|
11964
|
+
/**
|
|
11965
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
11966
|
+
* for an opaque origin). Absent for requests the browser started itself. Unlike
|
|
11967
|
+
* `referrer`, this is not controlled by the requesting page.
|
|
11968
|
+
*/
|
|
11969
|
+
initiatorOrigin?: string;
|
|
11939
11970
|
method: string;
|
|
11940
11971
|
referrer: string;
|
|
11941
11972
|
uploadData?: UploadData[];
|
|
@@ -12804,7 +12835,11 @@ declare namespace Electron {
|
|
|
12804
12835
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12805
12836
|
* the spec for more details.)
|
|
12806
12837
|
*/
|
|
12807
|
-
allowCredentials: boolean
|
|
12838
|
+
allowCredentials: boolean,
|
|
12839
|
+
/**
|
|
12840
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12841
|
+
*/
|
|
12842
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12808
12843
|
off(event: 'preconnect', listener: (event: Event,
|
|
12809
12844
|
/**
|
|
12810
12845
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12814,7 +12849,11 @@ declare namespace Electron {
|
|
|
12814
12849
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12815
12850
|
* the spec for more details.)
|
|
12816
12851
|
*/
|
|
12817
|
-
allowCredentials: boolean
|
|
12852
|
+
allowCredentials: boolean,
|
|
12853
|
+
/**
|
|
12854
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12855
|
+
*/
|
|
12856
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12818
12857
|
once(event: 'preconnect', listener: (event: Event,
|
|
12819
12858
|
/**
|
|
12820
12859
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12824,7 +12863,11 @@ declare namespace Electron {
|
|
|
12824
12863
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12825
12864
|
* the spec for more details.)
|
|
12826
12865
|
*/
|
|
12827
|
-
allowCredentials: boolean
|
|
12866
|
+
allowCredentials: boolean,
|
|
12867
|
+
/**
|
|
12868
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12869
|
+
*/
|
|
12870
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12828
12871
|
addListener(event: 'preconnect', listener: (event: Event,
|
|
12829
12872
|
/**
|
|
12830
12873
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12834,7 +12877,11 @@ declare namespace Electron {
|
|
|
12834
12877
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12835
12878
|
* the spec for more details.)
|
|
12836
12879
|
*/
|
|
12837
|
-
allowCredentials: boolean
|
|
12880
|
+
allowCredentials: boolean,
|
|
12881
|
+
/**
|
|
12882
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12883
|
+
*/
|
|
12884
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12838
12885
|
removeListener(event: 'preconnect', listener: (event: Event,
|
|
12839
12886
|
/**
|
|
12840
12887
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -12844,7 +12891,11 @@ declare namespace Electron {
|
|
|
12844
12891
|
* True if the renderer is requesting that the connection include credentials (see
|
|
12845
12892
|
* the spec for more details.)
|
|
12846
12893
|
*/
|
|
12847
|
-
allowCredentials: boolean
|
|
12894
|
+
allowCredentials: boolean,
|
|
12895
|
+
/**
|
|
12896
|
+
* The frame that requested the preconnection, if it still exists.
|
|
12897
|
+
*/
|
|
12898
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
12848
12899
|
/**
|
|
12849
12900
|
* Emitted when a HID device needs to be selected when a call to
|
|
12850
12901
|
* `navigator.hid.requestDevice` is made. `callback` should be called with
|
|
@@ -13226,26 +13277,47 @@ declare namespace Electron {
|
|
|
13226
13277
|
removeListener(event: 'usb-device-revoked', listener: (event: Event,
|
|
13227
13278
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
13228
13279
|
/**
|
|
13229
|
-
* Emitted when Electron is about to download `item` in `webContents`.
|
|
13280
|
+
* Emitted when Electron is about to download `item` in `webContents`. See also
|
|
13281
|
+
* `item.getInitiatorOrigin()`.
|
|
13230
13282
|
*
|
|
13231
13283
|
* Calling `event.preventDefault()` will cancel the download and `item` will not be
|
|
13232
13284
|
* available from next tick of the process.
|
|
13233
13285
|
*/
|
|
13234
13286
|
on(event: 'will-download', listener: (event: Event,
|
|
13235
13287
|
item: DownloadItem,
|
|
13236
|
-
webContents: WebContents
|
|
13288
|
+
webContents: WebContents,
|
|
13289
|
+
/**
|
|
13290
|
+
* The frame that started the download, if it still exists.
|
|
13291
|
+
*/
|
|
13292
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13237
13293
|
off(event: 'will-download', listener: (event: Event,
|
|
13238
13294
|
item: DownloadItem,
|
|
13239
|
-
webContents: WebContents
|
|
13295
|
+
webContents: WebContents,
|
|
13296
|
+
/**
|
|
13297
|
+
* The frame that started the download, if it still exists.
|
|
13298
|
+
*/
|
|
13299
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13240
13300
|
once(event: 'will-download', listener: (event: Event,
|
|
13241
13301
|
item: DownloadItem,
|
|
13242
|
-
webContents: WebContents
|
|
13302
|
+
webContents: WebContents,
|
|
13303
|
+
/**
|
|
13304
|
+
* The frame that started the download, if it still exists.
|
|
13305
|
+
*/
|
|
13306
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13243
13307
|
addListener(event: 'will-download', listener: (event: Event,
|
|
13244
13308
|
item: DownloadItem,
|
|
13245
|
-
webContents: WebContents
|
|
13309
|
+
webContents: WebContents,
|
|
13310
|
+
/**
|
|
13311
|
+
* The frame that started the download, if it still exists.
|
|
13312
|
+
*/
|
|
13313
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13246
13314
|
removeListener(event: 'will-download', listener: (event: Event,
|
|
13247
13315
|
item: DownloadItem,
|
|
13248
|
-
webContents: WebContents
|
|
13316
|
+
webContents: WebContents,
|
|
13317
|
+
/**
|
|
13318
|
+
* The frame that started the download, if it still exists.
|
|
13319
|
+
*/
|
|
13320
|
+
frame: (WebFrameMain) | (null)) => void): this;
|
|
13249
13321
|
/**
|
|
13250
13322
|
* Whether the word was successfully written to the custom dictionary. This API
|
|
13251
13323
|
* will not work on non-persistent (in-memory) sessions.
|
|
@@ -13624,8 +13696,12 @@ declare namespace Electron {
|
|
|
13624
13696
|
* is available and `useSystemPicker` is set to `true`, the handler will not be
|
|
13625
13697
|
* invoked.
|
|
13626
13698
|
*
|
|
13627
|
-
* Passing a WebFrameMain object as a video or audio stream
|
|
13628
|
-
*
|
|
13699
|
+
* Passing a WebFrameMain object as a video or audio stream captures the whole
|
|
13700
|
+
* `webContents` that contains that frame (the tab), not just the frame:
|
|
13701
|
+
* `request.frame` from an `<iframe>` therefore grants that iframe a capture of the
|
|
13702
|
+
* page that embeds it. Check `request.frame` before using it this way, and note
|
|
13703
|
+
* that the callback throws if the frame has been destroyed by the time it is
|
|
13704
|
+
* called.
|
|
13629
13705
|
*
|
|
13630
13706
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13631
13707
|
*/
|
|
@@ -18408,7 +18484,9 @@ declare namespace Electron {
|
|
|
18408
18484
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
18409
18485
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
18410
18486
|
* identifier is restricted to the web contents that it is registered to and is
|
|
18411
|
-
* only valid for 10 seconds.
|
|
18487
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18488
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18489
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
18412
18490
|
*/
|
|
18413
18491
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
18414
18492
|
/**
|
|
@@ -19748,8 +19826,10 @@ declare namespace Electron {
|
|
|
19748
19826
|
*/
|
|
19749
19827
|
nodeIntegrationInSubFrames?: boolean;
|
|
19750
19828
|
/**
|
|
19751
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19752
|
-
*
|
|
19829
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19830
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19831
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19832
|
+
* can be found in Multithreading.
|
|
19753
19833
|
*/
|
|
19754
19834
|
nodeIntegrationInWorker?: boolean;
|
|
19755
19835
|
/**
|
|
@@ -20319,6 +20399,10 @@ declare namespace Electron {
|
|
|
20319
20399
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
20320
20400
|
/**
|
|
20321
20401
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
20402
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
20403
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
20404
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
20405
|
+
* `event.senderFrame` identifies the sender.
|
|
20322
20406
|
*
|
|
20323
20407
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
20324
20408
|
* guest page and embedder page:
|
|
@@ -20701,7 +20785,9 @@ declare namespace Electron {
|
|
|
20701
20785
|
unselect(): void;
|
|
20702
20786
|
/**
|
|
20703
20787
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20704
|
-
* open new windows.
|
|
20788
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20789
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20790
|
+
* disabled by default.
|
|
20705
20791
|
*/
|
|
20706
20792
|
allowpopups: boolean;
|
|
20707
20793
|
/**
|
|
@@ -22152,6 +22238,15 @@ declare namespace Electron {
|
|
|
22152
22238
|
* The blocked path attempting to be accessed.
|
|
22153
22239
|
*/
|
|
22154
22240
|
path: string;
|
|
22241
|
+
/**
|
|
22242
|
+
* The frame that initiated access. May be `null` if the frame has since been
|
|
22243
|
+
* destroyed.
|
|
22244
|
+
*/
|
|
22245
|
+
frame: (WebFrameMain) | (null);
|
|
22246
|
+
/**
|
|
22247
|
+
* The WebContents that contains `frame`.
|
|
22248
|
+
*/
|
|
22249
|
+
webContents: (WebContents) | (null);
|
|
22155
22250
|
}
|
|
22156
22251
|
|
|
22157
22252
|
interface FindInPageOptions {
|
|
@@ -22742,6 +22837,7 @@ declare namespace Electron {
|
|
|
22742
22837
|
/**
|
|
22743
22838
|
* A badge shown alongside the label, either a system-styled count (`alerts`,
|
|
22744
22839
|
* `updates`, `new-items`) or a custom string. Only available on macOS 14 and up.
|
|
22840
|
+
* Not displayed in Dock menus.
|
|
22745
22841
|
*
|
|
22746
22842
|
* @platform darwin
|
|
22747
22843
|
*/
|
|
@@ -23137,6 +23233,12 @@ declare namespace Electron {
|
|
|
23137
23233
|
* or been destroyed.
|
|
23138
23234
|
*/
|
|
23139
23235
|
frame?: (WebFrameMain) | (null);
|
|
23236
|
+
/**
|
|
23237
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23238
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23239
|
+
* for requests the browser started itself.
|
|
23240
|
+
*/
|
|
23241
|
+
initiatorOrigin?: string;
|
|
23140
23242
|
/**
|
|
23141
23243
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23142
23244
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23166,6 +23268,12 @@ declare namespace Electron {
|
|
|
23166
23268
|
* or been destroyed.
|
|
23167
23269
|
*/
|
|
23168
23270
|
frame?: (WebFrameMain) | (null);
|
|
23271
|
+
/**
|
|
23272
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23273
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23274
|
+
* for requests the browser started itself.
|
|
23275
|
+
*/
|
|
23276
|
+
initiatorOrigin?: string;
|
|
23169
23277
|
/**
|
|
23170
23278
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23171
23279
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23187,6 +23295,12 @@ declare namespace Electron {
|
|
|
23187
23295
|
* or been destroyed.
|
|
23188
23296
|
*/
|
|
23189
23297
|
frame?: (WebFrameMain) | (null);
|
|
23298
|
+
/**
|
|
23299
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23300
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23301
|
+
* for requests the browser started itself.
|
|
23302
|
+
*/
|
|
23303
|
+
initiatorOrigin?: string;
|
|
23190
23304
|
/**
|
|
23191
23305
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23192
23306
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23209,6 +23323,12 @@ declare namespace Electron {
|
|
|
23209
23323
|
* or been destroyed.
|
|
23210
23324
|
*/
|
|
23211
23325
|
frame?: (WebFrameMain) | (null);
|
|
23326
|
+
/**
|
|
23327
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23328
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23329
|
+
* for requests the browser started itself.
|
|
23330
|
+
*/
|
|
23331
|
+
initiatorOrigin?: string;
|
|
23212
23332
|
/**
|
|
23213
23333
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23214
23334
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23234,6 +23354,12 @@ declare namespace Electron {
|
|
|
23234
23354
|
* or been destroyed.
|
|
23235
23355
|
*/
|
|
23236
23356
|
frame?: (WebFrameMain) | (null);
|
|
23357
|
+
/**
|
|
23358
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23359
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23360
|
+
* for requests the browser started itself.
|
|
23361
|
+
*/
|
|
23362
|
+
initiatorOrigin?: string;
|
|
23237
23363
|
/**
|
|
23238
23364
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23239
23365
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23259,6 +23385,12 @@ declare namespace Electron {
|
|
|
23259
23385
|
* or been destroyed.
|
|
23260
23386
|
*/
|
|
23261
23387
|
frame?: (WebFrameMain) | (null);
|
|
23388
|
+
/**
|
|
23389
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23390
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23391
|
+
* for requests the browser started itself.
|
|
23392
|
+
*/
|
|
23393
|
+
initiatorOrigin?: string;
|
|
23262
23394
|
/**
|
|
23263
23395
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23264
23396
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23282,6 +23414,12 @@ declare namespace Electron {
|
|
|
23282
23414
|
* or been destroyed.
|
|
23283
23415
|
*/
|
|
23284
23416
|
frame?: (WebFrameMain) | (null);
|
|
23417
|
+
/**
|
|
23418
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23419
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23420
|
+
* for requests the browser started itself.
|
|
23421
|
+
*/
|
|
23422
|
+
initiatorOrigin?: string;
|
|
23285
23423
|
/**
|
|
23286
23424
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23287
23425
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23309,6 +23447,12 @@ declare namespace Electron {
|
|
|
23309
23447
|
* or been destroyed.
|
|
23310
23448
|
*/
|
|
23311
23449
|
frame?: (WebFrameMain) | (null);
|
|
23450
|
+
/**
|
|
23451
|
+
* The origin that issued the request (for example `https://example.com`, or `null`
|
|
23452
|
+
* for an opaque origin). Kept from the original request across redirects; absent
|
|
23453
|
+
* for requests the browser started itself.
|
|
23454
|
+
*/
|
|
23455
|
+
initiatorOrigin?: string;
|
|
23312
23456
|
/**
|
|
23313
23457
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
23314
23458
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -23527,7 +23671,8 @@ declare namespace Electron {
|
|
|
23527
23671
|
*/
|
|
23528
23672
|
embeddingOrigin?: string;
|
|
23529
23673
|
/**
|
|
23530
|
-
* The
|
|
23674
|
+
* The origin of the requesting frame, for `media`, `hid`, `usb` and `serial`
|
|
23675
|
+
* checks.
|
|
23531
23676
|
*/
|
|
23532
23677
|
securityOrigin?: string;
|
|
23533
23678
|
/**
|
|
@@ -23535,8 +23680,8 @@ declare namespace Electron {
|
|
|
23535
23680
|
*/
|
|
23536
23681
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
23537
23682
|
/**
|
|
23538
|
-
* The last URL the requesting frame loaded.
|
|
23539
|
-
*
|
|
23683
|
+
* The last URL the requesting frame loaded. Not provided when the check is not
|
|
23684
|
+
* made on behalf of a document (for example for a service worker).
|
|
23540
23685
|
*/
|
|
23541
23686
|
requestingUrl?: string;
|
|
23542
23687
|
/**
|
|
@@ -24169,7 +24314,8 @@ declare namespace Electron {
|
|
|
24169
24314
|
/**
|
|
24170
24315
|
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
24171
24316
|
* loopback device will capture system audio, and is currently only supported on
|
|
24172
|
-
* Windows. If a WebFrameMain is specified, will capture audio from
|
|
24317
|
+
* Windows. If a WebFrameMain is specified, will capture audio from the
|
|
24318
|
+
* `webContents` that contains that frame.
|
|
24173
24319
|
*/
|
|
24174
24320
|
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
24175
24321
|
/**
|
package/package.json
CHANGED