@unsource/ui 2.8.26 → 2.8.27

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.26",
4
+ "version": "2.8.27",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,3 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { Wallet } from '../types/models.js';
2
+ type __VLS_Props = {
3
+ wallet: Wallet;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
6
  declare const _default: typeof __VLS_export;
3
7
  export default _default;
@@ -48,9 +48,10 @@ import {
48
48
  watch
49
49
  } from "#imports";
50
50
  const emit = defineEmits(["close"]);
51
- const wallets = await useWallets(true);
51
+ const { wallet } = defineProps({
52
+ wallet: { type: Object, required: true }
53
+ });
52
54
  const amount = ref("0");
53
- const wallet = computed(() => wallets.value.find((e) => e.coin.unit === "wallet"));
54
55
  const schema = ref();
55
56
  const { $toast } = useNuxtApp();
56
57
  const loading = ref(false);
@@ -81,7 +82,7 @@ const submit = async () => {
81
82
  loading.value = true;
82
83
  const w = await useWallets(void 0, toUser.value?.id);
83
84
  const details = {
84
- walletId: wallet.value?.id,
85
+ walletId: wallet.id,
85
86
  toWalletId: w.value?.find((e) => e.coin.key === "wallet")?.id,
86
87
  status: "ACCEPTED",
87
88
  type: "TRANSFER",
@@ -1,3 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { Wallet } from '../types/models.js';
2
+ type __VLS_Props = {
3
+ wallet: Wallet;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
6
  declare const _default: typeof __VLS_export;
3
7
  export default _default;
@@ -77,6 +77,7 @@
77
77
  />
78
78
  <UnModalTransfer
79
79
  v-if="transferModal"
80
+ :wallet="selectedWallet"
80
81
  @close="transferModal = false;
81
82
  refresh()"
82
83
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.26",
3
+ "version": "2.8.27",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",