Skip to content

Commit a4767aa

Browse files
authored
Merge pull request #1636 from blocknative/release/2.21.2
* Add styling to hidescrollbar across browsers (#1628) * Bump Joi to latest version and update typing of Joi validate (#1633) * Bump joi to latest version and update usage * Revert change to ens validation * Prettier magic validation * Prettier uauth validation * Bump versions for release * Yarn docs to latest alphas
2 parents a1fd489 + c633cf0 commit a4767aa

Some content is hidden

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

45 files changed

+403
-281
lines changed

docs/package.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"check": "svelte-check --tsconfig ./tsconfig.json",
1212
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
1313
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
14-
"format": "prettier --write --plugin-search-dir=. ."
14+
"format": "prettier --write --plugin-search-dir=. .",
15+
"update-w3o-to-prod": "yarn add '@web3-onboard/coinbase@next' '@web3-onboard/core@next' '@web3-onboard/dcent@next' '@web3-onboard/enkrypt@next' '@web3-onboard/fortmatic@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/magic@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/taho@next' '@web3-onboard/torus@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/uauth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/web3auth@next' '@web3-onboard/xdefi@next'"
1516
},
1617
"devDependencies": {
1718
"@algolia/client-search": "^4.14.2",
@@ -54,31 +55,31 @@
5455
},
5556
"type": "module",
5657
"dependencies": {
57-
"@web3-onboard/coinbase": "^2.2.1",
58-
"@web3-onboard/core": "^2.16.1",
59-
"@web3-onboard/dcent": "^2.2.4",
60-
"@web3-onboard/enkrypt": "^2.0.1",
61-
"@web3-onboard/fortmatic": "^2.0.16",
62-
"@web3-onboard/gas": "^2.1.5",
63-
"@web3-onboard/gnosis": "^2.1.7",
64-
"@web3-onboard/infinity-wallet": "^2.0.1",
65-
"@web3-onboard/injected-wallets": "^2.8.3",
66-
"@web3-onboard/keepkey": "^2.3.4",
67-
"@web3-onboard/keystone": "^2.3.4",
68-
"@web3-onboard/ledger": "^2.4.3",
69-
"@web3-onboard/magic": "^2.1.4",
70-
"@web3-onboard/mew-wallet": "^2.0.1",
71-
"@web3-onboard/portis": "^2.1.4",
72-
"@web3-onboard/sequence": "^2.0.5",
73-
"@web3-onboard/taho": "^2.0.1",
74-
"@web3-onboard/torus": "^2.2.2",
75-
"@web3-onboard/transaction-preview": "^2.0.5",
76-
"@web3-onboard/trezor": "^2.3.4",
77-
"@web3-onboard/trust": "^2.0.1",
78-
"@web3-onboard/uauth": "^2.0.2",
79-
"@web3-onboard/walletconnect": "^2.3.4",
80-
"@web3-onboard/web3auth": "^2.2.0",
81-
"@web3-onboard/xdefi": "^2.0.1",
58+
"@web3-onboard/coinbase": "^2.2.2-alpha.1",
59+
"@web3-onboard/core": "^2.16.2-alpha.2",
60+
"@web3-onboard/dcent": "^2.2.5-alpha.1",
61+
"@web3-onboard/enkrypt": "^2.0.2-alpha.1",
62+
"@web3-onboard/fortmatic": "^2.0.17-alpha.1",
63+
"@web3-onboard/gas": "^2.1.6-alpha.1",
64+
"@web3-onboard/gnosis": "^2.1.8-alpha.1",
65+
"@web3-onboard/infinity-wallet": "^2.0.2-alpha.1",
66+
"@web3-onboard/injected-wallets": "^2.8.4-alpha.1",
67+
"@web3-onboard/keepkey": "^2.3.5-alpha.1",
68+
"@web3-onboard/keystone": "^2.3.5-alpha.1",
69+
"@web3-onboard/ledger": "^2.4.4-alpha.1",
70+
"@web3-onboard/magic": "^2.1.5-alpha.1",
71+
"@web3-onboard/mew-wallet": "^2.0.2-alpha.1",
72+
"@web3-onboard/portis": "^2.1.5-alpha.1",
73+
"@web3-onboard/sequence": "^2.0.6-alpha.1",
74+
"@web3-onboard/taho": "^2.0.2-alpha.1",
75+
"@web3-onboard/torus": "^2.2.3-alpha.1",
76+
"@web3-onboard/transaction-preview": "^2.0.6-alpha.1",
77+
"@web3-onboard/trezor": "^2.3.5-alpha.1",
78+
"@web3-onboard/trust": "^2.0.2-alpha.1",
79+
"@web3-onboard/uauth": "^2.0.3-alpha.1",
80+
"@web3-onboard/walletconnect": "^2.3.5-alpha.1",
81+
"@web3-onboard/web3auth": "^2.2.1-alpha.1",
82+
"@web3-onboard/xdefi": "^2.0.2-alpha.1",
8283
"animejs": "^3.2.1",
8384
"bnc-sdk": "^4.6.6",
8485
"ethers": "^5.7.0"

docs/yarn.lock

Lines changed: 193 additions & 133 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-onboard-monorepo",
3-
"version": "2.21.1",
3+
"version": "2.21.2",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/coinbase/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/coinbase",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Coinbase 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.",
55
"keywords": [
66
"Ethereum",
@@ -59,6 +59,6 @@
5959
},
6060
"dependencies": {
6161
"@coinbase/wallet-sdk": "^3.6.0",
62-
"@web3-onboard/common": "^2.3.0"
62+
"@web3-onboard/common": "^2.3.1"
6363
}
6464
}

packages/common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/common",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "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.",
55
"keywords": [
66
"Ethereum",
@@ -75,6 +75,6 @@
7575
"dependencies": {
7676
"bignumber.js": "^9.1.0",
7777
"ethers": "5.5.4",
78-
"joi": "17.8.1"
78+
"joi": "17.9.1"
7979
}
8080
}

packages/common/src/validation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import Joi from 'joi'
22

33
export type ValidateReturn = Joi.ValidationResult | null
44

5-
export function validate(validator: Joi.Schema, data: unknown): ValidateReturn {
5+
export function validate(
6+
validator: Joi.AnySchema<any>,
7+
data: unknown
8+
): ValidateReturn {
69
const result = validator.validate(data)
710
return result.error ? result : null
811
}

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.16.1",
3+
"version": "2.16.2",
44
"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.",
55
"keywords": [
66
"Ethereum",
@@ -85,13 +85,13 @@
8585
},
8686
"dependencies": {
8787
"@unstoppabledomains/resolution": "^8.0",
88-
"@web3-onboard/common": "^2.3.0",
88+
"@web3-onboard/common": "^2.3.1",
8989
"bignumber.js": "^9.0.0",
9090
"bnc-sdk": "^4.6.7",
9191
"bowser": "^2.11.0",
9292
"ethers": "5.5.3",
9393
"eventemitter3": "^4.0.7",
94-
"joi": "17.8.1",
94+
"joi": "17.9.1",
9595
"lodash.merge": "^4.6.2",
9696
"lodash.partition": "^4.6.0",
9797
"nanoid": "^4.0.0",

packages/core/src/views/account-center/WalletRow.svelte

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
): string {
3232
const [asset] = Object.keys(balance)
3333
return `${
34-
balance[asset].length > 8 ? balance[asset].slice(0, 8) : balance[asset]
34+
balance[asset].length > 7 ? balance[asset].slice(0, 7) : balance[asset]
3535
} ${asset}`
3636
}
3737
@@ -122,20 +122,30 @@
122122
.address-domain {
123123
flex: 1 0 auto;
124124
max-width: 70%;
125-
overflow: scroll;
126125
white-space: nowrap;
127126
font-weight: 600;
128127
color: var(--account-center-maximized-address-color, inherit);
128+
overflow: scroll;
129+
scrollbar-width: none;
130+
-ms-overflow-style: none;
131+
}
132+
.address-domain::-webkit-scrollbar {
133+
display: none;
129134
}
130135
131136
.balance {
132137
flex: 1 1 auto;
133138
max-width: 70%;
134-
overflow: scroll;
135139
white-space: nowrap;
136140
text-align: end;
137141
opacity: 0.4;
138142
transition: color 150ms ease-in-out, background-color 150ms ease-in-out;
143+
overflow: scroll;
144+
scrollbar-width: none;
145+
-ms-overflow-style: none;
146+
}
147+
.balance::-webkit-scrollbar {
148+
display: none;
139149
}
140150
141151
.elipsis-container {
@@ -233,7 +243,7 @@
233243
{/if}
234244
</div>
235245

236-
<!-- ELIPSIS -->
246+
<!-- ELLIPSIS -->
237247
<div class="elipsis-container" class:active={showMenu === address}>
238248
<div
239249
on:click|stopPropagation={() =>

packages/dcent/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/dcent",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "D'CENT 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.",
55
"keywords": [
66
"Ethereum",
@@ -56,8 +56,8 @@
5656
"typescript": "^4.5.5"
5757
},
5858
"dependencies": {
59-
"@web3-onboard/common": "^2.3.0",
60-
"@web3-onboard/hw-common": "^2.2.0",
59+
"@web3-onboard/common": "^2.3.1",
60+
"@web3-onboard/hw-common": "^2.2.1",
6161
"@ethereumjs/tx": "^3.4.0",
6262
"@ethersproject/providers": "^5.5.0",
6363
"eth-dcent-keyring": "^0.2.2"

packages/demo/package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@
2323
"webpack-dev-server": "4.7.4"
2424
},
2525
"dependencies": {
26-
"@web3-onboard/core": "^2.16.1",
27-
"@web3-onboard/coinbase": "^2.2.1",
28-
"@web3-onboard/transaction-preview": "^2.0.5",
29-
"@web3-onboard/dcent": "^2.2.4",
30-
"@web3-onboard/frontier": "^2.0.1",
31-
"@web3-onboard/fortmatic": "^2.0.16",
32-
"@web3-onboard/gas": "^2.1.5",
33-
"@web3-onboard/gnosis": "^2.1.7",
34-
"@web3-onboard/keepkey": "^2.3.4",
35-
"@web3-onboard/keystone": "^2.3.4",
36-
"@web3-onboard/ledger": "^2.4.3",
37-
"@web3-onboard/infinity-wallet": "^2.0.1",
38-
"@web3-onboard/injected-wallets": "^2.8.3",
39-
"@web3-onboard/magic": "^2.1.4",
40-
"@web3-onboard/phantom": "^2.0.0-alpha.2",
41-
"@web3-onboard/portis": "^2.1.4",
42-
"@web3-onboard/sequence": "^2.0.5",
43-
"@web3-onboard/trezor": "^2.3.4",
44-
"@web3-onboard/trust": "^2.0.1",
45-
"@web3-onboard/torus": "^2.2.2",
46-
"@web3-onboard/taho": "^2.0.1",
47-
"@web3-onboard/web3auth": "^2.2.0",
48-
"@web3-onboard/walletconnect": "^2.3.4",
49-
"@web3-onboard/enkrypt": "^2.0.1",
50-
"@web3-onboard/mew-wallet": "^2.0.0",
51-
"@web3-onboard/xdefi": "^2.0.1",
52-
"@web3-onboard/uauth": "^2.0.2",
53-
"@web3-onboard/zeal": "^2.0.1",
26+
"@web3-onboard/core": "^2.16.2",
27+
"@web3-onboard/coinbase": "^2.2.2",
28+
"@web3-onboard/transaction-preview": "^2.0.6",
29+
"@web3-onboard/dcent": "^2.2.5",
30+
"@web3-onboard/frontier": "^2.0.2",
31+
"@web3-onboard/fortmatic": "^2.0.17",
32+
"@web3-onboard/gas": "^2.1.6",
33+
"@web3-onboard/gnosis": "^2.1.8",
34+
"@web3-onboard/keepkey": "^2.3.5",
35+
"@web3-onboard/keystone": "^2.3.5",
36+
"@web3-onboard/ledger": "^2.4.4",
37+
"@web3-onboard/infinity-wallet": "^2.0.2",
38+
"@web3-onboard/injected-wallets": "^2.8.4",
39+
"@web3-onboard/magic": "^2.1.5",
40+
"@web3-onboard/phantom": "^2.0.0-alpha.4",
41+
"@web3-onboard/portis": "^2.1.5",
42+
"@web3-onboard/sequence": "^2.0.6",
43+
"@web3-onboard/trezor": "^2.3.5",
44+
"@web3-onboard/trust": "^2.0.2",
45+
"@web3-onboard/torus": "^2.2.3",
46+
"@web3-onboard/taho": "^2.0.2",
47+
"@web3-onboard/web3auth": "^2.2.1",
48+
"@web3-onboard/walletconnect": "^2.3.5",
49+
"@web3-onboard/enkrypt": "^2.0.2",
50+
"@web3-onboard/mew-wallet": "^2.0.1",
51+
"@web3-onboard/xdefi": "^2.0.2",
52+
"@web3-onboard/uauth": "^2.0.3",
53+
"@web3-onboard/zeal": "^2.0.2",
5454
"vconsole": "^3.9.5"
5555
},
5656
"license": "MIT",

packages/enkrypt/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/enkrypt",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Enkrypt 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.",
55
"keywords": [
66
"Ethereum",
@@ -63,6 +63,6 @@
6363
"window": "^4.2.7"
6464
},
6565
"dependencies": {
66-
"@web3-onboard/common": "^2.3.0"
66+
"@web3-onboard/common": "^2.3.1"
6767
}
6868
}

packages/fortmatic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/fortmatic",
3-
"version": "2.0.16",
3+
"version": "2.0.17",
44
"description": "Fortmatic 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.",
55
"keywords": [
66
"Ethereum",
@@ -58,7 +58,7 @@
5858
"typescript": "^4.5.5"
5959
},
6060
"dependencies": {
61-
"@web3-onboard/common": "^2.3.0",
61+
"@web3-onboard/common": "^2.3.1",
6262
"fortmatic": "^2.2.1"
6363
}
6464
}

packages/frontier/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/frontier",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Frontier Wallet SDK wallet module for connecting to Web3-Onboard. 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.",
55
"keywords": [
66
"Ethereum",
@@ -59,6 +59,6 @@
5959
"typescript": "^4.5.5"
6060
},
6161
"dependencies": {
62-
"@web3-onboard/common": "^2.3.0"
62+
"@web3-onboard/common": "^2.3.1"
6363
}
6464
}

packages/gas/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/gas",
3-
"version": "2.1.5",
3+
"version": "2.1.6",
44
"description": "Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.",
55
"keywords": [
66
"gas",
@@ -32,7 +32,7 @@
3232
"typescript": "^4.5.5"
3333
},
3434
"dependencies": {
35-
"@web3-onboard/common": "^2.3.0",
35+
"@web3-onboard/common": "^2.3.1",
3636
"rxjs": "^7.5.2",
3737
"joi": "17.8.1"
3838
}

packages/gnosis/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/gnosis",
3-
"version": "2.1.7",
3+
"version": "2.1.8",
44
"description": "Gnosis Safe 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.",
55
"keywords": [
66
"Ethereum",
@@ -59,6 +59,6 @@
5959
"dependencies": {
6060
"@gnosis.pm/safe-apps-provider": "^0.9.2",
6161
"@gnosis.pm/safe-apps-sdk": "^6.1.1",
62-
"@web3-onboard/common": "^2.3.0"
62+
"@web3-onboard/common": "^2.3.1"
6363
}
6464
}

packages/hw-common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/hw-common",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "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.",
55
"keywords": [
66
"Ethereum",
@@ -81,9 +81,9 @@
8181
},
8282
"dependencies": {
8383
"@ethereumjs/common": "2.6.2",
84-
"@web3-onboard/common": "^2.3.0",
84+
"@web3-onboard/common": "^2.3.1",
8585
"ethers": "5.5.4",
86-
"joi": "17.8.1",
86+
"joi": "17.9.1",
8787
"rxjs": "^7.5.2"
8888
}
8989
}

0 commit comments

Comments
 (0)