electron 14.0.2 → 14.2.1

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 +280 -3
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 14.0.2
1
+ // Type definitions for Electron 14.2.1
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
@@ -2163,9 +2163,9 @@ declare namespace Electron {
2163
2163
  */
2164
2164
  getOpacity(): number;
2165
2165
  /**
2166
- * The parent window.
2166
+ * The parent window or `null` if there is no parent.
2167
2167
  */
2168
- getParentWindow(): BrowserWindow;
2168
+ getParentWindow(): (BrowserWindow) | (null);
2169
2169
  /**
2170
2170
  * Contains the window's current position.
2171
2171
  */
@@ -4701,6 +4701,37 @@ declare namespace Electron {
4701
4701
  webgl2: string;
4702
4702
  }
4703
4703
 
4704
+ interface HIDDevice {
4705
+
4706
+ // Docs: https://electronjs.org/docs/api/structures/hid-device
4707
+
4708
+ /**
4709
+ * Unique identifier for the device.
4710
+ */
4711
+ deviceId: string;
4712
+ /**
4713
+ * Unique identifier for the HID interface. A device may have multiple HID
4714
+ * interfaces.
4715
+ */
4716
+ guid?: string;
4717
+ /**
4718
+ * Name of the device.
4719
+ */
4720
+ name: string;
4721
+ /**
4722
+ * The USB product ID.
4723
+ */
4724
+ productId: number;
4725
+ /**
4726
+ * The USB device serial number.
4727
+ */
4728
+ serialNumber?: string;
4729
+ /**
4730
+ * The USB vendor ID.
4731
+ */
4732
+ vendorId: number;
4733
+ }
4734
+
4704
4735
  interface InAppPurchase extends NodeJS.EventEmitter {
4705
4736
 
4706
4737
  // Docs: https://electronjs.org/docs/api/in-app-purchase
@@ -7075,6 +7106,36 @@ declare namespace Electron {
7075
7106
  extension: Extension) => void): this;
7076
7107
  removeListener(event: 'extension-unloaded', listener: (event: Event,
7077
7108
  extension: Extension) => void): this;
7109
+ /**
7110
+ * Emitted when a new HID device becomes available. For example, when a new USB
7111
+ * device is plugged in.
7112
+ *
7113
+ * This event will only be emitted after `navigator.hid.requestDevice` has been
7114
+ * called and `select-hid-device` has fired.
7115
+ */
7116
+ on(event: 'hid-device-added', listener: (event: Event,
7117
+ details: HidDeviceAddedDetails) => void): this;
7118
+ once(event: 'hid-device-added', listener: (event: Event,
7119
+ details: HidDeviceAddedDetails) => void): this;
7120
+ addListener(event: 'hid-device-added', listener: (event: Event,
7121
+ details: HidDeviceAddedDetails) => void): this;
7122
+ removeListener(event: 'hid-device-added', listener: (event: Event,
7123
+ details: HidDeviceAddedDetails) => void): this;
7124
+ /**
7125
+ * Emitted when a HID device has been removed. For example, this event will fire
7126
+ * when a USB device is unplugged.
7127
+ *
7128
+ * This event will only be emitted after `navigator.hid.requestDevice` has been
7129
+ * called and `select-hid-device` has fired.
7130
+ */
7131
+ on(event: 'hid-device-removed', listener: (event: Event,
7132
+ details: HidDeviceRemovedDetails) => void): this;
7133
+ once(event: 'hid-device-removed', listener: (event: Event,
7134
+ details: HidDeviceRemovedDetails) => void): this;
7135
+ addListener(event: 'hid-device-removed', listener: (event: Event,
7136
+ details: HidDeviceRemovedDetails) => void): this;
7137
+ removeListener(event: 'hid-device-removed', listener: (event: Event,
7138
+ details: HidDeviceRemovedDetails) => void): this;
7078
7139
  /**
7079
7140
  * Emitted when a render process requests preconnection to a URL, generally due to
7080
7141
  * a resource hint.
@@ -7119,6 +7180,26 @@ declare namespace Electron {
7119
7180
  * the spec for more details.)
7120
7181
  */
7121
7182
  allowCredentials: boolean) => void): this;
7183
+ /**
7184
+ * Emitted when a HID device needs to be selected when a call to
7185
+ * `navigator.hid.requestDevice` is made. `callback` should be called with
7186
+ * `deviceId` to be selected; passing no arguments to `callback` will cancel the
7187
+ * request. Additionally, permissioning on `navigator.hid` can be further managed
7188
+ * by using ses.setPermissionCheckHandler(handler) and
7189
+ * ses.setDevicePermissionHandler(handler)`.
7190
+ */
7191
+ on(event: 'select-hid-device', listener: (event: Event,
7192
+ details: SelectHidDeviceDetails,
7193
+ callback: (deviceId?: (string) | (null)) => void) => void): this;
7194
+ once(event: 'select-hid-device', listener: (event: Event,
7195
+ details: SelectHidDeviceDetails,
7196
+ callback: (deviceId?: (string) | (null)) => void) => void): this;
7197
+ addListener(event: 'select-hid-device', listener: (event: Event,
7198
+ details: SelectHidDeviceDetails,
7199
+ callback: (deviceId?: (string) | (null)) => void) => void): this;
7200
+ removeListener(event: 'select-hid-device', listener: (event: Event,
7201
+ details: SelectHidDeviceDetails,
7202
+ callback: (deviceId?: (string) | (null)) => void) => void): this;
7122
7203
  /**
7123
7204
  * Emitted when a serial port needs to be selected when a call to
7124
7205
  * `navigator.serial.requestPort` is made. `callback` should be called with
@@ -7482,6 +7563,21 @@ declare namespace Electron {
7482
7563
  * > **NOTE:** The result of this procedure is cached by the network service.
7483
7564
  */
7484
7565
  setCertificateVerifyProc(proc: ((request: Request, callback: (verificationResult: number) => void) => void) | (null)): void;
7566
+ /**
7567
+ * Sets the handler which can be used to respond to device permission checks for
7568
+ * the `session`. Returning `true` will allow the device to be permitted and
7569
+ * `false` will reject it. To clear the handler, call
7570
+ * `setDevicePermissionHandler(null)`. This handler can be used to provide default
7571
+ * permissioning to devices without first calling for permission to devices (eg via
7572
+ * `navigator.hid.requestDevice`). If this handler is not defined, the default
7573
+ * device permissions as granted through device selection (eg via
7574
+ * `navigator.hid.requestDevice`) will be used. Additionally, the default behavior
7575
+ * of Electron is to store granted device permision through the lifetime of the
7576
+ * corresponding WebContents. If longer term storage is needed, a developer can
7577
+ * store granted device permissions (eg when handling the `select-hid-device`
7578
+ * event) and then read from that storage with `setDevicePermissionHandler`.
7579
+ */
7580
+ setDevicePermissionHandler(handler: ((details: DevicePermissionHandlerHandlerDetails) => boolean) | (null)): void;
7485
7581
  /**
7486
7582
  * Sets download saving directory. By default, the download directory will be the
7487
7583
  * `Downloads` under the respective app folder.
@@ -11778,6 +11874,11 @@ declare namespace Electron {
11778
11874
  */
11779
11875
  addEventListener(event: 'devtools-focused', listener: (event: Event) => void, useCapture?: boolean): this;
11780
11876
  removeEventListener(event: 'devtools-focused', listener: (event: Event) => void): this;
11877
+ /**
11878
+ * Emitted when there is a new context menu that needs to be handled.
11879
+ */
11880
+ addEventListener(event: 'context-menu', listener: (event: ContextMenuEvent) => void, useCapture?: boolean): this;
11881
+ removeEventListener(event: 'context-menu', listener: (event: ContextMenuEvent) => void): this;
11781
11882
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
11782
11883
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11783
11884
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
@@ -12760,6 +12861,10 @@ declare namespace Electron {
12760
12861
  sourceId: string;
12761
12862
  }
12762
12863
 
12864
+ interface ContextMenuEvent extends Event {
12865
+ params: Params;
12866
+ }
12867
+
12763
12868
  interface ContextMenuParams {
12764
12869
  /**
12765
12870
  * x coordinate.
@@ -13093,6 +13198,26 @@ declare namespace Electron {
13093
13198
  name?: string;
13094
13199
  }
13095
13200
 
13201
+ interface DevicePermissionHandlerHandlerDetails {
13202
+ /**
13203
+ * The type of device that permission is being requested on, can be `hid` or
13204
+ * `serial`.
13205
+ */
13206
+ deviceType: ('hid' | 'serial');
13207
+ /**
13208
+ * The origin URL of the device permission check.
13209
+ */
13210
+ origin: string;
13211
+ /**
13212
+ * the device that permission is being requested for.
13213
+ */
13214
+ device: (HIDDevice) | (SerialPort);
13215
+ /**
13216
+ * WebFrameMain checking the device permission.
13217
+ */
13218
+ frame: WebFrameMain;
13219
+ }
13220
+
13096
13221
  interface DidChangeThemeColorEvent extends Event {
13097
13222
  themeColor: string;
13098
13223
  }
@@ -13344,6 +13469,16 @@ declare namespace Electron {
13344
13469
  doesZapGarbage: boolean;
13345
13470
  }
13346
13471
 
13472
+ interface HidDeviceAddedDetails {
13473
+ device: HIDDevice[];
13474
+ frame: WebFrameMain;
13475
+ }
13476
+
13477
+ interface HidDeviceRemovedDetails {
13478
+ device: HIDDevice[];
13479
+ frame: WebFrameMain;
13480
+ }
13481
+
13347
13482
  interface IgnoreMouseEventsOptions {
13348
13483
  /**
13349
13484
  * If true, forwards mouse move messages to Chromium, enabling mouse related events
@@ -14297,6 +14432,10 @@ declare namespace Electron {
14297
14432
  * The url of the `openExternal` request.
14298
14433
  */
14299
14434
  externalURL?: string;
14435
+ /**
14436
+ * The security origin of the `media` request.
14437
+ */
14438
+ securityOrigin?: string;
14300
14439
  /**
14301
14440
  * The types of media access being requested, elements can be `video` or `audio`
14302
14441
  */
@@ -14641,6 +14780,11 @@ declare namespace Electron {
14641
14780
  securityScopedBookmarks?: boolean;
14642
14781
  }
14643
14782
 
14783
+ interface SelectHidDeviceDetails {
14784
+ deviceList: HIDDevice[];
14785
+ frame: WebFrameMain;
14786
+ }
14787
+
14644
14788
  interface Settings {
14645
14789
  /**
14646
14790
  * `true` to open the app at login, `false` to remove the app as a login item.
@@ -15342,6 +15486,118 @@ declare namespace Electron {
15342
15486
  to: number;
15343
15487
  }
15344
15488
 
15489
+ interface Params {
15490
+ /**
15491
+ * x coordinate.
15492
+ */
15493
+ x: number;
15494
+ /**
15495
+ * y coordinate.
15496
+ */
15497
+ y: number;
15498
+ /**
15499
+ * URL of the link that encloses the node the context menu was invoked on.
15500
+ */
15501
+ linkURL: string;
15502
+ /**
15503
+ * Text associated with the link. May be an empty string if the contents of the
15504
+ * link are an image.
15505
+ */
15506
+ linkText: string;
15507
+ /**
15508
+ * URL of the top level page that the context menu was invoked on.
15509
+ */
15510
+ pageURL: string;
15511
+ /**
15512
+ * URL of the subframe that the context menu was invoked on.
15513
+ */
15514
+ frameURL: string;
15515
+ /**
15516
+ * Source URL for the element that the context menu was invoked on. Elements with
15517
+ * source URLs are images, audio and video.
15518
+ */
15519
+ srcURL: string;
15520
+ /**
15521
+ * Type of the node the context menu was invoked on. Can be `none`, `image`,
15522
+ * `audio`, `video`, `canvas`, `file` or `plugin`.
15523
+ */
15524
+ mediaType: ('none' | 'image' | 'audio' | 'video' | 'canvas' | 'file' | 'plugin');
15525
+ /**
15526
+ * Whether the context menu was invoked on an image which has non-empty contents.
15527
+ */
15528
+ hasImageContents: boolean;
15529
+ /**
15530
+ * Whether the context is editable.
15531
+ */
15532
+ isEditable: boolean;
15533
+ /**
15534
+ * Text of the selection that the context menu was invoked on.
15535
+ */
15536
+ selectionText: string;
15537
+ /**
15538
+ * Title text of the selection that the context menu was invoked on.
15539
+ */
15540
+ titleText: string;
15541
+ /**
15542
+ * Alt text of the selection that the context menu was invoked on.
15543
+ */
15544
+ altText: string;
15545
+ /**
15546
+ * Suggested filename to be used when saving file through 'Save Link As' option of
15547
+ * context menu.
15548
+ */
15549
+ suggestedFilename: string;
15550
+ /**
15551
+ * Rect representing the coordinates in the document space of the selection.
15552
+ */
15553
+ selectionRect: Rectangle;
15554
+ /**
15555
+ * Start position of the selection text.
15556
+ */
15557
+ selectionStartOffset: number;
15558
+ /**
15559
+ * The referrer policy of the frame on which the menu is invoked.
15560
+ */
15561
+ referrerPolicy: Referrer;
15562
+ /**
15563
+ * The misspelled word under the cursor, if any.
15564
+ */
15565
+ misspelledWord: string;
15566
+ /**
15567
+ * An array of suggested words to show the user to replace the `misspelledWord`.
15568
+ * Only available if there is a misspelled word and spellchecker is enabled.
15569
+ */
15570
+ dictionarySuggestions: string[];
15571
+ /**
15572
+ * The character encoding of the frame on which the menu was invoked.
15573
+ */
15574
+ frameCharset: string;
15575
+ /**
15576
+ * If the context menu was invoked on an input field, the type of that field.
15577
+ * Possible values are `none`, `plainText`, `password`, `other`.
15578
+ */
15579
+ inputFieldType: string;
15580
+ /**
15581
+ * If the context is editable, whether or not spellchecking is enabled.
15582
+ */
15583
+ spellcheckEnabled: boolean;
15584
+ /**
15585
+ * Input source that invoked the context menu. Can be `none`, `mouse`, `keyboard`,
15586
+ * `touch`, `touchMenu`, `longPress`, `longTap`, `touchHandle`, `stylus`,
15587
+ * `adjustSelection`, or `adjustSelectionReset`.
15588
+ */
15589
+ menuSourceType: ('none' | 'mouse' | 'keyboard' | 'touch' | 'touchMenu' | 'longPress' | 'longTap' | 'touchHandle' | 'stylus' | 'adjustSelection' | 'adjustSelectionReset');
15590
+ /**
15591
+ * The flags for the media element the context menu was invoked on.
15592
+ */
15593
+ mediaFlags: MediaFlags;
15594
+ /**
15595
+ * These flags indicate whether the renderer believes it is able to perform the
15596
+ * corresponding action.
15597
+ */
15598
+ editFlags: EditFlags;
15599
+ }
15600
+
15345
15601
  interface WebPreferences {
15346
15602
  /**
15347
15603
  * Whether to enable DevTools. If it is set to `false`, can not use
@@ -15683,6 +15939,7 @@ declare namespace Electron {
15683
15939
  type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
15684
15940
  type Config = Electron.Config;
15685
15941
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
15942
+ type ContextMenuEvent = Electron.ContextMenuEvent;
15686
15943
  type ContextMenuParams = Electron.ContextMenuParams;
15687
15944
  type CookiesGetFilter = Electron.CookiesGetFilter;
15688
15945
  type CookiesSetDetails = Electron.CookiesSetDetails;
@@ -15692,6 +15949,7 @@ declare namespace Electron {
15692
15949
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
15693
15950
  type Data = Electron.Data;
15694
15951
  type Details = Electron.Details;
15952
+ type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
15695
15953
  type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
15696
15954
  type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
15697
15955
  type DidFailLoadEvent = Electron.DidFailLoadEvent;
@@ -15712,6 +15970,8 @@ declare namespace Electron {
15712
15970
  type HandlerDetails = Electron.HandlerDetails;
15713
15971
  type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
15714
15972
  type HeapStatistics = Electron.HeapStatistics;
15973
+ type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
15974
+ type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
15715
15975
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
15716
15976
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
15717
15977
  type Info = Electron.Info;
@@ -15774,6 +16034,7 @@ declare namespace Electron {
15774
16034
  type SaveDialogOptions = Electron.SaveDialogOptions;
15775
16035
  type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
15776
16036
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
16037
+ type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
15777
16038
  type Settings = Electron.Settings;
15778
16039
  type SourcesOptions = Electron.SourcesOptions;
15779
16040
  type SSLConfigConfig = Electron.SSLConfigConfig;
@@ -15806,6 +16067,7 @@ declare namespace Electron {
15806
16067
  type Margins = Electron.Margins;
15807
16068
  type MediaFlags = Electron.MediaFlags;
15808
16069
  type PageRanges = Electron.PageRanges;
16070
+ type Params = Electron.Params;
15809
16071
  type WebPreferences = Electron.WebPreferences;
15810
16072
  type DefaultFontFamily = Electron.DefaultFontFamily;
15811
16073
  type BluetoothDevice = Electron.BluetoothDevice;
@@ -15823,6 +16085,7 @@ declare namespace Electron {
15823
16085
  type FileFilter = Electron.FileFilter;
15824
16086
  type FilePathWithHeaders = Electron.FilePathWithHeaders;
15825
16087
  type GPUFeatureStatus = Electron.GPUFeatureStatus;
16088
+ type HIDDevice = Electron.HIDDevice;
15826
16089
  type InputEvent = Electron.InputEvent;
15827
16090
  type IOCounters = Electron.IOCounters;
15828
16091
  type IpcMainEvent = Electron.IpcMainEvent;
@@ -15944,6 +16207,7 @@ declare namespace Electron {
15944
16207
  type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
15945
16208
  type Config = Electron.Config;
15946
16209
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
16210
+ type ContextMenuEvent = Electron.ContextMenuEvent;
15947
16211
  type ContextMenuParams = Electron.ContextMenuParams;
15948
16212
  type CookiesGetFilter = Electron.CookiesGetFilter;
15949
16213
  type CookiesSetDetails = Electron.CookiesSetDetails;
@@ -15953,6 +16217,7 @@ declare namespace Electron {
15953
16217
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
15954
16218
  type Data = Electron.Data;
15955
16219
  type Details = Electron.Details;
16220
+ type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
15956
16221
  type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
15957
16222
  type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
15958
16223
  type DidFailLoadEvent = Electron.DidFailLoadEvent;
@@ -15973,6 +16238,8 @@ declare namespace Electron {
15973
16238
  type HandlerDetails = Electron.HandlerDetails;
15974
16239
  type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
15975
16240
  type HeapStatistics = Electron.HeapStatistics;
16241
+ type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
16242
+ type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
15976
16243
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
15977
16244
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
15978
16245
  type Info = Electron.Info;
@@ -16035,6 +16302,7 @@ declare namespace Electron {
16035
16302
  type SaveDialogOptions = Electron.SaveDialogOptions;
16036
16303
  type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
16037
16304
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
16305
+ type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
16038
16306
  type Settings = Electron.Settings;
16039
16307
  type SourcesOptions = Electron.SourcesOptions;
16040
16308
  type SSLConfigConfig = Electron.SSLConfigConfig;
@@ -16067,6 +16335,7 @@ declare namespace Electron {
16067
16335
  type Margins = Electron.Margins;
16068
16336
  type MediaFlags = Electron.MediaFlags;
16069
16337
  type PageRanges = Electron.PageRanges;
16338
+ type Params = Electron.Params;
16070
16339
  type WebPreferences = Electron.WebPreferences;
16071
16340
  type DefaultFontFamily = Electron.DefaultFontFamily;
16072
16341
  type BluetoothDevice = Electron.BluetoothDevice;
@@ -16084,6 +16353,7 @@ declare namespace Electron {
16084
16353
  type FileFilter = Electron.FileFilter;
16085
16354
  type FilePathWithHeaders = Electron.FilePathWithHeaders;
16086
16355
  type GPUFeatureStatus = Electron.GPUFeatureStatus;
16356
+ type HIDDevice = Electron.HIDDevice;
16087
16357
  type InputEvent = Electron.InputEvent;
16088
16358
  type IOCounters = Electron.IOCounters;
16089
16359
  type IpcMainEvent = Electron.IpcMainEvent;
@@ -16157,6 +16427,7 @@ declare namespace Electron {
16157
16427
  type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
16158
16428
  type Config = Electron.Config;
16159
16429
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
16430
+ type ContextMenuEvent = Electron.ContextMenuEvent;
16160
16431
  type ContextMenuParams = Electron.ContextMenuParams;
16161
16432
  type CookiesGetFilter = Electron.CookiesGetFilter;
16162
16433
  type CookiesSetDetails = Electron.CookiesSetDetails;
@@ -16166,6 +16437,7 @@ declare namespace Electron {
16166
16437
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
16167
16438
  type Data = Electron.Data;
16168
16439
  type Details = Electron.Details;
16440
+ type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
16169
16441
  type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
16170
16442
  type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
16171
16443
  type DidFailLoadEvent = Electron.DidFailLoadEvent;
@@ -16186,6 +16458,8 @@ declare namespace Electron {
16186
16458
  type HandlerDetails = Electron.HandlerDetails;
16187
16459
  type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
16188
16460
  type HeapStatistics = Electron.HeapStatistics;
16461
+ type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
16462
+ type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
16189
16463
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
16190
16464
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
16191
16465
  type Info = Electron.Info;
@@ -16248,6 +16522,7 @@ declare namespace Electron {
16248
16522
  type SaveDialogOptions = Electron.SaveDialogOptions;
16249
16523
  type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
16250
16524
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
16525
+ type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
16251
16526
  type Settings = Electron.Settings;
16252
16527
  type SourcesOptions = Electron.SourcesOptions;
16253
16528
  type SSLConfigConfig = Electron.SSLConfigConfig;
@@ -16280,6 +16555,7 @@ declare namespace Electron {
16280
16555
  type Margins = Electron.Margins;
16281
16556
  type MediaFlags = Electron.MediaFlags;
16282
16557
  type PageRanges = Electron.PageRanges;
16558
+ type Params = Electron.Params;
16283
16559
  type WebPreferences = Electron.WebPreferences;
16284
16560
  type DefaultFontFamily = Electron.DefaultFontFamily;
16285
16561
  type BluetoothDevice = Electron.BluetoothDevice;
@@ -16297,6 +16573,7 @@ declare namespace Electron {
16297
16573
  type FileFilter = Electron.FileFilter;
16298
16574
  type FilePathWithHeaders = Electron.FilePathWithHeaders;
16299
16575
  type GPUFeatureStatus = Electron.GPUFeatureStatus;
16576
+ type HIDDevice = Electron.HIDDevice;
16300
16577
  type InputEvent = Electron.InputEvent;
16301
16578
  type IOCounters = Electron.IOCounters;
16302
16579
  type IpcMainEvent = Electron.IpcMainEvent;
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "14.0.2",
19
+ "version": "14.2.1",
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",