@bootstrap-vue-next/nuxt 0.43.1 → 0.43.3

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.1",
7
+ "version": "0.43.3",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,14 +1,22 @@
1
1
  import { addComponent, defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
2
- import { componentsWithExternalPath, composablesWithExternalPath, directiveNames, composableNames } from 'bootstrap-vue-next';
2
+ import { composablesWithExternalPath, directiveNames, composableNames } from 'bootstrap-vue-next';
3
+ import { componentsWithExternalPath } from 'bootstrap-vue-next/types';
3
4
 
4
- const useComponents = () => {
5
+ const useComponents = (resolve) => {
6
+ const omittedSpecialComponents = /* @__PURE__ */ new Set(["BLink"]);
5
7
  for (const [name, path] of Object.entries(componentsWithExternalPath)) {
8
+ if (omittedSpecialComponents.has(name)) continue;
6
9
  addComponent({
7
10
  name,
8
11
  export: name,
9
12
  filePath: `bootstrap-vue-next${path}`
10
13
  });
11
14
  }
15
+ addComponent({
16
+ name: "BLink",
17
+ global: true,
18
+ filePath: resolve("runtime/app/components/NuxtBLink.vue")
19
+ });
12
20
  };
13
21
 
14
22
  const parseActiveImports = (options, values) => {
@@ -65,7 +73,7 @@ const module$1 = defineNuxtModule({
65
73
  ...transformAssetUrls
66
74
  };
67
75
  }
68
- useComponents();
76
+ useComponents(resolve);
69
77
  if (Object.values(normalizedDirectiveOptions).includes(true)) {
70
78
  const activeDirectives = parseActiveImports(normalizedDirectiveOptions, directiveNames);
71
79
  nuxt.options.runtimeConfig.public.bootstrapVueNext = {
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1,41 @@
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>
@@ -0,0 +1,14 @@
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
+ };
@@ -7,6 +7,9 @@ export default defineNuxtPlugin((nuxtApp) => {
7
7
  ...opts,
8
8
  components: {
9
9
  ...opts?.components,
10
+ global: {
11
+ routerComponentName: "BLink"
12
+ },
10
13
  BModal: {
11
14
  teleportTo: "#teleports",
12
15
  ...opts?.components?.BModal
@@ -22,10 +25,6 @@ export default defineNuxtPlugin((nuxtApp) => {
22
25
  BApp: {
23
26
  teleportTo: "#teleports",
24
27
  ...opts?.components?.BApp
25
- },
26
- BLink: {
27
- routerComponentName: "RouterLink",
28
- ...opts?.components?.BLink
29
28
  }
30
29
  }
31
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.43.1",
4
+ "version": "0.43.3",
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.1"
22
+ "bootstrap-vue-next": "^0.43.3"
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.1"
44
+ "bootstrap-vue-next": "^0.43.3"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
@@ -66,7 +66,8 @@
66
66
  ],
67
67
  "lint-staged": {
68
68
  "*.{js,ts,vue}": "eslint --cache --fix",
69
- "*": "prettier --write --ignore-unknown"
69
+ "!(CHANGELOG)*.md": "prettier --write --ignore-unknown",
70
+ "!(*md)": "prettier --write --ignore-unknown"
70
71
  },
71
72
  "scripts": {
72
73
  "dev": "nuxi dev playground --port 3030",