@maz-ui/nuxt 4.0.0-beta.33 → 4.0.0-beta.35
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { MazUiThemeOptions } from '@maz-ui/themes';
|
|
3
|
-
import {
|
|
2
|
+
import { MazUiThemeOptions, ThemePreset, ThemePresetName } from '@maz-ui/themes';
|
|
3
|
+
import { MazUiTranslationsOptions } from '@maz-ui/translations';
|
|
4
4
|
import { VLazyImgOptions, VFullscreenImgOptions, VTooltipOptions } from 'maz-ui/directives';
|
|
5
5
|
import { AosOptions, DialogOptions, ToastOptions } from 'maz-ui/plugins';
|
|
6
6
|
|
|
@@ -49,7 +49,9 @@ interface MazUiNuxtOptions {
|
|
|
49
49
|
* colorMode: 'auto',
|
|
50
50
|
* }
|
|
51
51
|
*/
|
|
52
|
-
theme?: MazUiNuxtThemeOptions
|
|
52
|
+
theme?: Omit<MazUiNuxtThemeOptions, 'preset'> & {
|
|
53
|
+
preset?: ThemePreset | ThemePresetName;
|
|
54
|
+
};
|
|
53
55
|
/**
|
|
54
56
|
* Translations configuration
|
|
55
57
|
* @description If false, the translations system will be completely disabled
|
|
@@ -57,7 +59,7 @@ interface MazUiNuxtOptions {
|
|
|
57
59
|
* locale: 'en',
|
|
58
60
|
* }
|
|
59
61
|
*/
|
|
60
|
-
translations?:
|
|
62
|
+
translations?: MazUiTranslationsOptions;
|
|
61
63
|
/**
|
|
62
64
|
* CSS and styles configuration
|
|
63
65
|
*/
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -135,7 +135,7 @@ function addMazUiComposableImport({
|
|
|
135
135
|
addImports({
|
|
136
136
|
from,
|
|
137
137
|
name,
|
|
138
|
-
typeFrom: `maz-ui/
|
|
138
|
+
typeFrom: `maz-ui/composables`,
|
|
139
139
|
as: `use${capitalize(prefix)}${name.replace("use", "")}`
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -151,11 +151,7 @@ const module = defineNuxtModule({
|
|
|
151
151
|
/* eslint-disable complexity, sonarjs/cognitive-complexity */
|
|
152
152
|
setup(options, nuxt) {
|
|
153
153
|
const { resolve } = createResolver(import.meta.url);
|
|
154
|
-
nuxt.options.build.transpile
|
|
155
|
-
"maz-ui",
|
|
156
|
-
"@maz-ui/themes",
|
|
157
|
-
...nuxt.options.build.transpile
|
|
158
|
-
];
|
|
154
|
+
nuxt.options.build.transpile.push("maz-ui", "@maz-ui/themes", "@maz-ui/translations");
|
|
159
155
|
const moduleOptions = defu(
|
|
160
156
|
nuxt.options.runtimeConfig.public.mazUi,
|
|
161
157
|
options,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MazUiTranslations } from "@maz-ui/translations";
|
|
2
2
|
import { defineNuxtPlugin } from "nuxt/app";
|
|
3
3
|
export default defineNuxtPlugin(async ({ vueApp, $config }) => {
|
|
4
4
|
const translationsOptions = $config.public.mazUi.translations || {};
|
|
5
|
-
const i18n =
|
|
5
|
+
const i18n = MazUiTranslations.install?.(vueApp, translationsOptions);
|
|
6
6
|
if (import.meta.server) {
|
|
7
7
|
const locale = translationsOptions.locale || "en";
|
|
8
8
|
const fallbackLocale = translationsOptions.fallbackLocale || "en";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.35",
|
|
5
5
|
"description": "Nuxt module for Maz-UI",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
".": {
|
|
35
35
|
"types": "./dist/types.d.mts",
|
|
36
36
|
"import": "./dist/module.mjs"
|
|
37
|
-
}
|
|
38
|
-
"./*": "./*"
|
|
37
|
+
}
|
|
39
38
|
},
|
|
40
39
|
"main": "./dist/module.mjs",
|
|
41
40
|
"types": "./dist/types.d.mts",
|
|
@@ -56,15 +55,14 @@
|
|
|
56
55
|
"nuxt": ">=3.4.0 <5.0.0"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"@maz-ui/themes": "4.0.0-beta.
|
|
60
|
-
"@maz-ui/translations": "4.0.0-beta.
|
|
58
|
+
"@maz-ui/themes": "4.0.0-beta.35",
|
|
59
|
+
"@maz-ui/translations": "4.0.0-beta.35",
|
|
61
60
|
"@nuxt/kit": "^4.0.3",
|
|
62
61
|
"defu": "^6.1.4",
|
|
63
|
-
"maz-ui": "4.0.0-beta.
|
|
62
|
+
"maz-ui": "4.0.0-beta.35"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@nuxt/devtools": "^2.6.2",
|
|
67
|
-
"@nuxt/eslint-config": "^1.7.1",
|
|
68
66
|
"@nuxt/module-builder": "^1.0.2",
|
|
69
67
|
"@nuxt/schema": "^4.0.3",
|
|
70
68
|
"@nuxt/test-utils": "^3.19.2",
|
|
@@ -75,5 +73,5 @@
|
|
|
75
73
|
"lint-staged": {
|
|
76
74
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|
|
77
75
|
},
|
|
78
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c27390faa3370a981efb0bd908d712871e654f1e"
|
|
79
77
|
}
|