Skip to content

Commit

Permalink
Update/feat web3js (#26)
Browse files Browse the repository at this point in the history
* chore(lab): dogfooding button (reown-com#2206)

* chore: fix typos (reown-com#2188)

Signed-off-by: snoppy <[email protected]>
Co-authored-by: tomiir <[email protected]>

* refactor: render tooltip in root (reown-com#2210)

* feat: add react-ethers 6 example (reown-com#1920)

Co-authored-by: Sven <[email protected]>

* refactor: swap business logic improvements (reown-com#2199)

* chore: detailed canary timings (reown-com#2214)

* chore: add apple app site association (reown-com#2216)

* :feat add send logic  (reown-com#2173)

Co-authored-by: Cali93 <[email protected]>
Co-authored-by: Enes <[email protected]>

* fix: apple-app-site-association content type header (reown-com#2217)

* feat: Sign 2.5 (reown-com#2033)

Co-authored-by: Gancho Radkov <[email protected]>
Co-authored-by: Glitch <[email protected]>
Co-authored-by: Glitch <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: tomiir <[email protected]>
Co-authored-by: Enes <[email protected]>

* feat: Smart Account 6492 Signature Tests (reown-com#2196)

* fix: sign modal not appearing when going through siwe flow (reown-com#2213)

* Add signAndSendTransaction to Solflare, Backpack and Trust Wallet Ada… (reown-com#2190)

Co-authored-by: Valentyn <[email protected]>

* fix: missing call to SIWE `onSignOut` (reown-com#2054)

Co-authored-by: Glitch <[email protected]>
Co-authored-by: tomiir <[email protected]>

* fix: dayjs locale format seconds is not working and is polluting the global dayjs locale (reown-com#1689)

Co-authored-by: tomiir <[email protected]>
Co-authored-by: Gancho Radkov <[email protected]>
Co-authored-by: Gancho Radkov <[email protected]>
Co-authored-by: Ilja <[email protected]>
Co-authored-by: enesozturk <[email protected]>

* :deprecate - injected connector (reown-com#2223)

* chore: more canary timings (reown-com#2215)

* chore: updates ethereum-provider to latest (reown-com#2226)

* fix: add assertion for the erc20 abi json import (reown-com#2225)

* fix: encodes all `personal_sign` messages to hex (reown-com#2237)

Co-authored-by: Gancho Radkov <[email protected]>

* fix: siwe tests for 1 click auth (reown-com#2267)

* feat: phantom deeplink for mobile app browsers (reown-com#2250)

Co-authored-by: tomiir <[email protected]>

* fix: 4.2.0 bug fixes (reown-com#2234)

Co-authored-by: Enes <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: Sven <[email protected]>

* chore: UI canary 10 minute timeout (reown-com#2269)

* chore: bump to main 4.2.0 version (reown-com#2270)

* :feat social login - 1 - UI  (reown-com#2266)

Co-authored-by: enesozturk <[email protected]>

* :feat social login - 2 - Wallet (reown-com#2272)

* :feat social login - 3 - AuthConnector  (reown-com#2274)

* refactor: update profile name rendering logic (reown-com#2276)

* :hotfix in app support for injected and announced wallets  (reown-com#2279)

* refactor/theme variables and v4 ui updates (reown-com#2277)

---------

Signed-off-by: snoppy <[email protected]>
Co-authored-by: Chris Smith <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: tomiir <[email protected]>
Co-authored-by: Enes <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: Luka Isailovic <[email protected]>
Co-authored-by: Cali93 <[email protected]>
Co-authored-by: Gancho Radkov <[email protected]>
Co-authored-by: Gancho Radkov <[email protected]>
Co-authored-by: Glitch <[email protected]>
Co-authored-by: Glitch <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: GooxPF <[email protected]>
Co-authored-by: Valentyn <[email protected]>
Co-authored-by: Tiến Nguyễn Khắc <[email protected]>
Co-authored-by: Nikos Rossolatos <[email protected]>
Co-authored-by: Ilja <[email protected]>
  • Loading branch information
18 people authored May 16, 2024
1 parent 8f869c7 commit 04dab35
Show file tree
Hide file tree
Showing 257 changed files with 8,262 additions and 9,054 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.canary
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ ENV CI=true
ENV SKIP_PLAYWRIGHT_WEBSERVER=true
ENV BASE_URL=https://lab.web3modal.com/

CMD ["bash", "./docker-canary.sh"]
CMD ["timeout", "600", "./docker-canary.sh"]
47 changes: 47 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# @apps/demo

## 4.2.1

### Patch Changes

- Hotfix to support injected and announced wallets in in app browsers

- Updated dependencies []:
- @web3modal/wagmi@4.2.1

## 4.2.0

### Patch Changes

- release: 4.2.0 version release

- Updated dependencies []:
- @web3modal/wagmi@4.2.0

## 4.2.0-alpha.0

### Patch Changes

- feat: 4.2.0-alpha release

- Updated dependencies []:
- @web3modal/wagmi@4.2.0-alpha.0

## 4.2.0-03e4f4a8.2

### Patch Changes

- fix: Issue with SIWE + Wagmi sign out. Fixes issue where signature verification fail resulted in empty open modal'

- Updated dependencies []:
- @web3modal/wagmi@4.2.0-03e4f4a8.2

## 4.2.0-448f7f4.1

### Minor Changes

- refactor: improvements to all features (siwe, send, swaps, ui and ux)

### Patch Changes

- Updated dependencies []:
- @web3modal/wagmi@4.2.0-448f7f4.1

## 4.1.12-910a844.0

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/demo",
"version": "4.1.12-910a844.0",
"version": "4.2.1",
"private": true,
"scripts": {
"dev:demo": "next dev",
Expand All @@ -11,7 +11,7 @@
"dependencies": {
"@radix-ui/react-switch": "1.0.3",
"@tanstack/react-query": "5.24.8",
"@web3modal/wagmi": "4.1.12-910a844.0",
"@web3modal/wagmi": "4.2.1",
"clsx": "2.1.0",
"framer-motion": "11.0.8",
"next": "14.1.1",
Expand All @@ -20,8 +20,8 @@
"sonner": "1.4.3",
"tailwind-merge": "2.2.1",
"vaul": "0.9.0",
"viem": "2.7.19",
"wagmi": "2.5.19",
"viem": "2.10.3",
"wagmi": "2.8.7",
"zustand": "4.5.2"
},
"devDependencies": {
Expand Down
52 changes: 52 additions & 0 deletions apps/gallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @apps/gallery

## 4.2.1

### Patch Changes

- Hotfix to support injected and announced wallets in in app browsers

- Updated dependencies []:
- @web3modal/common@4.2.1
- @web3modal/ui@4.2.1

## 4.2.0

### Patch Changes

- release: 4.2.0 version release

- Updated dependencies []:
- @web3modal/common@4.2.0
- @web3modal/ui@4.2.0

## 4.2.0-alpha.0

### Patch Changes

- feat: 4.2.0-alpha release

- Updated dependencies []:
- @web3modal/common@4.2.0-alpha.0
- @web3modal/ui@4.2.0-alpha.0

## 4.2.0-03e4f4a8.2

### Patch Changes

- fix: Issue with SIWE + Wagmi sign out. Fixes issue where signature verification fail resulted in empty open modal'

- Updated dependencies []:
- @web3modal/common@4.2.0-03e4f4a8.2
- @web3modal/ui@4.2.0-03e4f4a8.2

## 4.2.0-448f7f4.1

### Minor Changes

- refactor: improvements to all features (siwe, send, swaps, ui and ux)

### Patch Changes

- Updated dependencies []:
- @web3modal/common@4.2.0-448f7f4.1
- @web3modal/ui@4.2.0-448f7f4.1

## 4.1.12-910a844.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/gallery/components/gallery-placeholder/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default css`
}
.placeholder-bg-color-blue {
background-color: #47a1ff;
background-color: #667dff;
}
.placeholder-margin {
Expand Down
6 changes: 3 additions & 3 deletions apps/gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/gallery",
"version": "4.1.12-910a844.0",
"version": "4.2.1",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -9,8 +9,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/common": "4.1.12-910a844.0",
"@web3modal/ui": "4.1.12-910a844.0",
"@web3modal/common": "4.2.1",
"@web3modal/ui": "4.2.1",
"lit": "3.1.0",
"storybook": "7.6.7"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/gallery/stories/composites/wui-account-button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export default {
avatarSrc: avatarImageSrc,
address,
balance: '0.527 ETH',
isProfileName: false,
profileName: 'johndoe.eth',
charsStart: 4,
charsEnd: 6
},
argTypes: {
disabled: {
control: { type: 'boolean' }
},
isProfileName: {
control: { type: 'boolean' }
profileName: {
control: { type: 'text' }
}
}
} as Component
Expand All @@ -32,7 +32,7 @@ export const Default: Component = {
render: args =>
html`<wui-account-button
?disabled=${args.disabled}
?isProfileName=${args.isProfileName}
profileName=${args.profileName}
.networkSrc=${args.networkSrc}
.avatarSrc=${args.avatarSrc}
.balance=${args.balance}
Expand Down
9 changes: 3 additions & 6 deletions apps/gallery/stories/composites/wui-button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ type Component = Meta<WuiButton & { iconLeft?: IconType; iconRight?: IconType }>
export default {
title: 'Composites/wui-button',
args: {
size: 'md',
variant: 'fill',
size: 'lg',
variant: 'main',
disabled: false,
fullWidth: false,
iconLeft: undefined,
Expand All @@ -20,16 +20,13 @@ export default {
},
argTypes: {
size: {
options: ['xs', 'sm', 'md', 'lg'],
options: ['lg', 'md'],
control: { type: 'select' }
},
variant: {
options: buttonOptions,
control: { type: 'select' }
},
fullWidth: {
control: { type: 'boolean' }
},
disabled: {
control: { type: 'boolean' }
},
Expand Down
12 changes: 9 additions & 3 deletions apps/gallery/stories/composites/wui-chip-button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@ import type { Meta } from '@storybook/web-components'
import '@web3modal/ui/src/composites/wui-chip-button'
import type { WuiChipButton } from '@web3modal/ui/src/composites/wui-chip-button'
import { html } from 'lit'
import { chipOptions, iconOptions, walletImagesOptions } from '../../utils/PresetUtils'
import { chipButtonVariants, iconOptions, walletImagesOptions } from '../../utils/PresetUtils'

type Component = Meta<WuiChipButton>

export default {
title: 'Composites/wui-chip-button',
args: {
variant: 'fill',
variant: 'main',
size: 'md',
disabled: false,
icon: 'externalLink',
imageSrc: walletImagesOptions[3]?.src,
text: 'dianeyes.walletconnect.eth'
},
argTypes: {
variant: {
options: chipOptions,
options: chipButtonVariants,
control: { type: 'select' }
},
size: {
options: ['sm', 'md'],
control: { type: 'select' }
},
icon: {
Expand All @@ -35,6 +40,7 @@ export const Default: Component = {
html`<wui-chip-button
icon=${args.icon}
text=${args.text}
size=${args.size}
variant=${args.variant}
?disabled=${args.disabled}
.imageSrc=${args.imageSrc}
Expand Down
4 changes: 2 additions & 2 deletions apps/gallery/stories/composites/wui-chip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '@web3modal/ui/src/composites/wui-chip'
import type { WuiChip } from '@web3modal/ui/src/composites/wui-chip'
import { html } from 'lit'
import {
chipOptions,
chipVariants,
externalLink,
iconOptions,
walletImagesOptions
Expand All @@ -22,7 +22,7 @@ export default {
},
argTypes: {
variant: {
options: chipOptions,
options: chipVariants,
control: { type: 'select' }
},
icon: {
Expand Down
21 changes: 21 additions & 0 deletions apps/gallery/stories/composites/wui-list-button.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Meta } from '@storybook/web-components'
import '@web3modal/ui/src/composites/wui-list-button'
import { html } from 'lit'
import '../../components/gallery-container'
import type { WuiListButton } from '@web3modal/ui'

type Component = Meta<WuiListButton>

export default {
title: 'Composites/wui-list-button',
args: {
text: 'Continue with a wallet'
}
} as Component

export const Default: Component = {
render: args =>
html` <gallery-container width="336">
<wui-list-button text=${args.text}></wui-list-button>
</gallery-container>`
}
30 changes: 30 additions & 0 deletions apps/gallery/stories/composites/wui-list-social.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import type { Meta } from '@storybook/web-components'
import '@web3modal/ui/src/composites/wui-list-social'
import { html } from 'lit'
import '../../components/gallery-container'

import type { WuiListSocial } from '@web3modal/ui'

type Component = Meta<WuiListSocial>

export default {
title: 'Composites/wui-list-social',
args: {
name: 'google',
logo: 'google',
align: 'left'
},
argTypes: {
align: {
options: ['left', 'center'],
control: { type: 'select' }
}
}
} as Component

export const Default: Component = {
render: args =>
html` <gallery-container width="336">
<wui-list-social align=${args.align} logo=${args.logo} name=${args.name}></wui-list-social>
</gallery-container>`
}
5 changes: 4 additions & 1 deletion apps/gallery/stories/composites/wui-logo-select.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Meta } from '@storybook/web-components'
import '@web3modal/ui/src/composites/wui-logo-select'
import type { WuiLogoSelect } from '@web3modal/ui/src/composites/wui-logo-select'
import { html } from 'lit'
import '../../components/gallery-container'
import { logoOptions } from '../../utils/PresetUtils'

type Component = Meta<WuiLogoSelect>
Expand All @@ -26,5 +27,7 @@ export default {

export const Default: Component = {
render: args =>
html`<wui-logo-select ?disabled=${args.disabled} logo=${args.logo}></wui-logo-select>`
html`<gallery-container width="60"
><wui-logo-select ?disabled=${args.disabled} logo=${args.logo}></wui-logo-select>
</gallery-container>`
}
8 changes: 4 additions & 4 deletions apps/gallery/stories/composites/wui-profile-button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ export default {
networkSrc: networkImageSrc,
avatarSrc: avatarImageSrc,
address,
isProfileName: false
profileName: 'johndoe.eth'
},
argTypes: {
isProfileName: {
control: { type: 'boolean' }
profileName: {
control: { type: 'text' }
}
}
} as Component

export const Default: Component = {
render: args =>
html`<wui-profile-button
?isProfileName=${args.isProfileName}
profileName=${args.profileName}
.networkSrc=${args.networkSrc}
.avatarSrc=${args.avatarSrc}
address=${args.address}
Expand Down
Loading

0 comments on commit 04dab35

Please sign in to comment.