@choochmeque/tauri-plugin-sharekit-api 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/dist-js/index.cjs +2 -2
- package/dist-js/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Tauri Plugin ShareKit
|
|
6
6
|
|
|
7
|
-
Share content to other apps via native Android
|
|
7
|
+
Share content to other apps via native sharing interfaces on Android, iOS, macOS and Windows.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -22,15 +22,13 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
|
|
|
22
22
|
|
|
23
23
|
```toml
|
|
24
24
|
[dependencies]
|
|
25
|
-
tauri-plugin-sharekit = "0.
|
|
25
|
+
tauri-plugin-sharekit = "0.2"
|
|
26
26
|
# alternatively with Git:
|
|
27
27
|
tauri-plugin-sharekit = { git = "https://github.com/Choochmeque/tauri-plugin-sharekit" }
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
|
|
31
31
|
|
|
32
|
-
> 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.
|
|
33
|
-
|
|
34
32
|
<!-- Add the branch for installations using git! -->
|
|
35
33
|
|
|
36
34
|
```sh
|
package/dist-js/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var core = require('@tauri-apps/api/core');
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
async function shareText(text, options) {
|
|
17
|
-
await core.invoke("plugin:
|
|
17
|
+
await core.invoke("plugin:sharekit|share_text", {
|
|
18
18
|
text,
|
|
19
19
|
...options,
|
|
20
20
|
});
|
|
@@ -34,7 +34,7 @@ async function shareText(text, options) {
|
|
|
34
34
|
* @returns
|
|
35
35
|
*/
|
|
36
36
|
async function shareFile(url, options) {
|
|
37
|
-
await core.invoke("plugin:
|
|
37
|
+
await core.invoke("plugin:sharekit|share_file", {
|
|
38
38
|
url,
|
|
39
39
|
...options,
|
|
40
40
|
});
|
package/dist-js/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { invoke } from '@tauri-apps/api/core';
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
async function shareText(text, options) {
|
|
15
|
-
await invoke("plugin:
|
|
15
|
+
await invoke("plugin:sharekit|share_text", {
|
|
16
16
|
text,
|
|
17
17
|
...options,
|
|
18
18
|
});
|
|
@@ -32,7 +32,7 @@ async function shareText(text, options) {
|
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
34
|
async function shareFile(url, options) {
|
|
35
|
-
await invoke("plugin:
|
|
35
|
+
await invoke("plugin:sharekit|share_file", {
|
|
36
36
|
url,
|
|
37
37
|
...options,
|
|
38
38
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choochmeque/tauri-plugin-sharekit-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "You",
|
|
6
|
-
"description": "A Tauri v2 plugin that enables sharing content with
|
|
6
|
+
"description": "A Tauri v2 plugin that enables sharing content with native sharing interfaces on Android, iOS, macOS and Windows.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"types": "./dist-js/index.d.ts",
|
|
9
9
|
"main": "./dist-js/index.cjs",
|