Skip to content

Commit

Permalink
merge in main
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Feb 10, 2024
2 parents 20eaa62 + 0f9a7b2 commit ab9ce5b
Show file tree
Hide file tree
Showing 65 changed files with 856 additions and 344 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-garlics-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/sdk": patch
---

Reduce batch RPC size for performance
5 changes: 0 additions & 5 deletions .changeset/shaggy-llamas-smile.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth

## 4.1.32

### Patch Changes

- Updated dependencies []:
- @thirdweb-dev/wallets@2.4.10

## 4.1.31

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.31",
"version": "4.1.32",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
Expand Down
6 changes: 6 additions & 0 deletions packages/chains/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains

## 0.1.72

### Patch Changes

- [#2280](https://github.com/thirdweb-dev/js/pull/2280) [`23d0e553`](https://github.com/thirdweb-dev/js/commit/23d0e553088321edfe3971950c2e7f27209d9aaf) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package

## 0.1.71

### Patch Changes
Expand Down
31 changes: 31 additions & 0 deletions packages/chains/chains/7865.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 7865,
"explorers": [],
"faucets": [],
"features": [],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
"height": 256,
"format": "svg"
},
"infoURL": "https://avacloud.io",
"name": "ST 02-07",
"nativeCurrency": {
"name": "ST 02-07 Token",
"symbol": "TJO",
"decimals": 18
},
"networkId": 7865,
"redFlags": [],
"rpc": [
"https://st-02-07.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://7865.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "ST 02-07",
"slug": "st-02-07",
"testnet": true
} as const satisfies Chain;
2 changes: 1 addition & 1 deletion packages/chains/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.71",
"version": "0.1.72",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"exports": {
Expand Down
6 changes: 5 additions & 1 deletion packages/chains/src/index.ts

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# thirdweb

## 0.13.40

### Patch Changes

- Updated dependencies [[`09de55f1`](https://github.com/thirdweb-dev/js/commit/09de55f13cbd29b4e0eb57808e0d30f9c1b3ba94), [`53786fc3`](https://github.com/thirdweb-dev/js/commit/53786fc3068568758f033a1c63975c94a8e407f5), [`a86478bf`](https://github.com/thirdweb-dev/js/commit/a86478bf248786423d03f4a20d9dc7c02270c371), [`23d0e553`](https://github.com/thirdweb-dev/js/commit/23d0e553088321edfe3971950c2e7f27209d9aaf)]:
- @thirdweb-dev/sdk@4.0.35
- @thirdweb-dev/chains@0.1.72
- @thirdweb-dev/wallets@2.4.10
- @thirdweb-dev/auth@4.1.32

## 0.13.39

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.39",
"version": "0.13.40",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core

## 4.4.8

### Patch Changes

- Updated dependencies [[`09de55f1`](https://github.com/thirdweb-dev/js/commit/09de55f13cbd29b4e0eb57808e0d30f9c1b3ba94), [`53786fc3`](https://github.com/thirdweb-dev/js/commit/53786fc3068568758f033a1c63975c94a8e407f5), [`a86478bf`](https://github.com/thirdweb-dev/js/commit/a86478bf248786423d03f4a20d9dc7c02270c371), [`23d0e553`](https://github.com/thirdweb-dev/js/commit/23d0e553088321edfe3971950c2e7f27209d9aaf)]:
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]

## 4.4.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.4.7",
"version": "4.4.8",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Expand Down
Binary file modified packages/react-core/typedoc/documentation.json.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions packages/react-native-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @thirdweb-dev/react-native-compat

## 0.7.5

## 0.7.4

## 0.7.3
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.4",
"version": "0.7.5",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
"license": "Apache-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native

## 0.7.5

### Patch Changes

- Updated dependencies [[`09de55f1`](https://github.com/thirdweb-dev/js/commit/09de55f13cbd29b4e0eb57808e0d30f9c1b3ba94), [`53786fc3`](https://github.com/thirdweb-dev/js/commit/53786fc3068568758f033a1c63975c94a8e407f5), [`a86478bf`](https://github.com/thirdweb-dev/js/commit/a86478bf248786423d03f4a20d9dc7c02270c371), [`23d0e553`](https://github.com/thirdweb-dev/js/commit/23d0e553088321edfe3971950c2e7f27209d9aaf)]:
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]

## 0.7.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.4",
"version": "0.7.5",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Expand Down
Binary file modified packages/react-native/typedoc/documentation.json.gz
Binary file not shown.
22 changes: 22 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @thirdweb-dev/react

## 4.4.8

### Patch Changes

- [#2289](https://github.com/thirdweb-dev/js/pull/2289) [`0155adce`](https://github.com/thirdweb-dev/js/commit/0155adcea4b5379be552962f219853c0a2b1c050) Thanks [@MananTank](https://github.com/MananTank)! - - Show EmbeddedWallet UI instead of the default welcomeScreen in the ConnectWallet wide modal. If a custom welcomeScreen is provided, it will be shown instead of the EmbeddedWallet UI. Same Is done for the deprecated PaperWallet as well

- Stop treating Magic Link as a Social Login and remove the custom Select UI for it
- highlight the wallet for which the Connect UI is shown in the ConnectWallet wide modal
-

- [#2290](https://github.com/thirdweb-dev/js/pull/2290) [`f85806c0`](https://github.com/thirdweb-dev/js/commit/f85806c0674921adc7007eec9f061070eefe1d84) Thanks [@MananTank](https://github.com/MananTank)! - Update EmbeddedWallet name in ConnectWallet UI

- [#2288](https://github.com/thirdweb-dev/js/pull/2288) [`74d76ff5`](https://github.com/thirdweb-dev/js/commit/74d76ff580d78a5b98a2d7180a58457231c1b95a) Thanks [@MananTank](https://github.com/MananTank)! - Add "Powered By Thirdweb" Branding at the bottom of `ConnectEmbed` and `ConnectWallet` Modal

A new prop `showThirdwebBranding` has been added to both `ConnectEmbed` and `ConnectWallet` components to hide this branding.

- Updated dependencies [[`09de55f1`](https://github.com/thirdweb-dev/js/commit/09de55f13cbd29b4e0eb57808e0d30f9c1b3ba94), [`53786fc3`](https://github.com/thirdweb-dev/js/commit/53786fc3068568758f033a1c63975c94a8e407f5), [`a86478bf`](https://github.com/thirdweb-dev/js/commit/a86478bf248786423d03f4a20d9dc7c02270c371), [`23d0e553`](https://github.com/thirdweb-dev/js/commit/23d0e553088321edfe3971950c2e7f27209d9aaf)]:
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]

## 4.4.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.4.7",
"version": "4.4.8",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/react/src/evm/components/Web3Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ export interface Web3ButtonProps<TActionFn extends ActionFn> {
* Either provide a component to replace the default screen entirely or an object with title, subtitle and imgSrc to change the content of the default screen
*/
welcomeScreen?: WelcomeScreen;

/**
* By default the ConnectWallet Modal shows "Powered by Thirdweb" at the bottom. If you want to hide it, set it to `false`
*/
showThirdwebBranding?: boolean;
};

/**
Expand Down
10 changes: 10 additions & 0 deletions packages/react/src/evm/providers/wallet-ui-states-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type ModalConfig = {
};
isEmbed?: boolean;
onConnect?: () => void;
showThirdwebBranding?: boolean;
};

const WalletModalOpen = /* @__PURE__ */ createContext(false);
Expand Down Expand Up @@ -56,6 +57,7 @@ export const WalletUIStatesProvider = (
onLogout?: () => void;
};
onConnect?: () => void;
showThirdwebBranding?: boolean;
}>,
) => {
const [isWalletModalOpen, setIsWalletModalOpen] = useState(false);
Expand All @@ -74,6 +76,7 @@ export const WalletUIStatesProvider = (
isEmbed: props.isEmbed,
auth: props.auth,
onConnect: props.onConnect,
showThirdwebBranding: props.showThirdwebBranding,
});

return (
Expand Down Expand Up @@ -233,6 +236,13 @@ export type ModalConfigOptions = {
* Note that this does not include the sign in, If you want to call a callback after user connects AND signs in with their wallet, use `auth.onLogin` instead
*/
onConnect?: () => void;

/**
* By default the ConnectWallet Modal shows "powered by thirdweb" branding at the bottom of the modal.
*
* If you want to hide the branding, set this to `false`
*/
showThirdwebBranding?: boolean;
};

/**
Expand Down
23 changes: 23 additions & 0 deletions packages/react/src/wallet/ConnectWallet/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,18 @@ export type ConnectWalletProps = {
* ```
*/
detailsModalFooter?: (props: { close: () => void }) => JSX.Element;

/**
* By default ConnectWallet shows "Powered by Thirdweb" branding at the bottom of the ConnectWallet Modal.
*
* If you want to hide the branding, set this prop to `false`
*
* @example
* ```tsx
* <ConnectWallet showThirdwebBranding={false} />
*```
*/
showThirdwebBranding?: boolean;
};

const TW_CONNECT_WALLET = "tw-connect-wallet";
Expand Down Expand Up @@ -588,6 +600,16 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
* })
* />
* ```
*
*
* ### showThirdwebBranding
* By default ConnectWallet shows "Powered by Thirdweb" branding at the bottom of the ConnectWallet Modal.
*
* If you want to hide the branding, set this prop to `false`
*
* ```tsx
* <ConnectWallet showThirdwebBranding={false} />
*```
*/
export function ConnectWallet(props: ConnectWalletProps) {
const activeWallet = useWallet();
Expand Down Expand Up @@ -707,6 +729,7 @@ export function ConnectWallet(props: ConnectWalletProps) {
titleIconUrl: props.modalTitleIconUrl,
auth: props.auth,
onConnect: props.onConnect,
showThirdwebBranding: props.showThirdwebBranding,
});
setIsWalletModalOpen(true);
}}
Expand Down
Loading

0 comments on commit ab9ce5b

Please sign in to comment.