@bootstrap-vue-next/nuxt 0.43.7 → 0.43.8

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.43.7",
7
+ "version": "0.43.8",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -2,21 +2,14 @@ import { addComponent, defineNuxtModule, createResolver, addPlugin, addImports }
2
2
  import { composablesWithExternalPath, directiveNames, composableNames } from 'bootstrap-vue-next';
3
3
  import { componentsWithExternalPath } from 'bootstrap-vue-next/types';
4
4
 
5
- const useComponents = (resolve) => {
6
- const omittedSpecialComponents = /* @__PURE__ */ new Set(["BLink"]);
5
+ const useComponents = () => {
7
6
  for (const [name, path] of Object.entries(componentsWithExternalPath)) {
8
- if (omittedSpecialComponents.has(name)) continue;
9
7
  addComponent({
10
8
  name,
11
9
  export: name,
12
10
  filePath: `bootstrap-vue-next${path}`
13
11
  });
14
12
  }
15
- addComponent({
16
- name: "BLink",
17
- global: true,
18
- filePath: resolve("runtime/app/components/NuxtBLink.vue")
19
- });
20
13
  };
21
14
 
22
15
  const parseActiveImports = (options, values) => {
@@ -73,7 +66,7 @@ const module$1 = defineNuxtModule({
73
66
  ...transformAssetUrls
74
67
  };
75
68
  }
76
- useComponents(resolve);
69
+ useComponents();
77
70
  if (Object.values(normalizedDirectiveOptions).includes(true)) {
78
71
  const activeDirectives = parseActiveImports(normalizedDirectiveOptions, directiveNames);
79
72
  nuxt.options.runtimeConfig.public.bootstrapVueNext = {
@@ -7,9 +7,6 @@ export default defineNuxtPlugin((nuxtApp) => {
7
7
  ...opts,
8
8
  components: {
9
9
  ...opts?.components,
10
- global: {
11
- routerComponentName: "BLink"
12
- },
13
10
  BModal: {
14
11
  teleportTo: "#teleports",
15
12
  ...opts?.components?.BModal
@@ -25,6 +22,10 @@ export default defineNuxtPlugin((nuxtApp) => {
25
22
  BApp: {
26
23
  teleportTo: "#teleports",
27
24
  ...opts?.components?.BApp
25
+ },
26
+ BLink: {
27
+ routerComponentName: "RouterLink",
28
+ ...opts?.components?.BLink
28
29
  }
29
30
  }
30
31
  })
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.43.7",
4
+ "version": "0.43.8",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Issayah",
@@ -19,7 +19,7 @@
19
19
  "dist"
20
20
  ],
21
21
  "peerDependencies": {
22
- "bootstrap-vue-next": "^0.43.7"
22
+ "bootstrap-vue-next": "^0.43.8"
23
23
  },
24
24
  "dependencies": {
25
25
  "@nuxt/kit": "^3.20.2"
@@ -41,7 +41,7 @@
41
41
  "typescript": "^5.9.3",
42
42
  "unimport": "^5.6.0",
43
43
  "vue": "^3.5.27",
44
- "bootstrap-vue-next": "^0.43.7"
44
+ "bootstrap-vue-next": "^0.43.8"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
@@ -1,14 +0,0 @@
1
- import type { BLinkProps } from 'bootstrap-vue-next/types';
2
- declare var __VLS_8: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_8) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<BLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,41 +0,0 @@
1
- <template>
2
- <BLink
3
- v-bind="props"
4
- :router-component-name="NuxtLink"
5
- >
6
- <slot />
7
- </BLink>
8
- </template>
9
-
10
- <script setup>
11
- import { BLink } from "bootstrap-vue-next/components/BLink";
12
- import { NuxtLink } from "#components";
13
- const props = defineProps({
14
- active: { type: Boolean, required: false },
15
- activeClass: { type: String, required: false },
16
- disabled: { type: Boolean, required: false },
17
- exactActiveClass: { type: String, required: false },
18
- href: { type: String, required: false },
19
- icon: { type: Boolean, required: false },
20
- noRel: { type: Boolean, required: false },
21
- opacity: { type: [Number, String], required: false },
22
- opacityHover: { type: [Number, String], required: false },
23
- prefetch: { type: Boolean, required: false },
24
- prefetchOn: { type: Object, required: false },
25
- noPrefetch: { type: Boolean, required: false },
26
- prefetchedClass: { type: null, required: false },
27
- rel: { type: String, required: false },
28
- replace: { type: Boolean, required: false },
29
- routerComponentName: { type: null, required: false },
30
- routerTag: { type: String, required: false },
31
- stretched: { type: Boolean, required: false },
32
- target: { type: String, required: false },
33
- to: { type: null, required: false },
34
- underlineOffset: { type: [Number, String], required: false },
35
- underlineOffsetHover: { type: [Number, String], required: false },
36
- underlineOpacity: { type: [Number, String], required: false },
37
- underlineOpacityHover: { type: [Number, String], required: false },
38
- underlineVariant: { type: [String, null], required: false },
39
- variant: { type: [String, null], required: false }
40
- });
41
- </script>
@@ -1,14 +0,0 @@
1
- import type { BLinkProps } from 'bootstrap-vue-next/types';
2
- declare var __VLS_8: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_8) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<BLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };