Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(plugin): rename NPM package to @crabnebula/tauri-plugin-drag #15

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"packages": {
"@crabnebula/plugin-drag": {
"@crabnebula/tauri-plugin-drag": {
"path": "./packages/tauri-plugin-api",
"manager": "javascript"
},
Expand Down
2 changes: 1 addition & 1 deletion .changes/initial-release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@crabnebula/plugin-drag": minor
"@crabnebula/tauri-plugin-drag": minor
"drag": minor
"tauri-plugin-drag": minor
---
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ There's two ways to consume this crate API: from Rust code via the `drag` crate

`$ cargo add tauri-plugin-drag`

- Install the `@crabnebula/plugin-drag` NPM package containing the API bindings:
- Install the `@crabnebula/tauri-plugin-drag` NPM package containing the API bindings:

```sh
pnpm add @crabnebula/plugin-drag
pnpm add @crabnebula/tauri-plugin-drag
# or
npm add @crabnebula/plugin-drag
npm add @crabnebula/tauri-plugin-drag
# or
yarn add @crabnebula/plugin-drag
yarn add @crabnebula/tauri-plugin-drag
```

- Register the core plugin with Tauri:
Expand All @@ -123,7 +123,7 @@ fn main() {
- Afterwards all the plugin's APIs are available through the JavaScript guest bindings:

```javascript
import { startDrag } from "@crabnebula/plugin-drag";
import { startDrag } from "@crabnebula/tauri-plugin-drag";
startDrag({ item: ['/path/to/drag/file'], icon: '/path/to/icon/image' })
```

Expand Down
2 changes: 1 addition & 1 deletion packages/tauri-plugin-api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@crabnebula/plugin-drag",
"name": "@crabnebula/tauri-plugin-drag",
"version": "0.0.0",
"author": "Lucas <[email protected]>",
"description": "Start a drag operation out of a Tauri window",
Expand Down