@mevbg/nuxt-kit 0.1.19 → 0.1.22

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "configKey": "mevKit",
4
- "version": "0.1.19",
4
+ "version": "0.1.22",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
package/dist/module.mjs CHANGED
@@ -31,8 +31,8 @@ const module = defineNuxtModule({
31
31
  addPlugin(resolver.resolve("./runtime/plugins/tooltip-system.plugin"));
32
32
  addImports([
33
33
  {
34
- name: "useClientInfo",
35
- from: resolver.resolve("./runtime/composables/useClientInfo")
34
+ name: "useClientInfoClasses",
35
+ from: resolver.resolve("./runtime/composables/useClientInfoClasses")
36
36
  },
37
37
  {
38
38
  name: "useErrorHandler",
@@ -1,4 +1,4 @@
1
- export * from './useClientInfo.js';
1
+ export * from './useClientInfoClasses.js';
2
2
  export * from './useErrorHandler.js';
3
3
  export * from './useHeadLinks.js';
4
4
  export * from './useMetaData.js';
@@ -1,4 +1,4 @@
1
- export * from "./useClientInfo.js";
1
+ export * from "./useClientInfoClasses.js";
2
2
  export * from "./useErrorHandler.js";
3
3
  export * from "./useHeadLinks.js";
4
4
  export * from "./useMetaData.js";
@@ -1,4 +1,4 @@
1
- export declare function useClientInfo(): {
1
+ export declare function useClientInfoClasses(): {
2
2
  data: import("vue").Ref<Record<string, any>, Record<string, any>>;
3
3
  classes: import("vue").ComputedRef<string[]>;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { computed, onBeforeMount, ref } from "vue";
2
- export function useClientInfo() {
2
+ export function useClientInfoClasses() {
3
3
  const data = ref({});
4
4
  const classes = computed(
5
5
  () => Object.keys(data.value).filter(
@@ -13,6 +13,7 @@ export function useClientInfo() {
13
13
  ...clientData
14
14
  } = await import("mobile-device-detect");
15
15
  data.value = clientData;
16
+ window.document.documentElement.classList.add(...classes.value);
16
17
  });
17
18
  return { data, classes };
18
19
  }
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.19",
4
+ "version": "0.1.22",
5
5
  "description": "Mev’s personal Nuxt kit module.",
6
6
  "keywords": [
7
7
  "nuxt kit",
@@ -51,6 +51,10 @@
51
51
  "./useNotificationSystem": {
52
52
  "types": "./dist/runtime/composables/useNotificationSystem.d.ts",
53
53
  "import": "./dist/runtime/composables/useNotificationSystem.js"
54
+ },
55
+ "./useClientInfoClasses": {
56
+ "types": "./dist/runtime/composables/useClientInfoClasses.d.ts",
57
+ "import": "./dist/runtime/composables/useClientInfoClasses.js"
54
58
  }
55
59
  },
56
60
  "files": [