electron 39.1.1 → 40.0.0-alpha.4
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/abi_version +1 -1
- package/checksums.json +75 -75
- package/cli.js +4 -1
- package/electron.d.ts +37 -43
- package/package.json +2 -2
package/abi_version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
143
|
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-v40.0.0-alpha.4-darwin-arm64.zip": "7009b0f043ed897cf8a3f823b696ad061d39cdb56b33602c7ea0f84a31243b6e",
|
|
3
|
+
"chromedriver-v40.0.0-alpha.4-darwin-x64.zip": "66522f31751f8dc37127bf8e6c5804461c98d7a42ed8b0e2fda0ddd1cf174614",
|
|
4
|
+
"chromedriver-v40.0.0-alpha.4-linux-arm64.zip": "392cba143f5f8b20953351907ee4c6b3bc334bd4ac0c1d14b351473c6d3d8972",
|
|
5
|
+
"chromedriver-v40.0.0-alpha.4-linux-armv7l.zip": "d2f878daaf4e43340530549930d60c91a245065414165d26ee9645971f1c95a2",
|
|
6
|
+
"chromedriver-v40.0.0-alpha.4-linux-x64.zip": "9d5ab61bc0d23f68b5042f15f620cf8448fed6e6cb7b9d6e177debb51c3d8de6",
|
|
7
|
+
"chromedriver-v40.0.0-alpha.4-mas-arm64.zip": "269bf83e70ca16bd6f62f8d7c00a4c4ab00c399bae04d120fd9468a6d52f931b",
|
|
8
|
+
"chromedriver-v40.0.0-alpha.4-mas-x64.zip": "608b19264d1b23b74543b006bdb7af06598af571a81070011f28b8e005fbd755",
|
|
9
|
+
"chromedriver-v40.0.0-alpha.4-win32-arm64.zip": "b1e7188cb38efca74f6bf0c38bb86390a23578ba5600319ae4d5ead856cd5075",
|
|
10
|
+
"chromedriver-v40.0.0-alpha.4-win32-ia32.zip": "fb69451e1a7907fdd12d908eb7ba18cba9aef85e5e0fb0d0f2a8d350fc9cfa1b",
|
|
11
|
+
"chromedriver-v40.0.0-alpha.4-win32-x64.zip": "4435cfcfef4bb129265ec9a0e3b8883a6376f495d512c2476b3915a44fee5ab8",
|
|
12
|
+
"electron-api.json": "71c3906d6f8826f033b695a96173006700ef676ce3c394e3645ccca3da706c95",
|
|
13
|
+
"electron-v40.0.0-alpha.4-darwin-arm64-dsym-snapshot.zip": "ac126ecd25c66b6b4cb78137790547e277fa2d39c901d3168eba981684961b8c",
|
|
14
|
+
"electron-v40.0.0-alpha.4-darwin-arm64-dsym.zip": "1984e40f2a3e3e18c2f8d4ece64598da1644521fec310b8bf2fc0042fc148e34",
|
|
15
|
+
"electron-v40.0.0-alpha.4-darwin-arm64-symbols.zip": "b7d23593207836bf41c891c19d038c10a9ee725c164ba6ef7a0e88b7d445dca0",
|
|
16
|
+
"electron-v40.0.0-alpha.4-darwin-arm64.zip": "bbefb1a0a9f8632c2a90899a6bbde6d3925ea6c08ee59668ece707221ce1969e",
|
|
17
|
+
"electron-v40.0.0-alpha.4-darwin-x64-dsym-snapshot.zip": "ed5c0dd6daae3093dad13900bfedcd4b32246d264d49a43f22604deccc5d087b",
|
|
18
|
+
"electron-v40.0.0-alpha.4-darwin-x64-dsym.zip": "116871d0d7d2c753ee15e08bd2712a5ec01b758b556c8152474d66d3187d79fa",
|
|
19
|
+
"electron-v40.0.0-alpha.4-darwin-x64-symbols.zip": "a214f2d25d43e8d273443c9bad0ab8c25c7569b1114585c8712408cc36c730c2",
|
|
20
|
+
"electron-v40.0.0-alpha.4-darwin-x64.zip": "bc45e9551cd1043527206647e758fc052c21c6c00631ead71c1f235728ee254f",
|
|
21
|
+
"electron-v40.0.0-alpha.4-linux-arm64-debug.zip": "d9b604a5f4393469a98c64c1bd6bd86bea19da2b99f6de1917bb28498742942c",
|
|
22
|
+
"electron-v40.0.0-alpha.4-linux-arm64-symbols.zip": "913fd5c1b130d30beef70d72b31646161d743f81c08830d76af5381e39eca307",
|
|
23
|
+
"electron-v40.0.0-alpha.4-linux-arm64.zip": "dd72d1641a8c1969f56e03b4518d3bf5fcbfd84006e8a1e8b11b653f76fef25a",
|
|
24
|
+
"electron-v40.0.0-alpha.4-linux-armv7l-debug.zip": "e6c2540e115aeb46b9f306254193bceb654826b48359a25b07cd5578950f260d",
|
|
25
|
+
"electron-v40.0.0-alpha.4-linux-armv7l-symbols.zip": "b7b709f3c4e945dfceecd216c1462534340efed2848d35e0ea63e31a2ee7b07d",
|
|
26
|
+
"electron-v40.0.0-alpha.4-linux-armv7l.zip": "2c0c1b8c7c09510135adfc75791cb916c9941e8eb0e2a510048f2728c5fa1be6",
|
|
27
|
+
"electron-v40.0.0-alpha.4-linux-x64-debug.zip": "434ca160542eb404da4cccc22ed71b3227b2ad300c21ba09199c2718741c0fce",
|
|
28
|
+
"electron-v40.0.0-alpha.4-linux-x64-symbols.zip": "1c38a013302df18f5c3e9dcdc9cd3f441d9beca39bcc683794362338d5de970b",
|
|
29
|
+
"electron-v40.0.0-alpha.4-linux-x64.zip": "dec2bb4a7bc7d036139732b9e94b60785dbadd5da5c3375c524393cd54b171f4",
|
|
30
|
+
"electron-v40.0.0-alpha.4-mas-arm64-dsym-snapshot.zip": "78419c526022904bc7412939bc97eabddf08ddfabae2ae45ebde00432fd986e1",
|
|
31
|
+
"electron-v40.0.0-alpha.4-mas-arm64-dsym.zip": "c03732ce174d71a78b09e2253ea7aebe36282760af346e07524d13d335ded3b7",
|
|
32
|
+
"electron-v40.0.0-alpha.4-mas-arm64-symbols.zip": "2b518dca1976e60a58284649717dcf97f1b29d70b2a978d4f2317549644bf1c7",
|
|
33
|
+
"electron-v40.0.0-alpha.4-mas-arm64.zip": "5d23d9dde3fa3bc9c33fa454757c312e3a71db0f91b2d5f36f5286a15caf855a",
|
|
34
|
+
"electron-v40.0.0-alpha.4-mas-x64-dsym-snapshot.zip": "587a66cb555b1afcb721217f887585068cd3370a5734f67792051c71d09971ee",
|
|
35
|
+
"electron-v40.0.0-alpha.4-mas-x64-dsym.zip": "850eaa98e8041e89c08f1b1f3e0685c7ee54e45a5b459e3cb37d10d8ffe3b357",
|
|
36
|
+
"electron-v40.0.0-alpha.4-mas-x64-symbols.zip": "a1f418d7737673c37e1d34b2fc4be653927c32c25c9dbb8f45d9b3d9ee85173f",
|
|
37
|
+
"electron-v40.0.0-alpha.4-mas-x64.zip": "5866c6f798f244a6af82c90dc82f2cb507fb9e316638cc3c3793f1200abb2289",
|
|
38
|
+
"electron-v40.0.0-alpha.4-win32-arm64-pdb.zip": "28178f679689628a8946de6c236ad39b301cbb5d4014952edcd44ac111a744f2",
|
|
39
|
+
"electron-v40.0.0-alpha.4-win32-arm64-symbols.zip": "fea22fe819bc119eebce748a5b7fdf43d27746da5151154a97013552dd9975e8",
|
|
40
|
+
"electron-v40.0.0-alpha.4-win32-arm64-toolchain-profile.zip": "380197ab051157f280de98e3f0d67e269bcddaff85035bcca26adfff7b7caf58",
|
|
41
|
+
"electron-v40.0.0-alpha.4-win32-arm64.zip": "f2502d9a1f741ead3669cf8cb2edd7675095bc4f8ef5c9b632cccdbe87f2422a",
|
|
42
|
+
"electron-v40.0.0-alpha.4-win32-ia32-pdb.zip": "b0760a9c1d0727503a38a8cb395542e79bed7f5106cd6a08f4d3eee3c6bb95a7",
|
|
43
|
+
"electron-v40.0.0-alpha.4-win32-ia32-symbols.zip": "3aabdbb941d2ead078d6be4354b0af84ac36ebaf0f6773c55c413b3ba593396c",
|
|
44
|
+
"electron-v40.0.0-alpha.4-win32-ia32-toolchain-profile.zip": "380197ab051157f280de98e3f0d67e269bcddaff85035bcca26adfff7b7caf58",
|
|
45
|
+
"electron-v40.0.0-alpha.4-win32-ia32.zip": "d88d8eb512b3fbed86149a27f056ba0928323287d98546815f71fa1c51ce82c4",
|
|
46
|
+
"electron-v40.0.0-alpha.4-win32-x64-pdb.zip": "721eee9cb4b82a4371b6013f438fc39026c1e270bf811180a392fb371c784d28",
|
|
47
|
+
"electron-v40.0.0-alpha.4-win32-x64-symbols.zip": "92e6820090e41f509c6eb9c998f4d82db5e84c9bc6743029012e5ca642d5c2e7",
|
|
48
|
+
"electron-v40.0.0-alpha.4-win32-x64-toolchain-profile.zip": "380197ab051157f280de98e3f0d67e269bcddaff85035bcca26adfff7b7caf58",
|
|
49
|
+
"electron-v40.0.0-alpha.4-win32-x64.zip": "9cd0d676bc6ea3a8723502facb43c0a2b399ea9810ba3ec2bec3c273bdfe8f40",
|
|
50
|
+
"electron.d.ts": "7f7a508f51576d4e2b334eabed1786b38b22023f7b48b84237414858d3842fda",
|
|
51
|
+
"ffmpeg-v40.0.0-alpha.4-darwin-arm64.zip": "6046497585eee0e196b0d308c404acbc0ee8c4c8d8838b22edfae0d3d8f9f66b",
|
|
52
|
+
"ffmpeg-v40.0.0-alpha.4-darwin-x64.zip": "1c75cad682f5a58f8e627f65322303d1a7d25c9a7509128112f6abc34640f0af",
|
|
53
|
+
"ffmpeg-v40.0.0-alpha.4-linux-arm64.zip": "963bde6cd93c82cf79734d65dbe62e14f428f1d424c675e720c18e924f94b925",
|
|
54
|
+
"ffmpeg-v40.0.0-alpha.4-linux-armv7l.zip": "3bf3db45f61048e68bdba0c024dfdad22e72b5544f6802c20d40b4ba004c8ad7",
|
|
55
|
+
"ffmpeg-v40.0.0-alpha.4-linux-x64.zip": "bdfbae047d3cd9ed1dc47fada868e955e5f2d60e2c31f56aba14c097c89ca8d5",
|
|
56
|
+
"ffmpeg-v40.0.0-alpha.4-mas-arm64.zip": "6046497585eee0e196b0d308c404acbc0ee8c4c8d8838b22edfae0d3d8f9f66b",
|
|
57
|
+
"ffmpeg-v40.0.0-alpha.4-mas-x64.zip": "1c75cad682f5a58f8e627f65322303d1a7d25c9a7509128112f6abc34640f0af",
|
|
58
|
+
"ffmpeg-v40.0.0-alpha.4-win32-arm64.zip": "b5f2188d28279ade15728423998b187437ba164790c1e64b78e66148e0a79946",
|
|
59
|
+
"ffmpeg-v40.0.0-alpha.4-win32-ia32.zip": "b85d85812f99f2eedae165d0cc8a37a42750066578b257d5424d359b4acae56b",
|
|
60
|
+
"ffmpeg-v40.0.0-alpha.4-win32-x64.zip": "029d18de9aee61b57aea9a9adabdd4953dfd526801774b2ee3108705adc77898",
|
|
61
|
+
"hunspell_dictionaries.zip": "0491d9ac97dd9c565b04f7d92dbd138544ee1e5160076b9d901fd6da4ff3789f",
|
|
62
|
+
"libcxx-objects-v40.0.0-alpha.4-linux-arm64.zip": "30890a8fe4dc5bc6ea2132b668bfb90f9f2ac309f4463dbaa8bfba7ba32d7afe",
|
|
63
|
+
"libcxx-objects-v40.0.0-alpha.4-linux-armv7l.zip": "42376c84acb790ed6d2746b49d4fbb078e395d6263483cb1157bf85d04f6e1e1",
|
|
64
|
+
"libcxx-objects-v40.0.0-alpha.4-linux-x64.zip": "4b732f8ae0447799a168d6201b9082b436a8a21714a27054f4bec66812e7086e",
|
|
65
|
+
"libcxx_headers.zip": "ed6758643c0387437321f1dee4f50a345d0feb7e57c8e32ecc11ced35e184fee",
|
|
66
|
+
"libcxxabi_headers.zip": "36a8e41433510d950e1e069fb25821dd703083aa641e9cafc164762eb92d9fda",
|
|
67
|
+
"mksnapshot-v40.0.0-alpha.4-darwin-arm64.zip": "170ee49398407ec76c4ad8e05e8b362d06a8e2335e4f95defaba657862e58a6f",
|
|
68
|
+
"mksnapshot-v40.0.0-alpha.4-darwin-x64.zip": "d105addf847e1b1cf5cee05590bda1629e4008874b1b728fcd4f94941c5e3d04",
|
|
69
|
+
"mksnapshot-v40.0.0-alpha.4-linux-arm64-x64.zip": "4ababd07d2f21e98203c589431ec6961b6c1ed369f513748c887e7586ab8a94c",
|
|
70
|
+
"mksnapshot-v40.0.0-alpha.4-linux-armv7l-x64.zip": "c59011f43724800fcbb318b9ab0cc2ee4cbd0225c89c91ace0fc9ed4366015a6",
|
|
71
|
+
"mksnapshot-v40.0.0-alpha.4-linux-x64.zip": "d1850d623fedb7a78b9bf772816e3b796db126d41b593ba86c72a9492e12a57a",
|
|
72
|
+
"mksnapshot-v40.0.0-alpha.4-mas-arm64.zip": "314b61d3349a097b7f1743aa39b936f1b3bba7c2d5a05ef65032452d1d2bc1f5",
|
|
73
|
+
"mksnapshot-v40.0.0-alpha.4-mas-x64.zip": "a8449a9c861f6d31577535abe95b796cb9a077bf17a3ff44a664db081ccadd17",
|
|
74
|
+
"mksnapshot-v40.0.0-alpha.4-win32-arm64-x64.zip": "22ae02b47d071fd07f393a058911122421b8bfefaf7d293460c0b64fbf0f6c52",
|
|
75
|
+
"mksnapshot-v40.0.0-alpha.4-win32-ia32.zip": "83febcd25b79d9af02dcf536d30ce2d121cd26a8c0317d8adfba03b4938c0ad1",
|
|
76
|
+
"mksnapshot-v40.0.0-alpha.4-win32-x64.zip": "dbd01fa2664430fb44b0fea746bd63239ce31c9870ebbfb5cb632e97c6f6e640"
|
|
77
77
|
}
|
package/cli.js
CHANGED
|
@@ -5,7 +5,9 @@ const proc = require('child_process');
|
|
|
5
5
|
const electron = require('./');
|
|
6
6
|
|
|
7
7
|
const child = proc.spawn(electron, process.argv.slice(2), { stdio: 'inherit', windowsHide: false });
|
|
8
|
+
let childClosed = false;
|
|
8
9
|
child.on('close', function (code, signal) {
|
|
10
|
+
childClosed = true;
|
|
9
11
|
if (code === null) {
|
|
10
12
|
console.error(electron, 'exited with signal', signal);
|
|
11
13
|
process.exit(1);
|
|
@@ -15,7 +17,7 @@ child.on('close', function (code, signal) {
|
|
|
15
17
|
|
|
16
18
|
const handleTerminationSignal = function (signal) {
|
|
17
19
|
process.on(signal, function signalHandler () {
|
|
18
|
-
if (!
|
|
20
|
+
if (!childClosed) {
|
|
19
21
|
child.kill(signal);
|
|
20
22
|
}
|
|
21
23
|
});
|
|
@@ -23,3 +25,4 @@ const handleTerminationSignal = function (signal) {
|
|
|
23
25
|
|
|
24
26
|
handleTerminationSignal('SIGINT');
|
|
25
27
|
handleTerminationSignal('SIGTERM');
|
|
28
|
+
handleTerminationSignal('SIGUSR2');
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 40.0.0-alpha.4
|
|
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
|
|
@@ -1042,10 +1042,8 @@ declare namespace Electron {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
exit(exitCode?: number): void;
|
|
1044
1044
|
/**
|
|
1045
|
-
* On
|
|
1046
|
-
*
|
|
1047
|
-
* (X11) or requests focus but may instead show a notification or flash the app
|
|
1048
|
-
* icon (Wayland).
|
|
1045
|
+
* On Linux, focuses on the first visible window. On macOS, makes the application
|
|
1046
|
+
* the active app. On Windows, focuses on the application's first window.
|
|
1049
1047
|
*
|
|
1050
1048
|
* You should seek to use the `steal` option as sparingly as possible.
|
|
1051
1049
|
*/
|
|
@@ -1371,6 +1369,13 @@ declare namespace Electron {
|
|
|
1371
1369
|
* whether or not the current OS version allows for native emoji pickers.
|
|
1372
1370
|
*/
|
|
1373
1371
|
isEmojiPanelSupported(): boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
* whether hardware acceleration is currently disabled.
|
|
1374
|
+
*
|
|
1375
|
+
* > [!NOTE] This information is only usable after the `gpu-info-update` event is
|
|
1376
|
+
* emitted.
|
|
1377
|
+
*/
|
|
1378
|
+
isHardwareAccelerationEnabled(): boolean;
|
|
1374
1379
|
/**
|
|
1375
1380
|
* `true` if the application—including all of its windows—is hidden (e.g. with
|
|
1376
1381
|
* `Command-H`), `false` otherwise.
|
|
@@ -3005,18 +3010,22 @@ declare namespace Electron {
|
|
|
3005
3010
|
*
|
|
3006
3011
|
* The `accentColor` parameter accepts the following values:
|
|
3007
3012
|
*
|
|
3008
|
-
* * **Color string** -
|
|
3009
|
-
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
3010
|
-
* are ignored and the color is treated as fully opaque.
|
|
3011
|
-
* * **`true`** -
|
|
3013
|
+
* * **Color string** - Like `true`, but sets a custom accent color using standard
|
|
3014
|
+
* CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
3015
|
+
* RGBA/HSLA formats are ignored and the color is treated as fully opaque.
|
|
3016
|
+
* * **`true`** - Enable accent color highlighting for the window with the system
|
|
3017
|
+
* accent color regardless of whether accent colors are enabled for windows in
|
|
3018
|
+
* System `Settings.`
|
|
3019
|
+
* * **`false`** - Disable accent color highlighting for the window regardless of
|
|
3020
|
+
* whether accent colors are currently enabled for windows in System Settings.
|
|
3021
|
+
* * **`null`** - Reset window accent color behavior to follow behavior set in
|
|
3012
3022
|
* System Settings.
|
|
3013
|
-
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
3014
3023
|
*
|
|
3015
3024
|
* Examples:
|
|
3016
3025
|
*
|
|
3017
3026
|
* @platform win32
|
|
3018
3027
|
*/
|
|
3019
|
-
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
3028
|
+
setAccentColor(accentColor: (boolean) | (string) | (null)): void;
|
|
3020
3029
|
/**
|
|
3021
3030
|
* Sets whether the window should show always on top of other windows. After
|
|
3022
3031
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -5258,8 +5267,6 @@ declare namespace Electron {
|
|
|
5258
5267
|
addTabbedWindow(browserWindow: BrowserWindow): void;
|
|
5259
5268
|
/**
|
|
5260
5269
|
* Removes focus from the window.
|
|
5261
|
-
*
|
|
5262
|
-
* Not supported on Wayland (Linux).
|
|
5263
5270
|
*/
|
|
5264
5271
|
blur(): void;
|
|
5265
5272
|
blurWebView(): void;
|
|
@@ -5275,8 +5282,6 @@ declare namespace Electron {
|
|
|
5275
5282
|
capturePage(rect?: Rectangle, opts?: Opts): Promise<Electron.NativeImage>;
|
|
5276
5283
|
/**
|
|
5277
5284
|
* Moves window to the center of the screen.
|
|
5278
|
-
*
|
|
5279
|
-
* Not supported on Wayland (Linux).
|
|
5280
5285
|
*/
|
|
5281
5286
|
center(): void;
|
|
5282
5287
|
/**
|
|
@@ -5303,9 +5308,6 @@ declare namespace Electron {
|
|
|
5303
5308
|
flashFrame(flag: boolean): void;
|
|
5304
5309
|
/**
|
|
5305
5310
|
* Focuses on the window.
|
|
5306
|
-
*
|
|
5307
|
-
* On Wayland (Linux), the desktop environment may show a notification or flash the
|
|
5308
|
-
* app icon if the window or app is not already focused.
|
|
5309
5311
|
*/
|
|
5310
5312
|
focus(): void;
|
|
5311
5313
|
focusOnWebView(): void;
|
|
@@ -5696,9 +5698,7 @@ declare namespace Electron {
|
|
|
5696
5698
|
*/
|
|
5697
5699
|
moveTabToNewWindow(): void;
|
|
5698
5700
|
/**
|
|
5699
|
-
* Moves window to top(z-order) regardless of focus
|
|
5700
|
-
*
|
|
5701
|
-
* Not supported on Wayland (Linux).
|
|
5701
|
+
* Moves window to top(z-order) regardless of focus
|
|
5702
5702
|
*/
|
|
5703
5703
|
moveTop(): void;
|
|
5704
5704
|
/**
|
|
@@ -5748,18 +5748,22 @@ declare namespace Electron {
|
|
|
5748
5748
|
*
|
|
5749
5749
|
* The `accentColor` parameter accepts the following values:
|
|
5750
5750
|
*
|
|
5751
|
-
* * **Color string** -
|
|
5752
|
-
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
5753
|
-
* are ignored and the color is treated as fully opaque.
|
|
5754
|
-
* * **`true`** -
|
|
5751
|
+
* * **Color string** - Like `true`, but sets a custom accent color using standard
|
|
5752
|
+
* CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
5753
|
+
* RGBA/HSLA formats are ignored and the color is treated as fully opaque.
|
|
5754
|
+
* * **`true`** - Enable accent color highlighting for the window with the system
|
|
5755
|
+
* accent color regardless of whether accent colors are enabled for windows in
|
|
5756
|
+
* System `Settings.`
|
|
5757
|
+
* * **`false`** - Disable accent color highlighting for the window regardless of
|
|
5758
|
+
* whether accent colors are currently enabled for windows in System Settings.
|
|
5759
|
+
* * **`null`** - Reset window accent color behavior to follow behavior set in
|
|
5755
5760
|
* System Settings.
|
|
5756
|
-
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
5757
5761
|
*
|
|
5758
5762
|
* Examples:
|
|
5759
5763
|
*
|
|
5760
5764
|
* @platform win32
|
|
5761
5765
|
*/
|
|
5762
|
-
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
5766
|
+
setAccentColor(accentColor: (boolean) | (string) | (null)): void;
|
|
5763
5767
|
/**
|
|
5764
5768
|
* Sets whether the window should show always on top of other windows. After
|
|
5765
5769
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -5856,8 +5860,6 @@ declare namespace Electron {
|
|
|
5856
5860
|
* Resizes and moves the window to the supplied bounds. Any properties that are not
|
|
5857
5861
|
* supplied will default to their current values.
|
|
5858
5862
|
*
|
|
5859
|
-
* On Wayland (Linux), has the same limitations as `setSize` and `setPosition`.
|
|
5860
|
-
*
|
|
5861
5863
|
* > [!NOTE] On macOS, the y-coordinate value cannot be smaller than the Tray
|
|
5862
5864
|
* height. The tray height has changed over time and depends on the operating
|
|
5863
5865
|
* system, but is between 20-40px. Passing a value lower than the tray height will
|
|
@@ -5881,9 +5883,6 @@ declare namespace Electron {
|
|
|
5881
5883
|
/**
|
|
5882
5884
|
* Resizes and moves the window's client area (e.g. the web page) to the supplied
|
|
5883
5885
|
* bounds.
|
|
5884
|
-
*
|
|
5885
|
-
* On Wayland (Linux), has the same limitations as `setContentSize` and
|
|
5886
|
-
* `setPosition`.
|
|
5887
5886
|
*/
|
|
5888
5887
|
setContentBounds(bounds: Rectangle, animate?: boolean): void;
|
|
5889
5888
|
/**
|
|
@@ -5904,9 +5903,6 @@ declare namespace Electron {
|
|
|
5904
5903
|
setContentProtection(enable: boolean): void;
|
|
5905
5904
|
/**
|
|
5906
5905
|
* Resizes the window's client area (e.g. the web page) to `width` and `height`.
|
|
5907
|
-
*
|
|
5908
|
-
* On Wayland (Linux), may not work as some window managers restrict programmatic
|
|
5909
|
-
* window resizing.
|
|
5910
5906
|
*/
|
|
5911
5907
|
setContentSize(width: number, height: number, animate?: boolean): void;
|
|
5912
5908
|
/**
|
|
@@ -6031,8 +6027,6 @@ declare namespace Electron {
|
|
|
6031
6027
|
setParentWindow(parent: (BrowserWindow) | (null)): void;
|
|
6032
6028
|
/**
|
|
6033
6029
|
* Moves window to `x` and `y`.
|
|
6034
|
-
*
|
|
6035
|
-
* Not supported on Wayland (Linux).
|
|
6036
6030
|
*/
|
|
6037
6031
|
setPosition(x: number, y: number, animate?: boolean): void;
|
|
6038
6032
|
/**
|
|
@@ -6092,9 +6086,6 @@ declare namespace Electron {
|
|
|
6092
6086
|
/**
|
|
6093
6087
|
* Resizes the window to `width` and `height`. If `width` or `height` are below any
|
|
6094
6088
|
* set minimum size constraints the window will snap to its minimum size.
|
|
6095
|
-
*
|
|
6096
|
-
* On Wayland (Linux), may not work as some window managers restrict programmatic
|
|
6097
|
-
* window resizing.
|
|
6098
6089
|
*/
|
|
6099
6090
|
setSize(width: number, height: number, animate?: boolean): void;
|
|
6100
6091
|
/**
|
|
@@ -6240,8 +6231,6 @@ declare namespace Electron {
|
|
|
6240
6231
|
showDefinitionForSelection(): void;
|
|
6241
6232
|
/**
|
|
6242
6233
|
* Shows the window but doesn't focus on it.
|
|
6243
|
-
*
|
|
6244
|
-
* Not supported on Wayland (Linux).
|
|
6245
6234
|
*/
|
|
6246
6235
|
showInactive(): void;
|
|
6247
6236
|
/**
|
|
@@ -11888,7 +11877,8 @@ declare namespace Electron {
|
|
|
11888
11877
|
*/
|
|
11889
11878
|
static fromPath(path: string, options?: FromPathOptions): Session;
|
|
11890
11879
|
/**
|
|
11891
|
-
* A `Session` object, the default session object of the app
|
|
11880
|
+
* A `Session` object, the default session object of the app, available after
|
|
11881
|
+
* `app.whenReady` is called.
|
|
11892
11882
|
*/
|
|
11893
11883
|
static defaultSession: Session;
|
|
11894
11884
|
/**
|
|
@@ -24733,6 +24723,8 @@ declare namespace Electron {
|
|
|
24733
24723
|
type IncomingMessage = Electron.IncomingMessage;
|
|
24734
24724
|
const net: Net;
|
|
24735
24725
|
type Net = Electron.Net;
|
|
24726
|
+
const parentPort: ParentPort;
|
|
24727
|
+
type ParentPort = Electron.ParentPort;
|
|
24736
24728
|
const systemPreferences: SystemPreferences;
|
|
24737
24729
|
type SystemPreferences = Electron.SystemPreferences;
|
|
24738
24730
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
@@ -25090,6 +25082,8 @@ declare namespace Electron {
|
|
|
25090
25082
|
const netLog: NetLog;
|
|
25091
25083
|
type NetLog = Electron.NetLog;
|
|
25092
25084
|
class Notification extends Electron.Notification {}
|
|
25085
|
+
const parentPort: ParentPort;
|
|
25086
|
+
type ParentPort = Electron.ParentPort;
|
|
25093
25087
|
const powerMonitor: PowerMonitor;
|
|
25094
25088
|
type PowerMonitor = Electron.PowerMonitor;
|
|
25095
25089
|
const powerSaveBlocker: PowerSaveBlocker;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@electron/get": "^2.0.0",
|
|
12
|
-
"@types/node": "^
|
|
12
|
+
"@types/node": "^24.9.0",
|
|
13
13
|
"extract-zip": "^2.0.1"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"keywords": [
|
|
24
24
|
"electron"
|
|
25
25
|
],
|
|
26
|
-
"version": "
|
|
26
|
+
"version": "40.0.0-alpha.4"
|
|
27
27
|
}
|