electron 18.0.3 → 19.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/checksums.json +80 -82
- package/electron.d.ts +76 -15
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,6 +34,17 @@ For more installation options and troubleshooting tips, see
|
|
|
34
34
|
[installation](docs/tutorial/installation.md). For info on how to manage Electron versions in your apps, see
|
|
35
35
|
[Electron versioning](docs/tutorial/electron-versioning.md).
|
|
36
36
|
|
|
37
|
+
## Platform support
|
|
38
|
+
|
|
39
|
+
Each Electron release provides binaries for macOS, Windows, and Linux.
|
|
40
|
+
|
|
41
|
+
* macOS (El Capitan and up): Electron provides 64-bit Intel and ARM binaries for macOS. Apple Silicon support was added in Electron 11.
|
|
42
|
+
* Windows (Windows 7 and up): Electron provides `ia32` (`x86`), `x64` (`amd64`), and `arm64` binaries for Windows. Windows on ARM support was added in Electron 5.0.8.
|
|
43
|
+
* Linux: The prebuilt binaries of Electron are built on Ubuntu 20.04. They have also been verified to work on:
|
|
44
|
+
* Ubuntu 14.04 and newer
|
|
45
|
+
* Fedora 24 and newer
|
|
46
|
+
* Debian 8 and newer
|
|
47
|
+
|
|
37
48
|
## Quick start & Electron Fiddle
|
|
38
49
|
|
|
39
50
|
Use [`Electron Fiddle`](https://github.com/electron/fiddle)
|
|
@@ -54,12 +65,10 @@ npm start
|
|
|
54
65
|
|
|
55
66
|
## Resources for learning Electron
|
|
56
67
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- [electron/simple-samples](https://github.com/electron/simple-samples) - Small applications with ideas for taking them further
|
|
62
|
-
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - An Electron app that teaches you how to use Electron
|
|
68
|
+
* [electronjs.org/docs](https://electronjs.org/docs) - All of Electron's documentation
|
|
69
|
+
* [electron/fiddle](https://github.com/electron/fiddle) - A tool to build, run, and package small Electron experiments
|
|
70
|
+
* [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - A very basic starter Electron app
|
|
71
|
+
* [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - Sample starter apps created by the community
|
|
63
72
|
|
|
64
73
|
## Programmatic usage
|
|
65
74
|
|
|
@@ -80,11 +89,15 @@ const child = proc.spawn(electron)
|
|
|
80
89
|
|
|
81
90
|
### Mirrors
|
|
82
91
|
|
|
83
|
-
|
|
92
|
+
* [China](https://npmmirror.com/mirrors/electron/)
|
|
93
|
+
|
|
94
|
+
See the [Advanced Installation Instructions](https://www.electronjs.org/docs/latest/tutorial/installation#mirror) to learn how to use a custom mirror.
|
|
84
95
|
|
|
85
|
-
## Documentation
|
|
96
|
+
## Documentation translations
|
|
86
97
|
|
|
87
|
-
|
|
98
|
+
We crowdsource translations for our documentation via [Crowdin](https://crowdin.com/project/electron).
|
|
99
|
+
We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese,
|
|
100
|
+
Russian, and Spanish.
|
|
88
101
|
|
|
89
102
|
## Contributing
|
|
90
103
|
|
|
@@ -93,10 +106,10 @@ If you are interested in reporting/fixing issues and contributing directly to th
|
|
|
93
106
|
## Community
|
|
94
107
|
|
|
95
108
|
Info on reporting bugs, getting help, finding third-party tools and sample apps,
|
|
96
|
-
and more can be found
|
|
109
|
+
and more can be found on the [Community page](https://www.electronjs.org/community).
|
|
97
110
|
|
|
98
111
|
## License
|
|
99
112
|
|
|
100
113
|
[MIT](https://github.com/electron/electron/blob/main/LICENSE)
|
|
101
114
|
|
|
102
|
-
When using
|
|
115
|
+
When using Electron logos, make sure to follow [OpenJS Foundation Trademark Policy](https://openjsf.org/wp-content/uploads/sites/84/2021/01/OpenJS-Foundation-Trademark-Policy-2021-01-12.docx.pdf).
|
package/checksums.json
CHANGED
|
@@ -1,84 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"chromedriver-
|
|
13
|
-
"electron-api.json": "
|
|
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-
|
|
51
|
-
"electron-
|
|
52
|
-
"electron
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"ffmpeg-
|
|
62
|
-
"ffmpeg-
|
|
63
|
-
"ffmpeg-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"libcxx-objects-
|
|
68
|
-
"libcxx-objects-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
77
|
-
"mksnapshot-
|
|
78
|
-
"mksnapshot-
|
|
79
|
-
"mksnapshot-
|
|
80
|
-
"mksnapshot-
|
|
81
|
-
"mksnapshot-
|
|
82
|
-
"mksnapshot-v18.0.3-win32-ia32.zip": "628550b82cd2aa9b8b9024d1c41510e1b3eda7dbc39607120bae429c17e11994",
|
|
83
|
-
"mksnapshot-v18.0.3-win32-x64.zip": "56242ec35191ccace4652d029be13ac0c76ed444c52d6a5729bb436d417b10ac"
|
|
2
|
+
"chromedriver-v19.0.0-alpha.2-darwin-arm64.zip": "77c1dccac51bee9a4f2896da5033bde42502402d6f0383bdeaf556664b72eaaf",
|
|
3
|
+
"chromedriver-v19.0.0-alpha.2-darwin-x64.zip": "dd18bbf1ac5c58142504f65a39c2849946d9f4448ddf92412e7b44a600116d0a",
|
|
4
|
+
"chromedriver-v19.0.0-alpha.2-linux-arm64.zip": "c089dac39ca68765a65254e5f1a21c64437db0e80e8f87534dd96f15fa0e5f81",
|
|
5
|
+
"chromedriver-v19.0.0-alpha.2-linux-armv7l.zip": "10d06e182259071fd464930a6e3b09b0d9087655e592fca982b398cc799de514",
|
|
6
|
+
"chromedriver-v19.0.0-alpha.2-linux-ia32.zip": "aafcb0d8d4a1f1bb8b772da3a14845f48c1cfb8b79ac802108fe66bbec439da9",
|
|
7
|
+
"chromedriver-v19.0.0-alpha.2-linux-x64.zip": "0e4de949433963b521e0d1c92029c191fec7eadf9eb8d72affe502132896ee7f",
|
|
8
|
+
"chromedriver-v19.0.0-alpha.2-mas-arm64.zip": "57f697e0775b72f0254f00fe174c4fa1c4ece905a13c23acce4ce91abb711298",
|
|
9
|
+
"chromedriver-v19.0.0-alpha.2-mas-x64.zip": "7cca600b692e0bf5d372f1677863c100d6177ce49d0eb83e40d3be3aff36e640",
|
|
10
|
+
"chromedriver-v19.0.0-alpha.2-win32-arm64.zip": "32121ab47b5866d3ec7853a1e5425b8e875aaa4a4dc70fd4163ee0058f2a445e",
|
|
11
|
+
"chromedriver-v19.0.0-alpha.2-win32-ia32.zip": "fb9734ae2034818a5b65b7ea6286b0bda7425bf0a92de802fa7e9fb1b100e5a3",
|
|
12
|
+
"chromedriver-v19.0.0-alpha.2-win32-x64.zip": "3f5620d2135f4b6b4c40be41ac53fcaa9ea75961fbd219c92e887cc2efbee208",
|
|
13
|
+
"electron-api.json": "1f525c9ad04e404d147725b25175f7d07e0cb0995dd1e4cdba1819b8bcd65381",
|
|
14
|
+
"electron-v19.0.0-alpha.2-darwin-arm64-dsym-snapshot.zip": "398198cead1689d356bae5123575ddf6a7b7b1830ba04f4de7b59eb8f7e5469e",
|
|
15
|
+
"electron-v19.0.0-alpha.2-darwin-arm64-dsym.zip": "9fc0df3c9aff2a93fd61b35b6ffe1f976b512c79c01d89e59ab14e1e6d2c0fab",
|
|
16
|
+
"electron-v19.0.0-alpha.2-darwin-arm64-symbols.zip": "c93de41b78acfef3c4de4e56fe9ada3c032f9b73b7a77c6a98d1ae131a5df5e9",
|
|
17
|
+
"electron-v19.0.0-alpha.2-darwin-arm64.zip": "4a43fa8938da9e8a6462455051f6bf6a8c31a5a6bf7abeb4e86efa58fa93b0b3",
|
|
18
|
+
"electron-v19.0.0-alpha.2-darwin-x64-dsym-snapshot.zip": "2266e52b790e3412d6325b7a7b569b5286fa0582c087d0737dcf49799898ed7c",
|
|
19
|
+
"electron-v19.0.0-alpha.2-darwin-x64-dsym.zip": "55a9488f79d254ed12e4b53721a8cde75a830d052c33986363d6e47447e70105",
|
|
20
|
+
"electron-v19.0.0-alpha.2-darwin-x64-symbols.zip": "1211c0f961b0bea72102c3ec80b540cebb89dd3b7733a011d5b755164d20a73a",
|
|
21
|
+
"electron-v19.0.0-alpha.2-darwin-x64.zip": "4abc7712b325283cce38678dfb4c60755c61fc04b32642621facf84eff4c0f3e",
|
|
22
|
+
"electron-v19.0.0-alpha.2-linux-arm64-debug.zip": "1c60399fdafbd21938be41dac6e7987d269a22d8735e329fd3ddfff7fc557c90",
|
|
23
|
+
"electron-v19.0.0-alpha.2-linux-arm64-symbols.zip": "a72940ff99fdc7fbe45bbc961df7fc4ff3f8afd5f7eee749a3af081839ebbbb1",
|
|
24
|
+
"electron-v19.0.0-alpha.2-linux-arm64.zip": "0df035260fadfda9dde7a55ee7cd7cdd4faeb1f4336ad2d105b922775e4bc476",
|
|
25
|
+
"electron-v19.0.0-alpha.2-linux-armv7l-debug.zip": "1c60399fdafbd21938be41dac6e7987d269a22d8735e329fd3ddfff7fc557c90",
|
|
26
|
+
"electron-v19.0.0-alpha.2-linux-armv7l-symbols.zip": "9656921a6fb9a616f1b9250019862935da11ac1622c78c215e4d28df513a8506",
|
|
27
|
+
"electron-v19.0.0-alpha.2-linux-armv7l.zip": "dd8f0640f481d1b2c75b2a3d731c181bfee241a62ac6c6dcbf47aac46cd5662e",
|
|
28
|
+
"electron-v19.0.0-alpha.2-linux-ia32-debug.zip": "1c60399fdafbd21938be41dac6e7987d269a22d8735e329fd3ddfff7fc557c90",
|
|
29
|
+
"electron-v19.0.0-alpha.2-linux-ia32-symbols.zip": "1c2c125615d63d8f74496f35a8f9de62d07d34fbc2aebfed55644beb78e41658",
|
|
30
|
+
"electron-v19.0.0-alpha.2-linux-ia32.zip": "a81b8439a7c93e513c66f433af66f27eeb4772eb9a99c08c74c35d255fecda82",
|
|
31
|
+
"electron-v19.0.0-alpha.2-linux-x64-debug.zip": "9463438d1223920d01ee33ab1e2a737f7678d78a1bb06effcd4762a349d0c4e3",
|
|
32
|
+
"electron-v19.0.0-alpha.2-linux-x64-symbols.zip": "d31adfb40356c02e3495716764982f6e17ee4d77b53b4498923bae59c8a29235",
|
|
33
|
+
"electron-v19.0.0-alpha.2-linux-x64.zip": "ce1b5bc59db11e40b06af6fe4a9276bcf5a9d282fb828710a11c607c81e004ac",
|
|
34
|
+
"electron-v19.0.0-alpha.2-mas-arm64-dsym-snapshot.zip": "398198cead1689d356bae5123575ddf6a7b7b1830ba04f4de7b59eb8f7e5469e",
|
|
35
|
+
"electron-v19.0.0-alpha.2-mas-arm64-dsym.zip": "51081832db77755ac6fca1f3f8159d1dc9ecf37094132c45bade52a3b728dfd1",
|
|
36
|
+
"electron-v19.0.0-alpha.2-mas-arm64-symbols.zip": "980fc48afe1a6a3b3100e0f90ddd50f624f97094e3afe763298edc97bbb4bffa",
|
|
37
|
+
"electron-v19.0.0-alpha.2-mas-arm64.zip": "d9f7e82eedae61e5d366dfcd247d75d905856d3f05e605b1988caf9eaf6cd1b4",
|
|
38
|
+
"electron-v19.0.0-alpha.2-mas-x64-dsym-snapshot.zip": "f78338568165ba9faed9b6c55eadbd2706ad0fbc494c929e57d2aaffe2389bba",
|
|
39
|
+
"electron-v19.0.0-alpha.2-mas-x64-dsym.zip": "4d5a9a7ac58ecd62ddbefd9ebe6ddfa7a770ee73d2eacbd1bc9a8b6c2cb1f1cb",
|
|
40
|
+
"electron-v19.0.0-alpha.2-mas-x64-symbols.zip": "45944a18fe3d52012a80f5523879172f179ff6cf1cb0cbe9b21152e5f91cc74e",
|
|
41
|
+
"electron-v19.0.0-alpha.2-mas-x64.zip": "18eced8d611ec0121c315045809924ff90a3b1650dbce4ded4b5ef73bf45c5f5",
|
|
42
|
+
"electron-v19.0.0-alpha.2-win32-arm64-pdb.zip": "aca49e3389f89c39dc87ebbc2ef0a72d2f8c9a12f9f858d48432f86bb68a72ab",
|
|
43
|
+
"electron-v19.0.0-alpha.2-win32-arm64-symbols.zip": "a7818a11a3097a1bec53f6520a8fe922ce01d720dfb6e8f80fa41c76af16bb62",
|
|
44
|
+
"electron-v19.0.0-alpha.2-win32-arm64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
45
|
+
"electron-v19.0.0-alpha.2-win32-arm64.zip": "178ba75a3d2820db55d86767cec78c3dc509ecea40d04db25509470cd136435b",
|
|
46
|
+
"electron-v19.0.0-alpha.2-win32-ia32-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
47
|
+
"electron-v19.0.0-alpha.2-win32-ia32.zip": "e5f164ca5e18e407faa26ebcfd1af991970c36b9d8ba59fe1e15249d5adfd0c6",
|
|
48
|
+
"electron-v19.0.0-alpha.2-win32-x64-pdb.zip": "4445ae306e53bfe4bf76edca07a174ccaf732b618bb4a4bc6e085cbfcc80c8a0",
|
|
49
|
+
"electron-v19.0.0-alpha.2-win32-x64-symbols.zip": "ab5f28c279b2b5815e7a4e485b651e1f5bb80ea363bffbf4c7f0b70d5b27dd85",
|
|
50
|
+
"electron-v19.0.0-alpha.2-win32-x64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
51
|
+
"electron-v19.0.0-alpha.2-win32-x64.zip": "8c0a091ed30770c63d953388c97c47974e9d0d45591648003e65c49370269496",
|
|
52
|
+
"electron.d.ts": "c8b3fa82caf572ecc1faa381177f24825a931b44840634ece0689f536627a324",
|
|
53
|
+
"ffmpeg-v19.0.0-alpha.2-darwin-arm64.zip": "0dd0c9333a3569677baebba1c4a540b89302c849c8aa4c893b4bbdb3e18277d5",
|
|
54
|
+
"ffmpeg-v19.0.0-alpha.2-darwin-x64.zip": "4981939fd0a9d872057f088db0ee2217aabed4ddf3d16ff904f867a58160d376",
|
|
55
|
+
"ffmpeg-v19.0.0-alpha.2-linux-arm64.zip": "29be30c917cc5423d0905ac8a1d9b8bd51f5c67016acdf53354703f14d1234b0",
|
|
56
|
+
"ffmpeg-v19.0.0-alpha.2-linux-armv7l.zip": "6111b1319e561aa6f056373869bec6a571a8abd4df034bb6ff739aac450fe3e2",
|
|
57
|
+
"ffmpeg-v19.0.0-alpha.2-linux-ia32.zip": "5eb806abcc46f0de84a3b6b3163d8b672fc16f0c2ba5da48cd6edbb15fb00af0",
|
|
58
|
+
"ffmpeg-v19.0.0-alpha.2-linux-x64.zip": "d7209d8d31b171580326c08f8e5afe66607f40a361a2224e6083498e64549f2d",
|
|
59
|
+
"ffmpeg-v19.0.0-alpha.2-mas-arm64.zip": "97ba89f0c813b30b473960b8b0b83d0361baec41001dfb1896742ead94883d15",
|
|
60
|
+
"ffmpeg-v19.0.0-alpha.2-mas-x64.zip": "59339a9ebdea65110b2d69db0a98997483cb94c8f2d54fd7037a0a1f158811bc",
|
|
61
|
+
"ffmpeg-v19.0.0-alpha.2-win32-arm64.zip": "65a82e7685bbcb8980e801cee0f4dc0702985358531b626d04a8bc17f80a04e4",
|
|
62
|
+
"ffmpeg-v19.0.0-alpha.2-win32-ia32.zip": "c7b2e8ab488c1085bee75d9d505656619890420e6f8fd88937a953e38674c41d",
|
|
63
|
+
"ffmpeg-v19.0.0-alpha.2-win32-x64.zip": "904f173be6b7142cb3f6c716422c7d2ee20499760ba2e0885d9fda475aea1935",
|
|
64
|
+
"hunspell_dictionaries.zip": "c2bd34bd76c6f0614458dcc8470d515f8ff8010adea859d4ff41ee3706287c6a",
|
|
65
|
+
"libcxx-objects-v19.0.0-alpha.2-linux-arm64.zip": "e1e755de8b6d253606c6f1e1cf251d4ed1f7c8cf70d54c62233af70d806bf18e",
|
|
66
|
+
"libcxx-objects-v19.0.0-alpha.2-linux-armv7l.zip": "32e5bc3450bbbf5ce1e6cd691ed9a2f152ee5fb5bf67f1897bc25ed763d3ce0f",
|
|
67
|
+
"libcxx-objects-v19.0.0-alpha.2-linux-ia32.zip": "f8c72b7bdbd01398aa601385ae309bee7cc7939849c1e4d9e092d0a8d6ca4dfe",
|
|
68
|
+
"libcxx-objects-v19.0.0-alpha.2-linux-x64.zip": "969538093584c57e748128cbf1d541f34b052395cc03d6f7a028eaefd52dae9c",
|
|
69
|
+
"libcxx_headers.zip": "1ef7101dc0ede1e59c73530cd576a25ba818908f752ebd87650785d30489e7ce",
|
|
70
|
+
"libcxxabi_headers.zip": "3db14d0e90593e2f09f585751767fae5b6eae5d334863311179db9edae65a8ce",
|
|
71
|
+
"mksnapshot-v19.0.0-alpha.2-darwin-arm64.zip": "47fae3847f668a6b2a5a6251604937b922f6d69207ef294d136c1a12460a09eb",
|
|
72
|
+
"mksnapshot-v19.0.0-alpha.2-darwin-x64.zip": "de3f758d047448df5c7899682b2e966d79965ea8a038ce7639ee348cfe797759",
|
|
73
|
+
"mksnapshot-v19.0.0-alpha.2-linux-arm64-x64.zip": "1a0d5c2aad7883c274e77d7fc3fb0cee1b39f8081c79ec12161999420ee2e935",
|
|
74
|
+
"mksnapshot-v19.0.0-alpha.2-linux-armv7l-x64.zip": "cb75117c24b6069c633eacf6d2757db36a4ec1a3957c64b3a1d23572366bdf03",
|
|
75
|
+
"mksnapshot-v19.0.0-alpha.2-linux-ia32.zip": "e78d03e7e681713ba5338feaa2b93e8851ba63390fe7b5d34981543ada8953de",
|
|
76
|
+
"mksnapshot-v19.0.0-alpha.2-linux-x64.zip": "d8ee11c482b5a63afcb5c56b2c8b27b910fbe3242e7378828b62d2222e6640e8",
|
|
77
|
+
"mksnapshot-v19.0.0-alpha.2-mas-arm64.zip": "09dc764a67a916255552d9f827a0633354979b22ac84670f495b10bc280fde4b",
|
|
78
|
+
"mksnapshot-v19.0.0-alpha.2-mas-x64.zip": "1173776270ac8b5838f148249b16011c53b1d45dcc6f560bca46d88f40a7f0ea",
|
|
79
|
+
"mksnapshot-v19.0.0-alpha.2-win32-arm64-x64.zip": "97a44b24b549a7076ab01f648b645d9ab279c14fd4e346ae1a25baaee490ad96",
|
|
80
|
+
"mksnapshot-v19.0.0-alpha.2-win32-ia32.zip": "05f398fc2b707b8dc93121dce310b7cb04fcb234b703a72c3c500eb8e13e101a",
|
|
81
|
+
"mksnapshot-v19.0.0-alpha.2-win32-x64.zip": "78e92c95597d383119c54a527b618561ac2b080a244efb5eb6a0c4da50dcee3c"
|
|
84
82
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 19.0.0-alpha.2
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -2424,10 +2424,14 @@ declare namespace Electron {
|
|
|
2424
2424
|
isMaximized(): boolean;
|
|
2425
2425
|
/**
|
|
2426
2426
|
* Whether menu bar automatically hides itself.
|
|
2427
|
+
*
|
|
2428
|
+
* @platform win32,linux
|
|
2427
2429
|
*/
|
|
2428
2430
|
isMenuBarAutoHide(): boolean;
|
|
2429
2431
|
/**
|
|
2430
2432
|
* Whether the menu bar is visible.
|
|
2433
|
+
*
|
|
2434
|
+
* @platform win32,linux
|
|
2431
2435
|
*/
|
|
2432
2436
|
isMenuBarVisible(): boolean;
|
|
2433
2437
|
/**
|
|
@@ -2490,6 +2494,8 @@ declare namespace Electron {
|
|
|
2490
2494
|
* Whether the window is visible on all workspaces.
|
|
2491
2495
|
*
|
|
2492
2496
|
* **Note:** This API always returns false on Windows.
|
|
2497
|
+
*
|
|
2498
|
+
* @platform darwin,linux
|
|
2493
2499
|
*/
|
|
2494
2500
|
isVisibleOnAllWorkspaces(): boolean;
|
|
2495
2501
|
/**
|
|
@@ -2638,6 +2644,8 @@ declare namespace Electron {
|
|
|
2638
2644
|
*
|
|
2639
2645
|
* If the menu bar is already visible, calling `setAutoHideMenuBar(true)` won't
|
|
2640
2646
|
* hide it immediately.
|
|
2647
|
+
*
|
|
2648
|
+
* @platform win32,linux
|
|
2641
2649
|
*/
|
|
2642
2650
|
setAutoHideMenuBar(hide: boolean): void;
|
|
2643
2651
|
/**
|
|
@@ -2978,6 +2986,8 @@ declare namespace Electron {
|
|
|
2978
2986
|
* Sets whether the window should be visible on all workspaces.
|
|
2979
2987
|
*
|
|
2980
2988
|
* **Note:** This API does nothing on Windows.
|
|
2989
|
+
*
|
|
2990
|
+
* @platform darwin,linux
|
|
2981
2991
|
*/
|
|
2982
2992
|
setVisibleOnAllWorkspaces(visible: boolean, options?: VisibleOnAllWorkspacesOptions): void;
|
|
2983
2993
|
/**
|
|
@@ -3043,6 +3053,8 @@ declare namespace Electron {
|
|
|
3043
3053
|
* by user.
|
|
3044
3054
|
*
|
|
3045
3055
|
* On Linux the setter is a no-op, although the getter returns `true`.
|
|
3056
|
+
*
|
|
3057
|
+
* @platform darwin,win32
|
|
3046
3058
|
*/
|
|
3047
3059
|
closable: boolean;
|
|
3048
3060
|
/**
|
|
@@ -3091,6 +3103,8 @@ declare namespace Electron {
|
|
|
3091
3103
|
* maximized by user.
|
|
3092
3104
|
*
|
|
3093
3105
|
* On Linux the setter is a no-op, although the getter returns `true`.
|
|
3106
|
+
*
|
|
3107
|
+
* @platform darwin,win32
|
|
3094
3108
|
*/
|
|
3095
3109
|
maximizable: boolean;
|
|
3096
3110
|
/**
|
|
@@ -3107,12 +3121,16 @@ declare namespace Electron {
|
|
|
3107
3121
|
* minimized by user.
|
|
3108
3122
|
*
|
|
3109
3123
|
* On Linux the setter is a no-op, although the getter returns `true`.
|
|
3124
|
+
*
|
|
3125
|
+
* @platform darwin,win32
|
|
3110
3126
|
*/
|
|
3111
3127
|
minimizable: boolean;
|
|
3112
3128
|
/**
|
|
3113
3129
|
* A `boolean` property that determines Whether the window can be moved by user.
|
|
3114
3130
|
*
|
|
3115
3131
|
* On Linux the setter is a no-op, although the getter returns `true`.
|
|
3132
|
+
*
|
|
3133
|
+
* @platform darwin,win32
|
|
3116
3134
|
*/
|
|
3117
3135
|
movable: boolean;
|
|
3118
3136
|
/**
|
|
@@ -3148,6 +3166,8 @@ declare namespace Electron {
|
|
|
3148
3166
|
* workspaces.
|
|
3149
3167
|
*
|
|
3150
3168
|
* **Note:** Always returns false on Windows.
|
|
3169
|
+
*
|
|
3170
|
+
* @platform darwin,linux
|
|
3151
3171
|
*/
|
|
3152
3172
|
visibleOnAllWorkspaces: boolean;
|
|
3153
3173
|
/**
|
|
@@ -7068,7 +7088,8 @@ declare namespace Electron {
|
|
|
7068
7088
|
* Whether encryption is available.
|
|
7069
7089
|
*
|
|
7070
7090
|
* On Linux, returns true if the secret key is available. On MacOS, returns true if
|
|
7071
|
-
* Keychain is available. On Windows, returns true
|
|
7091
|
+
* Keychain is available. On Windows, returns true once the app has emitted the
|
|
7092
|
+
* `ready` event.
|
|
7072
7093
|
*/
|
|
7073
7094
|
isEncryptionAvailable(): boolean;
|
|
7074
7095
|
}
|
|
@@ -8547,7 +8568,7 @@ declare namespace Electron {
|
|
|
8547
8568
|
*
|
|
8548
8569
|
* @platform darwin
|
|
8549
8570
|
*/
|
|
8550
|
-
setUserDefault(key: string, type:
|
|
8571
|
+
setUserDefault<Type extends keyof UserDefaultTypes>(key: string, type: Type, value: UserDefaultTypes[Type]): void;
|
|
8551
8572
|
/**
|
|
8552
8573
|
* The ID of this subscription
|
|
8553
8574
|
*
|
|
@@ -9652,7 +9673,8 @@ declare namespace Electron {
|
|
|
9652
9673
|
*/
|
|
9653
9674
|
static getAllWebContents(): WebContents[];
|
|
9654
9675
|
/**
|
|
9655
|
-
* The web contents that is focused in this application, otherwise returns
|
|
9676
|
+
* | null - The web contents that is focused in this application, otherwise returns
|
|
9677
|
+
* `null`.
|
|
9656
9678
|
*/
|
|
9657
9679
|
static getFocusedWebContents(): WebContents;
|
|
9658
9680
|
/**
|
|
@@ -10765,9 +10787,6 @@ declare namespace Electron {
|
|
|
10765
10787
|
* This event can be used to configure `webPreferences` for the `webContents` of a
|
|
10766
10788
|
* `<webview>` before it's loaded, and provides the ability to set settings that
|
|
10767
10789
|
* can't be set via `<webview>` attributes.
|
|
10768
|
-
*
|
|
10769
|
-
* **Note:** The specified `preload` script option will appear as `preloadURL` (not
|
|
10770
|
-
* `preload`) in the `webPreferences` object emitted with this event.
|
|
10771
10790
|
*/
|
|
10772
10791
|
on(event: 'will-attach-webview', listener: (event: Event,
|
|
10773
10792
|
/**
|
|
@@ -11706,6 +11725,19 @@ declare namespace Electron {
|
|
|
11706
11725
|
* specified.
|
|
11707
11726
|
*/
|
|
11708
11727
|
setIsolatedWorldInfo(worldId: number, info: Info): void;
|
|
11728
|
+
/**
|
|
11729
|
+
* Sets a provider for spell checking in input fields and text areas.
|
|
11730
|
+
*
|
|
11731
|
+
* If you want to use this method you must disable the builtin spellchecker when
|
|
11732
|
+
* you construct the window.
|
|
11733
|
+
*
|
|
11734
|
+
* The `provider` must be an object that has a `spellCheck` method that accepts an
|
|
11735
|
+
* array of individual words for spellchecking. The `spellCheck` function runs
|
|
11736
|
+
* asynchronously and calls the `callback` function with an array of misspelt words
|
|
11737
|
+
* when complete.
|
|
11738
|
+
*
|
|
11739
|
+
* An example of using node-spellchecker as provider:
|
|
11740
|
+
*/
|
|
11709
11741
|
setSpellCheckProvider(language: string, provider: Provider): void;
|
|
11710
11742
|
/**
|
|
11711
11743
|
* Sets the maximum and minimum pinch-to-zoom level.
|
|
@@ -11825,10 +11857,9 @@ declare namespace Electron {
|
|
|
11825
11857
|
reload(): boolean;
|
|
11826
11858
|
/**
|
|
11827
11859
|
* Send an asynchronous message to the renderer process via `channel`, along with
|
|
11828
|
-
* arguments. Arguments will be serialized with the
|
|
11829
|
-
*
|
|
11830
|
-
*
|
|
11831
|
-
* an exception.
|
|
11860
|
+
* arguments. Arguments will be serialized with the Structured Clone Algorithm,
|
|
11861
|
+
* just like `postMessage`, so prototype chains will not be included. Sending
|
|
11862
|
+
* Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.
|
|
11832
11863
|
*
|
|
11833
11864
|
* The renderer process can handle the message by listening to `channel` with the
|
|
11834
11865
|
* `ipcRenderer` module.
|
|
@@ -12610,9 +12641,6 @@ declare namespace Electron {
|
|
|
12610
12641
|
* When the guest page doesn't have node integration this script will still have
|
|
12611
12642
|
* access to all Node APIs, but global objects injected by Node will be deleted
|
|
12612
12643
|
* after this script has finished executing.
|
|
12613
|
-
*
|
|
12614
|
-
* **Note:** This option will appear as `preloadURL` (not `preload`) in the
|
|
12615
|
-
* `webPreferences` specified to the `will-attach-webview` event.
|
|
12616
12644
|
*/
|
|
12617
12645
|
preload: string;
|
|
12618
12646
|
/**
|
|
@@ -12866,7 +12894,7 @@ declare namespace Electron {
|
|
|
12866
12894
|
*/
|
|
12867
12895
|
useContentSize?: boolean;
|
|
12868
12896
|
/**
|
|
12869
|
-
* Show window in the center of the screen.
|
|
12897
|
+
* Show window in the center of the screen. Default is `false`.
|
|
12870
12898
|
*/
|
|
12871
12899
|
center?: boolean;
|
|
12872
12900
|
/**
|
|
@@ -12891,20 +12919,28 @@ declare namespace Electron {
|
|
|
12891
12919
|
resizable?: boolean;
|
|
12892
12920
|
/**
|
|
12893
12921
|
* Whether window is movable. This is not implemented on Linux. Default is `true`.
|
|
12922
|
+
*
|
|
12923
|
+
* @platform darwin,win32
|
|
12894
12924
|
*/
|
|
12895
12925
|
movable?: boolean;
|
|
12896
12926
|
/**
|
|
12897
12927
|
* Whether window is minimizable. This is not implemented on Linux. Default is
|
|
12898
12928
|
* `true`.
|
|
12929
|
+
*
|
|
12930
|
+
* @platform darwin,win32
|
|
12899
12931
|
*/
|
|
12900
12932
|
minimizable?: boolean;
|
|
12901
12933
|
/**
|
|
12902
12934
|
* Whether window is maximizable. This is not implemented on Linux. Default is
|
|
12903
12935
|
* `true`.
|
|
12936
|
+
*
|
|
12937
|
+
* @platform darwin,win32
|
|
12904
12938
|
*/
|
|
12905
12939
|
maximizable?: boolean;
|
|
12906
12940
|
/**
|
|
12907
12941
|
* Whether window is closable. This is not implemented on Linux. Default is `true`.
|
|
12942
|
+
*
|
|
12943
|
+
* @platform darwin,win32
|
|
12908
12944
|
*/
|
|
12909
12945
|
closable?: boolean;
|
|
12910
12946
|
/**
|
|
@@ -12932,10 +12968,14 @@ declare namespace Electron {
|
|
|
12932
12968
|
fullscreenable?: boolean;
|
|
12933
12969
|
/**
|
|
12934
12970
|
* Use pre-Lion fullscreen on macOS. Default is `false`.
|
|
12971
|
+
*
|
|
12972
|
+
* @platform darwin
|
|
12935
12973
|
*/
|
|
12936
12974
|
simpleFullscreen?: boolean;
|
|
12937
12975
|
/**
|
|
12938
12976
|
* Whether to show the window in taskbar. Default is `false`.
|
|
12977
|
+
*
|
|
12978
|
+
* @platform darwin,win32
|
|
12939
12979
|
*/
|
|
12940
12980
|
skipTaskbar?: boolean;
|
|
12941
12981
|
/**
|
|
@@ -12980,6 +13020,8 @@ declare namespace Electron {
|
|
|
12980
13020
|
/**
|
|
12981
13021
|
* Whether clicking an inactive window will also click through to the web contents.
|
|
12982
13022
|
* Default is `false` on macOS. This option is not configurable on other platforms.
|
|
13023
|
+
*
|
|
13024
|
+
* @platform darwin
|
|
12983
13025
|
*/
|
|
12984
13026
|
acceptFirstMouse?: boolean;
|
|
12985
13027
|
/**
|
|
@@ -12993,6 +13035,8 @@ declare namespace Electron {
|
|
|
12993
13035
|
/**
|
|
12994
13036
|
* Enable the window to be resized larger than screen. Only relevant for macOS, as
|
|
12995
13037
|
* other OSes allow larger-than-screen windows by default. Default is `false`.
|
|
13038
|
+
*
|
|
13039
|
+
* @platform darwin
|
|
12996
13040
|
*/
|
|
12997
13041
|
enableLargerThanScreen?: boolean;
|
|
12998
13042
|
/**
|
|
@@ -13009,6 +13053,8 @@ declare namespace Electron {
|
|
|
13009
13053
|
/**
|
|
13010
13054
|
* Set the initial opacity of the window, between 0.0 (fully transparent) and 1.0
|
|
13011
13055
|
* (fully opaque). This is only implemented on Windows and macOS.
|
|
13056
|
+
*
|
|
13057
|
+
* @platform darwin,win32
|
|
13012
13058
|
*/
|
|
13013
13059
|
opacity?: number;
|
|
13014
13060
|
/**
|
|
@@ -13028,6 +13074,8 @@ declare namespace Electron {
|
|
|
13028
13074
|
/**
|
|
13029
13075
|
* Specify how the material appearance should reflect window activity state on
|
|
13030
13076
|
* macOS. Must be used with the `vibrancy` property. Possible values are:
|
|
13077
|
+
*
|
|
13078
|
+
* @platform darwin
|
|
13031
13079
|
*/
|
|
13032
13080
|
visualEffectState?: ('followWindow' | 'active' | 'inactive');
|
|
13033
13081
|
/**
|
|
@@ -13038,11 +13086,15 @@ declare namespace Electron {
|
|
|
13038
13086
|
titleBarStyle?: ('default' | 'hidden' | 'hiddenInset' | 'customButtonsOnHover');
|
|
13039
13087
|
/**
|
|
13040
13088
|
* Set a custom position for the traffic light buttons in frameless windows.
|
|
13089
|
+
*
|
|
13090
|
+
* @platform darwin
|
|
13041
13091
|
*/
|
|
13042
13092
|
trafficLightPosition?: Point;
|
|
13043
13093
|
/**
|
|
13044
13094
|
* Whether frameless window should have rounded corners on macOS. Default is
|
|
13045
13095
|
* `true`.
|
|
13096
|
+
*
|
|
13097
|
+
* @platform darwin
|
|
13046
13098
|
*/
|
|
13047
13099
|
roundedCorners?: boolean;
|
|
13048
13100
|
/**
|
|
@@ -13050,6 +13102,7 @@ declare namespace Electron {
|
|
|
13050
13102
|
* titleBarStyle. Default is `false`.
|
|
13051
13103
|
*
|
|
13052
13104
|
* @deprecated
|
|
13105
|
+
* @platform darwin
|
|
13053
13106
|
*/
|
|
13054
13107
|
fullscreenWindowTitle?: boolean;
|
|
13055
13108
|
/**
|
|
@@ -13065,6 +13118,8 @@ declare namespace Electron {
|
|
|
13065
13118
|
* `fullscreen-ui`, `tooltip`, `content`, `under-window`, or `under-page`. Please
|
|
13066
13119
|
* note that `appearance-based`, `light`, `dark`, `medium-light`, and `ultra-dark`
|
|
13067
13120
|
* are deprecated and have been removed in macOS Catalina (10.15).
|
|
13121
|
+
*
|
|
13122
|
+
* @platform darwin
|
|
13068
13123
|
*/
|
|
13069
13124
|
vibrancy?: ('appearance-based' | 'light' | 'dark' | 'titlebar' | 'selection' | 'menu' | 'popover' | 'sidebar' | 'medium-light' | 'ultra-dark' | 'header' | 'sheet' | 'window' | 'hud' | 'fullscreen-ui' | 'tooltip' | 'content' | 'under-window' | 'under-page');
|
|
13070
13125
|
/**
|
|
@@ -13073,6 +13128,8 @@ declare namespace Electron {
|
|
|
13073
13128
|
* will grow to the preferred width of the web page when zoomed, `false` will cause
|
|
13074
13129
|
* it to zoom to the width of the screen. This will also affect the behavior when
|
|
13075
13130
|
* calling `maximize()` directly. Default is `false`.
|
|
13131
|
+
*
|
|
13132
|
+
* @platform darwin
|
|
13076
13133
|
*/
|
|
13077
13134
|
zoomToPageWidth?: boolean;
|
|
13078
13135
|
/**
|
|
@@ -13080,6 +13137,8 @@ declare namespace Electron {
|
|
|
13080
13137
|
* Windows with the same tabbing identifier will be grouped together. This also
|
|
13081
13138
|
* adds a native new tab button to your window's tab bar and allows your `app` and
|
|
13082
13139
|
* window to receive the `new-window-for-tab` event.
|
|
13140
|
+
*
|
|
13141
|
+
* @platform darwin
|
|
13083
13142
|
*/
|
|
13084
13143
|
tabbingIdentifier?: string;
|
|
13085
13144
|
/**
|
|
@@ -16230,6 +16289,8 @@ declare namespace Electron {
|
|
|
16230
16289
|
experimentalFeatures?: boolean;
|
|
16231
16290
|
/**
|
|
16232
16291
|
* Enables scroll bounce (rubber banding) effect on macOS. Default is `false`.
|
|
16292
|
+
*
|
|
16293
|
+
* @platform darwin
|
|
16233
16294
|
*/
|
|
16234
16295
|
scrollBounce?: boolean;
|
|
16235
16296
|
/**
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"postinstall": "node install.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@electron/get": "^1.
|
|
11
|
+
"@electron/get": "^1.14.1",
|
|
12
12
|
"@types/node": "^16.11.26",
|
|
13
13
|
"extract-zip": "^1.0.3"
|
|
14
14
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "19.0.0-alpha.2",
|
|
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",
|