@bootstrap-vue-next/nuxt 0.14.10 → 0.15.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.d.mts +6 -2
- package/dist/module.d.ts +6 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -20
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +17 -14
- package/dist/runtime/composables.d.ts +0 -1
- package/dist/runtime/composables.mjs +0 -7
package/dist/module.d.mts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { Composables } from 'bootstrap-vue-next';
|
|
3
3
|
|
|
4
|
-
type ComposableType = keyof typeof Composables;
|
|
5
4
|
type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {
|
|
6
5
|
all: boolean;
|
|
7
6
|
};
|
|
8
7
|
interface ModuleOptions {
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* There would be no reason to disable this, beyond conflicting auto imports. This should probably be left true
|
|
10
|
+
*
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
composables: ConfigurationOption<keyof typeof Composables> | boolean;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
package/dist/module.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { Composables } from 'bootstrap-vue-next';
|
|
3
3
|
|
|
4
|
-
type ComposableType = keyof typeof Composables;
|
|
5
4
|
type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {
|
|
6
5
|
all: boolean;
|
|
7
6
|
};
|
|
8
7
|
interface ModuleOptions {
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* There would be no reason to disable this, beyond conflicting auto imports. This should probably be left true
|
|
10
|
+
*
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
composables: ConfigurationOption<keyof typeof Composables> | boolean;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addComponent, defineNuxtModule, createResolver, addImports } from '@nuxt/kit';
|
|
2
|
-
import { Components } from 'bootstrap-vue-next';
|
|
2
|
+
import { Components, Composables } from 'bootstrap-vue-next';
|
|
3
3
|
|
|
4
4
|
const useComponents = () => {
|
|
5
5
|
Object.keys(Components).forEach((name) => {
|
|
@@ -37,7 +37,7 @@ const module = defineNuxtModule({
|
|
|
37
37
|
},
|
|
38
38
|
setup(options, nuxt) {
|
|
39
39
|
const resolver = createResolver(import.meta.url);
|
|
40
|
-
const
|
|
40
|
+
const normalizedComposableOptions = typeof options.composables === "boolean" ? { all: options.composables } : options.composables;
|
|
41
41
|
nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
42
42
|
const transformAssetUrls = {
|
|
43
43
|
BImg: ["src"]
|
|
@@ -62,26 +62,13 @@ const module = defineNuxtModule({
|
|
|
62
62
|
}
|
|
63
63
|
nuxt.options.css.push("bootstrap-vue-next/dist/bootstrap-vue-next.css");
|
|
64
64
|
useComponents();
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"useBreadcrumb",
|
|
71
|
-
"useColorMode",
|
|
72
|
-
"useModal",
|
|
73
|
-
"useModalController",
|
|
74
|
-
"useToast"
|
|
75
|
-
]).map(
|
|
76
|
-
(el) => ({
|
|
77
|
-
from: resolver.resolve("./runtime/composables"),
|
|
78
|
-
name: el
|
|
65
|
+
if (Object.values(normalizedComposableOptions).some((el) => el === true)) {
|
|
66
|
+
parseActiveImports(normalizedComposableOptions, Object.keys(Composables)).map(
|
|
67
|
+
(name) => addImports({
|
|
68
|
+
from: "bootstrap-vue-next",
|
|
69
|
+
name
|
|
79
70
|
})
|
|
80
71
|
);
|
|
81
|
-
arr.push(...imports);
|
|
82
|
-
}
|
|
83
|
-
if (arr.length) {
|
|
84
|
-
addImports(arr);
|
|
85
72
|
}
|
|
86
73
|
}
|
|
87
74
|
});
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
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.15.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Issayah",
|
|
@@ -21,24 +21,27 @@
|
|
|
21
21
|
],
|
|
22
22
|
"types": "./dist/types.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"bootstrap-vue-next": "^0.
|
|
24
|
+
"bootstrap-vue-next": "^0.15.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nuxt/kit": "^3.
|
|
27
|
+
"@nuxt/kit": "^3.8.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@nuxt/devtools": "latest",
|
|
30
31
|
"@nuxt/eslint-config": "^0.2.0",
|
|
31
|
-
"@nuxt/module-builder": "^0.5.
|
|
32
|
-
"@nuxt/schema": "^3.
|
|
33
|
-
"@
|
|
32
|
+
"@nuxt/module-builder": "^0.5.4",
|
|
33
|
+
"@nuxt/schema": "^3.8.1",
|
|
34
|
+
"@nuxt/test-utils": "^3.8.1",
|
|
35
|
+
"@rushstack/eslint-patch": "^1.5.1",
|
|
36
|
+
"@types/node": "^20.9.0",
|
|
34
37
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
35
|
-
"eslint": "^8.
|
|
36
|
-
"eslint-define-config": "^1.
|
|
37
|
-
"nuxt": "^3.
|
|
38
|
+
"eslint": "^8.53.0",
|
|
39
|
+
"eslint-define-config": "^1.24.1",
|
|
40
|
+
"nuxt": "^3.8.1",
|
|
38
41
|
"prettier": "^3.0.3",
|
|
39
|
-
"unimport": "^3.
|
|
40
|
-
"vue": "^3.3.
|
|
41
|
-
"bootstrap-vue-next": "^0.
|
|
42
|
+
"unimport": "^3.4.0",
|
|
43
|
+
"vue": "^3.3.8",
|
|
44
|
+
"bootstrap-vue-next": "^0.15.0"
|
|
42
45
|
},
|
|
43
46
|
"repository": {
|
|
44
47
|
"type": "git",
|
|
@@ -67,9 +70,9 @@
|
|
|
67
70
|
},
|
|
68
71
|
"scripts": {
|
|
69
72
|
"dev": "nuxi dev playground --port 3030",
|
|
70
|
-
"build": "pnpm run dev:build && pnpm run prepack",
|
|
73
|
+
"build": "pnpm run dev:prepare && pnpm run dev:build && pnpm run prepack",
|
|
71
74
|
"dev:build": "nuxi build playground",
|
|
72
|
-
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
75
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
73
76
|
"lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore --fix",
|
|
74
77
|
"test:lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore"
|
|
75
78
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useBreadcrumb, useColorMode, useModal, useModalController, useToast, } from 'bootstrap-vue-next';
|