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
Marc Espin
dbd525ca64
docs: Update doc comment from normalize function in path plugin to match definition ( #8886 )
...
The doc comment from the normalize function in the path plugin was not matching the actual definition.
Rust definition: 0cb0a15ce2/core/tauri/src/path/plugin.rs (L18)
Typescript definition: 0cb0a15ce2/tooling/api/src/path.ts (L589)
2024-02-18 15:12:46 -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
Amr Bashir
8de308d1bf
feat(core): implement new config structure ( #8723 )
...
* feat(core): implement new config structure
RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md
* fixes
* remove tauri-plugin copy [skip ci]
* move platform specific configs
* fix build
* fix cli
* doctests
* change files
* read updater plugin config on CLI
* doctests
* remove env var from docs
* fix getting pubkey
* add migrations
* clippy
* update change file [skip ci]
* rename frontendDist to prodFrontend?
* Revert "rename frontendDist to prodFrontend?"
This reverts commit ef7394f085 .
* fix all_features check
* fix field name
* single license getter on bundler
* readd msiexec_args
* remove unused fixture
* update template
* Update .changes/tauri-bundle-settings-rfc-5.md
* Update .changes/config-restructure-rfc-5.md
* lint bundler, fix change file
* rename AppUrl to FrontendDist, add explicit variants for docs
* fix build
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-02-03 00:39:48 -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
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
Amr Bashir
9eaeb5a8cd
refactor: refactor parent APIs on WindowBuilder ( #8622 )
...
* refactor: refactor parent APIs on `WindowBuilder`
closes #8587 #1643
* fix build
* clippy
* support parent in JS and config
* change files
* fix build
* clippy
* fix doctests
* fix linux build
* fix doctests
* update docs
* fix api, update example to use JS API
* fix merge
* lint
* fix tests on windows
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2024-01-31 13:59:14 -03:00
Amr Bashir
a2fc3a6357
feat(api/window): add visible-on-all-workspaces, closes #8652 ( #8657 )
...
* feat(api/window): add visible-on-all-worksapces, closes #8652
* fix build and generate schema
* Update .changes/api-set-visible-on-all-workspaces.md
* revert permissions
* fix alias
* revert set_icon change
* add missing permission
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
2024-01-31 12:36:39 -03:00
Lucas Fernandes Nogueira
c77b40324e
refactor(core): add support to multiple webviews on a Tauri window ( #8280 )
...
* feat: update to latest wry
* wry dev branch [skip ci]
* fix linux [skip ci]
* refactor(runtime): split webview and window types
* split dispatch
* implement create_webview
* move webview message
* wip webview mod
* create webview manager, finish webview struct and builder
* fix tests and docs
* rename WindowUrl to WebviewUrl
* update examples
* event refactor
* update JS API
* fix events
* update example
* add WebviewWindow class on JS
* fix macos build
* allow creating window+webview on the same runtime call
* rename tauri://window-created to tauri://webview-created
* Window::add_child
* use inner_size from webview on macOS
* add multiwebview example
* automatically resize webviews on window resize
* fix tests
* set_position, set_size
* position, size getters
* set_focus
* add close fn
* update mock runtime
* lint [skip ci]
* fix inner_size getter [skip ci]
* import hwnd [skip ci]
* update webview bound ratios on set_size/set_position
* add auto_resize option
* fix android
* fix build on windows
* typo
* with_webview isnt desktop only
* add WebviewWindow rust struct (and builder)
* fix build on android
* license header
* fix macos/windows
* fix macos build
* resolve todo
* handle window not found
* hide unstable features
* document unstable feature [skip ci]
* webview plugin permissions
* hide more stuff
* fix doctests
* typos
* add change files
* fix examples
* rename hook
2024-01-24 11:05:18 -03:00
tweidinger
3c2f79f6f3
Tauri ACL/Allowlist v2 Implementation and Plugin System Refactor ( #8428 )
...
* tauri-plugin concept
* wip
* move command module to its own directory
* wip: new command traits and generated code
* wip: whip
* wip: static dispatch
there is a man standing behind me
* wip
* re-add authority
* fix build [skip ci]
* parse plugin permissions
* merge permission files [skip ci]
* parse capabilities [skip ci]
* resolve acl (untested) [skip ci]
* split functionality, add some docs
* remove command2 stuff
* actually check runtime authority
* small fixes [skip ci]
* add function to auto generate basic permission for a command [skip ci]
* retrieve command scope, implement CommandArg [skip ci]
* fix tests [skip ci]
* global scope
* lint
* license headers [skip ci]
* skip canonicalize
* separate scope type in example
* remove inlinedpermission struct [skip ci]
* permission file schema
* capabilities schema
* move items from tauri-plugin to tauri-utils
this allows tauri-plugin to depend on tauri directly again
which will be used by the runtime feature as a superset to
existing plugin traits
* enable schema and glob [skip ci]
* fix glob [skip ci]
* fix capability schema [skip ci]
* enhance schema for permission set possible values [skip ci]
* permission set can reference other sets [skip ci]
* setup tests for resolving ACL
* fixture for permission set [skip ci]
* remote context test and small fix[skip ci]
* ignore empty scope [skip ci]
* code review [skip ci]
* lint [skip ci]
* runtime fixes
* readd schema feature on tauri-config-schema [skip ci]
* remove plugin example from workspace, it breaks workspace features resolution [skip ci]
* scope as array, add test [skip ci]
* accept new shapshot [skip ci]
* core plugin permissions, default is now a set
* license headers
* fix on windows
* update global api
* glob is no longer optional on tauri-utils
* add missing permissions on api example [skip ci]
* remove ipc scope and dangerous remote access config
* lint
* fix asset scope usage
* create out dir [skip ci]
* reuse cargo_pkg_name [skip ci]
* capability window glob pattern [skip ci]
* add platforms for capability [skip ci]
* per platform schema [skip ci]
* lint [skip ci]
* rename allowlist build mod [skip ci]
* check restricted visibility
* simplify capability target [skip ci]
* hide codegen build behind tauri-build::try_run
* optimize build scripts [skip ci]
* fix tests
* tests for RuntimeAuthority::resolve_access
* remote domain glob pattern
* lint
---------
Co-authored-by: Chip Reed <chip@chip.sh >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2024-01-22 21:24:15 -03:00
Amr Bashir
7f033f6dcd
fix(core): fix undecorated window resizing, #8519 ( #8537 )
...
* fix(core): fix undecorated window resizing, fixes #8519
* js api
* fix invoke call
* Update tauri-window-start-resize-dragging.md
* clippy
2024-01-18 19:34:55 +02:00
Fabian-Lars
97e3341299
fix(api.js): mock __TAURI_INTERNALS__ in mockIPC and mockWindows ( #8534 )
...
* fix(api.js): mock `__TAURI_INTERNALS__` in `mockIPC` and `mockWindows`
* mock internals.invoke instead of internals.ipc
2024-01-04 01:37:27 +02:00
Lucas Nogueira
a9b87c057d
Merge branch '1.x' into dev
2023-12-19 13:52:53 -03:00
Amr Bashir
428ea6524c
feat(api): expose Resource class ( #8370 )
...
* feat(api): expose `Resource` class
continuation of https://github.com/tauri-apps/tauri/pull/8276
* Apply suggestions from code review
* fmt
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-12-18 18:16:21 -03:00
Chase Knowlden
c34710de67
fix: Fix archived links, Closes #8302 ( #8315 )
2023-11-29 03:41:41 +02:00
Fabian-Lars
c2ad4d28c4
refactor(api)!: Rename primitives mod to core ( #8273 )
2023-11-20 17:53:13 -03:00
Amr Bashir
f93148eac0
feat: add tray and menu javascript APIs and events, closes #6617 ( #7709 )
...
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app >
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-11-19 08:38:24 -03:00
i-c-b
b7add750ef
Fix file-drop event payload ( #8204 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-11-13 21:40:59 -03:00
Merlin Gough
14544e4b87
fix(api): avoid crashing in clearMocks, closes #8179 ( #8219 )
...
* fix(api): do nothing in clearMocks if __TAURI_INTERNALS__ is not defined (fix : #8179 )
Prevents tests that didn't define any mocks from failing in `afterEach` test hook.
* Update fix-clearmocks.md
* check for indvidiual properties instead
2023-11-13 17:48:54 +02:00
i-c-b
416370a627
enhance(docs): Document Windows-specific icon behaviour ( #8153 )
2023-11-06 20:12:26 -03:00
Lucas Fernandes Nogueira
6e75863041
fix(api): adjust documentation for mockConvertFileSrc ( #8111 )
2023-10-26 15:28:48 +03:00
Konstantin Azizov
287066b279
fix(api): do nothing in clearMocks if __TAURI_INTERNALS__ is not defined ( #8071 )
2023-10-21 14:51:08 -03:00
Lucas Nogueira
c6c59cf237
Merge branch '1.x' into dev
2023-10-20 08:56:02 -03:00
renovate[bot]
5c0eeb40c1
chore(deps) Update Tauri API Definitions (dev) (major) ( #7638 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-18 10:37:30 -03:00
Andre Lew
c1ec0f1551
feat(core): expose always_on_bottom, closes #7847 ( #7933 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-18 09:47:24 -03:00
Jason Tsai
c085addab5
feat: set application progress bar, close #7999 ( #8009 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-17 16:25:30 -03:00
Amr Bashir
fb10b87970
feat: move app plugin back to core ( #8039 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-17 15:13:47 -03:00
Amr Bashir
ed32257d04
feat(windows): add tabbed effect ( #7794 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-10-17 12:29:10 -03:00
Amr Bashir
a63e71f979
refactor(core&api)!: hide internal functions and reuse them in api.js & rename tauri module to primitives ( #7942 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-17 09:40:20 -03:00
Amr Bashir
2b0212af49
feat(api): add mock for convertFileSrc, closes #7935 ( #7961 )
...
* feat(api): add mock for `convertFileSrc`, closes #7935
* fix lint
* Update tooling/api/src/mocks.ts
* fmt
2023-10-17 15:33:44 +03:00
Amr Bashir
c9a9246c37
feat: move window plugin back to core ( #8007 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-17 08:33:23 -03:00
Fabian-Lars
9aa34ada57
feat(core): Allow http origin on Windows, fixes : #3007 ( #7645 )
...
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-09-26 14:40:38 -03:00
Lucas Fernandes Nogueira
d5074af562
fix: custom protocol on Windows, change scheme on Android, closes #7801 ( #7808 )
2023-09-11 12:25:06 -03:00
Lucas Fernandes Nogueira
4cb51a2d56
refactor(core): custom protocol on Windows now uses the http scheme ( #7779 )
2023-09-07 19:57:16 -03:00
Fabian-Lars
58d6b899e2
feat(api): Add append option to writeFile apis ( #7636 )
...
* feat(api): Add `append` option to writeFile apis.
* wording
* fmt
* Update .changes/fs-append-file.md
* clippeeeyyyy
2023-08-16 19:09:05 +03:00
Lucas Fernandes Nogueira
fbeb5b9185
refactor(core): use webview's URI schemes for IPC ( #7170 )
...
Co-authored-by: chip <chip@chip.sh >
2023-08-10 10:12:38 -03:00
Amr Bashir
6c408b736c
feat: add notification sound ( #7269 )
...
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-08-08 15:09:04 -03:00
Amr Bashir
2eab150563
feat(api/http): properly handle Files in Body.form, closes #7390 ( #7394 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
closes #7390
2023-07-13 08:58:21 -03:00
Lucas Fernandes Nogueira
e63111b65a
chore: remove v1 references on documentation and benchmark ( #7258 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-06-19 09:47:51 -03:00
Lucas Fernandes Nogueira
7bbc626cc3
Merge remote-tracking branch 'origin/dev' into next ( #7212 )
2023-06-15 09:52:33 -03:00
Fabian-Lars
3fb3f11fc8
docs(api.js): fix since version for locale() ( #7205 )
2023-06-14 20:30:57 +03:00
Lucas Fernandes Nogueira
696d77c3ce
fix(core): global events now reaches window listeners, closes #4493 ( #7163 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-06-13 08:05:58 -03:00
Amr Bashir
6d3f3138b9
fix(core/path): change sep and delimiter to functions ( #7160 )
...
* fix(core/path): change `sep` and `delimiter` to functions
* fix impl
* semicolons
* return types
* generated
* fix init js
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-06-08 03:40:14 +03:00
Amr Bashir
4652c446b3
feat: add tempDir to path plugin ( #7144 )
...
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio >
2023-06-06 14:51:29 -03:00
Lucas Fernandes Nogueira
9e3a18e046
feat(api): expose window target option on event APIs ( #7132 )
2023-06-05 16:00:44 -03:00
Lucas Fernandes Nogueira
3303041c92
chore(api): document new options from #6665 ( #7072 )
2023-05-27 04:39:37 -07:00
Amr Bashir
000104bc3b
feat: add is_focused APIs, closes #6472 ( #6530 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-05-26 13:37:28 -03:00
Tomáš Diblík
c4d6fb4b1e
feat(core): Ability to disable minimize/maximize/close native window's buttons, closes #2353 ( #6665 )
...
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 >
2023-05-24 17:23:32 -03:00
Amr Bashir
359058cecc
feat(api): add locale function, closes #5939 ( #5960 )
2023-05-23 16:02:33 -03:00