@dynamic-labs/sdk-react-core 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +12 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +14 -14
- package/src/index.cjs +4 -1
- package/src/index.js +3 -1
- package/src/lib/Main.cjs +13 -8
- package/src/lib/Main.js +14 -9
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -1
- package/src/lib/components/Captcha/Captcha.cjs +1 -1
- package/src/lib/components/Captcha/Captcha.js +1 -1
- package/src/lib/components/Divider/Divider.cjs +2 -2
- package/src/lib/components/Divider/Divider.js +2 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +1 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +1 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +65 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.js +65 -1
- package/src/lib/components/Modal/Modal.cjs +1 -1
- package/src/lib/components/Modal/Modal.js +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -2
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +2 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -1
- package/src/lib/components/Portal/Portal.cjs +1 -1
- package/src/lib/components/Portal/Portal.js +1 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +1 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +1 -1
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.cjs +19 -19
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.js +19 -19
- package/src/lib/components/QRCode/index.d.ts +1 -0
- package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/QrCodeContainer.cjs +33 -28
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.d.ts +14 -0
- package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/QrCodeContainer.js +33 -28
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +87 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.d.ts +11 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +83 -0
- package/src/lib/components/QrCodeWrapper/index.d.ts +1 -0
- package/src/lib/components/RenderView/RenderView.cjs +2 -1
- package/src/lib/components/RenderView/RenderView.js +2 -1
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +1 -1
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +1 -1
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +1 -1
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +1 -1
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +1 -1
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.js +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -1
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs +1 -1
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js +1 -1
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +2 -2
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +2 -2
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -1
- package/src/lib/components/Toolkit/Toolkit.js +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -1
- package/src/lib/components/Tooltip/Tooltip.js +1 -1
- package/src/lib/components/TosAndPp/TosAndPp.cjs +1 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
- package/src/lib/components/UserAddress/UserAddress.js +1 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
- package/src/lib/components/UserProfile/UserProfile.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -1
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +1 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -3
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +1 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +1 -1
- package/src/lib/context/FundingContext/FundingContext.js +1 -1
- package/src/lib/context/LoadingContext/LoadingContext.cjs +1 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +1 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +1 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.js +1 -1
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +2 -9
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +2 -9
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +9 -2
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.d.ts +1 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +9 -2
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -1
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +1 -1
- package/src/lib/context/WalletContext/WalletContext.js +1 -1
- package/src/lib/data/api.cjs +23 -0
- package/src/lib/data/api.d.ts +2 -1
- package/src/lib/data/api.js +23 -1
- package/src/lib/events/dynamicEvents.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +16 -5
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +16 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +2 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +2 -2
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +2 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -2
- package/src/lib/locale/en/translation.cjs +14 -2
- package/src/lib/locale/en/translation.d.ts +13 -1
- package/src/lib/locale/en/translation.js +14 -2
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +2 -2
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +2 -2
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +1 -1
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -1
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +1 -1
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -2
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +2 -2
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +2 -2
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +6 -16
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.d.ts +1 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +6 -16
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs +19 -0
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js +15 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +4 -2
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +4 -2
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +1 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -4
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -4
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +10 -11
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +10 -11
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +4 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +4 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +1 -1
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +1 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +1 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +1 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +1 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +5 -11
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +5 -11
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +10 -14
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +10 -14
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +1 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +1 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +1 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +1 -1
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +4 -6
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +4 -6
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +1 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +1 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +1 -1
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +1 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +1 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +4 -6
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +4 -6
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +1 -1
- package/src/lib/utils/hooks/useSocialAuth/farcaster.cjs +85 -0
- package/src/lib/utils/hooks/useSocialAuth/farcaster.d.ts +31 -0
- package/src/lib/utils/hooks/useSocialAuth/farcaster.js +79 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +65 -17
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +68 -20
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +1 -1
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +1 -1
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +2 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.js +2 -2
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +1 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -2
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +2 -2
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +2 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -2
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +2 -2
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +2 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +2 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +2 -2
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +1 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +1 -1
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -2
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.js +2 -2
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -2
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -2
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +2 -2
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +2 -2
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +2 -2
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +2 -2
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +83 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.d.ts +5 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +79 -0
- package/src/lib/views/FarcasterConnectView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +2 -2
- package/src/lib/views/LoginView/LoginView.js +2 -2
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -2
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.cjs +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/usePhoneInputLogic/usePhoneInputLogic.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +1 -1
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +2 -2
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +1 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +6 -13
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +6 -13
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -2
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -2
- package/src/lib/views/NoAccess/NoAccess.js +2 -2
- package/src/lib/views/NoAccess/useNoAccessText.cjs +1 -1
- package/src/lib/views/NoAccess/useNoAccessText.js +1 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +2 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +2 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +2 -2
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +2 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +2 -2
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +1 -1
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +5 -7
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +5 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -2
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +2 -2
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +2 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +8 -15
- package/src/lib/views/QrCodeView/QrCodeView.js +9 -16
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +2 -2
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +2 -2
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +1 -1
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +1 -1
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -2
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +1 -1
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +2 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +2 -2
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +1 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +1 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +1 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.js +1 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -2
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +2 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -2
- package/src/lib/views/WalletList/WalletList.cjs +1 -1
- package/src/lib/views/WalletList/WalletList.js +1 -1
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +2 -2
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +2 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -2
- package/src/lib/views/WalletList/hooks/useTabState.cjs +1 -1
- package/src/lib/views/WalletList/hooks/useTabState.js +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -2
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +2 -2
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +2 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +8 -16
- package/src/lib/views/WalletUsedView/WalletUsedView.js +8 -16
- package/src/lib/views/index.d.ts +1 -0
- package/src/lib/views/viewToComponentMap.cjs +4 -1
- package/src/lib/views/viewToComponentMap.d.ts +1 -0
- package/src/lib/views/viewToComponentMap.js +4 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +1 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -2
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +0 -14
- /package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.d.ts +0 -0
- /package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/index.d.ts +0 -0
|
@@ -3,28 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
-
var utils = require('@dynamic-labs/utils');
|
|
7
6
|
var api = require('../../../data/api.cjs');
|
|
8
|
-
var decodeJwt = require('../../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
9
|
-
require('@dynamic-labs/iconic');
|
|
10
7
|
require('@dynamic-labs/wallet-connector-core');
|
|
8
|
+
require('@dynamic-labs/sdk-api');
|
|
9
|
+
require('../../../shared/logger.cjs');
|
|
10
|
+
require('@dynamic-labs/iconic');
|
|
11
11
|
require('react/jsx-runtime');
|
|
12
12
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
13
13
|
require('react');
|
|
14
|
-
require('../../../shared/logger.cjs');
|
|
15
14
|
require('@dynamic-labs/wallet-book');
|
|
16
15
|
require('../../constants/colors.cjs');
|
|
17
16
|
require('../../constants/values.cjs');
|
|
18
17
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
|
-
require('@dynamic-labs/
|
|
18
|
+
require('@dynamic-labs/utils');
|
|
20
19
|
require('../../../shared/consts/index.cjs');
|
|
21
|
-
var createUserProfile = require('../createUserProfile/createUserProfile.cjs');
|
|
22
20
|
require('@dynamic-labs/multi-wallet');
|
|
23
21
|
var getAuthToken = require('../getAuthToken/getAuthToken.cjs');
|
|
24
22
|
require('react-international-phone');
|
|
25
|
-
var index = require('../storeAuthToken/index.cjs');
|
|
26
23
|
require('viem');
|
|
27
24
|
require('viem/chains');
|
|
25
|
+
var updateJWTAndCreateUserProfile = require('../updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs');
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* A helper function that wraps the unlinkWallet function from the API.
|
|
@@ -37,15 +35,7 @@ const handleUnlinkHelper = ({ environmentId, primaryWalletId, walletId, }) => _t
|
|
|
37
35
|
if (!token)
|
|
38
36
|
return;
|
|
39
37
|
const jwt = yield api.unlinkWallet({ environmentId, primaryWalletId, walletId }, token);
|
|
40
|
-
|
|
41
|
-
throw new utils.DynamicError('Failed to unlink wallet, no jwt returned');
|
|
42
|
-
const decodedJwt = decodeJwt.decodeJwt(jwt);
|
|
43
|
-
if (!decodedJwt) {
|
|
44
|
-
throw new utils.DynamicError('Failed to unlink wallet, unable to decode jwt');
|
|
45
|
-
}
|
|
46
|
-
index.storeAuthToken(jwt);
|
|
47
|
-
const userProfile = createUserProfile.createUserProfile(decodedJwt);
|
|
48
|
-
return userProfile;
|
|
38
|
+
return updateJWTAndCreateUserProfile.updateJWTAndCreateUserProfile(jwt);
|
|
49
39
|
});
|
|
50
40
|
|
|
51
41
|
exports.handleUnlinkHelper = handleUnlinkHelper;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { UserProfile } from '../../../shared';
|
|
2
1
|
type HandleUnlinkHelperArgs = {
|
|
3
2
|
environmentId: string;
|
|
4
3
|
primaryWalletId: string | undefined;
|
|
@@ -10,5 +9,5 @@ type HandleUnlinkHelperArgs = {
|
|
|
10
9
|
*
|
|
11
10
|
* @throws Error if the authentication call returns no or invalid JWT
|
|
12
11
|
*/
|
|
13
|
-
export declare const handleUnlinkHelper: ({ environmentId, primaryWalletId, walletId, }: HandleUnlinkHelperArgs) => Promise<UserProfile | undefined>;
|
|
12
|
+
export declare const handleUnlinkHelper: ({ environmentId, primaryWalletId, walletId, }: HandleUnlinkHelperArgs) => Promise<import("../../../shared").UserProfile | undefined>;
|
|
14
13
|
export {};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
2
|
-
import { DynamicError } from '@dynamic-labs/utils';
|
|
3
2
|
import { unlinkWallet } from '../../../data/api.js';
|
|
4
|
-
import { decodeJwt } from '../../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
5
|
-
import '@dynamic-labs/iconic';
|
|
6
3
|
import '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import '@dynamic-labs/sdk-api';
|
|
5
|
+
import '../../../shared/logger.js';
|
|
6
|
+
import '@dynamic-labs/iconic';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import '../../../context/ViewContext/ViewContext.js';
|
|
9
9
|
import 'react';
|
|
10
|
-
import '../../../shared/logger.js';
|
|
11
10
|
import '@dynamic-labs/wallet-book';
|
|
12
11
|
import '../../constants/colors.js';
|
|
13
12
|
import '../../constants/values.js';
|
|
14
13
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
15
|
-
import '@dynamic-labs/
|
|
14
|
+
import '@dynamic-labs/utils';
|
|
16
15
|
import '../../../shared/consts/index.js';
|
|
17
|
-
import { createUserProfile } from '../createUserProfile/createUserProfile.js';
|
|
18
16
|
import '@dynamic-labs/multi-wallet';
|
|
19
17
|
import { getAuthToken } from '../getAuthToken/getAuthToken.js';
|
|
20
18
|
import 'react-international-phone';
|
|
21
|
-
import { storeAuthToken } from '../storeAuthToken/index.js';
|
|
22
19
|
import 'viem';
|
|
23
20
|
import 'viem/chains';
|
|
21
|
+
import { updateJWTAndCreateUserProfile } from '../updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js';
|
|
24
22
|
|
|
25
23
|
/**
|
|
26
24
|
* A helper function that wraps the unlinkWallet function from the API.
|
|
@@ -33,15 +31,7 @@ const handleUnlinkHelper = ({ environmentId, primaryWalletId, walletId, }) => __
|
|
|
33
31
|
if (!token)
|
|
34
32
|
return;
|
|
35
33
|
const jwt = yield unlinkWallet({ environmentId, primaryWalletId, walletId }, token);
|
|
36
|
-
|
|
37
|
-
throw new DynamicError('Failed to unlink wallet, no jwt returned');
|
|
38
|
-
const decodedJwt = decodeJwt(jwt);
|
|
39
|
-
if (!decodedJwt) {
|
|
40
|
-
throw new DynamicError('Failed to unlink wallet, unable to decode jwt');
|
|
41
|
-
}
|
|
42
|
-
storeAuthToken(jwt);
|
|
43
|
-
const userProfile = createUserProfile(decodedJwt);
|
|
44
|
-
return userProfile;
|
|
34
|
+
return updateJWTAndCreateUserProfile(jwt);
|
|
45
35
|
});
|
|
46
36
|
|
|
47
37
|
export { handleUnlinkHelper };
|
package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils = require('@dynamic-labs/utils');
|
|
6
|
+
var decodeJwt = require('../../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
7
|
+
var createUserProfile = require('../createUserProfile/createUserProfile.cjs');
|
|
8
|
+
var index = require('../storeAuthToken/index.cjs');
|
|
9
|
+
|
|
10
|
+
const updateJWTAndCreateUserProfile = (jwt) => {
|
|
11
|
+
const decodedJWT = decodeJwt.decodeJwt(jwt);
|
|
12
|
+
if (!jwt || !decodedJWT) {
|
|
13
|
+
throw new utils.DynamicError('Invalid session');
|
|
14
|
+
}
|
|
15
|
+
index.storeAuthToken(jwt);
|
|
16
|
+
return createUserProfile.createUserProfile(decodedJWT);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.updateJWTAndCreateUserProfile = updateJWTAndCreateUserProfile;
|
package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DynamicError } from '@dynamic-labs/utils';
|
|
2
|
+
import { decodeJwt } from '../../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
3
|
+
import { createUserProfile } from '../createUserProfile/createUserProfile.js';
|
|
4
|
+
import { storeAuthToken } from '../storeAuthToken/index.js';
|
|
5
|
+
|
|
6
|
+
const updateJWTAndCreateUserProfile = (jwt) => {
|
|
7
|
+
const decodedJWT = decodeJwt(jwt);
|
|
8
|
+
if (!jwt || !decodedJWT) {
|
|
9
|
+
throw new DynamicError('Invalid session');
|
|
10
|
+
}
|
|
11
|
+
storeAuthToken(jwt);
|
|
12
|
+
return createUserProfile(decodedJWT);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { updateJWTAndCreateUserProfile };
|
|
@@ -60,9 +60,9 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
60
60
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
61
61
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
62
62
|
require('react-focus-lock');
|
|
63
|
+
require('qrcode');
|
|
63
64
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
64
65
|
require('formik');
|
|
65
|
-
require('qrcode');
|
|
66
66
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
67
67
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
68
68
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -56,9 +56,9 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
56
56
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
57
57
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
58
58
|
import 'react-focus-lock';
|
|
59
|
+
import 'qrcode';
|
|
59
60
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
60
61
|
import 'formik';
|
|
61
|
-
import 'qrcode';
|
|
62
62
|
import '../../../../views/WalletList/WalletList.js';
|
|
63
63
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
64
64
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -58,9 +58,9 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
58
58
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
59
59
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
60
60
|
require('react-focus-lock');
|
|
61
|
+
require('qrcode');
|
|
61
62
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
62
63
|
require('formik');
|
|
63
|
-
require('qrcode');
|
|
64
64
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
65
65
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
66
66
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -54,9 +54,9 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
54
54
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
55
55
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
56
56
|
import 'react-focus-lock';
|
|
57
|
+
import 'qrcode';
|
|
57
58
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
58
59
|
import 'formik';
|
|
59
|
-
import 'qrcode';
|
|
60
60
|
import '../../../../views/WalletList/WalletList.js';
|
|
61
61
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
62
62
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -55,8 +55,8 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
55
55
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
56
56
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
57
57
|
require('react-focus-lock');
|
|
58
|
-
require('formik');
|
|
59
58
|
require('qrcode');
|
|
59
|
+
require('formik');
|
|
60
60
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
61
61
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
62
62
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -51,8 +51,8 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
51
51
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
52
52
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
53
53
|
import 'react-focus-lock';
|
|
54
|
-
import 'formik';
|
|
55
54
|
import 'qrcode';
|
|
55
|
+
import 'formik';
|
|
56
56
|
import '../../../../views/WalletList/WalletList.js';
|
|
57
57
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
58
58
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs
CHANGED
|
@@ -54,9 +54,9 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
54
54
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
55
55
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
56
56
|
require('react-focus-lock');
|
|
57
|
+
require('qrcode');
|
|
57
58
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
58
59
|
require('formik');
|
|
59
|
-
require('qrcode');
|
|
60
60
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
61
61
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
62
62
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js
CHANGED
|
@@ -50,9 +50,9 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
50
50
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
51
51
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
52
52
|
import 'react-focus-lock';
|
|
53
|
+
import 'qrcode';
|
|
53
54
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
54
55
|
import 'formik';
|
|
55
|
-
import 'qrcode';
|
|
56
56
|
import '../../../../views/WalletList/WalletList.js';
|
|
57
57
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
58
58
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -54,8 +54,8 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
54
54
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
55
55
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
56
56
|
require('react-focus-lock');
|
|
57
|
-
require('formik');
|
|
58
57
|
require('qrcode');
|
|
58
|
+
require('formik');
|
|
59
59
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
60
60
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
61
61
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -50,8 +50,8 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
50
50
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
51
51
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
52
52
|
import 'react-focus-lock';
|
|
53
|
-
import 'formik';
|
|
54
53
|
import 'qrcode';
|
|
54
|
+
import 'formik';
|
|
55
55
|
import '../../../../views/WalletList/WalletList.js';
|
|
56
56
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
57
57
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -56,8 +56,8 @@ require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSucces
|
|
|
56
56
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
57
57
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
58
58
|
require('react-focus-lock');
|
|
59
|
-
require('formik');
|
|
60
59
|
require('qrcode');
|
|
60
|
+
require('formik');
|
|
61
61
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
62
62
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
63
63
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js
CHANGED
|
@@ -52,8 +52,8 @@ import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccess
|
|
|
52
52
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
53
53
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
54
54
|
import 'react-focus-lock';
|
|
55
|
-
import 'formik';
|
|
56
55
|
import 'qrcode';
|
|
56
|
+
import 'formik';
|
|
57
57
|
import '../../../../views/WalletList/WalletList.js';
|
|
58
58
|
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
59
59
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -54,8 +54,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
54
54
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
55
55
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
56
56
|
require('react-focus-lock');
|
|
57
|
-
require('formik');
|
|
58
57
|
require('qrcode');
|
|
58
|
+
require('formik');
|
|
59
59
|
require('../../../views/WalletList/WalletList.cjs');
|
|
60
60
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
61
61
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -156,7 +156,8 @@ const useAuthLayoutChecks = () => {
|
|
|
156
156
|
view.type === 'pending-signature' ||
|
|
157
157
|
view.type === 'qr-code' ||
|
|
158
158
|
view.type === 'wallet-used' ||
|
|
159
|
-
view.type === 'email-wallet-otp-verification-view'
|
|
159
|
+
view.type === 'email-wallet-otp-verification-view' ||
|
|
160
|
+
view.type === 'farcaster-connect-view';
|
|
160
161
|
const showCloseButton = view.type !== 'login-with-email-or-wallet-full-wallet-list' &&
|
|
161
162
|
view.type !== 'login-with-email-verification' &&
|
|
162
163
|
view.type !== 'login-with-sms-verification' &&
|
|
@@ -179,6 +180,7 @@ const useAuthLayoutChecks = () => {
|
|
|
179
180
|
view.type === 'account-exists' ||
|
|
180
181
|
view.type === 'passkey-intro' ||
|
|
181
182
|
view.type === 'qr-code' ||
|
|
183
|
+
view.type === 'farcaster-connect-view' ||
|
|
182
184
|
(view.type === 'merge-user-accounts' && !user);
|
|
183
185
|
const showDefaultFooter = !showConnectedWalletProgress && !showDynamicFooter && !showToSFooter;
|
|
184
186
|
return {
|
|
@@ -50,8 +50,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
50
50
|
import '../../../components/Popper/Popper/Popper.js';
|
|
51
51
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
52
52
|
import 'react-focus-lock';
|
|
53
|
-
import 'formik';
|
|
54
53
|
import 'qrcode';
|
|
54
|
+
import 'formik';
|
|
55
55
|
import '../../../views/WalletList/WalletList.js';
|
|
56
56
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
57
57
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -152,7 +152,8 @@ const useAuthLayoutChecks = () => {
|
|
|
152
152
|
view.type === 'pending-signature' ||
|
|
153
153
|
view.type === 'qr-code' ||
|
|
154
154
|
view.type === 'wallet-used' ||
|
|
155
|
-
view.type === 'email-wallet-otp-verification-view'
|
|
155
|
+
view.type === 'email-wallet-otp-verification-view' ||
|
|
156
|
+
view.type === 'farcaster-connect-view';
|
|
156
157
|
const showCloseButton = view.type !== 'login-with-email-or-wallet-full-wallet-list' &&
|
|
157
158
|
view.type !== 'login-with-email-verification' &&
|
|
158
159
|
view.type !== 'login-with-sms-verification' &&
|
|
@@ -175,6 +176,7 @@ const useAuthLayoutChecks = () => {
|
|
|
175
176
|
view.type === 'account-exists' ||
|
|
176
177
|
view.type === 'passkey-intro' ||
|
|
177
178
|
view.type === 'qr-code' ||
|
|
179
|
+
view.type === 'farcaster-connect-view' ||
|
|
178
180
|
(view.type === 'merge-user-accounts' && !user);
|
|
179
181
|
const showDefaultFooter = !showConnectedWalletProgress && !showDynamicFooter && !showToSFooter;
|
|
180
182
|
return {
|
|
@@ -55,8 +55,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
55
55
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
56
56
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
57
57
|
require('react-focus-lock');
|
|
58
|
-
require('formik');
|
|
59
58
|
require('qrcode');
|
|
59
|
+
require('formik');
|
|
60
60
|
require('../../../views/WalletList/WalletList.cjs');
|
|
61
61
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
62
62
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -51,8 +51,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
51
51
|
import '../../../components/Popper/Popper/Popper.js';
|
|
52
52
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
53
53
|
import 'react-focus-lock';
|
|
54
|
-
import 'formik';
|
|
55
54
|
import 'qrcode';
|
|
55
|
+
import 'formik';
|
|
56
56
|
import '../../../views/WalletList/WalletList.js';
|
|
57
57
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
58
58
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -54,8 +54,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
54
54
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
55
55
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
56
56
|
require('react-focus-lock');
|
|
57
|
-
require('formik');
|
|
58
57
|
require('qrcode');
|
|
58
|
+
require('formik');
|
|
59
59
|
require('../../../views/WalletList/WalletList.cjs');
|
|
60
60
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
61
61
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -50,8 +50,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
50
50
|
import '../../../components/Popper/Popper/Popper.js';
|
|
51
51
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
52
52
|
import 'react-focus-lock';
|
|
53
|
-
import 'formik';
|
|
54
53
|
import 'qrcode';
|
|
54
|
+
import 'formik';
|
|
55
55
|
import '../../../views/WalletList/WalletList.js';
|
|
56
56
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
57
57
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -57,8 +57,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
57
57
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
58
58
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
59
59
|
require('react-focus-lock');
|
|
60
|
-
require('formik');
|
|
61
60
|
require('qrcode');
|
|
61
|
+
require('formik');
|
|
62
62
|
require('../../../views/WalletList/WalletList.cjs');
|
|
63
63
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
64
64
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -53,8 +53,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
53
53
|
import '../../../components/Popper/Popper/Popper.js';
|
|
54
54
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
55
55
|
import 'react-focus-lock';
|
|
56
|
-
import 'formik';
|
|
57
56
|
import 'qrcode';
|
|
57
|
+
import 'formik';
|
|
58
58
|
import '../../../views/WalletList/WalletList.js';
|
|
59
59
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
60
60
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -23,10 +23,10 @@ require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
23
23
|
var createUserProfile = require('../../functions/createUserProfile/createUserProfile.cjs');
|
|
24
24
|
require('@dynamic-labs/multi-wallet');
|
|
25
25
|
require('react-international-phone');
|
|
26
|
-
var index = require('../../functions/storeAuthToken/index.cjs');
|
|
27
26
|
require('viem');
|
|
28
27
|
require('viem/chains');
|
|
29
28
|
require('../../../config/ApiEndpoint.cjs');
|
|
29
|
+
var updateJWTAndCreateUserProfile = require('../../functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs');
|
|
30
30
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
31
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
32
32
|
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -60,8 +60,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
60
60
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
61
61
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
62
62
|
require('react-focus-lock');
|
|
63
|
-
require('formik');
|
|
64
63
|
require('qrcode');
|
|
64
|
+
require('formik');
|
|
65
65
|
require('../../../views/WalletList/WalletList.cjs');
|
|
66
66
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
67
67
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -129,8 +129,7 @@ const useCreateDynamicEmbeddedWalletMutation = () => {
|
|
|
129
129
|
else {
|
|
130
130
|
setPrimaryWalletId(embeddedWalletVerifiedCredential.id);
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
setUser(createUserProfile.createUserProfile(updatedDecodedJwt));
|
|
132
|
+
setUser(updateJWTAndCreateUserProfile.updateJWTAndCreateUserProfile(jwt));
|
|
134
133
|
setShowAuthFlow(false, { performMultiWalletChecks: false });
|
|
135
134
|
dynamicEvents.dynamicEvents.emit('embeddedWalletCreated', passkeyWallet, turnkeyVerifiedCredentials);
|
|
136
135
|
}
|
|
@@ -19,10 +19,10 @@ import '../../../context/ErrorContext/ErrorContext.js';
|
|
|
19
19
|
import { createUserProfile } from '../../functions/createUserProfile/createUserProfile.js';
|
|
20
20
|
import '@dynamic-labs/multi-wallet';
|
|
21
21
|
import 'react-international-phone';
|
|
22
|
-
import { storeAuthToken } from '../../functions/storeAuthToken/index.js';
|
|
23
22
|
import 'viem';
|
|
24
23
|
import 'viem/chains';
|
|
25
24
|
import '../../../config/ApiEndpoint.js';
|
|
25
|
+
import { updateJWTAndCreateUserProfile } from '../../functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js';
|
|
26
26
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
27
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
28
|
import '../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -56,8 +56,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
56
56
|
import '../../../components/Popper/Popper/Popper.js';
|
|
57
57
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
58
58
|
import 'react-focus-lock';
|
|
59
|
-
import 'formik';
|
|
60
59
|
import 'qrcode';
|
|
60
|
+
import 'formik';
|
|
61
61
|
import '../../../views/WalletList/WalletList.js';
|
|
62
62
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
63
63
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -125,8 +125,7 @@ const useCreateDynamicEmbeddedWalletMutation = () => {
|
|
|
125
125
|
else {
|
|
126
126
|
setPrimaryWalletId(embeddedWalletVerifiedCredential.id);
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
setUser(createUserProfile(updatedDecodedJwt));
|
|
128
|
+
setUser(updateJWTAndCreateUserProfile(jwt));
|
|
130
129
|
setShowAuthFlow(false, { performMultiWalletChecks: false });
|
|
131
130
|
dynamicEvents.emit('embeddedWalletCreated', passkeyWallet, turnkeyVerifiedCredentials);
|
|
132
131
|
}
|
package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs
CHANGED
|
@@ -5,29 +5,27 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
8
|
-
|
|
8
|
+
require('@dynamic-labs/sdk-api');
|
|
9
|
+
var logger = require('../../../shared/logger.cjs');
|
|
9
10
|
require('@dynamic-labs/iconic');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
11
12
|
require('react/jsx-runtime');
|
|
12
13
|
var ViewContext = require('../../../context/ViewContext/ViewContext.cjs');
|
|
13
|
-
require('../../../shared/logger.cjs');
|
|
14
14
|
require('@dynamic-labs/wallet-book');
|
|
15
15
|
require('../../constants/colors.cjs');
|
|
16
16
|
require('../../constants/values.cjs');
|
|
17
17
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
18
|
-
require('@dynamic-labs/sdk-api');
|
|
19
18
|
require('@dynamic-labs/utils');
|
|
20
19
|
require('../../../shared/consts/index.cjs');
|
|
21
20
|
require('../../../events/dynamicEvents.cjs');
|
|
22
21
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
23
22
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
24
|
-
var createUserProfile = require('../../functions/createUserProfile/createUserProfile.cjs');
|
|
25
23
|
require('@dynamic-labs/multi-wallet');
|
|
26
24
|
require('react-international-phone');
|
|
27
|
-
var index = require('../../functions/storeAuthToken/index.cjs');
|
|
28
25
|
require('viem');
|
|
29
26
|
require('viem/chains');
|
|
30
27
|
require('../../../config/ApiEndpoint.cjs');
|
|
28
|
+
var updateJWTAndCreateUserProfile = require('../../functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs');
|
|
31
29
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
30
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
31
|
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
@@ -57,8 +55,8 @@ require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBa
|
|
|
57
55
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
58
56
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
59
57
|
require('react-focus-lock');
|
|
60
|
-
require('formik');
|
|
61
58
|
require('qrcode');
|
|
59
|
+
require('formik');
|
|
62
60
|
require('../../../views/WalletList/WalletList.cjs');
|
|
63
61
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
64
62
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
@@ -80,15 +78,16 @@ const useCreateUserProfileByJWTCallback = () => {
|
|
|
80
78
|
const { setUser, handleLogOut } = useInternalDynamicContext.useInternalDynamicContext();
|
|
81
79
|
const { goToInitialView } = ViewContext.useViewContext();
|
|
82
80
|
const createUserProfileByJWT = React.useCallback((jwt) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
try {
|
|
82
|
+
const userProfile = updateJWTAndCreateUserProfile.updateJWTAndCreateUserProfile(jwt);
|
|
83
|
+
setUser(userProfile);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
logger.logger.error('Failed to create user', error);
|
|
85
87
|
yield handleLogOut();
|
|
86
88
|
goToInitialView();
|
|
87
89
|
return;
|
|
88
90
|
}
|
|
89
|
-
index.storeAuthToken(jwt);
|
|
90
|
-
const userProfile = createUserProfile.createUserProfile(decodedJWT);
|
|
91
|
-
setUser(userProfile);
|
|
92
91
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
93
92
|
}), []);
|
|
94
93
|
return { createUserProfileByJWT };
|
package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
4
|
-
import
|
|
4
|
+
import '@dynamic-labs/sdk-api';
|
|
5
|
+
import { logger } from '../../../shared/logger.js';
|
|
5
6
|
import '@dynamic-labs/iconic';
|
|
6
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
8
9
|
import { useViewContext } from '../../../context/ViewContext/ViewContext.js';
|
|
9
|
-
import '../../../shared/logger.js';
|
|
10
10
|
import '@dynamic-labs/wallet-book';
|
|
11
11
|
import '../../constants/colors.js';
|
|
12
12
|
import '../../constants/values.js';
|
|
13
13
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
14
|
-
import '@dynamic-labs/sdk-api';
|
|
15
14
|
import '@dynamic-labs/utils';
|
|
16
15
|
import '../../../shared/consts/index.js';
|
|
17
16
|
import '../../../events/dynamicEvents.js';
|
|
18
17
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
19
18
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
20
|
-
import { createUserProfile } from '../../functions/createUserProfile/createUserProfile.js';
|
|
21
19
|
import '@dynamic-labs/multi-wallet';
|
|
22
20
|
import 'react-international-phone';
|
|
23
|
-
import { storeAuthToken } from '../../functions/storeAuthToken/index.js';
|
|
24
21
|
import 'viem';
|
|
25
22
|
import 'viem/chains';
|
|
26
23
|
import '../../../config/ApiEndpoint.js';
|
|
24
|
+
import { updateJWTAndCreateUserProfile } from '../../functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js';
|
|
27
25
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
26
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
27
|
import '../../../context/VerificationContext/VerificationContext.js';
|
|
@@ -53,8 +51,8 @@ import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBan
|
|
|
53
51
|
import '../../../components/Popper/Popper/Popper.js';
|
|
54
52
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
55
53
|
import 'react-focus-lock';
|
|
56
|
-
import 'formik';
|
|
57
54
|
import 'qrcode';
|
|
55
|
+
import 'formik';
|
|
58
56
|
import '../../../views/WalletList/WalletList.js';
|
|
59
57
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
60
58
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
@@ -76,15 +74,16 @@ const useCreateUserProfileByJWTCallback = () => {
|
|
|
76
74
|
const { setUser, handleLogOut } = useInternalDynamicContext();
|
|
77
75
|
const { goToInitialView } = useViewContext();
|
|
78
76
|
const createUserProfileByJWT = useCallback((jwt) => __awaiter(void 0, void 0, void 0, function* () {
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
try {
|
|
78
|
+
const userProfile = updateJWTAndCreateUserProfile(jwt);
|
|
79
|
+
setUser(userProfile);
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
logger.error('Failed to create user', error);
|
|
81
83
|
yield handleLogOut();
|
|
82
84
|
goToInitialView();
|
|
83
85
|
return;
|
|
84
86
|
}
|
|
85
|
-
storeAuthToken(jwt);
|
|
86
|
-
const userProfile = createUserProfile(decodedJWT);
|
|
87
|
-
setUser(userProfile);
|
|
88
87
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
89
88
|
}), []);
|
|
90
89
|
return { createUserProfileByJWT };
|