tauri@2.0.0-alpha.11
Ce contenu n’est pas encore disponible dans votre langue.
New Features
4db363a0
(#6589) Addedvisible_on_all_workspaces
configuration option toWindowBuilder
,Window
, andWindowConfig
.84c41597
(#6394) AddApp::primary_monitor
,App::available_monitors
,AppHandle::primary_monitor
, andAppHandle::available_monitors
2a000e15
(#7235) AddedWindow::navigate
.3b98141a
(#3736) Added support to file associations.3a2c3e74
(#7306) AddedPluginBuilder::on_navigation
. AddedPlugin::on_navigation
.753900dd
(#7440) ExposeRunEvent::Opened
on macOS and iOS for deep link support.7fb419c3
(#7535) AddApp::cleanup_before_exit
andAppHandle::cleanup_before_exit
to manually call the cleanup logic. You should always exit the tauri app immediately after this function returns and not use any tauri-related APIs.7fb419c3
(#7535) On Linux, addWindow::default_vbox
to get a reference to thegtk::Box
that contains the menu bar and the webview.7fb419c3
(#7535) Addlinux-libxdo
feature flag (disabled by default) to enable linking tolibxdo
which is used to makeCut
,Copy
,Paste
andSelectAll
native menu items work on Linux.7fb419c3
(#7535) On macOS, addWindow::ns_view
to get a pointer to the NSWindow content view.7fb419c3
(#7535) Exposerun_on_main_thread
method onApp
that is similar toAppHandle::run_on_main_thread
.
Enhancements
a5752db9
(#7436) Listen toonNewIntent
and forward it to registered plugins.fbeb5b91
(#7170) AddedChannel::new
allowing communication from a mobile plugin with Rust.fbeb5b91
(#7170) Use custom protocols on the IPC implementation to enhance performance.
Dependencies
- Upgraded to
tauri-runtime@1.0.0-alpha.0
- Upgraded to
tauri-utils@2.0.0-alpha.7
- Upgraded to
tauri-macros@2.0.0-alpha.7
- Upgraded to
tauri-runtime-wry@1.0.0-alpha.0
- Upgraded to
tauri-build@2.0.0-alpha.7
d1a6e2f3
(#7252) Updatestate
to v0.6.
Breaking Changes
-
fd5dc788
(#7352) - Removedtauri::api::file
andtauri::api::dir
modules, usestd::fs
instead.- Removed
tauri::api::version
module, usesemver
crate instead.
- Removed
-
fbeb5b91
(#7170) Movedtauri::api::ipc
totauri::ipc
and refactored all types. -
fbeb5b91
(#7170) Removed thelinux-protocol-headers
feature (now always enabled) and addedlinux-ipc-protocol
. -
7fb419c3
(#7535) ChangedApp::handle
andManager::app_handle
to return a reference to anAppHandle
instead of an owned value. -
7fb419c3
(#7535) The tray icon and menu have received a huge refactor with a lot of breaking changes in order to add new functionalities and improve the DX around using them and here is an overview of the changes:- All menu and tray types are now exported from
tauri::menu
andtauri::tray
modules with new names so make sure to check the new types. - Removed
tauri::Builder::system_tray
, instead you should usetauri::tray::TrayIconBuilder
insidetauri::Builder::setup
hook to create your tray icons. - Changed
tauri::Builder::menu
to be a function to accommodate for new menu changes, you can passetauri::menu::Menu::default
to it to create a default menu. - Renamed
tauri::Context
methodssystem_tray_icon
,tauri::Context::system_tray_icon_mut
andtauri::Context::set_system_tray_icon
totauri::Context::tray_icon
,tauri::Context::tray_icon_mut
andtauri::Context::set_tray_icon
to be consistent with new type names. - Added
RunEvent::MenuEvent
andRunEvent::TrayIconEvent
. - Added
App/AppHandle::set_menu
,App/AppHandle::remove_menu
,App/AppHandle::show_menu
,App/AppHandle::hide_menu
andApp/AppHandle::menu
to access, remove, hide or show the app-wide menu that is used as the global menu on macOS and on all windows that don’t have a specific menu set for it on Windows and Linux. - Added
Window::set_menu
,Window::remove_menu
,Window::show_menu
,Window::hide_menu
,Window::is_menu_visible
andWindow::menu
to access, remove, hide or show the menu on this window. - Added
Window::popup_menu
andWindow::popup_menu_at
to show a context menu on the window at the cursor position or at a specific position. You can also popup a context menu usingpopup
andpopup_at
methods fromContextMenu
trait which is implemented forMenu
andSubmenu
types. - Added
App/AppHandle::tray
,App/AppHandle::tray_by_id
,App/AppHandle::remove_tray
andApp/AppHandle::remove_tray_by_id
to access or remove a registered tray. - Added
WindowBuilder/App/AppHandle::on_menu_event
to register a new menu event handler. - Added
App/AppHandle::on_tray_icon_event
to register a new tray event handler.
- All menu and tray types are now exported from
-
7fb419c3
(#7535) Renamedsystem-tray
feature flag totray-icon
. -
3a2c3e74
(#7306) TheWindow#on_navigation
closure now receives a&Url
argument instead ofUrl
.
© 2024 Tauri Contributors. CC-BY / MIT