Skip to content

Commit

Permalink
release: v5.0.5 (#2499)
Browse files Browse the repository at this point in the history
Co-authored-by: Enes <[email protected]>
Co-authored-by: Ben Kremer <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: Luka Isailovic <[email protected]>
Co-authored-by: Ignacio Santise <[email protected]>
Co-authored-by: Ozgur <[email protected]>
Co-authored-by: longxiangqiao <[email protected]>
Co-authored-by: Chris Smith <[email protected]>
Co-authored-by: Glitch <[email protected]>
Co-authored-by: Valentyn <[email protected]>
Co-authored-by: Segun Adebayo <[email protected]>
  • Loading branch information
12 people authored Jul 3, 2024
1 parent 8d034dc commit e9c1368
Show file tree
Hide file tree
Showing 71 changed files with 694 additions and 200 deletions.
9 changes: 9 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @apps/demo

## 5.0.5

### Patch Changes

- feat: universal link internal flag. Add kotlin assetlinks. Fix email truncation'

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

## 5.0.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/demo",
"version": "5.0.4",
"version": "5.0.5",
"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": "5.0.4",
"@web3modal/wagmi": "5.0.5",
"clsx": "2.1.0",
"framer-motion": "11.0.8",
"next": "14.2.3",
Expand Down
10 changes: 10 additions & 0 deletions apps/gallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @apps/gallery

## 5.0.5

### Patch Changes

- feat: universal link internal flag. Add kotlin assetlinks. Fix email truncation'

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

## 5.0.4

### Patch Changes
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": "5.0.4",
"version": "5.0.5",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -9,8 +9,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/common": "5.0.4",
"@web3modal/ui": "5.0.4",
"@web3modal/common": "5.0.5",
"@web3modal/ui": "5.0.5",
"lit": "3.1.0",
"storybook": "7.6.7"
},
Expand Down
16 changes: 16 additions & 0 deletions apps/gallery/stories/components/wui-text.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ export const Default: Component = {
</wui-text>
`
}

export const LineClamp: Component = {
render: args => html`
<div style="max-width:300px">
<wui-text
variant=${args.variant}
color=${args.color}
align=${ifDefined(args.align)}
lineClamp="1"
>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has
been the industry's standard dummy text ever since the 1500s.
</wui-text>
</div>
`
}
12 changes: 12 additions & 0 deletions apps/laboratory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @apps/laboratory

## 5.0.5

### Patch Changes

- feat: universal link internal flag. Add kotlin assetlinks. Fix email truncation'

- Updated dependencies []:
- @web3modal/ethers@5.0.5
- @web3modal/siwe@5.0.5
- @web3modal/solana@5.0.5
- @web3modal/wagmi@5.0.5

## 5.0.4

### Patch Changes
Expand Down
4 changes: 4 additions & 0 deletions apps/laboratory/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const nextConfig = {
{
source: '/.well-known/apple-app-site-association',
headers: [{ key: 'content-type', value: 'application/json' }]
},
{
source: '/.well-known/assetlinks.json',
headers: [{ key: 'content-type', value: 'application/json' }]
}
]
}
Expand Down
10 changes: 5 additions & 5 deletions apps/laboratory/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/laboratory",
"version": "5.0.4",
"version": "5.0.5",
"private": true,
"scripts": {
"dev:laboratory": "next dev",
Expand Down Expand Up @@ -43,10 +43,10 @@
"@tanstack/react-query": "5.24.8",
"@wagmi/connectors": "5.0.8",
"@walletconnect/utils": "2.13.1",
"@web3modal/ethers": "5.0.4",
"@web3modal/siwe": "5.0.4",
"@web3modal/solana": "5.0.4",
"@web3modal/wagmi": "5.0.4",
"@web3modal/ethers": "5.0.5",
"@web3modal/siwe": "5.0.5",
"@web3modal/solana": "5.0.5",
"@web3modal/wagmi": "5.0.5",
"ethers": "6.13.0",
"framer-motion": "10.17.9",
"next": "14.2.3",
Expand Down
132 changes: 132 additions & 0 deletions apps/laboratory/public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.wallet",
"sha256_cert_fingerprints": [
"45:6F:E1:8D:99:3F:1B:C2:A2:F9:95:71:54:5D:28:97:E9:8D:A1:73:65:AE:C1:0F:11:A6:56:51:20:2A:F9:FF"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.wallet.debug",
"sha256_cert_fingerprints": [
"89:50:0B:F7:C3:14:A5:D7:20:33:54:37:96:88:82:67:CB:E5:48:52:47:5B:81:F7:38:63:48:67:6D:BF:CA:1D"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.wallet.internal",
"sha256_cert_fingerprints": [
"30:D7:6F:CE:C3:31:C9:96:C2:1C:CA:80:0E:05:47:36:B2:F1:0D:36:8E:AE:A6:C8:E7:A4:BE:3B:10:D8:90:EC"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.dapp",
"sha256_cert_fingerprints": [
"45:6F:E1:8D:99:3F:1B:C2:A2:F9:95:71:54:5D:28:97:E9:8D:A1:73:65:AE:C1:0F:11:A6:56:51:20:2A:F9:FF"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.dapp.debug",
"sha256_cert_fingerprints": [
"89:50:0B:F7:C3:14:A5:D7:20:33:54:37:96:88:82:67:CB:E5:48:52:47:5B:81:F7:38:63:48:67:6D:BF:CA:1D"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.dapp.internal",
"sha256_cert_fingerprints": [
"30:D7:6F:CE:C3:31:C9:96:C2:1C:CA:80:0E:05:47:36:B2:F1:0D:36:8E:AE:A6:C8:E7:A4:BE:3B:10:D8:90:EC"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.modal",
"sha256_cert_fingerprints": [
"45:6F:E1:8D:99:3F:1B:C2:A2:F9:95:71:54:5D:28:97:E9:8D:A1:73:65:AE:C1:0F:11:A6:56:51:20:2A:F9:FF"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.modal.debug",
"sha256_cert_fingerprints": [
"89:50:0B:F7:C3:14:A5:D7:20:33:54:37:96:88:82:67:CB:E5:48:52:47:5B:81:F7:38:63:48:67:6D:BF:CA:1D"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.sample.modal.internal",
"sha256_cert_fingerprints": [
"30:D7:6F:CE:C3:31:C9:96:C2:1C:CA:80:0E:05:47:36:B2:F1:0D:36:8E:AE:A6:C8:E7:A4:BE:3B:10:D8:90:EC"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.web3wallet.rnsample.internal",
"sha256_cert_fingerprints": [
"C5:1B:86:DA:21:D0:8F:8C:CE:D5:70:87:35:3C:D4:4A:A4:3B:E0:7B:EC:C1:34:EC:2A:59:22:E9:99:A2:B5:56"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.web3wallet.rnsample",
"sha256_cert_fingerprints": [
"F5:44:4B:97:C3:B9:94:DB:67:15:D9:18:04:A5:0D:30:06:72:FE:2A:E8:B6:D1:13:64:1C:2F:74:DB:DE:42:53"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.web3modal.rnsample.internal",
"sha256_cert_fingerprints": [
"C5:1B:86:DA:21:D0:8F:8C:CE:D5:70:87:35:3C:D4:4A:A4:3B:E0:7B:EC:C1:34:EC:2A:59:22:E9:99:A2:B5:56"
]
}
},
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.walletconnect.web3modal.rnsample",
"sha256_cert_fingerprints": [
"F5:44:4B:97:C3:B9:94:DB:67:15:D9:18:04:A5:0D:30:06:72:FE:2A:E8:B6:D1:13:64:1C:2F:74:DB:DE:42:53"
]
}
}
]
22 changes: 16 additions & 6 deletions apps/laboratory/src/components/RandomLink.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
'use client'

import Link from 'next/link'
import { useState, useEffect } from 'react'

export function RandomLink({ hrefs, children }: { hrefs: string[]; children: React.ReactNode }) {
const href = hrefs[Math.floor(Math.random() * hrefs.length)]
if (!href) {
throw new Error('No hrefs provided')
}
export function RandomLink({
hrefs = [],
children
}: {
hrefs: string[]
children: React.ReactNode
}) {
const [href, setHref] = useState<string>()
useEffect(() => {
const newHref = hrefs[Math.floor(Math.random() * hrefs.length)]
if (newHref) {
setHref(newHref)
}
}, [hrefs])

return <Link href={href}>{children}</Link>
return href ? <Link href={href}>{children}</Link> : <></>
}
23 changes: 23 additions & 0 deletions apps/laboratory/src/layout/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,30 @@ import Link from 'next/link'
import { IoSettingsOutline } from 'react-icons/io5'
import { OptionsDrawer } from './OptionsDrawer'
import { CustomWallet } from './CustomWallet'
import { DownloadIcon } from '@chakra-ui/icons'
import { useChakraToast } from '../components/Toast'

function downloadLogs(toast: ReturnType<typeof useChakraToast>) {
type WindowWithLogs = typeof Window & {
downloadLogsBlobInBrowser?: () => void
downloadAppKitLogsBlob: Record<string, () => void>
}

const logWindow = window as unknown as WindowWithLogs
logWindow.downloadLogsBlobInBrowser?.()
logWindow.downloadAppKitLogsBlob?.['sdk']?.()
toast({
title: 'Logs downloaded',
description:
'To get logs for secure site too, switch to it in developer console and run `window.downloadLogsBlobInBrowser()`',
type: 'success'
})
}

export function LayoutHeader() {
const controls = useDisclosure()
const controlsCW = useDisclosure({ id: 'customWallet' })
const toast = useChakraToast()

return (
<>
Expand Down Expand Up @@ -43,6 +63,9 @@ export function LayoutHeader() {
<Button rightIcon={<IoSettingsOutline />} onClick={controls.onOpen}>
Options
</Button>
<Button rightIcon={<DownloadIcon />} onClick={() => downloadLogs(toast)}>
Logs
</Button>
</Stack>

<OptionsDrawer controls={controls} />
Expand Down
9 changes: 9 additions & 0 deletions examples/html-ethers5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/html-ethers5

## 5.0.5

### Patch Changes

- feat: universal link internal flag. Add kotlin assetlinks. Fix email truncation'

- Updated dependencies []:
- @web3modal/ethers5@5.0.5

## 5.0.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/html-ethers5/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@examples/html-ethers5",
"private": true,
"version": "5.0.4",
"version": "5.0.5",
"scripts": {
"dev:example": "vite --port 3011",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers5": "5.0.4",
"@web3modal/ethers5": "5.0.5",
"ethers": "5.7.2"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions examples/html-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/html-wagmi

## 5.0.5

### Patch Changes

- feat: universal link internal flag. Add kotlin assetlinks. Fix email truncation'

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

## 5.0.4

### Patch Changes
Expand Down
Loading

0 comments on commit e9c1368

Please sign in to comment.