Skip to content

Commit 433a9d6

Browse files
Adamj1232ustas-ethlnbc1QWFyb24usame-algantaylorjdawson
authored
Release 2.14.0 (main) (#1331)
* Fix file extension (#1312) * fix: Remove overflow property on document element when modal closes (#1310) * fix: Remove overflow property on document element when modal closes * Update packages/core/src/views/shared/Modal.svelte * Update versions * Bump react and vue packages Co-authored-by: Adam Carpenter <[email protected]> * [core-v2.9.1-alpha.2, react-v2.3.7-alpha.2, vue-v2.2.7-alpha.2, hw-common-v2.0.4-alpha.1, all HW wallet pkgs]: Fix - Mobile scroll issue on modal close (#1317) * Refactor background scroll logic when connect modal is opened/closed * Align account select modal with connect modal * Clean up demo for small screens * Bump hw-common version * Bump hw package versions * [core, react, vue]: Fix - AC Expanded Balance Right Align & Chain ID validation and Error Message (#1324) * Add alignment to balance row within AC and bump versions * Handle duplicate chain ID within Chain Validation * Update docs links to new docs site * [core, react, vue]: Fix - Account Center container el (#1323) * Working as expected with styles * cleanup and props for AC localized to AC index * mark accountCenter.containerElement as deprecated * Add documentation around container element usage * Final cleanup for now * Update demo * yarn it * Remove unused link * Feature/with vite react (#1329) * Add working vite example * Add exclude dep * minor updates * Update versions for release * Add the Bitski extension injected provider (#1327) * Add the Bitski extension injected provider * Update packages/injected/package.json * Bump version in demo package and yarn it Co-authored-by: Adam Carpenter <[email protected]> Co-authored-by: ustas-eth <[email protected]> Co-authored-by: Aaron <[email protected]> Co-authored-by: Usame Algan <[email protected]> Co-authored-by: Taylor Dawson <[email protected]> Co-authored-by: Chris Garrett <[email protected]>
1 parent be8db13 commit 433a9d6

Some content is hidden

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

51 files changed

+10522
-119
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (wallets[0]) {
7171

7272
**Onboard v1 migration guide**
7373

74-
If you're coming from v1, we've created a [migration guide for you](https://docs.blocknative.com/onboard/migration-guide).
74+
If you're coming from v1, we've created a [migration guide for you](https://onboard.blocknative.com/docs/overview/onboard.js-migration-guide#background).
7575

7676
## Documentation
7777

examples/with-ledger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
3232

3333
## Learn More
3434

35-
To learn more about how you can use web3Onboard to integrate Ledger and other popular web3 wallets into your dApps, take a look at our documentation: [Web3Onboard Documentation](https://docs.blocknative.com/onboard) for more details.
35+
To learn more about how you can use web3Onboard to integrate Ledger and other popular web3 wallets into your dApps, take a look at our documentation: [Web3Onboard Documentation](https://onboard.blocknative.com/docs/overview/introduction#features) for more details.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

examples/with-vite-react/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# with-vite-react
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/blocknative.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Web3-Onboard + React + TS</title>
8+
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "with-vite-react",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@web3-onboard/coinbase": "^2.1.3",
13+
"@web3-onboard/dcent": "^2.2.1",
14+
"@web3-onboard/fortmatic": "^2.0.14",
15+
"@web3-onboard/gnosis": "^2.1.3",
16+
"@web3-onboard/injected-wallets": "^2.2.4",
17+
"@web3-onboard/keepkey": "^2.3.1",
18+
"@web3-onboard/keystone": "^2.3.1",
19+
"@web3-onboard/ledger": "^2.3.1",
20+
"@web3-onboard/magic": "^2.1.3",
21+
"@web3-onboard/mew": "^2.1.3",
22+
"@web3-onboard/portis": "^2.1.3",
23+
"@web3-onboard/react": "^2.3.5",
24+
"@web3-onboard/sequence": "^2.0.2",
25+
"@web3-onboard/tallyho": "^2.0.1",
26+
"@web3-onboard/torus": "^2.1.3",
27+
"@web3-onboard/trezor": "^2.3.1",
28+
"@web3-onboard/walletconnect": "^2.1.3",
29+
"react": "^18.2.0",
30+
"react-dom": "^18.2.0"
31+
},
32+
"devDependencies": {
33+
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
34+
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
35+
"@types/react": "^18.0.17",
36+
"@types/react-dom": "^18.0.6",
37+
"@vitejs/plugin-react": "^2.1.0",
38+
"buffer": "^6.0.3",
39+
"node-stdlib-browser": "^1.2.0",
40+
"typescript": "^4.6.4",
41+
"vite": "^3.1.8",
42+
"vite-plugin-node-stdlib-browser": "^0.1.1"
43+
}
44+
}
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#root {
2+
max-width: 1280px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
text-align: center;
6+
}
7+
8+
.logo {
9+
height: 6em;
10+
padding: 1.5em;
11+
will-change: filter;
12+
}
13+
.logo:hover {
14+
filter: drop-shadow(0 0 2em #646cffaa);
15+
}
16+
.logo.react:hover {
17+
filter: drop-shadow(0 0 2em #61dafbaa);
18+
}
19+
20+
.logo.blocknative:hover {
21+
filter: drop-shadow(0 0 2em #5e93efaa);
22+
}
23+
24+
@keyframes logo-spin {
25+
from {
26+
transform: rotate(0deg);
27+
}
28+
to {
29+
transform: rotate(360deg);
30+
}
31+
}
32+
33+
@media (prefers-reduced-motion: no-preference) {
34+
a:nth-of-type(2) .logo {
35+
animation: logo-spin infinite 20s linear;
36+
}
37+
}
38+
39+
.card {
40+
padding: 2em;
41+
}
42+
43+
.read-the-docs {
44+
color: #888;
45+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { useState } from 'react'
2+
import reactLogo from './assets/react.svg'
3+
import './App.css'
4+
5+
import web3Onboard from './web3-onboard'
6+
import { useConnectWallet } from '@web3-onboard/react'
7+
8+
function App() {
9+
const [count, setCount] = useState(0)
10+
11+
const [{ wallet, connecting }, connect, disconnect] = useConnectWallet()
12+
13+
return (
14+
<div className="App">
15+
<div>
16+
<a href="https://onboard.blocknative.com" target="_blank">
17+
<img
18+
src="/blocknative.svg"
19+
className="logo blocknative"
20+
alt="Blocknative logo"
21+
/>
22+
</a>
23+
<a href="https://vitejs.dev" target="_blank">
24+
<img src="/vite.svg" className="logo" alt="Vite logo" />
25+
</a>
26+
<a href="https://reactjs.org" target="_blank">
27+
<img src={reactLogo} className="logo react" alt="React logo" />
28+
</a>
29+
</div>
30+
<h1>Web3-Onboard + Vite + React</h1>
31+
<div className="card">
32+
<button onClick={() => connect()}>connect</button>
33+
<p>
34+
Edit <code>src/App.tsx</code> and save to test HMR
35+
</p>
36+
</div>
37+
<p className="read-the-docs">
38+
Click on the Blocknative, Vite and React logos to learn more
39+
</p>
40+
</div>
41+
)
42+
}
43+
44+
export default App

0 commit comments

Comments
 (0)