@mevbg/nuxt-kit 0.4.1 → 0.4.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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "configKey": "mevKit",
4
- "version": "0.4.1",
4
+ "version": "0.4.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
package/dist/module.mjs CHANGED
@@ -21,6 +21,8 @@ const module = defineNuxtModule({
21
21
  },
22
22
  async setup(options, nuxt) {
23
23
  nuxt.options.runtimeConfig.public.wm = options.wm;
24
+ nuxt.options.runtimeConfig.public.toastify = options.toastify;
25
+ nuxt.options.runtimeConfig.public.floating = options.floating;
24
26
  Promise.all([
25
27
  installModule("@vueuse/nuxt"),
26
28
  installModule("@mevbg/nuxt-color-scheme", {
@@ -1,11 +1,9 @@
1
1
  import { defineNuxtPlugin, useRuntimeConfig } from "#app";
2
2
  import FloatingVue from "floating-vue";
3
3
  import "floating-vue/dist/style.css";
4
- import { floatingVueDefaultConfig } from "../configs/floating-vue.config.js";
5
4
  export default defineNuxtPlugin((nuxtApp) => {
6
5
  const {
7
- public: { floatingVue: floatingVueConfig }
6
+ public: { floating: floatingVueConfig }
8
7
  } = useRuntimeConfig();
9
- const config = Object.assign({}, floatingVueDefaultConfig, floatingVueConfig);
10
- nuxtApp.vueApp.use(FloatingVue, config);
8
+ nuxtApp.vueApp.use(FloatingVue, floatingVueConfig);
11
9
  });
@@ -1,13 +1,11 @@
1
1
  import { defineNuxtPlugin, useRuntimeConfig } from "#app";
2
2
  import Vue3Toastify, { toast } from "vue3-toastify";
3
3
  import "vue3-toastify/dist/index.css";
4
- import { toastifyDefaultConfig } from "../configs/vue3-toastify.config.js";
5
4
  export default defineNuxtPlugin((nuxtApp) => {
6
5
  const {
7
6
  public: { toastify: toastifyConfig }
8
7
  } = useRuntimeConfig();
9
- const config = Object.assign({}, toastifyDefaultConfig, toastifyConfig);
10
- nuxtApp.vueApp.use(Vue3Toastify, config);
8
+ nuxtApp.vueApp.use(Vue3Toastify, toastifyConfig);
11
9
  return {
12
10
  provide: { toast }
13
11
  };
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.4.1",
4
+ "version": "0.4.3",
5
5
  "description": "Mev’s personal Nuxt kit module.",
6
6
  "keywords": [
7
7
  "nuxt kit",