nuxt-modern-cropper 1.6.9 → 1.6.11

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 CHANGED
@@ -47,6 +47,9 @@ That's it! You can now use `<ModernCropper />` in your Nuxt app ✨
47
47
  import type { ModernCropper } from '#components'
48
48
 
49
49
  const cropperRef = ref<InstanceType<typeof ModernCropper>>()
50
+
51
+ // Or better, use `useTemplateRef` to automatically infer the type (vue 3.5+)
52
+ const cropperRef = useTemplateRef('cropperRef')
50
53
  ```
51
54
 
52
55
  ## Contribution
package/dist/module.d.mts CHANGED
@@ -4,4 +4,5 @@ interface ModuleOptions {
4
4
  }
5
5
  declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
6
 
7
- export { type ModuleOptions, _default as default };
7
+ export { _default as default };
8
+ export type { ModuleOptions };
package/dist/module.d.ts CHANGED
@@ -4,4 +4,5 @@ interface ModuleOptions {
4
4
  }
5
5
  declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
6
 
7
- export { type ModuleOptions, _default as default };
7
+ export { _default as default };
8
+ export type { ModuleOptions };
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-modern-cropper",
3
3
  "configKey": "modernCropper",
4
- "version": "1.6.9",
4
+ "version": "1.6.11",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -1,2 +1,2 @@
1
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
package/dist/types.d.mts CHANGED
@@ -1 +1,7 @@
1
- export { type ModuleOptions, default } from './module.js'
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module.js'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1 +1,7 @@
1
- export { type ModuleOptions, default } from './module'
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-modern-cropper",
3
- "version": "1.6.9",
3
+ "version": "1.6.11",
4
4
  "description": "Power-packed wrapper over cropperjs@next",
5
5
  "repository": "namesmt/nuxt-modern-cropper",
6
6
  "license": "MIT",
@@ -37,20 +37,20 @@
37
37
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@nuxt/kit": "^3.15.4"
40
+ "@nuxt/kit": "^3.16.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@nuxt/devtools": "^2.1.1",
44
- "@nuxt/eslint-config": "^1.1.0",
43
+ "@nuxt/devtools": "^2.3.2",
44
+ "@nuxt/eslint-config": "^1.3.0",
45
45
  "@nuxt/module-builder": "^0.8.4",
46
- "@nuxt/schema": "^3.15.4",
47
- "@nuxt/test-utils": "^3.17.0",
46
+ "@nuxt/schema": "^3.16.2",
47
+ "@nuxt/test-utils": "^3.17.2",
48
48
  "@types/node": "latest",
49
- "changelogen": "^0.6.0",
50
- "eslint": "^9.21.0",
51
- "nuxt": "^3.15.4",
49
+ "changelogen": "^0.6.1",
50
+ "eslint": "^9.23.0",
51
+ "nuxt": "^3.16.2",
52
52
  "typescript": "^5.8.2",
53
- "vitest": "^3.0.7",
53
+ "vitest": "^3.1.1",
54
54
  "vue-tsc": "^2.2.8"
55
55
  },
56
56
  "peerDependencies": {
@@ -61,11 +61,16 @@
61
61
  "optional": false
62
62
  }
63
63
  },
64
- "packageManager": "pnpm@10.5.2",
64
+ "packageManager": "pnpm@10.7.1",
65
65
  "pnpm": {
66
66
  "onlyBuiltDependencies": [
67
67
  "@parcel/watcher",
68
68
  "esbuild"
69
- ]
69
+ ],
70
+ "overrides": {
71
+ "is-core-module": "npm:@nolyfill/is-core-module@^1.0.39",
72
+ "isarray": "npm:@nolyfill/isarray@^1.0.44",
73
+ "safe-buffer": "npm:@nolyfill/safe-buffer@^1.0.44"
74
+ }
70
75
  }
71
76
  }