electron 21.0.0 β 22.0.0-alpha.1
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 +1 -1
- package/checksums.json +75 -75
- package/electron.d.ts +176 -175
- package/install.js +24 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://discord.gg/electronjs)
|
|
6
6
|
|
|
7
7
|
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
|
8
|
-
View these docs in other languages
|
|
8
|
+
View these docs in other languages on our [Crowdin](https://crowdin.com/project/electron) project.
|
|
9
9
|
|
|
10
10
|
The Electron framework lets you write cross-platform desktop applications
|
|
11
11
|
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
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-v22.0.0-alpha.1-darwin-arm64.zip": "3119bd82a8c953f67442ea2f8a623fb023654b0f516653c51c2f1413f1dc53b3",
|
|
3
|
+
"chromedriver-v22.0.0-alpha.1-darwin-x64.zip": "abec5f127b214e6f22c0e27ff8766826cee2c05d932557adb246d1eb50dddab0",
|
|
4
|
+
"chromedriver-v22.0.0-alpha.1-linux-arm64.zip": "6f0d37110a99ad20deaeda153cb9d4b773b0c63c038c23e050b077b1f72db208",
|
|
5
|
+
"chromedriver-v22.0.0-alpha.1-linux-armv7l.zip": "76c08cd33257f586a4c84dc5561e5877de3aa49c87a6fb66dfde5af06f2aaf75",
|
|
6
|
+
"chromedriver-v22.0.0-alpha.1-linux-x64.zip": "6b280b132e4f83308ccbb856183ad52e80cead5ef7aadb6db57bd285afc370cd",
|
|
7
|
+
"chromedriver-v22.0.0-alpha.1-mas-arm64.zip": "52d33923b15d837a943907e8e136ef948389ae1681e1a055d9c73ee50f7f02f6",
|
|
8
|
+
"chromedriver-v22.0.0-alpha.1-mas-x64.zip": "96ae553fa9647014ee51302418be321871054c33dc33617b494990024259c886",
|
|
9
|
+
"chromedriver-v22.0.0-alpha.1-win32-arm64.zip": "be54c2dbf1d8b98856d40b2714146957f16d679e58ae9c2e75f84e4c7949f567",
|
|
10
|
+
"chromedriver-v22.0.0-alpha.1-win32-ia32.zip": "9486cc269c6cca101adf76c762ad7ef79010f3aa08031aa97f54fbd30a440c30",
|
|
11
|
+
"chromedriver-v22.0.0-alpha.1-win32-x64.zip": "d50c4a1618ed5b627a37cdad8223f9ca32a02ed7027e341c132dcd591e393270",
|
|
12
|
+
"electron-api.json": "c3622ccea31242595b3ffef8220939b08d3c7f4d529464c65fc8a9af7f09e653",
|
|
13
|
+
"electron-v22.0.0-alpha.1-darwin-arm64-dsym-snapshot.zip": "971a8c5c54dcc16815e2ce2b963c3d6416b3a258f7bf6244e808583faf7c4464",
|
|
14
|
+
"electron-v22.0.0-alpha.1-darwin-arm64-dsym.zip": "c3534b4804eb26f644c1d33a14b5ae939a93ad04778b44186b129a6d0ff96df4",
|
|
15
|
+
"electron-v22.0.0-alpha.1-darwin-arm64-symbols.zip": "3c5d6094a5991bbb08b59be97ee952e3339148bfe63e0cd93e96ecec5711591b",
|
|
16
|
+
"electron-v22.0.0-alpha.1-darwin-arm64.zip": "3d5b1d42533321f997de5936410ae168f0481056aaf3146512a88313c7420815",
|
|
17
|
+
"electron-v22.0.0-alpha.1-darwin-x64-dsym-snapshot.zip": "7c60a9b42e82cb31e58fb9e678481d65c0c0b1b99aed420a89913e76f0a70b23",
|
|
18
|
+
"electron-v22.0.0-alpha.1-darwin-x64-dsym.zip": "41879cc8fda460b62f4d2ee44d544fb7957883c8b36ee6fae13689c6a65953fa",
|
|
19
|
+
"electron-v22.0.0-alpha.1-darwin-x64-symbols.zip": "883985e1136b1b3917cf70779427a8d0c65e9109ec483dc55c34ec56e8d3ac08",
|
|
20
|
+
"electron-v22.0.0-alpha.1-darwin-x64.zip": "ab8bffcde69049488910e756f7bb1252912c040523ea6bfb644526bdd8d11741",
|
|
21
|
+
"electron-v22.0.0-alpha.1-linux-arm64-debug.zip": "fe702159191c5175241c4ee37c4bd12b413a8dbd0e90345c185b444cd695e3d0",
|
|
22
|
+
"electron-v22.0.0-alpha.1-linux-arm64-symbols.zip": "38094697f4db3df9fd97a261354d7a539e5715280b31d7fa33e6924c74aae3a2",
|
|
23
|
+
"electron-v22.0.0-alpha.1-linux-arm64.zip": "1249740d2cb1a4157138a07ff0021d4538f44384e00addd0e7498a1acb86fdba",
|
|
24
|
+
"electron-v22.0.0-alpha.1-linux-armv7l-debug.zip": "fe702159191c5175241c4ee37c4bd12b413a8dbd0e90345c185b444cd695e3d0",
|
|
25
|
+
"electron-v22.0.0-alpha.1-linux-armv7l-symbols.zip": "18de404044325586ed0d837a25b0670d2458fe626c95b430a64ec8d09f241452",
|
|
26
|
+
"electron-v22.0.0-alpha.1-linux-armv7l.zip": "e485ad5a101771141ec0716f0547b96942dc10b9a255093ffc468d07d2a3025c",
|
|
27
|
+
"electron-v22.0.0-alpha.1-linux-x64-debug.zip": "58c1b1f0e82374d6afdc69d812acb8ebd581e3a80bfb9ebbaa3bd9e62dcc2bf9",
|
|
28
|
+
"electron-v22.0.0-alpha.1-linux-x64-symbols.zip": "bbecbfbd0de054d2774486ee7bbcd02247f6e6b4c673086a9040a190011ec17f",
|
|
29
|
+
"electron-v22.0.0-alpha.1-linux-x64.zip": "aa1ba03d3d74908a637773a1f6141a81207458aaa821a2fc4981ba79575870ec",
|
|
30
|
+
"electron-v22.0.0-alpha.1-mas-arm64-dsym-snapshot.zip": "971a8c5c54dcc16815e2ce2b963c3d6416b3a258f7bf6244e808583faf7c4464",
|
|
31
|
+
"electron-v22.0.0-alpha.1-mas-arm64-dsym.zip": "63b501018d291dbc123148ad9077dbc6e5b6ac0a5c9bf94a57812d9e65a9a364",
|
|
32
|
+
"electron-v22.0.0-alpha.1-mas-arm64-symbols.zip": "77bfddc7f6a1e518601c6fcb99dab2c1e074983875cc1f7a282ac405fc4d5ed8",
|
|
33
|
+
"electron-v22.0.0-alpha.1-mas-arm64.zip": "2d6c01dfd27784db9f3885330acb7685b7e6e4056c9aab72e95de5e7708254cf",
|
|
34
|
+
"electron-v22.0.0-alpha.1-mas-x64-dsym-snapshot.zip": "c39cc7c739d0729e005036d706d2fcfd09313767751c41f70ee971eea9198c0a",
|
|
35
|
+
"electron-v22.0.0-alpha.1-mas-x64-dsym.zip": "94ef044bdb0775647333c8eb9686eb533c05ee65eba3703b90a5bca2d7b80560",
|
|
36
|
+
"electron-v22.0.0-alpha.1-mas-x64-symbols.zip": "8985bd929c9bf6266a32a9ea50c9375ae224318e47adba7378a4f5ee0000d2da",
|
|
37
|
+
"electron-v22.0.0-alpha.1-mas-x64.zip": "bde2eb140cb0b094a974daeabce3bd73c81e16a5e250adb82f89b08e224e309c",
|
|
38
|
+
"electron-v22.0.0-alpha.1-win32-arm64-pdb.zip": "9918bae274a2ffd17b26b1dc6dd1473b91c479370ed16e9bd13c08923216a406",
|
|
39
|
+
"electron-v22.0.0-alpha.1-win32-arm64-symbols.zip": "8f8c037c26334d7e97458544220b76a39d1cf8c9c8c010f9717a6a2c1841fee7",
|
|
40
|
+
"electron-v22.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v22.0.0-alpha.1-win32-arm64.zip": "e456c19a02e8b64a5e4c5bd62893b99cee41c6686308fba0c70a2caed244495d",
|
|
42
|
+
"electron-v22.0.0-alpha.1-win32-ia32-pdb.zip": "1af9539d826f9fa8a50387dd200ca077eb5c7a4cf536d49d96bd4ec1ea29d4d5",
|
|
43
|
+
"electron-v22.0.0-alpha.1-win32-ia32-symbols.zip": "2405b07431b996e3f39a0912477a4b959304b26750ab5c46ab435aa75fada373",
|
|
44
|
+
"electron-v22.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v22.0.0-alpha.1-win32-ia32.zip": "6442b2807458b261ee73f49e50d6b73658496a4c1fff98c980cc0000a93d61a1",
|
|
46
|
+
"electron-v22.0.0-alpha.1-win32-x64-pdb.zip": "e5e770747c206474c120fc9bf0cce8867614b59c85a5922df03f4b8b36db48ae",
|
|
47
|
+
"electron-v22.0.0-alpha.1-win32-x64-symbols.zip": "1edbc5e09c06365e050a02049af4dda765e1ce43f488fece8f4b489b2c7ee86e",
|
|
48
|
+
"electron-v22.0.0-alpha.1-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v22.0.0-alpha.1-win32-x64.zip": "8c454ed0b191843aa77f2ca451bc1c50d0f1938a3c294c6b03ff9cb4aac17b6d",
|
|
50
|
+
"electron.d.ts": "675ea1b677efd1bf3c22f29ac91b83fcbee4e48b2ccf67ae7853c40ea741f200",
|
|
51
|
+
"ffmpeg-v22.0.0-alpha.1-darwin-arm64.zip": "80e4b524c7efef39c5c8211919cc9af0baf876b1eb115536fe124c820bfbf8b9",
|
|
52
|
+
"ffmpeg-v22.0.0-alpha.1-darwin-x64.zip": "273fb35c42fddae01168a05e9363de6a6fc6817bf0d6b564d49c04a47392e648",
|
|
53
|
+
"ffmpeg-v22.0.0-alpha.1-linux-arm64.zip": "8a7020e576a313f776497dd02886e86c913f5f1b869a0c2a49146c35cf808c33",
|
|
54
|
+
"ffmpeg-v22.0.0-alpha.1-linux-armv7l.zip": "452957ddfbb02f1faa0249cd85d7ade6a4d3f228d97b7cc7fad896c01abda1fb",
|
|
55
|
+
"ffmpeg-v22.0.0-alpha.1-linux-x64.zip": "555006450aab242bf4bcd7b75aa1a5a8664dcaec42c847db1e2aae793413cd14",
|
|
56
|
+
"ffmpeg-v22.0.0-alpha.1-mas-arm64.zip": "f1ec88b0703ca5551346e135253ac08c625e6ca684c589828d2a3640ba801c50",
|
|
57
|
+
"ffmpeg-v22.0.0-alpha.1-mas-x64.zip": "3c3085f5c50451a48185819da585332d25a9d48f78c9e60c2cf0f7f42c496c1b",
|
|
58
|
+
"ffmpeg-v22.0.0-alpha.1-win32-arm64.zip": "c333fcf5eacf294544437235b72a70c6aaa60c7a3f10edd931c4991d9173f982",
|
|
59
|
+
"ffmpeg-v22.0.0-alpha.1-win32-ia32.zip": "3e429473143eb10c5d95404bdbccb2c329e04a1beff3550ebd6d8d56c581f4d4",
|
|
60
|
+
"ffmpeg-v22.0.0-alpha.1-win32-x64.zip": "cd23c41b56459242d78bce93df697bf7000ba12e84abc45ad731f10824dae8e1",
|
|
61
|
+
"hunspell_dictionaries.zip": "b8a07b03d6b441d8a4433989c2836db9430a04fdd7ce7202e7d7adb72cb3d216",
|
|
62
|
+
"libcxx-objects-v22.0.0-alpha.1-linux-arm64.zip": "a8d104d44c85c0826ba1827a2bfc02072727859731de7ff9c7ec6e1a9a116f78",
|
|
63
|
+
"libcxx-objects-v22.0.0-alpha.1-linux-armv7l.zip": "83471d99f008b328a4428be852039d80398c15bcb79ec7f5acefd506a550fff1",
|
|
64
|
+
"libcxx-objects-v22.0.0-alpha.1-linux-x64.zip": "224f3f24a4f89e265d0ebf080081e9eaa0c4f2ca04a6cfba5fa372f86682868b",
|
|
65
|
+
"libcxx_headers.zip": "58409d4e04d3ee508805e96759d02b1ea1f3b377b42b421e89f80642f6b5f02e",
|
|
66
|
+
"libcxxabi_headers.zip": "40a5ab14f793f5ca6a3f3806bfd4adc35a2f2d6a075f6c779609f3b3a72fc5af",
|
|
67
|
+
"mksnapshot-v22.0.0-alpha.1-darwin-arm64.zip": "b5afb2abf2811692507c5709296f5433a92c5c773a7f9bfdf724be05be5033c2",
|
|
68
|
+
"mksnapshot-v22.0.0-alpha.1-darwin-x64.zip": "9ee8c0e0a19203bb7cfede1b6e8ca4e8b97cf5a48f7b27d08ca942555459b744",
|
|
69
|
+
"mksnapshot-v22.0.0-alpha.1-linux-arm64-x64.zip": "1616ee144c47f892a3eaba763e535046eb12b96a38743ead34300ac5073c6198",
|
|
70
|
+
"mksnapshot-v22.0.0-alpha.1-linux-armv7l-x64.zip": "9762a9d52433ff8a9d794741353aa9e21122d6c30869cfa77230b3b2f0ad3c8e",
|
|
71
|
+
"mksnapshot-v22.0.0-alpha.1-linux-x64.zip": "bdc5733cef688ccda0d65df5fecb387540aa0375d422917a587e65b464c6336a",
|
|
72
|
+
"mksnapshot-v22.0.0-alpha.1-mas-arm64.zip": "3e0af63a1610b84943bbee90b0e1371d2f019187b50e23c5914751e50a35dc97",
|
|
73
|
+
"mksnapshot-v22.0.0-alpha.1-mas-x64.zip": "f08e28bf2de389bdbf89b5804e1771582b4a47775c00f9d69e91cea9b789c51c",
|
|
74
|
+
"mksnapshot-v22.0.0-alpha.1-win32-arm64-x64.zip": "a326bd5aeae4502913de3d617ae26566aa19a570384c06ed588260911bc92699",
|
|
75
|
+
"mksnapshot-v22.0.0-alpha.1-win32-ia32.zip": "1373dd7bacc63a3c33c34079c96fdc2bffb1f163e5ce9a4226adca8361364ccb",
|
|
76
|
+
"mksnapshot-v22.0.0-alpha.1-win32-x64.zip": "c2d8e3432641de2056c62cc386b272ecc5438eb8aa2864822fe50617e7166f53"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 22.0.0-alpha.1
|
|
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
|
|
@@ -1919,6 +1919,11 @@ declare namespace Electron {
|
|
|
1919
1919
|
/**
|
|
1920
1920
|
* Emitted when scroll wheel event phase has begun.
|
|
1921
1921
|
*
|
|
1922
|
+
* > **Note** This event is deprecated beginning in Electron 22.0.0. See Breaking
|
|
1923
|
+
* Changes for details of how to migrate to using the WebContents `input-event`
|
|
1924
|
+
* event.
|
|
1925
|
+
*
|
|
1926
|
+
* @deprecated
|
|
1922
1927
|
* @platform darwin
|
|
1923
1928
|
*/
|
|
1924
1929
|
on(event: 'scroll-touch-begin', listener: Function): this;
|
|
@@ -1928,6 +1933,11 @@ declare namespace Electron {
|
|
|
1928
1933
|
/**
|
|
1929
1934
|
* Emitted when scroll wheel event phase filed upon reaching the edge of element.
|
|
1930
1935
|
*
|
|
1936
|
+
* > **Note** This event is deprecated beginning in Electron 22.0.0. See Breaking
|
|
1937
|
+
* Changes for details of how to migrate to using the WebContents `input-event`
|
|
1938
|
+
* event.
|
|
1939
|
+
*
|
|
1940
|
+
* @deprecated
|
|
1931
1941
|
* @platform darwin
|
|
1932
1942
|
*/
|
|
1933
1943
|
on(event: 'scroll-touch-edge', listener: Function): this;
|
|
@@ -1937,6 +1947,11 @@ declare namespace Electron {
|
|
|
1937
1947
|
/**
|
|
1938
1948
|
* Emitted when scroll wheel event phase has ended.
|
|
1939
1949
|
*
|
|
1950
|
+
* > **Note** This event is deprecated beginning in Electron 22.0.0. See Breaking
|
|
1951
|
+
* Changes for details of how to migrate to using the WebContents `input-event`
|
|
1952
|
+
* event.
|
|
1953
|
+
*
|
|
1954
|
+
* @deprecated
|
|
1940
1955
|
* @platform darwin
|
|
1941
1956
|
*/
|
|
1942
1957
|
on(event: 'scroll-touch-end', listener: Function): this;
|
|
@@ -3646,6 +3661,7 @@ declare namespace Electron {
|
|
|
3646
3661
|
|
|
3647
3662
|
// Docs: https://electronjs.org/docs/api/context-bridge
|
|
3648
3663
|
|
|
3664
|
+
exposeInIsolatedWorld(worldId: number, apiKey: string, api: any): void;
|
|
3649
3665
|
exposeInMainWorld(apiKey: string, api: any): void;
|
|
3650
3666
|
}
|
|
3651
3667
|
|
|
@@ -5023,6 +5039,19 @@ declare namespace Electron {
|
|
|
5023
5039
|
* `middleButtonDown`, `rightButtonDown`, `capsLock`, `numLock`, `left`, `right`.
|
|
5024
5040
|
*/
|
|
5025
5041
|
modifiers?: Array<'shift' | 'control' | 'ctrl' | 'alt' | 'meta' | 'command' | 'cmd' | 'isKeypad' | 'isAutoRepeat' | 'leftButtonDown' | 'middleButtonDown' | 'rightButtonDown' | 'capsLock' | 'numLock' | 'left' | 'right'>;
|
|
5042
|
+
/**
|
|
5043
|
+
* Can be `undefined`, `mouseDown`, `mouseUp`, `mouseMove`, `mouseEnter`,
|
|
5044
|
+
* `mouseLeave`, `contextMenu`, `mouseWheel`, `rawKeyDown`, `keyDown`, `keyUp`,
|
|
5045
|
+
* `char`, `gestureScrollBegin`, `gestureScrollEnd`, `gestureScrollUpdate`,
|
|
5046
|
+
* `gestureFlingStart`, `gestureFlingCancel`, `gesturePinchBegin`,
|
|
5047
|
+
* `gesturePinchEnd`, `gesturePinchUpdate`, `gestureTapDown`, `gestureShowPress`,
|
|
5048
|
+
* `gestureTap`, `gestureTapCancel`, `gestureShortPress`, `gestureLongPress`,
|
|
5049
|
+
* `gestureLongTap`, `gestureTwoFingerTap`, `gestureTapUnconfirmed`,
|
|
5050
|
+
* `gestureDoubleTap`, `touchStart`, `touchMove`, `touchEnd`, `touchCancel`,
|
|
5051
|
+
* `touchScrollStarted`, `pointerDown`, `pointerUp`, `pointerMove`,
|
|
5052
|
+
* `pointerRawUpdate`, `pointerCancel` or `pointerCausedUaAction`.
|
|
5053
|
+
*/
|
|
5054
|
+
type: ('undefined' | 'mouseDown' | 'mouseUp' | 'mouseMove' | 'mouseEnter' | 'mouseLeave' | 'contextMenu' | 'mouseWheel' | 'rawKeyDown' | 'keyDown' | 'keyUp' | 'char' | 'gestureScrollBegin' | 'gestureScrollEnd' | 'gestureScrollUpdate' | 'gestureFlingStart' | 'gestureFlingCancel' | 'gesturePinchBegin' | 'gesturePinchEnd' | 'gesturePinchUpdate' | 'gestureTapDown' | 'gestureShowPress' | 'gestureTap' | 'gestureTapCancel' | 'gestureShortPress' | 'gestureLongPress' | 'gestureLongTap' | 'gestureTwoFingerTap' | 'gestureTapUnconfirmed' | 'gestureDoubleTap' | 'touchStart' | 'touchMove' | 'touchEnd' | 'touchCancel' | 'touchScrollStarted' | 'pointerDown' | 'pointerUp' | 'pointerMove' | 'pointerRawUpdate' | 'pointerCancel' | 'pointerCausedUaAction');
|
|
5026
5055
|
}
|
|
5027
5056
|
|
|
5028
5057
|
interface IOCounters {
|
|
@@ -5421,9 +5450,9 @@ declare namespace Electron {
|
|
|
5421
5450
|
*/
|
|
5422
5451
|
keyCode: string;
|
|
5423
5452
|
/**
|
|
5424
|
-
* The type of the event, can be `keyDown`, `keyUp` or `char`.
|
|
5453
|
+
* The type of the event, can be `rawKeyDown`, `keyDown`, `keyUp` or `char`.
|
|
5425
5454
|
*/
|
|
5426
|
-
type: ('keyDown' | 'keyUp' | 'char');
|
|
5455
|
+
type: ('rawKeyDown' | 'keyDown' | 'keyUp' | 'char');
|
|
5427
5456
|
}
|
|
5428
5457
|
|
|
5429
5458
|
interface MemoryInfo {
|
|
@@ -6083,13 +6112,6 @@ declare namespace Electron {
|
|
|
6083
6112
|
readonly currentlyLogging: boolean;
|
|
6084
6113
|
}
|
|
6085
6114
|
|
|
6086
|
-
interface NewWindowWebContentsEvent extends Event {
|
|
6087
|
-
|
|
6088
|
-
// Docs: https://electronjs.org/docs/api/structures/new-window-web-contents-event
|
|
6089
|
-
|
|
6090
|
-
newGuest?: BrowserWindow;
|
|
6091
|
-
}
|
|
6092
|
-
|
|
6093
6115
|
class Notification extends NodeEventEmitter {
|
|
6094
6116
|
|
|
6095
6117
|
// Docs: https://electronjs.org/docs/api/notification
|
|
@@ -8020,6 +8042,17 @@ declare namespace Electron {
|
|
|
8020
8042
|
* `setDevicePermissionHandler`.
|
|
8021
8043
|
*/
|
|
8022
8044
|
setDevicePermissionHandler(handler: ((details: DevicePermissionHandlerHandlerDetails) => boolean) | (null)): void;
|
|
8045
|
+
/**
|
|
8046
|
+
* This handler will be called when web content requests access to display media
|
|
8047
|
+
* via the `navigator.mediaDevices.getDisplayMedia` API. Use the desktopCapturer
|
|
8048
|
+
* API to choose which stream(s) to grant access to.
|
|
8049
|
+
*
|
|
8050
|
+
* Passing a WebFrameMain object as a video or audio stream will capture the video
|
|
8051
|
+
* or audio stream from that frame.
|
|
8052
|
+
*
|
|
8053
|
+
* Passing `null` instead of a function resets the handler to its default state.
|
|
8054
|
+
*/
|
|
8055
|
+
setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: Streams) => void) => void) | (null)): void;
|
|
8023
8056
|
/**
|
|
8024
8057
|
* Sets download saving directory. By default, the download directory will be the
|
|
8025
8058
|
* `Downloads` under the respective app folder.
|
|
@@ -9794,6 +9827,11 @@ declare namespace Electron {
|
|
|
9794
9827
|
* a WebContents instance based on its assigned TargetID.
|
|
9795
9828
|
*/
|
|
9796
9829
|
static fromDevToolsTargetId(targetId: string): WebContents;
|
|
9830
|
+
/**
|
|
9831
|
+
* | undefined - A WebContents instance with the given WebFrameMain, or `undefined`
|
|
9832
|
+
* if there is no WebContents associated with the given WebFrameMain.
|
|
9833
|
+
*/
|
|
9834
|
+
static fromFrame(frame: WebFrameMain): WebContents;
|
|
9797
9835
|
/**
|
|
9798
9836
|
* | undefined - A WebContents instance with the given ID, or `undefined` if there
|
|
9799
9837
|
* is no WebContents associated with the given ID.
|
|
@@ -9947,6 +9985,32 @@ declare namespace Electron {
|
|
|
9947
9985
|
*/
|
|
9948
9986
|
line: number,
|
|
9949
9987
|
sourceId: string) => void): this;
|
|
9988
|
+
/**
|
|
9989
|
+
* Emitted when the page calls `window.moveTo`, `window.resizeTo` or related APIs.
|
|
9990
|
+
*
|
|
9991
|
+
* By default, this will move the window. To prevent that behavior, call
|
|
9992
|
+
* `event.preventDefault()`.
|
|
9993
|
+
*/
|
|
9994
|
+
on(event: 'content-bounds-updated', listener: (event: Event,
|
|
9995
|
+
/**
|
|
9996
|
+
* requested new content bounds
|
|
9997
|
+
*/
|
|
9998
|
+
bounds: Rectangle) => void): this;
|
|
9999
|
+
once(event: 'content-bounds-updated', listener: (event: Event,
|
|
10000
|
+
/**
|
|
10001
|
+
* requested new content bounds
|
|
10002
|
+
*/
|
|
10003
|
+
bounds: Rectangle) => void): this;
|
|
10004
|
+
addListener(event: 'content-bounds-updated', listener: (event: Event,
|
|
10005
|
+
/**
|
|
10006
|
+
* requested new content bounds
|
|
10007
|
+
*/
|
|
10008
|
+
bounds: Rectangle) => void): this;
|
|
10009
|
+
removeListener(event: 'content-bounds-updated', listener: (event: Event,
|
|
10010
|
+
/**
|
|
10011
|
+
* requested new content bounds
|
|
10012
|
+
*/
|
|
10013
|
+
bounds: Rectangle) => void): this;
|
|
9950
10014
|
/**
|
|
9951
10015
|
* Emitted when there is a new context menu that needs to be handled.
|
|
9952
10016
|
*/
|
|
@@ -10448,10 +10512,10 @@ declare namespace Electron {
|
|
|
10448
10512
|
/**
|
|
10449
10513
|
* Emitted when the document in the top-level frame is loaded.
|
|
10450
10514
|
*/
|
|
10451
|
-
on(event: 'dom-ready', listener:
|
|
10452
|
-
once(event: 'dom-ready', listener:
|
|
10453
|
-
addListener(event: 'dom-ready', listener:
|
|
10454
|
-
removeListener(event: 'dom-ready', listener:
|
|
10515
|
+
on(event: 'dom-ready', listener: Function): this;
|
|
10516
|
+
once(event: 'dom-ready', listener: Function): this;
|
|
10517
|
+
addListener(event: 'dom-ready', listener: Function): this;
|
|
10518
|
+
removeListener(event: 'dom-ready', listener: Function): this;
|
|
10455
10519
|
/**
|
|
10456
10520
|
* Emitted when the window enters a full-screen state triggered by HTML API.
|
|
10457
10521
|
*/
|
|
@@ -10498,6 +10562,18 @@ declare namespace Electron {
|
|
|
10498
10562
|
details: FrameCreatedDetails) => void): this;
|
|
10499
10563
|
removeListener(event: 'frame-created', listener: (event: Event,
|
|
10500
10564
|
details: FrameCreatedDetails) => void): this;
|
|
10565
|
+
/**
|
|
10566
|
+
* Emitted when an input event is sent to the WebContents. See InputEvent for
|
|
10567
|
+
* details.
|
|
10568
|
+
*/
|
|
10569
|
+
on(event: 'input-event', listener: (event: Event,
|
|
10570
|
+
inputEvent: InputEvent) => void): this;
|
|
10571
|
+
once(event: 'input-event', listener: (event: Event,
|
|
10572
|
+
inputEvent: InputEvent) => void): this;
|
|
10573
|
+
addListener(event: 'input-event', listener: (event: Event,
|
|
10574
|
+
inputEvent: InputEvent) => void): this;
|
|
10575
|
+
removeListener(event: 'input-event', listener: (event: Event,
|
|
10576
|
+
inputEvent: InputEvent) => void): this;
|
|
10501
10577
|
/**
|
|
10502
10578
|
* Emitted when the renderer process sends an asynchronous message via
|
|
10503
10579
|
* `ipcRenderer.send()`.
|
|
@@ -10578,138 +10654,6 @@ declare namespace Electron {
|
|
|
10578
10654
|
once(event: 'media-started-playing', listener: Function): this;
|
|
10579
10655
|
addListener(event: 'media-started-playing', listener: Function): this;
|
|
10580
10656
|
removeListener(event: 'media-started-playing', listener: Function): this;
|
|
10581
|
-
/**
|
|
10582
|
-
* Deprecated in favor of `webContents.setWindowOpenHandler`.
|
|
10583
|
-
*
|
|
10584
|
-
* Emitted when the page requests to open a new window for a `url`. It could be
|
|
10585
|
-
* requested by `window.open` or an external link like `<a target='_blank'>`.
|
|
10586
|
-
*
|
|
10587
|
-
* By default a new `BrowserWindow` will be created for the `url`.
|
|
10588
|
-
*
|
|
10589
|
-
* Calling `event.preventDefault()` will prevent Electron from automatically
|
|
10590
|
-
* creating a new `BrowserWindow`. If you call `event.preventDefault()` and
|
|
10591
|
-
* manually create a new `BrowserWindow` then you must set `event.newGuest` to
|
|
10592
|
-
* reference the new `BrowserWindow` instance, failing to do so may result in
|
|
10593
|
-
* unexpected behavior. For example:
|
|
10594
|
-
*
|
|
10595
|
-
* @deprecated
|
|
10596
|
-
*/
|
|
10597
|
-
on(event: 'new-window', listener: (event: NewWindowWebContentsEvent,
|
|
10598
|
-
url: string,
|
|
10599
|
-
frameName: string,
|
|
10600
|
-
/**
|
|
10601
|
-
* Can be `default`, `foreground-tab`, `background-tab`, `new-window`,
|
|
10602
|
-
* `save-to-disk` and `other`.
|
|
10603
|
-
*/
|
|
10604
|
-
disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'save-to-disk' | 'other'),
|
|
10605
|
-
/**
|
|
10606
|
-
* The options which will be used for creating the new `BrowserWindow`.
|
|
10607
|
-
*/
|
|
10608
|
-
options: BrowserWindowConstructorOptions,
|
|
10609
|
-
/**
|
|
10610
|
-
* The non-standard features (features not handled by Chromium or Electron) given
|
|
10611
|
-
* to `window.open()`. Deprecated, and will now always be the empty array `[]`.
|
|
10612
|
-
*/
|
|
10613
|
-
additionalFeatures: string[],
|
|
10614
|
-
/**
|
|
10615
|
-
* The referrer that will be passed to the new window. May or may not result in the
|
|
10616
|
-
* `Referer` header being sent, depending on the referrer policy.
|
|
10617
|
-
*/
|
|
10618
|
-
referrer: Referrer,
|
|
10619
|
-
/**
|
|
10620
|
-
* The post data that will be sent to the new window, along with the appropriate
|
|
10621
|
-
* headers that will be set. If no post data is to be sent, the value will be
|
|
10622
|
-
* `null`. Only defined when the window is being created by a form that set
|
|
10623
|
-
* `target=_blank`.
|
|
10624
|
-
*/
|
|
10625
|
-
postBody: PostBody) => void): this;
|
|
10626
|
-
once(event: 'new-window', listener: (event: NewWindowWebContentsEvent,
|
|
10627
|
-
url: string,
|
|
10628
|
-
frameName: string,
|
|
10629
|
-
/**
|
|
10630
|
-
* Can be `default`, `foreground-tab`, `background-tab`, `new-window`,
|
|
10631
|
-
* `save-to-disk` and `other`.
|
|
10632
|
-
*/
|
|
10633
|
-
disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'save-to-disk' | 'other'),
|
|
10634
|
-
/**
|
|
10635
|
-
* The options which will be used for creating the new `BrowserWindow`.
|
|
10636
|
-
*/
|
|
10637
|
-
options: BrowserWindowConstructorOptions,
|
|
10638
|
-
/**
|
|
10639
|
-
* The non-standard features (features not handled by Chromium or Electron) given
|
|
10640
|
-
* to `window.open()`. Deprecated, and will now always be the empty array `[]`.
|
|
10641
|
-
*/
|
|
10642
|
-
additionalFeatures: string[],
|
|
10643
|
-
/**
|
|
10644
|
-
* The referrer that will be passed to the new window. May or may not result in the
|
|
10645
|
-
* `Referer` header being sent, depending on the referrer policy.
|
|
10646
|
-
*/
|
|
10647
|
-
referrer: Referrer,
|
|
10648
|
-
/**
|
|
10649
|
-
* The post data that will be sent to the new window, along with the appropriate
|
|
10650
|
-
* headers that will be set. If no post data is to be sent, the value will be
|
|
10651
|
-
* `null`. Only defined when the window is being created by a form that set
|
|
10652
|
-
* `target=_blank`.
|
|
10653
|
-
*/
|
|
10654
|
-
postBody: PostBody) => void): this;
|
|
10655
|
-
addListener(event: 'new-window', listener: (event: NewWindowWebContentsEvent,
|
|
10656
|
-
url: string,
|
|
10657
|
-
frameName: string,
|
|
10658
|
-
/**
|
|
10659
|
-
* Can be `default`, `foreground-tab`, `background-tab`, `new-window`,
|
|
10660
|
-
* `save-to-disk` and `other`.
|
|
10661
|
-
*/
|
|
10662
|
-
disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'save-to-disk' | 'other'),
|
|
10663
|
-
/**
|
|
10664
|
-
* The options which will be used for creating the new `BrowserWindow`.
|
|
10665
|
-
*/
|
|
10666
|
-
options: BrowserWindowConstructorOptions,
|
|
10667
|
-
/**
|
|
10668
|
-
* The non-standard features (features not handled by Chromium or Electron) given
|
|
10669
|
-
* to `window.open()`. Deprecated, and will now always be the empty array `[]`.
|
|
10670
|
-
*/
|
|
10671
|
-
additionalFeatures: string[],
|
|
10672
|
-
/**
|
|
10673
|
-
* The referrer that will be passed to the new window. May or may not result in the
|
|
10674
|
-
* `Referer` header being sent, depending on the referrer policy.
|
|
10675
|
-
*/
|
|
10676
|
-
referrer: Referrer,
|
|
10677
|
-
/**
|
|
10678
|
-
* The post data that will be sent to the new window, along with the appropriate
|
|
10679
|
-
* headers that will be set. If no post data is to be sent, the value will be
|
|
10680
|
-
* `null`. Only defined when the window is being created by a form that set
|
|
10681
|
-
* `target=_blank`.
|
|
10682
|
-
*/
|
|
10683
|
-
postBody: PostBody) => void): this;
|
|
10684
|
-
removeListener(event: 'new-window', listener: (event: NewWindowWebContentsEvent,
|
|
10685
|
-
url: string,
|
|
10686
|
-
frameName: string,
|
|
10687
|
-
/**
|
|
10688
|
-
* Can be `default`, `foreground-tab`, `background-tab`, `new-window`,
|
|
10689
|
-
* `save-to-disk` and `other`.
|
|
10690
|
-
*/
|
|
10691
|
-
disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'save-to-disk' | 'other'),
|
|
10692
|
-
/**
|
|
10693
|
-
* The options which will be used for creating the new `BrowserWindow`.
|
|
10694
|
-
*/
|
|
10695
|
-
options: BrowserWindowConstructorOptions,
|
|
10696
|
-
/**
|
|
10697
|
-
* The non-standard features (features not handled by Chromium or Electron) given
|
|
10698
|
-
* to `window.open()`. Deprecated, and will now always be the empty array `[]`.
|
|
10699
|
-
*/
|
|
10700
|
-
additionalFeatures: string[],
|
|
10701
|
-
/**
|
|
10702
|
-
* The referrer that will be passed to the new window. May or may not result in the
|
|
10703
|
-
* `Referer` header being sent, depending on the referrer policy.
|
|
10704
|
-
*/
|
|
10705
|
-
referrer: Referrer,
|
|
10706
|
-
/**
|
|
10707
|
-
* The post data that will be sent to the new window, along with the appropriate
|
|
10708
|
-
* headers that will be set. If no post data is to be sent, the value will be
|
|
10709
|
-
* `null`. Only defined when the window is being created by a form that set
|
|
10710
|
-
* `target=_blank`.
|
|
10711
|
-
*/
|
|
10712
|
-
postBody: PostBody) => void): this;
|
|
10713
10657
|
/**
|
|
10714
10658
|
* Emitted when page receives favicon urls.
|
|
10715
10659
|
*/
|
|
@@ -11116,6 +11060,14 @@ declare namespace Electron {
|
|
|
11116
11060
|
* Clears the navigation history.
|
|
11117
11061
|
*/
|
|
11118
11062
|
clearHistory(): void;
|
|
11063
|
+
/**
|
|
11064
|
+
* Closes the page, as if the web content had called `window.close()`.
|
|
11065
|
+
*
|
|
11066
|
+
* If the page is successfully closed (i.e. the unload is not prevented by the
|
|
11067
|
+
* page, or `waitForBeforeUnload` is false or unspecified), the WebContents will be
|
|
11068
|
+
* destroyed and no longer usable. The `destroyed` event will be emitted.
|
|
11069
|
+
*/
|
|
11070
|
+
close(opts?: Opts): void;
|
|
11119
11071
|
/**
|
|
11120
11072
|
* Closes the devtools.
|
|
11121
11073
|
*/
|
|
@@ -11760,6 +11712,13 @@ declare namespace Electron {
|
|
|
11760
11712
|
*
|
|
11761
11713
|
*/
|
|
11762
11714
|
readonly mainFrame: WebFrameMain;
|
|
11715
|
+
/**
|
|
11716
|
+
* A `WebFrameMain` property that represents the frame that opened this
|
|
11717
|
+
* WebContents, either with open(), or by navigating a link with a target
|
|
11718
|
+
* attribute.
|
|
11719
|
+
*
|
|
11720
|
+
*/
|
|
11721
|
+
readonly opener: WebFrameMain;
|
|
11763
11722
|
/**
|
|
11764
11723
|
* A `Session` used by this webContents.
|
|
11765
11724
|
*
|
|
@@ -12349,13 +12308,6 @@ declare namespace Electron {
|
|
|
12349
12308
|
*/
|
|
12350
12309
|
addEventListener(event: 'found-in-page', listener: (event: FoundInPageEvent) => void, useCapture?: boolean): this;
|
|
12351
12310
|
removeEventListener(event: 'found-in-page', listener: (event: FoundInPageEvent) => void): this;
|
|
12352
|
-
/**
|
|
12353
|
-
* Fired when the guest page attempts to open a new browser window.
|
|
12354
|
-
*
|
|
12355
|
-
* The following example code opens the new url in system's default browser.
|
|
12356
|
-
*/
|
|
12357
|
-
addEventListener(event: 'new-window', listener: (event: NewWindowEvent) => void, useCapture?: boolean): this;
|
|
12358
|
-
removeEventListener(event: 'new-window', listener: (event: NewWindowEvent) => void): this;
|
|
12359
12311
|
/**
|
|
12360
12312
|
* Emitted when a user or the page wants to start navigation. It can happen when
|
|
12361
12313
|
* the `window.location` object is changed or a user clicks a link in the page.
|
|
@@ -14044,6 +13996,29 @@ declare namespace Electron {
|
|
|
14044
13996
|
respectQuietTime?: boolean;
|
|
14045
13997
|
}
|
|
14046
13998
|
|
|
13999
|
+
interface DisplayMediaRequestHandlerHandlerRequest {
|
|
14000
|
+
/**
|
|
14001
|
+
* Frame that is requesting access to media.
|
|
14002
|
+
*/
|
|
14003
|
+
frame: WebFrameMain;
|
|
14004
|
+
/**
|
|
14005
|
+
* Origin of the page making the request.
|
|
14006
|
+
*/
|
|
14007
|
+
securityOrigin: string;
|
|
14008
|
+
/**
|
|
14009
|
+
* true if the web content requested a video stream.
|
|
14010
|
+
*/
|
|
14011
|
+
videoRequested: boolean;
|
|
14012
|
+
/**
|
|
14013
|
+
* true if the web content requested an audio stream.
|
|
14014
|
+
*/
|
|
14015
|
+
audioRequested: boolean;
|
|
14016
|
+
/**
|
|
14017
|
+
* Whether a user gesture was active when this request was triggered.
|
|
14018
|
+
*/
|
|
14019
|
+
userGesture: boolean;
|
|
14020
|
+
}
|
|
14021
|
+
|
|
14047
14022
|
interface EnableNetworkEmulationOptions {
|
|
14048
14023
|
/**
|
|
14049
14024
|
* Whether to emulate network outage. Defaults to false.
|
|
@@ -14743,20 +14718,6 @@ declare namespace Electron {
|
|
|
14743
14718
|
conflictHandler?: (conflictType: 'exists' | 'existsAndRunning') => boolean;
|
|
14744
14719
|
}
|
|
14745
14720
|
|
|
14746
|
-
interface NewWindowEvent extends Event {
|
|
14747
|
-
url: string;
|
|
14748
|
-
frameName: string;
|
|
14749
|
-
/**
|
|
14750
|
-
* Can be `default`, `foreground-tab`, `background-tab`, `new-window`,
|
|
14751
|
-
* `save-to-disk` and `other`.
|
|
14752
|
-
*/
|
|
14753
|
-
disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'save-to-disk' | 'other');
|
|
14754
|
-
/**
|
|
14755
|
-
* The options which should be used for creating the new `BrowserWindow`.
|
|
14756
|
-
*/
|
|
14757
|
-
options: BrowserWindowConstructorOptions;
|
|
14758
|
-
}
|
|
14759
|
-
|
|
14760
14721
|
interface NotificationConstructorOptions {
|
|
14761
14722
|
/**
|
|
14762
14723
|
* A title for the notification, which will be shown at the top of the notification
|
|
@@ -15104,6 +15065,15 @@ declare namespace Electron {
|
|
|
15104
15065
|
interface Options {
|
|
15105
15066
|
}
|
|
15106
15067
|
|
|
15068
|
+
interface Opts {
|
|
15069
|
+
/**
|
|
15070
|
+
* if true, fire the `beforeunload` event before closing the page. If the page
|
|
15071
|
+
* prevents the unload, the WebContents will not be closed. The
|
|
15072
|
+
* `will-prevent-unload` will be fired if the page requests prevention of unload.
|
|
15073
|
+
*/
|
|
15074
|
+
waitForBeforeUnload: boolean;
|
|
15075
|
+
}
|
|
15076
|
+
|
|
15107
15077
|
interface PageFaviconUpdatedEvent extends Event {
|
|
15108
15078
|
/**
|
|
15109
15079
|
* Array of URLs.
|
|
@@ -15676,6 +15646,16 @@ declare namespace Electron {
|
|
|
15676
15646
|
maxFileSize?: number;
|
|
15677
15647
|
}
|
|
15678
15648
|
|
|
15649
|
+
interface Streams {
|
|
15650
|
+
video?: (Video) | (WebFrameMain);
|
|
15651
|
+
/**
|
|
15652
|
+
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
15653
|
+
* loopback device will capture system audio, and is currently only supported on
|
|
15654
|
+
* Windows. If a WebFrameMain is specified, will capture audio from that frame.
|
|
15655
|
+
*/
|
|
15656
|
+
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
15657
|
+
}
|
|
15658
|
+
|
|
15679
15659
|
interface SystemMemoryInfo {
|
|
15680
15660
|
/**
|
|
15681
15661
|
* The total amount of physical memory in Kilobytes available to the system.
|
|
@@ -16439,6 +16419,19 @@ declare namespace Electron {
|
|
|
16439
16419
|
height?: number;
|
|
16440
16420
|
}
|
|
16441
16421
|
|
|
16422
|
+
interface Video {
|
|
16423
|
+
/**
|
|
16424
|
+
* The id of the stream being granted. This will usually come from a
|
|
16425
|
+
* DesktopCapturerSource object.
|
|
16426
|
+
*/
|
|
16427
|
+
id: string;
|
|
16428
|
+
/**
|
|
16429
|
+
* The name of the stream being granted. This will usually come from a
|
|
16430
|
+
* DesktopCapturerSource object.
|
|
16431
|
+
*/
|
|
16432
|
+
name: string;
|
|
16433
|
+
}
|
|
16434
|
+
|
|
16442
16435
|
interface WebPreferences {
|
|
16443
16436
|
/**
|
|
16444
16437
|
* Whether to enable DevTools. If it is set to `false`, can not use
|
|
@@ -16790,6 +16783,7 @@ declare namespace Electron {
|
|
|
16790
16783
|
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
16791
16784
|
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
16792
16785
|
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
16786
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
16793
16787
|
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
16794
16788
|
type FeedURLOptions = Electron.FeedURLOptions;
|
|
16795
16789
|
type FileIconOptions = Electron.FileIconOptions;
|
|
@@ -16825,7 +16819,6 @@ declare namespace Electron {
|
|
|
16825
16819
|
type MessageDetails = Electron.MessageDetails;
|
|
16826
16820
|
type MessageEvent = Electron.MessageEvent;
|
|
16827
16821
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
16828
|
-
type NewWindowEvent = Electron.NewWindowEvent;
|
|
16829
16822
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
16830
16823
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
16831
16824
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
@@ -16841,6 +16834,7 @@ declare namespace Electron {
|
|
|
16841
16834
|
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
16842
16835
|
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
16843
16836
|
type Options = Electron.Options;
|
|
16837
|
+
type Opts = Electron.Opts;
|
|
16844
16838
|
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
16845
16839
|
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
16846
16840
|
type Parameters = Electron.Parameters;
|
|
@@ -16871,6 +16865,7 @@ declare namespace Electron {
|
|
|
16871
16865
|
type SourcesOptions = Electron.SourcesOptions;
|
|
16872
16866
|
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
16873
16867
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
16868
|
+
type Streams = Electron.Streams;
|
|
16874
16869
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
16875
16870
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
16876
16871
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -16903,6 +16898,7 @@ declare namespace Electron {
|
|
|
16903
16898
|
type PageRanges = Electron.PageRanges;
|
|
16904
16899
|
type Params = Electron.Params;
|
|
16905
16900
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
16901
|
+
type Video = Electron.Video;
|
|
16906
16902
|
type WebPreferences = Electron.WebPreferences;
|
|
16907
16903
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
16908
16904
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -16935,7 +16931,6 @@ declare namespace Electron {
|
|
|
16935
16931
|
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
16936
16932
|
type MouseInputEvent = Electron.MouseInputEvent;
|
|
16937
16933
|
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
16938
|
-
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
16939
16934
|
type NotificationAction = Electron.NotificationAction;
|
|
16940
16935
|
type NotificationResponse = Electron.NotificationResponse;
|
|
16941
16936
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
@@ -17089,6 +17084,7 @@ declare namespace Electron {
|
|
|
17089
17084
|
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
17090
17085
|
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
17091
17086
|
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
17087
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
17092
17088
|
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
17093
17089
|
type FeedURLOptions = Electron.FeedURLOptions;
|
|
17094
17090
|
type FileIconOptions = Electron.FileIconOptions;
|
|
@@ -17124,7 +17120,6 @@ declare namespace Electron {
|
|
|
17124
17120
|
type MessageDetails = Electron.MessageDetails;
|
|
17125
17121
|
type MessageEvent = Electron.MessageEvent;
|
|
17126
17122
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
17127
|
-
type NewWindowEvent = Electron.NewWindowEvent;
|
|
17128
17123
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
17129
17124
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
17130
17125
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
@@ -17140,6 +17135,7 @@ declare namespace Electron {
|
|
|
17140
17135
|
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
17141
17136
|
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
17142
17137
|
type Options = Electron.Options;
|
|
17138
|
+
type Opts = Electron.Opts;
|
|
17143
17139
|
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
17144
17140
|
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
17145
17141
|
type Parameters = Electron.Parameters;
|
|
@@ -17170,6 +17166,7 @@ declare namespace Electron {
|
|
|
17170
17166
|
type SourcesOptions = Electron.SourcesOptions;
|
|
17171
17167
|
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
17172
17168
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
17169
|
+
type Streams = Electron.Streams;
|
|
17173
17170
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
17174
17171
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
17175
17172
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -17202,6 +17199,7 @@ declare namespace Electron {
|
|
|
17202
17199
|
type PageRanges = Electron.PageRanges;
|
|
17203
17200
|
type Params = Electron.Params;
|
|
17204
17201
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
17202
|
+
type Video = Electron.Video;
|
|
17205
17203
|
type WebPreferences = Electron.WebPreferences;
|
|
17206
17204
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
17207
17205
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -17234,7 +17232,6 @@ declare namespace Electron {
|
|
|
17234
17232
|
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
17235
17233
|
type MouseInputEvent = Electron.MouseInputEvent;
|
|
17236
17234
|
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
17237
|
-
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
17238
17235
|
type NotificationAction = Electron.NotificationAction;
|
|
17239
17236
|
type NotificationResponse = Electron.NotificationResponse;
|
|
17240
17237
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
@@ -17323,6 +17320,7 @@ declare namespace Electron {
|
|
|
17323
17320
|
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
17324
17321
|
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
17325
17322
|
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
17323
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
17326
17324
|
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
17327
17325
|
type FeedURLOptions = Electron.FeedURLOptions;
|
|
17328
17326
|
type FileIconOptions = Electron.FileIconOptions;
|
|
@@ -17358,7 +17356,6 @@ declare namespace Electron {
|
|
|
17358
17356
|
type MessageDetails = Electron.MessageDetails;
|
|
17359
17357
|
type MessageEvent = Electron.MessageEvent;
|
|
17360
17358
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
17361
|
-
type NewWindowEvent = Electron.NewWindowEvent;
|
|
17362
17359
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
17363
17360
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
17364
17361
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
@@ -17374,6 +17371,7 @@ declare namespace Electron {
|
|
|
17374
17371
|
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
17375
17372
|
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
17376
17373
|
type Options = Electron.Options;
|
|
17374
|
+
type Opts = Electron.Opts;
|
|
17377
17375
|
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
17378
17376
|
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
17379
17377
|
type Parameters = Electron.Parameters;
|
|
@@ -17404,6 +17402,7 @@ declare namespace Electron {
|
|
|
17404
17402
|
type SourcesOptions = Electron.SourcesOptions;
|
|
17405
17403
|
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
17406
17404
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
17405
|
+
type Streams = Electron.Streams;
|
|
17407
17406
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
17408
17407
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
17409
17408
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -17436,6 +17435,7 @@ declare namespace Electron {
|
|
|
17436
17435
|
type PageRanges = Electron.PageRanges;
|
|
17437
17436
|
type Params = Electron.Params;
|
|
17438
17437
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
17438
|
+
type Video = Electron.Video;
|
|
17439
17439
|
type WebPreferences = Electron.WebPreferences;
|
|
17440
17440
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
17441
17441
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -17468,7 +17468,6 @@ declare namespace Electron {
|
|
|
17468
17468
|
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
17469
17469
|
type MouseInputEvent = Electron.MouseInputEvent;
|
|
17470
17470
|
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
17471
|
-
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
17472
17471
|
type NotificationAction = Electron.NotificationAction;
|
|
17473
17472
|
type NotificationResponse = Electron.NotificationResponse;
|
|
17474
17473
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
@@ -17636,6 +17635,7 @@ declare namespace Electron {
|
|
|
17636
17635
|
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
17637
17636
|
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
17638
17637
|
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
17638
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
17639
17639
|
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
17640
17640
|
type FeedURLOptions = Electron.FeedURLOptions;
|
|
17641
17641
|
type FileIconOptions = Electron.FileIconOptions;
|
|
@@ -17671,7 +17671,6 @@ declare namespace Electron {
|
|
|
17671
17671
|
type MessageDetails = Electron.MessageDetails;
|
|
17672
17672
|
type MessageEvent = Electron.MessageEvent;
|
|
17673
17673
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
17674
|
-
type NewWindowEvent = Electron.NewWindowEvent;
|
|
17675
17674
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
17676
17675
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
17677
17676
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
@@ -17687,6 +17686,7 @@ declare namespace Electron {
|
|
|
17687
17686
|
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
17688
17687
|
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
17689
17688
|
type Options = Electron.Options;
|
|
17689
|
+
type Opts = Electron.Opts;
|
|
17690
17690
|
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
17691
17691
|
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
17692
17692
|
type Parameters = Electron.Parameters;
|
|
@@ -17717,6 +17717,7 @@ declare namespace Electron {
|
|
|
17717
17717
|
type SourcesOptions = Electron.SourcesOptions;
|
|
17718
17718
|
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
17719
17719
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
17720
|
+
type Streams = Electron.Streams;
|
|
17720
17721
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
17721
17722
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
17722
17723
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -17749,6 +17750,7 @@ declare namespace Electron {
|
|
|
17749
17750
|
type PageRanges = Electron.PageRanges;
|
|
17750
17751
|
type Params = Electron.Params;
|
|
17751
17752
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
17753
|
+
type Video = Electron.Video;
|
|
17752
17754
|
type WebPreferences = Electron.WebPreferences;
|
|
17753
17755
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
17754
17756
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -17781,7 +17783,6 @@ declare namespace Electron {
|
|
|
17781
17783
|
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
17782
17784
|
type MouseInputEvent = Electron.MouseInputEvent;
|
|
17783
17785
|
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
17784
|
-
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
17785
17786
|
type NotificationAction = Electron.NotificationAction;
|
|
17786
17787
|
type NotificationResponse = Electron.NotificationResponse;
|
|
17787
17788
|
type PaymentDiscount = Electron.PaymentDiscount;
|
package/install.js
CHANGED
|
@@ -70,8 +70,30 @@ function isInstalled () {
|
|
|
70
70
|
|
|
71
71
|
// unzips and makes path.txt point at the correct executable
|
|
72
72
|
function extractFile (zipPath) {
|
|
73
|
-
return
|
|
74
|
-
|
|
73
|
+
return new Promise((resolve, reject) => {
|
|
74
|
+
const distPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist');
|
|
75
|
+
|
|
76
|
+
extract(zipPath, { dir: path.join(__dirname, 'dist') })
|
|
77
|
+
.then(() => {
|
|
78
|
+
// If the zip contains an "electron.d.ts" file,
|
|
79
|
+
// move that up
|
|
80
|
+
const srcTypeDefPath = path.join(distPath, 'electron.d.ts');
|
|
81
|
+
const targetTypeDefPath = path.join(__dirname, 'electron.d.ts');
|
|
82
|
+
const hasTypeDefinitions = fs.existsSync(srcTypeDefPath);
|
|
83
|
+
|
|
84
|
+
if (hasTypeDefinitions) {
|
|
85
|
+
try {
|
|
86
|
+
fs.renameSync(srcTypeDefPath, targetTypeDefPath);
|
|
87
|
+
} catch (err) {
|
|
88
|
+
reject(err);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Write a "path.txt" file.
|
|
93
|
+
return fs.promises.writeFile(path.join(__dirname, 'path.txt'), platformPath);
|
|
94
|
+
})
|
|
95
|
+
.catch((err) => reject(err));
|
|
96
|
+
});
|
|
75
97
|
}
|
|
76
98
|
|
|
77
99
|
function getPlatformPath () {
|
package/package.json
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"postinstall": "node install.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@electron/get": "^
|
|
11
|
+
"@electron/get": "^2.0.0",
|
|
12
12
|
"@types/node": "^16.11.26",
|
|
13
13
|
"extract-zip": "^2.0.1"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">= 12.20.55"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "22.0.0-alpha.1",
|
|
20
20
|
"repository": "https://github.com/electron/electron",
|
|
21
21
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
22
22
|
"license": "MIT",
|