@1001-digital/components 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1001-digital/components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -1,6 +1,8 @@
1
1
  <template>
2
- <Toasts />
3
- <ConfirmDialog />
2
+ <Toasts>
3
+ <ConfirmDialog />
4
+ <slot />
5
+ </Toasts>
4
6
  </template>
5
7
 
6
8
  <script setup lang="ts">
@@ -3,6 +3,8 @@
3
3
  :duration="duration"
4
4
  :swipe-direction="swipeDirection"
5
5
  >
6
+ <slot />
7
+
6
8
  <ToastRoot
7
9
  v-for="toast in toasts"
8
10
  :key="toast.id"
@@ -17,6 +17,7 @@
17
17
  v-model:open="dialogOpen"
18
18
  class="evm-profile"
19
19
  title="Account"
20
+ compat
20
21
  >
21
22
  <div class="profile-header">
22
23
  <div
@@ -26,7 +27,10 @@
26
27
  "
27
28
  />
28
29
  <div class="avatar-wrapper">
29
- <EvmAvatar :address="address" large />
30
+ <EvmAvatar
31
+ :address="address"
32
+ large
33
+ />
30
34
  </div>
31
35
  </div>
32
36
 
@@ -12,6 +12,7 @@
12
12
  title="Switch Network"
13
13
  v-model:open="dialogOpen"
14
14
  @closed="onClosed"
15
+ compat
15
16
  >
16
17
  <Alert
17
18
  v-if="errorMessage"
@@ -94,9 +95,10 @@ const switchTo = async (chain: Chain) => {
94
95
  dialogOpen.value = false
95
96
  } catch (e: unknown) {
96
97
  const message = e instanceof Error ? e.message : 'Failed to switch network.'
97
- errorMessage.value = message.includes('rejected') || message.includes('denied')
98
- ? 'Network switch cancelled.'
99
- : 'Failed to switch network. Please try again.'
98
+ errorMessage.value =
99
+ message.includes('rejected') || message.includes('denied')
100
+ ? 'Network switch cancelled.'
101
+ : 'Failed to switch network. Please try again.'
100
102
  emit('error', { message: errorMessage.value })
101
103
  } finally {
102
104
  switching.value = false