@meshsdk/react 1.7.25 → 1.7.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/index.cjs +345 -149
- package/dist/index.css +23 -1
- package/dist/index.d.cts +16 -11
- package/dist/index.d.ts +16 -11
- package/dist/index.js +343 -147
- package/package.json +5 -4
package/dist/index.css
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/*
|
|
110
|
-
! tailwindcss v3.4.
|
|
110
|
+
! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
/*
|
|
@@ -749,6 +749,10 @@ video {
|
|
|
749
749
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
+
.mesh-flex-row {
|
|
753
|
+
flex-direction: row;
|
|
754
|
+
}
|
|
755
|
+
|
|
752
756
|
.mesh-flex-col {
|
|
753
757
|
flex-direction: column;
|
|
754
758
|
}
|
|
@@ -1109,6 +1113,24 @@ video {
|
|
|
1109
1113
|
}
|
|
1110
1114
|
}
|
|
1111
1115
|
|
|
1116
|
+
.mesh-animate-in {
|
|
1117
|
+
animation-name: enter;
|
|
1118
|
+
animation-duration: 150ms;
|
|
1119
|
+
--tw-enter-opacity: initial;
|
|
1120
|
+
--tw-enter-scale: initial;
|
|
1121
|
+
--tw-enter-rotate: initial;
|
|
1122
|
+
--tw-enter-translate-x: initial;
|
|
1123
|
+
--tw-enter-translate-y: initial;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.mesh-fade-in-0 {
|
|
1127
|
+
--tw-enter-opacity: 0;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.mesh-zoom-in-95 {
|
|
1131
|
+
--tw-enter-scale: .95;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1112
1134
|
.mesh-duration-200 {
|
|
1113
1135
|
animation-duration: 200ms;
|
|
1114
1136
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BrowserWallet } from '@meshsdk/wallet';
|
|
2
|
+
import * as _meshsdk_common from '@meshsdk/common';
|
|
3
|
+
import { IFetcher, ISubmitter, IWallet, Asset, Wallet, AccountInfo } from '@meshsdk/common';
|
|
5
4
|
import * as react from 'react';
|
|
6
5
|
|
|
7
6
|
interface ButtonProps$1 {
|
|
8
7
|
label?: string;
|
|
9
8
|
onConnected?: Function;
|
|
10
9
|
isDark?: boolean;
|
|
10
|
+
extensions?: number[];
|
|
11
11
|
metamask?: {
|
|
12
12
|
network: string;
|
|
13
13
|
};
|
|
14
|
-
extensions?: number[];
|
|
15
14
|
cardanoPeerConnect?: {
|
|
16
15
|
dAppInfo: {
|
|
17
16
|
name: string;
|
|
@@ -19,16 +18,21 @@ interface ButtonProps$1 {
|
|
|
19
18
|
};
|
|
20
19
|
announce: string[];
|
|
21
20
|
};
|
|
21
|
+
burnerWallet?: {
|
|
22
|
+
networkId: 0 | 1;
|
|
23
|
+
provider: IFetcher & ISubmitter;
|
|
24
|
+
};
|
|
22
25
|
}
|
|
23
|
-
declare const CardanoWallet: ({ label, onConnected, isDark,
|
|
26
|
+
declare const CardanoWallet: ({ label, onConnected, isDark, extensions, metamask, cardanoPeerConnect, burnerWallet, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
24
27
|
|
|
25
28
|
interface WalletContext {
|
|
26
29
|
hasConnectedWallet: boolean;
|
|
27
|
-
connectedWalletInstance:
|
|
28
|
-
connectedWalletName: string;
|
|
30
|
+
connectedWalletInstance: IWallet;
|
|
31
|
+
connectedWalletName: string | undefined;
|
|
29
32
|
connectingWallet: boolean;
|
|
30
|
-
connectWallet
|
|
31
|
-
disconnect
|
|
33
|
+
connectWallet: (walletName: string, extensions?: number[]) => Promise<void>;
|
|
34
|
+
disconnect: () => void;
|
|
35
|
+
setWallet: (walletInstance: IWallet, walletName: string) => void;
|
|
32
36
|
error?: unknown;
|
|
33
37
|
}
|
|
34
38
|
declare const WalletContext: react.Context<WalletContext>;
|
|
@@ -55,12 +59,13 @@ declare const useNetwork: () => number | undefined;
|
|
|
55
59
|
declare const useRewardAddress: (accountId?: number) => string | undefined;
|
|
56
60
|
|
|
57
61
|
declare const useWallet: () => {
|
|
58
|
-
name: string;
|
|
62
|
+
name: string | undefined;
|
|
59
63
|
connecting: boolean;
|
|
60
64
|
connected: boolean;
|
|
61
|
-
wallet:
|
|
65
|
+
wallet: _meshsdk_common.IWallet;
|
|
62
66
|
connect: (walletName: string, extensions?: number[]) => Promise<void>;
|
|
63
67
|
disconnect: () => void;
|
|
68
|
+
setWallet: (walletInstance: _meshsdk_common.IWallet, walletName: string) => void;
|
|
64
69
|
error: unknown;
|
|
65
70
|
};
|
|
66
71
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BrowserWallet } from '@meshsdk/wallet';
|
|
2
|
+
import * as _meshsdk_common from '@meshsdk/common';
|
|
3
|
+
import { IFetcher, ISubmitter, IWallet, Asset, Wallet, AccountInfo } from '@meshsdk/common';
|
|
5
4
|
import * as react from 'react';
|
|
6
5
|
|
|
7
6
|
interface ButtonProps$1 {
|
|
8
7
|
label?: string;
|
|
9
8
|
onConnected?: Function;
|
|
10
9
|
isDark?: boolean;
|
|
10
|
+
extensions?: number[];
|
|
11
11
|
metamask?: {
|
|
12
12
|
network: string;
|
|
13
13
|
};
|
|
14
|
-
extensions?: number[];
|
|
15
14
|
cardanoPeerConnect?: {
|
|
16
15
|
dAppInfo: {
|
|
17
16
|
name: string;
|
|
@@ -19,16 +18,21 @@ interface ButtonProps$1 {
|
|
|
19
18
|
};
|
|
20
19
|
announce: string[];
|
|
21
20
|
};
|
|
21
|
+
burnerWallet?: {
|
|
22
|
+
networkId: 0 | 1;
|
|
23
|
+
provider: IFetcher & ISubmitter;
|
|
24
|
+
};
|
|
22
25
|
}
|
|
23
|
-
declare const CardanoWallet: ({ label, onConnected, isDark,
|
|
26
|
+
declare const CardanoWallet: ({ label, onConnected, isDark, extensions, metamask, cardanoPeerConnect, burnerWallet, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
24
27
|
|
|
25
28
|
interface WalletContext {
|
|
26
29
|
hasConnectedWallet: boolean;
|
|
27
|
-
connectedWalletInstance:
|
|
28
|
-
connectedWalletName: string;
|
|
30
|
+
connectedWalletInstance: IWallet;
|
|
31
|
+
connectedWalletName: string | undefined;
|
|
29
32
|
connectingWallet: boolean;
|
|
30
|
-
connectWallet
|
|
31
|
-
disconnect
|
|
33
|
+
connectWallet: (walletName: string, extensions?: number[]) => Promise<void>;
|
|
34
|
+
disconnect: () => void;
|
|
35
|
+
setWallet: (walletInstance: IWallet, walletName: string) => void;
|
|
32
36
|
error?: unknown;
|
|
33
37
|
}
|
|
34
38
|
declare const WalletContext: react.Context<WalletContext>;
|
|
@@ -55,12 +59,13 @@ declare const useNetwork: () => number | undefined;
|
|
|
55
59
|
declare const useRewardAddress: (accountId?: number) => string | undefined;
|
|
56
60
|
|
|
57
61
|
declare const useWallet: () => {
|
|
58
|
-
name: string;
|
|
62
|
+
name: string | undefined;
|
|
59
63
|
connecting: boolean;
|
|
60
64
|
connected: boolean;
|
|
61
|
-
wallet:
|
|
65
|
+
wallet: _meshsdk_common.IWallet;
|
|
62
66
|
connect: (walletName: string, extensions?: number[]) => Promise<void>;
|
|
63
67
|
disconnect: () => void;
|
|
68
|
+
setWallet: (walletInstance: _meshsdk_common.IWallet, walletName: string) => void;
|
|
64
69
|
error: unknown;
|
|
65
70
|
};
|
|
66
71
|
|