thirdweb 5.80.0-nightly-3d6e2a2b8bcec1c11de51c218a39cb1116dd7f22-20241220000331 → 5.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/create-wallet.js +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/siwe.js +2 -1
- package/dist/cjs/wallets/in-app/core/authentication/siwe.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/create-wallet.js +1 -1
- package/dist/esm/wallets/in-app/core/authentication/siwe.js +2 -1
- package/dist/esm/wallets/in-app/core/authentication/siwe.js.map +1 -1
- package/dist/types/react/core/hooks/connection/ConnectButtonProps.d.ts +2 -2
- package/dist/types/react/core/hooks/connection/ConnectEmbedProps.d.ts +2 -2
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +1 -1
- package/dist/types/react/web/ui/ConnectWallet/useConnectModal.d.ts +2 -2
- package/dist/types/react/web/ui/PayEmbed.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/create-wallet.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/siwe.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/react/core/hooks/connection/ConnectButtonProps.ts +2 -2
- package/src/react/core/hooks/connection/ConnectEmbedProps.ts +2 -2
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/useConnectModal.tsx +2 -2
- package/src/react/web/ui/PayEmbed.tsx +1 -1
- package/src/version.ts +1 -1
- package/src/wallets/create-wallet.ts +1 -1
- package/src/wallets/in-app/core/authentication/siwe.ts +3 -1
@@ -32,7 +32,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
|
32
32
|
/**
|
33
33
|
* A fully featured wallet connection component that allows to:
|
34
34
|
*
|
35
|
-
* - Connect to
|
35
|
+
* - Connect to 500+ external wallets
|
36
36
|
* - Connect with email, phone, passkey or socials
|
37
37
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
38
38
|
* - Sign in with ethereum (Auth)
|
@@ -27,7 +27,7 @@ const screen_js_1 = require("./screen.js");
|
|
27
27
|
/**
|
28
28
|
* An inline wallet connection component that allows to:
|
29
29
|
*
|
30
|
-
* - Connect to
|
30
|
+
* - Connect to 500+ external wallets
|
31
31
|
* - Connect with email, phone, passkey or socials
|
32
32
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
33
33
|
* - Sign in with ethereum (Auth)
|
@@ -203,7 +203,7 @@ const WalletSelection = (props) => {
|
|
203
203
|
}
|
204
204
|
props.selectWallet(wallet);
|
205
205
|
}, connectLocale: props.connectLocale, client: props.client, recommendedWallets: props.recommendedWallets, isActive: isActive, badge: undefined })) }, wallet.id));
|
206
|
-
}), props.onShowAll && props.showAllWallets !== false && ((0, jsx_runtime_1.jsx)(ButtonContainer, { children: (0, jsx_runtime_1.jsxs)(WalletEntryButton_js_1.WalletButtonEl, { onClick: props.onShowAll, children: [(0, jsx_runtime_1.jsxs)(ShowAllWalletsIcon, { children: [(0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true })] }), (0, jsx_runtime_1.jsxs)(basic_js_1.Container, { flex: "row", gap: "xs", children: [(0, jsx_runtime_1.jsx)(text_js_2.Text, { color: "primaryText", children: "All Wallets" }), (0, jsx_runtime_1.jsx)(BadgeText, { children: "
|
206
|
+
}), props.onShowAll && props.showAllWallets !== false && ((0, jsx_runtime_1.jsx)(ButtonContainer, { children: (0, jsx_runtime_1.jsxs)(WalletEntryButton_js_1.WalletButtonEl, { onClick: props.onShowAll, children: [(0, jsx_runtime_1.jsxs)(ShowAllWalletsIcon, { children: [(0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true }), (0, jsx_runtime_1.jsx)("div", { "data-dot": true })] }), (0, jsx_runtime_1.jsxs)(basic_js_1.Container, { flex: "row", gap: "xs", children: [(0, jsx_runtime_1.jsx)(text_js_2.Text, { color: "primaryText", children: "All Wallets" }), (0, jsx_runtime_1.jsx)(BadgeText, { children: " 500+ " })] })] }) }))] }));
|
207
207
|
};
|
208
208
|
const BadgeText = /* @__PURE__ */ (0, elements_js_1.StyledDiv)(() => {
|
209
209
|
const theme = (0, CustomThemeProvider_js_1.useCustomTheme)();
|
package/dist/cjs/version.js
CHANGED
package/dist/cjs/version.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
|
@@ -20,7 +20,7 @@ const wallet_emitter_js_1 = require("./wallet-emitter.js");
|
|
20
20
|
/**
|
21
21
|
* Creates a wallet based on the provided ID and arguments.
|
22
22
|
*
|
23
|
-
* - Supports
|
23
|
+
* - Supports 500+ wallets
|
24
24
|
* - Handles both injected browser wallets and WalletConnect sessions
|
25
25
|
*
|
26
26
|
* [View all available wallets](https://portal.thirdweb.com/typescript/v5/supported-wallets)
|
@@ -10,7 +10,8 @@ const getLoginPath_js_1 = require("./getLoginPath.js");
|
|
10
10
|
*/
|
11
11
|
async function siweAuthenticate(args) {
|
12
12
|
const { wallet, chain } = args;
|
13
|
-
|
13
|
+
// only connect if the wallet doesn't already have an account
|
14
|
+
const account = wallet.getAccount() || (await wallet.connect({ client: args.client }));
|
14
15
|
const clientFetch = (0, fetch_js_1.getClientFetch)(args.client, args.ecosystem);
|
15
16
|
const payload = await (async () => {
|
16
17
|
const path = (0, getLoginPath_js_1.getLoginUrl)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"siwe.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":";;AAcA,
|
1
|
+
{"version":3,"file":"siwe.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":";;AAcA,4CAqDC;AAnED,uFAA+E;AAI/E,yDAA4D;AAC5D,uDAAsD;AAGtD,uDAAqE;AAGrE;;GAEG;AACI,KAAK,UAAU,gBAAgB,CAAC,IAKtC;IACC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC/B,6DAA6D;IAC7D,MAAM,OAAO,GACX,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,MAAM,C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AC,CAAC,EAAE,CAAC;IACL,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
@@ -29,7 +29,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
|
29
29
|
/**
|
30
30
|
* A fully featured wallet connection component that allows to:
|
31
31
|
*
|
32
|
-
* - Connect to
|
32
|
+
* - Connect to 500+ external wallets
|
33
33
|
* - Connect with email, phone, passkey or socials
|
34
34
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
35
35
|
* - Sign in with ethereum (Auth)
|
@@ -23,7 +23,7 @@ import { useSetupScreen } from "./screen.js";
|
|
23
23
|
/**
|
24
24
|
* An inline wallet connection component that allows to:
|
25
25
|
*
|
26
|
-
* - Connect to
|
26
|
+
* - Connect to 500+ external wallets
|
27
27
|
* - Connect with email, phone, passkey or socials
|
28
28
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
29
29
|
* - Sign in with ethereum (Auth)
|
@@ -200,7 +200,7 @@ const WalletSelection = (props) => {
|
|
200
200
|
}
|
201
201
|
props.selectWallet(wallet);
|
202
202
|
}, connectLocale: props.connectLocale, client: props.client, recommendedWallets: props.recommendedWallets, isActive: isActive, badge: undefined })) }, wallet.id));
|
203
|
-
}), props.onShowAll && props.showAllWallets !== false && (_jsx(ButtonContainer, { children: _jsxs(WalletButtonEl, { onClick: props.onShowAll, children: [_jsxs(ShowAllWalletsIcon, { children: [_jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true })] }), _jsxs(Container, { flex: "row", gap: "xs", children: [_jsx(Text, { color: "primaryText", children: "All Wallets" }), _jsx(BadgeText, { children: "
|
203
|
+
}), props.onShowAll && props.showAllWallets !== false && (_jsx(ButtonContainer, { children: _jsxs(WalletButtonEl, { onClick: props.onShowAll, children: [_jsxs(ShowAllWalletsIcon, { children: [_jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true }), _jsx("div", { "data-dot": true })] }), _jsxs(Container, { flex: "row", gap: "xs", children: [_jsx(Text, { color: "primaryText", children: "All Wallets" }), _jsx(BadgeText, { children: " 500+ " })] })] }) }))] }));
|
204
204
|
};
|
205
205
|
const BadgeText = /* @__PURE__ */ StyledDiv(() => {
|
206
206
|
const theme = useCustomTheme();
|
package/dist/esm/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = "5.80.0
|
1
|
+
export const version = "5.80.0";
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/esm/version.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|
@@ -16,7 +16,7 @@ import { createWalletEmitter } from "./wallet-emitter.js";
|
|
16
16
|
/**
|
17
17
|
* Creates a wallet based on the provided ID and arguments.
|
18
18
|
*
|
19
|
-
* - Supports
|
19
|
+
* - Supports 500+ wallets
|
20
20
|
* - Handles both injected browser wallets and WalletConnect sessions
|
21
21
|
*
|
22
22
|
* [View all available wallets](https://portal.thirdweb.com/typescript/v5/supported-wallets)
|
@@ -7,7 +7,8 @@ import { getLoginCallbackUrl, getLoginUrl } from "./getLoginPath.js";
|
|
7
7
|
*/
|
8
8
|
export async function siweAuthenticate(args) {
|
9
9
|
const { wallet, chain } = args;
|
10
|
-
|
10
|
+
// only connect if the wallet doesn't already have an account
|
11
|
+
const account = wallet.getAccount() || (await wallet.connect({ client: args.client }));
|
11
12
|
const clientFetch = getClientFetch(args.client, args.ecosystem);
|
12
13
|
const payload = await (async () => {
|
13
14
|
const path = getLoginUrl({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"siwe.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAI/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAKtC;IACC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC/B,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"siwe.js","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAI/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAKtC;IACC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC/B,6DAA6D;IAC7D,MAAM,OAAO,GACX,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAChC,MAAM,IAAI,GAAG,WAAW,CAAC;YACvB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAA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```
|
537
537
|
*
|
538
|
-
* The `ConnectButton` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
538
|
+
* The `ConnectButton` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
539
539
|
*/
|
540
540
|
wallets?: Wallet[];
|
541
541
|
/**
|
@@ -866,7 +866,7 @@ export type ConnectButtonProps = {
|
|
866
866
|
*/
|
867
867
|
recommendedWallets?: Wallet[];
|
868
868
|
/**
|
869
|
-
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of
|
869
|
+
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
870
870
|
*
|
871
871
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
872
872
|
*/
|
@@ -83,7 +83,7 @@ export type ConnectEmbedProps = {
|
|
83
83
|
* ]
|
84
84
|
* ```
|
85
85
|
*
|
86
|
-
* The `ConnectEmbed` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
86
|
+
* The `ConnectEmbed` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
87
87
|
*/
|
88
88
|
wallets?: Wallet[];
|
89
89
|
/**
|
@@ -245,7 +245,7 @@ export type ConnectEmbedProps = {
|
|
245
245
|
*/
|
246
246
|
recommendedWallets?: Wallet[];
|
247
247
|
/**
|
248
|
-
* By default, `ConnectEmbed` shows a "All Wallets" button that shows a list of
|
248
|
+
* By default, `ConnectEmbed` shows a "All Wallets" button that shows a list of 500+ wallets.
|
249
249
|
*
|
250
250
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
251
251
|
*/
|
@@ -2,7 +2,7 @@ import type { ConnectButtonProps } from "../../../core/hooks/connection/ConnectB
|
|
2
2
|
/**
|
3
3
|
* A fully featured wallet connection component that allows to:
|
4
4
|
*
|
5
|
-
* - Connect to
|
5
|
+
* - Connect to 500+ external wallets
|
6
6
|
* - Connect with email, phone, passkey or socials
|
7
7
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
8
8
|
* - Sign in with ethereum (Auth)
|
@@ -2,7 +2,7 @@ import type { ConnectEmbedProps } from "../../../../core/hooks/connection/Connec
|
|
2
2
|
/**
|
3
3
|
* An inline wallet connection component that allows to:
|
4
4
|
*
|
5
|
-
* - Connect to
|
5
|
+
* - Connect to 500+ external wallets
|
6
6
|
* - Connect with email, phone, passkey or socials
|
7
7
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
8
8
|
* - Sign in with ethereum (Auth)
|
@@ -119,7 +119,7 @@ export type UseConnectModalOptions = {
|
|
119
119
|
* ]
|
120
120
|
* ```
|
121
121
|
*
|
122
|
-
* Connect Modal also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
122
|
+
* Connect Modal also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
123
123
|
*/
|
124
124
|
wallets?: Wallet[];
|
125
125
|
/**
|
@@ -235,7 +235,7 @@ export type UseConnectModalOptions = {
|
|
235
235
|
*/
|
236
236
|
recommendedWallets?: Wallet[];
|
237
237
|
/**
|
238
|
-
* By default, Connect modal shows a "All Wallets" button that shows a list of
|
238
|
+
* By default, Connect modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
239
239
|
*
|
240
240
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
241
241
|
*/
|
@@ -370,7 +370,7 @@ export type PayEmbedConnectOptions = {
|
|
370
370
|
*/
|
371
371
|
recommendedWallets?: Wallet[];
|
372
372
|
/**
|
373
|
-
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of
|
373
|
+
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
374
374
|
*
|
375
375
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
376
376
|
*/
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.80.0
|
1
|
+
export declare const version = "5.80.0";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
@@ -3,7 +3,7 @@ import type { CreateWalletArgs, WalletId } from "./wallet-types.js";
|
|
3
3
|
/**
|
4
4
|
* Creates a wallet based on the provided ID and arguments.
|
5
5
|
*
|
6
|
-
* - Supports
|
6
|
+
* - Supports 500+ wallets
|
7
7
|
* - Handles both injected browser wallets and WalletConnect sessions
|
8
8
|
*
|
9
9
|
* [View all available wallets](https://portal.thirdweb.com/typescript/v5/supported-wallets)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"siwe.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GAAG,OAAO,CAAC,mCAAmC,CAAC,
|
1
|
+
{"version":3,"file":"siwe.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/authentication/siwe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAgD/C"}
|
package/package.json
CHANGED
@@ -592,7 +592,7 @@ export type ConnectButtonProps = {
|
|
592
592
|
* ]
|
593
593
|
* ```
|
594
594
|
*
|
595
|
-
* The `ConnectButton` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
595
|
+
* The `ConnectButton` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
596
596
|
*/
|
597
597
|
wallets?: Wallet[];
|
598
598
|
|
@@ -945,7 +945,7 @@ export type ConnectButtonProps = {
|
|
945
945
|
recommendedWallets?: Wallet[];
|
946
946
|
|
947
947
|
/**
|
948
|
-
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of
|
948
|
+
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
949
949
|
*
|
950
950
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
951
951
|
*/
|
@@ -87,7 +87,7 @@ export type ConnectEmbedProps = {
|
|
87
87
|
* ]
|
88
88
|
* ```
|
89
89
|
*
|
90
|
-
* The `ConnectEmbed` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
90
|
+
* The `ConnectEmbed` also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
91
91
|
*/
|
92
92
|
wallets?: Wallet[];
|
93
93
|
|
@@ -266,7 +266,7 @@ export type ConnectEmbedProps = {
|
|
266
266
|
recommendedWallets?: Wallet[];
|
267
267
|
|
268
268
|
/**
|
269
|
-
* By default, `ConnectEmbed` shows a "All Wallets" button that shows a list of
|
269
|
+
* By default, `ConnectEmbed` shows a "All Wallets" button that shows a list of 500+ wallets.
|
270
270
|
*
|
271
271
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
272
272
|
*/
|
@@ -36,7 +36,7 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
|
36
36
|
/**
|
37
37
|
* A fully featured wallet connection component that allows to:
|
38
38
|
*
|
39
|
-
* - Connect to
|
39
|
+
* - Connect to 500+ external wallets
|
40
40
|
* - Connect with email, phone, passkey or socials
|
41
41
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
42
42
|
* - Sign in with ethereum (Auth)
|
@@ -42,7 +42,7 @@ import { useSetupScreen } from "./screen.js";
|
|
42
42
|
/**
|
43
43
|
* An inline wallet connection component that allows to:
|
44
44
|
*
|
45
|
-
* - Connect to
|
45
|
+
* - Connect to 500+ external wallets
|
46
46
|
* - Connect with email, phone, passkey or socials
|
47
47
|
* - Convert any wallet to a ERC4337 smart wallet for gasless transactions
|
48
48
|
* - Sign in with ethereum (Auth)
|
@@ -667,7 +667,7 @@ const WalletSelection: React.FC<{
|
|
667
667
|
</ShowAllWalletsIcon>
|
668
668
|
<Container flex="row" gap="xs">
|
669
669
|
<Text color="primaryText">All Wallets</Text>
|
670
|
-
<BadgeText>
|
670
|
+
<BadgeText> 500+ </BadgeText>
|
671
671
|
</Container>
|
672
672
|
</WalletButtonEl>
|
673
673
|
</ButtonContainer>
|
@@ -233,7 +233,7 @@ export type UseConnectModalOptions = {
|
|
233
233
|
* ]
|
234
234
|
* ```
|
235
235
|
*
|
236
|
-
* Connect Modal also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the
|
236
|
+
* Connect Modal also shows a "All wallets" button at the end of wallet list which allows user to connect to any of the 500+ wallets
|
237
237
|
*/
|
238
238
|
wallets?: Wallet[];
|
239
239
|
|
@@ -357,7 +357,7 @@ export type UseConnectModalOptions = {
|
|
357
357
|
recommendedWallets?: Wallet[];
|
358
358
|
|
359
359
|
/**
|
360
|
-
* By default, Connect modal shows a "All Wallets" button that shows a list of
|
360
|
+
* By default, Connect modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
361
361
|
*
|
362
362
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
363
363
|
*/
|
@@ -496,7 +496,7 @@ export type PayEmbedConnectOptions = {
|
|
496
496
|
recommendedWallets?: Wallet[];
|
497
497
|
|
498
498
|
/**
|
499
|
-
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of
|
499
|
+
* By default, ConnectButton modal shows a "All Wallets" button that shows a list of 500+ wallets.
|
500
500
|
*
|
501
501
|
* You can disable this button by setting `showAllWallets` prop to `false`
|
502
502
|
*/
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.80.0
|
1
|
+
export const version = "5.80.0";
|
@@ -32,7 +32,7 @@ import { createWalletEmitter } from "./wallet-emitter.js";
|
|
32
32
|
/**
|
33
33
|
* Creates a wallet based on the provided ID and arguments.
|
34
34
|
*
|
35
|
-
* - Supports
|
35
|
+
* - Supports 500+ wallets
|
36
36
|
* - Handles both injected browser wallets and WalletConnect sessions
|
37
37
|
*
|
38
38
|
* [View all available wallets](https://portal.thirdweb.com/typescript/v5/supported-wallets)
|
@@ -19,7 +19,9 @@ export async function siweAuthenticate(args: {
|
|
19
19
|
ecosystem?: Ecosystem;
|
20
20
|
}): Promise<AuthStoredTokenWithCookieReturnType> {
|
21
21
|
const { wallet, chain } = args;
|
22
|
-
|
22
|
+
// only connect if the wallet doesn't already have an account
|
23
|
+
const account =
|
24
|
+
wallet.getAccount() || (await wallet.connect({ client: args.client }));
|
23
25
|
const clientFetch = getClientFetch(args.client, args.ecosystem);
|
24
26
|
|
25
27
|
const payload = await (async () => {
|