@unifold/ui-web 0.1.51 → 0.1.52
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -54108,8 +54108,11 @@ function BrowserWalletButton({
|
|
|
54108
54108
|
solanaProvider.off("accountChanged", handleAccountsChanged);
|
|
54109
54109
|
}
|
|
54110
54110
|
for (const provider of ethProviders) {
|
|
54111
|
-
provider.removeListener(
|
|
54112
|
-
|
|
54111
|
+
const off = provider.off?.bind(provider) ?? provider.removeListener?.bind(provider);
|
|
54112
|
+
if (off) {
|
|
54113
|
+
off("accountsChanged", handleEthAccountsChanged);
|
|
54114
|
+
off("chainChanged", handleAccountsChanged);
|
|
54115
|
+
}
|
|
54113
54116
|
}
|
|
54114
54117
|
};
|
|
54115
54118
|
}, [chainType, eip6963ProviderCount]);
|
package/dist/index.mjs
CHANGED
|
@@ -54095,8 +54095,11 @@ function BrowserWalletButton({
|
|
|
54095
54095
|
solanaProvider.off("accountChanged", handleAccountsChanged);
|
|
54096
54096
|
}
|
|
54097
54097
|
for (const provider of ethProviders) {
|
|
54098
|
-
provider.removeListener(
|
|
54099
|
-
|
|
54098
|
+
const off = provider.off?.bind(provider) ?? provider.removeListener?.bind(provider);
|
|
54099
|
+
if (off) {
|
|
54100
|
+
off("accountsChanged", handleEthAccountsChanged);
|
|
54101
|
+
off("chainChanged", handleAccountsChanged);
|
|
54102
|
+
}
|
|
54100
54103
|
}
|
|
54101
54104
|
};
|
|
54102
54105
|
}, [chainType, eip6963ProviderCount]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/ui-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "Unifold UI Web - Framework-agnostic deposit widget",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/react-dom": "^19.0.0",
|
|
31
31
|
"tsup": "^8.0.0",
|
|
32
32
|
"typescript": "^5.0.0",
|
|
33
|
-
"@unifold/connect-react": "0.1.
|
|
34
|
-
"@unifold/core": "0.1.
|
|
35
|
-
"@unifold/ui-react": "0.1.
|
|
36
|
-
"@unifold/react-provider": "0.1.
|
|
33
|
+
"@unifold/connect-react": "0.1.52",
|
|
34
|
+
"@unifold/core": "0.1.52",
|
|
35
|
+
"@unifold/ui-react": "0.1.52",
|
|
36
|
+
"@unifold/react-provider": "0.1.52"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"unifold",
|