@maz-ui/nuxt 4.0.0-beta.4 → 4.0.0-beta.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.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "4.0.0-beta.4",
7
+ "version": "4.0.0-beta.6",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -76,7 +76,6 @@ const defaults = {
76
76
  preset: "maz-ui",
77
77
  strategy: "hybrid",
78
78
  darkModeStrategy: "class",
79
- prefix: "maz",
80
79
  colorMode: "auto"
81
80
  },
82
81
  translations: {
@@ -1,2 +0,0 @@
1
- import type { AosHandler } from 'maz-ui/plugins/aos';
2
- export declare function useAos(): AosHandler;
@@ -1,2 +0,0 @@
1
- import type { DialogHandler } from 'maz-ui/plugins/dialog';
2
- export declare function useDialog(): DialogHandler;
@@ -1,2 +0,0 @@
1
- import type { ToastHandler } from 'maz-ui/plugins/toast';
2
- export declare function useToast(): ToastHandler;
@@ -1,2 +0,0 @@
1
- import type { WaitHandler } from 'maz-ui/plugins/wait';
2
- export declare function useWait(): WaitHandler;
@@ -1,12 +0,0 @@
1
- import { AosHandler } from 'maz-ui/plugins/aos';
2
- declare const _default: import("#app").Plugin<{
3
- mazAos: AosHandler;
4
- }> & import("#app").ObjectPlugin<{
5
- mazAos: AosHandler;
6
- }>;
7
- export default _default;
8
- declare module '#app' {
9
- interface NuxtApp {
10
- $mazAos: AosHandler;
11
- }
12
- }
@@ -1,7 +1,7 @@
1
1
  import { AosHandler, AosPlugin } from "maz-ui/plugins/aos";
2
2
  import { defineNuxtPlugin, useRouter } from "nuxt/app";
3
3
  export default defineNuxtPlugin(({ $config, vueApp }) => {
4
- const aosOptions = $config.public.mazUi?.composables?.useAos;
4
+ const aosOptions = $config.public.mazUi?.plugins?.aos;
5
5
  const options = typeof aosOptions === "object" ? { ...aosOptions, router: aosOptions.router ? useRouter() : void 0 } : {};
6
6
  vueApp.use(AosPlugin, options);
7
7
  return {
@@ -1,12 +0,0 @@
1
- import { DialogHandler } from 'maz-ui/plugins/dialog';
2
- declare const _default: import("#app").Plugin<{
3
- mazDialog: DialogHandler;
4
- }> & import("#app").ObjectPlugin<{
5
- mazDialog: DialogHandler;
6
- }>;
7
- export default _default;
8
- declare module '#app' {
9
- interface NuxtApp {
10
- $mazDialog: DialogHandler;
11
- }
12
- }
@@ -1,7 +1,7 @@
1
1
  import { DialogHandler } from "maz-ui/plugins/dialog";
2
2
  import { defineNuxtPlugin } from "nuxt/app";
3
3
  export default defineNuxtPlugin(({ vueApp, $config }) => {
4
- const dialogOptions = $config.public.mazUi?.composables?.useDialog;
4
+ const dialogOptions = $config.public.mazUi?.plugins?.dialog;
5
5
  const options = typeof dialogOptions === "object" ? dialogOptions : void 0;
6
6
  const instance = new DialogHandler(vueApp, options);
7
7
  const dialogServer = {
@@ -1,11 +0,0 @@
1
- declare const _default: import("#app").Plugin<{
2
- mazIconPath: any;
3
- }> & import("#app").ObjectPlugin<{
4
- mazIconPath: any;
5
- }>;
6
- export default _default;
7
- declare module '#app' {
8
- interface NuxtApp {
9
- $mazIconPath: string;
10
- }
11
- }
@@ -1,8 +0,0 @@
1
- import { type ThemeState } from '@maz-ui/themes';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module '#app' {
5
- interface NuxtApp {
6
- $mazThemeState: ThemeState;
7
- }
8
- }
@@ -35,7 +35,6 @@ export default defineNuxtPlugin(async ({ vueApp, $config }) => {
35
35
  const config = {
36
36
  strategy: "hybrid",
37
37
  darkModeStrategy: "class",
38
- prefix: "maz",
39
38
  colorMode: "auto",
40
39
  injectFullCSSOnServer: true,
41
40
  ...themeConfig,
@@ -55,7 +54,7 @@ export default defineNuxtPlugin(async ({ vueApp, $config }) => {
55
54
  const cssOptions = {
56
55
  mode: config.colorMode === "auto" ? "both" : config.colorMode,
57
56
  darkSelectorStrategy: config.darkModeStrategy ?? "class",
58
- prefix: config.prefix
57
+ prefix: "maz"
59
58
  };
60
59
  const criticalCSS = generateCriticalCSS(themeState.currentPreset, cssOptions);
61
60
  useHead({
@@ -1,12 +0,0 @@
1
- import { ToastHandler } from 'maz-ui/plugins/toast';
2
- declare const _default: import("#app").Plugin<{
3
- mazToast: ToastHandler;
4
- }> & import("#app").ObjectPlugin<{
5
- mazToast: ToastHandler;
6
- }>;
7
- export default _default;
8
- declare module '#app' {
9
- interface NuxtApp {
10
- $mazToast: ToastHandler;
11
- }
12
- }
@@ -1,7 +1,7 @@
1
1
  import { ToastHandler } from "maz-ui/plugins/toast";
2
2
  import { defineNuxtPlugin } from "nuxt/app";
3
3
  export default defineNuxtPlugin(({ vueApp, $config }) => {
4
- const toastOptions = $config.public.mazUi?.composables?.useToast;
4
+ const toastOptions = $config.public.mazUi?.plugins?.toast;
5
5
  const options = typeof toastOptions === "object" ? toastOptions : void 0;
6
6
  const instance = new ToastHandler(vueApp, options);
7
7
  const toastServer = {
@@ -1,8 +0,0 @@
1
- import { type MazTranslationsInstance } from '@maz-ui/translations';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module '#app' {
5
- interface NuxtApp {
6
- $mazTranslations: MazTranslationsInstance;
7
- }
8
- }
@@ -1,6 +1,6 @@
1
1
  import { MazTranslations } from "@maz-ui/translations";
2
2
  import { defineNuxtPlugin } from "nuxt/app";
3
- export default defineNuxtPlugin(async ({ vueApp, $config }) => {
3
+ export default defineNuxtPlugin(({ vueApp, $config }) => {
4
4
  const translationsOptions = $config.public.mazUi?.translations;
5
- await MazTranslations.install(vueApp, translationsOptions);
5
+ vueApp.use(MazTranslations, translationsOptions);
6
6
  });
@@ -1,8 +0,0 @@
1
- import { type VClickOutsideDirective } from 'maz-ui/directives/vClickOutside';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module 'vue' {
5
- interface GlobalDirectives {
6
- vClickOutside: VClickOutsideDirective;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import { type VFullscreenImgDirective } from 'maz-ui/directives/vFullscreenImg';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module 'vue' {
5
- interface GlobalDirectives {
6
- vFullscreenImg: VFullscreenImgDirective;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import { type VLazyImgDirective } from 'maz-ui/directives/vLazyImg';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module 'vue' {
5
- interface GlobalDirectives {
6
- vLazyImg: VLazyImgDirective;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import { type VTooltipDirective } from 'maz-ui/directives/vTooltip';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module 'vue' {
5
- interface GlobalDirectives {
6
- vTooltip: VTooltipDirective;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import { type VZoomImgDirective } from 'maz-ui/directives/vZoomImg';
2
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
3
- export default _default;
4
- declare module 'vue' {
5
- interface GlobalDirectives {
6
- vZoomImg: VZoomImgDirective;
7
- }
8
- }
@@ -1,12 +0,0 @@
1
- import { WaitHandler } from 'maz-ui/plugins/wait';
2
- declare const _default: import("#app").Plugin<{
3
- mazWait: WaitHandler;
4
- }> & import("#app").ObjectPlugin<{
5
- mazWait: WaitHandler;
6
- }>;
7
- export default _default;
8
- declare module '#app' {
9
- interface NuxtApp {
10
- $mazWait: WaitHandler;
11
- }
12
- }
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",
4
+ "version": "4.0.0-beta.6",
5
5
  "description": "Nuxt module for Maz-UI",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -52,15 +52,15 @@
52
52
  "lint": "cross-env NODE_ENV=production eslint .",
53
53
  "lint:fix": "pnpm lint --fix",
54
54
  "format": "prettier --ignore-path .gitignore . --write",
55
- "typecheck": "vue-tsc --noEmit --skipLibCheck --project tsconfig.check.json",
55
+ "typecheck": "vue-tsc --noEmit --skipLibCheck",
56
56
  "release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags"
57
57
  },
58
58
  "dependencies": {
59
- "@maz-ui/themes": "4.0.0-beta.4",
60
- "@maz-ui/translations": "4.0.0-beta.4",
59
+ "@maz-ui/themes": "4.0.0-beta.6",
60
+ "@maz-ui/translations": "4.0.0-beta.6",
61
61
  "@nuxt/kit": "^3.17.4",
62
62
  "defu": "^6.1.4",
63
- "maz-ui": "4.0.0-beta.4"
63
+ "maz-ui": "4.0.0-beta.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@nuxt/devtools": "^2.4.1",
@@ -76,5 +76,5 @@
76
76
  "*": "prettier -w -u",
77
77
  "*.{js,ts,mjs,mts,cjs,md}": "cross-env NODE_ENV=production eslint --fix"
78
78
  },
79
- "gitHead": "72d10dc17b2335002ee2a1cf21a62161554a83bb"
79
+ "gitHead": "bbff6fcfca7d47dd8f8024b69ac787b66ba0b65e"
80
80
  }