Skip to content

Commit

Permalink
Merge working canary (#4)
Browse files Browse the repository at this point in the history
* remove help section, codebase cleanup

* stash

* tag canary

* tag new canary

* remove wagmi and valtio deps from lab

* add ethereum provider dep

* fix laboratory links

* tag canary

* publish canary

* fix modal-core imports

* tag canary

* Update all examples

* update auth modalOptions

* fix github actions
  • Loading branch information
xzilja authored Jun 22, 2023
1 parent 78edead commit 39e74a9
Show file tree
Hide file tree
Showing 27 changed files with 68 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Pull request checks
on:
pull_request:
branches:
- V2
- main

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
12 changes: 6 additions & 6 deletions laboratory/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "laboratory",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"private": true,
"scripts": {
"dev": "rm -rf .next; next dev",
"build": "next build"
},
"dependencies": {
"@nextui-org/react": "1.0.0-beta.13",
"@walletconnect/modal-auth-html": "2.4.8-4560daf-2",
"@walletconnect/modal-auth-react": "2.4.8-4560daf-2",
"@walletconnect/modal-sign-html": "2.4.8-4560daf-2",
"@walletconnect/modal-sign-react": "2.4.8-4560daf-2",
"@walletconnect/modal": "2.4.8-4560daf-2",
"@walletconnect/ethereum-provider": "2.8.1",
"@walletconnect/modal": "2.5.0-f0d3ee1",
"@walletconnect/modal-auth-html": "2.5.0-f0d3ee1",
"@walletconnect/modal-auth-react": "2.5.0-f0d3ee1",
"@walletconnect/modal-sign-html": "2.5.0-f0d3ee1",
"@walletconnect/modal-sign-react": "2.5.0-f0d3ee1",
"next": "13.4.6",
"react": "18.2.0",
"react-code-blocks": "0.0.9-0",
Expand Down
9 changes: 5 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"npmClient": "npm",
"packages": [
"packages/core",
"packages/ui",
"packages/modal-core",
"packages/modal-ui",
"projects/modal",
"projects/modal-auth-html",
"projects/modal-auth-react",
"projects/modal-sign-html",
"projects/modal-sign-react"
"projects/modal-sign-react",
"laboratory"
],
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/modal-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-core",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"type": "module",
"types": "dist/_types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/modal-core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
4 changes: 2 additions & 2 deletions packages/modal-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-ui",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"type": "module",
"types": "dist/_types/index.d.ts",
Expand All @@ -16,7 +16,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@walletconnect/modal-core": "2.4.8-4560daf-2",
"@walletconnect/modal-core": "2.5.0-f0d3ee1",
"lit": "2.7.5",
"motion": "10.16.2",
"qrcode": "1.5.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/modal-ui/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ModalCtrl } from '@walletconnect/modal-core'
import { LitElement, html } from 'lit'
import { customElement } from 'lit/decorators.js'
import { ModalCtrl } from 'packages/modal-core'
import { SvgUtil } from '../../utils/SvgUtil'
import { ThemeUtil } from '../../utils/ThemeUtil'
import styles from './styles.css'
Expand Down
3 changes: 1 addition & 2 deletions projects/modal-auth-html/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { WalletConnectModalAuth } from './src/client';

export { WalletConnectModalAuth } from './src/client'
6 changes: 4 additions & 2 deletions projects/modal-auth-html/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { WalletConnectModalAuth } from './src/client'
export type { WalletConnectModalAuthOptions, WalletConnectModalAuthSignInArguments } from './src/client'

export type {
WalletConnectModalAuthOptions,
WalletConnectModalAuthSignInArguments
} from './src/client'
4 changes: 2 additions & 2 deletions projects/modal-auth-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-auth-html",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"unpkg": "dist/cdn/bundle.js",
"type": "module",
Expand All @@ -19,7 +19,7 @@
},
"dependencies": {
"@walletconnect/auth-client": "2.1.0",
"@walletconnect/modal": "2.4.8-4560daf-2"
"@walletconnect/modal": "2.5.0-f0d3ee1"
},
"keywords": [
"web3",
Expand Down
2 changes: 1 addition & 1 deletion projects/modal-auth-html/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
5 changes: 4 additions & 1 deletion projects/modal-auth-html/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import { WalletConnectModal } from '@walletconnect/modal'
export interface WalletConnectModalAuthOptions {
projectId: string
metadata: AuthClientTypes.Metadata
modalOptions?: Omit<WalletConnectModalConfig, 'projectId' | 'walletConnectVersion'>
modalOptions?: Omit<
WalletConnectModalConfig,
'chains' | 'enableAuthMode' | 'projectId' | 'walletConnectVersion'
>
}

export interface WalletConnectModalAuthSignInArguments {
Expand Down
1 change: 0 additions & 1 deletion projects/modal-auth-react/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { WalletConnectModalAuth } from './src/components/WalletConnectModalAuth'
export type { WalletConnectModalAuthProps } from './src/components/WalletConnectModalAuth'
export { useSignIn } from './src/hooks/useSignIn'

4 changes: 2 additions & 2 deletions projects/modal-auth-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-auth-react",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"type": "module",
"types": "dist/_types/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@walletconnect/modal-auth-html": "2.4.8-4560daf-2"
"@walletconnect/modal-auth-html": "2.5.0-f0d3ee1"
},
"peerDependencies": {
"react": ">=17",
Expand Down
2 changes: 1 addition & 1 deletion projects/modal-auth-react/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
4 changes: 2 additions & 2 deletions projects/modal-auth-react/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { WalletConnectModalAuthOptions } from 'projects/modal-auth-html'
import { WalletConnectModalAuth } from 'projects/modal-auth-html'
import type { WalletConnectModalAuthOptions } from '@walletconnect/modal-auth-html'
import { WalletConnectModalAuth } from '@walletconnect/modal-auth-html'

let walletConnectModalAuthClient: WalletConnectModalAuth | undefined = undefined

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { WalletConnectModalAuthOptions } from 'projects/modal-auth-html'
import type { WalletConnectModalAuthOptions } from '@walletconnect/modal-auth-html'
import { memo, useEffect } from 'react'
import { setWalletConnectModalAuthClient } from '../client'

Expand Down
2 changes: 1 addition & 1 deletion projects/modal-auth-react/src/hooks/useSignIn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { WalletConnectModalAuthSignInArguments } from 'projects/modal-auth-html'
import type { WalletConnectModalAuthSignInArguments } from '@walletconnect/modal-auth-html'
import type { WalletConnectModalAuthInstance } from '../client'
import { getWalletConnectModalAuthClient } from '../client'
import { useAsyncAction } from './_useAsyncAction'
Expand Down
4 changes: 2 additions & 2 deletions projects/modal-sign-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-sign-html",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"unpkg": "dist/cdn/bundle.js",
"type": "module",
Expand All @@ -18,7 +18,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@walletconnect/modal": "2.4.8-4560daf-2",
"@walletconnect/modal": "2.5.0-f0d3ee1",
"@walletconnect/sign-client": "2.8.1"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion projects/modal-sign-html/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
4 changes: 2 additions & 2 deletions projects/modal-sign-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal-sign-react",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"type": "module",
"types": "dist/_types/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@walletconnect/modal-sign-html": "2.4.8-4560daf-2",
"@walletconnect/modal-sign-html": "2.5.0-f0d3ee1",
"mitt": "3.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion projects/modal-sign-react/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down
6 changes: 3 additions & 3 deletions projects/modal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/modal",
"version": "2.4.8-4560daf-2",
"version": "2.5.0-f0d3ee1",
"main": "dist/index.js",
"unpkg": "dist/cdn/bundle.js",
"type": "module",
Expand All @@ -18,8 +18,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@walletconnect/modal-core": "2.4.8-4560daf-2",
"@walletconnect/modal-ui": "2.4.8-4560daf-2"
"@walletconnect/modal-core": "2.5.0-f0d3ee1",
"@walletconnect/modal-ui": "2.5.0-f0d3ee1"
},
"keywords": [
"web3",
Expand Down
2 changes: 1 addition & 1 deletion projects/modal/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples)

#### 🧪 [Laboratory](lab-walletconnect-modal.pages.dev)
#### 🧪 [Laboratory](https://lab-walletconnect-modal.pages.dev)

# WalletConnect Modal

Expand Down

0 comments on commit 39e74a9

Please sign in to comment.