@dynamic-labs/sdk-react-core 2.0.0-alpha.2 → 2.0.0-alpha.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 +35 -0
- package/package.cjs +4 -3
- package/package.js +4 -3
- package/package.json +15 -12
- package/src/index.cjs +42 -32
- package/src/index.js +25 -19
- package/src/lib/Main.cjs +10 -6
- package/src/lib/Main.js +10 -6
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +10 -6
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +10 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +10 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.js +10 -6
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +14 -6
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +14 -6
- package/src/lib/components/Captcha/Captcha.cjs +10 -6
- package/src/lib/components/Captcha/Captcha.js +10 -6
- package/src/lib/components/ChainIcon/ChainIcon.cjs +27 -0
- package/src/lib/components/ChainIcon/ChainIcon.d.ts +8 -0
- package/src/lib/components/ChainIcon/ChainIcon.js +23 -0
- package/src/lib/components/ChainIcon/index.d.ts +1 -0
- package/src/lib/components/Divider/Divider.cjs +9 -5
- package/src/lib/components/Divider/Divider.js +9 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +10 -6
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +10 -6
- package/src/lib/components/EmailIcon/EmailIcon.cjs +14 -0
- package/src/lib/components/EmailIcon/EmailIcon.d.ts +2 -0
- package/src/lib/components/EmailIcon/EmailIcon.js +10 -0
- package/src/lib/components/EmailIcon/index.d.ts +1 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +89 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.d.ts +10 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +85 -0
- package/src/lib/components/InlineSubmitButton/index.d.ts +1 -0
- package/src/lib/components/Input/Input.cjs +9 -6
- package/src/lib/components/Input/Input.d.ts +13 -2
- package/src/lib/components/Input/Input.js +9 -6
- package/src/lib/components/Input/Input.types.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +10 -6
- package/src/lib/components/LogoutButton/LogoutButton.js +10 -6
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +10 -6
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +10 -6
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +2 -2
- package/src/lib/components/MenuList/MenuList/MenuList.js +2 -2
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/Modal/Modal.cjs +10 -6
- package/src/lib/components/Modal/Modal.js +10 -6
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +10 -6
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +10 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +13 -9
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +13 -9
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +9 -5
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +9 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +9 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.js +9 -5
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +70 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +71 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +10 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +10 -6
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +13 -19
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +6 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +13 -19
- package/src/lib/components/OverlayCard/OverlayCard.cjs +29 -22
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +0 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +29 -22
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs +46 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.d.ts +17 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js +40 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/index.d.ts +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +9 -5
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +9 -5
- package/src/lib/components/Portal/Portal.cjs +10 -6
- package/src/lib/components/Portal/Portal.js +10 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +10 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +10 -6
- package/src/lib/components/RenderView/RenderView.cjs +7 -5
- package/src/lib/components/RenderView/RenderView.js +7 -5
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +10 -6
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +10 -6
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs} +12 -8
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.d.ts +6 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js} +12 -8
- package/src/lib/components/SecureEmbeddedWalletCard/index.d.ts +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +2 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +2 -2
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +3 -3
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +3 -3
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +10 -6
- package/src/lib/components/ShadowDOM/ShadowDOM.js +10 -6
- package/src/lib/components/Skeleton/Skeleton.cjs +2 -2
- package/src/lib/components/Skeleton/Skeleton.d.ts +2 -1
- package/src/lib/components/Skeleton/Skeleton.js +2 -2
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +13 -9
- package/src/lib/components/SocialSignIn/SocialSignIn.js +13 -9
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.cjs → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs} +12 -8
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.d.ts +1 -0
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.js → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js} +12 -8
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/index.d.ts +1 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.d.ts +8 -0
- package/src/lib/components/ToggleVisibilityButton/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +16 -12
- package/src/lib/components/Toolkit/Toolkit.js +16 -12
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +11 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +11 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +13 -11
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +13 -11
- package/src/lib/components/Tooltip/Tooltip.cjs +10 -6
- package/src/lib/components/Tooltip/Tooltip.js +10 -6
- package/src/lib/components/TosAndPp/TosAndPp.cjs +10 -6
- package/src/lib/components/TosAndPp/TosAndPp.js +10 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +9 -5
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +9 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +10 -6
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +10 -6
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.cjs +2 -2
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.js +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js +2 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +10 -6
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +10 -6
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.cjs +2 -2
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.js +2 -2
- package/src/lib/components/Typography/Typography.cjs +2 -2
- package/src/lib/components/Typography/Typography.js +2 -2
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +10 -6
- package/src/lib/components/UserAddress/UserAddress.js +10 -6
- package/src/lib/components/UserProfile/UserProfile.cjs +10 -6
- package/src/lib/components/UserProfile/UserProfile.js +10 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +11 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +11 -7
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +9 -5
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +13 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +13 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +10 -6
- package/src/lib/components/UserProfileForm/UserProfileForm.js +10 -6
- package/src/lib/components/index.d.ts +10 -5
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +10 -6
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +10 -6
- package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -24
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +0 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +15 -24
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +1 -4
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +1 -4
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -19
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +4 -20
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.types.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +10 -6
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +10 -6
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +12 -11
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +12 -11
- package/src/lib/context/DynamicContext/types/index.d.ts +3 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +0 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +0 -2
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +10 -6
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +10 -6
- package/src/lib/context/FundingContext/FundingContext.cjs +10 -6
- package/src/lib/context/FundingContext/FundingContext.js +10 -6
- package/src/lib/context/LoadingContext/LoadingContext.cjs +10 -6
- package/src/lib/context/LoadingContext/LoadingContext.js +10 -6
- package/src/lib/context/MockContext/MockContext.cjs +7 -3
- package/src/lib/context/MockContext/MockContext.js +7 -3
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +9 -5
- package/src/lib/context/PasskeyContext/PasskeyContext.js +9 -5
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +10 -6
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +10 -6
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +13 -7
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +13 -7
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +10 -6
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +10 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +10 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +10 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +10 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +10 -6
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +22 -7
- package/src/lib/context/WalletContext/WalletContext.d.ts +8 -3
- package/src/lib/context/WalletContext/WalletContext.js +23 -9
- package/src/lib/data/api.cjs +4 -1
- package/src/lib/data/api.d.ts +22 -2
- package/src/lib/data/api.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +9 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +9 -6
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +10 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +10 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +11 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +11 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +9 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +9 -5
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +10 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +10 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +11 -7
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +11 -7
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +16 -13
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +16 -13
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +9 -5
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +9 -5
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +11 -7
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +11 -7
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +9 -5
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +9 -5
- package/src/lib/locale/en/translation.cjs +46 -2
- package/src/lib/locale/en/translation.d.ts +45 -1
- package/src/lib/locale/en/translation.js +46 -2
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.d.ts +3 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.types.d.ts +8 -0
- package/src/lib/modals/ConfirmationModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +9 -5
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +9 -5
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +3 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.types.d.ts +6 -0
- package/src/lib/modals/EnterPasswordModal/index.d.ts +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +10 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +10 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +10 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +10 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +11 -15
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +11 -15
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +4 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +9 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +9 -5
- package/src/lib/modals/index.d.ts +2 -0
- package/src/lib/shared/assets/chevron-down.cjs +53 -0
- package/src/lib/shared/assets/chevron-down.js +29 -0
- package/src/lib/shared/assets/index.d.ts +15 -13
- package/src/lib/shared/assets/password-hero.cjs +53 -0
- package/src/lib/shared/assets/password-hero.js +29 -0
- package/src/lib/shared/types/connectionAndSignature.d.ts +15 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +48 -0
- package/src/lib/shared/types/embeddedWallets.d.ts +6 -0
- package/src/lib/shared/types/general.d.ts +5 -0
- package/src/lib/shared/types/index.d.ts +8 -220
- package/src/lib/shared/types/localStorage.d.ts +18 -0
- package/src/lib/shared/types/ui.d.ts +14 -0
- package/src/lib/shared/types/user.d.ts +15 -0
- package/src/lib/shared/types/wallets.d.ts +85 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +9 -2
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +2 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +9 -2
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.cjs +14 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.d.ts +1 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.js +10 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +3 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +1 -1
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +3 -0
- package/src/lib/shared/utils/functions/validatePassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.cjs +59 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.d.ts +13 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.js +55 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +1 -1
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +2 -0
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +2 -1
- package/src/lib/utils/constants/values.cjs +2 -0
- package/src/lib/utils/constants/values.d.ts +1 -0
- package/src/lib/utils/constants/values.js +2 -1
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.d.ts +2 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +36 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +3 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +32 -0
- package/src/lib/utils/functions/getEOAWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +7 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +5 -4
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +5 -4
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +26 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +22 -0
- package/src/lib/utils/functions/modulo/index.d.ts +1 -0
- package/src/lib/utils/functions/modulo/modulo.cjs +8 -0
- package/src/lib/utils/functions/modulo/modulo.d.ts +2 -0
- package/src/lib/utils/functions/modulo/modulo.js +4 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.d.ts +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +10 -6
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +10 -6
- package/src/lib/utils/hooks/index.d.ts +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +10 -6
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +10 -6
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +10 -6
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +10 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +10 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +10 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +10 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +10 -6
- package/src/lib/utils/hooks/useConfirmationPortal/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.d.ts +13 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +10 -6
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +10 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +10 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +10 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +10 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +10 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +10 -6
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +10 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +10 -6
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +10 -6
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +10 -6
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +10 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +10 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +10 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +10 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +12 -11
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +12 -11
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +10 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +10 -6
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +12 -11
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +12 -11
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +10 -6
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +10 -6
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +10 -6
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +10 -6
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +12 -11
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -11
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.cjs +43 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.d.ts +16 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/EVMSendBalance.js +39 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.cjs +35 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.d.ts +21 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SendBalanceBase.js +31 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.cjs +51 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.d.ts +18 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/SolanaSendBalance.js +47 -0
- package/src/lib/utils/hooks/useSendBalance/helpers/index.d.ts +3 -0
- package/src/lib/utils/hooks/useSendBalance/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.cjs +121 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.d.ts +17 -0
- package/src/lib/utils/hooks/useSendBalance/useSendBalance.js +117 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +10 -6
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +10 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +10 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +10 -6
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +4 -2
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.d.ts +4 -3
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +4 -2
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +10 -6
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +10 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +10 -6
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +2 -44
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -44
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +10 -6
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +5 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +10 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +10 -6
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +10 -6
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +3 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +10 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +10 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +12 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -5
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +12 -8
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +9 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.js +9 -5
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +10 -6
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +10 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +10 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +10 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +10 -6
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +10 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +9 -5
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +9 -5
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +9 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +9 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +9 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +9 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +9 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +9 -6
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +9 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +9 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +9 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +9 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +8 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.js +8 -5
- package/src/lib/views/EmailVerification/EmailVerification.cjs +11 -7
- package/src/lib/views/EmailVerification/EmailVerification.js +11 -7
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +30 -24
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +30 -24
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +13 -14
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +13 -14
- package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +8 -0
- package/src/lib/views/EnterPasswordView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +36 -17
- package/src/lib/views/LoginView/LoginView.js +36 -17
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +16 -25
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +18 -27
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +125 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.d.ts +3 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +121 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.cjs +12 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.d.ts +5 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/checkPhoneNumberForError.js +8 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/checkPhoneNumberForError/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.cjs +21 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.d.ts +4 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/getCustomCountries.js +16 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/getCustomCountries/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +235 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.d.ts +33 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +230 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +10 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +10 -6
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.cjs → LoginView/sections/ToggleableSection/ToggleableSection.cjs} +31 -32
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.d.ts +11 -0
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.js → LoginView/sections/ToggleableSection/ToggleableSection.js} +32 -33
- package/src/lib/views/LoginView/sections/ToggleableSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +9 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +10 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +10 -6
- package/src/lib/views/LoginView/sections/index.d.ts +3 -1
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.cjs +62 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.d.ts +28 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.js +58 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +201 -0
- package/src/lib/views/LoginView/{useLoginView.d.ts → useLoginView/useLoginView.d.ts} +1 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +196 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +10 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +10 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +9 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +9 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +9 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +9 -5
- package/src/lib/views/NoAccess/NoAccess.cjs +8 -5
- package/src/lib/views/NoAccess/NoAccess.js +8 -5
- package/src/lib/views/NoAccess/useNoAccessText.cjs +10 -6
- package/src/lib/views/NoAccess/useNoAccessText.js +10 -6
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +9 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +9 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +9 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +9 -5
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +9 -5
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +10 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +10 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +11 -7
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +11 -7
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +9 -5
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +9 -5
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +11 -11
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +11 -11
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +11 -10
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +11 -10
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +9 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +9 -5
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +8 -5
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +8 -5
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +9 -5
- package/src/lib/views/PendingConnectView/PendingConnectView.js +9 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +9 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +9 -5
- package/src/lib/views/QrCodeView/QRCode.cjs +10 -6
- package/src/lib/views/QrCodeView/QRCode.js +10 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +9 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +9 -5
- package/src/lib/views/QrCodeView/QrCodeView.cjs +10 -6
- package/src/lib/views/QrCodeView/QrCodeView.js +10 -6
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +9 -5
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +9 -5
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +10 -6
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +10 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +32 -51
- package/src/lib/views/SendBalanceView/SendBalanceView.js +32 -51
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +9 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +9 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +9 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +9 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +37 -23
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +6 -3
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +38 -24
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +17 -2
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +17 -2
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +19 -9
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +5 -4
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +19 -9
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +10 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +10 -6
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +10 -6
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +10 -6
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +9 -5
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +9 -5
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +11 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.js +11 -7
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +10 -6
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +10 -6
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +9 -5
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +9 -5
- package/src/lib/views/WalletList/WalletList.cjs +9 -5
- package/src/lib/views/WalletList/WalletList.js +9 -5
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +21 -18
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +21 -18
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +10 -6
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +10 -6
- package/src/lib/views/WalletList/data.cjs +2 -6
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletList/data.js +2 -6
- package/src/lib/views/WalletList/hooks/useTabState.cjs +10 -6
- package/src/lib/views/WalletList/hooks/useTabState.js +10 -6
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +9 -5
- package/src/lib/views/WalletLockedView/WalletLockedView.js +9 -5
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +86 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.d.ts +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +82 -0
- package/src/lib/views/WalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +10 -6
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +10 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +9 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.js +9 -5
- package/src/lib/views/viewToComponentMap.cjs +9 -5
- package/src/lib/views/viewToComponentMap.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +8 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +9 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +10 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +10 -6
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +7 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +7 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +8 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +8 -4
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +71 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +71 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +10 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +10 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +11 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +11 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +19 -19
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +20 -20
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +18 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +18 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +4 -53
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +4 -53
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +17 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +17 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +12 -6
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +12 -6
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +9 -5
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +9 -6
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +9 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +9 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +12 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +12 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +17 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +14 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +14 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +8 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +8 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +8 -4
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +10 -6
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +7 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +9 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +9 -5
- package/src/lib/components/OverlayCard/OverlayCard.context.cjs +0 -9
- package/src/lib/components/OverlayCard/OverlayCard.context.d.ts +0 -6
- package/src/lib/components/OverlayCard/OverlayCard.context.js +0 -5
- package/src/lib/components/OverlayCard/OverlayCardTarget.cjs +0 -17
- package/src/lib/components/OverlayCard/OverlayCardTarget.d.ts +0 -2
- package/src/lib/components/OverlayCard/OverlayCardTarget.js +0 -13
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.d.ts +0 -6
- package/src/lib/components/SecureTurnkeyWalletCard/index.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/index.d.ts +0 -1
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.cjs +0 -18
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.js +0 -14
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +0 -10
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +0 -6
- package/src/lib/utils/hooks/useTransactionWithGasPrice/index.d.ts +0 -1
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +0 -56
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +0 -32
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +0 -52
- package/src/lib/views/LoginView/useLoginView.cjs +0 -265
- package/src/lib/views/LoginView/useLoginView.js +0 -260
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +0 -11
- package/src/lib/views/SendBalanceView/components/TransactionStage/index.d.ts +0 -1
- package/src/lib/views/SendBalanceView/components/index.d.ts +0 -1
|
@@ -35,36 +35,40 @@ import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser
|
|
|
35
35
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
36
36
|
import '@dynamic-labs/rpc-providers';
|
|
37
37
|
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
38
|
+
import { ShadowDOM } from '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
38
39
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
39
40
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
40
41
|
import { OpacityTransition } from '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
41
|
-
import
|
|
42
|
-
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
42
|
+
import '../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
43
43
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
44
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
45
|
import '../../../DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
46
|
import 'react-focus-lock';
|
|
47
47
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
48
|
+
import '../../../../context/WalletContext/WalletContext.js';
|
|
48
49
|
import 'i18next';
|
|
49
50
|
import 'qrcode';
|
|
50
51
|
import '../../../DynamicWidget/context/DynamicWidgetContext.js';
|
|
52
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
53
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
51
54
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
52
55
|
import 'formik';
|
|
53
|
-
import '../../../../components/IconButton/IconButton.js';
|
|
54
56
|
import '../../../../components/Alert/Alert.js';
|
|
55
57
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
56
58
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
57
|
-
import '
|
|
59
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
58
60
|
import '../../../DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
59
61
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
62
|
+
import '../../../../components/Input/Input.js';
|
|
60
63
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
61
|
-
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
62
64
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
63
65
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
64
66
|
import '../../../../views/WalletList/WalletList.js';
|
|
65
67
|
import '@hcaptcha/react-hcaptcha';
|
|
66
68
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
69
|
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
70
|
+
import 'react-international-phone';
|
|
71
|
+
import '../../../../views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
68
72
|
import { useFundingContext } from '../../../../context/FundingContext/FundingContext.js';
|
|
69
73
|
|
|
70
74
|
const Modal = ({ onrampUrl }) => {
|
|
@@ -1,17 +0,0 @@
|
|
|
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 OverlayCard_context = require('./OverlayCard.context.cjs');
|
|
8
|
-
|
|
9
|
-
const OverlayCardTarget = ({ children }) => {
|
|
10
|
-
const { Provider } = OverlayCard_context.overlayCardContext;
|
|
11
|
-
const [portal, setPortal] = React.useState(null);
|
|
12
|
-
return (jsxRuntime.jsxs(Provider, { value: {
|
|
13
|
-
portal,
|
|
14
|
-
}, children: [children, jsxRuntime.jsx("div", { ref: setPortal })] }));
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.OverlayCardTarget = OverlayCardTarget;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { overlayCardContext } from './OverlayCard.context.js';
|
|
4
|
-
|
|
5
|
-
const OverlayCardTarget = ({ children }) => {
|
|
6
|
-
const { Provider } = overlayCardContext;
|
|
7
|
-
const [portal, setPortal] = useState(null);
|
|
8
|
-
return (jsxs(Provider, { value: {
|
|
9
|
-
portal,
|
|
10
|
-
}, children: [children, jsx("div", { ref: setPortal })] }));
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { OverlayCardTarget };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SecureTurnkeyWalletCard } from './SecureTurnkeyWalletCard';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SyncPasskeyFlow: () => null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SyncPasskeyFlow } from './SyncPasskeyFlow';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
6
|
-
|
|
7
|
-
const isAccountAbstractionWallet = (wallet) => {
|
|
8
|
-
if (!wallet ||
|
|
9
|
-
wallet === undefined ||
|
|
10
|
-
wallet === null ||
|
|
11
|
-
typeof wallet !== 'object' ||
|
|
12
|
-
!('connector' in wallet)) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
return walletConnectorCore.isAccountAbstractionConnector(wallet.connector);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.isAccountAbstractionWallet = isAccountAbstractionWallet;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isAccountAbstractionConnector } from '@dynamic-labs/wallet-connector-core';
|
|
2
|
-
|
|
3
|
-
const isAccountAbstractionWallet = (wallet) => {
|
|
4
|
-
if (!wallet ||
|
|
5
|
-
wallet === undefined ||
|
|
6
|
-
wallet === null ||
|
|
7
|
-
typeof wallet !== 'object' ||
|
|
8
|
-
!('connector' in wallet)) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
return isAccountAbstractionConnector(wallet.connector);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { isAccountAbstractionWallet };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const magicEmailOtpWalletConnectorKey = 'magicemailotp';
|
|
6
|
-
const magicSocialWalletConnectorKey = 'magicsocial';
|
|
7
|
-
const isMagicConnector = (connector) => connector.key === magicEmailOtpWalletConnectorKey ||
|
|
8
|
-
connector.key === magicSocialWalletConnectorKey;
|
|
9
|
-
|
|
10
|
-
exports.isMagicConnector = isMagicConnector;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const magicEmailOtpWalletConnectorKey = 'magicemailotp';
|
|
2
|
-
const magicSocialWalletConnectorKey = 'magicsocial';
|
|
3
|
-
const isMagicConnector = (connector) => connector.key === magicEmailOtpWalletConnectorKey ||
|
|
4
|
-
connector.key === magicSocialWalletConnectorKey;
|
|
5
|
-
|
|
6
|
-
export { isMagicConnector };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useTransactionWithGasPrice } from './useTransactionWithGasPrice';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var usePromise = require('../usePromise/usePromise.cjs');
|
|
6
|
-
|
|
7
|
-
const increaseGasPrice = (gasPrice, increasePercentage) => {
|
|
8
|
-
const increaseFactor = 100 + increasePercentage;
|
|
9
|
-
return (gasPrice * BigInt(increaseFactor)) / BigInt(100);
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* A React Hook that returns a transaction object with the gas price set to the current gas price from the provider.
|
|
13
|
-
* The gas price is increased by a certain percentage specified by the user. The hook also allows the user to enable
|
|
14
|
-
* or disable this functionality.
|
|
15
|
-
*
|
|
16
|
-
* @param {Object} props - The properties for the hook.
|
|
17
|
-
* @param {PublicClient} props.provider - The provider to use for getting the current gas price.
|
|
18
|
-
* @param {TransactionRequest} props.transaction - The transaction object.
|
|
19
|
-
* @param {number} props.increasePercentage - The percentage by which to increase the current gas price.
|
|
20
|
-
* @param {boolean} [props.enabled=true] - A flag to enable or disable the gas price increase functionality.
|
|
21
|
-
*
|
|
22
|
-
* @returns {TransactionRequest} A new transaction object with the gas price.
|
|
23
|
-
* If the `enabled` flag is set to false, or if the gas price is not available, or if the transaction already has a
|
|
24
|
-
* gas price set, the original transaction object is returned.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* const updatedTransaction = useTransactionWithGasPrice({
|
|
28
|
-
* provider: myProvider,
|
|
29
|
-
* transaction: myTransaction,
|
|
30
|
-
* increasePercentage: 10,
|
|
31
|
-
* enabled: true,
|
|
32
|
-
* });
|
|
33
|
-
*/
|
|
34
|
-
const useTransactionWithGasPrice = ({ increasePercentage = 0, provider, transaction, enabled = true, }) => {
|
|
35
|
-
const isGasPriceDefinedInTransaction = Boolean(transaction.gasPrice);
|
|
36
|
-
const shouldLoadGasPrice = enabled && increasePercentage > 0 && !isGasPriceDefinedInTransaction;
|
|
37
|
-
const { data: gasPrice } = usePromise.usePromise(() => provider.getGasPrice(), {
|
|
38
|
-
deps: [transaction, provider],
|
|
39
|
-
enabled: shouldLoadGasPrice,
|
|
40
|
-
});
|
|
41
|
-
if (!gasPrice) {
|
|
42
|
-
return transaction;
|
|
43
|
-
}
|
|
44
|
-
if (transaction.type === 'legacy' ||
|
|
45
|
-
transaction.type === 'eip2930' ||
|
|
46
|
-
transaction.type === undefined ||
|
|
47
|
-
transaction.maxFeePerGas === undefined) {
|
|
48
|
-
return Object.assign(Object.assign({}, transaction), { gasPrice: increaseGasPrice(gasPrice, increasePercentage) });
|
|
49
|
-
}
|
|
50
|
-
if (transaction.type === 'eip1559') {
|
|
51
|
-
return Object.assign(Object.assign({}, transaction), { maxFeePerGas: increaseGasPrice(gasPrice, increasePercentage) });
|
|
52
|
-
}
|
|
53
|
-
return transaction;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.useTransactionWithGasPrice = useTransactionWithGasPrice;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { PublicClient, TransactionRequest } from 'viem';
|
|
2
|
-
type UseTransactionWithGasPriceProps = {
|
|
3
|
-
provider: PublicClient;
|
|
4
|
-
transaction: TransactionRequest;
|
|
5
|
-
increasePercentage?: number;
|
|
6
|
-
enabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* A React Hook that returns a transaction object with the gas price set to the current gas price from the provider.
|
|
10
|
-
* The gas price is increased by a certain percentage specified by the user. The hook also allows the user to enable
|
|
11
|
-
* or disable this functionality.
|
|
12
|
-
*
|
|
13
|
-
* @param {Object} props - The properties for the hook.
|
|
14
|
-
* @param {PublicClient} props.provider - The provider to use for getting the current gas price.
|
|
15
|
-
* @param {TransactionRequest} props.transaction - The transaction object.
|
|
16
|
-
* @param {number} props.increasePercentage - The percentage by which to increase the current gas price.
|
|
17
|
-
* @param {boolean} [props.enabled=true] - A flag to enable or disable the gas price increase functionality.
|
|
18
|
-
*
|
|
19
|
-
* @returns {TransactionRequest} A new transaction object with the gas price.
|
|
20
|
-
* If the `enabled` flag is set to false, or if the gas price is not available, or if the transaction already has a
|
|
21
|
-
* gas price set, the original transaction object is returned.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* const updatedTransaction = useTransactionWithGasPrice({
|
|
25
|
-
* provider: myProvider,
|
|
26
|
-
* transaction: myTransaction,
|
|
27
|
-
* increasePercentage: 10,
|
|
28
|
-
* enabled: true,
|
|
29
|
-
* });
|
|
30
|
-
*/
|
|
31
|
-
export declare const useTransactionWithGasPrice: ({ increasePercentage, provider, transaction, enabled, }: UseTransactionWithGasPriceProps) => TransactionRequest;
|
|
32
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { usePromise } from '../usePromise/usePromise.js';
|
|
2
|
-
|
|
3
|
-
const increaseGasPrice = (gasPrice, increasePercentage) => {
|
|
4
|
-
const increaseFactor = 100 + increasePercentage;
|
|
5
|
-
return (gasPrice * BigInt(increaseFactor)) / BigInt(100);
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* A React Hook that returns a transaction object with the gas price set to the current gas price from the provider.
|
|
9
|
-
* The gas price is increased by a certain percentage specified by the user. The hook also allows the user to enable
|
|
10
|
-
* or disable this functionality.
|
|
11
|
-
*
|
|
12
|
-
* @param {Object} props - The properties for the hook.
|
|
13
|
-
* @param {PublicClient} props.provider - The provider to use for getting the current gas price.
|
|
14
|
-
* @param {TransactionRequest} props.transaction - The transaction object.
|
|
15
|
-
* @param {number} props.increasePercentage - The percentage by which to increase the current gas price.
|
|
16
|
-
* @param {boolean} [props.enabled=true] - A flag to enable or disable the gas price increase functionality.
|
|
17
|
-
*
|
|
18
|
-
* @returns {TransactionRequest} A new transaction object with the gas price.
|
|
19
|
-
* If the `enabled` flag is set to false, or if the gas price is not available, or if the transaction already has a
|
|
20
|
-
* gas price set, the original transaction object is returned.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* const updatedTransaction = useTransactionWithGasPrice({
|
|
24
|
-
* provider: myProvider,
|
|
25
|
-
* transaction: myTransaction,
|
|
26
|
-
* increasePercentage: 10,
|
|
27
|
-
* enabled: true,
|
|
28
|
-
* });
|
|
29
|
-
*/
|
|
30
|
-
const useTransactionWithGasPrice = ({ increasePercentage = 0, provider, transaction, enabled = true, }) => {
|
|
31
|
-
const isGasPriceDefinedInTransaction = Boolean(transaction.gasPrice);
|
|
32
|
-
const shouldLoadGasPrice = enabled && increasePercentage > 0 && !isGasPriceDefinedInTransaction;
|
|
33
|
-
const { data: gasPrice } = usePromise(() => provider.getGasPrice(), {
|
|
34
|
-
deps: [transaction, provider],
|
|
35
|
-
enabled: shouldLoadGasPrice,
|
|
36
|
-
});
|
|
37
|
-
if (!gasPrice) {
|
|
38
|
-
return transaction;
|
|
39
|
-
}
|
|
40
|
-
if (transaction.type === 'legacy' ||
|
|
41
|
-
transaction.type === 'eip2930' ||
|
|
42
|
-
transaction.type === undefined ||
|
|
43
|
-
transaction.maxFeePerGas === undefined) {
|
|
44
|
-
return Object.assign(Object.assign({}, transaction), { gasPrice: increaseGasPrice(gasPrice, increasePercentage) });
|
|
45
|
-
}
|
|
46
|
-
if (transaction.type === 'eip1559') {
|
|
47
|
-
return Object.assign(Object.assign({}, transaction), { maxFeePerGas: increaseGasPrice(gasPrice, increasePercentage) });
|
|
48
|
-
}
|
|
49
|
-
return transaction;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { useTransactionWithGasPrice };
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var reactI18next = require('react-i18next');
|
|
7
|
-
var sdkApi = require('@dynamic-labs/sdk-api');
|
|
8
|
-
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
9
|
-
var logger = require('../../shared/logger.cjs');
|
|
10
|
-
require('@dynamic-labs/iconic');
|
|
11
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('react/jsx-runtime');
|
|
13
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
|
-
require('@dynamic-labs/wallet-book');
|
|
15
|
-
require('../../utils/constants/colors.cjs');
|
|
16
|
-
require('../../utils/constants/values.cjs');
|
|
17
|
-
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
18
|
-
require('viem');
|
|
19
|
-
require('@dynamic-labs/utils');
|
|
20
|
-
require('../../shared/consts/index.cjs');
|
|
21
|
-
require('../../events/dynamicEvents.cjs');
|
|
22
|
-
require('../../../../_virtual/_tslib.cjs');
|
|
23
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
24
|
-
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
25
|
-
require('@dynamic-labs/multi-wallet');
|
|
26
|
-
var isEmailProviderEnabled = require('../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs');
|
|
27
|
-
require('viem/chains');
|
|
28
|
-
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
29
|
-
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
30
|
-
require('../../config/ApiEndpoint.cjs');
|
|
31
|
-
require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
32
|
-
require('react-dom');
|
|
33
|
-
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
34
|
-
require('@dynamic-labs/types');
|
|
35
|
-
require('yup');
|
|
36
|
-
require('../../context/MockContext/MockContext.cjs');
|
|
37
|
-
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
38
|
-
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
39
|
-
require('@dynamic-labs/rpc-providers');
|
|
40
|
-
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
41
|
-
require('../../components/Alert/Alert.cjs');
|
|
42
|
-
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
43
|
-
require('../../components/IconButton/IconButton.cjs');
|
|
44
|
-
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
|
-
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
46
|
-
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
47
|
-
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
48
|
-
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
49
|
-
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
50
|
-
require('../../components/Popper/Popper/Popper.cjs');
|
|
51
|
-
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
52
|
-
require('react-focus-lock');
|
|
53
|
-
require('formik');
|
|
54
|
-
require('i18next');
|
|
55
|
-
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
56
|
-
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
57
|
-
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
58
|
-
require('../WalletList/WalletList.cjs');
|
|
59
|
-
require('qrcode');
|
|
60
|
-
require('@hcaptcha/react-hcaptcha');
|
|
61
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
62
|
-
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
63
|
-
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
64
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
65
|
-
require('../../context/FooterAnimationContext/index.cjs');
|
|
66
|
-
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
67
|
-
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
68
|
-
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
69
|
-
require('@dynamic-labs/viem-utils');
|
|
70
|
-
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
71
|
-
var useViewSettings = require('../../utils/hooks/useViewSettings/useViewSettings.cjs');
|
|
72
|
-
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
73
|
-
|
|
74
|
-
/* eslint-disable multiline-comment-style */
|
|
75
|
-
const NUMBER_OF_WALLETS = 3;
|
|
76
|
-
const useLoginView = () => {
|
|
77
|
-
var _a, _b, _c, _d, _e;
|
|
78
|
-
const loginView = useViewSettings.useViewSettings(sdkApi.SdkViewType.Login);
|
|
79
|
-
const { projectSettings, authorizationViewDisplayOrder, loginWithEmail, walletConnectorOptions, walletsFilter, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
80
|
-
const { t } = reactI18next.useTranslation();
|
|
81
|
-
const { enabledSocialProviders } = SocialRedirectContext.useSocialRedirectContext();
|
|
82
|
-
const hasSocialProvidersEnabled = Boolean(enabledSocialProviders === null || enabledSocialProviders === void 0 ? void 0 : enabledSocialProviders.length);
|
|
83
|
-
const hasEmailProviderEnabled = ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
84
|
-
isEmailProviderEnabled.isEmailProviderEnabled(projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers);
|
|
85
|
-
// is email only is set in the project settings when the "Email (Web2) only" is toggled on in the dashboard
|
|
86
|
-
const isEmailOnly = (_c = (_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _b === void 0 ? void 0 : _b.modal) === null || _c === void 0 ? void 0 : _c.emailOnly;
|
|
87
|
-
/** Takes from wallets only those that can be selected in the wallet list by the user.
|
|
88
|
-
* Should filter out embedded wallets
|
|
89
|
-
* WHY: when we decide whether to show wallets or not, we need to know how many wallets
|
|
90
|
-
* will actually be rendered. It would be especially bad to only have for ex "turnkey" in
|
|
91
|
-
* wallets and then display an empty wallet list (since turnkey doesn't render)
|
|
92
|
-
*/
|
|
93
|
-
const selectableWallets = (walletsFilter
|
|
94
|
-
? walletsFilter(walletConnectorOptions)
|
|
95
|
-
: walletConnectorOptions).filter(({ key }) => key !== 'turnkey');
|
|
96
|
-
const separator = React.useMemo(() => ({
|
|
97
|
-
label: t('dyn_login.separators.default'),
|
|
98
|
-
type: sdkApi.SdkViewSectionType.Separator,
|
|
99
|
-
}), [t]);
|
|
100
|
-
const isWalletOnly = React.useMemo(() => {
|
|
101
|
-
var _a;
|
|
102
|
-
if (!projectSettings) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
// if both loginWithEmail AND hasSocialProvidersEnabled are false, it's wallet only
|
|
106
|
-
if (!loginWithEmail && !hasSocialProvidersEnabled) {
|
|
107
|
-
return true;
|
|
108
|
-
}
|
|
109
|
-
// backwards compatibility for those that didn't set up login view sections
|
|
110
|
-
if (!((_a = loginView === null || loginView === void 0 ? void 0 : loginView.sections) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
111
|
-
return !hasEmailProviderEnabled && !hasSocialProvidersEnabled;
|
|
112
|
-
}
|
|
113
|
-
return (loginView.sections.length === 1 && loginView.sections[0].type === 'wallet');
|
|
114
|
-
}, [
|
|
115
|
-
loginView === null || loginView === void 0 ? void 0 : loginView.sections,
|
|
116
|
-
projectSettings,
|
|
117
|
-
loginWithEmail,
|
|
118
|
-
hasSocialProvidersEnabled,
|
|
119
|
-
hasEmailProviderEnabled,
|
|
120
|
-
]);
|
|
121
|
-
/**
|
|
122
|
-
* build email from project settings design.modal props
|
|
123
|
-
* @returns SdkViewSection[]
|
|
124
|
-
*/
|
|
125
|
-
const getEmailViewSectionDefinition = React.useCallback(() => {
|
|
126
|
-
if (!hasEmailProviderEnabled)
|
|
127
|
-
return [];
|
|
128
|
-
return [
|
|
129
|
-
{
|
|
130
|
-
type: sdkApi.SdkViewSectionType.Email,
|
|
131
|
-
},
|
|
132
|
-
];
|
|
133
|
-
}, [hasEmailProviderEnabled]);
|
|
134
|
-
/**
|
|
135
|
-
* build social from project settings design.modal props
|
|
136
|
-
* @returns SdkViewSection[]
|
|
137
|
-
*/
|
|
138
|
-
const getSocialViewSectionDefinition = React.useCallback(() => {
|
|
139
|
-
if (!(enabledSocialProviders === null || enabledSocialProviders === void 0 ? void 0 : enabledSocialProviders.length))
|
|
140
|
-
return [];
|
|
141
|
-
return [
|
|
142
|
-
{
|
|
143
|
-
numOfItemsToDisplay: 5,
|
|
144
|
-
type: sdkApi.SdkViewSectionType.Social,
|
|
145
|
-
},
|
|
146
|
-
];
|
|
147
|
-
}, [enabledSocialProviders === null || enabledSocialProviders === void 0 ? void 0 : enabledSocialProviders.length]);
|
|
148
|
-
const getWalletViewSectionDefinition = React.useCallback(() => {
|
|
149
|
-
var _a, _b;
|
|
150
|
-
if (!(selectableWallets === null || selectableWallets === void 0 ? void 0 : selectableWallets.length))
|
|
151
|
-
return [];
|
|
152
|
-
const numOfItemsToDisplay = ((_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _a === void 0 ? void 0 : _a.modal) === null || _b === void 0 ? void 0 : _b.showWalletsButton)
|
|
153
|
-
? 0
|
|
154
|
-
: NUMBER_OF_WALLETS;
|
|
155
|
-
return [
|
|
156
|
-
{
|
|
157
|
-
numOfItemsToDisplay,
|
|
158
|
-
type: sdkApi.SdkViewSectionType.Wallet,
|
|
159
|
-
},
|
|
160
|
-
];
|
|
161
|
-
}, [
|
|
162
|
-
(_e = (_d = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _d === void 0 ? void 0 : _d.modal) === null || _e === void 0 ? void 0 : _e.showWalletsButton,
|
|
163
|
-
selectableWallets === null || selectableWallets === void 0 ? void 0 : selectableWallets.length,
|
|
164
|
-
]);
|
|
165
|
-
const applyLoginModalSettings = React.useCallback((emailAndSocialSections) => {
|
|
166
|
-
if (emailAndSocialSections.length < 2) {
|
|
167
|
-
return emailAndSocialSections;
|
|
168
|
-
}
|
|
169
|
-
const { splitEmailAndSocial, socialAboveEmail } = (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) || {};
|
|
170
|
-
if (splitEmailAndSocial) {
|
|
171
|
-
emailAndSocialSections.splice(1, 0, separator);
|
|
172
|
-
// eslint-disable-next-line prefer-destructuring
|
|
173
|
-
emailAndSocialSections[2].defaultItem = enabledSocialProviders[0];
|
|
174
|
-
}
|
|
175
|
-
if (socialAboveEmail) {
|
|
176
|
-
emailAndSocialSections.reverse();
|
|
177
|
-
}
|
|
178
|
-
return emailAndSocialSections;
|
|
179
|
-
}, [enabledSocialProviders, projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal, separator]);
|
|
180
|
-
// TODO: https://linear.app/dynamic-labs/issue/GVTY-212/rethink-or-implement-toolkit-template-for-email-wallet-order
|
|
181
|
-
/**
|
|
182
|
-
* remove wallet view section from projectSettings?.sdk?.views if no wallet defined
|
|
183
|
-
* @param sections
|
|
184
|
-
* @returns
|
|
185
|
-
*/
|
|
186
|
-
const filterLoginViewSections = React.useCallback((sections) => {
|
|
187
|
-
var _a;
|
|
188
|
-
const hasEnabledNetwork = (chain) => { var _a; return (_a = chain.networks) === null || _a === void 0 ? void 0 : _a.some((network) => network.enabled); };
|
|
189
|
-
const hasEnabledChain = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.chains) === null || _a === void 0 ? void 0 : _a.some((chain) => chain.enabled && hasEnabledNetwork(chain));
|
|
190
|
-
if (!hasEnabledChain &&
|
|
191
|
-
sections.find((section) => section.type === 'wallet')) {
|
|
192
|
-
logger.logger.error('Failed to render WalletSignInSection - no chains enabled');
|
|
193
|
-
}
|
|
194
|
-
if (selectableWallets === null || selectableWallets === void 0 ? void 0 : selectableWallets.length) {
|
|
195
|
-
return sections;
|
|
196
|
-
}
|
|
197
|
-
return sections.filter((section) => section.type !== 'wallet');
|
|
198
|
-
}, [selectableWallets === null || selectableWallets === void 0 ? void 0 : selectableWallets.length, projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.chains]);
|
|
199
|
-
/**
|
|
200
|
-
* build login view sections array from project settings design.modal props - backwards compatibility
|
|
201
|
-
* @returns SdkViewSection[]
|
|
202
|
-
*/
|
|
203
|
-
const buildLoginSections = React.useCallback((buildOrder) => {
|
|
204
|
-
var _a;
|
|
205
|
-
const loginViewSections = [];
|
|
206
|
-
buildOrder === null || buildOrder === void 0 ? void 0 : buildOrder.forEach((loginItem) => {
|
|
207
|
-
// Add a separator if there are sections already
|
|
208
|
-
if (loginViewSections.length)
|
|
209
|
-
loginViewSections.push(separator);
|
|
210
|
-
if (loginItem === 'email') {
|
|
211
|
-
// In the past, the email and social sections were combined into one section,
|
|
212
|
-
// so we need to check for that case and add the social section if needed for backwards compatibility
|
|
213
|
-
// if email was just pushed to the loginViewSections array and social is not defined in the buildOrder,
|
|
214
|
-
// then we need to add social (if social is enabled)
|
|
215
|
-
const emailAndSocialSections = [
|
|
216
|
-
...getEmailViewSectionDefinition(),
|
|
217
|
-
...getSocialViewSectionDefinition(),
|
|
218
|
-
];
|
|
219
|
-
loginViewSections.push(...applyLoginModalSettings(emailAndSocialSections));
|
|
220
|
-
}
|
|
221
|
-
if (loginItem === 'wallet') {
|
|
222
|
-
loginViewSections.push(...getWalletViewSectionDefinition());
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
// remove last separator
|
|
226
|
-
if (((_a = loginViewSections[loginViewSections.length - 1]) === null || _a === void 0 ? void 0 : _a.type) === 'separator') {
|
|
227
|
-
loginViewSections.pop();
|
|
228
|
-
}
|
|
229
|
-
return loginViewSections;
|
|
230
|
-
}, [
|
|
231
|
-
applyLoginModalSettings,
|
|
232
|
-
getEmailViewSectionDefinition,
|
|
233
|
-
getSocialViewSectionDefinition,
|
|
234
|
-
getWalletViewSectionDefinition,
|
|
235
|
-
separator,
|
|
236
|
-
]);
|
|
237
|
-
/**
|
|
238
|
-
* returns the login view sections to be displayed in order from projectSettings?.sdk?.views
|
|
239
|
-
* and has backwards compatibility with project settings design.modal props
|
|
240
|
-
*/
|
|
241
|
-
const logingViewSections = React.useMemo(() => {
|
|
242
|
-
var _a;
|
|
243
|
-
if ((_a = loginView === null || loginView === void 0 ? void 0 : loginView.sections) === null || _a === void 0 ? void 0 : _a.length) {
|
|
244
|
-
return filterLoginViewSections(loginView === null || loginView === void 0 ? void 0 : loginView.sections);
|
|
245
|
-
}
|
|
246
|
-
let viewOrder = authorizationViewDisplayOrder;
|
|
247
|
-
if (isEmailOnly) {
|
|
248
|
-
viewOrder = ['email'];
|
|
249
|
-
}
|
|
250
|
-
return buildLoginSections(viewOrder);
|
|
251
|
-
}, [
|
|
252
|
-
loginView,
|
|
253
|
-
authorizationViewDisplayOrder,
|
|
254
|
-
isEmailOnly,
|
|
255
|
-
buildLoginSections,
|
|
256
|
-
filterLoginViewSections,
|
|
257
|
-
]);
|
|
258
|
-
return {
|
|
259
|
-
isWalletOnly,
|
|
260
|
-
logingViewSections,
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
exports.NUMBER_OF_WALLETS = NUMBER_OF_WALLETS;
|
|
265
|
-
exports.useLoginView = useLoginView;
|