@maas/vue-equipment 0.7.2 → 0.7.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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.7.1"
4
+ "version": "0.7.2"
5
5
  }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <Teleport
3
+ :key="teleportKey"
3
4
  :to="mappedOptions.teleport?.target"
4
5
  :disabled="mappedOptions.teleport?.disabled"
5
6
  >
@@ -43,7 +44,7 @@
43
44
 
44
45
  <script setup lang="ts">
45
46
  import { defu } from 'defu'
46
- import { toValue, ref, type MaybeRef } from 'vue'
47
+ import { toValue, ref, computed, type MaybeRef } from 'vue'
47
48
  import { onClickOutside, type MaybeElement } from '@vueuse/core'
48
49
  import { defaultOptions } from './../utils/defaultOptions'
49
50
  import { useToastApi } from './../composables/useToastApi'
@@ -77,6 +78,8 @@ const {
77
78
  activeElements,
78
79
  } = useToastCallback({ id: props.id, mappedOptions, count, oldest })
79
80
 
81
+ const teleportKey = computed(() => `${props.class}-${props.id}`)
82
+
80
83
  function onMouseenter() {
81
84
  if (mappedOptions.layout?.expand === 'hover') {
82
85
  isExpanded.value = true
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "A magic collection of Vue composables, plugins, components and directives",
4
- "version": "0.7.2",
4
+ "version": "0.7.3",
5
5
  "author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
6
6
  "devDependencies": {
7
7
  "@antfu/ni": "^0.21.5",