Skip to content

Commit

Permalink
Bump pywebview from 5.3.2 to 5.4 (#4283)
Browse files Browse the repository at this point in the history
Bumps [pywebview](https://github.com/r0x0r/pywebview) from 5.3.2 to 5.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/r0x0r/pywebview/releases">pywebview's
releases</a>.</em></p>
<blockquote>
<h2>5.4</h2>
<h3>⚡ Features</h3>
<ul>
<li><code>All</code> A new function for executing Javascript as is
<code>window.run_js(code)</code> without returning a result</li>
<li><code>All</code> New <code>before_load</code> event that is fired
right before pywebview code is injected into the page. The event roughly
corresponds to <code>DOMContentLoaded</code> DOM event.</li>
<li><code>All</code> <code>Screen</code> object now have origin
coordinates as <code>screen.x</code> and <code>screen.y</code></li>
<li><code>EdgeChromium</code> Add remote debugging support via
<code>webview.settings['REMOTE_DEBUGGING_PORT']</code>. Thanks <a
href="https://github.com/Lugribossk"><code>@​Lugribossk</code></a></li>
</ul>
<h3>🚀 Improvements</h3>
<ul>
<li><code>All</code> Implement a <strong>len</strong> method for
<code>Event</code> objects to get a number of event subscribers.</li>
<li><code>All</code> The order of firing of loading events
<code>loading</code>, <code>before_load</code> and <code>loaded</code>
is standardized across the platforms.</li>
<li><code>All</code> <code>Window</code> objects can now be exposed via
JS API</li>
<li><code>All</code> Make <code>webview.settings</code> key
immutable.</li>
<li><code>GTK</code> <code>'undefined'</code>and <code>'null'</code>
string values are no longer translated to None during JS API
serialization.</li>
<li><code>Cocoa</code> Add support for the download attribute on links.
Thanks <a
href="https://github.com/maddyaby"><code>@​maddyaby</code></a>.</li>
<li><code>Cocoa</code> Ignore ssl errors for local HTTP server by
default</li>
<li><code>Cocoa</code> Native Color Picker on MacOS is drawn in the
wrong place <a
href="https://github.com/r0x0r/pywebview/issues/1568">#1568</a>.
Thanks <a
href="https://github.com/maddyaby"><code>@​maddyaby</code></a></li>
<li><code>Cocoa</code> Improved support for py2app <a
href="https://github.com/r0x0r/pywebview/issues/1565">#1565</a></li>
<li><code>EdgeChromium</code> Update webview2 binaries to
1.0.2957.106</li>
</ul>
<h4>🐞 Bug fixes</h4>
<ul>
<li><code>HTTP</code> Fix loading local urls with a hash served by local
HTTP server.</li>
<li><code>EdgeChromium</code> Delete browser data in private mode on
program exit</li>
<li><code>Cocoa</code> Fix typo in <code>abortModal</code> call. Thanks
<a href="https://github.com/simonrob"><code>@​simonrob</code></a></li>
<li><code>Cocoa</code> Fix missing menu</li>
<li><code>Cocoa</code> Fix window close termination when pressing Cmd+Q.
Thanks <a
href="https://github.com/mikeylemmon"><code>@​mikeylemmon</code></a>.</li>
<li><code>Cocoa</code> Fix missing <code>get_active_window</code>.
Thanks <a
href="https://github.com/sardination"><code>@​sardination</code></a></li>
<li><code>Windows</code> Fix window placing in certain monitor layouts
when assigning to a specific monitor.</li>
<li><code>Windows</code> Fix a short blank when closing the window.
Thanks <a
href="https://github.com/godcop"><code>@​godcop</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/r0x0r/pywebview/blob/master/docs/CHANGELOG.md">pywebview's
changelog</a>.</em></p>
<blockquote>
<h2>5.4</h2>
<p><em>Released 27/01/2025</em></p>
<h3>⚡ Features</h3>
<ul>
<li><code>All</code> A new function for executing Javascript as is
<code>window.run_js(code)</code> without returning a result</li>
<li><code>All</code> New <code>before_load</code> event that is fired
right before pywebview code is injected into the page. The event roughly
corresponds to <code>DOMContentLoaded</code> DOM event.</li>
<li><code>All</code> <code>Screen</code> object now have origin
coordinates as <code>screen.x</code> and <code>screen.y</code></li>
<li><code>EdgeChromium</code> Add remote debugging support via
<code>webview.settings['REMOTE_DEBUGGING_PORT']</code>. Thanks <a
href="https://github.com/Lugribossk"><code>@​Lugribossk</code></a></li>
</ul>
<h3>🚀 Improvements</h3>
<ul>
<li><code>All</code> Implement a <strong>len</strong> method for
<code>Event</code> objects to get a number of event subscribers.</li>
<li><code>All</code> The order of firing of loading events
<code>loading</code>, <code>before_load</code> and <code>loaded</code>
is standardized across the platforms.</li>
<li><code>All</code> <code>Window</code> objects can now be exposed via
JS API</li>
<li><code>All</code> Make <code>webview.settings</code> key
immutable.</li>
<li><code>GTK</code> <code>'undefined'</code>and <code>'null'</code>
string values are no longer translated to None during JS API
serialization.</li>
<li><code>Cocoa</code> Add support for the download attribute on links.
Thanks <a
href="https://github.com/maddyaby"><code>@​maddyaby</code></a>.</li>
<li><code>Cocoa</code> Ignore ssl errors for local HTTP server by
default</li>
<li><code>Cocoa</code> Native Color Picker on MacOS is drawn in the
wrong place <a
href="https://github.com/r0x0r/pywebview/issues/1568">#1568</a>.
Thanks <a
href="https://github.com/maddyaby"><code>@​maddyaby</code></a></li>
<li><code>Cocoa</code> Improved support for py2app <a
href="https://github.com/r0x0r/pywebview/issues/1565">#1565</a></li>
<li><code>EdgeChromium</code> Update webview2 binaries to
1.0.2957.106</li>
</ul>
<h4>🐞 Bug fixes</h4>
<ul>
<li><code>HTTP</code> Fix loading local urls with a hash served by local
HTTP server.</li>
<li><code>EdgeChromium</code> Delete browser data in private mode on
program exit</li>
<li><code>Cocoa</code> Fix typo in <code>abortModal</code> call. Thanks
<a href="https://github.com/simonrob"><code>@​simonrob</code></a></li>
<li><code>Cocoa</code> Fix missing menu</li>
<li><code>Cocoa</code> Fix window close termination when pressing Cmd+Q.
Thanks <a
href="https://github.com/mikeylemmon"><code>@​mikeylemmon</code></a>.</li>
<li><code>Cocoa</code> Fix missing <code>get_active_window</code>.
Thanks <a
href="https://github.com/sardination"><code>@​sardination</code></a></li>
<li><code>Windows</code> Fix window placing in certain monitor layouts
when assigning to a specific monitor.</li>
<li><code>Windows</code> Fix a short blank when closing the window.
Thanks <a
href="https://github.com/godcop"><code>@​godcop</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/r0x0r/pywebview/commit/7a79d696f02fdd59d8a3022bb544b86cd61b7989"><code>7a79d69</code></a>
Update README</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/695f639376498f7b6edbb2f461e2bf2522f717e2"><code>695f639</code></a>
Update webview2 binaries</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/2c44d7b08e87066ca95cb560bd1a58bfabc2b199"><code>2c44d7b</code></a>
Update changelog</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/6775290d81c29ddfc5af53c79c9250e7b50766ad"><code>6775290</code></a>
Docs improvements</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/52f9b91190c1543fdeb48809600290b2d7a43be0"><code>52f9b91</code></a>
[QT] Fix screen</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/70331542b83e0bb5d772273ebd187ad535ada10a"><code>7033154</code></a>
Add features</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/4063546d8131137d96eb48ef6bd5cbc6c3a11b52"><code>4063546</code></a>
add screen info</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/f000e3fbaa8315c4d44efa7d24b88a199ee989fe"><code>f000e3f</code></a>
Update dependencies</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/89098c5e382a18bab8d97d59e097a834003040ed"><code>89098c5</code></a>
Update docs</li>
<li><a
href="https://github.com/r0x0r/pywebview/commit/93314f90810c575a733f3a50556605c24d9d7b87"><code>93314f9</code></a>
[Winforms] Fix window placing on a screen</li>
<li>Additional commits viewable in <a
href="https://github.com/r0x0r/pywebview/compare/5.3.2...5.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pywebview&package-manager=pip&previous-version=5.3.2&new-version=5.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Falko Schindler <falko@zauberzeug.com>
  • Loading branch information
dependabot[bot] and falkoschindler authored Jan 28, 2025
1 parent cbd59a4 commit d8407a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion nicegui/native/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ async def get_position(self) -> Tuple[int, int]:
def load_url(self, url: str) -> None:
self._send(url)

def load_html(self, content: str, base_uri: str = ...) -> None: # type: ignore
def load_html(self, content: str, base_uri: str = ...) -> None: # type: ignore # pylint: disable=arguments-renamed
# DEPRECATED: `content` will be renamed to `html` in NiceGUI 3.0 to match the parameter name in pywebview>=5.4
self._send(content, base_uri)

def load_css(self, stylesheet: str) -> None:
Expand Down
15 changes: 9 additions & 6 deletions poetry.lock

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

0 comments on commit d8407a7

Please sign in to comment.