electron 26.0.0 → 27.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/checksums.json +74 -74
- package/electron.d.ts +54 -89
- package/package.json +1 -1
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": "
|
|
2
|
+
"chromedriver-v27.0.0-alpha.1-darwin-arm64.zip": "365e74baf46cc0d7a4845808daa2b35e8e1a281901aa5f5607dc3dafc5df120c",
|
|
3
|
+
"chromedriver-v27.0.0-alpha.1-darwin-x64.zip": "53a618f9adbf8604557b936ce274c00a740cbf1cefaffd40472c3c084b4b197d",
|
|
4
|
+
"chromedriver-v27.0.0-alpha.1-linux-arm64.zip": "8cb05449485479ac6dc0da264e43d3c884e0121308712316ff49127aa11e3b5c",
|
|
5
|
+
"chromedriver-v27.0.0-alpha.1-linux-armv7l.zip": "31967461e6881294d8ee6a9c6d4ad9fa7199f99e66ac672ec8888824a95c13e3",
|
|
6
|
+
"chromedriver-v27.0.0-alpha.1-linux-x64.zip": "ae6866520a9daf2883c37c935b582b3354d1c042747ce449f823f91ba5241b94",
|
|
7
|
+
"chromedriver-v27.0.0-alpha.1-mas-arm64.zip": "876459c17b114415ba17685da456068f6fd77e1d07d25f38ba6809c9e3570027",
|
|
8
|
+
"chromedriver-v27.0.0-alpha.1-mas-x64.zip": "54669fb322710f771ea346492f5df6a6070469aa657a5b5dca913595ad3691a0",
|
|
9
|
+
"chromedriver-v27.0.0-alpha.1-win32-arm64.zip": "357f801cb5a3bdfd14a7895d09c8dc9979316361e48ce82a6b87d66ff3c179a7",
|
|
10
|
+
"chromedriver-v27.0.0-alpha.1-win32-ia32.zip": "5d7e16af56eb017b4d9f4b403b3c9c59e6da874a6b2901242e478094bdbf34ca",
|
|
11
|
+
"chromedriver-v27.0.0-alpha.1-win32-x64.zip": "09ba570fe91bbbb36cb669570c5eed7fb20e8bd7e9e35eee8f1f88e62d5ab7c7",
|
|
12
|
+
"electron-api.json": "3a5e233400fa5c726a0e032634f4ebf9cd2a2c7a8fadb21c8282558b4538c5d1",
|
|
13
|
+
"electron-v27.0.0-alpha.1-darwin-arm64-dsym-snapshot.zip": "eb0d51cf2ccc5fbf5cb74bea9d79297ffe4d0a414b7e485bd3b3beacfa68ed0d",
|
|
14
|
+
"electron-v27.0.0-alpha.1-darwin-arm64-dsym.zip": "c4b3ef66062b3e764e622fe3dfb45dd9e1dcf1e1759e96c2b836fcca76162ead",
|
|
15
|
+
"electron-v27.0.0-alpha.1-darwin-arm64-symbols.zip": "be2132a94d6da7af49575862a05337dbab3f5fa96ea06c25404d75c735e7ef9b",
|
|
16
|
+
"electron-v27.0.0-alpha.1-darwin-arm64.zip": "afda5a76784d44bb7886fcd0aa01c8670eb5bc9ed5137cd554972327044ce3e1",
|
|
17
|
+
"electron-v27.0.0-alpha.1-darwin-x64-dsym-snapshot.zip": "3b65a49cc438096581b598b2e0717a4ee5abedae8bc88312d7745698c08583fc",
|
|
18
|
+
"electron-v27.0.0-alpha.1-darwin-x64-dsym.zip": "4640743dc4427e856e6ca69fb42608c74b48fa61e6688df7e77fa61c030fb834",
|
|
19
|
+
"electron-v27.0.0-alpha.1-darwin-x64-symbols.zip": "72c981cb77a72cce601fe5597b2760cde499190811692b5de28c1ff8ee287b7a",
|
|
20
|
+
"electron-v27.0.0-alpha.1-darwin-x64.zip": "a38efcf91197e9fe3b58209fc5c7636952c0fc8f6628b643af3442b2856e901d",
|
|
21
|
+
"electron-v27.0.0-alpha.1-linux-arm64-debug.zip": "b9d13354a76ff669b7cef7d2f9e660a5b9cc7493dfc6fc46becc3398250cb738",
|
|
22
|
+
"electron-v27.0.0-alpha.1-linux-arm64-symbols.zip": "569d5374420b08c486910beb2085d3ed1e4d661a34f97c31c4eee305b3f04868",
|
|
23
|
+
"electron-v27.0.0-alpha.1-linux-arm64.zip": "19d67999f06272996a7db5b7bec58a5f0780815bceb5af86733865b7e1874ea3",
|
|
24
|
+
"electron-v27.0.0-alpha.1-linux-armv7l-debug.zip": "b9d13354a76ff669b7cef7d2f9e660a5b9cc7493dfc6fc46becc3398250cb738",
|
|
25
|
+
"electron-v27.0.0-alpha.1-linux-armv7l-symbols.zip": "b0e618dbac1ddc477323ef6dc171239a0b7b7f0a5c2ee012d6e463e73a6f0e48",
|
|
26
|
+
"electron-v27.0.0-alpha.1-linux-armv7l.zip": "788658f827380f0009fe1e789d190a84f5515cbdb19b5f3538e2a7020bd63599",
|
|
27
|
+
"electron-v27.0.0-alpha.1-linux-x64-debug.zip": "73596a199fe07a8c2675acb8c24198264a612c147860b6fa75ccfb0ee1beb673",
|
|
28
|
+
"electron-v27.0.0-alpha.1-linux-x64-symbols.zip": "86af58efd3d78ce2ea3b3c8e5b6465bab8e3f3cf9d84c2a7da16f01dc6c4d573",
|
|
29
|
+
"electron-v27.0.0-alpha.1-linux-x64.zip": "0811b54cd887f4ca9fcaabfd4aadc4dd04f5948c602d8da5c775ff3feecf2d8f",
|
|
30
|
+
"electron-v27.0.0-alpha.1-mas-arm64-dsym-snapshot.zip": "3420df7c1f6ae561166d304d5cdccef05bb4104a2ccb370408e2c4909535274a",
|
|
31
|
+
"electron-v27.0.0-alpha.1-mas-arm64-dsym.zip": "2f58f8d65f4ab9f6d13ce815a99100f4481487a915fe1e0199483646273d2811",
|
|
32
|
+
"electron-v27.0.0-alpha.1-mas-arm64-symbols.zip": "a1d2836d9aaea040e44bd7cf846ff8c2d00dcbb3cbfc5a533967b09874919723",
|
|
33
|
+
"electron-v27.0.0-alpha.1-mas-arm64.zip": "2ea88f226daff208829b463eaaded8af9e686e58387ba651a691be82f5b2709b",
|
|
34
|
+
"electron-v27.0.0-alpha.1-mas-x64-dsym-snapshot.zip": "e2dcf6ce0afbf763aa92239a14154f1e70e417ff06284445e4c40cf5f080a92a",
|
|
35
|
+
"electron-v27.0.0-alpha.1-mas-x64-dsym.zip": "7bb844d0f77e64bcf56b258d3ed7e91bf9351faeec327f878ad00e2738725025",
|
|
36
|
+
"electron-v27.0.0-alpha.1-mas-x64-symbols.zip": "90eb0f33f29e8c81fd46b6d8e5d1f73c4111122dd9a4ac486049ca8b1a96e4a5",
|
|
37
|
+
"electron-v27.0.0-alpha.1-mas-x64.zip": "efd8525e9a5ccc63a659049dedce6b58f6342f5be156ad83966e467059db21a2",
|
|
38
|
+
"electron-v27.0.0-alpha.1-win32-arm64-pdb.zip": "e5cd32ab609de756c862574917cf139695857d663807e9afead56da908150c71",
|
|
39
|
+
"electron-v27.0.0-alpha.1-win32-arm64-symbols.zip": "e09c2160edfa9ffc585f6b36adc6749ed8f180c463abfb76ef362772b6baecc8",
|
|
40
|
+
"electron-v27.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
41
|
+
"electron-v27.0.0-alpha.1-win32-arm64.zip": "7234056a5e7b98ef5a3f02713cd9795786c2bcfa48aa8b492243b10be41e196b",
|
|
42
|
+
"electron-v27.0.0-alpha.1-win32-ia32-pdb.zip": "b2bb24ccd969888c006f06441dfbaab37ef7388851c4b949bd352b7edf33749d",
|
|
43
|
+
"electron-v27.0.0-alpha.1-win32-ia32-symbols.zip": "32d219af2044b7877747c3932d926098a56125f82a9dd3e1078d0e4892ab29ff",
|
|
44
|
+
"electron-v27.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
45
|
+
"electron-v27.0.0-alpha.1-win32-ia32.zip": "b746ff6ea0a91f1f0d80457ef1eeb5bde4862f6ebdde849226cefaf2319d0912",
|
|
46
|
+
"electron-v27.0.0-alpha.1-win32-x64-pdb.zip": "38e4b8fcf81c404d5db8070cbd76440d16bba2aa70c4841a6d573d0a3bc1bd65",
|
|
47
|
+
"electron-v27.0.0-alpha.1-win32-x64-symbols.zip": "5119cd427ed90ed2b514735dfd0bdb7ab3eb70de585237a66a2fa9fa81d4c8a6",
|
|
48
|
+
"electron-v27.0.0-alpha.1-win32-x64-toolchain-profile.zip": "c9f31ae6408aa6936b5d683eda601773789185890375cd097e61e924d4fed77a",
|
|
49
|
+
"electron-v27.0.0-alpha.1-win32-x64.zip": "322b4d034ba13acab043859aa75c088d6ef30e3fe84301bf3bbc20a42e5ab688",
|
|
50
|
+
"electron.d.ts": "ba1fd8f8ebaacf04a4c68a24791aa77af85faff90f1de8d3538777b5fbc4d1e7",
|
|
51
|
+
"ffmpeg-v27.0.0-alpha.1-darwin-arm64.zip": "8c6096f71f8b31d3ad6d11b85fe7e19e30e5f0b24f060d59569bf3fcdeca6d9b",
|
|
52
|
+
"ffmpeg-v27.0.0-alpha.1-darwin-x64.zip": "1c783ec11653177f6d07b11dbc9208d40c8ceef93fc4acfd4ff2523907b6a1f2",
|
|
53
|
+
"ffmpeg-v27.0.0-alpha.1-linux-arm64.zip": "34cfba9fa26d7b88f99518327b7f18dccbcf134e72f6986304957f72ceffbde8",
|
|
54
|
+
"ffmpeg-v27.0.0-alpha.1-linux-armv7l.zip": "448ceca081a36a61fe2113be74277319c04085ec06490fae8a4147fff744817d",
|
|
55
|
+
"ffmpeg-v27.0.0-alpha.1-linux-x64.zip": "ac38f82e68d2a9e53c5612f8ad718d027a192b4b1aa07e8990459095bff4fa45",
|
|
56
|
+
"ffmpeg-v27.0.0-alpha.1-mas-arm64.zip": "2e1d73babada05c2c5cc49660c6cdff1bc006c692a3f00ff5a2d2decc6f2390f",
|
|
57
|
+
"ffmpeg-v27.0.0-alpha.1-mas-x64.zip": "c8912ef7e9d45570087b6e2c4cbed072c2b007415d44bfac06700a1d032a92a7",
|
|
58
|
+
"ffmpeg-v27.0.0-alpha.1-win32-arm64.zip": "d289ea1b4d62ce8735aea260c0bfd5afcc970f07686693ffedb390a9c8cf1bac",
|
|
59
|
+
"ffmpeg-v27.0.0-alpha.1-win32-ia32.zip": "446644fa2ac75e4d354e0a2284328e080e66fffa6fde4fcb2862957721309bab",
|
|
60
|
+
"ffmpeg-v27.0.0-alpha.1-win32-x64.zip": "99659b7a245d6e343651cc72bffc493ba98764bb1a7408ef589734f9cd357ccc",
|
|
61
|
+
"hunspell_dictionaries.zip": "e8542f78d066d0899d639722a59b5d20abb8d69e954a72fc7beb896f6f409261",
|
|
62
|
+
"libcxx-objects-v27.0.0-alpha.1-linux-arm64.zip": "8fe39182b733a8842a7913a8b9786b77b69b0dd3bca367f4d581ec856e820aa6",
|
|
63
|
+
"libcxx-objects-v27.0.0-alpha.1-linux-armv7l.zip": "cc847688369660a561d945ef4db871d9a98516be3bd315d64c8c28feeb133afe",
|
|
64
|
+
"libcxx-objects-v27.0.0-alpha.1-linux-x64.zip": "550a122e4edd54cdc1b4bf043f8406a9f0b3e4848640113f5e13fe9243c52e07",
|
|
65
|
+
"libcxx_headers.zip": "3cd99850e38a1839536522795343c23615477782377f41376831a6467d3e45e5",
|
|
66
66
|
"libcxxabi_headers.zip": "ba6952490ded27c344150527543dee9693e5906ca419a6975a38cb61da6be794",
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
67
|
+
"mksnapshot-v27.0.0-alpha.1-darwin-arm64.zip": "eff4a5d54ba84d329311e297462ab915d38179173619a841ed918578eb1e66e8",
|
|
68
|
+
"mksnapshot-v27.0.0-alpha.1-darwin-x64.zip": "191d091dedb481b8a26c5e5cab2d6ce5765224a2303c66bd7456f2f0afb04292",
|
|
69
|
+
"mksnapshot-v27.0.0-alpha.1-linux-arm64-x64.zip": "ef88a76a4e90312eb46a17e5806f2590cf6599c71db4b9e0a892590d3927f1a8",
|
|
70
|
+
"mksnapshot-v27.0.0-alpha.1-linux-armv7l-x64.zip": "3b2b5adaaaf09566e25e1447d7fde99ee9d4ab66b51fe804fb6ec5631adfda32",
|
|
71
|
+
"mksnapshot-v27.0.0-alpha.1-linux-x64.zip": "972119bd6099053f6380c7a6f1b658948b6de020b390e6452ddaa1badbe69b41",
|
|
72
|
+
"mksnapshot-v27.0.0-alpha.1-mas-arm64.zip": "cdd06c935daeb1339f4a79709487e384a4d473639a06f901555e018ef46030ba",
|
|
73
|
+
"mksnapshot-v27.0.0-alpha.1-mas-x64.zip": "c4a58953679d1f7f40238d071da42277a9e75bd37598446c2b697f6ec80753ff",
|
|
74
|
+
"mksnapshot-v27.0.0-alpha.1-win32-arm64-x64.zip": "dba22a3f506dae26fe80e1eb503c02e7a9c508e6e386d32b26e0e896612665ac",
|
|
75
|
+
"mksnapshot-v27.0.0-alpha.1-win32-ia32.zip": "cb9ac3f833b7f2b3e71c3290129d2f1621571561031635a85221d3075761e68f",
|
|
76
|
+
"mksnapshot-v27.0.0-alpha.1-win32-x64.zip": "41cfc68922fb93310699b51c1d6dbf4c41172ec8e66e06efbb257a7b2bff2f23"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 27.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/typescript-definitions
|
|
@@ -426,9 +426,9 @@ declare namespace Electron {
|
|
|
426
426
|
* `CFBundleURLTypes` key, and set `NSPrincipalClass` to `AtomApplication`.
|
|
427
427
|
*
|
|
428
428
|
* As with the `open-file` event, be sure to register a listener for the `open-url`
|
|
429
|
-
* event early in your application startup to detect if the
|
|
430
|
-
*
|
|
431
|
-
*
|
|
429
|
+
* event early in your application startup to detect if the application is being
|
|
430
|
+
* opened to handle a URL. If you register the listener in response to a `ready`
|
|
431
|
+
* event, you'll miss URLs that trigger the launch of your application.
|
|
432
432
|
*
|
|
433
433
|
* @platform darwin
|
|
434
434
|
*/
|
|
@@ -1338,6 +1338,9 @@ declare namespace Electron {
|
|
|
1338
1338
|
* **Note:** Unity launcher requires a `.desktop` file to work. For more
|
|
1339
1339
|
* information, please read the Unity integration documentation.
|
|
1340
1340
|
*
|
|
1341
|
+
* **Note:** On macOS, you need to ensure that your application has the permission
|
|
1342
|
+
* to display notifications for this method to work.
|
|
1343
|
+
*
|
|
1341
1344
|
* @platform linux,darwin
|
|
1342
1345
|
*/
|
|
1343
1346
|
setBadgeCount(count?: number): boolean;
|
|
@@ -2323,8 +2326,9 @@ declare namespace Electron {
|
|
|
2323
2326
|
*/
|
|
2324
2327
|
getBrowserView(): (BrowserView) | (null);
|
|
2325
2328
|
/**
|
|
2326
|
-
*
|
|
2327
|
-
* `setBrowserView`.
|
|
2329
|
+
* a sorted by z-index array of all BrowserViews that have been attached with
|
|
2330
|
+
* `addBrowserView` or `setBrowserView`. The top-most BrowserView is the last
|
|
2331
|
+
* element of the array.
|
|
2328
2332
|
*
|
|
2329
2333
|
* **Note:** The BrowserView API is currently experimental and may change or be
|
|
2330
2334
|
* removed in future Electron releases.
|
|
@@ -3109,12 +3113,9 @@ declare namespace Electron {
|
|
|
3109
3113
|
* Adds a vibrancy effect to the browser window. Passing `null` or an empty string
|
|
3110
3114
|
* will remove the vibrancy effect on the window.
|
|
3111
3115
|
*
|
|
3112
|
-
* Note that `appearance-based`, `light`, `dark`, `medium-light`, and `ultra-dark`
|
|
3113
|
-
* have been deprecated and will be removed in an upcoming version of macOS.
|
|
3114
|
-
*
|
|
3115
3116
|
* @platform darwin
|
|
3116
3117
|
*/
|
|
3117
|
-
setVibrancy(type: (('
|
|
3118
|
+
setVibrancy(type: (('titlebar' | 'selection' | 'menu' | 'popover' | 'sidebar' | 'header' | 'sheet' | 'window' | 'hud' | 'fullscreen-ui' | 'tooltip' | 'content' | 'under-window' | 'under-page')) | (null)): void;
|
|
3118
3119
|
/**
|
|
3119
3120
|
* Sets whether the window should be visible on all workspaces.
|
|
3120
3121
|
*
|
|
@@ -3140,6 +3141,12 @@ declare namespace Electron {
|
|
|
3140
3141
|
* Shows and gives focus to the window.
|
|
3141
3142
|
*/
|
|
3142
3143
|
show(): void;
|
|
3144
|
+
/**
|
|
3145
|
+
* Shows or hides the tab overview when native tabs are enabled.
|
|
3146
|
+
*
|
|
3147
|
+
* @platform darwin
|
|
3148
|
+
*/
|
|
3149
|
+
showAllTabs(): void;
|
|
3143
3150
|
/**
|
|
3144
3151
|
* Same as `webContents.showDefinitionForSelection()`.
|
|
3145
3152
|
*
|
|
@@ -3580,15 +3587,13 @@ declare namespace Electron {
|
|
|
3580
3587
|
useContentSize?: boolean;
|
|
3581
3588
|
/**
|
|
3582
3589
|
* Add a type of vibrancy effect to the window, only on macOS. Can be
|
|
3583
|
-
* `appearance-based`, `
|
|
3584
|
-
* `
|
|
3585
|
-
* `
|
|
3586
|
-
* note that `appearance-based`, `light`, `dark`, `medium-light`, and `ultra-dark`
|
|
3587
|
-
* are deprecated and have been removed in macOS Catalina (10.15).
|
|
3590
|
+
* `appearance-based`, `titlebar`, `selection`, `menu`, `popover`, `sidebar`,
|
|
3591
|
+
* `header`, `sheet`, `window`, `hud`, `fullscreen-ui`, `tooltip`, `content`,
|
|
3592
|
+
* `under-window`, or `under-page`.
|
|
3588
3593
|
*
|
|
3589
3594
|
* @platform darwin
|
|
3590
3595
|
*/
|
|
3591
|
-
vibrancy?: ('appearance-based' | '
|
|
3596
|
+
vibrancy?: ('appearance-based' | 'titlebar' | 'selection' | 'menu' | 'popover' | 'sidebar' | 'header' | 'sheet' | 'window' | 'hud' | 'fullscreen-ui' | 'tooltip' | 'content' | 'under-window' | 'under-page');
|
|
3592
3597
|
/**
|
|
3593
3598
|
* Specify how the material appearance should reflect window activity state on
|
|
3594
3599
|
* macOS. Must be used with the `vibrancy` property. Possible values are:
|
|
@@ -5780,6 +5785,8 @@ declare namespace Electron {
|
|
|
5780
5785
|
sendSync(channel: string, ...args: any[]): any;
|
|
5781
5786
|
/**
|
|
5782
5787
|
* Sends a message to a window with `webContentsId` via `channel`.
|
|
5788
|
+
*
|
|
5789
|
+
* @deprecated
|
|
5783
5790
|
*/
|
|
5784
5791
|
sendTo(webContentsId: number, channel: string, ...args: any[]): void;
|
|
5785
5792
|
/**
|
|
@@ -5807,12 +5814,16 @@ declare namespace Electron {
|
|
|
5807
5814
|
* ipcRenderer.sendTo for more information. This only applies to messages sent from
|
|
5808
5815
|
* a different renderer. Messages sent directly from the main process set
|
|
5809
5816
|
* `event.senderId` to `0`.
|
|
5817
|
+
*
|
|
5818
|
+
* @deprecated
|
|
5810
5819
|
*/
|
|
5811
5820
|
senderId: number;
|
|
5812
5821
|
/**
|
|
5813
5822
|
* Whether the message sent via ipcRenderer.sendTo was sent by the main frame. This
|
|
5814
5823
|
* is relevant when `nodeIntegrationInSubFrames` is enabled in the originating
|
|
5815
5824
|
* `webContents`.
|
|
5825
|
+
*
|
|
5826
|
+
* @deprecated
|
|
5816
5827
|
*/
|
|
5817
5828
|
senderIsMainFrame?: boolean;
|
|
5818
5829
|
}
|
|
@@ -6132,10 +6143,10 @@ declare namespace Electron {
|
|
|
6132
6143
|
* `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`,
|
|
6133
6144
|
* `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`,
|
|
6134
6145
|
* `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`,
|
|
6135
|
-
* `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`,
|
|
6146
|
+
* `selectPreviousTab`, `showAllTabs`, `mergeAllWindows`, `clearRecentDocuments`,
|
|
6136
6147
|
* `moveTabToNewWindow` or `windowMenu`
|
|
6137
6148
|
*/
|
|
6138
|
-
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');
|
|
6149
|
+
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' | 'showAllTabs' | 'mergeAllWindows' | 'clearRecentDocuments' | 'moveTabToNewWindow' | 'windowMenu');
|
|
6139
6150
|
/**
|
|
6140
6151
|
* A `SharingItem` indicating the item to share when the `role` is `shareMenu`.
|
|
6141
6152
|
*
|
|
@@ -7219,14 +7230,6 @@ declare namespace Electron {
|
|
|
7219
7230
|
|
|
7220
7231
|
// Docs: https://electronjs.org/docs/api/structures/product
|
|
7221
7232
|
|
|
7222
|
-
/**
|
|
7223
|
-
* The total size of the content, in bytes.
|
|
7224
|
-
*/
|
|
7225
|
-
contentLengths: number[];
|
|
7226
|
-
/**
|
|
7227
|
-
* A string that identifies the version of the content.
|
|
7228
|
-
*/
|
|
7229
|
-
contentVersion: string;
|
|
7230
7233
|
/**
|
|
7231
7234
|
* 3 character code presenting a product's currency based on the ISO 4217 standard.
|
|
7232
7235
|
*/
|
|
@@ -9154,62 +9157,6 @@ declare namespace Electron {
|
|
|
9154
9157
|
once(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9155
9158
|
addListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9156
9159
|
removeListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9157
|
-
/**
|
|
9158
|
-
* **Deprecated:** Should use the new `updated` event on the `nativeTheme` module.
|
|
9159
|
-
*
|
|
9160
|
-
* @deprecated
|
|
9161
|
-
* @platform win32
|
|
9162
|
-
*/
|
|
9163
|
-
on(event: 'high-contrast-color-scheme-changed', listener: (event: Event,
|
|
9164
|
-
/**
|
|
9165
|
-
* `true` if a high contrast theme is being used, `false` otherwise.
|
|
9166
|
-
*/
|
|
9167
|
-
highContrastColorScheme: boolean) => void): this;
|
|
9168
|
-
once(event: 'high-contrast-color-scheme-changed', listener: (event: Event,
|
|
9169
|
-
/**
|
|
9170
|
-
* `true` if a high contrast theme is being used, `false` otherwise.
|
|
9171
|
-
*/
|
|
9172
|
-
highContrastColorScheme: boolean) => void): this;
|
|
9173
|
-
addListener(event: 'high-contrast-color-scheme-changed', listener: (event: Event,
|
|
9174
|
-
/**
|
|
9175
|
-
* `true` if a high contrast theme is being used, `false` otherwise.
|
|
9176
|
-
*/
|
|
9177
|
-
highContrastColorScheme: boolean) => void): this;
|
|
9178
|
-
removeListener(event: 'high-contrast-color-scheme-changed', listener: (event: Event,
|
|
9179
|
-
/**
|
|
9180
|
-
* `true` if a high contrast theme is being used, `false` otherwise.
|
|
9181
|
-
*/
|
|
9182
|
-
highContrastColorScheme: boolean) => void): this;
|
|
9183
|
-
/**
|
|
9184
|
-
* **Deprecated:** Should use the new `updated` event on the `nativeTheme` module.
|
|
9185
|
-
*
|
|
9186
|
-
* @deprecated
|
|
9187
|
-
* @platform win32
|
|
9188
|
-
*/
|
|
9189
|
-
on(event: 'inverted-color-scheme-changed', listener: (event: Event,
|
|
9190
|
-
/**
|
|
9191
|
-
* `true` if an inverted color scheme (a high contrast color scheme with light text
|
|
9192
|
-
* and dark backgrounds) is being used, `false` otherwise.
|
|
9193
|
-
*/
|
|
9194
|
-
invertedColorScheme: boolean) => void): this;
|
|
9195
|
-
once(event: 'inverted-color-scheme-changed', listener: (event: Event,
|
|
9196
|
-
/**
|
|
9197
|
-
* `true` if an inverted color scheme (a high contrast color scheme with light text
|
|
9198
|
-
* and dark backgrounds) is being used, `false` otherwise.
|
|
9199
|
-
*/
|
|
9200
|
-
invertedColorScheme: boolean) => void): this;
|
|
9201
|
-
addListener(event: 'inverted-color-scheme-changed', listener: (event: Event,
|
|
9202
|
-
/**
|
|
9203
|
-
* `true` if an inverted color scheme (a high contrast color scheme with light text
|
|
9204
|
-
* and dark backgrounds) is being used, `false` otherwise.
|
|
9205
|
-
*/
|
|
9206
|
-
invertedColorScheme: boolean) => void): this;
|
|
9207
|
-
removeListener(event: 'inverted-color-scheme-changed', listener: (event: Event,
|
|
9208
|
-
/**
|
|
9209
|
-
* `true` if an inverted color scheme (a high contrast color scheme with light text
|
|
9210
|
-
* and dark backgrounds) is being used, `false` otherwise.
|
|
9211
|
-
*/
|
|
9212
|
-
invertedColorScheme: boolean) => void): this;
|
|
9213
9160
|
/**
|
|
9214
9161
|
* A promise that resolves with `true` if consent was granted and `false` if it was
|
|
9215
9162
|
* denied. If an invalid `mediaType` is passed, the promise will be rejected. If an
|
|
@@ -12350,6 +12297,11 @@ declare namespace Electron {
|
|
|
12350
12297
|
* page becomes backgrounded. This also affects the Page Visibility API.
|
|
12351
12298
|
*/
|
|
12352
12299
|
getBackgroundThrottling(): boolean;
|
|
12300
|
+
/**
|
|
12301
|
+
* the current title of the DevTools window. This will only be visible if DevTools
|
|
12302
|
+
* is opened in `undocked` or `detach` mode.
|
|
12303
|
+
*/
|
|
12304
|
+
getDevToolsTitle(): string;
|
|
12353
12305
|
/**
|
|
12354
12306
|
* If _offscreen rendering_ is enabled returns the current frame rate.
|
|
12355
12307
|
*/
|
|
@@ -12695,6 +12647,11 @@ declare namespace Electron {
|
|
|
12695
12647
|
* when the page becomes backgrounded. This also affects the Page Visibility API.
|
|
12696
12648
|
*/
|
|
12697
12649
|
setBackgroundThrottling(allowed: boolean): void;
|
|
12650
|
+
/**
|
|
12651
|
+
* Changes the title of the DevTools window to `title`. This will only be visible
|
|
12652
|
+
* if DevTools is opened in `undocked` or `detach` mode.
|
|
12653
|
+
*/
|
|
12654
|
+
setDevToolsTitle(title: string): void;
|
|
12698
12655
|
/**
|
|
12699
12656
|
* Uses the `devToolsWebContents` as the target `WebContents` to show devtools.
|
|
12700
12657
|
*
|
|
@@ -15085,6 +15042,10 @@ declare namespace Electron {
|
|
|
15085
15042
|
* Defaults to `Impact`.
|
|
15086
15043
|
*/
|
|
15087
15044
|
fantasy?: string;
|
|
15045
|
+
/**
|
|
15046
|
+
* Defaults to `Latin Modern Math`.
|
|
15047
|
+
*/
|
|
15048
|
+
math?: string;
|
|
15088
15049
|
}
|
|
15089
15050
|
|
|
15090
15051
|
interface Details {
|
|
@@ -15744,12 +15705,12 @@ declare namespace Electron {
|
|
|
15744
15705
|
* `showSubstitutions`, `toggleSmartQuotes`, `toggleSmartDashes`,
|
|
15745
15706
|
* `toggleTextReplacement`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`,
|
|
15746
15707
|
* `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`,
|
|
15747
|
-
* `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `
|
|
15748
|
-
* `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`
|
|
15749
|
-
* of the menu item, when specified the `click` property will
|
|
15750
|
-
* roles.
|
|
15708
|
+
* `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `showAllTabs`,
|
|
15709
|
+
* `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`
|
|
15710
|
+
* - Define the action of the menu item, when specified the `click` property will
|
|
15711
|
+
* be ignored. See roles.
|
|
15751
15712
|
*/
|
|
15752
|
-
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');
|
|
15713
|
+
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' | 'showAllTabs' | 'mergeAllWindows' | 'clearRecentDocuments' | 'moveTabToNewWindow' | 'windowMenu');
|
|
15753
15714
|
/**
|
|
15754
15715
|
* Can be `normal`, `separator`, `submenu`, `checkbox` or `radio`.
|
|
15755
15716
|
*/
|
|
@@ -16277,6 +16238,10 @@ declare namespace Electron {
|
|
|
16277
16238
|
* `true`.
|
|
16278
16239
|
*/
|
|
16279
16240
|
activate?: boolean;
|
|
16241
|
+
/**
|
|
16242
|
+
* A title for the DevTools window (only in `undocked` or `detach` mode).
|
|
16243
|
+
*/
|
|
16244
|
+
title?: string;
|
|
16280
16245
|
}
|
|
16281
16246
|
|
|
16282
16247
|
interface OpenDialogOptions {
|
|
@@ -16579,8 +16544,8 @@ declare namespace Electron {
|
|
|
16579
16544
|
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
16580
16545
|
margins?: Margins;
|
|
16581
16546
|
/**
|
|
16582
|
-
*
|
|
16583
|
-
*
|
|
16547
|
+
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
16548
|
+
* means print all pages.
|
|
16584
16549
|
*/
|
|
16585
16550
|
pageRanges?: string;
|
|
16586
16551
|
/**
|
package/package.json
CHANGED