@dynamic-labs/sdk-react-core 2.1.0-alpha.2 → 2.1.0-alpha.20
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 +168 -0
- package/package.cjs +4 -3
- package/package.js +4 -3
- package/package.json +14 -14
- package/src/index.cjs +17 -7
- package/src/index.d.ts +3 -4
- package/src/index.js +12 -5
- package/src/lib/Main.cjs +14 -3
- package/src/lib/Main.js +14 -3
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +7 -3
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +7 -3
- package/src/lib/components/Alert/Alert.cjs +2 -2
- package/src/lib/components/Alert/Alert.js +2 -2
- package/src/lib/components/Alert/Alert.types.d.ts +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +7 -3
- package/src/lib/components/AnimatePresence/AnimatePresence.js +7 -3
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +11 -7
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +11 -7
- package/src/lib/components/Captcha/Captcha.cjs +7 -3
- package/src/lib/components/Captcha/Captcha.js +7 -3
- package/src/lib/components/CopyButton/CopyButton.cjs +3 -3
- package/src/lib/components/CopyButton/CopyButton.d.ts +1 -1
- package/src/lib/components/CopyButton/CopyButton.js +3 -3
- package/src/lib/components/Divider/Divider.cjs +7 -3
- package/src/lib/components/Divider/Divider.js +7 -3
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +7 -3
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +7 -3
- package/src/lib/components/EmailForm/EmailForm.cjs +7 -3
- package/src/lib/components/EmailForm/EmailForm.js +7 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +3 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +3 -3
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +4 -4
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +4 -4
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +4 -4
- package/src/lib/components/IconWithStatus/IconWithStatus.js +4 -4
- package/src/lib/components/LoadingQrCode/LoadingQrCode.cjs +11 -0
- package/src/lib/components/LoadingQrCode/LoadingQrCode.d.ts +8 -0
- package/src/lib/components/LoadingQrCode/LoadingQrCode.js +7 -0
- package/src/lib/components/LoadingQrCode/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +7 -3
- package/src/lib/components/LogoutButton/LogoutButton.js +7 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +7 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +7 -3
- package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.cjs +15 -0
- package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.d.ts +2 -0
- package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.js +11 -0
- package/src/lib/components/MfaRecoveryIcon/index.d.ts +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +7 -3
- package/src/lib/components/MockedQrCode/MockedQrCode.js +7 -3
- package/src/lib/components/Modal/Modal.cjs +7 -3
- package/src/lib/components/Modal/Modal.js +7 -3
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +6 -2
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +6 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +7 -3
- package/src/lib/components/NetworkPicker/NetworkPicker.js +7 -3
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +7 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.js +7 -3
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +7 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +7 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +7 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +3 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +4 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +3 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +7 -3
- package/src/lib/components/OverlayCard/OverlayCard.js +7 -3
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +6 -2
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +6 -2
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +7 -3
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +7 -3
- package/src/lib/components/Portal/Portal.cjs +12 -6
- package/src/lib/components/Portal/Portal.js +12 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +7 -3
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +7 -3
- package/src/lib/components/QRCode/QRCode.cjs +7 -3
- package/src/lib/components/QRCode/QRCode.js +7 -3
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +8 -3
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +8 -3
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +12 -4
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +12 -4
- package/src/lib/components/RadioButton/RadioButton.cjs +14 -0
- package/src/lib/components/RadioButton/RadioButton.d.ts +5 -0
- package/src/lib/components/RadioButton/RadioButton.js +10 -0
- package/src/lib/components/RadioButton/index.d.ts +1 -0
- package/src/lib/components/RenderView/RenderView.cjs +6 -2
- package/src/lib/components/RenderView/RenderView.js +6 -2
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +6 -2
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +6 -2
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +7 -3
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +7 -3
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +6 -2
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +6 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +4 -4
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +4 -4
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +6 -2
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +6 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +7 -3
- package/src/lib/components/ShadowDOM/ShadowDOM.js +7 -3
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +11 -4
- package/src/lib/components/SocialSignIn/SocialSignIn.js +11 -4
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +24 -31
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +24 -31
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +7 -3
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +7 -3
- package/src/lib/components/Toolkit/Toolkit.cjs +7 -3
- package/src/lib/components/Toolkit/Toolkit.js +7 -3
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +7 -3
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +7 -3
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +7 -3
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +7 -3
- package/src/lib/components/Tooltip/Tooltip.cjs +9 -4
- package/src/lib/components/Tooltip/Tooltip.js +9 -4
- package/src/lib/components/TosAndPp/TosAndPp.cjs +7 -3
- package/src/lib/components/TosAndPp/TosAndPp.js +7 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +6 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +6 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +6 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +6 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +7 -3
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +7 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +7 -3
- package/src/lib/components/UserAddress/UserAddress.js +7 -3
- package/src/lib/components/UserProfile/UserProfile.cjs +4 -1
- package/src/lib/components/UserProfile/UserProfile.js +4 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +7 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +7 -3
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +5 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.js +5 -2
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.cjs +10 -6
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.js +10 -6
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.cjs +4 -0
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.js +4 -0
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.cjs +4 -0
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.js +4 -0
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.cjs +4 -0
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.js +4 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +51 -27
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +7 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +48 -24
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +4 -4
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +4 -4
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +26 -11
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +27 -13
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +4 -5
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.d.ts +3 -2
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +4 -5
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +9 -5
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +9 -5
- package/src/lib/context/DynamicContext/types/index.d.ts +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +5 -2
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +3 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +3 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +7 -3
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +7 -3
- package/src/lib/context/DynamicContext/validators/validators.cjs +0 -29
- package/src/lib/context/DynamicContext/validators/validators.d.ts +0 -2
- package/src/lib/context/DynamicContext/validators/validators.js +1 -29
- package/src/lib/context/ErrorBoundary/ErrorBoundary.cjs +64 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundary.d.ts +3 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundary.js +60 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryBase.cjs +40 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryBase.d.ts +14 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryBase.js +36 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryContext.cjs +24 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryContext.d.ts +5 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryContext.js +18 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryExclude.cjs +17 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryExclude.d.ts +4 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryExclude.js +13 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryInclude.cjs +17 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryInclude.d.ts +4 -0
- package/src/lib/context/ErrorBoundary/ErrorBoundaryInclude.js +13 -0
- package/src/lib/context/ErrorBoundary/index.d.ts +3 -0
- package/src/lib/context/ErrorBoundary/types.d.ts +13 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +13 -9
- package/src/lib/context/FundingContext/FundingContext.js +13 -9
- package/src/lib/context/LoadingContext/LoadingContext.cjs +6 -2
- package/src/lib/context/LoadingContext/LoadingContext.js +6 -2
- 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 +8 -5
- package/src/lib/context/PasskeyContext/PasskeyContext.js +9 -6
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +7 -3
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +7 -3
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +42 -7
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +42 -7
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +7 -3
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +7 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +7 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +7 -3
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +7 -3
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +7 -3
- package/src/lib/context/ViewContext/ViewContext.cjs +2 -2
- package/src/lib/context/ViewContext/ViewContext.js +2 -2
- package/src/lib/context/ViewContext/types/index.d.ts +7 -2
- package/src/lib/context/WalletContext/WalletContext.cjs +7 -3
- package/src/lib/context/WalletContext/WalletContext.js +7 -3
- package/src/lib/data/api/api.cjs +30 -4
- package/src/lib/data/api/api.d.ts +1 -1
- package/src/lib/data/api/api.js +30 -4
- package/src/lib/data/api/chains/balances.cjs +38 -0
- package/src/lib/data/api/chains/balances.d.ts +7 -0
- package/src/lib/data/api/chains/balances.js +34 -0
- package/src/lib/data/api/chains/index.d.ts +1 -0
- package/src/lib/data/api/email/email.cjs +2 -2
- package/src/lib/data/api/email/email.d.ts +1 -1
- package/src/lib/data/api/email/email.js +2 -2
- package/src/lib/data/api/embeddedWallets/embeddedWallets.cjs +23 -23
- package/src/lib/data/api/embeddedWallets/embeddedWallets.d.ts +11 -12
- package/src/lib/data/api/embeddedWallets/embeddedWallets.js +23 -23
- package/src/lib/data/api/embeddedWallets/types.d.ts +0 -6
- package/src/lib/data/api/mfa/mfa.cjs +18 -18
- package/src/lib/data/api/mfa/mfa.d.ts +9 -18
- package/src/lib/data/api/mfa/mfa.js +18 -18
- package/src/lib/data/api/oauth/oauth.cjs +4 -4
- package/src/lib/data/api/oauth/oauth.d.ts +3 -3
- package/src/lib/data/api/oauth/oauth.js +4 -4
- package/src/lib/data/api/session/session.cjs +2 -2
- package/src/lib/data/api/session/session.d.ts +1 -1
- package/src/lib/data/api/session/session.js +2 -2
- package/src/lib/data/api/sms/sms.cjs +2 -2
- package/src/lib/data/api/sms/sms.d.ts +1 -1
- package/src/lib/data/api/sms/sms.js +2 -2
- package/src/lib/data/api/user/user.cjs +25 -8
- package/src/lib/data/api/user/user.d.ts +4 -4
- package/src/lib/data/api/user/user.js +26 -10
- package/src/lib/data/api/wallets/wallets.cjs +24 -8
- package/src/lib/data/api/wallets/wallets.d.ts +7 -3
- package/src/lib/data/api/wallets/wallets.js +24 -9
- package/src/lib/events/dynamicEvents.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +13 -3
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +13 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +6 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +6 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +7 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +7 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +7 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +7 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +7 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +7 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +7 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +7 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +7 -3
- package/src/lib/locale/en/translation.cjs +117 -26
- package/src/lib/locale/en/translation.d.ts +116 -25
- package/src/lib/locale/en/translation.js +117 -26
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +7 -3
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +7 -3
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +7 -3
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +7 -3
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +7 -3
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +7 -3
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +6 -2
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +6 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +7 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +7 -3
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +6 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +6 -2
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.cjs +19 -2
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.js +19 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +7 -3
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +7 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +7 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +7 -3
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/mfa-recovery-icon.cjs +54 -0
- package/src/lib/shared/assets/mfa-recovery-icon.js +30 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +2 -1
- package/src/lib/shared/types/general.d.ts +1 -0
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +3 -10
- package/src/lib/shared/utils/classes/storage/localStorage.js +4 -11
- package/src/lib/shared/utils/functions/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/lastAuthenticatedAccount/index.d.ts +2 -2
- package/src/lib/store/actions/storeActions/index.d.ts +1 -0
- package/src/lib/store/actions/storeActions/storeActions.cjs +10 -0
- package/src/lib/store/actions/storeActions/storeActions.d.ts +1 -0
- package/src/lib/store/actions/storeActions/storeActions.js +6 -0
- package/src/lib/store/actions/userActions/index.d.ts +1 -0
- package/src/lib/store/actions/userActions/userActions.cjs +12 -0
- package/src/lib/store/actions/userActions/userActions.d.ts +7 -0
- package/src/lib/store/actions/userActions/userActions.js +7 -0
- package/src/lib/store/hooks/useUser/index.d.ts +1 -0
- package/src/lib/store/hooks/useUser/useUser.cjs +24 -0
- package/src/lib/store/hooks/useUser/useUser.d.ts +7 -0
- package/src/lib/store/hooks/useUser/useUser.js +20 -0
- package/src/lib/store/index.d.ts +4 -0
- package/src/lib/store/store.cjs +24 -0
- package/src/lib/store/store.d.ts +13 -0
- package/src/lib/store/store.js +19 -0
- package/src/lib/store/types.d.ts +4 -0
- package/src/lib/store/utils/createStore/createStore.cjs +21 -0
- package/src/lib/store/utils/createStore/createStore.d.ts +16 -0
- package/src/lib/store/utils/createStore/createStore.js +17 -0
- package/src/lib/store/utils/createStore/index.d.ts +1 -0
- package/src/lib/store/utils/syncLegacyStorage/index.d.ts +1 -0
- package/src/lib/store/utils/syncLegacyStorage/syncLegacyStorage.cjs +30 -0
- package/src/lib/store/utils/syncLegacyStorage/syncLegacyStorage.d.ts +2 -0
- package/src/lib/store/utils/syncLegacyStorage/syncLegacyStorage.js +26 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/errors.cjs +3 -3
- package/src/lib/utils/constants/errors.d.ts +2 -1
- package/src/lib/utils/constants/errors.js +3 -3
- package/src/lib/utils/constants/index.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.cjs +9 -2
- package/src/lib/utils/constants/localStorage.d.ts +15 -1
- package/src/lib/utils/constants/localStorage.js +7 -2
- package/src/lib/utils/functions/addPasskeyIdentifierToWalletConnector/addPasskeyIdentifierToWalletConnector.cjs +14 -0
- package/src/lib/utils/functions/addPasskeyIdentifierToWalletConnector/addPasskeyIdentifierToWalletConnector.d.ts +3 -0
- package/src/lib/utils/functions/addPasskeyIdentifierToWalletConnector/addPasskeyIdentifierToWalletConnector.js +10 -0
- package/src/lib/utils/functions/addPasskeyIdentifierToWalletConnector/index.d.ts +1 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +30 -2
- package/src/lib/utils/functions/createUserProfile/createUserProfile.d.ts +2 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +30 -3
- package/src/lib/utils/functions/downloadFile/downloadFile.cjs +15 -0
- package/src/lib/utils/functions/downloadFile/downloadFile.d.ts +1 -0
- package/src/lib/utils/functions/downloadFile/downloadFile.js +11 -0
- package/src/lib/utils/functions/downloadFile/index.d.ts +1 -0
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.cjs +5 -20
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.d.ts +2 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js +6 -21
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.cjs +12 -9
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +8 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.js +13 -10
- package/src/lib/utils/functions/findTurnkeyWallet/index.d.ts +1 -1
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +8 -4
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts +1 -2
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +8 -4
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +4 -4
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +4 -4
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +4 -4
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +4 -4
- package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.cjs +21 -0
- package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.js +17 -0
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.cjs +31 -0
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.d.ts +1 -0
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.js +27 -0
- package/src/lib/utils/functions/getOnboardingAuthToken/index.d.ts +1 -0
- package/src/lib/utils/functions/getProjectSettingsFromLs/getProjectSettingsFromLs.cjs +28 -0
- package/src/lib/utils/functions/getProjectSettingsFromLs/getProjectSettingsFromLs.d.ts +2 -0
- package/src/lib/utils/functions/getProjectSettingsFromLs/getProjectSettingsFromLs.js +24 -0
- package/src/lib/utils/functions/getProjectSettingsFromLs/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +5 -5
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +5 -5
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +6 -3
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +2 -1
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +7 -4
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.cjs +5 -5
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.d.ts +3 -2
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.js +5 -5
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.cjs +6 -19
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.d.ts +3 -1
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.js +6 -19
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +2 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +7 -3
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +7 -3
- package/src/lib/utils/functions/hasEmbeddedWallet/hasEmbeddedWallet.cjs +6 -6
- package/src/lib/utils/functions/hasEmbeddedWallet/hasEmbeddedWallet.d.ts +2 -1
- package/src/lib/utils/functions/hasEmbeddedWallet/hasEmbeddedWallet.js +6 -6
- package/src/lib/utils/functions/index.d.ts +6 -1
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +4 -4
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +4 -4
- package/src/lib/utils/functions/isCookieEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isCookieEnabled/isCookieEnabled.cjs +14 -0
- package/src/lib/utils/functions/isCookieEnabled/isCookieEnabled.d.ts +1 -0
- package/src/lib/utils/functions/isCookieEnabled/isCookieEnabled.js +10 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +4 -4
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +4 -4
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +4 -4
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +4 -4
- package/src/lib/utils/functions/serializeWalletConnectors/index.d.ts +1 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.cjs +32 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.d.ts +2 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.js +28 -0
- package/src/lib/utils/functions/validateMfaRecoveryCode/index.d.ts +1 -0
- package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.cjs +11 -0
- package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.d.ts +1 -0
- package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.js +7 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +7 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +7 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +7 -3
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +8 -4
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +8 -4
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +7 -3
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +7 -3
- package/src/lib/utils/hooks/index.d.ts +4 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +7 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +7 -3
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +8 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +8 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +20 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +20 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +7 -3
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +7 -3
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +2 -1
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +2 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +2 -2
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +7 -3
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +7 -3
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +38 -26
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.d.ts +7 -3
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +38 -26
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +7 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +7 -3
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +28 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +28 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +17 -4
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.d.ts +5 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +17 -4
- 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/useElementById/useElementById.cjs +33 -18
- package/src/lib/utils/hooks/useElementById/useElementById.d.ts +3 -1
- package/src/lib/utils/hooks/useElementById/useElementById.js +33 -18
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +7 -3
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +7 -3
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +7 -3
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +7 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +71 -17
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +24 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +71 -17
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +22 -15
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +2 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +22 -15
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +39 -25
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.d.ts +3 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +39 -25
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs +4 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.d.ts +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js +3 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +209 -72
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +26 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +213 -76
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +71 -35
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.d.ts +5 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +71 -35
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +7 -3
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +7 -3
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +11 -7
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +11 -7
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +4 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +4 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +11 -7
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +11 -7
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +6 -3
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.d.ts +1 -4
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +5 -2
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.cjs +7 -3
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.js +7 -3
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +7 -3
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +7 -3
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +9 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +9 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +7 -3
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +7 -3
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +9 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +9 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +8 -3
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +8 -3
- package/src/lib/utils/hooks/useMergeUserAccounts/index.d.ts +1 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +101 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.d.ts +4 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +97 -0
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +9 -11
- package/src/lib/utils/hooks/useMfa/useMfa.d.ts +1 -1
- package/src/lib/utils/hooks/useMfa/useMfa.js +9 -11
- package/src/lib/utils/hooks/useMfaModals/index.d.ts +1 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +135 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.d.ts +8 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +131 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +7 -3
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +7 -3
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +11 -7
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +11 -7
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +7 -3
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +7 -3
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +13 -9
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +13 -9
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +17 -4
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.d.ts +7 -2
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +17 -4
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.cjs +6 -13
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.d.ts +1 -3
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.js +6 -12
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +7 -7
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.d.ts +1 -1
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +7 -7
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +37 -13
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +37 -13
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +37 -73
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +4 -3
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +38 -74
- package/src/lib/utils/hooks/useSwitchWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +131 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.d.ts +26 -0
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +127 -0
- package/src/lib/utils/hooks/useTokenBalances/index.d.ts +1 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +144 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.d.ts +12 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +140 -0
- package/src/lib/utils/hooks/useTransferWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +137 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.d.ts +14 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +133 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +7 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +7 -3
- package/src/lib/utils/hooks/useUserAuth/index.d.ts +1 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +272 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.d.ts +6 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +268 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.types.d.ts +87 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +17 -8
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +17 -8
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +7 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +7 -3
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +14 -1
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -4
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +14 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +57 -63
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +58 -64
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +7 -3
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +7 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +27 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +3 -2
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +27 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +4 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +4 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +4 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +4 -4
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +3 -3
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +3 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +2 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +26 -5
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +26 -5
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +6 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +6 -2
- package/src/lib/utils/validations/index.d.ts +0 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +6 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.js +6 -2
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +7 -3
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +7 -3
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +6 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +6 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +6 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +6 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +6 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +6 -2
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +6 -2
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +6 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +6 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +6 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +17 -48
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +17 -48
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.cjs +16 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.js +16 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +71 -23
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +72 -24
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +7 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +7 -3
- package/src/lib/views/CollectUserDataView/useFields.cjs +7 -0
- package/src/lib/views/CollectUserDataView/useFields.d.ts +10 -0
- package/src/lib/views/CollectUserDataView/useFields.js +8 -2
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +6 -2
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +6 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +6 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +6 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +6 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +6 -2
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +11 -12
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +11 -12
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +6 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +6 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +115 -170
- package/src/lib/views/EmailVerification/EmailVerification.js +115 -170
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +7 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +7 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +7 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +7 -3
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +10 -6
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +10 -6
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +6 -2
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +6 -2
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +7 -3
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +7 -3
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.cjs +45 -0
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.d.ts +6 -0
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.js +41 -0
- package/src/lib/views/FarcasterQrCodeView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +9 -1
- package/src/lib/views/LoginView/LoginView.js +9 -1
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +6 -2
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +6 -2
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +7 -3
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +7 -3
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +7 -3
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +7 -3
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +6 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +6 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +12 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +12 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +7 -3
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +7 -3
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +7 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +7 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +7 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +6 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +6 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +6 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +6 -2
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +6 -2
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +6 -2
- package/src/lib/views/LoginView/utils/showFarcasterQrCodeView/index.d.ts +1 -0
- package/src/lib/views/LoginView/utils/showFarcasterQrCodeView/showFarcasterQrCodeView.cjs +15 -0
- package/src/lib/views/LoginView/utils/showFarcasterQrCodeView/showFarcasterQrCodeView.d.ts +2 -0
- package/src/lib/views/LoginView/utils/showFarcasterQrCodeView/showFarcasterQrCodeView.js +11 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +133 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.d.ts +6 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +129 -0
- package/src/lib/views/MergeUserAccountsConflictsView/index.d.ts +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +127 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.d.ts +4 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +123 -0
- package/src/lib/views/MergeUserAccountsView/index.d.ts +1 -0
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +10 -4
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +10 -4
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +6 -2
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +6 -2
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +115 -0
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.d.ts +2 -0
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +111 -0
- package/src/lib/views/MfaDisplayBackupCodesView/index.d.ts +1 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +120 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.d.ts +2 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +116 -0
- package/src/lib/views/MfaRecoveryView/index.d.ts +1 -0
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +18 -4
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +18 -4
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +111 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.d.ts +6 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +107 -0
- package/src/lib/views/MfaVerificationView/index.d.ts +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +6 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +6 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +8 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +8 -5
- package/src/lib/views/NoAccess/NoAccess.cjs +6 -2
- package/src/lib/views/NoAccess/NoAccess.js +6 -2
- package/src/lib/views/NoAccess/useNoAccessText.cjs +6 -2
- package/src/lib/views/NoAccess/useNoAccessText.js +6 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +6 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +6 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +6 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +8 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +8 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +7 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +7 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +15 -12
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.d.ts +6 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +15 -12
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +6 -2
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +6 -2
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +6 -2
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +6 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +6 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +6 -2
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +7 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +7 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +8 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +8 -3
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +6 -4
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +6 -4
- package/src/lib/views/Passkey/utils/{createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs → createEmbeddedWalletRequest/createEmbeddedWalletRequest.cjs} +24 -28
- package/src/lib/views/Passkey/utils/{createPregeneratedWallet/createPregeneratedWallet.d.ts → createEmbeddedWalletRequest/createEmbeddedWalletRequest.d.ts} +7 -4
- package/src/lib/views/Passkey/utils/{createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js → createEmbeddedWalletRequest/createEmbeddedWalletRequest.js} +24 -28
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.cjs +16 -0
- package/src/lib/views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.d.ts +2 -0
- package/src/lib/views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.js +12 -0
- package/src/lib/views/Passkey/utils/findPrimaryEmbeddedChain/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/index.d.ts +1 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +79 -109
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +12 -14
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +79 -109
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +6 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.js +6 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +6 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +6 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +7 -3
- package/src/lib/views/QrCodeView/QrCodeView.js +7 -3
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +8 -4
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +8 -4
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +6 -2
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +6 -2
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +7 -3
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +7 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +6 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +6 -2
- package/src/lib/views/SmsVerification/SmsVerification.cjs +6 -2
- package/src/lib/views/SmsVerification/SmsVerification.js +6 -2
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +38 -120
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +38 -120
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +6 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +6 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +6 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +6 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +6 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +6 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +7 -3
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +7 -3
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +7 -3
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +7 -3
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +6 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +6 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +7 -3
- package/src/lib/views/WalletGroupView/WalletGroupView.js +7 -3
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +7 -3
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +7 -3
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +6 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +6 -2
- package/src/lib/views/WalletList/WalletList.cjs +9 -8
- package/src/lib/views/WalletList/WalletList.js +9 -8
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +8 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +8 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +7 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +7 -3
- package/src/lib/views/WalletList/hooks/useTabState.cjs +11 -4
- package/src/lib/views/WalletList/hooks/useTabState.js +11 -4
- package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.cjs +22 -0
- package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.d.ts +2 -0
- package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.js +18 -0
- package/src/lib/views/WalletList/utils/getInitialTabIndex/index.d.ts +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +8 -10
- package/src/lib/views/WalletLockedView/WalletLockedView.js +8 -10
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +6 -2
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +6 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +6 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +6 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +29 -45
- package/src/lib/views/WalletUsedView/WalletUsedView.js +29 -45
- package/src/lib/views/viewToComponentMap.cjs +16 -4
- package/src/lib/views/viewToComponentMap.d.ts +9 -3
- package/src/lib/views/viewToComponentMap.js +16 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +11 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +11 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +7 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +7 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +7 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +7 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +7 -3
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +7 -3
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +7 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +6 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +9 -4
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +7 -3
- 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 +13 -22
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +14 -23
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +4 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +7 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +8 -4
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +6 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +6 -2
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +7 -3
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +6 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +6 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +7 -3
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +6 -2
- 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 +7 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +7 -3
- package/src/lib/shared/utils/functions/validateType/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/validateType/validateType.cjs +0 -30
- package/src/lib/shared/utils/functions/validateType/validateType.d.ts +0 -1
- package/src/lib/shared/utils/functions/validateType/validateType.js +0 -26
- package/src/lib/utils/functions/isEmbeddedWalletPresent/index.d.ts +0 -1
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.cjs +0 -19
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.d.ts +0 -1
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.js +0 -15
- package/src/lib/utils/validations/validateUserIsLoggedIn/index.d.ts +0 -1
- package/src/lib/utils/validations/validateUserIsLoggedIn/validateUserIsLoggedIn.cjs +0 -31
- package/src/lib/utils/validations/validateUserIsLoggedIn/validateUserIsLoggedIn.d.ts +0 -4
- package/src/lib/utils/validations/validateUserIsLoggedIn/validateUserIsLoggedIn.js +0 -27
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +0 -134
- package/src/lib/views/EmailUpdate/EmailUpdate.d.ts +0 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +0 -130
- package/src/lib/views/EmailUpdate/index.d.ts +0 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.d.ts +0 -16
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/index.d.ts +0 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +0 -65
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +0 -61
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/index.d.ts +0 -1
|
@@ -33,13 +33,17 @@ import 'react-dom';
|
|
|
33
33
|
import '../../../../context/WalletContext/WalletContext.js';
|
|
34
34
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
35
35
|
import '@dynamic-labs/types';
|
|
36
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
36
37
|
import 'yup';
|
|
37
38
|
import '../../../../context/MockContext/MockContext.js';
|
|
38
|
-
import '
|
|
39
|
-
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
39
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
40
40
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
41
41
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
42
|
+
import 'zustand';
|
|
43
|
+
import 'zustand/middleware';
|
|
44
|
+
import 'zustand/react/shallow';
|
|
42
45
|
import '@dynamic-labs/rpc-providers';
|
|
46
|
+
import 'react-i18next';
|
|
43
47
|
import { Typography } from '../../../Typography/Typography.js';
|
|
44
48
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
45
49
|
import '../../../ShadowDOM/ShadowDOM.js';
|
|
@@ -51,12 +55,12 @@ import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
|
51
55
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
52
56
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
53
57
|
import 'react-focus-lock';
|
|
54
|
-
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
55
58
|
import { Icon } from '../../../Icon/Icon.js';
|
|
56
59
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
57
60
|
import '../../../IconButton/IconButton.js';
|
|
58
61
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
59
62
|
import 'formik';
|
|
63
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
60
64
|
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
61
65
|
import '../../../Alert/Alert.js';
|
|
62
66
|
import '../../../Input/Input.js';
|
|
@@ -38,13 +38,17 @@ require('react-dom');
|
|
|
38
38
|
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
39
39
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
40
40
|
require('@dynamic-labs/types');
|
|
41
|
+
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
41
42
|
require('yup');
|
|
42
43
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
43
|
-
require('
|
|
44
|
-
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
44
|
+
require('../../../../views/CollectUserDataView/useFields.cjs');
|
|
45
45
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
46
46
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
47
|
+
require('zustand');
|
|
48
|
+
require('zustand/middleware');
|
|
49
|
+
require('zustand/react/shallow');
|
|
47
50
|
require('@dynamic-labs/rpc-providers');
|
|
51
|
+
require('react-i18next');
|
|
48
52
|
var Typography = require('../../../Typography/Typography.cjs');
|
|
49
53
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
50
54
|
require('../../../ShadowDOM/ShadowDOM.cjs');
|
|
@@ -57,11 +61,11 @@ require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
|
57
61
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
62
|
require('react-focus-lock');
|
|
59
63
|
var Spinner = require('../../../IconWithSpinner/Spinner/Spinner.cjs');
|
|
60
|
-
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
61
64
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
62
65
|
require('../../../IconButton/IconButton.cjs');
|
|
63
66
|
require('../../../MenuList/Dropdown/Dropdown.cjs');
|
|
64
67
|
require('formik');
|
|
68
|
+
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
65
69
|
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
66
70
|
require('../../../Alert/Alert.cjs');
|
|
67
71
|
require('../../../Input/Input.cjs');
|
|
@@ -34,13 +34,17 @@ import 'react-dom';
|
|
|
34
34
|
import '../../../../context/WalletContext/WalletContext.js';
|
|
35
35
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
36
36
|
import '@dynamic-labs/types';
|
|
37
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
37
38
|
import 'yup';
|
|
38
39
|
import '../../../../context/MockContext/MockContext.js';
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
40
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
41
41
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
42
42
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
43
|
+
import 'zustand';
|
|
44
|
+
import 'zustand/middleware';
|
|
45
|
+
import 'zustand/react/shallow';
|
|
43
46
|
import '@dynamic-labs/rpc-providers';
|
|
47
|
+
import 'react-i18next';
|
|
44
48
|
import { Typography } from '../../../Typography/Typography.js';
|
|
45
49
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
46
50
|
import '../../../ShadowDOM/ShadowDOM.js';
|
|
@@ -53,11 +57,11 @@ import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
|
53
57
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
54
58
|
import 'react-focus-lock';
|
|
55
59
|
import { Spinner } from '../../../IconWithSpinner/Spinner/Spinner.js';
|
|
56
|
-
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
57
60
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
58
61
|
import '../../../IconButton/IconButton.js';
|
|
59
62
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
60
63
|
import 'formik';
|
|
64
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
61
65
|
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
62
66
|
import '../../../Alert/Alert.js';
|
|
63
67
|
import '../../../Input/Input.js';
|
|
@@ -36,13 +36,17 @@ require('react-dom');
|
|
|
36
36
|
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
37
37
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
38
38
|
require('@dynamic-labs/types');
|
|
39
|
+
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
39
40
|
require('yup');
|
|
40
41
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
41
|
-
require('
|
|
42
|
-
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
42
|
+
require('../../../../views/CollectUserDataView/useFields.cjs');
|
|
43
43
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
44
44
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
45
|
+
require('zustand');
|
|
46
|
+
require('zustand/middleware');
|
|
47
|
+
require('zustand/react/shallow');
|
|
45
48
|
require('@dynamic-labs/rpc-providers');
|
|
49
|
+
require('react-i18next');
|
|
46
50
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
47
51
|
require('../../../ShadowDOM/ShadowDOM.cjs');
|
|
48
52
|
require('../../../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
@@ -54,11 +58,11 @@ require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
|
54
58
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
55
59
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
56
60
|
require('react-focus-lock');
|
|
57
|
-
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
58
61
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
62
|
require('../../../IconButton/IconButton.cjs');
|
|
60
63
|
require('../../../MenuList/Dropdown/Dropdown.cjs');
|
|
61
64
|
require('formik');
|
|
65
|
+
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
62
66
|
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
63
67
|
require('../../../Alert/Alert.cjs');
|
|
64
68
|
require('../../../Input/Input.cjs');
|
package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js
CHANGED
|
@@ -32,13 +32,17 @@ import 'react-dom';
|
|
|
32
32
|
import '../../../../context/WalletContext/WalletContext.js';
|
|
33
33
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
34
34
|
import '@dynamic-labs/types';
|
|
35
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
35
36
|
import 'yup';
|
|
36
37
|
import '../../../../context/MockContext/MockContext.js';
|
|
37
|
-
import '
|
|
38
|
-
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
38
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
39
39
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
40
40
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
41
|
+
import 'zustand';
|
|
42
|
+
import 'zustand/middleware';
|
|
43
|
+
import 'zustand/react/shallow';
|
|
41
44
|
import '@dynamic-labs/rpc-providers';
|
|
45
|
+
import 'react-i18next';
|
|
42
46
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
43
47
|
import '../../../ShadowDOM/ShadowDOM.js';
|
|
44
48
|
import '../../../Transition/ZoomTransition/ZoomTransition.js';
|
|
@@ -50,11 +54,11 @@ import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
|
50
54
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
51
55
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
52
56
|
import 'react-focus-lock';
|
|
53
|
-
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
54
57
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
58
|
import '../../../IconButton/IconButton.js';
|
|
56
59
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
57
60
|
import 'formik';
|
|
61
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
58
62
|
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
59
63
|
import '../../../Alert/Alert.js';
|
|
60
64
|
import '../../../Input/Input.js';
|
|
@@ -38,13 +38,17 @@ require('react-dom');
|
|
|
38
38
|
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
39
39
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
40
40
|
require('@dynamic-labs/types');
|
|
41
|
+
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
41
42
|
require('yup');
|
|
42
43
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
43
|
-
require('
|
|
44
|
-
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
44
|
+
require('../../../../views/CollectUserDataView/useFields.cjs');
|
|
45
45
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
46
46
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
47
|
+
require('zustand');
|
|
48
|
+
require('zustand/middleware');
|
|
49
|
+
require('zustand/react/shallow');
|
|
47
50
|
require('@dynamic-labs/rpc-providers');
|
|
51
|
+
require('react-i18next');
|
|
48
52
|
var Typography = require('../../../Typography/Typography.cjs');
|
|
49
53
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
50
54
|
require('../../../ShadowDOM/ShadowDOM.cjs');
|
|
@@ -57,12 +61,12 @@ require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
|
57
61
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
62
|
require('react-focus-lock');
|
|
59
63
|
var useFetchChain = require('../../../../widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs');
|
|
60
|
-
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
61
64
|
var Icon = require('../../../Icon/Icon.cjs');
|
|
62
65
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
63
66
|
require('../../../IconButton/IconButton.cjs');
|
|
64
67
|
require('../../../MenuList/Dropdown/Dropdown.cjs');
|
|
65
68
|
require('formik');
|
|
69
|
+
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
66
70
|
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
67
71
|
require('../../../Alert/Alert.cjs');
|
|
68
72
|
require('../../../Input/Input.cjs');
|
|
@@ -34,13 +34,17 @@ import 'react-dom';
|
|
|
34
34
|
import '../../../../context/WalletContext/WalletContext.js';
|
|
35
35
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
36
36
|
import '@dynamic-labs/types';
|
|
37
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
37
38
|
import 'yup';
|
|
38
39
|
import '../../../../context/MockContext/MockContext.js';
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
40
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
41
41
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
42
42
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
43
|
+
import 'zustand';
|
|
44
|
+
import 'zustand/middleware';
|
|
45
|
+
import 'zustand/react/shallow';
|
|
43
46
|
import '@dynamic-labs/rpc-providers';
|
|
47
|
+
import 'react-i18next';
|
|
44
48
|
import { Typography } from '../../../Typography/Typography.js';
|
|
45
49
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
46
50
|
import '../../../ShadowDOM/ShadowDOM.js';
|
|
@@ -53,12 +57,12 @@ import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
|
53
57
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
54
58
|
import 'react-focus-lock';
|
|
55
59
|
import { useFetchChain } from '../../../../widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js';
|
|
56
|
-
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
57
60
|
import { Icon } from '../../../Icon/Icon.js';
|
|
58
61
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
59
62
|
import '../../../IconButton/IconButton.js';
|
|
60
63
|
import '../../../MenuList/Dropdown/Dropdown.js';
|
|
61
64
|
import 'formik';
|
|
65
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
62
66
|
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
63
67
|
import '../../../Alert/Alert.js';
|
|
64
68
|
import '../../../Input/Input.js';
|
|
@@ -31,7 +31,7 @@ var PinField = require('../PinField/PinField.cjs');
|
|
|
31
31
|
var RetrySendVerificationCodeSection = require('../RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs');
|
|
32
32
|
var Typography = require('../Typography/Typography.cjs');
|
|
33
33
|
|
|
34
|
-
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
34
|
+
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, description, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
35
35
|
const { t } = reactI18next.useTranslation();
|
|
36
36
|
const backButton = onClickBack && (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
|
|
37
37
|
const titleCopyKey = React.useMemo(() => isValid
|
|
@@ -39,7 +39,8 @@ const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, d
|
|
|
39
39
|
: 'dyn_otp_verification.confirm_code', [isValid]);
|
|
40
40
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!hideHeader && (jsxRuntime.jsx(ModalHeader.ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsxRuntime.jsx("div", { className: 'otp-verification-view__status-header', children: jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', copykey: titleCopyKey, children: t(titleCopyKey) }) }) })), successBannerTextKey && (jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'notice', messageKey: successBannerTextKey, disableTruncate: true })), jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', messageKey: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsxs("div", { className: classNames.classNames('otp-verification-view', {
|
|
41
41
|
'otp-verification-view--message': Boolean(successBannerTextKey || error),
|
|
42
|
-
}), children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: MainIcon, iconSize:
|
|
42
|
+
}), children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: MainIcon, iconSize: 64, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxRuntime.jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid &&
|
|
43
|
+
(description ? (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: description })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: t('dyn_otp_verification.description') }), jsxRuntime.jsxs("div", { className: 'otp-verification-view__destination-container', children: [displayedDestination && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: displayedDestination })), onClickEditDestination && (jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickEditDestination, "data-testid": 'otp-verification-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) }))] })] })))] }), appendAboveOTPInput, jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), retryHandler && (jsxRuntime.jsx(RetrySendVerificationCodeSection.RetrySendVerificationCodeSection, { className: 'otp-verification-view__retry-container', retryHandler: retryHandler })), appendToEnd] })] }));
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
exports.OTPVerificationView = OTPVerificationView;
|
|
@@ -3,7 +3,9 @@ export type OtpVerificationLayoutProps = {
|
|
|
3
3
|
/** Big icon that shows in the OTP modal */
|
|
4
4
|
MainIcon: FC;
|
|
5
5
|
/** Whatever identifies the destination the verification code was sent to, ex: an email address or a phone number */
|
|
6
|
-
displayedDestination
|
|
6
|
+
displayedDestination?: string;
|
|
7
|
+
/** Description text to be displayed in the body */
|
|
8
|
+
description?: string;
|
|
7
9
|
hideHeader?: boolean;
|
|
8
10
|
error?: Error;
|
|
9
11
|
isLoading: boolean;
|
|
@@ -11,7 +13,7 @@ export type OtpVerificationLayoutProps = {
|
|
|
11
13
|
onClickBack?: MouseEventHandler<HTMLButtonElement>;
|
|
12
14
|
onClickEditDestination?: MouseEventHandler<HTMLButtonElement>;
|
|
13
15
|
onPinChange?: (value: string) => void;
|
|
14
|
-
retryHandler
|
|
16
|
+
retryHandler?: () => Promise<void> | void;
|
|
15
17
|
onPinComplete: (value: string) => void;
|
|
16
18
|
successBannerTextKey?: string;
|
|
17
19
|
appendToEnd?: JSX.Element;
|
|
@@ -27,7 +27,7 @@ import { PinField } from '../PinField/PinField.js';
|
|
|
27
27
|
import { RetrySendVerificationCodeSection } from '../RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js';
|
|
28
28
|
import { Typography } from '../Typography/Typography.js';
|
|
29
29
|
|
|
30
|
-
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
30
|
+
const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, displayedDestination, description, onPinComplete, isValid, error, retryHandler, onPinChange, successBannerTextKey, MainIcon, hideHeader, appendAboveOTPInput, appendToEnd, }) => {
|
|
31
31
|
const { t } = useTranslation();
|
|
32
32
|
const backButton = onClickBack && (jsx(IconButton, { type: 'button', onClick: onClickBack, "data-testid": 'back-button', children: jsx(SvgChevronLeft, {}) }));
|
|
33
33
|
const titleCopyKey = useMemo(() => isValid
|
|
@@ -35,7 +35,8 @@ const OTPVerificationView = ({ onClickBack, onClickEditDestination, isLoading, d
|
|
|
35
35
|
: 'dyn_otp_verification.confirm_code', [isValid]);
|
|
36
36
|
return (jsxs(Fragment, { children: [!hideHeader && (jsx(ModalHeader, { alignContent: 'bottom', leading: onClickBack && backButton, children: jsx("div", { className: 'otp-verification-view__status-header', children: jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title', copykey: titleCopyKey, children: t(titleCopyKey) }) }) })), successBannerTextKey && (jsx(ModalHeaderBanner, { type: 'notice', messageKey: successBannerTextKey, disableTruncate: true })), jsx(ModalHeaderBanner, { type: 'error', messageKey: error === null || error === void 0 ? void 0 : error.message }), jsxs("div", { className: classNames('otp-verification-view', {
|
|
37
37
|
'otp-verification-view--message': Boolean(successBannerTextKey || error),
|
|
38
|
-
}), children: [isValid && (jsx(IconWithStatus, { Icon: MainIcon, iconSize:
|
|
38
|
+
}), children: [isValid && (jsx(IconWithStatus, { Icon: MainIcon, iconSize: 64, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: MainIcon, iconSize: 96, isSpinning: isLoading, className: 'otp-verification-view__icon-with-spinner', treatAsFunctionComponent: true })), jsxs("div", { className: 'otp-verification-view__body', children: [isValid && (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.hang_tight', children: t('dyn_otp_verification.hang_tight') })), !isValid &&
|
|
39
|
+
(description ? (jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: description })) : (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_otp_verification.description', children: t('dyn_otp_verification.description') }), jsxs("div", { className: 'otp-verification-view__destination-container', children: [displayedDestination && (jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: displayedDestination })), onClickEditDestination && (jsx(IconButton, { onClick: onClickEditDestination, "data-testid": 'otp-verification-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) }))] })] })))] }), appendAboveOTPInput, jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), retryHandler && (jsx(RetrySendVerificationCodeSection, { className: 'otp-verification-view__retry-container', retryHandler: retryHandler })), appendToEnd] })] }));
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
export { OTPVerificationView };
|
|
@@ -43,13 +43,17 @@ require('../../context/VerificationContext/VerificationContext.cjs');
|
|
|
43
43
|
require('../../context/WalletContext/WalletContext.cjs');
|
|
44
44
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
45
45
|
require('@dynamic-labs/types');
|
|
46
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
46
47
|
require('yup');
|
|
47
48
|
require('../../context/MockContext/MockContext.cjs');
|
|
48
|
-
require('
|
|
49
|
-
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
49
|
+
require('../../views/CollectUserDataView/useFields.cjs');
|
|
50
50
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
51
51
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
52
|
+
require('zustand');
|
|
53
|
+
require('zustand/middleware');
|
|
54
|
+
require('zustand/react/shallow');
|
|
52
55
|
require('@dynamic-labs/rpc-providers');
|
|
56
|
+
require('react-i18next');
|
|
53
57
|
require('../Alert/Alert.cjs');
|
|
54
58
|
require('../IconButton/IconButton.cjs');
|
|
55
59
|
require('../InlineWidget/InlineWidget.cjs');
|
|
@@ -63,11 +67,11 @@ require('../Popper/PopperContext/PopperContext.cjs');
|
|
|
63
67
|
require('react-focus-lock');
|
|
64
68
|
require('qrcode');
|
|
65
69
|
require('formik');
|
|
70
|
+
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
66
71
|
require('../../views/WalletList/WalletList.cjs');
|
|
67
72
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
68
73
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
69
74
|
require('@hcaptcha/react-hcaptcha');
|
|
70
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
71
75
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
72
76
|
require('../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
73
77
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -39,13 +39,17 @@ import '../../context/VerificationContext/VerificationContext.js';
|
|
|
39
39
|
import '../../context/WalletContext/WalletContext.js';
|
|
40
40
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
41
41
|
import '@dynamic-labs/types';
|
|
42
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
42
43
|
import 'yup';
|
|
43
44
|
import '../../context/MockContext/MockContext.js';
|
|
44
|
-
import '
|
|
45
|
-
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
45
|
+
import '../../views/CollectUserDataView/useFields.js';
|
|
46
46
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
47
47
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
48
|
+
import 'zustand';
|
|
49
|
+
import 'zustand/middleware';
|
|
50
|
+
import 'zustand/react/shallow';
|
|
48
51
|
import '@dynamic-labs/rpc-providers';
|
|
52
|
+
import 'react-i18next';
|
|
49
53
|
import '../Alert/Alert.js';
|
|
50
54
|
import '../IconButton/IconButton.js';
|
|
51
55
|
import '../InlineWidget/InlineWidget.js';
|
|
@@ -59,11 +63,11 @@ import '../Popper/PopperContext/PopperContext.js';
|
|
|
59
63
|
import 'react-focus-lock';
|
|
60
64
|
import 'qrcode';
|
|
61
65
|
import 'formik';
|
|
66
|
+
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
62
67
|
import '../../views/WalletList/WalletList.js';
|
|
63
68
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
64
69
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
65
70
|
import '@hcaptcha/react-hcaptcha';
|
|
66
|
-
import '../../context/LoadingContext/LoadingContext.js';
|
|
67
71
|
import '../../context/FooterAnimationContext/index.js';
|
|
68
72
|
import '../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
69
73
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -36,11 +36,15 @@ require('react-dom');
|
|
|
36
36
|
require('../../context/WalletContext/WalletContext.cjs');
|
|
37
37
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
38
38
|
require('@dynamic-labs/types');
|
|
39
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
39
40
|
require('yup');
|
|
40
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
41
|
-
require('../../
|
|
42
|
+
require('../../views/CollectUserDataView/useFields.cjs');
|
|
42
43
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
43
44
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
45
|
+
require('zustand');
|
|
46
|
+
require('zustand/middleware');
|
|
47
|
+
require('zustand/react/shallow');
|
|
44
48
|
require('@dynamic-labs/rpc-providers');
|
|
45
49
|
require('../Alert/Alert.cjs');
|
|
46
50
|
var AnimatePresence = require('../AnimatePresence/AnimatePresence.cjs');
|
|
@@ -60,11 +64,11 @@ require('../Popper/PopperContext/PopperContext.cjs');
|
|
|
60
64
|
require('react-focus-lock');
|
|
61
65
|
require('qrcode');
|
|
62
66
|
require('formik');
|
|
67
|
+
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
63
68
|
require('../../views/WalletList/WalletList.cjs');
|
|
64
69
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
65
70
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
66
71
|
require('@hcaptcha/react-hcaptcha');
|
|
67
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
68
72
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
69
73
|
require('../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
70
74
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -32,11 +32,15 @@ import 'react-dom';
|
|
|
32
32
|
import '../../context/WalletContext/WalletContext.js';
|
|
33
33
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
34
34
|
import '@dynamic-labs/types';
|
|
35
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
35
36
|
import 'yup';
|
|
36
37
|
import '../../context/MockContext/MockContext.js';
|
|
37
|
-
import '../../
|
|
38
|
+
import '../../views/CollectUserDataView/useFields.js';
|
|
38
39
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
39
40
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
41
|
+
import 'zustand';
|
|
42
|
+
import 'zustand/middleware';
|
|
43
|
+
import 'zustand/react/shallow';
|
|
40
44
|
import '@dynamic-labs/rpc-providers';
|
|
41
45
|
import '../Alert/Alert.js';
|
|
42
46
|
import { AnimatePresence } from '../AnimatePresence/AnimatePresence.js';
|
|
@@ -56,11 +60,11 @@ import '../Popper/PopperContext/PopperContext.js';
|
|
|
56
60
|
import 'react-focus-lock';
|
|
57
61
|
import 'qrcode';
|
|
58
62
|
import 'formik';
|
|
63
|
+
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
59
64
|
import '../../views/WalletList/WalletList.js';
|
|
60
65
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
61
66
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
62
67
|
import '@hcaptcha/react-hcaptcha';
|
|
63
|
-
import '../../context/LoadingContext/LoadingContext.js';
|
|
64
68
|
import '../../context/FooterAnimationContext/index.js';
|
|
65
69
|
import '../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
66
70
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -38,11 +38,15 @@ require('react-dom');
|
|
|
38
38
|
require('../../context/WalletContext/WalletContext.cjs');
|
|
39
39
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
40
40
|
require('@dynamic-labs/types');
|
|
41
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
41
42
|
require('yup');
|
|
42
43
|
require('../../context/MockContext/MockContext.cjs');
|
|
43
|
-
require('../../
|
|
44
|
+
require('../../views/CollectUserDataView/useFields.cjs');
|
|
44
45
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
45
46
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
47
|
+
require('zustand');
|
|
48
|
+
require('zustand/middleware');
|
|
49
|
+
require('zustand/react/shallow');
|
|
46
50
|
require('@dynamic-labs/rpc-providers');
|
|
47
51
|
var Typography = require('../Typography/Typography.cjs');
|
|
48
52
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
@@ -55,12 +59,12 @@ require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
|
55
59
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
56
60
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
57
61
|
require('react-focus-lock');
|
|
58
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
59
62
|
var Icon = require('../Icon/Icon.cjs');
|
|
60
63
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
61
64
|
require('../IconButton/IconButton.cjs');
|
|
62
65
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
63
66
|
require('formik');
|
|
67
|
+
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
64
68
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
65
69
|
require('../Alert/Alert.cjs');
|
|
66
70
|
var Input = require('../Input/Input.cjs');
|
|
@@ -98,7 +102,7 @@ const PhoneNumberField = ({ isLoading, disabled, error, label, onUpdate, appendR
|
|
|
98
102
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
99
103
|
}, ref: anchorRef, children: [jsxRuntime.jsxs("div", { className: classNames.classNames('phone-number-field__fields__country-code', {
|
|
100
104
|
'phone-number-field__fields__country-code--disabled': isLoading || disabled,
|
|
101
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric' }), jsxRuntime.jsx(Icon.Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input' }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', copykey: 'dyn_collect_user_data.fields.phone_number.label', children: label !== null && label !== void 0 ? label : t('dyn_collect_user_data.fields.phone_number.label') })), appendRight] }), jsxRuntime.jsx(MenuList.MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
105
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsxRuntime.jsx(reactInternationalPhone.FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsxRuntime.jsx(Input.Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric', autoComplete: 'tel-country-code' }), jsxRuntime.jsx(Icon.Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsxRuntime.jsx(chevronDown.ReactComponent, {}) })] }), jsxRuntime.jsx(Input.Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input', autoComplete: 'tel-national' }), !hasInput && (jsxRuntime.jsx(Typography.Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', copykey: 'dyn_collect_user_data.fields.phone_number.label', children: label !== null && label !== void 0 ? label : t('dyn_collect_user_data.fields.phone_number.label') })), appendRight] }), jsxRuntime.jsx(MenuList.MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
102
106
|
anchorOrigin: 'bottom-left',
|
|
103
107
|
anchorRef,
|
|
104
108
|
}, mobileTitle: 'Select country', dropdownClassName: 'phone-number-field__dropdown', children: jsxRuntime.jsx("div", { className: 'phone-number-field__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
@@ -34,11 +34,15 @@ import 'react-dom';
|
|
|
34
34
|
import '../../context/WalletContext/WalletContext.js';
|
|
35
35
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
36
36
|
import '@dynamic-labs/types';
|
|
37
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
37
38
|
import 'yup';
|
|
38
39
|
import '../../context/MockContext/MockContext.js';
|
|
39
|
-
import '../../
|
|
40
|
+
import '../../views/CollectUserDataView/useFields.js';
|
|
40
41
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
41
42
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
43
|
+
import 'zustand';
|
|
44
|
+
import 'zustand/middleware';
|
|
45
|
+
import 'zustand/react/shallow';
|
|
42
46
|
import '@dynamic-labs/rpc-providers';
|
|
43
47
|
import { Typography } from '../Typography/Typography.js';
|
|
44
48
|
import '../../context/FooterAnimationContext/index.js';
|
|
@@ -51,12 +55,12 @@ import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
|
51
55
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
52
56
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
53
57
|
import 'react-focus-lock';
|
|
54
|
-
import '../../context/LoadingContext/LoadingContext.js';
|
|
55
58
|
import { Icon } from '../Icon/Icon.js';
|
|
56
59
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
57
60
|
import '../IconButton/IconButton.js';
|
|
58
61
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
59
62
|
import 'formik';
|
|
63
|
+
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
60
64
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
61
65
|
import '../Alert/Alert.js';
|
|
62
66
|
import { Input } from '../Input/Input.js';
|
|
@@ -94,7 +98,7 @@ const PhoneNumberField = ({ isLoading, disabled, error, label, onUpdate, appendR
|
|
|
94
98
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
95
99
|
}, ref: anchorRef, children: [jsxs("div", { className: classNames('phone-number-field__fields__country-code', {
|
|
96
100
|
'phone-number-field__fields__country-code--disabled': isLoading || disabled,
|
|
97
|
-
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsx(Typography, { className: 'phone-number-field__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric' }), jsx(Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input' }), !hasInput && (jsx(Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', copykey: 'dyn_collect_user_data.fields.phone_number.label', children: label !== null && label !== void 0 ? label : t('dyn_collect_user_data.fields.phone_number.label') })), appendRight] }), jsx(MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
101
|
+
}), onClick: openDropdown, "data-testid": 'country-code', children: [jsx(FlagImage, { iso2: currentCountry.iso2, size: '24px', className: 'phone-number-field__fields__country-code__flag' }), jsx(Typography, { className: 'phone-number-field__fields__country-code__plus', variant: 'body_normal', weight: 'regular', style: { fontSize: countryFontSize }, color: 'primary', children: "+" }), jsx(Input, { label: '', id: 'country_code_field', value: countryInput, onChange: handleCountryInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__country-code__container', className: 'phone-number-field__fields__country-code__container__input', onBlur: onBlurCountry, ref: countryInputRef, onKeyDown: handleCountryKeyDown, onFocus: onFocusCountry, style: { fontSize: countryFontSize }, "data-testid": 'country-code-input', inputMode: 'numeric', autoComplete: 'tel-country-code' }), jsx(Icon, { className: 'phone-number-field__fields__country-code__chevron', children: jsx(SvgChevronDown, {}) })] }), jsx(Input, { label: '', id: 'phoneNumber', value: formattedPhone, onChange: handlePhoneInput, disabled: isLoading || disabled, containerClassName: 'phone-number-field__fields__phone-number', className: 'phone-number-field__fields__phone-number__input', ref: inputRef, error: Boolean(invalidNumberMessage || error), inputMode: 'numeric', "data-testid": 'phone_number_input', autoComplete: 'tel-national' }), !hasInput && (jsx(Typography, { className: 'phone-number-field__fields__placeholder', variant: 'body_normal', weight: 'regular', copykey: 'dyn_collect_user_data.fields.phone_number.label', children: label !== null && label !== void 0 ? label : t('dyn_collect_user_data.fields.phone_number.label') })), appendRight] }), jsx(MenuList, { isOpen: countryDropdownOpen, onClickClose: closeDropdown, popperProps: {
|
|
98
102
|
anchorOrigin: 'bottom-left',
|
|
99
103
|
anchorRef,
|
|
100
104
|
}, mobileTitle: 'Select country', dropdownClassName: 'phone-number-field__dropdown', children: jsx("div", { className: 'phone-number-field__dropdown__items', ref: onMenuDisplayToggle, children: filteredCountries.map((countryData) => {
|
|
@@ -40,13 +40,17 @@ var useElementById = require('../../utils/hooks/useElementById/useElementById.cj
|
|
|
40
40
|
require('../../context/WalletContext/WalletContext.cjs');
|
|
41
41
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
42
42
|
require('@dynamic-labs/types');
|
|
43
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
43
44
|
require('yup');
|
|
44
45
|
require('../../context/MockContext/MockContext.cjs');
|
|
45
|
-
require('
|
|
46
|
-
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
46
|
+
require('../../views/CollectUserDataView/useFields.cjs');
|
|
47
47
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
48
48
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
|
+
require('zustand');
|
|
50
|
+
require('zustand/middleware');
|
|
51
|
+
require('zustand/react/shallow');
|
|
49
52
|
require('@dynamic-labs/rpc-providers');
|
|
53
|
+
require('react-i18next');
|
|
50
54
|
require('../Alert/Alert.cjs');
|
|
51
55
|
var ShadowDOM = require('../ShadowDOM/ShadowDOM.cjs');
|
|
52
56
|
require('../IconButton/IconButton.cjs');
|
|
@@ -61,11 +65,11 @@ require('../Popper/PopperContext/PopperContext.cjs');
|
|
|
61
65
|
var useKeyboardEventListener = require('../../utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs');
|
|
62
66
|
require('qrcode');
|
|
63
67
|
require('formik');
|
|
68
|
+
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
64
69
|
require('../../views/WalletList/WalletList.cjs');
|
|
65
70
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
66
71
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
67
72
|
require('@hcaptcha/react-hcaptcha');
|
|
68
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
69
73
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
70
74
|
require('../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
71
75
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -83,11 +87,12 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
83
87
|
const { view } = ViewContext.useViewContext();
|
|
84
88
|
const shouldCloseOnBackdropClick = (view === null || view === void 0 ? void 0 : view.type) &&
|
|
85
89
|
view.type !== 'collect-user-data' &&
|
|
86
|
-
view.type !== 'update-email' &&
|
|
87
90
|
view.type !== 'login-with-email-verification' &&
|
|
88
91
|
view.type !== 'login-with-sms-verification' &&
|
|
89
92
|
view.type !== 'verify-sms' &&
|
|
90
|
-
view.type !== 'verify-email'
|
|
93
|
+
view.type !== 'verify-email' &&
|
|
94
|
+
view.type !== 'mfa-verification' &&
|
|
95
|
+
view.type !== 'mfa-display-backup-codes';
|
|
91
96
|
const onBackdropClick = (e) => {
|
|
92
97
|
if (!shouldCloseOnBackdropClick)
|
|
93
98
|
return;
|
|
@@ -106,7 +111,8 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
106
111
|
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'portal__backdrop' })), jsxRuntime.jsx("div", { style: { zIndex }, children: children })] }));
|
|
107
112
|
};
|
|
108
113
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
109
|
-
const
|
|
114
|
+
const { createRootElement } = useElementById.useElementById();
|
|
115
|
+
const modalRootElementRef = createRootElement(elementId);
|
|
110
116
|
return reactDom.createPortal(jsxRuntime.jsx(ShadowDOM.ShadowDOM, { zIndex: zIndex, dataTestId: 'dynamic-modal-shadow', children: jsxRuntime.jsx(OpacityTransition.OpacityTransition, Object.assign({ isShown: isShown }, transitionEvents, { children: jsxRuntime.jsx(ModalComponent, { handleClose: handleClose, withBackdrop: withBackdrop, whiteList: (node) => modalRootElementRef.current.contains(node), children: children }) })) }), modalRootElementRef.current);
|
|
111
117
|
};
|
|
112
118
|
|