electron 24.1.2 → 24.2.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.
- package/checksums.json +75 -75
- package/electron.d.ts +121 -14
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v24.
|
|
3
|
-
"chromedriver-v24.
|
|
4
|
-
"chromedriver-v24.
|
|
5
|
-
"chromedriver-v24.
|
|
6
|
-
"chromedriver-v24.
|
|
7
|
-
"chromedriver-v24.
|
|
8
|
-
"chromedriver-v24.
|
|
9
|
-
"chromedriver-v24.
|
|
10
|
-
"chromedriver-v24.
|
|
11
|
-
"chromedriver-v24.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v24.
|
|
14
|
-
"electron-v24.
|
|
15
|
-
"electron-v24.
|
|
16
|
-
"electron-v24.
|
|
17
|
-
"electron-v24.
|
|
18
|
-
"electron-v24.
|
|
19
|
-
"electron-v24.
|
|
20
|
-
"electron-v24.
|
|
21
|
-
"electron-v24.
|
|
22
|
-
"electron-v24.
|
|
23
|
-
"electron-v24.
|
|
24
|
-
"electron-v24.
|
|
25
|
-
"electron-v24.
|
|
26
|
-
"electron-v24.
|
|
27
|
-
"electron-v24.
|
|
28
|
-
"electron-v24.
|
|
29
|
-
"electron-v24.
|
|
30
|
-
"electron-v24.
|
|
31
|
-
"electron-v24.
|
|
32
|
-
"electron-v24.
|
|
33
|
-
"electron-v24.
|
|
34
|
-
"electron-v24.
|
|
35
|
-
"electron-v24.
|
|
36
|
-
"electron-v24.
|
|
37
|
-
"electron-v24.
|
|
38
|
-
"electron-v24.
|
|
39
|
-
"electron-v24.
|
|
40
|
-
"electron-v24.
|
|
41
|
-
"electron-v24.
|
|
42
|
-
"electron-v24.
|
|
43
|
-
"electron-v24.
|
|
44
|
-
"electron-v24.
|
|
45
|
-
"electron-v24.
|
|
46
|
-
"electron-v24.
|
|
47
|
-
"electron-v24.
|
|
48
|
-
"electron-v24.
|
|
49
|
-
"electron-v24.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v24.
|
|
52
|
-
"ffmpeg-v24.
|
|
53
|
-
"ffmpeg-v24.
|
|
54
|
-
"ffmpeg-v24.
|
|
55
|
-
"ffmpeg-v24.
|
|
56
|
-
"ffmpeg-v24.
|
|
57
|
-
"ffmpeg-v24.
|
|
58
|
-
"ffmpeg-v24.
|
|
59
|
-
"ffmpeg-v24.
|
|
60
|
-
"ffmpeg-v24.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v24.
|
|
63
|
-
"libcxx-objects-v24.
|
|
64
|
-
"libcxx-objects-v24.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v24.
|
|
68
|
-
"mksnapshot-v24.
|
|
69
|
-
"mksnapshot-v24.
|
|
70
|
-
"mksnapshot-v24.
|
|
71
|
-
"mksnapshot-v24.
|
|
72
|
-
"mksnapshot-v24.
|
|
73
|
-
"mksnapshot-v24.
|
|
74
|
-
"mksnapshot-v24.
|
|
75
|
-
"mksnapshot-v24.
|
|
76
|
-
"mksnapshot-v24.
|
|
2
|
+
"chromedriver-v24.2.0-darwin-arm64.zip": "8751b2e02c2ba82b507bc52959c49c794206d1d9acea363bc4978af6aa7d890e",
|
|
3
|
+
"chromedriver-v24.2.0-darwin-x64.zip": "d65e04cf848a05abd5271a43416568494c50f2ba5cd0761d09c9eeced2f7f5eb",
|
|
4
|
+
"chromedriver-v24.2.0-linux-arm64.zip": "b529dd071887c144524a1c1d1119e396af60c17ace9df2c09e6ec5e8d0f897d2",
|
|
5
|
+
"chromedriver-v24.2.0-linux-armv7l.zip": "8d2a635a19815e06b36b298bffee6d277315f762719fa0c573736602d4f9a088",
|
|
6
|
+
"chromedriver-v24.2.0-linux-x64.zip": "7e377afdb7e1f8fa1417d19e5c89ab1b85f573dff1526cb1fbed9c65113b270a",
|
|
7
|
+
"chromedriver-v24.2.0-mas-arm64.zip": "a181698cab6e2262464f908ce73aeff5dc431a82c376c948734f1b1aa29ec34c",
|
|
8
|
+
"chromedriver-v24.2.0-mas-x64.zip": "6ce92aee0176154abc5cd0b253edfaeea4d208a0b9f95b8cb0766295e1ad3e90",
|
|
9
|
+
"chromedriver-v24.2.0-win32-arm64.zip": "617a5103d4d006b97617533ed034dfca9ed542e02d1344ef66eb9f5792061f53",
|
|
10
|
+
"chromedriver-v24.2.0-win32-ia32.zip": "2915716b62ac011878eca31ca85c83422c748f82ce644c019ad4b2a84fbeea1c",
|
|
11
|
+
"chromedriver-v24.2.0-win32-x64.zip": "45adb35cc5049f7a1137d72b4844090ce2472024953b05c1b260bba5d7eca7dc",
|
|
12
|
+
"electron-api.json": "83b76aee574c1883b2ea0faa5b795ff1e5aeec6cda69eac22d666d2f0e68dc3f",
|
|
13
|
+
"electron-v24.2.0-darwin-arm64-dsym-snapshot.zip": "38f223f925ce188c037c0ab42bf60dfd97b3f2a43ff481054b96b42d0b4f3d3e",
|
|
14
|
+
"electron-v24.2.0-darwin-arm64-dsym.zip": "5562430af472ec63df6413a7b9b90a75f92a472ba30ed4dbae958ad037eecf1d",
|
|
15
|
+
"electron-v24.2.0-darwin-arm64-symbols.zip": "2b32dad902cd4c7e2a97dca12f548b3f30b2cc184ebd293a4f4e735a92140f71",
|
|
16
|
+
"electron-v24.2.0-darwin-arm64.zip": "529d0745e99278c66f631c81edbef22a5ad8871332366002edd371b409850b24",
|
|
17
|
+
"electron-v24.2.0-darwin-x64-dsym-snapshot.zip": "05936919ae1163d51e0e773ee1471288aa085376f440b721749abb52f00fb128",
|
|
18
|
+
"electron-v24.2.0-darwin-x64-dsym.zip": "eaac0b121bb6b3f832a86771c8e9a92a9f9775a8603c9c9f26f3672bcc8777e1",
|
|
19
|
+
"electron-v24.2.0-darwin-x64-symbols.zip": "4ad384ccbf219714ff56bea0a8c0b81c9cf6771c716965043869058852f8421b",
|
|
20
|
+
"electron-v24.2.0-darwin-x64.zip": "23f77fbde72cad8315e7d370d929cdceb5408f5533494241fc5dd503d8ad0cdc",
|
|
21
|
+
"electron-v24.2.0-linux-arm64-debug.zip": "36d8f74ed5ba828f299df7f5bdc6c33a09520d959dc580b45983d0efb4a5fbba",
|
|
22
|
+
"electron-v24.2.0-linux-arm64-symbols.zip": "b8ec5db0be19e2d14877f84882775d749e558927adf12f7269730cacd23e962b",
|
|
23
|
+
"electron-v24.2.0-linux-arm64.zip": "e81baa9f45dcf36f10960e823143bd30633ff679b4253a266896028c3b438959",
|
|
24
|
+
"electron-v24.2.0-linux-armv7l-debug.zip": "36d8f74ed5ba828f299df7f5bdc6c33a09520d959dc580b45983d0efb4a5fbba",
|
|
25
|
+
"electron-v24.2.0-linux-armv7l-symbols.zip": "68a3354689645c053d65c10e20e8b9622b4016ebd8b0edfbb325c66ceda1bb23",
|
|
26
|
+
"electron-v24.2.0-linux-armv7l.zip": "c611ec6a6620a199a0656656c191384f498cff7e7831c45e449728379de4ba23",
|
|
27
|
+
"electron-v24.2.0-linux-x64-debug.zip": "448a86e9343775ea9bea0a79887f6f122cb5bc51816896f030fc119032d1fbc7",
|
|
28
|
+
"electron-v24.2.0-linux-x64-symbols.zip": "61e28ed8ef41217629467761bad8d74e2bc7d7d02909fec19b2589ef80e35b24",
|
|
29
|
+
"electron-v24.2.0-linux-x64.zip": "8d7780dd2afcfe5e94a2cf574f4fa10a2a2c691227771fca49051c524ac67513",
|
|
30
|
+
"electron-v24.2.0-mas-arm64-dsym-snapshot.zip": "38f223f925ce188c037c0ab42bf60dfd97b3f2a43ff481054b96b42d0b4f3d3e",
|
|
31
|
+
"electron-v24.2.0-mas-arm64-dsym.zip": "4b3434de34db749dc387b3ee90b58393291b52f12fda7098a6cd7f075f317125",
|
|
32
|
+
"electron-v24.2.0-mas-arm64-symbols.zip": "d8e41d76a6296d0128f4363dc15d95b6cc70436a3862993dd22722df9321d01f",
|
|
33
|
+
"electron-v24.2.0-mas-arm64.zip": "16187042162c669886b068b1026729b1826dfbab4af2c1f443e693558ed879f9",
|
|
34
|
+
"electron-v24.2.0-mas-x64-dsym-snapshot.zip": "a308b197e767a21c5274ed5e134751185571455406a55cfec41c34f000142cba",
|
|
35
|
+
"electron-v24.2.0-mas-x64-dsym.zip": "a98f6aec062eec1ea419c1c239ba44801beb043fbda792c6b6c701a4132bacca",
|
|
36
|
+
"electron-v24.2.0-mas-x64-symbols.zip": "fa8e8a6cc3e57835e12964e6d0c41e905716d09965ad741c2eb0d8062b64a04a",
|
|
37
|
+
"electron-v24.2.0-mas-x64.zip": "2adb5bdfb857362fa87d3dc3ad23203ff82bbceb40f219720bb424d1a0f1b4b3",
|
|
38
|
+
"electron-v24.2.0-win32-arm64-pdb.zip": "72406f0f75cfed4ba38b6d0913b705b78f40930cd5a0e4b7da87e898ba322982",
|
|
39
|
+
"electron-v24.2.0-win32-arm64-symbols.zip": "5945c7c520258d1358bea0e34e52bad54cd5866ae721c5c0d44640829448fcc9",
|
|
40
|
+
"electron-v24.2.0-win32-arm64-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
41
|
+
"electron-v24.2.0-win32-arm64.zip": "21619d4616d3d63d42e6c199e1f83d803041f1d29e700f4c9968a4f34d27f8bd",
|
|
42
|
+
"electron-v24.2.0-win32-ia32-pdb.zip": "4da39190afecbbaffd55985f6e46224d9281d76df7d54de6d6dc31d35b37f1cb",
|
|
43
|
+
"electron-v24.2.0-win32-ia32-symbols.zip": "be95f3a7ef0b5b749c26e08eeb8a7b4e1e581f09a6c8537fabc65c126364bd23",
|
|
44
|
+
"electron-v24.2.0-win32-ia32-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
45
|
+
"electron-v24.2.0-win32-ia32.zip": "224a2934ff1a6164ee49d4ceda58f7bfbe220ee64d1a4356485f36b2df6a80a8",
|
|
46
|
+
"electron-v24.2.0-win32-x64-pdb.zip": "ffa0ca3d63583efd42c40c8ff938d9646ded0089a5570ec749d0b794c6052a57",
|
|
47
|
+
"electron-v24.2.0-win32-x64-symbols.zip": "992cf47e6fe10ccdd800fb5c3a4efcfd143737fdf5335f2a491a770bcc294c04",
|
|
48
|
+
"electron-v24.2.0-win32-x64-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
49
|
+
"electron-v24.2.0-win32-x64.zip": "c5842697deb4a8fdec07f469dee10c53bb3d693d8c6b80395471f3b94c7cafd7",
|
|
50
|
+
"electron.d.ts": "9aa84532985f35978d0bcfe05dd5e91661252e014c7317008761f773502704b4",
|
|
51
|
+
"ffmpeg-v24.2.0-darwin-arm64.zip": "286fb8f18ff1685c4be60e12e1171ca11b0606864c526767222d07b764721f78",
|
|
52
|
+
"ffmpeg-v24.2.0-darwin-x64.zip": "552c70c3931709cba23c76b9b96dfe5294a870581d963facff65cee69d923d99",
|
|
53
|
+
"ffmpeg-v24.2.0-linux-arm64.zip": "f08789af1ca6de63b559adb63797b4b23c6bea41fa2ff616b00915314a12a5d5",
|
|
54
|
+
"ffmpeg-v24.2.0-linux-armv7l.zip": "48e146928b04c1669d65a7d6362b961aed97115fa372882e61bd3d58c9e9ae25",
|
|
55
|
+
"ffmpeg-v24.2.0-linux-x64.zip": "e64e6fa1f3ab0058cdad4afdf61cf777c29c6cc193267137352729f35ee4d8eb",
|
|
56
|
+
"ffmpeg-v24.2.0-mas-arm64.zip": "dc42f3b9bcbbb9d7101fc7988fa743ab7625d93643df8b36b201cf1a8804f985",
|
|
57
|
+
"ffmpeg-v24.2.0-mas-x64.zip": "f540c3c470aad8b05e0676e55e575f9dbe0a6a738ae5e285f0be05f2547f0590",
|
|
58
|
+
"ffmpeg-v24.2.0-win32-arm64.zip": "32de558b8a405bfaed88b16db4f2ccd2404463eeea24800205e5d622515a02b2",
|
|
59
|
+
"ffmpeg-v24.2.0-win32-ia32.zip": "0fbfcde1bc4db582054922e64fdb54f2b086fa8f9059ca44806884720ab6ee60",
|
|
60
|
+
"ffmpeg-v24.2.0-win32-x64.zip": "fd2c16b7ecf196ef6267a6f287894129bd2d4feee7c9749fba2780e153f72bc1",
|
|
61
|
+
"hunspell_dictionaries.zip": "7989f132aab915e0ec861e35ef3f7e730ccd891732b3ad022e4d3e62e7ed7593",
|
|
62
|
+
"libcxx-objects-v24.2.0-linux-arm64.zip": "3c881e44c769b330ec74b31dabba2423af93f74471bc823fabe3ebeaef742d30",
|
|
63
|
+
"libcxx-objects-v24.2.0-linux-armv7l.zip": "7d52938678451f4945904750e27324cba9843cf24cff610cf2c1faf76cf531d6",
|
|
64
|
+
"libcxx-objects-v24.2.0-linux-x64.zip": "3bf44c906960d5ed3d88b4f25f221332f3bccaeb5b5096376cb0f5fedb6f450d",
|
|
65
|
+
"libcxx_headers.zip": "23ee8cf4d37e71bfb47373f990f8b8cbd558b9704c6972a23de8c55935f391fb",
|
|
66
|
+
"libcxxabi_headers.zip": "ffe645dea228a37f9455d73c4e07d16ffa426a78cacead3ff95e622b3544f08a",
|
|
67
|
+
"mksnapshot-v24.2.0-darwin-arm64.zip": "f2c44ace7654e3f400bd6f097418b004bd5083529103ceaaa64a034d848a96cb",
|
|
68
|
+
"mksnapshot-v24.2.0-darwin-x64.zip": "3833f02488e498d1928914e9e235764cacdb61589a4f82d6903d9ce77f68ea7c",
|
|
69
|
+
"mksnapshot-v24.2.0-linux-arm64-x64.zip": "1711b1949d5079cb3c610eb250b3afcd1fc61918afc395a674568d3269a60d4d",
|
|
70
|
+
"mksnapshot-v24.2.0-linux-armv7l-x64.zip": "80667262e018a56bb3aae5e42aef8d0ff3dfcb263c10e382b97e97d751991fc9",
|
|
71
|
+
"mksnapshot-v24.2.0-linux-x64.zip": "a0e379d0c7980b0ef955fe9abfb1081def7e70c739d6282d6683c208ce31757e",
|
|
72
|
+
"mksnapshot-v24.2.0-mas-arm64.zip": "9a31fca56be83ce4a7ce6e50c0aaf6750abcd4a6cb95254af9202d837f4c4fc6",
|
|
73
|
+
"mksnapshot-v24.2.0-mas-x64.zip": "907104cf5fbf77a4fd769ff365ccc90e7d7b026c48b2d3d860f0d1abfcd3350f",
|
|
74
|
+
"mksnapshot-v24.2.0-win32-arm64-x64.zip": "bf23637b5937455ad3672480c0c16c5b2c2691cf3ef2651800fae4f28560fb53",
|
|
75
|
+
"mksnapshot-v24.2.0-win32-ia32.zip": "bdf7a71f75ab62d177b9f023b9f205b54eb9d51a9cee0238840c100dee487cdb",
|
|
76
|
+
"mksnapshot-v24.2.0-win32-x64.zip": "51a616078988f619d8f0b6d67891c14d62e553f3a9064ee48f7490a9d75022e5"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 24.
|
|
1
|
+
// Type definitions for Electron 24.2.0
|
|
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/electron-typescript-definitions
|
|
@@ -2785,6 +2785,10 @@ declare namespace Electron {
|
|
|
2785
2785
|
setFocusable(focusable: boolean): void;
|
|
2786
2786
|
/**
|
|
2787
2787
|
* Sets whether the window should be in fullscreen mode.
|
|
2788
|
+
*
|
|
2789
|
+
* **Note:** On macOS, fullscreen transitions take place asynchronously. If further
|
|
2790
|
+
* actions depend on the fullscreen state, use the 'enter-full-screen' or
|
|
2791
|
+
* 'leave-full-screen' events.
|
|
2788
2792
|
*/
|
|
2789
2793
|
setFullScreen(flag: boolean): void;
|
|
2790
2794
|
/**
|
|
@@ -6560,6 +6564,17 @@ declare namespace Electron {
|
|
|
6560
6564
|
once(event: 'shutdown', listener: Function): this;
|
|
6561
6565
|
addListener(event: 'shutdown', listener: Function): this;
|
|
6562
6566
|
removeListener(event: 'shutdown', listener: Function): this;
|
|
6567
|
+
/**
|
|
6568
|
+
* Notification of a change in the operating system's advertised speed limit for
|
|
6569
|
+
* CPUs, in percent. Values below 100 indicate that the system is impairing
|
|
6570
|
+
* processing power due to thermal management.
|
|
6571
|
+
*
|
|
6572
|
+
* @platform darwin,win32
|
|
6573
|
+
*/
|
|
6574
|
+
on(event: 'speed-limit-change', listener: Function): this;
|
|
6575
|
+
once(event: 'speed-limit-change', listener: Function): this;
|
|
6576
|
+
addListener(event: 'speed-limit-change', listener: Function): this;
|
|
6577
|
+
removeListener(event: 'speed-limit-change', listener: Function): this;
|
|
6563
6578
|
/**
|
|
6564
6579
|
* Emitted when the system is suspending.
|
|
6565
6580
|
*/
|
|
@@ -6567,6 +6582,92 @@ declare namespace Electron {
|
|
|
6567
6582
|
once(event: 'suspend', listener: Function): this;
|
|
6568
6583
|
addListener(event: 'suspend', listener: Function): this;
|
|
6569
6584
|
removeListener(event: 'suspend', listener: Function): this;
|
|
6585
|
+
/**
|
|
6586
|
+
* Emitted when the thermal state of the system changes. Notification of a change
|
|
6587
|
+
* in the thermal status of the system, such as entering a critical temperature
|
|
6588
|
+
* range. Depending on the severity, the system might take steps to reduce said
|
|
6589
|
+
* temperature, for example, throttling the CPU or switching on the fans if
|
|
6590
|
+
* available.
|
|
6591
|
+
*
|
|
6592
|
+
* Apps may react to the new state by reducing expensive computing tasks (e.g.
|
|
6593
|
+
* video encoding), or notifying the user. The same state might be received
|
|
6594
|
+
* repeatedly.
|
|
6595
|
+
*
|
|
6596
|
+
* See
|
|
6597
|
+
*
|
|
6598
|
+
*
|
|
6599
|
+
*
|
|
6600
|
+
*
|
|
6601
|
+
*
|
|
6602
|
+
*
|
|
6603
|
+
*
|
|
6604
|
+
*
|
|
6605
|
+
*
|
|
6606
|
+
*
|
|
6607
|
+
*
|
|
6608
|
+
*
|
|
6609
|
+
*
|
|
6610
|
+
*
|
|
6611
|
+
*
|
|
6612
|
+
*
|
|
6613
|
+
*
|
|
6614
|
+
*
|
|
6615
|
+
*
|
|
6616
|
+
*
|
|
6617
|
+
*
|
|
6618
|
+
*
|
|
6619
|
+
*
|
|
6620
|
+
*
|
|
6621
|
+
*
|
|
6622
|
+
*
|
|
6623
|
+
*
|
|
6624
|
+
*
|
|
6625
|
+
*
|
|
6626
|
+
*
|
|
6627
|
+
*
|
|
6628
|
+
*
|
|
6629
|
+
*
|
|
6630
|
+
*
|
|
6631
|
+
*
|
|
6632
|
+
*
|
|
6633
|
+
*
|
|
6634
|
+
*
|
|
6635
|
+
*
|
|
6636
|
+
*
|
|
6637
|
+
*
|
|
6638
|
+
*
|
|
6639
|
+
*
|
|
6640
|
+
*
|
|
6641
|
+
*
|
|
6642
|
+
*
|
|
6643
|
+
*
|
|
6644
|
+
*
|
|
6645
|
+
*
|
|
6646
|
+
*
|
|
6647
|
+
*
|
|
6648
|
+
*
|
|
6649
|
+
*
|
|
6650
|
+
*
|
|
6651
|
+
*
|
|
6652
|
+
*
|
|
6653
|
+
*
|
|
6654
|
+
*
|
|
6655
|
+
*
|
|
6656
|
+
*
|
|
6657
|
+
*
|
|
6658
|
+
*
|
|
6659
|
+
*
|
|
6660
|
+
*
|
|
6661
|
+
*
|
|
6662
|
+
*
|
|
6663
|
+
* nce/Conceptual/power_efficiency_guidelines_osx/RespondToThermalStateChanges.html
|
|
6664
|
+
*
|
|
6665
|
+
* @platform darwin
|
|
6666
|
+
*/
|
|
6667
|
+
on(event: 'thermal-state-change', listener: Function): this;
|
|
6668
|
+
once(event: 'thermal-state-change', listener: Function): this;
|
|
6669
|
+
addListener(event: 'thermal-state-change', listener: Function): this;
|
|
6670
|
+
removeListener(event: 'thermal-state-change', listener: Function): this;
|
|
6570
6671
|
/**
|
|
6571
6672
|
* Emitted as soon as the systems screen is unlocked.
|
|
6572
6673
|
*
|
|
@@ -6597,7 +6698,14 @@ declare namespace Electron {
|
|
|
6597
6698
|
addListener(event: 'user-did-resign-active', listener: Function): this;
|
|
6598
6699
|
removeListener(event: 'user-did-resign-active', listener: Function): this;
|
|
6599
6700
|
/**
|
|
6600
|
-
* The system's current state. Can be `
|
|
6701
|
+
* The system's current thermal state. Can be `unknown`, `nominal`, `fair`,
|
|
6702
|
+
* `serious`, or `critical`.
|
|
6703
|
+
*
|
|
6704
|
+
* @platform darwin
|
|
6705
|
+
*/
|
|
6706
|
+
getCurrentThermalState(): ('unknown' | 'nominal' | 'fair' | 'serious' | 'critical');
|
|
6707
|
+
/**
|
|
6708
|
+
* The system's current idle state. Can be `active`, `idle`, `locked` or `unknown`.
|
|
6601
6709
|
*
|
|
6602
6710
|
* Calculate the system idle state. `idleThreshold` is the amount of time (in
|
|
6603
6711
|
* seconds) before considered idle. `locked` is available on supported systems
|
|
@@ -10185,33 +10293,32 @@ declare namespace Electron {
|
|
|
10185
10293
|
// Docs: https://electronjs.org/docs/api/web-contents
|
|
10186
10294
|
|
|
10187
10295
|
/**
|
|
10188
|
-
*
|
|
10189
|
-
*
|
|
10296
|
+
* A WebContents instance with the given TargetID, or `undefined` if there is no
|
|
10297
|
+
* WebContents associated with the given TargetID.
|
|
10190
10298
|
*
|
|
10191
10299
|
* When communicating with the Chrome DevTools Protocol, it can be useful to lookup
|
|
10192
10300
|
* a WebContents instance based on its assigned TargetID.
|
|
10193
10301
|
*/
|
|
10194
|
-
static fromDevToolsTargetId(targetId: string): WebContents;
|
|
10302
|
+
static fromDevToolsTargetId(targetId: string): (WebContents) | (undefined);
|
|
10195
10303
|
/**
|
|
10196
|
-
*
|
|
10197
|
-
*
|
|
10304
|
+
* A WebContents instance with the given WebFrameMain, or `undefined` if there is
|
|
10305
|
+
* no WebContents associated with the given WebFrameMain.
|
|
10198
10306
|
*/
|
|
10199
|
-
static fromFrame(frame: WebFrameMain): WebContents;
|
|
10307
|
+
static fromFrame(frame: WebFrameMain): (WebContents) | (undefined);
|
|
10200
10308
|
/**
|
|
10201
|
-
*
|
|
10202
|
-
*
|
|
10309
|
+
* A WebContents instance with the given ID, or `undefined` if there is no
|
|
10310
|
+
* WebContents associated with the given ID.
|
|
10203
10311
|
*/
|
|
10204
|
-
static fromId(id: number): WebContents;
|
|
10312
|
+
static fromId(id: number): (WebContents) | (undefined);
|
|
10205
10313
|
/**
|
|
10206
10314
|
* An array of all `WebContents` instances. This will contain web contents for all
|
|
10207
10315
|
* windows, webviews, opened devtools, and devtools extension background pages.
|
|
10208
10316
|
*/
|
|
10209
10317
|
static getAllWebContents(): WebContents[];
|
|
10210
10318
|
/**
|
|
10211
|
-
*
|
|
10212
|
-
* `null`.
|
|
10319
|
+
* The web contents that is focused in this application, otherwise returns `null`.
|
|
10213
10320
|
*/
|
|
10214
|
-
static getFocusedWebContents(): WebContents;
|
|
10321
|
+
static getFocusedWebContents(): (WebContents) | (null);
|
|
10215
10322
|
/**
|
|
10216
10323
|
* Emitted before dispatching the `keydown` and `keyup` events in the page. Calling
|
|
10217
10324
|
* `event.preventDefault` will prevent the page `keydown`/`keyup` events and the
|
package/package.json
CHANGED