@bootstrap-vue-next/nuxt 0.25.15 → 0.26.0
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 +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/createBootstrap.d.ts +1 -1
- package/dist/runtime/createBootstrap.js +3 -3
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/useDirectives.d.ts +1 -1
- package/dist/runtime/useDirectives.js +1 -1
- package/package.json +20 -17
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addComponent, defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
|
|
2
|
-
import { componentsWithExternalPath, directiveNames, composableNames
|
|
2
|
+
import { componentsWithExternalPath, composablesWithExternalPath, directiveNames, composableNames } from 'bootstrap-vue-next';
|
|
3
3
|
|
|
4
4
|
const useComponents = () => {
|
|
5
5
|
for (const [name, path] of Object.entries(componentsWithExternalPath)) {
|
|
@@ -67,7 +67,7 @@ const module = defineNuxtModule({
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
useComponents();
|
|
70
|
-
if (Object.values(normalizedDirectiveOptions).
|
|
70
|
+
if (Object.values(normalizedDirectiveOptions).includes(true)) {
|
|
71
71
|
const activeDirectives = parseActiveImports(normalizedDirectiveOptions, directiveNames);
|
|
72
72
|
nuxt.options.runtimeConfig.public.bootstrapVueNext = {
|
|
73
73
|
directives: activeDirectives,
|
|
@@ -75,7 +75,7 @@ const module = defineNuxtModule({
|
|
|
75
75
|
};
|
|
76
76
|
addPlugin(resolve("./runtime/useDirectives"));
|
|
77
77
|
}
|
|
78
|
-
if (Object.values(normalizedComposableOptions).
|
|
78
|
+
if (Object.values(normalizedComposableOptions).includes(true)) {
|
|
79
79
|
parseActiveImports(normalizedComposableOptions, composableNames).forEach((name) => {
|
|
80
80
|
const from = `bootstrap-vue-next${composablesWithExternalPath[name]}`;
|
|
81
81
|
addImports({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createBootstrap } from "bootstrap-vue-next/plugins/createBootstrap";
|
|
2
|
-
import { defineNuxtPlugin, useRuntimeConfig } from "#
|
|
1
|
+
import { createBootstrap as createBootstrapVue } from "bootstrap-vue-next/plugins/createBootstrap";
|
|
2
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
3
3
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
4
|
const opts = useRuntimeConfig().public.bootstrapVueNext.plugin;
|
|
5
5
|
nuxtApp.vueApp.use(
|
|
6
|
-
|
|
6
|
+
createBootstrapVue({
|
|
7
7
|
...opts,
|
|
8
8
|
components: {
|
|
9
9
|
...opts?.components,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Directives from "bootstrap-vue-next/directives";
|
|
2
|
-
import { defineNuxtPlugin, useRuntimeConfig } from "#
|
|
2
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
3
3
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
4
|
const usedDirectives = useRuntimeConfig().public.bootstrapVueNext.directives;
|
|
5
5
|
const directiveValues = Object.entries(Directives);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootstrap-vue-next/nuxt",
|
|
3
3
|
"description": "Nuxt Module for BootstrapVueNext",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.26.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Issayah",
|
|
@@ -21,27 +21,27 @@
|
|
|
21
21
|
],
|
|
22
22
|
"types": "./dist/types.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"bootstrap-vue-next": "^0.
|
|
24
|
+
"bootstrap-vue-next": "^0.26.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nuxt/kit": "^3.
|
|
27
|
+
"@nuxt/kit": "^3.14.159"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nuxt/devtools": "^1.
|
|
31
|
-
"@nuxt/eslint-config": "^0.
|
|
32
|
-
"@nuxt/module-builder": "^0.8.
|
|
33
|
-
"@nuxt/schema": "^3.
|
|
34
|
-
"@nuxt/test-utils": "^3.14.
|
|
30
|
+
"@nuxt/devtools": "^1.6.0",
|
|
31
|
+
"@nuxt/eslint-config": "^0.7.0",
|
|
32
|
+
"@nuxt/module-builder": "^0.8.4",
|
|
33
|
+
"@nuxt/schema": "^3.14.159",
|
|
34
|
+
"@nuxt/test-utils": "^3.14.4",
|
|
35
35
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
36
|
-
"@types/node": "^22.
|
|
37
|
-
"@vue/eslint-config-prettier": "^
|
|
38
|
-
"eslint": "^
|
|
36
|
+
"@types/node": "^22.9.0",
|
|
37
|
+
"@vue/eslint-config-prettier": "^10.1.0",
|
|
38
|
+
"eslint": "^9.15.0",
|
|
39
39
|
"eslint-define-config": "^2.1.0",
|
|
40
|
-
"nuxt": "^3.
|
|
40
|
+
"nuxt": "^3.14.159",
|
|
41
41
|
"prettier": "^3.3.3",
|
|
42
|
-
"unimport": "^3.
|
|
43
|
-
"vue": "^3.5.
|
|
44
|
-
"bootstrap-vue-next": "^0.
|
|
42
|
+
"unimport": "^3.13.2",
|
|
43
|
+
"vue": "^3.5.13",
|
|
44
|
+
"bootstrap-vue-next": "^0.26.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
|
@@ -73,7 +73,10 @@
|
|
|
73
73
|
"build": "pnpm run dev:prepare && pnpm run dev:build && pnpm run prepack",
|
|
74
74
|
"dev:build": "nuxi build playground",
|
|
75
75
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
76
|
-
"lint": "eslint --
|
|
77
|
-
"test:lint": "eslint
|
|
76
|
+
"lint": "eslint --fix",
|
|
77
|
+
"test:lint": "eslint",
|
|
78
|
+
"test": "vitest run",
|
|
79
|
+
"test:watch": "vitest watch",
|
|
80
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
78
81
|
}
|
|
79
82
|
}
|