thirdweb 5.64.0-nightly-e6e994479fb8386b1740de4170f33446f038f2b1-20241024000332 → 5.64.1
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/extensions/erc1155/write/mintAdditionalSupplyTo.js +1 -6
- package/dist/cjs/extensions/erc1155/write/mintAdditionalSupplyTo.js.map +1 -1
- package/dist/cjs/react/core/utils/walletIcon.js +7 -7
- package/dist/cjs/react/core/utils/walletIcon.js.map +1 -1
- package/dist/cjs/react/native/ui/components/WalletImage.js +3 -1
- package/dist/cjs/react/native/ui/components/WalletImage.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/MenuButton.js +0 -3
- package/dist/cjs/react/web/ui/ConnectWallet/MenuButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletTypeRowButton.js +1 -4
- package/dist/cjs/react/web/ui/ConnectWallet/WalletTypeRowButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/EmailIcon.js +12 -0
- package/dist/cjs/react/web/ui/ConnectWallet/icons/EmailIcon.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/icons/FingerPrintIcon.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/FingerPrintIcon.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/GuestIcon.js +12 -0
- package/dist/cjs/react/web/ui/ConnectWallet/icons/GuestIcon.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/icons/OutlineWalletIcon.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/OutlineWalletIcon.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/PhoneIcon.js +12 -0
- package/dist/cjs/react/web/ui/ConnectWallet/icons/PhoneIcon.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +5 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/components/WalletImage.js +34 -9
- package/dist/cjs/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js +29 -12
- package/dist/cjs/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +16 -6
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/de.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/de.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/en.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/es.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/fr.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/fr.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/ja.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/kr.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/kr.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/tl.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/vi.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/vi.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/ecosystem/get-ecosystem-wallet-auth-options.js +5 -0
- package/dist/cjs/wallets/ecosystem/get-ecosystem-wallet-auth-options.js.map +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js +1 -1
- package/dist/cjs/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
- package/dist/cjs/wallets/types.js +1 -0
- package/dist/cjs/wallets/types.js.map +1 -1
- package/dist/esm/exports/pay.js +0 -1
- package/dist/esm/exports/pay.js.map +1 -1
- package/dist/esm/exports/react.js +0 -5
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/react.native.js +0 -2
- package/dist/esm/exports/react.native.js.map +1 -1
- package/dist/esm/exports/thirdweb.js +0 -1
- package/dist/esm/exports/thirdweb.js.map +1 -1
- package/dist/esm/exports/wallets/embedded.js +0 -1
- package/dist/esm/exports/wallets/embedded.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.js +0 -1
- package/dist/esm/exports/wallets/in-app.js.map +1 -1
- package/dist/esm/exports/wallets/in-app.native.js +0 -1
- package/dist/esm/exports/wallets/in-app.native.js.map +1 -1
- package/dist/esm/exports/wallets.js +0 -1
- package/dist/esm/exports/wallets.js.map +1 -1
- package/dist/esm/exports/wallets.native.js +0 -1
- package/dist/esm/exports/wallets.native.js.map +1 -1
- package/dist/esm/extensions/erc1155/write/mintAdditionalSupplyTo.js +1 -6
- package/dist/esm/extensions/erc1155/write/mintAdditionalSupplyTo.js.map +1 -1
- package/dist/esm/react/core/utils/walletIcon.js +3 -3
- package/dist/esm/react/core/utils/walletIcon.js.map +1 -1
- package/dist/esm/react/native/ui/components/WalletImage.js +3 -1
- package/dist/esm/react/native/ui/components/WalletImage.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/MenuButton.js +0 -3
- package/dist/esm/react/web/ui/ConnectWallet/MenuButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletTypeRowButton.js +2 -5
- package/dist/esm/react/web/ui/ConnectWallet/WalletTypeRowButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/EmailIcon.js +8 -0
- package/dist/esm/react/web/ui/ConnectWallet/icons/EmailIcon.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/icons/FingerPrintIcon.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/FingerPrintIcon.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/GuestIcon.js +8 -0
- package/dist/esm/react/web/ui/ConnectWallet/icons/GuestIcon.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/icons/OutlineWalletIcon.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/OutlineWalletIcon.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/PhoneIcon.js +8 -0
- package/dist/esm/react/web/ui/ConnectWallet/icons/PhoneIcon.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +5 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
- package/dist/esm/react/web/ui/components/WalletImage.js +34 -9
- package/dist/esm/react/web/ui/components/WalletImage.js.map +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js +29 -12
- package/dist/esm/react/web/wallets/in-app/WalletAuth.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +17 -7
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/de.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/de.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/en.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/es.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/fr.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/fr.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/ja.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/kr.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/kr.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/tl.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/vi.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/vi.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/ecosystem/get-ecosystem-wallet-auth-options.js +5 -0
- package/dist/esm/wallets/ecosystem/get-ecosystem-wallet-auth-options.js.map +1 -1
- package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js +1 -1
- package/dist/esm/wallets/in-app/core/authentication/getLoginPath.js.map +1 -1
- package/dist/esm/wallets/types.js +1 -0
- package/dist/esm/wallets/types.js.map +1 -1
- package/dist/types/exports/pay.d.ts +1 -1
- package/dist/types/exports/pay.d.ts.map +1 -1
- package/dist/types/exports/react.d.ts +3 -3
- package/dist/types/exports/react.d.ts.map +1 -1
- package/dist/types/exports/react.native.d.ts +1 -1
- package/dist/types/exports/react.native.d.ts.map +1 -1
- package/dist/types/exports/thirdweb.d.ts +1 -1
- package/dist/types/exports/thirdweb.d.ts.map +1 -1
- package/dist/types/exports/wallets/embedded.d.ts +1 -1
- package/dist/types/exports/wallets/embedded.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.d.ts.map +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts +1 -1
- package/dist/types/exports/wallets/in-app.native.d.ts.map +1 -1
- package/dist/types/exports/wallets.d.ts +1 -1
- package/dist/types/exports/wallets.d.ts.map +1 -1
- package/dist/types/exports/wallets.native.d.ts +1 -1
- package/dist/types/exports/wallets.native.d.ts.map +1 -1
- package/dist/types/extensions/erc1155/write/mintAdditionalSupplyTo.d.ts.map +1 -1
- package/dist/types/react/core/utils/walletIcon.d.ts +0 -3
- package/dist/types/react/core/utils/walletIcon.d.ts.map +1 -1
- package/dist/types/react/native/ui/components/WalletImage.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/MenuButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletTypeRowButton.d.ts +2 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletTypeRowButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/icons/EmailIcon.d.ts +6 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/EmailIcon.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/GuestIcon.d.ts +6 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/GuestIcon.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/PhoneIcon.d.ts +6 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/PhoneIcon.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/types.d.ts +1 -0
- package/dist/types/react/web/ui/ConnectWallet/icons/types.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/WalletImage.d.ts.map +1 -1
- package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts +1 -0
- package/dist/types/react/web/wallets/in-app/WalletAuth.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +3 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/de.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/de.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/en.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/en.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/es.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/es.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/fr.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/fr.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/ja.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/ja.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/kr.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/kr.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/tl.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/tl.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/types.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/types.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/vi.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/vi.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/ecosystem/get-ecosystem-wallet-auth-options.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts +2 -2
- package/dist/types/wallets/in-app/core/authentication/getLoginPath.d.ts.map +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts +1 -1
- package/dist/types/wallets/in-app/core/authentication/types.d.ts.map +1 -1
- package/dist/types/wallets/types.d.ts +1 -1
- package/dist/types/wallets/types.d.ts.map +1 -1
- package/package.json +19 -19
- package/src/exports/pay.ts +3 -3
- package/src/exports/react.native.ts +3 -3
- package/src/exports/react.ts +5 -5
- package/src/exports/thirdweb.ts +3 -3
- package/src/exports/wallets/embedded.ts +1 -1
- package/src/exports/wallets/in-app.native.ts +1 -1
- package/src/exports/wallets/in-app.ts +1 -1
- package/src/exports/wallets.native.ts +1 -1
- package/src/exports/wallets.ts +1 -1
- package/src/extensions/erc1155/drop1155.test.ts +164 -34
- package/src/extensions/erc1155/drops/read/getActiveClaimCondition.test.ts +0 -90
- package/src/extensions/erc1155/write/mintAdditionalSupplyTo.ts +1 -7
- package/src/extensions/prebuilts/deploy-erc1155.test.ts +5 -5
- package/src/extensions/prebuilts/deploy-pack.test.ts +4 -2
- package/src/react/core/utils/walletIcon.ts +3 -3
- package/src/react/native/ui/components/WalletImage.tsx +3 -1
- package/src/react/web/ui/ConnectWallet/MenuButton.tsx +0 -3
- package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/WalletTypeRowButton.tsx +4 -17
- package/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx +30 -0
- package/src/react/web/ui/ConnectWallet/icons/FingerPrintIcon.tsx +9 -9
- package/src/react/web/ui/ConnectWallet/icons/GuestIcon.tsx +24 -0
- package/src/react/web/ui/ConnectWallet/icons/OutlineWalletIcon.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/icons/PhoneIcon.tsx +32 -0
- package/src/react/web/ui/ConnectWallet/icons/types.ts +1 -1
- package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +10 -1
- package/src/react/web/ui/components/WalletImage.tsx +48 -21
- package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +1 -0
- package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +1 -0
- package/src/react/web/wallets/in-app/WalletAuth.tsx +34 -12
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +30 -14
- package/src/react/web/wallets/shared/locale/de.ts +1 -0
- package/src/react/web/wallets/shared/locale/en.ts +1 -0
- package/src/react/web/wallets/shared/locale/es.ts +1 -0
- package/src/react/web/wallets/shared/locale/fr.ts +1 -0
- package/src/react/web/wallets/shared/locale/ja.ts +1 -0
- package/src/react/web/wallets/shared/locale/kr.ts +1 -0
- package/src/react/web/wallets/shared/locale/tl.ts +1 -0
- package/src/react/web/wallets/shared/locale/types.ts +1 -0
- package/src/react/web/wallets/shared/locale/vi.ts +1 -0
- package/src/version.ts +1 -1
- package/src/wallets/ecosystem/get-ecosystem-wallet-auth-options.ts +6 -0
- package/src/wallets/in-app/core/authentication/getLoginPath.ts +4 -4
- package/src/wallets/in-app/core/authentication/types.ts +1 -1
- package/src/wallets/types.ts +1 -0
- package/src/extensions/erc1155/drops/write/claimTo.test.ts +0 -185
- package/src/extensions/erc1155/drops/write/updateMetadata.test.ts +0 -54
@@ -1,19 +1,15 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../../../client/client.js";
|
2
|
-
import {
|
3
|
-
iconSize,
|
4
|
-
radius,
|
5
|
-
spacing,
|
6
|
-
} from "../../../core/design-system/index.js";
|
2
|
+
import { iconSize, spacing } from "../../../core/design-system/index.js";
|
7
3
|
import { Text } from "../../ui/components/text.js";
|
8
|
-
import { Img } from "../components/Img.js";
|
9
4
|
import { Container } from "../components/basic.js";
|
10
5
|
import { Button } from "../components/buttons.js";
|
6
|
+
import type { IconFC } from "./icons/types.js";
|
11
7
|
|
12
8
|
type WalletTypeRowProps = {
|
13
9
|
client: ThirdwebClient;
|
14
10
|
onClick: () => void;
|
15
11
|
title: string;
|
16
|
-
icon:
|
12
|
+
icon: IconFC;
|
17
13
|
disabled?: boolean;
|
18
14
|
};
|
19
15
|
|
@@ -33,16 +29,7 @@ export function WalletTypeRowButton(props: WalletTypeRowProps) {
|
|
33
29
|
disabled={props.disabled}
|
34
30
|
>
|
35
31
|
<Container flex="row" gap="sm" center="y" color="accentText">
|
36
|
-
<
|
37
|
-
client={props.client}
|
38
|
-
src={props.icon}
|
39
|
-
width={iconSize.md}
|
40
|
-
height={iconSize.md}
|
41
|
-
loading="eager"
|
42
|
-
style={{
|
43
|
-
borderRadius: radius.md,
|
44
|
-
}}
|
45
|
-
/>
|
32
|
+
<props.icon size={iconSize.md} />
|
46
33
|
<Text color="primaryText">{props.title}</Text>
|
47
34
|
</Container>
|
48
35
|
</Button>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { IconFC } from "./types.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export const EmailIcon: IconFC = (props) => {
|
7
|
+
return (
|
8
|
+
<svg
|
9
|
+
width={props.size}
|
10
|
+
height={props.size}
|
11
|
+
viewBox="0 0 16 16"
|
12
|
+
fill="none"
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
14
|
+
role="presentation"
|
15
|
+
>
|
16
|
+
<path
|
17
|
+
d="M13.3335 2.6665H2.66683C1.93045 2.6665 1.3335 3.26346 1.3335 3.99984V11.9998C1.3335 12.7362 1.93045 13.3332 2.66683 13.3332H13.3335C14.0699 13.3332 14.6668 12.7362 14.6668 11.9998V3.99984C14.6668 3.26346 14.0699 2.6665 13.3335 2.6665Z"
|
18
|
+
stroke={props.color ?? "currentColor"}
|
19
|
+
strokeLinecap="round"
|
20
|
+
strokeLinejoin="round"
|
21
|
+
/>
|
22
|
+
<path
|
23
|
+
d="M14.6668 4.6665L8.68683 8.4665C8.48101 8.59545 8.24304 8.66384 8.00016 8.66384C7.75728 8.66384 7.51931 8.59545 7.3135 8.4665L1.3335 4.6665"
|
24
|
+
stroke={props.color ?? "currentColor"}
|
25
|
+
strokeLinecap="round"
|
26
|
+
strokeLinejoin="round"
|
27
|
+
/>
|
28
|
+
</svg>
|
29
|
+
);
|
30
|
+
};
|
@@ -11,63 +11,63 @@ export const FingerPrintIcon: IconFC = (props) => {
|
|
11
11
|
>
|
12
12
|
<path
|
13
13
|
d="M18.0001 15C17.2045 15 16.4414 15.3161 15.8788 15.8787C15.3162 16.4413 15.0001 17.2044 15.0001 18C15.0001 19.53 14.8501 21.765 14.6101 24"
|
14
|
-
stroke="currentColor"
|
14
|
+
stroke={props.color ?? "currentColor"}
|
15
15
|
strokeWidth="3"
|
16
16
|
strokeLinecap="round"
|
17
17
|
strokeLinejoin="round"
|
18
18
|
/>
|
19
19
|
<path
|
20
20
|
d="M21.0002 19.6801C21.0002 23.2501 21.0002 29.2501 19.5002 33.0001"
|
21
|
-
stroke="currentColor"
|
21
|
+
stroke={props.color ?? "currentColor"}
|
22
22
|
strokeWidth="3"
|
23
23
|
strokeLinecap="round"
|
24
24
|
strokeLinejoin="round"
|
25
25
|
/>
|
26
26
|
<path
|
27
27
|
d="M25.9348 31.53C26.1148 30.63 26.5798 28.08 26.6848 27"
|
28
|
-
stroke="currentColor"
|
28
|
+
stroke={props.color ?? "currentColor"}
|
29
29
|
strokeWidth="3"
|
30
30
|
strokeLinecap="round"
|
31
31
|
strokeLinejoin="round"
|
32
32
|
/>
|
33
33
|
<path
|
34
34
|
d="M2.99976 18C2.99976 14.8518 3.99032 11.7833 5.83112 9.22935C7.67193 6.67536 10.2697 4.76531 13.2563 3.76975C16.243 2.77419 19.4672 2.74359 22.4723 3.6823C25.4773 4.621 28.1108 6.48141 29.9998 9"
|
35
|
-
stroke="currentColor"
|
35
|
+
stroke={props.color ?? "currentColor"}
|
36
36
|
strokeWidth="3"
|
37
37
|
strokeLinecap="round"
|
38
38
|
strokeLinejoin="round"
|
39
39
|
/>
|
40
40
|
<path
|
41
41
|
d="M2.99976 24H3.01628"
|
42
|
-
stroke="currentColor"
|
42
|
+
stroke={props.color ?? "currentColor"}
|
43
43
|
strokeWidth="3"
|
44
44
|
strokeLinecap="round"
|
45
45
|
strokeLinejoin="round"
|
46
46
|
/>
|
47
47
|
<path
|
48
48
|
d="M32.7 24C33 21 32.8965 15.969 32.7 15"
|
49
|
-
stroke="currentColor"
|
49
|
+
stroke={props.color ?? "currentColor"}
|
50
50
|
strokeWidth="3"
|
51
51
|
strokeLinecap="round"
|
52
52
|
strokeLinejoin="round"
|
53
53
|
/>
|
54
54
|
<path
|
55
55
|
d="M7.49976 29.25C8.24976 27 8.99976 22.5 8.99976 18C8.99824 16.9783 9.17071 15.9638 9.50976 15"
|
56
|
-
stroke="currentColor"
|
56
|
+
stroke={props.color ?? "currentColor"}
|
57
57
|
strokeWidth="3"
|
58
58
|
strokeLinecap="round"
|
59
59
|
strokeLinejoin="round"
|
60
60
|
/>
|
61
61
|
<path
|
62
62
|
d="M12.9751 33C13.2901 32.01 13.6501 31.02 13.8301 30"
|
63
|
-
stroke="currentColor"
|
63
|
+
stroke={props.color ?? "currentColor"}
|
64
64
|
strokeWidth="3"
|
65
65
|
strokeLinecap="round"
|
66
66
|
strokeLinejoin="round"
|
67
67
|
/>
|
68
68
|
<path
|
69
69
|
d="M13.5 10.2C14.8686 9.40988 16.4211 8.99401 18.0014 8.99426C19.5818 8.99452 21.1342 9.41088 22.5025 10.2015C23.8708 10.9921 25.0069 12.129 25.7964 13.498C26.5859 14.867 27.001 16.4197 27 18V21"
|
70
|
-
stroke="currentColor"
|
70
|
+
stroke={props.color ?? "currentColor"}
|
71
71
|
strokeWidth="3"
|
72
72
|
strokeLinecap="round"
|
73
73
|
strokeLinejoin="round"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { IconFC } from "./types.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export const GuestIcon: IconFC = (props) => {
|
7
|
+
return (
|
8
|
+
<svg
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
10
|
+
width={props.size}
|
11
|
+
height={props.size}
|
12
|
+
viewBox="0 0 24 24"
|
13
|
+
fill="none"
|
14
|
+
stroke={props.color ?? "currentColor"}
|
15
|
+
strokeWidth="2"
|
16
|
+
strokeLinecap="round"
|
17
|
+
strokeLinejoin="round"
|
18
|
+
role="presentation"
|
19
|
+
>
|
20
|
+
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
|
21
|
+
<circle cx="12" cy="7" r="4" />
|
22
|
+
</svg>
|
23
|
+
);
|
24
|
+
};
|
@@ -15,14 +15,14 @@ export const OutlineWalletIcon: IconFC = (props) => {
|
|
15
15
|
>
|
16
16
|
<path
|
17
17
|
d="M19 7V4C19 3.73478 18.8946 3.48043 18.7071 3.29289C18.5196 3.10536 18.2652 3 18 3H5C4.46957 3 3.96086 3.21071 3.58579 3.58579C3.21071 3.96086 3 4.46957 3 5C3 5.53043 3.21071 6.03914 3.58579 6.41421C3.96086 6.78929 4.46957 7 5 7H20C20.2652 7 20.5196 7.10536 20.7071 7.29289C20.8946 7.48043 21 7.73478 21 8V12M21 12H18C17.4696 12 16.9609 12.2107 16.5858 12.5858C16.2107 12.9609 16 13.4696 16 14C16 14.5304 16.2107 15.0391 16.5858 15.4142C16.9609 15.7893 17.4696 16 18 16H21C21.2652 16 21.5196 15.8946 21.7071 15.7071C21.8946 15.5196 22 15.2652 22 15V13C22 12.7348 21.8946 12.4804 21.7071 12.2929C21.5196 12.1054 21.2652 12 21 12Z"
|
18
|
-
stroke="currentColor"
|
18
|
+
stroke={props.color ?? "currentColor"}
|
19
19
|
strokeWidth="1.5"
|
20
20
|
strokeLinecap="round"
|
21
21
|
strokeLinejoin="round"
|
22
22
|
/>
|
23
23
|
<path
|
24
24
|
d="M3 5V19C3 19.5304 3.21071 20.0391 3.58579 20.4142C3.96086 20.7893 4.46957 21 5 21H20C20.2652 21 20.5196 20.8946 20.7071 20.7071C20.8946 20.5196 21 20.2652 21 20V16"
|
25
|
-
stroke="currentColor"
|
25
|
+
stroke={props.color ?? "currentColor"}
|
26
26
|
strokeWidth="1.5"
|
27
27
|
strokeLinecap="round"
|
28
28
|
strokeLinejoin="round"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { IconFC } from "./types.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export const PhoneIcon: IconFC = (props) => {
|
7
|
+
return (
|
8
|
+
<svg
|
9
|
+
width={props.size}
|
10
|
+
height={props.size}
|
11
|
+
viewBox="0 0 16 16"
|
12
|
+
fill="none"
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
14
|
+
role="presentation"
|
15
|
+
>
|
16
|
+
<g clipPath="url(#clip0_5639_632)">
|
17
|
+
<path
|
18
|
+
d="M14.6669 11.2802V13.2802C14.6677 13.4659 14.6297 13.6497 14.5553 13.8198C14.4809 13.9899 14.3718 14.1426 14.235 14.2681C14.0982 14.3937 13.9367 14.4892 13.7608 14.5487C13.5849 14.6082 13.3985 14.6303 13.2136 14.6136C11.1622 14.3907 9.19161 13.6897 7.46028 12.5669C5.8495 11.5433 4.48384 10.1777 3.46028 8.56689C2.3336 6.8277 1.63244 4.84756 1.41361 2.78689C1.39695 2.60254 1.41886 2.41673 1.47795 2.24131C1.53703 2.06589 1.63199 1.90469 1.75679 1.76797C1.88159 1.63126 2.03348 1.52203 2.20281 1.44724C2.37213 1.37245 2.55517 1.33374 2.74028 1.33356H4.74028C5.06382 1.33038 5.37748 1.44495 5.62279 1.65592C5.8681 1.86689 6.02833 2.15986 6.07361 2.48023C6.15803 3.12027 6.31458 3.74871 6.54028 4.35356C6.62998 4.59218 6.64939 4.8515 6.59622 5.10081C6.54305 5.35012 6.41952 5.57897 6.24028 5.76023L5.39361 6.60689C6.34265 8.27592 7.72458 9.65786 9.39361 10.6069L10.2403 9.76023C10.4215 9.58099 10.6504 9.45746 10.8997 9.40429C11.149 9.35112 11.4083 9.37053 11.6469 9.46023C12.2518 9.68593 12.8802 9.84248 13.5203 9.92689C13.8441 9.97258 14.1399 10.1357 14.3513 10.3852C14.5627 10.6348 14.6751 10.9533 14.6669 11.2802Z"
|
19
|
+
stroke={props.color ?? "currentColor"}
|
20
|
+
strokeWidth="1.33333"
|
21
|
+
strokeLinecap="round"
|
22
|
+
strokeLinejoin="round"
|
23
|
+
/>
|
24
|
+
</g>
|
25
|
+
<defs>
|
26
|
+
<clipPath id="clip0_5639_632">
|
27
|
+
<rect width="16" height="16" fill="white" />
|
28
|
+
</clipPath>
|
29
|
+
</defs>
|
30
|
+
</svg>
|
31
|
+
);
|
32
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export type IconFC = React.FC<{ size: string }>;
|
1
|
+
export type IconFC = React.FC<{ size: string; color?: string }>;
|
@@ -14,6 +14,9 @@ import { Text } from "../../components/text.js";
|
|
14
14
|
import { Blobbie } from "../Blobbie.js";
|
15
15
|
import { MenuButton } from "../MenuButton.js";
|
16
16
|
import { AddUserIcon } from "../icons/AddUserIcon.js";
|
17
|
+
import { EmailIcon } from "../icons/EmailIcon.js";
|
18
|
+
import { FingerPrintIcon } from "../icons/FingerPrintIcon.js";
|
19
|
+
import { PhoneIcon } from "../icons/PhoneIcon.js";
|
17
20
|
import type { ConnectLocale } from "../locale/types.js";
|
18
21
|
import type { WalletDetailsModalScreen } from "./types.js";
|
19
22
|
|
@@ -84,7 +87,7 @@ export function LinkedProfilesScreen(props: {
|
|
84
87
|
fontSize: fontSize.sm,
|
85
88
|
}}
|
86
89
|
>
|
87
|
-
<AddUserIcon size={iconSize.
|
90
|
+
<AddUserIcon size={iconSize.lg} />
|
88
91
|
<Text color="primaryText">
|
89
92
|
{props.locale.manageWallet.linkProfile}
|
90
93
|
</Text>
|
@@ -147,6 +150,12 @@ function LinkedProfile({
|
|
147
150
|
>
|
148
151
|
<Blobbie address={profile.details.address} size={32} />
|
149
152
|
</Container>
|
153
|
+
) : profile.type === "passkey" ? (
|
154
|
+
<FingerPrintIcon size={iconSize.lg} />
|
155
|
+
) : profile.type === "email" ? (
|
156
|
+
<EmailIcon size={iconSize.lg} />
|
157
|
+
) : profile.type === "phone" ? (
|
158
|
+
<PhoneIcon size={iconSize.lg} />
|
150
159
|
) : (
|
151
160
|
<Img
|
152
161
|
src={getSocialIcon(profile.type)}
|
@@ -4,7 +4,9 @@ import type { ThirdwebClient } from "../../../../client/client.js";
|
|
4
4
|
import { webLocalStorage } from "../../../../utils/storage/webStorage.js";
|
5
5
|
import { getWalletInfo } from "../../../../wallets/__generated__/getWalletInfo.js";
|
6
6
|
import { getInstalledWalletProviders } from "../../../../wallets/injected/mipdStore.js";
|
7
|
+
import type { AuthOption } from "../../../../wallets/types.js";
|
7
8
|
import type { WalletId } from "../../../../wallets/wallet-types.js";
|
9
|
+
import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js";
|
8
10
|
import { radius } from "../../../core/design-system/index.js";
|
9
11
|
import { useActiveWallet } from "../../../core/hooks/wallets/useActiveWallet.js";
|
10
12
|
import { getLastAuthProvider } from "../../../core/utils/storage.js";
|
@@ -13,8 +15,15 @@ import {
|
|
13
15
|
genericWalletIcon,
|
14
16
|
getSocialIcon,
|
15
17
|
} from "../../../core/utils/walletIcon.js";
|
18
|
+
import { EmailIcon } from "../ConnectWallet/icons/EmailIcon.js";
|
19
|
+
import { FingerPrintIcon } from "../ConnectWallet/icons/FingerPrintIcon.js";
|
20
|
+
import { GuestIcon } from "../ConnectWallet/icons/GuestIcon.js";
|
21
|
+
import { OutlineWalletIcon } from "../ConnectWallet/icons/OutlineWalletIcon.js";
|
22
|
+
import { PhoneIcon } from "../ConnectWallet/icons/PhoneIcon.js";
|
16
23
|
import { Img } from "./Img.js";
|
17
24
|
|
25
|
+
type WalletImageState = { uri: string; authProvider?: AuthOption };
|
26
|
+
|
18
27
|
/**
|
19
28
|
* @internal
|
20
29
|
*/
|
@@ -24,7 +33,8 @@ export function WalletImage(props: {
|
|
24
33
|
client: ThirdwebClient;
|
25
34
|
style?: React.CSSProperties;
|
26
35
|
}) {
|
27
|
-
const
|
36
|
+
const theme = useCustomTheme();
|
37
|
+
const [image, setImage] = useState<WalletImageState | undefined>(undefined);
|
28
38
|
const activeWallet = useActiveWallet();
|
29
39
|
useEffect(() => {
|
30
40
|
async function fetchImage() {
|
@@ -33,7 +43,7 @@ export function WalletImage(props: {
|
|
33
43
|
// show the admin EOA icon for smart
|
34
44
|
const storage = webLocalStorage;
|
35
45
|
const activeEOAId = props.id;
|
36
|
-
let image:
|
46
|
+
let image: WalletImageState | undefined;
|
37
47
|
|
38
48
|
if (
|
39
49
|
activeEOAId === "inApp" &&
|
@@ -43,17 +53,22 @@ export function WalletImage(props: {
|
|
43
53
|
// when showing an active wallet icon - check last auth provider and override the IAW icon
|
44
54
|
const lastAuthProvider = await getLastAuthProvider(storage);
|
45
55
|
image = lastAuthProvider
|
46
|
-
?
|
47
|
-
|
56
|
+
? {
|
57
|
+
uri: getSocialIcon(lastAuthProvider),
|
58
|
+
authProvider: lastAuthProvider as AuthOption,
|
59
|
+
}
|
60
|
+
: { uri: "", authProvider: "wallet" };
|
48
61
|
} else {
|
49
62
|
const mipdImage = getInstalledWalletProviders().find(
|
50
63
|
(x) => x.info.rdns === activeEOAId,
|
51
64
|
)?.info.icon;
|
52
65
|
|
53
66
|
if (mipdImage) {
|
54
|
-
image = mipdImage;
|
67
|
+
image = { uri: mipdImage };
|
55
68
|
} else {
|
56
|
-
image =
|
69
|
+
image = {
|
70
|
+
uri: await getWalletInfo(activeEOAId, true),
|
71
|
+
};
|
57
72
|
}
|
58
73
|
}
|
59
74
|
|
@@ -62,10 +77,34 @@ export function WalletImage(props: {
|
|
62
77
|
fetchImage();
|
63
78
|
}, [props.id, activeWallet]);
|
64
79
|
|
65
|
-
if (image) {
|
80
|
+
if (image?.authProvider === "email") {
|
81
|
+
return <EmailIcon size={props.size} color={theme.colors.accentText} />;
|
82
|
+
}
|
83
|
+
|
84
|
+
if (image?.authProvider === "phone") {
|
85
|
+
return <PhoneIcon size={props.size} color={theme.colors.accentText} />;
|
86
|
+
}
|
87
|
+
|
88
|
+
if (image?.authProvider === "passkey") {
|
89
|
+
return (
|
90
|
+
<FingerPrintIcon size={props.size} color={theme.colors.accentText} />
|
91
|
+
);
|
92
|
+
}
|
93
|
+
|
94
|
+
if (image?.authProvider === "wallet") {
|
95
|
+
return (
|
96
|
+
<OutlineWalletIcon size={props.size} color={theme.colors.accentText} />
|
97
|
+
);
|
98
|
+
}
|
99
|
+
|
100
|
+
if (image?.authProvider === "guest") {
|
101
|
+
return <GuestIcon size={props.size} color={theme.colors.accentText} />;
|
102
|
+
}
|
103
|
+
|
104
|
+
if (image?.uri) {
|
66
105
|
return (
|
67
106
|
<Img
|
68
|
-
src={image}
|
107
|
+
src={image.uri}
|
69
108
|
width={props.size}
|
70
109
|
height={props.size}
|
71
110
|
loading="eager"
|
@@ -101,17 +140,5 @@ function WalletImageQuery(props: {
|
|
101
140
|
);
|
102
141
|
}
|
103
142
|
|
104
|
-
return
|
105
|
-
<Img
|
106
|
-
client={props.client}
|
107
|
-
src={walletImage.isLoading ? undefined : walletImage.data}
|
108
|
-
fallbackImage={genericWalletIcon}
|
109
|
-
width={props.size}
|
110
|
-
height={props.size}
|
111
|
-
loading="eager"
|
112
|
-
style={{
|
113
|
-
borderRadius: radius.md,
|
114
|
-
}}
|
115
|
-
/>
|
116
|
-
);
|
143
|
+
return <OutlineWalletIcon size={props.size} />;
|
117
144
|
}
|
@@ -28,6 +28,7 @@ export function WalletAuth(props: {
|
|
28
28
|
inAppLocale: InAppWalletLocale;
|
29
29
|
onBack: () => void;
|
30
30
|
walletConnect: { projectId?: string } | undefined;
|
31
|
+
isLinking: boolean;
|
31
32
|
meta?: {
|
32
33
|
title?: string;
|
33
34
|
titleIconUrl?: string;
|
@@ -61,16 +62,25 @@ export function WalletAuth(props: {
|
|
61
62
|
setStatus("loading");
|
62
63
|
walletToConnect.current = walletToLink;
|
63
64
|
try {
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
65
|
+
if (props.isLinking) {
|
66
|
+
await linkProfile({
|
67
|
+
client: props.client,
|
68
|
+
strategy: "wallet",
|
69
|
+
wallet: walletToLink,
|
70
|
+
chain: wallet.getChain() || defineChain(1),
|
71
|
+
ecosystem,
|
72
|
+
}).catch((e) => {
|
73
|
+
setError(e.message);
|
74
|
+
throw e;
|
75
|
+
});
|
76
|
+
} else {
|
77
|
+
await wallet.connect({
|
78
|
+
client: props.client,
|
79
|
+
strategy: "wallet",
|
80
|
+
wallet: walletToLink,
|
81
|
+
chain: walletToLink.getChain() || defineChain(1),
|
82
|
+
});
|
83
|
+
}
|
74
84
|
addConnectedWallet(walletToLink);
|
75
85
|
done();
|
76
86
|
} catch {
|
@@ -121,7 +131,12 @@ export function WalletAuth(props: {
|
|
121
131
|
size={props.size}
|
122
132
|
meta={props.meta || {}}
|
123
133
|
walletConnect={props.walletConnect}
|
124
|
-
modalHeader={{
|
134
|
+
modalHeader={{
|
135
|
+
title: props.isLinking
|
136
|
+
? props.inAppLocale.linkWallet
|
137
|
+
: props.inAppLocale.signInWithWallet,
|
138
|
+
onBack: back,
|
139
|
+
}}
|
125
140
|
walletIdsToHide={["inApp"]}
|
126
141
|
disableSelectionDataReset={true}
|
127
142
|
/>
|
@@ -131,7 +146,14 @@ export function WalletAuth(props: {
|
|
131
146
|
return (
|
132
147
|
<Container animate="fadein" fullHeight flex="column">
|
133
148
|
<Container p="lg">
|
134
|
-
<ModalHeader
|
149
|
+
<ModalHeader
|
150
|
+
title={
|
151
|
+
props.isLinking
|
152
|
+
? props.inAppLocale.linkWallet
|
153
|
+
: props.inAppLocale.signInWithWallet
|
154
|
+
}
|
155
|
+
onBack={back}
|
156
|
+
/>
|
135
157
|
</Container>
|
136
158
|
|
137
159
|
<Container
|
@@ -24,15 +24,14 @@ import {
|
|
24
24
|
spacing,
|
25
25
|
} from "../../../core/design-system/index.js";
|
26
26
|
import { setLastAuthProvider } from "../../../core/utils/storage.js";
|
27
|
-
import {
|
28
|
-
emailIcon,
|
29
|
-
getSocialIcon,
|
30
|
-
passkeyIcon,
|
31
|
-
phoneIcon,
|
32
|
-
socialIcons,
|
33
|
-
} from "../../../core/utils/walletIcon.js";
|
27
|
+
import { socialIcons } from "../../../core/utils/walletIcon.js";
|
34
28
|
import { useSetSelectionData } from "../../providers/wallet-ui-states-provider.js";
|
35
29
|
import { WalletTypeRowButton } from "../../ui/ConnectWallet/WalletTypeRowButton.js";
|
30
|
+
import { EmailIcon } from "../../ui/ConnectWallet/icons/EmailIcon.js";
|
31
|
+
import { FingerPrintIcon } from "../../ui/ConnectWallet/icons/FingerPrintIcon.js";
|
32
|
+
import { GuestIcon } from "../../ui/ConnectWallet/icons/GuestIcon.js";
|
33
|
+
import { OutlineWalletIcon } from "../../ui/ConnectWallet/icons/OutlineWalletIcon.js";
|
34
|
+
import { PhoneIcon } from "../../ui/ConnectWallet/icons/PhoneIcon.js";
|
36
35
|
import { Img } from "../../ui/components/Img.js";
|
37
36
|
import { Spacer } from "../../ui/components/Spacer.js";
|
38
37
|
import { TextDivider } from "../../ui/components/TextDivider.js";
|
@@ -57,7 +56,9 @@ export type ConnectWalletSelectUIState =
|
|
57
56
|
connectionPromise: Promise<Account | Profile[]>;
|
58
57
|
};
|
59
58
|
passkeyLogin?: boolean;
|
60
|
-
walletLogin?:
|
59
|
+
walletLogin?: {
|
60
|
+
linking: boolean;
|
61
|
+
};
|
61
62
|
};
|
62
63
|
|
63
64
|
const defaultAuthOptions: AuthOption[] = [
|
@@ -186,6 +187,7 @@ export const ConnectWalletSocialOptions = (
|
|
186
187
|
|
187
188
|
const passKeyEnabled = authOptions.includes("passkey");
|
188
189
|
const guestEnabled = authOptions.includes("guest");
|
190
|
+
const siweEnabled = authOptions.includes("wallet");
|
189
191
|
|
190
192
|
const placeholder =
|
191
193
|
inputMode === "email" ? locale.emailPlaceholder : locale.phonePlaceholder;
|
@@ -306,7 +308,9 @@ export const ConnectWalletSocialOptions = (
|
|
306
308
|
|
307
309
|
function handleWalletLogin() {
|
308
310
|
setData({
|
309
|
-
walletLogin:
|
311
|
+
walletLogin: {
|
312
|
+
linking: props.isLinking || false,
|
313
|
+
},
|
310
314
|
});
|
311
315
|
props.select();
|
312
316
|
}
|
@@ -408,7 +412,7 @@ export const ConnectWalletSocialOptions = (
|
|
408
412
|
) : (
|
409
413
|
<WalletTypeRowButton
|
410
414
|
client={props.client}
|
411
|
-
icon={
|
415
|
+
icon={EmailIcon}
|
412
416
|
onClick={() => {
|
413
417
|
setManualInputMode("email");
|
414
418
|
}}
|
@@ -446,7 +450,7 @@ export const ConnectWalletSocialOptions = (
|
|
446
450
|
) : (
|
447
451
|
<WalletTypeRowButton
|
448
452
|
client={props.client}
|
449
|
-
icon={
|
453
|
+
icon={PhoneIcon}
|
450
454
|
onClick={() => {
|
451
455
|
setManualInputMode("phone");
|
452
456
|
}}
|
@@ -458,7 +462,7 @@ export const ConnectWalletSocialOptions = (
|
|
458
462
|
{passKeyEnabled && (
|
459
463
|
<WalletTypeRowButton
|
460
464
|
client={props.client}
|
461
|
-
icon={
|
465
|
+
icon={FingerPrintIcon}
|
462
466
|
onClick={() => {
|
463
467
|
handlePassKeyLogin();
|
464
468
|
}}
|
@@ -467,11 +471,23 @@ export const ConnectWalletSocialOptions = (
|
|
467
471
|
/>
|
468
472
|
)}
|
469
473
|
|
474
|
+
{/* SIWE login */}
|
475
|
+
{siweEnabled && (
|
476
|
+
<WalletTypeRowButton
|
477
|
+
client={props.client}
|
478
|
+
icon={OutlineWalletIcon}
|
479
|
+
onClick={() => {
|
480
|
+
handleWalletLogin();
|
481
|
+
}}
|
482
|
+
title={locale.signInWithWallet}
|
483
|
+
/>
|
484
|
+
)}
|
485
|
+
|
470
486
|
{/* Guest login */}
|
471
487
|
{guestEnabled && (
|
472
488
|
<WalletTypeRowButton
|
473
489
|
client={props.client}
|
474
|
-
icon={
|
490
|
+
icon={GuestIcon}
|
475
491
|
onClick={() => {
|
476
492
|
handleGuestLogin();
|
477
493
|
}}
|
@@ -483,7 +499,7 @@ export const ConnectWalletSocialOptions = (
|
|
483
499
|
{props.isLinking && (
|
484
500
|
<WalletTypeRowButton
|
485
501
|
client={props.client}
|
486
|
-
icon={
|
502
|
+
icon={OutlineWalletIcon}
|
487
503
|
onClick={() => {
|
488
504
|
handleWalletLogin();
|
489
505
|
}}
|
@@ -55,6 +55,7 @@ export default {
|
|
55
55
|
signInWithPhone: "Sign in with phone number",
|
56
56
|
phoneRequired: "Phone number is required",
|
57
57
|
passkey: "Passkey",
|
58
|
+
signInWithWallet: "Sign in with Wallet",
|
58
59
|
linkWallet: "Link a Wallet",
|
59
60
|
loginAsGuest: "Continue as guest",
|
60
61
|
} satisfies InAppWalletLocale;
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.64.
|
1
|
+
export const version = "5.64.1";
|