electron 23.0.0 → 24.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 +75 -75
- package/electron.d.ts +90 -18
- package/package.json +2 -2
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": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v24.0.0-alpha.1-darwin-arm64.zip": "964b821c66f6f7b431d5c18285546f6c7b1f673e3e07602a194ce29111c453e0",
|
|
3
|
+
"chromedriver-v24.0.0-alpha.1-darwin-x64.zip": "43d725405b3f271a35bcd7a7057ae86db1f0585c8871d4e7d2a3be3a0b73705a",
|
|
4
|
+
"chromedriver-v24.0.0-alpha.1-linux-arm64.zip": "37efd2a1552df7f68c8e708cda911cb1fe7c6f9e893baeebb8deea6ba8165494",
|
|
5
|
+
"chromedriver-v24.0.0-alpha.1-linux-armv7l.zip": "8584914179322e6227c3adedbe606780a5c45c50b7525c7d5de269d869b9d142",
|
|
6
|
+
"chromedriver-v24.0.0-alpha.1-linux-x64.zip": "36528c22a7706b75ddb4aa0bb6760b3eeff311a2e9d17c9638039276fe34857c",
|
|
7
|
+
"chromedriver-v24.0.0-alpha.1-mas-arm64.zip": "29a837f47cae0c9adfcbe553c33f0cb1f1e42bd40fb4ee02c947567c722f60ed",
|
|
8
|
+
"chromedriver-v24.0.0-alpha.1-mas-x64.zip": "9e0f37a33f333207c4083047169753608399b48c9a5fd7a9fef59195fe58483d",
|
|
9
|
+
"chromedriver-v24.0.0-alpha.1-win32-arm64.zip": "be9ad65d40b1921791b9787997926b642f98a0c8fe7e21c9eb0672fce0b9605e",
|
|
10
|
+
"chromedriver-v24.0.0-alpha.1-win32-ia32.zip": "528ac32d76bf64d71208a9d38442f49fd2ddbbc6a6b59cab0ad1af0cb37099b9",
|
|
11
|
+
"chromedriver-v24.0.0-alpha.1-win32-x64.zip": "d878d534fd0c23c414233ed929887b0cff0ea73b95c5b17cbfbf50c21bbc097a",
|
|
12
|
+
"electron-api.json": "f5c276c757e925931888e3a98df708caee052d92643301cef6e6ff59656a5327",
|
|
13
|
+
"electron-v24.0.0-alpha.1-darwin-arm64-dsym-snapshot.zip": "2f7bf72a0b415d4ffaa6f8c59d2f085b9b25482c4686365be8158f33cbbee5bf",
|
|
14
|
+
"electron-v24.0.0-alpha.1-darwin-arm64-dsym.zip": "4c32f8df6ff52ab7ddce1394213b57421cfd02d3ed6ef5998542d6d9596fa775",
|
|
15
|
+
"electron-v24.0.0-alpha.1-darwin-arm64-symbols.zip": "374c60500731cbb838fba2c5fd7d2f1e8903a6103dd3d38ba4da400ebbac887c",
|
|
16
|
+
"electron-v24.0.0-alpha.1-darwin-arm64.zip": "d146308aec482b5c28c3750078610a52daae98f826119a67e42d661d31784e00",
|
|
17
|
+
"electron-v24.0.0-alpha.1-darwin-x64-dsym-snapshot.zip": "b3c158dd0619034fb62d22d5a264e2afb4a89b5675aa53fb16ae243da699dd38",
|
|
18
|
+
"electron-v24.0.0-alpha.1-darwin-x64-dsym.zip": "c4672496b8805b9b89282ff02ec48e57aa775a4281a951d1cd0f50b408577f45",
|
|
19
|
+
"electron-v24.0.0-alpha.1-darwin-x64-symbols.zip": "0e9b86aec59077e4710d0f288ac4353ba782377fe7412949e25ef5f12805bf42",
|
|
20
|
+
"electron-v24.0.0-alpha.1-darwin-x64.zip": "97392d128cff4ce1609f85f2b383dc4ab008effb6e0cee713054fe2994371dbc",
|
|
21
|
+
"electron-v24.0.0-alpha.1-linux-arm64-debug.zip": "9c0f78e508389e220d81494a8f1300c36cf2614d65a29b78b1234bb441ca287a",
|
|
22
|
+
"electron-v24.0.0-alpha.1-linux-arm64-symbols.zip": "98ea31efc0fa0928bcd67f966dda142b8e6561a1fb6c505999ed2e7e99e60d6b",
|
|
23
|
+
"electron-v24.0.0-alpha.1-linux-arm64.zip": "c3ed9206d1f59297797f1f1b3918b671a9f94f40e66e98a75f0f0357d47ab640",
|
|
24
|
+
"electron-v24.0.0-alpha.1-linux-armv7l-debug.zip": "9c0f78e508389e220d81494a8f1300c36cf2614d65a29b78b1234bb441ca287a",
|
|
25
|
+
"electron-v24.0.0-alpha.1-linux-armv7l-symbols.zip": "69ba5d57bb22a8d27d7466328e371d51de087c34550316b72ca96d1f061df3eb",
|
|
26
|
+
"electron-v24.0.0-alpha.1-linux-armv7l.zip": "6a902f7a41ee897a7e15ccef6afb48ca5a2bf92711acb86449d8d89463f5e64d",
|
|
27
|
+
"electron-v24.0.0-alpha.1-linux-x64-debug.zip": "14ef2b71111c26ae2033e973308bc52ac18aafab9440de0a807de3ab0333e1b3",
|
|
28
|
+
"electron-v24.0.0-alpha.1-linux-x64-symbols.zip": "4d15975de86beb47543dd2eafe4cd09aeebd5480a0bf15d1f608383979a154c6",
|
|
29
|
+
"electron-v24.0.0-alpha.1-linux-x64.zip": "282d9b2948bc6dd3a8c4fec9853d70cd38c7e647936033418686bdb41560fdc2",
|
|
30
|
+
"electron-v24.0.0-alpha.1-mas-arm64-dsym-snapshot.zip": "2f7bf72a0b415d4ffaa6f8c59d2f085b9b25482c4686365be8158f33cbbee5bf",
|
|
31
|
+
"electron-v24.0.0-alpha.1-mas-arm64-dsym.zip": "995d0e2110a2f0b20ce732c4971b28758cbc9c5a0a0b3fa7f0dd71a036a28001",
|
|
32
|
+
"electron-v24.0.0-alpha.1-mas-arm64-symbols.zip": "35c08fc2aa872663fb8a6b16eb85edf17cf3d8bec14e682596d326e79d5c825b",
|
|
33
|
+
"electron-v24.0.0-alpha.1-mas-arm64.zip": "255c2ce55a4f834f6bdb68747d6080fd94af45029f00891768dfd92df3782954",
|
|
34
|
+
"electron-v24.0.0-alpha.1-mas-x64-dsym-snapshot.zip": "477834f65baecf4f95091a1f4c7b9aaed74e835c25d57e0cee793cd6c9ba93b5",
|
|
35
|
+
"electron-v24.0.0-alpha.1-mas-x64-dsym.zip": "118980a1f80bda98c298dedcc65d8e00abcd25699a81287ad4bfcbc67b061457",
|
|
36
|
+
"electron-v24.0.0-alpha.1-mas-x64-symbols.zip": "4e74bea6a4ca65b570800e24f3fbf3d285de931bb53b97604e8b5784d3828f04",
|
|
37
|
+
"electron-v24.0.0-alpha.1-mas-x64.zip": "aefb875df50a167caac64e0b61abd9bad4b916f379860e10dd9ea6d88a4f0f02",
|
|
38
|
+
"electron-v24.0.0-alpha.1-win32-arm64-pdb.zip": "2368e7f7468671e26d11ae27b75eca35dcc873f72718ba647b7c229d065f47da",
|
|
39
|
+
"electron-v24.0.0-alpha.1-win32-arm64-symbols.zip": "c93d120551308632eb1976a067103082252ea1e27c6463ca031eace68f66035a",
|
|
40
|
+
"electron-v24.0.0-alpha.1-win32-arm64-toolchain-profile.zip": "67e514aec6ad935876fc0bdb627c2a0aaa0148e297a477c594e4f4da4fef5cd2",
|
|
41
|
+
"electron-v24.0.0-alpha.1-win32-arm64.zip": "bbd2deae4b4faebecfbff001309c3a73c5503bcfa8dc27af9e4e5ad1646eedfe",
|
|
42
|
+
"electron-v24.0.0-alpha.1-win32-ia32-pdb.zip": "ba5ed53e448842f79392d04da40d153d31a0fb0f825c9ecf5e78d43f75a7ee0d",
|
|
43
|
+
"electron-v24.0.0-alpha.1-win32-ia32-symbols.zip": "7a74e6042fed24fa48f5bc1fce420881f21f78313c70f58108a950c3ab9ed4c7",
|
|
44
|
+
"electron-v24.0.0-alpha.1-win32-ia32-toolchain-profile.zip": "67e514aec6ad935876fc0bdb627c2a0aaa0148e297a477c594e4f4da4fef5cd2",
|
|
45
|
+
"electron-v24.0.0-alpha.1-win32-ia32.zip": "5d65b84ff34fd34a5a6516097b8f5f96292da3f872ba59c8000a3a2360d44e7a",
|
|
46
|
+
"electron-v24.0.0-alpha.1-win32-x64-pdb.zip": "377fb8edffd10859f5e812ee80d7a24824214b80f4c1b76f3dbe0ea59378a6a3",
|
|
47
|
+
"electron-v24.0.0-alpha.1-win32-x64-symbols.zip": "715d692b478d23cd75d9faff0bfa37f6b97719c18348e0e7f01552130d9b769b",
|
|
48
|
+
"electron-v24.0.0-alpha.1-win32-x64-toolchain-profile.zip": "67e514aec6ad935876fc0bdb627c2a0aaa0148e297a477c594e4f4da4fef5cd2",
|
|
49
|
+
"electron-v24.0.0-alpha.1-win32-x64.zip": "517a491abeac668d5c169fc03c4f696e5c6a245dd9e1f78355ec6064496bfcac",
|
|
50
|
+
"electron.d.ts": "edae5b5c1fdc5fef1e42978998f28621eef08c94d4f1f7dda04e2f9766e50398",
|
|
51
|
+
"ffmpeg-v24.0.0-alpha.1-darwin-arm64.zip": "30821c679ef5dd2e11f8adce51f73a6ad98b398a98c11ad485e3e021c939893e",
|
|
52
|
+
"ffmpeg-v24.0.0-alpha.1-darwin-x64.zip": "84baa13b58664ade824af292b9e7535026bf1e719afe70850eab0474b8726b44",
|
|
53
|
+
"ffmpeg-v24.0.0-alpha.1-linux-arm64.zip": "a8494e9b6d9c91c9aa3de1f5f5f54573d21769cc16e08e24c46656cb35aa02be",
|
|
54
|
+
"ffmpeg-v24.0.0-alpha.1-linux-armv7l.zip": "459cd43181a1702c4a23d161904afddf99581c9e5714433eef56274953b1c677",
|
|
55
|
+
"ffmpeg-v24.0.0-alpha.1-linux-x64.zip": "fc276bda697aa466f8b9b15a0c76e3e4baeed1dc17dee0dee66c23187f33b891",
|
|
56
|
+
"ffmpeg-v24.0.0-alpha.1-mas-arm64.zip": "633311b59fa6dfe7d61e342df50d943ff2855ae6812970787cd0486dabc6434d",
|
|
57
|
+
"ffmpeg-v24.0.0-alpha.1-mas-x64.zip": "6bb1e2ab2ba1ceb6b59b2af80840e4e29b993368fa94393fbdd856f76b2e4027",
|
|
58
|
+
"ffmpeg-v24.0.0-alpha.1-win32-arm64.zip": "610dbb4f07ccde2db0d7f83e8bfa4611cb153f82f41d8ce243f63dba938174c7",
|
|
59
|
+
"ffmpeg-v24.0.0-alpha.1-win32-ia32.zip": "27dfd235a8dfe320796a519b62771a3e9ca8df12435e38c331a0d5c656f71af0",
|
|
60
|
+
"ffmpeg-v24.0.0-alpha.1-win32-x64.zip": "59d1f5938bf1c0dc6b4c0b446b57cf804d59b871b6191dacab4333cc6b20ae71",
|
|
61
|
+
"hunspell_dictionaries.zip": "3e3fee892e43dc1ae94447ada22803809bcf80c40978253968e91d0536c611e1",
|
|
62
|
+
"libcxx-objects-v24.0.0-alpha.1-linux-arm64.zip": "46f4941a2107561b4fe335e98e069b099c4c81c0103bee234a81e29c078c46ce",
|
|
63
|
+
"libcxx-objects-v24.0.0-alpha.1-linux-armv7l.zip": "cb95a551d8b6a661f4b2511a0570c90d616844890aca00d296d3c3e407e5e64d",
|
|
64
|
+
"libcxx-objects-v24.0.0-alpha.1-linux-x64.zip": "0d7a268617283447e60eee8271f22ba6ac0255f70fd8c05a46fdc09611c7bbe8",
|
|
65
|
+
"libcxx_headers.zip": "5fb0491f0214d02d1a9a864245463ff8329c877f8a71825d6f3d508d4c91258a",
|
|
66
|
+
"libcxxabi_headers.zip": "ffe645dea228a37f9455d73c4e07d16ffa426a78cacead3ff95e622b3544f08a",
|
|
67
|
+
"mksnapshot-v24.0.0-alpha.1-darwin-arm64.zip": "7ac62985aeed9f4d95b1205774c9d2946278e68772c7934764bf670d4c4b6090",
|
|
68
|
+
"mksnapshot-v24.0.0-alpha.1-darwin-x64.zip": "333f9986ae86910b80a0ef2852c4a3add2972c18e503311b34a655632f5d9740",
|
|
69
|
+
"mksnapshot-v24.0.0-alpha.1-linux-arm64-x64.zip": "339d2b1583eb66693333ec466c22095f764c26028c22220c089d2d78b3625cc4",
|
|
70
|
+
"mksnapshot-v24.0.0-alpha.1-linux-armv7l-x64.zip": "51d72f516db88ee2f16c524e0e51fc0058a3a53d4a18d18bfb47d7b4f6325534",
|
|
71
|
+
"mksnapshot-v24.0.0-alpha.1-linux-x64.zip": "12757b23383696bc4b6d76baf4186977509b82601a408fe26c16537babb8940a",
|
|
72
|
+
"mksnapshot-v24.0.0-alpha.1-mas-arm64.zip": "fcdc8d9c5f624670a89eba4e846e3791f45a589f8b92228986503131f0992a32",
|
|
73
|
+
"mksnapshot-v24.0.0-alpha.1-mas-x64.zip": "59777126109a19001d700886ffab9610ad5728176b9f33ca83b51a380686771e",
|
|
74
|
+
"mksnapshot-v24.0.0-alpha.1-win32-arm64-x64.zip": "f1a1caa0a8af72b9124308eb95c5f67329ab38ce97300ce34391dd56bf65ceba",
|
|
75
|
+
"mksnapshot-v24.0.0-alpha.1-win32-ia32.zip": "2d9a323497073dd0ff2eb9bfb37a03dbf8c583ec2738827df7f2c3e313717e9f",
|
|
76
|
+
"mksnapshot-v24.0.0-alpha.1-win32-x64.zip": "8131d934876451e6e02c428fe73ab8e94d20960a8f459c356cc5ee89f975d056"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 24.0.0-alpha.1
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -2406,7 +2406,18 @@ declare namespace Electron {
|
|
|
2406
2406
|
*
|
|
2407
2407
|
* @platform win32
|
|
2408
2408
|
*/
|
|
2409
|
-
hookWindowMessage(message: number, callback: (wParam:
|
|
2409
|
+
hookWindowMessage(message: number, callback: (wParam: Buffer, lParam: Buffer) => void): void;
|
|
2410
|
+
/**
|
|
2411
|
+
* Invalidates the window shadow so that it is recomputed based on the current
|
|
2412
|
+
* window shape.
|
|
2413
|
+
*
|
|
2414
|
+
* `BrowserWindows` that are transparent can sometimes leave behind visual
|
|
2415
|
+
* artifacts on macOS. This method can be used to clear these artifacts when, for
|
|
2416
|
+
* example, performing an animation.
|
|
2417
|
+
*
|
|
2418
|
+
* @platform darwin
|
|
2419
|
+
*/
|
|
2420
|
+
invalidateShadow(): void;
|
|
2410
2421
|
/**
|
|
2411
2422
|
* Whether the window is always on top of other windows.
|
|
2412
2423
|
*/
|
|
@@ -4866,7 +4877,7 @@ declare namespace Electron {
|
|
|
4866
4877
|
* * "Media Previous Track"
|
|
4867
4878
|
* * "Media Stop"
|
|
4868
4879
|
*/
|
|
4869
|
-
registerAll(accelerators:
|
|
4880
|
+
registerAll(accelerators: Accelerator[], callback: () => void): void;
|
|
4870
4881
|
/**
|
|
4871
4882
|
* Unregisters the global shortcut of `accelerator`.
|
|
4872
4883
|
*/
|
|
@@ -5002,7 +5013,7 @@ declare namespace Electron {
|
|
|
5002
5013
|
* You should listen for the `transactions-updated` event as soon as possible and
|
|
5003
5014
|
* certainly before you call `purchaseProduct`.
|
|
5004
5015
|
*/
|
|
5005
|
-
purchaseProduct(productID: string,
|
|
5016
|
+
purchaseProduct(productID: string, opts?: (number) | (PurchaseProductOpts)): Promise<boolean>;
|
|
5006
5017
|
/**
|
|
5007
5018
|
* Restores finished transactions. This method can be called either to install
|
|
5008
5019
|
* purchases on additional devices, or to restore purchases for an application that
|
|
@@ -7159,10 +7170,14 @@ declare namespace Electron {
|
|
|
7159
7170
|
*
|
|
7160
7171
|
* @platform darwin
|
|
7161
7172
|
*/
|
|
7162
|
-
on(event: 'received-apns-notification', listener: (
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7173
|
+
on(event: 'received-apns-notification', listener: (event: Event,
|
|
7174
|
+
userInfo: Record<string, any>) => void): this;
|
|
7175
|
+
once(event: 'received-apns-notification', listener: (event: Event,
|
|
7176
|
+
userInfo: Record<string, any>) => void): this;
|
|
7177
|
+
addListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7178
|
+
userInfo: Record<string, any>) => void): this;
|
|
7179
|
+
removeListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7180
|
+
userInfo: Record<string, any>) => void): this;
|
|
7166
7181
|
/**
|
|
7167
7182
|
* Registers the app with Apple Push Notification service (APNS) to receive Badge,
|
|
7168
7183
|
* Sound, and Alert notifications. If registration is successful, the promise will
|
|
@@ -7730,8 +7745,8 @@ declare namespace Electron {
|
|
|
7730
7745
|
* `navigator.hid.requestDevice` is made. `callback` should be called with
|
|
7731
7746
|
* `deviceId` to be selected; passing no arguments to `callback` will cancel the
|
|
7732
7747
|
* request. Additionally, permissioning on `navigator.hid` can be further managed
|
|
7733
|
-
* by using ses.setPermissionCheckHandler(handler) and
|
|
7734
|
-
* ses.setDevicePermissionHandler(handler)`.
|
|
7748
|
+
* by using `ses.setPermissionCheckHandler(handler)` and
|
|
7749
|
+
* `ses.setDevicePermissionHandler(handler)`.
|
|
7735
7750
|
*/
|
|
7736
7751
|
on(event: 'select-hid-device', listener: (event: Event,
|
|
7737
7752
|
details: SelectHidDeviceDetails,
|
|
@@ -7773,8 +7788,8 @@ declare namespace Electron {
|
|
|
7773
7788
|
* `navigator.usb.requestDevice` is made. `callback` should be called with
|
|
7774
7789
|
* `deviceId` to be selected; passing no arguments to `callback` will cancel the
|
|
7775
7790
|
* request. Additionally, permissioning on `navigator.usb` can be further managed
|
|
7776
|
-
* by using ses.setPermissionCheckHandler(handler) and
|
|
7777
|
-
* ses.setDevicePermissionHandler(handler)`.
|
|
7791
|
+
* by using `ses.setPermissionCheckHandler(handler)` and
|
|
7792
|
+
* `ses.setDevicePermissionHandler(handler)`.
|
|
7778
7793
|
*/
|
|
7779
7794
|
on(event: 'select-usb-device', listener: (event: Event,
|
|
7780
7795
|
details: SelectUsbDeviceDetails,
|
|
@@ -8262,7 +8277,7 @@ declare namespace Electron {
|
|
|
8262
8277
|
* `setPermissionCheckHandler` to get complete permission handling. Most web APIs
|
|
8263
8278
|
* do a permission check and then make a permission request if the check is denied.
|
|
8264
8279
|
*/
|
|
8265
|
-
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'media' | 'display-capture' | 'mediaKeySystem' | 'geolocation' | 'notifications' | 'midi' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void;
|
|
8280
|
+
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'media' | 'display-capture' | 'mediaKeySystem' | 'geolocation' | 'notifications' | 'midi' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: PermissionRequestHandlerHandlerDetails) => void) | (null)): void;
|
|
8266
8281
|
/**
|
|
8267
8282
|
* Adds scripts that will be executed on ALL web contents that are associated with
|
|
8268
8283
|
* this session just before normal `preload` scripts run.
|
|
@@ -10474,6 +10489,30 @@ declare namespace Electron {
|
|
|
10474
10489
|
once(event: 'devtools-focused', listener: Function): this;
|
|
10475
10490
|
addListener(event: 'devtools-focused', listener: Function): this;
|
|
10476
10491
|
removeListener(event: 'devtools-focused', listener: Function): this;
|
|
10492
|
+
/**
|
|
10493
|
+
* Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for
|
|
10494
|
+
* a link in its context menu.
|
|
10495
|
+
*/
|
|
10496
|
+
on(event: 'devtools-open-url', listener: (
|
|
10497
|
+
/**
|
|
10498
|
+
* URL of the link that was clicked or selected.
|
|
10499
|
+
*/
|
|
10500
|
+
url: string) => void): this;
|
|
10501
|
+
once(event: 'devtools-open-url', listener: (
|
|
10502
|
+
/**
|
|
10503
|
+
* URL of the link that was clicked or selected.
|
|
10504
|
+
*/
|
|
10505
|
+
url: string) => void): this;
|
|
10506
|
+
addListener(event: 'devtools-open-url', listener: (
|
|
10507
|
+
/**
|
|
10508
|
+
* URL of the link that was clicked or selected.
|
|
10509
|
+
*/
|
|
10510
|
+
url: string) => void): this;
|
|
10511
|
+
removeListener(event: 'devtools-open-url', listener: (
|
|
10512
|
+
/**
|
|
10513
|
+
* URL of the link that was clicked or selected.
|
|
10514
|
+
*/
|
|
10515
|
+
url: string) => void): this;
|
|
10477
10516
|
/**
|
|
10478
10517
|
* Emitted when DevTools is opened.
|
|
10479
10518
|
*/
|
|
@@ -10879,7 +10918,7 @@ declare namespace Electron {
|
|
|
10879
10918
|
addListener(event: 'focus', listener: Function): this;
|
|
10880
10919
|
removeListener(event: 'focus', listener: Function): this;
|
|
10881
10920
|
/**
|
|
10882
|
-
* Emitted when a result is available for
|
|
10921
|
+
* Emitted when a result is available for `webContents.findInPage` request.
|
|
10883
10922
|
*/
|
|
10884
10923
|
on(event: 'found-in-page', listener: (event: Event,
|
|
10885
10924
|
result: Result) => void): this;
|
|
@@ -12740,6 +12779,12 @@ declare namespace Electron {
|
|
|
12740
12779
|
*/
|
|
12741
12780
|
addEventListener(event: 'update-target-url', listener: (event: UpdateTargetUrlEvent) => void, useCapture?: boolean): this;
|
|
12742
12781
|
removeEventListener(event: 'update-target-url', listener: (event: UpdateTargetUrlEvent) => void): this;
|
|
12782
|
+
/**
|
|
12783
|
+
* Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for
|
|
12784
|
+
* a link in its context menu.
|
|
12785
|
+
*/
|
|
12786
|
+
addEventListener(event: 'devtools-open-url', listener: (event: DevtoolsOpenUrlEvent) => void, useCapture?: boolean): this;
|
|
12787
|
+
removeEventListener(event: 'devtools-open-url', listener: (event: DevtoolsOpenUrlEvent) => void): this;
|
|
12743
12788
|
/**
|
|
12744
12789
|
* Emitted when DevTools is opened.
|
|
12745
12790
|
*/
|
|
@@ -13692,9 +13737,9 @@ declare namespace Electron {
|
|
|
13692
13737
|
*/
|
|
13693
13738
|
origin?: string;
|
|
13694
13739
|
/**
|
|
13695
|
-
* The types of storages to clear, can contain: `
|
|
13696
|
-
* `
|
|
13697
|
-
*
|
|
13740
|
+
* The types of storages to clear, can contain: `cookies`, `filesystem`, `indexdb`,
|
|
13741
|
+
* `localstorage`, `shadercache`, `websql`, `serviceworkers`, `cachestorage`. If
|
|
13742
|
+
* not specified, clear all storage types.
|
|
13698
13743
|
*/
|
|
13699
13744
|
storages?: string[];
|
|
13700
13745
|
/**
|
|
@@ -14220,6 +14265,13 @@ declare namespace Electron {
|
|
|
14220
14265
|
device: (HIDDevice) | (SerialPort);
|
|
14221
14266
|
}
|
|
14222
14267
|
|
|
14268
|
+
interface DevtoolsOpenUrlEvent extends Event {
|
|
14269
|
+
/**
|
|
14270
|
+
* URL of the link that was clicked or selected.
|
|
14271
|
+
*/
|
|
14272
|
+
url: string;
|
|
14273
|
+
}
|
|
14274
|
+
|
|
14223
14275
|
interface DidChangeThemeColorEvent extends Event {
|
|
14224
14276
|
themeColor: string;
|
|
14225
14277
|
}
|
|
@@ -14843,7 +14895,7 @@ declare namespace Electron {
|
|
|
14843
14895
|
enabled?: boolean;
|
|
14844
14896
|
/**
|
|
14845
14897
|
* default is `true`, and when `false` will prevent the accelerator from triggering
|
|
14846
|
-
* the item if the item is not visible
|
|
14898
|
+
* the item if the item is not visible.
|
|
14847
14899
|
*
|
|
14848
14900
|
* @platform darwin
|
|
14849
14901
|
*/
|
|
@@ -15705,6 +15757,18 @@ declare namespace Electron {
|
|
|
15705
15757
|
spellCheck: (words: string[], callback: (misspeltWords: string[]) => void) => void;
|
|
15706
15758
|
}
|
|
15707
15759
|
|
|
15760
|
+
interface PurchaseProductOpts {
|
|
15761
|
+
/**
|
|
15762
|
+
* The number of items the user wants to purchase.
|
|
15763
|
+
*/
|
|
15764
|
+
quantity?: number;
|
|
15765
|
+
/**
|
|
15766
|
+
* The string that associates the transaction with a user account on your service
|
|
15767
|
+
* (applicationUsername).
|
|
15768
|
+
*/
|
|
15769
|
+
username?: string;
|
|
15770
|
+
}
|
|
15771
|
+
|
|
15708
15772
|
interface ReadBookmark {
|
|
15709
15773
|
title: string;
|
|
15710
15774
|
url: string;
|
|
@@ -17194,6 +17258,7 @@ declare namespace Electron {
|
|
|
17194
17258
|
type Data = Electron.Data;
|
|
17195
17259
|
type Details = Electron.Details;
|
|
17196
17260
|
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
17261
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
17197
17262
|
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
17198
17263
|
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
17199
17264
|
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
@@ -17270,6 +17335,7 @@ declare namespace Electron {
|
|
|
17270
17335
|
type Privileges = Electron.Privileges;
|
|
17271
17336
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
17272
17337
|
type Provider = Electron.Provider;
|
|
17338
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
17273
17339
|
type ReadBookmark = Electron.ReadBookmark;
|
|
17274
17340
|
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
17275
17341
|
type RelaunchOptions = Electron.RelaunchOptions;
|
|
@@ -17506,6 +17572,7 @@ declare namespace Electron {
|
|
|
17506
17572
|
type Data = Electron.Data;
|
|
17507
17573
|
type Details = Electron.Details;
|
|
17508
17574
|
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
17575
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
17509
17576
|
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
17510
17577
|
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
17511
17578
|
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
@@ -17582,6 +17649,7 @@ declare namespace Electron {
|
|
|
17582
17649
|
type Privileges = Electron.Privileges;
|
|
17583
17650
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
17584
17651
|
type Provider = Electron.Provider;
|
|
17652
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
17585
17653
|
type ReadBookmark = Electron.ReadBookmark;
|
|
17586
17654
|
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
17587
17655
|
type RelaunchOptions = Electron.RelaunchOptions;
|
|
@@ -17751,6 +17819,7 @@ declare namespace Electron {
|
|
|
17751
17819
|
type Data = Electron.Data;
|
|
17752
17820
|
type Details = Electron.Details;
|
|
17753
17821
|
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
17822
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
17754
17823
|
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
17755
17824
|
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
17756
17825
|
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
@@ -17827,6 +17896,7 @@ declare namespace Electron {
|
|
|
17827
17896
|
type Privileges = Electron.Privileges;
|
|
17828
17897
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
17829
17898
|
type Provider = Electron.Provider;
|
|
17899
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
17830
17900
|
type ReadBookmark = Electron.ReadBookmark;
|
|
17831
17901
|
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
17832
17902
|
type RelaunchOptions = Electron.RelaunchOptions;
|
|
@@ -18077,6 +18147,7 @@ declare namespace Electron {
|
|
|
18077
18147
|
type Data = Electron.Data;
|
|
18078
18148
|
type Details = Electron.Details;
|
|
18079
18149
|
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
18150
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
18080
18151
|
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
18081
18152
|
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
18082
18153
|
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
@@ -18153,6 +18224,7 @@ declare namespace Electron {
|
|
|
18153
18224
|
type Privileges = Electron.Privileges;
|
|
18154
18225
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
18155
18226
|
type Provider = Electron.Provider;
|
|
18227
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
18156
18228
|
type ReadBookmark = Electron.ReadBookmark;
|
|
18157
18229
|
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
18158
18230
|
type RelaunchOptions = Electron.RelaunchOptions;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@electron/get": "^2.0.0",
|
|
12
|
-
"@types/node": "^
|
|
12
|
+
"@types/node": "^18.11.18",
|
|
13
13
|
"extract-zip": "^2.0.1"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"keywords": [
|
|
24
24
|
"electron"
|
|
25
25
|
],
|
|
26
|
-
"version": "
|
|
26
|
+
"version": "24.0.0-alpha.1"
|
|
27
27
|
}
|