Skip to content

Update Props to be Partial #2180

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 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ type CapsuleInitOptions = {
environment: string
apiKey: string
/** @optional capsule object opts */
constructorOpts?: ConstructorOpts
constructorOpts?: Partial<ConstructorOpts>
appName: string
/** @optional capsule modal props */
modalProps?: CapsuleModalV2Props
modalProps?: Partial<CapsuleModalV2Props>
}
```
## Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/capsule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/capsule",
"version": "2.0.2",
"version": "2.0.3-alpha.1",
"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.",
"module": "dist/index.js",
"browser": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/capsule/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import type { ConstructorOpts, Environment, CapsuleModalV2Props } from '@usecaps
export type CapsuleInitOptions = {
environment: Environment
apiKey: string,
constructorOpts?: ConstructorOpts
modalProps?: CapsuleModalV2Props
constructorOpts?: Partial<ConstructorOpts>
modalProps?: Partial<CapsuleModalV2Props>
}
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/bitget": "2.0.1",
"@web3-onboard/blocto": "^2.0.1",
"@web3-onboard/capsule": "2.0.2",
"@web3-onboard/capsule": "2.0.3-alpha.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/core": "^2.21.6",
"@web3-onboard/coinbase": "^2.2.7",
Expand Down
Loading