maz-ui 3.10.3 → 3.10.4
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/nuxt/index.ts +7 -7
- package/package.json +2 -2
package/nuxt/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface MazUiNuxtOptions {
|
|
|
16
16
|
/**
|
|
17
17
|
* Enable auto import of useTheme composable
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
injectUseThemeHandler?: boolean
|
|
20
20
|
/**
|
|
21
21
|
* install global of v-fullscreen-img directive
|
|
22
22
|
*/
|
|
@@ -71,9 +71,9 @@ export default defineNuxtModule<MazUiNuxtOptions>({
|
|
|
71
71
|
addComponent({
|
|
72
72
|
name: componentName,
|
|
73
73
|
filePath:
|
|
74
|
-
process.env.
|
|
75
|
-
? `maz-ui/components/${componentName}`
|
|
76
|
-
: `maz-ui/components/${componentName}
|
|
74
|
+
process.env.MAZ_UI_DEV === 'true'
|
|
75
|
+
? `maz-ui/components/${componentName}.vue`
|
|
76
|
+
: `maz-ui/components/${componentName}`,
|
|
77
77
|
})
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -96,11 +96,11 @@ export default defineNuxtModule<MazUiNuxtOptions>({
|
|
|
96
96
|
})
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
if (moduleOptions.
|
|
99
|
+
if (moduleOptions.injectUseThemeHandler) {
|
|
100
100
|
addImports({
|
|
101
101
|
from: 'maz-ui',
|
|
102
|
-
name: '
|
|
103
|
-
as: '
|
|
102
|
+
name: 'useThemeHandler',
|
|
103
|
+
as: 'useThemeHandler',
|
|
104
104
|
})
|
|
105
105
|
}
|
|
106
106
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.4",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
6
|
"main": "./modules/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint-staged": {
|
|
27
27
|
"*": "prettier -w -u",
|
|
28
28
|
"*.{js,ts,vue}": "cross-env NODE_ENV=production eslint --fix",
|
|
29
|
-
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix"
|
|
29
|
+
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix --allow-empty-input"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@nuxt/kit": "^3.4.0",
|