Skip to content
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 @@
"type": "module",
"dependencies": {
"@web3-onboard/coinbase": "^2.2.1",
"@web3-onboard/core": "^2.16.0",
"@web3-onboard/core": "^2.16.1-alpha.2",
"@web3-onboard/dcent": "^2.2.4",
"@web3-onboard/enkrypt": "^2.0.1",
"@web3-onboard/fortmatic": "^2.0.16",
Expand Down
6 changes: 6 additions & 0 deletions docs/src/routes/docs/[...3]modules/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ type ConnectModalOptions = {
* Defaults to `https://ethereum.org/en/wallets/find-wallet/#main-content`
*/
iDontHaveAWalletLink?: string
/**
* Customize the link for the `Where's My Wallet` info pop up shown on the
* select wallet modal.
* Defaults to `https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting`
*/
wheresMyWalletLink?: string
/**
* Define support for Unstoppable Domains resolutions
* after a user connects. Similar to ens, uns can be used for users who
Expand Down
2 changes: 1 addition & 1 deletion examples/with-sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.5.10",
"@web3-onboard/core": "^2.15.6-alpha.3",
"@web3-onboard/core": "^2.16.1-alpha.2",
"@web3-onboard/injected-wallets": "^2.8.3-alpha.1",
"@web3-onboard/walletconnect": "^2.3.3-alpha.1",
"buffer": "^6.0.3"
Expand Down
6 changes: 6 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ type ConnectModalOptions = {
* Defaults to `https://ethereum.org/en/wallets/find-wallet/#main-content`
*/
iDontHaveAWalletLink?: string
/**
* Customize the link for the `Where's My Wallet` info pop up shown on the
* select wallet modal.
* Defaults to `https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting`
*/
wheresMyWalletLink?: string
/**
* Define support for Unstoppable Domains resolutions
* after a user connects. Similar to ens, uns can be used for users who
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.16.1-alpha.1",
"version": "2.16.1-alpha.2",
"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.",
"keywords": [
"Ethereum",
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ export type ConnectModalOptions = {
* Defaults to `https://ethereum.org/en/wallets/find-wallet/#main-content`
*/
iDontHaveAWalletLink?: string
/**
* Customize the link for the `Where's My Wallet` info pop up shown on the
* select wallet modal.
* Defaults to `https://www.blocknative.com/blog/
* metamask-wont-connect-web3-wallet-troubleshooting`
*/
wheresMyWalletLink?: string
/**
* Define support for Unstoppable Domains resolutions
* after a user connects. Similar to ens, uns can be used for users who
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const connectModalOptions = Joi.object({
autoConnectLastWallet: Joi.boolean(),
autoConnectAllPreviousWallet: Joi.boolean(),
iDontHaveAWalletLink: Joi.string(),
wheresMyWalletLink: Joi.string(),
disableUDResolution: Joi.boolean()
})

Expand Down
29 changes: 28 additions & 1 deletion packages/core/src/views/connect/SelectingWallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
export let connectingErrorMessage: string

let windowWidth: number
const { connect } = state.get()

function checkConnected(label: string) {
const { wallets } = state.get()
return !!wallets.find(wallet => wallet.label === label)
}

const wheresMyWalletDefault =
'https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting'
</script>

<style>
Expand All @@ -41,13 +45,23 @@
margin: 1rem 1rem 0;
}

.notice-container {
flex: 0 0 100%;
margin-top: 0.75rem;
}

@media all and (min-width: 768px) {
.wallets-container {
display: grid;
grid-template-columns: repeat(var(--onboard-wallet-columns, 2), 1fr);
padding: 1rem;
padding: 1rem 1rem 0 1rem;
border: none;
}
.notice-container {
grid-column: span 2;
margin-bottom: 1rem;
margin-top: 0;
}
}
</style>

Expand All @@ -73,5 +87,18 @@
connectingWalletLabel !== wallet.label}
/>
{/each}
<div class="notice-container">
<Warning>
<div>
<div>Why don't I see my Wallet?</div>
<a
class="link pointer"
href={connect.wheresMyWalletLink || wheresMyWalletDefault}
target="_blank"
rel="noreferrer noopener">Click here to learn more</a
>
</div>
</Warning>
</div>
</div>
</div>
17 changes: 7 additions & 10 deletions packages/core/src/views/shared/Warning.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,30 @@

<style>
.container {
padding: var(--onboard-spacing-5, var(--spacing-5));
gap: 1rem;
Copy link
Contributor

@Adamj1232 Adamj1232 Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier?

padding: 0.75rem;
color: var(--onboard-warning-700, var(--warning-700));
font-size: var(--onboard-font-size-7, var(--font-size-7));
line-height: 16px;
border: 1px solid var(--onboard-warning-400, var(--warning-400));
background: var(--onboard-warning-100, var(--warning-100));
margin: 0;
border-radius: 12px;
}
.icon {
color: var(--onboard-warning-700, var(--warning-700));
width: 1rem;
height: 1rem;
margin-left: var(--onboard-spacing-5, var(--spacing-5));
}
p {
margin: 0;
width: fit-content;
flex: 0 0 auto;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier?

}
</style>

<div in:fade class="container flex justify-between">
<p>
<div>
<slot />
</p>
</div>

<div class="icon">
{@html infoIcon}
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"webpack-dev-server": "4.7.4"
},
"dependencies": {
"@web3-onboard/core": "^2.16.1-alpha.1",
"@web3-onboard/core": "^2.16.1-alpha.2",
"@web3-onboard/coinbase": "^2.2.1",
"@web3-onboard/transaction-preview": "^2.0.5",
"@web3-onboard/dcent": "^2.2.4",
Expand Down
8 changes: 3 additions & 5 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
const walletConnect = walletConnectModule({
connectFirstChainId: true,
version: 2,
handleUri: (uri) => console.log(uri),
handleUri: uri => console.log(uri),
projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5',
qrcodeModalOptions: {
mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar']
Expand Down Expand Up @@ -329,10 +329,8 @@
provider => provider.label === 'Unstoppable'
)
if (unstoppableUser) console.log(unstoppableUser.instance.user)
const wc = wallet.find(
provider => provider.label === 'WalletConnect'
)
if(wc) console.log(wc)
const wc = wallet.find(provider => provider.label === 'WalletConnect')
if (wc) console.log(wc)
})

const signTransactionMessage = async provider => {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/react",
"version": "2.7.0",
"version": "2.7.1-alpha.1",
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. 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, 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.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/core": "^2.16.0",
"@web3-onboard/core": "^2.16.1-alpha.2",
"@web3-onboard/common": "^2.3.0",
"use-sync-external-store": "1.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/vue",
"version": "2.6.0",
"version": "2.6.1-alpha.1",
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. 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, 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.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@vueuse/core": "^8.4.2",
"@vueuse/rxjs": "^8.2.0",
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/core": "^2.16.0",
"@web3-onboard/core": "^2.16.1-alpha.2",
"vue-demi": "^0.12.4"
},
"peerDependencies": {
Expand Down