@bootstrap-vue-next/nuxt 0.24.12 → 0.24.14

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
@@ -30,6 +30,6 @@ interface ModuleOptions {
30
30
  plugin: Omit<Exclude<BootstrapVueOptions, undefined>, 'id'>;
31
31
  }
32
32
 
33
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
33
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
34
34
 
35
35
  export { _default as default };
package/dist/module.d.ts CHANGED
@@ -30,6 +30,6 @@ interface ModuleOptions {
30
30
  plugin: Omit<Exclude<BootstrapVueOptions, undefined>, 'id'>;
31
31
  }
32
32
 
33
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
33
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
34
34
 
35
35
  export { _default as default };
package/dist/module.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "nuxt": ">=3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "0.24.12",
8
+ "version": "0.24.14",
9
9
  "builder": {
10
- "@nuxt/module-builder": "0.6.0",
10
+ "@nuxt/module-builder": "0.8.3",
11
11
  "unbuild": "2.0.0"
12
12
  }
13
13
  }
package/dist/module.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import { addComponent, defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
2
- import { Components, DirectiveNames, ComposableNames } from 'bootstrap-vue-next';
2
+ import { componentsWithExternalPath, directiveNames, composableNames, composablesWithExternalPath } from 'bootstrap-vue-next';
3
3
 
4
4
  const useComponents = () => {
5
- Object.keys(Components).forEach((name) => {
5
+ for (const [name, path] of Object.entries(componentsWithExternalPath)) {
6
6
  addComponent({
7
7
  name,
8
8
  export: name,
9
- filePath: "bootstrap-vue-next"
9
+ filePath: `bootstrap-vue-next${path}`
10
10
  });
11
- });
11
+ }
12
12
  };
13
13
 
14
14
  const parseActiveImports = (options, values) => {
@@ -68,7 +68,7 @@ const module = defineNuxtModule({
68
68
  }
69
69
  useComponents();
70
70
  if (Object.values(normalizedDirectiveOptions).some((el) => el === true)) {
71
- const activeDirectives = parseActiveImports(normalizedDirectiveOptions, DirectiveNames);
71
+ const activeDirectives = parseActiveImports(normalizedDirectiveOptions, directiveNames);
72
72
  nuxt.options.runtimeConfig.public.bootstrapVueNext = {
73
73
  directives: activeDirectives,
74
74
  plugin: options.plugin
@@ -76,12 +76,13 @@ const module = defineNuxtModule({
76
76
  addPlugin(resolve("./runtime/useDirectives"));
77
77
  }
78
78
  if (Object.values(normalizedComposableOptions).some((el) => el === true)) {
79
- parseActiveImports(normalizedComposableOptions, ComposableNames).forEach(
80
- (name) => addImports({
81
- from: "bootstrap-vue-next",
79
+ parseActiveImports(normalizedComposableOptions, composableNames).forEach((name) => {
80
+ const from = `bootstrap-vue-next${composablesWithExternalPath[name]}`;
81
+ addImports({
82
+ from,
82
83
  name
83
- })
84
- );
84
+ });
85
+ });
85
86
  }
86
87
  }
87
88
  });
@@ -1,13 +1,10 @@
1
- import { createBootstrap } from "bootstrap-vue-next";
2
- import { defineNuxtPlugin, useId, useRuntimeConfig } from "#imports";
1
+ import { createBootstrap } from "bootstrap-vue-next/plugins";
2
+ import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
3
3
  export default defineNuxtPlugin((nuxtApp) => {
4
4
  const opts = useRuntimeConfig().public.bootstrapVueNext.plugin;
5
5
  nuxtApp.vueApp.use(
6
6
  createBootstrap({
7
7
  ...opts,
8
- id: {
9
- getId: () => useId()
10
- },
11
8
  components: {
12
9
  ...opts?.components,
13
10
  BModal: {
@@ -1,4 +1,4 @@
1
- import { Directives } from "bootstrap-vue-next";
1
+ import * as Directives from "bootstrap-vue-next/directives";
2
2
  import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
3
3
  export default defineNuxtPlugin((nuxtApp) => {
4
4
  const usedDirectives = useRuntimeConfig().public.bootstrapVueNext.directives;
package/dist/types.d.mts CHANGED
@@ -1,8 +1,7 @@
1
+ import type { NuxtModule } from '@nuxt/schema'
1
2
 
2
- import type { } from './module.js'
3
+ import type { default as Module } from './module.js'
3
4
 
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
4
6
 
5
-
6
-
7
-
8
- export type { default } from './module.js'
7
+ export { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,8 +1,7 @@
1
+ import type { NuxtModule } from '@nuxt/schema'
1
2
 
2
- import type { } from './module'
3
+ import type { default as Module } from './module'
3
4
 
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
4
6
 
5
-
6
-
7
-
8
- export type { default } from './module'
7
+ export { default } from './module'
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.24.12",
4
+ "version": "0.24.14",
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.12"
24
+ "bootstrap-vue-next": "^0.24.14"
25
25
  },
26
26
  "dependencies": {
27
- "@nuxt/kit": "^3.12.3"
27
+ "@nuxt/kit": "^3.13.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@nuxt/devtools": "^1.3.1",
30
+ "@nuxt/devtools": "^1.4.1",
31
31
  "@nuxt/eslint-config": "^0.3.13",
32
- "@nuxt/module-builder": "^0.6.0",
33
- "@nuxt/schema": "^3.12.3",
34
- "@nuxt/test-utils": "^3.13.0",
35
- "@rushstack/eslint-patch": "^1.10.3",
36
- "@types/node": "^20.12.12",
32
+ "@nuxt/module-builder": "^0.8.3",
33
+ "@nuxt/schema": "^3.13.1",
34
+ "@nuxt/test-utils": "^3.14.1",
35
+ "@rushstack/eslint-patch": "^1.10.4",
36
+ "@types/node": "^22.5.4",
37
37
  "@vue/eslint-config-prettier": "^9.0.0",
38
38
  "eslint": "^8.57.0",
39
39
  "eslint-define-config": "^2.1.0",
40
- "nuxt": "^3.12.3",
41
- "prettier": "^3.2.5",
42
- "unimport": "^3.7.1",
43
- "vue": "^3.4.27",
44
- "bootstrap-vue-next": "^0.24.12"
40
+ "nuxt": "^3.13.1",
41
+ "prettier": "^3.3.3",
42
+ "unimport": "^3.11.1",
43
+ "vue": "^3.5.3",
44
+ "bootstrap-vue-next": "^0.24.14"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",