electron 20.0.2 β 21.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 +1 -1
- package/checksums.json +75 -75
- package/electron.d.ts +182 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://circleci.com/gh/electron/electron/tree/main)
|
|
4
4
|
[](https://ci.appveyor.com/project/electron-bot/electron-ljo26/branch/main)
|
|
5
|
-
[](https://discord.
|
|
5
|
+
[](https://discord.gg/electronjs)
|
|
6
6
|
|
|
7
7
|
:memo: Available Translations: π¨π³ π§π· πͺπΈ π―π΅ π·πΊ π«π· πΊπΈ π©πͺ.
|
|
8
8
|
View these docs in other languages at [electron/i18n](https://github.com/electron/i18n/tree/master/content/).
|
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-
|
|
14
|
-
"electron-
|
|
15
|
-
"electron-
|
|
16
|
-
"electron-
|
|
17
|
-
"electron-
|
|
18
|
-
"electron-
|
|
19
|
-
"electron-
|
|
20
|
-
"electron-
|
|
21
|
-
"electron-
|
|
22
|
-
"electron-
|
|
23
|
-
"electron-
|
|
24
|
-
"electron-
|
|
25
|
-
"electron-
|
|
26
|
-
"electron-
|
|
27
|
-
"electron-
|
|
28
|
-
"electron-
|
|
29
|
-
"electron-
|
|
30
|
-
"electron-
|
|
31
|
-
"electron-
|
|
32
|
-
"electron-
|
|
33
|
-
"electron-
|
|
34
|
-
"electron-
|
|
35
|
-
"electron-
|
|
36
|
-
"electron-
|
|
37
|
-
"electron-
|
|
38
|
-
"electron-
|
|
39
|
-
"electron-
|
|
40
|
-
"electron-
|
|
41
|
-
"electron-
|
|
42
|
-
"electron-
|
|
43
|
-
"electron-
|
|
44
|
-
"electron-
|
|
45
|
-
"electron-
|
|
46
|
-
"electron-
|
|
47
|
-
"electron-
|
|
48
|
-
"electron-
|
|
49
|
-
"electron-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"libcxx-objects-
|
|
64
|
-
"libcxx-objects-
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v21.0.0-alpha.3-darwin-arm64.zip": "08cfe19da538c0a3225c01e3b99f03ece3d715da738963ee7b93a78778234af1",
|
|
3
|
+
"chromedriver-v21.0.0-alpha.3-darwin-x64.zip": "928d896b7836edae21dda876107b52575580209e086daee4ed5c0db4f1a9c47c",
|
|
4
|
+
"chromedriver-v21.0.0-alpha.3-linux-arm64.zip": "d7785f25c0ef8ff7b0f36d04a7b32e8e0444b8e4a23ab26117a381dc1b94de5d",
|
|
5
|
+
"chromedriver-v21.0.0-alpha.3-linux-armv7l.zip": "2c012edc6939ccc7dc2de20defcc5b8868e1f43e4198957715601aa5c701b269",
|
|
6
|
+
"chromedriver-v21.0.0-alpha.3-linux-x64.zip": "f2c7ad15bae83cc4d57fd98d9e1c3ed7a3f140de7db3126576af25fe84b45aa4",
|
|
7
|
+
"chromedriver-v21.0.0-alpha.3-mas-arm64.zip": "e4e0f1c339a45bae56735e1555d5781df69db775ebb52fa80842391e5a570d91",
|
|
8
|
+
"chromedriver-v21.0.0-alpha.3-mas-x64.zip": "3b99b5ce1a1ab22700eabe14d78dc87a69ba37a614ccb01a89fe3040235cc0ff",
|
|
9
|
+
"chromedriver-v21.0.0-alpha.3-win32-arm64.zip": "5f41d5efabec31320e8fed3cc4317f66ece26194c3ac8795fca32bf74102731f",
|
|
10
|
+
"chromedriver-v21.0.0-alpha.3-win32-ia32.zip": "d3dada96b4a1328e4f371eb0bb51ede61661f9e55193839f8f93a6de5ba9423b",
|
|
11
|
+
"chromedriver-v21.0.0-alpha.3-win32-x64.zip": "5613e55899ae5d58bf14dce3c71be8eff66adc8572bc4000e2b1bbd1c5a50fa7",
|
|
12
|
+
"electron-api.json": "6838fc2f402c009e163a127c7369d9c2bb2e6878319b87396881272f33073423",
|
|
13
|
+
"electron-v21.0.0-alpha.3-darwin-arm64-dsym-snapshot.zip": "3561f2aa3f77bb9a5fcc28c85ad4d9d2d2ec68353ac16023f6a2693a0dfd5375",
|
|
14
|
+
"electron-v21.0.0-alpha.3-darwin-arm64-dsym.zip": "c9ad6726fb14b66d4262f2bff6458dd21a89aaf96aef36034a67d17c00210a89",
|
|
15
|
+
"electron-v21.0.0-alpha.3-darwin-arm64-symbols.zip": "19fbe310fc99b30a22c9d28b650343b8e28bd45909bf321c858a5cc835f129f9",
|
|
16
|
+
"electron-v21.0.0-alpha.3-darwin-arm64.zip": "4327540a9e4a76c758aac3daaf72dc07d49f57b6de5b2b55df3eaea1af563f33",
|
|
17
|
+
"electron-v21.0.0-alpha.3-darwin-x64-dsym-snapshot.zip": "cc14604914fdef18d3510f14c0838af2404a80640370d20cbf55fbe1d197fa4d",
|
|
18
|
+
"electron-v21.0.0-alpha.3-darwin-x64-dsym.zip": "8ea70d53a95a34e452a915eb16cc28341c60e9cd6567202884b16667a4a60a6c",
|
|
19
|
+
"electron-v21.0.0-alpha.3-darwin-x64-symbols.zip": "bf73896a3226b42a1930c4bcb211a0c9c999ff87977af7c3567e5c6652c22cbd",
|
|
20
|
+
"electron-v21.0.0-alpha.3-darwin-x64.zip": "6b8488570ebd070fc2797854045e412a9cf3ecd2d6c840dcdf772e857365ad8f",
|
|
21
|
+
"electron-v21.0.0-alpha.3-linux-arm64-debug.zip": "690b350cf780d130c0989c2935e35cac1cf620f8a9462e8caf4aa3f581d437bc",
|
|
22
|
+
"electron-v21.0.0-alpha.3-linux-arm64-symbols.zip": "50d94fe59e583eadd44066bbbfc0665b9ffdcdb01651c1b76e159489bb0bfa26",
|
|
23
|
+
"electron-v21.0.0-alpha.3-linux-arm64.zip": "d2ddcc6d58e60502f5b19d9ed607b7f4ee19c59eef9d09e668a6ad420008602d",
|
|
24
|
+
"electron-v21.0.0-alpha.3-linux-armv7l-debug.zip": "690b350cf780d130c0989c2935e35cac1cf620f8a9462e8caf4aa3f581d437bc",
|
|
25
|
+
"electron-v21.0.0-alpha.3-linux-armv7l-symbols.zip": "78d84513a084066e69890786021ed2693e79d3bf965c298449278f3ca6089250",
|
|
26
|
+
"electron-v21.0.0-alpha.3-linux-armv7l.zip": "22569c05af8c0e9e8bc1d2d64ab4335389ddefd69ff7394825866b12f3ddc5cd",
|
|
27
|
+
"electron-v21.0.0-alpha.3-linux-x64-debug.zip": "3170a5d52a45d7707dc42be8cacd39db1cf560502534941e947028fd00620983",
|
|
28
|
+
"electron-v21.0.0-alpha.3-linux-x64-symbols.zip": "182ab3767e9b076cfd3bdfae367816913b3badbfba8a6fd62c38fd7e221f4fda",
|
|
29
|
+
"electron-v21.0.0-alpha.3-linux-x64.zip": "7d15115a604483f876f5c0bdc394ee0bdd8303b4fea0483b09a2f7020c6984b2",
|
|
30
|
+
"electron-v21.0.0-alpha.3-mas-arm64-dsym-snapshot.zip": "3561f2aa3f77bb9a5fcc28c85ad4d9d2d2ec68353ac16023f6a2693a0dfd5375",
|
|
31
|
+
"electron-v21.0.0-alpha.3-mas-arm64-dsym.zip": "fbde59ffd484082cd9affdab1245e51c2dd9da6bcbc456e4d0b4626a2b511c6d",
|
|
32
|
+
"electron-v21.0.0-alpha.3-mas-arm64-symbols.zip": "19a5efe276911957559b2025d450e3ee314f582a2fd1749555dd032c2edc3b0a",
|
|
33
|
+
"electron-v21.0.0-alpha.3-mas-arm64.zip": "0f6514aa04fcec7bdd0c2c459e40cd402e30ac6b7d2ae52d4a8acd6f80777b73",
|
|
34
|
+
"electron-v21.0.0-alpha.3-mas-x64-dsym-snapshot.zip": "bc9fbcd2ca18a16706552d5da10978f831a3eb852c56fe526bc6d16aa3d8130d",
|
|
35
|
+
"electron-v21.0.0-alpha.3-mas-x64-dsym.zip": "d023cd350c9fc887fe4d725bc087fc89058b4e360eb1eb13f0e47b86d3451c04",
|
|
36
|
+
"electron-v21.0.0-alpha.3-mas-x64-symbols.zip": "3e404aa91ec40cabff45bf7e8f9417a01b33c1dc9297264a5c2e87991ed87193",
|
|
37
|
+
"electron-v21.0.0-alpha.3-mas-x64.zip": "ae508450fced77249fb698be33d219d36295cfee9e578c343d8de321b9879fed",
|
|
38
|
+
"electron-v21.0.0-alpha.3-win32-arm64-pdb.zip": "d20b431959b636483b183bc3e4e8eba66e4aeee53a1cacfcccc94113dc5e92a2",
|
|
39
|
+
"electron-v21.0.0-alpha.3-win32-arm64-symbols.zip": "0e396bb74a5274d5a0828556cf52cdb9ba7231f81da016307857b6b3414e8e7c",
|
|
40
|
+
"electron-v21.0.0-alpha.3-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v21.0.0-alpha.3-win32-arm64.zip": "4ab8d64047b44c021ae2479e8da7772b7a7e1cbda9402ca8dc9282109bdd0a6d",
|
|
42
|
+
"electron-v21.0.0-alpha.3-win32-ia32-pdb.zip": "7e9e49221f88ca1beeb5b43c45d6e01502d0cd42b186e8ae444d70d93d1b2816",
|
|
43
|
+
"electron-v21.0.0-alpha.3-win32-ia32-symbols.zip": "0c15fff71ca87f592087a1b8e5c3dd13037e46fc81c45524af271bfeeaa2b966",
|
|
44
|
+
"electron-v21.0.0-alpha.3-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v21.0.0-alpha.3-win32-ia32.zip": "5afcdba40f442dd986b63cdc3c8167074424f56849cdc61e58d56b6b09b815b9",
|
|
46
|
+
"electron-v21.0.0-alpha.3-win32-x64-pdb.zip": "e58caabb3c74f555412a658a2425c1a7e0a0a64b2d5392c89d37e548a7fdb56b",
|
|
47
|
+
"electron-v21.0.0-alpha.3-win32-x64-symbols.zip": "6c1ef8533f0a6964ad7811e751d71c32db54eba1235f5457af2700084d845101",
|
|
48
|
+
"electron-v21.0.0-alpha.3-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v21.0.0-alpha.3-win32-x64.zip": "00096d4b51362e84bb1ac70f5f91d24b927c3bd558245b8085608567cb9c9bfd",
|
|
50
|
+
"electron.d.ts": "0485536d0a25d8d1cf7db92d0e6d8915acdabc0b4f1cb42e0861b1a38eab8173",
|
|
51
|
+
"ffmpeg-v21.0.0-alpha.3-darwin-arm64.zip": "eba9e5baead336c57701e99177158e570742e0df662af58ea595c1d488d9788a",
|
|
52
|
+
"ffmpeg-v21.0.0-alpha.3-darwin-x64.zip": "ba525b5e8103afdf95835c38e13e2e9886278cba891f6943b65fbf807f3f1824",
|
|
53
|
+
"ffmpeg-v21.0.0-alpha.3-linux-arm64.zip": "8ebfbf76881e70bc12c68e6094e28dfc9c5d73e6e08c4f5f2368383ca35b54e0",
|
|
54
|
+
"ffmpeg-v21.0.0-alpha.3-linux-armv7l.zip": "c14702cc92794b2c9072b9ad26b67bc247bf607a0f3b700c224472c5043d14f3",
|
|
55
|
+
"ffmpeg-v21.0.0-alpha.3-linux-x64.zip": "232ac11980241773cd42397a6f76f9f7564756b9f5a9468837007593356298cd",
|
|
56
|
+
"ffmpeg-v21.0.0-alpha.3-mas-arm64.zip": "c7c8084065fc3b8ccc7b301b81615118d9f272110890b2a2c20abe3e5b4bb61b",
|
|
57
|
+
"ffmpeg-v21.0.0-alpha.3-mas-x64.zip": "3c4ae1939d6b7433dc9187a210ea3b5e2dcda9ccd6dbcb156cf517d1ce02b78e",
|
|
58
|
+
"ffmpeg-v21.0.0-alpha.3-win32-arm64.zip": "cd44a2d69126db900e8b338eab7f3c2a15ac1c032d61979bebcc67be111d8955",
|
|
59
|
+
"ffmpeg-v21.0.0-alpha.3-win32-ia32.zip": "c99978aaee540401babe6f4c8b0f924cabdd6ae8ee22bbb5c661534e29663a8a",
|
|
60
|
+
"ffmpeg-v21.0.0-alpha.3-win32-x64.zip": "e06ceb1c9fcf5a36c19a9cf7bae7b573148d30b0e85160a438efad0f5d124536",
|
|
61
|
+
"hunspell_dictionaries.zip": "7a24f11f2519e20f6b47e738228dc30b94a0c59296a9e12c99644051c8a2bb79",
|
|
62
|
+
"libcxx-objects-v21.0.0-alpha.3-linux-arm64.zip": "e912b7e684a43cad25c9ca4a63387da0c8ea23ce0e9e2099f127b0dbec23b473",
|
|
63
|
+
"libcxx-objects-v21.0.0-alpha.3-linux-armv7l.zip": "5904e03f68294ab576c44246f4149c3674abc96944fa6a78564a00b0f844053d",
|
|
64
|
+
"libcxx-objects-v21.0.0-alpha.3-linux-x64.zip": "65cbc520ebcd810c26762d5ceb83b269290e84b6d86b755cea7022751d2d1f59",
|
|
65
|
+
"libcxx_headers.zip": "e10a7155bf3e5d11bbbdf1e0bf3a7044e6247158ccc1f35af2204c690a21e079",
|
|
66
|
+
"libcxxabi_headers.zip": "87b476a9f4269cb862673af0a743d47474da3dfa9db8d39fe7639bcb1b5ff315",
|
|
67
|
+
"mksnapshot-v21.0.0-alpha.3-darwin-arm64.zip": "d9b803999de86cc6bb8bd864f2cc5e7f1707a8b82d80fe3acc2b3e41b997d066",
|
|
68
|
+
"mksnapshot-v21.0.0-alpha.3-darwin-x64.zip": "1350b17375108c324f8aeb6d2168d62cda066fadf34d2714f3118bc7c3bc04bb",
|
|
69
|
+
"mksnapshot-v21.0.0-alpha.3-linux-arm64-x64.zip": "e19a7db482ffe1f44ccf6f6e82856f75880aec6053a1a82881d80a5f1ca47fe3",
|
|
70
|
+
"mksnapshot-v21.0.0-alpha.3-linux-armv7l-x64.zip": "adb2c1bda23ab3219539f5273b545d989cb5050d2809341f03f26fd37ebefa76",
|
|
71
|
+
"mksnapshot-v21.0.0-alpha.3-linux-x64.zip": "44842e000c444f93fc8e68da6f161a313a608f90c5d1f2612f5d89d0b2e9b267",
|
|
72
|
+
"mksnapshot-v21.0.0-alpha.3-mas-arm64.zip": "5ed0843cd268b5202ffaa6fcefe58d84d9427f74fb1f38b3bb9415cddd4806ca",
|
|
73
|
+
"mksnapshot-v21.0.0-alpha.3-mas-x64.zip": "8eae2927a372b03108fc0a7bf0b24b481f392f590b5ec662e6c5fd17bf7b7283",
|
|
74
|
+
"mksnapshot-v21.0.0-alpha.3-win32-arm64-x64.zip": "11d73794f37087bc53e7cf3c12c99881c919efb0f84865f0a3101689bd14558b",
|
|
75
|
+
"mksnapshot-v21.0.0-alpha.3-win32-ia32.zip": "46de92a88c12483d0eeb2d5d24ab002642f40fd9fd4d9c7bb84a09c43aab18c6",
|
|
76
|
+
"mksnapshot-v21.0.0-alpha.3-win32-x64.zip": "ff4a46e3a98bf40a8d953a2bed381c8b049ad492c94e428a73963c4f86a8fb28"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 21.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
|
|
@@ -410,6 +410,11 @@ declare namespace Electron {
|
|
|
410
410
|
*
|
|
411
411
|
* You should call `event.preventDefault()` if you want to handle this event.
|
|
412
412
|
*
|
|
413
|
+
* As with the `open-file` event, be sure to register a listener for the `open-url`
|
|
414
|
+
* event early in your application startup to detect if the the application being
|
|
415
|
+
* is being opened to handle a URL. If you register the listener in response to a
|
|
416
|
+
* `ready` event, you'll miss URLs that trigger the launch of your application.
|
|
417
|
+
*
|
|
413
418
|
* @platform darwin
|
|
414
419
|
*/
|
|
415
420
|
on(event: 'open-url', listener: (event: Event,
|
|
@@ -1062,7 +1067,7 @@ declare namespace Electron {
|
|
|
1062
1067
|
*
|
|
1063
1068
|
* By default, if an app of the same name as the one being moved exists in the
|
|
1064
1069
|
* Applications directory and is _not_ running, the existing app will be trashed
|
|
1065
|
-
* and the active app moved into its place. If it _is_ running, the
|
|
1070
|
+
* and the active app moved into its place. If it _is_ running, the preexisting
|
|
1066
1071
|
* running app will assume focus and the previously active app will quit itself.
|
|
1067
1072
|
* This behavior can be changed by providing the optional conflict handler, where
|
|
1068
1073
|
* the boolean returned by the handler determines whether or not the move conflict
|
|
@@ -6980,6 +6985,137 @@ declare namespace Electron {
|
|
|
6980
6985
|
data: (string) | (Buffer);
|
|
6981
6986
|
}
|
|
6982
6987
|
|
|
6988
|
+
interface PushNotifications extends NodeJS.EventEmitter {
|
|
6989
|
+
|
|
6990
|
+
// Docs: https://electronjs.org/docs/api/push-notifications
|
|
6991
|
+
|
|
6992
|
+
/**
|
|
6993
|
+
* Emitted when the app receives a remote notification while running. See:
|
|
6994
|
+
*
|
|
6995
|
+
*
|
|
6996
|
+
*
|
|
6997
|
+
*
|
|
6998
|
+
*
|
|
6999
|
+
*
|
|
7000
|
+
*
|
|
7001
|
+
*
|
|
7002
|
+
*
|
|
7003
|
+
*
|
|
7004
|
+
*
|
|
7005
|
+
*
|
|
7006
|
+
*
|
|
7007
|
+
*
|
|
7008
|
+
*
|
|
7009
|
+
*
|
|
7010
|
+
*
|
|
7011
|
+
*
|
|
7012
|
+
*
|
|
7013
|
+
*
|
|
7014
|
+
*
|
|
7015
|
+
*
|
|
7016
|
+
*
|
|
7017
|
+
*
|
|
7018
|
+
* com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc
|
|
7019
|
+
*
|
|
7020
|
+
* @platform darwin
|
|
7021
|
+
*/
|
|
7022
|
+
on(event: 'received-apns-notification', listener: (userInfo: Record<string, any>) => void): this;
|
|
7023
|
+
once(event: 'received-apns-notification', listener: (userInfo: Record<string, any>) => void): this;
|
|
7024
|
+
addListener(event: 'received-apns-notification', listener: (userInfo: Record<string, any>) => void): this;
|
|
7025
|
+
removeListener(event: 'received-apns-notification', listener: (userInfo: Record<string, any>) => void): this;
|
|
7026
|
+
/**
|
|
7027
|
+
* Registers the app with Apple Push Notification service (APNS) to receive Badge,
|
|
7028
|
+
* Sound, and Alert notifications. If registration is successful, the promise will
|
|
7029
|
+
* be resolved with the APNS device token. Otherwise, the promise will be rejected
|
|
7030
|
+
* with an error message. See:
|
|
7031
|
+
*
|
|
7032
|
+
*
|
|
7033
|
+
*
|
|
7034
|
+
*
|
|
7035
|
+
*
|
|
7036
|
+
*
|
|
7037
|
+
*
|
|
7038
|
+
*
|
|
7039
|
+
*
|
|
7040
|
+
*
|
|
7041
|
+
*
|
|
7042
|
+
*
|
|
7043
|
+
*
|
|
7044
|
+
*
|
|
7045
|
+
*
|
|
7046
|
+
*
|
|
7047
|
+
*
|
|
7048
|
+
*
|
|
7049
|
+
*
|
|
7050
|
+
*
|
|
7051
|
+
*
|
|
7052
|
+
*
|
|
7053
|
+
*
|
|
7054
|
+
*
|
|
7055
|
+
*
|
|
7056
|
+
*
|
|
7057
|
+
*
|
|
7058
|
+
*
|
|
7059
|
+
*
|
|
7060
|
+
*
|
|
7061
|
+
*
|
|
7062
|
+
*
|
|
7063
|
+
*
|
|
7064
|
+
*
|
|
7065
|
+
*
|
|
7066
|
+
*
|
|
7067
|
+
*
|
|
7068
|
+
* tion/appkit/nsapplication/1428476-registerforremotenotificationtyp?language=objc
|
|
7069
|
+
*
|
|
7070
|
+
* @platform darwin
|
|
7071
|
+
*/
|
|
7072
|
+
registerForAPNSNotifications(): Promise<string>;
|
|
7073
|
+
/**
|
|
7074
|
+
* Unregisters the app from notifications received from APNS. See:
|
|
7075
|
+
*
|
|
7076
|
+
*
|
|
7077
|
+
*
|
|
7078
|
+
*
|
|
7079
|
+
*
|
|
7080
|
+
*
|
|
7081
|
+
*
|
|
7082
|
+
*
|
|
7083
|
+
*
|
|
7084
|
+
*
|
|
7085
|
+
*
|
|
7086
|
+
*
|
|
7087
|
+
*
|
|
7088
|
+
*
|
|
7089
|
+
*
|
|
7090
|
+
*
|
|
7091
|
+
*
|
|
7092
|
+
*
|
|
7093
|
+
*
|
|
7094
|
+
*
|
|
7095
|
+
*
|
|
7096
|
+
*
|
|
7097
|
+
*
|
|
7098
|
+
*
|
|
7099
|
+
*
|
|
7100
|
+
*
|
|
7101
|
+
*
|
|
7102
|
+
*
|
|
7103
|
+
*
|
|
7104
|
+
*
|
|
7105
|
+
*
|
|
7106
|
+
*
|
|
7107
|
+
*
|
|
7108
|
+
*
|
|
7109
|
+
*
|
|
7110
|
+
*
|
|
7111
|
+
*
|
|
7112
|
+
* tion/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc
|
|
7113
|
+
*
|
|
7114
|
+
* @platform darwin
|
|
7115
|
+
*/
|
|
7116
|
+
unregisterForAPNSNotifications(): void;
|
|
7117
|
+
}
|
|
7118
|
+
|
|
6983
7119
|
interface Rectangle {
|
|
6984
7120
|
|
|
6985
7121
|
// Docs: https://electronjs.org/docs/api/structures/rectangle
|
|
@@ -7757,10 +7893,10 @@ declare namespace Electron {
|
|
|
7757
7893
|
*/
|
|
7758
7894
|
getSpellCheckerLanguages(): string[];
|
|
7759
7895
|
/**
|
|
7760
|
-
*
|
|
7761
|
-
*
|
|
7896
|
+
* The absolute file system path where data for this session is persisted on disk.
|
|
7897
|
+
* For in memory sessions this returns `null`.
|
|
7762
7898
|
*/
|
|
7763
|
-
getStoragePath():
|
|
7899
|
+
getStoragePath(): (string) | (null);
|
|
7764
7900
|
/**
|
|
7765
7901
|
* The user agent for this session.
|
|
7766
7902
|
*/
|
|
@@ -11296,16 +11432,13 @@ declare namespace Electron {
|
|
|
11296
11432
|
/**
|
|
11297
11433
|
* Resolves with the generated PDF data.
|
|
11298
11434
|
*
|
|
11299
|
-
* Prints window's web page as PDF
|
|
11300
|
-
* settings.
|
|
11435
|
+
* Prints the window's web page as PDF.
|
|
11301
11436
|
*
|
|
11302
11437
|
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
11303
11438
|
*
|
|
11304
|
-
* By default, an empty `options` will be regarded as:
|
|
11305
|
-
*
|
|
11306
|
-
* Use `page-break-before: always;` CSS style to force to print to a new page.
|
|
11307
|
-
*
|
|
11308
11439
|
* An example of `webContents.printToPDF`:
|
|
11440
|
+
*
|
|
11441
|
+
* See Page.printToPdf for more information.
|
|
11309
11442
|
*/
|
|
11310
11443
|
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
11311
11444
|
/**
|
|
@@ -12700,7 +12833,7 @@ declare namespace Electron {
|
|
|
12700
12833
|
/**
|
|
12701
12834
|
* The scale factor to add the image representation for.
|
|
12702
12835
|
*/
|
|
12703
|
-
scaleFactor
|
|
12836
|
+
scaleFactor?: number;
|
|
12704
12837
|
/**
|
|
12705
12838
|
* Defaults to 0. Required if a bitmap buffer is specified as `buffer`.
|
|
12706
12839
|
*/
|
|
@@ -15010,39 +15143,51 @@ declare namespace Electron {
|
|
|
15010
15143
|
|
|
15011
15144
|
interface PrintToPDFOptions {
|
|
15012
15145
|
/**
|
|
15013
|
-
*
|
|
15014
|
-
*/
|
|
15015
|
-
headerFooter?: Record<string, string>;
|
|
15016
|
-
/**
|
|
15017
|
-
* `true` for landscape, `false` for portrait.
|
|
15146
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
15018
15147
|
*/
|
|
15019
15148
|
landscape?: boolean;
|
|
15020
15149
|
/**
|
|
15021
|
-
*
|
|
15022
|
-
* margin, and 2 for minimum margin. and `width` in microns.
|
|
15150
|
+
* Whether to display header and footer. Defaults to false.
|
|
15023
15151
|
*/
|
|
15024
|
-
|
|
15152
|
+
displayHeaderFooter?: boolean;
|
|
15025
15153
|
/**
|
|
15026
|
-
*
|
|
15154
|
+
* Whether to print background graphics. Defaults to false.
|
|
15027
15155
|
*/
|
|
15028
|
-
|
|
15156
|
+
printBackground?: boolean;
|
|
15029
15157
|
/**
|
|
15030
|
-
*
|
|
15158
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
15031
15159
|
*/
|
|
15032
|
-
|
|
15160
|
+
scale?: number;
|
|
15033
15161
|
/**
|
|
15034
|
-
* Specify page size of the generated PDF. Can be `
|
|
15035
|
-
* `Letter`, `Tabloid` or an Object containing
|
|
15162
|
+
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
15163
|
+
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
15164
|
+
* `height` and `width` in inches. Defaults to `Letter`.
|
|
15036
15165
|
*/
|
|
15037
15166
|
pageSize?: (string) | (Size);
|
|
15167
|
+
margins?: Margins;
|
|
15038
15168
|
/**
|
|
15039
|
-
*
|
|
15169
|
+
* Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string,
|
|
15170
|
+
* which means print all pages.
|
|
15040
15171
|
*/
|
|
15041
|
-
|
|
15172
|
+
pageRanges?: string;
|
|
15173
|
+
/**
|
|
15174
|
+
* HTML template for the print header. Should be valid HTML markup with following
|
|
15175
|
+
* classes used to inject printing values into them: `date` (formatted print date),
|
|
15176
|
+
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
15177
|
+
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
15178
|
+
* class=title></span>` would generate span containing the title.
|
|
15179
|
+
*/
|
|
15180
|
+
headerTemplate?: string;
|
|
15181
|
+
/**
|
|
15182
|
+
* HTML template for the print footer. Should use the same format as the
|
|
15183
|
+
* `headerTemplate`.
|
|
15184
|
+
*/
|
|
15185
|
+
footerTemplate?: string;
|
|
15042
15186
|
/**
|
|
15043
|
-
* Whether to
|
|
15187
|
+
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
15188
|
+
* which case the content will be scaled to fit the paper size.
|
|
15044
15189
|
*/
|
|
15045
|
-
|
|
15190
|
+
preferCSSPageSize?: boolean;
|
|
15046
15191
|
}
|
|
15047
15192
|
|
|
15048
15193
|
interface Privileges {
|
|
@@ -15777,7 +15922,7 @@ declare namespace Electron {
|
|
|
15777
15922
|
footer?: string;
|
|
15778
15923
|
/**
|
|
15779
15924
|
* Specify page size of the printed document. Can be `A3`, `A4`, `A5`, `Legal`,
|
|
15780
|
-
* `Letter`, `Tabloid` or an Object containing `height`.
|
|
15925
|
+
* `Letter`, `Tabloid` or an Object containing `height` and `width`.
|
|
15781
15926
|
*/
|
|
15782
15927
|
pageSize?: (string) | (Size);
|
|
15783
15928
|
}
|
|
@@ -16455,6 +16600,7 @@ declare namespace Electron {
|
|
|
16455
16600
|
powerMonitor: PowerMonitor;
|
|
16456
16601
|
powerSaveBlocker: PowerSaveBlocker;
|
|
16457
16602
|
protocol: Protocol;
|
|
16603
|
+
pushNotifications: PushNotifications;
|
|
16458
16604
|
safeStorage: SafeStorage;
|
|
16459
16605
|
screen: Screen;
|
|
16460
16606
|
session: typeof Session;
|
|
@@ -16746,6 +16892,8 @@ declare namespace Electron {
|
|
|
16746
16892
|
type PowerSaveBlocker = Electron.PowerSaveBlocker;
|
|
16747
16893
|
const protocol: Protocol;
|
|
16748
16894
|
type Protocol = Electron.Protocol;
|
|
16895
|
+
const pushNotifications: PushNotifications;
|
|
16896
|
+
type PushNotifications = Electron.PushNotifications;
|
|
16749
16897
|
const safeStorage: SafeStorage;
|
|
16750
16898
|
type SafeStorage = Electron.SafeStorage;
|
|
16751
16899
|
const screen: Screen;
|
|
@@ -17283,6 +17431,8 @@ declare namespace Electron {
|
|
|
17283
17431
|
type PowerSaveBlocker = Electron.PowerSaveBlocker;
|
|
17284
17432
|
const protocol: Protocol;
|
|
17285
17433
|
type Protocol = Electron.Protocol;
|
|
17434
|
+
const pushNotifications: PushNotifications;
|
|
17435
|
+
type PushNotifications = Electron.PushNotifications;
|
|
17286
17436
|
const safeStorage: SafeStorage;
|
|
17287
17437
|
type SafeStorage = Electron.SafeStorage;
|
|
17288
17438
|
const screen: Screen;
|
|
@@ -17558,6 +17708,7 @@ declare namespace Electron {
|
|
|
17558
17708
|
const powerMonitor: PowerMonitor;
|
|
17559
17709
|
const powerSaveBlocker: PowerSaveBlocker;
|
|
17560
17710
|
const protocol: Protocol;
|
|
17711
|
+
const pushNotifications: PushNotifications;
|
|
17561
17712
|
const safeStorage: SafeStorage;
|
|
17562
17713
|
const screen: Screen;
|
|
17563
17714
|
const session: typeof Session;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 10.17.0"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "21.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",
|