@bootstrap-vue-next/nuxt 0.17.6 → 0.18.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { Composables, Directives } from 'bootstrap-vue-next';
2
+ import { Composables, Directives, BootstrapVueOptions } from 'bootstrap-vue-next';
3
3
 
4
4
  type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {
5
5
  all: boolean;
@@ -18,6 +18,10 @@ interface ModuleOptions {
18
18
  * @default true
19
19
  */
20
20
  directives: ConfigurationValue<keyof typeof Directives>;
21
+ /**
22
+ * @default {}
23
+ */
24
+ plugin: Omit<Exclude<BootstrapVueOptions['plugins'], undefined>, 'id'>;
21
25
  }
22
26
 
23
27
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
package/dist/module.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { Composables, Directives } from 'bootstrap-vue-next';
2
+ import { Composables, Directives, BootstrapVueOptions } from 'bootstrap-vue-next';
3
3
 
4
4
  type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {
5
5
  all: boolean;
@@ -18,6 +18,10 @@ interface ModuleOptions {
18
18
  * @default true
19
19
  */
20
20
  directives: ConfigurationValue<keyof typeof Directives>;
21
+ /**
22
+ * @default {}
23
+ */
24
+ plugin: Omit<Exclude<BootstrapVueOptions['plugins'], undefined>, 'id'>;
21
25
  }
22
26
 
23
27
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
package/dist/module.json CHANGED
@@ -5,5 +5,9 @@
5
5
  "nuxt": "^3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "0.17.6"
8
+ "version": "0.18.1",
9
+ "builder": {
10
+ "@nuxt/module-builder": "0.6.0",
11
+ "unbuild": "2.0.0"
12
+ }
9
13
  }
package/dist/module.mjs CHANGED
@@ -38,7 +38,8 @@ const module = defineNuxtModule({
38
38
  },
39
39
  defaults: {
40
40
  composables: true,
41
- directives: true
41
+ directives: true,
42
+ plugin: {}
42
43
  },
43
44
  setup(options, nuxt) {
44
45
  const { resolve } = createResolver(import.meta.url);
@@ -70,7 +71,8 @@ const module = defineNuxtModule({
70
71
  Object.keys(Directives)
71
72
  );
72
73
  nuxt.options.runtimeConfig.public.bootstrapVueNext = {
73
- directives: activeDirectives
74
+ directives: activeDirectives,
75
+ plugin: options.plugin
74
76
  };
75
77
  addPlugin(resolve("./runtime/useDirectives"));
76
78
  }
@@ -1,13 +1,34 @@
1
1
  import { createBootstrap } from "bootstrap-vue-next";
2
- import { defineNuxtPlugin, useId } from "#imports";
2
+ import { defineNuxtPlugin, useId, useRuntimeConfig } from "#imports";
3
3
  export default defineNuxtPlugin((nuxtApp) => {
4
+ const opts = useRuntimeConfig().public.bootstrapVueNext.plugin;
4
5
  nuxtApp.vueApp.use(
5
6
  createBootstrap({
6
7
  components: false,
7
8
  directives: false,
8
9
  plugins: {
10
+ ...opts,
9
11
  id: {
10
12
  getId: () => useId()
13
+ },
14
+ components: {
15
+ ...opts?.components,
16
+ BModal: {
17
+ teleportTo: "#teleports",
18
+ ...opts?.components?.BModal
19
+ },
20
+ BModalOrchestrator: {
21
+ teleportTo: "#teleports",
22
+ ...opts?.components?.BModalOrchestrator
23
+ },
24
+ BOffcanvas: {
25
+ teleportTo: "#teleports",
26
+ ...opts?.components?.BOffcanvas
27
+ },
28
+ BToastOrchestrator: {
29
+ teleportTo: "#teleports",
30
+ ...opts?.components?.BToastOrchestrator
31
+ }
11
32
  }
12
33
  }
13
34
  })
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.17.6",
4
+ "version": "0.18.1",
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.17.6"
24
+ "bootstrap-vue-next": "^0.18.1"
25
25
  },
26
26
  "dependencies": {
27
27
  "@nuxt/kit": "^3.11.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@nuxt/devtools": "^1.1.5",
31
- "@nuxt/eslint-config": "^0.3.7",
32
- "@nuxt/module-builder": "^0.5.5",
30
+ "@nuxt/devtools": "^1.3.1",
31
+ "@nuxt/eslint-config": "^0.3.13",
32
+ "@nuxt/module-builder": "^0.6.0",
33
33
  "@nuxt/schema": "^3.11.2",
34
- "@nuxt/test-utils": "^3.12.1",
35
- "@rushstack/eslint-patch": "^1.10.2",
36
- "@types/node": "^20.12.7",
34
+ "@nuxt/test-utils": "^3.13.0",
35
+ "@rushstack/eslint-patch": "^1.10.3",
36
+ "@types/node": "^20.12.12",
37
37
  "@vue/eslint-config-prettier": "^9.0.0",
38
38
  "eslint": "^8.57.0",
39
39
  "eslint-define-config": "^2.1.0",
40
40
  "nuxt": "^3.11.2",
41
41
  "prettier": "^3.2.5",
42
42
  "unimport": "^3.7.1",
43
- "vue": "^3.4.25",
44
- "bootstrap-vue-next": "^0.17.6"
43
+ "vue": "^3.4.27",
44
+ "bootstrap-vue-next": "^0.18.1"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",