nuxt-modern-cropper 0.1.7 → 1.6.9
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 +9 -4
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +2 -2
- package/package.json +30 -16
package/README.md
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
[![License][license-src]][license-href]
|
|
6
6
|
[![Nuxt][nuxt-src]][nuxt-href]
|
|
7
7
|
|
|
8
|
-
Power-packed wrapper over cropperjs
|
|
8
|
+
Power-packed wrapper over `cropperjs` (v2).
|
|
9
9
|
|
|
10
|
-
This package is
|
|
11
|
-
<!-- - [📖 Documentation](https://example.com) -->
|
|
10
|
+
This package is a Nuxt module wrapper over [vue-modern-cropper](https://github.com/NamesMT/vue-modern-cropper), for more information and examples check it's repo.
|
|
12
11
|
|
|
13
12
|
## Table of Contents
|
|
14
13
|
<details>
|
|
@@ -26,7 +25,7 @@ This package is just a module wrapper over [vue-modern-cropper](https://github.c
|
|
|
26
25
|
## Usage
|
|
27
26
|
|
|
28
27
|
### Install & Setup
|
|
29
|
-
```
|
|
28
|
+
```sh
|
|
30
29
|
pnpm add -D nuxt-modern-cropper vue-modern-cropper
|
|
31
30
|
```
|
|
32
31
|
|
|
@@ -43,6 +42,12 @@ export default defineNuxtConfig({
|
|
|
43
42
|
|
|
44
43
|
That's it! You can now use `<ModernCropper />` in your Nuxt app ✨
|
|
45
44
|
|
|
45
|
+
>To infer the type of the component for `ref` creation, make sure to use `import type` to avoid build error, because the module is client-only.
|
|
46
|
+
```ts
|
|
47
|
+
import type { ModernCropper } from '#components'
|
|
48
|
+
|
|
49
|
+
const cropperRef = ref<InstanceType<typeof ModernCropper>>()
|
|
50
|
+
```
|
|
46
51
|
|
|
47
52
|
## Contribution
|
|
48
53
|
|
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nuxt_schema from 'nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nuxt_schema from 'nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
|
|
7
7
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-modern-cropper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"description": "Power-packed wrapper over cropperjs@next",
|
|
5
5
|
"repository": "namesmt/nuxt-modern-cropper",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"nuxt",
|
|
10
|
+
"nuxt-module",
|
|
11
|
+
"cropper",
|
|
12
|
+
"cropperjs",
|
|
13
|
+
"image",
|
|
14
|
+
"avatar"
|
|
15
|
+
],
|
|
8
16
|
"exports": {
|
|
9
17
|
".": {
|
|
10
18
|
"types": "./dist/types.d.ts",
|
|
@@ -29,29 +37,35 @@
|
|
|
29
37
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
30
38
|
},
|
|
31
39
|
"dependencies": {
|
|
32
|
-
"@nuxt/kit": "^3.
|
|
40
|
+
"@nuxt/kit": "^3.15.4"
|
|
33
41
|
},
|
|
34
42
|
"devDependencies": {
|
|
35
|
-
"@nuxt/devtools": "^1.
|
|
36
|
-
"@nuxt/eslint-config": "^
|
|
37
|
-
"@nuxt/module-builder": "^0.8.
|
|
38
|
-
"@nuxt/schema": "^3.
|
|
39
|
-
"@nuxt/test-utils": "^3.
|
|
40
|
-
"@types/node": "
|
|
41
|
-
"changelogen": "^0.
|
|
42
|
-
"eslint": "^9.
|
|
43
|
-
"nuxt": "^3.
|
|
44
|
-
"typescript": "
|
|
45
|
-
"vitest": "^
|
|
46
|
-
"vue-tsc": "^2.
|
|
43
|
+
"@nuxt/devtools": "^2.1.1",
|
|
44
|
+
"@nuxt/eslint-config": "^1.1.0",
|
|
45
|
+
"@nuxt/module-builder": "^0.8.4",
|
|
46
|
+
"@nuxt/schema": "^3.15.4",
|
|
47
|
+
"@nuxt/test-utils": "^3.17.0",
|
|
48
|
+
"@types/node": "latest",
|
|
49
|
+
"changelogen": "^0.6.0",
|
|
50
|
+
"eslint": "^9.21.0",
|
|
51
|
+
"nuxt": "^3.15.4",
|
|
52
|
+
"typescript": "^5.8.2",
|
|
53
|
+
"vitest": "^3.0.7",
|
|
54
|
+
"vue-tsc": "^2.2.8"
|
|
47
55
|
},
|
|
48
56
|
"peerDependencies": {
|
|
49
|
-
"
|
|
50
|
-
"vue-modern-cropper": "0.x"
|
|
57
|
+
"vue-modern-cropper": "^1"
|
|
51
58
|
},
|
|
52
59
|
"peerDependenciesMeta": {
|
|
53
60
|
"vue-modern-cropper": {
|
|
54
61
|
"optional": false
|
|
55
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"packageManager": "pnpm@10.5.2",
|
|
65
|
+
"pnpm": {
|
|
66
|
+
"onlyBuiltDependencies": [
|
|
67
|
+
"@parcel/watcher",
|
|
68
|
+
"esbuild"
|
|
69
|
+
]
|
|
56
70
|
}
|
|
57
71
|
}
|