Compare commits

...

246 Commits

Author SHA1 Message Date
github-actions[bot] e94b089e51 publish new versions (#1247)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-05-01 14:35:49 +02:00
renovate[bot] 6ea07297f4 chore(deps): change rust crate maplit version to 1 (#1270)
* chore(deps): update rust crate maplit to 1.0.2

* Update Cargo.toml

* Update tauri-beta-17.md

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-05-01 14:27:30 +02:00
renovate[bot] bd1ed5903f chore(deps): update tauri monorepo (#1237)
* fix(deps): update tauri monorepo

* rm 1.5 cli

* macos-latest is now arm

* changefile and rebuild iife [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fabianlars <fabianlars@fabianlars.de>
2024-05-01 14:01:24 +02:00
Tony 1fa4d30eab feat(updater): support non zipped updater (#1174) 2024-04-30 17:48:04 +03:00
renovate[bot] f39586bcb4 chore(deps): update dependency rollup to v4.17.2 (#1264)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 13:26:02 +02:00
renovate[bot] 5e20d7d339 chore(deps): update dependency eslint-plugin-n to v17.4.0 (#1265)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 12:57:26 +02:00
renovate[bot] dbc1d9374d chore(deps): update typescript-eslint monorepo to v7.8.0 (#1263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-29 21:27:14 +02:00
Tony 44e47fe98b fix(window-state): restore window state for stubbed zerord state (#1259)
* Restore window state for default state

* Add change file
2024-04-29 19:33:33 +03:00
renovate[bot] 04ebd0282e chore(deps): update dependency rollup to v4.17.1 (#1261)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-29 10:19:17 +02:00
renovate[bot] f853774154 chore(deps): update dependency rollup to v4.17.0 (#1260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-27 15:00:33 +02:00
Amr Bashir e9977eb2f8 chore(fs): distinct description for *meta and *meta-recursive permissions (#1250)
closes #1249
2024-04-25 00:59:29 +02:00
renovate[bot] 555cb07bfe chore(deps): update dependency eslint-plugin-n to v17.3.1 (#1248)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-24 23:42:42 +02:00
Amr Bashir 1f16c64d67 refactor(clipboard): refactor clipboard function arguments for better clarity about the needed type (#1218) 2024-04-24 16:44:48 +02:00
Amr Bashir 9c7eb35967 feat(global-shortcut): support pressed/released states (#1244)
closes #1243
2024-04-24 15:42:01 +02:00
renovate[bot] a9132161df chore(deps): update dependency eslint-plugin-n to v17.3.0 (#1246)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-24 14:07:44 +02:00
Tony edf9a4f29d fix(fs): missing debouncer rename cache (#1245)
* Fix missing debouncer rename cache

* Add change file

* Format
2024-04-24 10:50:12 +02:00
renovate[bot] 21387ac199 chore(deps): update dependency rollup to v4.16.4 (#1241)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 17:16:17 +02:00
Fabian-Lars 45f02f1ba8 chore(deps): Update plist to 1.6.1 in lockfile (#1242)
fixes #989
2024-04-23 16:36:45 +02:00
Fabian-Lars f976ab7cd4 ci: Renovate PRs will now include the dependencies label 2024-04-23 15:51:20 +02:00
renovate[bot] cbd930166c chore(deps): update dependency rollup to v4.16.3 (#1239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 09:39:23 +02:00
renovate[bot] a305b05cff chore(deps): update dependency eslint-config-love to v47 (#1238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 09:06:59 +02:00
github-actions[bot] 3e5da59abc Publish New Versions (v2) (#1234)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-04-22 23:58:43 -03:00
Lucas Fernandes Nogueira 326df68839 fix(ios): decoding with default value is not supported (#1236) 2024-04-22 23:35:47 -03:00
renovate[bot] faa89850d0 chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 (#1228)
* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0

* actually apply the rules lol

* rebuild

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-23 00:40:51 +02:00
renovate[bot] 8aacc312cf chore(deps): update dependency rollup to v4.16.2 (#1233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 20:31:18 +02:00
renovate[bot] 95986f1c4d chore(deps): update typescript-eslint monorepo to v7.7.1 (#1235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 20:22:58 +02:00
Fabian-Lars b115fd22e0 fix(fs): Prevent deadlock when scope listeners are registered. (#1221)
* fix(fs): Prevent deadlock when scope listeners are registered.

* block
2024-04-22 20:09:12 +02:00
renovate[bot] cdd3aafdc6 chore(deps): update dependency rollup to v4.16.1 (#1230)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-21 20:57:38 +02:00
renovate[bot] 961a13860e chore(deps): update dependency rollup to v4.16.0 (#1227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-21 16:48:59 +02:00
renovate[bot] 01e534a1c9 chore(deps): update dependency vite to v5.2.10 (#1225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-20 19:07:12 +02:00
renovate[bot] 9f70233ebb chore(deps): update dependency rollup to v4.15.0 (#1224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-20 19:03:09 +02:00
renovate[bot] 78a4097d09 fix(deps): update rust crate global-hotkey to 0.5.1 (#1211)
* fix(deps): update rust crate global-hotkey to 0.5.1

* fix comp

* Update Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-04-18 17:05:15 +02:00
renovate[bot] 35373956ea fix(deps): update rust crate cocoa to 0.25 (#1208)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-18 15:58:01 +02:00
renovate[bot] bf285d471d chore(deps): update unocss monorepo to v0.59.4 (#1220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-18 15:40:38 +02:00
github-actions[bot] 9f545c65ad publish new versions (#1142)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-04-18 11:23:48 +02:00
renovate[bot] 37dbd4c38d fix(deps): update tauri monorepo (#1202)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-18 11:15:15 +02:00
renovate[bot] 2b53546ce5 chore(deps): update dependency @iconify-json/codicon to v1.1.47 (#1219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-18 10:34:10 +02:00
Fabian-Lars 293f363c0d fix(updater): Enable rustls-tls feature flag by default (#1175) 2024-04-18 04:38:44 +02:00
Amr Bashir e3d41f4011 fix: use webview's resources table (#1191)
* fix: use webview's resources table

* fix clipboard into_img usage

* fix mobile
2024-04-18 03:19:24 +02:00
renovate[bot] 8638740223 chore(deps): update dependency svelte to v4.2.15 (#1217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-17 16:17:02 +02:00
Fabian-Lars bb51a41d67 feat: Remove UNC prefix in paths returned to the frontend (#1168)
* feat: Remove UNC prefix in paths returned to the frontend

* that one doesn't count

* map instead of mut

* revert accidental ipc::response change

* move dunce to workspace root
2024-04-17 15:49:32 +02:00
renovate[bot] 6698774f3f fix(deps): update rust crate tiny_http to 0.12 (#1213)
* fix(deps): update rust crate tiny_http to 0.12

* .

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-17 14:41:37 +02:00
renovate[bot] c079d8c81b fix(deps): update rust crate winrt-notification to 0.2 (#1215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-17 12:18:05 +02:00
renovate[bot] 3db3b204b4 fix(deps): update rust crate win7-notifications to 0.4.3 (#1214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 23:43:11 +02:00
renovate[bot] cc29f7dbdb fix(deps): update rust crate glib to 0.19 (#1210)
* fix(deps): update rust crate glib to 0.19

* downgrade to 0.18 again lol

* remove glib dep

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-16 23:40:40 +02:00
renovate[bot] 81c31b4114 chore(deps): update unocss monorepo to ^0.59.0 (#1206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 23:04:48 +02:00
renovate[bot] d3b9a60e31 fix(deps): update rust crate android_logger to 0.13 (#1207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 22:52:17 +02:00
renovate[bot] 2cb80325a0 chore(deps): update dependency @sveltejs/vite-plugin-svelte to v3.1.0 (#1203)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 21:43:55 +02:00
renovate[bot] 4b3bc1ee13 fix(deps): update dependency @zerodevx/svelte-json-view to v1.0.9 (#1199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 21:27:36 +02:00
FabianLars 5dcfdec03b ci: Update pnpm to v8 2024-04-16 21:02:26 +02:00
FabianLars f79f2b79b3 chore: Change engines.pnpm to require any v8 version 2024-04-16 20:57:47 +02:00
renovate[bot] ce7750451d chore(deps): update rust crate color-backtrace to 0.6 (#1204)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 19:22:07 +02:00
renovate[bot] 56406214a0 fix(deps): update rust crate swift-rs to 1.0.6 (#1201)
* fix(deps): update rust crate swift-rs to 1.0.6

* Aktualisieren von Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-04-16 18:53:27 +02:00
renovate[bot] 4c8ccf6767 fix(deps): update rust crate flate2 to 1.0.28 (#1200)
* fix(deps): update rust crate flate2 to 1.0.28

* Aktualisieren von Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-04-16 17:17:32 +02:00
renovate[bot] 1d85ae72b4 chore(deps): update dependency svelte to v4.2.14 (#1197)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 12:41:29 +02:00
renovate[bot] 4aed0a48a2 chore(deps): update dependency vite to v5.2.9 (#1198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 12:37:36 +02:00
renovate[bot] fa8ccec4f6 chore(deps): update typescript-eslint monorepo to v7.7.0 (#1190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 12:13:44 +02:00
renovate[bot] 278755f1f5 chore(deps): update dependency @iconify-json/codicon to v1.1.46 (#1195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 11:56:08 +02:00
renovate[bot] d229dd6661 chore(deps): update dependency @iconify-json/ph to v1.1.12 (#1196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 11:55:45 +02:00
Fabian-Lars 86723a5372 chore: merge v1 into v2 one last time 2024-04-16 00:45:41 +02:00
FabianLars ed46dca74f Merge remote-tracking branch 'origin/v1' into chore/merge-v1-into-v2 2024-04-16 00:29:36 +02:00
Jonas Osburg 5c97db96bd feat(websocket): Add TLS configuration (#925)
* Allow TLS configuration

* refactor: Added builder pattern

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-15 16:41:49 +02:00
matthme 4210cf316a feat(single-instance): Add semver compatibility check for Windows and Linux (#502)
* added semver compatibility check for Windows and Linux

* fixed formatting

* put semver feature behind a feature flag

* remove semver from root manifest

* linux compile error

* docs: Add mention for semver feature in readme

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-15 15:54:09 +02:00
FabianLars 57e979adaf chore(store): format readme 2024-04-15 15:37:21 +02:00
Jesper L. Nielsen 4a5ab18a22 fix(upload): return type on is now a string (#976)
* fix(upload): return type on POST is now string

A POST to a webserver can not always be expected to be a JSON response.

Success is now determined by the HTTP return code.

Upon success the body content is returned as a string.

* feat: add content-length on POST

Not all embedded devices are acceptable to receiving unspecified amounts
of data. Appending the content-length up front helps this devices
succeed.

* fix: return values unified

The return values was not used.

On POST the HTTP error code is returned as an enum.

* fix: upload, return value as string

* Update plugins/upload/src/lib.rs

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

* Update plugins/upload/src/lib.rs

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

* fix: added covector changelog file

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-15 15:16:07 +02:00
Tony 1f9e7ab4a0 fix(window-state): missing restore_state and filename js binding permission (#1180)
* Fix js binding commands

* Re-run build

* Add change file
2024-04-15 12:04:52 +02:00
zenitogr 9144521b90 chore(store): update example in README.md (#1176) 2024-04-15 11:43:48 +02:00
renovate[bot] 2b0cd3d882 chore(deps): update dependency rollup to v4.14.3 (#1186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 11:15:42 +02:00
Amr Bashir c967307706 fix(deps): update vite to fix audit CI (#1187) 2024-04-15 11:14:42 +02:00
Amr Bashir 27b258cf31 chore(clipboard): expose Clipboard struct (#1185) 2024-04-15 10:53:32 +02:00
Tony 3dca7ff5ea fix(example): for newer tauri version (#1181)
* Fix example for newer tauri version
`onDragDropEvent` -> `onFileDropEvent`

* Revert "Fix example for newer tauri version"

This reverts commit 9eeaf85605.

* Update tauri api and cli version
2024-04-15 10:53:16 +02:00
renovate[bot] e39ea8ddf8 fix(deps): update rust crate reqwest to 0.12 (#1099)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 09:07:36 +02:00
renovate[bot] 7768f245f9 chore(deps): update dependency eslint-plugin-n to v17.2.1 (#1184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 09:01:11 +02:00
Tony fe05b872aa fix(example) can't use tray icon to exit (#1183) 2024-04-15 08:58:02 +02:00
Tony df1516da14 fix(example): missing permissions (#1182)
* Fix missing window control permissions

* Move to permissions to base

* More missing permissions

* More
2024-04-15 08:57:25 +02:00
renovate[bot] 4aeee08cde chore(deps): update dependency rollup to v4.14.2 (#1177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 13:29:29 +02:00
renovate[bot] 69ee862fb7 chore(deps): update dependency eslint-plugin-security to v3 (#1172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 20:32:33 +02:00
renovate[bot] a70172dd93 chore(deps): update dependency eslint-plugin-n to v17.2.0 (#1170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 20:25:46 +02:00
renovate[bot] 37466eb87e chore(deps): update dependency typescript to v5.4.5 (#1171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 20:16:36 +02:00
Fabian-Lars 500ff10fbd fix(http): Enable tls support by default (#1166) 2024-04-10 09:35:20 +02:00
Naman Garg 8d7689f6f9 Add WebviewWindow to code docs and template (#1144)
* Add WebviewWindow to code docs

* Shorten the WebView Name

* Apply suggestions from code review

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-09 11:56:00 -03:00
renovate[bot] b0daeed1e8 chore(deps): update dependency eslint-plugin-n to v17.1.0 (#1164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 13:42:16 +02:00
renovate[bot] dbdd60a591 chore(deps): update typescript-eslint monorepo to v7.6.0 (#1160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 00:21:42 +02:00
Tony 7e2fcc5e74 chore: add missing change files from #1139 (#1146) 2024-04-08 22:08:58 +02:00
renovate[bot] dbe0277824 chore(deps): update dependency rollup to v4.14.1 (#1154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 12:40:38 +02:00
renovate[bot] ddb5ca188f chore(deps): update dependency eslint-plugin-n to v17 (#1158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 12:37:40 +02:00
Amr Bashir 7fc29c326b chore: add repository field in Cargo.toml (#1143)
closes #1135
2024-04-05 00:15:04 +02:00
renovate[bot] cf832fe106 chore(deps): update dependency typescript to v5.4.4 (#1145)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 22:46:20 +02:00
Amr Bashir 0e9541fe89 feat(window-state): support using a custom filename (#1138)
* feat(window-state): support using a custom filename

ref: https://github.com/tauri-apps/plugins-workspace/pull/1079

* generate api

* fmt
2024-04-03 21:29:48 +02:00
Amr Bashir f9bcc1c21d chore: add tslib as dev dependency in workspace (#1134)
* chore: add `tslib` as dev dependency in workspace

* Discard changes to Cargo.lock

* lockfile
2024-04-03 18:07:08 +02:00
renovate[bot] 773b498392 chore(deps): update dependency vite to v5.2.8 (#1141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 18:03:21 +02:00
renovate[bot] 3e620c6951 chore(deps): update dependency rollup to v4.14.0 (#1140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 11:58:43 +02:00
Tony a32e3200de chore: update dependencies to align with tauri's (#1139) 2024-04-03 04:38:29 +02:00
github-actions[bot] 815a7073bc Publish New Versions (v2) (#1116)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-04-02 18:57:12 -03:00
Lucas Fernandes Nogueira 772f2bc349 chore: bump tauri to 2.0.0-beta.14 (#1136)
* chore: bump tauri

* pin tauri, change file
2024-04-02 18:31:15 -03:00
renovate[bot] 73d8562849 chore(deps): update dependency rollup to v4.13.2 (#1125)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 11:28:09 +02:00
renovate[bot] 73364a8b96 chore(deps): update typescript-eslint monorepo to v7.5.0 (#1132)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 09:20:17 +02:00
renovate[bot] 066058f631 chore(deps): update dependency vite to v5.2.7 (#1127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-29 13:58:06 +01:00
thewh1teagle c013fa52cd refactor(window-state)!: use json instead of bincode (#1078)
* feat(window-state): add option to use json

* feat(window-state): change state file from bincode to serdejson

* change file

* fmt
2024-03-29 02:41:42 +02:00
Tony 57d01bf82e chore(updater): clean up dependencies (#1084)
* Clean up updater dependencies

* Zip is in the dependencies already
2024-03-28 04:41:34 +02:00
Vitor Ayres 7be37b1909 v2: fix import path in plugin upload readme (#1122) 2024-03-28 03:03:32 +02:00
Wito dabac0eedf feat(single-instance): add MacOs unix domain socket impl (#1035)
* feat(single-instance): add macos implementation

* chore(single-instance): test MacOs by adding CLI to example

* feat(single-instance): simplify macOS implementation

* chore(single-instance): address remarks
2024-03-28 00:34:33 +01:00
renovate[bot] c6a5b7ae47 chore(deps): update dependency rollup to v4.13.1 (#1121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 12:18:37 +01:00
venkr a2339195aa fix(autostart): Fix LaunchAgent macOS autostart (#1118)
* Fix LaunchAgent macOS autostart

* Add .changes
2024-03-26 19:01:57 +01:00
Tahmin Ahmed 4cd81126fd fix(dialog): open function return mismatch (#1056)
* Implemented conversion of URI to a file path

* Added relevant .changes file
2024-03-26 17:00:25 +02:00
Alixxx-please fc3667db6a "recusrive" typo fix (#1103)
* Update app.toml

* Update appcache.toml

* Update appconfig.toml

* Update appdata.toml

* Update applocaldata.toml

* Update applog.toml

* Update audio.toml

* Update cache.toml

* Update config.toml

* Update data.toml

* Update desktop.toml

* Update document.toml

* Update download.toml

* Update exe.toml

* Update font.toml

* Update home.toml

* Update localdata.toml

* Update log.toml

* Update picture.toml

* Update public.toml

* Update resource.toml

* Update runtime.toml

* Update temp.toml

* Update template.toml

* Update video.toml

* actually update build script :)

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-26 11:37:13 -03:00
Amr Bashir f39d362add feat(fs): enhance scope config to accept string as well (#1053)
* feat(fs): enhance scope config to accept string as well

* clippy

* Update protocol.rs

* regression resolving path variables

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-26 11:37:03 -03:00
Lucas Nogueira fe4ad4dd5c Revert "add change file"
This reverts commit 9c2fb9306e.
2024-03-26 11:27:38 -03:00
Lucas Nogueira 9c2fb9306e add change file 2024-03-26 11:26:38 -03:00
renovate[bot] d3c7ee5a61 chore(deps): update typescript-eslint monorepo to v7.4.0 (#1112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 21:12:10 +01:00
renovate[bot] 719b651753 chore(deps): update dependency vite to v5.2.6 (#1109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-24 15:34:45 +01:00
renovate[bot] 40ce253abf chore(deps): update dependency vite to v5.2.5 (#1108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-24 15:26:15 +01:00
renovate[bot] 184f4edbbc chore(deps): update dependency vite to v5.2.4 (#1105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-23 19:39:13 +01:00
renovate[bot] 8f857dc4e1 chore(deps): update dependency vite to v5.2.3 (#1104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-22 20:15:34 +01:00
Fabian-Lars bb836b2440 ci: Rename covector working branch to ci/release-v2 2024-03-21 15:32:10 +01:00
github-actions[bot] 70136b1fe8 Publish New Versions (v2) (#1047)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-21 09:01:05 -03:00
renovate[bot] 8cd4a39864 chore(deps): update dependency vite to v5.2.2 (#1098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 23:50:22 +01:00
renovate[bot] 80af01181a chore(deps): update dependency typescript to v5.4.3 (#1100)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 23:08:26 +01:00
Lucas Fernandes Nogueira 62ce5df52c fix(notification): development mode check should use tauri::dev() (#1096) 2024-03-20 18:58:34 -03:00
renovate[bot] 42607f0dbd chore(deps): update dependency vite to v5.2.0 (#1095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 11:32:49 +01:00
Lucas Fernandes Nogueira a04ea2f382 refactor: only inject API IIFE script when withGlobalTauri is true (#1071)
* refactor: only inject API IIFE script when withGlobalTauri is true

* fmt

* update tauri
2024-03-19 15:03:20 -03:00
阿良仔 9dec9605ed feat(clipboard): support readImage & writeImage (#845)
* feat(clipboard): support `read_image` & `write_image`

* fix plugin name

* platform specific bahavior

* remove unnecessary BufWriter

* improvement

* update example

* update example

* format

* header, fix change file

* use image from tauri

* fix ci

* update tauri, fix read

* image crate only on desktop [skip ci]

* Update plugins/authenticator/src/u2f_crate/protocol.rs [skip ci]

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

* Update plugins/authenticator/src/u2f_crate/protocol.rs [skip ci]

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

* update deps, address code review

* fix mobile [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-19 09:35:37 -03:00
renovate[bot] 160498dae5 chore(deps): update typescript-eslint monorepo to v7.3.1 (#1093)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 08:22:46 +01:00
Fabian-Lars 6db4320e98 ci: Rename covector working branch to ci/release-v1 (#1091) 2024-03-18 22:27:43 +01:00
github-actions[bot] cc63614f1e publish new versions (#471)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-03-18 21:49:08 +01:00
Fabian-Lars 02111b9526 chore: Change workspace inheritance syntax for better covector support (#1092) 2024-03-18 21:39:46 +01:00
renovate[bot] 03fab3c6ad chore(deps): update typescript-eslint monorepo to v7.3.0 (#1090)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 20:37:57 +01:00
Fabian-Lars 7b9fa6607b chore(template): Replace {{name}} with PLUGIN_NAME (#1088)
fixes #1052
2024-03-18 09:40:37 +01:00
Fabian-Lars 6a6c9daeb2 chore(template): Replace {{name}} with PLUGIN_NAME (#1087)
fixes #1052
2024-03-18 09:40:14 +01:00
i-c-b cb96aa0627 fix(fs): rename dir field to base_dir in WatchOptions, fixes #1081 (#1082)
* fix(fs): rename `dir` field to `base_dir` in `WatchOptions`, fixes #1081

* Create fix-fs-watcher-basedir.md
2024-03-16 11:01:49 +01:00
Tony 1d7dc86ec3 fix(updater): run cleanup before exit on Windows (#1070) 2024-03-13 16:12:21 +02:00
Fabian-Lars 35ea5956d0 fix(dialog): Create dialogs on main thread (#1073)
fixes https://github.com/tauri-apps/tauri/issues/6301
2024-03-13 15:41:23 +02:00
DK Liao 14c858391d docs: Update positioner readme (#1072) 2024-03-13 10:36:59 +01:00
Tony a3b5396113 refactor!(updater): migrate run updater using powershell to ShellExecute (#1054)
* Migrate to ShellExecute

* Add change file

* Revert cargo.toml style

* Remove unused imports

* Migrate to windows-sys

* Use open instead of runas

* Use encode_wide instead of hstring

* small cleanup
2024-03-12 17:47:22 +02:00
Jason Tsai 040004a6b9 chore(shell): change schema property name command to cmd (#1069)
* chore: fix shell plugin `command` property in schema

* chore: add changelog
2024-03-12 15:20:56 +02:00
Han 69d45a06a6 chore(examples): example incorrect command (#1068) 2024-03-12 10:16:39 +01:00
renovate[bot] d95a1b382f chore(deps): update dependency rollup to v4.13.0 (#1066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 07:52:24 +01:00
renovate[bot] 24eb3398d0 chore(deps): update typescript-eslint monorepo to v7.2.0 (#1064)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 07:48:01 +01:00
renovate[bot] adbc333a0f chore(deps): update dependency vite to v5.1.6 (#1063)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 17:42:59 +01:00
Lucas Fernandes Nogueira c873e4d6c7 fix(http): inconsistencies on urlpattern usage on scope (#1059)
* fix(http): inconsistencies on urlpattern usage on scope

* fix tests

* enhance tests
2024-03-11 13:39:35 -03:00
Tony 4e37316af0 fix(updater): fallback to passive mode & fix installerArgs deserialzation (#1051) 2024-03-11 17:29:16 +02:00
renovate[bot] b74ccb6639 chore(deps): update dependency @tauri-apps/cli to v1.5.11 (#1049)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 13:41:49 +01:00
renovate[bot] c290049051 chore(deps): update dependency typescript to v5.4.2 (#1034)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 13:39:40 +01:00
renovate[bot] 509c23ed36 chore(deps): update dependency rollup to v4.12.1 (#1031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 13:36:12 +01:00
FabianLars 11d98e911e chore(log): Fix lint and formatting 2024-03-10 13:21:17 +01:00
Lorenzo Rizzotti 753c7be0a6 feat(http) add unsafe-headers feature flag (#1050)
* [http] add unsafe-headers feature flag

* change file

* fmt
2024-03-08 07:31:47 +02:00
Naman Garg bff722451d docs(sql): Fix minor typo (#1048) 2024-03-08 00:07:08 +01:00
Amr Bashir 62dafda652 refactor!(global-shortcut): better APIs DX (#969)
* feat(global-shortcut): add `GlobalShortcutExt::register_with_handler`

ref: https://github.com/tauri-apps/plugins-workspace/issues/965

* clippy

* refactor apis to take closure by default

* change file

* Update .changes/global-shortcut-refactor.md

Co-authored-by: Simon Hyll <hyllsimon@gmail.com>

* Update global-shortcut-refactor.md

* use option instead

* clippy

* update readme

* on_shortcut and with_shortcut

* map handler

* simplify events

* lint

---------

Co-authored-by: Simon Hyll <hyllsimon@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-03-07 13:33:44 -03:00
github-actions[bot] 644eb448bb publish new versions (#1042)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-03-07 12:19:11 +01:00
DK Liao 75d82868b2 docs(positioner): Update positioner readme to new tray api (#1041)
`on_system_tray_event` is now reworked into `on_tray_icon_event`
2024-03-07 12:15:46 +01:00
Fabian-Lars 685c4094c5 ci: Change paths-filter's base to v2 branch (#1043)
Currently it compares it to the default branch (v1) which makes it always run all plugin checks. While i plan to change default branches soon i still need a bit more time for this.
2024-03-07 12:11:42 +01:00
Fabian-Lars c281df8d79 ci: Move cargo target dir to /mnt (#1039)
Currently our publishing workflow fails _twice_ because it runs out of disk space. https://github.com/tauri-apps/plugins-workspace/actions/runs/8182433330/job/22373757645#step:8:8499

A month ago github changed the azure vms for public repos which resulted in a size decrease of the root partition by ~10gb (though i kinda doubt this is the sole reason because it doesn't fail once, but twice).
At the same time the /mnt partition was increased to a whopping 75gb, over 60gb of it unused, since the root partition only has ~20gb free space we'll let rust save its artifact into /mnt hoping that we're actually dealing with space issues and not something else...
2024-03-07 11:56:39 +01:00
Tony 79691e93e0 fix(store): with_store and StoreCollection become private in #1011 (#1040)
* Fix with_store become private in #1011

* Add change file
2024-03-07 11:52:33 +01:00
Victor Aremu 30295ecc8e feat: improve stronghold readme (#1027)
* fix: typo

* feat: update client package install commands

* refactor: instruct user to copy code if unable to install via monorepo
2024-03-06 04:13:59 +02:00
renovate[bot] ea294c776a chore(deps): update dependency vite to v5.1.5 (#1024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-05 08:26:48 +01:00
renovate[bot] 19aa220411 chore(deps): update typescript-eslint monorepo to v7.1.1 (#1022)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 19:03:16 +01:00
Victor Aremu 85c4b8b67a feat: Improve Stronghold README with usage examples (#1013)
* docs: add example password hashing using rust-argon2 crate

* feat: add client side usage

* update the todo  comment
2024-03-04 17:19:51 +02:00
FabianLars ed682dd96e chore: Run cargo fmt 2024-02-28 23:13:56 +01:00
Vova Yatsyuk c3c55d5b4e fix(autostart): Use full exe path on macos when LaunchAgent is used (#841) 2024-02-28 22:44:55 +01:00
tommyo 0d3b6b8aca feat(log): added attachLogger (#717) 2024-02-28 22:16:08 +01:00
renovate[bot] 67df245eee chore(deps): update typescript-eslint monorepo to v7.1.0 (#998)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 18:37:04 +01:00
Jarrodsz 382fc3a7bf chore(store): add AppSettings example (#573)
* basic example foundation

* add examples to workspace

* cleanup and load fix

* fmt

* reset lockfile

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-02-26 18:34:54 +01:00
Instinct 7c59242905 chore: fix typo in store plugin README.md (#997) 2024-02-26 17:32:39 +02:00
renovate[bot] da76481ad3 chore(deps): update dependency vite to v5.1.4 (#994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 12:30:21 +01:00
renovate[bot] 25aecc0074 chore(deps): update dependency eslint to v8.57.0 (#988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 14:38:10 +01:00
renovate[bot] 58176114f9 chore(deps): update typescript-eslint monorepo to v7.0.2 (#970)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 20:35:37 +01:00
renovate[bot] 4cc2e50d16 chore(deps): update dependency @tauri-apps/cli to v1.5.10 (#967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 16:04:43 +01:00
renovate[bot] e096f63bda chore(deps): update dependency rollup to v4.12.0 (#958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-16 16:56:06 +01:00
renovate[bot] 01211ff075 chore(deps): update typescript-eslint monorepo to v7 (#942)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:32:03 +01:00
renovate[bot] 9299c919c7 chore(deps): update dependency prettier to v3.2.5 (#906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:31:09 +01:00
renovate[bot] c7f92ddf2f chore(deps): update dependency rollup to v4.11.0 (#955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:25:24 +01:00
renovate[bot] 1adb912547 chore(deps): update dependency eslint-plugin-security to v2.1.1 (#953)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:13:57 +01:00
renovate[bot] 67405aed06 chore(deps): update typescript-eslint monorepo to v6.21.0 (#932)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-10 15:49:14 +01:00
renovate[bot] 8cb4e3d14d chore(deps): update dependency rollup to v4.10.0 (#936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-10 12:07:13 +01:00
Fabian-Lars 056a458d30 ci: Ignore RSA advisory outside of scheduled runs (#922) 2024-01-30 12:51:49 +01:00
renovate[bot] 9ca77efff2 chore(deps): update typescript-eslint monorepo to v6.20.0 (#920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 19:32:02 +01:00
Amr Bashir 70d99086de fix(window-state): restore window position if the one of the window corners intersects with monitor (#898)
* fix(window-state): restore window positions that matches monitor positions
closes #892

* check for intersections of any window corner instead of only top-left
2024-01-25 01:48:46 +02:00
renovate[bot] 035a4824d6 chore(deps): update typescript-eslint monorepo to v6.19.1 (#915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 22:08:44 +01:00
renovate[bot] cd7549f22e chore(deps): update dependency rollup to v4.9.6 (#914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-21 14:56:28 +01:00
renovate[bot] 38aedb45e3 chore(deps): update dependency eslint-config-standard-with-typescript to v43.0.1 (#911)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 12:12:00 +01:00
dependabot[bot] 32a5f92c8f chore(deps-dev): bump vite from 5.0.6 to 5.0.12 (#910)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.6 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 12:04:33 +01:00
Fabian-Lars cf00900298 fix(upload): Prevent duplicate progress reports when using Promise.all (#908)
* fix(upload): Prevent duplicate progress reports when using Promise.all

* fmt
2024-01-17 16:45:26 +01:00
renovate[bot] 83f9899f78 chore(deps): update typescript-eslint monorepo to v6.19.0 (#896)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 22:07:58 +01:00
renovate[bot] c5e8cd31ec chore(deps): update dependency prettier to v3.2.2 (#893)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-14 14:39:43 +01:00
renovate[bot] 0cdbde386f chore(deps): update dependency prettier to v3.2.1 (#890)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 21:11:59 +01:00
renovate[bot] 2985957afc chore(deps): update dependency prettier to v3.2.0 (#889)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 21:00:16 +01:00
renovate[bot] fe09260483 chore(deps): update dependency rollup to v4.9.5 (#888)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 13:32:03 +01:00
renovate[bot] 775f7b88ed chore(deps): update dependency @rollup/plugin-typescript to v11.1.6 (#884)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 12:25:26 +01:00
renovate[bot] 39108ceacb chore(deps): update typescript-eslint monorepo to v6.18.1 (#881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 11:15:25 +01:00
renovate[bot] c00b00a93c chore(deps): update dependency eslint-plugin-n to v16.6.2 (#882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 08:59:00 +01:00
renovate[bot] d2ea535a16 chore(deps): update typescript-eslint monorepo to v6.18.0 (#879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-06 17:33:53 +01:00
renovate[bot] eec61a8a6d chore(deps): update dependency rollup to v4.9.4 (#878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-06 17:22:44 +01:00
renovate[bot] 7701cf4107 chore(deps): update dependency rollup to v4.9.3 (#876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-05 12:51:33 +01:00
renovate[bot] 539b566fad chore(deps): update dependency eslint-plugin-n to v16.6.1 (#872)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-02 15:23:02 +01:00
renovate[bot] 3ffa47c0e8 chore(deps): update typescript-eslint monorepo to v6.17.0 (#871)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-01 20:28:06 +01:00
Matthias Lohscheidt df5a6483c2 docs(sql): Add migrations section to README (v1) (#870)
* Update sql plugin README.md

Add section about migration management.

* rm shell plugin (v2 only)

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-01-01 12:21:37 +01:00
renovate[bot] 27d610387c chore(deps): update dependency rollup to v4.9.2 (#864)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-30 14:56:02 +01:00
renovate[bot] 71d755f5f5 chore(deps): update dependency eslint-plugin-n to v16.6.0 (#863)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-29 15:17:10 +01:00
renovate[bot] 7c442019e1 chore(deps): update typescript-eslint monorepo to v6.16.0 (#852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-26 13:55:11 +01:00
renovate[bot] 9b99416965 fix(deps): update tauri monorepo (#815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-21 14:19:25 +01:00
Trevor Fitzgerald 7de603ebff fix(fs-watch): Fix DebouncedEvent type to match what notify-rs returns (#840) 2023-12-20 12:03:34 +01:00
renovate[bot] 35d821cbf1 chore(deps): update dependency eslint-plugin-n to v16.5.0 (#842)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 11:24:56 +01:00
renovate[bot] 563ca73de0 chore(deps): update typescript-eslint monorepo to v6.15.0 (#831)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-18 21:02:55 +01:00
renovate[bot] 27eb8c74af chore(deps): update dependency eslint-plugin-security to v2 (#817)
* chore(deps): update dependency eslint-plugin-security to v2

* legacy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-12-18 12:25:52 +01:00
renovate[bot] 4aa61dcc9e chore(deps): update dependency eslint-config-standard-with-typescript to v43 (#823)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-17 14:46:20 +01:00
renovate[bot] e6b6748085 chore(deps): update dependency eslint-plugin-import to v2.29.1 (#819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-17 13:49:00 +01:00
renovate[bot] 90fef3ae2d chore(deps): update dependency rollup to v4.9.1 (#827)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-17 13:39:08 +01:00
renovate[bot] cc352416e5 chore(deps): update dependency eslint to v8.56.0 (#822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-17 13:30:28 +01:00
renovate[bot] 5e73de50e7 chore(deps): update dependency rollup to v4.9.0 (#816)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-14 17:34:12 +01:00
FabianLars 46dfb75d92 Revert "fix(deps): update dependency @tauri-apps/api to v1.5.2 (#814)"
This reverts commit 3af968ce8f.
2023-12-12 11:18:20 +01:00
renovate[bot] 3af968ce8f fix(deps): update dependency @tauri-apps/api to v1.5.2 (#814)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 11:14:47 +01:00
renovate[bot] 4f8df2f86b chore(deps): update typescript-eslint monorepo to v6.14.0 (#813)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 20:33:27 +01:00
renovate[bot] 65ea3d9adf chore(deps): update dependency rollup to v4.8.0 (#807)
* chore(deps): update dependency rollup to v4.8.0

* dedupe

* let renovate run dedupe

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-12-11 09:45:39 +01:00
renovate[bot] 776ff9c97e chore(deps): update dependency eslint-plugin-n to v16.4.0 (#811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 08:11:50 +01:00
renovate[bot] 5c883bdd33 chore(deps): update dependency prettier to v3.1.1 (#809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-10 11:21:11 +01:00
renovate[bot] af2892f6a1 chore(deps): update dependency eslint-config-standard-with-typescript to v42 (#808)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 17:21:14 +01:00
Fabian-Lars a5792e220a chore: Update rustix in lockfile (#806)
https://github.com/tauri-apps/plugins-workspace/security/dependabot/36
2023-12-07 15:44:55 +01:00
Fabian-Lars eef088dde4 chore(websocket): Convert websocket example to vanilla ts (#805)
* chore(websocket): Convert ws example to vanilla-ts

* fix gitignore
2023-12-07 15:03:37 +01:00
renovate[bot] 8d00fc08f0 fix(deps): update rust crate tokio-tungstenite to 0.21 (#804)
* fix(deps): update rust crate tokio-tungstenite to 0.21

* http version mismatch

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-12-07 10:27:31 +01:00
renovate[bot] c7336bc330 chore(deps): update dependency typescript to v5.3.3 (#803)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 21:46:26 +01:00
renovate[bot] 84208e0a53 chore(deps): update dependency vite to v5.0.6 (#794)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 13:08:24 +01:00
renovate[bot] 2a28c81da6 chore(deps): update dependency vite to v5.0.5 [security] (#801)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 13:03:44 +01:00
renovate[bot] 56750d31e6 chore(deps): update dependency @sveltejs/kit to v1.27.7 (#799)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 19:38:37 +01:00
renovate[bot] 899c6262f8 chore(deps): update typescript-eslint monorepo to v6.13.2 (#795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 21:58:04 +01:00
renovate[bot] 6a19feca1d chore(deps): update dependency eslint-config-prettier to v9.1.0 (#790)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 11:20:43 +01:00
renovate[bot] ad5ec05e26 chore(deps): update dependency eslint to v8.55.0 (#789)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 08:04:18 +01:00
renovate[bot] b67dc85936 chore(deps): update dependency @tauri-apps/cli to v1.5.7 (#788)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-01 22:36:17 +01:00
Fabian-Lars b01da63d55 update ahash (#787) 2023-11-30 13:17:41 +01:00
renovate[bot] aabb440159 fix(deps): update rust crate http to v1 (#729)
* fix(deps): update rust crate http to v1

* Update Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-11-30 13:00:09 +01:00
renovate[bot] e1eb82fe92 fix(deps): update rust crate byte-unit to v5 (#764)
* fix(deps): update rust crate byte-unit to v5

* Update Cargo.toml [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-11-30 12:16:17 +01:00
renovate[bot] a18d442765 chore(deps): update dependency svelte to v4.2.8 (#786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-30 12:12:03 +01:00
renovate[bot] c98545b3ae fix(deps): update rust crate bytes to v1 (#783)
* fix(deps): update rust crate bytes to v1

* adapt api

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-11-30 12:04:44 +01:00
renovate[bot] 3df9bc73f8 chore(deps): update dependency rollup to v4.6.1 (#785)
* chore(deps): update dependency rollup to v4.6.1

* dedupe

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-11-30 10:35:45 +01:00
renovate[bot] 9b2e9ab6c9 chore(deps): update dependency @tauri-apps/cli to v1.5.6 (#778)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 14:34:45 +01:00
renovate[bot] e7b022d62e fix(deps): update rust crate byteorder to 1.5 (#781)
* fix(deps): update rust crate byteorder to 1.5

* Update Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-11-29 13:07:16 +01:00
renovate[bot] 4195240f36 chore(deps): update dependency vite to v5.0.4 (#779)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 13:05:47 +01:00
Fabian-Lars a67f7cb7c8 chore(authenticator): Inline u2f crate (#780)
* chore(authenticator): Inline u2f crate

* update chrono

* update rustix

* clippy
2023-11-29 12:56:26 +01:00
Fabian-Lars 3f7c4ddc96 chore: Add examples to root cargo workspace (#777)
* chore: Add examples to cargo workspace

* msrv

* disable default feat

* gitkeep dist
2023-11-29 12:04:37 +01:00
Fabian-Lars 12900556a0 Revert "chore: Disable workspace inheritance for [package] (#775)" (#776)
This reverts commit 4899ae007a.
2023-11-29 11:08:11 +01:00
Fabian-Lars 4899ae007a chore: Disable workspace inheritance for [package] (#775) 2023-11-29 10:59:04 +01:00
dependabot[bot] 3db81b4fe3 chore(deps): bump openssl from 0.10.56 to 0.10.60 (#773)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.56 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.56...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 09:14:31 +01:00
renovate[bot] bd4bf06e6c chore(deps): update dependency vite to v5.0.3 (#772)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 22:37:26 +01:00
renovate[bot] f780e87ee3 chore(deps): update typescript-eslint monorepo to v6.13.1 (#770)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 13:11:34 +01:00
renovate[bot] 537053d317 chore(deps): update dependency rollup to v4.6.0 (#765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-26 20:43:55 +01:00
renovate[bot] 4f9e58d751 chore(deps): update dependency svelte-check to v3.6.2 (#763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-24 18:38:09 +01:00
renovate[bot] e9a0803d95 chore(deps): update dependency rollup to v4.5.2 (#762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-24 13:12:14 +01:00
441 changed files with 6616 additions and 4184 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"clipboard-manager": "patch"
---
Expose `Clipboard` struct
+6
View File
@@ -0,0 +1,6 @@
---
"clipboard-manager": "minor"
"clipboard-manager-js": "minor"
---
Add support for `read_image` and `write_image` to the clipboard plugin (desktop).
+11
View File
@@ -0,0 +1,11 @@
---
"clipboard-manager": "patch"
---
Refactored the clipboard Rust APIs for more clarity and consistency:
- Changed `Clipboard::write_text` to take a string type instead of an enum.
- Changed `Clipboard::read_text` to return a string type instead of an enum.
- Changed `Clipboard::write_html` to take 2 string arguments instead of an enum.
- Changed `Clipboard::write_image` to take a reference to a `tauri::Image` instead of an enum.
- Removed `ClipKind` and `ClipboardContents` enums.
@@ -0,0 +1,5 @@
---
"clipboard-manager": patch
---
The `write` and `read` commands are now called `write_text` and `read_text` so the permission name was changed.
+5
View File
@@ -0,0 +1,5 @@
---
dialog: patch
---
Fixed an issue where the dialog apis panicked when they were called with no application windows open.
+5
View File
@@ -0,0 +1,5 @@
---
"dialog": "patch"
---
Fixed an issue where dialogs on android would return the Content URI instead of the file path
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Enhance the scope type to also allow a plain string representing the path to allow or deny.
+5
View File
@@ -0,0 +1,5 @@
---
"log-js": patch
---
Added `attachLogger` helper function to register a function that should be called for each log entry.
+5
View File
@@ -0,0 +1,5 @@
---
"single-instance": patch
---
Added the `semver` feature flag to make the single instance mechanism only trigger for semver compatible versions.
+5
View File
@@ -0,0 +1,5 @@
---
"websocket": patch
---
**Breaking change:** Enable rustls by default and added a method to configure the TLS Connector for tungstenite.
+5
View File
@@ -0,0 +1,5 @@
---
"autostart": patch
---
Fix LaunchAgent-based autostart for macOS.
+7
View File
@@ -0,0 +1,7 @@
---
"notification": patch
"barcode-scanner": patch
"dialog": patch
---
Fixes command argument parsing on iOS.
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Fixes an issue that caused the app to freeze when the `dialog`, `fs`, and `persisted-scope` plugins were used together.
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Fixes `watch` and `watchImmediate` which previously ignored the `baseDir` parameter.
+5
View File
@@ -0,0 +1,5 @@
---
"http": patch
---
**Breaking change:** Removed the `default-tls` feature flag. The `rustls-tls`, `http2`, `macos-system-configuration`, and `charset` feature flags are now enabled by default.
+5
View File
@@ -0,0 +1,5 @@
---
"http": patch
---
Fixes scope not allowing subpaths, query parameters and hash when those values are empty.
+5
View File
@@ -0,0 +1,5 @@
---
"updater": patch
---
Add a `on_before_exit` hook for cleanup before spawning the updater on Windows, defaults to `app.cleanup_before_exit` when used through `UpdaterExt`
+5
View File
@@ -0,0 +1,5 @@
---
"updater": patch
---
**Breaking change:** The `rustls-tls` feature flag is now enabled by default.
@@ -0,0 +1,5 @@
---
"updater": patch
---
Fix deserialization of `windows > installerArgs` config field.
+5
View File
@@ -0,0 +1,5 @@
---
"updater": patch
---
On Windows, fallback to `passive` install mode when not defined in config.
@@ -0,0 +1,5 @@
---
"updater": patch
---
Fix Windows powershell window flashing on update
+32
View File
@@ -0,0 +1,32 @@
---
"authenticator": patch
"autostart": patch
"barcode-scanner": patch
"biometric": patch
"cli": patch
"clipboard-manager": patch
"deep-link": patch
"dialog": patch
"fs": patch
"global-shortcut": patch
"http": patch
"localhost": patch
"log-plugin": patch
"nfc": patch
"notification": patch
"os": patch
"persisted-scope": patch
"positioner": patch
"process": patch
"shell": patch
"single-instance": patch
"sql": patch
"store": patch
"stronghold": patch
"updater": patch
"upload": patch
"websocket": patch
"window-state": patch
---
The global API script is now only added to the binary when the `withGlobalTauri` config is true.
+11
View File
@@ -0,0 +1,11 @@
---
"global-shortcut": "patch"
"global-shortcut-js": "patch"
---
Refactored APIs to introduce new pressed and released events:
- Added `ShortcutEvent` and `ShortcutState` types in Rust.
- Changed the handler function passed to `GlobalShortcut::on_shortcut`, `GlobalShortcut::on_all_shortcuts` and `Builder::with_handler` to take a 3rd argument of type `ShortcutEvent`.
- Added `ShortcutEvent` interface in JS.
- Changed `ShortcutHandler` type alias (which affects the JS `register` and `registerAll` APIs) to take `ShortcutEvent` instead of a string.
+9
View File
@@ -0,0 +1,9 @@
---
"global-shortcut": "patch"
---
**Breaking change** Refactored the plugin Rust APIs for better DX and flexibility:
- Changed `Builder::with_handler` to be a method instead of a static method, it will also be triggered for any and all shortcuts even if the shortcut is registered through JS.
- Added `Builder::with_shortcut` and `Builder::with_shortcuts` to register shortcuts on the plugin builder.
- Added `on_shortcut` and `on_all_shortcuts` to register shortcuts with a handler.
+5
View File
@@ -0,0 +1,5 @@
---
"http": patch
---
Add `unsafe-headers` cargo feature flag to allow using [forbidden headers](https://fetch.spec.whatwg.org/#terminology-headers).
+5
View File
@@ -0,0 +1,5 @@
---
"notification": patch
---
Fix development mode check to set the app ID on macOS.
+45 -1
View File
@@ -2,18 +2,62 @@
"tag": "beta",
"changes": [
".changes/beta.md",
".changes/clipboard-expose-struct.md",
".changes/clipboard-html.md",
".changes/clipboard-manager-image.md",
".changes/clipboard-refactor.md",
".changes/clipboard-text-command-rename.md",
".changes/dialog-can-create-directories.md",
".changes/dialog-linux-freeze.md",
".changes/dialog-main-thread.md",
".changes/dialog-path-return-mismatch.md",
".changes/enhance-fs-scope-type.md",
".changes/enhance-http-scope.md",
".changes/feat-log-attachlogger.md",
".changes/feat-single-instance-semver.md",
".changes/feat-websocket-tls-connector.md",
".changes/file-autogen-fix.md",
".changes/fix-autolaunch-macos.md",
".changes/fix-default-arg-value.md",
".changes/fix-fs-scope-deadlock.md",
".changes/fix-fs-watcher-basedir.md",
".changes/fix-http-default-features.md",
".changes/fix-http-scope-url-match.md",
".changes/fix-shutdown-timing.md",
".changes/fix-updater-cleanup.md",
".changes/fix-updater-default-features.md",
".changes/fix-updater-installer-args-deserialization.md",
".changes/fix-updater-installmode.md",
".changes/fix-updater-powershell-flashing.md",
".changes/fix-zbus-import.md",
".changes/global-api-script-refactor.md",
".changes/global-hotkey-event.md",
".changes/global-shortcut-refactor.md",
".changes/http-unsafe-headers.md",
".changes/http-user-agent.md",
".changes/msrv-1.75.md",
".changes/notification-fix-dev-check.md",
".changes/public-with-store.md",
".changes/remove-unc-path-prefix.md",
".changes/reqwest-0.12.md",
".changes/restore-default-window-state.md",
".changes/scoped-resources-table.md",
".changes/shell-fix-schema-command-property-name.md",
".changes/shell-shellexcute.md",
".changes/single-instance.macos.md",
".changes/tauri-beta-14-dependencies.md",
".changes/tauri-beta-14.md",
".changes/tauri-beta-15.md",
".changes/tauri-beta-17.md",
".changes/tauri-beta-4.md",
".changes/tauri-beta-8.md",
".changes/tauri-beta-9.md"
".changes/tauri-beta-9.md",
".changes/updater-non-zip.md",
".changes/upload-returnval.md",
".changes/watcher-debouncer-rename.md",
".changes/window-state-custom-filename.md",
".changes/window-state-default-filename.md",
".changes/window-state-js-binding.md",
".changes/window-state-json.md"
]
}
+5
View File
@@ -0,0 +1,5 @@
---
'store': patch
---
Fix `with_store` and `StoreCollection` changed to private in #1011
+7
View File
@@ -0,0 +1,7 @@
---
dialog: patch
fs: patch
store: patch
---
**Breaking Change:** All apis that return paths to the frontend will now remove the `\\?\` UNC prefix on Windows.
+5
View File
@@ -0,0 +1,5 @@
---
"upload": patch
---
**Breaking change**: Removed http3 feature and added http2 feature.
+5
View File
@@ -0,0 +1,5 @@
---
"window-state": patch
---
Fix `restore_window` doesn't work with `skip_initial_state` when no previous cache was found
+8
View File
@@ -0,0 +1,8 @@
---
"fs": "patch"
"http": "patch"
"updater": "patch"
"clipboard-manager": "patch"
---
Internally use the webview scoped resources table instead of the app one, so other webviews can't access other webviews resources.
@@ -0,0 +1,5 @@
---
"shell": "patch"
---
Change shell's schema property name `command` to `cmd`.
+5
View File
@@ -0,0 +1,5 @@
---
"single-instance": patch
---
Added implementation for MacOS.
+8
View File
@@ -0,0 +1,8 @@
---
"authenticator": patch
"http": patch
"updater": patch
"upload": patch
---
Update dependencies to align with tauri 2.0.0-beta.14.
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Update for tauri 2.0.0-beta.14.
+8
View File
@@ -0,0 +1,8 @@
---
"fs": patch
"http": patch
"updater": patch
"clipboard-manager": patch
---
Update for tauri 2.0.0-beta.15.
+57
View File
@@ -0,0 +1,57 @@
---
"authenticator": patch
"autostart": patch
"barcode-scanner": patch
"biometric": patch
"cli": patch
"clipboard-manager": patch
"deep-link": patch
"dialog": patch
"fs": patch
"global-shortcut": patch
"http": patch
"localhost": patch
"log-plugin": patch
"nfc": patch
"notification": patch
"os": patch
"persisted-scope": patch
"positioner": patch
"process": patch
"shell": patch
"single-instance": patch
"sql": patch
"store": patch
"stronghold": patch
"updater": patch
"upload": patch
"websocket": patch
"window-state": patch
"authenticator-js": patch
"autostart-js": patch
"barcode-scanner-js": patch
"biometric-js": patch
"cli-js": patch
"clipboard-manager-js": patch
"deep-link-js": patch
"dialog-js": patch
"fs-js": patch
"global-shortcut-js": patch
"http-js": patch
"log-js": patch
"nfc-js": patch
"notification-js": patch
"os-js": patch
"positioner-js": patch
"process-js": patch
"shell-js": patch
"sql-js": patch
"store-js": patch
"stronghold-js": patch
"updater-js": patch
"upload-js": patch
"websocket-js": patch
"window-state-js": patch
---
Update to tauri beta.17.
+5
View File
@@ -0,0 +1,5 @@
---
"updater": "patch"
---
Add support for updating using non-zipped files on Windows and Linux.
+6
View File
@@ -0,0 +1,6 @@
---
"upload": patch
"upload-js": patch
---
Return the upload response as a string and error out if the status code is not within 200-299.
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Fixes `RenameMode::From` and `RenameMode::To` never getting converted to `RenameMode::Both` when using `watch` with a debounce on Windows
+6
View File
@@ -0,0 +1,6 @@
---
"window-state": "patch"
"window-state-js": "patch"
---
Add `Builder::with_filename` to support using a custom filename. Also add `AppHandleExt::file_name` and a similar function in JS, to retrieve it later.
@@ -0,0 +1,5 @@
---
"window-state": "patch"
---
**Breaking change**: Renamed `STATE_FILENAME` const to `DEFAULT_FILENAME`.
+5
View File
@@ -0,0 +1,5 @@
---
"window-state": patch
---
Fix `restore_window` and `filename` js binding missing permission
+5
View File
@@ -0,0 +1,5 @@
---
"window-state": patch
---
**Breaking change**: Changed the format of the state file from bincode to json. Also changed the filename to from `.window-state` to `.window-state.json`.
+3 -1
View File
@@ -5,4 +5,6 @@ build/
dist-js
api-iife.js
init-iife.js
init.js
init.js
rollup.config.js
examples/
+3 -1
View File
@@ -4,6 +4,7 @@
"es2021": true
},
"extends": [
"love",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
@@ -13,7 +14,8 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"project": ["**/tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"rules": {}
+2 -2
View File
@@ -43,10 +43,10 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "lts/*"
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: audit
run: pnpm audit
+2 -2
View File
@@ -132,10 +132,10 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "lts/*"
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: build api
@@ -30,7 +30,7 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: install webkit2gtk and libudev for [authenticator]
@@ -46,10 +46,17 @@ jobs:
git config --global user.name "${{ github.event.pusher.name }}"
git config --global user.email "${{ github.event.pusher.email }}"
- name: Setup target dir on /mnt
run: |
sudo mkdir /mnt/target
WORKSPACE_OWNER="$(stat -c '%U:%G' "${GITHUB_WORKSPACE}")"
sudo chown -R "${WORKSPACE_OWNER}" /mnt/target
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0
id: covector
env:
CARGO_TARGET_DIR: /mnt/target
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
@@ -64,5 +71,5 @@ jobs:
title: "Publish New Versions (v2)"
commit-message: "publish new versions"
labels: "version updates"
branch: "release-v2"
branch: "ci/release-v2"
body: ${{ steps.covector.outputs.change }}
@@ -30,7 +30,7 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: install webkit2gtk and libudev for [authenticator]
@@ -64,5 +64,5 @@ jobs:
title: "Publish New Versions"
commit-message: "publish new versions"
labels: "version updates"
branch: "release"
branch: "ci/release-v1"
body: ${{ steps.covector.outputs.change }}
+4 -4
View File
@@ -46,10 +46,10 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "lts/*"
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: eslint
run: pnpm lint
@@ -66,10 +66,10 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "lts/*"
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: prettier check
run: pnpm format-check
+2 -2
View File
@@ -34,11 +34,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: "lts/*"
- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: 8.x.x
run_install: true
- name: Build packages
+7 -6
View File
@@ -42,6 +42,7 @@ jobs:
- uses: dorny/paths-filter@v2
id: filter
with:
base: v2
filters: |
tauri-plugin-authenticator:
- .github/workflows/test-rust.yml
@@ -130,31 +131,31 @@ jobs:
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
runner: 'cargo',
runner: "cargo",
command: "test",
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
runner: 'cargo',
runner: "cargo",
command: "test",
}
- {
target: x86_64-apple-darwin,
target: aarch64-apple-darwin,
os: macos-latest,
runner: 'cargo',
runner: "cargo",
command: "test",
}
- {
target: aarch64-apple-ios,
os: macos-latest,
runner: 'cargo',
runner: "cargo",
command: "build",
}
- {
target: aarch64-linux-android,
os: ubuntu-latest,
runner: 'cross',
runner: "cross",
command: "build",
}
Generated
+704 -1093
View File
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -10,19 +10,21 @@ resolver = "2"
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
log = "0.4"
tauri = "2.0.0-beta.9"
tauri-build = "2.0.0-beta.7"
tauri-plugin = "2.0.0-beta.7"
tauri = "2.0.0-beta.17"
tauri-build = "2.0.0-beta.13"
tauri-plugin = "2.0.0-beta.13"
serde_json = "1"
thiserror = "1"
url = "2"
schemars = "0.8"
dunce = "1"
[workspace.package]
edition = "2021"
authors = ["Tauri Programme within The Commons Conservancy"]
license = "Apache-2.0 OR MIT"
rust-version = "1.75"
repository = "https://github.com/tauri-apps/plugins-workspace"
# default to small, optimized release binaries
[profile.release]
+32
View File
@@ -1,5 +1,37 @@
# Changelog
## \[2.0.0-beta.5]
### Dependencies
- Upgraded to `global-shortcut-js@2.0.0-beta.3`
- Upgraded to `barcode-scanner-js@2.0.0-beta.3`
- Upgraded to `biometric-js@2.0.0-beta.3`
- Upgraded to `cli-js@2.0.0-beta.3`
- Upgraded to `clipboard-manager-js@2.1.0-beta.1`
- Upgraded to `dialog-js@2.0.0-beta.3`
- Upgraded to `fs-js@2.0.0-beta.3`
- Upgraded to `http-js@2.0.0-beta.3`
- Upgraded to `log-js@2.0.0-beta.4`
- Upgraded to `nfc-js@2.0.0-beta.3`
- Upgraded to `notification-js@2.0.0-beta.3`
- Upgraded to `os-js@2.0.0-beta.3`
- Upgraded to `process-js@2.0.0-beta.3`
- Upgraded to `shell-js@2.0.0-beta.3`
- Upgraded to `updater-js@2.0.0-beta.3`
## \[2.0.0-beta.4]
### Dependencies
- Upgraded to `log-js@2.0.0-beta.3`
## \[2.0.0-beta.3]
### Dependencies
- Upgraded to `clipboard-manager-js@2.1.0-beta.0`
## \[2.0.0-beta.2]
### Dependencies
+21 -21
View File
@@ -1,7 +1,7 @@
{
"name": "svelte-app",
"private": true,
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.5",
"type": "module",
"scripts": {
"dev": "vite --clearScreen false",
@@ -9,32 +9,32 @@
"serve": "vite preview"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-beta.4",
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.2",
"@tauri-apps/plugin-biometric": "2.0.0-beta.2",
"@tauri-apps/plugin-cli": "2.0.0-beta.2",
"@tauri-apps/plugin-clipboard-manager": "2.0.0-beta.2",
"@tauri-apps/plugin-dialog": "2.0.0-beta.2",
"@tauri-apps/plugin-fs": "2.0.0-beta.2",
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.2",
"@tauri-apps/plugin-http": "2.0.0-beta.2",
"@tauri-apps/plugin-nfc": "2.0.0-beta.2",
"@tauri-apps/plugin-notification": "2.0.0-beta.2",
"@tauri-apps/plugin-os": "2.0.0-beta.2",
"@tauri-apps/plugin-process": "2.0.0-beta.2",
"@tauri-apps/plugin-shell": "2.0.0-beta.2",
"@tauri-apps/plugin-updater": "2.0.0-beta.2",
"@zerodevx/svelte-json-view": "1.0.7"
"@tauri-apps/api": "2.0.0-beta.11",
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.3",
"@tauri-apps/plugin-biometric": "2.0.0-beta.3",
"@tauri-apps/plugin-cli": "2.0.0-beta.3",
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.1",
"@tauri-apps/plugin-dialog": "2.0.0-beta.3",
"@tauri-apps/plugin-fs": "2.0.0-beta.3",
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.3",
"@tauri-apps/plugin-http": "2.0.0-beta.3",
"@tauri-apps/plugin-nfc": "2.0.0-beta.3",
"@tauri-apps/plugin-notification": "2.0.0-beta.3",
"@tauri-apps/plugin-os": "2.0.0-beta.3",
"@tauri-apps/plugin-process": "2.0.0-beta.3",
"@tauri-apps/plugin-shell": "2.0.0-beta.3",
"@tauri-apps/plugin-updater": "2.0.0-beta.3",
"@zerodevx/svelte-json-view": "1.0.9"
},
"devDependencies": {
"@iconify-json/codicon": "^1.1.37",
"@iconify-json/ph": "^1.1.8",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tauri-apps/cli": "2.0.0-beta.7",
"@unocss/extractor-svelte": "^0.58.0",
"@tauri-apps/cli": "2.0.0-beta.15",
"@unocss/extractor-svelte": "^0.59.0",
"internal-ip": "^8.0.0",
"svelte": "^4.2.8",
"unocss": "^0.58.0",
"vite": "^5.0.12"
"unocss": "^0.59.0",
"vite": "^5.0.13"
}
}
+68
View File
@@ -1,5 +1,73 @@
# Changelog
## \[2.0.0-beta.7]
### Dependencies
- Upgraded to `clipboard-manager@2.1.0-beta.2`
- Upgraded to `global-shortcut@2.0.0-beta.4`
- Upgraded to `barcode-scanner@2.0.0-beta.5`
- Upgraded to `biometric@2.0.0-beta.4`
- Upgraded to `cli@2.0.0-beta.4`
- Upgraded to `dialog@2.0.0-beta.7`
- Upgraded to `fs@2.0.0-beta.7`
- Upgraded to `http@2.0.0-beta.7`
- Upgraded to `log-plugin@2.0.0-beta.4`
- Upgraded to `nfc@2.0.0-beta.4`
- Upgraded to `notification@2.0.0-beta.5`
- Upgraded to `os@2.0.0-beta.4`
- Upgraded to `process@2.0.0-beta.4`
- Upgraded to `shell@2.0.0-beta.4`
- Upgraded to `updater@2.0.0-beta.5`
## \[2.0.0-beta.6]
### Dependencies
- Upgraded to `notification@2.0.0-beta.4`
- Upgraded to `barcode-scanner@2.0.0-beta.4`
- Upgraded to `dialog@2.0.0-beta.6`
- Upgraded to `fs@2.0.0-beta.6`
- Upgraded to `http@2.0.0-beta.6`
## \[2.0.0-beta.5]
### Dependencies
- Upgraded to `clipboard-manager@2.1.0-beta.1`
- Upgraded to `http@2.0.0-beta.5`
- Upgraded to `updater@2.0.0-beta.4`
- Upgraded to `dialog@2.0.0-beta.5`
- Upgraded to `fs@2.0.0-beta.5`
## \[2.0.0-beta.4]
### Dependencies
- Upgraded to `dialog@2.0.0-beta.4`
- Upgraded to `fs@2.0.0-beta.4`
- Upgraded to `http@2.0.0-beta.4`
## \[2.0.0-beta.3]
### Dependencies
- Upgraded to `clipboard-manager@2.1.0-beta.0`
- Upgraded to `dialog@2.0.0-beta.3`
- Upgraded to `fs@2.0.0-beta.3`
- Upgraded to `http@2.0.0-beta.3`
- Upgraded to `updater@2.0.0-beta.3`
- Upgraded to `barcode-scanner@2.0.0-beta.3`
- Upgraded to `biometric@2.0.0-beta.3`
- Upgraded to `cli@2.0.0-beta.3`
- Upgraded to `global-shortcut@2.0.0-beta.3`
- Upgraded to `log-plugin@2.0.0-beta.3`
- Upgraded to `nfc@2.0.0-beta.3`
- Upgraded to `notification@2.0.0-beta.3`
- Upgraded to `os@2.0.0-beta.3`
- Upgraded to `process@2.0.0-beta.3`
- Upgraded to `shell@2.0.0-beta.3`
## \[2.0.0-beta.2]
### Dependencies
+17 -17
View File
@@ -1,7 +1,7 @@
[package]
name = "api"
publish = false
version = "2.0.0-beta.2"
version = "2.0.0-beta.7"
description = "An example Tauri Application showcasing the api"
edition = "2021"
rust-version = { workspace = true }
@@ -17,17 +17,17 @@ tauri-build = { workspace = true, features = [ "codegen", "isolation" ] }
[dependencies]
serde_json = { workspace = true }
serde = { workspace = true }
tiny_http = "0.11"
tiny_http = "0.12"
log = { workspace = true }
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.2" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.2", features = [ "watch" ] }
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-beta.2" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.2" }
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.2" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.2", features = [ "windows7-compat" ] }
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.2" }
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.2" }
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.2" }
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.4" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.7", features = [ "watch" ] }
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.1.0-beta.2" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.7" }
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.7" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.5", features = [ "windows7-compat" ] }
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.4" }
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.4" }
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.4" }
[dependencies.tauri]
workspace = true
@@ -41,14 +41,14 @@ tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.2"
]
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.2" }
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.2" }
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.2" }
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.4" }
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.4" }
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.5" }
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.2" }
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.2" }
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.2" }
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.5" }
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.4" }
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.4" }
[target."cfg(target_os = \"windows\")".dependencies]
window-shadows = "0.2"
+15 -7
View File
@@ -8,6 +8,7 @@
{
"identifier": "http:default",
"allow": [
"https://tauri.app",
{
"url": "http://localhost:3003"
}
@@ -21,9 +22,16 @@
"tray:default",
"event:default",
"window:default",
"window:allow-minimize",
"window:allow-maximize",
"window:allow-unmaximize",
"window:allow-close",
"window:allow-start-dragging",
"image:default",
"notification:default",
"os:allow-platform",
"dialog:allow-open",
"dialog:allow-ask",
"dialog:allow-save",
"dialog:allow-confirm",
"dialog:allow-message",
@@ -54,8 +62,12 @@
},
"shell:allow-kill",
"shell:allow-stdin-write",
"clipboard-manager:allow-read",
"clipboard-manager:allow-write",
"process:allow-exit",
"process:allow-restart",
"clipboard-manager:allow-read-text",
"clipboard-manager:allow-write-text",
"clipboard-manager:allow-read-image",
"clipboard-manager:allow-write-image",
"fs:allow-rename",
"fs:allow-mkdir",
"fs:allow-remove",
@@ -69,11 +81,7 @@
"path": "$APPDATA/db/**"
}
],
"deny": [
{
"path": "$APPDATA/db/*.stronghold"
}
]
"deny": ["$APPDATA/db/*.stronghold"]
}
]
}
File diff suppressed because it is too large Load Diff
@@ -11,6 +11,13 @@
}
]
},
{
"description": "A list of capabilities.",
"type": "array",
"items": {
"$ref": "#/definitions/Capability"
}
},
{
"description": "A list of capabilities.",
"type": "object",
@@ -34,8 +41,7 @@
"type": "object",
"required": [
"identifier",
"permissions",
"windows"
"permissions"
],
"properties": {
"identifier": {
@@ -86,14 +92,10 @@
},
"platforms": {
"description": "Target platforms this capability applies. By default all platforms are affected by this capability.",
"default": [
"linux",
"macOS",
"windows",
"android",
"iOS"
"type": [
"array",
"null"
],
"type": "array",
"items": {
"$ref": "#/definitions/Target"
}
@@ -108,7 +110,7 @@
],
"properties": {
"urls": {
"description": "Remote domains this capability refers to. Can use glob patterns.",
"description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n# Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
"type": "array",
"items": {
"type": "string"
@@ -182,7 +184,7 @@
]
},
{
"description": "fs:allow-app-write-recursive -> This allows full recusrive write access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete `$APP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-write-recursive"
@@ -224,7 +226,7 @@
]
},
{
"description": "fs:allow-appcache-write-recursive -> This allows full recusrive write access to the complete `$APPCACHE` folder, files and subdirectories.",
"description": "fs:allow-appcache-write-recursive -> This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appcache-write-recursive"
@@ -266,7 +268,7 @@
]
},
{
"description": "fs:allow-appconfig-write-recursive -> This allows full recusrive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
"description": "fs:allow-appconfig-write-recursive -> This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appconfig-write-recursive"
@@ -308,7 +310,7 @@
]
},
{
"description": "fs:allow-appdata-write-recursive -> This allows full recusrive write access to the complete `$APPDATA` folder, files and subdirectories.",
"description": "fs:allow-appdata-write-recursive -> This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appdata-write-recursive"
@@ -350,7 +352,7 @@
]
},
{
"description": "fs:allow-applocaldata-write-recursive -> This allows full recusrive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
"description": "fs:allow-applocaldata-write-recursive -> This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-applocaldata-write-recursive"
@@ -392,7 +394,7 @@
]
},
{
"description": "fs:allow-applog-write-recursive -> This allows full recusrive write access to the complete `$APPLOG` folder, files and subdirectories.",
"description": "fs:allow-applog-write-recursive -> This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-applog-write-recursive"
@@ -434,7 +436,7 @@
]
},
{
"description": "fs:allow-audio-write-recursive -> This allows full recusrive write access to the complete `$AUDIO` folder, files and subdirectories.",
"description": "fs:allow-audio-write-recursive -> This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-audio-write-recursive"
@@ -476,7 +478,7 @@
]
},
{
"description": "fs:allow-cache-write-recursive -> This allows full recusrive write access to the complete `$CACHE` folder, files and subdirectories.",
"description": "fs:allow-cache-write-recursive -> This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-cache-write-recursive"
@@ -518,7 +520,7 @@
]
},
{
"description": "fs:allow-config-write-recursive -> This allows full recusrive write access to the complete `$CONFIG` folder, files and subdirectories.",
"description": "fs:allow-config-write-recursive -> This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-config-write-recursive"
@@ -560,7 +562,7 @@
]
},
{
"description": "fs:allow-data-write-recursive -> This allows full recusrive write access to the complete `$DATA` folder, files and subdirectories.",
"description": "fs:allow-data-write-recursive -> This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-data-write-recursive"
@@ -602,7 +604,7 @@
]
},
{
"description": "fs:allow-desktop-write-recursive -> This allows full recusrive write access to the complete `$DESKTOP` folder, files and subdirectories.",
"description": "fs:allow-desktop-write-recursive -> This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-desktop-write-recursive"
@@ -644,7 +646,7 @@
]
},
{
"description": "fs:allow-document-write-recursive -> This allows full recusrive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
"description": "fs:allow-document-write-recursive -> This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-document-write-recursive"
@@ -686,7 +688,7 @@
]
},
{
"description": "fs:allow-download-write-recursive -> This allows full recusrive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
"description": "fs:allow-download-write-recursive -> This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-download-write-recursive"
@@ -728,7 +730,7 @@
]
},
{
"description": "fs:allow-exe-write-recursive -> This allows full recusrive write access to the complete `$EXE` folder, files and subdirectories.",
"description": "fs:allow-exe-write-recursive -> This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-exe-write-recursive"
@@ -770,7 +772,7 @@
]
},
{
"description": "fs:allow-font-write-recursive -> This allows full recusrive write access to the complete `$FONT` folder, files and subdirectories.",
"description": "fs:allow-font-write-recursive -> This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-font-write-recursive"
@@ -812,7 +814,7 @@
]
},
{
"description": "fs:allow-home-write-recursive -> This allows full recusrive write access to the complete `$HOME` folder, files and subdirectories.",
"description": "fs:allow-home-write-recursive -> This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-home-write-recursive"
@@ -854,7 +856,7 @@
]
},
{
"description": "fs:allow-localdata-write-recursive -> This allows full recusrive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
"description": "fs:allow-localdata-write-recursive -> This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-localdata-write-recursive"
@@ -896,7 +898,7 @@
]
},
{
"description": "fs:allow-log-write-recursive -> This allows full recusrive write access to the complete `$LOG` folder, files and subdirectories.",
"description": "fs:allow-log-write-recursive -> This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-log-write-recursive"
@@ -938,7 +940,7 @@
]
},
{
"description": "fs:allow-picture-write-recursive -> This allows full recusrive write access to the complete `$PICTURE` folder, files and subdirectories.",
"description": "fs:allow-picture-write-recursive -> This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-picture-write-recursive"
@@ -980,7 +982,7 @@
]
},
{
"description": "fs:allow-public-write-recursive -> This allows full recusrive write access to the complete `$PUBLIC` folder, files and subdirectories.",
"description": "fs:allow-public-write-recursive -> This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-public-write-recursive"
@@ -1022,7 +1024,7 @@
]
},
{
"description": "fs:allow-resource-write-recursive -> This allows full recusrive write access to the complete `$RESOURCE` folder, files and subdirectories.",
"description": "fs:allow-resource-write-recursive -> This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-resource-write-recursive"
@@ -1064,7 +1066,7 @@
]
},
{
"description": "fs:allow-runtime-write-recursive -> This allows full recusrive write access to the complete `$RUNTIME` folder, files and subdirectories.",
"description": "fs:allow-runtime-write-recursive -> This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-runtime-write-recursive"
@@ -1106,7 +1108,7 @@
]
},
{
"description": "fs:allow-temp-write-recursive -> This allows full recusrive write access to the complete `$TEMP` folder, files and subdirectories.",
"description": "fs:allow-temp-write-recursive -> This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-temp-write-recursive"
@@ -1148,7 +1150,7 @@
]
},
{
"description": "fs:allow-template-write-recursive -> This allows full recusrive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
"description": "fs:allow-template-write-recursive -> This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-template-write-recursive"
@@ -1190,7 +1192,7 @@
]
},
{
"description": "fs:allow-video-write-recursive -> This allows full recusrive write access to the complete `$VIDEO` folder, files and subdirectories.",
"description": "fs:allow-video-write-recursive -> This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-video-write-recursive"
@@ -2131,30 +2133,50 @@
},
"allow": {
"items": {
"title": "Entry",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"title": "FsScopeEntry",
"description": "FS scope entry.",
"anyOf": [
{
"description": "FS scope path.",
"type": "string"
},
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "FS scope path.",
"type": "string"
}
}
}
}
]
}
},
"deny": {
"items": {
"title": "Entry",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"title": "FsScopeEntry",
"description": "FS scope entry.",
"anyOf": [
{
"description": "FS scope path.",
"type": "string"
},
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "FS scope path.",
"type": "string"
}
}
}
}
]
}
}
}
@@ -2234,8 +2256,8 @@
},
"allow": {
"items": {
"title": "ScopeEntry",
"description": "HTTP scope entry object definition.",
"title": "HttpScopeEntry",
"description": "HTTP scope entry.",
"anyOf": [
{
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
@@ -2258,8 +2280,8 @@
},
"deny": {
"items": {
"title": "ScopeEntry",
"description": "HTTP scope entry object definition.",
"title": "HttpScopeEntry",
"description": "HTTP scope entry.",
"anyOf": [
{
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
@@ -2290,6 +2312,12 @@
"properties": {
"identifier": {
"oneOf": [
{
"type": "string",
"enum": [
"shell:default"
]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
@@ -2355,7 +2383,7 @@
"type": "object",
"required": [
"args",
"command",
"cmd",
"name",
"sidecar"
],
@@ -2368,7 +2396,7 @@
}
]
},
"command": {
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
@@ -2390,7 +2418,7 @@
"type": "object",
"required": [
"args",
"command",
"cmd",
"name",
"sidecar"
],
@@ -2403,7 +2431,7 @@
}
]
},
"command": {
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
@@ -2503,6 +2531,12 @@
"app:deny-version"
]
},
{
"type": "string",
"enum": [
"barcode-scanner:default"
]
},
{
"description": "barcode-scanner:allow-cancel -> Enables the cancel command without any pre-configured scope.",
"type": "string",
@@ -2587,6 +2621,12 @@
"barcode-scanner:deny-vibrate"
]
},
{
"type": "string",
"enum": [
"biometric:default"
]
},
{
"description": "biometric:allow-authenticate -> Enables the authenticate command without any pre-configured scope.",
"type": "string",
@@ -2616,31 +2656,99 @@
]
},
{
"description": "clipboard-manager:allow-read -> Enables the read command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:allow-read"
"clipboard-manager:default"
]
},
{
"description": "clipboard-manager:allow-write -> Enables the write command without any pre-configured scope.",
"description": "clipboard-manager:allow-clear -> Enables the clear command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:allow-write"
"clipboard-manager:allow-clear"
]
},
{
"description": "clipboard-manager:deny-read -> Denies the read command without any pre-configured scope.",
"description": "clipboard-manager:allow-read-image -> Enables the read_image command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-read"
"clipboard-manager:allow-read-image"
]
},
{
"description": "clipboard-manager:deny-write -> Denies the write command without any pre-configured scope.",
"description": "clipboard-manager:allow-read-text -> Enables the read_text command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-write"
"clipboard-manager:allow-read-text"
]
},
{
"description": "clipboard-manager:allow-write-html -> Enables the write_html command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:allow-write-html"
]
},
{
"description": "clipboard-manager:allow-write-image -> Enables the write_image command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:allow-write-image"
]
},
{
"description": "clipboard-manager:allow-write-text -> Enables the write_text command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:allow-write-text"
]
},
{
"description": "clipboard-manager:deny-clear -> Denies the clear command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-clear"
]
},
{
"description": "clipboard-manager:deny-read-image -> Denies the read_image command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-read-image"
]
},
{
"description": "clipboard-manager:deny-read-text -> Denies the read_text command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-read-text"
]
},
{
"description": "clipboard-manager:deny-write-html -> Denies the write_html command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-write-html"
]
},
{
"description": "clipboard-manager:deny-write-image -> Denies the write_image command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-write-image"
]
},
{
"description": "clipboard-manager:deny-write-text -> Denies the write_text command without any pre-configured scope.",
"type": "string",
"enum": [
"clipboard-manager:deny-write-text"
]
},
{
"type": "string",
"enum": [
"dialog:default"
]
},
{
@@ -2812,7 +2920,7 @@
]
},
{
"description": "fs:allow-app-write-recursive -> This allows full recusrive write access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete `$APP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-write-recursive"
@@ -2854,7 +2962,7 @@
]
},
{
"description": "fs:allow-appcache-write-recursive -> This allows full recusrive write access to the complete `$APPCACHE` folder, files and subdirectories.",
"description": "fs:allow-appcache-write-recursive -> This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appcache-write-recursive"
@@ -2896,7 +3004,7 @@
]
},
{
"description": "fs:allow-appconfig-write-recursive -> This allows full recusrive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
"description": "fs:allow-appconfig-write-recursive -> This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appconfig-write-recursive"
@@ -2938,7 +3046,7 @@
]
},
{
"description": "fs:allow-appdata-write-recursive -> This allows full recusrive write access to the complete `$APPDATA` folder, files and subdirectories.",
"description": "fs:allow-appdata-write-recursive -> This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-appdata-write-recursive"
@@ -2980,7 +3088,7 @@
]
},
{
"description": "fs:allow-applocaldata-write-recursive -> This allows full recusrive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
"description": "fs:allow-applocaldata-write-recursive -> This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-applocaldata-write-recursive"
@@ -3022,7 +3130,7 @@
]
},
{
"description": "fs:allow-applog-write-recursive -> This allows full recusrive write access to the complete `$APPLOG` folder, files and subdirectories.",
"description": "fs:allow-applog-write-recursive -> This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-applog-write-recursive"
@@ -3064,7 +3172,7 @@
]
},
{
"description": "fs:allow-audio-write-recursive -> This allows full recusrive write access to the complete `$AUDIO` folder, files and subdirectories.",
"description": "fs:allow-audio-write-recursive -> This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-audio-write-recursive"
@@ -3106,7 +3214,7 @@
]
},
{
"description": "fs:allow-cache-write-recursive -> This allows full recusrive write access to the complete `$CACHE` folder, files and subdirectories.",
"description": "fs:allow-cache-write-recursive -> This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-cache-write-recursive"
@@ -3148,7 +3256,7 @@
]
},
{
"description": "fs:allow-config-write-recursive -> This allows full recusrive write access to the complete `$CONFIG` folder, files and subdirectories.",
"description": "fs:allow-config-write-recursive -> This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-config-write-recursive"
@@ -3190,7 +3298,7 @@
]
},
{
"description": "fs:allow-data-write-recursive -> This allows full recusrive write access to the complete `$DATA` folder, files and subdirectories.",
"description": "fs:allow-data-write-recursive -> This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-data-write-recursive"
@@ -3232,7 +3340,7 @@
]
},
{
"description": "fs:allow-desktop-write-recursive -> This allows full recusrive write access to the complete `$DESKTOP` folder, files and subdirectories.",
"description": "fs:allow-desktop-write-recursive -> This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-desktop-write-recursive"
@@ -3274,7 +3382,7 @@
]
},
{
"description": "fs:allow-document-write-recursive -> This allows full recusrive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
"description": "fs:allow-document-write-recursive -> This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-document-write-recursive"
@@ -3316,7 +3424,7 @@
]
},
{
"description": "fs:allow-download-write-recursive -> This allows full recusrive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
"description": "fs:allow-download-write-recursive -> This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-download-write-recursive"
@@ -3358,7 +3466,7 @@
]
},
{
"description": "fs:allow-exe-write-recursive -> This allows full recusrive write access to the complete `$EXE` folder, files and subdirectories.",
"description": "fs:allow-exe-write-recursive -> This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-exe-write-recursive"
@@ -3400,7 +3508,7 @@
]
},
{
"description": "fs:allow-font-write-recursive -> This allows full recusrive write access to the complete `$FONT` folder, files and subdirectories.",
"description": "fs:allow-font-write-recursive -> This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-font-write-recursive"
@@ -3442,7 +3550,7 @@
]
},
{
"description": "fs:allow-home-write-recursive -> This allows full recusrive write access to the complete `$HOME` folder, files and subdirectories.",
"description": "fs:allow-home-write-recursive -> This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-home-write-recursive"
@@ -3484,7 +3592,7 @@
]
},
{
"description": "fs:allow-localdata-write-recursive -> This allows full recusrive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
"description": "fs:allow-localdata-write-recursive -> This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-localdata-write-recursive"
@@ -3526,7 +3634,7 @@
]
},
{
"description": "fs:allow-log-write-recursive -> This allows full recusrive write access to the complete `$LOG` folder, files and subdirectories.",
"description": "fs:allow-log-write-recursive -> This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-log-write-recursive"
@@ -3568,7 +3676,7 @@
]
},
{
"description": "fs:allow-picture-write-recursive -> This allows full recusrive write access to the complete `$PICTURE` folder, files and subdirectories.",
"description": "fs:allow-picture-write-recursive -> This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-picture-write-recursive"
@@ -3610,7 +3718,7 @@
]
},
{
"description": "fs:allow-public-write-recursive -> This allows full recusrive write access to the complete `$PUBLIC` folder, files and subdirectories.",
"description": "fs:allow-public-write-recursive -> This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-public-write-recursive"
@@ -3652,7 +3760,7 @@
]
},
{
"description": "fs:allow-resource-write-recursive -> This allows full recusrive write access to the complete `$RESOURCE` folder, files and subdirectories.",
"description": "fs:allow-resource-write-recursive -> This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-resource-write-recursive"
@@ -3694,7 +3802,7 @@
]
},
{
"description": "fs:allow-runtime-write-recursive -> This allows full recusrive write access to the complete `$RUNTIME` folder, files and subdirectories.",
"description": "fs:allow-runtime-write-recursive -> This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-runtime-write-recursive"
@@ -3736,7 +3844,7 @@
]
},
{
"description": "fs:allow-temp-write-recursive -> This allows full recusrive write access to the complete `$TEMP` folder, files and subdirectories.",
"description": "fs:allow-temp-write-recursive -> This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-temp-write-recursive"
@@ -3778,7 +3886,7 @@
]
},
{
"description": "fs:allow-template-write-recursive -> This allows full recusrive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
"description": "fs:allow-template-write-recursive -> This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-template-write-recursive"
@@ -3820,7 +3928,7 @@
]
},
{
"description": "fs:allow-video-write-recursive -> This allows full recusrive write access to the complete `$VIDEO` folder, files and subdirectories.",
"description": "fs:allow-video-write-recursive -> This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-video-write-recursive"
@@ -4827,6 +4935,83 @@
"http:deny-fetch-send"
]
},
{
"description": "image:default -> Default permissions for the plugin.",
"type": "string",
"enum": [
"image:default"
]
},
{
"description": "image:allow-from-bytes -> Enables the from_bytes command without any pre-configured scope.",
"type": "string",
"enum": [
"image:allow-from-bytes"
]
},
{
"description": "image:allow-from-path -> Enables the from_path command without any pre-configured scope.",
"type": "string",
"enum": [
"image:allow-from-path"
]
},
{
"description": "image:allow-new -> Enables the new command without any pre-configured scope.",
"type": "string",
"enum": [
"image:allow-new"
]
},
{
"description": "image:allow-rgba -> Enables the rgba command without any pre-configured scope.",
"type": "string",
"enum": [
"image:allow-rgba"
]
},
{
"description": "image:allow-size -> Enables the size command without any pre-configured scope.",
"type": "string",
"enum": [
"image:allow-size"
]
},
{
"description": "image:deny-from-bytes -> Denies the from_bytes command without any pre-configured scope.",
"type": "string",
"enum": [
"image:deny-from-bytes"
]
},
{
"description": "image:deny-from-path -> Denies the from_path command without any pre-configured scope.",
"type": "string",
"enum": [
"image:deny-from-path"
]
},
{
"description": "image:deny-new -> Denies the new command without any pre-configured scope.",
"type": "string",
"enum": [
"image:deny-new"
]
},
{
"description": "image:deny-rgba -> Denies the rgba command without any pre-configured scope.",
"type": "string",
"enum": [
"image:deny-rgba"
]
},
{
"description": "image:deny-size -> Denies the size command without any pre-configured scope.",
"type": "string",
"enum": [
"image:deny-size"
]
},
{
"description": "log:default -> Allows the log command",
"type": "string",
@@ -5163,6 +5348,12 @@
"menu:deny-text"
]
},
{
"type": "string",
"enum": [
"nfc:default"
]
},
{
"description": "nfc:allow-is-available -> Enables the is_available command without any pre-configured scope.",
"type": "string",
@@ -5254,6 +5445,12 @@
"notification:deny-request-permission"
]
},
{
"type": "string",
"enum": [
"os:default"
]
},
{
"description": "os:allow-arch -> Enables the arch command without any pre-configured scope.",
"type": "string",
@@ -5485,6 +5682,12 @@
"path:deny-resolve-directory"
]
},
{
"type": "string",
"enum": [
"process:default"
]
},
{
"description": "process:allow-exit -> Enables the exit command without any pre-configured scope.",
"type": "string",
@@ -5534,6 +5737,12 @@
"resources:deny-close"
]
},
{
"type": "string",
"enum": [
"shell:default"
]
},
{
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type": "string",
@@ -5597,6 +5806,13 @@
"tray:default"
]
},
{
"description": "tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.",
"type": "string",
"enum": [
"tray:allow-get-by-id"
]
},
{
"description": "tray:allow-new -> Enables the new command without any pre-configured scope.",
"type": "string",
@@ -5604,6 +5820,13 @@
"tray:allow-new"
]
},
{
"description": "tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.",
"type": "string",
"enum": [
"tray:allow-remove-by-id"
]
},
{
"description": "tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
"type": "string",
@@ -5660,6 +5883,13 @@
"tray:allow-set-visible"
]
},
{
"description": "tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.",
"type": "string",
"enum": [
"tray:deny-get-by-id"
]
},
{
"description": "tray:deny-new -> Denies the new command without any pre-configured scope.",
"type": "string",
@@ -5667,6 +5897,13 @@
"tray:deny-new"
]
},
{
"description": "tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.",
"type": "string",
"enum": [
"tray:deny-remove-by-id"
]
},
{
"description": "tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
"type": "string",
+6 -4
View File
@@ -145,10 +145,12 @@ pub fn run() {
app.run(move |_app_handle, _event| {
#[cfg(desktop)]
if let RunEvent::ExitRequested { api, .. } = &_event {
// Keep the event loop running even if all windows are closed
// This allow us to catch system tray events when there is no window
api.prevent_exit();
if let RunEvent::ExitRequested { code, api, .. } = &_event {
if code.is_none() {
// Keep the event loop running even if all windows are closed
// This allow us to catch system tray events when there is no window
api.prevent_exit();
}
}
})
}
+3 -2
View File
@@ -80,9 +80,10 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
i @ "icon-1" | i @ "icon-2" => {
if let Some(tray) = app.tray_by_id("tray-1") {
let _ = tray.set_icon(Some(if i == "icon-1" {
tauri::Image::from_ico_bytes(include_bytes!("../icons/icon.ico")).unwrap()
tauri::image::Image::from_bytes(include_bytes!("../icons/icon.ico"))
.unwrap()
} else {
tauri::Image::from_png_bytes(include_bytes!(
tauri::image::Image::from_bytes(include_bytes!(
"../icons/tray_icon_with_transparency.png"
))
.unwrap()
+2 -2
View File
@@ -6,8 +6,8 @@
"build": {
"devUrl": "http://localhost:5173",
"frontendDist": "../dist",
"beforeDevCommand": "yarn dev",
"beforeBuildCommand": "yarn build"
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build"
},
"app": {
"withGlobalTauri": true,
+1 -1
View File
@@ -36,7 +36,7 @@
});
}
getCurrentWebview().onFileDropEvent((event) => {
getCurrentWebview().onDragDropEvent((event) => {
onMessage(`File drop: ${JSON.stringify(event.payload)}`);
});
+15
View File
@@ -0,0 +1,15 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
export function arrayBufferToBase64(buffer, callback) {
const blob = new Blob([buffer], {
type: "application/octet-binary",
});
const reader = new FileReader();
reader.onload = function (evt) {
const dataurl = evt.target.result;
callback(dataurl.substr(dataurl.indexOf(",") + 1));
};
reader.readAsDataURL(blob);
}
+45 -7
View File
@@ -1,23 +1,59 @@
<script>
import { writeText, readText } from "@tauri-apps/plugin-clipboard-manager";
import * as clipboard from "@tauri-apps/plugin-clipboard-manager";
import { open } from "@tauri-apps/plugin-dialog";
import { arrayBufferToBase64 } from "../lib/utils";
import { readFile } from "@tauri-apps/plugin-fs";
export let onMessage;
export let insecureRenderHtml;
let text = "clipboard message";
function write() {
writeText(text)
function writeText() {
clipboard
.writeText(text)
.then(() => {
onMessage("Wrote to the clipboard");
})
.catch(onMessage);
}
function read() {
readText()
async function writeImage() {
try {
const res = await open({
title: "Image to write to clipboard",
filters: [
{
name: "Clipboard IMG",
extensions: ["png", "jpg", "jpeg"],
},
],
});
const bytes = await readFile(res.path);
await clipboard.writeImage(bytes);
onMessage("wrote image");
} catch (e) {
onMessage(e);
}
}
async function read() {
try {
const image = await clipboard.readImage();
arrayBufferToBase64(await image.rgba(), function (base64) {
const src = "data:image/png;base64," + base64;
insecureRenderHtml('<img src="' + src + '"></img>');
});
return;
} catch (_) {}
clipboard
.readText()
.then((contents) => {
onMessage(`Clipboard contents: ${contents}`);
})
.catch(onMessage);
.catch((e) => {
onMessage(e);
});
}
</script>
@@ -27,6 +63,8 @@
placeholder="Text to write to the clipboard"
bind:value={text}
/>
<button class="btn" type="button" on:click={write}>Write</button>
<button class="btn" type="button" on:click={writeText}>Write</button>
<button class="btn" type="button" on:click={writeImage}>Pick Image</button>
<button class="btn" type="button" on:click={read}>Read</button>
</div>
+5 -14
View File
@@ -1,6 +1,7 @@
<script>
import * as fs from "@tauri-apps/plugin-fs";
import { convertFileSrc } from "@tauri-apps/api/core";
import { arrayBufferToBase64 } from "../lib/utils";
export let onMessage;
export let insecureRenderHtml;
@@ -20,18 +21,6 @@
return dirSelect.value ? parseInt(dir.value) : null;
}
function arrayBufferToBase64(buffer, callback) {
const blob = new Blob([buffer], {
type: "application/octet-binary",
});
const reader = new FileReader();
reader.onload = function (evt) {
const dataurl = evt.target.result;
callback(dataurl.substr(dataurl.indexOf(",") + 1));
};
reader.readAsDataURL(blob);
}
const DirOptions = Object.keys(fs.BaseDirectory)
.filter((key) => isNaN(parseInt(key)))
.map((dir) => [dir, fs.BaseDirectory[dir]]);
@@ -215,7 +204,7 @@
<button class="btn" on:click={stat}>Stat</button>
</div>
{/if}
<h3>Watch</h3>
<input
@@ -225,7 +214,9 @@
/>
<br />
<div>
<label for="watch-debounce-delay">Debounce delay in milliseconds (`0` disables the debouncer)</label>
<label for="watch-debounce-delay"
>Debounce delay in milliseconds (`0` disables the debouncer)</label
>
<input
class="input"
id="watch-debounce-delay"
+2 -2
View File
@@ -12,8 +12,8 @@
function register() {
const shortcut_ = shortcut;
registerShortcut(shortcut_, () => {
onMessage(`Shortcut ${shortcut_} triggered`);
registerShortcut(shortcut_, (e) => {
onMessage(`Shortcut ${shortcut_} triggered ${e.state}`);
})
.then(() => {
shortcuts.update((shortcuts_) => [...shortcuts_, shortcut_]);
+2 -2
View File
@@ -12,8 +12,8 @@
isChecking = true;
try {
const update = await check();
onMessage(`Should update: ${update.response.available}`);
onMessage(update.response);
onMessage(`Should update: ${update.available}`);
onMessage(update);
newUpdate = update;
} catch (e) {
+11 -10
View File
@@ -13,26 +13,27 @@
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "11.1.6",
"@typescript-eslint/eslint-plugin": "6.20.0",
"@typescript-eslint/parser": "6.20.0",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"covector": "^0.10.2",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-standard-with-typescript": "43.0.1",
"eslint-config-love": "47.0.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-n": "17.4.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-security": "2.1.0",
"prettier": "3.2.2",
"rollup": "4.9.6",
"typescript": "5.3.3"
"eslint-plugin-security": "3.0.0",
"prettier": "3.2.5",
"rollup": "4.17.2",
"tslib": "2.6.2",
"typescript": "5.4.5"
},
"resolutions": {
"semver": ">=7.5.2",
"optionator": ">=0.9.3"
},
"engines": {
"pnpm": ">=7.33.1"
"pnpm": "^8.0.0"
},
"pnpm": {
"auditConfig": {
+12
View File
@@ -1,5 +1,17 @@
# Changelog
## \[2.0.0-beta.3]
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
## \[2.0.0-beta.4]
- [`7e2fcc5`](https://github.com/tauri-apps/plugins-workspace/commit/7e2fcc5e74df7c3c718e40f75bfb0eafc7d69d8d)([#1146](https://github.com/tauri-apps/plugins-workspace/pull/1146)) Update dependencies to align with tauri 2.0.0-beta.14.
## \[2.0.0-beta.3]
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
## \[2.0.0-beta.2]
- [`99bea25`](https://github.com/tauri-apps/plugins-workspace/commit/99bea2559c2c0648c2519c50a18cd124dacef57b)([#1005](https://github.com/tauri-apps/plugins-workspace/pull/1005)) Update to tauri beta.8.
+3 -2
View File
@@ -1,11 +1,12 @@
[package]
name = "tauri-plugin-authenticator"
version = "2.0.0-beta.2"
version = "2.0.0-beta.5"
description = "Use hardware security-keys in your Tauri App."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
links = "tauri-plugin-authenticator"
[package.metadata.docs.rs]
@@ -26,7 +27,7 @@ thiserror = { workspace = true }
authenticator = "0.3.1"
once_cell = "1"
sha2 = "0.10"
base64 = "0.21"
base64 = "0.22"
chrono = "0.4"
bytes = "1"
byteorder = "1"
+1
View File
@@ -0,0 +1 @@
if("__TAURI__"in window){var __TAURI_PLUGIN_AUTHENTICATOR__=function(t){"use strict";async function i(t,i={},a){return window.__TAURI_INTERNALS__.invoke(t,i,a)}"function"==typeof SuppressedError&&SuppressedError;return t.Authenticator=class{async init(){await i("plugin:authenticator|init_auth")}async register(t,a){return await i("plugin:authenticator|register",{timeout:1e4,challenge:t,application:a})}async verifyRegistration(t,a,e,n){return await i("plugin:authenticator|verify_registration",{challenge:t,application:a,registerData:e,clientData:n})}async sign(t,a,e){return await i("plugin:authenticator|sign",{timeout:1e4,challenge:t,application:a,keyHandle:e})}async verifySignature(t,a,e,n,r,u){return await i("plugin:authenticator|verify_signature",{challenge:t,application:a,signData:e,clientData:n,keyHandle:r,pubkey:u})}},t}({});Object.defineProperty(window.__TAURI__,"authenticator",{value:__TAURI_PLUGIN_AUTHENTICATOR__})}
+3 -1
View File
@@ -11,5 +11,7 @@ const COMMANDS: &[&str] = &[
];
fn main() {
tauri_plugin::Builder::new(COMMANDS).build();
tauri_plugin::Builder::new(COMMANDS)
.global_api_script_path("./api-iife.js")
.build();
}
+1 -1
View File
@@ -6,7 +6,7 @@ import { invoke } from "@tauri-apps/api/core";
export class Authenticator {
async init(): Promise<void> {
return await invoke("plugin:authenticator|init_auth");
await invoke("plugin:authenticator|init_auth");
}
async register(challenge: string, application: string): Promise<string> {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-authenticator",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Use hardware security-keys in your Tauri App.",
"license": "MIT or APACHE-2.0",
"authors": [
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-beta.4"
"@tauri-apps/api": "2.0.0-beta.11"
}
}
@@ -139,14 +139,10 @@
},
"platforms": {
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
"default": [
"linux",
"macOS",
"windows",
"android",
"iOS"
"type": [
"array",
"null"
],
"type": "array",
"items": {
"$ref": "#/definitions/Target"
}
-1
View File
@@ -1 +0,0 @@
if("__TAURI__"in window){var __TAURI_PLUGIN_AUTHENTICATOR__=function(t){"use strict";async function i(t,i={},a){return window.__TAURI_INTERNALS__.invoke(t,i,a)}"function"==typeof SuppressedError&&SuppressedError;return t.Authenticator=class{async init(){return await i("plugin:authenticator|init_auth")}async register(t,a){return await i("plugin:authenticator|register",{timeout:1e4,challenge:t,application:a})}async verifyRegistration(t,a,e,n){return await i("plugin:authenticator|verify_registration",{challenge:t,application:a,registerData:e,clientData:n})}async sign(t,a,e){return await i("plugin:authenticator|sign",{timeout:1e4,challenge:t,application:a,keyHandle:e})}async verifySignature(t,a,e,n,r,u){return await i("plugin:authenticator|verify_signature",{challenge:t,application:a,signData:e,clientData:n,keyHandle:r,pubkey:u})}},t}({});Object.defineProperty(window.__TAURI__,"authenticator",{value:__TAURI_PLUGIN_AUTHENTICATOR__})}
-1
View File
@@ -78,7 +78,6 @@ fn verify_signature(
pub fn init<R: Runtime>() -> TauriPlugin<R> {
PluginBuilder::new("authenticator")
.js_init_script(include_str!("api-iife.js").to_string())
.invoke_handler(tauri::generate_handler![
init_auth,
register,
@@ -95,7 +95,8 @@ impl U2f {
challenge: Challenge,
response: RegisterResponse,
) -> Result<Registration> {
if expiration(challenge.timestamp) > Duration::seconds(300) {
// Safe to unwrap since 300 is within the constraints of Duration::try_seconds
if expiration(challenge.timestamp) > Duration::try_seconds(300).unwrap() {
return Err(U2fError::ChallengeExpired);
}
@@ -152,7 +153,8 @@ impl U2f {
sign_resp: SignResponse,
counter: u32,
) -> Result<u32> {
if expiration(challenge.timestamp) > Duration::seconds(300) {
// Safe to unwrap since 300 is within the constraints of Duration::try_seconds
if expiration(challenge.timestamp) > Duration::try_seconds(300).unwrap() {
return Err(U2fError::ChallengeExpired);
}
+12
View File
@@ -1,5 +1,17 @@
# Changelog
## \[2.0.0-beta.3]
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
## \[2.0.0-beta.4]
- [`a233919`](https://github.com/tauri-apps/plugins-workspace/commit/a2339195aa940bff86d76375fd05087595bf06ce)([#1118](https://github.com/tauri-apps/plugins-workspace/pull/1118)) Fix LaunchAgent-based autostart for macOS.
## \[2.0.0-beta.3]
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
## \[2.0.0-beta.2]
- [`99bea25`](https://github.com/tauri-apps/plugins-workspace/commit/99bea2559c2c0648c2519c50a18cd124dacef57b)([#1005](https://github.com/tauri-apps/plugins-workspace/pull/1005)) Update to tauri beta.8.
+2 -1
View File
@@ -1,11 +1,12 @@
[package]
name = "tauri-plugin-autostart"
version = "2.0.0-beta.2"
version = "2.0.0-beta.5"
description = "Automatically launch your application at startup."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
links = "tauri-plugin-autostart"
[package.metadata.docs.rs]
+3 -1
View File
@@ -5,5 +5,7 @@
const COMMANDS: &[&str] = &["enable", "disable", "is_enabled"];
fn main() {
tauri_plugin::Builder::new(COMMANDS).build();
tauri_plugin::Builder::new(COMMANDS)
.global_api_script_path("./api-iife.js")
.build();
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-autostart",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@@ -23,6 +23,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-beta.4"
"@tauri-apps/api": "2.0.0-beta.11"
}
}
@@ -139,14 +139,10 @@
},
"platforms": {
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
"default": [
"linux",
"macOS",
"windows",
"android",
"iOS"
"type": [
"array",
"null"
],
"type": "array",
"items": {
"$ref": "#/definitions/Target"
}
+6 -6
View File
@@ -107,7 +107,6 @@ pub fn init<R: Runtime>(
args: Option<Vec<&'static str>>,
) -> TauriPlugin<R> {
Builder::new("autostart")
.js_init_script(include_str!("api-iife.js").to_string())
.invoke_handler(tauri::generate_handler![enable, disable, is_enabled])
.setup(move |app, _api| {
let mut builder = AutoLaunchBuilder::new();
@@ -130,11 +129,12 @@ pub fn init<R: Runtime>(
// exe path to not break it.
let exe_path = current_exe.canonicalize()?.display().to_string();
let parts: Vec<&str> = exe_path.split(".app/").collect();
let app_path = if parts.len() == 2 {
format!("{}.app", parts.first().unwrap())
} else {
exe_path
};
let app_path =
if parts.len() == 2 && matches!(macos_launcher, MacosLauncher::AppleScript) {
format!("{}.app", parts.first().unwrap())
} else {
exe_path
};
info!("auto_start path {}", &app_path);
builder.set_app_path(&app_path);
}
+12
View File
@@ -1,5 +1,17 @@
# Changelog
## \[2.0.0-beta.3]
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
## \[2.0.0-beta.4]
- [`326df688`](https://github.com/tauri-apps/plugins-workspace/commit/326df6883998d416fc0837583ed972854628bb52)([#1236](https://github.com/tauri-apps/plugins-workspace/pull/1236)) Fixes command argument parsing on iOS.
## \[2.0.0-beta.3]
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
## \[2.0.0-beta.2]
- [`99bea25`](https://github.com/tauri-apps/plugins-workspace/commit/99bea2559c2c0648c2519c50a18cd124dacef57b)([#1005](https://github.com/tauri-apps/plugins-workspace/pull/1005)) Update to tauri beta.8.
+2 -1
View File
@@ -1,11 +1,12 @@
[package]
name = "tauri-plugin-barcode-scanner"
version = "2.0.0-beta.2"
version = "2.0.0-beta.5"
description = "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS"
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
links = "tauri-plugin-barcode-scanner"
[package.metadata.docs.rs]
+1
View File
@@ -0,0 +1 @@
if("__TAURI__"in window){var __TAURI_PLUGIN_BARCODESCANNER__=function(n){"use strict";async function e(n,e={},a){return window.__TAURI_INTERNALS__.invoke(n,e,a)}var a;return"function"==typeof SuppressedError&&SuppressedError,n.Format=void 0,(a=n.Format||(n.Format={})).QRCode="QR_CODE",a.UPC_A="UPC_A",a.UPC_E="UPC_E",a.EAN8="EAN_8",a.EAN13="EAN_13",a.Code39="CODE_39",a.Code93="CODE_93",a.Code128="CODE_128",a.Codabar="CODABAR",a.ITF="ITF",a.Aztec="AZTEC",a.DataMatrix="DATA_MATRIX",a.PDF417="PDF_417",n.cancel=async function(){await e("plugin:barcode-scanner|cancel")},n.checkPermissions=async function(){return await e("plugin:barcode-scanner|check_permissions").then((n=>n.camera))},n.openAppSettings=async function(){await e("plugin:barcode-scanner|open_app_settings")},n.requestPermissions=async function(){return await e("plugin:barcode-scanner|request_permissions").then((n=>n.camera))},n.scan=async function(n){return await e("plugin:barcode-scanner|scan",{...n})},n}({});Object.defineProperty(window.__TAURI__,"barcodeScanner",{value:__TAURI_PLUGIN_BARCODESCANNER__})}
+1
View File
@@ -13,6 +13,7 @@ const COMMANDS: &[&str] = &[
fn main() {
if let Err(error) = tauri_plugin::Builder::new(COMMANDS)
.global_api_script_path("./api-iife.js")
.android_path("android")
.ios_path("ios")
.try_build()
+2 -2
View File
@@ -46,7 +46,7 @@ export async function scan(options?: ScanOptions): Promise<Scanned> {
* Cancel the current scan process.
*/
export async function cancel(): Promise<void> {
return await invoke("plugin:barcode-scanner|cancel");
await invoke("plugin:barcode-scanner|cancel");
}
/**
@@ -71,5 +71,5 @@ export async function requestPermissions(): Promise<PermissionState> {
* Open application settings. Useful if permission was denied and the user must manually enable it.
*/
export async function openAppSettings(): Promise<void> {
return await invoke("plugin:barcode-scanner|open_app_settings");
await invoke("plugin:barcode-scanner|open_app_settings");
}
@@ -8,7 +8,7 @@ import UIKit
import WebKit
struct ScanOptions: Decodable {
var formats: [SupportedFormat] = []
var formats: [SupportedFormat]?
let windowed: Bool?
let cameraDirection: String?
}
@@ -241,7 +241,7 @@ class BarcodeScannerPlugin: Plugin, AVCaptureMetadataOutputObjectsDelegate {
private func runScanner(_ invoke: Invoke, args: ScanOptions) {
scanFormats = [AVMetadataObject.ObjectType]()
args.formats.forEach { format in
(args.formats ?? []).forEach { format in
scanFormats.append(format.value)
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-barcode-scanner",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS",
"license": "MIT or APACHE-2.0",
"authors": [
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-beta.4"
"@tauri-apps/api": "2.0.0-beta.11"
}
}
@@ -139,14 +139,10 @@
},
"platforms": {
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
"default": [
"linux",
"macOS",
"windows",
"android",
"iOS"
"type": [
"array",
"null"
],
"type": "array",
"items": {
"$ref": "#/definitions/Target"
}
-1
View File
@@ -1 +0,0 @@
if("__TAURI__"in window){var __TAURI_PLUGIN_BARCODESCANNER__=function(n){"use strict";async function e(n,e={},r){return window.__TAURI_INTERNALS__.invoke(n,e,r)}var r;return"function"==typeof SuppressedError&&SuppressedError,n.Format=void 0,(r=n.Format||(n.Format={})).QRCode="QR_CODE",r.UPC_A="UPC_A",r.UPC_E="UPC_E",r.EAN8="EAN_8",r.EAN13="EAN_13",r.Code39="CODE_39",r.Code93="CODE_93",r.Code128="CODE_128",r.Codabar="CODABAR",r.ITF="ITF",r.Aztec="AZTEC",r.DataMatrix="DATA_MATRIX",r.PDF417="PDF_417",n.cancel=async function(){return await e("plugin:barcode-scanner|cancel")},n.checkPermissions=async function(){return await e("plugin:barcode-scanner|check_permissions").then((n=>n.camera))},n.openAppSettings=async function(){return await e("plugin:barcode-scanner|open_app_settings")},n.requestPermissions=async function(){return await e("plugin:barcode-scanner|request_permissions").then((n=>n.camera))},n.scan=async function(n){return await e("plugin:barcode-scanner|scan",{...n})},n}({});Object.defineProperty(window.__TAURI__,"barcodeScanner",{value:__TAURI_PLUGIN_BARCODESCANNER__})}
+1 -1
View File
@@ -27,7 +27,7 @@ pub struct BarcodeScanner<R: Runtime>(PluginHandle<R>);
impl<R: Runtime> BarcodeScanner<R> {}
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the barcode scanner APIs.
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the barcode scanner APIs.
pub trait BarcodeScannerExt<R: Runtime> {
fn barcode_scanner(&self) -> &BarcodeScanner<R>;
}

Some files were not shown because too many files have changed in this diff Show More