electron 12.0.1 → 12.0.5
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/electron.d.ts +65 -21
- package/package.json +1 -1
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 12.0.
|
|
1
|
+
// Type definitions for Electron 12.0.5
|
|
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
|
|
@@ -1321,6 +1321,10 @@ By default this API will return `false`.
|
|
|
1321
1321
|
* removed item to a custom category earlier than that will result in the entire
|
|
1322
1322
|
* custom category being omitted from the Jump List. The list of removed items can
|
|
1323
1323
|
* be obtained using `app.getJumpListSettings()`.
|
|
1324
|
+
*
|
|
1325
|
+
* **Note:** The maximum length of a Jump List item's `description` property is 260
|
|
1326
|
+
* characters. Beyond this limit, the item will not be added to the Jump List, nor
|
|
1327
|
+
* will it be displayed.
|
|
1324
1328
|
*
|
|
1325
1329
|
Here's a very simple example of creating a custom Jump List:
|
|
1326
1330
|
*
|
|
@@ -2377,7 +2381,7 @@ Calling `event.preventDefault()` will prevent the menu from being displayed.
|
|
|
2377
2381
|
*
|
|
2378
2382
|
* @platform win32
|
|
2379
2383
|
*/
|
|
2380
|
-
hookWindowMessage(message: number, callback: () => void): void;
|
|
2384
|
+
hookWindowMessage(message: number, callback: (wParam: any, lParam: any) => void): void;
|
|
2381
2385
|
/**
|
|
2382
2386
|
* Whether the window is always on top of other windows.
|
|
2383
2387
|
*/
|
|
@@ -3607,10 +3611,58 @@ This cannot be called when `titleBarStyle` is set to `customButtonsOnHover`.
|
|
|
3607
3611
|
* Emitted when a cookie is changed because it was added, edited, removed, or
|
|
3608
3612
|
* expired.
|
|
3609
3613
|
*/
|
|
3610
|
-
on(event: 'changed', listener:
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
+
on(event: 'changed', listener: (event: Event,
|
|
3615
|
+
/**
|
|
3616
|
+
* The cookie that was changed.
|
|
3617
|
+
*/
|
|
3618
|
+
cookie: Cookie,
|
|
3619
|
+
/**
|
|
3620
|
+
* The cause of the change with one of the following values:
|
|
3621
|
+
*/
|
|
3622
|
+
cause: ('explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite'),
|
|
3623
|
+
/**
|
|
3624
|
+
* `true` if the cookie was removed, `false` otherwise.
|
|
3625
|
+
*/
|
|
3626
|
+
removed: boolean) => void): this;
|
|
3627
|
+
once(event: 'changed', listener: (event: Event,
|
|
3628
|
+
/**
|
|
3629
|
+
* The cookie that was changed.
|
|
3630
|
+
*/
|
|
3631
|
+
cookie: Cookie,
|
|
3632
|
+
/**
|
|
3633
|
+
* The cause of the change with one of the following values:
|
|
3634
|
+
*/
|
|
3635
|
+
cause: ('explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite'),
|
|
3636
|
+
/**
|
|
3637
|
+
* `true` if the cookie was removed, `false` otherwise.
|
|
3638
|
+
*/
|
|
3639
|
+
removed: boolean) => void): this;
|
|
3640
|
+
addListener(event: 'changed', listener: (event: Event,
|
|
3641
|
+
/**
|
|
3642
|
+
* The cookie that was changed.
|
|
3643
|
+
*/
|
|
3644
|
+
cookie: Cookie,
|
|
3645
|
+
/**
|
|
3646
|
+
* The cause of the change with one of the following values:
|
|
3647
|
+
*/
|
|
3648
|
+
cause: ('explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite'),
|
|
3649
|
+
/**
|
|
3650
|
+
* `true` if the cookie was removed, `false` otherwise.
|
|
3651
|
+
*/
|
|
3652
|
+
removed: boolean) => void): this;
|
|
3653
|
+
removeListener(event: 'changed', listener: (event: Event,
|
|
3654
|
+
/**
|
|
3655
|
+
* The cookie that was changed.
|
|
3656
|
+
*/
|
|
3657
|
+
cookie: Cookie,
|
|
3658
|
+
/**
|
|
3659
|
+
* The cause of the change with one of the following values:
|
|
3660
|
+
*/
|
|
3661
|
+
cause: ('explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite'),
|
|
3662
|
+
/**
|
|
3663
|
+
* `true` if the cookie was removed, `false` otherwise.
|
|
3664
|
+
*/
|
|
3665
|
+
removed: boolean) => void): this;
|
|
3614
3666
|
/**
|
|
3615
3667
|
* A promise which resolves when the cookie store has been flushed
|
|
3616
3668
|
*
|
|
@@ -5113,7 +5165,7 @@ Retrieves the product descriptions.
|
|
|
5113
5165
|
args?: string;
|
|
5114
5166
|
/**
|
|
5115
5167
|
* Description of the task (displayed in a tooltip). Should only be set if `type`
|
|
5116
|
-
* is `task`.
|
|
5168
|
+
* is `task`. Maximum length 260 characters.
|
|
5117
5169
|
*/
|
|
5118
5170
|
description?: string;
|
|
5119
5171
|
/**
|
|
@@ -7972,13 +8024,15 @@ Some popular `key` and `type`s are:
|
|
|
7972
8024
|
*/
|
|
7973
8025
|
subscribeNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number;
|
|
7974
8026
|
/**
|
|
8027
|
+
* The ID of this subscription
|
|
8028
|
+
*
|
|
7975
8029
|
* Same as `subscribeNotification`, but uses
|
|
7976
8030
|
* `NSWorkspace.sharedWorkspace.notificationCenter`. This is necessary for events
|
|
7977
8031
|
* such as `NSWorkspaceDidActivateApplicationNotification`.
|
|
7978
8032
|
*
|
|
7979
8033
|
* @platform darwin
|
|
7980
8034
|
*/
|
|
7981
|
-
subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void):
|
|
8035
|
+
subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number;
|
|
7982
8036
|
/**
|
|
7983
8037
|
* Same as `unsubscribeNotification`, but removes the subscriber from
|
|
7984
8038
|
* `NSNotificationCenter`.
|
|
@@ -8821,7 +8875,7 @@ This value is set to false by default.
|
|
|
8821
8875
|
/**
|
|
8822
8876
|
* `file`.
|
|
8823
8877
|
*/
|
|
8824
|
-
type:
|
|
8878
|
+
type: 'file';
|
|
8825
8879
|
}
|
|
8826
8880
|
|
|
8827
8881
|
interface UploadRawData {
|
|
@@ -8835,7 +8889,7 @@ This value is set to false by default.
|
|
|
8835
8889
|
/**
|
|
8836
8890
|
* `rawData`.
|
|
8837
8891
|
*/
|
|
8838
|
-
type:
|
|
8892
|
+
type: 'rawData';
|
|
8839
8893
|
}
|
|
8840
8894
|
|
|
8841
8895
|
class WebContents extends NodeEventEmitter {
|
|
@@ -12756,14 +12810,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12756
12810
|
*/
|
|
12757
12811
|
frameName: string;
|
|
12758
12812
|
/**
|
|
12759
|
-
* Comma separated list of window features provided to `window.open()`.
|
|
12760
|
-
* `{action: 'deny'} | {action: 'allow', overrideBrowserWindowOptions?:
|
|
12761
|
-
* BrowserWindowConstructorOptions}` - `deny` cancels the creation of the new
|
|
12762
|
-
* window. `allow` will allow the new window to be created. Specifying
|
|
12763
|
-
* `overrideBrowserWindowOptions` allows customization of the created window.
|
|
12764
|
-
* Returning an unrecognized value such as a null, undefined, or an object without
|
|
12765
|
-
* a recognized 'action' value will result in a console error and have the same
|
|
12766
|
-
* effect as returning `{action: 'deny'}`.
|
|
12813
|
+
* Comma separated list of window features provided to `window.open()`.
|
|
12767
12814
|
*/
|
|
12768
12815
|
features: string;
|
|
12769
12816
|
}
|
|
@@ -15811,9 +15858,6 @@ declare namespace NodeJS {
|
|
|
15811
15858
|
/**
|
|
15812
15859
|
* Emitted when Electron has loaded its internal initialization script and is
|
|
15813
15860
|
* beginning to load the web page or the main script.
|
|
15814
|
-
*
|
|
15815
|
-
* It can be used by the preload script to add removed Node global symbols back to
|
|
15816
|
-
* the global scope when node integration is turned off:
|
|
15817
15861
|
*/
|
|
15818
15862
|
on(event: 'loaded', listener: Function): this;
|
|
15819
15863
|
once(event: 'loaded', listener: Function): this;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "12.0.
|
|
19
|
+
"version": "12.0.5",
|
|
20
20
|
"repository": "https://github.com/electron/electron",
|
|
21
21
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
22
22
|
"license": "MIT",
|