From d8407a7cf28d5873528159c987ff6a3fcbd8ed22 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 28 Jan 2025 09:20:39 +0100
Subject: [PATCH] Bump pywebview from 5.3.2 to 5.4 (#4283)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [pywebview](https://github.com/r0x0r/pywebview) from 5.3.2 to 5.4.
Release notes
Sourced from pywebview's
releases.
5.4
⚡ Features
All
A new function for executing Javascript as is
window.run_js(code)
without returning a result
All
New before_load
event that is fired
right before pywebview code is injected into the page. The event roughly
corresponds to DOMContentLoaded
DOM event.
All
Screen
object now have origin
coordinates as screen.x
and screen.y
EdgeChromium
Add remote debugging support via
webview.settings['REMOTE_DEBUGGING_PORT']
. Thanks @Lugribossk
🚀 Improvements
All
Implement a len method for
Event
objects to get a number of event subscribers.
All
The order of firing of loading events
loading
, before_load
and loaded
is standardized across the platforms.
All
Window
objects can now be exposed via
JS API
All
Make webview.settings
key
immutable.
GTK
'undefined'
and 'null'
string values are no longer translated to None during JS API
serialization.
Cocoa
Add support for the download attribute on links.
Thanks @maddyaby
.
Cocoa
Ignore ssl errors for local HTTP server by
default
Cocoa
Native Color Picker on MacOS is drawn in the
wrong place #1568.
Thanks @maddyaby
Cocoa
Improved support for py2app #1565
EdgeChromium
Update webview2 binaries to
1.0.2957.106
🐞 Bug fixes
HTTP
Fix loading local urls with a hash served by local
HTTP server.
EdgeChromium
Delete browser data in private mode on
program exit
Cocoa
Fix typo in abortModal
call. Thanks
@simonrob
Cocoa
Fix missing menu
Cocoa
Fix window close termination when pressing Cmd+Q.
Thanks @mikeylemmon
.
Cocoa
Fix missing get_active_window
.
Thanks @sardination
Windows
Fix window placing in certain monitor layouts
when assigning to a specific monitor.
Windows
Fix a short blank when closing the window.
Thanks @godcop
Changelog
Sourced from pywebview's
changelog.
5.4
Released 27/01/2025
⚡ Features
All
A new function for executing Javascript as is
window.run_js(code)
without returning a result
All
New before_load
event that is fired
right before pywebview code is injected into the page. The event roughly
corresponds to DOMContentLoaded
DOM event.
All
Screen
object now have origin
coordinates as screen.x
and screen.y
EdgeChromium
Add remote debugging support via
webview.settings['REMOTE_DEBUGGING_PORT']
. Thanks @Lugribossk
🚀 Improvements
All
Implement a len method for
Event
objects to get a number of event subscribers.
All
The order of firing of loading events
loading
, before_load
and loaded
is standardized across the platforms.
All
Window
objects can now be exposed via
JS API
All
Make webview.settings
key
immutable.
GTK
'undefined'
and 'null'
string values are no longer translated to None during JS API
serialization.
Cocoa
Add support for the download attribute on links.
Thanks @maddyaby
.
Cocoa
Ignore ssl errors for local HTTP server by
default
Cocoa
Native Color Picker on MacOS is drawn in the
wrong place #1568.
Thanks @maddyaby
Cocoa
Improved support for py2app #1565
EdgeChromium
Update webview2 binaries to
1.0.2957.106
🐞 Bug fixes
HTTP
Fix loading local urls with a hash served by local
HTTP server.
EdgeChromium
Delete browser data in private mode on
program exit
Cocoa
Fix typo in abortModal
call. Thanks
@simonrob
Cocoa
Fix missing menu
Cocoa
Fix window close termination when pressing Cmd+Q.
Thanks @mikeylemmon
.
Cocoa
Fix missing get_active_window
.
Thanks @sardination
Windows
Fix window placing in certain monitor layouts
when assigning to a specific monitor.
Windows
Fix a short blank when closing the window.
Thanks @godcop
Commits
[![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)
---
Dependabot commands and options
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 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)
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Falko Schindler
---
nicegui/native/native.py | 3 ++-
poetry.lock | 15 +++++++++------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/nicegui/native/native.py b/nicegui/native/native.py
index f432f8e81..dcce10451 100644
--- a/nicegui/native/native.py
+++ b/nicegui/native/native.py
@@ -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:
diff --git a/poetry.lock b/poetry.lock
index f546d5e4b..f49b69fd5 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -3097,18 +3097,18 @@ files = [
[[package]]
name = "pywebview"
-version = "5.3.2"
+version = "5.4"
description = "Build GUI for your Python program with JavaScript, HTML, and CSS"
optional = true
python-versions = ">=3.7"
files = [
- {file = "pywebview-5.3.2-py3-none-any.whl", hash = "sha256:55f5a4bcfaa56738f2d6206977bd3d2864784249b0646c67e84f402ba1740000"},
- {file = "pywebview-5.3.2.tar.gz", hash = "sha256:77b88a63e65e12913d269205e9c6d357666d4864826749c738bf432bd3ad23d9"},
+ {file = "pywebview-5.4-py3-none-any.whl", hash = "sha256:0559c47db543556498dd38604a2a0479896c320f86c9b23499b8e580b58b699d"},
+ {file = "pywebview-5.4.tar.gz", hash = "sha256:b5e2c6c7502aaf72a9ae6034daf83785f5fad874fac7fa82bf4fcf854f1f083a"},
]
[package.dependencies]
bottle = "*"
-proxy-tools = "*"
+proxy_tools = "*"
pyobjc-core = {version = "*", markers = "sys_platform == \"darwin\""}
pyobjc-framework-Cocoa = {version = "*", markers = "sys_platform == \"darwin\""}
pyobjc-framework-Quartz = {version = "*", markers = "sys_platform == \"darwin\""}
@@ -3116,7 +3116,7 @@ pyobjc-framework-security = {version = "*", markers = "sys_platform == \"darwin\
pyobjc-framework-WebKit = {version = "*", markers = "sys_platform == \"darwin\""}
pythonnet = {version = "*", markers = "sys_platform == \"win32\""}
QtPy = {version = "*", markers = "sys_platform == \"openbsd6\""}
-typing-extensions = "*"
+typing_extensions = "*"
[package.extras]
android = ["jnius", "kivy"]
@@ -3124,7 +3124,10 @@ cef = ["cefpython3"]
gtk = ["PyGObject", "PyGObject-stubs"]
pyside2 = ["PySide2", "QtPy"]
pyside6 = ["PySide6", "QtPy"]
-qt = ["PyQt5", "QtPy", "pyqtwebengine"]
+qt = ["PyQt6", "PyQt6-WebEngine", "QtPy"]
+qt5 = ["PyQt5", "QtPy", "pyqtwebengine"]
+qt6 = ["PyQt6", "PyQt6-WebEngine", "QtPy"]
+ssl = ["crpytography"]
[[package]]
name = "pyyaml"