electron 8.0.0-beta.6 → 8.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/electron.d.ts +59 -10
- package/package.json +1 -1
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 8.0.0
|
|
1
|
+
// Type definitions for Electron 8.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/electron-typescript-definitions
|
|
@@ -1208,6 +1208,12 @@ This method can only be called before app is ready.
|
|
|
1208
1208
|
* Set the about panel options. This will override the values defined in the app's
|
|
1209
1209
|
* `.plist` file on MacOS. See the Apple docs for more details. On Linux, values
|
|
1210
1210
|
* must be set in order to be shown; there are no defaults.
|
|
1211
|
+
*
|
|
1212
|
+
* If you do not set `credits` but still wish to surface them in your app, AppKit
|
|
1213
|
+
* will look for a file named "Credits.html", "Credits.rtf", and "Credits.rtfd", in
|
|
1214
|
+
* that order, in the bundle returned by the NSBundle class method main. The first
|
|
1215
|
+
* file found is used, and if none is found, the info area is left blank. See Apple
|
|
1216
|
+
* documentation for more information.
|
|
1211
1217
|
*/
|
|
1212
1218
|
setAboutPanelOptions(options: AboutPanelOptionsOptions): void;
|
|
1213
1219
|
/**
|
|
@@ -3883,7 +3889,7 @@ Send given command to the debugging target.
|
|
|
3883
3889
|
* * `bookmarks` String[] (optional) _macOS_ _mas_ - An array matching the
|
|
3884
3890
|
* `filePaths` array of base64 encoded strings which contains security scoped
|
|
3885
3891
|
* bookmark data. `securityScopedBookmarks` must be enabled for this to be
|
|
3886
|
-
* populated.
|
|
3892
|
+
* populated. (For return values, see table here.)
|
|
3887
3893
|
*
|
|
3888
3894
|
* The `browserWindow` argument allows the dialog to attach itself to a parent
|
|
3889
3895
|
* window, making it modal.
|
|
@@ -3909,7 +3915,7 @@ Send given command to the debugging target.
|
|
|
3909
3915
|
* * `bookmarks` String[] (optional) _macOS_ _mas_ - An array matching the
|
|
3910
3916
|
* `filePaths` array of base64 encoded strings which contains security scoped
|
|
3911
3917
|
* bookmark data. `securityScopedBookmarks` must be enabled for this to be
|
|
3912
|
-
* populated.
|
|
3918
|
+
* populated. (For return values, see table here.)
|
|
3913
3919
|
*
|
|
3914
3920
|
* The `browserWindow` argument allows the dialog to attach itself to a parent
|
|
3915
3921
|
* window, making it modal.
|
|
@@ -3972,7 +3978,8 @@ Send given command to the debugging target.
|
|
|
3972
3978
|
* `undefined`.
|
|
3973
3979
|
* * `bookmark` String (optional) _macOS_ _mas_ - Base64 encoded string which
|
|
3974
3980
|
* contains the security scoped bookmark data for the saved file.
|
|
3975
|
-
* `securityScopedBookmarks` must be enabled for this to be present.
|
|
3981
|
+
* `securityScopedBookmarks` must be enabled for this to be present. (For return
|
|
3982
|
+
* values, see table here.)
|
|
3976
3983
|
*
|
|
3977
3984
|
* The `browserWindow` argument allows the dialog to attach itself to a parent
|
|
3978
3985
|
* window, making it modal.
|
|
@@ -3992,7 +3999,8 @@ Send given command to the debugging target.
|
|
|
3992
3999
|
* `undefined`.
|
|
3993
4000
|
* * `bookmark` String (optional) _macOS_ _mas_ - Base64 encoded string which
|
|
3994
4001
|
* contains the security scoped bookmark data for the saved file.
|
|
3995
|
-
* `securityScopedBookmarks` must be enabled for this to be present.
|
|
4002
|
+
* `securityScopedBookmarks` must be enabled for this to be present. (For return
|
|
4003
|
+
* values, see table here.)
|
|
3996
4004
|
*
|
|
3997
4005
|
* The `browserWindow` argument allows the dialog to attach itself to a parent
|
|
3998
4006
|
* window, making it modal.
|
|
@@ -6323,6 +6331,13 @@ e.g.
|
|
|
6323
6331
|
removeListener(event: 'will-download', listener: (event: Event,
|
|
6324
6332
|
item: DownloadItem,
|
|
6325
6333
|
webContents: WebContents) => void): this;
|
|
6334
|
+
/**
|
|
6335
|
+
* Whether the word was successfully written to the custom dictionary.
|
|
6336
|
+
*
|
|
6337
|
+
* **Note:** On macOS and Windows 10 this word will be written to the OS custom
|
|
6338
|
+
* dictionary as well
|
|
6339
|
+
*/
|
|
6340
|
+
addWordToSpellCheckerDictionary(word: string): boolean;
|
|
6326
6341
|
/**
|
|
6327
6342
|
* Dynamically sets whether to always send credentials for HTTP NTLM or Negotiate
|
|
6328
6343
|
* authentication.
|
|
@@ -6394,6 +6409,9 @@ Clears the host resolver cache.
|
|
|
6394
6409
|
* empty the spellchecker will fallback to using `en-US`. By default on launch if
|
|
6395
6410
|
* this setting is an empty list Electron will try to populate this setting with
|
|
6396
6411
|
* the current OS locale. This setting is persisted across restarts.
|
|
6412
|
+
*
|
|
6413
|
+
* **Note:** On macOS the OS spellchecker is used and has it's own list of
|
|
6414
|
+
* languages. This API is a no-op on macOS.
|
|
6397
6415
|
*/
|
|
6398
6416
|
getSpellCheckerLanguages(): string[];
|
|
6399
6417
|
/**
|
|
@@ -6502,6 +6520,9 @@ Clears the host resolver cache.
|
|
|
6502
6520
|
* dictionary downloader at your own hosted version of the hunspell dictionaries.
|
|
6503
6521
|
* We publish a `hunspell_dictionaries.zip` file with each release which contains
|
|
6504
6522
|
* the files you need to host here.
|
|
6523
|
+
*
|
|
6524
|
+
* **Note:** On macOS the OS spellchecker is used and therefore we do not download
|
|
6525
|
+
* any dictionary files. This API is a no-op on macOS.
|
|
6505
6526
|
*/
|
|
6506
6527
|
setSpellCheckerDictionaryDownloadURL(url: string): void;
|
|
6507
6528
|
/**
|
|
@@ -6509,6 +6530,9 @@ Clears the host resolver cache.
|
|
|
6509
6530
|
* typing in. In order for the spell checker to correctly check their words you
|
|
6510
6531
|
* must call this API with an array of language codes. You can get the list of
|
|
6511
6532
|
* supported language codes with the `ses.availableSpellCheckerLanguages` property.
|
|
6533
|
+
*
|
|
6534
|
+
* **Note:** On macOS the OS spellchecker is used and will detect your language
|
|
6535
|
+
* automatically. This API is a no-op on macOS.
|
|
6512
6536
|
*/
|
|
6513
6537
|
setSpellCheckerLanguages(languages: string[]): void;
|
|
6514
6538
|
/**
|
|
@@ -9105,6 +9129,13 @@ Calling `event.preventDefault()` will prevent the navigation.
|
|
|
9105
9129
|
* Executes the editing command `cut` in web page.
|
|
9106
9130
|
*/
|
|
9107
9131
|
cut(): void;
|
|
9132
|
+
/**
|
|
9133
|
+
* Decrease the capturer count by one. The page will be set to hidden or occluded
|
|
9134
|
+
* state when its browser window is hidden or occluded and the capturer count
|
|
9135
|
+
* reaches zero. If you want to decrease the hidden capturer count instead you
|
|
9136
|
+
* should set `stayHidden` to true.
|
|
9137
|
+
*/
|
|
9138
|
+
decrementCapturerCount(stayHidden?: boolean): void;
|
|
9108
9139
|
/**
|
|
9109
9140
|
* Executes the editing command `delete` in web page.
|
|
9110
9141
|
*/
|
|
@@ -9232,6 +9263,14 @@ Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
|
|
|
9232
9263
|
* Navigates to the specified offset from the "current entry".
|
|
9233
9264
|
*/
|
|
9234
9265
|
goToOffset(offset: number): void;
|
|
9266
|
+
/**
|
|
9267
|
+
* Increase the capturer count by one. The page is considered visible when its
|
|
9268
|
+
* browser window is hidden and the capturer count is non-zero. If you would like
|
|
9269
|
+
* the page to stay hidden, you should ensure that `stayHidden` is set to true.
|
|
9270
|
+
*
|
|
9271
|
+
This also affects the Page Visibility API.
|
|
9272
|
+
*/
|
|
9273
|
+
incrementCapturerCount(size?: Size, stayHidden?: boolean): void;
|
|
9235
9274
|
/**
|
|
9236
9275
|
* A promise that resolves with a key for the inserted CSS that can later be used
|
|
9237
9276
|
* to remove the CSS via `contents.removeInsertedCSS(key)`.
|
|
@@ -9273,6 +9312,11 @@ Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
|
|
|
9273
9312
|
**Deprecated**
|
|
9274
9313
|
*/
|
|
9275
9314
|
isAudioMuted(): boolean;
|
|
9315
|
+
/**
|
|
9316
|
+
* Whether this page is being captured. It returns true when the capturer count is
|
|
9317
|
+
* large then 0.
|
|
9318
|
+
*/
|
|
9319
|
+
isBeingCaptured(): boolean;
|
|
9276
9320
|
/**
|
|
9277
9321
|
* Whether the renderer process has crashed.
|
|
9278
9322
|
*/
|
|
@@ -10864,6 +10908,11 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
10864
10908
|
* The style of window title bar. Default is `default`. Possible values are:
|
|
10865
10909
|
*/
|
|
10866
10910
|
titleBarStyle?: ('default' | 'hidden' | 'hiddenInset' | 'customButtonsOnHover');
|
|
10911
|
+
/**
|
|
10912
|
+
* Set a custom position for the traffic light buttons. Can only be used with
|
|
10913
|
+
* `titleBarStyle` set to `hidden`
|
|
10914
|
+
*/
|
|
10915
|
+
trafficLightPosition?: Point;
|
|
10867
10916
|
/**
|
|
10868
10917
|
* Shows the title in the title bar in full screen mode on macOS for all
|
|
10869
10918
|
* `titleBarStyle` options. Default is `false`.
|
|
@@ -12152,7 +12201,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12152
12201
|
/**
|
|
12153
12202
|
* An array matching the `filePaths` array of base64 encoded strings which contains
|
|
12154
12203
|
* security scoped bookmark data. `securityScopedBookmarks` must be enabled for
|
|
12155
|
-
* this to be populated.
|
|
12204
|
+
* this to be populated. (For return values, see table here.)
|
|
12156
12205
|
*
|
|
12157
12206
|
* @platform darwin,mas
|
|
12158
12207
|
*/
|
|
@@ -12516,6 +12565,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12516
12565
|
/**
|
|
12517
12566
|
* Base64 encoded string which contains the security scoped bookmark data for the
|
|
12518
12567
|
* saved file. `securityScopedBookmarks` must be enabled for this to be present.
|
|
12568
|
+
* (For return values, see table here.)
|
|
12519
12569
|
*
|
|
12520
12570
|
* @platform darwin,mas
|
|
12521
12571
|
*/
|
|
@@ -12902,7 +12952,8 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12902
12952
|
*/
|
|
12903
12953
|
printBackground?: boolean;
|
|
12904
12954
|
/**
|
|
12905
|
-
* Set the printer device name to use.
|
|
12955
|
+
* Set the printer device name to use. Must be the system-defined name and not the
|
|
12956
|
+
* 'friendly' name, e.g 'Brother_QL_820NWB' and not 'Brother QL-820NWB'.
|
|
12906
12957
|
*/
|
|
12907
12958
|
deviceName?: string;
|
|
12908
12959
|
/**
|
|
@@ -13121,9 +13172,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
13121
13172
|
* If set, this will sandbox the renderer associated with the window, making it
|
|
13122
13173
|
* compatible with the Chromium OS-level sandbox and disabling the Node.js engine.
|
|
13123
13174
|
* This is not the same as the `nodeIntegration` option and the APIs available to
|
|
13124
|
-
* the preload script are more limited. Read more about the option here.
|
|
13125
|
-
* This option is currently experimental and may change or be removed in future
|
|
13126
|
-
* Electron releases.
|
|
13175
|
+
* the preload script are more limited. Read more about the option here.
|
|
13127
13176
|
*/
|
|
13128
13177
|
sandbox?: boolean;
|
|
13129
13178
|
/**
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "8.0.0
|
|
19
|
+
"version": "8.0.0",
|
|
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",
|