Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
593f392
move default position to bottomRight
leightkt May 11, 2023
a46a006
changes to minimized
leightkt May 11, 2023
3832095
toggle on minimized click
leightkt May 11, 2023
1e4e0e0
fix transition
leightkt May 15, 2023
66d02b6
merge develop
leightkt May 15, 2023
10ff104
fix jump on transition
leightkt May 15, 2023
0917993
rename components
leightkt May 16, 2023
0ab4f6d
remove unused variable
leightkt May 16, 2023
920b4e4
remove unused import
leightkt May 16, 2023
f9f63ee
Merge branch 'develop' into account-center-updates
leightkt May 16, 2023
9e721e0
Merge branch 'develop' into account-center-updates
leightkt May 17, 2023
e484bee
add zindex to triggers
leightkt May 17, 2023
9300b4d
fix duplicate accountCenter issue
leightkt May 17, 2023
79def06
Merge branch 'account-center-updates' of github.com:blocknative/web3-…
leightkt May 17, 2023
ea47dc3
make key accountCenter
leightkt May 17, 2023
cac5d38
reenable off center click to minimize, fix duplicate issue
leightkt May 17, 2023
4677255
add warning about default position change
leightkt May 18, 2023
0736f3a
change warning to tip
leightkt May 18, 2023
f845715
use flexible width here to support better mobile experience.
gesquinca May 22, 2023
890c64d
use flexbox properties instead of conditional inline styles
gesquinca May 23, 2023
345ccd5
adjust ac trigger sizing
gesquinca May 23, 2023
28076da
remove conditional inline styles for left/right ac positions
gesquinca May 23, 2023
641a77b
make mini trigger the default
leightkt May 23, 2023
9a1ed28
merge develop
leightkt May 24, 2023
07618f1
Update docs/src/routes/docs/[...3]modules/[...1]core/+page.md
leightkt May 25, 2023
96b07eb
Update packages/core/README.md
leightkt May 25, 2023
c158239
use --account-center-z-index
leightkt May 25, 2023
4c55d45
Add reposition btns for AC
Adamj1232 May 25, 2023
0cc9349
stop duplicates on position change
leightkt May 25, 2023
14df1a6
update large trigger
leightkt May 25, 2023
da45fb5
make accountCenterPanel transition local
leightkt May 26, 2023
3017b22
move buttons
leightkt May 26, 2023
3e627e2
fix trigger spelling
leightkt May 26, 2023
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
16 changes: 16 additions & 0 deletions docs/src/routes/docs/[...3]modules/[...1]core/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ title: Core

This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.

:::admonition type="tip"
_note: Release 2.24.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_
```typescript
accountCenter: {
desktop: {
enabled: true,
position: 'topRight'
},
mobile: {
enabled: true,
position: 'topRight'
}
}
```
:::

## Install

Install the core module:
Expand Down
14 changes: 14 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.

_Tip: Release 2.24.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_
```typescript
accountCenter: {
desktop: {
enabled: true,
position: 'topRight'
},
mobile: {
enabled: true,
position: 'topRight'
}
}
```

## Quick start

Checkout our full library of quick start examples for connecting and interacting with EVM based wallets
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.19.2",
"version": "2.20.0-alpha.1",
"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
4 changes: 2 additions & 2 deletions packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export const APP_INITIAL_STATE: AppState = {
chains: [],
accountCenter: {
enabled: true,
position: 'topRight',
position: 'bottomRight',
expanded: false,
minimal: configuration.device.type === 'mobile'
minimal: true
},
notify: {
enabled: true,
Expand Down
29 changes: 4 additions & 25 deletions packages/core/src/views/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@
.container {
padding: 16px;
font-family: var(--onboard-font-family-normal, var(--font-family-normal));
width: 100%;
pointer-events: none;
touch-action: none;
width: 100%;
}

.z-indexed {
Expand Down Expand Up @@ -442,18 +442,7 @@
{#if $accountCenter$.position.includes('bottom')}
<div id="w3o-transaction-preview-container" style="margin-bottom: 8px;" />
{/if}
<div
style={!$accountCenter$.expanded &&
$accountCenter$.minimal &&
$accountCenter$.position.includes('Right')
? 'margin-left: auto'
: !$accountCenter$.expanded &&
$accountCenter$.minimal &&
$accountCenter$.position.includes('Left')
? 'margin-right: auto'
: ''}
id="account-center-with-notify"
>
<div id="account-center-with-notify">
{#await accountCenterComponent then AccountCenter}
{#if AccountCenter}
<svelte:component this={AccountCenter} />
Expand Down Expand Up @@ -491,21 +480,11 @@
{#if $accountCenter$.position.includes('bottom')}
<div id="w3o-transaction-preview-container" style="margin-bottom: 8px;" />
{/if}
<div
style={!$accountCenter$.expanded &&
$accountCenter$.minimal &&
$accountCenter$.position.includes('Right')
? 'margin-left: auto'
: !$accountCenter$.expanded &&
$accountCenter$.minimal &&
$accountCenter$.position.includes('Left')
? 'margin-right: auto'
: ''}
>
<div>
{#if $accountCenter$.enabled && $wallets$.length}
{#await accountCenterComponent then AccountCenter}
{#if AccountCenter}
<svelte:component this={AccountCenter} />
<svelte:component this={AccountCenter} />
{/if}
{/await}
{/if}
Expand Down
Loading