Merge remote-tracking branch 'origin/v2' into feat/window-effects

pull/392/head
Lucas Nogueira 2 years ago
commit 88a32ba3be
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

@ -3,12 +3,12 @@
"pkgManagers": {
"javascript": {
"version": true,
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
"publish": ["pnpm build", "pnpm publish --access public --no-git-checks"]
},
"rust": {
"version": true,
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }",
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }",
"publish": [
{
"command": "cargo package --no-verify",
@ -112,12 +112,21 @@
"manager": "javascript"
},
"clipboard": {
"path": "./plugins/clipboard",
"clipboard-manager": {
"path": "./plugins/clipboard-manager",
"manager": "rust"
},
"clipboard-js": {
"path": "./plugins/clipboard",
"clipboard-manager-js": {
"path": "./plugins/clipboard-manager",
"manager": "javascript"
},
"fs": {
"path": "./plugins/fs",
"manager": "rust"
},
"fs-js": {
"path": "./plugins/fs",
"manager": "javascript"
},
@ -131,15 +140,6 @@
"manager": "javascript"
},
"fs": {
"path": "./plugins/fs",
"manager": "rust"
},
"fs-js": {
"path": "./plugins/fs",
"manager": "javascript"
},
"global-shortcut": {
"path": "./plugins/global-shortcut",
"manager": "rust"
@ -231,7 +231,28 @@
"sql": {
"path": "./plugins/sql",
"manager": "rust"
"manager": "rust",
"publish": [
{
"command": "cargo package --no-verify",
"dryRunCommand": true
},
{
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
"dryRunCommand": true,
"pipe": true
},
{
"command": "cargo publish --features sqlite",
"dryRunCommand": "cargo publish --features sqlite --dry-run",
"pipe": true
},
{
"command": "echo '```\n\n</details>\n'",
"dryRunCommand": true,
"pipe": true
}
]
},
"sql-js": {
"path": "./plugins/sql",

@ -0,0 +1,5 @@
---
"notification": patch
---
Use `window.__TAURI_INVOKE__` instead of `window.__TAURI__` in init.js, fixes usage in apps without `withGlobalTauri` enabled.

@ -0,0 +1,5 @@
---
"notification": patch
---
Play a default sound when showing a notification on Windows.

@ -0,0 +1,11 @@
---
"os": minor
"os-js": minor
---
The os plugin is recieving a few changes to improve consistency and add new features:
- Renamed `Kind` enum to `OsType` and `kind()` function to `os_type()`.
- Added `family()`,`exe_extension()`, and `hostname()` functions and their equivalents for JS.
- Removed `tempdir()` function and its equivalent on JS, use `std::env::temp_dir` instead of `temp_dir` from `tauri::path::PathResolver::temp_dir` and `path.tempDir` on JS.
- Modified `platform()` implementation to return `windows` instead of `win32` and `macos` instead of `darwin` to align with Rust's `std::env::consts::OS`

@ -1,5 +0,0 @@
---
persisted-scope: patch
---
Recursively unescape saved patterns before allowing/forbidding them. This effectively prevents `.persisted-scope` files from blowing up, which caused Out-Of-Memory issues, while automatically fixing existing broken files seamlessly.

@ -1,4 +1,9 @@
{
"tag": "alpha",
"changes": []
"changes": [
".changes/notification-init-script.md",
".changes/notification-sound.md",
".changes/stronghold-constructor.md",
".changes/v2-alpha.md"
]
}

@ -0,0 +1,5 @@
---
"stronghold-js": minor
---
Added `Stronghold.load` and removed its constructor.

@ -7,8 +7,8 @@
"autostart-js": major
"cli": major
"cli-js": major
"clipboard": major
"clipboard-js": major
"clipboard-manager": major
"clipboard-manager-js": major
"dialog": major
"dialog-js": major
"fs": major

@ -0,0 +1,5 @@
---
"window-state": "patch"
---
Correctly set decoration state if no saved state xists

@ -0,0 +1,5 @@
---
"window-state-js": "patch"
---
Correctly propagate the promise inside `saveWindowState`, `restoreState` and `restoreStateCurrent` so callers can choose to `await` them.

@ -41,10 +41,10 @@ jobs:
- .github/workflows/check-generated-files.yml
- plugins/cli/guest-js/**
- plugins/cli/src/api-iife.js
clipboard:
clipboard-manager:
- .github/workflows/check-generated-files.yml
- plugins/clipboard/guest-js/**
- plugins/clipboard/src/api-iife.js
- plugins/clipboard-manager/guest-js/**
- plugins/clipboard-manager/src/api-iife.js
dialog:
- .github/workflows/check-generated-files.yml
- plugins/dialog/guest-js/**

@ -14,7 +14,7 @@ jobs:
with:
fetch-depth: 0 # required for use of git history
- name: covector status
uses: jbolda/covector/packages/action@covector-v0.8
uses: jbolda/covector/packages/action@covector-v0
id: covector
with:
command: "status"

@ -33,6 +33,11 @@ jobs:
version: 7.x.x
run_install: true
- name: install webkit2gtk and libudev for [authenticator]
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev
- name: cargo login
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
@ -42,7 +47,7 @@ jobs:
git config --global user.email "${{ github.event.pusher.email }}"
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0.8
uses: jbolda/covector/packages/action@covector-v0
id: covector
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
@ -59,5 +64,5 @@ jobs:
title: "Publish New Versions (v2)"
commit-message: "publish new versions"
labels: "version updates"
branch: "release"
branch: "release-v2"
body: ${{ steps.covector.outputs.change }}

@ -33,6 +33,11 @@ jobs:
version: 7.x.x
run_install: true
- name: install webkit2gtk and libudev for [authenticator]
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev
- name: cargo login
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
@ -42,7 +47,7 @@ jobs:
git config --global user.email "${{ github.event.pusher.email }}"
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0.8
uses: jbolda/covector/packages/action@covector-v0
id: covector
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}

@ -53,9 +53,9 @@ jobs:
tauri-plugin-cli:
- .github/workflows/lint-rust.yml
- plugins/cli/**
tauri-plugin-clipboard:
tauri-plugin-clipboard-manager:
- .github/workflows/lint-rust.yml
- plugins/clipboard/**
- plugins/clipboard-manager/**
tauri-plugin-dialog:
- .github/workflows/lint-rust.yml
- plugins/dialog/**

@ -55,9 +55,9 @@ jobs:
tauri-plugin-cli:
- .github/workflows/test-rust.yml
- plugins/cli/**
tauri-plugin-clipboard:
tauri-plugin-clipboard-manager:
- .github/workflows/test-rust.yml
- plugins/clipboard/**
- plugins/clipboard-manager/**
tauri-plugin-dialog:
- .github/workflows/test-rust.yml
- plugins/dialog/**

@ -0,0 +1 @@
auto-install-peers=true

@ -44,10 +44,14 @@ https.get(url, options, (response) => {
response.on("end", function () {
const data = JSON.parse(chunks.join(""));
if (kind === "cargo") {
const versions = data.versions.filter((v) => v.num.startsWith(target));
console.log(versions.length ? versions[0].num : "0.0.0");
if (data.versions) {
const versions = data.versions.filter((v) => v.num.startsWith(target));
console.log(versions.length ? versions[0].num : "0.0.0");
} else {
console.log("0.0.0");
}
} else if (kind === "npm") {
const versions = Object.keys(data.versions).filter((v) =>
const versions = Object.keys(data.versions || {}).filter((v) =>
v.startsWith(target)
);
console.log(versions[versions.length - 1] || "0.0.0");

226
Cargo.lock generated

@ -206,7 +206,7 @@ checksum = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4"
[[package]]
name = "api"
version = "0.1.0"
version = "2.0.0-alpha.1"
dependencies = [
"log",
"serde",
@ -215,7 +215,7 @@ dependencies = [
"tauri-build",
"tauri-plugin-app",
"tauri-plugin-cli",
"tauri-plugin-clipboard",
"tauri-plugin-clipboard-manager",
"tauri-plugin-dialog",
"tauri-plugin-fs",
"tauri-plugin-global-shortcut",
@ -376,7 +376,7 @@ checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -398,7 +398,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -415,7 +415,7 @@ checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -1196,7 +1196,7 @@ dependencies = [
"proc-macro2",
"quote",
"scratch",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -1213,14 +1213,14 @@ checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
name = "darling"
version = "0.14.4"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850"
checksum = "0558d22a7b463ed0241e993f76f09f30b126687447751a8638587b864e4b3944"
dependencies = [
"darling_core",
"darling_macro",
@ -1228,29 +1228,35 @@ dependencies = [
[[package]]
name = "darling_core"
version = "0.14.4"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0"
checksum = "ab8bfa2e259f8ee1ce5e97824a3c55ec4404a0d772ca7fa96bf19f0752a046eb"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
"syn 1.0.109",
"syn 2.0.18",
]
[[package]]
name = "darling_macro"
version = "0.14.4"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e"
checksum = "29a358ff9f12ec09c3e61fef9b5a9902623a695a46a917b07f269bff1445611a"
dependencies = [
"darling_core",
"quote",
"syn 1.0.109",
"syn 2.0.18",
]
[[package]]
name = "data-encoding"
version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb"
[[package]]
name = "der"
version = "0.5.1"
@ -1443,7 +1449,7 @@ checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -1687,7 +1693,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -1848,6 +1854,16 @@ dependencies = [
"winapi",
]
[[package]]
name = "gethostname"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818"
dependencies = [
"libc",
"windows-targets 0.48.0",
]
[[package]]
name = "getrandom"
version = "0.1.16"
@ -2476,9 +2492,9 @@ dependencies = [
[[package]]
name = "iota-crypto"
version = "0.17.1"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92cdfcd73d2b8a67b913789ecd7fc06c68254f68cd2b24cc3f0419c7f8fe6bbe"
checksum = "0180a2a7939b4b0ae68e651bbec130b27fd5882ef552df5bb55e0320e78bacbc"
dependencies = [
"autocfg",
]
@ -3345,7 +3361,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -3818,9 +3834,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]]
name = "proc-macro2"
version = "1.0.56"
version = "1.0.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435"
checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406"
dependencies = [
"unicode-ident",
]
@ -3851,9 +3867,9 @@ dependencies = [
[[package]]
name = "quote"
version = "1.0.26"
version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc"
checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488"
dependencies = [
"proc-macro2",
]
@ -4052,7 +4068,7 @@ dependencies = [
"wasm-bindgen-futures",
"wasm-streams",
"web-sys",
"webpki-roots",
"webpki-roots 0.22.6",
"winreg",
]
@ -4345,7 +4361,7 @@ checksum = "4c614d17805b093df4b147b51339e7e44bf05ef59fba1e45d83500bcfb4d8585"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -4367,7 +4383,7 @@ checksum = "bcec881020c684085e55a25f7fd888954d56609ef363479dc5a1305eb0d40cab"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -4393,11 +4409,11 @@ dependencies = [
[[package]]
name = "serde_with"
version = "2.3.2"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "331bb8c3bf9b92457ab7abecf07078c13f7d270ba490103e84e8b014490cd0b0"
checksum = "9f02d8aa6e3c385bf084924f660ce2a3a6bd333ba55b35e8590b321f35d88513"
dependencies = [
"base64 0.13.1",
"base64 0.21.0",
"chrono",
"hex",
"indexmap",
@ -4409,14 +4425,14 @@ dependencies = [
[[package]]
name = "serde_with_macros"
version = "2.3.2"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "859011bddcc11f289f07f467cc1fe01c7a941daa4d8f6c40d4d1c92eb6d9319c"
checksum = "edc7d5d3932fb12ce722ee5e64dd38c504efba37567f0c402f6ca728c3b8b070"
dependencies = [
"darling",
"proc-macro2",
"quote",
"syn 1.0.109",
"syn 2.0.18",
]
[[package]]
@ -4673,7 +4689,7 @@ dependencies = [
"time 0.3.20",
"tokio-stream",
"url",
"webpki-roots",
"webpki-roots 0.22.6",
"whoami",
]
@ -4886,15 +4902,25 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.13"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c9da457c5285ac1f936ebd076af6dac17a61cfe7826f2076b4d015cf47bc8ec"
checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "sys-locale"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea0b9eefabb91675082b41eb94c3ecd91af7656caee3fb4961a07c0ec8c7ca6f"
dependencies = [
"libc",
"windows-sys 0.45.0",
]
[[package]]
name = "system-deps"
version = "6.0.4"
@ -4981,8 +5007,9 @@ dependencies = [
[[package]]
name = "tauri"
version = "2.0.0-alpha.9"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "2.0.0-alpha.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e18377a75e314aa1d476896af881ed63f57a78ca84889fe63e69067f0de158d"
dependencies = [
"anyhow",
"bytes 1.4.0",
@ -5031,8 +5058,9 @@ dependencies = [
[[package]]
name = "tauri-build"
version = "2.0.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "2.0.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a52990870fd043f1d3bd6719ae713ef2e0c50431334d7249f6ae8509d1b8c326"
dependencies = [
"anyhow",
"cargo_toml",
@ -5051,8 +5079,9 @@ dependencies = [
[[package]]
name = "tauri-codegen"
version = "2.0.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "2.0.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c1f1611ab0896f2693163ba4e8f3e39c02a1b70cdca4314286b5e365a5e08c6"
dependencies = [
"base64 0.21.0",
"brotli",
@ -5076,8 +5105,9 @@ dependencies = [
[[package]]
name = "tauri-macros"
version = "2.0.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "2.0.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22752425c6dd6f3a058f376db7371f1d5bac250e340d40ba6c97ecf7182eef29"
dependencies = [
"heck 0.4.1",
"proc-macro2",
@ -5089,14 +5119,14 @@ dependencies = [
[[package]]
name = "tauri-plugin-app"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"tauri",
]
[[package]]
name = "tauri-plugin-authenticator"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"authenticator",
"base64 0.21.0",
@ -5115,7 +5145,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-autostart"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"auto-launch",
"log",
@ -5127,7 +5157,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-cli"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"clap",
"log",
@ -5138,8 +5168,8 @@ dependencies = [
]
[[package]]
name = "tauri-plugin-clipboard"
version = "1.0.0"
name = "tauri-plugin-clipboard-manager"
version = "2.0.0-alpha.0"
dependencies = [
"arboard",
"log",
@ -5152,7 +5182,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-dialog"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"glib",
"log",
@ -5168,7 +5198,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-fs"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"anyhow",
"glob",
@ -5182,7 +5212,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-global-shortcut"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"global-hotkey",
"log",
@ -5194,7 +5224,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-http"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"bytes 1.4.0",
"glob",
@ -5211,7 +5241,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-localhost"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"http",
"log",
@ -5224,7 +5254,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-log"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"android_logger",
"byte-unit",
@ -5243,7 +5273,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-notification"
version = "1.0.0"
version = "2.0.0-alpha.1"
dependencies = [
"log",
"notify-rust",
@ -5261,19 +5291,21 @@ dependencies = [
[[package]]
name = "tauri-plugin-os"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"gethostname 0.4.3",
"log",
"os_info",
"serde",
"serde_json",
"sys-locale",
"tauri",
"thiserror",
]
[[package]]
name = "tauri-plugin-persisted-scope"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"aho-corasick 1.0.1",
"bincode",
@ -5287,7 +5319,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-positioner"
version = "1.0.4"
version = "2.0.0-alpha.0"
dependencies = [
"log",
"serde",
@ -5299,14 +5331,14 @@ dependencies = [
[[package]]
name = "tauri-plugin-process"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"tauri",
]
[[package]]
name = "tauri-plugin-shell"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"encoding_rs",
"log",
@ -5322,7 +5354,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-single-instance"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"log",
"serde",
@ -5335,7 +5367,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-sql"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"futures-core",
"log",
@ -5350,7 +5382,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-store"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"log",
"serde",
@ -5361,10 +5393,10 @@ dependencies = [
[[package]]
name = "tauri-plugin-stronghold"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"hex",
"iota-crypto 0.17.1",
"iota-crypto 0.20.0",
"iota_stronghold",
"log",
"rand 0.8.5",
@ -5378,7 +5410,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-updater"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"base64 0.21.0",
"dirs-next",
@ -5406,7 +5438,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-upload"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"futures-util",
"log",
@ -5422,7 +5454,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-websocket"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"futures-util",
"log",
@ -5437,7 +5469,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-window"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"serde",
"tauri",
@ -5446,7 +5478,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-window-state"
version = "1.0.0"
version = "2.0.0-alpha.0"
dependencies = [
"bincode",
"bitflags 2.2.1",
@ -5459,8 +5491,9 @@ dependencies = [
[[package]]
name = "tauri-runtime"
version = "0.13.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "0.13.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7ce19f1309299bbc38ee9236307fad4943bd8fb09dd3fea5e9dd93c1d0898d6"
dependencies = [
"gtk",
"http",
@ -5479,8 +5512,9 @@ dependencies = [
[[package]]
name = "tauri-runtime-wry"
version = "0.13.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "0.13.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1231be42085f3a8b150e615601f8a070bd16bf579771a5dafe2931970a05b518"
dependencies = [
"cocoa",
"gtk",
@ -5499,12 +5533,14 @@ dependencies = [
[[package]]
name = "tauri-utils"
version = "2.0.0-alpha.5"
source = "git+https://github.com/tauri-apps/tauri?branch=next#e0f0dce220730e2822fc202463aedf0166145de7"
version = "2.0.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e2812e0cdfffb892c654555b2f1b8c84a035b4c56eb1646cb3eb5a9d8164d8e"
dependencies = [
"aes-gcm 0.10.1",
"brotli",
"ctor",
"dunce",
"getrandom 0.2.9",
"glob",
"heck 0.4.1",
@ -5604,7 +5640,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]
@ -5781,20 +5817,19 @@ dependencies = [
[[package]]
name = "tokio-tungstenite"
version = "0.18.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd"
checksum = "ec509ac96e9a0c43427c74f003127d953a265737636129424288d27cb5c4b12c"
dependencies = [
"futures-util",
"log",
"native-tls",
"rustls 0.20.8",
"rustls 0.21.1",
"tokio",
"tokio-native-tls",
"tokio-rustls 0.23.4",
"tokio-rustls 0.24.0",
"tungstenite",
"webpki",
"webpki-roots",
"webpki-roots 0.23.0",
]
[[package]]
@ -5939,19 +5974,19 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed"
[[package]]
name = "tungstenite"
version = "0.18.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30ee6ab729cd4cf0fd55218530c4522ed30b7b6081752839b68fcec8d0960788"
checksum = "15fba1a6d6bb030745759a9a2a588bfe8490fc8b4751a277db3a0be1c9ebbf67"
dependencies = [
"base64 0.13.1",
"byteorder",
"bytes 1.4.0",
"data-encoding",
"http",
"httparse",
"log",
"native-tls",
"rand 0.8.5",
"rustls 0.20.8",
"rustls 0.21.1",
"sha1",
"thiserror",
"url",
@ -6344,6 +6379,15 @@ dependencies = [
"webpki",
]
[[package]]
name = "webpki-roots"
version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa54963694b65584e170cf5dc46aeb4dcaa5584e652ff5f3952e56d66aff0125"
dependencies = [
"rustls-webpki",
]
[[package]]
name = "webview2-com"
version = "0.22.1"
@ -6854,7 +6898,7 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "592b4883219f345e712b3209c62654ebda0bb50887f330cbd018d0f654bfd507"
dependencies = [
"gethostname",
"gethostname 0.2.3",
"nix 0.24.3",
"winapi",
"winapi-wsapoll",
@ -6971,7 +7015,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.13",
"syn 2.0.18",
]
[[package]]

@ -5,8 +5,8 @@ resolver = "2"
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
log = "0.4"
tauri = { git = "https://github.com/tauri-apps/tauri", branch = "next" }
tauri-build = { git = "https://github.com/tauri-apps/tauri", branch = "next" }
tauri = "2.0.0-alpha.10"
tauri-build = "2.0.0-alpha.6"
serde_json = "1"
thiserror = "1"

@ -0,0 +1,7 @@
# Changelog
## \[2.0.0-alpha.0]
### Dependencies
- Plugins v2 alpha.

@ -2,7 +2,10 @@
<html lang="en" theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<title>Svelte + Vite App</title>
</head>

@ -1,6 +1,7 @@
{
"name": "svelte-app",
"version": "1.0.0",
"private": true,
"version": "2.0.0-alpha.0",
"type": "module",
"scripts": {
"dev": "vite --clearScreen false",
@ -8,30 +9,31 @@
"serve": "vite preview"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4",
"@zerodevx/svelte-json-view": "0.2.1",
"@tauri-apps/plugin-app": "1.0.0",
"@tauri-apps/plugin-cli": "1.0.0",
"@tauri-apps/plugin-clipboard": "1.0.0",
"@tauri-apps/plugin-dialog": "1.0.0",
"@tauri-apps/plugin-fs": "1.0.0",
"@tauri-apps/plugin-global-shortcut": "1.0.0",
"@tauri-apps/plugin-http": "1.0.0",
"@tauri-apps/plugin-notification": "1.0.0",
"@tauri-apps/plugin-os": "1.0.0",
"@tauri-apps/plugin-process": "1.0.0",
"@tauri-apps/plugin-shell": "1.0.0",
"@tauri-apps/plugin-updater": "1.0.0",
"@tauri-apps/plugin-window": "1.0.0"
"@tauri-apps/api": "2.0.0-alpha.5",
"@tauri-apps/plugin-app": "2.0.0-alpha.0",
"@tauri-apps/plugin-cli": "2.0.0-alpha.0",
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.0",
"@tauri-apps/plugin-dialog": "2.0.0-alpha.0",
"@tauri-apps/plugin-fs": "2.0.0-alpha.0",
"@tauri-apps/plugin-global-shortcut": "2.0.0-alpha.0",
"@tauri-apps/plugin-http": "2.0.0-alpha.0",
"@tauri-apps/plugin-notification": "2.0.0-alpha.0",
"@tauri-apps/plugin-os": "2.0.0-alpha.0",
"@tauri-apps/plugin-process": "2.0.0-alpha.0",
"@tauri-apps/plugin-shell": "2.0.0-alpha.0",
"@tauri-apps/plugin-updater": "2.0.0-alpha.0",
"@tauri-apps/plugin-window": "2.0.0-alpha.0",
"@zerodevx/svelte-json-view": "1.0.5"
},
"devDependencies": {
"@iconify-json/codicon": "^1.1.10",
"@iconify-json/ph": "^1.1.1",
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@tauri-apps/cli": "2.0.0-alpha.9",
"internal-ip": "^7.0.0",
"svelte": "^3.49.0",
"unocss": "^0.39.3",
"vite": "^3.0.9"
"@iconify-json/codicon": "^1.1.26",
"@iconify-json/ph": "^1.1.5",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@tauri-apps/cli": "2.0.0-alpha.10",
"@unocss/extractor-svelte": "^0.53.1",
"internal-ip": "^8.0.0",
"svelte": "^3.59.1",
"unocss": "^0.53.1",
"vite": "^4.3.9"
}
}

@ -0,0 +1,13 @@
# Changelog
## \[2.0.0-alpha.1]
### Dependencies
- Updated to latest `notification`
## \[2.0.0-alpha.0]
### Dependencies
- Plugins v2 alpha.

@ -1,49 +1,50 @@
[package]
name = "api"
version = "0.1.0"
publish = false
version = "2.0.0-alpha.1"
description = "An example Tauri Application showcasing the api"
edition = "2021"
rust-version = "1.65"
license = "Apache-2.0 OR MIT"
[lib]
crate-type = ["staticlib", "cdylib", "rlib"]
crate-type = [ "staticlib", "cdylib", "rlib" ]
[build-dependencies]
tauri-build = { workspace = true, features = ["codegen", "isolation"] }
tauri-build = { workspace = true, features = [ "codegen", "isolation" ] }
[dependencies]
serde_json = { workspace = true }
serde = { workspace = true }
tiny_http = "0.11"
log = { workspace = true }
tauri-plugin-app = { path = "../../../plugins/app", version = "1.0.0" }
tauri-plugin-log = { path = "../../../plugins/log", version = "1.0.0" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "1.0.0" }
tauri-plugin-clipboard = { path = "../../../plugins/clipboard", version = "1.0.0" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "1.0.0" }
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "1.0.0" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "1.0.0", features = [ "windows7-compat" ] }
tauri-plugin-os = { path = "../../../plugins/os", version = "1.0.0" }
tauri-plugin-process = { path = "../../../plugins/process", version = "1.0.0" }
tauri-plugin-shell = { path = "../../../plugins/shell", version = "1.0.0" }
tauri-plugin-window = { path = "../../../plugins/window", version = "1.0.0", features = ["devtools", "icon-ico", "icon-png"] }
tauri-plugin-app = { path = "../../../plugins/app", version = "2.0.0-alpha.0" }
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-alpha.0" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-alpha.0" }
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-alpha.0" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-alpha.0" }
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-alpha.0" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-alpha.0", features = [ "windows7-compat" ] }
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-alpha.0" }
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-alpha.0" }
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-alpha.0" }
tauri-plugin-window = { path = "../../../plugins/window", version = "2.0.0-alpha.0", features = [ "devtools", "icon-ico", "icon-png" ] }
[dependencies.tauri]
workspace = true
features = [
[dependencies.tauri]
workspace = true
features = [
"icon-ico",
"icon-png",
"isolation",
"macos-private-api",
"system-tray",
"protocol-asset",
"protocol-asset"
]
[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 = "1.0.0" }
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "1.0.0" }
tauri-plugin-updater = { path = "../../../plugins/updater", version = "1.0.0" }
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-alpha.0" }
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-alpha.0" }
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-alpha.0" }
[target."cfg(target_os = \"windows\")".dependencies]
window-shadows = "0.2"

@ -33,7 +33,7 @@ pub fn run() {
)
.plugin(tauri_plugin_app::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_clipboard::init())
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_notification::init())

@ -354,7 +354,7 @@
<!-- Sidebar toggle, only visible on small screens -->
<div
id="sidebarToggle"
class="z-2000 display-none lt-sm:flex justify-center items-center absolute top-2 left-2 w-8 h-8 rd-8
class="z-2000 sidebar-toggle display-none lt-sm:flex justify-center absolute items-center w-8 h-8 rd-8
bg-accent dark:bg-darkAccent active:bg-accentDark dark:active:bg-darkAccentDark"
>
{#if isSideBarOpen}

@ -39,3 +39,19 @@ code.code-block {
transform: translateX(var(--translate-x));
}
}
.sidebar-toggle {
margin-top: 0.5rem;
margin-left: 0.5rem;
}
body {
overflow: hidden;
padding: env(safe-area-inset-top) env(safe-area-inset-right)
env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#sidebar,
#console {
padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
}

@ -1,5 +1,5 @@
<script>
import { writeText, readText } from "@tauri-apps/plugin-clipboard";
import { writeText, readText } from "@tauri-apps/plugin-clipboard-manager";
export let onMessage;
let text = "clipboard message";

@ -2,13 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import {
defineConfig,
presetIcons,
presetUno,
extractorSvelte,
presetWebFonts,
} from "unocss";
import { defineConfig, presetIcons, presetUno, presetWebFonts } from "unocss";
import extractorSvelte from "@unocss/extractor-svelte";
export default defineConfig({
theme: {

@ -10,24 +10,24 @@
"format-check": "prettier --check ."
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"covector": "^0.9.0",
"eslint": "^8.38.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-security": "^1.7.1",
"prettier": "^2.8.7",
"rollup": "^3.20.4",
"typescript": "^5.0.4"
"prettier": "^2.8.8",
"rollup": "^3.25.1",
"typescript": "^5.1.3"
},
"engines": {
"pnpm": ">=7.24.2"
"pnpm": ">=7.33.0"
}
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,6 +1,7 @@
[package]
name = "tauri-plugin-app"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "APIs to read application metadata and change app visibility on macOS."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }

@ -22,7 +22,7 @@ declare global {
* const appVersion = await getVersion();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function getVersion(): Promise<string> {
return window.__TAURI_INVOKE__("plugin:app|version");
@ -36,7 +36,7 @@ async function getVersion(): Promise<string> {
* const appName = await getName();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function getName(): Promise<string> {
return window.__TAURI_INVOKE__("plugin:app|name");
@ -51,7 +51,7 @@ async function getName(): Promise<string> {
* const tauriVersion = await getTauriVersion();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function getTauriVersion(): Promise<string> {
return window.__TAURI_INVOKE__("plugin:app|tauri_version");
@ -66,7 +66,7 @@ async function getTauriVersion(): Promise<string> {
* await show();
* ```
*
* @since 1.2.0
* @since 2.0.0
*/
async function show(): Promise<void> {
return window.__TAURI_INVOKE__("plugin:app|show");
@ -81,7 +81,7 @@ async function show(): Promise<void> {
* await hide();
* ```
*
* @since 1.2.0
* @since 2.0.0
*/
async function hide(): Promise<void> {
return window.__TAURI_INVOKE__("plugin:app|hide");

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-app",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.5.0"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,14 +1,12 @@
[package]
name = "tauri-plugin-authenticator"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Use hardware security-keys in your Tauri App."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-authenticator",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"description": "Use hardware security-keys in your Tauri App.",
"license": "MIT or APACHE-2.0",
"authors": [
@ -28,6 +28,6 @@
"tslib": "^2.5.0"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -1 +0,0 @@
../../shared/tsconfig.json

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": ["guest-js/*.ts"]
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,18 +1,16 @@
[package]
name = "tauri-plugin-autostart"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Automatically launch your application at startup."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
auto-launch = "0.4"
auto-launch = "0.4"

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-autostart",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.5.0"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -1 +0,0 @@
../../shared/tsconfig.json

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": ["guest-js/*.ts"]
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,6 +1,7 @@
[package]
name = "tauri-plugin-cli"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Parse arguments from your Tauri application's command line interface."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
@ -11,4 +12,4 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
clap = { version = "4", features = ["string"] }
clap = { version = "4", features = [ "string" ] }

@ -15,7 +15,7 @@ declare global {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface ArgMatch {
/**
@ -31,7 +31,7 @@ interface ArgMatch {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface SubcommandMatch {
name: string;
@ -39,7 +39,7 @@ interface SubcommandMatch {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface CliMatches {
args: Record<string, ArgMatch>;
@ -65,7 +65,7 @@ interface CliMatches {
* }
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function getMatches(): Promise<CliMatches> {
return await window.__TAURI_INVOKE__("plugin:cli|cli_matches");

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-cli",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.4.1"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,10 +1,11 @@
[package]
name = "tauri-plugin-clipboard"
version = "1.0.0"
name = "tauri-plugin-clipboard-manager"
version = "2.0.0-alpha.0"
description = "Read and write to the system clipboard."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
links = "tauri-plugin-clipboard"
links = "tauri-plugin-clipboard-manager"
[build-dependencies]
tauri-build = { workspace = true }

@ -1,4 +1,4 @@
# Clipboard
# Clipboard Manager
Read and write to the system clipboard.
@ -18,9 +18,9 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
```toml
[dependencies]
tauri-plugin-clipboard = "2.0.0-alpha"
tauri-plugin-clipboard-manager = "2.0.0-alpha"
# alternatively with Git:
tauri-plugin-clipboard = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-clipboard-manager = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
```
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
@ -28,18 +28,18 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa
> Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use.
```sh
pnpm add @tauri-apps/plugin-clipboard
pnpm add @tauri-apps/plugin-clipboard-manager
# or
npm add @tauri-apps/plugin-clipboard
npm add @tauri-apps/plugin-clipboard-manager
# or
yarn add @tauri-apps/plugin-clipboard
yarn add @tauri-apps/plugin-clipboard-manager
# alternatively with Git:
pnpm add https://github.com/tauri-apps/tauri-plugin-clipboard#v2
pnpm add https://github.com/tauri-apps/tauri-plugin-clipboard-manager#v2
# or
npm add https://github.com/tauri-apps/tauri-plugin-clipboard#v2
npm add https://github.com/tauri-apps/tauri-plugin-clipboard-manager#v2
# or
yarn add https://github.com/tauri-apps/tauri-plugin-clipboard#v2
yarn add https://github.com/tauri-apps/tauri-plugin-clipboard-manager#v2
```
## Usage
@ -51,7 +51,7 @@ First you need to register the core plugin with Tauri:
```rust
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_clipboard::init())
.plugin(tauri_plugin_clipboard_manager::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
@ -60,7 +60,7 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript
import { writeText, readText } from "@tauri-apps/plugin-clipboard";
import { writeText, readText } from "@tauri-apps/plugin-clipboard-manager";
await writeText("Tauri is awesome!");
assert(await readText(), "Tauri is awesome!");
```

@ -25,14 +25,14 @@ type ClipResponse = Clip<"PlainText", string>;
* Writes plain text to the clipboard.
* @example
* ```typescript
* import { writeText, readText } from '@tauri-apps/plugin-clipboard';
* import { writeText, readText } from '@tauri-apps/plugin-clipboard-manager';
* await writeText('Tauri is awesome!');
* assert(await readText(), 'Tauri is awesome!');
* ```
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0.
* @since 2.0.0
*/
async function writeText(
text: string,
@ -53,10 +53,10 @@ async function writeText(
* Gets the clipboard content as plain text.
* @example
* ```typescript
* import { readText } from '@tauri-apps/plugin-clipboard';
* import { readText } from '@tauri-apps/plugin-clipboard-manager';
* const clipboardText = await readText();
* ```
* @since 1.0.0.
* @since 2.0.0
*/
async function readText(): Promise<string> {
const kind: ClipResponse = await window.__TAURI_INVOKE__(

@ -6,16 +6,16 @@
import PackageDescription
let package = Package(
name: "tauri-plugin-clipboard",
name: "tauri-plugin-clipboard-manager",
platforms: [
.iOS(.v13),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "tauri-plugin-clipboard",
name: "tauri-plugin-clipboard-manager",
type: .static,
targets: ["tauri-plugin-clipboard"]),
targets: ["tauri-plugin-clipboard-manager"]),
],
dependencies: [
.package(name: "Tauri", path: "../.tauri/tauri-api")
@ -24,7 +24,7 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "tauri-plugin-clipboard",
name: "tauri-plugin-clipboard-manager",
dependencies: [
.byName(name: "Tauri")
],

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-clipboard",
"version": "1.0.0",
"name": "@tauri-apps/plugin-clipboard-manager",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.4.1"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -0,0 +1 @@
if("__TAURI__"in window){var __TAURI_CLIPBOARDMANAGER__=function(_){"use strict";return _.readText=async function(){return(await window.__TAURI_INVOKE__("plugin:clipboard|read")).options},_.writeText=async function(_,n){return window.__TAURI_INVOKE__("plugin:clipboard|write",{data:{kind:"PlainText",options:{label:null==n?void 0:n.label,text:_}}})},_}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_CLIPBOARDMANAGER__})}

@ -1 +0,0 @@
if("__TAURI__"in window){var __TAURI_CLIPBOARD__=function(_){"use strict";return _.readText=async function(){return(await window.__TAURI_INVOKE__("plugin:clipboard|read")).options},_.writeText=async function(_,i){return window.__TAURI_INVOKE__("plugin:clipboard|write",{data:{kind:"PlainText",options:{label:null==i?void 0:i.label,text:_}}})},_}({});Object.defineProperty(window.__TAURI__,"clipboard",{value:__TAURI_CLIPBOARD__})}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,20 +1,19 @@
[package]
name = "tauri-plugin-dialog"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Native system dialogs for opening and saving files along with message dialogs on your Tauri application."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
links = "tauri-plugin-dialog"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
tauri-plugin-fs = { path = "../fs", version = "1.0.0" }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-alpha.0" }
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
glib = "0.16"

@ -23,7 +23,7 @@ interface FileResponse {
/**
* Extension filters for the file dialog.
*
* @since 1.0.0
* @since 2.0.0
*/
interface DialogFilter {
/** Filter name. */
@ -41,7 +41,7 @@ interface DialogFilter {
/**
* Options for the open dialog.
*
* @since 1.0.0
* @since 2.0.0
*/
interface OpenDialogOptions {
/** The title of the dialog window. */
@ -64,7 +64,7 @@ interface OpenDialogOptions {
/**
* Options for the save dialog.
*
* @since 1.0.0
* @since 2.0.0
*/
interface SaveDialogOptions {
/** The title of the dialog window. */
@ -80,7 +80,7 @@ interface SaveDialogOptions {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface MessageDialogOptions {
/** The title of the dialog. Defaults to the app name. */
@ -164,7 +164,7 @@ async function open(
*
* @returns A promise resolving to the selected path(s)
*
* @since 1.0.0
* @since 2.0.0
*/
async function open(
options: OpenDialogOptions = {}
@ -198,7 +198,7 @@ async function open(
*
* @returns A promise resolving to the selected path.
*
* @since 1.0.0
* @since 2.0.0
*/
async function save(options: SaveDialogOptions = {}): Promise<string | null> {
if (typeof options === "object") {
@ -222,7 +222,7 @@ async function save(options: SaveDialogOptions = {}): Promise<string | null> {
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*
*/
async function message(
@ -252,7 +252,7 @@ async function message(
*
* @returns A promise resolving to a boolean indicating whether `Yes` was clicked or not.
*
* @since 1.0.0
* @since 2.0.0
*/
async function ask(
message: string,
@ -282,7 +282,7 @@ async function ask(
*
* @returns A promise resolving to a boolean indicating whether `Ok` was clicked or not.
*
* @since 1.0.0
* @since 2.0.0
*/
async function confirm(
message: string,

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-dialog",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.4.1"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,23 +1,21 @@
[package]
name = "tauri-plugin-fs"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Access the file system."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { workspace = true }
tauri = { workspace = true }
thiserror = { workspace = true }
anyhow = "1"
uuid = { version = "1", features = ["v4"] }
uuid = { version = "1", features = [ "v4" ] }
glob = "0.3"
notify = { version = "5", optional = true, features = ["serde"] }
notify-debouncer-mini = { version = "0.2.1", optional = true, features = ["serde"] }
notify = { version = "5", optional = true, features = [ "serde" ] }
notify-debouncer-mini = { version = "0.2.1", optional = true, features = [ "serde" ] }
[features]
watch = ["notify", "notify-debouncer-mini"]
watch = [ "notify", "notify-debouncer-mini" ]

@ -161,7 +161,7 @@ interface BackendMetadata {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface FsOptions {
dir?: BaseDirectory;
@ -169,7 +169,7 @@ interface FsOptions {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface FsDirOptions {
dir?: BaseDirectory;
@ -179,7 +179,7 @@ interface FsDirOptions {
/**
* Options object used to write a UTF-8 string to a file.
*
* @since 1.0.0
* @since 2.0.0
*/
interface FsTextFileOption {
/** Path to the file to write. */
@ -193,7 +193,7 @@ type BinaryFileContents = Iterable<number> | ArrayLike<number> | ArrayBuffer;
/**
* Options object used to write a binary data to a file.
*
* @since 1.0.0
* @since 2.0.0
*/
interface FsBinaryFileOption {
/** Path to the file to write. */
@ -203,7 +203,7 @@ interface FsBinaryFileOption {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface FileEntry {
path: string;
@ -225,7 +225,7 @@ interface FileEntry {
* const contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig });
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function readTextFile(
filePath: string,
@ -246,7 +246,7 @@ async function readTextFile(
* const contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource });
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function readBinaryFile(
filePath: string,
@ -269,7 +269,7 @@ async function readBinaryFile(
* await writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig });
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeTextFile(
path: string,
@ -287,7 +287,7 @@ async function writeTextFile(
* ```
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeTextFile(
file: FsTextFileOption,
@ -299,7 +299,7 @@ async function writeTextFile(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeTextFile(
path: string | FsTextFileOption,
@ -347,7 +347,7 @@ async function writeTextFile(
* @param options Configuration object.
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeBinaryFile(
path: string,
@ -368,7 +368,7 @@ async function writeBinaryFile(
* @param options Configuration object.
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeBinaryFile(
file: FsBinaryFileOption,
@ -380,7 +380,7 @@ async function writeBinaryFile(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function writeBinaryFile(
path: string | FsBinaryFileOption,
@ -439,7 +439,7 @@ async function writeBinaryFile(
* }
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function readDir(
dir: string,
@ -464,7 +464,7 @@ async function readDir(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function createDir(
dir: string,
@ -488,7 +488,7 @@ async function createDir(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function removeDir(
dir: string,
@ -511,7 +511,7 @@ async function removeDir(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function copyFile(
source: string,
@ -536,7 +536,7 @@ async function copyFile(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function removeFile(
file: string,
@ -559,7 +559,7 @@ async function removeFile(
*
* @returns A promise indicating the success or failure of the operation.
*
* @since 1.0.0
* @since 2.0.0
*/
async function renameFile(
oldPath: string,
@ -582,7 +582,7 @@ async function renameFile(
* await exists('avatar.png', { dir: BaseDirectory.AppData });
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function exists(path: string): Promise<boolean> {
return await window.__TAURI_INVOKE__("plugin:fs|exists", { path });
@ -591,7 +591,7 @@ async function exists(path: string): Promise<boolean> {
/**
* Returns the metadata for the given path.
*
* @since 1.0.0
* @since 2.0.0
*/
async function metadata(path: string): Promise<Metadata> {
return await window

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-fs",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"description": "Access the file system.",
"license": "MIT or APACHE-2.0",
"authors": [
@ -28,6 +28,6 @@
"tslib": "^2.4.1"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
../../shared/tsconfig.json

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": ["guest-js/*.ts"]
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,6 +1,7 @@
[package]
name = "tauri-plugin-global-shortcut"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Register global hotkeys listeners on your Tauri application."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }

@ -32,7 +32,7 @@ export type ShortcutHandler = (shortcut: string) => void;
* @param shortcut Shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
* @param handler Shortcut handler callback - takes the triggered shortcut as argument
*
* @since 1.0.0
* @since 2.0.0
*/
async function register(
shortcut: string,
@ -57,7 +57,7 @@ async function register(
* @param shortcuts Array of shortcut definitions, modifiers and key separated by "+" e.g. CmdOrControl+Q
* @param handler Shortcut handler callback - takes the triggered shortcut as argument
*
* @since 1.0.0
* @since 2.0.0
*/
async function registerAll(
shortcuts: string[],
@ -82,7 +82,7 @@ async function registerAll(
*
* @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
*
* @since 1.0.0
* @since 2.0.0
*/
async function isRegistered(shortcut: string): Promise<boolean> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|is_registered", {
@ -100,7 +100,7 @@ async function isRegistered(shortcut: string): Promise<boolean> {
*
* @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
*
* @since 1.0.0
* @since 2.0.0
*/
async function unregister(shortcut: string): Promise<void> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister", {
@ -116,7 +116,7 @@ async function unregister(shortcut: string): Promise<void> {
* await unregisterAll();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function unregisterAll(): Promise<void> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister_all");

@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-global-shortcut",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@ -27,6 +27,6 @@
"tslib": "^2.4.1"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.4"
"@tauri-apps/api": "2.0.0-alpha.5"
}
}

@ -0,0 +1,5 @@
# Changelog
## \[2.0.0-alpha.0]
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!

@ -1,6 +1,7 @@
[package]
name = "tauri-plugin-http"
version = "1.0.0"
version = "2.0.0-alpha.0"
description = "Access an HTTP client written in Rust."
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
@ -10,7 +11,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
thiserror = { workspace = true }
tauri-plugin-fs = { path = "../fs", version = "1.0.0" }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-alpha.0" }
glob = "0.3"
rand = "0.8"
bytes = { version = "1", features = [ "serde" ] }

@ -31,7 +31,7 @@ declare global {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface Duration {
secs: number;
@ -39,7 +39,7 @@ interface Duration {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface ClientOptions {
/**
@ -51,7 +51,7 @@ interface ClientOptions {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
enum ResponseType {
JSON = 1,
@ -60,7 +60,7 @@ enum ResponseType {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
interface FilePart<T> {
file: string | T;
@ -73,7 +73,7 @@ type Part = string | Uint8Array | FilePart<Uint8Array>;
/**
* The body object to be used on POST and PUT requests.
*
* @since 1.0.0
* @since 2.0.0
*/
class Body {
type: string;
@ -115,6 +115,8 @@ class Body {
* @param data The body data.
*
* @returns The body object ready to be used on the POST and PUT requests.
*
* @since 2.0.0
*/
static form(data: Record<string, Part> | FormData): Body {
const form: Record<string, string | number[] | FilePart<number[]>> = {};
@ -166,6 +168,8 @@ class Body {
* @param data The body JSON object.
*
* @returns The body object ready to be used on the POST and PUT requests.
*
* @since 2.0.0
*/
static json<K extends string | number | symbol, V>(data: Record<K, V>): Body {
return new Body("Json", data);
@ -182,6 +186,8 @@ class Body {
* @param value The body string.
*
* @returns The body object ready to be used on the POST and PUT requests.
*
* @since 2.0.0
*/
static text(value: string): Body {
return new Body("Text", value);
@ -198,6 +204,8 @@ class Body {
* @param bytes The body byte array.
*
* @returns The body object ready to be used on the POST and PUT requests.
*
* @since 2.0.0
*/
static bytes(
bytes: Iterable<number> | ArrayLike<number> | ArrayBuffer
@ -225,7 +233,7 @@ type HttpVerb =
/**
* Options object sent to the backend.
*
* @since 1.0.0
* @since 2.0.0
*/
interface HttpOptions {
method: HttpVerb;
@ -254,7 +262,7 @@ interface IResponse<T> {
/**
* Response object.
*
* @since 1.0.0
* @since 2.0.0
* */
class Response<T> {
/** The request URL. */
@ -282,7 +290,7 @@ class Response<T> {
}
/**
* @since 1.0.0
* @since 2.0.0
*/
class Client {
id: number;
@ -481,7 +489,7 @@ class Client {
*
* @returns A promise resolving to the client instance.
*
* @since 1.0.0
* @since 2.0.0
*/
async function getClient(options?: ClientOptions): Promise<Client> {
return window

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

Loading…
Cancel
Save