Typed SIGTERM
b8f86669ab
fix: make isTauri runtime-unrelated ( #13145 )
...
* Update core.ts
* Update core.ts
* Update core.ts
* lint
* build
* fix lint, add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-12 21:30:03 -03:00
Lucas Fernandes Nogueira
ea36294cbc
feat(core): allow changing or disabling the input accessory view on iOS ( #13208 )
...
* feat(core): allow changing or disabling the input accessory view on iOS
needs https://github.com/tauri-apps/wry/pull/1544
* remove unused code
* fix imports
* lint
* fix features
* wry 0.51.2
2025-04-12 21:10:07 -03:00
Tony
b072e2b296
feat(core): add an option for preventing window overflow ( #9687 )
...
* Add an option for preventing window overflow
* Fix shadow counted as part of the width
* Enable prevent overflow by default
* Fix crashing when margin is bigger than screen
* Config file support
* Add to ts type
* Add mac implementation
* Should be let some
* Apply suggestions from code review
Co-authored-by: Jason Tsai <jason@pews.dev >
* checked_sub -> saturating_sub
* Revert license header
* Migrate windows 0.58
* Generate schema
* Fix merge conflict
* Try casting to objc2_app_kit::NSScreen
* Add NSScreen feature
* Use cast instead of as
* fmt
* Deref first
* Wrong unsafe block
* Add change file
* Add serde alias
* More docs
* Disable prevent_overflow by default
since we can't make breaking changes anymore right now
* Remove unused default impl
* Missing pub
* Fix mock_runtime on ios
* Match PreventOverflowMargin's description
* Typo
* Apply suggestions from code review
* Move get_work_area_size to seperate files
* Unused imports
* Add prevent_overflow to WebviewWindowBuilder
* Fix mac compile
* MonitorExt is only for desktop
* Rename to work_area
* Use workarea for linux
* Missing `()`
* Convert size
* Import MonitorExt
* as u32
* Re-build API js
* Fix wrong docs for work_area
* Remove linux platform specific note
* Remove left over linux platform specific note
* Use work area API for center as well
* Fix mobile
* Clean up
* small cleanup
* fix codegen
* update docs
* fix generated
---------
Co-authored-by: Jason Tsai <jason@pews.dev >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-12 13:56:43 -03:00
Tony
66e6325f43
fix: channel callback never cleaned up from window ( #13136 )
...
* Fix channel cb never cleaned up from `window`
* Should be `_{id}`
* Still need to manually impl clone
* Regenerate bundle.global.js
* Remove current_index from ChannelInner
* Move phantom to `Channel`
* `Channel` not `Self`
* Clean up
* Clean up
* Fix missing end quote
* Add change file
* Rename id to index to match js side
* Improve channel speed on small data
* do the same perf check for IPC responses and raw bytes
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-12 10:31:25 -03:00
The1111mp
dd4f13ce4b
feat: add set_dock_visibility method ( #13185 )
...
* feat: add `set_dock_visibility` method
Signed-off-by: The1111mp <The1111mp@outlook.com >
* add api
* retain focus
* fmt
* make SetDockVisibility message conditional (macos only)
* lint
---------
Signed-off-by: The1111mp <The1111mp@outlook.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-11 15:13:07 -03:00
Simon Laux
c1cd0a2ddb
feat: macOS/iOS: add option to disable or enable link previews when building a webview ( #13090 )
...
* macOS/iOS: add option to disable or enable link previews when building a webview (the webkit api has it enabled by default)
- `WebViewBuilderExtDarwin.allow_link_preview(allow_link_preview: bool)`
- `WebViewBuilder.allow_link_preview(allow_link_preview: bool)`
- `WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)`
* also call on iOS
* add api
* fix tests
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-04-11 09:00:34 -03:00
阿豪
dd13728334
enhance(api): add generic parameter to emit and emitTo functions ( #13066 )
...
closes #13059
2025-03-25 05:34:20 +02:00
Lőrik Levente
dea8bbf6cd
docs: Improve BaseDirectory documentation ( #13043 )
...
* add notes
* Add links
* fix fmt
2025-03-21 13:57:34 +02:00
Simon Laux
d8059bad3c
add AppHandle.fetch_data_store_identifiers and AppHandle.remove_data_store ( #12900 )
...
* add `AppHandle::fetch_all_data_store_identifiers` and `AppHandle::remove_data_store`
* make it run on main thread, so you can call the function from any thread and it works.
* changes file
* update signature, move functions to RuntimeHandle
* add api
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-03-13 18:17:22 -03:00
Simon Laux
be2e6b85fe
add Window.is_always_on_top() and WebviewWindow.is_always_on_top() ( #12944 )
...
* add `Window.is_always_on_top()` and `WebviewWindow.is_always_on_top()`
* add api
* fmt
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-03-13 18:02:01 -03:00
tk
3a74dc8f34
fix(api): webview.close wrong command error ( #12935 )
2025-03-10 06:48:02 +02:00
Niladri Adhikary
060de5bbdd
feat(api): implement getIdentifier() to access tauri.conf.json identifier ( #12837 )
...
* feat(api): implement getIdentifier() to access tauri.conf.json identifier
* updated
* chore(api): update change file and rebuild bundle
* Update to @since 2.4.0
* added tag
* Update .changes/get-identifier.md
Co-authored-by: Fabian-Lars <github@fabianlars.de >
---------
Co-authored-by: Fabian-Lars <github@fabianlars.de >
2025-03-02 15:12:33 -03:00
Simon Laux
20c1906912
feat: add WebviewBuilder.disable_javascript and WebviewWindowBuilder.disable_javascript ( #12821 )
...
* feat: add `WebviewBuilder.disable_javascript` and `WebviewWindowBuilder.disable_javascript`
* wry 0.50.3
* add missing config options and API types
* add change file for api
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2025-03-02 14:54:34 -03:00
Kotkoroid
ddc469367a
style: fix Vite and React branding ( #12768 )
2025-02-22 11:30:31 +01:00
Tony
3f680588cd
chore: update prettier to 3.5.1 and enable experimentalOperatorPosition ( #12715 )
2025-02-16 20:34:19 +08:00
Bastian Kistner
a2d36b8c34
feat: disable background throttling ( #12181 )
...
Co-authored-by: Fabian-Lars <github@fabianlars.de >
2025-01-25 22:20:31 +01:00
Tony
a16796a555
fix(api): use array for channel queueing ( #12069 )
2025-01-02 12:19:50 +01:00
Shi Yan
0e2f0b29cd
docs: Add missing info regarding the drop position offset. ( #11406 )
...
* Add missing document regarding the drop position offset.
* Update webview.ts
---------
Co-authored-by: Fabian-Lars <github@fabianlars.de >
2024-12-02 20:40:56 +01:00
Elias Sjödin
a6e84f7d2c
fix(api.js): wrong command for isAbsolute ( #11835 )
2024-11-30 22:04:48 +01:00
Amr Bashir
fc30b20bea
feat(api/tray): add TrayIcon.setShowMenuOnLeftClick method ( #11726 )
2024-11-21 14:50:41 +02:00
Amr Bashir
12a48d1e26
fix(api): transform icon when creating icon menu item and predefined about menu item with icon ( #11741 )
2024-11-21 14:22:51 +02:00
AHQ
020ea05561
feat: Implement Badging API ( #11661 )
2024-11-20 02:59:28 +02:00
Sander Cox
d86aaccb0b
enhance: allow show_menu_on_left_click on Windows ( #11729 )
2024-11-19 00:25:20 +02:00
Fabian-Lars
b63262cd4d
fix(api.js): Change cb type in mockIPC to return unknown ( #11724 )
2024-11-18 17:50:39 +02:00
Del
c3b1fced38
docs: correct payload property for DragDropEvent.over example ( #11648 )
2024-11-11 17:14:36 +01:00
Amr Bashir
e8a50f6d76
fix(core): hard code BaseDirectory integer values to avoid regressions when reordering the variants ( #11645 )
...
closes #11633
2024-11-11 14:58:16 +02:00
Daniel Gerhardt
5e94354875
fix(api/dpi): fix toLogical and toPhysical for positions ( #11639 )
2024-11-11 14:21:25 +02:00
Kornel
0fcef3f941
docs: document vanilla JS import alternative ( #11632 )
2024-11-11 14:21:08 +02:00
Ville Säävuori
c561786844
docs: fix typos in drag&drop event.payload ( #11620 )
...
* fix: typo in drag&drop event.payload
'hover' -> 'over'
* fix: another typo
'hover' -> 'over'
2024-11-08 09:50:10 +08:00
Amr Bashir
4d545ab3ca
feat: background color APIs ( #11486 )
...
* feat: background color APIs
closes #10519
closes #1564
* clippy
* git branch
* bundle
* fix hex color schema pattern
* add missing `^`
* fix iOS
* revert test
* revert apple-codesign bump
* fmt
* add change files
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-11-06 13:21:47 -03:00
Amr Bashir
5c4b830843
feat(api): add SERIALIZE_TO_IPC_FN const and implement it for dpi types, add more constructors ( #11191 )
2024-11-05 23:30:17 +02:00
Amr Bashir
cbc095ec5f
feat: add WebviewWindow/Webview::devtools ( #11451 )
...
* feat: add `WebviewWindow/Webview::devtools`
closes #10849
* clippy
* fix ToTokens
* document default behavior
* move builder usage
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-11-05 16:00:48 -03:00
Amr Bashir
f37e97d410
feat: add use_https_scheme for Windows and Android ( #11477 )
...
* feat: add `use_https_scheme` for Windows and Android
closes #11252
* fix compilation
* Apply suggestions from code review
Co-authored-by: Fabian-Lars <github@fabianlars.de >
* change wording
* add migrations
* migrate `dangerousUseHttpScheme`
* fmt
* infer AssetResolver::get https scheme config
* fix tests
---------
Co-authored-by: Fabian-Lars <github@fabianlars.de >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-11-05 09:48:59 -03:00
Amr Bashir
129414faa4
fix: fix webview not focused by default ( #11569 )
...
* fix: fix webview not focused by default
closes #10746
* fix compile
* typo
* fix compile again
* clippy
2024-11-04 13:58:47 +02:00
Amr Bashir
54cbf59b5a
fix(api/menu): fix submenus when created using an object in items field in the object passed to Menu/Submenu.new ( #11441 )
...
* fix(api/menu): fix submenus when created using an object in `items` field in the object passed to `Menu/Submenu.new`
closes #11435
also closes #11422 as I included the docs in this PR
* Update .changes/js-submenu-in-options.md
* Update packages/api/src/menu/base.ts
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-10-23 10:47:32 -03:00
Lucas Fernandes Nogueira
fbb45c674c
fix(api): broken addPluginListener implementation, closes #8068 ( #11423 )
2024-10-20 09:07:51 -03:00
Lucas Fernandes Nogueira
2e88633ba4
chore: remove references to unused __TAURI_INTERNALS__.metadata ( #11369 )
2024-10-15 13:26:43 -03:00
Lucas Fernandes Nogueira
e55bd4ba7a
fix(api): docs for core module __TAURI__ usage ( #11324 )
2024-10-12 16:32:54 +03:00
Amr Bashir
de7414aab9
feat: add Window::set_enabled and Window::is_enabled ( #11154 )
...
* feat: add `Window::set_enabled` and `Window::is_enabled`
closes #6660
* license headers
* fix build
* fix mobile and macos
* fix macos
* again
* unsafe
* fix macos is_enabled
* update example
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-09-27 14:35:01 -03:00
Amr Bashir
d9d2502b41
feat: add Webview::show and Webview::hide ( #11140 )
...
closes #11126
2024-09-27 08:30:29 +03:00
Olivier Lemasle
58bab8b35b
docs: fix formatting of JS comments for API reference ( #11148 )
2024-09-26 15:05:56 +02:00
Amr Bashir
0b4495996d
refactor!: simplify TrayIconEvent in JS by tagging it with type field ( #11121 )
...
Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com >
2024-09-26 06:12:02 +03:00
Lucas Fernandes Nogueira
948772a657
refactor(api): change button_state to camelCase ( #11114 )
2024-09-24 08:18:52 -03:00
Tillmann
e08c4e6888
Change V1 links to V2 site ( #11111 )
...
* Change V1 links to V2 site
* update lockfile
---------
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com >
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev >
2024-09-24 08:09:00 -03:00
Amr Bashir
cbe3bd80d8
fix(api): convert Position to PhsyicalPosition for TrayIconEvent ( #11104 )
...
* fix(api): convert `Position` to `PhsyicalPosition` for `TrayIconEvent`
ref: https://github.com/tauri-apps/plugins-workspace/pull/1822#issuecomment-2365442240
* fix lint
* Add missing `doubleClick` event type
* change file
* update lockfile
* Update .changes/api-tray-icon-event-value-mismatch-type.md [skip ci]
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-09-24 08:04:53 -03:00
Tony
11db7be6c2
feat(core): add a new function to set theme dynamically ( #10210 )
...
closes #5279
2024-09-24 05:18:53 +03:00
Amr Bashir
9014a3f176
feat: add webview.clear_all_browsing_data ( #11066 )
...
* feat: add `webview.clear_all_browsing_data`
closes #6567
* fix build on iOS and android
* fix command name references
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-09-20 08:18:07 -03:00
Amr Bashir
ddf69157b5
feat(api): add {LogicalPosition,LogicalSize}.toPhysical method ( #11031 )
...
closes #11008
2024-09-16 16:43:54 -03:00
Lucas Fernandes Nogueira
f81929e251
feat(api): permission types for mobile plugins ( #10799 )
...
* feat(api): permission types for mobile plugins
let's have a central place to keep the permission types
ref https://github.com/tauri-apps/plugins-workspace/issues/979
* build
2024-08-28 17:49:05 +03:00
Amr Bashir
36eee37220
Restructure the repository ( #10796 )
...
* Restructure the repository
* lock file
* fmt
* fix bench
* fix cli template test
* remove accidental file
* fix mv command
* clippy
* upgrade paths-filter github action
* fix cli migration tests
* lockfile
* license headers
* clippy
* scope test-core to tauri crate
* license header
* correct --manifest-path usage
* lockfile
* fix tauri-driver on macOS [skip ci]
* build target ios
* try downgrade env_logger
* downgrade 0.1.7
* try to fix bench
* bench overflow
* revert overflow fix, fix tauri_root_path
* revert env_logger downgrade
* fmt
* raise msrv to 1.71
* fmt
* delete .cargo/config.toml [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-08-27 18:42:30 -03:00