@dynamic-labs/sdk-react-core 2.1.0-alpha.21 → 2.1.0-alpha.23
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 +17 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/index.d.ts +5 -1
- package/src/lib/Main.cjs +1 -0
- package/src/lib/Main.js +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -6
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -6
- package/src/lib/components/Captcha/Captcha.cjs +1 -0
- package/src/lib/components/Captcha/Captcha.js +1 -0
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +1 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +1 -0
- package/src/lib/components/EmailForm/EmailForm.cjs +1 -0
- package/src/lib/components/EmailForm/EmailForm.js +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +1 -0
- package/src/lib/components/Modal/Modal.js +1 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +1 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +1 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +1 -0
- package/src/lib/components/Portal/Portal.cjs +1 -0
- package/src/lib/components/Portal/Portal.js +1 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +1 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +1 -0
- package/src/lib/components/QRCode/QRCode.cjs +1 -0
- package/src/lib/components/QRCode/QRCode.js +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +1 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +1 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +1 -0
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +1 -0
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.js +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -0
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +12 -5
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +12 -5
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +1 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -0
- package/src/lib/components/Toolkit/Toolkit.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/src/lib/components/Tooltip/Tooltip.js +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.js +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +1 -0
- package/src/lib/components/UserProfile/UserProfile.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.cjs +1 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.js +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +10 -18
- package/src/lib/context/DynamicContext/DynamicContext.js +10 -18
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +1 -2
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +2 -3
- package/src/lib/context/DynamicContext/hooks/useIsAuthenticated/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useIsAuthenticated/useIsAuthenticated.cjs +37 -0
- package/src/lib/context/DynamicContext/hooks/useIsAuthenticated/useIsAuthenticated.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useIsAuthenticated/useIsAuthenticated.js +33 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +10 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +10 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +1 -4
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +1 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +1 -0
- package/src/lib/context/FundingContext/FundingContext.js +1 -0
- package/src/lib/context/IpConfigurationContext/IpConfigurationContext.cjs +56 -0
- package/src/lib/context/IpConfigurationContext/IpConfigurationContext.d.ts +15 -0
- package/src/lib/context/IpConfigurationContext/IpConfigurationContext.js +50 -0
- package/src/lib/context/IpConfigurationContext/index.d.ts +1 -0
- package/src/lib/context/LoadingContext/LoadingContext.cjs +2 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +2 -1
- package/src/lib/context/MockContext/MockContext.cjs +1 -0
- package/src/lib/context/MockContext/MockContext.js +1 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +1 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +2 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +1 -0
- package/src/lib/context/WalletContext/WalletContext.js +1 -0
- package/src/lib/data/api/api.cjs +1 -3
- package/src/lib/data/api/api.js +1 -3
- package/src/lib/data/api/user/user.cjs +9 -6
- package/src/lib/data/api/user/user.d.ts +5 -5
- package/src/lib/data/api/user/user.js +9 -6
- package/src/lib/data/api/wallets/wallets.cjs +6 -3
- package/src/lib/data/api/wallets/wallets.d.ts +3 -2
- package/src/lib/data/api/wallets/wallets.js +7 -4
- package/src/lib/events/auth.d.ts +38 -0
- package/src/lib/events/dynamicEvents.d.ts +8 -32
- package/src/lib/events/embeddedWallet.d.ts +14 -0
- package/src/lib/events/otp.d.ts +5 -0
- package/src/lib/events/passkey.d.ts +5 -0
- package/src/lib/events/social.d.ts +3 -0
- package/src/lib/events/ui.d.ts +10 -0
- package/src/lib/events/wallets.d.ts +7 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +7 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +7 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -0
- package/src/lib/locale/en/translation.cjs +12 -0
- package/src/lib/locale/en/translation.d.ts +12 -0
- package/src/lib/locale/en/translation.js +12 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +1 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +1 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +1 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +1 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +20 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +21 -3
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.cjs +9 -0
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.js +9 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -0
- package/src/lib/shared/assets/access-blocked.cjs +102 -0
- package/src/lib/shared/assets/access-blocked.js +78 -0
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +11 -0
- package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -2
- package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.d.ts +6 -2
- package/src/lib/store/utils/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -2
- 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 +2 -0
- package/src/lib/utils/constants/errors.d.ts +1 -0
- package/src/lib/utils/constants/errors.js +2 -1
- package/src/lib/utils/constants/index.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.cjs +0 -2
- package/src/lib/utils/constants/localStorage.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.js +1 -2
- package/src/lib/utils/functions/index.d.ts +0 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +3 -0
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +3 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +13 -7
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +14 -8
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +2 -1
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +2 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +1 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +1 -0
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +2 -2
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.d.ts +1 -2
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +2 -2
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +1 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +7 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +7 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +1 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +30 -14
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +30 -14
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +5 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +5 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +3 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +5 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +6 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +3 -2
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +3 -2
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +1 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +8 -6
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +8 -6
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +4 -4
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.d.ts +4 -3
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +4 -4
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.cjs +2 -16
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.d.ts +1 -4
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.js +2 -16
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +1 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +1 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +1 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +1 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +2 -1
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +2 -1
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +38 -20
- package/src/lib/utils/hooks/useMfa/useMfa.js +38 -20
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +1 -0
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +1 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +2 -1
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +2 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +1 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +1 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +14 -12
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +14 -12
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +6 -11
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.d.ts +3 -2
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +6 -11
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.cjs +3 -22
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.d.ts +2 -1
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js +3 -22
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +9 -8
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +9 -8
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +40 -27
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +5 -3
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +40 -27
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +6 -2
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +6 -2
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +1 -0
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +1 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +1 -0
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +1 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +1 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +1 -0
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +40 -33
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.d.ts +2 -2
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +40 -33
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.types.d.ts +7 -24
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +10 -16
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +11 -17
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -1
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +22 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +22 -3
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +1 -0
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +10 -26
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +1 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -26
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -0
- package/src/lib/views/AccessBlockedView/AccessBlockedView.cjs +94 -0
- package/src/lib/views/AccessBlockedView/AccessBlockedView.d.ts +2 -0
- package/src/lib/views/AccessBlockedView/AccessBlockedView.js +90 -0
- package/src/lib/views/AccessBlockedView/index.d.ts +1 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +1 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +1 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +1 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +5 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +5 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +4 -5
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +4 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +1 -0
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +4 -5
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +4 -5
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +1 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +1 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +9 -5
- package/src/lib/views/EmailVerification/EmailVerification.js +9 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +6 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +6 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +16 -9
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +17 -10
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +7 -13
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +3 -3
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +8 -14
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +1 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +3 -21
- package/src/lib/views/LoginView/LoginView.js +4 -22
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +1 -0
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +12 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +12 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +1 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +1 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +1 -0
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +4 -3
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +4 -3
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +1 -0
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +1 -0
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -0
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -0
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -0
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +1 -0
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +1 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +1 -0
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -0
- package/src/lib/views/NoAccess/NoAccess.cjs +3 -2
- package/src/lib/views/NoAccess/NoAccess.js +3 -2
- package/src/lib/views/NoAccess/useNoAccessText.cjs +1 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +1 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +3 -8
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +3 -8
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +1 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +1 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +1 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.cjs +1 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.d.ts +1 -2
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.js +1 -4
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +15 -20
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +8 -13
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +15 -20
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -0
- package/src/lib/views/SmsVerification/SmsVerification.cjs +1 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +12 -8
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +12 -8
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +1 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +1 -0
- package/src/lib/views/WalletList/WalletList.js +1 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +1 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -0
- package/src/lib/views/WalletList/hooks/useTabState.cjs +1 -0
- package/src/lib/views/WalletList/hooks/useTabState.js +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +1 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -0
- package/src/lib/views/viewToComponentMap.cjs +3 -1
- package/src/lib/views/viewToComponentMap.d.ts +2 -1
- package/src/lib/views/viewToComponentMap.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +1 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -0
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.cjs +0 -31
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.d.ts +0 -1
- package/src/lib/utils/functions/getOnboardingAuthToken/getOnboardingAuthToken.js +0 -27
- package/src/lib/utils/functions/getOnboardingAuthToken/index.d.ts +0 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +0 -49
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.d.ts +0 -13
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +0 -45
- package/src/lib/utils/functions/handleUnlinkHelper/index.d.ts +0 -1
|
@@ -19,7 +19,7 @@ require('../../constants/colors.cjs');
|
|
|
19
19
|
require('../../constants/values.cjs');
|
|
20
20
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
21
|
require('../../../shared/consts/index.cjs');
|
|
22
|
-
require('../../../events/dynamicEvents.cjs');
|
|
22
|
+
var dynamicEvents = require('../../../events/dynamicEvents.cjs');
|
|
23
23
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
24
24
|
var ErrorContext = require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
25
25
|
var digestSHA256 = require('../../functions/digestSHA256/digestSHA256.cjs');
|
|
@@ -79,6 +79,7 @@ require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
|
79
79
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
80
80
|
require('../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
81
81
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
82
|
+
require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
82
83
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
83
84
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
84
85
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
@@ -119,13 +120,23 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
119
120
|
setError(undefined);
|
|
120
121
|
setContextError(undefined);
|
|
121
122
|
};
|
|
122
|
-
const
|
|
123
|
+
const onFailed = (provider, reason, options) => {
|
|
124
|
+
onError === null || onError === void 0 ? void 0 : onError();
|
|
125
|
+
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
126
|
+
if (provider && (options === null || options === void 0 ? void 0 : options.raiseAuthFailure))
|
|
127
|
+
dynamicEvents.dynamicEvents.emit('authFailure', {
|
|
128
|
+
option: provider,
|
|
129
|
+
provider,
|
|
130
|
+
type: 'social',
|
|
131
|
+
}, reason);
|
|
132
|
+
};
|
|
133
|
+
const handleError = (provider, code, message, options) => {
|
|
134
|
+
const error = { code, message };
|
|
123
135
|
logger.logger.error(message);
|
|
124
136
|
setIsProcessing(false);
|
|
125
|
-
setError(
|
|
137
|
+
setError(error);
|
|
126
138
|
setErrorMessage(code);
|
|
127
|
-
|
|
128
|
-
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
139
|
+
onFailed(provider, { error }, options);
|
|
129
140
|
};
|
|
130
141
|
const poolOauthResult = (provider, state) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
131
142
|
if (!shouldPool.current) {
|
|
@@ -147,13 +158,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
147
158
|
};
|
|
148
159
|
window.postMessage(authMessage, '*');
|
|
149
160
|
});
|
|
150
|
-
const checkValidProvider = (provider) => {
|
|
161
|
+
const checkValidProvider = (provider, authMode) => {
|
|
151
162
|
if (!provider) {
|
|
152
|
-
handleError(types.SocialOAuthErrorCode.NO_PROVIDER, 'Provider is required');
|
|
163
|
+
handleError(provider, types.SocialOAuthErrorCode.NO_PROVIDER, 'Provider is required', { raiseAuthFailure: authMode === 'signin' });
|
|
153
164
|
return false;
|
|
154
165
|
}
|
|
155
166
|
if (!socialProviders.includes(provider)) {
|
|
156
|
-
handleError(types.SocialOAuthErrorCode.INVALID_PROVIDER, `Invalid social provider. Valid providers are: ${socialProviders.join(', ')}
|
|
167
|
+
handleError(provider, types.SocialOAuthErrorCode.INVALID_PROVIDER, `Invalid social provider. Valid providers are: ${socialProviders.join(', ')}`, { raiseAuthFailure: authMode === 'signin' });
|
|
157
168
|
return false;
|
|
158
169
|
}
|
|
159
170
|
return true;
|
|
@@ -162,7 +173,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
162
173
|
try {
|
|
163
174
|
const response = yield apiCall();
|
|
164
175
|
if (!response) {
|
|
165
|
-
handleError(types.SocialOAuthErrorCode.VERIFICATION_ERROR, `Failed to link social account: ${provider}
|
|
176
|
+
handleError(provider, types.SocialOAuthErrorCode.VERIFICATION_ERROR, `Failed to link social account: ${provider}`, { raiseAuthFailure: false });
|
|
166
177
|
return;
|
|
167
178
|
}
|
|
168
179
|
yield updateUserProfileByJWT(response.jwt, response.minifiedJwt);
|
|
@@ -170,13 +181,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
170
181
|
}
|
|
171
182
|
catch (error) {
|
|
172
183
|
if (error instanceof utils.SocialAccountAlreadyExistsError) {
|
|
173
|
-
handleError(types.SocialOAuthErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE, `Social account already linked to a different profile: ${provider}
|
|
184
|
+
handleError(provider, types.SocialOAuthErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE, `Social account already linked to a different profile: ${provider}`, { raiseAuthFailure: false });
|
|
174
185
|
}
|
|
175
186
|
}
|
|
176
187
|
});
|
|
177
188
|
const signInAccount = (provider, apiCall) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
178
189
|
yield initAuth({
|
|
179
|
-
onError: () => handleError(types.SocialOAuthErrorCode.SIGNIN_ERROR, `Failed to sign-in with social account: ${provider}
|
|
190
|
+
onError: () => handleError(provider, types.SocialOAuthErrorCode.SIGNIN_ERROR, `Failed to sign-in with social account: ${provider}`, { raiseAuthFailure: true }),
|
|
180
191
|
onSettled,
|
|
181
192
|
options: { provider },
|
|
182
193
|
verifyFunction: () => apiCall(),
|
|
@@ -191,17 +202,20 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
191
202
|
logger.logger.error('Auth mode is required. Please use either "link" or "signin"');
|
|
192
203
|
return;
|
|
193
204
|
}
|
|
194
|
-
if (!checkValidProvider(provider)) {
|
|
205
|
+
if (!checkValidProvider(provider, authMode)) {
|
|
195
206
|
return;
|
|
196
207
|
}
|
|
197
208
|
// invalid connect request
|
|
198
209
|
if (validator && !validator(provider)) {
|
|
199
210
|
return;
|
|
200
211
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
212
|
+
dynamicEvents.dynamicEvents.emit('authInit', {
|
|
213
|
+
option: provider,
|
|
214
|
+
provider,
|
|
215
|
+
type: 'social',
|
|
216
|
+
});
|
|
217
|
+
if (provider === sdkApiCore.ProviderEnum.Farcaster)
|
|
218
|
+
return connectWithFarcaster(authMode);
|
|
205
219
|
const authWindow = window.open('', '_blank', 'width=500,height=600');
|
|
206
220
|
const state = randomString.randomString(8);
|
|
207
221
|
const verifier = randomString.randomString(43);
|
|
@@ -251,13 +265,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
251
265
|
}
|
|
252
266
|
setIsProcessing(true);
|
|
253
267
|
if (!((_e = providersWaitingOauthMessage.current) === null || _e === void 0 ? void 0 : _e[provider])) {
|
|
254
|
-
handleError(types.SocialOAuthErrorCode.SESSION_TIMEOUT, `Connecting ${provider} account session timeout
|
|
268
|
+
handleError(provider, types.SocialOAuthErrorCode.SESSION_TIMEOUT, `Connecting ${provider} account session timeout.`, { raiseAuthFailure: authMode === 'signin' });
|
|
255
269
|
return;
|
|
256
270
|
}
|
|
257
271
|
clearListeners();
|
|
258
272
|
const { code, error, state: authState } = message;
|
|
259
273
|
if (error && error !== 'undefined') {
|
|
260
|
-
handleError(types.SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: ${error}
|
|
274
|
+
handleError(provider, types.SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: ${error}`, { raiseAuthFailure: authMode === 'signin' });
|
|
261
275
|
return;
|
|
262
276
|
}
|
|
263
277
|
// check that the state we receive from message is the same state we calculated earlier
|
|
@@ -265,11 +279,11 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
265
279
|
// this state check is used only by providers with an open window opener reference (eg, not twitter)
|
|
266
280
|
if (!providersWithoutWindowOpenerRefence.includes(provider) &&
|
|
267
281
|
state !== authState) {
|
|
268
|
-
handleError(types.SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: Invalid random state
|
|
282
|
+
handleError(provider, types.SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: Invalid random state`, { raiseAuthFailure: authMode === 'signin' });
|
|
269
283
|
return;
|
|
270
284
|
}
|
|
271
285
|
if (!code) {
|
|
272
|
-
handleError(types.SocialOAuthErrorCode.NO_AUTH_CODE, `Failed to connect ${provider} social account: no authorization code
|
|
286
|
+
handleError(provider, types.SocialOAuthErrorCode.NO_AUTH_CODE, `Failed to connect ${provider} social account: no authorization code`, { raiseAuthFailure: authMode === 'signin' });
|
|
273
287
|
return;
|
|
274
288
|
}
|
|
275
289
|
if (authMode === 'signin') {
|
|
@@ -293,7 +307,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
293
307
|
});
|
|
294
308
|
const loginUrl = getOauthLoginUrl.getOauthLoginUrl((_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _b !== void 0 ? _b : [], provider);
|
|
295
309
|
if (!loginUrl) {
|
|
296
|
-
handleError(types.SocialOAuthErrorCode.NO_OAUTH_URL, `Failed to get login url to connect social account: ${provider}
|
|
310
|
+
handleError(provider, types.SocialOAuthErrorCode.NO_OAUTH_URL, `Failed to get login url to connect social account: ${provider}`, { raiseAuthFailure: authMode === 'signin' });
|
|
297
311
|
return;
|
|
298
312
|
}
|
|
299
313
|
if (!((_c = providersWaitingOauthMessage.current) === null || _c === void 0 ? void 0 : _c[provider])) {
|
|
@@ -326,8 +340,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
326
340
|
setIsProcessing(false);
|
|
327
341
|
// user didn't complete oauth
|
|
328
342
|
if ((_a = providersWaitingOauthMessage.current) === null || _a === void 0 ? void 0 : _a[provider]) {
|
|
329
|
-
|
|
330
|
-
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
343
|
+
onFailed(provider, 'user-cancelled');
|
|
331
344
|
}
|
|
332
345
|
}, 2000);
|
|
333
346
|
}
|
|
@@ -349,7 +362,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
349
362
|
// clear all states/listeners, assuming user closed the window before completing oauth
|
|
350
363
|
if ((_f = providersWaitingOauthMessage.current) === null || _f === void 0 ? void 0 : _f[provider]) {
|
|
351
364
|
clearListeners();
|
|
352
|
-
handleError(types.SocialOAuthErrorCode.OAUTH_WINDOW_TIMEOUT, `Connecting ${provider} account window timeout
|
|
365
|
+
handleError(provider, types.SocialOAuthErrorCode.OAUTH_WINDOW_TIMEOUT, `Connecting ${provider} account window timeout.`, { raiseAuthFailure: authMode === 'signin' });
|
|
353
366
|
}
|
|
354
367
|
clearInterval(authWindowInterval.current);
|
|
355
368
|
setIsProcessing(false);
|
|
@@ -367,7 +380,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
367
380
|
siweUri: window.location.origin,
|
|
368
381
|
});
|
|
369
382
|
if (!(data === null || data === void 0 ? void 0 : data.url) || !(data === null || data === void 0 ? void 0 : data.channelToken)) {
|
|
370
|
-
handleError(types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
383
|
+
handleError(sdkApiCore.ProviderEnum.Farcaster, types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.", { raiseAuthFailure: authMode === 'signin' });
|
|
371
384
|
return;
|
|
372
385
|
}
|
|
373
386
|
// If on mobile, we want to redirect to the Warpcast app.
|
|
@@ -392,7 +405,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
392
405
|
!(status === null || status === void 0 ? void 0 : status.custody) ||
|
|
393
406
|
!(status === null || status === void 0 ? void 0 : status.signature) ||
|
|
394
407
|
!(status === null || status === void 0 ? void 0 : status.nonce)) {
|
|
395
|
-
handleError(types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return valid data.");
|
|
408
|
+
handleError(sdkApiCore.ProviderEnum.Farcaster, types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return valid data.", { raiseAuthFailure: authMode === 'signin' });
|
|
396
409
|
return;
|
|
397
410
|
}
|
|
398
411
|
const { custody: address, message, signature, nonce } = status;
|
|
@@ -407,7 +420,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
407
420
|
yield signInAccount(sdkApiCore.ProviderEnum.Farcaster, apiCall);
|
|
408
421
|
}
|
|
409
422
|
else {
|
|
410
|
-
handleError(types.SocialOAuthErrorCode.GENERAL_ERROR, 'Linking with Farcaster is not supported at the moment.');
|
|
423
|
+
handleError(sdkApiCore.ProviderEnum.Farcaster, types.SocialOAuthErrorCode.GENERAL_ERROR, 'Linking with Farcaster is not supported at the moment.', { raiseAuthFailure: true });
|
|
411
424
|
}
|
|
412
425
|
setIsProcessing(false);
|
|
413
426
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
3
3
|
import { SocialOAuthError, SocialOAuthErrorCode } from '@dynamic-labs/types';
|
|
4
|
-
type SocialAuthMode = 'link' | 'signin';
|
|
4
|
+
type SocialAuthMode = 'link' | 'signin' | 'unlink';
|
|
5
5
|
type UseSocialAuthProps = {
|
|
6
6
|
sessionTimeout: number;
|
|
7
7
|
onSettled?: () => void;
|
|
@@ -9,7 +9,7 @@ type UseSocialAuthProps = {
|
|
|
9
9
|
onFarcasterUrl?: (url: string) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const useSocialAuth: ({ sessionTimeout, onSettled, onError, onFarcasterUrl, }: UseSocialAuthProps) => {
|
|
12
|
-
readonly checkValidProvider: (provider: ProviderEnum) => boolean;
|
|
12
|
+
readonly checkValidProvider: (provider: ProviderEnum, authMode: SocialAuthMode) => boolean;
|
|
13
13
|
readonly connectSocialAccount: ({ authMode, provider, validator, captchaToken, }: {
|
|
14
14
|
authMode: SocialAuthMode;
|
|
15
15
|
provider: ProviderEnum;
|
|
@@ -17,7 +17,9 @@ export declare const useSocialAuth: ({ sessionTimeout, onSettled, onError, onFar
|
|
|
17
17
|
captchaToken?: string;
|
|
18
18
|
}) => Promise<void>;
|
|
19
19
|
readonly error: SocialOAuthError | undefined;
|
|
20
|
-
readonly handleError: (code: SocialOAuthErrorCode, message: string
|
|
20
|
+
readonly handleError: (provider: ProviderEnum | undefined, code: SocialOAuthErrorCode, message: string, options?: {
|
|
21
|
+
raiseAuthFailure?: boolean | undefined;
|
|
22
|
+
} | undefined) => void;
|
|
21
23
|
readonly isProcessing: boolean;
|
|
22
24
|
readonly setError: import("react").Dispatch<import("react").SetStateAction<SocialOAuthError | undefined>>;
|
|
23
25
|
readonly setIsProcessing: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -15,7 +15,7 @@ import '../../constants/colors.js';
|
|
|
15
15
|
import '../../constants/values.js';
|
|
16
16
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
17
17
|
import '../../../shared/consts/index.js';
|
|
18
|
-
import '../../../events/dynamicEvents.js';
|
|
18
|
+
import { dynamicEvents } from '../../../events/dynamicEvents.js';
|
|
19
19
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
20
20
|
import { useErrorContext } from '../../../context/ErrorContext/ErrorContext.js';
|
|
21
21
|
import { digestSHA256 } from '../../functions/digestSHA256/digestSHA256.js';
|
|
@@ -75,6 +75,7 @@ import '../../../context/LoadingContext/LoadingContext.js';
|
|
|
75
75
|
import '../../../context/FooterAnimationContext/index.js';
|
|
76
76
|
import '../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
77
77
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
78
|
+
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
78
79
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
79
80
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
80
81
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
@@ -115,13 +116,23 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
115
116
|
setError(undefined);
|
|
116
117
|
setContextError(undefined);
|
|
117
118
|
};
|
|
118
|
-
const
|
|
119
|
+
const onFailed = (provider, reason, options) => {
|
|
120
|
+
onError === null || onError === void 0 ? void 0 : onError();
|
|
121
|
+
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
122
|
+
if (provider && (options === null || options === void 0 ? void 0 : options.raiseAuthFailure))
|
|
123
|
+
dynamicEvents.emit('authFailure', {
|
|
124
|
+
option: provider,
|
|
125
|
+
provider,
|
|
126
|
+
type: 'social',
|
|
127
|
+
}, reason);
|
|
128
|
+
};
|
|
129
|
+
const handleError = (provider, code, message, options) => {
|
|
130
|
+
const error = { code, message };
|
|
119
131
|
logger.error(message);
|
|
120
132
|
setIsProcessing(false);
|
|
121
|
-
setError(
|
|
133
|
+
setError(error);
|
|
122
134
|
setErrorMessage(code);
|
|
123
|
-
|
|
124
|
-
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
135
|
+
onFailed(provider, { error }, options);
|
|
125
136
|
};
|
|
126
137
|
const poolOauthResult = (provider, state) => __awaiter(void 0, void 0, void 0, function* () {
|
|
127
138
|
if (!shouldPool.current) {
|
|
@@ -143,13 +154,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
143
154
|
};
|
|
144
155
|
window.postMessage(authMessage, '*');
|
|
145
156
|
});
|
|
146
|
-
const checkValidProvider = (provider) => {
|
|
157
|
+
const checkValidProvider = (provider, authMode) => {
|
|
147
158
|
if (!provider) {
|
|
148
|
-
handleError(SocialOAuthErrorCode.NO_PROVIDER, 'Provider is required');
|
|
159
|
+
handleError(provider, SocialOAuthErrorCode.NO_PROVIDER, 'Provider is required', { raiseAuthFailure: authMode === 'signin' });
|
|
149
160
|
return false;
|
|
150
161
|
}
|
|
151
162
|
if (!socialProviders.includes(provider)) {
|
|
152
|
-
handleError(SocialOAuthErrorCode.INVALID_PROVIDER, `Invalid social provider. Valid providers are: ${socialProviders.join(', ')}
|
|
163
|
+
handleError(provider, SocialOAuthErrorCode.INVALID_PROVIDER, `Invalid social provider. Valid providers are: ${socialProviders.join(', ')}`, { raiseAuthFailure: authMode === 'signin' });
|
|
153
164
|
return false;
|
|
154
165
|
}
|
|
155
166
|
return true;
|
|
@@ -158,7 +169,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
158
169
|
try {
|
|
159
170
|
const response = yield apiCall();
|
|
160
171
|
if (!response) {
|
|
161
|
-
handleError(SocialOAuthErrorCode.VERIFICATION_ERROR, `Failed to link social account: ${provider}
|
|
172
|
+
handleError(provider, SocialOAuthErrorCode.VERIFICATION_ERROR, `Failed to link social account: ${provider}`, { raiseAuthFailure: false });
|
|
162
173
|
return;
|
|
163
174
|
}
|
|
164
175
|
yield updateUserProfileByJWT(response.jwt, response.minifiedJwt);
|
|
@@ -166,13 +177,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
166
177
|
}
|
|
167
178
|
catch (error) {
|
|
168
179
|
if (error instanceof SocialAccountAlreadyExistsError) {
|
|
169
|
-
handleError(SocialOAuthErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE, `Social account already linked to a different profile: ${provider}
|
|
180
|
+
handleError(provider, SocialOAuthErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE, `Social account already linked to a different profile: ${provider}`, { raiseAuthFailure: false });
|
|
170
181
|
}
|
|
171
182
|
}
|
|
172
183
|
});
|
|
173
184
|
const signInAccount = (provider, apiCall) => __awaiter(void 0, void 0, void 0, function* () {
|
|
174
185
|
yield initAuth({
|
|
175
|
-
onError: () => handleError(SocialOAuthErrorCode.SIGNIN_ERROR, `Failed to sign-in with social account: ${provider}
|
|
186
|
+
onError: () => handleError(provider, SocialOAuthErrorCode.SIGNIN_ERROR, `Failed to sign-in with social account: ${provider}`, { raiseAuthFailure: true }),
|
|
176
187
|
onSettled,
|
|
177
188
|
options: { provider },
|
|
178
189
|
verifyFunction: () => apiCall(),
|
|
@@ -187,17 +198,20 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
187
198
|
logger.error('Auth mode is required. Please use either "link" or "signin"');
|
|
188
199
|
return;
|
|
189
200
|
}
|
|
190
|
-
if (!checkValidProvider(provider)) {
|
|
201
|
+
if (!checkValidProvider(provider, authMode)) {
|
|
191
202
|
return;
|
|
192
203
|
}
|
|
193
204
|
// invalid connect request
|
|
194
205
|
if (validator && !validator(provider)) {
|
|
195
206
|
return;
|
|
196
207
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
208
|
+
dynamicEvents.emit('authInit', {
|
|
209
|
+
option: provider,
|
|
210
|
+
provider,
|
|
211
|
+
type: 'social',
|
|
212
|
+
});
|
|
213
|
+
if (provider === ProviderEnum.Farcaster)
|
|
214
|
+
return connectWithFarcaster(authMode);
|
|
201
215
|
const authWindow = window.open('', '_blank', 'width=500,height=600');
|
|
202
216
|
const state = randomString(8);
|
|
203
217
|
const verifier = randomString(43);
|
|
@@ -247,13 +261,13 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
247
261
|
}
|
|
248
262
|
setIsProcessing(true);
|
|
249
263
|
if (!((_e = providersWaitingOauthMessage.current) === null || _e === void 0 ? void 0 : _e[provider])) {
|
|
250
|
-
handleError(SocialOAuthErrorCode.SESSION_TIMEOUT, `Connecting ${provider} account session timeout
|
|
264
|
+
handleError(provider, SocialOAuthErrorCode.SESSION_TIMEOUT, `Connecting ${provider} account session timeout.`, { raiseAuthFailure: authMode === 'signin' });
|
|
251
265
|
return;
|
|
252
266
|
}
|
|
253
267
|
clearListeners();
|
|
254
268
|
const { code, error, state: authState } = message;
|
|
255
269
|
if (error && error !== 'undefined') {
|
|
256
|
-
handleError(SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: ${error}
|
|
270
|
+
handleError(provider, SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: ${error}`, { raiseAuthFailure: authMode === 'signin' });
|
|
257
271
|
return;
|
|
258
272
|
}
|
|
259
273
|
// check that the state we receive from message is the same state we calculated earlier
|
|
@@ -261,11 +275,11 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
261
275
|
// this state check is used only by providers with an open window opener reference (eg, not twitter)
|
|
262
276
|
if (!providersWithoutWindowOpenerRefence.includes(provider) &&
|
|
263
277
|
state !== authState) {
|
|
264
|
-
handleError(SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: Invalid random state
|
|
278
|
+
handleError(provider, SocialOAuthErrorCode.OAUTH_ERROR, `Failed to connect ${provider} social account: Invalid random state`, { raiseAuthFailure: authMode === 'signin' });
|
|
265
279
|
return;
|
|
266
280
|
}
|
|
267
281
|
if (!code) {
|
|
268
|
-
handleError(SocialOAuthErrorCode.NO_AUTH_CODE, `Failed to connect ${provider} social account: no authorization code
|
|
282
|
+
handleError(provider, SocialOAuthErrorCode.NO_AUTH_CODE, `Failed to connect ${provider} social account: no authorization code`, { raiseAuthFailure: authMode === 'signin' });
|
|
269
283
|
return;
|
|
270
284
|
}
|
|
271
285
|
if (authMode === 'signin') {
|
|
@@ -289,7 +303,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
289
303
|
});
|
|
290
304
|
const loginUrl = getOauthLoginUrl((_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _b !== void 0 ? _b : [], provider);
|
|
291
305
|
if (!loginUrl) {
|
|
292
|
-
handleError(SocialOAuthErrorCode.NO_OAUTH_URL, `Failed to get login url to connect social account: ${provider}
|
|
306
|
+
handleError(provider, SocialOAuthErrorCode.NO_OAUTH_URL, `Failed to get login url to connect social account: ${provider}`, { raiseAuthFailure: authMode === 'signin' });
|
|
293
307
|
return;
|
|
294
308
|
}
|
|
295
309
|
if (!((_c = providersWaitingOauthMessage.current) === null || _c === void 0 ? void 0 : _c[provider])) {
|
|
@@ -322,8 +336,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
322
336
|
setIsProcessing(false);
|
|
323
337
|
// user didn't complete oauth
|
|
324
338
|
if ((_a = providersWaitingOauthMessage.current) === null || _a === void 0 ? void 0 : _a[provider]) {
|
|
325
|
-
|
|
326
|
-
onSettled === null || onSettled === void 0 ? void 0 : onSettled();
|
|
339
|
+
onFailed(provider, 'user-cancelled');
|
|
327
340
|
}
|
|
328
341
|
}, 2000);
|
|
329
342
|
}
|
|
@@ -345,7 +358,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
345
358
|
// clear all states/listeners, assuming user closed the window before completing oauth
|
|
346
359
|
if ((_f = providersWaitingOauthMessage.current) === null || _f === void 0 ? void 0 : _f[provider]) {
|
|
347
360
|
clearListeners();
|
|
348
|
-
handleError(SocialOAuthErrorCode.OAUTH_WINDOW_TIMEOUT, `Connecting ${provider} account window timeout
|
|
361
|
+
handleError(provider, SocialOAuthErrorCode.OAUTH_WINDOW_TIMEOUT, `Connecting ${provider} account window timeout.`, { raiseAuthFailure: authMode === 'signin' });
|
|
349
362
|
}
|
|
350
363
|
clearInterval(authWindowInterval.current);
|
|
351
364
|
setIsProcessing(false);
|
|
@@ -363,7 +376,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
363
376
|
siweUri: window.location.origin,
|
|
364
377
|
});
|
|
365
378
|
if (!(data === null || data === void 0 ? void 0 : data.url) || !(data === null || data === void 0 ? void 0 : data.channelToken)) {
|
|
366
|
-
handleError(SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
379
|
+
handleError(ProviderEnum.Farcaster, SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.", { raiseAuthFailure: authMode === 'signin' });
|
|
367
380
|
return;
|
|
368
381
|
}
|
|
369
382
|
// If on mobile, we want to redirect to the Warpcast app.
|
|
@@ -388,7 +401,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
388
401
|
!(status === null || status === void 0 ? void 0 : status.custody) ||
|
|
389
402
|
!(status === null || status === void 0 ? void 0 : status.signature) ||
|
|
390
403
|
!(status === null || status === void 0 ? void 0 : status.nonce)) {
|
|
391
|
-
handleError(SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return valid data.");
|
|
404
|
+
handleError(ProviderEnum.Farcaster, SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return valid data.", { raiseAuthFailure: authMode === 'signin' });
|
|
392
405
|
return;
|
|
393
406
|
}
|
|
394
407
|
const { custody: address, message, signature, nonce } = status;
|
|
@@ -403,7 +416,7 @@ const useSocialAuth = ({ sessionTimeout, onSettled, onError, onFarcasterUrl, })
|
|
|
403
416
|
yield signInAccount(ProviderEnum.Farcaster, apiCall);
|
|
404
417
|
}
|
|
405
418
|
else {
|
|
406
|
-
handleError(SocialOAuthErrorCode.GENERAL_ERROR, 'Linking with Farcaster is not supported at the moment.');
|
|
419
|
+
handleError(ProviderEnum.Farcaster, SocialOAuthErrorCode.GENERAL_ERROR, 'Linking with Farcaster is not supported at the moment.', { raiseAuthFailure: true });
|
|
407
420
|
}
|
|
408
421
|
setIsProcessing(false);
|
|
409
422
|
});
|
|
@@ -69,6 +69,7 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
69
69
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
70
70
|
require('../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
71
71
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
72
|
+
require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
72
73
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
73
74
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
74
75
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
@@ -105,13 +106,16 @@ const useSwitchWallet = () => {
|
|
|
105
106
|
const { setShowWidgetStatePopup, setSelectedWalletWithAction, setPrimaryWallet, setSelectedWalletConnectorKey, user, primaryWallet, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
106
107
|
const userWallets = UserWalletsContext.useUserWallets();
|
|
107
108
|
return (walletId) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
108
|
-
var _a;
|
|
109
|
+
var _a, _b;
|
|
109
110
|
const wallet = userWallets.find((wallet) => wallet.id === walletId);
|
|
110
111
|
if (!wallet) {
|
|
111
112
|
throw new Error(`Wallet with id ${walletId} not found`);
|
|
112
113
|
}
|
|
114
|
+
if (((_a = wallet.connector) === null || _a === void 0 ? void 0 : _a.key) === 'unknown') {
|
|
115
|
+
throw new Error('Cannot switch to wallet with unknown connector');
|
|
116
|
+
}
|
|
113
117
|
const { connector } = wallet;
|
|
114
|
-
const email = (
|
|
118
|
+
const email = (_b = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((verifiedCredential) => verifiedCredential.format === 'email')) === null || _b === void 0 ? void 0 : _b.email;
|
|
115
119
|
if (walletConnectorCore.isEmailWalletConnector(connector) && email) {
|
|
116
120
|
connector.setEmail(email);
|
|
117
121
|
}
|
|
@@ -65,6 +65,7 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
65
65
|
import '../../../context/FooterAnimationContext/index.js';
|
|
66
66
|
import '../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
67
67
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
68
|
+
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
68
69
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
69
70
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
70
71
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
@@ -101,13 +102,16 @@ const useSwitchWallet = () => {
|
|
|
101
102
|
const { setShowWidgetStatePopup, setSelectedWalletWithAction, setPrimaryWallet, setSelectedWalletConnectorKey, user, primaryWallet, } = useInternalDynamicContext();
|
|
102
103
|
const userWallets = useUserWallets();
|
|
103
104
|
return (walletId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
104
|
-
var _a;
|
|
105
|
+
var _a, _b;
|
|
105
106
|
const wallet = userWallets.find((wallet) => wallet.id === walletId);
|
|
106
107
|
if (!wallet) {
|
|
107
108
|
throw new Error(`Wallet with id ${walletId} not found`);
|
|
108
109
|
}
|
|
110
|
+
if (((_a = wallet.connector) === null || _a === void 0 ? void 0 : _a.key) === 'unknown') {
|
|
111
|
+
throw new Error('Cannot switch to wallet with unknown connector');
|
|
112
|
+
}
|
|
109
113
|
const { connector } = wallet;
|
|
110
|
-
const email = (
|
|
114
|
+
const email = (_b = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((verifiedCredential) => verifiedCredential.format === 'email')) === null || _b === void 0 ? void 0 : _b.email;
|
|
111
115
|
if (isEmailWalletConnector(connector) && email) {
|
|
112
116
|
connector.setEmail(email);
|
|
113
117
|
}
|
|
@@ -71,6 +71,7 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
71
71
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
72
72
|
require('../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
73
73
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
74
|
+
require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
74
75
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
75
76
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
76
77
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
@@ -67,6 +67,7 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
67
67
|
import '../../../context/FooterAnimationContext/index.js';
|
|
68
68
|
import '../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
69
69
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
70
|
+
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
70
71
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
71
72
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
72
73
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
@@ -73,6 +73,7 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
73
73
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
74
74
|
require('../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
75
75
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
76
|
+
require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
76
77
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
77
78
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
78
79
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
@@ -69,6 +69,7 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
69
69
|
import '../../../context/FooterAnimationContext/index.js';
|
|
70
70
|
import '../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
71
71
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
72
|
+
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
72
73
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
73
74
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
74
75
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs
CHANGED
|
@@ -70,6 +70,7 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
70
70
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
71
71
|
require('../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
72
72
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
73
|
+
require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
73
74
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
74
75
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
75
76
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js
CHANGED
|
@@ -66,6 +66,7 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
66
66
|
import '../../../context/FooterAnimationContext/index.js';
|
|
67
67
|
import '../../../views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
68
68
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
69
|
+
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
69
70
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
70
71
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
71
72
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|