@bootstrap-vue-next/nuxt 0.22.6 → 0.23.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 +7 -1
- package/dist/module.d.ts +7 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -2
- package/dist/runtime/createBootstrap.mjs +20 -24
- package/package.json +3 -3
package/dist/module.d.mts
CHANGED
|
@@ -18,10 +18,16 @@ interface ModuleOptions {
|
|
|
18
18
|
* @default true
|
|
19
19
|
*/
|
|
20
20
|
directives: ConfigurationValue<keyof typeof Directives>;
|
|
21
|
+
/**
|
|
22
|
+
* Manages the inclusion of the module's CSS. It is recommended to leave this enabled unless there are conflicts with other styles.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
css: boolean;
|
|
21
27
|
/**
|
|
22
28
|
* @default {}
|
|
23
29
|
*/
|
|
24
|
-
plugin: Omit<Exclude<BootstrapVueOptions
|
|
30
|
+
plugin: Omit<Exclude<BootstrapVueOptions, undefined>, 'id'>;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
package/dist/module.d.ts
CHANGED
|
@@ -18,10 +18,16 @@ interface ModuleOptions {
|
|
|
18
18
|
* @default true
|
|
19
19
|
*/
|
|
20
20
|
directives: ConfigurationValue<keyof typeof Directives>;
|
|
21
|
+
/**
|
|
22
|
+
* Manages the inclusion of the module's CSS. It is recommended to leave this enabled unless there are conflicts with other styles.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
css: boolean;
|
|
21
27
|
/**
|
|
22
28
|
* @default {}
|
|
23
29
|
*/
|
|
24
|
-
plugin: Omit<Exclude<BootstrapVueOptions
|
|
30
|
+
plugin: Omit<Exclude<BootstrapVueOptions, undefined>, 'id'>;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -39,15 +39,17 @@ const module = defineNuxtModule({
|
|
|
39
39
|
defaults: {
|
|
40
40
|
composables: true,
|
|
41
41
|
directives: true,
|
|
42
|
+
css: true,
|
|
42
43
|
plugin: {}
|
|
43
44
|
},
|
|
44
45
|
setup(options, nuxt) {
|
|
45
46
|
const { resolve } = createResolver(import.meta.url);
|
|
46
47
|
nuxt.options.build.transpile.push(resolve("./runtime"));
|
|
47
|
-
|
|
48
|
+
if (options.css === true) {
|
|
49
|
+
nuxt.options.css.push("bootstrap-vue-next/dist/bootstrap-vue-next.css");
|
|
50
|
+
}
|
|
48
51
|
const normalizedComposableOptions = normalizeConfigurationValue(options.composables);
|
|
49
52
|
const normalizedDirectiveOptions = normalizeConfigurationValue(options.directives);
|
|
50
|
-
nuxt.options.css.push("bootstrap-vue-next/dist/bootstrap-vue-next.css");
|
|
51
53
|
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
52
54
|
nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
|
|
53
55
|
nuxt.options.vite.optimizeDeps.include.push("bootstrap-vue-next");
|
|
@@ -4,31 +4,27 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
4
4
|
const opts = useRuntimeConfig().public.bootstrapVueNext.plugin;
|
|
5
5
|
nuxtApp.vueApp.use(
|
|
6
6
|
createBootstrap({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
...opts,
|
|
8
|
+
id: {
|
|
9
|
+
getId: () => useId()
|
|
10
|
+
},
|
|
11
|
+
components: {
|
|
12
|
+
...opts?.components,
|
|
13
|
+
BModal: {
|
|
14
|
+
teleportTo: "#teleports",
|
|
15
|
+
...opts?.components?.BModal
|
|
13
16
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
teleportTo: "#teleports",
|
|
26
|
-
...opts?.components?.BOffcanvas
|
|
27
|
-
},
|
|
28
|
-
BToastOrchestrator: {
|
|
29
|
-
teleportTo: "#teleports",
|
|
30
|
-
...opts?.components?.BToastOrchestrator
|
|
31
|
-
}
|
|
17
|
+
BModalOrchestrator: {
|
|
18
|
+
teleportTo: "#teleports",
|
|
19
|
+
...opts?.components?.BModalOrchestrator
|
|
20
|
+
},
|
|
21
|
+
BOffcanvas: {
|
|
22
|
+
teleportTo: "#teleports",
|
|
23
|
+
...opts?.components?.BOffcanvas
|
|
24
|
+
},
|
|
25
|
+
BToastOrchestrator: {
|
|
26
|
+
teleportTo: "#teleports",
|
|
27
|
+
...opts?.components?.BToastOrchestrator
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
})
|
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.23.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Issayah",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"types": "./dist/types.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"bootstrap-vue-next": "^0.
|
|
24
|
+
"bootstrap-vue-next": "^0.23.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@nuxt/kit": "^3.11.2"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"prettier": "^3.2.5",
|
|
42
42
|
"unimport": "^3.7.1",
|
|
43
43
|
"vue": "^3.4.27",
|
|
44
|
-
"bootstrap-vue-next": "^0.
|
|
44
|
+
"bootstrap-vue-next": "^0.23.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|