electron 13.4.0 → 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.
Files changed (2) hide show
  1. package/electron.d.ts +38 -3
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 13.4.0
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 programmingly with APIs
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
@@ -12086,6 +12106,8 @@ See webContents.sendInputEvent for detailed description of `event` object.
12086
12106
  visualEffectState?: ('followWindow' | 'active' | 'inactive');
12087
12107
  /**
12088
12108
  * The style of window title bar. Default is `default`. Possible values are:
12109
+ *
12110
+ * @platform darwin,win32
12089
12111
  */
12090
12112
  titleBarStyle?: ('default' | 'hidden' | 'hiddenInset' | 'customButtonsOnHover');
12091
12113
  /**
@@ -12138,6 +12160,16 @@ See webContents.sendInputEvent for detailed description of `event` object.
12138
12160
  * Settings of web page's features.
12139
12161
  */
12140
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);
12141
12173
  }
12142
12174
 
12143
12175
  interface CertificateTrustDialogOptions {
@@ -15353,6 +15385,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
15353
15385
  type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
15354
15386
  type NotificationAction = Electron.NotificationAction;
15355
15387
  type NotificationResponse = Electron.NotificationResponse;
15388
+ type OverlayOptions = Electron.OverlayOptions;
15356
15389
  type Point = Electron.Point;
15357
15390
  type PostBody = Electron.PostBody;
15358
15391
  type PrinterInfo = Electron.PrinterInfo;
@@ -15612,6 +15645,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
15612
15645
  type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
15613
15646
  type NotificationAction = Electron.NotificationAction;
15614
15647
  type NotificationResponse = Electron.NotificationResponse;
15648
+ type OverlayOptions = Electron.OverlayOptions;
15615
15649
  type Point = Electron.Point;
15616
15650
  type PostBody = Electron.PostBody;
15617
15651
  type PrinterInfo = Electron.PrinterInfo;
@@ -15824,6 +15858,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
15824
15858
  type NewWindowWebContentsEvent = Electron.NewWindowWebContentsEvent;
15825
15859
  type NotificationAction = Electron.NotificationAction;
15826
15860
  type NotificationResponse = Electron.NotificationResponse;
15861
+ type OverlayOptions = Electron.OverlayOptions;
15827
15862
  type Point = Electron.Point;
15828
15863
  type PostBody = Electron.PostBody;
15829
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.4.0",
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",