Skip to content

Commit 7a6a6f7

Browse files
Merge pull request #2188 from Web3Auth/feat/rename-package
Rename @web3auth/modal to web3auth
2 parents f1d140d + 364b9cd commit 7a6a6f7

File tree

31 files changed

+72
-71
lines changed

31 files changed

+72
-71
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Checkout the official [Web3Auth Documentation](https://web3auth.io/docs) and [SD
2828

2929
For using Web3Auth in the web, you have two choices of SDKs to get started with.
3030

31-
[Web3Auth Plug and Play Modal SDK `@web3auth/modal`](https://web3auth.io/docs/sdk/web/web3auth/): A simple and easy to use SDK that will give you a simple modular way of implementing Web3Auth directly within your application. You can use the pre-configured Web3Auth Modal UI and whitelabel it according to your needs.
31+
[Web3Auth Plug and Play SDK `web3auth`](https://web3auth.io/docs/sdk/web/web3auth/): A simple and easy to use SDK that will give you a simple modular way of implementing Web3Auth directly within your application. You can use the pre-configured Web3Auth Modal UI and whitelabel it according to your needs.
3232

3333
[Web3Auth Plug and Play NoModal SDK `@web3auth/no-modal`](https://web3auth.io/docs/sdk/web/no-modal/): The nomodal module implementing all the Web3Auth features you need and giving you the flexibility of using your own UI with the Web3Auth SDK working in the backend.
3434

@@ -37,7 +37,7 @@ For using Web3Auth in the web, you have two choices of SDKs to get started with.
3737
### Installation (Web3Auth Plug and Play Modal)
3838

3939
```shell
40-
npm install --save @web3auth/modal
40+
npm install --save web3auth
4141
```
4242

4343
### Get your Client ID from Web3Auth Dashboard

demo/nextjs-ssr-app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Web3Auth (`@web3auth/modal`) x EVM x Next.js
1+
# Web3Auth (`web3auth`) x EVM x Next.js
22

3-
[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/pnp/web/modal)
3+
[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/pnp/web)
44
[![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io)
55

66
[Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates.

demo/nextjs-ssr-app/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "./globals.css";
33
import { Inter } from "next/font/google";
44

55
import Provider from "@/components/provider";
6-
import { cookieToWeb3AuthState } from "@web3auth/modal";
6+
import { cookieToWeb3AuthState } from "web3auth";
77
import { headers } from "next/headers";
88
import { cookieToInitialState } from "wagmi";
99

demo/nextjs-ssr-app/components/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useWeb3AuthConnect,
1212
useWeb3AuthDisconnect,
1313
useWeb3AuthUser,
14-
} from "@web3auth/modal/react";
14+
} from "web3auth/react";
1515
import { useAccount, useBalance, useSignMessage, useSignTypedData } from "wagmi";
1616

1717
const Main = () => {

demo/nextjs-ssr-app/components/provider.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use client";
22

33
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
4-
import { IWeb3AuthState } from "@web3auth/modal";
5-
import { type Web3AuthContextConfig } from "@web3auth/modal/react";
6-
import { Web3AuthProvider } from "@web3auth/modal/react";
7-
import { WagmiProvider } from "@web3auth/modal/react/wagmi";
4+
import { IWeb3AuthState } from "web3auth";
5+
import { type Web3AuthContextConfig } from "web3auth/react";
6+
import { Web3AuthProvider } from "web3auth/react";
7+
import { WagmiProvider } from "web3auth/react/wagmi";
88

99
const queryClient = new QueryClient();
1010
const clientId = "BKZDJP0ouZP0PtfQYssMiezINbUwnIthw6ClTtTICvh0MCRgAxi5GJbHKH9cjM6xyWxe73c6c94ASCTxbGNLUt8";

demo/nextjs-ssr-app/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/nextjs-ssr-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tanstack/react-query": "^5.37.1",
13-
"@web3auth/modal": "../../packages/modal",
13+
"web3auth": "../../packages/modal",
1414
"next": "14.1.0",
1515
"react": "18.2.0",
1616
"react-dom": "18.2.0",

demo/react-app-no-modal/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "./App.css";
22

3-
import { SafeEventEmitterProvider, WALLET_CONNECTORS } from "@web3auth/modal";
3+
import { SafeEventEmitterProvider, WALLET_CONNECTORS } from "@web3auth/no-modal";
44
import { Web3AuthNoModal } from "@web3auth/no-modal";
55
import { useEffect, useState } from "react";
66

demo/vite-react-app-solana/package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/vite-react-app-solana/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@web3auth/modal": "file:../../packages/modal",
6+
"web3auth": "file:../../packages/modal",
77
"react": "^18.2.0",
88
"react-dom": "^18.2.0"
99
},

0 commit comments

Comments
 (0)