vuetify-nuxt-module 0.18.7 → 0.18.8

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023-PRESENT Joaquín Sánchez <https://github.com/userquin>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023-PRESENT Joaquín Sánchez <https://github.com/userquin>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,95 +1,95 @@
1
- <div align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://github.com/vuetifyjs/nuxt-module/raw/main/hero-dark.svg" />
4
- <img alt="vuetify-nuxt-module - Zero-config Nuxt Module for Vuetify" src='https://github.com/vuetifyjs/nuxt-module/raw/main/hero.svg' alt="vuetify-nuxt-module - Zero-config Nuxt Module for Vuetify"><br>
5
- </picture>
6
- <p>Zero-config Nuxt Module for Vuetify</p>
7
- </div>
8
-
9
- <p align='center'>
10
- <a href='https://www.npmjs.com/package/vuetify-nuxt-module' target="__blank">
11
- <img src='https://img.shields.io/npm/v/vuetify-nuxt-module?color=33A6B8&label=' alt="NPM version">
12
- </a>
13
- <a href="https://www.npmjs.com/package/vuetify-nuxt-module" target="__blank">
14
- <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/vuetify-nuxt-module?color=476582&label=">
15
- </a>
16
- <a href="https://nuxt.vuetifyjs.com/" target="__blank">
17
- <img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20guides&color=2e859c" alt="Docs & Guides">
18
- </a>
19
- <br>
20
- <a href="https://github.com/vuetifyjs/nuxt-module" target="__blank">
21
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/userquin/vuetify-nuxt-module?style=social">
22
- </a>
23
- </p>
24
-
25
- <br>
26
-
27
- ## 🚀 Features
28
-
29
- - 📖 [**Documentation & guides**](https://nuxt.vuetifyjs.com/)
30
- - 👌 **Zero-Config**: sensible built-in default [Vuetify](https://vuetifyjs.com/) configuration for common use cases
31
- - 🔌 **Extensible**: expose the ability to customize the Vuetify configuration via [Nuxt Runtime Hooks](https://nuxt.com/docs/guide/going-further/hooks#usage-with-plugins)
32
- - ⚡ **Fully Tree Shakable**: by default, only the needed Vuetify components are imported
33
- - 🛠️ **Versatile**: custom Vuetify [directives](https://vuetifyjs.com/en/getting-started/installation/#manual-steps) and [labs components](https://vuetifyjs.com/en/labs/introduction/) registration
34
- - ✨ **Configurable Styles**: configure your variables using [Vuetify SASS Variables](https://vuetifyjs.com/en/features/sass-variables/)
35
- - 💥 **SSR**: automatic SSR detection and configuration including [HTTP Client hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hints)
36
- - 🔩 **Nuxt Layers and Module Hooks**: load your Vuetify configuration using [Nuxt Layers](https://nuxt.com/docs/getting-started/layers#layers) or using a custom module via `vuetify:registerModule` [Nuxt Module Hook](https://nuxt.com/docs/guide/going-further/hooks#nuxt-hooks-build-time)
37
- - 📥 **Vuetify Configuration File**: configure your Vuetify options using a custom `vuetify.config` file, no dev server restart needed
38
- - 🔥 **Pure CSS Icons**: no more font/js icons, use the new `unocss-mdi` icon set or build your own with UnoCSS Preset Icons
39
- - 😃 **Icon Fonts**: configure the [icon font](https://vuetifyjs.com/en/features/icon-fonts/) you want to use, the module will automatically import it for you using CDN or local dependencies
40
- - 🎭 **SVG Icons**: ready to use [@mdi/js](https://www.npmjs.com/package/@mdi/js) and [@fortawesome/vue-fontawesome](https://www.npmjs.com/package/@fortawesome/vue-fontawesome) SVG icons packs
41
- - 📦 **Multiple Icon Sets**: register [multiple icon sets](https://vuetifyjs.com/en/features/icon-fonts/#multiple-icon-sets)
42
- - 🌍 **I18n Ready**: install [@nuxtjs/i18n](https://i18n.nuxtjs.org/) Nuxt module, and you're ready to use Vuetify [internationalization](https://vuetifyjs.com/en/features/internationalization/) features
43
- - 📆 **Date Components**: use Vuetify components [that require date functionality](https://vuetifyjs.com/en/features/dates/) installing and configuring one of the [@date-io](https://github.com/dmtrKovalenko/date-io#projects) adapters
44
- - 💬 **Auto-Import Vuetify Locale Messages**: add [Vuetify Locale Messages](https://vuetifyjs.com/en/features/internationalization/#getting-started) adding just the locales you want to use, no more imports needed
45
- - ⚙️ **Auto-Import Vuetify Composables**: you don't need to import Vuetify composables manually, they are automatically imported for you
46
- - 🎨 **Vuetify Blueprints**: use [Vuetify Blueprints](https://vuetifyjs.com/en/features/blueprints/) to quickly scaffold components
47
- - 👀 **Nuxt DevTools**: ready to inspect your Vuetify styles with the [Nuxt DevTools](https://github.com/nuxt/devtools) inspector
48
- - 🦾 **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/)
49
-
50
- ## 📦 Install
51
-
52
- > Requires Vite, will not work with Webpack
53
-
54
- ```bash
55
- npx nuxi@latest module add vuetify-nuxt-module
56
- ```
57
-
58
- [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/userquin/vuetify-nuxt-module)
59
-
60
- ## 🦄 Usage
61
-
62
- > `vuetify-nuxt-module` is strongly opinionated and has a built-in default configuration out of the box. You can use it without any configuration, and it will work for most use cases.
63
-
64
- Add `vuetify-nuxt-module` module to `nuxt.config.ts` and configure it:
65
-
66
- ```ts
67
- // Nuxt config file
68
- import { defineNuxtConfig } from 'nuxt/config'
69
-
70
- export default defineNuxtConfig({
71
- modules: [
72
- 'vuetify-nuxt-module'
73
- ],
74
- vuetify: {
75
- moduleOptions: {
76
- /* module specific options */
77
- },
78
- vuetifyOptions: {
79
- /* vuetify options */
80
- }
81
- }
82
- })
83
- ```
84
-
85
- Read the [📖 documentation](https://nuxt.vuetifyjs.com/) for a complete guide on how to configure and use this module.
86
-
87
- ## 👀 Full config
88
-
89
- Check out the [types](https://github.com/vuetifyjs/nuxt-module/blob/main/src/types.ts).
90
-
91
- The virtual modules can be found in [configuration.d.ts](https://github.com/vuetifyjs/nuxt-module/blob/main/configuration.d.ts) file.
92
-
93
- ## 📄 License
94
-
95
- [MIT](https://github.com/vuetifyjs/nuxt-module/blob/main/LICENSE) License &copy; 2023-PRESENT [Joaquín Sánchez](https://github.com/userquin)
1
+ <div align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/vuetifyjs/nuxt-module/raw/main/hero-dark.svg" />
4
+ <img alt="vuetify-nuxt-module - Zero-config Nuxt Module for Vuetify" src='https://github.com/vuetifyjs/nuxt-module/raw/main/hero.svg' alt="vuetify-nuxt-module - Zero-config Nuxt Module for Vuetify"><br>
5
+ </picture>
6
+ <p>Zero-config Nuxt Module for Vuetify</p>
7
+ </div>
8
+
9
+ <p align='center'>
10
+ <a href='https://www.npmjs.com/package/vuetify-nuxt-module' target="__blank">
11
+ <img src='https://img.shields.io/npm/v/vuetify-nuxt-module?color=33A6B8&label=' alt="NPM version">
12
+ </a>
13
+ <a href="https://www.npmjs.com/package/vuetify-nuxt-module" target="__blank">
14
+ <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/vuetify-nuxt-module?color=476582&label=">
15
+ </a>
16
+ <a href="https://nuxt.vuetifyjs.com/" target="__blank">
17
+ <img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20guides&color=2e859c" alt="Docs & Guides">
18
+ </a>
19
+ <br>
20
+ <a href="https://github.com/vuetifyjs/nuxt-module" target="__blank">
21
+ <img alt="GitHub stars" src="https://img.shields.io/github/stars/userquin/vuetify-nuxt-module?style=social">
22
+ </a>
23
+ </p>
24
+
25
+ <br>
26
+
27
+ ## 🚀 Features
28
+
29
+ - 📖 [**Documentation & guides**](https://nuxt.vuetifyjs.com/)
30
+ - 👌 **Zero-Config**: sensible built-in default [Vuetify](https://vuetifyjs.com/) configuration for common use cases
31
+ - 🔌 **Extensible**: expose the ability to customize the Vuetify configuration via [Nuxt Runtime Hooks](https://nuxt.com/docs/guide/going-further/hooks#usage-with-plugins)
32
+ - ⚡ **Fully Tree Shakable**: by default, only the needed Vuetify components are imported
33
+ - 🛠️ **Versatile**: custom Vuetify [directives](https://vuetifyjs.com/en/getting-started/installation/#manual-steps) and [labs components](https://vuetifyjs.com/en/labs/introduction/) registration
34
+ - ✨ **Configurable Styles**: configure your variables using [Vuetify SASS Variables](https://vuetifyjs.com/en/features/sass-variables/)
35
+ - 💥 **SSR**: automatic SSR detection and configuration including [HTTP Client hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hints)
36
+ - 🔩 **Nuxt Layers and Module Hooks**: load your Vuetify configuration using [Nuxt Layers](https://nuxt.com/docs/getting-started/layers#layers) or using a custom module via `vuetify:registerModule` [Nuxt Module Hook](https://nuxt.com/docs/guide/going-further/hooks#nuxt-hooks-build-time)
37
+ - 📥 **Vuetify Configuration File**: configure your Vuetify options using a custom `vuetify.config` file, no dev server restart needed
38
+ - 🔥 **Pure CSS Icons**: no more font/js icons, use the new `unocss-mdi` icon set or build your own with UnoCSS Preset Icons
39
+ - 😃 **Icon Fonts**: configure the [icon font](https://vuetifyjs.com/en/features/icon-fonts/) you want to use, the module will automatically import it for you using CDN or local dependencies
40
+ - 🎭 **SVG Icons**: ready to use [@mdi/js](https://www.npmjs.com/package/@mdi/js) and [@fortawesome/vue-fontawesome](https://www.npmjs.com/package/@fortawesome/vue-fontawesome) SVG icons packs
41
+ - 📦 **Multiple Icon Sets**: register [multiple icon sets](https://vuetifyjs.com/en/features/icon-fonts/#multiple-icon-sets)
42
+ - 🌍 **I18n Ready**: install [@nuxtjs/i18n](https://i18n.nuxtjs.org/) Nuxt module, and you're ready to use Vuetify [internationalization](https://vuetifyjs.com/en/features/internationalization/) features
43
+ - 📆 **Date Components**: use Vuetify components [that require date functionality](https://vuetifyjs.com/en/features/dates/) installing and configuring one of the [@date-io](https://github.com/dmtrKovalenko/date-io#projects) adapters
44
+ - 💬 **Auto-Import Vuetify Locale Messages**: add [Vuetify Locale Messages](https://vuetifyjs.com/en/features/internationalization/#getting-started) adding just the locales you want to use, no more imports needed
45
+ - ⚙️ **Auto-Import Vuetify Composables**: you don't need to import Vuetify composables manually, they are automatically imported for you
46
+ - 🎨 **Vuetify Blueprints**: use [Vuetify Blueprints](https://vuetifyjs.com/en/features/blueprints/) to quickly scaffold components
47
+ - 👀 **Nuxt DevTools**: ready to inspect your Vuetify styles with the [Nuxt DevTools](https://github.com/nuxt/devtools) inspector
48
+ - 🦾 **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/)
49
+
50
+ ## 📦 Install
51
+
52
+ > Requires Vite, will not work with Webpack
53
+
54
+ ```bash
55
+ npx nuxi@latest module add vuetify-nuxt-module
56
+ ```
57
+
58
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/userquin/vuetify-nuxt-module)
59
+
60
+ ## 🦄 Usage
61
+
62
+ > `vuetify-nuxt-module` is strongly opinionated and has a built-in default configuration out of the box. You can use it without any configuration, and it will work for most use cases.
63
+
64
+ Add `vuetify-nuxt-module` module to `nuxt.config.ts` and configure it:
65
+
66
+ ```ts
67
+ // Nuxt config file
68
+ import { defineNuxtConfig } from 'nuxt/config'
69
+
70
+ export default defineNuxtConfig({
71
+ modules: [
72
+ 'vuetify-nuxt-module'
73
+ ],
74
+ vuetify: {
75
+ moduleOptions: {
76
+ /* module specific options */
77
+ },
78
+ vuetifyOptions: {
79
+ /* vuetify options */
80
+ }
81
+ }
82
+ })
83
+ ```
84
+
85
+ Read the [📖 documentation](https://nuxt.vuetifyjs.com/) for a complete guide on how to configure and use this module.
86
+
87
+ ## 👀 Full config
88
+
89
+ Check out the [types](https://github.com/vuetifyjs/nuxt-module/blob/main/src/types.ts).
90
+
91
+ The virtual modules can be found in [configuration.d.ts](https://github.com/vuetifyjs/nuxt-module/blob/main/configuration.d.ts) file.
92
+
93
+ ## 📄 License
94
+
95
+ [MIT](https://github.com/vuetifyjs/nuxt-module/blob/main/LICENSE) License &copy; 2023-PRESENT [Joaquín Sánchez](https://github.com/userquin)
@@ -1,45 +1,45 @@
1
- declare module 'virtual:vuetify-configuration' {
2
- import type { VuetifyOptions } from 'vuetify';
3
-
4
- export const isDev: boolean
5
- export function vuetifyConfiguration(): VuetifyOptions
6
- }
7
-
8
- declare module 'virtual:vuetify-date-configuration' {
9
- import type { DateOptions } from 'vuetify';
10
-
11
- export const enabled: boolean
12
- export const isDev: boolean
13
- export const i18n: boolean
14
- export const adapter: 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom'
15
- export function dateConfiguration(): DateOptions
16
- }
17
-
18
- declare module 'virtual:vuetify-icons-configuration' {
19
- import type { IconOptions } from 'vuetify'
20
-
21
- export const enabled: boolean
22
- export const isDev: boolean
23
- export function iconsConfiguration(): IconOptions
24
- }
25
-
26
- declare module 'virtual:vuetify-ssr-client-hints-configuration' {
27
- export interface SSRClientHintsConfiguration {
28
- reloadOnFirstRequest: boolean
29
- viewportSize: boolean
30
- prefersColorScheme: boolean
31
- prefersReducedMotion: boolean
32
- clientWidth?: number
33
- clientHeight?: number
34
- prefersColorSchemeOptions?: {
35
- baseUrl: string
36
- defaultTheme: string
37
- themeNames: string[]
38
- cookieName: string
39
- darkThemeName: string
40
- lightThemeName: string
41
- useBrowserThemeOnly: boolean
42
- }
43
- }
44
- export const ssrClientHintsConfiguration: SSRClientHintsConfiguration
45
- }
1
+ declare module 'virtual:vuetify-configuration' {
2
+ import type { VuetifyOptions } from 'vuetify';
3
+
4
+ export const isDev: boolean
5
+ export function vuetifyConfiguration(): VuetifyOptions
6
+ }
7
+
8
+ declare module 'virtual:vuetify-date-configuration' {
9
+ import type { DateOptions } from 'vuetify';
10
+
11
+ export const enabled: boolean
12
+ export const isDev: boolean
13
+ export const i18n: boolean
14
+ export const adapter: 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom'
15
+ export function dateConfiguration(): DateOptions
16
+ }
17
+
18
+ declare module 'virtual:vuetify-icons-configuration' {
19
+ import type { IconOptions } from 'vuetify'
20
+
21
+ export const enabled: boolean
22
+ export const isDev: boolean
23
+ export function iconsConfiguration(): IconOptions
24
+ }
25
+
26
+ declare module 'virtual:vuetify-ssr-client-hints-configuration' {
27
+ export interface SSRClientHintsConfiguration {
28
+ reloadOnFirstRequest: boolean
29
+ viewportSize: boolean
30
+ prefersColorScheme: boolean
31
+ prefersReducedMotion: boolean
32
+ clientWidth?: number
33
+ clientHeight?: number
34
+ prefersColorSchemeOptions?: {
35
+ baseUrl: string
36
+ defaultTheme: string
37
+ themeNames: string[]
38
+ cookieName: string
39
+ darkThemeName: string
40
+ lightThemeName: string
41
+ useBrowserThemeOnly: boolean
42
+ }
43
+ }
44
+ export const ssrClientHintsConfiguration: SSRClientHintsConfiguration
45
+ }
@@ -1,3 +1,3 @@
1
- module.exports.defineVuetifyConfiguration = function(...args) {
2
- return import('./custom-configuration.mjs').then(m => m.defineVuetifyConfiguration.call(this, ...args))
3
- }
1
+ module.exports.defineVuetifyConfiguration = function(...args) {
2
+ return import('./custom-configuration.mjs').then(m => m.defineVuetifyConfiguration.call(this, ...args))
3
+ }
@@ -1,3 +1,3 @@
1
- import type { ExternalVuetifyOptions } from './dist/module.js'
2
- declare function defineVuetifyConfiguration(vuetifyOptions: ExternalVuetifyOptions): ExternalVuetifyOptions;
3
- export { defineVuetifyConfiguration };
1
+ import type { ExternalVuetifyOptions } from './dist/module.js'
2
+ declare function defineVuetifyConfiguration(vuetifyOptions: ExternalVuetifyOptions): ExternalVuetifyOptions;
3
+ export { defineVuetifyConfiguration };
@@ -1,4 +1,4 @@
1
- function defineVuetifyConfiguration(vuetifyOptions) {
2
- return vuetifyOptions;
3
- }
4
- export { /* #__PURE__ */ defineVuetifyConfiguration };
1
+ function defineVuetifyConfiguration(vuetifyOptions) {
2
+ return vuetifyOptions;
3
+ }
4
+ export { /* #__PURE__ */ defineVuetifyConfiguration };
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.9.0"
6
6
  },
7
- "version": "0.18.7",
7
+ "version": "0.18.8",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.3",
10
10
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -16,7 +16,7 @@ import { transformAssetUrls } from 'vite-plugin-vuetify';
16
16
  import { parseQuery, parseURL } from 'ufo';
17
17
  import destr from 'destr';
18
18
 
19
- const version = "0.18.7";
19
+ const version = "0.18.8";
20
20
 
21
21
  const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
22
22
  const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `\0${VIRTUAL_VUETIFY_CONFIGURATION}`;
@@ -1475,7 +1475,7 @@ const module = defineNuxtModule({
1475
1475
  vuetifyFilesToWatch: [],
1476
1476
  isSSR: nuxt.options.ssr,
1477
1477
  isDev: nuxt.options.dev,
1478
- isNuxtGenerate: nuxt.options._generate,
1478
+ isNuxtGenerate: !!nuxt.options.nitro.static,
1479
1479
  unocss: hasNuxtModule("@unocss/nuxt", nuxt),
1480
1480
  i18n: hasNuxtModule("@nuxtjs/i18n", nuxt),
1481
1481
  icons: void 0,
@@ -1,29 +1,29 @@
1
- import type { UnwrapNestedRefs } from 'vue'
2
- import type { createVuetify } from 'vuetify'
3
-
4
- export interface ClientHintRequestFeatures {
5
- firstRequest: boolean
6
- prefersColorSchemeAvailable: boolean
7
- prefersReducedMotionAvailable: boolean
8
- viewportHeightAvailable: boolean
9
- viewportWidthAvailable: boolean
10
- devicePixelRatioAvailable: boolean
11
- }
12
- export interface SSRClientHints extends ClientHintRequestFeatures {
13
- prefersColorScheme?: 'dark' | 'light' | 'no-preference'
14
- prefersReducedMotion?: 'no-preference' | 'reduce'
15
- viewportHeight?: number
16
- viewportWidth?: number
17
- devicePixelRatio?: number
18
- colorSchemeFromCookie?: string
19
- colorSchemeCookie?: string
20
- }
21
-
22
- declare module '#app' {
23
- interface NuxtApp {
24
- $vuetify: ReturnType<typeof createVuetify>
25
- $ssrClientHints: UnwrapNestedRefs<SSRClientHints>
26
- }
27
- }
28
-
29
- export {}
1
+ import type { UnwrapNestedRefs } from 'vue'
2
+ import type { createVuetify } from 'vuetify'
3
+
4
+ export interface ClientHintRequestFeatures {
5
+ firstRequest: boolean
6
+ prefersColorSchemeAvailable: boolean
7
+ prefersReducedMotionAvailable: boolean
8
+ viewportHeightAvailable: boolean
9
+ viewportWidthAvailable: boolean
10
+ devicePixelRatioAvailable: boolean
11
+ }
12
+ export interface SSRClientHints extends ClientHintRequestFeatures {
13
+ prefersColorScheme?: 'dark' | 'light' | 'no-preference'
14
+ prefersReducedMotion?: 'no-preference' | 'reduce'
15
+ viewportHeight?: number
16
+ viewportWidth?: number
17
+ devicePixelRatio?: number
18
+ colorSchemeFromCookie?: string
19
+ colorSchemeCookie?: string
20
+ }
21
+
22
+ declare module '#app' {
23
+ interface NuxtApp {
24
+ $vuetify: ReturnType<typeof createVuetify>
25
+ $ssrClientHints: UnwrapNestedRefs<SSRClientHints>
26
+ }
27
+ }
28
+
29
+ export {}
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.18.7",
5
- "packageManager": "pnpm@10.11.1",
4
+ "version": "0.18.8",
6
5
  "description": "Zero-Config Nuxt Module for Vuetify",
7
6
  "author": "userquin <userquin@gmail.com>",
8
7
  "license": "MIT",
@@ -41,29 +40,6 @@
41
40
  "*.d.ts",
42
41
  "*.mjs"
43
42
  ],
44
- "scripts": {
45
- "prepack": "nuxt-module-build prepare && nuxt-module-build build",
46
- "dev": "nuxi dev playground",
47
- "dev:multiple-json": "MULTIPLE_LANG_FILES=true nuxi dev playground",
48
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
49
- "dev:prepare:multiple-json": "nuxt-module-build build --stub && nuxt-module-build prepare && MULTIPLE_LANG_FILES=true nuxi prepare playground",
50
- "dev:build": "nuxi build playground",
51
- "dev:generate": "nuxi generate playground",
52
- "dev:build:multiple-json": "MULTIPLE_LANG_FILES=true nuxi build playground",
53
- "dev:generate:multiple-json": "MULTIPLE_LANG_FILES=true nuxi generate playground",
54
- "dev:preview": "nuxi preview playground",
55
- "dev:prepare:date-io": "nuxt-module-build build --stub && nuxt-module-build prepare && pnpm nuxt prepare date-io-playground",
56
- "dev:date-io": "nuxi dev date-io-playground",
57
- "docs:dev": "pnpm -C docs run dev",
58
- "docs:build": "nuxt-module-build prepare && pnpm -C docs run build",
59
- "docs:serve": "pnpm -C docs run serve",
60
- "lint": "eslint .",
61
- "lint:fix": "nr lint --fix",
62
- "publint": "publint",
63
- "test": "vitest run",
64
- "test:watch": "vitest watch",
65
- "release": "bumpp && npm publish"
66
- },
67
43
  "dependencies": {
68
44
  "@nuxt/kit": "^3.12.4",
69
45
  "defu": "^6.1.4",
@@ -107,13 +83,6 @@
107
83
  "vitest": "^2.0.5",
108
84
  "vue-tsc": "^2.0.29"
109
85
  },
110
- "pnpm": {
111
- "peerDependencyRules": {
112
- "ignoreMissing": [
113
- "@algolia/client-search"
114
- ]
115
- }
116
- },
117
86
  "resolutions": {
118
87
  "@nuxt/kit": "3.12.4",
119
88
  "vite": "5.4.1",
@@ -142,5 +111,27 @@
142
111
  "stackblitz": {
143
112
  "installDependencies": false,
144
113
  "startCommand": "node .stackblitz.js && pnpm install && nr prepack && nr dev:prepare && nr dev"
114
+ },
115
+ "scripts": {
116
+ "dev": "nuxi dev playground",
117
+ "dev:multiple-json": "MULTIPLE_LANG_FILES=true nuxi dev playground",
118
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
119
+ "dev:prepare:multiple-json": "nuxt-module-build build --stub && nuxt-module-build prepare && MULTIPLE_LANG_FILES=true nuxi prepare playground",
120
+ "dev:build": "nuxi build playground",
121
+ "dev:generate": "nuxi generate playground",
122
+ "dev:build:multiple-json": "MULTIPLE_LANG_FILES=true nuxi build playground",
123
+ "dev:generate:multiple-json": "MULTIPLE_LANG_FILES=true nuxi generate playground",
124
+ "dev:preview": "nuxi preview playground",
125
+ "dev:prepare:date-io": "nuxt-module-build build --stub && nuxt-module-build prepare && pnpm nuxt prepare date-io-playground",
126
+ "dev:date-io": "nuxi dev date-io-playground",
127
+ "docs:dev": "pnpm -C docs run dev",
128
+ "docs:build": "nuxt-module-build prepare && pnpm -C docs run build",
129
+ "docs:serve": "pnpm -C docs run serve",
130
+ "lint": "eslint .",
131
+ "lint:fix": "nr lint --fix",
132
+ "publint": "publint",
133
+ "test": "vitest run",
134
+ "test:watch": "vitest watch",
135
+ "release": "bumpp"
145
136
  }
146
- }
137
+ }