electron 20.0.0-beta.9 β 21.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/checksums.json +75 -73
- package/electron.d.ts +181 -28
- 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,75 +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
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v21.0.0-alpha.1-darwin-arm64.zip": "f4c2e55e7791c671d13f52a300b1a065c73a9371e82b7c6d7490f1db3c018fa1",
|
|
3
|
+
"chromedriver-v21.0.0-alpha.1-darwin-x64.zip": "973fb74674205e56886e6221b6e787c335bf6bb18f2533ffe5519ca6b03339ed",
|
|
4
|
+
"chromedriver-v21.0.0-alpha.1-linux-arm64.zip": "df52aa1603c086aef1fd7ddfac6eed42e3f7ff510136dd3f10b3d3c2bc9b2c7e",
|
|
5
|
+
"chromedriver-v21.0.0-alpha.1-linux-armv7l.zip": "5683a4a3c4196a4559e05d6ac36a60feaaae3a83725f420d9c95b990f97a1d22",
|
|
6
|
+
"chromedriver-v21.0.0-alpha.1-linux-x64.zip": "d67988deb45e7a0de590a69500d90c1fac4fc30fd91e809224ca3821b39e8df5",
|
|
7
|
+
"chromedriver-v21.0.0-alpha.1-mas-arm64.zip": "bec286848c68e9977f18052b1730bc167fbacd523307975310e8548f6ec72ab4",
|
|
8
|
+
"chromedriver-v21.0.0-alpha.1-mas-x64.zip": "e0b484421aa51f309292a0d15ef192440f8f4ca4aa579f97f6eadee79015406c",
|
|
9
|
+
"chromedriver-v21.0.0-alpha.1-win32-arm64.zip": "9e227c76570f894df20e51e82aa6c0890cc286adebec7b7073eb4bef9243e33f",
|
|
10
|
+
"chromedriver-v21.0.0-alpha.1-win32-ia32.zip": "b912a161a2c93837fd17c840f0ce8856cf51712e50a22150f1383a4d63df68b5",
|
|
11
|
+
"chromedriver-v21.0.0-alpha.1-win32-x64.zip": "dcb8bbd8355cc88656c526b508ef26085e9c8cc4933a955da9e777431059a5ad",
|
|
12
|
+
"electron-api.json": "094d538894f198d960ba0aa6184ab0e7237b3f7aed97394279bccd5aebcbe70d",
|
|
13
|
+
"electron-v21.0.0-alpha.1-darwin-arm64-dsym-snapshot.zip": "e3038c483b9935d3756eb5b068de119152e5526c07426091da1b8ab99280aee7",
|
|
14
|
+
"electron-v21.0.0-alpha.1-darwin-arm64-dsym.zip": "7d3decb71e333ccd541f60627691548b29847f4b069f57adaf0b6e989e1c6c0b",
|
|
15
|
+
"electron-v21.0.0-alpha.1-darwin-arm64-symbols.zip": "d39d1c65ae05e16823175264a4dfeda6de57d5c07374d04e9b2078cf43cbed76",
|
|
16
|
+
"electron-v21.0.0-alpha.1-darwin-arm64.zip": "eb46fab62953ebdce99e901fcb9932daf72fa9b412089814cb36e34d3d341128",
|
|
17
|
+
"electron-v21.0.0-alpha.1-darwin-x64-dsym-snapshot.zip": "e1ce5af6bef1f99314e70b76416a8cd278de3fb8160e761f03acf3e72d29466d",
|
|
18
|
+
"electron-v21.0.0-alpha.1-darwin-x64-dsym.zip": "cfb600bcccf73dc057b3b8d56b437e69e006be5ac82c141e512c8ebc8ce30c47",
|
|
19
|
+
"electron-v21.0.0-alpha.1-darwin-x64-symbols.zip": "b05b59d28b160eef4a94dd5b5aaea96206f14f9057bafce24630452c5343e050",
|
|
20
|
+
"electron-v21.0.0-alpha.1-darwin-x64.zip": "206e7e1ea8da7e530508db4136088cb6092568879caf48aa448a7a6a19da0703",
|
|
21
|
+
"electron-v21.0.0-alpha.1-linux-arm64-debug.zip": "903eeafab1b586c2423f187ba70d9f29380b92f35d659dfcc7edce160706e425",
|
|
22
|
+
"electron-v21.0.0-alpha.1-linux-arm64-symbols.zip": "e171635f0ac7608e8d9d26123d78dd0af02b128a6c19c56ab4a28c85c0fbee53",
|
|
23
|
+
"electron-v21.0.0-alpha.1-linux-arm64.zip": "f6b898e0edcc227d7db3e2010bd428254b447f775b0397c942f28add17814e23",
|
|
24
|
+
"electron-v21.0.0-alpha.1-linux-armv7l-debug.zip": "903eeafab1b586c2423f187ba70d9f29380b92f35d659dfcc7edce160706e425",
|
|
25
|
+
"electron-v21.0.0-alpha.1-linux-armv7l-symbols.zip": "9d647425e492626ba423aeeb254cb078491d378cc1a6394924fae5aa961de58e",
|
|
26
|
+
"electron-v21.0.0-alpha.1-linux-armv7l.zip": "6fc95e71652eb8bb2112e0601469135b33cd36b6ed93d97c831093661b5b46df",
|
|
27
|
+
"electron-v21.0.0-alpha.1-linux-x64-debug.zip": "a028b95a2353d3708520e6e0d1340eeed85fcf7a665300f07f65e37141746c13",
|
|
28
|
+
"electron-v21.0.0-alpha.1-linux-x64-symbols.zip": "c9c4c63c569a9317309f17e89c911bf94e1a02b4a54941ef4d2e88f148f8d384",
|
|
29
|
+
"electron-v21.0.0-alpha.1-linux-x64.zip": "6993cf7b280fd510c36be323754fe9a96972121bc5ac6f701195acb4814228ee",
|
|
30
|
+
"electron-v21.0.0-alpha.1-mas-arm64-dsym-snapshot.zip": "e3038c483b9935d3756eb5b068de119152e5526c07426091da1b8ab99280aee7",
|
|
31
|
+
"electron-v21.0.0-alpha.1-mas-arm64-dsym.zip": "7f81d26eff8e2b7d771c424f1af89dee6dd2ba78cacd47975f8646ae61e78260",
|
|
32
|
+
"electron-v21.0.0-alpha.1-mas-arm64-symbols.zip": "626b7f2b7c9975545a467787a4379f3957606bcee33cda4be2b5da523e96f8bb",
|
|
33
|
+
"electron-v21.0.0-alpha.1-mas-arm64.zip": "173e8df925b6cff55aa615d0863b7dea07b62e4bd8a406cdb966df692a8837d3",
|
|
34
|
+
"electron-v21.0.0-alpha.1-mas-x64-dsym-snapshot.zip": "0a4e77ffcf5449415f3c5d34dbae115d01d635f9ac99595ec22b69c0fe1cfac1",
|
|
35
|
+
"electron-v21.0.0-alpha.1-mas-x64-dsym.zip": "076550999c0da3ca656d2f8943723a19ff97aab723bbe3a8cae0b43bf017f49b",
|
|
36
|
+
"electron-v21.0.0-alpha.1-mas-x64-symbols.zip": "76125973ec3bfdf1c67bb38e9d75320d835753573a70a5215b870f7d23ebfef7",
|
|
37
|
+
"electron-v21.0.0-alpha.1-mas-x64.zip": "b4d9ae60fab09e9d8307ea6594333702e82ae71d60428f36e4a5bdbace4af188",
|
|
38
|
+
"electron-v21.0.0-alpha.1-win32-arm64-pdb.zip": "1a7010cf0a9b2d748bb0916f61d693074a2872b94c40f46a651b668b40ed080b",
|
|
39
|
+
"electron-v21.0.0-alpha.1-win32-arm64-symbols.zip": "a25daa672d2b2709113096f500aa8a87a4d0c1c88414b4dae170c683104f5646",
|
|
40
|
+
"electron-v21.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v21.0.0-alpha.1-win32-arm64.zip": "829d4fd6e937506e9f4e07d72a3f382ec8440a019eca1ceca9cda50c9e591948",
|
|
42
|
+
"electron-v21.0.0-alpha.1-win32-ia32-pdb.zip": "95c42541840be33af351c037741dee8a85b8238ee6fad61178adc87c03f29cfb",
|
|
43
|
+
"electron-v21.0.0-alpha.1-win32-ia32-symbols.zip": "238d6da83b5f3c3f45f8ab506277e5e102d2b6f08fea71215aef221251e6dce3",
|
|
44
|
+
"electron-v21.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v21.0.0-alpha.1-win32-ia32.zip": "3d4f782c9923ce11499181a8b6f9c9848b029511ecb34fa248c77b9c07613ace",
|
|
46
|
+
"electron-v21.0.0-alpha.1-win32-x64-pdb.zip": "d4bfdee186d929aeedf71f72bcae05f27b203ec305d0fb25604d7fb759093643",
|
|
47
|
+
"electron-v21.0.0-alpha.1-win32-x64-symbols.zip": "dc0c2f1cb982b08020d437837817b99bf142266120fb7c078c6a6ac24910d94f",
|
|
48
|
+
"electron-v21.0.0-alpha.1-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v21.0.0-alpha.1-win32-x64.zip": "236124336125461180049d0ec784dd7fae851bda73ab2cd159719fb376901718",
|
|
50
|
+
"electron.d.ts": "b35f559d9ad18f3a4be138ae9ef7b4294e3b2775216b3e258fa0196ba4de05f1",
|
|
51
|
+
"ffmpeg-v21.0.0-alpha.1-darwin-arm64.zip": "eba9e5baead336c57701e99177158e570742e0df662af58ea595c1d488d9788a",
|
|
52
|
+
"ffmpeg-v21.0.0-alpha.1-darwin-x64.zip": "ba525b5e8103afdf95835c38e13e2e9886278cba891f6943b65fbf807f3f1824",
|
|
53
|
+
"ffmpeg-v21.0.0-alpha.1-linux-arm64.zip": "8ebfbf76881e70bc12c68e6094e28dfc9c5d73e6e08c4f5f2368383ca35b54e0",
|
|
54
|
+
"ffmpeg-v21.0.0-alpha.1-linux-armv7l.zip": "14056a4efb0ab38c8ead452933940a46eeb988272251b0708d33fd5a0cccc2a7",
|
|
55
|
+
"ffmpeg-v21.0.0-alpha.1-linux-x64.zip": "232ac11980241773cd42397a6f76f9f7564756b9f5a9468837007593356298cd",
|
|
56
|
+
"ffmpeg-v21.0.0-alpha.1-mas-arm64.zip": "c7c8084065fc3b8ccc7b301b81615118d9f272110890b2a2c20abe3e5b4bb61b",
|
|
57
|
+
"ffmpeg-v21.0.0-alpha.1-mas-x64.zip": "3c4ae1939d6b7433dc9187a210ea3b5e2dcda9ccd6dbcb156cf517d1ce02b78e",
|
|
58
|
+
"ffmpeg-v21.0.0-alpha.1-win32-arm64.zip": "cd44a2d69126db900e8b338eab7f3c2a15ac1c032d61979bebcc67be111d8955",
|
|
59
|
+
"ffmpeg-v21.0.0-alpha.1-win32-ia32.zip": "c99978aaee540401babe6f4c8b0f924cabdd6ae8ee22bbb5c661534e29663a8a",
|
|
60
|
+
"ffmpeg-v21.0.0-alpha.1-win32-x64.zip": "e06ceb1c9fcf5a36c19a9cf7bae7b573148d30b0e85160a438efad0f5d124536",
|
|
61
|
+
"hunspell_dictionaries.zip": "738d441f2c3a7cd91cbce7d27d3e843f9abe8d8516b531d464d89bf1108931e4",
|
|
62
|
+
"libcxx-objects-v21.0.0-alpha.1-linux-arm64.zip": "eaebeab01d765f0ea3bbd3b9ad72d107409ba9109a0fd1449d65597d00fa664c",
|
|
63
|
+
"libcxx-objects-v21.0.0-alpha.1-linux-armv7l.zip": "266bd102a69184c7fc534b3101fa9981926f1237ad4441183ebf6eb3085640c3",
|
|
64
|
+
"libcxx-objects-v21.0.0-alpha.1-linux-x64.zip": "82d332e65beb6b6acb4c2b2c7a084ce8be81e40434f83f2f31cf66dfa37ab914",
|
|
65
|
+
"libcxx_headers.zip": "b48ac685627e167b4ca4f74f075ad985b9f8495b3b972e1b930b09fcc562826d",
|
|
66
|
+
"libcxxabi_headers.zip": "84ec2e1310532eae3efeca55fba34418fff286f53bd336125730ac9383644909",
|
|
67
|
+
"mksnapshot-v21.0.0-alpha.1-darwin-arm64.zip": "25e531378c798894934dfe375d137475a80f73d1ef3d4c00f6c91afb8b1fde4b",
|
|
68
|
+
"mksnapshot-v21.0.0-alpha.1-darwin-x64.zip": "52a9f0bd5ece7acf30923f2dca3ff15e64a6d948657958c562a833a3aaaa6b3b",
|
|
69
|
+
"mksnapshot-v21.0.0-alpha.1-linux-arm64-x64.zip": "a5ef8287c72b90b565a1f9396a988db00cbc6b6feffa603eb3de011ecc6cd465",
|
|
70
|
+
"mksnapshot-v21.0.0-alpha.1-linux-armv7l-x64.zip": "247bdcea833533cfb20ca1c6246736e019eb286d8e09774a50d83b1eacb59c4c",
|
|
71
|
+
"mksnapshot-v21.0.0-alpha.1-linux-x64.zip": "68572a1377a7ab34f0d219f7cc7baea71fb525c3b32c42318231968aea1966e5",
|
|
72
|
+
"mksnapshot-v21.0.0-alpha.1-mas-arm64.zip": "062707b7d6792fde9c86939088e77d3a8452f0b0b77ac6839b1eb723ae3ff1a4",
|
|
73
|
+
"mksnapshot-v21.0.0-alpha.1-mas-x64.zip": "f50166f6c231f40c5547e8cc9bceff3d1ba84c47819b05ca3a4def71a175d7c9",
|
|
74
|
+
"mksnapshot-v21.0.0-alpha.1-win32-arm64-x64.zip": "9642ef00591c9570ab004297a2162ebf73dd9c081d8cb1670e79d485dc3968f5",
|
|
75
|
+
"mksnapshot-v21.0.0-alpha.1-win32-ia32.zip": "ca307ae5ea8615a63c3c5843dbdddc99d59ca5da2b151d58a38d8fa9118d52a4",
|
|
76
|
+
"mksnapshot-v21.0.0-alpha.1-win32-x64.zip": "8203bfde16a1b354f808a7f8bb9038182de6be4b054f6e623039cdbf7092e3d7"
|
|
75
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 21.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
|
|
@@ -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
|
|
@@ -2831,6 +2836,8 @@ declare namespace Electron {
|
|
|
2831
2836
|
setSize(width: number, height: number, animate?: boolean): void;
|
|
2832
2837
|
/**
|
|
2833
2838
|
* Makes the window not show in the taskbar.
|
|
2839
|
+
*
|
|
2840
|
+
* @platform darwin,win32
|
|
2834
2841
|
*/
|
|
2835
2842
|
setSkipTaskbar(skip: boolean): void;
|
|
2836
2843
|
/**
|
|
@@ -6978,6 +6985,137 @@ declare namespace Electron {
|
|
|
6978
6985
|
data: (string) | (Buffer);
|
|
6979
6986
|
}
|
|
6980
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
|
+
|
|
6981
7119
|
interface Rectangle {
|
|
6982
7120
|
|
|
6983
7121
|
// Docs: https://electronjs.org/docs/api/structures/rectangle
|
|
@@ -11294,16 +11432,13 @@ declare namespace Electron {
|
|
|
11294
11432
|
/**
|
|
11295
11433
|
* Resolves with the generated PDF data.
|
|
11296
11434
|
*
|
|
11297
|
-
* Prints window's web page as PDF
|
|
11298
|
-
* settings.
|
|
11435
|
+
* Prints the window's web page as PDF.
|
|
11299
11436
|
*
|
|
11300
11437
|
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
11301
11438
|
*
|
|
11302
|
-
* By default, an empty `options` will be regarded as:
|
|
11303
|
-
*
|
|
11304
|
-
* Use `page-break-before: always;` CSS style to force to print to a new page.
|
|
11305
|
-
*
|
|
11306
11439
|
* An example of `webContents.printToPDF`:
|
|
11440
|
+
*
|
|
11441
|
+
* See Page.printToPdf for more information.
|
|
11307
11442
|
*/
|
|
11308
11443
|
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
11309
11444
|
/**
|
|
@@ -12698,7 +12833,7 @@ declare namespace Electron {
|
|
|
12698
12833
|
/**
|
|
12699
12834
|
* The scale factor to add the image representation for.
|
|
12700
12835
|
*/
|
|
12701
|
-
scaleFactor
|
|
12836
|
+
scaleFactor?: number;
|
|
12702
12837
|
/**
|
|
12703
12838
|
* Defaults to 0. Required if a bitmap buffer is specified as `buffer`.
|
|
12704
12839
|
*/
|
|
@@ -15008,39 +15143,51 @@ declare namespace Electron {
|
|
|
15008
15143
|
|
|
15009
15144
|
interface PrintToPDFOptions {
|
|
15010
15145
|
/**
|
|
15011
|
-
*
|
|
15012
|
-
*/
|
|
15013
|
-
headerFooter?: Record<string, string>;
|
|
15014
|
-
/**
|
|
15015
|
-
* `true` for landscape, `false` for portrait.
|
|
15146
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
15016
15147
|
*/
|
|
15017
15148
|
landscape?: boolean;
|
|
15018
15149
|
/**
|
|
15019
|
-
*
|
|
15020
|
-
* margin, and 2 for minimum margin. and `width` in microns.
|
|
15150
|
+
* Whether to display header and footer. Defaults to false.
|
|
15021
15151
|
*/
|
|
15022
|
-
|
|
15152
|
+
displayHeaderFooter?: boolean;
|
|
15023
15153
|
/**
|
|
15024
|
-
*
|
|
15154
|
+
* Whether to print background graphics. Defaults to false.
|
|
15025
15155
|
*/
|
|
15026
|
-
|
|
15156
|
+
printBackground?: boolean;
|
|
15027
15157
|
/**
|
|
15028
|
-
*
|
|
15158
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
15029
15159
|
*/
|
|
15030
|
-
|
|
15160
|
+
scale?: number;
|
|
15031
15161
|
/**
|
|
15032
|
-
* Specify page size of the generated PDF. Can be `
|
|
15033
|
-
* `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`.
|
|
15034
15165
|
*/
|
|
15035
15166
|
pageSize?: (string) | (Size);
|
|
15167
|
+
margins?: Margins;
|
|
15036
15168
|
/**
|
|
15037
|
-
*
|
|
15169
|
+
* Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string,
|
|
15170
|
+
* which means print all pages.
|
|
15038
15171
|
*/
|
|
15039
|
-
|
|
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;
|
|
15040
15186
|
/**
|
|
15041
|
-
* 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.
|
|
15042
15189
|
*/
|
|
15043
|
-
|
|
15190
|
+
preferCSSPageSize?: boolean;
|
|
15044
15191
|
}
|
|
15045
15192
|
|
|
15046
15193
|
interface Privileges {
|
|
@@ -15775,7 +15922,7 @@ declare namespace Electron {
|
|
|
15775
15922
|
footer?: string;
|
|
15776
15923
|
/**
|
|
15777
15924
|
* Specify page size of the printed document. Can be `A3`, `A4`, `A5`, `Legal`,
|
|
15778
|
-
* `Letter`, `Tabloid` or an Object containing `height`.
|
|
15925
|
+
* `Letter`, `Tabloid` or an Object containing `height` and `width`.
|
|
15779
15926
|
*/
|
|
15780
15927
|
pageSize?: (string) | (Size);
|
|
15781
15928
|
}
|
|
@@ -16453,6 +16600,7 @@ declare namespace Electron {
|
|
|
16453
16600
|
powerMonitor: PowerMonitor;
|
|
16454
16601
|
powerSaveBlocker: PowerSaveBlocker;
|
|
16455
16602
|
protocol: Protocol;
|
|
16603
|
+
pushNotifications: PushNotifications;
|
|
16456
16604
|
safeStorage: SafeStorage;
|
|
16457
16605
|
screen: Screen;
|
|
16458
16606
|
session: typeof Session;
|
|
@@ -16744,6 +16892,8 @@ declare namespace Electron {
|
|
|
16744
16892
|
type PowerSaveBlocker = Electron.PowerSaveBlocker;
|
|
16745
16893
|
const protocol: Protocol;
|
|
16746
16894
|
type Protocol = Electron.Protocol;
|
|
16895
|
+
const pushNotifications: PushNotifications;
|
|
16896
|
+
type PushNotifications = Electron.PushNotifications;
|
|
16747
16897
|
const safeStorage: SafeStorage;
|
|
16748
16898
|
type SafeStorage = Electron.SafeStorage;
|
|
16749
16899
|
const screen: Screen;
|
|
@@ -17281,6 +17431,8 @@ declare namespace Electron {
|
|
|
17281
17431
|
type PowerSaveBlocker = Electron.PowerSaveBlocker;
|
|
17282
17432
|
const protocol: Protocol;
|
|
17283
17433
|
type Protocol = Electron.Protocol;
|
|
17434
|
+
const pushNotifications: PushNotifications;
|
|
17435
|
+
type PushNotifications = Electron.PushNotifications;
|
|
17284
17436
|
const safeStorage: SafeStorage;
|
|
17285
17437
|
type SafeStorage = Electron.SafeStorage;
|
|
17286
17438
|
const screen: Screen;
|
|
@@ -17556,6 +17708,7 @@ declare namespace Electron {
|
|
|
17556
17708
|
const powerMonitor: PowerMonitor;
|
|
17557
17709
|
const powerSaveBlocker: PowerSaveBlocker;
|
|
17558
17710
|
const protocol: Protocol;
|
|
17711
|
+
const pushNotifications: PushNotifications;
|
|
17559
17712
|
const safeStorage: SafeStorage;
|
|
17560
17713
|
const screen: Screen;
|
|
17561
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.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",
|