Commit Graph

1746 Commits

Author SHA1 Message Date
Oscar Beaumont
8a71858eb2
feat: configure a default runtime for menu and tray icon types (#9630)
* Use `tauri::Wry` as default runtime for menu types

* do it properly

* changes

* same for tray icon

* change file

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-05-02 00:44:15 +03:00
Oscar Beaumont
bf2635ab62
fix(plugin): improve error for missing links property (#9632)
* Better error

* Improve errors
2024-05-02 00:40:31 +03:00
Fabian-Lars
b0421cbb21
chore: rebuild bundle.global.js (#9625) 2024-04-30 21:30:09 +02:00
github-actions[bot]
d5775ed6a4
apply version updates (#9617)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-30 19:31:34 +02:00
Fabian-Lars
007af10d43
Partially Revert "Apply Version Updates From Current Changes (#9551)" (#9620)
This partially reverts commit 108ab9094a.
2024-04-30 19:23:26 +03:00
Tony
6c047aee14
fix(windows): hide windows on cleanup (#9612)
* Hide windows on cleanup

* Add change file

* Move hide window to a loop above
2024-04-30 18:37:17 +03:00
github-actions[bot]
108ab9094a
Apply Version Updates From Current Changes (#9551)
* apply version updates

* update wry to 0.39.3 to prevent dependency version mismatches

---------

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 16:22:46 +02:00
renovate[bot]
380c507d38
chore(deps) Update Rust crate heck to 0.5 (dev) (#9555)
* chore(deps) Update Rust crate heck to 0.5

* let's help renovate out :)

* remove unicode feature

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 14:52:50 +02: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
Lucas Fernandes Nogueira
eff778b8f0
fix(core): run plugin init script in a separate context (#9571) 2024-04-28 11:15:29 -03:00
Lucas Fernandes Nogueira
98101cb17f
fix(core): allow any headers on custom protocol IPC (#9561) 2024-04-25 01:00:03 +02:00
Oscar Beaumont
12b4159bda
feat(core): add Specta integration (#9392) 2024-04-23 04:29:39 +02:00
github-actions[bot]
ac9bfada4a
Apply Version Updates From Current Changes (#9548)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 17:09:51 -03:00
Amr Bashir
e22e61af6c
Revert "Apply Version Updates From Current Changes (#9489)" (#9549)
This reverts commit 198f11ae7b.
2024-04-22 15:42:46 -03:00
github-actions[bot]
198f11ae7b
Apply Version Updates From Current Changes (#9489)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-22 19:02:28 +02:00
Amr Bashir
07f2af0002
chore(deps): update to windows-rs 0.56 (#9493)
* chore(deps): update to windows-rs 0.56

* lockfile

* use latest versions

* update lock file
2024-04-22 18:33:16 +02:00
Tony
a1e0e268f0
fix(utils): temp permission file names on windows (#9477)
* Replace `tauri:` with `tauri-`

* Add change file

* Apply suggestions from code review

* patch -> "patch:bug"

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-22 11:18:16 -03:00
Lucas Fernandes Nogueira
35b25f7e5c
fix: optional chaining is not supported on older webviews (#9530) 2024-04-22 10:27:45 -03:00
Amr Bashir
70c51371e0
feat(core): add isTauri (#9539)
* feat(core): add `isTauri`

* generate api
2024-04-22 15:07:11 +02: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
Graham Held
cf615e8e4d
Set internal message ID to nextId after handling pending messages (#9463)
* Set internal message ID to nextId after handling pending messages

* add change file

* update bundle

* update reference.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-21 11:21:34 -03:00
Amr Bashir
88c0ad9cf5
fix(build): check if permissions dir exists before adding cargo:rerun-if-changed (#9471)
closes #9062
2024-04-21 11:04:46 -03:00
Tony
daf018e4f5
fix(core): clear resource table in cleanup_before_exit (#9505)
* Clear resource table in `cleanup_before_exit`

* Add change file

* Update .changes/cleanup-resource-table.md
2024-04-19 05:50:12 +02:00
Fabian-Lars
e64b8f1dce
chore: merge remote-tracking branch '1.x' into v2 (#9479)
* chore: port PR template from `dev` branch (#9004)

* fix(runtime-wry): avoid panic during clipboard initialization on wayland (#9003)

closes #8964

* ci: downgrade thread_local to 1.1.7 in msrv list (#9012)

* Apply Version Updates From Current Changes (v1) (#9013)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(bundler): escape potentially problematic strings in an XML (#9040)

* fix(bundler): escape potentially problematic strings in an XML (#9030)

- replace characters invalid in XML with their escaped form to properly bundle resources with such characters in their pathnames.

* change file

* fix(cli): use `matched_path_or_any_parents` when checking if a file is ignored (#8903)

* fix: taurignore ignoreing folders not working for watch

* docs: add to changes

* fix: panic: path is expected to be under the root

* Update taurignore-ignoring-folders-not-working-for-watch.md

* Update taurignore-ignoring-folders-not-working-for-watch.md

* fix(cli): migrate to stable features of `log` crate (#9119)

* fix(cli): migrate to stable features of `log` crate

* to_cow_str

* Apply Version Updates From Current Changes (v1) (#9074)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(core/path): remove suffix in basename only once (#9166)

* fix(core/path): remove suffix in basename only once

ref: #9064

* Update tooling/api/src/path.ts

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* fix(cli): Clone Options struct after mutating it. (#9188)

* fix(bundler): Fix nsis resource paths on non-windows build systems. (#9281)

* fix(bundler): Fix nsis resource paths on non-windows build systems.

* remove leftover from alternative

* fix(bundler/nsis): Don't use /R flag on installation dir (#9282)

* fix(cli): upgrade heck to better support Chinese/Japanese prodcut name on Linux (#9298)

* chore: fix clippy false positive (#9329)

* fix(cli/info): fix crash when checking node version (#9411)

closes #9396

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: bifs <127015052+bifs@users.noreply.github.com>
Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
2024-04-18 05:21:21 +02:00
Amr Bashir
a07b513201
fix(core): add permission for window.start_resize_dragging (#9490)
closes #9485
2024-04-17 18:25:35 +02:00
Jingyu
3fe9ae8520
docs(webview): fix doc typo in webview window builder (#9476)
* fix(webview): typo in webview window builder document

* Update core/tauri/src/webview/webview_window.rs

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-04-16 12:34:09 +02:00
Marc Espin
55bf4eb51c
fix: Remove old links and updated CONTRIBUTING.md (#9472)
* fix: Remove old links update CONTRIBUTING.md

* update
2024-04-16 00:12:33 +02:00
github-actions[bot]
535691a711
Apply Version Updates From Current Changes (#9348)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-15 09:32:40 -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
Amr Bashir
c8a82ad223
fix(core): fix deadlock when using resources_table in menu/image/tray plugins (#9379)
* fix(core): fix deadlock when using resources_table in menu/image/tray plugins

closes #9369

* document the resources_table requirement
2024-04-15 12:15:37 +02:00
Amr Bashir
48a7a78f80
fix(api): fix dpi types serialization (#9376)
* fix(api): fix dpi types serialization

closes #9370

* Update api-position-size-args.md

* lint

* setMinSize and setMaxSize

* Update api-position-size-args.md
2024-04-15 12:04:20 +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
Fabian-Lars
f1674fce6d
feat(core/windows): Convert UNC paths to simple paths in JS apis. (#9420) 2024-04-15 11:41:31 +02:00
Kornel
73c1c2d338
fix(cli/migrate): tolerate non-UTF-8 in migration (#9457) 2024-04-15 11:39:53 +02:00
Lucas Fernandes Nogueira
32b213399f
fix(core): deadlock on window create (#9429)
* fix(core): deadlock on window create

* Update mod.rs

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-04-10 10:49:59 -03:00
Tony
4973d73a23
feat: Add zoom hotkey polyfill for non windows platforms (#9386) 2024-04-08 22:42:51 +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
Mariotaku
36b4c12497
feat(bundler): added provides, conflicts and replaces for deb and rpm (#9331)
* feat(bundler): added provides, conflicts and replaces for deb and rpm packages

* added change file

* update .changes/deb-rpm-provides-conflicts-replaces.md according to review

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

* inlined provides/conflicts/replaces(obsoletes) variables

* fmt
2024-04-03 18:02:56 +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
Fabian-Lars
6251645acf
fix(core): Update webview metadata on window close (#9360)
* fix(core): Update webview metadata on window close

* make it multiwebview friendlier

* support webview.close() too -> THIS IS STILL MISSING AN EVENT LIKE tauri://destroyed !!!
2024-04-03 17:18:13 +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
github-actions[bot]
1a58cdf2ed
Apply Version Updates From Current Changes (#9279)
* apply version updates

* fix bundler version

* fix bundler version

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 15:15:12 -03:00
Amr Bashir
284eca9ef2
refactor(core): scope JS resources to the webview (#9272)
* refactor(core): scope JS resources to the webview

* clippy

* change files

* swap args order

* more clippy

* just add them on each type

* clippy

* macro docs

* Update mod.rs

* use random rid

* revert resource table arg change

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 14:41:47 -03: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
Lucas Fernandes Nogueira
a804a70a7a
feat(isolation): script now removes itself to hide key from DOM (#9328) 2024-04-01 12:43:29 -03:00
Lucas Fernandes Nogueira
7c334cb185
feat(isolation): make encrypt key unextractable (#9327) 2024-04-01 12:43:19 -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
Vladimir Stoilov
259d845290
feat(bundler): add post/pre install/remove scripts for linux deb and rpm packages (#9209)
* feat(cli/add): add post/pre install/remove scripts for linux

* fix(cli): clippy errors

* fix(cli): remove script struct from deb/rpm bundle

* change files and aliases
2024-03-28 05:13:26 +02:00
Fabian-Lars
c33f6e6cf3
fix(core): Announce new webviews and windows (#9211)
* fix(core): Announce new webviews and windows

fixes #9200
fixes #8144

* fix js import in example

* emit created events to all listeners.

* remove duplicate event
2024-03-28 02:23:19 +02:00