Skip to content

Update Capsule modalProps type #2194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/bitget": "^2.0.0",
"@web3-onboard/blocto": "^2.0.0",
"@web3-onboard/capsule": "^2.0.2",
"@web3-onboard/capsule": "^2.0.3-alpha.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/core": "^2.21.6",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type CapsuleInitOptions = {
constructorOpts?: Partial<ConstructorOpts>
appName: string
/** @optional capsule modal props */
modalProps?: Partial<CapsuleModalV2Props>
modalProps?: Partial<CapsuleModalPropsForInit>
}
```
## Usage
Expand Down
5 changes: 4 additions & 1 deletion packages/capsule/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import type { ConstructorOpts, Environment, CapsuleModalV2Props } from '@usecaps
* @property {string} [apiKey] - API key is necessary for performing transactions and wallet creation.
* This key needs to be obtained by completing a form available at https://7f4shq8oyfd.typeform.com/to/F86oVLhb.
*/

export type CapsuleModalPropsForInit = Omit<CapsuleModalV2Props,'isOpen' | 'capsule'>;

export type CapsuleInitOptions = {
environment: Environment
apiKey: string,
constructorOpts?: Partial<ConstructorOpts>
modalProps?: Partial<CapsuleModalV2Props>
modalProps?: Partial<CapsuleModalPropsForInit>
}