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
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
Fabian-Lars
c2ad4d28c4
refactor(api)!: Rename primitives mod to core ( #8273 )
2023-11-20 17:53:13 -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
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
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
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
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
9a79dc0858
refactor(core): remove window endpoints ( #6947 )
2023-05-12 08:18:00 -03:00
Lucas Fernandes Nogueira
46e6187c89
chore: update license year ( #6311 )
2023-02-19 10:17:49 -03:00
renovate[bot]
b9559b35d1
chore(deps) Update dependency eslint-config-standard-with-typescript to v30 ( #6091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-01-19 00:25:18 -03:00
Amr Bashir
5e74aefd4a
chore(api.js): add @since tag where appropriate ( #5169 )
2022-09-12 16:45:57 -03:00
Jonas Kruckenberg
4fa968dc0e
fix(api): add async mockIPC() handler signature ( #5056 )
2022-08-26 13:12:24 +02:00
renovate[bot]
55280bdea6
chore(deps) Update Tauri API Definitions ( #3585 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2022-03-02 10:21:48 -03:00
Jonas Kruckenberg
7e04c072c4
feat: add mock functions for testing and SSG ( #3437 )
...
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio >
2022-02-13 20:33:10 -03:00