electron-types 46.0.0-alpha.3 → 46.0.0-alpha.4
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/README.md +3 -3
- package/dist/electron.d.ts +67 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@46.0.0-alpha.
|
|
17
|
+
npm install -D electron-types@46.0.0-alpha.4
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@46.0.0-alpha.
|
|
19
|
+
yarn add -D electron-types@46.0.0-alpha.4
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@46.0.0-alpha.
|
|
21
|
+
pnpm add -D electron-types@46.0.0-alpha.4
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 46.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 46.0.0-alpha.4
|
|
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/typescript-definitions
|
|
@@ -10328,6 +10328,22 @@ declare namespace Electron {
|
|
|
10328
10328
|
* one. It contains standard items such as `File`, `Edit`, `View`, and `Window`.
|
|
10329
10329
|
*/
|
|
10330
10330
|
static setApplicationMenu(menu: (Menu) | (null)): void;
|
|
10331
|
+
/**
|
|
10332
|
+
* Sets the colors used to highlight the hovered or keyboard-focused item in every
|
|
10333
|
+
* menu the app shows, including context menus and the menu bar's dropdowns. Light
|
|
10334
|
+
* and dark colors are set separately, and any color left unset keeps the default
|
|
10335
|
+
* for that mode. Each call replaces the colors set by any previous call. Passing
|
|
10336
|
+
* `null` restores the defaults.
|
|
10337
|
+
*
|
|
10338
|
+
* Menus opened after the call use the new colors. The colors are not applied while
|
|
10339
|
+
* Windows high contrast mode or forced colors are active, so the user's system
|
|
10340
|
+
* colors take priority.
|
|
10341
|
+
*
|
|
10342
|
+
* This method has no effect on macOS and Linux.
|
|
10343
|
+
*
|
|
10344
|
+
* @platform win32
|
|
10345
|
+
*/
|
|
10346
|
+
static setHighlightColors(options: (HighlightColorsOptions) | (null)): void;
|
|
10331
10347
|
/**
|
|
10332
10348
|
* Appends the `menuItem` to the menu.
|
|
10333
10349
|
*/
|
|
@@ -23208,6 +23224,17 @@ declare namespace Electron {
|
|
|
23208
23224
|
origin?: string;
|
|
23209
23225
|
}
|
|
23210
23226
|
|
|
23227
|
+
interface HighlightColorsOptions {
|
|
23228
|
+
/**
|
|
23229
|
+
* Colors used when menus are drawn with light colors.
|
|
23230
|
+
*/
|
|
23231
|
+
light?: Light;
|
|
23232
|
+
/**
|
|
23233
|
+
* Colors used when menus are drawn with dark colors.
|
|
23234
|
+
*/
|
|
23235
|
+
dark?: Dark;
|
|
23236
|
+
}
|
|
23237
|
+
|
|
23211
23238
|
interface IgnoreMouseEventsOptions {
|
|
23212
23239
|
/**
|
|
23213
23240
|
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
|
@@ -25966,6 +25993,18 @@ declare namespace Electron {
|
|
|
25966
25993
|
interface Children {
|
|
25967
25994
|
}
|
|
25968
25995
|
|
|
25996
|
+
interface Dark {
|
|
25997
|
+
/**
|
|
25998
|
+
* Background color of the hovered or keyboard-focused menu item, as a CSS color
|
|
25999
|
+
* string.
|
|
26000
|
+
*/
|
|
26001
|
+
background?: string;
|
|
26002
|
+
/**
|
|
26003
|
+
* Text color of the hovered or keyboard-focused menu item, as a CSS color string.
|
|
26004
|
+
*/
|
|
26005
|
+
foreground?: string;
|
|
26006
|
+
}
|
|
26007
|
+
|
|
25969
26008
|
interface EditFlags {
|
|
25970
26009
|
/**
|
|
25971
26010
|
* Whether the renderer believes it can undo.
|
|
@@ -26078,6 +26117,18 @@ declare namespace Electron {
|
|
|
26078
26117
|
enabled: boolean;
|
|
26079
26118
|
}
|
|
26080
26119
|
|
|
26120
|
+
interface Light {
|
|
26121
|
+
/**
|
|
26122
|
+
* Background color of the hovered or keyboard-focused menu item, as a CSS color
|
|
26123
|
+
* string (e.g. `#0067c0`).
|
|
26124
|
+
*/
|
|
26125
|
+
background?: string;
|
|
26126
|
+
/**
|
|
26127
|
+
* Text color of the hovered or keyboard-focused menu item, as a CSS color string.
|
|
26128
|
+
*/
|
|
26129
|
+
foreground?: string;
|
|
26130
|
+
}
|
|
26131
|
+
|
|
26081
26132
|
interface Margins {
|
|
26082
26133
|
/**
|
|
26083
26134
|
* Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen,
|
|
@@ -26503,6 +26554,7 @@ declare namespace Electron {
|
|
|
26503
26554
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
26504
26555
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
26505
26556
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
26557
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
26506
26558
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
26507
26559
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26508
26560
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -26635,6 +26687,7 @@ declare namespace Electron {
|
|
|
26635
26687
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
26636
26688
|
type Animate = Electron.Animate;
|
|
26637
26689
|
type Children = Electron.Children;
|
|
26690
|
+
type Dark = Electron.Dark;
|
|
26638
26691
|
type EditFlags = Electron.EditFlags;
|
|
26639
26692
|
type Env = Electron.Env;
|
|
26640
26693
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -26642,6 +26695,7 @@ declare namespace Electron {
|
|
|
26642
26695
|
type InputReports = Electron.InputReports;
|
|
26643
26696
|
type Interfaces = Electron.Interfaces;
|
|
26644
26697
|
type LaunchItems = Electron.LaunchItems;
|
|
26698
|
+
type Light = Electron.Light;
|
|
26645
26699
|
type Margins = Electron.Margins;
|
|
26646
26700
|
type MediaFlags = Electron.MediaFlags;
|
|
26647
26701
|
type Metadata = Electron.Metadata;
|
|
@@ -26934,6 +26988,7 @@ declare namespace Electron {
|
|
|
26934
26988
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
26935
26989
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
26936
26990
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
26991
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
26937
26992
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
26938
26993
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26939
26994
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -27066,6 +27121,7 @@ declare namespace Electron {
|
|
|
27066
27121
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
27067
27122
|
type Animate = Electron.Animate;
|
|
27068
27123
|
type Children = Electron.Children;
|
|
27124
|
+
type Dark = Electron.Dark;
|
|
27069
27125
|
type EditFlags = Electron.EditFlags;
|
|
27070
27126
|
type Env = Electron.Env;
|
|
27071
27127
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -27073,6 +27129,7 @@ declare namespace Electron {
|
|
|
27073
27129
|
type InputReports = Electron.InputReports;
|
|
27074
27130
|
type Interfaces = Electron.Interfaces;
|
|
27075
27131
|
type LaunchItems = Electron.LaunchItems;
|
|
27132
|
+
type Light = Electron.Light;
|
|
27076
27133
|
type Margins = Electron.Margins;
|
|
27077
27134
|
type MediaFlags = Electron.MediaFlags;
|
|
27078
27135
|
type Metadata = Electron.Metadata;
|
|
@@ -27288,6 +27345,7 @@ declare namespace Electron {
|
|
|
27288
27345
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
27289
27346
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
27290
27347
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
27348
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
27291
27349
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
27292
27350
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
27293
27351
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -27420,6 +27478,7 @@ declare namespace Electron {
|
|
|
27420
27478
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
27421
27479
|
type Animate = Electron.Animate;
|
|
27422
27480
|
type Children = Electron.Children;
|
|
27481
|
+
type Dark = Electron.Dark;
|
|
27423
27482
|
type EditFlags = Electron.EditFlags;
|
|
27424
27483
|
type Env = Electron.Env;
|
|
27425
27484
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -27427,6 +27486,7 @@ declare namespace Electron {
|
|
|
27427
27486
|
type InputReports = Electron.InputReports;
|
|
27428
27487
|
type Interfaces = Electron.Interfaces;
|
|
27429
27488
|
type LaunchItems = Electron.LaunchItems;
|
|
27489
|
+
type Light = Electron.Light;
|
|
27430
27490
|
type Margins = Electron.Margins;
|
|
27431
27491
|
type MediaFlags = Electron.MediaFlags;
|
|
27432
27492
|
type Metadata = Electron.Metadata;
|
|
@@ -27644,6 +27704,7 @@ declare namespace Electron {
|
|
|
27644
27704
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
27645
27705
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
27646
27706
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
27707
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
27647
27708
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
27648
27709
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
27649
27710
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -27776,6 +27837,7 @@ declare namespace Electron {
|
|
|
27776
27837
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
27777
27838
|
type Animate = Electron.Animate;
|
|
27778
27839
|
type Children = Electron.Children;
|
|
27840
|
+
type Dark = Electron.Dark;
|
|
27779
27841
|
type EditFlags = Electron.EditFlags;
|
|
27780
27842
|
type Env = Electron.Env;
|
|
27781
27843
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -27783,6 +27845,7 @@ declare namespace Electron {
|
|
|
27783
27845
|
type InputReports = Electron.InputReports;
|
|
27784
27846
|
type Interfaces = Electron.Interfaces;
|
|
27785
27847
|
type LaunchItems = Electron.LaunchItems;
|
|
27848
|
+
type Light = Electron.Light;
|
|
27786
27849
|
type Margins = Electron.Margins;
|
|
27787
27850
|
type MediaFlags = Electron.MediaFlags;
|
|
27788
27851
|
type Metadata = Electron.Metadata;
|
|
@@ -28097,6 +28160,7 @@ declare namespace Electron {
|
|
|
28097
28160
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
28098
28161
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
28099
28162
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
28163
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
28100
28164
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
28101
28165
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
28102
28166
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -28229,6 +28293,7 @@ declare namespace Electron {
|
|
|
28229
28293
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
28230
28294
|
type Animate = Electron.Animate;
|
|
28231
28295
|
type Children = Electron.Children;
|
|
28296
|
+
type Dark = Electron.Dark;
|
|
28232
28297
|
type EditFlags = Electron.EditFlags;
|
|
28233
28298
|
type Env = Electron.Env;
|
|
28234
28299
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -28236,6 +28301,7 @@ declare namespace Electron {
|
|
|
28236
28301
|
type InputReports = Electron.InputReports;
|
|
28237
28302
|
type Interfaces = Electron.Interfaces;
|
|
28238
28303
|
type LaunchItems = Electron.LaunchItems;
|
|
28304
|
+
type Light = Electron.Light;
|
|
28239
28305
|
type Margins = Electron.Margins;
|
|
28240
28306
|
type MediaFlags = Electron.MediaFlags;
|
|
28241
28307
|
type Metadata = Electron.Metadata;
|
package/dist/version.json
CHANGED