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 CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Electron Discord Invite](https://img.shields.io/discord/745037351163527189?color=%237289DA&label=chat&logo=discord&logoColor=white)](https://discord.gg/electronjs)
6
6
 
7
7
  :memo: Available Translations: πŸ‡¨πŸ‡³ πŸ‡§πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡―πŸ‡΅ πŸ‡·πŸ‡Ί πŸ‡«πŸ‡· πŸ‡ΊπŸ‡Έ πŸ‡©πŸ‡ͺ.
8
- View these docs in other languages at [electron/i18n](https://github.com/electron/i18n/tree/master/content/).
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-v21.0.0-darwin-arm64.zip": "93c40f8677021603431b794ef19338c21082c8dbffea739d8ddd1d7704e98c8d",
3
- "chromedriver-v21.0.0-darwin-x64.zip": "bbfdb787904dc01daea5e54d06c975c7033b704f46ddd02094710c79411810eb",
4
- "chromedriver-v21.0.0-linux-arm64.zip": "2c16890abda6b9cb142c649c4f289a51c3a4b4a068585425d6936b25ff8efb7c",
5
- "chromedriver-v21.0.0-linux-armv7l.zip": "16e40538b4c01eed37eebf526c363ad47274fc9e492701657d6f36889f7aed61",
6
- "chromedriver-v21.0.0-linux-x64.zip": "e87ec25972d728cc2a50e56d0558069b5a6deca78596c4c8940e43e22efffe17",
7
- "chromedriver-v21.0.0-mas-arm64.zip": "fb148c70aab5e045ff5099ec9e29a1887f5bc16e5f00c0bac07fd41ebf645222",
8
- "chromedriver-v21.0.0-mas-x64.zip": "f462f0bb7e768af950548bbf102d295ced01ddcfd101ea879d84136aaa17d1be",
9
- "chromedriver-v21.0.0-win32-arm64.zip": "3b17ac27027c77f4ce570a4bc263258e12333dd503e434fe63aa1ccf907e5bff",
10
- "chromedriver-v21.0.0-win32-ia32.zip": "66d6c8c2efc91225059714e51f0b338a4eb0e073d3995ac4dcd08e16e1dfd8ef",
11
- "chromedriver-v21.0.0-win32-x64.zip": "e47c7844722767f495d6244d6348ac38d48bbe918c149f44364316af82364eed",
12
- "electron-api.json": "da02db1bbab911bd611b74a63a30818a54a26a757167f709e8688450e8b799ca",
13
- "electron-v21.0.0-darwin-arm64-dsym-snapshot.zip": "6e7ede1336323286f0a65413489686d59ba223375109c01b2cd634a0b2c995ef",
14
- "electron-v21.0.0-darwin-arm64-dsym.zip": "92fe9d3b184cabd230713ced2ea0aa2ac4a451cc0959843e1fbad860cd662fd2",
15
- "electron-v21.0.0-darwin-arm64-symbols.zip": "aaa06a5f7e5d875f5b6c4180dea1bf2fc9dc6e0c4e723dd56c89579588d84c92",
16
- "electron-v21.0.0-darwin-arm64.zip": "116482996e6c1f971b2b77d014c78c6620f3fadf45bdbe263cef4d4a224da371",
17
- "electron-v21.0.0-darwin-x64-dsym-snapshot.zip": "99eeb254a350fdbc982c19e75ff5eb5d5f5dde9d8738e98a9455753ee094c9c2",
18
- "electron-v21.0.0-darwin-x64-dsym.zip": "e40fd31a1ff052270d9bf6054fef8a682aadeaf011bf6b36d4cc975f3d5e275e",
19
- "electron-v21.0.0-darwin-x64-symbols.zip": "a17dc00ef14ab6ef3d77c8bbed3fc755595cbd635f6c9e96e3a5f86dfa063ab3",
20
- "electron-v21.0.0-darwin-x64.zip": "fba38ad26ec35f589feeef638144031f815efa3eb16ebc0c8fde3e072cef3034",
21
- "electron-v21.0.0-linux-arm64-debug.zip": "181dac0d99a82464c295f9b5fe1a978fddd3575425f4f32be4604065d4830f9c",
22
- "electron-v21.0.0-linux-arm64-symbols.zip": "641a2715635cb0dd81168ac250e577e3a64cacc4b6816d6ccab96f6acbbec1de",
23
- "electron-v21.0.0-linux-arm64.zip": "4a109b6e02aadd9a00ea57a2d100bef042739988a8424a04d92299a3871a1ae4",
24
- "electron-v21.0.0-linux-armv7l-debug.zip": "181dac0d99a82464c295f9b5fe1a978fddd3575425f4f32be4604065d4830f9c",
25
- "electron-v21.0.0-linux-armv7l-symbols.zip": "9c61b56dbc8cbc19e42692e21d2f01018c7879d5fb40508e3c96b0f62d60f69e",
26
- "electron-v21.0.0-linux-armv7l.zip": "1e53038094a5c32faba15419d88d9956f6b2d3638568006e0421b949e21a7967",
27
- "electron-v21.0.0-linux-x64-debug.zip": "de15874907d7462e00c3c5d0cfedf50926d7df183955040df947a6069149138a",
28
- "electron-v21.0.0-linux-x64-symbols.zip": "7d2a48482c936848dd5dceb900819ba898343bdb996da20f1bc41dcffa9b30a3",
29
- "electron-v21.0.0-linux-x64.zip": "c955bdfd6690af2c4475b0da7299a446e99cb0eaba9e026eb9442eb3ff5be36d",
30
- "electron-v21.0.0-mas-arm64-dsym-snapshot.zip": "6e7ede1336323286f0a65413489686d59ba223375109c01b2cd634a0b2c995ef",
31
- "electron-v21.0.0-mas-arm64-dsym.zip": "ace21709f178d662c4dad31ee0d450f90c4bec49de6c69fdf0a379d0df664bf7",
32
- "electron-v21.0.0-mas-arm64-symbols.zip": "3548a62fc59886114ae0854bc9b8e1b620ba81f966af359939a243b8228f2371",
33
- "electron-v21.0.0-mas-arm64.zip": "a706b7f59f7efdffe07f7ce7d7523ea13038ebf823c9be2b88160b32360b6b3c",
34
- "electron-v21.0.0-mas-x64-dsym-snapshot.zip": "e7c4b04496ffe1006eb4236f58637a14eb2eca731db88f215bf564aedd0ac14b",
35
- "electron-v21.0.0-mas-x64-dsym.zip": "3441b23f6e954c2633949876b8830d38d130b34faf697778733ccc32cac97292",
36
- "electron-v21.0.0-mas-x64-symbols.zip": "d89a30c49c9d9122244cb1b88bc1ed1042786d32fd7ee5a536721602e54758d2",
37
- "electron-v21.0.0-mas-x64.zip": "14800c2095f36287eb5603888f966857fa35a45f767d06e1068a8ad14387e035",
38
- "electron-v21.0.0-win32-arm64-pdb.zip": "00e9b61f2c20f048bd587659a227b9d88031dc719d94aab4f15fb24b9ea2ddac",
39
- "electron-v21.0.0-win32-arm64-symbols.zip": "41f6f3c9ef810c99e149649a1c567dfdb6b8dd399d9edeca1a72741a032d8fcd",
40
- "electron-v21.0.0-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
41
- "electron-v21.0.0-win32-arm64.zip": "34352a41f4ba3c2b8cd39725d4c10133fd544b63fe7fec1831d5214253e20b6a",
42
- "electron-v21.0.0-win32-ia32-pdb.zip": "e2eee53d3d19d5852d0985f3e0847a7b1dce761d7e2225bbbf0aa755e6c477d5",
43
- "electron-v21.0.0-win32-ia32-symbols.zip": "49b852eb8dcaa116f4f95aa5baec99b7157a2d60137a0fe249bfdbfdd9f67f8e",
44
- "electron-v21.0.0-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
45
- "electron-v21.0.0-win32-ia32.zip": "7b9b27c01ccdea83261813db847957de947fc6d35dace600fc5b491a6bd7819f",
46
- "electron-v21.0.0-win32-x64-pdb.zip": "15a571f42f0e6f303ea9d347474cd0f3ab0fa1a9a239b421a6f5e3afd49ae589",
47
- "electron-v21.0.0-win32-x64-symbols.zip": "cec3562f2829c543a79cf9c49f7b55fd836b0e796f89dbec63285d46601ccc48",
48
- "electron-v21.0.0-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
49
- "electron-v21.0.0-win32-x64.zip": "1ff1ba4798ebf5d248d4d0de0f583940ba6ed8ceb9f0b01418a2d0c390d053ae",
50
- "electron.d.ts": "2e3f48c2c57159596a2ef87149d16418fe2099459349c6a881a08b7a9e63ed78",
51
- "ffmpeg-v21.0.0-darwin-arm64.zip": "adbecf2c6fca257d4ce6d812230defca427cc3c4ce6950efde4121fe8593a8b7",
52
- "ffmpeg-v21.0.0-darwin-x64.zip": "0fda0b3649c46eb55602e5e5d36099bcaaecdfb16c91ca54f49c122282fc8218",
53
- "ffmpeg-v21.0.0-linux-arm64.zip": "e05e811f131100f4055a3dc096a1a14835e3d5bf13ffca98b03935af46a90d07",
54
- "ffmpeg-v21.0.0-linux-armv7l.zip": "a95e833356987870271c09b1ed22a0038beee476324840edfbf25b38b454cef7",
55
- "ffmpeg-v21.0.0-linux-x64.zip": "b078114d88b5e4179bef90e3d1a6d007e7795f3a0b4a4cd0396fdfa1fe1bdf0e",
56
- "ffmpeg-v21.0.0-mas-arm64.zip": "bcbdb14183e166da3f53af6a6f52cee85713ffb330ad7f4861af7f68a893506b",
57
- "ffmpeg-v21.0.0-mas-x64.zip": "7228d06e5c675f5fd2f751a7cb7ae50ed3643d13e649fc59e46e9fa927f5c883",
58
- "ffmpeg-v21.0.0-win32-arm64.zip": "3a4fe156a8a907d08c6e568cb91f2f5722661f46cb89bfb3cc9da30590834987",
59
- "ffmpeg-v21.0.0-win32-ia32.zip": "e45f268bc23fbbbd0835ee9ce3d039365cfb5a4ed5121b11d4a9d24f69f78b3b",
60
- "ffmpeg-v21.0.0-win32-x64.zip": "083748f46a825559394df285e88148e8ed404f38a06f73eba5ab0138cd3b6060",
61
- "hunspell_dictionaries.zip": "a22bd05266bf97755966277bf2ba4ce952b48c44188879c0dd80d56d0cbfd307",
62
- "libcxx-objects-v21.0.0-linux-arm64.zip": "689cc458cbad194d61eb9c322a2e233ee671d04b00dda5bd63740cb67d384cfe",
63
- "libcxx-objects-v21.0.0-linux-armv7l.zip": "0e9d29a7e28e4f8c2512dcd4e9dc3678f77f1cee3516d41a3b5c618e059baaaf",
64
- "libcxx-objects-v21.0.0-linux-x64.zip": "e496956880a660fe35a8c1777d9568558fe89848d64177ccf673245c69f59a4e",
65
- "libcxx_headers.zip": "64256350f91859e15697bc46459ff5c5f18c98c42625befb665ea023596577cb",
66
- "libcxxabi_headers.zip": "dfff161500c25810ce4046a2ff81f17e68ecee1b464133172af47ed8ea386f47",
67
- "mksnapshot-v21.0.0-darwin-arm64.zip": "6d0885632c1c0f771ac775495307cc55fb4dd107c8cb8222715ec08e7c36fe69",
68
- "mksnapshot-v21.0.0-darwin-x64.zip": "4a2d4e7d930c7a03b673e43dab25ebcf27440d97ed7e70ca9cba975b5b1e3c34",
69
- "mksnapshot-v21.0.0-linux-arm64-x64.zip": "aec903769e2c299d44d5af0abe852508f7b1f0f6a76235c861e6f8a8fcb8c3b0",
70
- "mksnapshot-v21.0.0-linux-armv7l-x64.zip": "daf7f536aeeb3ce50663111d7651d73190097d438486f57a294699bacf6387d8",
71
- "mksnapshot-v21.0.0-linux-x64.zip": "ac88853875f0c874fbe4bc446ab163a7b2adfdce8a7c38db3a52ee986a61eed6",
72
- "mksnapshot-v21.0.0-mas-arm64.zip": "b83d90aaa73f4d3105a5ff5425ba0b5628dbbd7ac6cddaf478ee3380f327bfca",
73
- "mksnapshot-v21.0.0-mas-x64.zip": "513a4e67c52185e06bdacc72e8b09981d82df288075dc328995f12705ee4903d",
74
- "mksnapshot-v21.0.0-win32-arm64-x64.zip": "5358613895163b18192d86679299d3b7a085810b81701dd5ebfcb7f94063b540",
75
- "mksnapshot-v21.0.0-win32-ia32.zip": "99ed23c2e60d3cc4f0dec0354962261bb8818ba70aa0966ebdff41a4bc4945d1",
76
- "mksnapshot-v21.0.0-win32-x64.zip": "fcf3b8a8960bfa8ead2d5d9015a5023375d4ad061f600c230a09f5a5595c80c8"
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 21.0.0
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: (event: Event) => void): this;
10452
- once(event: 'dom-ready', listener: (event: Event) => void): this;
10453
- addListener(event: 'dom-ready', listener: (event: Event) => void): this;
10454
- removeListener(event: 'dom-ready', listener: (event: Event) => void): this;
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 extract(zipPath, { dir: path.join(__dirname, 'dist') })
74
- .then(() => fs.promises.writeFile(path.join(__dirname, 'path.txt'), platformPath));
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": "^1.14.1",
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": ">= 10.17.0"
16
+ "node": ">= 12.20.55"
17
17
  },
18
18
  "name": "electron",
19
- "version": "21.0.0",
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",