Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] beta.5 #1352

Merged
merged 22 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 9 additions & 9 deletions apps/gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/gallery",
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -9,17 +9,17 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/ui": "3.0.0-beta.4",
"@web3modal/ui": "3.0.0-beta.5",
"lit": "2.8.0",
"storybook": "7.4.2"
"storybook": "7.4.5"
},
"devDependencies": {
"@storybook/addon-essentials": "7.4.2",
"@storybook/addon-links": "7.4.2",
"@storybook/blocks": "7.4.2",
"@storybook/theming": "7.4.2",
"@storybook/web-components": "7.4.2",
"@storybook/web-components-vite": "7.4.2",
"@storybook/addon-essentials": "7.4.5",
"@storybook/addon-links": "7.4.5",
"@storybook/blocks": "7.4.5",
"@storybook/theming": "7.4.5",
"@storybook/web-components": "7.4.5",
"@storybook/web-components-vite": "7.4.5",
"file-system-cache": "2.4.4"
}
}
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": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"private": true,
"scripts": {
"dev:laboratory": "next dev",
Expand All @@ -11,11 +11,11 @@
"@chakra-ui/react": "2.8.1",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@sentry/browser": "7.69.0",
"@sentry/react": "7.69.0",
"@web3modal/wagmi": "3.0.0-beta.4",
"@sentry/browser": "7.70.0",
"@sentry/react": "7.70.0",
"@web3modal/wagmi": "3.0.0-beta.5",
"framer-motion": "10.16.4",
"next": "13.5.1",
"next": "13.5.2",
"react-icons": "4.11.0",
"valtio": "1.11.2"
}
Expand Down
11 changes: 10 additions & 1 deletion apps/laboratory/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ const chains = [
celo,
aurora
]
export const wagmiConfig = defaultWagmiConfig({ chains, projectId, appName: 'Web3Modal' })
export const wagmiConfig = defaultWagmiConfig({
chains,
projectId,
metadata: {
name: 'Web3Modal',
description: 'Web3Modal Laboratory',
url: 'https://web3modal.com',
icons: ['https://avatars.githubusercontent.com/u/37784886']
}
})

// 3. Create Web3Modal
export const modal = createWeb3Modal({
Expand Down
10 changes: 8 additions & 2 deletions examples/html-wagmi/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { arbitrum, mainnet } from 'https://esm.sh/@wagmi/core/chains?bundle'
import { arbitrum, mainnet } from 'https://esm.sh/@wagmi/core@1/chains'
import { createWeb3Modal, defaultWagmiConfig } from 'https://esm.sh/@web3modal/wagmi@beta?bundle'

// 1. Create projectId
const projectId = 'YOUR_PROJECT_ID'

// 2. Create wagmiConfig
const chains = [mainnet, arbitrum]
const wagmiConfig = defaultWagmiConfig({ chains, projectId, appName: 'Web3Modal' })
const wagmiConfig = defaultWagmiConfig({
chains,
projectId,
metadata: {
name: 'Web3Modal HTML Example'
}
})

// 3. Create modal
const modal = createWeb3Modal({ wagmiConfig, projectId, chains, themeMode: 'light' })
Expand Down
6 changes: 3 additions & 3 deletions examples/react-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@examples/react-wagmi",
"private": true,
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"scripts": {
"dev:example": "vite --port 3001",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/wagmi": "3.0.0-beta.4"
"@web3modal/wagmi": "3.0.0-beta.5"
},
"devDependencies": {
"@vitejs/plugin-react": "4.0.4"
"@vitejs/plugin-react": "4.1.0"
}
}
8 changes: 7 additions & 1 deletion examples/react-wagmi/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ if (!projectId) {

// 2. Create wagmiConfig
const chains = [mainnet, arbitrum]
const wagmiConfig = defaultWagmiConfig({ chains, projectId, appName: 'Web3Modal' })
const wagmiConfig = defaultWagmiConfig({
chains,
projectId,
metadata: {
name: 'Web3Modal React Example'
}
})

// 3. Create modal
createWeb3Modal({
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@examples/vue-wagmi",
"private": true,
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"scripts": {
"dev:example": "vite --port 3002",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/wagmi": "3.0.0-beta.4"
"@web3modal/wagmi": "3.0.0-beta.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "4.3.4"
Expand Down
8 changes: 7 additions & 1 deletion examples/vue-wagmi/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ if (!projectId) {

// 2. Create wagmiConfig
const chains = [mainnet, arbitrum]
const wagmiConfig = defaultWagmiConfig({ chains, projectId, appName: 'Web3Modal' })
const wagmiConfig = defaultWagmiConfig({
chains,
projectId,
metadata: {
name: 'Web3Modal Vue Example'
}
})

// 3. Create modal
createWeb3Modal({
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"apps/*",
"examples/*"
],
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
Loading