Skip to content

Commit

Permalink
Fix wallet connect qr code modal z index
Browse files Browse the repository at this point in the history
  • Loading branch information
romanroibu authored and pedroapfilho committed Sep 28, 2023
1 parent 522ac7c commit 71fd5ec
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 45 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"@web3-react/network": "8.2.2",
"@web3-react/types": "8.2.2",
"@web3-react/url": "8.2.2",
"@web3-react/walletconnect": "8.2.2",
"@web3-react/walletconnect-v2": "^8.5.0",
"array.prototype.flat": "^1.2.4",
"array.prototype.flatmap": "^1.2.4",
"cids": "^1.0.0",
Expand Down
5 changes: 5 additions & 0 deletions src/connection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ const [web3WalletConnect, web3WalletConnectHooks] = initializeConnector<WalletCo
showQrModal: true,
projectId: '2c22b74a3313db29ebf0418e946c5ddc',
chains,
qrModalOptions: {
themeVariables: {
'--wcm-z-index': '9999999',
},
},
},
onError,
})
Expand Down
141 changes: 97 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3603,6 +3603,75 @@
semver "^7.3.8"
superstruct "^1.0.3"

"@motionone/animation@^10.15.1", "@motionone/animation@^10.16.3":
version "10.16.3"
resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.16.3.tgz#f5b71e27fd8b88b61f983adb0ed6c8e3e89281f9"
integrity sha512-QUGWpLbMFLhyqKlngjZhjtxM8IqiJQjLK0DF+XOF6od9nhSvlaeEpOY/UMCRVcZn/9Tr2rZO22EkuCIjYdI74g==
dependencies:
"@motionone/easing" "^10.16.3"
"@motionone/types" "^10.16.3"
"@motionone/utils" "^10.16.3"
tslib "^2.3.1"

"@motionone/dom@^10.16.2", "@motionone/dom@^10.16.4":
version "10.16.4"
resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.16.4.tgz#9385716928cc2d5b3208a7dcaf504b69b47fd1ae"
integrity sha512-HPHlVo/030qpRj9R8fgY50KTN4Ko30moWRTA3L3imrsRBmob93cTYmodln49HYFbQm01lFF7X523OkKY0DX6UA==
dependencies:
"@motionone/animation" "^10.16.3"
"@motionone/generators" "^10.16.4"
"@motionone/types" "^10.16.3"
"@motionone/utils" "^10.16.3"
hey-listen "^1.0.8"
tslib "^2.3.1"

"@motionone/easing@^10.16.3":
version "10.16.3"
resolved "https://registry.yarnpkg.com/@motionone/easing/-/easing-10.16.3.tgz#a62abe0ba2841861f167f286782e287eab8d7466"
integrity sha512-HWTMZbTmZojzwEuKT/xCdvoMPXjYSyQvuVM6jmM0yoGU6BWzsmYMeB4bn38UFf618fJCNtP9XeC/zxtKWfbr0w==
dependencies:
"@motionone/utils" "^10.16.3"
tslib "^2.3.1"

"@motionone/generators@^10.16.4":
version "10.16.4"
resolved "https://registry.yarnpkg.com/@motionone/generators/-/generators-10.16.4.tgz#4a38708244bce733bfcebd4a26d19f4bbabd36af"
integrity sha512-geFZ3w0Rm0ZXXpctWsSf3REGywmLLujEjxPYpBR0j+ymYwof0xbV6S5kGqqsDKgyWKVWpUInqQYvQfL6fRbXeg==
dependencies:
"@motionone/types" "^10.16.3"
"@motionone/utils" "^10.16.3"
tslib "^2.3.1"

"@motionone/svelte@^10.16.2":
version "10.16.4"
resolved "https://registry.yarnpkg.com/@motionone/svelte/-/svelte-10.16.4.tgz#5daf117cf5b2576fc6dd487c5e0500938a742470"
integrity sha512-zRVqk20lD1xqe+yEDZhMYgftsuHc25+9JSo+r0a0OWUJFocjSV9D/+UGhX4xgJsuwB9acPzXLr20w40VnY2PQA==
dependencies:
"@motionone/dom" "^10.16.4"
tslib "^2.3.1"

"@motionone/types@^10.15.1", "@motionone/types@^10.16.3":
version "10.16.3"
resolved "https://registry.yarnpkg.com/@motionone/types/-/types-10.16.3.tgz#9284ea8a52f6b32c51c54b617214f20e43ac6c59"
integrity sha512-W4jkEGFifDq73DlaZs3HUfamV2t1wM35zN/zX7Q79LfZ2sc6C0R1baUHZmqc/K5F3vSw3PavgQ6HyHLd/MXcWg==

"@motionone/utils@^10.15.1", "@motionone/utils@^10.16.3":
version "10.16.3"
resolved "https://registry.yarnpkg.com/@motionone/utils/-/utils-10.16.3.tgz#ddf07ab6cf3000d89e3bcbdc9a8c3e1fd64f8520"
integrity sha512-WNWDksJIxQkaI9p9Z9z0+K27xdqISGNFy1SsWVGaiedTHq0iaT6iZujby8fT/ZnZxj1EOaxJtSfUPCFNU5CRoA==
dependencies:
"@motionone/types" "^10.16.3"
hey-listen "^1.0.8"
tslib "^2.3.1"

"@motionone/vue@^10.16.2":
version "10.16.4"
resolved "https://registry.yarnpkg.com/@motionone/vue/-/vue-10.16.4.tgz#07d09e3aa5115ca0bcc0076cb9e5322775277c09"
integrity sha512-z10PF9JV6SbjFq+/rYabM+8CVlMokgl8RFGvieSGNTmrkQanfHn+15XBrhG3BgUfvmTeSeyShfOHpG0i9zEdcg==
dependencies:
"@motionone/dom" "^10.16.4"
tslib "^2.3.1"

"@multiformats/base-x@^4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@multiformats/base-x/-/base-x-4.0.1.tgz#95ff0fa58711789d53aefb2590a8b7a4e715d121"
Expand Down Expand Up @@ -6268,17 +6337,7 @@
"@walletconnect/types" "^1.8.0"
"@walletconnect/utils" "^1.8.0"

"@walletconnect/jsonrpc-http-connection@^1.0.2":
version "1.0.7"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.7.tgz#a6973569b8854c22da707a759d241e4f5c2d5a98"
integrity sha512-qlfh8fCfu8LOM9JRR9KE0s0wxP6ZG9/Jom8M0qsoIQeKF3Ni0FyV4V1qy/cc7nfI46SLQLSl4tgWSfLiE1swyQ==
dependencies:
"@walletconnect/jsonrpc-utils" "^1.0.6"
"@walletconnect/safe-json" "^1.0.1"
cross-fetch "^3.1.4"
tslib "1.14.1"

"@walletconnect/jsonrpc-http-connection@^1.0.7":
"@walletconnect/jsonrpc-http-connection@^1.0.2", "@walletconnect/jsonrpc-http-connection@^1.0.7":
version "1.0.7"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.7.tgz#a6973569b8854c22da707a759d241e4f5c2d5a98"
integrity sha512-qlfh8fCfu8LOM9JRR9KE0s0wxP6ZG9/Jom8M0qsoIQeKF3Ni0FyV4V1qy/cc7nfI46SLQLSl4tgWSfLiE1swyQ==
Expand All @@ -6297,24 +6356,15 @@
"@walletconnect/safe-json" "^1.0.2"
tslib "1.14.1"

"@walletconnect/jsonrpc-provider@^1.0.5":
version "1.0.13"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz#9a74da648d015e1fffc745f0c7d629457f53648b"
integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g==
dependencies:
"@walletconnect/jsonrpc-utils" "^1.0.8"
"@walletconnect/safe-json" "^1.0.2"
tslib "1.14.1"

"@walletconnect/jsonrpc-types@^1.0.1", "@walletconnect/jsonrpc-types@^1.0.3":
"@walletconnect/[email protected]", "@walletconnect/jsonrpc-types@^1.0.1", "@walletconnect/jsonrpc-types@^1.0.2", "@walletconnect/jsonrpc-types@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c"
integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==
dependencies:
keyvaluestorage-interface "^1.0.0"
tslib "1.14.1"

"@walletconnect/jsonrpc-utils@^1.0.3", "@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.8":
"@walletconnect/jsonrpc-utils@1.0.8", "@walletconnect/jsonrpc-utils@^1.0.3", "@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.7", "@walletconnect/jsonrpc-utils@^1.0.8":
version "1.0.8"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz#82d0cc6a5d6ff0ecc277cb35f71402c91ad48d72"
integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==
Expand Down Expand Up @@ -6434,13 +6484,6 @@
dependencies:
tslib "1.14.1"

"@walletconnect/safe-json@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@walletconnect/safe-json/-/safe-json-1.0.2.tgz#7237e5ca48046e4476154e503c6d3c914126fa77"
integrity sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==
dependencies:
tslib "1.14.1"

"@walletconnect/[email protected]":
version "2.10.1"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.10.1.tgz#db60bc9400cd79f0cb2380067343512b21ee4749"
Expand Down Expand Up @@ -6658,12 +6701,13 @@
"@ethersproject/providers" "^5"
"@web3-react/types" "^8.2.2"

"@web3-react/walletconnect@8.2.2":
version "8.2.2"
resolved "https://registry.yarnpkg.com/@web3-react/walletconnect/-/walletconnect-8.2.2.tgz#140276dbec6da271808740cef54888cf3f22841a"
integrity sha512-aFQhvXndXHjTWOBx4z5N3eg6WWhHX6xk3ppGMt7zhJLEA6W3ZLp6VBvKoRCbXrn8ME8tmS4sOsaI/7IPpWs0mg==
"@web3-react/walletconnect-v2@^8.5.0":
version "8.5.0"
resolved "https://registry.yarnpkg.com/@web3-react/walletconnect-v2/-/walletconnect-v2-8.5.0.tgz#f81ef1d7e262771e6004133f6c8f9f5a27a4c3e3"
integrity sha512-iIdKWk1whh6X/dnR8DgyMuFMcvspcFVh2Ly5CNM3LM28XSTiCNMnkr3fumtc654shy9aVNy8DkbDi02oiRx6fQ==
dependencies:
"@walletconnect/ethereum-provider" "^1.7.8"
"@walletconnect/ethereum-provider" "^2.9.2"
"@walletconnect/modal" "^2.6.1"
"@web3-react/types" "^8.2.2"
eventemitter3 "^4.0.7"

Expand Down Expand Up @@ -17516,6 +17560,16 @@ [email protected]:
pngjs "^3.3.0"
yargs "^13.2.4"

[email protected]:
version "1.5.3"
resolved "https://registry.yarnpkg.com/qrcode/-/qrcode-1.5.3.tgz#03afa80912c0dccf12bc93f615a535aad1066170"
integrity sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==
dependencies:
dijkstrajs "^1.0.1"
encode-utf8 "^1.0.3"
pngjs "^5.0.0"
yargs "^15.3.1"

[email protected]:
version "6.10.4"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.4.tgz#6a3003755add91c0ec9eacdc5f878b034e73f9e7"
Expand Down Expand Up @@ -18014,16 +18068,7 @@ read-pkg@^5.2.0:
string_decoder "~1.1.1"
util-deprecate "~1.0.1"

readable-stream@^3.0.6, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0:
version "3.6.2"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967"
integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==
dependencies:
inherits "^2.0.3"
string_decoder "^1.1.1"
util-deprecate "^1.0.1"

readable-stream@^3.1.1:
readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0:
version "3.6.2"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967"
integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==
Expand Down Expand Up @@ -20834,6 +20879,14 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"

[email protected]:
version "1.11.2"
resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.11.2.tgz#b8049c02dfe65620635d23ebae9121a741bb6530"
integrity sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==
dependencies:
proxy-compare "2.5.1"
use-sync-external-store "1.2.0"

value-or-promise@^1.0.11, value-or-promise@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.12.tgz#0e5abfeec70148c78460a849f6b003ea7986f15c"
Expand Down

0 comments on commit 71fd5ec

Please sign in to comment.