@mevbg/nuxt-kit 0.3.0 → 0.4.1
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 +3 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -3
- package/dist/runtime/plugins/floating-vue.plugin.js +11 -0
- package/dist/runtime/plugins/{notification-system.plugin.js → vue3-toastify.plugin.js} +6 -2
- package/package.json +9 -9
- package/dist/runtime/plugins/tooltip-system.plugin.js +0 -7
- /package/dist/runtime/plugins/{tooltip-system.plugin.d.ts → floating-vue.plugin.d.ts} +0 -0
- /package/dist/runtime/plugins/{notification-system.plugin.d.ts → vue3-toastify.plugin.d.ts} +0 -0
package/dist/module.d.mts
CHANGED
|
@@ -2,11 +2,14 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { MasterGeneratorParams } from '@mevbg/design-essentials-vendor';
|
|
3
3
|
import { ColorSchemeOptions } from '@mevbg/nuxt-color-scheme';
|
|
4
4
|
export * from '@mevbg/nuxt-color-scheme';
|
|
5
|
+
import { ToastContainerOptions } from 'vue3-toastify';
|
|
5
6
|
|
|
6
7
|
interface NuxtKitOptions {
|
|
7
8
|
wm?: boolean;
|
|
8
9
|
designEssentials?: MasterGeneratorParams;
|
|
9
10
|
colorScheme?: ColorSchemeOptions;
|
|
11
|
+
toastify?: ToastContainerOptions;
|
|
12
|
+
floating?: any;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
declare const _default: _nuxt_schema.NuxtModule<NuxtKitOptions, NuxtKitOptions, false>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { generateDesignEssentials } from '@mevbg/design-essentials-vendor';
|
|
2
2
|
import { defineNuxtModule, installModule, createResolver, addPlugin, addImports, addServerImportsDir, addComponent } from '@nuxt/kit';
|
|
3
|
+
import { floatingVueDefaultConfig, toastifyDefaultConfig } from '../dist/runtime/configs/index.js';
|
|
3
4
|
import { DEFAULT_PRIMARY_COLOR_SCHEME } from '../dist/runtime/defaults.js';
|
|
4
5
|
export * from '@mevbg/nuxt-color-scheme';
|
|
5
6
|
|
|
@@ -14,7 +15,9 @@ const module = defineNuxtModule({
|
|
|
14
15
|
colorScheme: {
|
|
15
16
|
primaryScheme: DEFAULT_PRIMARY_COLOR_SCHEME,
|
|
16
17
|
systemScheme: true
|
|
17
|
-
}
|
|
18
|
+
},
|
|
19
|
+
toastify: toastifyDefaultConfig,
|
|
20
|
+
floating: floatingVueDefaultConfig
|
|
18
21
|
},
|
|
19
22
|
async setup(options, nuxt) {
|
|
20
23
|
nuxt.options.runtimeConfig.public.wm = options.wm;
|
|
@@ -27,8 +30,8 @@ const module = defineNuxtModule({
|
|
|
27
30
|
]);
|
|
28
31
|
const resolver = createResolver(import.meta.url);
|
|
29
32
|
addPlugin(resolver.resolve("./runtime/plugins/wm.plugin"));
|
|
30
|
-
addPlugin(resolver.resolve("./runtime/plugins/
|
|
31
|
-
addPlugin(resolver.resolve("./runtime/plugins/
|
|
33
|
+
addPlugin(resolver.resolve("./runtime/plugins/floating-vue.plugin"));
|
|
34
|
+
addPlugin(resolver.resolve("./runtime/plugins/vue3-toastify.plugin"));
|
|
32
35
|
addImports([
|
|
33
36
|
{
|
|
34
37
|
name: "useErrorHandler",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
2
|
+
import FloatingVue from "floating-vue";
|
|
3
|
+
import "floating-vue/dist/style.css";
|
|
4
|
+
import { floatingVueDefaultConfig } from "../configs/floating-vue.config.js";
|
|
5
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
6
|
+
const {
|
|
7
|
+
public: { floatingVue: floatingVueConfig }
|
|
8
|
+
} = useRuntimeConfig();
|
|
9
|
+
const config = Object.assign({}, floatingVueDefaultConfig, floatingVueConfig);
|
|
10
|
+
nuxtApp.vueApp.use(FloatingVue, config);
|
|
11
|
+
});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#app";
|
|
1
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
2
2
|
import Vue3Toastify, { toast } from "vue3-toastify";
|
|
3
3
|
import "vue3-toastify/dist/index.css";
|
|
4
4
|
import { toastifyDefaultConfig } from "../configs/vue3-toastify.config.js";
|
|
5
5
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
6
|
-
|
|
6
|
+
const {
|
|
7
|
+
public: { toastify: toastifyConfig }
|
|
8
|
+
} = useRuntimeConfig();
|
|
9
|
+
const config = Object.assign({}, toastifyDefaultConfig, toastifyConfig);
|
|
10
|
+
nuxtApp.vueApp.use(Vue3Toastify, config);
|
|
7
11
|
return {
|
|
8
12
|
provide: { toast }
|
|
9
13
|
};
|
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
|
+
"version": "0.4.1",
|
|
5
5
|
"description": "Mev’s personal Nuxt kit module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"nuxt kit",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@mevbg/design-essentials-vendor": "^2.0.4",
|
|
77
|
-
"@mevbg/nuxt-color-scheme": "^2.0.
|
|
78
|
-
"@nuxt/kit": "^4.
|
|
79
|
-
"@vueuse/nuxt": "^13.
|
|
77
|
+
"@mevbg/nuxt-color-scheme": "^2.0.3",
|
|
78
|
+
"@nuxt/kit": "^4.1.2",
|
|
79
|
+
"@vueuse/nuxt": "^13.9.0",
|
|
80
80
|
"floating-vue": "^5.2.2",
|
|
81
81
|
"mobile-device-detect": "^0.4.3",
|
|
82
82
|
"vue3-toastify": "^0.2.8"
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
"@nuxt/devtools": "^2.6.3",
|
|
86
86
|
"@nuxt/eslint-config": "^1.9.0",
|
|
87
87
|
"@nuxt/module-builder": "^1.0.2",
|
|
88
|
-
"@nuxt/schema": "^4.
|
|
88
|
+
"@nuxt/schema": "^4.1.2",
|
|
89
89
|
"@types/node": "latest",
|
|
90
90
|
"changelogen": "^0.6.2",
|
|
91
|
-
"eslint": "^9.
|
|
91
|
+
"eslint": "^9.35.0",
|
|
92
92
|
"eslint-config-prettier": "^10.1.8",
|
|
93
93
|
"eslint-plugin-prettier": "^5.5.4",
|
|
94
|
-
"nuxt": "^4.
|
|
95
|
-
"prettier-plugin-organize-imports": "^4.
|
|
94
|
+
"nuxt": "^4.1.2",
|
|
95
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
96
96
|
"typescript": "~5.9.2",
|
|
97
|
-
"vue-tsc": "^3.0.
|
|
97
|
+
"vue-tsc": "^3.0.7"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#app";
|
|
2
|
-
import FloatingVue from "floating-vue";
|
|
3
|
-
import "floating-vue/dist/style.css";
|
|
4
|
-
import { floatingVueDefaultConfig } from "../configs/floating-vue.config.js";
|
|
5
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
6
|
-
nuxtApp.vueApp.use(FloatingVue, floatingVueDefaultConfig);
|
|
7
|
-
});
|
|
File without changes
|
|
File without changes
|