vuetify-nuxt-module 0.5.11 → 0.5.13
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/dist/module.d.ts +3 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -4
- package/dist/runtime/plugins/config.mjs +1 -0
- package/package.json +3 -3
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import * as vuetify from 'vuetify';
|
|
3
|
-
import { VuetifyOptions, LocaleOptions, RtlOptions } from 'vuetify';
|
|
3
|
+
import { VuetifyOptions, createVuetify, LocaleOptions, RtlOptions } from 'vuetify';
|
|
4
4
|
import * as vuetify_locale from 'vuetify/locale';
|
|
5
5
|
import * as vuetify_labs_components from 'vuetify/labs/components';
|
|
6
6
|
import * as vuetify_directives from 'vuetify/directives';
|
|
@@ -202,7 +202,7 @@ interface MOptions {
|
|
|
202
202
|
/**
|
|
203
203
|
* Add Vuetify Vite Plugin `transformAssetsUrls`?
|
|
204
204
|
*
|
|
205
|
-
* @default
|
|
205
|
+
* @default true
|
|
206
206
|
*/
|
|
207
207
|
includeTransformAssetsUrls?: boolean;
|
|
208
208
|
/**
|
|
@@ -369,6 +369,7 @@ declare module '#app' {
|
|
|
369
369
|
isDev: boolean;
|
|
370
370
|
vuetifyOptions: VuetifyOptions;
|
|
371
371
|
}) => Promise<void> | void;
|
|
372
|
+
'vuetify:ready': (vuetify: ReturnType<typeof createVuetify>) => Promise<void> | void;
|
|
372
373
|
'vuetify:ssr-client-hints': (options: {
|
|
373
374
|
vuetifyOptions: VuetifyOptions;
|
|
374
375
|
ssrClientHints: SSRClientHints;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
|
12
12
|
import { isAbsolute, join, relative } from 'pathe';
|
|
13
13
|
import { normalizePath as normalizePath$1 } from 'vite';
|
|
14
14
|
|
|
15
|
-
const version = "0.5.
|
|
15
|
+
const version = "0.5.13";
|
|
16
16
|
|
|
17
17
|
const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
|
|
18
18
|
const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
|
|
@@ -1121,7 +1121,7 @@ function configureNuxt(configKey, nuxt, ctx) {
|
|
|
1121
1121
|
importComposables,
|
|
1122
1122
|
prefixComposables,
|
|
1123
1123
|
styles,
|
|
1124
|
-
includeTransformAssetsUrls =
|
|
1124
|
+
includeTransformAssetsUrls = true
|
|
1125
1125
|
} = ctx.moduleOptions;
|
|
1126
1126
|
const runtimeDir = ctx.resolver.resolve("./runtime");
|
|
1127
1127
|
nuxt.options.build.transpile.push(configKey);
|
|
@@ -1138,8 +1138,6 @@ function configureNuxt(configKey, nuxt, ctx) {
|
|
|
1138
1138
|
(_c = nuxt.options.vite.vue).template ?? (_c.template = {});
|
|
1139
1139
|
if (typeof nuxt.options.vite.vue.template.transformAssetUrls === "undefined")
|
|
1140
1140
|
nuxt.options.vite.vue.template.transformAssetUrls = transformAssetUrls;
|
|
1141
|
-
else
|
|
1142
|
-
ctx.logger.warn("[vuetify-nuxt-module] `includeTransformAssetsUrls` is enabled but `vite.vue.template.transformAssetUrls` is already configured, ignored!");
|
|
1143
1141
|
}
|
|
1144
1142
|
extendWebpackConfig(() => {
|
|
1145
1143
|
throw new Error("Webpack is not supported: vuetify-nuxt-module module can only be used with Vite!");
|
|
@@ -9,6 +9,7 @@ export async function configureVuetify() {
|
|
|
9
9
|
const vuetify = createVuetify(vuetifyOptions);
|
|
10
10
|
nuxtApp.vueApp.use(vuetify);
|
|
11
11
|
nuxtApp.provide("vuetify", vuetify);
|
|
12
|
+
await nuxtApp.hooks.callHook("vuetify:ready", vuetify);
|
|
12
13
|
if (process.client) {
|
|
13
14
|
isDev && console.log("Vuetify 3 initialized", vuetify);
|
|
14
15
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "0.5.13",
|
|
5
|
+
"packageManager": "pnpm@8.8.0",
|
|
6
6
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
7
7
|
"author": "userquin <userquin@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"perfect-debounce": "^1.0.0",
|
|
70
70
|
"unconfig": "^0.3.9",
|
|
71
71
|
"vite-plugin-vuetify": "^1.0.2",
|
|
72
|
-
"vuetify": "^3.3.
|
|
72
|
+
"vuetify": "^3.3.17"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@antfu/eslint-config": "^0.41.0",
|