electron 15.1.1 → 15.3.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/checksums.json +77 -77
- package/electron.d.ts +148 -7
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v15.
|
|
3
|
-
"chromedriver-v15.
|
|
4
|
-
"chromedriver-v15.
|
|
5
|
-
"chromedriver-v15.
|
|
6
|
-
"chromedriver-v15.
|
|
7
|
-
"chromedriver-v15.
|
|
8
|
-
"chromedriver-v15.
|
|
9
|
-
"chromedriver-v15.
|
|
10
|
-
"chromedriver-v15.
|
|
11
|
-
"chromedriver-v15.
|
|
12
|
-
"chromedriver-v15.
|
|
13
|
-
"electron-api.json": "
|
|
14
|
-
"electron-v15.
|
|
15
|
-
"electron-v15.
|
|
16
|
-
"electron-v15.
|
|
17
|
-
"electron-v15.
|
|
18
|
-
"electron-v15.
|
|
19
|
-
"electron-v15.
|
|
20
|
-
"electron-v15.
|
|
21
|
-
"electron-v15.
|
|
22
|
-
"electron-v15.
|
|
23
|
-
"electron-v15.
|
|
24
|
-
"electron-v15.
|
|
25
|
-
"electron-v15.
|
|
26
|
-
"electron-v15.
|
|
27
|
-
"electron-v15.
|
|
28
|
-
"electron-v15.
|
|
29
|
-
"electron-v15.
|
|
30
|
-
"electron-v15.
|
|
31
|
-
"electron-v15.
|
|
32
|
-
"electron-v15.
|
|
33
|
-
"electron-v15.
|
|
34
|
-
"electron-v15.
|
|
35
|
-
"electron-v15.
|
|
36
|
-
"electron-v15.
|
|
37
|
-
"electron-v15.
|
|
38
|
-
"electron-v15.
|
|
39
|
-
"electron-v15.
|
|
40
|
-
"electron-v15.
|
|
41
|
-
"electron-v15.
|
|
42
|
-
"electron-v15.
|
|
43
|
-
"electron-v15.
|
|
44
|
-
"electron-v15.
|
|
45
|
-
"electron-v15.
|
|
46
|
-
"electron-v15.
|
|
47
|
-
"electron-v15.
|
|
48
|
-
"electron-v15.
|
|
49
|
-
"electron-v15.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v15.
|
|
52
|
-
"ffmpeg-v15.
|
|
53
|
-
"ffmpeg-v15.
|
|
54
|
-
"ffmpeg-v15.
|
|
55
|
-
"ffmpeg-v15.
|
|
56
|
-
"ffmpeg-v15.
|
|
57
|
-
"ffmpeg-v15.
|
|
58
|
-
"ffmpeg-v15.
|
|
59
|
-
"ffmpeg-v15.
|
|
60
|
-
"ffmpeg-v15.
|
|
61
|
-
"ffmpeg-v15.
|
|
62
|
-
"hunspell_dictionaries.zip": "
|
|
63
|
-
"libcxx-objects-v15.
|
|
64
|
-
"libcxx-objects-v15.
|
|
65
|
-
"libcxx-objects-v15.
|
|
66
|
-
"libcxx-objects-v15.
|
|
67
|
-
"libcxx_headers.zip": "
|
|
2
|
+
"chromedriver-v15.3.1-darwin-arm64.zip": "7711521fe75b8299b75f35ad4d7bd38ee401571bfb27ba42c43ce46bf458f0dc",
|
|
3
|
+
"chromedriver-v15.3.1-darwin-x64.zip": "83b4931c790a2ee819396d47ef9b6b256cc37dde22f30c803051a8ee52281cd5",
|
|
4
|
+
"chromedriver-v15.3.1-linux-arm64.zip": "1537e5c426e27fb00e645d24902b28b8f530d72f3270510e376c24b0d4a7c03e",
|
|
5
|
+
"chromedriver-v15.3.1-linux-armv7l.zip": "a5c17ff28dc1a7418a5984e68f2c24888fa34281e454c22dc085bd47f1cdf214",
|
|
6
|
+
"chromedriver-v15.3.1-linux-ia32.zip": "f6afe14d8179dec1ef2fd69ca1cb5bad1ddf3d90dbb2c88f8036d742a388a606",
|
|
7
|
+
"chromedriver-v15.3.1-linux-x64.zip": "b23bc22e67a772c87fd7be162e4989dafd9f43a8b505a32106f408cb536e7792",
|
|
8
|
+
"chromedriver-v15.3.1-mas-arm64.zip": "53ffcff2f3102c32d8ff80b75f25a87b40f9070852c180eca9545198f905c4db",
|
|
9
|
+
"chromedriver-v15.3.1-mas-x64.zip": "db06787002c1b914a88740cbd754e7580081879cd44486a92fa380ac6b942461",
|
|
10
|
+
"chromedriver-v15.3.1-win32-arm64.zip": "c220defacea053b415a07739e68009583e3c853de02fa3568fe3372c53368ffc",
|
|
11
|
+
"chromedriver-v15.3.1-win32-ia32.zip": "75cf861a9d03c047d7d44a68ead9bf9a3f65a42250327d8a57d5fdc245b1be4d",
|
|
12
|
+
"chromedriver-v15.3.1-win32-x64.zip": "923aa763b5b7bb34258c8522a794c3eccd12b0b766b586c1d663ba1b9d4af1d0",
|
|
13
|
+
"electron-api.json": "da6426c5980f9e269ca71f761267a7f2a6ce8f860305190314551eec2ebf836e",
|
|
14
|
+
"electron-v15.3.1-darwin-arm64-dsym.zip": "f920fb3be5b14a522f6d756e1cdd8268add45d5c10aba2fea640f55e78284bd3",
|
|
15
|
+
"electron-v15.3.1-darwin-arm64-symbols.zip": "504954fba6dc3609e77d5818d92443354ef09c7e5bfd7146856f086ea5696555",
|
|
16
|
+
"electron-v15.3.1-darwin-arm64.zip": "89fafef20426c0a3a2326172d222d29fc5d24d64c8910b7abddf61bd2c6a6700",
|
|
17
|
+
"electron-v15.3.1-darwin-x64-dsym.zip": "216f0ef1b9dc8eac81de754dfe7092bf5d0fa7a5aa3fc8bf83cf69ded7434a01",
|
|
18
|
+
"electron-v15.3.1-darwin-x64-symbols.zip": "3bc64863863b6d9262c33eb0d95c5f413de7b30b521ffb0be120799e56962b94",
|
|
19
|
+
"electron-v15.3.1-darwin-x64.zip": "a91b089b5dc5b1279966511344b805ec84869b6cd60af44f800b363bba25b915",
|
|
20
|
+
"electron-v15.3.1-linux-arm64-debug.zip": "971148563cd9187e4fadf8072f474b62ea592aa6a818c52bb430d428c957214f",
|
|
21
|
+
"electron-v15.3.1-linux-arm64-symbols.zip": "38c33304819436a16098d6fa2f68ac15ee6695b0983c0db934b08be4ee9bbd79",
|
|
22
|
+
"electron-v15.3.1-linux-arm64.zip": "35ebfeeedcb71bd256c24550c75b9515fdda2db7a2ee1deb1097040480a26198",
|
|
23
|
+
"electron-v15.3.1-linux-armv7l-debug.zip": "971148563cd9187e4fadf8072f474b62ea592aa6a818c52bb430d428c957214f",
|
|
24
|
+
"electron-v15.3.1-linux-armv7l-symbols.zip": "1ea32cb7827dc4101fae484eb7d6487e87edef63efe60c402f0eb07740f15265",
|
|
25
|
+
"electron-v15.3.1-linux-armv7l.zip": "b3e73ad174f692da36a4e1d2cd6b849080ee891027e37126868c88e6b89d82ac",
|
|
26
|
+
"electron-v15.3.1-linux-ia32-debug.zip": "971148563cd9187e4fadf8072f474b62ea592aa6a818c52bb430d428c957214f",
|
|
27
|
+
"electron-v15.3.1-linux-ia32-symbols.zip": "fc0c7b867000e238ff10f315598cd8d228563d6a184627babe54dcb2859fd1ec",
|
|
28
|
+
"electron-v15.3.1-linux-ia32.zip": "1eeef6b189b4305845a0832b98efcba773c329e351181debe003562a7885afff",
|
|
29
|
+
"electron-v15.3.1-linux-x64-debug.zip": "d8fdec794416d2c4f112ffc0a9f6f5bb4cbb64bfd2cf51c42989217811dd1b9d",
|
|
30
|
+
"electron-v15.3.1-linux-x64-symbols.zip": "2cac2d3e8a8587c972a630a1d89d50219de5e11575ebb50a5368b96c5ef8e2a2",
|
|
31
|
+
"electron-v15.3.1-linux-x64.zip": "941330103b9ab66a0195dd86e1503b5d2087f93a0b1e8453d8270d47cfe2bfc2",
|
|
32
|
+
"electron-v15.3.1-mas-arm64-dsym.zip": "f3e5b619e501e1da77a81e465a3751ebe5fabd518759163c64c727ea1c7eb368",
|
|
33
|
+
"electron-v15.3.1-mas-arm64-symbols.zip": "7778503edd309d671f893eb60d90f9db6f465ca44025e3e9ea4128b949e6e0af",
|
|
34
|
+
"electron-v15.3.1-mas-arm64.zip": "3bdb403aabcd8dce6eb6fd1d38448e9e42cf8ae08c721a14e634b9b3dd70e927",
|
|
35
|
+
"electron-v15.3.1-mas-x64-dsym.zip": "8ed6a9eb680b66960745ac9886d1b6f58facad195ce82248ead2f110f770f378",
|
|
36
|
+
"electron-v15.3.1-mas-x64-symbols.zip": "713b803e3a5b69f2017f7f96cc5147207e5ffc2ed5886e589f7da8337d93c141",
|
|
37
|
+
"electron-v15.3.1-mas-x64.zip": "8cd54044581dff5bbd1101e37cdc281bd5cff197ed97f2ba1c129ccfa1db32ca",
|
|
38
|
+
"electron-v15.3.1-win32-arm64-pdb.zip": "52f5633637d81e6c3f2177294cea517b94c1939a88037737aa643e8e53d26b53",
|
|
39
|
+
"electron-v15.3.1-win32-arm64-symbols.zip": "32553d008787561cd294132ba169e3604285ab31ae3e6050771a7f257a8440e0",
|
|
40
|
+
"electron-v15.3.1-win32-arm64-toolchain-profile.zip": "3b0e3dde77968ef5643bf5a043be2ccd84edd88ccb588505a65ba7e7a6542b9e",
|
|
41
|
+
"electron-v15.3.1-win32-arm64.zip": "32aace65d8c2fc1046916afc33f1cb73d95bf967a79ba32bf5e1ea02511c01d9",
|
|
42
|
+
"electron-v15.3.1-win32-ia32-pdb.zip": "be51427569e827591405a67a719d914ade52590fd13400da5be46cb38540302f",
|
|
43
|
+
"electron-v15.3.1-win32-ia32-symbols.zip": "c48d0c45a301df8e42872880809dfc45677f3d7d51d733f5fcc8b9a1cc7a20a8",
|
|
44
|
+
"electron-v15.3.1-win32-ia32-toolchain-profile.zip": "3b0e3dde77968ef5643bf5a043be2ccd84edd88ccb588505a65ba7e7a6542b9e",
|
|
45
|
+
"electron-v15.3.1-win32-ia32.zip": "c1e8a5569ec090ecef7049381756ad2f2faa0c812b16f58e90f6c9fb3982e1b0",
|
|
46
|
+
"electron-v15.3.1-win32-x64-pdb.zip": "0474c93adb19709f11d074ea4ae5a508a79cf526a7214c1533ff7b2139b749fa",
|
|
47
|
+
"electron-v15.3.1-win32-x64-symbols.zip": "af3ee8c92eca4fbd23c5bed83667033779462bb8cc97015432439bf0b600e587",
|
|
48
|
+
"electron-v15.3.1-win32-x64-toolchain-profile.zip": "3b0e3dde77968ef5643bf5a043be2ccd84edd88ccb588505a65ba7e7a6542b9e",
|
|
49
|
+
"electron-v15.3.1-win32-x64.zip": "d93ec2e8029ad05ceaf5de01c0891aa272d8a77d473aeda701bef0b34b15886e",
|
|
50
|
+
"electron.d.ts": "61c9bc156dd3825c27fcfe99555232ad73d7d2106af8460faa3b8fa43d2af325",
|
|
51
|
+
"ffmpeg-v15.3.1-darwin-arm64.zip": "e39fe12872dab238ccb2ee67bc2d641029ff44761f524466d5c4da34a1547ff0",
|
|
52
|
+
"ffmpeg-v15.3.1-darwin-x64.zip": "2bd16254efef6c3fb40be5db7248fd12ac988178f7386e3c7a2b8bd95b45201e",
|
|
53
|
+
"ffmpeg-v15.3.1-linux-arm64.zip": "f3f1d892eba376a709a71d09958ace0e227550345542af4ae2bf5224cbe20c5f",
|
|
54
|
+
"ffmpeg-v15.3.1-linux-armv7l.zip": "f295b2c81093a044824c0127b24eed6961a35d2a85bea27a6e5ceec11d711a09",
|
|
55
|
+
"ffmpeg-v15.3.1-linux-ia32.zip": "c39d48816d094fb926d7ede9f9feac1361dc26988602d4627fc7a3b08437af76",
|
|
56
|
+
"ffmpeg-v15.3.1-linux-x64.zip": "29c71e47020c26938cf9d8766eac20c52242aabe61a647b81cb2273d96273c8f",
|
|
57
|
+
"ffmpeg-v15.3.1-mas-arm64.zip": "e39fe12872dab238ccb2ee67bc2d641029ff44761f524466d5c4da34a1547ff0",
|
|
58
|
+
"ffmpeg-v15.3.1-mas-x64.zip": "2bd16254efef6c3fb40be5db7248fd12ac988178f7386e3c7a2b8bd95b45201e",
|
|
59
|
+
"ffmpeg-v15.3.1-win32-arm64.zip": "67c630ee1d325de5ca3d2c656091a45f57e57eaf6fe4fab3bdbbce5fe89e610d",
|
|
60
|
+
"ffmpeg-v15.3.1-win32-ia32.zip": "9f85642fda69af8c731e3185d0eb7d53a31a5e868c47eb5fa508dc8dac4a8e53",
|
|
61
|
+
"ffmpeg-v15.3.1-win32-x64.zip": "e65e3d9431d14c33e8727a474f3f40c22b887d38c5948a5634f0b123068187e3",
|
|
62
|
+
"hunspell_dictionaries.zip": "8b3b08a3702a2f817adeb1a7700618ba6f29fcad2addc270ceeaf0c761a2812d",
|
|
63
|
+
"libcxx-objects-v15.3.1-linux-arm64.zip": "1690f621f514dedd58555d6dae97db17f6ac107ff30365b536582a0c163b8675",
|
|
64
|
+
"libcxx-objects-v15.3.1-linux-armv7l.zip": "1e5ab3c0e2b328a4a46e89abe79b369cbd41158ea033e5935d534a125e19df4f",
|
|
65
|
+
"libcxx-objects-v15.3.1-linux-ia32.zip": "178cf7e8cb6d96e9513a4bf102d7cd8c8b8244b991d3913983748d5aa421b1ef",
|
|
66
|
+
"libcxx-objects-v15.3.1-linux-x64.zip": "bad57a9cd732021636db29bc9bf062261c9e16e2ae56129c2f4a5e563e70b7c7",
|
|
67
|
+
"libcxx_headers.zip": "b754ad367ce1b3e178bed786fecc04cc4e1d01c1f4d95cebef026a3231e98b1f",
|
|
68
68
|
"libcxxabi_headers.zip": "2c4966131b34c511bba6fde1328ffbcf363efe2c3543c5ce8c5573ce02081f83",
|
|
69
|
-
"mksnapshot-v15.
|
|
70
|
-
"mksnapshot-v15.
|
|
71
|
-
"mksnapshot-v15.
|
|
72
|
-
"mksnapshot-v15.
|
|
73
|
-
"mksnapshot-v15.
|
|
74
|
-
"mksnapshot-v15.
|
|
75
|
-
"mksnapshot-v15.
|
|
76
|
-
"mksnapshot-v15.
|
|
77
|
-
"mksnapshot-v15.
|
|
78
|
-
"mksnapshot-v15.
|
|
79
|
-
"mksnapshot-v15.
|
|
69
|
+
"mksnapshot-v15.3.1-darwin-arm64.zip": "c43419ab1b982503b721539e96ed058fab12f25be5e0021af3a216a00821921d",
|
|
70
|
+
"mksnapshot-v15.3.1-darwin-x64.zip": "ca992a71921ab6a3e795d9c86e66492342eb859a30c42e0b2019f0baa6896716",
|
|
71
|
+
"mksnapshot-v15.3.1-linux-arm64-x64.zip": "e5489283148c95ad128382e8cb8dd696b9002a857920e247a2e8b26c763b0d15",
|
|
72
|
+
"mksnapshot-v15.3.1-linux-armv7l-x64.zip": "bcc53945f60df251cc29d69998b63ebbe7914c25ee6a6e58b0d4584a9ccacf74",
|
|
73
|
+
"mksnapshot-v15.3.1-linux-ia32.zip": "dacbdb63153d24701b1a05ada0c1a71fe4fa27ccdb1a69d34fa85e336ccb824b",
|
|
74
|
+
"mksnapshot-v15.3.1-linux-x64.zip": "cd7bd961dcc64209ff1b0fbcc2a16d5cf54478fd32eee4af6a37bcc2d1dbd9a9",
|
|
75
|
+
"mksnapshot-v15.3.1-mas-arm64.zip": "eeb7066cec68f3703678e50d1877da89c9f8ea0abd82468d733df1df8e0cc8cd",
|
|
76
|
+
"mksnapshot-v15.3.1-mas-x64.zip": "3f04495cdeb74feb676c7fb9e4913e261e1f590f1c9f7d875bf3c73652268d94",
|
|
77
|
+
"mksnapshot-v15.3.1-win32-arm64-x64.zip": "a3c540025836c4c9aab9831b2e03f154c68b46734dbed5233c269ad5ed4f71dd",
|
|
78
|
+
"mksnapshot-v15.3.1-win32-ia32.zip": "b3ae5caab8410078c6f4a32b90fb931ed9fd337e52f417683278e91b43147eaa",
|
|
79
|
+
"mksnapshot-v15.3.1-win32-x64.zip": "7d1f89d9f177d7347ce9810bb6e26a13c3fe2b1dd15b2ec19e2c34c388aebf66"
|
|
80
80
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 15.
|
|
1
|
+
// Type definitions for Electron 15.3.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
|
|
@@ -2220,9 +2220,9 @@ declare namespace Electron {
|
|
|
2220
2220
|
*/
|
|
2221
2221
|
getOpacity(): number;
|
|
2222
2222
|
/**
|
|
2223
|
-
* The parent window.
|
|
2223
|
+
* The parent window or `null` if there is no parent.
|
|
2224
2224
|
*/
|
|
2225
|
-
getParentWindow(): BrowserWindow;
|
|
2225
|
+
getParentWindow(): (BrowserWindow) | (null);
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Contains the window's current position.
|
|
2228
2228
|
*/
|
|
@@ -3503,6 +3503,13 @@ declare namespace Electron {
|
|
|
3503
3503
|
* Whether the command-line switch is present.
|
|
3504
3504
|
*/
|
|
3505
3505
|
hasSwitch(the_switch: string): boolean;
|
|
3506
|
+
/**
|
|
3507
|
+
* Removes the specified switch from Chromium's command line.
|
|
3508
|
+
*
|
|
3509
|
+
* **Note:** This will not affect `process.argv`. The intended usage of this
|
|
3510
|
+
* function is to control Chromium's behavior.
|
|
3511
|
+
*/
|
|
3512
|
+
removeSwitch(the_switch: string): void;
|
|
3506
3513
|
}
|
|
3507
3514
|
|
|
3508
3515
|
interface ContentTracing {
|
|
@@ -11999,6 +12006,11 @@ declare namespace Electron {
|
|
|
11999
12006
|
*/
|
|
12000
12007
|
addEventListener(event: 'devtools-focused', listener: (event: Event) => void, useCapture?: boolean): this;
|
|
12001
12008
|
removeEventListener(event: 'devtools-focused', listener: (event: Event) => void): this;
|
|
12009
|
+
/**
|
|
12010
|
+
* Emitted when there is a new context menu that needs to be handled.
|
|
12011
|
+
*/
|
|
12012
|
+
addEventListener(event: 'context-menu', listener: (event: ContextMenuEvent) => void, useCapture?: boolean): this;
|
|
12013
|
+
removeEventListener(event: 'context-menu', listener: (event: ContextMenuEvent) => void): this;
|
|
12002
12014
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
|
|
12003
12015
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
12004
12016
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
|
|
@@ -12720,7 +12732,7 @@ declare namespace Electron {
|
|
|
12720
12732
|
*/
|
|
12721
12733
|
paintWhenInitiallyHidden?: boolean;
|
|
12722
12734
|
/**
|
|
12723
|
-
* Specify `false` to create a
|
|
12735
|
+
* Specify `false` to create a frameless window. Default is `true`.
|
|
12724
12736
|
*/
|
|
12725
12737
|
frame?: boolean;
|
|
12726
12738
|
/**
|
|
@@ -13021,6 +13033,10 @@ declare namespace Electron {
|
|
|
13021
13033
|
sourceId: string;
|
|
13022
13034
|
}
|
|
13023
13035
|
|
|
13036
|
+
interface ContextMenuEvent extends Event {
|
|
13037
|
+
params: Params;
|
|
13038
|
+
}
|
|
13039
|
+
|
|
13024
13040
|
interface ContextMenuParams {
|
|
13025
13041
|
/**
|
|
13026
13042
|
* x coordinate.
|
|
@@ -13369,9 +13385,10 @@ declare namespace Electron {
|
|
|
13369
13385
|
|
|
13370
13386
|
interface DevicePermissionHandlerHandlerDetails {
|
|
13371
13387
|
/**
|
|
13372
|
-
* The type of device that permission is being requested on, can be `hid
|
|
13388
|
+
* The type of device that permission is being requested on, can be `hid` or
|
|
13389
|
+
* `serial`.
|
|
13373
13390
|
*/
|
|
13374
|
-
deviceType: ('hid');
|
|
13391
|
+
deviceType: ('hid' | 'serial');
|
|
13375
13392
|
/**
|
|
13376
13393
|
* The origin URL of the device permission check.
|
|
13377
13394
|
*/
|
|
@@ -13379,7 +13396,7 @@ declare namespace Electron {
|
|
|
13379
13396
|
/**
|
|
13380
13397
|
* the device that permission is being requested for.
|
|
13381
13398
|
*/
|
|
13382
|
-
device: HIDDevice;
|
|
13399
|
+
device: (HIDDevice) | (SerialPort);
|
|
13383
13400
|
/**
|
|
13384
13401
|
* WebFrameMain checking the device permission.
|
|
13385
13402
|
*/
|
|
@@ -14635,6 +14652,10 @@ declare namespace Electron {
|
|
|
14635
14652
|
* The url of the `openExternal` request.
|
|
14636
14653
|
*/
|
|
14637
14654
|
externalURL?: string;
|
|
14655
|
+
/**
|
|
14656
|
+
* The security origin of the `media` request.
|
|
14657
|
+
*/
|
|
14658
|
+
securityOrigin?: string;
|
|
14638
14659
|
/**
|
|
14639
14660
|
* The types of media access being requested, elements can be `video` or `audio`
|
|
14640
14661
|
*/
|
|
@@ -15693,6 +15714,118 @@ declare namespace Electron {
|
|
|
15693
15714
|
to: number;
|
|
15694
15715
|
}
|
|
15695
15716
|
|
|
15717
|
+
interface Params {
|
|
15718
|
+
/**
|
|
15719
|
+
* x coordinate.
|
|
15720
|
+
*/
|
|
15721
|
+
x: number;
|
|
15722
|
+
/**
|
|
15723
|
+
* y coordinate.
|
|
15724
|
+
*/
|
|
15725
|
+
y: number;
|
|
15726
|
+
/**
|
|
15727
|
+
* URL of the link that encloses the node the context menu was invoked on.
|
|
15728
|
+
*/
|
|
15729
|
+
linkURL: string;
|
|
15730
|
+
/**
|
|
15731
|
+
* Text associated with the link. May be an empty string if the contents of the
|
|
15732
|
+
* link are an image.
|
|
15733
|
+
*/
|
|
15734
|
+
linkText: string;
|
|
15735
|
+
/**
|
|
15736
|
+
* URL of the top level page that the context menu was invoked on.
|
|
15737
|
+
*/
|
|
15738
|
+
pageURL: string;
|
|
15739
|
+
/**
|
|
15740
|
+
* URL of the subframe that the context menu was invoked on.
|
|
15741
|
+
*/
|
|
15742
|
+
frameURL: string;
|
|
15743
|
+
/**
|
|
15744
|
+
* Source URL for the element that the context menu was invoked on. Elements with
|
|
15745
|
+
* source URLs are images, audio and video.
|
|
15746
|
+
*/
|
|
15747
|
+
srcURL: string;
|
|
15748
|
+
/**
|
|
15749
|
+
* Type of the node the context menu was invoked on. Can be `none`, `image`,
|
|
15750
|
+
* `audio`, `video`, `canvas`, `file` or `plugin`.
|
|
15751
|
+
*/
|
|
15752
|
+
mediaType: ('none' | 'image' | 'audio' | 'video' | 'canvas' | 'file' | 'plugin');
|
|
15753
|
+
/**
|
|
15754
|
+
* Whether the context menu was invoked on an image which has non-empty contents.
|
|
15755
|
+
*/
|
|
15756
|
+
hasImageContents: boolean;
|
|
15757
|
+
/**
|
|
15758
|
+
* Whether the context is editable.
|
|
15759
|
+
*/
|
|
15760
|
+
isEditable: boolean;
|
|
15761
|
+
/**
|
|
15762
|
+
* Text of the selection that the context menu was invoked on.
|
|
15763
|
+
*/
|
|
15764
|
+
selectionText: string;
|
|
15765
|
+
/**
|
|
15766
|
+
* Title text of the selection that the context menu was invoked on.
|
|
15767
|
+
*/
|
|
15768
|
+
titleText: string;
|
|
15769
|
+
/**
|
|
15770
|
+
* Alt text of the selection that the context menu was invoked on.
|
|
15771
|
+
*/
|
|
15772
|
+
altText: string;
|
|
15773
|
+
/**
|
|
15774
|
+
* Suggested filename to be used when saving file through 'Save Link As' option of
|
|
15775
|
+
* context menu.
|
|
15776
|
+
*/
|
|
15777
|
+
suggestedFilename: string;
|
|
15778
|
+
/**
|
|
15779
|
+
* Rect representing the coordinates in the document space of the selection.
|
|
15780
|
+
*/
|
|
15781
|
+
selectionRect: Rectangle;
|
|
15782
|
+
/**
|
|
15783
|
+
* Start position of the selection text.
|
|
15784
|
+
*/
|
|
15785
|
+
selectionStartOffset: number;
|
|
15786
|
+
/**
|
|
15787
|
+
* The referrer policy of the frame on which the menu is invoked.
|
|
15788
|
+
*/
|
|
15789
|
+
referrerPolicy: Referrer;
|
|
15790
|
+
/**
|
|
15791
|
+
* The misspelled word under the cursor, if any.
|
|
15792
|
+
*/
|
|
15793
|
+
misspelledWord: string;
|
|
15794
|
+
/**
|
|
15795
|
+
* An array of suggested words to show the user to replace the `misspelledWord`.
|
|
15796
|
+
* Only available if there is a misspelled word and spellchecker is enabled.
|
|
15797
|
+
*/
|
|
15798
|
+
dictionarySuggestions: string[];
|
|
15799
|
+
/**
|
|
15800
|
+
* The character encoding of the frame on which the menu was invoked.
|
|
15801
|
+
*/
|
|
15802
|
+
frameCharset: string;
|
|
15803
|
+
/**
|
|
15804
|
+
* If the context menu was invoked on an input field, the type of that field.
|
|
15805
|
+
* Possible values are `none`, `plainText`, `password`, `other`.
|
|
15806
|
+
*/
|
|
15807
|
+
inputFieldType: string;
|
|
15808
|
+
/**
|
|
15809
|
+
* If the context is editable, whether or not spellchecking is enabled.
|
|
15810
|
+
*/
|
|
15811
|
+
spellcheckEnabled: boolean;
|
|
15812
|
+
/**
|
|
15813
|
+
* Input source that invoked the context menu. Can be `none`, `mouse`, `keyboard`,
|
|
15814
|
+
* `touch`, `touchMenu`, `longPress`, `longTap`, `touchHandle`, `stylus`,
|
|
15815
|
+
* `adjustSelection`, or `adjustSelectionReset`.
|
|
15816
|
+
*/
|
|
15817
|
+
menuSourceType: ('none' | 'mouse' | 'keyboard' | 'touch' | 'touchMenu' | 'longPress' | 'longTap' | 'touchHandle' | 'stylus' | 'adjustSelection' | 'adjustSelectionReset');
|
|
15818
|
+
/**
|
|
15819
|
+
* The flags for the media element the context menu was invoked on.
|
|
15820
|
+
*/
|
|
15821
|
+
mediaFlags: MediaFlags;
|
|
15822
|
+
/**
|
|
15823
|
+
* These flags indicate whether the renderer believes it is able to perform the
|
|
15824
|
+
* corresponding action.
|
|
15825
|
+
*/
|
|
15826
|
+
editFlags: EditFlags;
|
|
15827
|
+
}
|
|
15828
|
+
|
|
15696
15829
|
interface TitleBarOverlay {
|
|
15697
15830
|
/**
|
|
15698
15831
|
* The CSS color of the Window Controls Overlay when enabled. Default is the system
|
|
@@ -16041,6 +16174,7 @@ declare namespace Electron {
|
|
|
16041
16174
|
type Config = Electron.Config;
|
|
16042
16175
|
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
16043
16176
|
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
16177
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
16044
16178
|
type ContextMenuParams = Electron.ContextMenuParams;
|
|
16045
16179
|
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
16046
16180
|
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
@@ -16171,6 +16305,7 @@ declare namespace Electron {
|
|
|
16171
16305
|
type Margins = Electron.Margins;
|
|
16172
16306
|
type MediaFlags = Electron.MediaFlags;
|
|
16173
16307
|
type PageRanges = Electron.PageRanges;
|
|
16308
|
+
type Params = Electron.Params;
|
|
16174
16309
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
16175
16310
|
type WebPreferences = Electron.WebPreferences;
|
|
16176
16311
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
@@ -16326,6 +16461,7 @@ declare namespace Electron {
|
|
|
16326
16461
|
type Config = Electron.Config;
|
|
16327
16462
|
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
16328
16463
|
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
16464
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
16329
16465
|
type ContextMenuParams = Electron.ContextMenuParams;
|
|
16330
16466
|
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
16331
16467
|
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
@@ -16456,6 +16592,7 @@ declare namespace Electron {
|
|
|
16456
16592
|
type Margins = Electron.Margins;
|
|
16457
16593
|
type MediaFlags = Electron.MediaFlags;
|
|
16458
16594
|
type PageRanges = Electron.PageRanges;
|
|
16595
|
+
type Params = Electron.Params;
|
|
16459
16596
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
16460
16597
|
type WebPreferences = Electron.WebPreferences;
|
|
16461
16598
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
@@ -16551,6 +16688,7 @@ declare namespace Electron {
|
|
|
16551
16688
|
type Config = Electron.Config;
|
|
16552
16689
|
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
16553
16690
|
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
16691
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
16554
16692
|
type ContextMenuParams = Electron.ContextMenuParams;
|
|
16555
16693
|
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
16556
16694
|
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
@@ -16681,6 +16819,7 @@ declare namespace Electron {
|
|
|
16681
16819
|
type Margins = Electron.Margins;
|
|
16682
16820
|
type MediaFlags = Electron.MediaFlags;
|
|
16683
16821
|
type PageRanges = Electron.PageRanges;
|
|
16822
|
+
type Params = Electron.Params;
|
|
16684
16823
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
16685
16824
|
type WebPreferences = Electron.WebPreferences;
|
|
16686
16825
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
@@ -16853,6 +16992,7 @@ declare namespace Electron {
|
|
|
16853
16992
|
type Config = Electron.Config;
|
|
16854
16993
|
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
16855
16994
|
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
16995
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
16856
16996
|
type ContextMenuParams = Electron.ContextMenuParams;
|
|
16857
16997
|
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
16858
16998
|
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
@@ -16983,6 +17123,7 @@ declare namespace Electron {
|
|
|
16983
17123
|
type Margins = Electron.Margins;
|
|
16984
17124
|
type MediaFlags = Electron.MediaFlags;
|
|
16985
17125
|
type PageRanges = Electron.PageRanges;
|
|
17126
|
+
type Params = Electron.Params;
|
|
16986
17127
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
16987
17128
|
type WebPreferences = Electron.WebPreferences;
|
|
16988
17129
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "15.
|
|
19
|
+
"version": "15.3.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",
|