electron 17.0.0 β 18.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 +2 -2
- package/checksums.json +78 -78
- package/electron.d.ts +105 -61
- 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.com/invite/
|
|
5
|
+
[](https://discord.com/invite/APGC3k5yaH)
|
|
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/).
|
|
@@ -80,7 +80,7 @@ const child = proc.spawn(electron)
|
|
|
80
80
|
|
|
81
81
|
### Mirrors
|
|
82
82
|
|
|
83
|
-
- [China](https://
|
|
83
|
+
- [China](https://npmmirror.com/mirrors/electron)
|
|
84
84
|
|
|
85
85
|
## Documentation Translations
|
|
86
86
|
|
package/checksums.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"chromedriver-
|
|
13
|
-
"electron-api.json": "
|
|
14
|
-
"electron-
|
|
15
|
-
"electron-
|
|
16
|
-
"electron-
|
|
17
|
-
"electron-
|
|
18
|
-
"electron-
|
|
19
|
-
"electron-
|
|
20
|
-
"electron-
|
|
21
|
-
"electron-
|
|
22
|
-
"electron-
|
|
23
|
-
"electron-
|
|
24
|
-
"electron-
|
|
25
|
-
"electron-
|
|
26
|
-
"electron-
|
|
27
|
-
"electron-
|
|
28
|
-
"electron-
|
|
29
|
-
"electron-
|
|
30
|
-
"electron-
|
|
31
|
-
"electron-
|
|
32
|
-
"electron-
|
|
33
|
-
"electron-
|
|
34
|
-
"electron-
|
|
35
|
-
"electron-
|
|
36
|
-
"electron-
|
|
37
|
-
"electron-
|
|
38
|
-
"electron-
|
|
39
|
-
"electron-
|
|
40
|
-
"electron-
|
|
41
|
-
"electron-
|
|
42
|
-
"electron-
|
|
43
|
-
"electron-
|
|
44
|
-
"electron-
|
|
45
|
-
"electron-
|
|
46
|
-
"electron-
|
|
47
|
-
"electron-
|
|
48
|
-
"electron-
|
|
49
|
-
"electron-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"ffmpeg-
|
|
62
|
-
"hunspell_dictionaries.zip": "
|
|
63
|
-
"libcxx-objects-
|
|
64
|
-
"libcxx-objects-
|
|
65
|
-
"libcxx-objects-
|
|
66
|
-
"libcxx-objects-
|
|
67
|
-
"libcxx_headers.zip": "
|
|
68
|
-
"libcxxabi_headers.zip": "
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
77
|
-
"mksnapshot-
|
|
78
|
-
"mksnapshot-
|
|
79
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v18.0.0-alpha.1-darwin-arm64.zip": "17b5602bd34e72f1c4e2029af855365c1dba0cc29d50050f68c95c3792ff76d9",
|
|
3
|
+
"chromedriver-v18.0.0-alpha.1-darwin-x64.zip": "3a931965503b8045af8daab371340925db6dc534748112a9ffba03fe2457c6b9",
|
|
4
|
+
"chromedriver-v18.0.0-alpha.1-linux-arm64.zip": "bd5491f2c5a847d65e5d7da6e65c7e3c747f2c383dd03509f609113d430c8342",
|
|
5
|
+
"chromedriver-v18.0.0-alpha.1-linux-armv7l.zip": "b59c2e6f38f4247e16397c8534823e0dd817cde0994283644ca2741abd1d2735",
|
|
6
|
+
"chromedriver-v18.0.0-alpha.1-linux-ia32.zip": "e71889c251ec9b0ba04676b45480d9a8a156631493620763e67ecde2c1a7f60c",
|
|
7
|
+
"chromedriver-v18.0.0-alpha.1-linux-x64.zip": "2468edca42f859d196189e2cb81399fa85ca81761b0854adc0ebac8618e1fe73",
|
|
8
|
+
"chromedriver-v18.0.0-alpha.1-mas-arm64.zip": "13692796992a0b4664d0282f4bfb40c71871c77f10c9ae8f537104934e5a698f",
|
|
9
|
+
"chromedriver-v18.0.0-alpha.1-mas-x64.zip": "d20afd55cea9c7b30554d8cb4d2efc1f40aa268395bf8bde239d1075b28b9125",
|
|
10
|
+
"chromedriver-v18.0.0-alpha.1-win32-arm64.zip": "c5e399fef310441008b4743bb4a6fe413d47bf7d78f21fe6da23745dfe20e911",
|
|
11
|
+
"chromedriver-v18.0.0-alpha.1-win32-ia32.zip": "0952d5c1f372733ec23b9c2b5b9966b452b52e1765e275adad9319544513c07e",
|
|
12
|
+
"chromedriver-v18.0.0-alpha.1-win32-x64.zip": "574f9e2948e36b1808ff9e93c32d3ab26a7f03de9931f3d1a877a5b1ecf945e0",
|
|
13
|
+
"electron-api.json": "969e6752b08e446edfdcd2c64f533215a901d971385d7d4b40703732fe41d74e",
|
|
14
|
+
"electron-v18.0.0-alpha.1-darwin-arm64-dsym.zip": "8e9cce279ae33c94505d4fdcd92ee5ac8cb43be05530a208d1d68120b50ac259",
|
|
15
|
+
"electron-v18.0.0-alpha.1-darwin-arm64-symbols.zip": "929fa8967898efb8c8e8ac94a333eef6de5a69a2906634a531bcd68539e73db7",
|
|
16
|
+
"electron-v18.0.0-alpha.1-darwin-arm64.zip": "aa3f91aabacfc2c70c7fbb100922049263fb7ea608187e51c744e86958630c98",
|
|
17
|
+
"electron-v18.0.0-alpha.1-darwin-x64-dsym.zip": "a4c4f6c1e247d4f1c4d54a320fa2b72785dfe7667dbfd6ca40a77a3e698c7f47",
|
|
18
|
+
"electron-v18.0.0-alpha.1-darwin-x64-symbols.zip": "e75be99540e1117799383659f666be3d90cf792697e3835f10f8ca5265a136fc",
|
|
19
|
+
"electron-v18.0.0-alpha.1-darwin-x64.zip": "a5ebe02fa44da6ee40391231e707d9143cf95c392a730fb0a0b8bf484e135b80",
|
|
20
|
+
"electron-v18.0.0-alpha.1-linux-arm64-debug.zip": "18375a591c6770ca7e4e61f90a2aa3aa21293184350b5ff844e085bdacdc0ff7",
|
|
21
|
+
"electron-v18.0.0-alpha.1-linux-arm64-symbols.zip": "aaf17920fc229025c0bf7ab1bd863f23542cd4d430e36332f7472711988bebcd",
|
|
22
|
+
"electron-v18.0.0-alpha.1-linux-arm64.zip": "c46bc7e8c4ab591206ce6a023ddb436cffbb17d01ca2e6b496eb71ad67a9886f",
|
|
23
|
+
"electron-v18.0.0-alpha.1-linux-armv7l-debug.zip": "18375a591c6770ca7e4e61f90a2aa3aa21293184350b5ff844e085bdacdc0ff7",
|
|
24
|
+
"electron-v18.0.0-alpha.1-linux-armv7l-symbols.zip": "b04974abc393fbb4933e489133d1d818bc692db563d5a0af10db6373b004b5af",
|
|
25
|
+
"electron-v18.0.0-alpha.1-linux-armv7l.zip": "68970abeb35b90b15f7a4399b0e5cfd7d9c96faad6183da1a12e1a532186e4fe",
|
|
26
|
+
"electron-v18.0.0-alpha.1-linux-ia32-debug.zip": "18375a591c6770ca7e4e61f90a2aa3aa21293184350b5ff844e085bdacdc0ff7",
|
|
27
|
+
"electron-v18.0.0-alpha.1-linux-ia32-symbols.zip": "4f8aaddd1413454317c761b1ad1120486a5a21b0d0d5db02b8efab46b01c80b4",
|
|
28
|
+
"electron-v18.0.0-alpha.1-linux-ia32.zip": "a0b6156a098e241d606024d277a8327813d4ff45f8a5594718a0bb6d055b059d",
|
|
29
|
+
"electron-v18.0.0-alpha.1-linux-x64-debug.zip": "836b3010a62481ef3a6b218e99d40125b560c98e7c469fb4568574db344fcb9a",
|
|
30
|
+
"electron-v18.0.0-alpha.1-linux-x64-symbols.zip": "2994956b9906c39574065298b2d131931cba5164ce38478fbef4f17ffdf7575e",
|
|
31
|
+
"electron-v18.0.0-alpha.1-linux-x64.zip": "2dcc10b6635406cf778f10310f275e696b042e9e1f021979224283b744e112b7",
|
|
32
|
+
"electron-v18.0.0-alpha.1-mas-arm64-dsym.zip": "b5d8785d9bc8b1a6150a35cc60efa59467b43c3e9eb86d79db105300d073a6c5",
|
|
33
|
+
"electron-v18.0.0-alpha.1-mas-arm64-symbols.zip": "5cad708702efa94dbd8d461de80ab409453c156b34240f85a14627ce1a28bad5",
|
|
34
|
+
"electron-v18.0.0-alpha.1-mas-arm64.zip": "c75238f03bcbdf73423a19e640acf47e99eabdaddd188c94d6369d0379768dc7",
|
|
35
|
+
"electron-v18.0.0-alpha.1-mas-x64-dsym.zip": "02690a48ec645238d70588d6a2f52b77abe2b91b726a5085e203aee1cff62574",
|
|
36
|
+
"electron-v18.0.0-alpha.1-mas-x64-symbols.zip": "c51546a0cc9f5c52ab7c861ccb05cb177c13767c9a7bf5dde100d8268c21d470",
|
|
37
|
+
"electron-v18.0.0-alpha.1-mas-x64.zip": "ced3cce895f7a0c40bf892d42d9d2a5107df52e897eea4178b62d883fdbdf06e",
|
|
38
|
+
"electron-v18.0.0-alpha.1-win32-arm64-pdb.zip": "e864a1ca8cd721eb6f617ca9f2708589f89f15b04e4eae1fb51cc8206df11124",
|
|
39
|
+
"electron-v18.0.0-alpha.1-win32-arm64-symbols.zip": "0b6a04180ab9f1c60fdfb89e2f370471b8e6fc0acc6dbaa44216275285455dc0",
|
|
40
|
+
"electron-v18.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
41
|
+
"electron-v18.0.0-alpha.1-win32-arm64.zip": "7fbe01a756399eb54cf65eaecc5eae264d8d2fbec3cfbc9f070f95cf5de748a3",
|
|
42
|
+
"electron-v18.0.0-alpha.1-win32-ia32-pdb.zip": "789bfb9eec4c8695a97ae64b20855ad07770d3b0123b43ff2d7969b46b114a45",
|
|
43
|
+
"electron-v18.0.0-alpha.1-win32-ia32-symbols.zip": "89f29a5d23bd5dde86abbc90d0bb40c51216bada30893ebf6b3dd3f0089296ca",
|
|
44
|
+
"electron-v18.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
45
|
+
"electron-v18.0.0-alpha.1-win32-ia32.zip": "183c879ea70e24a567e1c160e9f5b6fcdd355156d380a055e4e55d434e9cee01",
|
|
46
|
+
"electron-v18.0.0-alpha.1-win32-x64-pdb.zip": "f4bbcfc74508abd0aa9b6a9f74705c6603f60ba064a1def4168dc26bd4bef4ed",
|
|
47
|
+
"electron-v18.0.0-alpha.1-win32-x64-symbols.zip": "023e5f5b4ed4482fb0077f245324a1bb9aed1a8360b2d6fbf98eabe31b746eef",
|
|
48
|
+
"electron-v18.0.0-alpha.1-win32-x64-toolchain-profile.zip": "834c0069d539f7463da9a346aabc18033904aaba4672fd0e7cdcfae3bb679ed4",
|
|
49
|
+
"electron-v18.0.0-alpha.1-win32-x64.zip": "0c831dc89bb562b807e7fda94f59b8e58bdc7c726a0f858293cc51a32af937e5",
|
|
50
|
+
"electron.d.ts": "842d2aace1ca89410ca682047760f64977350d8a935a407b65727f0c76453cc3",
|
|
51
|
+
"ffmpeg-v18.0.0-alpha.1-darwin-arm64.zip": "0739b99836bb4a3d76f1fdd9a5b853cf0f5274e7f1469e707739fc844ab8b0fb",
|
|
52
|
+
"ffmpeg-v18.0.0-alpha.1-darwin-x64.zip": "8755e967e7f60259af54e648fb0abca528862a2e1160baf1a9c4d5113df93bf0",
|
|
53
|
+
"ffmpeg-v18.0.0-alpha.1-linux-arm64.zip": "87a6f36f5a8be7756232cb988c3504da86ee729d0f4c4cd434cc0119c6379fc2",
|
|
54
|
+
"ffmpeg-v18.0.0-alpha.1-linux-armv7l.zip": "f3d243661455ec55e15c6458600b56d6e86d4dc5fc3774ea8fc82a3921959913",
|
|
55
|
+
"ffmpeg-v18.0.0-alpha.1-linux-ia32.zip": "7fc940a3d6b7426dd9cb0a4ba9a67774b93253374e8a101a56ae1831319c92bc",
|
|
56
|
+
"ffmpeg-v18.0.0-alpha.1-linux-x64.zip": "4fa7a3210e6f20f463dfe31a677945a290ad18063797bd18c1c7b00859d0ee2f",
|
|
57
|
+
"ffmpeg-v18.0.0-alpha.1-mas-arm64.zip": "0739b99836bb4a3d76f1fdd9a5b853cf0f5274e7f1469e707739fc844ab8b0fb",
|
|
58
|
+
"ffmpeg-v18.0.0-alpha.1-mas-x64.zip": "8755e967e7f60259af54e648fb0abca528862a2e1160baf1a9c4d5113df93bf0",
|
|
59
|
+
"ffmpeg-v18.0.0-alpha.1-win32-arm64.zip": "00eeccd662e25d436976b032fe753dadd781d3ee2b00707e4ea911d21b52cc8f",
|
|
60
|
+
"ffmpeg-v18.0.0-alpha.1-win32-ia32.zip": "e1e9e7d2a78b5ed16fa4b641e87223289b717e8123767e1d9b930ccab33bdfc5",
|
|
61
|
+
"ffmpeg-v18.0.0-alpha.1-win32-x64.zip": "f443a9a7ebdaed87b7fc27da5c36ed10939d85c40addf86f7b07d26d54582d60",
|
|
62
|
+
"hunspell_dictionaries.zip": "c5df4fd9a271285d5d66bc7f1a57a73c33fd3306dbc0d200eb784dd16d48b915",
|
|
63
|
+
"libcxx-objects-v18.0.0-alpha.1-linux-arm64.zip": "5b8e5ff402a3dc86db887158033a6c22c750c0ebc397a45cafc7c539e10dab56",
|
|
64
|
+
"libcxx-objects-v18.0.0-alpha.1-linux-armv7l.zip": "40a0215056f874e9358afd2e6c93b404421527cfd2150bdb66659c14b8c56e87",
|
|
65
|
+
"libcxx-objects-v18.0.0-alpha.1-linux-ia32.zip": "71769aebdf58da433d6367684db12c88f4c7ac4d2722cfe0d62463b2ecf00b19",
|
|
66
|
+
"libcxx-objects-v18.0.0-alpha.1-linux-x64.zip": "1468341b9187283ff47706caa1355d67d2c94aea7dd39feb7135f54ea3aaf06c",
|
|
67
|
+
"libcxx_headers.zip": "e601d7026d1c9db5db55c8c55787447d8f819d450567234f4a37cdd47e564056",
|
|
68
|
+
"libcxxabi_headers.zip": "4f5740d38b223e2626dcdbf3dce933a85bd32732e076893b81b3494ab63714f7",
|
|
69
|
+
"mksnapshot-v18.0.0-alpha.1-darwin-arm64.zip": "aec83192ce89a038ed94a5516ff0e7dd5963d11d62c657712ef35ba245d6004e",
|
|
70
|
+
"mksnapshot-v18.0.0-alpha.1-darwin-x64.zip": "ea6cefa19a4baba87dbbcd299bdfac1740454b83e77861b5a6e020e56892609e",
|
|
71
|
+
"mksnapshot-v18.0.0-alpha.1-linux-arm64-x64.zip": "7288c86da8dfecd5cef3425585bb2db1305be5db86010fadc8726671f19c2816",
|
|
72
|
+
"mksnapshot-v18.0.0-alpha.1-linux-armv7l-x64.zip": "92d1eb5038868a813c9f085ae3a22a65b5e014130a4584c8ff18aee4ec8fd561",
|
|
73
|
+
"mksnapshot-v18.0.0-alpha.1-linux-ia32.zip": "adc89298165bcb534e41076f0a242bd14cfe5d8758da260c562929055fa02fac",
|
|
74
|
+
"mksnapshot-v18.0.0-alpha.1-linux-x64.zip": "acef3193bba331b003f88b0d84b495238c3615df2f118381ab887f1079f46115",
|
|
75
|
+
"mksnapshot-v18.0.0-alpha.1-mas-arm64.zip": "4b8b9c6bbeca91cdfc4127e0b49c137dc0dea8da71512cf4a2e2b36de1d498c8",
|
|
76
|
+
"mksnapshot-v18.0.0-alpha.1-mas-x64.zip": "8d979e4d80cee249afa71dda1ede3bd40d7395b0552d0b1c94fc1c5f46fb684f",
|
|
77
|
+
"mksnapshot-v18.0.0-alpha.1-win32-arm64-x64.zip": "607d82c6b09782f2b6a4be2a47e6a17c2a0be36a38b2576ee0e9aee185c2cadd",
|
|
78
|
+
"mksnapshot-v18.0.0-alpha.1-win32-ia32.zip": "ee4bea7961b45ea18c1803679fb4c2aac218f4b92e265acf9c0cb2f0ddc636c3",
|
|
79
|
+
"mksnapshot-v18.0.0-alpha.1-win32-x64.zip": "8b0d77c1d0b2ffe93b66fce5a1ac1ea31549b6b2baa71c5675c0b53dbf9e804c"
|
|
80
80
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 18.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
|
|
@@ -314,6 +314,35 @@ declare namespace Electron {
|
|
|
314
314
|
once(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
315
315
|
addListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
316
316
|
removeListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
317
|
+
/**
|
|
318
|
+
* This event will be emitted within the second instance during the call to
|
|
319
|
+
* `app.requestSingleInstanceLock()`, when the first instance calls the
|
|
320
|
+
* `ackCallback` provided by the `second-instance` event handler.
|
|
321
|
+
*/
|
|
322
|
+
on(event: 'first-instance-ack', listener: (event: Event,
|
|
323
|
+
/**
|
|
324
|
+
* A JSON object of additional data passed from the first instance, in response to
|
|
325
|
+
* the first instance's `second-instance` event.
|
|
326
|
+
*/
|
|
327
|
+
additionalData: unknown) => void): this;
|
|
328
|
+
once(event: 'first-instance-ack', listener: (event: Event,
|
|
329
|
+
/**
|
|
330
|
+
* A JSON object of additional data passed from the first instance, in response to
|
|
331
|
+
* the first instance's `second-instance` event.
|
|
332
|
+
*/
|
|
333
|
+
additionalData: unknown) => void): this;
|
|
334
|
+
addListener(event: 'first-instance-ack', listener: (event: Event,
|
|
335
|
+
/**
|
|
336
|
+
* A JSON object of additional data passed from the first instance, in response to
|
|
337
|
+
* the first instance's `second-instance` event.
|
|
338
|
+
*/
|
|
339
|
+
additionalData: unknown) => void): this;
|
|
340
|
+
removeListener(event: 'first-instance-ack', listener: (event: Event,
|
|
341
|
+
/**
|
|
342
|
+
* A JSON object of additional data passed from the first instance, in response to
|
|
343
|
+
* the first instance's `second-instance` event.
|
|
344
|
+
*/
|
|
345
|
+
additionalData: unknown) => void): this;
|
|
317
346
|
/**
|
|
318
347
|
* Emitted whenever there is a GPU info update.
|
|
319
348
|
*/
|
|
@@ -499,6 +528,19 @@ declare namespace Electron {
|
|
|
499
528
|
* **Note:** If the second instance is started by a different user than the first,
|
|
500
529
|
* the `argv` array will not include the arguments.
|
|
501
530
|
*
|
|
531
|
+
* **Note:** `ackCallback` allows the user to send data back to the second instance
|
|
532
|
+
* during the `app.requestSingleInstanceLock()` flow. This callback can be used for
|
|
533
|
+
* cases where the second instance needs to obtain additional information from the
|
|
534
|
+
* first instance before quitting.
|
|
535
|
+
*
|
|
536
|
+
* Currently, the limit on the message size is kMaxMessageLength, or around 32kB.
|
|
537
|
+
* To be safe, keep the amount of data passed to 31kB at most.
|
|
538
|
+
*
|
|
539
|
+
* In order to call the callback, `event.preventDefault()` must be called, first.
|
|
540
|
+
* If the callback is not called in either case, `null` will be sent back. If
|
|
541
|
+
* `event.preventDefault()` is not called, but `ackCallback` is called by the user
|
|
542
|
+
* in the event, then the behaviour is undefined.
|
|
543
|
+
*
|
|
502
544
|
* This event is guaranteed to be emitted after the `ready` event of `app` gets
|
|
503
545
|
* emitted.
|
|
504
546
|
*
|
|
@@ -517,7 +559,11 @@ declare namespace Electron {
|
|
|
517
559
|
/**
|
|
518
560
|
* A JSON object of additional data passed from the second instance
|
|
519
561
|
*/
|
|
520
|
-
additionalData: unknown
|
|
562
|
+
additionalData: unknown,
|
|
563
|
+
/**
|
|
564
|
+
* A function that can be used to send data back to the second instance
|
|
565
|
+
*/
|
|
566
|
+
ackCallback: unknown) => void): this;
|
|
521
567
|
once(event: 'second-instance', listener: (event: Event,
|
|
522
568
|
/**
|
|
523
569
|
* An array of the second instance's command line arguments
|
|
@@ -530,7 +576,11 @@ declare namespace Electron {
|
|
|
530
576
|
/**
|
|
531
577
|
* A JSON object of additional data passed from the second instance
|
|
532
578
|
*/
|
|
533
|
-
additionalData: unknown
|
|
579
|
+
additionalData: unknown,
|
|
580
|
+
/**
|
|
581
|
+
* A function that can be used to send data back to the second instance
|
|
582
|
+
*/
|
|
583
|
+
ackCallback: unknown) => void): this;
|
|
534
584
|
addListener(event: 'second-instance', listener: (event: Event,
|
|
535
585
|
/**
|
|
536
586
|
* An array of the second instance's command line arguments
|
|
@@ -543,7 +593,11 @@ declare namespace Electron {
|
|
|
543
593
|
/**
|
|
544
594
|
* A JSON object of additional data passed from the second instance
|
|
545
595
|
*/
|
|
546
|
-
additionalData: unknown
|
|
596
|
+
additionalData: unknown,
|
|
597
|
+
/**
|
|
598
|
+
* A function that can be used to send data back to the second instance
|
|
599
|
+
*/
|
|
600
|
+
ackCallback: unknown) => void): this;
|
|
547
601
|
removeListener(event: 'second-instance', listener: (event: Event,
|
|
548
602
|
/**
|
|
549
603
|
* An array of the second instance's command line arguments
|
|
@@ -556,7 +610,11 @@ declare namespace Electron {
|
|
|
556
610
|
/**
|
|
557
611
|
* A JSON object of additional data passed from the second instance
|
|
558
612
|
*/
|
|
559
|
-
additionalData: unknown
|
|
613
|
+
additionalData: unknown,
|
|
614
|
+
/**
|
|
615
|
+
* A function that can be used to send data back to the second instance
|
|
616
|
+
*/
|
|
617
|
+
ackCallback: unknown) => void): this;
|
|
560
618
|
/**
|
|
561
619
|
* Emitted when a client certificate is requested.
|
|
562
620
|
*
|
|
@@ -3036,44 +3094,6 @@ declare namespace Electron {
|
|
|
3036
3094
|
readonly webContents: WebContents;
|
|
3037
3095
|
}
|
|
3038
3096
|
|
|
3039
|
-
class BrowserWindowProxy {
|
|
3040
|
-
|
|
3041
|
-
// Docs: https://electronjs.org/docs/api/browser-window-proxy
|
|
3042
|
-
|
|
3043
|
-
/**
|
|
3044
|
-
* Removes focus from the child window.
|
|
3045
|
-
*/
|
|
3046
|
-
blur(): void;
|
|
3047
|
-
/**
|
|
3048
|
-
* Forcefully closes the child window without calling its unload event.
|
|
3049
|
-
*/
|
|
3050
|
-
close(): void;
|
|
3051
|
-
/**
|
|
3052
|
-
* Evaluates the code in the child window.
|
|
3053
|
-
*/
|
|
3054
|
-
eval(code: string): void;
|
|
3055
|
-
/**
|
|
3056
|
-
* Focuses the child window (brings the window to front).
|
|
3057
|
-
*/
|
|
3058
|
-
focus(): void;
|
|
3059
|
-
/**
|
|
3060
|
-
* Sends a message to the child window with the specified origin or `*` for no
|
|
3061
|
-
* origin preference.
|
|
3062
|
-
*
|
|
3063
|
-
* In addition to these methods, the child window implements `window.opener` object
|
|
3064
|
-
* with no properties and a single method.
|
|
3065
|
-
*/
|
|
3066
|
-
postMessage(message: any, targetOrigin: string): void;
|
|
3067
|
-
/**
|
|
3068
|
-
* Invokes the print dialog on the child window.
|
|
3069
|
-
*/
|
|
3070
|
-
print(): void;
|
|
3071
|
-
/**
|
|
3072
|
-
* A `boolean` that is set to true after the child window gets closed.
|
|
3073
|
-
*/
|
|
3074
|
-
closed: boolean;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
3097
|
interface Certificate {
|
|
3078
3098
|
|
|
3079
3099
|
// Docs: https://electronjs.org/docs/api/structures/certificate
|
|
@@ -4338,8 +4358,8 @@ declare namespace Electron {
|
|
|
4338
4358
|
* However, the request remains active until either the application becomes active
|
|
4339
4359
|
* or the request is canceled.
|
|
4340
4360
|
*
|
|
4341
|
-
* **
|
|
4342
|
-
*
|
|
4361
|
+
* **Note:** This method can only be used while the app is not focused; when the
|
|
4362
|
+
* app is focused it will return -1.
|
|
4343
4363
|
*
|
|
4344
4364
|
* @platform darwin
|
|
4345
4365
|
*/
|
|
@@ -4926,6 +4946,14 @@ declare namespace Electron {
|
|
|
4926
4946
|
* An `Integer` indicating the HTTP protocol minor version number.
|
|
4927
4947
|
*/
|
|
4928
4948
|
httpVersionMinor: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* A `string[]` containing the raw HTTP response headers exactly as they were
|
|
4951
|
+
* received. The keys and values are in the same list. It is not a list of tuples.
|
|
4952
|
+
* So, the even-numbered offsets are key values, and the odd-numbered offsets are
|
|
4953
|
+
* the associated values. Header names are not lowercased, and duplicates are not
|
|
4954
|
+
* merged.
|
|
4955
|
+
*/
|
|
4956
|
+
rawHeaders: string[];
|
|
4929
4957
|
/**
|
|
4930
4958
|
* An `Integer` indicating the HTTP response status code.
|
|
4931
4959
|
*/
|
|
@@ -9566,6 +9594,13 @@ declare namespace Electron {
|
|
|
9566
9594
|
* Input properties.
|
|
9567
9595
|
*/
|
|
9568
9596
|
input: Input) => void): this;
|
|
9597
|
+
/**
|
|
9598
|
+
* Emitted when the `WebContents` loses focus.
|
|
9599
|
+
*/
|
|
9600
|
+
on(event: 'blur', listener: Function): this;
|
|
9601
|
+
once(event: 'blur', listener: Function): this;
|
|
9602
|
+
addListener(event: 'blur', listener: Function): this;
|
|
9603
|
+
removeListener(event: 'blur', listener: Function): this;
|
|
9569
9604
|
/**
|
|
9570
9605
|
* Emitted when failed to verify the `certificate` for `url`.
|
|
9571
9606
|
*
|
|
@@ -10182,6 +10217,13 @@ declare namespace Electron {
|
|
|
10182
10217
|
once(event: 'enter-html-full-screen', listener: Function): this;
|
|
10183
10218
|
addListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
10184
10219
|
removeListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
10220
|
+
/**
|
|
10221
|
+
* Emitted when the `WebContents` gains focus.
|
|
10222
|
+
*/
|
|
10223
|
+
on(event: 'focus', listener: Function): this;
|
|
10224
|
+
once(event: 'focus', listener: Function): this;
|
|
10225
|
+
addListener(event: 'focus', listener: Function): this;
|
|
10226
|
+
removeListener(event: 'focus', listener: Function): this;
|
|
10185
10227
|
/**
|
|
10186
10228
|
* Emitted when a result is available for [`webContents.findInPage`] request.
|
|
10187
10229
|
*/
|
|
@@ -10711,7 +10753,7 @@ declare namespace Electron {
|
|
|
10711
10753
|
addListener(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
10712
10754
|
removeListener(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
10713
10755
|
/**
|
|
10714
|
-
* Emitted
|
|
10756
|
+
* Emitted when a server side redirect occurs during navigation. For example a 302
|
|
10715
10757
|
* redirect.
|
|
10716
10758
|
*
|
|
10717
10759
|
* This event will be emitted after `did-start-navigation` and always before the
|
|
@@ -12964,7 +13006,7 @@ declare namespace Electron {
|
|
|
12964
13006
|
*/
|
|
12965
13007
|
webPreferences?: WebPreferences;
|
|
12966
13008
|
/**
|
|
12967
|
-
* When using a frameless window in
|
|
13009
|
+
* When using a frameless window in conjunction with
|
|
12968
13010
|
* `win.setWindowButtonVisibility(true)` on macOS or using a `titleBarStyle` so
|
|
12969
13011
|
* that the standard window controls ("traffic lights" on macOS) are visible, this
|
|
12970
13012
|
* property enables the Window Controls Overlay JavaScript APIs and CSS Environment
|
|
@@ -14036,13 +14078,15 @@ declare namespace Electron {
|
|
|
14036
14078
|
* `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`,
|
|
14037
14079
|
* `zoomOut`, `toggleSpellChecker`, `togglefullscreen`, `window`, `minimize`,
|
|
14038
14080
|
* `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`,
|
|
14039
|
-
*
|
|
14040
|
-
*
|
|
14041
|
-
* `
|
|
14042
|
-
* `
|
|
14043
|
-
*
|
|
14081
|
+
* 'showSubstitutions', 'toggleSmartQuotes', 'toggleSmartDashes',
|
|
14082
|
+
* 'toggleTextReplacement', `startSpeaking`, `stopSpeaking`, `zoom`, `front`,
|
|
14083
|
+
* `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`,
|
|
14084
|
+
* `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`,
|
|
14085
|
+
* `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu` - Define the action
|
|
14086
|
+
* of the menu item, when specified the `click` property will be ignored. See
|
|
14087
|
+
* roles.
|
|
14044
14088
|
*/
|
|
14045
|
-
role?: ('undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'pasteAndMatchStyle' | 'delete' | 'selectAll' | 'reload' | 'forceReload' | 'toggleDevTools' | 'resetZoom' | 'zoomIn' | 'zoomOut' | 'toggleSpellChecker' | 'togglefullscreen' | 'window' | 'minimize' | 'close' | 'help' | 'about' | 'services' | 'hide' | 'hideOthers' | 'unhide' | 'quit' | 'startSpeaking' | 'stopSpeaking' | 'zoom' | 'front' | 'appMenu' | 'fileMenu' | 'editMenu' | 'viewMenu' | 'shareMenu' | 'recentDocuments' | 'toggleTabBar' | 'selectNextTab' | 'selectPreviousTab' | 'mergeAllWindows' | 'clearRecentDocuments' | 'moveTabToNewWindow' | 'windowMenu');
|
|
14089
|
+
role?: ('undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'pasteAndMatchStyle' | 'delete' | 'selectAll' | 'reload' | 'forceReload' | 'toggleDevTools' | 'resetZoom' | 'zoomIn' | 'zoomOut' | 'toggleSpellChecker' | 'togglefullscreen' | 'window' | 'minimize' | 'close' | 'help' | 'about' | 'services' | 'hide' | 'hideOthers' | 'unhide' | 'quit' | 'showSubstitutions' | 'toggleSmartQuotes' | 'toggleSmartDashes' | 'toggleTextReplacement' | 'startSpeaking' | 'stopSpeaking' | 'zoom' | 'front' | 'appMenu' | 'fileMenu' | 'editMenu' | 'viewMenu' | 'shareMenu' | 'recentDocuments' | 'toggleTabBar' | 'selectNextTab' | 'selectPreviousTab' | 'mergeAllWindows' | 'clearRecentDocuments' | 'moveTabToNewWindow' | 'windowMenu');
|
|
14046
14090
|
/**
|
|
14047
14091
|
* Can be `normal`, `separator`, `submenu`, `checkbox` or `radio`.
|
|
14048
14092
|
*/
|
|
@@ -14468,6 +14512,7 @@ declare namespace Electron {
|
|
|
14468
14512
|
resourceType: ('mainFrame' | 'subFrame' | 'stylesheet' | 'script' | 'image' | 'font' | 'object' | 'xhr' | 'ping' | 'cspReport' | 'media' | 'webSocket' | 'other');
|
|
14469
14513
|
referrer: string;
|
|
14470
14514
|
timestamp: number;
|
|
14515
|
+
uploadData?: UploadData[];
|
|
14471
14516
|
requestHeaders: Record<string, string>;
|
|
14472
14517
|
}
|
|
14473
14518
|
|
|
@@ -15967,6 +16012,13 @@ declare namespace Electron {
|
|
|
15967
16012
|
* @platform win32
|
|
15968
16013
|
*/
|
|
15969
16014
|
symbolColor?: string;
|
|
16015
|
+
/**
|
|
16016
|
+
* The height of the title bar and Window Controls Overlay in pixels. Default is
|
|
16017
|
+
* system height.
|
|
16018
|
+
*
|
|
16019
|
+
* @platform darwin,win32
|
|
16020
|
+
*/
|
|
16021
|
+
height?: number;
|
|
15970
16022
|
}
|
|
15971
16023
|
|
|
15972
16024
|
interface WebPreferences {
|
|
@@ -16126,12 +16178,6 @@ declare namespace Electron {
|
|
|
16126
16178
|
* tab.
|
|
16127
16179
|
*/
|
|
16128
16180
|
contextIsolation?: boolean;
|
|
16129
|
-
/**
|
|
16130
|
-
* Whether to use native `window.open()`. Defaults to `true`. Child windows will
|
|
16131
|
-
* always have node integration disabled unless `nodeIntegrationInSubFrames` is
|
|
16132
|
-
* true.
|
|
16133
|
-
*/
|
|
16134
|
-
nativeWindowOpen?: boolean;
|
|
16135
16181
|
/**
|
|
16136
16182
|
* Whether to enable the `<webview>` tag. Defaults to `false`. **Note:** The
|
|
16137
16183
|
* `preload` script configured for the `<webview>` will have node integration
|
|
@@ -16794,7 +16840,6 @@ declare namespace Electron {
|
|
|
16794
16840
|
}
|
|
16795
16841
|
|
|
16796
16842
|
namespace Renderer {
|
|
16797
|
-
type BrowserWindowProxy = Electron.BrowserWindowProxy;
|
|
16798
16843
|
const contextBridge: ContextBridge;
|
|
16799
16844
|
type ContextBridge = Electron.ContextBridge;
|
|
16800
16845
|
const ipcRenderer: IpcRenderer;
|
|
@@ -17030,7 +17075,6 @@ declare namespace Electron {
|
|
|
17030
17075
|
type AutoUpdater = Electron.AutoUpdater;
|
|
17031
17076
|
class BrowserView extends Electron.BrowserView {}
|
|
17032
17077
|
class BrowserWindow extends Electron.BrowserWindow {}
|
|
17033
|
-
type BrowserWindowProxy = Electron.BrowserWindowProxy;
|
|
17034
17078
|
type ClientRequest = Electron.ClientRequest;
|
|
17035
17079
|
const clipboard: Clipboard;
|
|
17036
17080
|
type Clipboard = Electron.Clipboard;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "18.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",
|