@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
|
@@ -4,6 +4,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
4
4
|
import { createContext, useState, useRef, useMemo, useEffect, useCallback } from 'react';
|
|
5
5
|
import { I18nextProvider } from 'react-i18next';
|
|
6
6
|
import { getIconicSpriteUrl } from '@dynamic-labs/iconic';
|
|
7
|
+
import { Logger } from '@dynamic-labs/logger';
|
|
7
8
|
import { MissingEnvironmentIdError } from '@dynamic-labs/utils';
|
|
8
9
|
import { useWalletBookCdn, getWalletBookCdnUrl, WalletBookContextProvider } from '@dynamic-labs/wallet-book';
|
|
9
10
|
import { logger as logger$1 } from '@dynamic-labs/wallet-connector-core';
|
|
@@ -13,7 +14,7 @@ import { decodeJwt } from '../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
|
13
14
|
import '@dynamic-labs/sdk-api-core';
|
|
14
15
|
import { logger } from '../../shared/logger.js';
|
|
15
16
|
import { ViewContextProvider } from '../ViewContext/ViewContext.js';
|
|
16
|
-
import { BRIDGE_ONBOARDING_COMPLETED,
|
|
17
|
+
import { BRIDGE_ONBOARDING_COMPLETED, AUTH_MODE, WALLET_PICKER_SEARCH_KEY, PHANTOM_SIGNATURE_STATE } from '../../utils/constants/localStorage.js';
|
|
17
18
|
import '../../utils/constants/colors.js';
|
|
18
19
|
import { DEFAULT_NUMBER_OF_WALLETS_TO_SHOW } from '../../utils/constants/values.js';
|
|
19
20
|
import { LocalStorage } from '../../shared/utils/classes/storage/localStorage.js';
|
|
@@ -25,6 +26,7 @@ import { ErrorContextProvider } from '../ErrorContext/ErrorContext.js';
|
|
|
25
26
|
import '@dynamic-labs/multi-wallet';
|
|
26
27
|
import { getAuthToken } from '../../utils/functions/getAuthToken/getAuthToken.js';
|
|
27
28
|
import { getMinAuthToken } from '../../utils/functions/getMinAuthToken/getMinAuthToken.js';
|
|
29
|
+
import { resolveNetworkValidationMode, initExpirationTime, getInitialView, getDeepLinkPreference } from './helpers/helpers.js';
|
|
28
30
|
import 'react-international-phone';
|
|
29
31
|
import 'viem';
|
|
30
32
|
import 'viem/chains';
|
|
@@ -42,9 +44,10 @@ import { useFetchProjectSettings } from '../../utils/hooks/useFetchProjectSettin
|
|
|
42
44
|
import { ThemeContextProvider } from '../ThemeContext/ThemeContext.js';
|
|
43
45
|
import { useSetWalletConnectorVerifiedCredentials } from '../../utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js';
|
|
44
46
|
import '@dynamic-labs/types';
|
|
47
|
+
import { LoadingContextProvider } from '../LoadingContext/LoadingContext.js';
|
|
45
48
|
import 'yup';
|
|
46
49
|
import '../MockContext/MockContext.js';
|
|
47
|
-
import
|
|
50
|
+
import '../../views/CollectUserDataView/useFields.js';
|
|
48
51
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
49
52
|
import { UserFieldEditorContextProvider } from '../UserFieldEditorContext/UserFieldEditorContext.js';
|
|
50
53
|
import { useValidateSession } from '../../utils/hooks/useValidateSession/useValidateSession.js';
|
|
@@ -71,11 +74,11 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
71
74
|
import 'react-focus-lock';
|
|
72
75
|
import 'qrcode';
|
|
73
76
|
import 'formik';
|
|
77
|
+
import { FieldsStateProvider } from '../FieldsStateContext/FieldsStateContext.js';
|
|
74
78
|
import '../../views/WalletList/WalletList.js';
|
|
75
79
|
import { SocialRedirectContextProvider } from '../SocialRedirectContext/SocialRedirectContext.js';
|
|
76
80
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
77
81
|
import '@hcaptcha/react-hcaptcha';
|
|
78
|
-
import { LoadingContextProvider } from '../LoadingContext/LoadingContext.js';
|
|
79
82
|
import '../FooterAnimationContext/index.js';
|
|
80
83
|
import '../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
81
84
|
import { WalletGroupContextProvider } from '../WalletGroupContext/WalletGroupContext.js';
|
|
@@ -102,11 +105,16 @@ import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/P
|
|
|
102
105
|
import { FundingWidget } from '../../widgets/FundingWidget/FundingWidget.js';
|
|
103
106
|
import { ConnectWithOtpProvider } from '../ConnectWithOtpContext/ConnectWithOtpProvider.js';
|
|
104
107
|
import '../ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
108
|
+
import { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.js';
|
|
109
|
+
import { ErrorBoundaryExclude } from '../ErrorBoundary/ErrorBoundaryExclude.js';
|
|
110
|
+
import '../ErrorBoundary/ErrorBoundaryBase.js';
|
|
105
111
|
import { FundingContextProvider } from '../FundingContext/FundingContext.js';
|
|
106
112
|
import { PhantomRedirectContextProvider } from '../PhantomRedirectContext/PhantomRedirectContext.js';
|
|
107
113
|
import { SendBalanceContextProvider } from '../SendBalanceContext/SendBalanceContext.js';
|
|
108
114
|
import { UseNetworkValidation } from '../UseNetworkValidation/UseNetworkValidation.js';
|
|
109
|
-
import {
|
|
115
|
+
import { setUser } from '../../store/actions/userActions/userActions.js';
|
|
116
|
+
import { initializeStore } from '../../store/store.js';
|
|
117
|
+
import { useUser } from '../../store/hooks/useUser/useUser.js';
|
|
110
118
|
import { useDisplayOrderState } from './hooks/useDisplayOrderState/useDisplayOrderState.js';
|
|
111
119
|
import { useEmailLoginState } from './hooks/useEmailLoginState/useEmailLoginState.js';
|
|
112
120
|
import { useHandleLogout } from './hooks/useHandleLogout/useHandleLogout.js';
|
|
@@ -118,15 +126,20 @@ import { useTieCallbacksToEvents } from './hooks/useTieCallbacksToEvents/useTieC
|
|
|
118
126
|
import { useMultiWallet } from './hooks/useMultiWallet/useMultiWallet.js';
|
|
119
127
|
import { useParentDynamicContextGuard } from './hooks/useParentDynamicContextGuard/useParentDynamicContextGuard.js';
|
|
120
128
|
import { useCustomerCallbacks } from './useCustomerCallbacks/useCustomerCallbacks.js';
|
|
121
|
-
import { validateAuthUser } from './validators/validators.js';
|
|
122
129
|
|
|
123
130
|
const PUBLIC_PROJECT_LIVE_ENVIRONMENT_ID = '2762a57b-faa4-41ce-9f16-abff9300e2c9';
|
|
124
|
-
const EMPTY_INITIAL_USER = undefined;
|
|
125
131
|
const DynamicContext = createContext(undefined);
|
|
126
132
|
/** The context provider itself we only use internally */
|
|
127
133
|
const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) => {
|
|
128
134
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
129
|
-
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId,
|
|
135
|
+
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, coinbaseWalletPreference, enableConnectOnlyFallback = false, deepLinkPreference: deepLinkPreferenceProp = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, walletsFilter, logLevel = 'WARN', mobileExperience = 'in-app-browser', notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, hideEmbeddedWalletTransactionUIs, handlers, } = settings;
|
|
136
|
+
LocalStorage.setSuffix(settings.localStorageSuffix);
|
|
137
|
+
/**
|
|
138
|
+
* initialize global store
|
|
139
|
+
*/
|
|
140
|
+
initializeStore({
|
|
141
|
+
storageSuffix: settings.localStorageSuffix,
|
|
142
|
+
});
|
|
130
143
|
/**
|
|
131
144
|
* For backwards compatibility, we allow the client to pass in
|
|
132
145
|
* `eventsCallbacks` instead of `events`. It should remove this
|
|
@@ -148,12 +161,12 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
148
161
|
logger.warn(`WARNING: DYNAMIC is using a test environment ID ${environmentId}. Please sign up on https://app.dynamic.xyz/ to get your production environment ID.`);
|
|
149
162
|
}
|
|
150
163
|
ApiEndpoint.setBaseUrl((_b = process.env.DYNAMIC_API_BASE_URL) !== null && _b !== void 0 ? _b : apiBaseUrl);
|
|
151
|
-
LocalStorage.setSuffix(localStorageSuffix);
|
|
152
164
|
const i18nSDKInstance = Locale.setup(locale);
|
|
153
165
|
const isAuthenticated = Boolean(getAuthToken());
|
|
154
166
|
const isBridgeFlow = Boolean(bridgeChains);
|
|
155
167
|
const deepLinkPreference = getDeepLinkPreference(deepLinkPreferenceProp, isBridgeFlow);
|
|
156
168
|
const [onboardingOnlyJwt, setOnboardingOnlyJwt] = useState(undefined);
|
|
169
|
+
const [defaultTabIndex, setDefaultTabIndex] = useState(0);
|
|
157
170
|
// state to track the full connectivity status of the individual's wallets.
|
|
158
171
|
// Set to true once the predetermined number of wallets is connected.
|
|
159
172
|
const [bridgeOnboardingCompleted, setBridgeOnboardingCompleted, removeBridgeOnboardingCompleted,] = useLocalStorage(BRIDGE_ONBOARDING_COMPLETED, false);
|
|
@@ -162,7 +175,13 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
162
175
|
// Alows clients to control the Bridget Widget flow without need to click on Bridge Widget
|
|
163
176
|
const [showBridgeWidget, setShowBridgeWidget] = useState(false);
|
|
164
177
|
const [isSingleWalletAccount, setIsSingleWalletAccount] = useState(false);
|
|
165
|
-
const
|
|
178
|
+
const { user, userWithMissingFields } = useUser();
|
|
179
|
+
if (user) {
|
|
180
|
+
logger.setMetaData('user', user);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
logger.setMetaData('user', undefined);
|
|
184
|
+
}
|
|
166
185
|
const { consumeNonce } = useFetchNonce(environmentId);
|
|
167
186
|
const [qrcodeUri, setQrcodeUri] = useState('');
|
|
168
187
|
const [desktopUri, setDesktopUri] = useState('');
|
|
@@ -202,6 +221,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
202
221
|
const { walletConnectorOptions } = useWalletConnectorOptions({
|
|
203
222
|
appLogoUrl,
|
|
204
223
|
appName,
|
|
224
|
+
coinbaseWalletPreference,
|
|
205
225
|
deepLinkPreference,
|
|
206
226
|
flowNetwork,
|
|
207
227
|
mobileExperience,
|
|
@@ -214,7 +234,10 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
214
234
|
walletUiUtils,
|
|
215
235
|
});
|
|
216
236
|
const [authMode, setAuthMode] = useLocalStorage(AUTH_MODE, initialAuthenticationMode);
|
|
217
|
-
const { clearPrimaryWalletId, primaryWalletId, setPrimaryWalletId } = usePrimaryWalletId(
|
|
237
|
+
const { clearPrimaryWalletId, primaryWalletId, setPrimaryWalletId } = usePrimaryWalletId({
|
|
238
|
+
environmentId,
|
|
239
|
+
minAuthToken: getMinAuthToken(),
|
|
240
|
+
});
|
|
218
241
|
// this is a state because it's set based on primaryWallet and bridgeChainsToConnect,
|
|
219
242
|
// which are only available further down and have would have circular dependencies
|
|
220
243
|
const [requiredWalletsConnected, setRequiredWalletsConnected] = useState(false);
|
|
@@ -247,7 +270,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
247
270
|
// until user completes onboarding, jwt is only stored in onboardingOnlyJwt
|
|
248
271
|
const authToken = (_f = getAuthToken()) !== null && _f !== void 0 ? _f : onboardingOnlyJwt;
|
|
249
272
|
useSetWalletConnectorVerifiedCredentials(authToken, walletConnectorOptions);
|
|
250
|
-
useSetWalletConnectorFetchers(
|
|
273
|
+
useSetWalletConnectorFetchers(walletConnectorOptions, environmentId);
|
|
251
274
|
const { didConnectedStateLoad, primaryWallet, showQrcodeModal, secondaryWallets, setPrimaryWallet, setShowQrcodeModal, wallets: linkedOrConnectedWallets, } = useWalletConnectors({
|
|
252
275
|
authMode,
|
|
253
276
|
authToken: getAuthToken() || onboardingOnlyJwt,
|
|
@@ -277,8 +300,8 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
277
300
|
walletBook,
|
|
278
301
|
});
|
|
279
302
|
const { getNameService, removeConnectedNameService } = useNameService({
|
|
280
|
-
authToken,
|
|
281
303
|
currentWallet: primaryWallet !== null && primaryWallet !== void 0 ? primaryWallet : connectedWallets[0],
|
|
304
|
+
user,
|
|
282
305
|
});
|
|
283
306
|
const { clearAllWalletConnectSessions } = useClearWalletConnectSessions({
|
|
284
307
|
connectors: walletConnectors,
|
|
@@ -296,7 +319,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
296
319
|
removeConnectedNameService,
|
|
297
320
|
removeConnectedWalletsInfo,
|
|
298
321
|
removeLsSettings,
|
|
299
|
-
removeUser,
|
|
300
322
|
resetLoginWithEmail,
|
|
301
323
|
setAuthMode,
|
|
302
324
|
setLegacyIsVerifying,
|
|
@@ -309,9 +331,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
309
331
|
walletConnectors,
|
|
310
332
|
});
|
|
311
333
|
const { setHasLoggedOut } = useValidateSession({
|
|
312
|
-
authToken,
|
|
313
334
|
handleLogOut,
|
|
314
|
-
user,
|
|
315
335
|
});
|
|
316
336
|
// Ties all client callbacks to dynamic's events, such that
|
|
317
337
|
// when our events are triggered, so are the client callbacks
|
|
@@ -324,12 +344,12 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
324
344
|
environmentId,
|
|
325
345
|
primaryWalletId,
|
|
326
346
|
secondaryWallets,
|
|
327
|
-
setUser,
|
|
328
347
|
verifiedCredentials: (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || [],
|
|
329
348
|
});
|
|
330
349
|
const { isLoading: loadingNetwork, network } = useWalletConnectorNetwork(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector);
|
|
331
350
|
useWalletEventListeners({
|
|
332
351
|
authMode,
|
|
352
|
+
disconnectWallet,
|
|
333
353
|
handleLogOut,
|
|
334
354
|
multiWallet,
|
|
335
355
|
multiWalletWidgetState,
|
|
@@ -380,12 +400,10 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
380
400
|
if (authMode !== 'connect-only') {
|
|
381
401
|
removeConnectedWalletsInfo();
|
|
382
402
|
}
|
|
383
|
-
if (!LocalStorage.getFromLS(AUTH_USER)) {
|
|
384
|
-
LocalStorage.removeFromLS(AUTH_TOKEN);
|
|
385
|
-
}
|
|
386
403
|
if (LocalStorage.getFromLS(WALLET_PICKER_SEARCH_KEY)) {
|
|
387
404
|
LocalStorage.removeFromLS(WALLET_PICKER_SEARCH_KEY);
|
|
388
405
|
}
|
|
406
|
+
LocalStorage.removeFromLS(PHANTOM_SIGNATURE_STATE);
|
|
389
407
|
if (selectedWalletConnector &&
|
|
390
408
|
(!primaryWallet ||
|
|
391
409
|
primaryWallet.connector.key !== selectedWalletConnector.key)) {
|
|
@@ -425,9 +443,9 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
425
443
|
customPrivacyPolicy,
|
|
426
444
|
customTermsOfServices,
|
|
427
445
|
debugError,
|
|
428
|
-
decodedAuthToken: decodeJwt(getAuthToken()),
|
|
429
446
|
decodedOnboardingOnlyToken: decodeJwt(onboardingOnlyJwt),
|
|
430
447
|
defaultNumberOfWalletsToShow,
|
|
448
|
+
defaultTabIndex,
|
|
431
449
|
desktopUri,
|
|
432
450
|
disconnectWallet,
|
|
433
451
|
displaySiweStatement,
|
|
@@ -484,6 +502,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
484
502
|
setAuthorizationViewDisplayOrder,
|
|
485
503
|
setBridgeOnboardingCompleted,
|
|
486
504
|
setCallback,
|
|
505
|
+
setDefaultTabIndex,
|
|
487
506
|
setDesktopUri,
|
|
488
507
|
setIsSingleWalletAccount,
|
|
489
508
|
setLegacyIsVerifying,
|
|
@@ -519,6 +538,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
519
538
|
theme,
|
|
520
539
|
toolkitEnabled,
|
|
521
540
|
user,
|
|
541
|
+
userWithMissingFields,
|
|
522
542
|
walletConnector: (_b = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) !== null && _b !== void 0 ? _b : null,
|
|
523
543
|
walletConnectorOptions,
|
|
524
544
|
walletUiUtils,
|
|
@@ -532,6 +552,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
532
552
|
handlers,
|
|
533
553
|
appLogoUrl,
|
|
534
554
|
appName,
|
|
555
|
+
defaultTabIndex,
|
|
535
556
|
authMode,
|
|
536
557
|
authorizationViewDisplayOrder,
|
|
537
558
|
awaitingSignatureState,
|
|
@@ -565,6 +586,7 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
565
586
|
isSingleWalletAccount,
|
|
566
587
|
legacyIsVerifying,
|
|
567
588
|
user,
|
|
589
|
+
userWithMissingFields,
|
|
568
590
|
linkedOrConnectedWallets,
|
|
569
591
|
loadingNetwork,
|
|
570
592
|
loginWithEmail,
|
|
@@ -608,7 +630,6 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
608
630
|
setSelectedWalletConnectorKey,
|
|
609
631
|
setShowAuthFlow,
|
|
610
632
|
setShowQrcodeModal,
|
|
611
|
-
setUser,
|
|
612
633
|
shadowDOMEnabled,
|
|
613
634
|
showAuthFlow,
|
|
614
635
|
showBridgeWidget,
|
|
@@ -664,19 +685,22 @@ const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) =>
|
|
|
664
685
|
if (user && multiWalletWidgetState !== 'idle' && !showDynamicUserProfile) {
|
|
665
686
|
setShowDynamicUserProfile(true);
|
|
666
687
|
}
|
|
667
|
-
|
|
688
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
689
|
+
}, [multiWallet, multiWalletWidgetState, showDynamicUserProfile]);
|
|
668
690
|
return (jsx(I18nextProvider, { i18n: i18nSDKInstance, children: jsx(DynamicContext.Provider, { value: value, children: jsx(WalletBookContextProvider, { walletBook: walletBook, children: jsx(ThemeContextProvider, { customerTheme: parseTheme(theme, ((_g = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _g === void 0 ? void 0 : _g.modal) || undefined), designSettings: projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design, children: jsx(LoadingContextProvider, { children: jsxs(ViewContextProvider, { initialView: getInitialView({
|
|
669
691
|
bridgeOnboardingCompleted,
|
|
670
692
|
connectedWallets,
|
|
671
693
|
isAuthenticated: isAuthenticated || Boolean(primaryWallet),
|
|
672
694
|
isBridgeFlow,
|
|
673
695
|
isMultiWalletEnabled: multiWallet,
|
|
674
|
-
}), children: [networkValidationMode === 'always' && jsx(UseNetworkValidation, {}), jsx(CaptchaContextProvider, { children: jsx(AccountExistsContextProvider, { children: jsx(WalletContextProvider, { canSync: didConnectedStateLoad, children: jsx(PasskeyContextProvider, { children: jsx(VerificationProvider, { children: jsx(DynamicWidgetContextProvider, { children: jsx(DynamicBridgeWidgetContextProvider, { children: jsx(FundingContextProvider, { children: jsx(AccessDeniedContextProvider, { children: jsx(SendBalanceContextProvider, { children: jsx(WalletGroupContextProvider, { children: jsx(UserFieldEditorContextProvider, { children: jsx(ConnectWithOtpProvider, { children: jsx(PhantomRedirectContextProvider, { children: jsxs(SocialRedirectContextProvider, { children: [jsx(DynamicAuthFlow, {}), jsx(Toolkit, {}), jsx(FundingWidget, {}), jsx(SyncEmbeddedWalletAuthFlow, {}), confirmationModal, children] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
|
|
696
|
+
}), children: [networkValidationMode === 'always' && jsx(UseNetworkValidation, {}), jsx(CaptchaContextProvider, { children: jsx(AccountExistsContextProvider, { children: jsx(WalletContextProvider, { canSync: didConnectedStateLoad, children: jsx(PasskeyContextProvider, { children: jsx(VerificationProvider, { children: jsx(DynamicWidgetContextProvider, { children: jsx(DynamicBridgeWidgetContextProvider, { children: jsx(FundingContextProvider, { children: jsx(AccessDeniedContextProvider, { children: jsx(SendBalanceContextProvider, { children: jsx(WalletGroupContextProvider, { children: jsx(UserFieldEditorContextProvider, { children: jsx(ConnectWithOtpProvider, { children: jsx(PhantomRedirectContextProvider, { children: jsxs(SocialRedirectContextProvider, { children: [jsx(DynamicAuthFlow, {}), jsx(Toolkit, {}), jsx(FundingWidget, {}), jsx(SyncEmbeddedWalletAuthFlow, {}), confirmationModal, jsx(ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) }) }) }));
|
|
675
697
|
};
|
|
676
698
|
/** The context provider you need to have access too all of Dynamic's hooks */
|
|
677
699
|
const DynamicContextProvider = (props) => {
|
|
700
|
+
Logger.setEnvironmentId(props.settings.environmentId);
|
|
701
|
+
Logger.setEmitErrors(props.emitErrors);
|
|
678
702
|
useParentDynamicContextGuard();
|
|
679
|
-
return (jsx(ErrorContextProvider, { children: jsx(UserWalletsProvider, { children: jsx(FieldsStateProvider, { children: jsx(InnerDynamicContextProvider, Object.assign({}, props)) }) }) }));
|
|
703
|
+
return (jsx(ErrorBoundary, { children: jsx(ErrorContextProvider, { children: jsx(UserWalletsProvider, { children: jsx(FieldsStateProvider, { children: jsx(InnerDynamicContextProvider, Object.assign({}, props)) }) }) }) }));
|
|
680
704
|
};
|
|
681
705
|
|
|
682
706
|
export { DynamicContext, DynamicContextProvider, InnerDynamicContextProvider, PUBLIC_PROJECT_LIVE_ENVIRONMENT_ID };
|
|
@@ -6,18 +6,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('@dynamic-labs/wallet-connector-core');
|
|
8
8
|
require('@dynamic-labs/sdk-api-core');
|
|
9
|
+
require('../../../../utils/constants/values.cjs');
|
|
10
|
+
require('@dynamic-labs/utils');
|
|
11
|
+
require('../../../../../../_virtual/_tslib.cjs');
|
|
12
|
+
require('@dynamic-labs/multi-wallet');
|
|
9
13
|
require('../../../../shared/logger.cjs');
|
|
10
14
|
require('@dynamic-labs/iconic');
|
|
11
15
|
require('react/jsx-runtime');
|
|
12
16
|
require('../../../ViewContext/ViewContext.cjs');
|
|
13
17
|
require('@dynamic-labs/wallet-book');
|
|
14
18
|
require('../../../../utils/constants/colors.cjs');
|
|
15
|
-
require('../../../../utils/constants/values.cjs');
|
|
16
19
|
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
|
-
require('@dynamic-labs/utils');
|
|
18
20
|
require('../../../../shared/consts/index.cjs');
|
|
19
|
-
require('../../../../../../_virtual/_tslib.cjs');
|
|
20
|
-
require('@dynamic-labs/multi-wallet');
|
|
21
21
|
require('react-international-phone');
|
|
22
22
|
var isEmailProviderEnabled = require('../../../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs');
|
|
23
23
|
require('viem');
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { useState, useMemo } from 'react';
|
|
3
3
|
import '@dynamic-labs/wallet-connector-core';
|
|
4
4
|
import '@dynamic-labs/sdk-api-core';
|
|
5
|
+
import '../../../../utils/constants/values.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../../../../../_virtual/_tslib.js';
|
|
8
|
+
import '@dynamic-labs/multi-wallet';
|
|
5
9
|
import '../../../../shared/logger.js';
|
|
6
10
|
import '@dynamic-labs/iconic';
|
|
7
11
|
import 'react/jsx-runtime';
|
|
8
12
|
import '../../../ViewContext/ViewContext.js';
|
|
9
13
|
import '@dynamic-labs/wallet-book';
|
|
10
14
|
import '../../../../utils/constants/colors.js';
|
|
11
|
-
import '../../../../utils/constants/values.js';
|
|
12
15
|
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
13
|
-
import '@dynamic-labs/utils';
|
|
14
16
|
import '../../../../shared/consts/index.js';
|
|
15
|
-
import '../../../../../../_virtual/_tslib.js';
|
|
16
|
-
import '@dynamic-labs/multi-wallet';
|
|
17
17
|
import 'react-international-phone';
|
|
18
18
|
import { isEmailProviderEnabled } from '../../../../utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js';
|
|
19
19
|
import 'viem';
|
|
@@ -6,7 +6,6 @@ import { MultiWalletWidgetStateSetter } from '../../../../utils/hooks/multiWalle
|
|
|
6
6
|
import { ChainsToConnect } from '../../types';
|
|
7
7
|
import { SetShowAuthFlow } from '../useShowAuthFlow';
|
|
8
8
|
export type UseHandleLogoutParams = {
|
|
9
|
-
removeUser: () => void;
|
|
10
9
|
clearAllWalletConnectSessions: () => void;
|
|
11
10
|
bridgeChains: ChainsToConnect[] | undefined;
|
|
12
11
|
setShowDynamicUserProfile: Dispatch<SetStateAction<boolean>>;
|
|
@@ -19,14 +19,14 @@ require('../../../../utils/constants/values.cjs');
|
|
|
19
19
|
var localStorage = require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
20
|
require('../../../../shared/consts/index.cjs');
|
|
21
21
|
require('../../../../config/ApiEndpoint.cjs');
|
|
22
|
-
var session = require('../../../../data/api/session/session.cjs');
|
|
23
|
-
require('../../../../locale/locale.cjs');
|
|
24
|
-
var dynamicEvents = require('../../../../events/dynamicEvents.cjs');
|
|
25
22
|
require('@dynamic-labs/multi-wallet');
|
|
26
23
|
var getMinAuthToken = require('../../../../utils/functions/getMinAuthToken/getMinAuthToken.cjs');
|
|
27
24
|
require('react-international-phone');
|
|
28
25
|
require('viem');
|
|
29
26
|
require('viem/chains');
|
|
27
|
+
var session = require('../../../../data/api/session/session.cjs');
|
|
28
|
+
require('../../../../locale/locale.cjs');
|
|
29
|
+
var dynamicEvents = require('../../../../events/dynamicEvents.cjs');
|
|
30
30
|
var useDynamicEvents = require('../../../../utils/hooks/events/useDynamicEvents/useDynamicEvents.cjs');
|
|
31
31
|
require('../../DynamicContext.cjs');
|
|
32
32
|
require('../../../CaptchaContext/CaptchaContext.cjs');
|
|
@@ -39,13 +39,18 @@ require('react-dom');
|
|
|
39
39
|
require('../../../WalletContext/WalletContext.cjs');
|
|
40
40
|
require('../../../ThemeContext/ThemeContext.cjs');
|
|
41
41
|
require('@dynamic-labs/types');
|
|
42
|
+
require('../../../LoadingContext/LoadingContext.cjs');
|
|
42
43
|
require('yup');
|
|
43
44
|
require('../../../MockContext/MockContext.cjs');
|
|
44
|
-
require('
|
|
45
|
-
require('../../../FieldsStateContext/FieldsStateContext.cjs');
|
|
45
|
+
require('../../../../views/CollectUserDataView/useFields.cjs');
|
|
46
46
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
47
47
|
require('../../../UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
48
|
+
require('zustand');
|
|
49
|
+
require('zustand/middleware');
|
|
50
|
+
var storeActions = require('../../../../store/actions/storeActions/storeActions.cjs');
|
|
51
|
+
require('zustand/react/shallow');
|
|
48
52
|
require('@dynamic-labs/rpc-providers');
|
|
53
|
+
require('react-i18next');
|
|
49
54
|
require('../../../../components/Alert/Alert.cjs');
|
|
50
55
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
51
56
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
@@ -63,11 +68,11 @@ require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
63
68
|
require('react-focus-lock');
|
|
64
69
|
require('qrcode');
|
|
65
70
|
require('formik');
|
|
71
|
+
require('../../../FieldsStateContext/FieldsStateContext.cjs');
|
|
66
72
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
67
73
|
require('../../../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
68
74
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
69
75
|
require('@hcaptcha/react-hcaptcha');
|
|
70
|
-
require('../../../LoadingContext/LoadingContext.cjs');
|
|
71
76
|
require('../../../FooterAnimationContext/index.cjs');
|
|
72
77
|
require('../../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
73
78
|
require('../../../WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -77,6 +82,13 @@ require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
|
77
82
|
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
78
83
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
79
84
|
|
|
85
|
+
const clearFromLocalStorage = [
|
|
86
|
+
localStorage$1.AUTH_TOKEN,
|
|
87
|
+
localStorage$1.AUTH_MIN_TOKEN,
|
|
88
|
+
localStorage$1.WALLET_PICKER_SEARCH_KEY,
|
|
89
|
+
localStorage$1.PHANTOM_SIGNATURE_STATE,
|
|
90
|
+
localStorage$1.AUTH_ONBOARDING_TOKEN,
|
|
91
|
+
];
|
|
80
92
|
const useHandleLogout = (params) => {
|
|
81
93
|
const paramsRef = React.useRef(params);
|
|
82
94
|
paramsRef.current = params;
|
|
@@ -86,15 +98,17 @@ const useHandleLogout = (params) => {
|
|
|
86
98
|
p.setShowDynamicUserProfile(false);
|
|
87
99
|
p.setShowBridgeWidget(false);
|
|
88
100
|
p.resetLoginWithEmail();
|
|
89
|
-
localStorage.LocalStorage.removeFromLS(localStorage$1.WALLET_PICKER_SEARCH_KEY);
|
|
90
101
|
const jwt = getMinAuthToken.getMinAuthToken();
|
|
91
102
|
if (jwt && p.user) {
|
|
92
103
|
// do not await this async call - just fire and forget
|
|
93
|
-
session.revokeSession({
|
|
104
|
+
session.revokeSession({
|
|
105
|
+
environmentId: p.environmentId,
|
|
106
|
+
sessionId: p.user.sessionId,
|
|
107
|
+
});
|
|
94
108
|
}
|
|
95
109
|
p.setLegacyIsVerifying(false);
|
|
96
|
-
|
|
97
|
-
|
|
110
|
+
for (const item of clearFromLocalStorage)
|
|
111
|
+
localStorage.LocalStorage.removeFromLS(item);
|
|
98
112
|
p.setAuthMode(p.initialAuthenticationMode);
|
|
99
113
|
p.setShowAuthFlow(false, {
|
|
100
114
|
emitCancelAuth: false,
|
|
@@ -115,7 +129,7 @@ const useHandleLogout = (params) => {
|
|
|
115
129
|
dynamicEvents.dynamicEvents.removeListener('embeddedWalletUpdatePasswordCompleted');
|
|
116
130
|
dynamicEvents.dynamicEvents.removeListener('embeddedWalletUpdatePasswordFailed');
|
|
117
131
|
dynamicEvents.dynamicEvents.emit('logout');
|
|
118
|
-
|
|
132
|
+
storeActions.clearStore();
|
|
119
133
|
yield Promise.all(p.walletConnectors.map((connector) => connector.endSession()));
|
|
120
134
|
yield Promise.all(p.connectedWallets.map((connectedWallet) => connectedWallet.connector.endSession()));
|
|
121
135
|
}), []);
|
|
@@ -124,4 +138,5 @@ const useHandleLogout = (params) => {
|
|
|
124
138
|
return logout;
|
|
125
139
|
};
|
|
126
140
|
|
|
141
|
+
exports.clearFromLocalStorage = clearFromLocalStorage;
|
|
127
142
|
exports.useHandleLogout = useHandleLogout;
|
|
@@ -9,20 +9,20 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import '../../../ViewContext/ViewContext.js';
|
|
11
11
|
import '@dynamic-labs/wallet-book';
|
|
12
|
-
import { WALLET_PICKER_SEARCH_KEY,
|
|
12
|
+
import { AUTH_TOKEN, AUTH_MIN_TOKEN, WALLET_PICKER_SEARCH_KEY, PHANTOM_SIGNATURE_STATE, AUTH_ONBOARDING_TOKEN } from '../../../../utils/constants/localStorage.js';
|
|
13
13
|
import '../../../../utils/constants/colors.js';
|
|
14
14
|
import '../../../../utils/constants/values.js';
|
|
15
15
|
import { LocalStorage } from '../../../../shared/utils/classes/storage/localStorage.js';
|
|
16
16
|
import '../../../../shared/consts/index.js';
|
|
17
17
|
import '../../../../config/ApiEndpoint.js';
|
|
18
|
-
import { revokeSession } from '../../../../data/api/session/session.js';
|
|
19
|
-
import '../../../../locale/locale.js';
|
|
20
|
-
import { dynamicEvents } from '../../../../events/dynamicEvents.js';
|
|
21
18
|
import '@dynamic-labs/multi-wallet';
|
|
22
19
|
import { getMinAuthToken } from '../../../../utils/functions/getMinAuthToken/getMinAuthToken.js';
|
|
23
20
|
import 'react-international-phone';
|
|
24
21
|
import 'viem';
|
|
25
22
|
import 'viem/chains';
|
|
23
|
+
import { revokeSession } from '../../../../data/api/session/session.js';
|
|
24
|
+
import '../../../../locale/locale.js';
|
|
25
|
+
import { dynamicEvents } from '../../../../events/dynamicEvents.js';
|
|
26
26
|
import { useInternalDynamicEvents } from '../../../../utils/hooks/events/useDynamicEvents/useDynamicEvents.js';
|
|
27
27
|
import '../../DynamicContext.js';
|
|
28
28
|
import '../../../CaptchaContext/CaptchaContext.js';
|
|
@@ -35,13 +35,18 @@ import 'react-dom';
|
|
|
35
35
|
import '../../../WalletContext/WalletContext.js';
|
|
36
36
|
import '../../../ThemeContext/ThemeContext.js';
|
|
37
37
|
import '@dynamic-labs/types';
|
|
38
|
+
import '../../../LoadingContext/LoadingContext.js';
|
|
38
39
|
import 'yup';
|
|
39
40
|
import '../../../MockContext/MockContext.js';
|
|
40
|
-
import '
|
|
41
|
-
import '../../../FieldsStateContext/FieldsStateContext.js';
|
|
41
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
42
42
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
43
43
|
import '../../../UserFieldEditorContext/UserFieldEditorContext.js';
|
|
44
|
+
import 'zustand';
|
|
45
|
+
import 'zustand/middleware';
|
|
46
|
+
import { clearStore } from '../../../../store/actions/storeActions/storeActions.js';
|
|
47
|
+
import 'zustand/react/shallow';
|
|
44
48
|
import '@dynamic-labs/rpc-providers';
|
|
49
|
+
import 'react-i18next';
|
|
45
50
|
import '../../../../components/Alert/Alert.js';
|
|
46
51
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
47
52
|
import '../../../../components/IconButton/IconButton.js';
|
|
@@ -59,11 +64,11 @@ import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
|
59
64
|
import 'react-focus-lock';
|
|
60
65
|
import 'qrcode';
|
|
61
66
|
import 'formik';
|
|
67
|
+
import '../../../FieldsStateContext/FieldsStateContext.js';
|
|
62
68
|
import '../../../../views/WalletList/WalletList.js';
|
|
63
69
|
import '../../../SocialRedirectContext/SocialRedirectContext.js';
|
|
64
70
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
65
71
|
import '@hcaptcha/react-hcaptcha';
|
|
66
|
-
import '../../../LoadingContext/LoadingContext.js';
|
|
67
72
|
import '../../../FooterAnimationContext/index.js';
|
|
68
73
|
import '../../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
69
74
|
import '../../../WalletGroupContext/WalletGroupContext.js';
|
|
@@ -73,6 +78,13 @@ import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
|
73
78
|
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
74
79
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
75
80
|
|
|
81
|
+
const clearFromLocalStorage = [
|
|
82
|
+
AUTH_TOKEN,
|
|
83
|
+
AUTH_MIN_TOKEN,
|
|
84
|
+
WALLET_PICKER_SEARCH_KEY,
|
|
85
|
+
PHANTOM_SIGNATURE_STATE,
|
|
86
|
+
AUTH_ONBOARDING_TOKEN,
|
|
87
|
+
];
|
|
76
88
|
const useHandleLogout = (params) => {
|
|
77
89
|
const paramsRef = useRef(params);
|
|
78
90
|
paramsRef.current = params;
|
|
@@ -82,15 +94,17 @@ const useHandleLogout = (params) => {
|
|
|
82
94
|
p.setShowDynamicUserProfile(false);
|
|
83
95
|
p.setShowBridgeWidget(false);
|
|
84
96
|
p.resetLoginWithEmail();
|
|
85
|
-
LocalStorage.removeFromLS(WALLET_PICKER_SEARCH_KEY);
|
|
86
97
|
const jwt = getMinAuthToken();
|
|
87
98
|
if (jwt && p.user) {
|
|
88
99
|
// do not await this async call - just fire and forget
|
|
89
|
-
revokeSession({
|
|
100
|
+
revokeSession({
|
|
101
|
+
environmentId: p.environmentId,
|
|
102
|
+
sessionId: p.user.sessionId,
|
|
103
|
+
});
|
|
90
104
|
}
|
|
91
105
|
p.setLegacyIsVerifying(false);
|
|
92
|
-
|
|
93
|
-
|
|
106
|
+
for (const item of clearFromLocalStorage)
|
|
107
|
+
LocalStorage.removeFromLS(item);
|
|
94
108
|
p.setAuthMode(p.initialAuthenticationMode);
|
|
95
109
|
p.setShowAuthFlow(false, {
|
|
96
110
|
emitCancelAuth: false,
|
|
@@ -111,7 +125,7 @@ const useHandleLogout = (params) => {
|
|
|
111
125
|
dynamicEvents.removeListener('embeddedWalletUpdatePasswordCompleted');
|
|
112
126
|
dynamicEvents.removeListener('embeddedWalletUpdatePasswordFailed');
|
|
113
127
|
dynamicEvents.emit('logout');
|
|
114
|
-
|
|
128
|
+
clearStore();
|
|
115
129
|
yield Promise.all(p.walletConnectors.map((connector) => connector.endSession()));
|
|
116
130
|
yield Promise.all(p.connectedWallets.map((connectedWallet) => connectedWallet.connector.endSession()));
|
|
117
131
|
}), []);
|
|
@@ -120,4 +134,4 @@ const useHandleLogout = (params) => {
|
|
|
120
134
|
return logout;
|
|
121
135
|
};
|
|
122
136
|
|
|
123
|
-
export { useHandleLogout };
|
|
137
|
+
export { clearFromLocalStorage, useHandleLogout };
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../../../_virtual/_tslib.cjs');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var decodeJwt = require('../../../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
9
8
|
require('@dynamic-labs/sdk-api-core');
|
|
10
9
|
require('../../../../shared/logger.cjs');
|
|
11
10
|
require('@dynamic-labs/iconic');
|
|
@@ -22,7 +21,7 @@ require('@dynamic-labs/utils');
|
|
|
22
21
|
require('../../../../shared/consts/index.cjs');
|
|
23
22
|
var getWalletVerifiedCredential = require('../../../../utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs');
|
|
24
23
|
|
|
25
|
-
const useNameService = ({ currentWallet,
|
|
24
|
+
const useNameService = ({ currentWallet, user }) => {
|
|
26
25
|
const [connectedNameService, setConnectedNameService, removeConnectedNameService,] = useLocalStorage.useLocalStorage(localStorage.CONNECTED_WALLET_NAME_SERVICE, null);
|
|
27
26
|
const lastFetchedNameServiceAddress = React.useRef();
|
|
28
27
|
const lastFetchedNameServiceNetwork = React.useRef();
|
|
@@ -60,16 +59,16 @@ const useNameService = ({ currentWallet, authToken }) => {
|
|
|
60
59
|
return undefined;
|
|
61
60
|
}), [setConnectedNameService]);
|
|
62
61
|
const getNameService = (address) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
-
var _a
|
|
62
|
+
var _a;
|
|
64
63
|
if (!currentWallet) {
|
|
65
64
|
return;
|
|
66
65
|
}
|
|
67
66
|
const network = yield currentWallet.connector.getNetwork();
|
|
68
|
-
const verifiedCredentials =
|
|
67
|
+
const verifiedCredentials = user === null || user === void 0 ? void 0 : user.verifiedCredentials;
|
|
69
68
|
//if there are verified credentials, check if there is a name service for the current wallet
|
|
70
69
|
if (verifiedCredentials) {
|
|
71
70
|
const verifiedCredential = getWalletVerifiedCredential.getWalletVerifiedCredential(currentWallet === null || currentWallet === void 0 ? void 0 : currentWallet.address, verifiedCredentials, currentWallet.chain);
|
|
72
|
-
if (verifiedCredential && ((
|
|
71
|
+
if (verifiedCredential && ((_a = verifiedCredential.nameService) === null || _a === void 0 ? void 0 : _a.name)) {
|
|
73
72
|
return verifiedCredential.nameService;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { NameServiceData } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
import { Wallet } from '../../../../shared';
|
|
3
|
+
import { UserProfile } from '../../../../..';
|
|
3
4
|
type Props = {
|
|
4
|
-
|
|
5
|
+
user: UserProfile | undefined;
|
|
5
6
|
currentWallet: Wallet | null;
|
|
6
7
|
};
|
|
7
|
-
export declare const useNameService: ({ currentWallet,
|
|
8
|
+
export declare const useNameService: ({ currentWallet, user }: Props) => {
|
|
8
9
|
getNameService: (address?: string) => Promise<NameServiceData | undefined>;
|
|
9
10
|
removeConnectedNameService: () => void;
|
|
10
11
|
};
|