Skip to content

Commit 80569eb

Browse files
authored
Merge pull request #2031 from blocknative/release/2.24.18
Release - 2.24.18
2 parents efb0e44 + 63798bc commit 80569eb

File tree

12 files changed

+928
-83
lines changed

12 files changed

+928
-83
lines changed

docs/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@tailwindcss/typography": "^0.5.9",
2727
"@types/animejs": "^3.1.7",
2828
"@types/react": "^18.0.37",
29+
"@vitejs/plugin-react": "^4.2.1",
2930
"assert": "^2.0.0",
3031
"autoprefixer": "^10.4.14",
3132
"browserify-zlib": "^0.2.0",
@@ -54,7 +55,8 @@
5455
"@web3-onboard/arcana-auth": "^2.0.0",
5556
"@web3-onboard/bitget": "^2.0.0",
5657
"@web3-onboard/blocto": "^2.0.0",
57-
"@web3-onboard/capsule": "^2.0.0",
58+
"@web3-onboard/capsule": "^2.0.1",
59+
"@web3-onboard/cede-store": "^2.2.0",
5860
"@web3-onboard/coinbase": "^2.2.5",
5961
"@web3-onboard/core": "^2.21.2",
6062
"@web3-onboard/dcent": "^2.2.7",
@@ -82,7 +84,7 @@
8284
"@web3-onboard/trust": "^2.0.4",
8385
"@web3-onboard/uauth": "^2.1.1",
8486
"@web3-onboard/venly": "^2.0.0",
85-
"@web3-onboard/walletconnect": "^2.5.1",
87+
"@web3-onboard/walletconnect": "^2.5.2",
8688
"@web3-onboard/web3auth": "^2.2.3",
8789
"@web3-onboard/xdefi": "^2.0.4",
8890
"@web3-onboard/zeal": "^2.0.4",

docs/src/lib/services/onboard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const intiOnboard = async (theme) => {
130130

131131
const capsule = capsuleModule({
132132
environment: Environment.DEVELOPMENT,
133+
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
133134
})
134135

135136
return Onboard({
@@ -162,7 +163,7 @@ const intiOnboard = async (theme) => {
162163
frame,
163164
infinityWallet,
164165
blocto,
165-
capsule
166+
// capsule
166167
// venly
167168
],
168169
chains: [

docs/vite.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'
22
import icons from 'unplugin-icons/vite'
33
import kitDocs from '@svelteness/kit-docs/node'
44
import nodePolyfills from 'rollup-plugin-polyfill-node'
5+
import react from '@vitejs/plugin-react';
56

67
/** @type {import('vite').UserConfig} */
78
const config = {
8-
plugins: [icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
9+
plugins: [react(), icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
910
resolve: {
1011
alias: {
1112
crypto: 'crypto-browserify',
@@ -25,7 +26,8 @@ const config = {
2526
}
2627
},
2728
define: {
28-
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL)
29+
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL),
30+
'process.env.NODE_DEBUG': JSON.stringify('')
2931
},
3032
optimizeDeps: {
3133
exclude: ['@ethersproject/hash', 'wrtc', 'http', 'react/jsx-runtime'],

docs/yarn.lock

Lines changed: 861 additions & 22 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-onboard-monorepo",
3-
"version": "2.24.17",
3+
"version": "2.24.18",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/capsule/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/capsule",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Capsule SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",
@@ -56,17 +56,17 @@
5656
"Capsule"
5757
],
5858
"dependencies": {
59-
"@usecapsule/web-sdk": "^0.29.4",
59+
"@usecapsule/web-sdk": "0.29.4",
6060
"@wagmi/chains": "^1.8.0",
6161
"@web3-onboard/common": "^2.3.3",
62-
"react-dom" : "^18.2.0"
62+
"react-dom": "^18.2.0"
6363
},
6464
"peerDependencies": {
6565
"react": ">=18.2"
6666
},
6767
"devDependencies": {
68-
"typescript": "^5.2.2",
6968
"@types/react": "^18.0.2",
70-
"react": "^18.2.0"
69+
"react": "^18.2.0",
70+
"typescript": "^5.2.2"
7171
}
7272
}

packages/capsule/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AppMetadata, WalletInit } from '@web3-onboard/common'
1+
import type { AppMetadata, EIP1193Provider, WalletInit } from '@web3-onboard/common'
22
import type { CapsuleInitOptions } from './types'
33
import type { Chain } from '@wagmi/chains'
44
import type { Chain as BlocknativeChain } from '@web3-onboard/common'
@@ -89,7 +89,9 @@ function capsule(options: CapsuleInitOptions): WalletInit {
8989
chainsMap
9090
)
9191
}
92-
const provider = new CapsuleEIP1193Provider(providerOpts)
92+
const provider: EIP1193Provider = new CapsuleEIP1193Provider(providerOpts)
93+
94+
provider.disconnect = () => { capsule.logout(); };
9395

9496
return {
9597
instance: capsule,

packages/capsule/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,9 +2232,9 @@
22322232
integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==
22332233

22342234
"@types/react@^18.0.2":
2235-
version "18.2.39"
2236-
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.39.tgz#744bee99e053ad61fe74eb8b897f3ab5b19a7e25"
2237-
integrity sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==
2235+
version "18.2.42"
2236+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.42.tgz#6f6b11a904f6d96dda3c2920328a97011a00aba7"
2237+
integrity sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==
22382238
dependencies:
22392239
"@types/prop-types" "*"
22402240
"@types/scheduler" "*"
@@ -2283,7 +2283,7 @@
22832283
dependencies:
22842284
axios "^0.27.2"
22852285

2286-
"@usecapsule/web-sdk@^0.29.4":
2286+
"@usecapsule/[email protected]":
22872287
version "0.29.4"
22882288
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
22892289
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==

packages/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@web3-onboard/arcana-auth": "^2.0.0",
3131
"@web3-onboard/bitget": "2.0.1",
3232
"@web3-onboard/blocto": "2.0.0",
33-
"@web3-onboard/capsule": "2.0.0",
33+
"@web3-onboard/capsule": "2.0.1",
3434
"@web3-onboard/cede-store": "^2.2.0",
3535
"@web3-onboard/coinbase": "^2.2.6",
3636
"@web3-onboard/core": "^2.21.2",
@@ -59,7 +59,7 @@
5959
"@web3-onboard/trust": "^2.0.3",
6060
"@web3-onboard/uauth": "^2.1.2",
6161
"@web3-onboard/venly": "^2.0.0",
62-
"@web3-onboard/walletconnect": "^2.5.1",
62+
"@web3-onboard/walletconnect": "^2.5.2",
6363
"@web3-onboard/web3auth": "^2.2.2",
6464
"@web3-onboard/xdefi": "^2.0.5",
6565
"@web3-onboard/zeal": "^2.0.3",

packages/demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
})
211211
const capsule = capsuleModule({
212212
environment: Environment.DEVELOPMENT,
213-
apiKey: 'ec45efe699969c2b909fdb271f9a3aa0'
213+
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
214214
})
215215
216216
const onboard = Onboard({

0 commit comments

Comments
 (0)