Skip to content

Commit

Permalink
Upgrade to electron v32.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Sep 9, 2024
1 parent 55ccc7c commit 5fe4e27
Show file tree
Hide file tree
Showing 16 changed files with 392 additions and 392 deletions.
14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"start": "electron ."
},
"devDependencies": {
"electron": "v32.0.1"
"electron": "v32.0.2"
}
}
708 changes: 354 additions & 354 deletions electron-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"description": "Type definitions for the electron framework",
"releasenote": "See CHANGELOG",
"version": "32.0.1",
"version": "32.0.2",
"contributors": [
"tong",
"fponticelli"
Expand Down
17 changes: 17 additions & 0 deletions src/electron/BaseWindowConstructorOptions.hx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,23 @@ typedef BaseWindowConstructorOptions = {
**/
@:optional
var titleBarStyle : String;
/**
When using a frameless window in conjunction with `win.setWindowButtonVisibility(true)` on macOS or using a `titleBarStyle` so that the standard window controls ("traffic lights" on macOS) are visible, this property enables the Window Controls Overlay JavaScript APIs and CSS Environment Variables. Specifying `true` will result in an overlay with default system colors. Default is `false`.
**/
@:optional
var titleBarOverlay : haxe.extern.EitherType<{ /**
The CSS color of the Window Controls Overlay when enabled. Default is the system color.
**/
@:optional
var color : String; /**
The CSS color of the symbols on the Window Controls Overlay when enabled. Default is the system color.
**/
@:optional
var symbolColor : String; /**
The height of the title bar and Window Controls Overlay in pixels. Default is system height.
**/
@:optional
var height : Int; }, Bool>;
/**
Set a custom position for the traffic light buttons in frameless windows.
**/
Expand Down
17 changes: 0 additions & 17 deletions src/electron/BrowserWindowConstructorOptions.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,4 @@ typedef BrowserWindowConstructorOptions = {
**/
@:optional
var paintWhenInitiallyHidden : Bool;
/**
When using a frameless window in conjunction with `win.setWindowButtonVisibility(true)` on macOS or using a `titleBarStyle` so that the standard window controls ("traffic lights" on macOS) are visible, this property enables the Window Controls Overlay JavaScript APIs and CSS Environment Variables. Specifying `true` will result in an overlay with default system colors. Default is `false`.
**/
@:optional
var titleBarOverlay : haxe.extern.EitherType<{ /**
The CSS color of the Window Controls Overlay when enabled. Default is the system color.
**/
@:optional
var color : String; /**
The CSS color of the symbols on the Window Controls Overlay when enabled. Default is the system color.
**/
@:optional
var symbolColor : String; /**
The height of the title bar and Window Controls Overlay in pixels. Default is system height.
**/
@:optional
var height : Int; }, Bool>;
}
2 changes: 1 addition & 1 deletion src/electron/WindowOpenHandlerResponse.hx
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ typedef WindowOpenHandlerResponse = {
If specified, will be called instead of `new BrowserWindow` to create the new child window and event `did-create-window` will not be emitted. Constructed child window should use passed `options` object. This can be used for example to have the new window open as a BrowserView instead of in a separate window.
**/
@:optional
var createWindow : Any;
var createWindow : electron.BrowserWindowConstructorOptions;
}
4 changes: 2 additions & 2 deletions src/electron/main/MenuItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package electron.main;
A `Function` that is fired when the MenuItem receives a click event. It can be called with `menuItem.click(event, focusedWindow, focusedWebContents)`.
* `event` KeyboardEvent
* `focusedWindow` BrowserWindow
* `focusedWindow` BaseWindow
* `focusedWebContents` WebContents
**/
var click : haxe.Constraints.Function;
Expand Down Expand Up @@ -101,7 +101,7 @@ package electron.main;
**/
var menu : electron.main.Menu;
function new(options:{ /**
Will be called with `click(menuItem, browserWindow, event)` when the menu item is clicked.
Will be called with `click(menuItem, window, event)` when the menu item is clicked.
**/
@:optional
var click : haxe.Constraints.Function; /**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/Notification.hx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ package electron.main;
**/
@:optional
var silent : Bool; /**
An icon to use in the notification.
An icon to use in the notification. If a string is passed, it must be a valid path to a local icon file.
**/
@:optional
var icon : haxe.extern.EitherType<String, electron.NativeImage>; /**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ package electron.main;
Clears various different types of data.
This method clears more types of data and is more thourough than the `clearStorageData` method.
This method clears more types of data and is more thorough than the `clearStorageData` method.
**Note:** Cookies are stored at a broader scope than origins. When removing cookies and filtering by `origins` (or `excludeOrigins`), the cookies will be removed at the registrable domain level. For example, clearing cookies for the origin `https://really.specific.origin.example.com/` will end up clearing all cookies for `example.com`. Clearing cookies for the origin `https://my.website.example.co.uk/` will end up clearing all cookies for `example.co.uk`.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/TouchBarScrubber.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package electron.main;
**/
var selectedStyle : String;
/**
A `string` representing the style that selected items in the scrubber should have. This style is overlayed on top of the scrubber item instead of being placed behind it. Updating this value immediately updates the control in the touch bar. Possible values:
A `string` representing the style that selected items in the scrubber should have. This style is overlaid on top of the scrubber item instead of being placed behind it. Updating this value immediately updates the control in the touch bar. Possible values:
* `background` - Maps to `[NSScrubberSelectionStyle roundedBackgroundStyle]`.
* `outline` - Maps to `[NSScrubberSelectionStyle outlineOverlayStyle]`.
Expand Down
4 changes: 2 additions & 2 deletions src/electron/remote/MenuItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package electron.remote;
A `Function` that is fired when the MenuItem receives a click event. It can be called with `menuItem.click(event, focusedWindow, focusedWebContents)`.
* `event` KeyboardEvent
* `focusedWindow` BrowserWindow
* `focusedWindow` BaseWindow
* `focusedWebContents` WebContents
**/
var click : haxe.Constraints.Function;
Expand Down Expand Up @@ -101,7 +101,7 @@ package electron.remote;
**/
var menu : electron.remote.Menu;
function new(options:{ /**
Will be called with `click(menuItem, browserWindow, event)` when the menu item is clicked.
Will be called with `click(menuItem, window, event)` when the menu item is clicked.
**/
@:optional
var click : haxe.Constraints.Function; /**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/remote/Notification.hx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ package electron.remote;
**/
@:optional
var silent : Bool; /**
An icon to use in the notification.
An icon to use in the notification. If a string is passed, it must be a valid path to a local icon file.
**/
@:optional
var icon : haxe.extern.EitherType<String, electron.NativeImage>; /**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/remote/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ package electron.remote;
Clears various different types of data.
This method clears more types of data and is more thourough than the `clearStorageData` method.
This method clears more types of data and is more thorough than the `clearStorageData` method.
**Note:** Cookies are stored at a broader scope than origins. When removing cookies and filtering by `origins` (or `excludeOrigins`), the cookies will be removed at the registrable domain level. For example, clearing cookies for the origin `https://really.specific.origin.example.com/` will end up clearing all cookies for `example.com`. Clearing cookies for the origin `https://my.website.example.co.uk/` will end up clearing all cookies for `example.co.uk`.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/remote/TouchBarScrubber.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package electron.remote;
**/
var selectedStyle : String;
/**
A `string` representing the style that selected items in the scrubber should have. This style is overlayed on top of the scrubber item instead of being placed behind it. Updating this value immediately updates the control in the touch bar. Possible values:
A `string` representing the style that selected items in the scrubber should have. This style is overlaid on top of the scrubber item instead of being placed behind it. Updating this value immediately updates the control in the touch bar. Possible values:
* `background` - Maps to `[NSScrubberSelectionStyle roundedBackgroundStyle]`.
* `outline` - Maps to `[NSScrubberSelectionStyle outlineOverlayStyle]`.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/renderer/WebUtils.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package electron.renderer;
/**
The file system path that this `File` object points to. In the case where the object passed in is not a `File` object an exception is thrown. In the case where the File object passed in was constructed in JS and is not backed by a file on disk an empty string is returned.
This method superceded the previous augmentation to the `File` object with the `path` property. An example is included below.
This method superseded the previous augmentation to the `File` object with the `path` property. An example is included below.
**/
static function getPathForFile(file:File):String;
}
Expand Down

0 comments on commit 5fe4e27

Please sign in to comment.