@web3auth/modal 10.14.1 → 11.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs/node_modules/style-inject/dist/style-inject.es.js +1 -1
- package/dist/lib.cjs/packages/modal/src/config.js +1 -1
- package/dist/lib.cjs/packages/modal/src/modalManager.js +71 -35
- package/dist/lib.cjs/packages/modal/src/react/Web3AuthProvider.js +4 -2
- package/dist/lib.cjs/packages/modal/src/react/context/WalletServicesInnerContext.js +3 -56
- package/dist/lib.cjs/packages/modal/src/react/context/Web3AuthInnerContext.js +15 -152
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3Auth.js +1 -22
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthConnect.js +30 -43
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthInner.js +8 -4
- package/dist/lib.cjs/packages/modal/src/react/index.js +57 -28
- package/dist/lib.cjs/packages/modal/src/react/solana/index.js +21 -8
- package/dist/lib.cjs/packages/modal/src/react/wagmi/provider.js +13 -11
- package/dist/lib.cjs/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +2 -5
- package/dist/lib.cjs/packages/modal/src/ui/components/Button/Button.js +4 -2
- package/dist/lib.cjs/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +1 -2
- package/dist/lib.cjs/packages/modal/src/ui/components/Image/Image.js +2 -2
- package/dist/lib.cjs/packages/modal/src/ui/components/Loader/Loader.js +117 -29
- package/dist/lib.cjs/packages/modal/src/ui/components/Modal/Modal.js +1 -0
- package/dist/lib.cjs/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +1 -3
- package/dist/lib.cjs/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.css.js +6 -0
- package/dist/lib.cjs/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.js +30 -0
- package/dist/lib.cjs/packages/modal/src/ui/components/Toast/Toast.js +1 -1
- package/dist/lib.cjs/packages/modal/src/ui/constants.js +5 -2
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWallet.js +63 -26
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +13 -4
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +1 -1
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletList/ConnectWalletList.js +25 -17
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +5 -3
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +8 -2
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/Embed/Embed.js +1 -0
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/Login/Login.js +50 -39
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/Login/LoginOtp/LoginOtp.js +1 -1
- package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/Login/LoginPasswordLess/LoginPasswordLess.js +1 -1
- package/dist/lib.cjs/packages/modal/src/ui/containers/Root/Root.js +235 -0
- package/dist/lib.cjs/packages/modal/src/ui/containers/Root/RootBodySheets/RootBodySheets.js +185 -0
- package/dist/lib.cjs/packages/modal/src/ui/containers/Widget/Widget.js +106 -0
- package/dist/lib.cjs/packages/modal/src/ui/context/ModalStateContext.js +157 -0
- package/dist/lib.cjs/packages/modal/src/ui/context/RootContext.js +64 -21
- package/dist/lib.cjs/packages/modal/src/ui/context/WidgetContext.js +52 -0
- package/dist/lib.cjs/packages/modal/src/ui/css/index.css.js +1 -3
- package/dist/lib.cjs/packages/modal/src/ui/interfaces.js +2 -1
- package/dist/lib.cjs/packages/modal/src/ui/loginModal.js +76 -45
- package/dist/lib.cjs/packages/modal/src/vue/WalletServicesInnerProvider.js +2 -50
- package/dist/lib.cjs/packages/modal/src/vue/Web3AuthProvider.js +7 -170
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWeb3AuthConnect.js +31 -33
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWeb3AuthInner.js +2 -5
- package/dist/lib.cjs/packages/modal/src/vue/index.js +57 -28
- package/dist/lib.cjs/packages/modal/src/vue/solana/index.js +29 -8
- package/dist/lib.cjs/packages/modal/src/vue/wagmi/provider.js +15 -14
- package/dist/lib.cjs/packages/modal/src/x402/index.js +12 -0
- package/dist/lib.cjs/packages/modal/src/x402/react.js +26 -0
- package/dist/lib.cjs/packages/modal/src/x402/vue.js +18 -0
- package/dist/lib.cjs/types/interface.d.ts +2 -2
- package/dist/lib.cjs/types/modalManager.d.ts +7 -3
- package/dist/lib.cjs/types/react/context/WalletServicesInnerContext.d.ts +12 -5
- package/dist/lib.cjs/types/react/context/Web3AuthInnerContext.d.ts +4 -3
- package/dist/lib.cjs/types/react/hooks/index.d.ts +15 -14
- package/dist/lib.cjs/types/react/hooks/useWeb3Auth.d.ts +1 -2
- package/dist/lib.cjs/types/react/hooks/useWeb3AuthConnect.d.ts +3 -3
- package/dist/lib.cjs/types/react/interfaces.d.ts +3 -2
- package/dist/lib.cjs/types/react/solana/hooks/index.d.ts +5 -4
- package/dist/lib.cjs/types/react/solana/index.d.ts +1 -0
- package/dist/lib.cjs/types/react/solana/provider.d.ts +1 -0
- package/dist/lib.cjs/types/ui/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/lib.cjs/types/ui/components/BottomSheet/BottomSheet.type.d.ts +4 -3
- package/dist/lib.cjs/types/ui/components/Button/ButtonWallet/ButtonWallet.type.d.ts +1 -0
- package/dist/lib.cjs/types/ui/components/Loader/Loader.type.d.ts +7 -5
- package/dist/lib.cjs/types/ui/components/LoginHint/LoginHint.type.d.ts +2 -1
- package/dist/lib.cjs/types/ui/components/SpinnerLoader/SpinnerLoader.d.ts +4 -0
- package/dist/lib.cjs/types/ui/components/SpinnerLoader/SpinnerLoader.type.d.ts +9 -0
- package/dist/lib.cjs/types/ui/components/SpinnerLoader/index.d.ts +2 -0
- package/dist/lib.cjs/types/ui/constants.d.ts +7 -4
- package/dist/lib.cjs/types/ui/containers/ConnectWallet/ConnectWallet.type.d.ts +7 -0
- package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.type.d.ts +0 -2
- package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletList/ConnectWalletList.type.d.ts +3 -9
- package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.type.d.ts +0 -2
- package/dist/lib.cjs/types/ui/containers/Login/Login.type.d.ts +6 -0
- package/dist/lib.cjs/types/ui/containers/Root/Root.type.d.ts +3 -0
- package/dist/lib.cjs/types/ui/containers/Root/RootBodySheets/RootBodySheets.d.ts +1 -0
- package/dist/lib.cjs/types/ui/containers/Widget/Widget.type.d.ts +5 -0
- package/dist/lib.cjs/types/ui/context/ModalStateContext.d.ts +28 -0
- package/dist/lib.cjs/types/ui/context/RootContext.d.ts +19 -7
- package/dist/lib.cjs/types/ui/context/WidgetContext.d.ts +45 -0
- package/dist/lib.cjs/types/ui/interfaces.d.ts +18 -15
- package/dist/lib.cjs/types/ui/loginModal.d.ts +6 -4
- package/dist/lib.cjs/types/vue/composables/index.d.ts +2 -14
- package/dist/lib.cjs/types/vue/composables/useWeb3Auth.d.ts +1 -2
- package/dist/lib.cjs/types/vue/composables/useWeb3AuthConnect.d.ts +3 -3
- package/dist/lib.cjs/types/vue/interfaces.d.ts +3 -17
- package/dist/lib.cjs/types/vue/solana/composables/index.d.ts +3 -4
- package/dist/lib.cjs/types/vue/solana/composables/useSolanaClient.d.ts +1 -0
- package/dist/lib.cjs/types/vue/solana/constants.d.ts +1 -0
- package/dist/lib.cjs/types/vue/solana/index.d.ts +2 -0
- package/dist/lib.cjs/types/vue/solana/provider.d.ts +1 -0
- package/dist/lib.cjs/types/x402/index.d.ts +1 -0
- package/dist/lib.cjs/types/x402/react.d.ts +2 -0
- package/dist/lib.cjs/types/x402/vue.d.ts +2 -0
- package/dist/lib.esm/node_modules/style-inject/dist/style-inject.es.js +1 -1
- package/dist/lib.esm/packages/modal/src/config.js +1 -1
- package/dist/lib.esm/packages/modal/src/modalManager.js +72 -36
- package/dist/lib.esm/packages/modal/src/react/Web3AuthProvider.js +4 -2
- package/dist/lib.esm/packages/modal/src/react/context/WalletServicesInnerContext.js +4 -57
- package/dist/lib.esm/packages/modal/src/react/context/Web3AuthInnerContext.js +12 -151
- package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3Auth.js +1 -22
- package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthConnect.js +28 -41
- package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthInner.js +7 -3
- package/dist/lib.esm/packages/modal/src/react/index.js +1 -14
- package/dist/lib.esm/packages/modal/src/react/solana/index.js +1 -4
- package/dist/lib.esm/packages/modal/src/react/wagmi/provider.js +12 -10
- package/dist/lib.esm/packages/modal/src/ui/components/BottomSheet/BottomSheet.js +2 -5
- package/dist/lib.esm/packages/modal/src/ui/components/Button/Button.js +4 -2
- package/dist/lib.esm/packages/modal/src/ui/components/Button/ButtonWallet/ButtonWallet.js +2 -3
- package/dist/lib.esm/packages/modal/src/ui/components/Image/Image.js +3 -3
- package/dist/lib.esm/packages/modal/src/ui/components/Loader/Loader.js +118 -30
- package/dist/lib.esm/packages/modal/src/ui/components/Modal/Modal.js +1 -0
- package/dist/lib.esm/packages/modal/src/ui/components/SocialLoginList/SocialLoginList.js +2 -4
- package/dist/lib.esm/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.css.js +4 -0
- package/dist/lib.esm/packages/modal/src/ui/components/SpinnerLoader/SpinnerLoader.js +28 -0
- package/dist/lib.esm/packages/modal/src/ui/components/Toast/Toast.js +3 -3
- package/dist/lib.esm/packages/modal/src/ui/constants.js +5 -2
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWallet.js +67 -29
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.js +14 -5
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.js +1 -1
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletList/ConnectWalletList.js +25 -17
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.js +7 -5
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.js +8 -2
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/Embed/Embed.js +1 -0
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/Login/Login.js +53 -41
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/Login/LoginOtp/LoginOtp.js +1 -1
- package/dist/lib.esm/packages/modal/src/ui/{components → containers}/Login/LoginPasswordLess/LoginPasswordLess.js +2 -2
- package/dist/lib.esm/packages/modal/src/ui/containers/Root/Root.js +238 -0
- package/dist/lib.esm/packages/modal/src/ui/containers/Root/RootBodySheets/RootBodySheets.js +183 -0
- package/dist/lib.esm/packages/modal/src/ui/containers/Widget/Widget.js +104 -0
- package/dist/lib.esm/packages/modal/src/ui/context/ModalStateContext.js +160 -0
- package/dist/lib.esm/packages/modal/src/ui/context/RootContext.js +60 -22
- package/dist/lib.esm/packages/modal/src/ui/context/WidgetContext.js +49 -0
- package/dist/lib.esm/packages/modal/src/ui/css/index.css.js +1 -3
- package/dist/lib.esm/packages/modal/src/ui/interfaces.js +2 -1
- package/dist/lib.esm/packages/modal/src/ui/loginModal.js +76 -45
- package/dist/lib.esm/packages/modal/src/vue/WalletServicesInnerProvider.js +5 -54
- package/dist/lib.esm/packages/modal/src/vue/Web3AuthProvider.js +9 -176
- package/dist/lib.esm/packages/modal/src/vue/composables/useWeb3AuthConnect.js +28 -30
- package/dist/lib.esm/packages/modal/src/vue/composables/useWeb3AuthInner.js +2 -5
- package/dist/lib.esm/packages/modal/src/vue/index.js +1 -14
- package/dist/lib.esm/packages/modal/src/vue/solana/index.js +1 -4
- package/dist/lib.esm/packages/modal/src/vue/wagmi/provider.js +10 -9
- package/dist/lib.esm/packages/modal/src/x402/index.js +1 -0
- package/dist/lib.esm/packages/modal/src/x402/react.js +1 -0
- package/dist/lib.esm/packages/modal/src/x402/vue.js +1 -0
- package/package.json +68 -44
- package/dist/lib.cjs/packages/modal/src/providers/ethereum-mpc-provider/index.js +0 -12
- package/dist/lib.cjs/packages/modal/src/react/hooks/useChain.js +0 -16
- package/dist/lib.cjs/packages/modal/src/react/hooks/useCheckout.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useEnableMFA.js +0 -30
- package/dist/lib.cjs/packages/modal/src/react/hooks/useFunding.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useIdentityToken.js +0 -46
- package/dist/lib.cjs/packages/modal/src/react/hooks/useManageMFA.js +0 -30
- package/dist/lib.cjs/packages/modal/src/react/hooks/useReceive.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useSwap.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useSwitchChain.js +0 -32
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletConnectScanner.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletServicesPlugin.js +0 -13
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWalletUI.js +0 -34
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthDisconnect.js +0 -30
- package/dist/lib.cjs/packages/modal/src/react/hooks/useWeb3AuthUser.js +0 -50
- package/dist/lib.cjs/packages/modal/src/react/solana/hooks/useSignAndSendTransaction.js +0 -36
- package/dist/lib.cjs/packages/modal/src/react/solana/hooks/useSignMessage.js +0 -37
- package/dist/lib.cjs/packages/modal/src/react/solana/hooks/useSignTransaction.js +0 -36
- package/dist/lib.cjs/packages/modal/src/react/solana/hooks/useSolanaWallet.js +0 -68
- package/dist/lib.cjs/packages/modal/src/ui/components/CircularLoader/CircularLoader.js +0 -88
- package/dist/lib.cjs/packages/modal/src/ui/components/Root/Root.js +0 -513
- package/dist/lib.cjs/packages/modal/src/ui/components/Widget/Widget.js +0 -251
- package/dist/lib.cjs/packages/modal/src/ui/context/ThemeContext.js +0 -9
- package/dist/lib.cjs/packages/modal/src/vue/composables/useChain.js +0 -13
- package/dist/lib.cjs/packages/modal/src/vue/composables/useCheckout.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useEnableMFA.js +0 -33
- package/dist/lib.cjs/packages/modal/src/vue/composables/useFunding.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useIdentityToken.js +0 -51
- package/dist/lib.cjs/packages/modal/src/vue/composables/useManageMFA.js +0 -33
- package/dist/lib.cjs/packages/modal/src/vue/composables/useReceive.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useSwap.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useSwitchChain.js +0 -33
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWalletConnectScanner.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWalletServicesPlugin.js +0 -13
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWalletUI.js +0 -35
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWeb3AuthDisconnect.js +0 -33
- package/dist/lib.cjs/packages/modal/src/vue/composables/useWeb3AuthUser.js +0 -54
- package/dist/lib.cjs/packages/modal/src/vue/solana/composables/useSignAndSendTransaction.js +0 -37
- package/dist/lib.cjs/packages/modal/src/vue/solana/composables/useSignMessage.js +0 -39
- package/dist/lib.cjs/packages/modal/src/vue/solana/composables/useSignTransaction.js +0 -37
- package/dist/lib.cjs/packages/modal/src/vue/solana/composables/useSolanaWallet.js +0 -67
- package/dist/lib.cjs/types/providers/ethereum-mpc-provider/index.d.ts +0 -1
- package/dist/lib.cjs/types/react/hooks/useChain.d.ts +0 -6
- package/dist/lib.cjs/types/react/hooks/useCheckout.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useEnableMFA.d.ts +0 -7
- package/dist/lib.cjs/types/react/hooks/useFunding.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useIdentityToken.d.ts +0 -13
- package/dist/lib.cjs/types/react/hooks/useManageMFA.d.ts +0 -7
- package/dist/lib.cjs/types/react/hooks/useReceive.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useSwap.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useSwitchChain.d.ts +0 -7
- package/dist/lib.cjs/types/react/hooks/useWalletConnectScanner.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useWalletServicesPlugin.d.ts +0 -2
- package/dist/lib.cjs/types/react/hooks/useWalletUI.d.ts +0 -8
- package/dist/lib.cjs/types/react/hooks/useWeb3AuthDisconnect.d.ts +0 -9
- package/dist/lib.cjs/types/react/hooks/useWeb3AuthUser.d.ts +0 -9
- package/dist/lib.cjs/types/react/solana/hooks/useSignAndSendTransaction.d.ts +0 -8
- package/dist/lib.cjs/types/react/solana/hooks/useSignMessage.d.ts +0 -8
- package/dist/lib.cjs/types/react/solana/hooks/useSignTransaction.d.ts +0 -13
- package/dist/lib.cjs/types/react/solana/hooks/useSolanaWallet.d.ts +0 -8
- package/dist/lib.cjs/types/ui/components/CircularLoader/CircularLoader.d.ts +0 -3
- package/dist/lib.cjs/types/ui/components/CircularLoader/CircularLoader.type.d.ts +0 -19
- package/dist/lib.cjs/types/ui/components/CircularLoader/index.d.ts +0 -2
- package/dist/lib.cjs/types/ui/components/ConnectWallet/ConnectWallet.type.d.ts +0 -27
- package/dist/lib.cjs/types/ui/components/Login/Login.type.d.ts +0 -35
- package/dist/lib.cjs/types/ui/components/Root/Root.type.d.ts +0 -36
- package/dist/lib.cjs/types/ui/components/Widget/Widget.type.d.ts +0 -24
- package/dist/lib.cjs/types/ui/context/ThemeContext.d.ts +0 -3
- package/dist/lib.cjs/types/vue/composables/useChain.d.ts +0 -7
- package/dist/lib.cjs/types/vue/composables/useCheckout.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useEnableMFA.d.ts +0 -8
- package/dist/lib.cjs/types/vue/composables/useFunding.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useIdentityToken.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useManageMFA.d.ts +0 -8
- package/dist/lib.cjs/types/vue/composables/useReceive.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useSwap.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useSwitchChain.d.ts +0 -10
- package/dist/lib.cjs/types/vue/composables/useWalletConnectScanner.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useWalletServicesPlugin.d.ts +0 -2
- package/dist/lib.cjs/types/vue/composables/useWalletUI.d.ts +0 -9
- package/dist/lib.cjs/types/vue/composables/useWeb3AuthDisconnect.d.ts +0 -10
- package/dist/lib.cjs/types/vue/composables/useWeb3AuthUser.d.ts +0 -10
- package/dist/lib.cjs/types/vue/solana/composables/useSignAndSendTransaction.d.ts +0 -9
- package/dist/lib.cjs/types/vue/solana/composables/useSignMessage.d.ts +0 -9
- package/dist/lib.cjs/types/vue/solana/composables/useSignTransaction.d.ts +0 -9
- package/dist/lib.cjs/types/vue/solana/composables/useSolanaWallet.d.ts +0 -9
- package/dist/lib.esm/packages/modal/src/providers/ethereum-mpc-provider/index.js +0 -1
- package/dist/lib.esm/packages/modal/src/react/hooks/useChain.js +0 -14
- package/dist/lib.esm/packages/modal/src/react/hooks/useCheckout.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useEnableMFA.js +0 -28
- package/dist/lib.esm/packages/modal/src/react/hooks/useFunding.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useIdentityToken.js +0 -44
- package/dist/lib.esm/packages/modal/src/react/hooks/useManageMFA.js +0 -28
- package/dist/lib.esm/packages/modal/src/react/hooks/useReceive.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useSwap.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useSwitchChain.js +0 -30
- package/dist/lib.esm/packages/modal/src/react/hooks/useWalletConnectScanner.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useWalletServicesPlugin.js +0 -11
- package/dist/lib.esm/packages/modal/src/react/hooks/useWalletUI.js +0 -32
- package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthDisconnect.js +0 -28
- package/dist/lib.esm/packages/modal/src/react/hooks/useWeb3AuthUser.js +0 -48
- package/dist/lib.esm/packages/modal/src/react/solana/hooks/useSignAndSendTransaction.js +0 -34
- package/dist/lib.esm/packages/modal/src/react/solana/hooks/useSignMessage.js +0 -35
- package/dist/lib.esm/packages/modal/src/react/solana/hooks/useSignTransaction.js +0 -34
- package/dist/lib.esm/packages/modal/src/react/solana/hooks/useSolanaWallet.js +0 -64
- package/dist/lib.esm/packages/modal/src/ui/components/CircularLoader/CircularLoader.js +0 -86
- package/dist/lib.esm/packages/modal/src/ui/components/Root/Root.js +0 -524
- package/dist/lib.esm/packages/modal/src/ui/components/Widget/Widget.js +0 -253
- package/dist/lib.esm/packages/modal/src/ui/context/ThemeContext.js +0 -7
- package/dist/lib.esm/packages/modal/src/vue/composables/useChain.js +0 -11
- package/dist/lib.esm/packages/modal/src/vue/composables/useCheckout.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useEnableMFA.js +0 -31
- package/dist/lib.esm/packages/modal/src/vue/composables/useFunding.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useIdentityToken.js +0 -49
- package/dist/lib.esm/packages/modal/src/vue/composables/useManageMFA.js +0 -31
- package/dist/lib.esm/packages/modal/src/vue/composables/useReceive.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useSwap.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useSwitchChain.js +0 -31
- package/dist/lib.esm/packages/modal/src/vue/composables/useWalletConnectScanner.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useWalletServicesPlugin.js +0 -11
- package/dist/lib.esm/packages/modal/src/vue/composables/useWalletUI.js +0 -33
- package/dist/lib.esm/packages/modal/src/vue/composables/useWeb3AuthDisconnect.js +0 -31
- package/dist/lib.esm/packages/modal/src/vue/composables/useWeb3AuthUser.js +0 -52
- package/dist/lib.esm/packages/modal/src/vue/solana/composables/useSignAndSendTransaction.js +0 -35
- package/dist/lib.esm/packages/modal/src/vue/solana/composables/useSignMessage.js +0 -37
- package/dist/lib.esm/packages/modal/src/vue/solana/composables/useSignTransaction.js +0 -35
- package/dist/lib.esm/packages/modal/src/vue/solana/composables/useSolanaWallet.js +0 -65
- package/dist/modal.umd.min.js +0 -2
- package/dist/modal.umd.min.js.LICENSE.txt +0 -106
- /package/dist/lib.cjs/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWallet.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainFilter/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainNamespaceSelect/ConnectWalletChainNamespaceSelect.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletChainNamespaceSelect/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletHeader/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletList/ConnectWalletList.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletList/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletQrCode/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletSearch/ConnectWalletSearch.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/ConnectWalletSearch/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/ConnectWallet/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Embed/Embed.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Embed/Embed.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Embed/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/Login.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginOtp/LoginOtp.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginOtp/LoginOtp.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginOtp/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginPasswordLess/LoginPasswordLess.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginPasswordLess/LoginPasswordLess.type.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/LoginPasswordLess/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Login/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Root/Root.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Root/index.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Widget/Widget.d.ts +0 -0
- /package/dist/lib.cjs/types/ui/{components → containers}/Widget/index.d.ts +0 -0
- /package/dist/lib.esm/packages/modal/src/ui/{components → containers}/ConnectWallet/ConnectWalletHeader/ConnectWalletHeader.js +0 -0
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var noModal = require('@web3auth/no-modal');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var modalManager = require('../../modalManager.js');
|
|
6
|
+
var react$1 = require('@web3auth/no-modal/react');
|
|
6
7
|
|
|
8
|
+
function isModalWeb3AuthInnerContext(context) {
|
|
9
|
+
return !!context && context.web3Auth instanceof modalManager.Web3Auth;
|
|
10
|
+
}
|
|
7
11
|
const useWeb3AuthInner = () => {
|
|
8
|
-
const context = react.useContext(
|
|
9
|
-
if (!context) {
|
|
10
|
-
throw noModal.WalletInitializationError.fromCode(1000, "usage of useWeb3Auth not wrapped in `
|
|
12
|
+
const context = react.useContext(react$1.Web3AuthInnerContext);
|
|
13
|
+
if (!isModalWeb3AuthInnerContext(context)) {
|
|
14
|
+
throw noModal.WalletInitializationError.fromCode(1000, "usage of useWeb3Auth not wrapped in modal `Web3AuthProvider`.");
|
|
11
15
|
}
|
|
12
16
|
return context;
|
|
13
17
|
};
|
|
@@ -1,39 +1,68 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useChain = require('./hooks/useChain.js');
|
|
4
|
-
var useCheckout = require('./hooks/useCheckout.js');
|
|
5
|
-
var useEnableMFA = require('./hooks/useEnableMFA.js');
|
|
6
|
-
var useFunding = require('./hooks/useFunding.js');
|
|
7
|
-
var useIdentityToken = require('./hooks/useIdentityToken.js');
|
|
8
|
-
var useManageMFA = require('./hooks/useManageMFA.js');
|
|
9
|
-
var useReceive = require('./hooks/useReceive.js');
|
|
10
|
-
var useSwap = require('./hooks/useSwap.js');
|
|
11
|
-
var useSwitchChain = require('./hooks/useSwitchChain.js');
|
|
12
|
-
var useWalletConnectScanner = require('./hooks/useWalletConnectScanner.js');
|
|
13
|
-
var useWalletServicesPlugin = require('./hooks/useWalletServicesPlugin.js');
|
|
14
|
-
var useWalletUI = require('./hooks/useWalletUI.js');
|
|
15
3
|
var useWeb3Auth = require('./hooks/useWeb3Auth.js');
|
|
16
4
|
var useWeb3AuthConnect = require('./hooks/useWeb3AuthConnect.js');
|
|
17
|
-
var
|
|
18
|
-
var useWeb3AuthUser = require('./hooks/useWeb3AuthUser.js');
|
|
5
|
+
var react = require('@web3auth/no-modal/react');
|
|
19
6
|
var Web3AuthProvider = require('./Web3AuthProvider.js');
|
|
20
7
|
|
|
21
8
|
|
|
22
9
|
|
|
23
|
-
exports.useChain = useChain.useChain;
|
|
24
|
-
exports.useCheckout = useCheckout.useCheckout;
|
|
25
|
-
exports.useEnableMFA = useEnableMFA.useEnableMFA;
|
|
26
|
-
exports.useFunding = useFunding.useFunding;
|
|
27
|
-
exports.useIdentityToken = useIdentityToken.useIdentityToken;
|
|
28
|
-
exports.useManageMFA = useManageMFA.useManageMFA;
|
|
29
|
-
exports.useReceive = useReceive.useReceive;
|
|
30
|
-
exports.useSwap = useSwap.useSwap;
|
|
31
|
-
exports.useSwitchChain = useSwitchChain.useSwitchChain;
|
|
32
|
-
exports.useWalletConnectScanner = useWalletConnectScanner.useWalletConnectScanner;
|
|
33
|
-
exports.useWalletServicesPlugin = useWalletServicesPlugin.useWalletServicesPlugin;
|
|
34
|
-
exports.useWalletUI = useWalletUI.useWalletUI;
|
|
35
10
|
exports.useWeb3Auth = useWeb3Auth.useWeb3Auth;
|
|
36
11
|
exports.useWeb3AuthConnect = useWeb3AuthConnect.useWeb3AuthConnect;
|
|
37
|
-
exports
|
|
38
|
-
|
|
12
|
+
Object.defineProperty(exports, "useAuthTokenInfo", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return react.useAuthTokenInfo; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "useChain", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return react.useChain; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "useCheckout", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return react.useCheckout; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "useEnableMFA", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return react.useEnableMFA; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "useFunding", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return react.useFunding; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "useManageMFA", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return react.useManageMFA; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useReceive", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return react.useReceive; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "useSwap", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return react.useSwap; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "useSwitchChain", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return react.useSwitchChain; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "useWalletConnectScanner", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return react.useWalletConnectScanner; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "useWalletServicesPlugin", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return react.useWalletServicesPlugin; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "useWalletUI", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return react.useWalletUI; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "useWeb3AuthDisconnect", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return react.useWeb3AuthDisconnect; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "useWeb3AuthUser", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return react.useWeb3AuthUser; }
|
|
67
|
+
});
|
|
39
68
|
exports.Web3AuthProvider = Web3AuthProvider.Web3AuthProvider;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var useSignMessage = require('./hooks/useSignMessage.js');
|
|
5
|
-
var useSignTransaction = require('./hooks/useSignTransaction.js');
|
|
6
|
-
var useSolanaWallet = require('./hooks/useSolanaWallet.js');
|
|
3
|
+
var solana = require('@web3auth/no-modal/react/solana');
|
|
7
4
|
|
|
8
5
|
|
|
9
6
|
|
|
10
|
-
exports
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
Object.defineProperty(exports, "SolanaProvider", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return solana.SolanaProvider; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "useSignAndSendTransaction", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return solana.useSignAndSendTransaction; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "useSignMessage", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return solana.useSignMessage; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "useSignTransaction", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return solana.useSignTransaction; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "useSolanaWallet", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return solana.useSolanaWallet; }
|
|
26
|
+
});
|
|
@@ -7,6 +7,8 @@ var react = require('react');
|
|
|
7
7
|
var viem = require('viem');
|
|
8
8
|
var wagmi = require('wagmi');
|
|
9
9
|
var connectors = require('wagmi/connectors');
|
|
10
|
+
var useWeb3Auth = require('../hooks/useWeb3Auth.js');
|
|
11
|
+
var react$1 = require('@web3auth/no-modal/react');
|
|
10
12
|
require('@babel/runtime/helpers/defineProperty');
|
|
11
13
|
require('@web3auth/auth');
|
|
12
14
|
require('deepmerge');
|
|
@@ -21,13 +23,12 @@ require('@toruslabs/http-helpers');
|
|
|
21
23
|
require('clsx');
|
|
22
24
|
require('tailwind-merge');
|
|
23
25
|
require('react-i18next');
|
|
24
|
-
require('../../ui/context/RootContext.js');
|
|
25
26
|
require('../../ui/localeImport.js');
|
|
27
|
+
require('../../ui/components/SpinnerLoader/SpinnerLoader.css.js');
|
|
28
|
+
require('../../ui/context/RootContext.js');
|
|
26
29
|
require('classnames');
|
|
27
30
|
require('react-qrcode-logo');
|
|
28
|
-
require('../../ui/
|
|
29
|
-
var useWeb3Auth = require('../hooks/useWeb3Auth.js');
|
|
30
|
-
var useWeb3AuthDisconnect = require('../hooks/useWeb3AuthDisconnect.js');
|
|
31
|
+
require('../../ui/containers/Login/Login.js');
|
|
31
32
|
var constants = require('./constants.js');
|
|
32
33
|
|
|
33
34
|
const _excluded = ["children"];
|
|
@@ -94,16 +95,16 @@ function Web3AuthWagmiProvider({
|
|
|
94
95
|
}) {
|
|
95
96
|
const {
|
|
96
97
|
isConnected,
|
|
97
|
-
|
|
98
|
+
connection
|
|
98
99
|
} = useWeb3Auth.useWeb3Auth();
|
|
99
100
|
const {
|
|
100
101
|
disconnect
|
|
101
|
-
} =
|
|
102
|
+
} = react$1.useWeb3AuthDisconnect();
|
|
102
103
|
const wagmiConfig = wagmi.useConfig();
|
|
103
104
|
const {
|
|
104
|
-
reconnect
|
|
105
|
+
mutate: reconnect
|
|
105
106
|
} = wagmi.useReconnect();
|
|
106
|
-
wagmi.
|
|
107
|
+
wagmi.useConnectionEffect({
|
|
107
108
|
onDisconnect: async () => {
|
|
108
109
|
noModal.log.info("Disconnected from wagmi");
|
|
109
110
|
if (isConnected) await disconnect();
|
|
@@ -117,8 +118,8 @@ function Web3AuthWagmiProvider({
|
|
|
117
118
|
});
|
|
118
119
|
react.useEffect(() => {
|
|
119
120
|
(async () => {
|
|
120
|
-
if (isConnected &&
|
|
121
|
-
const connector = await setupConnector(
|
|
121
|
+
if (isConnected && connection !== null && connection !== void 0 && connection.ethereumProvider) {
|
|
122
|
+
const connector = await setupConnector(connection.ethereumProvider, wagmiConfig);
|
|
122
123
|
if (!connector) {
|
|
123
124
|
noModal.log.error("Failed to setup react wagmi connector");
|
|
124
125
|
throw new Error("Failed to setup connector");
|
|
@@ -131,7 +132,7 @@ function Web3AuthWagmiProvider({
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
})();
|
|
134
|
-
}, [isConnected, wagmiConfig,
|
|
135
|
+
}, [isConnected, wagmiConfig, connection, reconnect]);
|
|
135
136
|
return /*#__PURE__*/react.createElement(react.Fragment, null, children);
|
|
136
137
|
}
|
|
137
138
|
function WagmiProvider(_ref) {
|
|
@@ -215,6 +216,7 @@ function WagmiProvider(_ref) {
|
|
|
215
216
|
finalConfig.chains = [wagmiChains[0], ...wagmiChains.slice(1)];
|
|
216
217
|
}
|
|
217
218
|
return wagmi.createConfig(finalConfig);
|
|
219
|
+
// eslint-disable-next-line react-hooks/preserve-manual-memoization
|
|
218
220
|
}, [config, web3Auth, isInitialized]);
|
|
219
221
|
return /*#__PURE__*/react.createElement(wagmi.WagmiProvider, // typecast to WagmiProviderPropsBase to avoid type error
|
|
220
222
|
// as we are omitting the config prop from WagmiProviderProps
|
|
@@ -11,13 +11,10 @@ function BottomSheet({
|
|
|
11
11
|
isShown,
|
|
12
12
|
onClose,
|
|
13
13
|
children,
|
|
14
|
-
uiConfig,
|
|
15
14
|
sheetClassName,
|
|
16
|
-
showCloseButton = true
|
|
15
|
+
showCloseButton = true,
|
|
16
|
+
borderRadiusType = "large"
|
|
17
17
|
}) {
|
|
18
|
-
const {
|
|
19
|
-
borderRadiusType = "large"
|
|
20
|
-
} = uiConfig;
|
|
21
18
|
const handleClose = e => {
|
|
22
19
|
e.stopPropagation();
|
|
23
20
|
if (onClose) onClose();
|
|
@@ -13,11 +13,11 @@ function Button(props) {
|
|
|
13
13
|
const SocialButtonProps = buttonProps;
|
|
14
14
|
const WalletButtonProps = buttonProps;
|
|
15
15
|
const {
|
|
16
|
+
isDark: socialButtonIsDark,
|
|
16
17
|
text,
|
|
17
18
|
showIcon,
|
|
18
19
|
showText,
|
|
19
20
|
method,
|
|
20
|
-
isDark,
|
|
21
21
|
isPrimaryBtn,
|
|
22
22
|
onClick,
|
|
23
23
|
children,
|
|
@@ -25,6 +25,7 @@ function Button(props) {
|
|
|
25
25
|
buttonRadius
|
|
26
26
|
} = SocialButtonProps;
|
|
27
27
|
const {
|
|
28
|
+
isDark: walletButtonIsDark,
|
|
28
29
|
label,
|
|
29
30
|
onClick: walletOnClick,
|
|
30
31
|
button,
|
|
@@ -38,13 +39,14 @@ function Button(props) {
|
|
|
38
39
|
showIcon: showIcon,
|
|
39
40
|
showText: showText,
|
|
40
41
|
method: method,
|
|
41
|
-
isDark:
|
|
42
|
+
isDark: socialButtonIsDark,
|
|
42
43
|
isPrimaryBtn: isPrimaryBtn,
|
|
43
44
|
onClick: onClick,
|
|
44
45
|
btnStyle: btnStyle,
|
|
45
46
|
buttonRadius: buttonRadius,
|
|
46
47
|
children: children
|
|
47
48
|
}), type === Button_type.BUTTON_TYPE.WALLET && jsxRuntime.jsx(ButtonWallet, {
|
|
49
|
+
isDark: walletButtonIsDark,
|
|
48
50
|
label: label,
|
|
49
51
|
walletConnectUri: walletConnectUri,
|
|
50
52
|
onClick: walletOnClick,
|
|
@@ -4,7 +4,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var cn = require('classnames');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var reactI18next = require('react-i18next');
|
|
7
|
-
var ThemeContext = require('../../../context/ThemeContext.js');
|
|
8
7
|
var localeImport = require('../../../localeImport.js');
|
|
9
8
|
var utils = require('../../../utils.js');
|
|
10
9
|
var Image = require('../../Image/Image.js');
|
|
@@ -14,6 +13,7 @@ function ButtonWallet(props) {
|
|
|
14
13
|
i18n: localeImport
|
|
15
14
|
});
|
|
16
15
|
const {
|
|
16
|
+
isDark,
|
|
17
17
|
deviceDetails,
|
|
18
18
|
button,
|
|
19
19
|
walletConnectUri,
|
|
@@ -21,7 +21,6 @@ function ButtonWallet(props) {
|
|
|
21
21
|
label,
|
|
22
22
|
buttonRadius
|
|
23
23
|
} = props;
|
|
24
|
-
const isDark = react.useContext(ThemeContext.ThemedContext);
|
|
25
24
|
const isLink = react.useMemo(() => deviceDetails.platform !== "desktop" && button.href && button.hasWalletConnect && !button.isInstalled, [deviceDetails, button]);
|
|
26
25
|
const href = react.useMemo(() => button.href ? utils.formatIOSMobile({
|
|
27
26
|
uri: walletConnectUri,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var WidgetContext = require('../../context/WidgetContext.js');
|
|
6
6
|
var utils = require('../../utils.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -26,7 +26,7 @@ function Image(props) {
|
|
|
26
26
|
} = props;
|
|
27
27
|
const {
|
|
28
28
|
isDark
|
|
29
|
-
} =
|
|
29
|
+
} = WidgetContext.useWidget();
|
|
30
30
|
const imgName = react.useMemo(() => isDark && darkImageId ? darkImageId : imageId, [isDark, darkImageId, imageId]);
|
|
31
31
|
const hoverImgName = react.useMemo(() => isDark && darkHoverImageId ? darkHoverImageId : hoverImageId, [isDark, darkHoverImageId, hoverImageId]);
|
|
32
32
|
if (isButton) {
|
|
@@ -5,9 +5,8 @@ var react = require('react');
|
|
|
5
5
|
var reactI18next = require('react-i18next');
|
|
6
6
|
var interfaces = require('../../interfaces.js');
|
|
7
7
|
var localeImport = require('../../localeImport.js');
|
|
8
|
-
var CircularLoader = require('../CircularLoader/CircularLoader.js');
|
|
9
8
|
var Image = require('../Image/Image.js');
|
|
10
|
-
var
|
|
9
|
+
var SpinnerLoader = require('../SpinnerLoader/SpinnerLoader.js');
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* ConnectingStatus component
|
|
@@ -20,7 +19,6 @@ function ConnectingStatus(props) {
|
|
|
20
19
|
});
|
|
21
20
|
const {
|
|
22
21
|
connector,
|
|
23
|
-
appLogo,
|
|
24
22
|
connectorName
|
|
25
23
|
} = props;
|
|
26
24
|
const providerIcon = react.useMemo(() => connector === "twitter" ? jsxRuntime.jsx(Image, {
|
|
@@ -32,16 +30,10 @@ function ConnectingStatus(props) {
|
|
|
32
30
|
}), [connector]);
|
|
33
31
|
return jsxRuntime.jsxs("div", {
|
|
34
32
|
className: "w3a--flex w3a--h-full w3a--flex-1 w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4",
|
|
35
|
-
children: [jsxRuntime.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
children: jsxRuntime.jsx("img", {
|
|
40
|
-
src: appLogo,
|
|
41
|
-
alt: "",
|
|
42
|
-
className: "w3a--size-full w3a--object-contain"
|
|
43
|
-
})
|
|
44
|
-
}), jsxRuntime.jsx(PulseLoader, {}), providerIcon]
|
|
33
|
+
children: [jsxRuntime.jsx(SpinnerLoader, {
|
|
34
|
+
width: 95,
|
|
35
|
+
height: 95,
|
|
36
|
+
children: providerIcon
|
|
45
37
|
}), jsxRuntime.jsxs("div", {
|
|
46
38
|
className: "w3a--flex w3a--flex-col w3a--gap-y-1",
|
|
47
39
|
children: [jsxRuntime.jsx("div", {
|
|
@@ -115,18 +107,15 @@ function ErroredStatus(props) {
|
|
|
115
107
|
});
|
|
116
108
|
}
|
|
117
109
|
function AuthorizingStatus(props) {
|
|
118
|
-
var
|
|
110
|
+
var _externalWalletsConfi;
|
|
119
111
|
const [t] = reactI18next.useTranslation(undefined, {
|
|
120
112
|
i18n: localeImport
|
|
121
113
|
});
|
|
122
114
|
const {
|
|
123
115
|
connector,
|
|
124
116
|
externalWalletsConfig,
|
|
125
|
-
walletRegistry,
|
|
126
117
|
handleMobileVerifyConnect
|
|
127
118
|
} = props;
|
|
128
|
-
const registryItem = (walletRegistry === null || walletRegistry === void 0 || (_walletRegistry$defau = walletRegistry.default) === null || _walletRegistry$defau === void 0 ? void 0 : _walletRegistry$defau[connector]) || (walletRegistry === null || walletRegistry === void 0 || (_walletRegistry$other = walletRegistry.others) === null || _walletRegistry$other === void 0 ? void 0 : _walletRegistry$other[connector]);
|
|
129
|
-
const primaryColor = (registryItem === null || registryItem === void 0 ? void 0 : registryItem.primaryColor) || "";
|
|
130
119
|
const handleMobileVerifyConnectClick = () => {
|
|
131
120
|
handleMobileVerifyConnect({
|
|
132
121
|
connector: connector
|
|
@@ -137,16 +126,13 @@ function AuthorizingStatus(props) {
|
|
|
137
126
|
children: [jsxRuntime.jsx("p", {
|
|
138
127
|
className: "w3a--p-2 w3a--text-center w3a--text-base w3a--font-semibold w3a--text-app-gray-900 dark:w3a--text-app-white",
|
|
139
128
|
children: t("modal.loader.authorizing-header", {
|
|
140
|
-
connector: externalWalletsConfig[connector].label
|
|
129
|
+
connector: (_externalWalletsConfi = externalWalletsConfig[connector]) === null || _externalWalletsConfi === void 0 ? void 0 : _externalWalletsConfi.label
|
|
141
130
|
})
|
|
142
131
|
}), jsxRuntime.jsx("div", {
|
|
143
132
|
className: "w3a--flex w3a--justify-center",
|
|
144
|
-
children: jsxRuntime.jsx(
|
|
133
|
+
children: jsxRuntime.jsx(SpinnerLoader, {
|
|
145
134
|
width: 95,
|
|
146
135
|
height: 95,
|
|
147
|
-
thickness: 6,
|
|
148
|
-
arcSizeDeg: 100,
|
|
149
|
-
arcColors: primaryColor ? [primaryColor, primaryColor] : undefined,
|
|
150
136
|
children: jsxRuntime.jsx(Image, {
|
|
151
137
|
imageId: `login-${connector}`,
|
|
152
138
|
hoverImageId: `login-${connector}`,
|
|
@@ -164,6 +150,102 @@ function AuthorizingStatus(props) {
|
|
|
164
150
|
})]
|
|
165
151
|
});
|
|
166
152
|
}
|
|
153
|
+
function ConsentRequiredStatus(props) {
|
|
154
|
+
const {
|
|
155
|
+
onAccept,
|
|
156
|
+
onDecline,
|
|
157
|
+
privacyPolicy,
|
|
158
|
+
tncLink
|
|
159
|
+
} = props;
|
|
160
|
+
const [t] = reactI18next.useTranslation(undefined, {
|
|
161
|
+
i18n: localeImport
|
|
162
|
+
});
|
|
163
|
+
const [isSubmitting, setIsSubmitting] = react.useState(false);
|
|
164
|
+
const handleAccept = async () => {
|
|
165
|
+
setIsSubmitting(true);
|
|
166
|
+
try {
|
|
167
|
+
await (onAccept === null || onAccept === void 0 ? void 0 : onAccept());
|
|
168
|
+
} finally {
|
|
169
|
+
setIsSubmitting(false);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const handleDecline = async () => {
|
|
173
|
+
setIsSubmitting(true);
|
|
174
|
+
try {
|
|
175
|
+
await (onDecline === null || onDecline === void 0 ? void 0 : onDecline());
|
|
176
|
+
} finally {
|
|
177
|
+
setIsSubmitting(false);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
return jsxRuntime.jsxs("div", {
|
|
181
|
+
className: "w3a--flex w3a--w-full w3a--flex-col w3a--items-center w3a--gap-y-6 w3a--mt-8",
|
|
182
|
+
children: [jsxRuntime.jsx("div", {
|
|
183
|
+
className: "w3a--flex w3a--items-center w3a--justify-center w3a--p-3 w3a--bg-app-gray-100 dark:w3a--bg-app-gray-800 w3a--rounded-full w3a--text-app-gray-600 dark:w3a--text-app-white",
|
|
184
|
+
children: jsxRuntime.jsx("svg", {
|
|
185
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
186
|
+
fill: "none",
|
|
187
|
+
viewBox: "0 0 24 24",
|
|
188
|
+
className: "w3a--size-10",
|
|
189
|
+
children: jsxRuntime.jsx("path", {
|
|
190
|
+
stroke: "currentColor",
|
|
191
|
+
strokeLinecap: "round",
|
|
192
|
+
strokeLinejoin: "round",
|
|
193
|
+
strokeWidth: "2",
|
|
194
|
+
d: "M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2"
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
}), jsxRuntime.jsx("div", {
|
|
198
|
+
className: "w3a--w-full w3a--px-8 w3a--text-center w3a--text-app-gray-900 dark:w3a--text-app-white",
|
|
199
|
+
children: t("modal.consent.description", {
|
|
200
|
+
defaultValue: "To proceed, please accept the terms and privacy policy"
|
|
201
|
+
})
|
|
202
|
+
}), (tncLink || privacyPolicy) && jsxRuntime.jsxs("div", {
|
|
203
|
+
className: "w3a--flex w3a--w-full w3a--flex-col w3a--gap-y-2",
|
|
204
|
+
children: [tncLink && jsxRuntime.jsx("a", {
|
|
205
|
+
href: tncLink,
|
|
206
|
+
target: "_blank",
|
|
207
|
+
rel: "noopener noreferrer",
|
|
208
|
+
className: "w3a--btn !w3a--text-sm w3a--font-light !w3a--justify-start w3a--rounded-full w3a--border-app-gray-50 w3a--bg-app-gray-50 w3a--p-3 w3a--text-left w3a--text-app-gray-700 hover:w3a--border-app-gray-200 hover:w3a--bg-app-gray-200 hover:w3a--text-app-gray-900 dark:w3a--border-app-gray-800 dark:w3a--bg-app-gray-800 dark:w3a--text-app-white dark:hover:w3a--border-app-gray-600 dark:hover:w3a--bg-app-gray-600",
|
|
209
|
+
children: t("modal.consent.tnc", {
|
|
210
|
+
defaultValue: "Terms of service"
|
|
211
|
+
})
|
|
212
|
+
}), privacyPolicy && jsxRuntime.jsx("a", {
|
|
213
|
+
href: privacyPolicy,
|
|
214
|
+
target: "_blank",
|
|
215
|
+
rel: "noopener noreferrer",
|
|
216
|
+
className: "w3a--btn !w3a--text-sm w3a--font-light !w3a--justify-start w3a--rounded-full w3a--border-app-gray-50 w3a--bg-app-gray-50 w3a--p-3 w3a--text-left w3a--text-app-gray-700 hover:w3a--border-app-gray-200 hover:w3a--bg-app-gray-200 hover:w3a--text-app-gray-900 dark:w3a--border-app-gray-800 dark:w3a--bg-app-gray-800 dark:w3a--text-app-white dark:hover:w3a--border-app-gray-600 dark:hover:w3a--bg-app-gray-600",
|
|
217
|
+
children: t("modal.consent.privacy", {
|
|
218
|
+
defaultValue: "Privacy Policy"
|
|
219
|
+
})
|
|
220
|
+
})]
|
|
221
|
+
}), jsxRuntime.jsxs("div", {
|
|
222
|
+
className: "w3a--flex w3a--w-full w3a--gap-x-2",
|
|
223
|
+
children: [jsxRuntime.jsx("button", {
|
|
224
|
+
type: "button",
|
|
225
|
+
disabled: isSubmitting,
|
|
226
|
+
onClick: handleDecline,
|
|
227
|
+
className: "w3a--btn w3a--rounded-full disabled:w3a--opacity-60",
|
|
228
|
+
children: jsxRuntime.jsx("p", {
|
|
229
|
+
className: "w3a--text-app-gray-900 dark:w3a--text-app-white",
|
|
230
|
+
children: t("modal.consent.decline", {
|
|
231
|
+
defaultValue: "Decline"
|
|
232
|
+
})
|
|
233
|
+
})
|
|
234
|
+
}), jsxRuntime.jsx("button", {
|
|
235
|
+
type: "button",
|
|
236
|
+
disabled: isSubmitting,
|
|
237
|
+
onClick: handleAccept,
|
|
238
|
+
className: "w3a--btn w3a--rounded-full w3a--border-app-primary-600 w3a--bg-app-primary-600 hover:w3a--border-app-primary-700 hover:w3a--bg-app-primary-700 disabled:w3a--opacity-60 dark:w3a--border-app-primary-600 dark:w3a--bg-app-primary-600 dark:hover:w3a--border-app-primary-700 dark:hover:w3a--bg-app-primary-700",
|
|
239
|
+
children: jsxRuntime.jsx("p", {
|
|
240
|
+
className: "w3a--text-app-onPrimary",
|
|
241
|
+
children: t("modal.consent.accept", {
|
|
242
|
+
defaultValue: "Accept"
|
|
243
|
+
})
|
|
244
|
+
})
|
|
245
|
+
})]
|
|
246
|
+
})]
|
|
247
|
+
});
|
|
248
|
+
}
|
|
167
249
|
/**
|
|
168
250
|
* Loader component
|
|
169
251
|
* @param props - LoaderProps
|
|
@@ -175,13 +257,15 @@ function Loader(props) {
|
|
|
175
257
|
connectorName,
|
|
176
258
|
modalStatus,
|
|
177
259
|
onClose,
|
|
178
|
-
appLogo,
|
|
179
260
|
message,
|
|
180
261
|
isConnectAndSignAuthenticationMode,
|
|
181
262
|
externalWalletsConfig,
|
|
182
|
-
walletRegistry,
|
|
183
263
|
handleMobileVerifyConnect,
|
|
184
|
-
hideSuccessScreen = false
|
|
264
|
+
hideSuccessScreen = false,
|
|
265
|
+
onAcceptConsent,
|
|
266
|
+
onDeclineConsent,
|
|
267
|
+
privacyPolicy,
|
|
268
|
+
tncLink
|
|
185
269
|
} = props;
|
|
186
270
|
const isConnectedAccordingToAuthenticationMode = react.useMemo(() => !isConnectAndSignAuthenticationMode && modalStatus === interfaces.MODAL_STATUS.CONNECTED || isConnectAndSignAuthenticationMode && modalStatus === interfaces.MODAL_STATUS.AUTHORIZED, [modalStatus, isConnectAndSignAuthenticationMode]);
|
|
187
271
|
react.useEffect(() => {
|
|
@@ -195,12 +279,12 @@ function Loader(props) {
|
|
|
195
279
|
return () => clearTimeout(timeout);
|
|
196
280
|
}
|
|
197
281
|
}, [isConnectedAccordingToAuthenticationMode, hideSuccessScreen, onClose]);
|
|
282
|
+
const isConsentRequiringStatus = modalStatus === interfaces.MODAL_STATUS.CONSENT_REQUIRING;
|
|
198
283
|
return jsxRuntime.jsxs("div", {
|
|
199
|
-
className: "w3a--flex w3a--h-full w3a--flex-1 w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4",
|
|
284
|
+
className: isConsentRequiringStatus ? "w3a--flex w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4" : "w3a--flex w3a--h-full w3a--flex-1 w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4",
|
|
200
285
|
children: [modalStatus === interfaces.MODAL_STATUS.CONNECTING && jsxRuntime.jsx(ConnectingStatus, {
|
|
201
286
|
connector: connector,
|
|
202
|
-
connectorName: connectorName
|
|
203
|
-
appLogo: appLogo
|
|
287
|
+
connectorName: connectorName
|
|
204
288
|
}), isConnectedAccordingToAuthenticationMode && !hideSuccessScreen && jsxRuntime.jsx(ConnectedStatus, {
|
|
205
289
|
message: message
|
|
206
290
|
}), modalStatus === interfaces.MODAL_STATUS.ERRORED && jsxRuntime.jsx(ErroredStatus, {
|
|
@@ -208,8 +292,12 @@ function Loader(props) {
|
|
|
208
292
|
}), modalStatus === interfaces.MODAL_STATUS.AUTHORIZING && jsxRuntime.jsx(AuthorizingStatus, {
|
|
209
293
|
connector: connector,
|
|
210
294
|
externalWalletsConfig: externalWalletsConfig,
|
|
211
|
-
walletRegistry: walletRegistry,
|
|
212
295
|
handleMobileVerifyConnect: handleMobileVerifyConnect
|
|
296
|
+
}), isConsentRequiringStatus && jsxRuntime.jsx(ConsentRequiredStatus, {
|
|
297
|
+
onAccept: onAcceptConsent,
|
|
298
|
+
onDecline: onDeclineConsent,
|
|
299
|
+
privacyPolicy: privacyPolicy,
|
|
300
|
+
tncLink: tncLink
|
|
213
301
|
})]
|
|
214
302
|
});
|
|
215
303
|
}
|
|
@@ -64,7 +64,6 @@ function SocialLoginList(props) {
|
|
|
64
64
|
children: getProviderIcon(row.method, isDark, ".svg")
|
|
65
65
|
}),
|
|
66
66
|
onClick: () => handleSocialLoginClick({
|
|
67
|
-
connector: row.connector,
|
|
68
67
|
loginParams: row.loginParams
|
|
69
68
|
}),
|
|
70
69
|
buttonRadius
|
|
@@ -88,7 +87,6 @@ function SocialLoginList(props) {
|
|
|
88
87
|
children: getProviderIcon(row.method, isDark, ".svg")
|
|
89
88
|
}),
|
|
90
89
|
onClick: () => handleSocialLoginClick({
|
|
91
|
-
connector: row.connector,
|
|
92
90
|
loginParams: row.loginParams
|
|
93
91
|
}),
|
|
94
92
|
buttonRadius
|
|
@@ -97,6 +95,7 @@ function SocialLoginList(props) {
|
|
|
97
95
|
}, row.method)), canShowMore && visibleRow.length > 4 && jsxRuntime.jsx(Button, {
|
|
98
96
|
type: Button_type.BUTTON_TYPE.SOCIAL,
|
|
99
97
|
props: {
|
|
98
|
+
isDark,
|
|
100
99
|
showIcon: false,
|
|
101
100
|
onClick: handleExpandSocialLogins,
|
|
102
101
|
btnStyle: "w3a--flex w3a--items-center !w3a--justify-center w3a--w-full w3a--h-11",
|
|
@@ -133,7 +132,6 @@ function SocialLoginList(props) {
|
|
|
133
132
|
isDark,
|
|
134
133
|
isPrimaryBtn: false,
|
|
135
134
|
onClick: () => handleSocialLoginClick({
|
|
136
|
-
connector: row.connector,
|
|
137
135
|
loginParams: row.loginParams
|
|
138
136
|
}),
|
|
139
137
|
btnStyle: "w3a--group w3a--relative w3a--overflow-hidden w3a--flex w3a--items-center !w3a--justify-start w3a--w-full w3a--h-11",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styleInject_es = require('../../../../../../node_modules/style-inject/dist/style-inject.es.js');
|
|
4
|
+
|
|
5
|
+
var css_248z = ".w3a-parent-container .w3a--spinner-loader{display:inline-flex;height:60px;position:relative;width:60px}.w3a-parent-container .w3a--spinner-loader-ring{--spinner-color:var(--app-gray-400);background-image:conic-gradient(from 0deg at 50% 50%,var(--spinner-color) 0,#e5e7ebcc 90deg,#e5e7ebcc 270deg,var(--spinner-color) 1turn);background-position:0 0;background-size:100% 100%;border-radius:100vw;display:inline-block;height:100%;-webkit-mask:radial-gradient(farthest-side,#000 98%,#0000) center/85% 85% no-repeat,linear-gradient(#000 0 0);-webkit-mask-composite:destination-out;mask:radial-gradient(farthest-side,#000 98%,#0000) center/85% 85% no-repeat,linear-gradient(#000 0 0);mask-composite:exclude;position:absolute;width:100%}.w3a-parent-container .w3a--dark .w3a--spinner-loader-ring{background-image:conic-gradient(from 0deg at 50% 50%,var(--spinner-color) 0,#e5e7eb33 90deg,#e5e7eb33 270deg,var(--spinner-color) 1turn)}.w3a-parent-container .w3a--spinner-loader-image{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}";
|
|
6
|
+
styleInject_es(css_248z);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
require('./SpinnerLoader.css.js');
|
|
5
|
+
var utils = require('../../utils.js');
|
|
6
|
+
|
|
7
|
+
const SpinnerLoader = props => {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
classes,
|
|
11
|
+
width = 60,
|
|
12
|
+
height = 60,
|
|
13
|
+
className
|
|
14
|
+
} = props;
|
|
15
|
+
return jsxRuntime.jsxs("div", {
|
|
16
|
+
className: utils.cn("w3a--spinner-loader", className),
|
|
17
|
+
style: {
|
|
18
|
+
width,
|
|
19
|
+
height
|
|
20
|
+
},
|
|
21
|
+
children: [jsxRuntime.jsx("div", {
|
|
22
|
+
className: utils.cn("w3a--spinner-loader-ring w3a--animate-spin", classes === null || classes === void 0 ? void 0 : classes.spinner)
|
|
23
|
+
}), children && jsxRuntime.jsx("div", {
|
|
24
|
+
className: "w3a--spinner-loader-image",
|
|
25
|
+
children: children
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
module.exports = SpinnerLoader;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const PAGES = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/** Main login options: social logins and wallet button (e.g. MetaMask) */
|
|
5
|
+
LOGIN_OPTIONS: "login",
|
|
6
|
+
/** List of all available wallets to connect */
|
|
7
|
+
WALLET_LIST: "connect_wallet"};
|
|
6
8
|
const CONNECT_WALLET_PAGES = {
|
|
7
9
|
CONNECT_WALLET: "Connect Your Wallet",
|
|
10
|
+
/** Sub-page title when showing QR/instructions for selected wallet */
|
|
8
11
|
SELECTED_WALLET: "Selected Wallet"
|
|
9
12
|
};
|
|
10
13
|
const DEFAULT_LOGO_LIGHT = "https://images.web3auth.io/web3auth-logo-w.svg"; // logo used on light mode
|