@explorer-1/vue 1.1.17 → 1.1.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @explorer-1/vue
2
2
 
3
+ ## 1.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 008fc92: Fixing NuxtLink resolution error in BaseLink
8
+
3
9
  ## 1.1.17
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { defineComponent, type PropType } from 'vue'
2
+ import { defineComponent, resolveComponent, type PropType } from 'vue'
3
3
  import { mapStores } from 'pinia'
4
4
  import { useThemeStore } from '../../store/theme'
5
5
  import { eventBus } from './../../utils/eventBus'
@@ -148,6 +148,10 @@ export default defineComponent({
148
148
  ],
149
149
  computed: {
150
150
  ...mapStores(useThemeStore),
151
+ dynamicLinkComponent() {
152
+ // Resolves the NuxtLink component for Vue 3's dynamic <component> binding
153
+ return this.customElementType || resolveComponent('NuxtLink')
154
+ },
151
155
  computedVariants() {
152
156
  if (this.usePrimaryColor) {
153
157
  return primaryColorVariants
@@ -271,7 +275,7 @@ export default defineComponent({
271
275
  <div>
272
276
  <!-- annoyingly repetive due to complexities around `to` and @click.native -->
273
277
  <component
274
- :is="customElementType || 'nuxt-link'"
278
+ :is="dynamicLinkComponent"
275
279
  v-if="computedTo"
276
280
  class="group"
277
281
  :class="computedClass"