vuetify-nuxt-module 1.0.0-rc.5 → 1.0.0-rc.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.mts CHANGED
@@ -329,9 +329,13 @@ interface MOptions {
329
329
  * Rules configuration.
330
330
  *
331
331
  * @since v0.19.0
332
- * @default true
333
332
  */
334
333
  rulesConfiguration?: {
334
+ /**
335
+ * Resolves import path for rules composable. Ignored since Vuetify 4.2.0.
336
+ *
337
+ * @default true
338
+ */
335
339
  fromLabs?: boolean;
336
340
  configFile?: string;
337
341
  };
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "1.0.0-rc.5",
7
+ "version": "1.0.0-rc.6",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -13,7 +13,7 @@ import { readFile } from 'node:fs/promises';
13
13
  import process from 'node:process';
14
14
  import { createConfigLoader } from 'unconfig';
15
15
 
16
- const version = "1.0.0-rc.5";
16
+ const version = "1.0.0-rc.6";
17
17
 
18
18
  const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
19
19
  const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `\0${VIRTUAL_VUETIFY_CONFIGURATION}`;
@@ -170,7 +170,7 @@ function addVuetifyNuxtPlugin(nuxt, ctx, mode) {
170
170
  rulesImports = [
171
171
  "",
172
172
  `import { rulesOptions } from '#build/vuetify/${ctx.rulesConfiguration.fromLabs ? "labs-" : ""}rules-configuration.mjs'`,
173
- `import { createRulesPlugin } from 'vuetify/${ctx.rulesConfiguration.fromLabs ? "labs/" : ""}rules'`
173
+ `import { createRulesPlugin } from '${ctx.rulesConfiguration.fromLabs ? "vuetify/labs/rules" : "vuetify"}'`
174
174
  ].join("\n");
175
175
  rulesPlugin = [
176
176
  "",
@@ -1593,7 +1593,10 @@ async function load(options, nuxt, ctx, reload = false) {
1593
1593
  ctx.moduleOptions = configuration.moduleOptions;
1594
1594
  ctx.vuetifyOptions = configuration.vuetifyOptions;
1595
1595
  ctx.enableRules = ctx.moduleOptions.enableRules;
1596
- ctx.rulesConfiguration = ctx.moduleOptions.rulesConfiguration;
1596
+ ctx.rulesConfiguration = { ...ctx.moduleOptions.rulesConfiguration };
1597
+ if (ctx.vuetifyGte("4.2.0")) {
1598
+ ctx.rulesConfiguration.fromLabs = false;
1599
+ }
1597
1600
  ctx.vuetifyFilesToWatch = Array.from(vuetifyConfigurationFilesToWatch);
1598
1601
  ctx.icons = prepareIcons(ctx.unocss, ctx.logger, vuetifyAppOptions, ctx.resolvePaths);
1599
1602
  ctx.ssrClientHints = prepareSSRClientHints(nuxt.options.app.baseURL ?? "/", ctx);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.5",
4
+ "version": "1.0.0-rc.6",
5
5
  "description": "Zero-Config Nuxt Module for Vuetify",
6
6
  "author": "userquin <userquin@gmail.com>",
7
7
  "license": "MIT",