@mevbg/nuxt-kit 0.1.2 → 0.1.3

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
@@ -3,6 +3,7 @@ import { ColorSchemeKey } from '@mevbg/nuxt-color-scheme';
3
3
  export * from '@mevbg/nuxt-color-scheme';
4
4
 
5
5
  interface NuxtKitOptions {
6
+ wm?: boolean;
6
7
  colorScheme?: {
7
8
  default?: ColorSchemeKey;
8
9
  systemScheme?: boolean;
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "configKey": "mevKit",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
package/dist/module.mjs CHANGED
@@ -9,12 +9,14 @@ const module = defineNuxtModule({
9
9
  },
10
10
  // Default configuration options of the Nuxt module
11
11
  defaults: {
12
+ wm: true,
12
13
  colorScheme: {
13
14
  default: DEFAULT_COLOR_SCHEME,
14
15
  systemScheme: true
15
16
  }
16
17
  },
17
- async setup(options) {
18
+ async setup(options, nuxt) {
19
+ nuxt.options.runtimeConfig.public.wm = options.wm;
18
20
  const resolver = createResolver(import.meta.url);
19
21
  addPlugin(resolver.resolve("./runtime/plugins/wm.plugin"));
20
22
  await installModule("@mevbg/nuxt-color-scheme", {
@@ -1,7 +1,7 @@
1
- import { defineNuxtPlugin } from "#app";
1
+ import { defineNuxtPlugin, useRuntimeConfig } from "#app";
2
2
  import wm from "@mevbg/wm";
3
3
  export default defineNuxtPlugin(() => {
4
- if (import.meta.client) {
4
+ if (import.meta.client && useRuntimeConfig().public.wm) {
5
5
  wm();
6
6
  }
7
7
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "title": "Mev’s Nuxt Kit",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "description": "Mev’s personal Nuxt kit module.",
6
6
  "keywords": [
7
7
  "nuxt kit",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@mevbg/design-essentials-vendor": "^2.0.4",
64
- "@mevbg/nuxt-color-scheme": "^1.0.2",
64
+ "@mevbg/nuxt-color-scheme": "^1.0.3",
65
65
  "@nuxt/kit": "^4.0.3"
66
66
  },
67
67
  "devDependencies": {