vuetify-nuxt-module 0.6.4 → 0.6.6
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 +20 -23
- package/dist/module.json +1 -1
- package/dist/module.mjs +35 -14
- package/dist/runtime/plugins/config.mjs +1 -1
- package/dist/runtime/plugins/date.mjs +1 -1
- package/dist/runtime/plugins/i18n.mjs +1 -1
- package/dist/runtime/plugins/vuetify-client-hints.client.d.ts +7 -2
- package/dist/runtime/plugins/vuetify-client-hints.client.mjs +2 -1
- package/dist/runtime/plugins/vuetify-client-hints.server.d.ts +7 -2
- package/dist/runtime/plugins/vuetify-client-hints.server.mjs +2 -1
- package/dist/runtime/plugins/vuetify-no-client-hints.d.ts +7 -0
- package/dist/runtime/plugins/vuetify-no-client-hints.mjs +16 -0
- package/dist/runtime/plugins/vuetify-sync.d.ts +6 -2
- package/dist/runtime/plugins/vuetify-sync.mjs +3 -3
- package/dist/runtime/plugins/vuetify.d.ts +6 -2
- package/dist/runtime/plugins/vuetify.mjs +3 -3
- package/dist/types.d.ts +4 -2
- package/package.json +9 -5
package/dist/module.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import
|
|
3
|
-
import { VuetifyOptions, createVuetify, LocaleOptions, RtlOptions } from 'vuetify';
|
|
2
|
+
import { HookResult } from '@nuxt/schema';
|
|
4
3
|
import * as vuetify_locale from 'vuetify/locale';
|
|
5
4
|
import * as vuetify_labs_components from 'vuetify/labs/components';
|
|
6
5
|
import * as vuetify_directives from 'vuetify/directives';
|
|
7
6
|
import * as vuetify_components from 'vuetify/components';
|
|
8
|
-
import {
|
|
7
|
+
import { VuetifyOptions, createVuetify, LocaleOptions, RtlOptions } from 'vuetify';
|
|
9
8
|
|
|
10
9
|
type DateAdapter = 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom';
|
|
11
10
|
/**
|
|
@@ -390,40 +389,38 @@ interface SSRClientHintsConfiguration {
|
|
|
390
389
|
lightThemeName: string;
|
|
391
390
|
};
|
|
392
391
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
vuetify?: ModuleOptions;
|
|
396
|
-
}
|
|
397
|
-
interface NuxtHooks {
|
|
398
|
-
'vuetify:registerModule': (registerModule: (config: InlineModuleOptions) => void) => void;
|
|
399
|
-
}
|
|
392
|
+
interface ModuleHooks {
|
|
393
|
+
'vuetify:registerModule': (registerModule: (config: InlineModuleOptions) => void) => HookResult;
|
|
400
394
|
}
|
|
401
|
-
declare module '#app' {
|
|
402
|
-
interface NuxtApp {
|
|
403
|
-
$vuetify: ReturnType<typeof vuetify['createVuetify']>;
|
|
404
|
-
/**
|
|
405
|
-
* Request headers received from the client in SSR.
|
|
406
|
-
*/
|
|
407
|
-
$ssrClientHints: UnwrapNestedRefs<SSRClientHints>;
|
|
408
|
-
}
|
|
395
|
+
declare module '#app/nuxt' {
|
|
409
396
|
interface RuntimeNuxtHooks {
|
|
410
397
|
'vuetify:configuration': (options: {
|
|
411
398
|
isDev: boolean;
|
|
412
399
|
vuetifyOptions: VuetifyOptions;
|
|
413
|
-
}) =>
|
|
400
|
+
}) => HookResult;
|
|
414
401
|
'vuetify:before-create': (options: {
|
|
415
402
|
isDev: boolean;
|
|
416
403
|
vuetifyOptions: VuetifyOptions;
|
|
417
|
-
}) =>
|
|
418
|
-
'vuetify:ready': (vuetify: ReturnType<typeof createVuetify>) =>
|
|
404
|
+
}) => HookResult;
|
|
405
|
+
'vuetify:ready': (vuetify: ReturnType<typeof createVuetify>) => HookResult;
|
|
419
406
|
'vuetify:ssr-client-hints': (options: {
|
|
420
407
|
vuetifyOptions: VuetifyOptions;
|
|
421
408
|
ssrClientHints: SSRClientHints;
|
|
422
409
|
ssrClientHintsConfiguration: SSRClientHintsConfiguration;
|
|
423
|
-
}) =>
|
|
410
|
+
}) => HookResult;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
declare module '@nuxt/schema' {
|
|
414
|
+
interface NuxtConfig {
|
|
415
|
+
['vuetify']?: Partial<ModuleOptions>;
|
|
416
|
+
}
|
|
417
|
+
interface NuxtOptions {
|
|
418
|
+
['vuetify']?: ModuleOptions;
|
|
419
|
+
}
|
|
420
|
+
interface NuxtHooks extends ModuleHooks {
|
|
424
421
|
}
|
|
425
422
|
}
|
|
426
423
|
|
|
427
424
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
428
425
|
|
|
429
|
-
export { ComponentName, Components, DateAdapter, DateOptions, DirectiveName, Directives, ExternalVuetifyOptions, FontAwesomeSvgIconSet, FontIconSet, IconFontName, IconSetName, IconsOptions, InlineModuleOptions, JSSVGIconSet, LabComponentName, LabComponents, MOptions, ModuleOptions, SSRClientHints, SSRClientHintsConfiguration, UnoCCSMdiIconSet, VOptions, VuetifyLocale, _default as default };
|
|
426
|
+
export { ComponentName, Components, DateAdapter, DateOptions, DirectiveName, Directives, ExternalVuetifyOptions, FontAwesomeSvgIconSet, FontIconSet, IconFontName, IconSetName, IconsOptions, InlineModuleOptions, JSSVGIconSet, LabComponentName, LabComponents, MOptions, ModuleHooks, ModuleOptions, SSRClientHints, SSRClientHintsConfiguration, UnoCCSMdiIconSet, VOptions, VuetifyLocale, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { addVitePlugin, extendWebpackConfig, addImports, addPlugin, useLogger, defineNuxtModule, isNuxt3, getNuxtVersion, createResolver, hasNuxtModule } from '@nuxt/kit';
|
|
2
|
+
import { isPackageExists, getPackageInfo } from 'local-pkg';
|
|
2
3
|
import defu from 'defu';
|
|
3
4
|
import { debounce } from 'perfect-debounce';
|
|
4
5
|
import { existsSync, statSync } from 'node:fs';
|
|
@@ -6,7 +7,6 @@ import { resolve, dirname, extname } from 'node:path';
|
|
|
6
7
|
import process from 'node:process';
|
|
7
8
|
import { createConfigLoader } from 'unconfig';
|
|
8
9
|
import { readFile, utimes } from 'node:fs/promises';
|
|
9
|
-
import { isPackageExists } from 'local-pkg';
|
|
10
10
|
import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir, generateImports } from '@vuetify/loader-shared';
|
|
11
11
|
import { isAbsolute, join, relative } from 'pathe';
|
|
12
12
|
import { normalizePath as normalizePath$1 } from 'vite';
|
|
@@ -15,7 +15,7 @@ import { parseQuery, parseURL } from 'ufo';
|
|
|
15
15
|
import destr from 'destr';
|
|
16
16
|
import { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
17
17
|
|
|
18
|
-
const version = "0.6.
|
|
18
|
+
const version = "0.6.6";
|
|
19
19
|
|
|
20
20
|
const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
|
|
21
21
|
const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
|
|
@@ -290,7 +290,7 @@ function prepareIcons(unocssPresent, logger, vuetifyOptions) {
|
|
|
290
290
|
resolvedIcons.imports.push(`import {${defaultSet === "fa-svg" ? "aliases," : ""}fa} from 'vuetify/iconsets/fa-svg'`);
|
|
291
291
|
resolvedIcons.imports.push("import { library } from '@fortawesome/fontawesome-svg-core'");
|
|
292
292
|
resolvedIcons.imports.push("import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'");
|
|
293
|
-
resolvedIcons.imports.push("import { useNuxtApp } from '#
|
|
293
|
+
resolvedIcons.imports.push("import { useNuxtApp } from '#imports'");
|
|
294
294
|
resolvedIcons.svg.fa = ["useNuxtApp().vueApp.component('font-awesome-icon', FontAwesomeIcon)"];
|
|
295
295
|
faSvg.libraries.forEach(([defaultExport, name, library]) => {
|
|
296
296
|
resolvedIcons.imports.push(`import ${defaultExport ? name : `{${name}}`} from '${library}'`);
|
|
@@ -598,6 +598,8 @@ function vuetifyStylesPlugin(options, logger) {
|
|
|
598
598
|
}
|
|
599
599
|
},
|
|
600
600
|
configResolved(config) {
|
|
601
|
+
if (config.plugins.findIndex((plugin) => plugin.name === "vuetify:styles") > -1)
|
|
602
|
+
throw new Error("Remove vite-plugin-vuetify from your Nuxt config file, this module registers a modified version.");
|
|
601
603
|
if (typeof options.styles === "object") {
|
|
602
604
|
if (isAbsolute(options.styles.configFile))
|
|
603
605
|
configFile = options.styles.configFile;
|
|
@@ -864,7 +866,8 @@ async function buildConfiguration(ctx) {
|
|
|
864
866
|
if (typeof labComponents === "boolean") {
|
|
865
867
|
config.imports.push("import * as labsComponents from 'vuetify/labs/components'");
|
|
866
868
|
config.labComponents.add("*");
|
|
867
|
-
|
|
869
|
+
if (ctx.vuetify3_4 === false)
|
|
870
|
+
addDatePicker = false;
|
|
868
871
|
} else if (typeof labComponents === "string") {
|
|
869
872
|
useLabComponents.push(labComponents);
|
|
870
873
|
} else if (Array.isArray(labComponents)) {
|
|
@@ -891,22 +894,32 @@ async function buildConfiguration(ctx) {
|
|
|
891
894
|
componentsArray.push(component);
|
|
892
895
|
config.labComponents.add(component);
|
|
893
896
|
});
|
|
894
|
-
if (dateOptions && !
|
|
897
|
+
if (ctx.vuetify3_4 === false && dateOptions && !addDatePicker) {
|
|
895
898
|
const entry = componentsToImport.get("VDatePicker");
|
|
896
899
|
if (entry) {
|
|
897
900
|
entry.push("VDatePicker");
|
|
898
901
|
config.labComponents.add("VDatePicker");
|
|
902
|
+
addDatePicker = false;
|
|
899
903
|
}
|
|
900
904
|
}
|
|
901
905
|
componentsToImport.forEach((componentsArray, from) => {
|
|
902
906
|
config.imports.push(`import {${componentsArray.join(",")}} from 'vuetify/labs/${from}'`);
|
|
903
907
|
});
|
|
904
|
-
addDatePicker = !config.labComponents.has("VDatePicker");
|
|
905
908
|
}
|
|
906
909
|
}
|
|
907
910
|
if (dateOptions && addDatePicker) {
|
|
908
|
-
|
|
909
|
-
|
|
911
|
+
let warn = true;
|
|
912
|
+
if (typeof ctx.vuetify3_4 === "boolean") {
|
|
913
|
+
warn = false;
|
|
914
|
+
if (ctx.vuetify3_4) {
|
|
915
|
+
config.components.add("VDatePicker");
|
|
916
|
+
config.imports.push("import {VDatePicker} from 'vuetify/components/VDatePicker'");
|
|
917
|
+
} else {
|
|
918
|
+
config.labComponents.add("VDatePicker");
|
|
919
|
+
config.imports.push("import {VDatePicker} from 'vuetify/labs/VDatePicker'");
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
warn && logger.warn("Unable to load Vuetify version from package.json, add VDatePicker to components or labComponents");
|
|
910
923
|
}
|
|
911
924
|
let componentsEntry = "";
|
|
912
925
|
if (config.components.size) {
|
|
@@ -1146,7 +1159,7 @@ export function dateConfiguration() {
|
|
|
1146
1159
|
`;
|
|
1147
1160
|
}
|
|
1148
1161
|
const { adapter: _adapter, ...newDateOptions } = ctx.vuetifyOptions.date ?? {};
|
|
1149
|
-
const imports = ctx.dateAdapter === "vuetify" ? "import { VuetifyDateAdapter } from 'vuetify/labs/date/adapters/vuetify'" : ctx.dateAdapter === "custom" ? "" : `import Adapter from '@date-io/${ctx.dateAdapter}'`;
|
|
1162
|
+
const imports = ctx.dateAdapter === "vuetify" ? ctx.vuetify3_4 === true ? "" : "import { VuetifyDateAdapter } from 'vuetify/labs/date/adapters/vuetify'" : ctx.dateAdapter === "custom" ? "" : `import Adapter from '@date-io/${ctx.dateAdapter}'`;
|
|
1150
1163
|
return `${imports}
|
|
1151
1164
|
export const enabled = true
|
|
1152
1165
|
export const isDev = ${ctx.isDev}
|
|
@@ -1162,7 +1175,7 @@ export function dateConfiguration() {
|
|
|
1162
1175
|
}
|
|
1163
1176
|
};
|
|
1164
1177
|
function buildAdapter() {
|
|
1165
|
-
if (ctx.dateAdapter === "custom")
|
|
1178
|
+
if (ctx.dateAdapter === "custom" || ctx.dateAdapter === "vuetify" && ctx.vuetify3_4 === true)
|
|
1166
1179
|
return "";
|
|
1167
1180
|
if (ctx.dateAdapter === "vuetify")
|
|
1168
1181
|
return "options.adapter = VuetifyDateAdapter";
|
|
@@ -1210,10 +1223,10 @@ function parseId(id) {
|
|
|
1210
1223
|
}
|
|
1211
1224
|
function vuetifyImportPlugin() {
|
|
1212
1225
|
return {
|
|
1213
|
-
name: "vuetify:import",
|
|
1226
|
+
name: "vuetify:import:nuxt",
|
|
1214
1227
|
configResolved(config) {
|
|
1215
|
-
if (config.plugins.findIndex((plugin) => plugin.name === "vuetify:import")
|
|
1216
|
-
throw new Error("
|
|
1228
|
+
if (config.plugins.findIndex((plugin) => plugin.name === "vuetify:import") > -1)
|
|
1229
|
+
throw new Error("Remove vite-plugin-vuetify from your Nuxt config file, this module registers a modified version.");
|
|
1217
1230
|
},
|
|
1218
1231
|
async transform(code, id) {
|
|
1219
1232
|
const { query, path } = parseId(id);
|
|
@@ -1305,6 +1318,10 @@ function configureNuxt(configKey, nuxt, ctx) {
|
|
|
1305
1318
|
src: ctx.resolver.resolve(runtimeDir, "plugins/vuetify-client-hints.server"),
|
|
1306
1319
|
mode: "server"
|
|
1307
1320
|
});
|
|
1321
|
+
} else {
|
|
1322
|
+
addPlugin({
|
|
1323
|
+
src: ctx.resolver.resolve(runtimeDir, "plugins/vuetify-no-client-hints")
|
|
1324
|
+
});
|
|
1308
1325
|
}
|
|
1309
1326
|
addPlugin({
|
|
1310
1327
|
src: ctx.resolver.resolve(runtimeDir, `plugins/vuetify${ctx.i18n ? "-sync" : ""}`)
|
|
@@ -1347,6 +1364,9 @@ const module = defineNuxtModule({
|
|
|
1347
1364
|
async setup(options, nuxt) {
|
|
1348
1365
|
if (!isNuxt3(nuxt))
|
|
1349
1366
|
logger.error(`Cannot support nuxt version: ${getNuxtVersion(nuxt)}`);
|
|
1367
|
+
const vuetifyPkg = await getPackageInfo("vuetify");
|
|
1368
|
+
const versions = vuetifyPkg?.version?.split(".").map((v) => Number.parseInt(v));
|
|
1369
|
+
const vuetify3_4 = versions && versions.length > 1 && versions[0] >= 3 && versions[1] >= 4;
|
|
1350
1370
|
const ctx = {
|
|
1351
1371
|
logger,
|
|
1352
1372
|
resolver: createResolver(import.meta.url),
|
|
@@ -1361,7 +1381,8 @@ const module = defineNuxtModule({
|
|
|
1361
1381
|
icons: void 0,
|
|
1362
1382
|
ssrClientHints: void 0,
|
|
1363
1383
|
componentsPromise: void 0,
|
|
1364
|
-
labComponentsPromise: void 0
|
|
1384
|
+
labComponentsPromise: void 0,
|
|
1385
|
+
vuetify3_4
|
|
1365
1386
|
};
|
|
1366
1387
|
await load(options, nuxt, ctx);
|
|
1367
1388
|
configureNuxt(CONFIG_KEY, nuxt, ctx);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVuetify } from "vuetify";
|
|
2
2
|
import { isDev, vuetifyConfiguration } from "virtual:vuetify-configuration";
|
|
3
|
-
import { useNuxtApp } from "#
|
|
3
|
+
import { useNuxtApp } from "#imports";
|
|
4
4
|
export async function configureVuetify() {
|
|
5
5
|
const nuxtApp = useNuxtApp();
|
|
6
6
|
const vuetifyOptions = vuetifyConfiguration();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { adapter, dateConfiguration, enabled, i18n } from "virtual:vuetify-date-configuration";
|
|
2
|
-
import { useNuxtApp } from "#
|
|
2
|
+
import { useNuxtApp } from "#imports";
|
|
3
3
|
export function configureDate(vuetifyOptions) {
|
|
4
4
|
if (adapter === "custom" || !enabled)
|
|
5
5
|
return;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { UnwrapNestedRefs } from 'vue';
|
|
2
|
+
import type { SSRClientHints } from './client-hints';
|
|
3
|
+
import type { Plugin } from '#app/nuxt';
|
|
4
|
+
declare const plugin: Plugin<{
|
|
5
|
+
ssrClientHints: UnwrapNestedRefs<SSRClientHints>;
|
|
6
|
+
}>;
|
|
7
|
+
export default plugin;
|
|
@@ -2,7 +2,7 @@ import { ssrClientHintsConfiguration } from "virtual:vuetify-ssr-client-hints-co
|
|
|
2
2
|
import { reactive, watch } from "vue";
|
|
3
3
|
import { VuetifyHTTPClientHints } from "./client-hints.mjs";
|
|
4
4
|
import { defineNuxtPlugin, useNuxtApp, useState } from "#imports";
|
|
5
|
-
|
|
5
|
+
const plugin = defineNuxtPlugin((nuxtApp) => {
|
|
6
6
|
const state = useState(VuetifyHTTPClientHints);
|
|
7
7
|
const {
|
|
8
8
|
firstRequest,
|
|
@@ -87,3 +87,4 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
87
87
|
})
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
|
+
export default plugin;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { UnwrapNestedRefs } from 'vue';
|
|
2
|
+
import type { SSRClientHints } from './client-hints';
|
|
3
|
+
import type { Plugin } from '#app/nuxt';
|
|
4
|
+
declare const plugin: Plugin<{
|
|
5
|
+
ssrClientHints: UnwrapNestedRefs<SSRClientHints>;
|
|
6
|
+
}>;
|
|
7
|
+
export default plugin;
|
|
@@ -24,7 +24,7 @@ const AcceptClientHintsRequestHeaders = Object.entries(AcceptClientHintsHeaders)
|
|
|
24
24
|
return acc;
|
|
25
25
|
}, {});
|
|
26
26
|
const HttpRequestHeaders = Array.from(Object.values(AcceptClientHintsRequestHeaders)).concat("user-agent", "cookie");
|
|
27
|
-
|
|
27
|
+
const plugin = defineNuxtPlugin((nuxtApp) => {
|
|
28
28
|
const state = useState(VuetifyHTTPClientHints);
|
|
29
29
|
const requestHeaders = useRequestHeaders(HttpRequestHeaders);
|
|
30
30
|
const userAgentHeader = requestHeaders["user-agent"];
|
|
@@ -237,3 +237,4 @@ function writeThemeCookie(clientHintsRequest, ssrClientHintsConfiguration2) {
|
|
|
237
237
|
}
|
|
238
238
|
return `${cookieName}=${themeName}; Path=${path}; Expires=${expires.toUTCString()}; SameSite=Lax`;
|
|
239
239
|
}
|
|
240
|
+
export default plugin;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { reactive } from "vue";
|
|
2
|
+
import { defineNuxtPlugin } from "#imports";
|
|
3
|
+
const plugin = defineNuxtPlugin(() => {
|
|
4
|
+
return {
|
|
5
|
+
provide: reactive({
|
|
6
|
+
ssrClientHints: {
|
|
7
|
+
firstRequest: false,
|
|
8
|
+
prefersColorSchemeAvailable: false,
|
|
9
|
+
prefersReducedMotionAvailable: false,
|
|
10
|
+
viewportHeightAvailable: false,
|
|
11
|
+
viewportWidthAvailable: false
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
export default plugin;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { configureVuetify } from "./config.mjs";
|
|
2
|
-
import { defineNuxtPlugin } from "#imports";
|
|
3
|
-
|
|
4
|
-
export default defineNuxtPlugin({
|
|
2
|
+
import { defineNuxtPlugin, useNuxtApp } from "#imports";
|
|
3
|
+
const plugin = defineNuxtPlugin({
|
|
5
4
|
name: "vuetify:configuration:plugin",
|
|
6
5
|
enforce: "post",
|
|
7
6
|
// i18n runtime plugin is async
|
|
@@ -10,3 +9,4 @@ export default defineNuxtPlugin({
|
|
|
10
9
|
useNuxtApp().hook("app:created", configureVuetify);
|
|
11
10
|
}
|
|
12
11
|
});
|
|
12
|
+
export default plugin;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { configureVuetify } from "./config.mjs";
|
|
2
|
-
import { defineNuxtPlugin } from "#imports";
|
|
3
|
-
|
|
4
|
-
export default defineNuxtPlugin({
|
|
2
|
+
import { defineNuxtPlugin, useNuxtApp } from "#imports";
|
|
3
|
+
const plugin = defineNuxtPlugin({
|
|
5
4
|
name: "vuetify:configuration:plugin",
|
|
6
5
|
enforce: "post",
|
|
7
6
|
setup() {
|
|
8
7
|
useNuxtApp().hook("app:created", configureVuetify);
|
|
9
8
|
}
|
|
10
9
|
});
|
|
10
|
+
export default plugin;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { ModuleOptions } from './module'
|
|
2
|
+
import { ModuleOptions, ModuleHooks } from './module'
|
|
3
3
|
|
|
4
4
|
declare module '@nuxt/schema' {
|
|
5
5
|
interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
|
|
6
6
|
interface NuxtOptions { ['vuetify']?: ModuleOptions }
|
|
7
|
+
interface NuxtHooks extends ModuleHooks {}
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
declare module 'nuxt/schema' {
|
|
10
11
|
interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
|
|
11
12
|
interface NuxtOptions { ['vuetify']?: ModuleOptions }
|
|
13
|
+
interface NuxtHooks extends ModuleHooks {}
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
export { ComponentName, Components, DateAdapter, DateOptions, DirectiveName, Directives, ExternalVuetifyOptions, FontAwesomeSvgIconSet, FontIconSet, IconFontName, IconSetName, IconsOptions, InlineModuleOptions, JSSVGIconSet, LabComponentName, LabComponents, MOptions, ModuleOptions, SSRClientHints, SSRClientHintsConfiguration, UnoCCSMdiIconSet, VOptions, VuetifyLocale, default } from './module'
|
|
17
|
+
export { ComponentName, Components, DateAdapter, DateOptions, DirectiveName, Directives, ExternalVuetifyOptions, FontAwesomeSvgIconSet, FontIconSet, IconFontName, IconSetName, IconsOptions, InlineModuleOptions, JSSVGIconSet, LabComponentName, LabComponents, MOptions, ModuleHooks, ModuleOptions, SSRClientHints, SSRClientHintsConfiguration, UnoCCSMdiIconSet, VOptions, VuetifyLocale, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.6",
|
|
5
5
|
"packageManager": "pnpm@8.10.2",
|
|
6
6
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
7
7
|
"author": "userquin <userquin@gmail.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"*.mjs"
|
|
44
44
|
],
|
|
45
45
|
"scripts": {
|
|
46
|
-
"prepack": "nuxt-module-build",
|
|
46
|
+
"prepack": "nuxt-module-build prepare && nuxt-module-build",
|
|
47
47
|
"dev": "nuxi dev playground",
|
|
48
48
|
"dev:multiple-json": "MULTIPLE_LANG_FILES=true nuxi dev playground",
|
|
49
49
|
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
@@ -65,7 +65,11 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@nuxt/kit": "^3.6.2",
|
|
67
67
|
"defu": "^6.1.2",
|
|
68
|
+
"destr": "^2.0.2",
|
|
69
|
+
"local-pkg": "^0.5.0",
|
|
70
|
+
"pathe": "^1.1.1",
|
|
68
71
|
"perfect-debounce": "^1.0.0",
|
|
72
|
+
"ufo": "^1.3.1",
|
|
69
73
|
"unconfig": "^0.3.9",
|
|
70
74
|
"vite-plugin-vuetify": "^1.0.2",
|
|
71
75
|
"vuetify": "^3.3.23"
|
|
@@ -84,7 +88,7 @@
|
|
|
84
88
|
"@nuxt/module-builder": "^0.4.0",
|
|
85
89
|
"@nuxt/schema": "^3.6.5",
|
|
86
90
|
"@nuxt/test-utils": "^3.6.5",
|
|
87
|
-
"@nuxtjs/i18n": "
|
|
91
|
+
"@nuxtjs/i18n": "8.0.0-rc.5",
|
|
88
92
|
"@parcel/watcher": "^2.2.0",
|
|
89
93
|
"@types/node": "^18",
|
|
90
94
|
"@unocss/nuxt": "^0.53.6",
|
|
@@ -126,6 +130,6 @@
|
|
|
126
130
|
},
|
|
127
131
|
"stackblitz": {
|
|
128
132
|
"installDependencies": false,
|
|
129
|
-
"startCommand": "node .stackblitz.js && pnpm install && pnpm run dev"
|
|
133
|
+
"startCommand": "node .stackblitz.js && pnpm install && pnpm dev:prepare && pnpm run dev"
|
|
130
134
|
}
|
|
131
|
-
}
|
|
135
|
+
}
|