@vueuse/nuxt
Advanced tools
Comparing version 7.0.0-alpha.3 to 7.2.1
@@ -1,48 +0,1 @@ | ||
import * as vue_demi from 'vue-demi'; | ||
import { ConfigurableWindow } from '@vueuse/core'; | ||
export * from '@vueuse/core'; | ||
interface UseNuxtDarkOptions extends ConfigurableWindow { | ||
/** | ||
* HTML attribute applying the target element | ||
* | ||
* @default 'class' | ||
*/ | ||
attribute?: string; | ||
/** | ||
* Value applying to the target element when isDark=true | ||
* | ||
* @default 'dark' | ||
*/ | ||
valueDark?: string; | ||
/** | ||
* Value applying to the target element when isDark=false | ||
* | ||
* @default 'light' | ||
*/ | ||
valueLight?: string; | ||
/** | ||
* A custom handler for handle the updates. | ||
* When specified, the default behavior will be overridded. | ||
* | ||
* @default undefined | ||
*/ | ||
onChanged?: (isDark: boolean) => void; | ||
/** | ||
* Key to persist the data into Nuxt's useCookie. | ||
* | ||
* Pass `null` to disable persistence | ||
* | ||
* @default 'vueuse-color-schema' | ||
*/ | ||
cookieKey?: string; | ||
} | ||
/** | ||
* Reactive dark mode with auto data persistence for Nuxt. | ||
* | ||
* @see https://vueuse.org/useNuxtDark | ||
* @param options | ||
*/ | ||
declare function useNuxtDark(options?: UseNuxtDarkOptions): vue_demi.WritableComputedRef<boolean>; | ||
export { UseNuxtDarkOptions, useNuxtDark }; | ||
export default function(): void |
@@ -29,9 +29,12 @@ { | ||
"description": "VueUse Nuxt Module", | ||
"manualImport": true, | ||
"addon": true, | ||
"iife": false, | ||
"cjs": false, | ||
"dts": false, | ||
"target": "node14", | ||
"external": [ | ||
"@vueuse/core", | ||
"@vueuse/shared", | ||
"nuxt3", | ||
"#app" | ||
"local-pkg" | ||
], | ||
@@ -138,3 +141,2 @@ "dir": "packages/nuxt", | ||
"@Integrations", | ||
"@Nuxt", | ||
"@Router", | ||
@@ -798,2 +800,9 @@ "@RxJS", | ||
{ | ||
"name": "useFocusWithin", | ||
"package": "core", | ||
"docs": "https://vueuse.org/core/useFocusWithin/", | ||
"category": "Sensors", | ||
"description": "reactive utility to track if an element or one of its decendants has focus" | ||
}, | ||
{ | ||
"name": "useFps", | ||
@@ -1224,9 +1233,2 @@ "package": "core", | ||
{ | ||
"name": "useNuxtDark", | ||
"package": "nuxt", | ||
"docs": "https://vueuse.org/nuxt/useNuxtDark/", | ||
"category": "@Nuxt", | ||
"description": "reactive dark mode with auto data persistence for Nuxt" | ||
}, | ||
{ | ||
"name": "useRouteHash", | ||
@@ -1233,0 +1235,0 @@ "package": "router", |
{ | ||
"name": "@vueuse/nuxt", | ||
"version": "7.0.0-alpha.3", | ||
"version": "7.2.1", | ||
"description": "VueUse Nuxt Module", | ||
@@ -26,8 +26,3 @@ "keywords": [ | ||
}, | ||
"./*": "./*", | ||
"./module": { | ||
"import": "./module.mjs", | ||
"require": "./module.cjs", | ||
"types": "./module.d.ts" | ||
} | ||
"./*": "./*" | ||
}, | ||
@@ -43,8 +38,6 @@ "main": "./index.cjs", | ||
"dependencies": { | ||
"@vueuse/core": "7.1.1", | ||
"@vueuse/core": "7.2.1", | ||
"local-pkg": "^0.4.0", | ||
"vue-demi": "*" | ||
}, | ||
"devDependencies": { | ||
"nuxt3": "latest" | ||
} | ||
} |
@@ -5,6 +5,4 @@ # @vueuse/nuxt | ||
> This is an add-on of [VueUse](https://github.com/vueuse/vueuse), provides Nuxt specific composables and auto-import capabilities. | ||
> This is an add-on of [VueUse](https://github.com/vueuse/vueuse), which provides better Nuxt integration auto-import capabilities. | ||
> Experimental. **Will NOT follow semvar**. | ||
## Install | ||
@@ -21,3 +19,3 @@ | ||
buildModules: [ | ||
'@vueuse/nuxt/module' | ||
'@vueuse/nuxt' | ||
] | ||
@@ -27,15 +25,4 @@ }) | ||
## Functions | ||
`@vueuse/nuxt` provides the following functions | ||
<!--GENERATED LIST, DO NOT MODIFY MANUALLY--> | ||
<!--FUNCTIONS_LIST_STARTS--> | ||
- [`useNuxtDark`](https://vueuse.org/nuxt/useNuxtDark/) — reactive dark mode with auto data persistence for Nuxt | ||
<!--FUNCTIONS_LIST_ENDS--> | ||
## License | ||
[MIT License](https://github.com/vueuse/vueuse/blob/master/LICENSE) © 2021-PRESENT [Anthony Fu](https://github.com/antfu) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
50191
3
7
1458
26
+ Addedlocal-pkg@^0.4.0
+ Added@vueuse/core@7.2.1(transitive)
+ Added@vueuse/shared@7.2.1(transitive)
+ Addedlocal-pkg@0.4.3(transitive)
- Removed@vueuse/core@7.1.1(transitive)
- Removed@vueuse/shared@7.1.1(transitive)
Updated@vueuse/core@7.2.1