Skip to content

Commit 0e361c8

Browse files
authored
Merge pull request #2329 from blocknative/release/2.28.2
Release 2.28.2 (docs)
2 parents 00caaac + 7966d6c commit 0e361c8

File tree

24 files changed

+1627
-500
lines changed

24 files changed

+1627
-500
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ For full documentation, check out the README.md for each package or the [docs pa
115115
- [Frame](packages/frame/README.md)
116116
- [Frontier](packages/frontier/README.md)
117117
- [Infinity Wallet](packages/infinity-wallet/README.md)
118+
- [Keplr](packages/keplr/README.md)
118119
- [Magic](packages/magic/README.md)
119120
- [MetaMask](packages/metamask/README.md)
120121
- [MEW-Wallet](packages/mew-wallet/README.md)

docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"@safe-global/safe-apps-sdk": "^8.1.0",
5555
"@web3-onboard/bitget": "^2.1.1",
5656
"@web3-onboard/blocto": "^2.1.1",
57-
"@web3-onboard/capsule": "^2.3.0",
57+
"@web3-onboard/capsule": "^2.4.0",
5858
"@web3-onboard/cede-store": "^2.3.1",
5959
"@web3-onboard/coinbase": "^2.3.1",
60-
"@web3-onboard/core": "^2.23.0",
60+
"@web3-onboard/core": "^2.23.1-alpha.1",
6161
"@web3-onboard/dcent": "^2.2.8",
6262
"@web3-onboard/enkrypt": "^2.1.1",
6363
"@web3-onboard/finoaconnect": "^2.0.0",
@@ -67,7 +67,7 @@
6767
"@web3-onboard/gas": "^2.2.1",
6868
"@web3-onboard/gnosis": "^2.3.1",
6969
"@web3-onboard/infinity-wallet": "^2.1.1",
70-
"@web3-onboard/injected-wallets": "^2.11.1",
70+
"@web3-onboard/injected-wallets": "^2.11.3",
7171
"@web3-onboard/keepkey": "^2.3.8",
7272
"@web3-onboard/keystone": "^2.3.8",
7373
"@web3-onboard/ledger": "^2.7.1",
@@ -86,7 +86,7 @@
8686
"@web3-onboard/trust": "^2.1.1",
8787
"@web3-onboard/uauth": "^2.2.1",
8888
"@web3-onboard/venly": "^2.1.1",
89-
"@web3-onboard/walletconnect": "^2.6.1",
89+
"@web3-onboard/walletconnect": "^2.6.2",
9090
"@web3-onboard/web3auth": "^2.3.1",
9191
"@web3-onboard/xdefi": "^2.1.1",
9292
"@web3-onboard/zeal": "^2.1.1",

docs/src/lib/services/onboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ const intiOnboard = async theme => {
118118
const finoaconnect = finoaConnectModule(finoaConnectOptions)
119119

120120
const uauthOptions = {
121-
clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c',
122-
redirectUri: 'http://localhost:8080/',
121+
clientID: "a7371c4a-a61e-4fac-af48-4471c2e69e93",
122+
redirectUri: "https://onboard.blocknative.com",
123123
scope: 'openid wallet email:optional humanity_check:optional profile:optional social:optional',
124124
walletConnectProjectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5'
125125
}

docs/src/routes/docs/[...3]modules/[...1]core/+page.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,12 @@ type ConnectModalOptions = {
317317
#### i18n
318318
319319
An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in an object for the `en` locale.
320+
Currently there is built-in support for:
321+
- English (`en`) - Default
322+
- Simplified Chinese (`zh`)
320323
321324
```typescript
322-
type Locale = string // eg 'en', 'es'
325+
type Locale = string // eg 'en', 'zh', 'es'
323326
type i18nOptions = Record<Locale, i18n>
324327
```
325328

docs/yarn.lock

Lines changed: 569 additions & 250 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.28.1",
3+
"version": "2.28.2",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/capsule/README.md

Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,87 @@
11
# @web3-onboard/capsule
22

3-
## Wallet module for connecting Capsule Embedded Wallets to web3-onboard
3+
## Wallet module for connecting Capsule Embedded Wallets to Web3-Onboard
44

5-
[Capsule](https://usecapsule.com/) is a signing solution that you can use to create secure embedded MPC wallets to onboard your users with just an email or social login. Capsule wallets are recoverable, portable, and permissioned across different crypto applications, so your users don't need to create different signers or contract accounts for every app they use
5+
[Capsule](https://usecapsule.com/) is a signing solution that enables you to create secure embedded MPC wallets, allowing users to onboard with just an email or social login. Capsule wallets are recoverable, portable, and permissioned across different crypto applications, eliminating the need for users to create separate signers or contract accounts for each app.
66

7-
If you'd like to use Capsule's full functionality within the web3onboard package without any extra integration steps, you can also [request a Capsule API Key](https://usecapsule.com/api) and use it with this package.
7+
### Getting Started
88

9-
To learn more, check out the [Capsule Developer Docs](https://docs.usecapsule.com/)
9+
1. Visit the [Capsule Developer Portal](https://developer.usecapsule.com)
10+
2. Create a new project
11+
3. Generate an API key for your project
12+
4. Configure your project settings and environments
1013

11-
### Install
14+
### Installation
1215

1316
```bash
14-
yarn add @web3-onboard/capsule
15-
# OR
17+
# Using npm
1618
npm install @web3-onboard/capsule
17-
# OR
19+
20+
# Using yarn
21+
yarn add @web3-onboard/capsule
22+
23+
# Using pnpm
1824
pnpm install @web3-onboard/capsule
25+
26+
# Using bun
27+
bun add @web3-onboard/capsule
1928
```
2029

21-
## Options
22-
For configuration options, check out the [Integration Guide Docs](https://docs.usecapsule.com/integration-guide)
30+
## Configuration Options
2331

2432
```typescript
25-
type CapsuleInitOptions = {
26-
environment: string
33+
export type CapsuleInitOptions = {
34+
// The environment to connect to (PROD or BETA)
35+
environment: Environment
36+
37+
// Your Capsule API key from the developer portal
2738
apiKey: string
28-
/** @optional capsule object opts */
29-
constructorOpts?: ConstructorOpts
30-
appName: string
31-
/** @optional capsule modal props */
32-
modalProps?: CapsuleModalProps
39+
40+
// Optional: Additional constructor options for the Capsule client
41+
constructorOpts?: Partial<ConstructorOpts>
42+
43+
// Optional: Customization props for the Capsule modal
44+
modalProps?: Partial<CapsuleModalProps>
45+
46+
// Optional: Custom function to load wallet icon
47+
walletIcon?: () => Promise<string>
48+
49+
// Optional: Custom label for the wallet
50+
walletLabel?: string
3351
}
3452
```
35-
## Usage
53+
54+
## Implementation
55+
3656
```typescript
3757
import Onboard from '@web3-onboard/core'
38-
import Capsule, { Environment } from '@usecapsule/react-sdk';
58+
import Capsule, { Environment } from '@usecapsule/react-sdk'
3959
import capsuleModule from '@web3-onboard/capsule'
4060

41-
// initialize capsule
61+
// Initialize Capsule client
4262
const capsule = new Capsule(
43-
Environment.BETA, // for production, use ENVIRONMENT.PROD
44-
"YOUR_API_KEY"
45-
{ opts } // find these at docs.usecapsule.com
46-
);
63+
Environment.BETA, // Use Environment.PROD for production
64+
'YOUR_API_KEY' // Your API key from developer.usecapsule.com
65+
)
4766

48-
// initialize the module with options
67+
// Initialize the Capsule module
4968
const capsuleWallet = capsuleModule(capsule)
5069

70+
// Initialize web3-onboard
5171
const onboard = Onboard({
5272
// ... other Onboard options
5373
wallets: [
54-
capsule
74+
capsuleWallet
5575
//... other wallets
5676
]
5777
})
5878

79+
// Connect wallet
5980
const connectedWallets = await onboard.connectWallet()
6081
console.log(connectedWallets)
6182
```
6283

63-
## Build env settings (webpack config)
84+
## Additional Resources
6485

65-
You may need to add the following rule to your webpack config module
66-
in order to handle certain styling files (See the config for the
67-
Blocknative demo app):
68-
69-
```typescript
70-
{
71-
test: /\.(woff(2)?|eot|ttf|otf|svg)$/,
72-
type: 'asset/resource',
73-
generator: {
74-
filename: 'fonts/[name][ext][query]'
75-
}
76-
}
77-
```
86+
- [Capsule Documentation](https://docs.usecapsule.com/)
87+
- [Developer Portal](https://developer.usecapsule.com)

packages/capsule/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/capsule",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
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",
@@ -57,8 +57,8 @@
5757
],
5858
"dependencies": {
5959
"@tanstack/react-query": "^5.29.0",
60-
"@usecapsule/react-sdk": "^3.17.0",
61-
"@usecapsule/wagmi-v2-integration": "^2.18.0",
60+
"@usecapsule/react-sdk": "4.10.0",
61+
"@usecapsule/wagmi-v2-integration": "3.10.0",
6262
"@wagmi/chains": "^1.8.0",
6363
"@web3-onboard/common": "^2.4.1",
6464
"react-dom": "^18.2.0",

packages/core/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,12 @@ type disableFontDownload = boolean // defaults to false
296296
297297
**`i18n`**
298298
An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in a object for the `en` locale.
299+
Currently there is built-in support for:
300+
- English (`en`) - Default
301+
- Simplified Chinese (`zh`)
299302
300303
```typescript
301-
type Locale = string // eg 'en', 'es'
304+
type Locale = string // eg 'en', 'zh', 'es'
302305
type i18nOptions = Record<Locale, i18n>
303306
```
304307

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.23.0",
3+
"version": "2.23.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized 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
"keywords": [
66
"Ethereum",
@@ -96,7 +96,7 @@
9696
"nanoid": "^4.0.0",
9797
"rxjs": "^7.5.5",
9898
"svelte": "^3.49.0",
99-
"svelte-i18n": "^3.3.13",
99+
"svelte-i18n": "^4.0.1",
100100
"viem": "2.12.0"
101101
},
102102
"engines": {

0 commit comments

Comments
 (0)