electron 13.2.2 → 13.5.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 +51 -6
- package/package.json +1 -1
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 13.
|
|
1
|
+
// Type definitions for Electron 13.5.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
|
|
@@ -2554,8 +2554,8 @@ On Linux always returns `true`.
|
|
|
2554
2554
|
* and height are within the content view--only that they exist. Sum any extra
|
|
2555
2555
|
* width and height areas you have within the overall content view.
|
|
2556
2556
|
*
|
|
2557
|
-
* The aspect ratio is not respected when window is resized
|
|
2558
|
-
* like `win.setSize`.
|
|
2557
|
+
* The aspect ratio is not respected when window is resized programmatically with
|
|
2558
|
+
* APIs like `win.setSize`.
|
|
2559
2559
|
*/
|
|
2560
2560
|
setAspectRatio(aspectRatio: number, extraSize?: Size): void;
|
|
2561
2561
|
/**
|
|
@@ -5889,6 +5889,26 @@ Starts recording network events to `path`.
|
|
|
5889
5889
|
userText?: string;
|
|
5890
5890
|
}
|
|
5891
5891
|
|
|
5892
|
+
interface OverlayOptions {
|
|
5893
|
+
|
|
5894
|
+
// Docs: https://electronjs.org/docs/api/structures/overlay-options
|
|
5895
|
+
|
|
5896
|
+
/**
|
|
5897
|
+
* The CSS color of the Window Controls Overlay when enabled. Default is the system
|
|
5898
|
+
* color.
|
|
5899
|
+
*
|
|
5900
|
+
* @platform win32
|
|
5901
|
+
*/
|
|
5902
|
+
color?: string;
|
|
5903
|
+
/**
|
|
5904
|
+
* The CSS color of the symbols on the Window Controls Overlay when enabled.
|
|
5905
|
+
* Default is the system color.
|
|
5906
|
+
*
|
|
5907
|
+
* @platform win32
|
|
5908
|
+
*/
|
|
5909
|
+
symbolColor?: string;
|
|
5910
|
+
}
|
|
5911
|
+
|
|
5892
5912
|
interface Point {
|
|
5893
5913
|
|
|
5894
5914
|
// Docs: https://electronjs.org/docs/api/structures/point
|
|
@@ -8816,6 +8836,14 @@ This value is set to false by default.
|
|
|
8816
8836
|
|
|
8817
8837
|
// Docs: https://electronjs.org/docs/api/web-contents
|
|
8818
8838
|
|
|
8839
|
+
/**
|
|
8840
|
+
* | undefined - A WebContents instance with the given TargetID, or `undefined` if
|
|
8841
|
+
* there is no WebContents associated with the given TargetID.
|
|
8842
|
+
*
|
|
8843
|
+
* When communicating with the Chrome DevTools Protocol, it can be useful to lookup
|
|
8844
|
+
* a WebContents instance based on its assigned TargetID.
|
|
8845
|
+
*/
|
|
8846
|
+
static fromDevToolsTargetId(targetId: string): WebContents;
|
|
8819
8847
|
/**
|
|
8820
8848
|
* | undefined - A WebContents instance with the given ID, or `undefined` if there
|
|
8821
8849
|
* is no WebContents associated with the given ID.
|
|
@@ -11646,8 +11674,9 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
11646
11674
|
plugins: boolean;
|
|
11647
11675
|
/**
|
|
11648
11676
|
* A `String` that specifies a script that will be loaded before other scripts run
|
|
11649
|
-
* in the guest page. The protocol of script's URL must be
|
|
11650
|
-
* `asar
|
|
11677
|
+
* in the guest page. The protocol of script's URL must be `file:` (even when using
|
|
11678
|
+
* `asar:` archives) because it will be loaded by Node's `require` under the hood,
|
|
11679
|
+
* which treats `asar:` archives as virtual directories.
|
|
11651
11680
|
*
|
|
11652
11681
|
* When the guest page doesn't have node integration this script will still have
|
|
11653
11682
|
* access to all Node APIs, but global objects injected by Node will be deleted
|
|
@@ -12077,6 +12106,8 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12077
12106
|
visualEffectState?: ('followWindow' | 'active' | 'inactive');
|
|
12078
12107
|
/**
|
|
12079
12108
|
* The style of window title bar. Default is `default`. Possible values are:
|
|
12109
|
+
*
|
|
12110
|
+
* @platform darwin,win32
|
|
12080
12111
|
*/
|
|
12081
12112
|
titleBarStyle?: ('default' | 'hidden' | 'hiddenInset' | 'customButtonsOnHover');
|
|
12082
12113
|
/**
|
|
@@ -12129,6 +12160,16 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
12129
12160
|
* Settings of web page's features.
|
|
12130
12161
|
*/
|
|
12131
12162
|
webPreferences?: WebPreferences;
|
|
12163
|
+
/**
|
|
12164
|
+
* When using a frameless window in conjuction with
|
|
12165
|
+
* `win.setWindowButtonVisibility(true)` on macOS or using a `titleBarStyle` so
|
|
12166
|
+
* that the standard window controls ("traffic lights" on macOS) are visible, this
|
|
12167
|
+
* property enables the Window Controls Overlay JavaScript APIs and CSS Environment
|
|
12168
|
+
* Variables. Specifying `true` will result in an overlay with default system
|
|
12169
|
+
* colors. Default is `false`. On Windows, the OverlayOptions can be used instead
|
|
12170
|
+
* of a boolean to specify colors for the overlay.
|
|
12171
|
+
*/
|
|
12172
|
+
titleBarOverlay?: (OverlayOptions) | (boolean);
|
|
12132
12173
|
}
|
|
12133
12174
|
|
|
12134
12175
|
interface CertificateTrustDialogOptions {
|
|
@@ -14399,7 +14440,8 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14399
14440
|
*/
|
|
14400
14441
|
overlayStyle?: ('background' | 'outline' | 'none');
|
|
14401
14442
|
/**
|
|
14402
|
-
* Defaults to `false
|
|
14443
|
+
* Whether to show arrow buttons. Defaults to `false` and is only shown if `items`
|
|
14444
|
+
* is non-empty.
|
|
14403
14445
|
*/
|
|
14404
14446
|
showArrowButtons?: boolean;
|
|
14405
14447
|
/**
|
|
@@ -15343,6 +15385,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
15343
15385
|
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
15344
15386
|
type NotificationAction = Electron.NotificationAction;
|
|
15345
15387
|
type NotificationResponse = Electron.NotificationResponse;
|
|
15388
|
+
type OverlayOptions = Electron.OverlayOptions;
|
|
15346
15389
|
type Point = Electron.Point;
|
|
15347
15390
|
type PostBody = Electron.PostBody;
|
|
15348
15391
|
type PrinterInfo = Electron.PrinterInfo;
|
|
@@ -15602,6 +15645,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
15602
15645
|
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
15603
15646
|
type NotificationAction = Electron.NotificationAction;
|
|
15604
15647
|
type NotificationResponse = Electron.NotificationResponse;
|
|
15648
|
+
type OverlayOptions = Electron.OverlayOptions;
|
|
15605
15649
|
type Point = Electron.Point;
|
|
15606
15650
|
type PostBody = Electron.PostBody;
|
|
15607
15651
|
type PrinterInfo = Electron.PrinterInfo;
|
|
@@ -15814,6 +15858,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
15814
15858
|
type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
|
|
15815
15859
|
type NotificationAction = Electron.NotificationAction;
|
|
15816
15860
|
type NotificationResponse = Electron.NotificationResponse;
|
|
15861
|
+
type OverlayOptions = Electron.OverlayOptions;
|
|
15817
15862
|
type Point = Electron.Point;
|
|
15818
15863
|
type PostBody = Electron.PostBody;
|
|
15819
15864
|
type PrinterInfo = Electron.PrinterInfo;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "13.
|
|
19
|
+
"version": "13.5.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",
|