electron 8.0.0-beta.9 → 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.
Files changed (2) hide show
  1. package/electron.d.ts +28 -2
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 8.0.0-beta.9
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
@@ -9129,6 +9129,13 @@ Calling `event.preventDefault()` will prevent the navigation.
9129
9129
  * Executes the editing command `cut` in web page.
9130
9130
  */
9131
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;
9132
9139
  /**
9133
9140
  * Executes the editing command `delete` in web page.
9134
9141
  */
@@ -9256,6 +9263,14 @@ Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
9256
9263
  * Navigates to the specified offset from the "current entry".
9257
9264
  */
9258
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;
9259
9274
  /**
9260
9275
  * A promise that resolves with a key for the inserted CSS that can later be used
9261
9276
  * to remove the CSS via `contents.removeInsertedCSS(key)`.
@@ -9297,6 +9312,11 @@ Works like `executeJavaScript` but evaluates `scripts` in an isolated context.
9297
9312
  **Deprecated**
9298
9313
  */
9299
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;
9300
9320
  /**
9301
9321
  * Whether the renderer process has crashed.
9302
9322
  */
@@ -10888,6 +10908,11 @@ See webContents.sendInputEvent for detailed description of `event` object.
10888
10908
  * The style of window title bar. Default is `default`. Possible values are:
10889
10909
  */
10890
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;
10891
10916
  /**
10892
10917
  * Shows the title in the title bar in full screen mode on macOS for all
10893
10918
  * `titleBarStyle` options. Default is `false`.
@@ -12927,7 +12952,8 @@ See webContents.sendInputEvent for detailed description of `event` object.
12927
12952
  */
12928
12953
  printBackground?: boolean;
12929
12954
  /**
12930
- * Set the printer device name to use. Default is `''`.
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'.
12931
12957
  */
12932
12958
  deviceName?: string;
12933
12959
  /**
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "8.0.0-beta.9",
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",