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
github-actions[bot]
e0b38d7434
Apply Version Updates From Current Changes ( #8438 )
...
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-01-16 18:11:50 -03: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
renovate[bot]
6892a8cbc1
chore(deps) Update dependency eslint-plugin-security to v2 (dev) ( #8440 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 12:14:39 -03:00
Lucas Nogueira
a9b87c057d
Merge branch '1.x' into dev
2023-12-19 13:52:53 -03:00
github-actions[bot]
e44b36fea4
Apply Version Updates From Current Changes ( #8274 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-12-19 11:03:26 -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
Amr Bashir
1c582a942e
refactor(api): generate types next to modules ( #8392 )
...
* refactor(api): generate types next to modules"
this fixes an issue with `moduleResolution: node`
* change file
* Update api-module-resolution-node.md
2023-12-14 13:27:48 -03:00
Amr Bashir
ef21b681e2
refactor(api): generate types next to modules ( #8391 )
...
* refactor(api): generate types next to modules"
this fixes an issue with `moduleResolution: node`
* change file
* Update api-moduleresolution-node.md
2023-12-14 13:27:31 -03:00
Amr Bashir
30adc8d45d
ci: fix publish @tauri-apps/api
to latest
instead of next
( #8371 )
...
* ci: fix publish `@tauri-apps/api` to `latest` instead of `next`
closes #8335
* just remove tag
2023-12-12 12:17:11 +02:00
github-actions[bot]
61cc7d9c5a
Apply Version Updates From Current Changes (v1) ( #8203 )
...
* apply version updates
* fmt
---------
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2023-12-01 03:05:05 +02:00
Chase Knowlden
c34710de67
fix: Fix archived links, Closes #8302 ( #8315 )
2023-11-29 03:41:41 +02:00
Amr Bashir
46451aee13
fix(api): add top-level main
, module
and types
fields ( #8268 )
2023-11-20 18:13:50 -03:00
Amr Bashir
5046270273
fix(api): add top-level main
, module
and types
fields ( #8267 )
2023-11-20 18:12:52 -03:00
Fabian-Lars
c2ad4d28c4
refactor(api)!: Rename primitives
mod to core
( #8273 )
2023-11-20 17:53:13 -03:00
github-actions[bot]
3acf0d2ba4
Apply Version Updates From Current Changes ( #8140 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-11-20 15:11:24 -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
renovate[bot]
f964cbdb93
chore(deps) Update dependency eslint to v8.53.0 (1.x) ( #8189 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 21:45:24 -03:00
renovate[bot]
ecb5b0c21d
chore(deps) Update Tauri API Definitions (dev) ( #8187 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 21:45:07 -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
renovate[bot]
3ed6b3ef37
chore(deps) Update Tauri API Definitions (dev) ( #8151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 13:57:28 -03:00
i-c-b
416370a627
enhance(docs): Document Windows-specific icon behaviour ( #8153 )
2023-11-06 20:12:26 -03:00
github-actions[bot]
b5e1334149
Apply Version Updates From Current Changes ( #8131 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-10-28 18:06:44 -03:00
Fabian-Lars
822bf15d6b
fix(api): include tslib dist in api package ( #8130 )
2023-10-28 17:40:38 -03:00
github-actions[bot]
618c4538ea
Apply Version Updates From Current Changes ( #8064 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-10-28 15:04:15 -03:00
renovate[bot]
4077946229
chore(deps) Update dependency @types/node to v20.8.8 (dev) ( #8098 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-26 13:42:30 -03:00
renovate[bot]
b6ef1fab0e
chore(deps) Update Tauri API Definitions (1.x) ( #8100 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-26 13:42:15 -03:00
Lucas Fernandes Nogueira
6e75863041
fix(api): adjust documentation for mockConvertFileSrc ( #8111 )
2023-10-26 15:28:48 +03:00
Amr Bashir
a0f7b88fd8
build(api.js): simplify output JS files ( #8025 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-10-23 18:22:00 -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
github-actions[bot]
d16206a086
Apply Version Updates From Current Changes ( #8005 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-10-19 16:04:21 +00:00
renovate[bot]
620b7a5d2f
chore(deps) Update Tauri API Definitions (dev) ( #7633 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-18 13:32:10 -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
github-actions[bot]
550173aaf5
Apply Version Updates From Current Changes (v1) ( #8022 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-10-17 12:29:33 -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
github-actions[bot]
0af553da72
Apply Version Updates From Current Changes (v1) ( #7261 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-09-28 14:01:19 -03:00