@getpara/react-sdk 1.4.4 → 1.5.0
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.js +6 -6
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1750,7 +1750,7 @@ var LoginDoneStep = ({ onClose }) => {
|
|
|
1750
1750
|
return /* @__PURE__ */ jsxs5(StepContainer, { children: [
|
|
1751
1751
|
/* @__PURE__ */ jsx5(HeroIcon, { icon: "checkCircleFilled" }),
|
|
1752
1752
|
/* @__PURE__ */ jsx5(Heading, { variant: "headingS", weight: "bold", children: "Connected" }),
|
|
1753
|
-
!hideWallets && /* @__PURE__ */ jsx5(WalletCards, { children: para.isUsingExternalWallet() ? /* @__PURE__ */ jsx5(ExternalWalletCard, { address: para.
|
|
1753
|
+
!hideWallets && /* @__PURE__ */ jsx5(WalletCards, { children: para.isUsingExternalWallet() ? /* @__PURE__ */ jsx5(ExternalWalletCard, { address: Object.values(para.externalWallets || {})[0]?.address }) : para.currentWalletIdsArray.map(([id, type]) => {
|
|
1754
1754
|
return /* @__PURE__ */ jsx5(WalletCard, { id, type }, `${id}-${type}`);
|
|
1755
1755
|
}) })
|
|
1756
1756
|
] });
|
|
@@ -2076,7 +2076,7 @@ function ExternalWalletProvider({
|
|
|
2076
2076
|
}
|
|
2077
2077
|
}, [wallet]);
|
|
2078
2078
|
const chains = useMemo2(() => {
|
|
2079
|
-
const walletType = para.externalWallets[
|
|
2079
|
+
const walletType = Object.values(para.externalWallets || {})[0]?.type;
|
|
2080
2080
|
switch (walletType) {
|
|
2081
2081
|
case WalletType2.COSMOS: {
|
|
2082
2082
|
return cosmosChains;
|
|
@@ -2090,7 +2090,7 @@ function ExternalWalletProvider({
|
|
|
2090
2090
|
}
|
|
2091
2091
|
}, [cosmosChains, evmChains, selectedExternalWalletId]);
|
|
2092
2092
|
const chainId = useMemo2(() => {
|
|
2093
|
-
const walletType = para.externalWallets[
|
|
2093
|
+
const walletType = Object.values(para.externalWallets || {})[0]?.type;
|
|
2094
2094
|
switch (walletType) {
|
|
2095
2095
|
case WalletType2.COSMOS: {
|
|
2096
2096
|
return cosmosChainId;
|
|
@@ -2105,7 +2105,7 @@ function ExternalWalletProvider({
|
|
|
2105
2105
|
}, [cosmosChains, evmChains, selectedExternalWalletId]);
|
|
2106
2106
|
const switchChain = useCallback(
|
|
2107
2107
|
async (chainId2) => {
|
|
2108
|
-
const walletType = para.externalWallets[
|
|
2108
|
+
const walletType = Object.values(para.externalWallets || {})[0]?.type;
|
|
2109
2109
|
if (walletType) {
|
|
2110
2110
|
let resp;
|
|
2111
2111
|
setExternalWalletError();
|
|
@@ -2184,7 +2184,7 @@ function ExternalWalletProvider({
|
|
|
2184
2184
|
};
|
|
2185
2185
|
const username = useMemo2(() => {
|
|
2186
2186
|
let username2;
|
|
2187
|
-
const storedExternalWallet = para.externalWallets[
|
|
2187
|
+
const storedExternalWallet = Object.values(para.externalWallets || {})[0];
|
|
2188
2188
|
if (storedExternalWallet) {
|
|
2189
2189
|
const walletType = storedExternalWallet?.type;
|
|
2190
2190
|
switch (walletType) {
|
|
@@ -2201,7 +2201,7 @@ function ExternalWalletProvider({
|
|
|
2201
2201
|
return username2;
|
|
2202
2202
|
}, [evmUsername, wallet]);
|
|
2203
2203
|
const avatar = useMemo2(() => {
|
|
2204
|
-
const walletType = para.externalWallets[
|
|
2204
|
+
const walletType = Object.values(para.externalWallets || {})[0]?.type;
|
|
2205
2205
|
if (walletType) {
|
|
2206
2206
|
switch (walletType) {
|
|
2207
2207
|
case WalletType2.EVM: {
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"*.css"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@getpara/react-common": "1.
|
|
16
|
-
"@getpara/react-components": "1.
|
|
17
|
-
"@getpara/web-sdk": "1.
|
|
15
|
+
"@getpara/react-common": "1.5.0",
|
|
16
|
+
"@getpara/react-components": "1.5.0",
|
|
17
|
+
"@getpara/web-sdk": "1.5.0",
|
|
18
18
|
"@tanstack/react-query": "^5.0.0",
|
|
19
19
|
"date-fns": "^3.6.0",
|
|
20
20
|
"framer-motion": "11.3.28",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"resolutions": {
|
|
50
50
|
"styled-components": "^6"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0e3c1401b4f1da60b288cdde7695077c9bcbc48f"
|
|
53
53
|
}
|