chip
eaec5fe9c1
Limit pub exposure in 2.x ( #10158 )
...
* hide `Invoke` from documentation
* make `Asset` non-exhaustive
* make `InvokeRequest` non-exhaustive
* mark `tauri_utils::platform::Target` non-exhaustive
* mark the runtime crates as unstable API
* Revert "mark the runtime crates as unstable API" [skip ci]
This reverts commit b8377222e3
.
* mark the runtime crates as unstable API
* Revert "mark the runtime crates as unstable API" [skip ci]
This reverts commit 9284897644
.
* mark the runtime crates as unstable API
* mark tauri_utils::TitleBarStyle as `#[non_exhaustive]`
* mark `InvokeRequest` as non_exhaustive unless `unstable` feature
* mark config and acl items as unstable
2024-07-31 10:54:43 -03:00
Jason Tsai
9546548ec0
fix(macos): set default title-bar style to Visible
, close #10225 ( #10297 )
...
* fix(macos): set default title-bar style to `Visible`
* chore: add TODO
2024-07-17 06:40:38 +03:00
Amr Bashir
da25f73530
feat: add granular size constraints APIs ( #10242 )
2024-07-17 04:05:56 +03:00
Amr Bashir
261c9f942d
refactor!(core & api): rename drag events for better consistency and clarity ( #10170 )
...
* refacotr!(core & api): rename drag events for better consistency and clarity
* more renames
* remove imports
* fix drag over listen
* update example
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 10:22:06 -03:00
Tony
afb102c59b
fix(runtime-wry): window edge not working after setting resizable false and decorated false dynamically ( #10211 )
...
* Fix window edge not working
after setting resziable false and decorated false dynamically
* Fix example don't go crazy on resize
* cargo fmt
2024-07-08 15:24:55 +03:00
Jason Tsai
7bc6a2a1d6
feat(macos): support changing title bar style dynamically, close #9763 ( #9788 )
2024-07-03 05:36:51 +03:00
Amr Bashir
669b9c6b5a
feat(core): set gtk app id ( #9621 )
...
* feat(core): set gtk app id
ref: https://github.com/tauri-apps/tao/issues/910
* Update core/tauri-runtime-wry/Cargo.toml
* Discard changes to Cargo.lock
2024-06-24 19:20:03 +03:00
Amr Bashir
f29b788110
fix(core/wry): implement resizing natively on Windows ( #9862 )
...
closes #7388
closes #9510
closes #9464
ref #9268
ref #9053
ref #8770
ref #8750
ref #4012
2024-06-05 19:03:22 +03:00
Amr Bashir
276c4b1438
fix(Windows): sync menubar theme with the window theme ( #9832 )
...
* fix(Windows): sync menubar theme with the window theme
ref: https://github.com/tauri-apps/muda/issues/170
* fix moc runtime
* muda 0.13.4
* missing change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 14:23:54 -03:00
Jonas Kruckenberg
9ac930380a
chore: emit rustc-check-cfg for nightly ( #9850 )
...
* fix: emit cargo cfg alias using new syntax too
* Update lib.rs
* fixes for other crates
* clippy
* readd clone
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 13:12:51 -03:00
Siddharth
ec0e092ecd
feat: adds monitor_from_point method ( #9770 )
2024-05-14 19:48:51 +03:00
Lucas Fernandes Nogueira
c0bcc6c0b7
fix(tauri-runtime-wry): window draw span not closing ( #9717 )
...
* fix(tauri-runtime-wry): window draw span not closing
* use .retain
2024-05-09 10:09:41 -03:00
Golden Water
78839b6d2f
feat(macos): Expose tao event Event::Reopen
, closes #3084 ( #4865 )
...
* feat: expose tao event Event::Reopen
* Update .changes/event-reopen.md
* deps(core::tauri-runtime-wry): update tao to 0.28
2024-05-07 21:36:48 +03:00
Amr Bashir
783ef0f2d3
refactor!(core): return result in Webview/WebviewWindow::url
getter ( #9647 )
...
* refactor!(core): return result in `Webview/WebviewWindow::url` getter
* clippy
* Apply suggestions from code review
2024-05-07 17:16:17 +03:00
github-actions[bot]
83acd85788
apply version updates ( #9639 )
...
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-05-07 00:02:54 +02:00
Andrej Mihajlov
07ff78c2de
feat(tray): add TrayIcon::rect
method ( #9615 )
2024-05-03 05:56:54 +03:00
Amr Bashir
477bb8cd4e
feat: add cursor_position
getter ( #9297 )
...
* feat: add `cursor_position` getter
closes #9250
* js api
* Update mod.rs
* fix build on iOS and android
* use existing wrapper
* fmt
* adjust wording
* update docs
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-29 18:28:01 +03:00
Amr Bashir
005fe8ce1e
fix(runtime-wry): apply closable
, maximizable
and minimizable
effects from config ( #9410 )
...
closes #9409
2024-04-21 11:43:30 -03:00
Lucas Fernandes Nogueira
02eaf07872
fix(tauri-runtime-wry): Window::inner_size crash when the window has no webviews ( #9428 )
2024-04-15 13:28:59 +02:00
Tony
f22ea29986
fix(core): revert fix visibility change ( #9246 ) ( #9465 )
...
* Revert "fix(windows): changing WebView visibility on hide/show/minimize (#9246 )"
This reverts commit 5bd47b4467
.
* Change files
* change file
* Update revert-fix-visibility-change.md
2024-04-15 11:50:11 +02:00
Tony
58a7a552d7
feat: Expose webview zoom ( #9378 )
...
* Expose webview zoom
* Add js side support
* Generate bundle script
* Format
* Add change file
2024-04-05 02:10:07 +02:00
Tony
9273d7b379
feat(windows): Expose webview2 zoom hotkeys from wry ( #9352 )
...
* Expose webview2 zoom hotkeys from wry
* Add change file
* Apply suggestions from code review
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* Regenerate schema files
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-04-03 20:14:17 +02:00
Fabian-Lars
2f20fdf1d6
fix(core): compile error for 32bit targets ( #9361 )
...
* fix(core): compile error for 32bit targets
* clippy giving me trust issues
2024-04-03 17:19:21 +02:00
Tony
4c2e7477e6
fix(windows) window center doesn't consider taskbar size ( #9309 )
...
* Fix window center doesn't consider taskbar size
* Clean up
* Add change file
* Calculate title bar size on initial creation
* Comment about not adding in rect.bottom
* Tweak comment
* Fix center existing window a bit too high
* us NSWindow::center on macOS
* skip if undecorated
2024-04-02 20:32:30 +02:00
Lucas Fernandes Nogueira
06833f4fa8
feat(ipc): enhance request URL checks, update wry, refactor file drop ( #9100 )
...
* feat(ipc): enhance request URL checks
* actually use req url
* fix windows, tests
* wry 0.38, file drop refactor
* wry 0.38.1
* adjust for windows [skip ci]
* wry 0.38.2 [skip ci]
* update to latest tao, wry, muda and tray-icon
* change tag
* serde
* use published crates
* downgrade cargo-platform to 0.1.7
---------
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-04-01 13:03:39 -03:00
Tony
5bd47b4467
fix(windows): changing WebView visibility on hide/show/minimize ( #9246 )
...
* Fix not changing visibilty for windows webview
* Add change file
* Move is_visible calculation to the caller
* Rename update to set
2024-03-28 16:25:46 +02:00
Lucas Fernandes Nogueira
e7cd973123
fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236 ( #9276 )
...
* fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236
* lint
2024-03-26 11:38:57 -03:00
Amr Bashir
9aa0d6e959
chore: remove unstable log features & use qualified log::<macro>
path ( #9069 )
...
* chore: remove unstable log features & use qualified `log::<macro>` path
* fmt
* fix build
2024-03-04 21:22:07 +02:00
Lucas Fernandes Nogueira
46de49aaad
feat(core): always use child webviews on the unstable feature ( #9059 )
...
* feat(core): always use child webviews on the unstable feature
* fmt
2024-03-04 16:09:16 -03:00
Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -03:00
Amr Bashir
d1e77acd8d
refactor!(core): remove Icon
enum and add Image
type ( #9011 )
...
* refactor!(core): remove `Icon` enum and add `Image` type
* clippy
* revert api example config change
* Update image.rs
* fix build
* clippy
* change files
* add back removed methods as setter functions
* simplify error message
* Update .changes/runtime-icon-lifetime.md
* Update .changes/ico-featrue-flags.md
* Update core/tauri/src/image.rs
* update api lockfile
* update api ref
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-29 09:05:11 -03:00
Lucas Fernandes Nogueira
222a96b74b
fix(core): multiwebview mode fixes for auto resize, reparent and add_child ( #8999 )
...
* refactor(core): simplify multiwebview impl, fix autoresize
* add_child on main thread
* fix reparent
* revert some changes
* add change files
2024-02-27 17:36:21 -03:00
Lucas Fernandes Nogueira
bc5b5e671a
chore(linux): remove CSP tag on custom protocol response ( #8984 )
2024-02-26 13:08:19 -03:00
Lucas Nogueira
a8a2cb6fb4
fix(tauri-runtime-wry): wrong cfg usage on message handler
2024-02-26 12:30:43 -03:00
Lucas Fernandes Nogueira
cbd9755e09
fix: process logs not showing on iOS ( #8977 )
2024-02-25 17:38:27 -03:00
Philipp Bokatius
6e3bd4b9f8
fix: center window ignores scale factors ( #8942 )
...
* fix: center window ignores scale factors
* chore: add .changes
* clippy
2024-02-22 16:30:27 +02:00
Lucas Fernandes Nogueira
fdcaf935fa
feat(webview): add reparent API ( #8939 )
...
* feat(webview): add reparent API
* fix build
* fix import
* remove cfg
* fix windows
* clone
* clone value
* ()
2024-02-22 08:52:27 -03:00
Lucas Fernandes Nogueira
d75713ac6c
chore(deps): update to wry 0.37 ( #8936 )
2024-02-21 18:45:05 -03:00
Lucas Fernandes Nogueira
361ec37fd4
chore(deps): update to tao 0.26 ( #8932 )
...
* chore(deps): update to tao 0.26
* fallback to crate name
* move struct to runtime
* tests
2024-02-21 11:25:42 -03:00
Lucas Nogueira
c426c0dca2
merge from 1.x
2024-02-19 08:03:05 -03:00
Amr Bashir
77f49ad55e
refactor: optimize undecorated resizing handling ( #8790 )
...
* refactor: optimize undecorated resizing handling
* license
* separate modules
* fix windows
* rename export
* fix export
* same for gtk
* shared hit_test function
* change cursor on drag
* only set cursor on windows
* Revert "only set cursor on windows"
This reverts commit 03294a8430
.
* fix flickering on Windows, change cursor on motion on Linux
* remove changing cursor on move on linux
* fix linux implementation
* clippy
* Windows, on left click only
* prevent on fullscreen, use OS border size on Windows
* fix build
* clippy
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-18 15:56:57 -03:00
Amr Bashir
e52d5e573f
enhance: center window before creation ( #8845 )
...
* enhance: center window before creation
closes #4777
* simplify variable name
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:13:49 -03:00
Amr Bashir
16e550ec15
refactor(core): add webview events ( #8844 )
...
* refactor(core): add webview events
* license header
* clippy
* fix doctests
* more doctests
* fix JS `listen` with `EventTarget::Any`
* typo
* update module import
* clippy
* remove console.log
* fix api example
* fix documentation for emiTo [skip ci]
* actually add RunEvent::WebviewEvent
* update migration
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:07:39 -03:00
Lucas Fernandes Nogueira
2421073576
fix(macos): use BTreeMap for windows map to prevent crash on idle ( #8117 )
...
* fix(macos): use BTreeMap for windows map to prevent crash on idle
* use arc [skip ci]
* add change file
2024-02-14 01:15:21 +02:00
Lucas Fernandes Nogueira
2f55bfecbf
chore(deps): update wry to 0.36 ( #8795 )
...
* chore(deps): update wry to 0.36
* rwh 0.6
* remove raw_window_handle usage
* fix build
* fix windows test
2024-02-07 22:26:29 -03:00
Jingyu
95da1a2747
fix(core): macos #5122 app.runtime panic in app.set_activation_policy ( #8713 )
...
* fix #5122 app.runtime panic in set_activation_policy
* allow setting the policy at runtime
* add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-02 09:40:10 -03:00
time-river
6639a579c7
feat(core): add support to setting a webview proxy, closes #4263 ( #8441 )
...
* feat(wry): support proxy in wry runtime
wry has been supported http/socks5 proxy in
[#1006 ](https://github.com/tauri-apps/wry/pull/1006 ), which has been
merged in [commit
3cc4d79](3cc4d79843
).
This patch aims to support its feature.
Signed-off-by: lin fu <river@vvl.me>
* Apply suggestions from code review
* Apply suggestions from code review
* Update core/tauri-runtime-wry/src/lib.rs
* Update core/tauri/src/window/mod.rs
* add macos-proxy flag
* add change file
* delete file
* update change file
* use macos-14 runner to test core
---------
Signed-off-by: lin fu <river@vvl.me>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-01 08:53:32 -03:00
Amr Bashir
a093682d2d
refactor(core): refactor and fix event system following multiwebview support ( #8621 )
...
* clippy
* refactor(core): refactor and fix event system following multiwebview support
* update documentation
* update js docs
* lint
* clippy
* update multiwindow example [skip ci]
* enhance event tests
* fix example
* Update .changes/tauri-event-after-multiwebview.md
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
* fix tests
* add diagram
* Add `App/AppHandle` even target
* Discard changes to examples/api/src-tauri/tauri-plugin-sample/permissions/schemas/schema.json
* revert accidental changes
* regenerate schemas
* fix doctests
* add helper methods
* update docs
* update api
* update docs [skip ci]
* update docs [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-02-01 08:06:27 -03:00
Amr Bashir
8ce51cec3b
feat: retain cli args when relaunching after update, closes #7402 ( #7718 )
...
* feat: retain cli args when relaunching after update, closes #7402
* 1.61 compatible OsString join
* fix msi impl as well
* fix tests
* Update .changes/tauri-bundler-nsis-args.md
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
* Update .changes/tauri-updater-retain-args.md
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
* more typos
* fix update args
* pull args from Env
* check if not empty
* pin memchr
* Update core.rs
* Update core.rs
* move /args
* fix build
* lint
* more lints
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2024-01-31 16:02:48 -03:00
Lucas Fernandes Nogueira
af61023273
refactor(core)!: Window::close triggers RunEvent::CloseRequested ( #8710 )
...
* refactor(core): Window::close triggers RunEvent::CloseRequested
* Update .changes/runtime-wry-window-close-event.md
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* add destroy [skip ci]
* change files
* delete files
* fix tests
* fix tests
* fix test impl of the close flow
* fmt
* build bundle
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-01-31 14:54:49 -03:00