thirdweb 5.30.0-nightly-e7434891354f351d2a399daebdddae9cf1fc817b-20240623000619 → 5.30.0-nightly-3979ff0238ae9b3a0a216e6c2d562eb7206a9fe8-20240626085813
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/auth/verifySignature.js +15 -1
- package/dist/cjs/auth/verifySignature.js.map +1 -1
- package/dist/cjs/exports/extensions/erc1155.js +3 -1
- package/dist/cjs/exports/extensions/erc1155.js.map +1 -1
- package/dist/cjs/exports/transaction.js +3 -1
- package/dist/cjs/exports/transaction.js.map +1 -1
- package/dist/cjs/react/core/design-system/index.js +2 -0
- package/dist/cjs/react/core/design-system/index.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +12 -24
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +4 -6
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +12 -14
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +31 -28
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js +7 -5
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +15 -17
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +11 -13
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js +1 -4
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js +4 -6
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +8 -11
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js +1 -3
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js +5 -9
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
- package/dist/cjs/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js +24 -30
- package/dist/cjs/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +114 -86
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js +25 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +7 -3
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +4 -11
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js +3 -16
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js +0 -3
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +4 -6
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/utils.js +7 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/utils.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -4
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js +7 -9
- package/dist/cjs/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/useConnectModal.js +23 -27
- package/dist/cjs/react/web/ui/ConnectWallet/useConnectModal.js.map +1 -1
- package/dist/cjs/react/web/ui/PayEmbed.js +1 -0
- package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/components/ChainName.js +12 -1
- package/dist/cjs/react/web/ui/components/ChainName.js.map +1 -1
- package/dist/cjs/react/web/ui/components/basic.js +1 -1
- package/dist/cjs/react/web/ui/components/basic.js.map +1 -1
- package/dist/cjs/react/web/ui/components/buttons.js +6 -0
- package/dist/cjs/react/web/ui/components/buttons.js.map +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +6 -8
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +5 -7
- package/dist/cjs/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js +6 -8
- package/dist/cjs/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js +8 -11
- package/dist/cjs/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js +5 -7
- package/dist/cjs/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/in-app/useInAppWalletLocale.js +5 -5
- package/dist/cjs/react/web/wallets/in-app/useInAppWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/CoinbaseSDKConnection.js +4 -6
- package/dist/cjs/react/web/wallets/shared/CoinbaseSDKConnection.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +7 -9
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js +3 -5
- package/dist/cjs/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/GetStartedScreen.js +4 -6
- package/dist/cjs/react/web/wallets/shared/GetStartedScreen.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js +8 -10
- package/dist/cjs/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js +2 -4
- package/dist/cjs/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js +3 -6
- package/dist/cjs/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/WalletConnectConnection.js +24 -27
- package/dist/cjs/react/web/wallets/shared/WalletConnectConnection.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js +2 -2
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/cjs/react/web/wallets/walletConnect/locale.js +3 -3
- package/dist/cjs/react/web/wallets/walletConnect/locale.js.map +1 -1
- package/dist/cjs/transaction/actions/gasless/send-gasless-transaction.js +14 -4
- package/dist/cjs/transaction/actions/gasless/send-gasless-transaction.js.map +1 -1
- package/dist/cjs/transaction/actions/send-transaction.js +7 -0
- package/dist/cjs/transaction/actions/send-transaction.js.map +1 -1
- package/dist/cjs/transaction/transaction-store.js +33 -0
- package/dist/cjs/transaction/transaction-store.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/in-app/web/utils/Storage/LocalStorage.js.map +1 -1
- package/dist/cjs/wallets/wallet-connect/controller.js +7 -3
- package/dist/cjs/wallets/wallet-connect/controller.js.map +1 -1
- package/dist/esm/auth/verifySignature.js +15 -1
- package/dist/esm/auth/verifySignature.js.map +1 -1
- package/dist/esm/exports/extensions/erc1155.js +1 -0
- package/dist/esm/exports/extensions/erc1155.js.map +1 -1
- package/dist/esm/exports/transaction.js +1 -0
- package/dist/esm/exports/transaction.js.map +1 -1
- package/dist/esm/react/core/design-system/index.js +2 -0
- package/dist/esm/react/core/design-system/index.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +12 -24
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js +4 -6
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AllWalletsUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js +12 -14
- package/dist/esm/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +31 -28
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js +7 -5
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModal.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +16 -18
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js +11 -13
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalInline.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js +1 -4
- package/dist/esm/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js +4 -6
- package/dist/esm/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js +8 -11
- package/dist/esm/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js +1 -3
- package/dist/esm/react/web/ui/ConnectWallet/Modal/TOS.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js +5 -9
- package/dist/esm/react/web/ui/ConnectWallet/Modal/screen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/NetworkSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js +2 -4
- package/dist/esm/react/web/ui/ConnectWallet/WalletEntryButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js +24 -30
- package/dist/esm/react/web/ui/ConnectWallet/WalletSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +115 -87
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js +22 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js +7 -3
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +4 -11
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js +3 -16
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js +0 -3
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js +4 -6
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/utils.js +4 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/utils.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +2 -4
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js +7 -9
- package/dist/esm/react/web/ui/ConnectWallet/screens/StartScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/TokenSelector.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/useConnectModal.js +23 -27
- package/dist/esm/react/web/ui/ConnectWallet/useConnectModal.js.map +1 -1
- package/dist/esm/react/web/ui/PayEmbed.js +1 -0
- package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/components/ChainName.js +12 -1
- package/dist/esm/react/web/ui/components/ChainName.js.map +1 -1
- package/dist/esm/react/web/ui/components/basic.js +1 -1
- package/dist/esm/react/web/ui/components/basic.js.map +1 -1
- package/dist/esm/react/web/ui/components/buttons.js +6 -0
- package/dist/esm/react/web/ui/components/buttons.js.map +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js +7 -9
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js +5 -7
- package/dist/esm/react/web/wallets/ecosystem/EcosystemWalletFormUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js +7 -9
- package/dist/esm/react/web/wallets/in-app/InAppWalletConnectUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js +8 -11
- package/dist/esm/react/web/wallets/in-app/InAppWalletFormUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js +6 -8
- package/dist/esm/react/web/wallets/in-app/InAppWalletSelectionUI.js.map +1 -1
- package/dist/esm/react/web/wallets/in-app/useInAppWalletLocale.js +5 -5
- package/dist/esm/react/web/wallets/in-app/useInAppWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/CoinbaseSDKConnection.js +4 -6
- package/dist/esm/react/web/wallets/shared/CoinbaseSDKConnection.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +7 -9
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/ConnectingScreen.js +3 -5
- package/dist/esm/react/web/wallets/shared/ConnectingScreen.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/GetStartedScreen.js +4 -6
- package/dist/esm/react/web/wallets/shared/GetStartedScreen.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js +8 -10
- package/dist/esm/react/web/wallets/shared/OTPLoginUI.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js +2 -4
- package/dist/esm/react/web/wallets/shared/PassKeyLogin.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/SocialLogin.js +3 -6
- package/dist/esm/react/web/wallets/shared/SocialLogin.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/WalletConnectConnection.js +24 -27
- package/dist/esm/react/web/wallets/shared/WalletConnectConnection.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js +1 -1
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/esm/react/web/wallets/walletConnect/locale.js +3 -3
- package/dist/esm/react/web/wallets/walletConnect/locale.js.map +1 -1
- package/dist/esm/transaction/actions/gasless/send-gasless-transaction.js +14 -4
- package/dist/esm/transaction/actions/gasless/send-gasless-transaction.js.map +1 -1
- package/dist/esm/transaction/actions/send-transaction.js +7 -0
- package/dist/esm/transaction/actions/send-transaction.js.map +1 -1
- package/dist/esm/transaction/transaction-store.js +29 -0
- package/dist/esm/transaction/transaction-store.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/in-app/web/utils/Storage/LocalStorage.js.map +1 -1
- package/dist/esm/wallets/wallet-connect/controller.js +7 -3
- package/dist/esm/wallets/wallet-connect/controller.js.map +1 -1
- package/dist/types/auth/verifySignature.d.ts +0 -20
- package/dist/types/auth/verifySignature.d.ts.map +1 -1
- package/dist/types/exports/extensions/erc1155.d.ts +1 -0
- package/dist/types/exports/extensions/erc1155.d.ts.map +1 -1
- package/dist/types/exports/transaction.d.ts +1 -0
- package/dist/types/exports/transaction.d.ts.map +1 -1
- package/dist/types/react/core/design-system/index.d.ts +2 -0
- package/dist/types/react/core/design-system/index.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButtonProps.d.ts +2 -2
- package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts +7 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/AllWalletsUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts +20 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts +32 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModal.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts +32 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalInline.d.ts +31 -2
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalInline.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts +2 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts +5 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts +20 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts +2 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/TOS.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/screen.d.ts +6 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/screen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/NetworkSelector.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts +6 -0
- package/dist/types/react/web/ui/ConnectWallet/WalletEntryButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts +25 -0
- package/dist/types/react/web/ui/ConnectWallet/WalletSelector.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts +14 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts +9 -5
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/types.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.d.ts +2 -3
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts +2 -2
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts +0 -2
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/utils.d.ts +2 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/utils.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts +13 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/StartScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts +1 -0
- package/dist/types/react/web/ui/ConnectWallet/screens/TokenSelector.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/useConnectModal.d.ts.map +1 -1
- package/dist/types/react/web/ui/PayEmbed.d.ts +1 -0
- package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/ChainName.d.ts +1 -0
- package/dist/types/react/web/ui/components/ChainName.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/basic.d.ts +1 -0
- package/dist/types/react/web/ui/components/basic.d.ts.map +1 -1
- package/dist/types/react/web/ui/components/buttons.d.ts +2 -1
- package/dist/types/react/web/ui/components/buttons.d.ts.map +1 -1
- package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts +16 -0
- package/dist/types/react/web/wallets/ecosystem/EcosystemWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts +16 -2
- package/dist/types/react/web/wallets/ecosystem/EcosystemWalletFormUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts +16 -0
- package/dist/types/react/web/wallets/in-app/InAppWalletConnectUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts +16 -2
- package/dist/types/react/web/wallets/in-app/InAppWalletFormUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts +10 -0
- package/dist/types/react/web/wallets/in-app/InAppWalletSelectionUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/in-app/useInAppWalletLocale.d.ts +3 -2
- package/dist/types/react/web/wallets/in-app/useInAppWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts +6 -1
- package/dist/types/react/web/wallets/shared/CoinbaseSDKConnection.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts +7 -2
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/ConnectingScreen.d.ts +3 -0
- package/dist/types/react/web/wallets/shared/ConnectingScreen.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/GetStartedScreen.d.ts +2 -0
- package/dist/types/react/web/wallets/shared/GetStartedScreen.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts +7 -2
- package/dist/types/react/web/wallets/shared/OTPLoginUI.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts +5 -0
- package/dist/types/react/web/wallets/shared/PassKeyLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/SocialLogin.d.ts +7 -2
- package/dist/types/react/web/wallets/shared/SocialLogin.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/WalletConnectConnection.d.ts +16 -0
- package/dist/types/react/web/wallets/shared/WalletConnectConnection.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts +2 -2
- package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/ja.d.ts.map +1 -1
- 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 -1
- package/dist/types/react/web/wallets/shared/locale/types.d.ts.map +1 -1
- package/dist/types/transaction/actions/gasless/send-gasless-transaction.d.ts.map +1 -1
- package/dist/types/transaction/actions/send-transaction.d.ts.map +1 -1
- package/dist/types/transaction/actions/zksync/getEip721Domain.d.ts +3 -3
- package/dist/types/transaction/prepare-transaction.d.ts +3 -3
- package/dist/types/transaction/transaction-store.d.ts +22 -0
- package/dist/types/transaction/transaction-store.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/in-app/web/utils/Storage/LocalStorage.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/auth/verifySignature.ts +16 -1
- package/src/exports/extensions/erc1155.ts +4 -0
- package/src/exports/transaction.ts +1 -0
- package/src/extensions/airdrop/write/airdropERC1155WithSignature.test.ts +8 -9
- package/src/extensions/airdrop/write/airdropERC20WithSignature.test.ts +9 -10
- package/src/extensions/airdrop/write/airdropERC721WithSignature.test.ts +5 -5
- package/src/extensions/airdrop/write/claimERC1155.test.ts +6 -6
- package/src/extensions/airdrop/write/claimERC20.test.ts +7 -7
- package/src/extensions/airdrop/write/claimERC721.test.ts +6 -6
- package/src/react/core/design-system/index.ts +2 -0
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +35 -33
- package/src/react/web/ui/ConnectWallet/ConnectButtonProps.ts +2 -2
- package/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +13 -6
- package/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx +58 -4
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +97 -38
- package/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx +56 -4
- package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +98 -30
- package/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx +100 -15
- package/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx +3 -5
- package/src/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.tsx +10 -5
- package/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx +43 -10
- package/src/react/web/ui/ConnectWallet/Modal/TOS.tsx +3 -3
- package/src/react/web/ui/ConnectWallet/Modal/screen.tsx +10 -12
- package/src/react/web/ui/ConnectWallet/NetworkSelector.tsx +2 -1
- package/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx +14 -6
- package/src/react/web/ui/ConnectWallet/WalletSelector.tsx +112 -33
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +411 -204
- package/src/react/web/ui/ConnectWallet/screens/Buy/PayTokenIcon.tsx +45 -0
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/CurrencySelection.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx +7 -3
- package/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatTxDetailsTable.tsx +12 -12
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/types.ts +14 -5
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts +6 -15
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useEnabledPaymentMethods.ts +3 -28
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useUISelectionStates.ts +2 -3
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/BuyTokenInput.tsx +4 -6
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/swap/PayWithCrypto.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/BuyTxHistoryButton.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/tx-history/TokenInfoRow.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/utils.ts +3 -0
- package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +2 -3
- package/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx +23 -14
- package/src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx +5 -1
- package/src/react/web/ui/ConnectWallet/useConnectModal.tsx +44 -39
- package/src/react/web/ui/PayEmbed-disconnected.test.tsx +15 -0
- package/src/react/web/ui/PayEmbed.test.tsx +33 -6
- package/src/react/web/ui/PayEmbed.tsx +3 -0
- package/src/react/web/ui/components/ChainName.tsx +18 -1
- package/src/react/web/ui/components/basic.tsx +2 -1
- package/src/react/web/ui/components/buttons.tsx +8 -0
- package/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx +33 -5
- package/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx +25 -12
- package/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx +34 -6
- package/src/react/web/wallets/in-app/InAppWalletFormUI.tsx +44 -23
- package/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx +20 -6
- package/src/react/web/wallets/in-app/useInAppWalletLocale.ts +10 -7
- package/src/react/web/wallets/shared/CoinbaseSDKConnection.tsx +12 -9
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +14 -11
- package/src/react/web/wallets/shared/ConnectingScreen.tsx +7 -5
- package/src/react/web/wallets/shared/GetStartedScreen.tsx +7 -4
- package/src/react/web/wallets/shared/OTPLoginUI.tsx +15 -12
- package/src/react/web/wallets/shared/PassKeyLogin.tsx +5 -4
- package/src/react/web/wallets/shared/SocialLogin.tsx +11 -8
- package/src/react/web/wallets/shared/WalletConnectConnection.tsx +48 -27
- package/src/react/web/wallets/shared/locale/en.ts +2 -2
- package/src/react/web/wallets/shared/locale/es.ts +2 -2
- package/src/react/web/wallets/shared/locale/getConnectLocale.ts +3 -3
- package/src/react/web/wallets/shared/locale/ja.ts +2 -2
- package/src/react/web/wallets/shared/locale/tl.ts +2 -2
- package/src/react/web/wallets/shared/locale/types.ts +1 -1
- package/src/react/web/wallets/walletConnect/locale.ts +3 -3
- package/src/rpc/actions/eth_getLogs.test.ts +3 -2
- package/src/transaction/actions/gasless/send-gasless-transaction.ts +15 -4
- package/src/transaction/actions/send-transaction.test.ts +22 -1
- package/src/transaction/actions/send-transaction.ts +7 -0
- package/src/transaction/actions/zksync/getEip721Domain.ts +4 -4
- package/src/transaction/prepare-transaction.ts +3 -3
- package/src/transaction/transaction-store.test.ts +51 -0
- package/src/transaction/transaction-store.ts +46 -0
- package/src/version.ts +1 -1
- package/src/wallets/in-app/web/utils/Storage/LocalStorage.ts +4 -1
- package/src/wallets/wallet-connect/controller.ts +8 -3
- package/dist/cjs/react/core/hooks/others/useWalletConnectionCtx.js +0 -16
- package/dist/cjs/react/core/hooks/others/useWalletConnectionCtx.js.map +0 -1
- package/dist/cjs/react/core/providers/wallet-connection.js +0 -7
- package/dist/cjs/react/core/providers/wallet-connection.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/icons/CryptoIcon.js +0 -12
- package/dist/cjs/react/web/ui/ConnectWallet/icons/CryptoIcon.js.map +0 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js +0 -44
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js.map +0 -1
- package/dist/esm/react/core/hooks/others/useWalletConnectionCtx.js +0 -13
- package/dist/esm/react/core/hooks/others/useWalletConnectionCtx.js.map +0 -1
- package/dist/esm/react/core/providers/wallet-connection.js +0 -4
- package/dist/esm/react/core/providers/wallet-connection.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/icons/CryptoIcon.js +0 -8
- package/dist/esm/react/web/ui/ConnectWallet/icons/CryptoIcon.js.map +0 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js +0 -41
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.js.map +0 -1
- package/dist/types/react/core/hooks/others/useWalletConnectionCtx.d.ts +0 -29
- package/dist/types/react/core/hooks/others/useWalletConnectionCtx.d.ts.map +0 -1
- package/dist/types/react/core/providers/wallet-connection.d.ts +0 -35
- package/dist/types/react/core/providers/wallet-connection.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/icons/CryptoIcon.d.ts +0 -6
- package/dist/types/react/web/ui/ConnectWallet/icons/CryptoIcon.d.ts.map +0 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.d.ts +0 -8
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.d.ts.map +0 -1
- package/src/react/core/hooks/others/useWalletConnectionCtx.ts +0 -15
- package/src/react/core/providers/wallet-connection.tsx +0 -37
- package/src/react/web/ui/ConnectWallet/icons/CryptoIcon.tsx +0 -50
- package/src/react/web/ui/ConnectWallet/screens/Buy/PaymentSelection.tsx +0 -72
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { keyframes } from "@emotion/react";
|
3
3
|
import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js";
|
4
4
|
import { spacing } from "../../../../core/design-system/index.js";
|
5
|
-
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
|
6
5
|
import { Img } from "../../components/Img.js";
|
7
6
|
import { Spacer } from "../../components/Spacer.js";
|
8
7
|
import { Container } from "../../components/basic.js";
|
@@ -15,25 +14,24 @@ import { GlobeIcon } from "../icons/GlobalIcon.js";
|
|
15
14
|
/**
|
16
15
|
* @internal
|
17
16
|
*/
|
18
|
-
export function StartScreen() {
|
19
|
-
const
|
20
|
-
const WelcomeScreen = connectModal.welcomeScreen;
|
17
|
+
export function StartScreen(props) {
|
18
|
+
const WelcomeScreen = props.welcomeScreen;
|
21
19
|
if (WelcomeScreen) {
|
22
20
|
if (typeof WelcomeScreen === "function") {
|
23
21
|
return _jsx(WelcomeScreen, {});
|
24
22
|
}
|
25
23
|
}
|
26
24
|
const title = (typeof WelcomeScreen === "object" ? WelcomeScreen?.title : undefined) ||
|
27
|
-
|
25
|
+
props.connectLocale.welcomeScreen.defaultTitle;
|
28
26
|
const subtitle = (typeof WelcomeScreen === "object" ? WelcomeScreen?.subtitle : undefined) ||
|
29
|
-
|
27
|
+
props.connectLocale.welcomeScreen.defaultSubtitle;
|
30
28
|
const img = typeof WelcomeScreen === "object" ? WelcomeScreen?.img : undefined;
|
31
|
-
const showTOS =
|
29
|
+
const showTOS = props.meta.termsOfServiceUrl || props.meta.privacyPolicyUrl;
|
32
30
|
return (_jsxs(Container, { fullHeight: true, animate: "fadein", flex: "column", children: [_jsxs(Container, { expand: true, flex: "column", center: "both", style: {
|
33
31
|
minHeight: "300px",
|
34
|
-
}, p: "lg", children: [_jsx(Container, { flex: "row", center: "x", children: img ? (_jsx(Img, { src: img.src, width: img.width ? String(img.width) : undefined, height: img.height ? String(img.height) : undefined, client: client })) : (_jsx(GlobalContainer, { children: _jsx(GlobeIcon, { size: "150" }) })) }), _jsx(Spacer, { y: "xxl" }), _jsx(Text, { center: true, color: "primaryText", weight: 600, multiline: true, children: title }), _jsx(Spacer, { y: "md" }), _jsx(Text, { color: "secondaryText", multiline: true, style: {
|
32
|
+
}, p: "lg", children: [_jsx(Container, { flex: "row", center: "x", children: img ? (_jsx(Img, { src: img.src, width: img.width ? String(img.width) : undefined, height: img.height ? String(img.height) : undefined, client: props.client })) : (_jsx(GlobalContainer, { children: _jsx(GlobeIcon, { size: "150" }) })) }), _jsx(Spacer, { y: "xxl" }), _jsx(Text, { center: true, color: "primaryText", weight: 600, multiline: true, children: title }), _jsx(Spacer, { y: "md" }), _jsx(Text, { color: "secondaryText", multiline: true, style: {
|
35
33
|
textAlign: "center",
|
36
|
-
}, children: subtitle }), _jsx(Spacer, { y: "lg" }), _jsx(Link, { target: "_blank", center: true, href: "https://blog.thirdweb.com/web3-wallet/", children:
|
34
|
+
}, children: subtitle }), _jsx(Spacer, { y: "lg" }), _jsx(Link, { target: "_blank", center: true, href: "https://blog.thirdweb.com/web3-wallet/", children: props.connectLocale.newToWallets })] }), _jsx(Container, { py: "lg", flex: "column", gap: "lg", children: _jsxs("div", { children: [showTOS && (_jsx(TOS, { termsOfServiceUrl: props.meta.termsOfServiceUrl, privacyPolicyUrl: props.meta.privacyPolicyUrl, locale: props.connectLocale.agreement })), props.meta.showThirdwebBranding !== false && (_jsx(Container, { style: {
|
37
35
|
paddingTop: spacing.xl,
|
38
36
|
}, children: _jsx(PoweredByThirdweb, {}) }))] }) })] }));
|
39
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StartScreen.js","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/StartScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;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(props) {
|
|
73
73
|
}
|
74
74
|
return (_jsxs(Container, { animate: "fadein", style: {
|
75
75
|
minHeight: "300px",
|
76
|
-
}, children: [_jsx(Container, { p: "lg", children: _jsx(ModalHeader, { onBack: props.onBack, title: locale.selectTokenTitle }) }), _jsx(Line, {}), _jsxs(Container, { scrollY: true, style: {
|
76
|
+
}, children: [_jsx(Container, { p: "lg", children: _jsx(ModalHeader, { onBack: props.onBack, title: props.modalTitle || locale.selectTokenTitle }) }), _jsx(Line, {}), _jsxs(Container, { scrollY: true, style: {
|
77
77
|
maxHeight: "450px",
|
78
78
|
}, children: [_jsx(Spacer, { y: "md" }), props.chainSelection && (_jsx(_Fragment, { children: _jsxs(Container, { px: "lg", children: [_jsx(Text, { size: "sm", children: "Select Network" }), _jsx(Spacer, { y: "xxs" }), _jsxs(SelectTokenBtn, { fullWidth: true, variant: "secondary", onClick: () => {
|
79
79
|
setScreen("select-chain");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TokenSelector.js","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/TokenSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACvF,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,C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AY;QAC5B,GAAG,EAAE,OAAO,CAAC,EAAE;QACf,OAAO,EAAE,OAAO,CAAC,EAAE;QACnB,SAAS,EAAE;YACT,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB;YAC1C,SAAS,EAAE,aAAa;SACzB;QACD,UAAU,EAAE,6CAA6C;KAC1D,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { useCallback, useContext, useMemo, useState } from "react";
|
3
3
|
import { SetRootElementContext } from "../../../core/providers/RootElementContext.js";
|
4
|
-
import { ConnectUIContext } from "../../../core/providers/wallet-connection.js";
|
5
4
|
import { WalletUIStatesProvider } from "../../providers/wallet-ui-states-provider.js";
|
6
5
|
import { canFitWideModal } from "../../utils/canFitWideModal.js";
|
7
6
|
import { getDefaultWallets } from "../../wallets/defaultWallets.js";
|
@@ -69,31 +68,28 @@ function Modal(props) {
|
|
69
68
|
appMetadata: props.appMetadata,
|
70
69
|
chains: props.chains,
|
71
70
|
}), [props.wallets, props.appMetadata, props.chains]);
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
},
|
96
|
-
onConnect: props.onConnect,
|
97
|
-
}, children: _jsx(WalletUIStatesProvider, { theme: props.theme, isOpen: true, children: _jsx(ConnectModal, { onClose: props.onClose, shouldSetActive: props.setActive === undefined ? true : props.setActive }) }) }));
|
71
|
+
const size = useMemo(() => {
|
72
|
+
return !canFitWideModal() || wallets.length === 1
|
73
|
+
? "compact"
|
74
|
+
: props.size || "wide";
|
75
|
+
}, [props.size, wallets.length]);
|
76
|
+
const meta = useMemo(() => {
|
77
|
+
return {
|
78
|
+
privacyPolicyUrl: props.privacyPolicyUrl,
|
79
|
+
showThirdwebBranding: props.showThirdwebBranding,
|
80
|
+
termsOfServiceUrl: props.termsOfServiceUrl,
|
81
|
+
title: props.title,
|
82
|
+
titleIconUrl: props.titleIcon,
|
83
|
+
};
|
84
|
+
}, [
|
85
|
+
props.privacyPolicyUrl,
|
86
|
+
props.showThirdwebBranding,
|
87
|
+
props.termsOfServiceUrl,
|
88
|
+
props.title,
|
89
|
+
props.titleIcon,
|
90
|
+
]);
|
91
|
+
return (_jsx(WalletUIStatesProvider, { theme: props.theme, isOpen: true, children: _jsx(ConnectModal, { onClose: props.onClose, shouldSetActive: props.setActive === undefined ? true : props.setActive, accountAbstraction: props.accountAbstraction,
|
92
|
+
// TODO: not set up in `useConnectModal` for some reason?
|
93
|
+
auth: undefined, chain: props.chain, client: props.client, connectLocale: props.connectLocale, meta: meta, size: size, welcomeScreen: props.welcomeScreen, isEmbed: false, localeId: props.locale || "en_US", onConnect: props.onConnect, recommendedWallets: props.recommendedWallets, showAllWallets: props.showAllWallets, wallets: wallets, chains: props.chains, walletConnect: props.walletConnect }) }));
|
98
94
|
}
|
99
95
|
//# sourceMappingURL=useConnectModal.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useConnectModal.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/ConnectWallet/useConnectModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"useConnectModal.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/ConnectWallet/useConnectModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AA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AAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,YACtD,KAAC,YAAY,IACX,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,eAAe,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,EACvE,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,yDAAyD;YACzD,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,KAAK,CAAC,MAAM,IAAI,OAAO,EACjC,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAC5C,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,aAAa,EAAE,KAAK,CAAC,aAAa,GAClC,GACqB,CAC1B,CAAC;AACJ,CAAC"}
|
@@ -68,6 +68,7 @@ export function PayEmbed(props) {
|
|
68
68
|
borderStyle: "solid",
|
69
69
|
position: "relative",
|
70
70
|
overflow: "hidden",
|
71
|
+
...props.style,
|
71
72
|
}, borderColor: "borderColor", children: _jsx(DynamicHeight, { children: content }) }) }));
|
72
73
|
}
|
73
74
|
//# sourceMappingURL=PayEmbed.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PayEmbed.js","sourceRoot":"","sources":["../../../../../src/react/web/ui/PayEmbed.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMjC,OAAO,EAAE,mBAAmB,EAAE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AAC,MAAM,EACpB,MAAM,EAAE,GAAG,EAAE;wBACX,SAAS,CAAC,KAAK,CAAC,CAAC;oBACnB,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;wBACX,OAAO;oBACT,CAAC,EACD,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,IAAI,GACb,CACH,IACA,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,YAC/B,KAAC,SAAS,IACR,EAAE,EAAC,SAAS,EACZ,KAAK,EAAE;gBACL,YAAY,EAAE,MAAM,CAAC,EAAE;gBACvB,QAAQ,EAAE,OAAO;gBACjB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,OAAO;gBACpB,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,QAAQ;gBAClB,GAAG,KAAK,CAAC,KAAK;aACf,EACD,WAAW,EAAC,aAAa,YAEzB,KAAC,aAAa,cAAE,OAAO,GAAiB,GAC9B,GACQ,CACvB,CAAC;AACJ,CAAC"}
|
@@ -9,8 +9,19 @@ import { Text } from "./text.js";
|
|
9
9
|
export const ChainName = (props) => {
|
10
10
|
const chainQuery = useChainQuery(props.chain);
|
11
11
|
if (chainQuery.data) {
|
12
|
-
return _jsx(Text, { size: props.size, children:
|
12
|
+
return (_jsx(Text, { size: props.size, children: props.short
|
13
|
+
? shorterChainName(chainQuery.data.name)
|
14
|
+
: chainQuery.data.name }));
|
13
15
|
}
|
14
16
|
return _jsx(Skeleton, { width: "50px", height: fontSize[props.size] });
|
15
17
|
};
|
18
|
+
function shorterChainName(name) {
|
19
|
+
const split = name.split(" ");
|
20
|
+
const wordsToRemove = new Set(["mainnet", "testnet", "chain"]);
|
21
|
+
return split
|
22
|
+
.filter((s) => {
|
23
|
+
return !wordsToRemove.has(s.toLowerCase());
|
24
|
+
})
|
25
|
+
.join(" ");
|
26
|
+
}
|
16
27
|
//# sourceMappingURL=ChainName.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChainName.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/ChainName.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"ChainName.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/ChainName.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAKjB,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE9C,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,CACL,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,YACnB,KAAK,CAAC,KAAK;gBACV,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,GACnB,CACR,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAI,CAAC;AACnE,CAAC,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAY;IACpC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/D,OAAO,KAAK;SACT,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QACZ,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7C,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
@@ -30,7 +30,7 @@ export function ModalHeader(props) {
|
|
30
30
|
return (_jsxs("div", { style: {
|
31
31
|
display: "flex",
|
32
32
|
alignItems: "center",
|
33
|
-
justifyContent:
|
33
|
+
justifyContent: props.leftAligned ? "flex-start" : "center",
|
34
34
|
position: "relative",
|
35
35
|
}, children: [onBack && (_jsx(BackButton, { onClick: onBack, style: {
|
36
36
|
position: "absolute",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/basic.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAc,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACnE,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO;QACL,SAAS,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,aAAa,EAAE;QACpD,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,GAAG,EAAE,OAAO,CAAC,EAAE;QACf,OAAO,EAAE,OAAO,CAAC,EAAE;KACpB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IACzC,cAAc,EAAE,MAAM;IACtB,sBAAsB,EAAE;QACtB,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,MAAM;KAChB;CACkB,CAAC;AAEtB;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/basic.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAc,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACnE,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO;QACL,SAAS,EAAE,aAAa,KAAK,CAAC,MAAM,CAAC,aAAa,EAAE;QACpD,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,GAAG,EAAE,OAAO,CAAC,EAAE;QACf,OAAO,EAAE,OAAO,CAAC,EAAE;KACpB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IACzC,cAAc,EAAE,MAAM;IACtB,sBAAsB,EAAE;QACtB,KAAK,EAAE,CAAC;QACR,OAAO,EAAE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AAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;QACzD,WAAW,EAAE,KAAK,CAAC,WAAW;YAC5B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;YACjC,CAAC,CAAC,SAAS;QACb,0BAA0B,EAAE;YAC1B,OAAO,EAAE,CAAC;YACV,SAAS,EAAE,GAAG,eAAe,sBAAsB;SACpD;QACD,2BAA2B,EAAE;YAC3B,OAAO,EAAE,CAAC;YACV,SAAS,EAAE,GAAG,gBAAgB,sBAAsB;SACrD;QACD,6BAA6B,EAAE;YAC7B,OAAO,EAAE,CAAC;YACV,SAAS,EAAE,GAAG,kBAAkB,sBAAsB;SACvD;QACD,wBAAwB,EAAE;YACxB,SAAS,EAAE,MAAM;YACjB,GAAG,WAAW;SACf;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -27,6 +27,9 @@ export const Button = /* @__PURE__ */ StyledButton((props) => {
|
|
27
27
|
textAlign: "center",
|
28
28
|
maxWidth: "100%",
|
29
29
|
background: (() => {
|
30
|
+
if (props.bg) {
|
31
|
+
return theme.colors[props.bg];
|
32
|
+
}
|
30
33
|
switch (props.variant) {
|
31
34
|
case "primary":
|
32
35
|
return theme.colors.primaryButtonBg;
|
@@ -76,6 +79,9 @@ export const Button = /* @__PURE__ */ StyledButton((props) => {
|
|
76
79
|
"&:hover": {
|
77
80
|
borderColor: theme.colors.accentText,
|
78
81
|
},
|
82
|
+
'&[aria-selected="true"]': {
|
83
|
+
borderColor: theme.colors.accentText,
|
84
|
+
},
|
79
85
|
};
|
80
86
|
}
|
81
87
|
if (props.variant === "ghost") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../../../../src/react/web/ui/components/buttons.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,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AAO;QACL,GAAG,EAAE,OAAO;QACZ,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,aAAa;QACtB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM,CAAC,EAAE;QACvB,uBAAuB,EAAE,aAAa;QACtC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,kBAAkB;QACtC,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,yCAAyC;QACrD,SAAS,EAAE;YACT,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,oBAAoB;YAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,uBAAuB;SAC5C;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE;IAC5D,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,OAAO,EAAE,MAAM;QACf,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM,CAAC,EAAE;QACvB,OAAO,EAAE,OAAO,CAAC,EAAE;QACnB,MAAM,EAAE,SAAS;QACjB,uBAAuB,EAAE,aAAa;QACtC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa;QACjC,SAAS,EAAE;YACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;SAChC;QACD,aAAa,EAAE;YACb,MAAM,EAAE,aAAa;SACtB;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use client";
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import { useConnectUI } from "../../../core/hooks/others/useWalletConnectionCtx.js";
|
4
3
|
import { useSelectionData, useSetSelectionData, } from "../../providers/wallet-ui-states-provider.js";
|
5
|
-
import {
|
4
|
+
import { useInAppWalletLocale } from "../in-app/useInAppWalletLocale.js";
|
6
5
|
import { LoadingScreen } from "../shared/LoadingScreen.js";
|
7
6
|
import { OTPLoginUI } from "../shared/OTPLoginUI.js";
|
8
7
|
import { PassKeyLogin } from "../shared/PassKeyLogin.js";
|
@@ -16,12 +15,11 @@ function EcosystemWalletConnectUI(props) {
|
|
16
15
|
const data = useSelectionData();
|
17
16
|
const setSelectionData = useSetSelectionData();
|
18
17
|
const state = data;
|
19
|
-
const locale =
|
20
|
-
const { connectModal } = useConnectUI();
|
18
|
+
const locale = useInAppWalletLocale(props.localeId);
|
21
19
|
if (!locale) {
|
22
20
|
return _jsx(LoadingScreen, {});
|
23
21
|
}
|
24
|
-
const goBackToMain =
|
22
|
+
const goBackToMain = props.size === "compact"
|
25
23
|
? props.goBack
|
26
24
|
: () => {
|
27
25
|
setSelectionData({});
|
@@ -32,15 +30,15 @@ function EcosystemWalletConnectUI(props) {
|
|
32
30
|
? { phone: state.phoneLogin }
|
33
31
|
: undefined;
|
34
32
|
if (otpUserInfo) {
|
35
|
-
return (_jsx(OTPLoginUI, { userInfo: otpUserInfo, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet }));
|
33
|
+
return (_jsx(OTPLoginUI, { userInfo: otpUserInfo, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, chain: props.chain, client: props.client, size: props.size }));
|
36
34
|
}
|
37
35
|
if (state?.passkeyLogin) {
|
38
|
-
return (_jsx(PassKeyLogin, { wallet: props.wallet, done: props.done, onBack: goBackToMain }));
|
36
|
+
return (_jsx(PassKeyLogin, { wallet: props.wallet, done: props.done, onBack: goBackToMain, chain: props.chain, client: props.client, size: props.size }));
|
39
37
|
}
|
40
38
|
if (state?.socialLogin) {
|
41
|
-
return (_jsx(SocialLogin, { socialAuth: state.socialLogin.type, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, state: state }));
|
39
|
+
return (_jsx(SocialLogin, { socialAuth: state.socialLogin.type, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, state: state, chain: props.chain, client: props.client, size: props.size }));
|
42
40
|
}
|
43
|
-
return (_jsx(EcosystemWalletFormUIScreen, { select: () => { }, locale: locale, done: props.done, goBack: props.goBack, wallet: props.wallet }));
|
41
|
+
return (_jsx(EcosystemWalletFormUIScreen, { select: () => { }, locale: locale, done: props.done, goBack: props.goBack, wallet: props.wallet, chain: props.chain, client: props.client, size: props.size, connectLocale: props.connectLocale, meta: props.meta }));
|
44
42
|
}
|
45
43
|
export default EcosystemWalletConnectUI;
|
46
44
|
//# sourceMappingURL=EcosystemWalletConnectUI.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EcosystemWalletConnectUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
1
|
+
{"version":3,"file":"EcosystemWalletConnectUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAKb,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAEzE;;;GAGG;AACH,SAAS,wBAAwB,CAAC,KAgBjC;IACC,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAC;IAChC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,IAAkC,CAA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,EAAE,CAAC;QACvB,OAAO,CACL,KAAC,WAAW,IACV,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI,EAClC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,GAChB,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,2BAA2B,IAC1B,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,IAAI,EAAE,KAAK,CAAC,IAAI,GAChB,CACH,CAAC;AACJ,CAAC;AAED,eAAe,wBAAwB,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
"use client";
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
-
import { useConnectUI } from "../../../core/hooks/others/useWalletConnectionCtx.js";
|
4
3
|
import { TOS } from "../../ui/ConnectWallet/Modal/TOS.js";
|
5
4
|
import { useScreenContext } from "../../ui/ConnectWallet/Modal/screen.js";
|
6
5
|
import { PoweredByThirdweb } from "../../ui/ConnectWallet/PoweredByTW.js";
|
@@ -12,17 +11,16 @@ import { EcosystemWalletHeader } from "./EcosystemWalletHeader.js";
|
|
12
11
|
* @internal
|
13
12
|
*/
|
14
13
|
export function EcosystemWalletFormUIScreen(props) {
|
15
|
-
const
|
16
|
-
const isCompact = connectModal.size === "compact";
|
14
|
+
const isCompact = props.size === "compact";
|
17
15
|
const { initialScreen, screen } = useScreenContext();
|
18
16
|
const onBack = screen === props.wallet && initialScreen === props.wallet
|
19
17
|
? undefined
|
20
18
|
: props.goBack;
|
21
19
|
return (_jsxs(Container, { fullHeight: true, flex: "column", p: "lg", animate: "fadein", style: {
|
22
20
|
minHeight: "250px",
|
23
|
-
}, children: [isCompact ? (_jsxs(_Fragment, { children: [_jsx(EcosystemWalletHeader, { client: client, onBack: onBack, wallet: props.wallet }), _jsx(Spacer, { y: "lg" })] })) : null, _jsx(Container, { expand: true, flex: "column", center: "y", p: isCompact ? undefined : "lg", children: _jsx(ConnectWalletSocialOptions, { ...props }) }), isCompact &&
|
24
|
-
(
|
25
|
-
|
26
|
-
|
21
|
+
}, children: [isCompact ? (_jsxs(_Fragment, { children: [_jsx(EcosystemWalletHeader, { client: props.client, onBack: onBack, wallet: props.wallet }), _jsx(Spacer, { y: "lg" })] })) : null, _jsx(Container, { expand: true, flex: "column", center: "y", p: isCompact ? undefined : "lg", children: _jsx(ConnectWalletSocialOptions, { ...props }) }), isCompact &&
|
22
|
+
(props.meta.showThirdwebBranding !== false ||
|
23
|
+
props.meta.termsOfServiceUrl ||
|
24
|
+
props.meta.privacyPolicyUrl) && _jsx(Spacer, { y: "xl" }), _jsxs(Container, { flex: "column", gap: "lg", children: [_jsx(TOS, { termsOfServiceUrl: props.meta.termsOfServiceUrl, privacyPolicyUrl: props.meta.privacyPolicyUrl, locale: props.connectLocale.agreement }), props.meta.showThirdwebBranding !== false && _jsx(PoweredByThirdweb, {})] })] }));
|
27
25
|
}
|
28
26
|
//# sourceMappingURL=EcosystemWalletFormUI.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EcosystemWalletFormUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
1
|
+
{"version":3,"file":"EcosystemWalletFormUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAKb,OAAO,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAqBnE;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAiC;IAC3E,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IAC3C,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAErD,MAAM,MAAM,GACV,MAAM,KAAK,KAAK,CAAC,MAAM,IAAI,aAAa,KAAK,KAAK,CAAC,MAAM;QACvD,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IAEnB,OAAO,CACL,MAAC,SAAS,IACR,UAAU,QACV,IAAI,EAAC,QAAQ,EACb,CAAC,EAAC,IAAI,EACN,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAE;YACL,SAAS,EAAE,OAAO;SACnB,aAEA,SAAS,CAAC,CAAC,CAAC,CACX,8BACE,KAAC,qBAAqB,IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,KAAK,CAAC,MAAM,GACpB,EACF,KAAC,MAAM,IAAC,CAAC,EAAC,IAAI,GAAG,IAChB,CACJ,CAAC,CAAC,CAAC,IAAI,EAER,KAAC,SAAS,IACR,MAAM,QACN,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,GAAG,EACV,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,YAE/B,KAAC,0BAA0B,OAAK,KAAK,GAAI,GAC/B,EAEX,SAAS;gBACR,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,KAAK,KAAK;oBACxC,KAAK,CAAC,IAAI,CAAC,iBAAiB;oBAC5B,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,KAAC,MAAM,IAAC,CAAC,EAAC,IAAI,GAAG,EAErD,MAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,aAC/B,KAAC,GAAG,IACF,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAC/C,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAC7C,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,GACrC,EAED,KAAK,CAAC,IAAI,CAAC,oBAAoB,KAAK,KAAK,IAAI,KAAC,iBAAiB,KAAG,IACzD,IACF,CACb,CAAC;AACJ,CAAC"}
|
@@ -1,13 +1,12 @@
|
|
1
1
|
"use client";
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import { useConnectUI } from "../../../core/hooks/others/useWalletConnectionCtx.js";
|
4
3
|
import { useSelectionData, useSetSelectionData, } from "../../providers/wallet-ui-states-provider.js";
|
5
4
|
import { LoadingScreen } from "../shared/LoadingScreen.js";
|
6
5
|
import { OTPLoginUI } from "../shared/OTPLoginUI.js";
|
7
6
|
import { PassKeyLogin } from "../shared/PassKeyLogin.js";
|
8
7
|
import { SocialLogin } from "../shared/SocialLogin.js";
|
9
8
|
import { InAppWalletFormUIScreen } from "./InAppWalletFormUI.js";
|
10
|
-
import {
|
9
|
+
import { useInAppWalletLocale } from "./useInAppWalletLocale.js";
|
11
10
|
/**
|
12
11
|
*
|
13
12
|
* @internal
|
@@ -16,12 +15,11 @@ function InAppWalletConnectUI(props) {
|
|
16
15
|
const data = useSelectionData();
|
17
16
|
const setSelectionData = useSetSelectionData();
|
18
17
|
const state = data;
|
19
|
-
const locale =
|
20
|
-
const { connectModal } = useConnectUI();
|
18
|
+
const locale = useInAppWalletLocale(props.localeId);
|
21
19
|
if (!locale) {
|
22
20
|
return _jsx(LoadingScreen, {});
|
23
21
|
}
|
24
|
-
const goBackToMain =
|
22
|
+
const goBackToMain = props.size === "compact"
|
25
23
|
? props.goBack
|
26
24
|
: () => {
|
27
25
|
setSelectionData({});
|
@@ -32,15 +30,15 @@ function InAppWalletConnectUI(props) {
|
|
32
30
|
? { phone: state.phoneLogin }
|
33
31
|
: undefined;
|
34
32
|
if (otpUserInfo) {
|
35
|
-
return (_jsx(OTPLoginUI, { userInfo: otpUserInfo, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet }));
|
33
|
+
return (_jsx(OTPLoginUI, { userInfo: otpUserInfo, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, chain: props.chain, client: props.client, size: props.size }));
|
36
34
|
}
|
37
35
|
if (state?.passkeyLogin) {
|
38
|
-
return (_jsx(PassKeyLogin, { wallet: props.wallet, done: props.done, onBack: goBackToMain }));
|
36
|
+
return (_jsx(PassKeyLogin, { wallet: props.wallet, done: props.done, onBack: goBackToMain, chain: props.chain, client: props.client, size: props.size }));
|
39
37
|
}
|
40
38
|
if (state?.socialLogin) {
|
41
|
-
return (_jsx(SocialLogin, { socialAuth: state.socialLogin.type, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, state: state }));
|
39
|
+
return (_jsx(SocialLogin, { socialAuth: state.socialLogin.type, locale: locale, done: props.done, goBack: goBackToMain, wallet: props.wallet, state: state, chain: props.chain, client: props.client, size: props.size }));
|
42
40
|
}
|
43
|
-
return (_jsx(InAppWalletFormUIScreen, { select: () => { },
|
41
|
+
return (_jsx(InAppWalletFormUIScreen, { select: () => { }, connectLocale: props.connectLocale, inAppWalletLocale: locale, done: props.done, goBack: props.goBack, wallet: props.wallet, client: props.client, meta: props.meta, size: props.size, chain: props.chain }));
|
44
42
|
}
|
45
43
|
export default InAppWalletConnectUI;
|
46
44
|
//# sourceMappingURL=InAppWalletConnectUI.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InAppWalletConnectUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletConnectUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
1
|
+
{"version":3,"file":"InAppWalletConnectUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletConnectUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,8CAA8C,CAAC;AAItD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;GAGG;AACH,SAAS,oBAAoB,CAAC,KAgB7B;IACC,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAC;IAChC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,IAAkC,CAAC;IACjD,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAC,aAAa,KAAG,CAAC;IAC3B,CAAC;IAED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AE,YAAY,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,GAChB,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,uBAAuB,IACtB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC,EAChB,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,KAAK,EAAE,KAAK,CAAC,KAAK,GAClB,CACH,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use client";
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
import { iconSize } from "../../../core/design-system/index.js";
|
4
|
-
import { useConnectUI } from "../../../core/hooks/others/useWalletConnectionCtx.js";
|
5
4
|
import { TOS } from "../../ui/ConnectWallet/Modal/TOS.js";
|
6
5
|
import { useScreenContext } from "../../ui/ConnectWallet/Modal/screen.js";
|
7
6
|
import { PoweredByThirdweb } from "../../ui/ConnectWallet/PoweredByTW.js";
|
@@ -14,18 +13,16 @@ import { ConnectWalletSocialOptions } from "../shared/ConnectWalletSocialOptions
|
|
14
13
|
* @internal
|
15
14
|
*/
|
16
15
|
export function InAppWalletFormUIScreen(props) {
|
17
|
-
const
|
18
|
-
const { connectModal, client } = useConnectUI();
|
19
|
-
const isCompact = connectModal.size === "compact";
|
16
|
+
const isCompact = props.size === "compact";
|
20
17
|
const { initialScreen, screen } = useScreenContext();
|
21
|
-
const
|
22
|
-
|
23
|
-
: props.goBack;
|
18
|
+
const isInitialScreen = screen === props.wallet && initialScreen === props.wallet;
|
19
|
+
const onBack = isInitialScreen ? undefined : props.goBack;
|
24
20
|
return (_jsxs(Container, { fullHeight: true, flex: "column", p: "lg", animate: "fadein", style: {
|
25
21
|
minHeight: "250px",
|
26
|
-
}, children: [isCompact ? (_jsxs(_Fragment, { children: [_jsx(ModalHeader, { onBack: onBack, title: _jsxs(_Fragment, { children: [!
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
}, children: [isCompact && isInitialScreen ? (_jsxs(_Fragment, { children: [_jsx(ModalHeader, { onBack: onBack, leftAligned: true, title: _jsxs(_Fragment, { children: [!props.meta.titleIconUrl ? null : (_jsx(Img, { src: props.meta.titleIconUrl, width: iconSize.md, height: iconSize.md, client: props.client })), _jsx(ModalTitle, { children: props.meta.title ??
|
23
|
+
props.inAppWalletLocale.emailLoginScreen.title })] }) }), _jsx(Spacer, { y: "lg" })] })) : (_jsx(ModalHeader, { onBack: onBack, title: props.inAppWalletLocale.signIn })), _jsx(Container, { expand: true, flex: "column", center: "y", p: isCompact ? undefined : "lg", children: _jsx(ConnectWalletSocialOptions, { ...props, locale: props.inAppWalletLocale }) }), isCompact &&
|
24
|
+
(props.meta.showThirdwebBranding !== false ||
|
25
|
+
props.meta.termsOfServiceUrl ||
|
26
|
+
props.meta.privacyPolicyUrl) && _jsx(Spacer, { y: "xl" }), _jsxs(Container, { flex: "column", gap: "lg", children: [_jsx(TOS, { termsOfServiceUrl: props.meta.termsOfServiceUrl, privacyPolicyUrl: props.meta.privacyPolicyUrl, locale: props.connectLocale.agreement }), props.meta.showThirdwebBranding !== false && _jsx(PoweredByThirdweb, {})] })] }));
|
30
27
|
}
|
31
28
|
//# sourceMappingURL=InAppWalletFormUI.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InAppWalletFormUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletFormUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
1
|
+
{"version":3,"file":"InAppWalletFormUI.js","sourceRoot":"","sources":["../../../../../../src/react/web/wallets/in-app/InAppWalletFormUI.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAsBrF;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAA6B;IACnE,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;IAC3C,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAErD,MAAM,eAAe,GACnB,MAAM,KAAK,KAAK,CAAC,MAAM,IAAI,aAAa,KAAK,KAAK,CAAC,MAAM,CAAC;IAE5D,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IAE1D,OAAO,CACL,MAAC,SAAS,IACR,UAAU,QACV,IAAI,EAAC,QAAQ,EACb,CAAC,EAAC,IAAI,EACN,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAE;YACL,SAAS,EAAE,OAAO;SACnB,aA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