@dynamic-labs/sdk-react-core 0.17.0-RC.17 → 0.17.0-RC.19
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 +28 -0
- package/package.cjs +10 -10
- package/package.js +10 -10
- package/package.json +17 -17
- package/src/index.cjs +8 -0
- package/src/index.js +5 -0
- package/src/lib/Main.cjs +2 -0
- package/src/lib/Main.js +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -0
- package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
- package/src/lib/components/Divider/Divider.cjs +2 -0
- package/src/lib/components/Divider/Divider.js +2 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -0
- package/src/lib/components/Input/Input.cjs +13 -6
- package/src/lib/components/Input/Input.js +14 -7
- package/src/lib/components/Input/Input.types.d.ts +4 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +2 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -0
- package/src/lib/components/Portal/Portal.cjs +2 -0
- package/src/lib/components/Portal/Portal.js +2 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +24 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +10 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +22 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +16 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/components/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/index.d.ts +2 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -0
- package/src/lib/components/Tooltip/Tooltip.js +2 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +1 -1
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +11 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +11 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -2
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -2
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +2 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +59 -20
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +60 -21
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +13 -3
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +13 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +22 -70
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +24 -72
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -3
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +2 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +2 -1
- package/src/lib/shared/utils/functions/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +13 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +9 -0
- package/src/lib/shared/utils/hooks/index.d.ts +2 -0
- package/src/lib/shared/utils/hooks/useIsMounted/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.cjs +18 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.js +14 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.cjs +12 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.d.ts +1 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.js +8 -0
- package/src/lib/utils/functions/getAppOrigin/index.d.ts +1 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +29 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +25 -0
- package/src/lib/utils/functions/getReferencedAccount/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +12 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +12 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +37 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +33 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +8 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +4 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +4 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +19 -17
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +19 -17
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +26 -36
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +1 -2
- package/src/lib/utils/hooks/useWallets/useWallets.js +27 -37
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -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 +2 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +2 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
- 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 +2 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -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 +2 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +2 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -8
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -8
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +58 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +54 -0
- package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +92 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +13 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +88 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.cjs +6 -1
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.d.ts +1 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.js +6 -1
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.cjs +2 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.js +2 -0
- package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +2 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -0
- package/src/lib/views/WalletList/data.cjs +4 -5
- package/src/lib/views/WalletList/data.d.ts +2 -2
- package/src/lib/views/WalletList/data.js +4 -5
- 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/DynamicWidget/DynamicWidget.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -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/Balance/Balance.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -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/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +11 -5
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +11 -5
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -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 +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -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 +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.d.ts +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
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 ethers = require('ethers');
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
9
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
10
|
+
require('@dynamic-labs/sdk-api');
|
|
11
|
+
require('../../config/ApiEndpoint.cjs');
|
|
12
|
+
require('../../shared/logger.cjs');
|
|
13
|
+
var getChainIcon = require('../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
16
|
+
require('../../utils/constants/colors.cjs');
|
|
17
|
+
var formatBigNumber = require('../../shared/utils/functions/formatBigNumber/formatBigNumber.cjs');
|
|
18
|
+
require('@dynamic-labs/iconic');
|
|
19
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
20
|
+
require('../../shared/consts/index.cjs');
|
|
21
|
+
require('@dynamic-labs/multi-wallet');
|
|
22
|
+
var getAppOrigin = require('../../utils/functions/getAppOrigin/getAppOrigin.cjs');
|
|
23
|
+
require('@dynamic-labs/rpc-providers');
|
|
24
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
25
|
+
require('react-dom');
|
|
26
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
27
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
28
|
+
var Icon = require('../../components/Icon/Icon.cjs');
|
|
29
|
+
require('react-focus-lock');
|
|
30
|
+
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
31
|
+
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
32
|
+
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
33
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
34
|
+
require('../../components/Alert/Alert.cjs');
|
|
35
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
36
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
37
|
+
var TransactionConfirmationPageLayout = require('../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs');
|
|
38
|
+
var TransactionRow = require('../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs');
|
|
39
|
+
require('@dynamic-labs/wallet-book');
|
|
40
|
+
require('../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
41
|
+
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
42
|
+
var useTransactionData = require('./hooks/useTransactionData/useTransactionData.cjs');
|
|
43
|
+
var transactionErrorMessage = require('./helpers/transactionErrorMessage.cjs');
|
|
44
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
45
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
46
|
+
var usePromise = require('../../utils/hooks/usePromise/usePromise.cjs');
|
|
47
|
+
var useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
|
|
48
|
+
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
49
|
+
|
|
50
|
+
const TransactionConfirmationView = ({ provider, transaction, mutation, onError, onSuccess, onClickBack, onClickClose, title, }) => {
|
|
51
|
+
const { appName, appLogoUrl, primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
52
|
+
const appOrigin = getAppOrigin.getAppOrigin();
|
|
53
|
+
if (!primaryWallet) {
|
|
54
|
+
throw new utils.DynamicError('Primary wallet is not available, transaction cannot be displayed');
|
|
55
|
+
}
|
|
56
|
+
const [currencySymbol] = useFetchCurrency.useFetchCurrency(primaryWallet.connector);
|
|
57
|
+
const { data: balance } = usePromise.usePromise(() => primaryWallet.connector
|
|
58
|
+
.getBalance()
|
|
59
|
+
.then((balanceText) => balanceText ? ethers.ethers.utils.parseEther(balanceText) : undefined));
|
|
60
|
+
const { mutate: send, isLoading, error: transactionError, } = useMutation.useMutation(mutation, {
|
|
61
|
+
onFailure: (error) => onError === null || onError === void 0 ? void 0 : onError(error),
|
|
62
|
+
onSuccess: (tx) => onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(tx),
|
|
63
|
+
});
|
|
64
|
+
const { isLoading: isLoadingTransaction, isTransactionFromAddressLoading, isTransactionToAddressLoading, transactionFromAddress, transactionToAddress, isEffectiveValueLoading, transactionValue, gasEstimate, isGasPriceLoading, total, } = useTransactionData.useTransactionData({
|
|
65
|
+
provider,
|
|
66
|
+
transaction,
|
|
67
|
+
});
|
|
68
|
+
const ChainIconComponent = getChainIcon.getChainIcon(primaryWallet.chain);
|
|
69
|
+
const chainIcon = (jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small' }, { children: jsxRuntime.jsx(ChainIconComponent, {}) })));
|
|
70
|
+
const errorMessage = transactionError && transactionErrorMessage.transactionErrorMessage(transactionError);
|
|
71
|
+
const missingFunds = React.useMemo(() => {
|
|
72
|
+
if (balance === undefined || total === undefined)
|
|
73
|
+
return undefined;
|
|
74
|
+
return total.sub(balance);
|
|
75
|
+
}, [balance, total]);
|
|
76
|
+
const hasInsufficientFunds = React.useMemo(() => {
|
|
77
|
+
if (balance === undefined || total === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
return total.gt(balance);
|
|
80
|
+
}, [balance, total]);
|
|
81
|
+
const warningMessage = React.useMemo(() => {
|
|
82
|
+
const showInsufficientFundsWarningMessage = hasInsufficientFunds && missingFunds;
|
|
83
|
+
if (!showInsufficientFundsWarningMessage)
|
|
84
|
+
return;
|
|
85
|
+
const amountLeft = formatBigNumber.formatBigNumber(missingFunds, 5);
|
|
86
|
+
return `Insufficient funds due to gas price increase from estimate. Please add ${amountLeft} ${currencySymbol} to continue.`;
|
|
87
|
+
}, [currencySymbol, hasInsufficientFunds, missingFunds]);
|
|
88
|
+
return (jsxRuntime.jsxs(TransactionConfirmationPageLayout.TransactionConfirmationPageLayout, Object.assign({ onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: true, disableSendButton: isLoadingTransaction || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage }, { children: [jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'From (You)', isLoading: isTransactionFromAddressLoading, title: transactionFromAddress }, { children: shortenWalletAddress.shortenWalletAddress(transactionFromAddress, 4, 4) })), jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'To', isLoading: isTransactionToAddressLoading, title: transactionToAddress }, { children: transactionToAddress &&
|
|
89
|
+
shortenWalletAddress.shortenWalletAddress(transactionToAddress, 4, 4) })), jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'Amount', isLoading: isEffectiveValueLoading, isEmpty: !transactionValue, title: transactionValue && formatBigNumber.formatBigNumber(transactionValue), suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount' }, { children: transactionValue ? formatBigNumber.formatBigNumber(transactionValue, 10) : 0 })), jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'Gas (estimated)', isEmpty: !gasEstimate, isLoading: isGasPriceLoading, title: gasEstimate && formatBigNumber.formatBigNumber(gasEstimate), suffix: gasEstimate && currencySymbol, icon: gasEstimate && chainIcon, dataTestId: 'transaction-gas-free' }, { children: gasEstimate ? formatBigNumber.formatBigNumber(gasEstimate, 10) : 'N/A' })), jsxRuntime.jsx(TransactionRow.TransactionRow, Object.assign({ label: 'Total', isEmpty: !total, title: total && formatBigNumber.formatBigNumber(total), suffix: total && currencySymbol, icon: total && chainIcon, dataTestId: 'transaction-total' }, { children: total ? formatBigNumber.formatBigNumber(total, 10) : 'N/A' }))] })));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.TransactionConfirmationView = TransactionConfirmationView;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { ethers } from 'ethers';
|
|
3
|
+
export type TransactionConfirmationViewProps = {
|
|
4
|
+
mutation: () => Promise<ethers.providers.TransactionResponse>;
|
|
5
|
+
onClickBack?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
onClickClose?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
onError?: (error: unknown) => void;
|
|
8
|
+
onSuccess?: (transaction: ethers.providers.TransactionResponse) => void;
|
|
9
|
+
provider: ethers.providers.Web3Provider;
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>;
|
|
12
|
+
};
|
|
13
|
+
export declare const TransactionConfirmationView: FC<TransactionConfirmationViewProps>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { ethers } from 'ethers';
|
|
4
|
+
import { DynamicError } from '@dynamic-labs/utils';
|
|
5
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
6
|
+
import '@dynamic-labs/sdk-api';
|
|
7
|
+
import '../../config/ApiEndpoint.js';
|
|
8
|
+
import '../../shared/logger.js';
|
|
9
|
+
import { getChainIcon } from '../../shared/utils/functions/chain/getChainIcon.js';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
11
|
+
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
12
|
+
import '../../utils/constants/colors.js';
|
|
13
|
+
import { formatBigNumber } from '../../shared/utils/functions/formatBigNumber/formatBigNumber.js';
|
|
14
|
+
import '@dynamic-labs/iconic';
|
|
15
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
16
|
+
import '../../shared/consts/index.js';
|
|
17
|
+
import '@dynamic-labs/multi-wallet';
|
|
18
|
+
import { getAppOrigin } from '../../utils/functions/getAppOrigin/getAppOrigin.js';
|
|
19
|
+
import '@dynamic-labs/rpc-providers';
|
|
20
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
21
|
+
import 'react-dom';
|
|
22
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
23
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
24
|
+
import { Icon } from '../../components/Icon/Icon.js';
|
|
25
|
+
import 'react-focus-lock';
|
|
26
|
+
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
27
|
+
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
28
|
+
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
29
|
+
import '../../components/IconButton/IconButton.js';
|
|
30
|
+
import '../../components/Alert/Alert.js';
|
|
31
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
32
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
33
|
+
import { TransactionConfirmationPageLayout } from '../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js';
|
|
34
|
+
import { TransactionRow } from '../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js';
|
|
35
|
+
import '@dynamic-labs/wallet-book';
|
|
36
|
+
import '../../components/SendBalanceForm/SendBalanceForm.js';
|
|
37
|
+
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
38
|
+
import { useTransactionData } from './hooks/useTransactionData/useTransactionData.js';
|
|
39
|
+
import { transactionErrorMessage } from './helpers/transactionErrorMessage.js';
|
|
40
|
+
import '../../context/MockContext/MockContext.js';
|
|
41
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
42
|
+
import { usePromise } from '../../utils/hooks/usePromise/usePromise.js';
|
|
43
|
+
import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
|
|
44
|
+
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
45
|
+
|
|
46
|
+
const TransactionConfirmationView = ({ provider, transaction, mutation, onError, onSuccess, onClickBack, onClickClose, title, }) => {
|
|
47
|
+
const { appName, appLogoUrl, primaryWallet } = useInternalDynamicContext();
|
|
48
|
+
const appOrigin = getAppOrigin();
|
|
49
|
+
if (!primaryWallet) {
|
|
50
|
+
throw new DynamicError('Primary wallet is not available, transaction cannot be displayed');
|
|
51
|
+
}
|
|
52
|
+
const [currencySymbol] = useFetchCurrency(primaryWallet.connector);
|
|
53
|
+
const { data: balance } = usePromise(() => primaryWallet.connector
|
|
54
|
+
.getBalance()
|
|
55
|
+
.then((balanceText) => balanceText ? ethers.utils.parseEther(balanceText) : undefined));
|
|
56
|
+
const { mutate: send, isLoading, error: transactionError, } = useMutation(mutation, {
|
|
57
|
+
onFailure: (error) => onError === null || onError === void 0 ? void 0 : onError(error),
|
|
58
|
+
onSuccess: (tx) => onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(tx),
|
|
59
|
+
});
|
|
60
|
+
const { isLoading: isLoadingTransaction, isTransactionFromAddressLoading, isTransactionToAddressLoading, transactionFromAddress, transactionToAddress, isEffectiveValueLoading, transactionValue, gasEstimate, isGasPriceLoading, total, } = useTransactionData({
|
|
61
|
+
provider,
|
|
62
|
+
transaction,
|
|
63
|
+
});
|
|
64
|
+
const ChainIconComponent = getChainIcon(primaryWallet.chain);
|
|
65
|
+
const chainIcon = (jsx(Icon, Object.assign({ size: 'small' }, { children: jsx(ChainIconComponent, {}) })));
|
|
66
|
+
const errorMessage = transactionError && transactionErrorMessage(transactionError);
|
|
67
|
+
const missingFunds = useMemo(() => {
|
|
68
|
+
if (balance === undefined || total === undefined)
|
|
69
|
+
return undefined;
|
|
70
|
+
return total.sub(balance);
|
|
71
|
+
}, [balance, total]);
|
|
72
|
+
const hasInsufficientFunds = useMemo(() => {
|
|
73
|
+
if (balance === undefined || total === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
return total.gt(balance);
|
|
76
|
+
}, [balance, total]);
|
|
77
|
+
const warningMessage = useMemo(() => {
|
|
78
|
+
const showInsufficientFundsWarningMessage = hasInsufficientFunds && missingFunds;
|
|
79
|
+
if (!showInsufficientFundsWarningMessage)
|
|
80
|
+
return;
|
|
81
|
+
const amountLeft = formatBigNumber(missingFunds, 5);
|
|
82
|
+
return `Insufficient funds due to gas price increase from estimate. Please add ${amountLeft} ${currencySymbol} to continue.`;
|
|
83
|
+
}, [currencySymbol, hasInsufficientFunds, missingFunds]);
|
|
84
|
+
return (jsxs(TransactionConfirmationPageLayout, Object.assign({ onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: true, disableSendButton: isLoadingTransaction || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage }, { children: [jsx(TransactionRow, Object.assign({ label: 'From (You)', isLoading: isTransactionFromAddressLoading, title: transactionFromAddress }, { children: shortenWalletAddress(transactionFromAddress, 4, 4) })), jsx(TransactionRow, Object.assign({ label: 'To', isLoading: isTransactionToAddressLoading, title: transactionToAddress }, { children: transactionToAddress &&
|
|
85
|
+
shortenWalletAddress(transactionToAddress, 4, 4) })), jsx(TransactionRow, Object.assign({ label: 'Amount', isLoading: isEffectiveValueLoading, isEmpty: !transactionValue, title: transactionValue && formatBigNumber(transactionValue), suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount' }, { children: transactionValue ? formatBigNumber(transactionValue, 10) : 0 })), jsx(TransactionRow, Object.assign({ label: 'Gas (estimated)', isEmpty: !gasEstimate, isLoading: isGasPriceLoading, title: gasEstimate && formatBigNumber(gasEstimate), suffix: gasEstimate && currencySymbol, icon: gasEstimate && chainIcon, dataTestId: 'transaction-gas-free' }, { children: gasEstimate ? formatBigNumber(gasEstimate, 10) : 'N/A' })), jsx(TransactionRow, Object.assign({ label: 'Total', isEmpty: !total, title: total && formatBigNumber(total), suffix: total && currencySymbol, icon: total && chainIcon, dataTestId: 'transaction-total' }, { children: total ? formatBigNumber(total, 10) : 'N/A' }))] })));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export { TransactionConfirmationView };
|
|
@@ -5,12 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const errorCodesMapping = {
|
|
6
6
|
INSUFFICIENT_FUNDS: 'Insufficient funds for this transaction.',
|
|
7
7
|
};
|
|
8
|
+
const errorReasonsMapping = {
|
|
9
|
+
'provided ENS name resolves to null': 'Invalid address. Please check that the entered address is correct.',
|
|
10
|
+
};
|
|
8
11
|
const transactionErrorMessage = (error) => {
|
|
9
12
|
const { code } = error;
|
|
10
13
|
const defaultMessage = 'Something went wrong.';
|
|
11
14
|
if (!code)
|
|
12
15
|
return defaultMessage;
|
|
13
|
-
return errorCodesMapping[code] ||
|
|
16
|
+
return (errorCodesMapping[code] ||
|
|
17
|
+
(error.reason && errorReasonsMapping[error.reason]) ||
|
|
18
|
+
defaultMessage);
|
|
14
19
|
};
|
|
15
20
|
|
|
16
21
|
exports.transactionErrorMessage = transactionErrorMessage;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
const errorCodesMapping = {
|
|
2
2
|
INSUFFICIENT_FUNDS: 'Insufficient funds for this transaction.',
|
|
3
3
|
};
|
|
4
|
+
const errorReasonsMapping = {
|
|
5
|
+
'provided ENS name resolves to null': 'Invalid address. Please check that the entered address is correct.',
|
|
6
|
+
};
|
|
4
7
|
const transactionErrorMessage = (error) => {
|
|
5
8
|
const { code } = error;
|
|
6
9
|
const defaultMessage = 'Something went wrong.';
|
|
7
10
|
if (!code)
|
|
8
11
|
return defaultMessage;
|
|
9
|
-
return errorCodesMapping[code] ||
|
|
12
|
+
return (errorCodesMapping[code] ||
|
|
13
|
+
(error.reason && errorReasonsMapping[error.reason]) ||
|
|
14
|
+
defaultMessage);
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
export { transactionErrorMessage };
|
|
@@ -30,6 +30,8 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
30
30
|
require('../../../../components/Alert/Alert.cjs');
|
|
31
31
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
32
32
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
33
|
+
require('@dynamic-labs/wallet-book');
|
|
34
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
33
35
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
34
36
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
35
37
|
var usePromise = require('../../../../utils/hooks/usePromise/usePromise.cjs');
|
|
@@ -26,6 +26,8 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
26
26
|
import '../../../../components/Alert/Alert.js';
|
|
27
27
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
28
28
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
29
|
+
import '@dynamic-labs/wallet-book';
|
|
30
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
29
31
|
import '../../../../context/MockContext/MockContext.js';
|
|
30
32
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
31
33
|
import { usePromise } from '../../../../utils/hooks/usePromise/usePromise.js';
|
|
@@ -33,6 +33,8 @@ require('../../../components/IconButton/IconButton.cjs');
|
|
|
33
33
|
require('../../../components/Alert/Alert.cjs');
|
|
34
34
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
35
35
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
|
+
require('@dynamic-labs/wallet-book');
|
|
37
|
+
require('../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
36
38
|
|
|
37
39
|
const SearchInstead = () => (jsxRuntime.jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: "Don't see your wallet?" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: "Try search instead" }))] })));
|
|
38
40
|
|
|
@@ -29,6 +29,8 @@ import '../../../components/IconButton/IconButton.js';
|
|
|
29
29
|
import '../../../components/Alert/Alert.js';
|
|
30
30
|
import '../../../components/Popper/Popper/Popper.js';
|
|
31
31
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
32
|
+
import '@dynamic-labs/wallet-book';
|
|
33
|
+
import '../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
32
34
|
|
|
33
35
|
const SearchInstead = () => (jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [jsx(Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: "Don't see your wallet?" })), jsx(Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: "Try search instead" }))] })));
|
|
34
36
|
|
|
@@ -39,6 +39,7 @@ var ListTile = require('../../../components/ListTile/ListTile.cjs');
|
|
|
39
39
|
require('../../../components/Alert/Alert.cjs');
|
|
40
40
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
41
41
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
42
43
|
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
43
44
|
|
|
44
45
|
const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = ({ leading, name, onClick, trailing }) => (jsxRuntime.jsx(ListTile.ListTile, Object.assign({ leading: leading, trailing: trailing, onClick: onClick, className: 'wallet-list-item__tile' }, { children: name }))), }) => {
|
|
@@ -35,6 +35,7 @@ import { ListTile } from '../../../components/ListTile/ListTile.js';
|
|
|
35
35
|
import '../../../components/Alert/Alert.js';
|
|
36
36
|
import '../../../components/Popper/Popper/Popper.js';
|
|
37
37
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import '../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
38
39
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
39
40
|
|
|
40
41
|
const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = ({ leading, name, onClick, trailing }) => (jsx(ListTile, Object.assign({ leading: leading, trailing: trailing, onClick: onClick, className: 'wallet-list-item__tile' }, { children: name }))), }) => {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
5
|
var multiWallet = require('@dynamic-labs/multi-wallet');
|
|
7
6
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
7
|
var rpcProviders = require('@dynamic-labs/rpc-providers');
|
|
@@ -22,17 +21,17 @@ const getEnabledChains = (chains) => chains
|
|
|
22
21
|
.filter(({ enabled }) => enabled)
|
|
23
22
|
.map(({ name }) => { var _a; return (_a = walletConnectorCore.getChainInfo(name)) === null || _a === void 0 ? void 0 : _a.symbol; })
|
|
24
23
|
.filter((chain) => Boolean(chain));
|
|
25
|
-
const createWallets = (props) =>
|
|
24
|
+
const createWallets = (props) => {
|
|
26
25
|
var _a, _b, _c, _d;
|
|
27
|
-
return
|
|
26
|
+
return multiWallet.getEnabledWallets({
|
|
28
27
|
enabledChains: getEnabledChains(props.settings.chains),
|
|
29
28
|
getSupportedWalletOpts: Object.assign(Object.assign({}, props.getSupportedWalletOpts), { chainRpcProviders: rpcProviders.ChainRpcProviders, isWalletConnectV2Enabled: ((_a = props.settings.sdk.walletConnect) === null || _a === void 0 ? void 0 : _a.v2Enabled) &&
|
|
30
29
|
((_b = props.settings.sdk.walletConnect) === null || _b === void 0 ? void 0 : _b.projectId)
|
|
31
30
|
? (_c = props.settings.sdk.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled
|
|
32
31
|
: false, walletConnectProjectId: (_d = props.settings.sdk.walletConnect) === null || _d === void 0 ? void 0 : _d.projectId }),
|
|
33
32
|
installed: props.installed,
|
|
34
|
-
})
|
|
35
|
-
}
|
|
33
|
+
}).map(createWallet.createWallet);
|
|
34
|
+
};
|
|
36
35
|
const getInstalledWallets = (settings, getSupportedWalletOpts) => createWallets({
|
|
37
36
|
getSupportedWalletOpts,
|
|
38
37
|
installed: true,
|
|
@@ -6,6 +6,6 @@ interface IChain {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const getEnabledChains: (chains: IChain[]) => ("ETH" | "FLOW" | "SOL" | "EVM" | "ALGO" | "STARK" | "ATOM" | "COSMOS")[];
|
|
8
8
|
type BaseGetSupportedWalletOpts = Omit<GetSupportedWalletsOpts, 'isWalletConnectV2Enabled' | 'walletConnectProjectId' | 'chainRpcProviders'>;
|
|
9
|
-
export declare const getInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) =>
|
|
10
|
-
export declare const getNotInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) =>
|
|
9
|
+
export declare const getInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) => import("../../shared").WalletOption[];
|
|
10
|
+
export declare const getNotInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) => import("../../shared").WalletOption[];
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
1
|
import { getEnabledWallets } from '@dynamic-labs/multi-wallet';
|
|
3
2
|
import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
|
|
4
3
|
import { ChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
@@ -18,17 +17,17 @@ const getEnabledChains = (chains) => chains
|
|
|
18
17
|
.filter(({ enabled }) => enabled)
|
|
19
18
|
.map(({ name }) => { var _a; return (_a = getChainInfo(name)) === null || _a === void 0 ? void 0 : _a.symbol; })
|
|
20
19
|
.filter((chain) => Boolean(chain));
|
|
21
|
-
const createWallets = (props) =>
|
|
20
|
+
const createWallets = (props) => {
|
|
22
21
|
var _a, _b, _c, _d;
|
|
23
|
-
return
|
|
22
|
+
return getEnabledWallets({
|
|
24
23
|
enabledChains: getEnabledChains(props.settings.chains),
|
|
25
24
|
getSupportedWalletOpts: Object.assign(Object.assign({}, props.getSupportedWalletOpts), { chainRpcProviders: ChainRpcProviders, isWalletConnectV2Enabled: ((_a = props.settings.sdk.walletConnect) === null || _a === void 0 ? void 0 : _a.v2Enabled) &&
|
|
26
25
|
((_b = props.settings.sdk.walletConnect) === null || _b === void 0 ? void 0 : _b.projectId)
|
|
27
26
|
? (_c = props.settings.sdk.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled
|
|
28
27
|
: false, walletConnectProjectId: (_d = props.settings.sdk.walletConnect) === null || _d === void 0 ? void 0 : _d.projectId }),
|
|
29
28
|
installed: props.installed,
|
|
30
|
-
})
|
|
31
|
-
}
|
|
29
|
+
}).map(createWallet);
|
|
30
|
+
};
|
|
32
31
|
const getInstalledWallets = (settings, getSupportedWalletOpts) => createWallets({
|
|
33
32
|
getSupportedWalletOpts,
|
|
34
33
|
installed: true,
|
|
@@ -39,6 +39,7 @@ require('../../components/Alert/Alert.cjs');
|
|
|
39
39
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
40
40
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
41
41
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
42
43
|
|
|
43
44
|
const WalletSignSpinnerView = () => {
|
|
44
45
|
const { setView } = ViewContext.useViewContext();
|
|
@@ -35,6 +35,7 @@ import '../../components/Alert/Alert.js';
|
|
|
35
35
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
36
36
|
import '../../components/Popper/Popper/Popper.js';
|
|
37
37
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import '../../components/SendBalanceForm/SendBalanceForm.js';
|
|
38
39
|
|
|
39
40
|
const WalletSignSpinnerView = () => {
|
|
40
41
|
const { setView } = useViewContext();
|
|
@@ -45,6 +45,7 @@ require('../../components/IconButton/IconButton.cjs');
|
|
|
45
45
|
require('../../components/Alert/Alert.cjs');
|
|
46
46
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
47
47
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
48
|
+
require('../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
48
49
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
49
50
|
|
|
50
51
|
const WalletUsedView = () => {
|
|
@@ -41,6 +41,7 @@ import '../../components/IconButton/IconButton.js';
|
|
|
41
41
|
import '../../components/Alert/Alert.js';
|
|
42
42
|
import '../../components/Popper/Popper/Popper.js';
|
|
43
43
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
44
|
+
import '../../components/SendBalanceForm/SendBalanceForm.js';
|
|
44
45
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
45
46
|
|
|
46
47
|
const WalletUsedView = () => {
|
|
@@ -22,6 +22,7 @@ var WalletList = require('./WalletList/WalletList.cjs');
|
|
|
22
22
|
var NoAccess = require('./NoAccess/NoAccess.cjs');
|
|
23
23
|
var WalletSignSpinnerView = require('./WalletSignSpinnerView/WalletSignSpinnerView.cjs');
|
|
24
24
|
var WalletUsedView = require('./WalletUsedView/WalletUsedView.cjs');
|
|
25
|
+
var SocialWrongAccountView = require('./SocialWrongAccountView/SocialWrongAccountView.cjs');
|
|
25
26
|
|
|
26
27
|
const viewToComponentMap = {
|
|
27
28
|
captcha: jsxRuntime.jsx(CaptchaVerifyUser.CaptchaVerifyUser, {}),
|
|
@@ -41,6 +42,7 @@ const viewToComponentMap = {
|
|
|
41
42
|
'pending-signature-without-back-button': jsxRuntime.jsx(PendingSignatureView.PendingSignatureView, {}),
|
|
42
43
|
'qr-code': jsxRuntime.jsx(QrCodeView.QrCodeView, {}),
|
|
43
44
|
'social-redirect-view': jsxRuntime.jsx(SocialRedirectView.SocialRedirectView, {}),
|
|
45
|
+
'social-wrong-account': jsxRuntime.jsx(SocialWrongAccountView.SocialWrongAccountView, {}),
|
|
44
46
|
'update-email': jsxRuntime.jsx(EmailUpdate.EmailUpdate, {}),
|
|
45
47
|
'verify-email': jsxRuntime.jsx(EmailVerification.EmailVerification, {}),
|
|
46
48
|
'wait-for-email-confirmation-view': jsxRuntime.jsx(EmailConfirmationWaitingView.EmailConfirmationWaitingView, {}),
|
|
@@ -18,6 +18,7 @@ import { WalletList } from './WalletList/WalletList.js';
|
|
|
18
18
|
import { NoAccess } from './NoAccess/NoAccess.js';
|
|
19
19
|
import { WalletSignSpinnerView } from './WalletSignSpinnerView/WalletSignSpinnerView.js';
|
|
20
20
|
import { WalletUsedView } from './WalletUsedView/WalletUsedView.js';
|
|
21
|
+
import { SocialWrongAccountView } from './SocialWrongAccountView/SocialWrongAccountView.js';
|
|
21
22
|
|
|
22
23
|
const viewToComponentMap = {
|
|
23
24
|
captcha: jsx(CaptchaVerifyUser, {}),
|
|
@@ -37,6 +38,7 @@ const viewToComponentMap = {
|
|
|
37
38
|
'pending-signature-without-back-button': jsx(PendingSignatureView, {}),
|
|
38
39
|
'qr-code': jsx(QrCodeView, {}),
|
|
39
40
|
'social-redirect-view': jsx(SocialRedirectView, {}),
|
|
41
|
+
'social-wrong-account': jsx(SocialWrongAccountView, {}),
|
|
40
42
|
'update-email': jsx(EmailUpdate, {}),
|
|
41
43
|
'verify-email': jsx(EmailVerification, {}),
|
|
42
44
|
'wait-for-email-confirmation-view': jsx(EmailConfirmationWaitingView, {}),
|
|
@@ -34,6 +34,8 @@ require('../../components/IconButton/IconButton.cjs');
|
|
|
34
34
|
require('../../components/Alert/Alert.cjs');
|
|
35
35
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
36
36
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
37
|
+
require('@dynamic-labs/wallet-book');
|
|
38
|
+
require('../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
37
39
|
var IsBrowser = require('../../components/IsBrowser/IsBrowser.cjs');
|
|
38
40
|
var DynamicNav = require('./components/DynamicNav/DynamicNav.cjs');
|
|
39
41
|
var DynamicUserProfile = require('./components/DynamicUserProfile/DynamicUserProfile.cjs');
|
|
@@ -30,6 +30,8 @@ import '../../components/IconButton/IconButton.js';
|
|
|
30
30
|
import '../../components/Alert/Alert.js';
|
|
31
31
|
import '../../components/Popper/Popper/Popper.js';
|
|
32
32
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
33
|
+
import '@dynamic-labs/wallet-book';
|
|
34
|
+
import '../../components/SendBalanceForm/SendBalanceForm.js';
|
|
33
35
|
import { IsBrowser } from '../../components/IsBrowser/IsBrowser.js';
|
|
34
36
|
import { DynamicNav } from './components/DynamicNav/DynamicNav.js';
|
|
35
37
|
import { DynamicUserProfile } from './components/DynamicUserProfile/DynamicUserProfile.js';
|
|
@@ -39,6 +39,7 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
39
39
|
require('../../../../components/Alert/Alert.cjs');
|
|
40
40
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
41
41
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
42
43
|
var useFetchNameService = require('../../hooks/useFetchNameService/useFetchNameService.cjs');
|
|
43
44
|
|
|
44
45
|
const AccountControl = ({ className }) => {
|
|
@@ -35,6 +35,7 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
35
35
|
import '../../../../components/Alert/Alert.js';
|
|
36
36
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
37
37
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
38
39
|
import { useFetchNameService } from '../../hooks/useFetchNameService/useFetchNameService.js';
|
|
39
40
|
|
|
40
41
|
const AccountControl = ({ className }) => {
|
|
@@ -35,6 +35,8 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
35
35
|
require('../../../../components/Alert/Alert.cjs');
|
|
36
36
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
37
37
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
38
|
+
require('@dynamic-labs/wallet-book');
|
|
39
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
38
40
|
var helpers = require('../../helpers/helpers.cjs');
|
|
39
41
|
|
|
40
42
|
const Balance = ({ connector, address, network, className }) => {
|
|
@@ -31,6 +31,8 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
31
31
|
import '../../../../components/Alert/Alert.js';
|
|
32
32
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
33
33
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
34
|
+
import '@dynamic-labs/wallet-book';
|
|
35
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
34
36
|
import { roundBalance } from '../../helpers/helpers.js';
|
|
35
37
|
|
|
36
38
|
const Balance = ({ connector, address, network, className }) => {
|
|
@@ -35,6 +35,8 @@ var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
|
35
35
|
require('../../../../components/Alert/Alert.cjs');
|
|
36
36
|
var Popper = require('../../../../components/Popper/Popper/Popper.cjs');
|
|
37
37
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
38
|
+
require('@dynamic-labs/wallet-book');
|
|
39
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
38
40
|
var DotsMenuDropdown = require('../DotsMenuDropdown/DotsMenuDropdown.cjs');
|
|
39
41
|
|
|
40
42
|
const DotsMenu = ({ options, title, buttonClassName }) => {
|
|
@@ -31,6 +31,8 @@ import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
|
31
31
|
import '../../../../components/Alert/Alert.js';
|
|
32
32
|
import { Popper } from '../../../../components/Popper/Popper/Popper.js';
|
|
33
33
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
34
|
+
import '@dynamic-labs/wallet-book';
|
|
35
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
34
36
|
import { DotsMenuDropdown } from '../DotsMenuDropdown/DotsMenuDropdown.js';
|
|
35
37
|
|
|
36
38
|
const DotsMenu = ({ options, title, buttonClassName }) => {
|
|
@@ -34,6 +34,8 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
34
34
|
require('../../../../components/Alert/Alert.cjs');
|
|
35
35
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
36
36
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
37
|
+
require('@dynamic-labs/wallet-book');
|
|
38
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
37
39
|
|
|
38
40
|
const DotsMenuDropdown = ({ options }) => (jsxRuntime.jsx("div", Object.assign({ className: 'dots-menu-dropdown__container', style: { zIndex: index.tooltipZIndex } }, { children: options.map((option) => (jsxRuntime.jsxs("div", Object.assign({ className: 'dots-menu-dropdown__item', onClick: () => {
|
|
39
41
|
option.callback();
|
|
@@ -30,6 +30,8 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
30
30
|
import '../../../../components/Alert/Alert.js';
|
|
31
31
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
32
32
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
33
|
+
import '@dynamic-labs/wallet-book';
|
|
34
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
33
35
|
|
|
34
36
|
const DotsMenuDropdown = ({ options }) => (jsx("div", Object.assign({ className: 'dots-menu-dropdown__container', style: { zIndex: tooltipZIndex } }, { children: options.map((option) => (jsxs("div", Object.assign({ className: 'dots-menu-dropdown__item', onClick: () => {
|
|
35
37
|
option.callback();
|
|
@@ -37,6 +37,8 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
37
37
|
require('../../../../components/Alert/Alert.cjs');
|
|
38
38
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
39
39
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
|
+
require('@dynamic-labs/wallet-book');
|
|
41
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
40
42
|
var IsBrowser = require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
41
43
|
|
|
42
44
|
const DynamicUserProfile = ({ variant, }) => {
|
|
@@ -33,6 +33,8 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
33
33
|
import '../../../../components/Alert/Alert.js';
|
|
34
34
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
35
35
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
36
|
+
import '@dynamic-labs/wallet-book';
|
|
37
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
36
38
|
import { IsBrowser } from '../../../../components/IsBrowser/IsBrowser.js';
|
|
37
39
|
|
|
38
40
|
const DynamicUserProfile = ({ variant, }) => {
|
package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs
CHANGED
|
@@ -29,6 +29,8 @@ require('../../../../components/IconButton/IconButton.cjs');
|
|
|
29
29
|
require('../../../../components/Alert/Alert.cjs');
|
|
30
30
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
31
31
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
32
|
+
require('@dynamic-labs/wallet-book');
|
|
33
|
+
require('../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
32
34
|
var useKYCFlag = require('../../../../utils/hooks/useKYCFlag/useKYCFlag.cjs');
|
|
33
35
|
var useMultiWalletFlag = require('../../../../utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs');
|
|
34
36
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
@@ -25,6 +25,8 @@ import '../../../../components/IconButton/IconButton.js';
|
|
|
25
25
|
import '../../../../components/Alert/Alert.js';
|
|
26
26
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
27
27
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
28
|
+
import '@dynamic-labs/wallet-book';
|
|
29
|
+
import '../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
28
30
|
import { useKYCFlag } from '../../../../utils/hooks/useKYCFlag/useKYCFlag.js';
|
|
29
31
|
import { useMultiWalletFlag } from '../../../../utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js';
|
|
30
32
|
import '../../../../context/MockContext/MockContext.js';
|