electron 25.0.0-beta.7 → 25.0.0
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 +75 -75
- package/electron.d.ts +157 -15
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v25.0.0-
|
|
3
|
-
"chromedriver-v25.0.0-
|
|
4
|
-
"chromedriver-v25.0.0-
|
|
5
|
-
"chromedriver-v25.0.0-
|
|
6
|
-
"chromedriver-v25.0.0-
|
|
7
|
-
"chromedriver-v25.0.0-
|
|
8
|
-
"chromedriver-v25.0.0-
|
|
9
|
-
"chromedriver-v25.0.0-
|
|
10
|
-
"chromedriver-v25.0.0-
|
|
11
|
-
"chromedriver-v25.0.0-
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v25.0.0-
|
|
14
|
-
"electron-v25.0.0-
|
|
15
|
-
"electron-v25.0.0-
|
|
16
|
-
"electron-v25.0.0-
|
|
17
|
-
"electron-v25.0.0-
|
|
18
|
-
"electron-v25.0.0-
|
|
19
|
-
"electron-v25.0.0-
|
|
20
|
-
"electron-v25.0.0-
|
|
21
|
-
"electron-v25.0.0-
|
|
22
|
-
"electron-v25.0.0-
|
|
23
|
-
"electron-v25.0.0-
|
|
24
|
-
"electron-v25.0.0-
|
|
25
|
-
"electron-v25.0.0-
|
|
26
|
-
"electron-v25.0.0-
|
|
27
|
-
"electron-v25.0.0-
|
|
28
|
-
"electron-v25.0.0-
|
|
29
|
-
"electron-v25.0.0-
|
|
30
|
-
"electron-v25.0.0-
|
|
31
|
-
"electron-v25.0.0-
|
|
32
|
-
"electron-v25.0.0-
|
|
33
|
-
"electron-v25.0.0-
|
|
34
|
-
"electron-v25.0.0-
|
|
35
|
-
"electron-v25.0.0-
|
|
36
|
-
"electron-v25.0.0-
|
|
37
|
-
"electron-v25.0.0-
|
|
38
|
-
"electron-v25.0.0-
|
|
39
|
-
"electron-v25.0.0-
|
|
40
|
-
"electron-v25.0.0-
|
|
41
|
-
"electron-v25.0.0-
|
|
42
|
-
"electron-v25.0.0-
|
|
43
|
-
"electron-v25.0.0-
|
|
44
|
-
"electron-v25.0.0-
|
|
45
|
-
"electron-v25.0.0-
|
|
46
|
-
"electron-v25.0.0-
|
|
47
|
-
"electron-v25.0.0-
|
|
48
|
-
"electron-v25.0.0-
|
|
49
|
-
"electron-v25.0.0-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v25.0.0-
|
|
52
|
-
"ffmpeg-v25.0.0-
|
|
53
|
-
"ffmpeg-v25.0.0-
|
|
54
|
-
"ffmpeg-v25.0.0-
|
|
55
|
-
"ffmpeg-v25.0.0-
|
|
56
|
-
"ffmpeg-v25.0.0-
|
|
57
|
-
"ffmpeg-v25.0.0-
|
|
58
|
-
"ffmpeg-v25.0.0-
|
|
59
|
-
"ffmpeg-v25.0.0-
|
|
60
|
-
"ffmpeg-v25.0.0-
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v25.0.0-
|
|
63
|
-
"libcxx-objects-v25.0.0-
|
|
64
|
-
"libcxx-objects-v25.0.0-
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v25.0.0-
|
|
68
|
-
"mksnapshot-v25.0.0-
|
|
69
|
-
"mksnapshot-v25.0.0-
|
|
70
|
-
"mksnapshot-v25.0.0-
|
|
71
|
-
"mksnapshot-v25.0.0-
|
|
72
|
-
"mksnapshot-v25.0.0-
|
|
73
|
-
"mksnapshot-v25.0.0-
|
|
74
|
-
"mksnapshot-v25.0.0-
|
|
75
|
-
"mksnapshot-v25.0.0-
|
|
76
|
-
"mksnapshot-v25.0.0-
|
|
2
|
+
"chromedriver-v25.0.0-darwin-arm64.zip": "fb407c934fb7701e1cbfc686ef9e9b92f67a27406f74634d3c84f5f45f801384",
|
|
3
|
+
"chromedriver-v25.0.0-darwin-x64.zip": "8947014c2631907c9e89e5be4ba9e859acb232fbf5acfa282bbbca485e2dee23",
|
|
4
|
+
"chromedriver-v25.0.0-linux-arm64.zip": "d18825b3c0dca86763af9dfd7fef39f4c3b91b766357f939f331dfc39623943f",
|
|
5
|
+
"chromedriver-v25.0.0-linux-armv7l.zip": "ce126a6fd6d0b70bf56192cf8ee68ee35b9313b1f2e98be0e6bdd7327a52821f",
|
|
6
|
+
"chromedriver-v25.0.0-linux-x64.zip": "d211ecec786826f4e1cbd640e15f935263ab5524ae6c20e9fe6f81967f40bd9b",
|
|
7
|
+
"chromedriver-v25.0.0-mas-arm64.zip": "f1630a0a450bd7e621e202e7530900d17c80957fee768804477f1a7f2f31a131",
|
|
8
|
+
"chromedriver-v25.0.0-mas-x64.zip": "7eb0d182c352b254e6d91dc33456d3cbf7a30119016cd2ac4cd35520feac4aa5",
|
|
9
|
+
"chromedriver-v25.0.0-win32-arm64.zip": "9da7c4f7d47d00e9d53d2b55185b3563274fb367ed5f7a17f75a38c46b90f77d",
|
|
10
|
+
"chromedriver-v25.0.0-win32-ia32.zip": "bfe32efd2cd0d54dc5211ffcc0a5e0ccb0408381314105abd6f4947edd828ce2",
|
|
11
|
+
"chromedriver-v25.0.0-win32-x64.zip": "4d5e0bba6cd477a91f19f08e546b4ff62d4cb89072adf8d911551d5809db2e30",
|
|
12
|
+
"electron-api.json": "05a88ce80ded218b5c3aefe41535ae5eaf1382c41f74dd9d636efcb57c051e02",
|
|
13
|
+
"electron-v25.0.0-darwin-arm64-dsym-snapshot.zip": "67d85dcbbea837feadfc75748175ed19a473dbbd4d3a25307c198a5e868e3cdd",
|
|
14
|
+
"electron-v25.0.0-darwin-arm64-dsym.zip": "a3820eddb01a5e58ff7767e45da683625b2e38ad2bceb790e29b2157d90ee1c3",
|
|
15
|
+
"electron-v25.0.0-darwin-arm64-symbols.zip": "7b1dbeb753e4d5477ae93d900cee5ab5b96749ac50cd3894af3c237208e7a9c0",
|
|
16
|
+
"electron-v25.0.0-darwin-arm64.zip": "5789d16d7b0474295afe7aff97f7b09d7fd8edc00664c64cd73a2accc74c5583",
|
|
17
|
+
"electron-v25.0.0-darwin-x64-dsym-snapshot.zip": "98ba666110526bf149b527a6cb65c2c469ff95fc7af5729117ba8571288666b1",
|
|
18
|
+
"electron-v25.0.0-darwin-x64-dsym.zip": "a45f1b789aa13d2d3044aa2b8b24fe5d23265a6352095d211d5960204de6baea",
|
|
19
|
+
"electron-v25.0.0-darwin-x64-symbols.zip": "ed4b1d62281a941eca375596c4d40379f83f647b5f780dfd0dd9a05814dbd138",
|
|
20
|
+
"electron-v25.0.0-darwin-x64.zip": "90a38c24e50bf9b8945151586c9b974d29706ee5aa240285027b0930a54ad855",
|
|
21
|
+
"electron-v25.0.0-linux-arm64-debug.zip": "edfe083438ccf32f638ee61635a92014a45f28112ffe2bb0f55fc48cb2a85384",
|
|
22
|
+
"electron-v25.0.0-linux-arm64-symbols.zip": "5ef24f39e2b1c3b1af6fea90929283c28388019a3273353e2eba2467f325fa8b",
|
|
23
|
+
"electron-v25.0.0-linux-arm64.zip": "7d9cc4c832fddb0650543ddc9c99b71cd1e00aaeb09cc16103eb4a6e0b258283",
|
|
24
|
+
"electron-v25.0.0-linux-armv7l-debug.zip": "edfe083438ccf32f638ee61635a92014a45f28112ffe2bb0f55fc48cb2a85384",
|
|
25
|
+
"electron-v25.0.0-linux-armv7l-symbols.zip": "62aa47df8d624e4fe81be6a4e7440c3bbe1a6bc2584c684da034c36a823f5284",
|
|
26
|
+
"electron-v25.0.0-linux-armv7l.zip": "5d64877bca3cb713ba51152c71297fe61a5ca1a9b9f38bc20d4b5cdf59177ba7",
|
|
27
|
+
"electron-v25.0.0-linux-x64-debug.zip": "8e7f18aaff961e406883c7ac0c36f0e1aa33ec7b00355abd791904e556749ba0",
|
|
28
|
+
"electron-v25.0.0-linux-x64-symbols.zip": "ddee4164fe637028146043706ea54e877e35bcd052680eaf3721316c6d0a17d4",
|
|
29
|
+
"electron-v25.0.0-linux-x64.zip": "85779b11404aacae0e80c17324c384ffb0bfed6acbd7de0daf20db7038d8f28e",
|
|
30
|
+
"electron-v25.0.0-mas-arm64-dsym-snapshot.zip": "67d85dcbbea837feadfc75748175ed19a473dbbd4d3a25307c198a5e868e3cdd",
|
|
31
|
+
"electron-v25.0.0-mas-arm64-dsym.zip": "8d789ca3c0b76a408e593c5fabb81b1cab77b51dd50972af6142fdbed225321f",
|
|
32
|
+
"electron-v25.0.0-mas-arm64-symbols.zip": "b857e2e7b51ef06e1c8177728c8132af3409fa4a3c8fa86b69404f09e2dbd92e",
|
|
33
|
+
"electron-v25.0.0-mas-arm64.zip": "24a9b33b6ec8887dd2b6e7182a27accf40c1e5e1e16d5bee64284368106c8193",
|
|
34
|
+
"electron-v25.0.0-mas-x64-dsym-snapshot.zip": "3db4e13920902dd14136b6fa4f56e929e302f3adece18ebb07c6fa3fc173b92e",
|
|
35
|
+
"electron-v25.0.0-mas-x64-dsym.zip": "3bda12a5e58fc058222532c80c4d30905dd21078f2ce1a5ecb52602313d12900",
|
|
36
|
+
"electron-v25.0.0-mas-x64-symbols.zip": "bf3aa5365dd3b612f6a91b196c31426d130e86fba96193c3820c526610f49436",
|
|
37
|
+
"electron-v25.0.0-mas-x64.zip": "d1f20066e63f4eca4ae41e2dc3890ba86de409c86e24494417ffd964ff033372",
|
|
38
|
+
"electron-v25.0.0-win32-arm64-pdb.zip": "e240bd1d71f0e063bf1701c4c420b8f9be103af6ff465ea867d6b32b8af8e6c4",
|
|
39
|
+
"electron-v25.0.0-win32-arm64-symbols.zip": "e4d645c5cd82ec4045f910b682ad5b195713811f7abf9836c09f0c48d1419297",
|
|
40
|
+
"electron-v25.0.0-win32-arm64-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
41
|
+
"electron-v25.0.0-win32-arm64.zip": "9bb2c3d6741d4973db3d64ce4230b94b40bf1c01a412c32e75810a123fee8dd0",
|
|
42
|
+
"electron-v25.0.0-win32-ia32-pdb.zip": "871d3ebd3c19b171739371b5f37eaa71f1701d3a5a2d1f4e0bdaf2d20cfde5df",
|
|
43
|
+
"electron-v25.0.0-win32-ia32-symbols.zip": "5a51f8c5635a46190046dad243065e251e0a66a4616ba23caeb87dc5cc77e56a",
|
|
44
|
+
"electron-v25.0.0-win32-ia32-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
45
|
+
"electron-v25.0.0-win32-ia32.zip": "5c012c5dd2da1835bb39a173db88848908a38e4cf8e15c166a03055166a0f77e",
|
|
46
|
+
"electron-v25.0.0-win32-x64-pdb.zip": "2b9c9e1356bd0d28551330aa68ddf2f9891aa899eb3ee9b7f1b10c5abefe7cfe",
|
|
47
|
+
"electron-v25.0.0-win32-x64-symbols.zip": "a8be10e5754d8e4fd414b83098e5e21fb984426a20e4345d696001ba08d96798",
|
|
48
|
+
"electron-v25.0.0-win32-x64-toolchain-profile.zip": "e7b968fc53cc7a10a4ccb5133af045968479685ebb9617f06817f03667fdd425",
|
|
49
|
+
"electron-v25.0.0-win32-x64.zip": "1db2ef619d9480579aa200447a6d70640b15d59a93a180922a4f35d1e2615a2c",
|
|
50
|
+
"electron.d.ts": "7e450d6943fdc905c40ce63f8d573983bc3e5fefe3db4854586ca92c9565019e",
|
|
51
|
+
"ffmpeg-v25.0.0-darwin-arm64.zip": "ac652364a7a4012ea7c0cee8a80b276c5dfdd4ea2e7343e9e1e077dc734647c8",
|
|
52
|
+
"ffmpeg-v25.0.0-darwin-x64.zip": "dcb9a85e5c3ff309b1def8ea05390a8fe6a95572f2d513cb10e30d7bf578bbe7",
|
|
53
|
+
"ffmpeg-v25.0.0-linux-arm64.zip": "00d0508e9a7c181abbd2dc8ff6fee3a4d71efe94a14f737e7952a332ff8b9a59",
|
|
54
|
+
"ffmpeg-v25.0.0-linux-armv7l.zip": "461612047830c3850a9e1225cefc2e5620a80cc6f9f9be6660773cab87bc88fb",
|
|
55
|
+
"ffmpeg-v25.0.0-linux-x64.zip": "b621a667dc08c9ea187770ebedb15fe12ac604cb45fbaafa68000b5b4eee06cb",
|
|
56
|
+
"ffmpeg-v25.0.0-mas-arm64.zip": "d65351217528e1fed27a7087ccb4c0dfeb872593ea94eea5fb572a2db496de47",
|
|
57
|
+
"ffmpeg-v25.0.0-mas-x64.zip": "392c6388ea4b8aec1dd8faee88df0fe81f1d0d77b47c28fbb342e5f93ee11bf0",
|
|
58
|
+
"ffmpeg-v25.0.0-win32-arm64.zip": "0e6291f6d5f4241063cc22ac8d6f25c26b6ad3d518d9019610113fb624e69650",
|
|
59
|
+
"ffmpeg-v25.0.0-win32-ia32.zip": "81506b6d675ad6efa86b99b2e717ee817f231392eb09e2920ea044da47947189",
|
|
60
|
+
"ffmpeg-v25.0.0-win32-x64.zip": "485a3abafaead49b703d1afc1865f6a2452267ad9af0b7853a654654c79477d1",
|
|
61
|
+
"hunspell_dictionaries.zip": "4c79177696adc7992c259fd93bc55b96414c8b9e423615545fb962c9bc0f5fc8",
|
|
62
|
+
"libcxx-objects-v25.0.0-linux-arm64.zip": "19df7881ce26db8bac6923be7762a72aa8634aa22490d4c7731bf9cb8e6350cc",
|
|
63
|
+
"libcxx-objects-v25.0.0-linux-armv7l.zip": "91a2c8a588130d1edad1c61bef1871df453e7ade5e40811a11d2fe52484d9e2c",
|
|
64
|
+
"libcxx-objects-v25.0.0-linux-x64.zip": "ea82bef63672545ad80878e74adedf6ff4d34be73598249cf9f39e3b2c032789",
|
|
65
|
+
"libcxx_headers.zip": "96c5d1748d1359f131be06486fad74f7844e209e5c39dbc328e8705c21503d66",
|
|
66
|
+
"libcxxabi_headers.zip": "ba6952490ded27c344150527543dee9693e5906ca419a6975a38cb61da6be794",
|
|
67
|
+
"mksnapshot-v25.0.0-darwin-arm64.zip": "2dc727fa81f4eeb126c984245c9ea82ddc278b5f80ac6461d7fcfce9da0303c7",
|
|
68
|
+
"mksnapshot-v25.0.0-darwin-x64.zip": "e132c028a045f14f77e292f1bdd7e1b08f59ec8d3d57619c3b9bd382a6146dc4",
|
|
69
|
+
"mksnapshot-v25.0.0-linux-arm64-x64.zip": "0d86d09fc3d1c65d63eb582947e056edff8f6723a15e9f3b006624664f611c66",
|
|
70
|
+
"mksnapshot-v25.0.0-linux-armv7l-x64.zip": "a52d47cd76f117b8364a6d2ec1b14f367302f42cdf0e3221e095baaef9ad6f8a",
|
|
71
|
+
"mksnapshot-v25.0.0-linux-x64.zip": "6f6a3816bd4bc9e8bb118ffe1894f6e76857182893c6675f0d2d22aaef320831",
|
|
72
|
+
"mksnapshot-v25.0.0-mas-arm64.zip": "4a18a008c02d1d5c852881a59c092cc230a683df50c118c9aacf407e47e3eb37",
|
|
73
|
+
"mksnapshot-v25.0.0-mas-x64.zip": "a4aee0922c8cc30217e9b2525931cdaf31e9636c8f063a0c57131adfe1059363",
|
|
74
|
+
"mksnapshot-v25.0.0-win32-arm64-x64.zip": "d34f916b87fe40a6fea2cca17c2476c26dcedee700fbe7f4e91319425a17c40e",
|
|
75
|
+
"mksnapshot-v25.0.0-win32-ia32.zip": "19317761e621067cbcf0c4e0978977b4b21428524ddbeb2bf05aa530243cf41f",
|
|
76
|
+
"mksnapshot-v25.0.0-win32-x64.zip": "8c3514115a1d728c57911e07fffc06b31530131b824e21d18866443a29345b8f"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 25.0.0
|
|
1
|
+
// Type definitions for Electron 25.0.0
|
|
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
|
|
@@ -2778,6 +2778,17 @@ declare namespace Electron {
|
|
|
2778
2778
|
* Sets the background color of the window. See Setting `backgroundColor`.
|
|
2779
2779
|
*/
|
|
2780
2780
|
setBackgroundColor(backgroundColor: string): void;
|
|
2781
|
+
/**
|
|
2782
|
+
* This method sets the browser window's system-drawn background material,
|
|
2783
|
+
* including behind the non-client area.
|
|
2784
|
+
*
|
|
2785
|
+
* See the Windows documentation for more details.
|
|
2786
|
+
*
|
|
2787
|
+
* **Note:** This method is only supported on Windows 11 22H2 and up.
|
|
2788
|
+
*
|
|
2789
|
+
* @platform win32
|
|
2790
|
+
*/
|
|
2791
|
+
setBackgroundMaterial(material: 'auto' | 'none' | 'mica' | 'acrylic' | 'tabbed'): void;
|
|
2781
2792
|
/**
|
|
2782
2793
|
* Resizes and moves the window to the supplied bounds. Any properties that are not
|
|
2783
2794
|
* supplied will default to their current values.
|
|
@@ -10814,22 +10825,22 @@ declare namespace Electron {
|
|
|
10814
10825
|
* Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for
|
|
10815
10826
|
* a link in its context menu.
|
|
10816
10827
|
*/
|
|
10817
|
-
on(event: 'devtools-open-url', listener: (
|
|
10828
|
+
on(event: 'devtools-open-url', listener: (event: Event,
|
|
10818
10829
|
/**
|
|
10819
10830
|
* URL of the link that was clicked or selected.
|
|
10820
10831
|
*/
|
|
10821
10832
|
url: string) => void): this;
|
|
10822
|
-
once(event: 'devtools-open-url', listener: (
|
|
10833
|
+
once(event: 'devtools-open-url', listener: (event: Event,
|
|
10823
10834
|
/**
|
|
10824
10835
|
* URL of the link that was clicked or selected.
|
|
10825
10836
|
*/
|
|
10826
10837
|
url: string) => void): this;
|
|
10827
|
-
addListener(event: 'devtools-open-url', listener: (
|
|
10838
|
+
addListener(event: 'devtools-open-url', listener: (event: Event,
|
|
10828
10839
|
/**
|
|
10829
10840
|
* URL of the link that was clicked or selected.
|
|
10830
10841
|
*/
|
|
10831
10842
|
url: string) => void): this;
|
|
10832
|
-
removeListener(event: 'devtools-open-url', listener: (
|
|
10843
|
+
removeListener(event: 'devtools-open-url', listener: (event: Event,
|
|
10833
10844
|
/**
|
|
10834
10845
|
* URL of the link that was clicked or selected.
|
|
10835
10846
|
*/
|
|
@@ -11995,6 +12006,81 @@ declare namespace Electron {
|
|
|
11995
12006
|
* creation:
|
|
11996
12007
|
*/
|
|
11997
12008
|
addWorkSpace(path: string): void;
|
|
12009
|
+
/**
|
|
12010
|
+
* Adjusts the current text selection starting and ending points in the focused
|
|
12011
|
+
* frame by the given amounts. A negative amount moves the selection towards the
|
|
12012
|
+
* beginning of the document, and a positive amount moves the selection towards the
|
|
12013
|
+
* end of the document.
|
|
12014
|
+
*
|
|
12015
|
+
* Example:
|
|
12016
|
+
*
|
|
12017
|
+
* For a call of `win.webContents.adjustSelection({ start: 1, end: 5 })`
|
|
12018
|
+
*
|
|
12019
|
+
* Before:
|
|
12020
|
+
*
|
|
12021
|
+
* <img width="487" alt="Image Before Text Selection Adjustment"
|
|
12022
|
+
*
|
|
12023
|
+
*
|
|
12024
|
+
*
|
|
12025
|
+
*
|
|
12026
|
+
*
|
|
12027
|
+
*
|
|
12028
|
+
*
|
|
12029
|
+
*
|
|
12030
|
+
*
|
|
12031
|
+
*
|
|
12032
|
+
*
|
|
12033
|
+
*
|
|
12034
|
+
*
|
|
12035
|
+
*
|
|
12036
|
+
*
|
|
12037
|
+
*
|
|
12038
|
+
*
|
|
12039
|
+
*
|
|
12040
|
+
*
|
|
12041
|
+
*
|
|
12042
|
+
*
|
|
12043
|
+
*
|
|
12044
|
+
*
|
|
12045
|
+
*
|
|
12046
|
+
*
|
|
12047
|
+
*
|
|
12048
|
+
*
|
|
12049
|
+
* thubusercontent.com/2036040/231761306-cd4e7b15-c2ed-46cf-8e80-10811f6de83e.png">
|
|
12050
|
+
*
|
|
12051
|
+
* After:
|
|
12052
|
+
*
|
|
12053
|
+
* <img width="487" alt="Image After Text Selection Adjustment"
|
|
12054
|
+
*
|
|
12055
|
+
*
|
|
12056
|
+
*
|
|
12057
|
+
*
|
|
12058
|
+
*
|
|
12059
|
+
*
|
|
12060
|
+
*
|
|
12061
|
+
*
|
|
12062
|
+
*
|
|
12063
|
+
*
|
|
12064
|
+
*
|
|
12065
|
+
*
|
|
12066
|
+
*
|
|
12067
|
+
*
|
|
12068
|
+
*
|
|
12069
|
+
*
|
|
12070
|
+
*
|
|
12071
|
+
*
|
|
12072
|
+
*
|
|
12073
|
+
*
|
|
12074
|
+
*
|
|
12075
|
+
*
|
|
12076
|
+
*
|
|
12077
|
+
*
|
|
12078
|
+
*
|
|
12079
|
+
*
|
|
12080
|
+
*
|
|
12081
|
+
* thubusercontent.com/2036040/231761169-887eb8ef-06fb-46e4-9efa-898bcb0d6a2b.png">
|
|
12082
|
+
*/
|
|
12083
|
+
adjustSelection(options: AdjustSelectionOptions): void;
|
|
11998
12084
|
/**
|
|
11999
12085
|
* Begin subscribing for presentation events and captured frames, the `callback`
|
|
12000
12086
|
* will be called with `callback(image, dirtyRect)` when there is a presentation
|
|
@@ -12040,6 +12126,10 @@ declare namespace Electron {
|
|
|
12040
12126
|
* hidden, you should ensure that `stayHidden` is set to true.
|
|
12041
12127
|
*/
|
|
12042
12128
|
capturePage(rect?: Rectangle, opts?: Opts): Promise<Electron.NativeImage>;
|
|
12129
|
+
/**
|
|
12130
|
+
* Centers the current text selection in web page.
|
|
12131
|
+
*/
|
|
12132
|
+
centerSelection(): void;
|
|
12043
12133
|
/**
|
|
12044
12134
|
* Clears the navigation history.
|
|
12045
12135
|
*/
|
|
@@ -12425,6 +12515,14 @@ declare namespace Electron {
|
|
|
12425
12515
|
* resolves if the page is saved.
|
|
12426
12516
|
*/
|
|
12427
12517
|
savePage(fullPath: string, saveType: 'HTMLOnly' | 'HTMLComplete' | 'MHTML'): Promise<void>;
|
|
12518
|
+
/**
|
|
12519
|
+
* Scrolls to the bottom of the current `webContents`.
|
|
12520
|
+
*/
|
|
12521
|
+
scrollToBottom(): void;
|
|
12522
|
+
/**
|
|
12523
|
+
* Scrolls to the top of the current `webContents`.
|
|
12524
|
+
*/
|
|
12525
|
+
scrollToTop(): void;
|
|
12428
12526
|
/**
|
|
12429
12527
|
* Executes the editing command `selectAll` in web page.
|
|
12430
12528
|
*/
|
|
@@ -13437,6 +13535,15 @@ declare namespace Electron {
|
|
|
13437
13535
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
13438
13536
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
|
|
13439
13537
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
13538
|
+
/**
|
|
13539
|
+
* Adjusts the current text selection starting and ending points in the focused
|
|
13540
|
+
* frame by the given amounts. A negative amount moves the selection towards the
|
|
13541
|
+
* beginning of the document, and a positive amount moves the selection towards the
|
|
13542
|
+
* end of the document.
|
|
13543
|
+
*
|
|
13544
|
+
* See `webContents.adjustSelection` for examples.
|
|
13545
|
+
*/
|
|
13546
|
+
adjustSelection(options: AdjustSelectionOptions): void;
|
|
13440
13547
|
/**
|
|
13441
13548
|
* Whether the guest page can go back.
|
|
13442
13549
|
*/
|
|
@@ -13456,6 +13563,10 @@ declare namespace Electron {
|
|
|
13456
13563
|
* whole visible page.
|
|
13457
13564
|
*/
|
|
13458
13565
|
capturePage(rect?: Rectangle): Promise<Electron.NativeImage>;
|
|
13566
|
+
/**
|
|
13567
|
+
* Centers the current text selection in page.
|
|
13568
|
+
*/
|
|
13569
|
+
centerSelection(): void;
|
|
13459
13570
|
/**
|
|
13460
13571
|
* Clears the navigation history.
|
|
13461
13572
|
*/
|
|
@@ -13651,6 +13762,14 @@ declare namespace Electron {
|
|
|
13651
13762
|
* Executes editing command `replaceMisspelling` in page.
|
|
13652
13763
|
*/
|
|
13653
13764
|
replaceMisspelling(text: string): void;
|
|
13765
|
+
/**
|
|
13766
|
+
* Scrolls to the bottom of the current `<webview>`.
|
|
13767
|
+
*/
|
|
13768
|
+
scrollToBottom(): void;
|
|
13769
|
+
/**
|
|
13770
|
+
* Scrolls to the top of the current `<webview>`.
|
|
13771
|
+
*/
|
|
13772
|
+
scrollToTop(): void;
|
|
13654
13773
|
/**
|
|
13655
13774
|
* Executes editing command `selectAll` in page.
|
|
13656
13775
|
*/
|
|
@@ -13742,6 +13861,8 @@ declare namespace Electron {
|
|
|
13742
13861
|
/**
|
|
13743
13862
|
* A `boolean`. When this attribute is present the guest page will have web
|
|
13744
13863
|
* security disabled. Web security is enabled by default.
|
|
13864
|
+
*
|
|
13865
|
+
* This value can only be modified before the first navigation.
|
|
13745
13866
|
*/
|
|
13746
13867
|
disablewebsecurity: boolean;
|
|
13747
13868
|
/**
|
|
@@ -13896,6 +14017,17 @@ declare namespace Electron {
|
|
|
13896
14017
|
dataURL?: string;
|
|
13897
14018
|
}
|
|
13898
14019
|
|
|
14020
|
+
interface AdjustSelectionOptions {
|
|
14021
|
+
/**
|
|
14022
|
+
* Amount to shift the start index of the current selection.
|
|
14023
|
+
*/
|
|
14024
|
+
start?: number;
|
|
14025
|
+
/**
|
|
14026
|
+
* Amount to shift the end index of the current selection.
|
|
14027
|
+
*/
|
|
14028
|
+
end?: number;
|
|
14029
|
+
}
|
|
14030
|
+
|
|
13899
14031
|
interface AnimationSettings {
|
|
13900
14032
|
/**
|
|
13901
14033
|
* Returns true if rich animations should be rendered. Looks at session type (e.g.
|
|
@@ -14296,6 +14428,14 @@ declare namespace Electron {
|
|
|
14296
14428
|
* @platform darwin
|
|
14297
14429
|
*/
|
|
14298
14430
|
vibrancy?: ('appearance-based' | 'light' | 'dark' | 'titlebar' | 'selection' | 'menu' | 'popover' | 'sidebar' | 'medium-light' | 'ultra-dark' | 'header' | 'sheet' | 'window' | 'hud' | 'fullscreen-ui' | 'tooltip' | 'content' | 'under-window' | 'under-page');
|
|
14431
|
+
/**
|
|
14432
|
+
* Set the window's system-drawn background material, including behind the
|
|
14433
|
+
* non-client area. Can be `auto`, `none`, `mica`, `acrylic` or `tabbed`. See
|
|
14434
|
+
* win.setBackgroundMaterial for more information.
|
|
14435
|
+
*
|
|
14436
|
+
* @platform win32
|
|
14437
|
+
*/
|
|
14438
|
+
backgroundMaterial?: ('auto' | 'none' | 'mica' | 'acrylic' | 'tabbed');
|
|
14299
14439
|
/**
|
|
14300
14440
|
* Controls the behavior on macOS when option-clicking the green stoplight button
|
|
14301
14441
|
* on the toolbar or by clicking the Window > Zoom menu item. If `true`, the window
|
|
@@ -15614,12 +15754,11 @@ declare namespace Electron {
|
|
|
15614
15754
|
*/
|
|
15615
15755
|
message: string;
|
|
15616
15756
|
/**
|
|
15617
|
-
* Can be `
|
|
15618
|
-
*
|
|
15619
|
-
*
|
|
15620
|
-
* warning icon.
|
|
15757
|
+
* Can be `none`, `info`, `error`, `question` or `warning`. On Windows, `question`
|
|
15758
|
+
* displays the same icon as `info`, unless you set an icon using the `icon`
|
|
15759
|
+
* option. On macOS, both `warning` and `error` display the same warning icon.
|
|
15621
15760
|
*/
|
|
15622
|
-
type?:
|
|
15761
|
+
type?: ('none' | 'info' | 'error' | 'question' | 'warning');
|
|
15623
15762
|
/**
|
|
15624
15763
|
* Array of texts for buttons. On Windows, an empty array will result in one button
|
|
15625
15764
|
* labeled "OK".
|
|
@@ -15703,12 +15842,11 @@ declare namespace Electron {
|
|
|
15703
15842
|
*/
|
|
15704
15843
|
message: string;
|
|
15705
15844
|
/**
|
|
15706
|
-
* Can be `
|
|
15707
|
-
*
|
|
15708
|
-
*
|
|
15709
|
-
* warning icon.
|
|
15845
|
+
* Can be `none`, `info`, `error`, `question` or `warning`. On Windows, `question`
|
|
15846
|
+
* displays the same icon as `info`, unless you set an icon using the `icon`
|
|
15847
|
+
* option. On macOS, both `warning` and `error` display the same warning icon.
|
|
15710
15848
|
*/
|
|
15711
|
-
type?:
|
|
15849
|
+
type?: ('none' | 'info' | 'error' | 'question' | 'warning');
|
|
15712
15850
|
/**
|
|
15713
15851
|
* Array of texts for buttons. On Windows, an empty array will result in one button
|
|
15714
15852
|
* labeled "OK".
|
|
@@ -18056,6 +18194,7 @@ declare namespace Electron {
|
|
|
18056
18194
|
type Shell = Electron.Shell;
|
|
18057
18195
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
18058
18196
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
18197
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
18059
18198
|
type AnimationSettings = Electron.AnimationSettings;
|
|
18060
18199
|
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
18061
18200
|
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
|
@@ -18379,6 +18518,7 @@ declare namespace Electron {
|
|
|
18379
18518
|
type WebRequest = Electron.WebRequest;
|
|
18380
18519
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
18381
18520
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
18521
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
18382
18522
|
type AnimationSettings = Electron.AnimationSettings;
|
|
18383
18523
|
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
18384
18524
|
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
|
@@ -18636,6 +18776,7 @@ declare namespace Electron {
|
|
|
18636
18776
|
type WebviewTag = Electron.WebviewTag;
|
|
18637
18777
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
18638
18778
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
18779
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
18639
18780
|
type AnimationSettings = Electron.AnimationSettings;
|
|
18640
18781
|
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
18641
18782
|
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
|
@@ -18974,6 +19115,7 @@ declare namespace Electron {
|
|
|
18974
19115
|
type WebviewTag = Electron.WebviewTag;
|
|
18975
19116
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
18976
19117
|
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
19118
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
18977
19119
|
type AnimationSettings = Electron.AnimationSettings;
|
|
18978
19120
|
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
18979
19121
|
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
package/package.json
CHANGED