@dynamic-labs/sdk-react-core 0.18.0-RC.2 → 0.18.0-RC.4
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/CHANGELOG.md +31 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +1 -0
- package/src/index.js +1 -0
- package/src/lib/Main.cjs +1 -0
- package/src/lib/Main.js +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -0
- package/src/lib/components/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.js +1 -1
- package/src/lib/components/ChainCard/ChainCard.cjs +11 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +4 -2
- package/src/lib/components/ChainCard/ChainCard.js +7 -0
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -0
- package/src/lib/components/Portal/Portal.cjs +1 -0
- package/src/lib/components/Portal/Portal.js +1 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +11 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -2
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +7 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/src/lib/components/Tooltip/Tooltip.js +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -0
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +37 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.d.ts +9 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +27 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +6 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +6 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -0
- package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.cjs +1 -0
- package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.js +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.cjs +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.js +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.cjs +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.js +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -0
- package/src/lib/shared/types/index.d.ts +3 -0
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +20 -0
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +1 -0
- package/src/lib/shared/utils/classes/storage/localStorage.js +20 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +6 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +3 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +6 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +2 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -3
- package/src/lib/utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.d.ts +2 -4
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +2 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +2 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +1 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -0
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +1 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +1 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +1 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +1 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -0
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -0
- package/src/lib/views/NoAccess/NoAccess.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +1 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +21 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.d.ts +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +17 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +55 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +6 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +51 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +1 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +1 -2
- package/src/lib/views/WalletList/WalletList.js +1 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +5 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +5 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -0
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +2 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -0
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.cjs +0 -12
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +0 -1
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.js +0 -8
|
@@ -36,6 +36,7 @@ require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
36
36
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
37
37
|
require('../../../components/IconButton/IconButton.cjs');
|
|
38
38
|
require('../../../components/Alert/Alert.cjs');
|
|
39
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
39
40
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
41
|
require('../../../context/MockContext/MockContext.cjs');
|
|
41
42
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -32,6 +32,7 @@ import '../../../context/ErrorContext/ErrorContext.js';
|
|
|
32
32
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
33
33
|
import '../../../components/IconButton/IconButton.js';
|
|
34
34
|
import '../../../components/Alert/Alert.js';
|
|
35
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
35
36
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
37
|
import '../../../context/MockContext/MockContext.js';
|
|
37
38
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs
CHANGED
|
@@ -32,6 +32,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
32
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../components/IconButton/IconButton.cjs');
|
|
34
34
|
require('../../components/Alert/Alert.cjs');
|
|
35
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
35
36
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
36
37
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
38
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js
CHANGED
|
@@ -28,6 +28,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
28
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../components/IconButton/IconButton.js';
|
|
30
30
|
import '../../components/Alert/Alert.js';
|
|
31
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
31
32
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
32
33
|
import '../../context/MockContext/MockContext.js';
|
|
33
34
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -36,6 +36,7 @@ var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
|
36
36
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
37
37
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
38
38
|
require('../../components/Alert/Alert.cjs');
|
|
39
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
39
40
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
41
42
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -32,6 +32,7 @@ import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
|
32
32
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
33
33
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
34
34
|
import '../../components/Alert/Alert.js';
|
|
35
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
35
36
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
37
|
import '../../context/MockContext/MockContext.js';
|
|
37
38
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -35,6 +35,7 @@ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
35
35
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
36
36
|
var Button = require('../../components/Button/Button.cjs');
|
|
37
37
|
require('../../components/Alert/Alert.cjs');
|
|
38
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
38
39
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
39
40
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
41
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -31,6 +31,7 @@ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
31
31
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
32
32
|
import { Button } from '../../components/Button/Button.js';
|
|
33
33
|
import '../../components/Alert/Alert.js';
|
|
34
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
34
35
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
35
36
|
import '../../context/MockContext/MockContext.js';
|
|
36
37
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -39,6 +39,7 @@ var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs
|
|
|
39
39
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
40
40
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
41
41
|
require('../../components/Alert/Alert.cjs');
|
|
42
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
42
43
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
43
44
|
require('../../context/MockContext/MockContext.cjs');
|
|
44
45
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -35,6 +35,7 @@ import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.j
|
|
|
35
35
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
36
36
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
37
37
|
import '../../components/Alert/Alert.js';
|
|
38
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
38
39
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
39
40
|
import '../../context/MockContext/MockContext.js';
|
|
40
41
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -35,6 +35,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
35
35
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
36
|
require('formik');
|
|
37
37
|
require('yup');
|
|
38
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
38
39
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
39
40
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
41
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -31,6 +31,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
31
31
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
32
32
|
import 'formik';
|
|
33
33
|
import 'yup';
|
|
34
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
34
35
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
35
36
|
import '../../context/MockContext/MockContext.js';
|
|
36
37
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -24,7 +24,6 @@ var useInternalDynamicContext = require('../../context/DynamicContext/useInterna
|
|
|
24
24
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
25
25
|
var walletListBuilder = require('../../utils/functions/walletListBuilder/walletListBuilder.cjs');
|
|
26
26
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
27
|
-
var hasWalletGroupFlag = require('../../utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.cjs');
|
|
28
27
|
var LoginWithEmailForm = require('./components/LoginWithEmailForm/LoginWithEmailForm.cjs');
|
|
29
28
|
var LoginWithEmailWalletList = require('./components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs');
|
|
30
29
|
var SocialSignIn = require('./components/SocialSignIn/SocialSignIn.cjs');
|
|
@@ -36,7 +35,7 @@ const LoginWithEmailView = () => {
|
|
|
36
35
|
const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
|
|
37
36
|
const { enabledSocialProviders } = SocialRedirectContext.useSocialRedirectContext();
|
|
38
37
|
const { numberOfWallets, walletsList } = walletListBuilder.walletListBuilder({
|
|
39
|
-
groupWallets:
|
|
38
|
+
groupWallets: true,
|
|
40
39
|
inputList: wallets,
|
|
41
40
|
isWalletConnectList: false,
|
|
42
41
|
lastUsedWalletName: localStorage.LocalStorage.getFromLS(localStorage$1.LAST_USED_WALLET),
|
|
@@ -20,7 +20,6 @@ import { useInternalDynamicContext } from '../../context/DynamicContext/useInter
|
|
|
20
20
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
21
21
|
import { walletListBuilder } from '../../utils/functions/walletListBuilder/walletListBuilder.js';
|
|
22
22
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
23
|
-
import { hasWalletGroupFlag } from '../../utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.js';
|
|
24
23
|
import { LoginWithEmailForm } from './components/LoginWithEmailForm/LoginWithEmailForm.js';
|
|
25
24
|
import { NUMBER_OF_WALLETS, LoginWithEmailWalletList } from './components/LoginWithEmailWalletList/LoginWithEmailWalletList.js';
|
|
26
25
|
import { SocialSignIn } from './components/SocialSignIn/SocialSignIn.js';
|
|
@@ -32,7 +31,7 @@ const LoginWithEmailView = () => {
|
|
|
32
31
|
const { walletBook } = useWalletBookContext();
|
|
33
32
|
const { enabledSocialProviders } = useSocialRedirectContext();
|
|
34
33
|
const { numberOfWallets, walletsList } = walletListBuilder({
|
|
35
|
-
groupWallets:
|
|
34
|
+
groupWallets: true,
|
|
36
35
|
inputList: wallets,
|
|
37
36
|
isWalletConnectList: false,
|
|
38
37
|
lastUsedWalletName: LocalStorage.getFromLS(LAST_USED_WALLET),
|
|
@@ -34,6 +34,7 @@ require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
34
34
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
35
35
|
require('../../../../components/Alert/Alert.cjs');
|
|
36
36
|
var Badge = require('../../../../components/Badge/Badge.cjs');
|
|
37
|
+
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
37
38
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,6 +30,7 @@ import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
30
30
|
import '../../../../components/IconButton/IconButton.js';
|
|
31
31
|
import '../../../../components/Alert/Alert.js';
|
|
32
32
|
import { Badge } from '../../../../components/Badge/Badge.js';
|
|
33
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
33
34
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs
CHANGED
|
@@ -37,6 +37,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
37
37
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
38
38
|
require('formik');
|
|
39
39
|
require('yup');
|
|
40
|
+
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
40
41
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
41
42
|
var useWalletItemActions = require('../../../../utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
42
43
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js
CHANGED
|
@@ -33,6 +33,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
33
33
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
34
34
|
import 'formik';
|
|
35
35
|
import 'yup';
|
|
36
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
36
37
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
37
38
|
import { useWalletItemActions } from '../../../../utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
38
39
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -37,6 +37,7 @@ var ModalHeader = require('../../../../components/ModalHeader/ModalHeader.cjs');
|
|
|
37
37
|
var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
38
38
|
var IconWithSpinner = require('../../../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
39
39
|
require('../../../../components/Alert/Alert.cjs');
|
|
40
|
+
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
40
41
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
41
42
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
42
43
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -33,6 +33,7 @@ import { ModalHeader } from '../../../../components/ModalHeader/ModalHeader.js';
|
|
|
33
33
|
import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
34
34
|
import { IconWithSpinner } from '../../../../components/IconWithSpinner/IconWithSpinner.js';
|
|
35
35
|
import '../../../../components/Alert/Alert.js';
|
|
36
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
36
37
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
37
38
|
import '../../../../context/MockContext/MockContext.js';
|
|
38
39
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -34,6 +34,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
34
34
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
35
|
require('../../components/IconButton/IconButton.cjs');
|
|
36
36
|
require('../../components/Alert/Alert.cjs');
|
|
37
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
37
38
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,6 +30,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
30
30
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
31
|
import '../../components/IconButton/IconButton.js';
|
|
32
32
|
import '../../components/Alert/Alert.js';
|
|
33
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
33
34
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -34,6 +34,7 @@ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
34
34
|
require('../../components/IconButton/IconButton.cjs');
|
|
35
35
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
36
36
|
require('../../components/Alert/Alert.cjs');
|
|
37
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
37
38
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,6 +30,7 @@ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
30
30
|
import '../../components/IconButton/IconButton.js';
|
|
31
31
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
32
32
|
import '../../components/Alert/Alert.js';
|
|
33
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
33
34
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -35,6 +35,7 @@ require('../../components/IconButton/IconButton.cjs');
|
|
|
35
35
|
var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs');
|
|
36
36
|
var Button = require('../../components/Button/Button.cjs');
|
|
37
37
|
require('../../components/Alert/Alert.cjs');
|
|
38
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
38
39
|
var StatusDot = require('../../components/StatusDot/StatusDot.cjs');
|
|
39
40
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
@@ -31,6 +31,7 @@ import '../../components/IconButton/IconButton.js';
|
|
|
31
31
|
import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.js';
|
|
32
32
|
import { Button } from '../../components/Button/Button.js';
|
|
33
33
|
import '../../components/Alert/Alert.js';
|
|
34
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
34
35
|
import { StatusDot } from '../../components/StatusDot/StatusDot.js';
|
|
35
36
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
37
|
import '../../context/MockContext/MockContext.js';
|
|
@@ -32,6 +32,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
32
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../components/IconButton/IconButton.cjs');
|
|
34
34
|
require('../../components/Alert/Alert.cjs');
|
|
35
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
35
36
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
36
37
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
38
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -28,6 +28,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
28
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../components/IconButton/IconButton.js';
|
|
30
30
|
import '../../components/Alert/Alert.js';
|
|
31
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
31
32
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
32
33
|
import '../../context/MockContext/MockContext.js';
|
|
33
34
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -31,6 +31,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
31
31
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
32
|
require('../../components/IconButton/IconButton.cjs');
|
|
33
33
|
require('../../components/Alert/Alert.cjs');
|
|
34
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
34
35
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
35
36
|
require('../../context/MockContext/MockContext.cjs');
|
|
36
37
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -27,6 +27,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
27
27
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
28
|
import '../../components/IconButton/IconButton.js';
|
|
29
29
|
import '../../components/Alert/Alert.js';
|
|
30
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
30
31
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
31
32
|
import '../../context/MockContext/MockContext.js';
|
|
32
33
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -34,6 +34,7 @@ require('../../components/IconButton/IconButton.cjs');
|
|
|
34
34
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
35
35
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
36
36
|
require('../../components/Alert/Alert.cjs');
|
|
37
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
37
38
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,6 +30,7 @@ import '../../components/IconButton/IconButton.js';
|
|
|
30
30
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
31
31
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
32
32
|
import '../../components/Alert/Alert.js';
|
|
33
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
33
34
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -38,6 +38,7 @@ var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynam
|
|
|
38
38
|
var Button = require('../../components/Button/Button.cjs');
|
|
39
39
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
40
40
|
require('../../components/Alert/Alert.cjs');
|
|
41
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
41
42
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
42
43
|
require('../../context/MockContext/MockContext.cjs');
|
|
43
44
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -34,6 +34,7 @@ import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDyn
|
|
|
34
34
|
import { Button } from '../../components/Button/Button.js';
|
|
35
35
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
36
36
|
import '../../components/Alert/Alert.js';
|
|
37
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
37
38
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
38
39
|
import '../../context/MockContext/MockContext.js';
|
|
39
40
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -36,6 +36,7 @@ require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
36
36
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
37
37
|
require('../../../components/IconButton/IconButton.cjs');
|
|
38
38
|
require('../../../components/Alert/Alert.cjs');
|
|
39
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
39
40
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
41
|
require('../../../context/MockContext/MockContext.cjs');
|
|
41
42
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -32,6 +32,7 @@ import '../../../context/ErrorContext/ErrorContext.js';
|
|
|
32
32
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
33
33
|
import '../../../components/IconButton/IconButton.js';
|
|
34
34
|
import '../../../components/Alert/Alert.js';
|
|
35
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
35
36
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
37
|
import '../../../context/MockContext/MockContext.js';
|
|
37
38
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -32,6 +32,7 @@ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
32
32
|
require('../../components/IconButton/IconButton.cjs');
|
|
33
33
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
34
34
|
require('../../components/Alert/Alert.cjs');
|
|
35
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
35
36
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
36
37
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
38
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -28,6 +28,7 @@ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
28
28
|
import '../../components/IconButton/IconButton.js';
|
|
29
29
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
30
30
|
import '../../components/Alert/Alert.js';
|
|
31
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
31
32
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
32
33
|
import '../../context/MockContext/MockContext.js';
|
|
33
34
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -41,6 +41,7 @@ var SendBalancePageLayout = require('../../components/SendBalancePageLayout/Send
|
|
|
41
41
|
var TransactionConfirmationView = require('../TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
42
42
|
var TransactionStatusLayout = require('../../components/TransactionStatusLayout/TransactionStatusLayout.cjs');
|
|
43
43
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
44
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
44
45
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
45
46
|
require('../../context/MockContext/MockContext.cjs');
|
|
46
47
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -37,6 +37,7 @@ import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/Se
|
|
|
37
37
|
import { TransactionConfirmationView } from '../TransactionConfirmationView/TransactionConfirmationView.js';
|
|
38
38
|
import { TransactionStatusLayout } from '../../components/TransactionStatusLayout/TransactionStatusLayout.js';
|
|
39
39
|
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
40
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
40
41
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
41
42
|
import '../../context/MockContext/MockContext.js';
|
|
42
43
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -33,6 +33,7 @@ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
33
33
|
require('../../components/IconButton/IconButton.cjs');
|
|
34
34
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
35
35
|
require('../../components/Alert/Alert.cjs');
|
|
36
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
36
37
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
38
39
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -29,6 +29,7 @@ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
29
29
|
import '../../components/IconButton/IconButton.js';
|
|
30
30
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
31
31
|
import '../../components/Alert/Alert.js';
|
|
32
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
32
33
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
34
35
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -34,6 +34,7 @@ require('../../components/IconButton/IconButton.cjs');
|
|
|
34
34
|
var Button = require('../../components/Button/Button.cjs');
|
|
35
35
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
36
36
|
require('../../components/Alert/Alert.cjs');
|
|
37
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
37
38
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,6 +30,7 @@ import '../../components/IconButton/IconButton.js';
|
|
|
30
30
|
import { Button } from '../../components/Button/Button.js';
|
|
31
31
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
32
32
|
import '../../components/Alert/Alert.js';
|
|
33
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
33
34
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -44,6 +44,7 @@ require('yup');
|
|
|
44
44
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
45
45
|
var useTransactionData = require('./hooks/useTransactionData/useTransactionData.cjs');
|
|
46
46
|
var transactionErrorMessage = require('./helpers/transactionErrorMessage.cjs');
|
|
47
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
47
48
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
48
49
|
require('../../context/MockContext/MockContext.cjs');
|
|
49
50
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -40,6 +40,7 @@ import 'yup';
|
|
|
40
40
|
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
41
41
|
import { useTransactionData } from './hooks/useTransactionData/useTransactionData.js';
|
|
42
42
|
import { transactionErrorMessage } from './helpers/transactionErrorMessage.js';
|
|
43
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
43
44
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
44
45
|
import '../../context/MockContext/MockContext.js';
|
|
45
46
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs
CHANGED
|
@@ -35,6 +35,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
35
35
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
36
|
require('formik');
|
|
37
37
|
require('yup');
|
|
38
|
+
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
38
39
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
39
40
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
40
41
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js
CHANGED
|
@@ -31,6 +31,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
31
31
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
32
32
|
import 'formik';
|
|
33
33
|
import 'yup';
|
|
34
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
34
35
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
35
36
|
import '../../../../context/MockContext/MockContext.js';
|
|
36
37
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
|
+
var SelectWalletChainLayout = require('../../components/SelectWalletChainLayout/SelectWalletChainLayout.cjs');
|
|
8
|
+
var WalletGroupContext = require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
9
|
+
var WalletGroupItem = require('./components/WalletGroupItem/WalletGroupItem.cjs');
|
|
10
|
+
|
|
11
|
+
const WalletGroupView = () => {
|
|
12
|
+
var _a;
|
|
13
|
+
const { selectedWalletGroup } = WalletGroupContext.useWalletGroupContext();
|
|
14
|
+
const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
|
|
15
|
+
if (!selectedWalletGroup)
|
|
16
|
+
throw new Error('Could not access WalletGroup view without selected group');
|
|
17
|
+
const walletBookData = walletBook.getWalletGroup(walletBook$1, selectedWalletGroup === null || selectedWalletGroup === void 0 ? void 0 : selectedWalletGroup.key);
|
|
18
|
+
return (jsxRuntime.jsx(SelectWalletChainLayout.SelectWalletChainLayout, Object.assign({ HeaderIcon: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: (_a = walletBookData.brand) === null || _a === void 0 ? void 0 : _a.spriteId }) }, { children: selectedWalletGroup.groupedWallets.map((wallet) => (jsxRuntime.jsx(WalletGroupItem.WalletGroupItem, { wallet: wallet }, wallet.key))) })));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.WalletGroupView = WalletGroupView;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useWalletBookContext, getWalletGroup, WalletIcon } from '@dynamic-labs/wallet-book';
|
|
3
|
+
import { SelectWalletChainLayout } from '../../components/SelectWalletChainLayout/SelectWalletChainLayout.js';
|
|
4
|
+
import { useWalletGroupContext } from '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
5
|
+
import { WalletGroupItem } from './components/WalletGroupItem/WalletGroupItem.js';
|
|
6
|
+
|
|
7
|
+
const WalletGroupView = () => {
|
|
8
|
+
var _a;
|
|
9
|
+
const { selectedWalletGroup } = useWalletGroupContext();
|
|
10
|
+
const { walletBook } = useWalletBookContext();
|
|
11
|
+
if (!selectedWalletGroup)
|
|
12
|
+
throw new Error('Could not access WalletGroup view without selected group');
|
|
13
|
+
const walletBookData = getWalletGroup(walletBook, selectedWalletGroup === null || selectedWalletGroup === void 0 ? void 0 : selectedWalletGroup.key);
|
|
14
|
+
return (jsx(SelectWalletChainLayout, Object.assign({ HeaderIcon: jsx(WalletIcon, { walletName: (_a = walletBookData.brand) === null || _a === void 0 ? void 0 : _a.spriteId }) }, { children: selectedWalletGroup.groupedWallets.map((wallet) => (jsx(WalletGroupItem, { wallet: wallet }, wallet.key))) })));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { WalletGroupView };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
|
+
var iconic = require('@dynamic-labs/iconic');
|
|
9
|
+
require('@dynamic-labs/sdk-api');
|
|
10
|
+
require('../../../../shared/logger.cjs');
|
|
11
|
+
var getChainIcon = require('../../../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
12
|
+
require('@dynamic-labs/wallet-book');
|
|
13
|
+
var getWalletListItemLabel = require('../../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs');
|
|
14
|
+
require('ethers');
|
|
15
|
+
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
16
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
var stroke = require('../../../../shared/assets/stroke.cjs');
|
|
18
|
+
require('../../../../shared/consts/index.cjs');
|
|
19
|
+
var localStorage$1 = require('../../../../utils/constants/localStorage.cjs');
|
|
20
|
+
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
21
|
+
var Badge = require('../../../../components/Badge/Badge.cjs');
|
|
22
|
+
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
23
|
+
var ChainCard = require('../../../../components/ChainCard/ChainCard.cjs');
|
|
24
|
+
var useWalletItemActions = require('../../../../utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
25
|
+
var pixelToRem = require('../../../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
26
|
+
|
|
27
|
+
const WalletGroupItem = ({ wallet }) => {
|
|
28
|
+
const [supportedChain] = wallet.walletConnector.supportedChains;
|
|
29
|
+
const ChainIcon = getChainIcon.getChainIcon(supportedChain);
|
|
30
|
+
const chainInfo = walletConnectorCore.getChainInfo(supportedChain);
|
|
31
|
+
const { handleWalletItemClick } = useWalletItemActions.useWalletItemActions();
|
|
32
|
+
const isUsingMultiWallet = Boolean(localStorage.getItem(localStorage$1.AUTH_USER));
|
|
33
|
+
const label = getWalletListItemLabel.getWalletListItemLabel({
|
|
34
|
+
usingMultiWallet: isUsingMultiWallet,
|
|
35
|
+
wallet,
|
|
36
|
+
});
|
|
37
|
+
const isPhantomLedger = wallet.key === 'phantomledger';
|
|
38
|
+
const isComingSoon = label === 'Coming soon';
|
|
39
|
+
const trailing = (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('wallet-list-item__trailing', 'wallet-group__item-label') }, { children: [label && (jsxRuntime.jsx("div", Object.assign({ className: classNames.classNames('trailing__child', {
|
|
40
|
+
trailing__label: !isComingSoon,
|
|
41
|
+
}) }, { children: jsxRuntime.jsx(Badge.Badge, { dot: !isComingSoon, text: label, className: 'trailing__badge' }) }))), !isComingSoon && (jsxRuntime.jsx("div", Object.assign({ "data-testid": 'trailing__arrow', className: 'trailing__child trailing__arrow' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary', size: 'small' }, { children: jsxRuntime.jsx(stroke.ReactComponent, {}) })) })))] })));
|
|
42
|
+
const renderChainIcon = React.useMemo(() => {
|
|
43
|
+
if (isPhantomLedger)
|
|
44
|
+
return (jsxRuntime.jsx(iconic.LedgerIcon, { style: { height: pixelToRem.pixelToRem(28), width: pixelToRem.pixelToRem(28) } }));
|
|
45
|
+
return (jsxRuntime.jsx(ChainIcon, { style: { height: pixelToRem.pixelToRem(28), width: pixelToRem.pixelToRem(28) } }));
|
|
46
|
+
}, [ChainIcon, isPhantomLedger]);
|
|
47
|
+
const renderChainName = React.useMemo(() => {
|
|
48
|
+
if (isPhantomLedger)
|
|
49
|
+
return 'Ledger (Solana)';
|
|
50
|
+
return (chainInfo === null || chainInfo === void 0 ? void 0 : chainInfo.displayName) || wallet.name;
|
|
51
|
+
}, [chainInfo === null || chainInfo === void 0 ? void 0 : chainInfo.displayName, isPhantomLedger, wallet.name]);
|
|
52
|
+
return (jsxRuntime.jsx(ChainCard.ChainCard, { className: 'wallet-group__item', onClick: () => handleWalletItemClick(wallet), chainName: renderChainName, startSlot: renderChainIcon, endSlot: trailing }, wallet.key));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.WalletGroupItem = WalletGroupItem;
|