electron 18.0.4 → 19.0.0-alpha.3
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 +74 -14
- 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.4-win32-ia32.zip": "d36a7c0822a09530730f4809ad23c805839993c46395d158549af47ed0b3a27c",
|
|
83
|
-
"mksnapshot-v18.0.4-win32-x64.zip": "f4a522dd161f3791769d99d7efe89257c30b911aaebe9bd258f351afcb0848c3"
|
|
2
|
+
"chromedriver-v19.0.0-alpha.3-darwin-arm64.zip": "62fca2dbcae43bd3c94bc1c76394966dcc6454ea547eb37f1223d473c897099c",
|
|
3
|
+
"chromedriver-v19.0.0-alpha.3-darwin-x64.zip": "3c5c499c1e4376a8fc163fdb1f25e3eb797811209531eb73627d45ef53fae251",
|
|
4
|
+
"chromedriver-v19.0.0-alpha.3-linux-arm64.zip": "59d26188917c34989edc133363e55067092bb9317b15c00394ea7adc61a50727",
|
|
5
|
+
"chromedriver-v19.0.0-alpha.3-linux-armv7l.zip": "cb029f556005b626d9c412012cc5cb1ad0e5f5d6a58a85827e160b8ce0a913ca",
|
|
6
|
+
"chromedriver-v19.0.0-alpha.3-linux-ia32.zip": "e87d2107ebb7c8a14dd864e8c9baf5903a67dd554130c821d2da7591342dffd6",
|
|
7
|
+
"chromedriver-v19.0.0-alpha.3-linux-x64.zip": "d0fa9f9bfa3d0814badc90d7ff77192621695134daf2d6e3f740d9260b306cba",
|
|
8
|
+
"chromedriver-v19.0.0-alpha.3-mas-arm64.zip": "6286d4084fa8f1a89383a8dec20ff3a45d98fff9af291dcc8d2eac9604a15d27",
|
|
9
|
+
"chromedriver-v19.0.0-alpha.3-mas-x64.zip": "01765b1eaae64cd44179d2a8bd9b1c40b31b6824dc710c86660d55573aef0f87",
|
|
10
|
+
"chromedriver-v19.0.0-alpha.3-win32-arm64.zip": "6c84970a1b7a2df712fb5f958e2e63004ff8ff6dc84837af598bd1561f6fc5dc",
|
|
11
|
+
"chromedriver-v19.0.0-alpha.3-win32-ia32.zip": "59153eb6fb07fccb921fe429763ac50d523f0c78225737c8cd7b9f69c9a800e8",
|
|
12
|
+
"chromedriver-v19.0.0-alpha.3-win32-x64.zip": "1c34fb28c3e4c2bcd4954d51881da94273be0ba7cf739203f925e42f1cad0b0b",
|
|
13
|
+
"electron-api.json": "558927a05e822edf391874fc5cee81929861cef5ac04e1724544de519b5055d7",
|
|
14
|
+
"electron-v19.0.0-alpha.3-darwin-arm64-dsym-snapshot.zip": "7c42fcdfa9c0b1eb3d6661a37f1ec12cf2fc61c6642feb32551eda465ddbd25e",
|
|
15
|
+
"electron-v19.0.0-alpha.3-darwin-arm64-dsym.zip": "149fb0c6eb32c628713a719f992d408b1f1fc63de1edb41f72f7925d865bc5af",
|
|
16
|
+
"electron-v19.0.0-alpha.3-darwin-arm64-symbols.zip": "fe6bfc4046ba7cd3994080110c1e9cf2b1252b7ba59409e048dc80f30f88e76c",
|
|
17
|
+
"electron-v19.0.0-alpha.3-darwin-arm64.zip": "b2cfe4c93b228d3e5633ec7ea695a0eafde1cffcc88f3fe7ca45882ca27aa503",
|
|
18
|
+
"electron-v19.0.0-alpha.3-darwin-x64-dsym-snapshot.zip": "28762fc098aad5cecbd41fdef8ce5721a55f3c00c770f493b8936e3dabeb1dec",
|
|
19
|
+
"electron-v19.0.0-alpha.3-darwin-x64-dsym.zip": "fdf6e718b53203cb55f80b895215c5af95e54aad40223f9e584aa65b60931a14",
|
|
20
|
+
"electron-v19.0.0-alpha.3-darwin-x64-symbols.zip": "2d368e57ebcca0c5d37e6161edadf5ef9722fe7305c0e156b706327513e5e2ee",
|
|
21
|
+
"electron-v19.0.0-alpha.3-darwin-x64.zip": "22c860048f1eb5ba47d2210b7b0358120b99eeacfb5f8404ff41f1fbc7778cb5",
|
|
22
|
+
"electron-v19.0.0-alpha.3-linux-arm64-debug.zip": "5bbc547fd15b9f19b8b3f159a2081d815b06ca7d48aa496d3e05540aaafae569",
|
|
23
|
+
"electron-v19.0.0-alpha.3-linux-arm64-symbols.zip": "55b31156001c4fb56deeb9ade5aba59e691ef603150ff6759c9df0c30d31df2d",
|
|
24
|
+
"electron-v19.0.0-alpha.3-linux-arm64.zip": "11bc9566ca0c40142083b6c43014ae22cc59e939c9dfcc312a67621415810e9e",
|
|
25
|
+
"electron-v19.0.0-alpha.3-linux-armv7l-debug.zip": "5bbc547fd15b9f19b8b3f159a2081d815b06ca7d48aa496d3e05540aaafae569",
|
|
26
|
+
"electron-v19.0.0-alpha.3-linux-armv7l-symbols.zip": "66616db0d0baa97a5a67a7cb97c5ad616ddb82d0ff9c1c98bb8c7d402413693d",
|
|
27
|
+
"electron-v19.0.0-alpha.3-linux-armv7l.zip": "e8197a7b22cef8e373414a2a048ab457a5590b520c6a4d0a830e67e962feb459",
|
|
28
|
+
"electron-v19.0.0-alpha.3-linux-ia32-debug.zip": "5bbc547fd15b9f19b8b3f159a2081d815b06ca7d48aa496d3e05540aaafae569",
|
|
29
|
+
"electron-v19.0.0-alpha.3-linux-ia32-symbols.zip": "2c11ac971125437e8b87012fbb834fbce8dfa28e14797986d71650ec0fc60bf7",
|
|
30
|
+
"electron-v19.0.0-alpha.3-linux-ia32.zip": "45943f3ae98b35cd0f0e7ca1ec6b7a03ab43270c8e1f77cf343aadc2795b5b93",
|
|
31
|
+
"electron-v19.0.0-alpha.3-linux-x64-debug.zip": "d29f527f058266e70837f19cda0d3680c1dfebbbfc48baec8adf385d04472a0c",
|
|
32
|
+
"electron-v19.0.0-alpha.3-linux-x64-symbols.zip": "e36e96ddd25f6412ef48029b9b1c7cafcbcbad214aad8fa738bb3ce50ce152c8",
|
|
33
|
+
"electron-v19.0.0-alpha.3-linux-x64.zip": "b6ff0ff82c3f3660a879e1818b8a4334cbd163ee12e7e3e3fcb59ab939720885",
|
|
34
|
+
"electron-v19.0.0-alpha.3-mas-arm64-dsym-snapshot.zip": "7c42fcdfa9c0b1eb3d6661a37f1ec12cf2fc61c6642feb32551eda465ddbd25e",
|
|
35
|
+
"electron-v19.0.0-alpha.3-mas-arm64-dsym.zip": "99e10dca7fe5240fbae3d80cf6fb0fa779029c67875ffc95a96b8171d54cc660",
|
|
36
|
+
"electron-v19.0.0-alpha.3-mas-arm64-symbols.zip": "aa17df6490e87f99c01bb1a2e9d6de9ad4812140d15801b5623a58e34df8b4be",
|
|
37
|
+
"electron-v19.0.0-alpha.3-mas-arm64.zip": "394ea0313d319b99b8ff41fe1632cf0c399e59f72bbbe1148a838fbcd1b50576",
|
|
38
|
+
"electron-v19.0.0-alpha.3-mas-x64-dsym-snapshot.zip": "44377cc069a9487b76ab544d171cb1d72c736ae18c9d153eb663445b8a91d926",
|
|
39
|
+
"electron-v19.0.0-alpha.3-mas-x64-dsym.zip": "e32c83e6f1cb7f0ef7d60fc72794b0e8e3259f992b8f6d9df1878e21157ef603",
|
|
40
|
+
"electron-v19.0.0-alpha.3-mas-x64-symbols.zip": "70a3c0fdf65909c811966b8d4bb640c25632b9c4684175805c3c117ec47f6c0b",
|
|
41
|
+
"electron-v19.0.0-alpha.3-mas-x64.zip": "2ecb1697d75b5f6ad20254fedd6543b2aa7b6d73fee4eabea1f741f471b95be2",
|
|
42
|
+
"electron-v19.0.0-alpha.3-win32-arm64-pdb.zip": "64f46fab072d2419ab9f1019e24688181b7d82203a4f1d1e6265ad59e1252852",
|
|
43
|
+
"electron-v19.0.0-alpha.3-win32-arm64-symbols.zip": "34b32d37026003fc9e86f7c68ac795fbc3ceca0e4222c17a934756e8141c12aa",
|
|
44
|
+
"electron-v19.0.0-alpha.3-win32-arm64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
45
|
+
"electron-v19.0.0-alpha.3-win32-arm64.zip": "a7b947905b7fe0e5f51c6af15e0076550ddcf3f72b4a59937dd9abb969338b1b",
|
|
46
|
+
"electron-v19.0.0-alpha.3-win32-ia32-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
47
|
+
"electron-v19.0.0-alpha.3-win32-ia32.zip": "44bde21ae6e88e45c6aa07dbbee033bfb8f6de6433a13a3ec52139ddd22df7b7",
|
|
48
|
+
"electron-v19.0.0-alpha.3-win32-x64-pdb.zip": "74775985de833839bff6193dc9402bd2c90232a4b4dda84654520ad7edb1b757",
|
|
49
|
+
"electron-v19.0.0-alpha.3-win32-x64-symbols.zip": "bcef5d5bee4ced4305b9fe346a905b5be41105bfd6d04c97dfb21cecd81b9774",
|
|
50
|
+
"electron-v19.0.0-alpha.3-win32-x64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
51
|
+
"electron-v19.0.0-alpha.3-win32-x64.zip": "69ef7314f94295f9f23354ea9620e2ff22430d751e429346892c5ab57e15c5c1",
|
|
52
|
+
"electron.d.ts": "4b19d893f6cf2fc1f55a514477a299ed5d5667845ec364b78fa1f2d6b67eebec",
|
|
53
|
+
"ffmpeg-v19.0.0-alpha.3-darwin-arm64.zip": "0dd0c9333a3569677baebba1c4a540b89302c849c8aa4c893b4bbdb3e18277d5",
|
|
54
|
+
"ffmpeg-v19.0.0-alpha.3-darwin-x64.zip": "4981939fd0a9d872057f088db0ee2217aabed4ddf3d16ff904f867a58160d376",
|
|
55
|
+
"ffmpeg-v19.0.0-alpha.3-linux-arm64.zip": "29be30c917cc5423d0905ac8a1d9b8bd51f5c67016acdf53354703f14d1234b0",
|
|
56
|
+
"ffmpeg-v19.0.0-alpha.3-linux-armv7l.zip": "6111b1319e561aa6f056373869bec6a571a8abd4df034bb6ff739aac450fe3e2",
|
|
57
|
+
"ffmpeg-v19.0.0-alpha.3-linux-ia32.zip": "5eb806abcc46f0de84a3b6b3163d8b672fc16f0c2ba5da48cd6edbb15fb00af0",
|
|
58
|
+
"ffmpeg-v19.0.0-alpha.3-linux-x64.zip": "d7209d8d31b171580326c08f8e5afe66607f40a361a2224e6083498e64549f2d",
|
|
59
|
+
"ffmpeg-v19.0.0-alpha.3-mas-arm64.zip": "97ba89f0c813b30b473960b8b0b83d0361baec41001dfb1896742ead94883d15",
|
|
60
|
+
"ffmpeg-v19.0.0-alpha.3-mas-x64.zip": "59339a9ebdea65110b2d69db0a98997483cb94c8f2d54fd7037a0a1f158811bc",
|
|
61
|
+
"ffmpeg-v19.0.0-alpha.3-win32-arm64.zip": "65a82e7685bbcb8980e801cee0f4dc0702985358531b626d04a8bc17f80a04e4",
|
|
62
|
+
"ffmpeg-v19.0.0-alpha.3-win32-ia32.zip": "c7b2e8ab488c1085bee75d9d505656619890420e6f8fd88937a953e38674c41d",
|
|
63
|
+
"ffmpeg-v19.0.0-alpha.3-win32-x64.zip": "904f173be6b7142cb3f6c716422c7d2ee20499760ba2e0885d9fda475aea1935",
|
|
64
|
+
"hunspell_dictionaries.zip": "1f9fe2f4b463cf163b67ac8f49ef0c7d48ed6cdb2295512f31dd00df1d0b9aec",
|
|
65
|
+
"libcxx-objects-v19.0.0-alpha.3-linux-arm64.zip": "146afd4ed75491ff348249ff290389cb147d02972d71304bd4f985129e35f20a",
|
|
66
|
+
"libcxx-objects-v19.0.0-alpha.3-linux-armv7l.zip": "9770e20fabacf79a6d946a8017c411f1647d03089b5f79f33c6471120e808e20",
|
|
67
|
+
"libcxx-objects-v19.0.0-alpha.3-linux-ia32.zip": "b188b65cbb0bdd4895d6fff3bc9a3ae2387acfdd5464fc06f04aa658b7cd4531",
|
|
68
|
+
"libcxx-objects-v19.0.0-alpha.3-linux-x64.zip": "3e7a8dd3676aba618dc326110188b99f8d85c006773803a0ab8ad96300ce734e",
|
|
69
|
+
"libcxx_headers.zip": "27ef0144b506771d1ce41954a505032fcd0edeabb599b23db6a5b1a3bbfb9143",
|
|
70
|
+
"libcxxabi_headers.zip": "c4ac38ac54e5c1130a4f145c730c083d1f4c7367aae080b1ebe15124be8351f8",
|
|
71
|
+
"mksnapshot-v19.0.0-alpha.3-darwin-arm64.zip": "479d069cdb8b99f288a8cdc326014381c9586df43cccfb66dffb43abea1f9670",
|
|
72
|
+
"mksnapshot-v19.0.0-alpha.3-darwin-x64.zip": "a3184dae681c33c889ea5545c09f547bb4f08d6f8f9583a6ea0a5904c4f3647c",
|
|
73
|
+
"mksnapshot-v19.0.0-alpha.3-linux-arm64-x64.zip": "558ed87ce6f1a2af4358648ab763e212ed133614c426ee8584a14bafb1779b91",
|
|
74
|
+
"mksnapshot-v19.0.0-alpha.3-linux-armv7l-x64.zip": "641c7d165c49ee4a9ccfc38f74c979f0116da614d8af3a6c7341d9d93e7d0af8",
|
|
75
|
+
"mksnapshot-v19.0.0-alpha.3-linux-ia32.zip": "30b524fdd1e62d9c26937f977252731f32bc8fddef68a34a035c0be55538ca28",
|
|
76
|
+
"mksnapshot-v19.0.0-alpha.3-linux-x64.zip": "c9035240d8a6fa4942c000f436aee7067b1fcd774da420eda4adf4ff80b9f016",
|
|
77
|
+
"mksnapshot-v19.0.0-alpha.3-mas-arm64.zip": "853e0d8cd1d812f7b8f4cf92a4478b7371a78fefcc51bfec349b8066e8d67f6f",
|
|
78
|
+
"mksnapshot-v19.0.0-alpha.3-mas-x64.zip": "96153a93e37179c65eda15c0d5789cd5d3ec73495304ef0fdcfda241c01e53ab",
|
|
79
|
+
"mksnapshot-v19.0.0-alpha.3-win32-arm64-x64.zip": "7a617a84938ad8da5e8b082ee82fdd0405f59e7d88eadeef3cc4978437637481",
|
|
80
|
+
"mksnapshot-v19.0.0-alpha.3-win32-ia32.zip": "bc43d5549b38c3c038d8b3f4cb5ee36bcefc4a6924c8ffd878490750595d660b",
|
|
81
|
+
"mksnapshot-v19.0.0-alpha.3-win32-x64.zip": "f4a4d6b18c8123f983acdae9cb2676e99fa9514678d0a71736b341541dfabbf3"
|
|
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.3
|
|
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
|
/**
|
|
@@ -8548,7 +8568,7 @@ declare namespace Electron {
|
|
|
8548
8568
|
*
|
|
8549
8569
|
* @platform darwin
|
|
8550
8570
|
*/
|
|
8551
|
-
setUserDefault(key: string, type:
|
|
8571
|
+
setUserDefault<Type extends keyof UserDefaultTypes>(key: string, type: Type, value: UserDefaultTypes[Type]): void;
|
|
8552
8572
|
/**
|
|
8553
8573
|
* The ID of this subscription
|
|
8554
8574
|
*
|
|
@@ -9653,7 +9673,8 @@ declare namespace Electron {
|
|
|
9653
9673
|
*/
|
|
9654
9674
|
static getAllWebContents(): WebContents[];
|
|
9655
9675
|
/**
|
|
9656
|
-
* 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`.
|
|
9657
9678
|
*/
|
|
9658
9679
|
static getFocusedWebContents(): WebContents;
|
|
9659
9680
|
/**
|
|
@@ -10766,9 +10787,6 @@ declare namespace Electron {
|
|
|
10766
10787
|
* This event can be used to configure `webPreferences` for the `webContents` of a
|
|
10767
10788
|
* `<webview>` before it's loaded, and provides the ability to set settings that
|
|
10768
10789
|
* can't be set via `<webview>` attributes.
|
|
10769
|
-
*
|
|
10770
|
-
* **Note:** The specified `preload` script option will appear as `preloadURL` (not
|
|
10771
|
-
* `preload`) in the `webPreferences` object emitted with this event.
|
|
10772
10790
|
*/
|
|
10773
10791
|
on(event: 'will-attach-webview', listener: (event: Event,
|
|
10774
10792
|
/**
|
|
@@ -11707,6 +11725,19 @@ declare namespace Electron {
|
|
|
11707
11725
|
* specified.
|
|
11708
11726
|
*/
|
|
11709
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
|
+
*/
|
|
11710
11741
|
setSpellCheckProvider(language: string, provider: Provider): void;
|
|
11711
11742
|
/**
|
|
11712
11743
|
* Sets the maximum and minimum pinch-to-zoom level.
|
|
@@ -11826,10 +11857,9 @@ declare namespace Electron {
|
|
|
11826
11857
|
reload(): boolean;
|
|
11827
11858
|
/**
|
|
11828
11859
|
* Send an asynchronous message to the renderer process via `channel`, along with
|
|
11829
|
-
* arguments. Arguments will be serialized with the
|
|
11830
|
-
*
|
|
11831
|
-
*
|
|
11832
|
-
* 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.
|
|
11833
11863
|
*
|
|
11834
11864
|
* The renderer process can handle the message by listening to `channel` with the
|
|
11835
11865
|
* `ipcRenderer` module.
|
|
@@ -12611,9 +12641,6 @@ declare namespace Electron {
|
|
|
12611
12641
|
* When the guest page doesn't have node integration this script will still have
|
|
12612
12642
|
* access to all Node APIs, but global objects injected by Node will be deleted
|
|
12613
12643
|
* after this script has finished executing.
|
|
12614
|
-
*
|
|
12615
|
-
* **Note:** This option will appear as `preloadURL` (not `preload`) in the
|
|
12616
|
-
* `webPreferences` specified to the `will-attach-webview` event.
|
|
12617
12644
|
*/
|
|
12618
12645
|
preload: string;
|
|
12619
12646
|
/**
|
|
@@ -12867,7 +12894,7 @@ declare namespace Electron {
|
|
|
12867
12894
|
*/
|
|
12868
12895
|
useContentSize?: boolean;
|
|
12869
12896
|
/**
|
|
12870
|
-
* Show window in the center of the screen.
|
|
12897
|
+
* Show window in the center of the screen. Default is `false`.
|
|
12871
12898
|
*/
|
|
12872
12899
|
center?: boolean;
|
|
12873
12900
|
/**
|
|
@@ -12892,20 +12919,28 @@ declare namespace Electron {
|
|
|
12892
12919
|
resizable?: boolean;
|
|
12893
12920
|
/**
|
|
12894
12921
|
* Whether window is movable. This is not implemented on Linux. Default is `true`.
|
|
12922
|
+
*
|
|
12923
|
+
* @platform darwin,win32
|
|
12895
12924
|
*/
|
|
12896
12925
|
movable?: boolean;
|
|
12897
12926
|
/**
|
|
12898
12927
|
* Whether window is minimizable. This is not implemented on Linux. Default is
|
|
12899
12928
|
* `true`.
|
|
12929
|
+
*
|
|
12930
|
+
* @platform darwin,win32
|
|
12900
12931
|
*/
|
|
12901
12932
|
minimizable?: boolean;
|
|
12902
12933
|
/**
|
|
12903
12934
|
* Whether window is maximizable. This is not implemented on Linux. Default is
|
|
12904
12935
|
* `true`.
|
|
12936
|
+
*
|
|
12937
|
+
* @platform darwin,win32
|
|
12905
12938
|
*/
|
|
12906
12939
|
maximizable?: boolean;
|
|
12907
12940
|
/**
|
|
12908
12941
|
* Whether window is closable. This is not implemented on Linux. Default is `true`.
|
|
12942
|
+
*
|
|
12943
|
+
* @platform darwin,win32
|
|
12909
12944
|
*/
|
|
12910
12945
|
closable?: boolean;
|
|
12911
12946
|
/**
|
|
@@ -12933,10 +12968,14 @@ declare namespace Electron {
|
|
|
12933
12968
|
fullscreenable?: boolean;
|
|
12934
12969
|
/**
|
|
12935
12970
|
* Use pre-Lion fullscreen on macOS. Default is `false`.
|
|
12971
|
+
*
|
|
12972
|
+
* @platform darwin
|
|
12936
12973
|
*/
|
|
12937
12974
|
simpleFullscreen?: boolean;
|
|
12938
12975
|
/**
|
|
12939
12976
|
* Whether to show the window in taskbar. Default is `false`.
|
|
12977
|
+
*
|
|
12978
|
+
* @platform darwin,win32
|
|
12940
12979
|
*/
|
|
12941
12980
|
skipTaskbar?: boolean;
|
|
12942
12981
|
/**
|
|
@@ -12981,6 +13020,8 @@ declare namespace Electron {
|
|
|
12981
13020
|
/**
|
|
12982
13021
|
* Whether clicking an inactive window will also click through to the web contents.
|
|
12983
13022
|
* Default is `false` on macOS. This option is not configurable on other platforms.
|
|
13023
|
+
*
|
|
13024
|
+
* @platform darwin
|
|
12984
13025
|
*/
|
|
12985
13026
|
acceptFirstMouse?: boolean;
|
|
12986
13027
|
/**
|
|
@@ -12994,6 +13035,8 @@ declare namespace Electron {
|
|
|
12994
13035
|
/**
|
|
12995
13036
|
* Enable the window to be resized larger than screen. Only relevant for macOS, as
|
|
12996
13037
|
* other OSes allow larger-than-screen windows by default. Default is `false`.
|
|
13038
|
+
*
|
|
13039
|
+
* @platform darwin
|
|
12997
13040
|
*/
|
|
12998
13041
|
enableLargerThanScreen?: boolean;
|
|
12999
13042
|
/**
|
|
@@ -13010,6 +13053,8 @@ declare namespace Electron {
|
|
|
13010
13053
|
/**
|
|
13011
13054
|
* Set the initial opacity of the window, between 0.0 (fully transparent) and 1.0
|
|
13012
13055
|
* (fully opaque). This is only implemented on Windows and macOS.
|
|
13056
|
+
*
|
|
13057
|
+
* @platform darwin,win32
|
|
13013
13058
|
*/
|
|
13014
13059
|
opacity?: number;
|
|
13015
13060
|
/**
|
|
@@ -13029,6 +13074,8 @@ declare namespace Electron {
|
|
|
13029
13074
|
/**
|
|
13030
13075
|
* Specify how the material appearance should reflect window activity state on
|
|
13031
13076
|
* macOS. Must be used with the `vibrancy` property. Possible values are:
|
|
13077
|
+
*
|
|
13078
|
+
* @platform darwin
|
|
13032
13079
|
*/
|
|
13033
13080
|
visualEffectState?: ('followWindow' | 'active' | 'inactive');
|
|
13034
13081
|
/**
|
|
@@ -13039,11 +13086,15 @@ declare namespace Electron {
|
|
|
13039
13086
|
titleBarStyle?: ('default' | 'hidden' | 'hiddenInset' | 'customButtonsOnHover');
|
|
13040
13087
|
/**
|
|
13041
13088
|
* Set a custom position for the traffic light buttons in frameless windows.
|
|
13089
|
+
*
|
|
13090
|
+
* @platform darwin
|
|
13042
13091
|
*/
|
|
13043
13092
|
trafficLightPosition?: Point;
|
|
13044
13093
|
/**
|
|
13045
13094
|
* Whether frameless window should have rounded corners on macOS. Default is
|
|
13046
13095
|
* `true`.
|
|
13096
|
+
*
|
|
13097
|
+
* @platform darwin
|
|
13047
13098
|
*/
|
|
13048
13099
|
roundedCorners?: boolean;
|
|
13049
13100
|
/**
|
|
@@ -13051,6 +13102,7 @@ declare namespace Electron {
|
|
|
13051
13102
|
* titleBarStyle. Default is `false`.
|
|
13052
13103
|
*
|
|
13053
13104
|
* @deprecated
|
|
13105
|
+
* @platform darwin
|
|
13054
13106
|
*/
|
|
13055
13107
|
fullscreenWindowTitle?: boolean;
|
|
13056
13108
|
/**
|
|
@@ -13066,6 +13118,8 @@ declare namespace Electron {
|
|
|
13066
13118
|
* `fullscreen-ui`, `tooltip`, `content`, `under-window`, or `under-page`. Please
|
|
13067
13119
|
* note that `appearance-based`, `light`, `dark`, `medium-light`, and `ultra-dark`
|
|
13068
13120
|
* are deprecated and have been removed in macOS Catalina (10.15).
|
|
13121
|
+
*
|
|
13122
|
+
* @platform darwin
|
|
13069
13123
|
*/
|
|
13070
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');
|
|
13071
13125
|
/**
|
|
@@ -13074,6 +13128,8 @@ declare namespace Electron {
|
|
|
13074
13128
|
* will grow to the preferred width of the web page when zoomed, `false` will cause
|
|
13075
13129
|
* it to zoom to the width of the screen. This will also affect the behavior when
|
|
13076
13130
|
* calling `maximize()` directly. Default is `false`.
|
|
13131
|
+
*
|
|
13132
|
+
* @platform darwin
|
|
13077
13133
|
*/
|
|
13078
13134
|
zoomToPageWidth?: boolean;
|
|
13079
13135
|
/**
|
|
@@ -13081,6 +13137,8 @@ declare namespace Electron {
|
|
|
13081
13137
|
* Windows with the same tabbing identifier will be grouped together. This also
|
|
13082
13138
|
* adds a native new tab button to your window's tab bar and allows your `app` and
|
|
13083
13139
|
* window to receive the `new-window-for-tab` event.
|
|
13140
|
+
*
|
|
13141
|
+
* @platform darwin
|
|
13084
13142
|
*/
|
|
13085
13143
|
tabbingIdentifier?: string;
|
|
13086
13144
|
/**
|
|
@@ -16231,6 +16289,8 @@ declare namespace Electron {
|
|
|
16231
16289
|
experimentalFeatures?: boolean;
|
|
16232
16290
|
/**
|
|
16233
16291
|
* Enables scroll bounce (rubber banding) effect on macOS. Default is `false`.
|
|
16292
|
+
*
|
|
16293
|
+
* @platform darwin
|
|
16234
16294
|
*/
|
|
16235
16295
|
scrollBounce?: boolean;
|
|
16236
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.3",
|
|
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",
|