electron 22.0.0-beta.4 → 22.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/checksums.json +75 -75
- package/electron.d.ts +230 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) an
|
|
|
12
12
|
[Chromium](https://www.chromium.org) and is used by the [Atom
|
|
13
13
|
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
|
|
14
14
|
|
|
15
|
-
Follow [@
|
|
15
|
+
Follow [@electronjs](https://twitter.com/electronjs) on Twitter for important
|
|
16
16
|
announcements.
|
|
17
17
|
|
|
18
18
|
This project adheres to the Contributor Covenant
|
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v22.0.0-beta.
|
|
3
|
-
"chromedriver-v22.0.0-beta.
|
|
4
|
-
"chromedriver-v22.0.0-beta.
|
|
5
|
-
"chromedriver-v22.0.0-beta.
|
|
6
|
-
"chromedriver-v22.0.0-beta.
|
|
7
|
-
"chromedriver-v22.0.0-beta.
|
|
8
|
-
"chromedriver-v22.0.0-beta.
|
|
9
|
-
"chromedriver-v22.0.0-beta.
|
|
10
|
-
"chromedriver-v22.0.0-beta.
|
|
11
|
-
"chromedriver-v22.0.0-beta.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v22.0.0-beta.
|
|
14
|
-
"electron-v22.0.0-beta.
|
|
15
|
-
"electron-v22.0.0-beta.
|
|
16
|
-
"electron-v22.0.0-beta.
|
|
17
|
-
"electron-v22.0.0-beta.
|
|
18
|
-
"electron-v22.0.0-beta.
|
|
19
|
-
"electron-v22.0.0-beta.
|
|
20
|
-
"electron-v22.0.0-beta.
|
|
21
|
-
"electron-v22.0.0-beta.
|
|
22
|
-
"electron-v22.0.0-beta.
|
|
23
|
-
"electron-v22.0.0-beta.
|
|
24
|
-
"electron-v22.0.0-beta.
|
|
25
|
-
"electron-v22.0.0-beta.
|
|
26
|
-
"electron-v22.0.0-beta.
|
|
27
|
-
"electron-v22.0.0-beta.
|
|
28
|
-
"electron-v22.0.0-beta.
|
|
29
|
-
"electron-v22.0.0-beta.
|
|
30
|
-
"electron-v22.0.0-beta.
|
|
31
|
-
"electron-v22.0.0-beta.
|
|
32
|
-
"electron-v22.0.0-beta.
|
|
33
|
-
"electron-v22.0.0-beta.
|
|
34
|
-
"electron-v22.0.0-beta.
|
|
35
|
-
"electron-v22.0.0-beta.
|
|
36
|
-
"electron-v22.0.0-beta.
|
|
37
|
-
"electron-v22.0.0-beta.
|
|
38
|
-
"electron-v22.0.0-beta.
|
|
39
|
-
"electron-v22.0.0-beta.
|
|
40
|
-
"electron-v22.0.0-beta.
|
|
41
|
-
"electron-v22.0.0-beta.
|
|
42
|
-
"electron-v22.0.0-beta.
|
|
43
|
-
"electron-v22.0.0-beta.
|
|
44
|
-
"electron-v22.0.0-beta.
|
|
45
|
-
"electron-v22.0.0-beta.
|
|
46
|
-
"electron-v22.0.0-beta.
|
|
47
|
-
"electron-v22.0.0-beta.
|
|
48
|
-
"electron-v22.0.0-beta.
|
|
49
|
-
"electron-v22.0.0-beta.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v22.0.0-beta.
|
|
52
|
-
"ffmpeg-v22.0.0-beta.
|
|
53
|
-
"ffmpeg-v22.0.0-beta.
|
|
54
|
-
"ffmpeg-v22.0.0-beta.
|
|
55
|
-
"ffmpeg-v22.0.0-beta.
|
|
56
|
-
"ffmpeg-v22.0.0-beta.
|
|
57
|
-
"ffmpeg-v22.0.0-beta.
|
|
58
|
-
"ffmpeg-v22.0.0-beta.
|
|
59
|
-
"ffmpeg-v22.0.0-beta.
|
|
60
|
-
"ffmpeg-v22.0.0-beta.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v22.0.0-beta.
|
|
63
|
-
"libcxx-objects-v22.0.0-beta.
|
|
64
|
-
"libcxx-objects-v22.0.0-beta.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v22.0.0-beta.
|
|
68
|
-
"mksnapshot-v22.0.0-beta.
|
|
69
|
-
"mksnapshot-v22.0.0-beta.
|
|
70
|
-
"mksnapshot-v22.0.0-beta.
|
|
71
|
-
"mksnapshot-v22.0.0-beta.
|
|
72
|
-
"mksnapshot-v22.0.0-beta.
|
|
73
|
-
"mksnapshot-v22.0.0-beta.
|
|
74
|
-
"mksnapshot-v22.0.0-beta.
|
|
75
|
-
"mksnapshot-v22.0.0-beta.
|
|
76
|
-
"mksnapshot-v22.0.0-beta.
|
|
2
|
+
"chromedriver-v22.0.0-beta.6-darwin-arm64.zip": "69104709e2a846eab0cb57eb67f8987a97df8e57c8a4d5ed849dcc0c45d57530",
|
|
3
|
+
"chromedriver-v22.0.0-beta.6-darwin-x64.zip": "f904e014ce536c25dbaa4b083c0345001ebf023bad6a0a1f2c6edda3e75ee237",
|
|
4
|
+
"chromedriver-v22.0.0-beta.6-linux-arm64.zip": "b1db3ac67f7b5f072c1d8070813ba25319fba2f3950f0e51b0c79a716fa4c88b",
|
|
5
|
+
"chromedriver-v22.0.0-beta.6-linux-armv7l.zip": "8184b6d034a9d3d5d6ac82fd68c414af615b3e29aa3a6562154b54c8ebb63c2e",
|
|
6
|
+
"chromedriver-v22.0.0-beta.6-linux-x64.zip": "e95dd18f4656145c358a2e1c8b8e78cbff9ff19e171a057ef7a2bc04952ef819",
|
|
7
|
+
"chromedriver-v22.0.0-beta.6-mas-arm64.zip": "6ec08961b720724eca80e61494871d8e3a41c4538809e384c94fa2267927d8ac",
|
|
8
|
+
"chromedriver-v22.0.0-beta.6-mas-x64.zip": "e788af3382abdbc89714f3a198399b3ee87bc54ca0b805342f6eecd8537d770d",
|
|
9
|
+
"chromedriver-v22.0.0-beta.6-win32-arm64.zip": "cb0a174223384cceebcfc659619e35e222f85f1ebe59bd7e4f061c53d9bed85f",
|
|
10
|
+
"chromedriver-v22.0.0-beta.6-win32-ia32.zip": "b0725f4b139b51afe46e890544068f2bd4013c503f7682476ab32af848b77684",
|
|
11
|
+
"chromedriver-v22.0.0-beta.6-win32-x64.zip": "d1942db4ecb79d79ec261e9000e94e0bbf73a9749956534456ab0ede3c0efecb",
|
|
12
|
+
"electron-api.json": "39c3dd518b918aee51d3f266f6df4786982db5e8b67c4fbec7c2ed8211a364cb",
|
|
13
|
+
"electron-v22.0.0-beta.6-darwin-arm64-dsym-snapshot.zip": "e3ed6d6ada27972606d15b9485458785837e68a854ef0021217745fbcdbe37fd",
|
|
14
|
+
"electron-v22.0.0-beta.6-darwin-arm64-dsym.zip": "317c4297dfe7019302e6dcaf3b6b2449d40fab9fbf0ed849416bc4236ad4cb85",
|
|
15
|
+
"electron-v22.0.0-beta.6-darwin-arm64-symbols.zip": "9e349cac8f223c00d5d2cd9231014ce2569baa952c419c1412529140e3fb295a",
|
|
16
|
+
"electron-v22.0.0-beta.6-darwin-arm64.zip": "9e55da48580bd193c1df3c667c52868aa3a0a177c91d168a92d51eca156af679",
|
|
17
|
+
"electron-v22.0.0-beta.6-darwin-x64-dsym-snapshot.zip": "953407da6e1df9d2c19d55e8d239d9f56c73ebfe68d3c76b8d9669a440ef1f81",
|
|
18
|
+
"electron-v22.0.0-beta.6-darwin-x64-dsym.zip": "2b37c4d66cd54aa33f0bb418b515f2fda3ed9fbb4ee09db0fb2011d2a1e3334c",
|
|
19
|
+
"electron-v22.0.0-beta.6-darwin-x64-symbols.zip": "1d579fcea9a9e9e9482d5cd81742250fde728fe1c09e3ceede113fc1fadcbbe6",
|
|
20
|
+
"electron-v22.0.0-beta.6-darwin-x64.zip": "193fc065c398f45ba24cc34511c0db071ecf5b265526726f2d4ad240641159f1",
|
|
21
|
+
"electron-v22.0.0-beta.6-linux-arm64-debug.zip": "52afdb78db88d494f9c7d4a4b212784461a09698b9e7e8cf4a0080647e24b6ec",
|
|
22
|
+
"electron-v22.0.0-beta.6-linux-arm64-symbols.zip": "9d90c1f7ee85225031794aae500d16aa4d3e3abc9b22700bfe697fc00b956edb",
|
|
23
|
+
"electron-v22.0.0-beta.6-linux-arm64.zip": "4879aa3062de6010390e7737df9546e6129e749093cf78d68aed62f4b8f17f59",
|
|
24
|
+
"electron-v22.0.0-beta.6-linux-armv7l-debug.zip": "52afdb78db88d494f9c7d4a4b212784461a09698b9e7e8cf4a0080647e24b6ec",
|
|
25
|
+
"electron-v22.0.0-beta.6-linux-armv7l-symbols.zip": "c2018a631c7cb66950a74a0a4d184318523d1b3c65b0cb9023b653ea1410fc98",
|
|
26
|
+
"electron-v22.0.0-beta.6-linux-armv7l.zip": "96c4fa9092685bb3681c50df0d199df51addc4a8fb1a4fe6cbda8fe82c656795",
|
|
27
|
+
"electron-v22.0.0-beta.6-linux-x64-debug.zip": "3eec430da589d61e2e8c808785c7b4edef0c811b2ca210ede7568cfbdbe5ee76",
|
|
28
|
+
"electron-v22.0.0-beta.6-linux-x64-symbols.zip": "e1a561978bb76d01d338d58b62cdd453d5127f65f5678e97a007d436a340d73e",
|
|
29
|
+
"electron-v22.0.0-beta.6-linux-x64.zip": "291c1126df5d51c896a8ce3d5eb634d4bbed38025be62194f5a492c474b6c528",
|
|
30
|
+
"electron-v22.0.0-beta.6-mas-arm64-dsym-snapshot.zip": "e3ed6d6ada27972606d15b9485458785837e68a854ef0021217745fbcdbe37fd",
|
|
31
|
+
"electron-v22.0.0-beta.6-mas-arm64-dsym.zip": "6b7e594b47073165c705243f3c75afe89ef8bee7c4dfdf4cf2cc1cdf58681301",
|
|
32
|
+
"electron-v22.0.0-beta.6-mas-arm64-symbols.zip": "9c215a1bfb5494960fd3c64172d2d12b80246dfdb320e6e9b2b73b18ad472a17",
|
|
33
|
+
"electron-v22.0.0-beta.6-mas-arm64.zip": "9f7704c04e4c169b688c0510f6cef26b46aa04fe0101ee9e5ffa0e1add5f49aa",
|
|
34
|
+
"electron-v22.0.0-beta.6-mas-x64-dsym-snapshot.zip": "83f4829ddf9f1aaf7fa79695eaf9f815f1419c94b57369dde83a22fac3aa0e9e",
|
|
35
|
+
"electron-v22.0.0-beta.6-mas-x64-dsym.zip": "12db918d9a7671f8a98e7689c4f8201de8716a3f9df3be91f86d2a2c08f88d92",
|
|
36
|
+
"electron-v22.0.0-beta.6-mas-x64-symbols.zip": "ef56af180eb4a93008a9dbad1ce48283a2684787dbfcdfe6400ef8c8b6b232ef",
|
|
37
|
+
"electron-v22.0.0-beta.6-mas-x64.zip": "c312337c039bca9a21ac8f0005a2f62222c192d4ddfa4d9d5ce23e3f220027cd",
|
|
38
|
+
"electron-v22.0.0-beta.6-win32-arm64-pdb.zip": "5b46f3f20b243f2914a33229e702241274a9f2e42e341a305379716b16b87041",
|
|
39
|
+
"electron-v22.0.0-beta.6-win32-arm64-symbols.zip": "91cd09f352f30d3721c099fdb1a448e1db502df65bf8daf2d23cfa5d39f93635",
|
|
40
|
+
"electron-v22.0.0-beta.6-win32-arm64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
41
|
+
"electron-v22.0.0-beta.6-win32-arm64.zip": "b33dff30b3b56029ec7be0dc537bcc97f46c48d2b64460a5080c9f238a12a769",
|
|
42
|
+
"electron-v22.0.0-beta.6-win32-ia32-pdb.zip": "5996561cc60ec2c60fd217663a1c430ef1e0c86d9de61707d67ad8d26a1111ee",
|
|
43
|
+
"electron-v22.0.0-beta.6-win32-ia32-symbols.zip": "259a6ef2e7ead27d03a92f526c1543b288edfab47cfeaf2cd02dc552ee2bb0ed",
|
|
44
|
+
"electron-v22.0.0-beta.6-win32-ia32-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
45
|
+
"electron-v22.0.0-beta.6-win32-ia32.zip": "ddb841ae477843c9ae5f442d7c78d932408d4735e475bcde04e9f3e141ada618",
|
|
46
|
+
"electron-v22.0.0-beta.6-win32-x64-pdb.zip": "c2b8fc9ae3dad917b5dfe5725f4a18f789d05478f0bdfb5d3c3bdc06240102f0",
|
|
47
|
+
"electron-v22.0.0-beta.6-win32-x64-symbols.zip": "d390f6e165d0ee9eae5779e42be2653e4cf5bf2805faf2950e00d55f58553bb6",
|
|
48
|
+
"electron-v22.0.0-beta.6-win32-x64-toolchain-profile.zip": "3a5d2888ac992d063c6219cb20f73182ee02f25935f0f73bd7ed4ee8cd719376",
|
|
49
|
+
"electron-v22.0.0-beta.6-win32-x64.zip": "2dce8ad2ecb73ea8d6dbda80bf6555d7290bd1b6cf51f96b25a3a707047ec723",
|
|
50
|
+
"electron.d.ts": "1bac7fa723f0f1ace70629e44481fc8ff9090b3bc960c864f26a76f3aa7e7ce0",
|
|
51
|
+
"ffmpeg-v22.0.0-beta.6-darwin-arm64.zip": "a780bf2f3f18577de5aaa072e5f57836edb02d59c74123961f81ee0191e6e1a0",
|
|
52
|
+
"ffmpeg-v22.0.0-beta.6-darwin-x64.zip": "575d82377d3cab8a5bf34449db91a4ace18ac52354aadaf20c4b788ef850182c",
|
|
53
|
+
"ffmpeg-v22.0.0-beta.6-linux-arm64.zip": "a51bf96305147cbc763263eb1dbdab1c80c7abeeea77e314dea40b164e8eeb08",
|
|
54
|
+
"ffmpeg-v22.0.0-beta.6-linux-armv7l.zip": "f8d943c2fab798d94facf5183731c1139a055a15f71c715d54033547d246f32d",
|
|
55
|
+
"ffmpeg-v22.0.0-beta.6-linux-x64.zip": "b1beb7f561d25703ed0a93aaeaf060a54456e8d8c6ae0258525539cf78b51907",
|
|
56
|
+
"ffmpeg-v22.0.0-beta.6-mas-arm64.zip": "20ba8c6d47ebe7b6ab97c144cebbcd7bbb2e8c2aa1182b149ba89457eead55df",
|
|
57
|
+
"ffmpeg-v22.0.0-beta.6-mas-x64.zip": "844e03ee64418a8f413ed4eaca35658c4723eacf9275624564462d1620e72d2c",
|
|
58
|
+
"ffmpeg-v22.0.0-beta.6-win32-arm64.zip": "1497f4b0aede9e5f67d5262caade4fe88b27d5a8b87f6dd451e51c3c44e72c6d",
|
|
59
|
+
"ffmpeg-v22.0.0-beta.6-win32-ia32.zip": "8fe81b2146a077f3da0e977fef4d2027582494f8c433ceff45bb36c63ab9e4ea",
|
|
60
|
+
"ffmpeg-v22.0.0-beta.6-win32-x64.zip": "2f7d336347e094a57bc818d7061e1e5d3fed343cf2571db03a63391c65b7240f",
|
|
61
|
+
"hunspell_dictionaries.zip": "2d3f70dfa06be9b317419ea6f9a56afe2771a55e8dfa89a2880c5af945c2de1a",
|
|
62
|
+
"libcxx-objects-v22.0.0-beta.6-linux-arm64.zip": "e6325a5719f0eea9b58157a469b92e40716fe15c308396a7bfd226cc72cf867e",
|
|
63
|
+
"libcxx-objects-v22.0.0-beta.6-linux-armv7l.zip": "808e96dd77971c2bc3d366a369ab1701f3bafcf06a63dddc79d2adb55e7622d3",
|
|
64
|
+
"libcxx-objects-v22.0.0-beta.6-linux-x64.zip": "bfcbe30819911a63e30befc5364d936926229e95599219376593f7d8dbcefe8c",
|
|
65
|
+
"libcxx_headers.zip": "62b9aa1190fd17e0fd8843b39234dbb45e3c4233430fe85ab8c1508486c65e8f",
|
|
66
|
+
"libcxxabi_headers.zip": "c6ed90cc88b4e0bb8b4ffbdd6712f5d073d9bea8c4f9590cbd0fe5f70f1bface",
|
|
67
|
+
"mksnapshot-v22.0.0-beta.6-darwin-arm64.zip": "281b2f9859a6fd8b269230c5511a596f0eaab10116a0d27102f6486b43f85432",
|
|
68
|
+
"mksnapshot-v22.0.0-beta.6-darwin-x64.zip": "7a196678ff59872db196cd5c66bde8a330110f14814ff921c196758cd58c937d",
|
|
69
|
+
"mksnapshot-v22.0.0-beta.6-linux-arm64-x64.zip": "e0899553e54ef62be74eda093aa05a92a76b561b00621279d6dd16775c01b6d2",
|
|
70
|
+
"mksnapshot-v22.0.0-beta.6-linux-armv7l-x64.zip": "fc4047b5cd8c8de5beb77e2a0a16693f35d87937f431cdb262cfe1eb203547c7",
|
|
71
|
+
"mksnapshot-v22.0.0-beta.6-linux-x64.zip": "7ae74a2fb27dfa0fc319abee9a177209e322f7eca5bd661c61c7112732e952fb",
|
|
72
|
+
"mksnapshot-v22.0.0-beta.6-mas-arm64.zip": "2c8948a2ee73010df46db65c8e9b31319f505a5cc828a535049a90b9a5b3e9d5",
|
|
73
|
+
"mksnapshot-v22.0.0-beta.6-mas-x64.zip": "e3a0ce9eb183895508f9b0d598333f842b9fbacf9aa670b243225a45bcffdae6",
|
|
74
|
+
"mksnapshot-v22.0.0-beta.6-win32-arm64-x64.zip": "b19452297df08c892e5db7ce232abf9e7881554fe16b47b962a91ab287d6c958",
|
|
75
|
+
"mksnapshot-v22.0.0-beta.6-win32-ia32.zip": "45585db7e106e554994e71a1603504bbde3565546f225c5a2947ef58f18271a3",
|
|
76
|
+
"mksnapshot-v22.0.0-beta.6-win32-x64.zip": "5665b51a44196d67fde0e3624d0324249a49af2819e06f2317a764eb53a0dcd3"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 22.0.0-beta.6
|
|
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
|
|
@@ -895,6 +895,9 @@ declare namespace Electron {
|
|
|
895
895
|
* `locales` folder.
|
|
896
896
|
*
|
|
897
897
|
* **Note:** This API must be called after the `ready` event is emitted.
|
|
898
|
+
*
|
|
899
|
+
* **Note:** To see example return values of this API compared to other locale and
|
|
900
|
+
* language APIs, see `app.getPreferredSystemLanguages()`.
|
|
898
901
|
*/
|
|
899
902
|
getLocale(): string;
|
|
900
903
|
/**
|
|
@@ -958,11 +961,69 @@ declare namespace Electron {
|
|
|
958
961
|
* `app.setAppLogsPath()` without a `path` parameter.
|
|
959
962
|
*/
|
|
960
963
|
getPath(name: 'home' | 'appData' | 'userData' | 'sessionData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'recent' | 'logs' | 'crashDumps'): string;
|
|
964
|
+
/**
|
|
965
|
+
* The user's preferred system languages from most preferred to least preferred,
|
|
966
|
+
* including the country codes if applicable. A user can modify and add to this
|
|
967
|
+
* list on Windows or macOS through the Language and Region settings.
|
|
968
|
+
*
|
|
969
|
+
* The API uses `GlobalizationPreferences` (with a fallback to
|
|
970
|
+
* `GetSystemPreferredUILanguages`) on Windows, `\[NSLocale preferredLanguages\]`
|
|
971
|
+
* on macOS, and `g_get_language_names` on Linux.
|
|
972
|
+
*
|
|
973
|
+
* This API can be used for purposes such as deciding what language to present the
|
|
974
|
+
* application in.
|
|
975
|
+
*
|
|
976
|
+
* Here are some examples of return values of the various language and locale APIs
|
|
977
|
+
* with different configurations:
|
|
978
|
+
*
|
|
979
|
+
* * For Windows, where the application locale is German, the regional format is
|
|
980
|
+
* Finnish (Finland), and the preferred system languages from most to least
|
|
981
|
+
* preferred are French (Canada), English (US), Simplified Chinese (China),
|
|
982
|
+
* Finnish, and Spanish (Latin America):
|
|
983
|
+
* * `app.getLocale()` returns `'de'`
|
|
984
|
+
* * `app.getSystemLocale()` returns `'fi-FI'`
|
|
985
|
+
* * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
|
|
986
|
+
* 'zh-Hans-CN', 'fi', 'es-419']`
|
|
987
|
+
* * On macOS, where the application locale is German, the region is Finland, and
|
|
988
|
+
* the preferred system languages from most to least preferred are French (Canada),
|
|
989
|
+
* English (US), Simplified Chinese, and Spanish (Latin America):
|
|
990
|
+
* * `app.getLocale()` returns `'de'`
|
|
991
|
+
* * `app.getSystemLocale()` returns `'fr-FI'`
|
|
992
|
+
* * `app.getPreferredSystemLanguages()` returns `['fr-CA', 'en-US',
|
|
993
|
+
* 'zh-Hans-FI', 'es-419']`
|
|
994
|
+
*
|
|
995
|
+
* Both the available languages and regions and the possible return values differ
|
|
996
|
+
* between the two operating systems.
|
|
997
|
+
*
|
|
998
|
+
* As can be seen with the example above, on Windows, it is possible that a
|
|
999
|
+
* preferred system language has no country code, and that one of the preferred
|
|
1000
|
+
* system languages corresponds with the language used for the regional format. On
|
|
1001
|
+
* macOS, the region serves more as a default country code: the user doesn't need
|
|
1002
|
+
* to have Finnish as a preferred language to use Finland as the region,and the
|
|
1003
|
+
* country code `FI` is used as the country code for preferred system languages
|
|
1004
|
+
* that do not have associated countries in the language name.
|
|
1005
|
+
*/
|
|
1006
|
+
getPreferredSystemLanguages(): Array<'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()' | 'app.getLocale()' | 'app.getSystemLocale()' | 'app.getPreferredSystemLanguages()'>;
|
|
961
1007
|
/**
|
|
962
1008
|
* The current system locale. On Windows and Linux, it is fetched using Chromium's
|
|
963
|
-
* `i18n` library. On macOS,
|
|
1009
|
+
* `i18n` library. On macOS, `[NSLocale currentLocale]` is used instead. To get the
|
|
1010
|
+
* user's current system language, which is not always the same as the locale, it
|
|
1011
|
+
* is better to use `app.getPreferredSystemLanguages()`.
|
|
1012
|
+
*
|
|
1013
|
+
* Different operating systems also use the regional data differently:
|
|
1014
|
+
*
|
|
1015
|
+
* * Windows 11 uses the regional format for numbers, dates, and times.
|
|
1016
|
+
* * macOS Monterey uses the region for formatting numbers, dates, times, and for
|
|
1017
|
+
* selecting the currency symbol to use.
|
|
1018
|
+
*
|
|
1019
|
+
* Therefore, this API can be used for purposes such as choosing a format for
|
|
1020
|
+
* rendering dates and times in a calendar app, especially when the developer wants
|
|
1021
|
+
* the format to be consistent with the OS.
|
|
964
1022
|
*
|
|
965
1023
|
* **Note:** This API must be called after the `ready` event is emitted.
|
|
1024
|
+
*
|
|
1025
|
+
* **Note:** To see example return values of this API compared to other locale and
|
|
1026
|
+
* language APIs, see `app.getPreferredSystemLanguages()`.
|
|
966
1027
|
*/
|
|
967
1028
|
getSystemLocale(): string;
|
|
968
1029
|
/**
|
|
@@ -6343,6 +6404,24 @@ declare namespace Electron {
|
|
|
6343
6404
|
userText?: string;
|
|
6344
6405
|
}
|
|
6345
6406
|
|
|
6407
|
+
interface ParentPort extends NodeJS.EventEmitter {
|
|
6408
|
+
|
|
6409
|
+
// Docs: https://electronjs.org/docs/api/parent-port
|
|
6410
|
+
|
|
6411
|
+
/**
|
|
6412
|
+
* Emitted when the process receives a message. Messages received on this port will
|
|
6413
|
+
* be queued up until a handler is registered for this event.
|
|
6414
|
+
*/
|
|
6415
|
+
on(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6416
|
+
once(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6417
|
+
addListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6418
|
+
removeListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6419
|
+
/**
|
|
6420
|
+
* Sends a message from the process to its parent.
|
|
6421
|
+
*/
|
|
6422
|
+
postMessage(message: any): void;
|
|
6423
|
+
}
|
|
6424
|
+
|
|
6346
6425
|
interface PaymentDiscount {
|
|
6347
6426
|
|
|
6348
6427
|
// Docs: https://electronjs.org/docs/api/structures/payment-discount
|
|
@@ -9832,6 +9911,89 @@ declare namespace Electron {
|
|
|
9832
9911
|
url: string;
|
|
9833
9912
|
}
|
|
9834
9913
|
|
|
9914
|
+
class UtilityProcess extends NodeEventEmitter {
|
|
9915
|
+
|
|
9916
|
+
// Docs: https://electronjs.org/docs/api/utility-process
|
|
9917
|
+
|
|
9918
|
+
static fork(modulePath: string, args?: string[], options?: ForkOptions): UtilityProcess;
|
|
9919
|
+
/**
|
|
9920
|
+
* Emitted after the child process ends.
|
|
9921
|
+
*/
|
|
9922
|
+
on(event: 'exit', listener: (
|
|
9923
|
+
/**
|
|
9924
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9925
|
+
* GetExitCodeProcess on windows.
|
|
9926
|
+
*/
|
|
9927
|
+
code: number) => void): this;
|
|
9928
|
+
once(event: 'exit', listener: (
|
|
9929
|
+
/**
|
|
9930
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9931
|
+
* GetExitCodeProcess on windows.
|
|
9932
|
+
*/
|
|
9933
|
+
code: number) => void): this;
|
|
9934
|
+
addListener(event: 'exit', listener: (
|
|
9935
|
+
/**
|
|
9936
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9937
|
+
* GetExitCodeProcess on windows.
|
|
9938
|
+
*/
|
|
9939
|
+
code: number) => void): this;
|
|
9940
|
+
removeListener(event: 'exit', listener: (
|
|
9941
|
+
/**
|
|
9942
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
9943
|
+
* GetExitCodeProcess on windows.
|
|
9944
|
+
*/
|
|
9945
|
+
code: number) => void): this;
|
|
9946
|
+
/**
|
|
9947
|
+
* Emitted when the child process sends a message using
|
|
9948
|
+
* `process.parentPort.postMessage()`.
|
|
9949
|
+
*/
|
|
9950
|
+
on(event: 'message', listener: (message: any) => void): this;
|
|
9951
|
+
once(event: 'message', listener: (message: any) => void): this;
|
|
9952
|
+
addListener(event: 'message', listener: (message: any) => void): this;
|
|
9953
|
+
removeListener(event: 'message', listener: (message: any) => void): this;
|
|
9954
|
+
/**
|
|
9955
|
+
* Emitted once the child process has spawned successfully.
|
|
9956
|
+
*/
|
|
9957
|
+
on(event: 'spawn', listener: Function): this;
|
|
9958
|
+
once(event: 'spawn', listener: Function): this;
|
|
9959
|
+
addListener(event: 'spawn', listener: Function): this;
|
|
9960
|
+
removeListener(event: 'spawn', listener: Function): this;
|
|
9961
|
+
/**
|
|
9962
|
+
* Terminates the process gracefully. On POSIX, it uses SIGTERM but will ensure the
|
|
9963
|
+
* process is reaped on exit. This function returns true if the kill is successful,
|
|
9964
|
+
* and false otherwise.
|
|
9965
|
+
*/
|
|
9966
|
+
kill(): boolean;
|
|
9967
|
+
/**
|
|
9968
|
+
* Send a message to the child process, optionally transferring ownership of zero
|
|
9969
|
+
* or more [`MessagePortMain`][] objects.
|
|
9970
|
+
*
|
|
9971
|
+
* For example:
|
|
9972
|
+
*/
|
|
9973
|
+
postMessage(message: any, transfer?: MessagePortMain[]): void;
|
|
9974
|
+
/**
|
|
9975
|
+
* A `Integer | undefined` representing the process identifier (PID) of the child
|
|
9976
|
+
* process. If the child process fails to spawn due to errors, then the value is
|
|
9977
|
+
* `undefined`. When the child process exits, then the value is `undefined` after
|
|
9978
|
+
* the `exit` event is emitted.
|
|
9979
|
+
*/
|
|
9980
|
+
pid: (number) | (undefined);
|
|
9981
|
+
/**
|
|
9982
|
+
* A `NodeJS.ReadableStream | null` that represents the child process's stderr. If
|
|
9983
|
+
* the child was spawned with options.stdio[2] set to anything other than 'pipe',
|
|
9984
|
+
* then this will be `null`. When the child process exits, then the value is `null`
|
|
9985
|
+
* after the `exit` event is emitted.
|
|
9986
|
+
*/
|
|
9987
|
+
stderr: (NodeJS.ReadableStream) | (null);
|
|
9988
|
+
/**
|
|
9989
|
+
* A `NodeJS.ReadableStream | null` that represents the child process's stdout. If
|
|
9990
|
+
* the child was spawned with options.stdio[1] set to anything other than 'pipe',
|
|
9991
|
+
* then this will be `null`. When the child process exits, then the value is `null`
|
|
9992
|
+
* after the `exit` event is emitted.
|
|
9993
|
+
*/
|
|
9994
|
+
stdout: (NodeJS.ReadableStream) | (null);
|
|
9995
|
+
}
|
|
9996
|
+
|
|
9835
9997
|
class WebContents extends NodeEventEmitter {
|
|
9836
9998
|
|
|
9837
9999
|
// Docs: https://electronjs.org/docs/api/web-contents
|
|
@@ -14100,6 +14262,47 @@ declare namespace Electron {
|
|
|
14100
14262
|
steal: boolean;
|
|
14101
14263
|
}
|
|
14102
14264
|
|
|
14265
|
+
interface ForkOptions {
|
|
14266
|
+
/**
|
|
14267
|
+
* Environment key-value pairs. Default is `process.env`.
|
|
14268
|
+
*/
|
|
14269
|
+
env?: Env;
|
|
14270
|
+
/**
|
|
14271
|
+
* List of string arguments passed to the executable.
|
|
14272
|
+
*/
|
|
14273
|
+
execArgv?: string[];
|
|
14274
|
+
/**
|
|
14275
|
+
* Current working directory of the child process.
|
|
14276
|
+
*/
|
|
14277
|
+
cwd?: string;
|
|
14278
|
+
/**
|
|
14279
|
+
* Allows configuring the mode for `stdout` and `stderr` of the child process.
|
|
14280
|
+
* Default is `inherit`. String value can be one of `pipe`, `ignore`, `inherit`,
|
|
14281
|
+
* for more details on these values you can refer to stdio documentation from
|
|
14282
|
+
* Node.js. Currently this option only supports configuring `stdout` and `stderr`
|
|
14283
|
+
* to either `pipe`, `inherit` or `ignore`. Configuring `stdin` is not supported;
|
|
14284
|
+
* `stdin` will always be ignored. For example, the supported values will be
|
|
14285
|
+
* processed as following:
|
|
14286
|
+
*/
|
|
14287
|
+
stdio?: (Array<'pipe' | 'ignore' | 'inherit'>) | (string);
|
|
14288
|
+
/**
|
|
14289
|
+
* Name of the process that will appear in `name` property of `child-process-gone`
|
|
14290
|
+
* event of `app`. Default is `node.mojom.NodeService`.
|
|
14291
|
+
*/
|
|
14292
|
+
serviceName?: string;
|
|
14293
|
+
/**
|
|
14294
|
+
* With this flag, the utility process will be launched via the `Electron Helper
|
|
14295
|
+
* (Plugin).app` helper executable on macOS, which can be codesigned with
|
|
14296
|
+
* `com.apple.security.cs.disable-library-validation` and
|
|
14297
|
+
* `com.apple.security.cs.allow-unsigned-executable-memory` entitlements. This will
|
|
14298
|
+
* allow the utility process to load unsigned libraries. Unless you specifically
|
|
14299
|
+
* need this capability, it is best to leave this disabled. Default is `false`.
|
|
14300
|
+
*
|
|
14301
|
+
* @platform darwin
|
|
14302
|
+
*/
|
|
14303
|
+
allowLoadingUnsignedLibraries?: boolean;
|
|
14304
|
+
}
|
|
14305
|
+
|
|
14103
14306
|
interface FoundInPageEvent extends Event {
|
|
14104
14307
|
result: FoundInPageResult;
|
|
14105
14308
|
}
|
|
@@ -16167,6 +16370,9 @@ declare namespace Electron {
|
|
|
16167
16370
|
canEditRichly: boolean;
|
|
16168
16371
|
}
|
|
16169
16372
|
|
|
16373
|
+
interface Env {
|
|
16374
|
+
}
|
|
16375
|
+
|
|
16170
16376
|
interface FoundInPageResult {
|
|
16171
16377
|
requestId: number;
|
|
16172
16378
|
/**
|
|
@@ -16750,6 +16956,7 @@ declare namespace Electron {
|
|
|
16750
16956
|
systemPreferences: SystemPreferences;
|
|
16751
16957
|
TouchBar: typeof TouchBar;
|
|
16752
16958
|
Tray: typeof Tray;
|
|
16959
|
+
utilityProcess: typeof UtilityProcess;
|
|
16753
16960
|
webContents: typeof WebContents;
|
|
16754
16961
|
webFrameMain: typeof WebFrameMain;
|
|
16755
16962
|
}
|
|
@@ -16815,6 +17022,7 @@ declare namespace Electron {
|
|
|
16815
17022
|
type FileIconOptions = Electron.FileIconOptions;
|
|
16816
17023
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
16817
17024
|
type FocusOptions = Electron.FocusOptions;
|
|
17025
|
+
type ForkOptions = Electron.ForkOptions;
|
|
16818
17026
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
16819
17027
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
16820
17028
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -16918,6 +17126,7 @@ declare namespace Electron {
|
|
|
16918
17126
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
16919
17127
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
16920
17128
|
type EditFlags = Electron.EditFlags;
|
|
17129
|
+
type Env = Electron.Env;
|
|
16921
17130
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
16922
17131
|
type LaunchItems = Electron.LaunchItems;
|
|
16923
17132
|
type Margins = Electron.Margins;
|
|
@@ -17062,6 +17271,8 @@ declare namespace Electron {
|
|
|
17062
17271
|
type TouchBarSlider = Electron.TouchBarSlider;
|
|
17063
17272
|
type TouchBarSpacer = Electron.TouchBarSpacer;
|
|
17064
17273
|
class Tray extends Electron.Tray {}
|
|
17274
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17275
|
+
type UtilityProcess = Electron.UtilityProcess;
|
|
17065
17276
|
const webContents: typeof WebContents;
|
|
17066
17277
|
type WebContents = Electron.WebContents;
|
|
17067
17278
|
const webFrameMain: typeof WebFrameMain;
|
|
@@ -17117,6 +17328,7 @@ declare namespace Electron {
|
|
|
17117
17328
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17118
17329
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17119
17330
|
type FocusOptions = Electron.FocusOptions;
|
|
17331
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17120
17332
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17121
17333
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17122
17334
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17220,6 +17432,7 @@ declare namespace Electron {
|
|
|
17220
17432
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17221
17433
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17222
17434
|
type EditFlags = Electron.EditFlags;
|
|
17435
|
+
type Env = Electron.Env;
|
|
17223
17436
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17224
17437
|
type LaunchItems = Electron.LaunchItems;
|
|
17225
17438
|
type Margins = Electron.Margins;
|
|
@@ -17354,6 +17567,7 @@ declare namespace Electron {
|
|
|
17354
17567
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17355
17568
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17356
17569
|
type FocusOptions = Electron.FocusOptions;
|
|
17570
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17357
17571
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17358
17572
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17359
17573
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17457,6 +17671,7 @@ declare namespace Electron {
|
|
|
17457
17671
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17458
17672
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17459
17673
|
type EditFlags = Electron.EditFlags;
|
|
17674
|
+
type Env = Electron.Env;
|
|
17460
17675
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17461
17676
|
type LaunchItems = Electron.LaunchItems;
|
|
17462
17677
|
type Margins = Electron.Margins;
|
|
@@ -17613,6 +17828,8 @@ declare namespace Electron {
|
|
|
17613
17828
|
type TouchBarSlider = Electron.TouchBarSlider;
|
|
17614
17829
|
type TouchBarSpacer = Electron.TouchBarSpacer;
|
|
17615
17830
|
class Tray extends Electron.Tray {}
|
|
17831
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17832
|
+
type UtilityProcess = Electron.UtilityProcess;
|
|
17616
17833
|
const webContents: typeof WebContents;
|
|
17617
17834
|
type WebContents = Electron.WebContents;
|
|
17618
17835
|
const webFrame: WebFrame;
|
|
@@ -17670,6 +17887,7 @@ declare namespace Electron {
|
|
|
17670
17887
|
type FileIconOptions = Electron.FileIconOptions;
|
|
17671
17888
|
type FindInPageOptions = Electron.FindInPageOptions;
|
|
17672
17889
|
type FocusOptions = Electron.FocusOptions;
|
|
17890
|
+
type ForkOptions = Electron.ForkOptions;
|
|
17673
17891
|
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
17674
17892
|
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
17675
17893
|
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
@@ -17773,6 +17991,7 @@ declare namespace Electron {
|
|
|
17773
17991
|
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
17774
17992
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
17775
17993
|
type EditFlags = Electron.EditFlags;
|
|
17994
|
+
type Env = Electron.Env;
|
|
17776
17995
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
17777
17996
|
type LaunchItems = Electron.LaunchItems;
|
|
17778
17997
|
type Margins = Electron.Margins;
|
|
@@ -17866,6 +18085,7 @@ declare namespace Electron {
|
|
|
17866
18085
|
const nativeTheme: NativeTheme;
|
|
17867
18086
|
const net: Net;
|
|
17868
18087
|
const netLog: NetLog;
|
|
18088
|
+
const parentPort: ParentPort;
|
|
17869
18089
|
const powerMonitor: PowerMonitor;
|
|
17870
18090
|
const powerSaveBlocker: PowerSaveBlocker;
|
|
17871
18091
|
const protocol: Protocol;
|
|
@@ -17875,6 +18095,7 @@ declare namespace Electron {
|
|
|
17875
18095
|
const session: typeof Session;
|
|
17876
18096
|
const shell: Shell;
|
|
17877
18097
|
const systemPreferences: SystemPreferences;
|
|
18098
|
+
const utilityProcess: typeof UtilityProcess;
|
|
17878
18099
|
const webContents: typeof WebContents;
|
|
17879
18100
|
const webFrame: WebFrame;
|
|
17880
18101
|
const webFrameMain: typeof WebFrameMain;
|
|
@@ -18087,6 +18308,11 @@ declare namespace NodeJS {
|
|
|
18087
18308
|
* property is used instead of the `--no-deprecation` command line flag.
|
|
18088
18309
|
*/
|
|
18089
18310
|
noDeprecation: boolean;
|
|
18311
|
+
/**
|
|
18312
|
+
* A `Electron.ParentPort` property if this is a `UtilityProcess` (or `null`
|
|
18313
|
+
* otherwise) allowing communication with the parent process.
|
|
18314
|
+
*/
|
|
18315
|
+
parentPort: Electron.ParentPort;
|
|
18090
18316
|
/**
|
|
18091
18317
|
* A `string` representing the path to the resources directory.
|
|
18092
18318
|
*
|
|
@@ -18124,9 +18350,10 @@ declare namespace NodeJS {
|
|
|
18124
18350
|
* * `browser` - The main process
|
|
18125
18351
|
* * `renderer` - A renderer process
|
|
18126
18352
|
* * `worker` - In a web worker
|
|
18353
|
+
* * `utility` - In a node process launched as a service
|
|
18127
18354
|
*
|
|
18128
18355
|
*/
|
|
18129
|
-
readonly type: ('browser' | 'renderer' | 'worker');
|
|
18356
|
+
readonly type: ('browser' | 'renderer' | 'worker' | 'utility');
|
|
18130
18357
|
/**
|
|
18131
18358
|
* A `boolean`. If the app is running as a Windows Store app (appx), this property
|
|
18132
18359
|
* is `true`, for otherwise it is `undefined`.
|
package/package.json
CHANGED