Skip to content

Commit 779e57c

Browse files
Adamj1232taylorjdawsongesquincaBrentablymhchaudhry3
authored
Release 2.20.3 (#1554)
* update root path (#1543) * Add XDEFI module and injected to docs site (#1544) * Add xdefi to docs * Add xdefi module to docs * Add xdefi package to docs onboard * Add to injected wallets list * Feature: "I don't have a wallet" flow + Progress-bar fixup (#1535) * Link working and styled * Progress bar work * Cleanup progressbar code * Remove single quote breaking view * Revert TP testing code * add transaction preview graphic * add transaction preview install code snippet * move md code snippets - update imports * add transaction preview section to landing page * update theming code snippet * update hero section install code * update account center graphic * update hero w3o graphic * update account center svg * Update README.md (#1547) Yeah maybe this needs more thorough changes throughout the docs but I was caught up on this for a minute, and this will help * move transaction preview section to top * update link url * Added XDEFI to readme * Add theming docs, refine core init options, api actions and code chunks (#1548) * Add theming docs, still needs refinement * More docs * Add theming video * More docs * Update layout and add copy to some code chunks * Add dividers for better visibility between options and copy to code blocks where useful * Reorder Theming docs layout * Add note about ethers v6 usage * edit theming page - add css variables table - edit theme descriptions - re-org existing content * Update docs/src/lib/components/examples/connect-wallet/ReactConnectWallet.md * Update theming tool to default to custom --------- Co-authored-by: Gustavo Esquinca <g.esq.ca@gmail.com> * Update docs/src/lib/components/code-snippet/theming-code.md Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> * Bump versions for release * Add Infinity Wallet Connector (#1540) * Add Infinity Wallet Connector * Update packages/infinity-wallet/package.json * Update packages/infinity-wallet/src/index.ts * Remove yarn lock from infin package * Update packages/demo/package.json * Add inifinity to docs * Reorder wallets * Update docs title * Bump innjected package version --------- Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> * [walletconnect-2.3.0-alpha.3] - Feat: Walletconnect URI handler + bump wc package version (#1552) * accept handleUri prop * Update docs * Rename wc prop to handleUri * Bump wc pakcage version for walletconnect/ethereum-provider * merge in dev * Revert unintended change * Update prop in docs * Cleanup semicolon * Yarn it! * Bump undici from 5.10.0 to 5.19.1 in /examples/with-sveltekit (#1532) Bumps [undici](https://github.com/nodejs/undici) from 5.10.0 to 5.19.1. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.10.0...v5.19.1) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> * Update fortmatic docs --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com> Co-authored-by: Gustavo Esquinca <g.esq.ca@gmail.com> Co-authored-by: Brent <46073594+Brentably@users.noreply.github.com> Co-authored-by: mhchaudhry3 <mobeen@blocknative.com> Co-authored-by: mhchaudhry3 <102989386+mhchaudhry3@users.noreply.github.com> Co-authored-by: Aaron <53439560+arons1@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 8bf404a commit 779e57c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2301
-1433
lines changed

.circleci/config.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ aliases:
3333
| grep version \
3434
| head -1 \
3535
| awk -F: '{ print $2 }' \
36-
| sed 's/[",]//g');
36+
| sed 's/[",]//g');
3737
if [[ $PACKAGE_VERSION =~ "-alpha" ]];
3838
then
3939
echo true
@@ -50,7 +50,7 @@ aliases:
5050
| grep version \
5151
| head -1 \
5252
| awk -F: '{ print $2 }' \
53-
| sed 's/[",]//g');
53+
| sed 's/[",]//g');
5454
if [[ $PACKAGE_VERSION =~ "-alpha" ]];
5555
then
5656
echo true
@@ -363,6 +363,12 @@ jobs:
363363
working_directory: ~/web3-onboard-monorepo/packages/xdefi
364364
steps:
365365
- node-build-steps
366+
build-infinity-wallet:
367+
docker:
368+
- image: cimg/node:16.13.1
369+
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
370+
steps:
371+
- node-build-steps
366372

367373
# Build staging/Alpha releases
368374
build-staging-core:
@@ -563,6 +569,12 @@ jobs:
563569
working_directory: ~/web3-onboard-monorepo/packages/xdefi
564570
steps:
565571
- node-staging-build-steps
572+
build-staging-infinity-wallet:
573+
docker:
574+
- image: cimg/node:16.13.1
575+
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
576+
steps:
577+
- node-staging-build-steps
566578

567579
workflows:
568580
version: 2
@@ -765,3 +777,9 @@ workflows:
765777
<<: *deploy_production_filters
766778
- build-staging-xdefi:
767779
<<: *deploy_staging_filters
780+
infinity-wallet:
781+
jobs:
782+
- build-infinity-wallet:
783+
<<: *deploy_production_filters
784+
- build-staging-infinity-wallet:
785+
<<: *deploy_staging_filters

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Generate the sitemap
5555
uses: cicirello/generate-sitemap@v1
5656
with:
57-
path-to-root: docs
57+
path-to-root: './docs/build'
5858
base-url-path: https://www.onboard.blocknative.com/
5959

6060
- name: Peak at folder contents

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ For full documentation, check out the README.md for each package or the [docs pa
101101
- [Enkrypt](packages/enkrypt/README.md)
102102
- [Unstoppable Domains](packages/uauth/README.md)
103103
- [Frontier](packages/frontier/README.md)
104+
- [XDEFI](packages/xdefi/README.md)
105+
- [Infinity Wallet](packages/infinity-wallet/README.md)
104106

105107
**Hardware Wallets**
106108

docs/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@
5656
"dependencies": {
5757
"bnc-sdk": "^4.6.6",
5858
"@web3-onboard/coinbase": "^2.1.4",
59-
"@web3-onboard/core": "^2.15.2-alpha.1",
59+
"@web3-onboard/core": "^2.15.3-alpha.1",
6060
"@web3-onboard/dcent": "^2.2.3",
6161
"@web3-onboard/enkrypt": "^2.0.0",
6262
"@web3-onboard/fortmatic": "^2.0.14",
6363
"@web3-onboard/gas": "^2.1.4",
6464
"@web3-onboard/gnosis": "^2.1.6",
65-
"@web3-onboard/injected-wallets": "^2.8.0-alpha.1",
65+
"@web3-onboard/infinity-wallet": "^2.0.0",
66+
"@web3-onboard/injected-wallets": "^2.8.1",
6667
"@web3-onboard/keepkey": "^2.3.3",
6768
"@web3-onboard/keystone": "^2.3.3",
6869
"@web3-onboard/ledger": "^2.4.2",
@@ -72,12 +73,13 @@
7273
"@web3-onboard/sequence": "^2.0.4",
7374
"@web3-onboard/tallyho": "^2.0.1",
7475
"@web3-onboard/torus": "^2.2.0",
75-
"@web3-onboard/transaction-preview": "^2.0.4-alpha.1",
76+
"@web3-onboard/transaction-preview": "^2.0.4",
7677
"@web3-onboard/trezor": "^2.3.3",
7778
"@web3-onboard/trust": "^2.0.0",
7879
"@web3-onboard/uauth": "^2.0.1",
7980
"@web3-onboard/walletconnect": "^2.2.1",
8081
"@web3-onboard/web3auth": "^2.1.4",
82+
"@web3-onboard/xdefi": "^2.0.0",
8183
"animejs": "^3.2.1",
8284
"ethers": "^5.7.0"
8385
}

docs/src/lib/components/ConnectWalletButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
if (document.location.href.includes('theming-tool')) {
2323
onboard = await getOnboard('default')
2424
} else {
25-
onboard = await getOnboard('system')
25+
onboard = await getOnboard()
2626
}
2727
}
2828
onboard.state.select('wallets').subscribe((wallets) => {

docs/src/lib/components/FeaturesSection.svelte

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
import FrameworksGraphic from './svg/frameworks-group.svelte'
1010
import NetworksGraphic from './svg/networks-group.svelte'
1111
import NotifyGraphic from './svg/notify-group.svelte'
12-
import AccountCenterGraphic from './svg/account-center-group.svelte'
12+
import AccountCenterGraphic from './svg/account-center-graphic.svg'
1313
import WalletsGraphic from './svg/wallet-row.svg'
14+
import TransactionPreviewGraphic from './svg/transaction-preview-graphic.svg'
1415
15-
import InstallCode from './install-code.md'
16+
import InstallCode from './code-snippet/install-code.md'
17+
import InstallCodeTp from './code-snippet/install-code-tp.md'
1618
</script>
1719

1820
<section class="features-a">
@@ -63,7 +65,6 @@
6365
</Container>
6466
</section>
6567

66-
<!-- Features Section -->
6768
<section class="features-c">
6869
<Container>
6970
<div class="flexbox" style:padding={'4rem 1rem'}>
@@ -81,8 +82,43 @@
8182
</div>
8283
</Container>
8384
<ScrollContainer>
84-
<img src={WalletsGraphic} alt="onboard connect wallets" style="margin: 0 auto; max-width: none;">
85+
<img
86+
src={WalletsGraphic}
87+
alt="onboard connect wallets"
88+
style="margin: 0 auto; max-width: none;"
89+
/>
8590
</ScrollContainer>
91+
<Container>
92+
<div class="flexbox">
93+
<div>
94+
<img
95+
src={TransactionPreviewGraphic}
96+
alt="Transaction Preview"
97+
style="margin: 0 auto; max-width: none;"
98+
/>
99+
</div>
100+
<div>
101+
<TextBlock
102+
title={'Transaction Preview'}
103+
subtitle={'Preview transactions to see net-balance changes and gas spent'}
104+
text={'Reduce transaction anxiety by allowing users to easily preview expected net-balance changes for their connected wallets before authorizing transactions.'}
105+
>
106+
<Flexbox --wrap="wrap">
107+
<Button href="/docs/modules/transaction-preview" buttonStyle={'link'}
108+
>{'Learn More'}</Button
109+
>
110+
<Button
111+
href="/docs/modules/transaction-preview#try-transaction-preview"
112+
buttonStyle={'link'}>{'View Demo'}</Button
113+
>
114+
</Flexbox>
115+
<div class="prose">
116+
<InstallCodeTp />
117+
</div>
118+
</TextBlock>
119+
</div>
120+
</div>
121+
</Container>
86122
<Container>
87123
<div class="flexbox">
88124
<TextBlock
@@ -100,7 +136,7 @@
100136
</Container>
101137
<Container>
102138
<div class="flexbox">
103-
<div><AccountCenterGraphic /></div>
139+
<div><img src={AccountCenterGraphic} alt="" /></div>
104140
<div>
105141
<TextBlock
106142
title={'Account Center'}

docs/src/lib/components/GettingStarted.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import GettingStartedGuide from './getting-started-guide.md'
2+
import GettingStartedGuide from './code-snippet/getting-started-guide.md'
33
</script>
44

55
<section id="get-started">

docs/src/lib/components/HeroSection.svelte

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<script>
22
import Button from './base/Button.svelte'
33
import Flexbox from './base/Flexbox.svelte'
4-
import CodeBlock from './base/CodeBlock.svelte'
5-
4+
import InstallCode from './code-snippet/install-code.md'
65
import heroBg from './svg/hero-bg.svg'
76
import heroImg from './svg/hero-img.svg'
87
</script>
98

109
<section style="background-image: url({heroBg});">
1110
<div class="textblock">
12-
<div class="title">{"Web3-Onboard"}</div>
11+
<div class="title">{'Web3-Onboard'}</div>
1312
<div class="text">
14-
{"Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more."}
13+
{'Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more.'}
1514
</div>
16-
<div>
17-
<CodeBlock>
18-
{'npm i @web3-onboard/core @web3-onboard/injected-wallets'}
19-
</CodeBlock>
15+
<div class="prose">
16+
<InstallCode />
2017
</div>
2118
<Flexbox --gap="1.5rem" --direction="row" --wrap="wrap">
2219
<Button href="#get-started" label={'Get Started'} />

docs/src/lib/components/ThemeCustomizer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
let wallets$
99
1010
const themes = ['system', 'default', 'light', 'dark', 'custom']
11-
let selectedTheme = 'system'
11+
let selectedTheme = 'custom'
1212
1313
let webURL = ''
1414
let iframeUsed = false

docs/src/lib/components/ThemingSection.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import TextBlock from './TextBlock.svelte'
66
import Container from './Container.svelte'
77
8-
import ThemingCode from './theming-code.md'
8+
import ThemingCode from './code-snippet/theming-code.md'
99
import ThemingGraphic from './svg/themes-example-carousel.svg'
1010
</script>
1111

@@ -28,7 +28,7 @@
2828
</div>
2929
</Container>
3030
<ScrollContainer style={'padding: 0 2rem'}>
31-
<img class="carousel-img" src={ThemingGraphic} alt="onboard connect wallet themes" >
31+
<img class="carousel-img" src={ThemingGraphic} alt="onboard connect wallet themes" />
3232
</ScrollContainer>
3333
</section>
3434

docs/src/lib/components/getting-started-guide.md renamed to docs/src/lib/components/code-snippet/getting-started-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ console.log(wallets)
4040
if (wallets[0]) {
4141
// create an ethers provider with the last connected wallet provider
4242
const ethersProvider = new ethers.providers.Web3Provider(wallets[0].provider, 'any')
43+
// if using ethers v6 this is:
44+
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
4345

4446
const signer = ethersProvider.getSigner()
4547

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Tabs values={['npm', 'yarn']}>
2+
<TabPanel value="npm">
3+
4+
```sh copy
5+
npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview
6+
```
7+
8+
</TabPanel>
9+
<TabPanel value="yarn">
10+
11+
```sh copy
12+
yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview
13+
```
14+
15+
</TabPanel>
16+
</Tabs>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```css copy
2+
:root {
3+
--w3o-background-color: #1a1d26;
4+
--w3o-foreground-color: #242835;
5+
--w3o-text-color: #eff1fc;
6+
--w3o-border-color: #33394b;
7+
--w3o-action-color: #929bed;
8+
--w3o-border-radius: 16px;
9+
}
10+
```

docs/src/lib/components/examples/connect-wallet/ReactConnectWallet.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Import the libraries and any wallets you would like to use. For this example, we
55
```js title="App.tsx"|copy
66
import { Web3OnboardProvider, init } from '@web3-onboard/react'
77
import injectedModule from '@web3-onboard/injected-wallets'
8+
import infinityWalletModule from '@web3-onboard/infinity-wallet'
89
import fortmaticModule from '@web3-onboard/fortmatic'
910
import gnosisModule from '@web3-onboard/gnosis'
10-
import injectedModule from '@web3-onboard/injected-wallets'
1111
import keepkeyModule from '@web3-onboard/keepkey'
1212
import keystoneModule from '@web3-onboard/keystone'
1313
import ledgerModule from '@web3-onboard/ledger'
@@ -39,6 +39,7 @@ const fortmatic = fortmaticModule({
3939
apiKey: 'apiKey'
4040
})
4141

42+
const infinityWallet = infinityWalletModule()
4243
const ledger = ledgerModule()
4344
const keystone = keystoneModule()
4445
const keepkey = keepkeyModule()
@@ -63,6 +64,7 @@ const enkrypt = enkryptModule()
6364
const mewWallet = mewWalletModule()
6465

6566
const wallets = [
67+
infinityWallet,
6668
keepkey,
6769
sequence,
6870
injected,
@@ -166,6 +168,8 @@ export default function ConnectWallet() {
166168
// If the wallet has a provider than the wallet is connected
167169
if (wallet?.provider) {
168170
setProvider(new ethers.providers.Web3Provider(wallet.provider, 'any'))
171+
// if using ethers v6 this is:
172+
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
169173
}
170174
}, [wallet])
171175

@@ -210,6 +214,8 @@ export default function ConnectWallet() {
210214
// If the wallet has a provider than the wallet is connected
211215
if (wallet?.provider) {
212216
setProvider(new ethers.providers.Web3Provider(wallet.provider, 'any'))
217+
// if using ethers v6 this is:
218+
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
213219
}
214220
}, [wallet])
215221

docs/src/lib/components/examples/connect-wallet/SvelteConnectWallet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Import the libraries and any wallets you would like to use. For this example, we
55
```js title="onboard.js"|copy
66
import Onboard from '@web3-onboard/core'
77
import injectedModule from '@web3-onboard/injected-wallets'
8+
import infinityWalletModule from '@web3-onboard/infinity-wallet'
89
import fortmaticModule from '@web3-onboard/fortmatic'
910
import gnosisModule from '@web3-onboard/gnosis'
10-
import injectedModule from '@web3-onboard/injected-wallets'
1111
import keepkeyModule from '@web3-onboard/keepkey'
1212
import keystoneModule from '@web3-onboard/keystone'
1313
import ledgerModule from '@web3-onboard/ledger'
@@ -39,6 +39,7 @@ const fortmatic = fortmaticModule({
3939
apiKey: 'apiKey'
4040
})
4141

42+
const infinityWallet = infinityWalletModule()
4243
const ledger = ledgerModule()
4344
const keystone = keystoneModule()
4445
const keepkey = keepkeyModule()
@@ -63,6 +64,7 @@ const enkrypt = enkryptModule()
6364
const mewWallet = mewWalletModule()
6465

6566
const wallets = [
67+
infinityWallet,
6668
keepkey,
6769
sequence,
6870
injected,

0 commit comments

Comments
 (0)