@dynamic-labs/sdk-react-core 1.1.0-alpha.21 → 1.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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/index.cjs +9 -3
- package/src/index.js +5 -2
- package/src/lib/Main.cjs +1 -1
- package/src/lib/Main.js +1 -1
- 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/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.d.ts +2 -1
- package/src/lib/components/Badge/Badge.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 +1 -1
- package/src/lib/components/Divider/Divider.js +1 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +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/Modal/Modal.cjs +1 -1
- package/src/lib/components/Modal/Modal.js +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +8 -11
- package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +5 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +8 -11
- 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 +1 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -1
- 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/components/RenderView/RenderView.cjs +1 -1
- package/src/lib/components/RenderView/RenderView.js +1 -1
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +66 -7
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +66 -7
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -4
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -4
- 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/StatusDot/StatusDot.d.ts +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +8 -6
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +8 -6
- 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/Tooltip/index.d.ts +1 -0
- 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 +69 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +69 -6
- 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 +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
- 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 +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
- 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 +1 -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 -2
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -2
- 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/useShowAuthFlow/useShowAuthFlow.cjs +2 -53
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +2 -53
- 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/MockContext/MockContext.cjs +1 -1
- package/src/lib/context/MockContext/MockContext.js +1 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +158 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +7 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +159 -7
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +1 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -2
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -2
- 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 +14 -5
- package/src/lib/data/api.d.ts +3 -1
- package/src/lib/data/api.js +15 -6
- 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 +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -1
- 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 +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -1
- 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 +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -1
- 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 +1 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
- package/src/lib/locale/en/translation.cjs +145 -31
- package/src/lib/locale/en/translation.d.ts +138 -24
- package/src/lib/locale/en/translation.js +145 -31
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +29 -7
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +29 -7
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -1
- package/src/lib/shared/assets/domain.cjs +53 -0
- package/src/lib/shared/assets/domain.js +29 -0
- package/src/lib/shared/assets/gear.cjs +53 -0
- package/src/lib/shared/assets/gear.js +29 -0
- package/src/lib/shared/assets/index.d.ts +4 -1
- package/src/lib/shared/assets/multiple-account-security.cjs +106 -0
- package/src/lib/shared/assets/multiple-account-security.js +82 -0
- package/src/lib/shared/assets/passkey-account-security.cjs +92 -0
- package/src/lib/shared/assets/passkey-account-security.js +68 -0
- package/src/lib/shared/types/index.d.ts +6 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +4 -0
- package/src/lib/utils/constants/localStorage.d.ts +2 -0
- package/src/lib/utils/constants/localStorage.js +3 -1
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.cjs +18 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.js +14 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/removeElementById/removeElementById.cjs +5 -4
- package/src/lib/utils/functions/removeElementById/removeElementById.js +5 -4
- 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/index.d.ts +1 -0
- 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 +8 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +8 -3
- 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/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +11 -0
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +11 -0
- 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 +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -1
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +0 -8
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +0 -8
- 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/useEmbeddedWallet.cjs +13 -121
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +13 -121
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +194 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.d.ts +5 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +190 -0
- 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/index.d.ts +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +143 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.d.ts +13 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +139 -0
- 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 +10 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +10 -5
- 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/useOnlyConnectedMode/useOnlyConnectedMode.cjs +1 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +120 -21
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +4 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +121 -22
- 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/useSocialAuth.cjs +1 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +1 -1
- 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/useWalletConnectorOptions/useWalletConnectorOptions.cjs +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +2 -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 +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -1
- 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 +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +3 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +3 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +1 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +1 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +1 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.js +1 -1
- package/src/lib/views/EmailVerification/EmailVerification.cjs +12 -8
- package/src/lib/views/EmailVerification/EmailVerification.js +12 -8
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -1
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +13 -5
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +13 -5
- package/src/lib/views/LoginView/LoginView.cjs +1 -1
- package/src/lib/views/LoginView/LoginView.js +1 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -1
- 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/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -1
- 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.cjs +1 -1
- package/src/lib/views/LoginView/useLoginView.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +1 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
- package/src/lib/views/NoAccess/NoAccess.js +1 -1
- 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 +1 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +90 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.d.ts +6 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +86 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +120 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +7 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +116 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/index.d.ts +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +85 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.d.ts +14 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +81 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +121 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.d.ts +9 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +117 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +6 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +6 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +10 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +11 -7
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +88 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.d.ts +2 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +84 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +22 -9
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +23 -10
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +14 -32
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +6 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +15 -33
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +1 -1
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +1 -1
- package/src/lib/views/Passkey/index.d.ts +2 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +119 -14
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +31 -6
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +119 -16
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
- package/src/lib/views/QrCodeView/QRCode.cjs +1 -1
- package/src/lib/views/QrCodeView/QRCode.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -1
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -1
- 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 +1 -1
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
- 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 +1 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
- 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 +1 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
- package/src/lib/views/WalletList/WalletList.cjs +1 -1
- package/src/lib/views/WalletList/WalletList.js +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
- 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 +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
- package/src/lib/views/viewToComponentMap.cjs +64 -0
- package/src/lib/views/viewToComponentMap.js +64 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
- 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/DynamicWidget/DynamicWidget.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +3 -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 +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +3 -5
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -1
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +8 -23
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +8 -23
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +34 -8
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +34 -8
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
- package/src/lib/shared/assets/turnkey.cjs +0 -79
- package/src/lib/shared/assets/turnkey.js +0 -55
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import '../../../events/dynamicEvents.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../../context/DynamicContext/DynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/sdk-api';
|
|
9
|
+
import '../../../shared/logger.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import { ReactComponent as SvgAndroidTouchId } from '../../../shared/assets/android-touch-id.js';
|
|
14
|
+
import { ReactComponent as SvgMail } from '../../../shared/assets/mail.js';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../utils/constants/values.js';
|
|
18
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import 'viem';
|
|
20
|
+
import '../../../shared/consts/index.js';
|
|
21
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
22
|
+
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
23
|
+
import '../../../context/ErrorContext/ErrorContext.js';
|
|
24
|
+
import '@dynamic-labs/multi-wallet';
|
|
25
|
+
import 'viem/chains';
|
|
26
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
|
+
import '../../../config/ApiEndpoint.js';
|
|
29
|
+
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
30
|
+
import 'react-dom';
|
|
31
|
+
import { useElementById } from '../../../utils/hooks/useElementById/useElementById.js';
|
|
32
|
+
import '../../../context/ThemeContext/ThemeContext.js';
|
|
33
|
+
import { iframeContainerId } from '../PasskeyRecovery/constants.js';
|
|
34
|
+
import { useInitEmbeddedWalletAuthMethod } from '../../../utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js';
|
|
35
|
+
import '@dynamic-labs/types';
|
|
36
|
+
import 'yup';
|
|
37
|
+
import '../../../context/MockContext/MockContext.js';
|
|
38
|
+
import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
39
|
+
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
40
|
+
import '@dynamic-labs/rpc-providers';
|
|
41
|
+
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
|
+
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
44
|
+
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
45
|
+
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
46
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
47
|
+
import '../../../context/FooterAnimationContext/index.js';
|
|
48
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
|
+
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
|
+
import 'react-focus-lock';
|
|
51
|
+
import '../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import { Icon } from '../../../components/Icon/Icon.js';
|
|
53
|
+
import 'i18next';
|
|
54
|
+
import 'qrcode';
|
|
55
|
+
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
|
+
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
|
+
import 'formik';
|
|
58
|
+
import '../../../components/IconButton/IconButton.js';
|
|
59
|
+
import '../../../components/Alert/Alert.js';
|
|
60
|
+
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
61
|
+
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
62
|
+
import '@dynamic-labs/viem-utils';
|
|
63
|
+
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
64
|
+
import { PasskeyDeviceIcon } from '../PasskeyDeviceIcon/PasskeyDeviceIcon.js';
|
|
65
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
66
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
67
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
68
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
69
|
+
import '../../WalletList/WalletList.js';
|
|
70
|
+
import '@hcaptcha/react-hcaptcha';
|
|
71
|
+
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
72
|
+
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
73
|
+
import { ActionCard } from './ActionCard/ActionCard.js';
|
|
74
|
+
|
|
75
|
+
const EmbeddedAuthChoiceCards = ({ currentAction, supportedAuthenticators, }) => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const [selectedAuthType, setSelectedAuthType] = useState();
|
|
78
|
+
const { projectSettings } = useInternalDynamicContext();
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const { initAuthMethod, isLoading } = useInitEmbeddedWalletAuthMethod();
|
|
81
|
+
const iframeContainerRef = useElementById(iframeContainerId);
|
|
82
|
+
const supportedAuthenticatorsMap = {
|
|
83
|
+
email: {
|
|
84
|
+
badgeKey: 'dyn_embedded_authenticator.email.badge',
|
|
85
|
+
description: t('dyn_embedded_authenticator.email.description', {
|
|
86
|
+
expiration: (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.sessionKeyDuration) === null || _b === void 0 ? void 0 : _b.amount,
|
|
87
|
+
}),
|
|
88
|
+
descriptionKey: 'dyn_embedded_authenticator.email.description',
|
|
89
|
+
icon: (jsx(Icon, { color: 'text-tertiary', size: 'small', children: jsx(SvgMail, {}) }, 'one-time-code-icon')),
|
|
90
|
+
titleKey: 'dyn_embedded_authenticator.email.title',
|
|
91
|
+
},
|
|
92
|
+
passkey: {
|
|
93
|
+
badgeKey: 'dyn_embedded_authenticator.passkey.badge',
|
|
94
|
+
description: t('dyn_embedded_authenticator.passkey.description'),
|
|
95
|
+
descriptionKey: 'dyn_embedded_authenticator.passkey.description',
|
|
96
|
+
icon: (jsx(PasskeyDeviceIcon, { defaultIcon: jsx(SvgAndroidTouchId, { "data-testid": 'default-icon' }) })),
|
|
97
|
+
titleKey: 'dyn_embedded_authenticator.passkey.title',
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
const handleSelection = (authenticatorType) => () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
setSelectedAuthType(authenticatorType);
|
|
102
|
+
yield initAuthMethod({
|
|
103
|
+
authenticatorType: authenticatorType,
|
|
104
|
+
currentAction,
|
|
105
|
+
iframeContainer: iframeContainerRef.current,
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
return (jsx("div", { className: 'embedded-auth-choice-cards', children: supportedAuthenticators &&
|
|
109
|
+
supportedAuthenticators.map((authenticatorType) => (jsx(ActionCard, { LeadingIcon: supportedAuthenticatorsMap[authenticatorType]
|
|
110
|
+
.icon, action: handleSelection(authenticatorType), badgeKey: supportedAuthenticatorsMap[authenticatorType]
|
|
111
|
+
.badgeKey, badgeVariant: authenticatorType === 'passkey' ? 'primary' : 'secondary', descriptionKey: supportedAuthenticatorsMap[authenticatorType]
|
|
112
|
+
.descriptionKey, description: supportedAuthenticatorsMap[authenticatorType]
|
|
113
|
+
.description, titleKey: supportedAuthenticatorsMap[authenticatorType]
|
|
114
|
+
.titleKey, isLoading: isLoading && authenticatorType === selectedAuthType, dataTestId: `embedded-auth-choice__item-${authenticatorType}` }, authenticatorType))) }));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { EmbeddedAuthChoiceCards };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmbeddedAuthChoiceCards } from './EmbeddedAuthChoiceCards';
|
|
@@ -15,8 +15,8 @@ require('@dynamic-labs/wallet-connector-core');
|
|
|
15
15
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
16
16
|
var androidFaceId = require('../../../shared/assets/android-face-id.cjs');
|
|
17
17
|
var androidTouchId = require('../../../shared/assets/android-touch-id.cjs');
|
|
18
|
-
var iphoneFaceId = require('../../../shared/assets/iphone-face-id.cjs');
|
|
19
18
|
var iphoneTouchId = require('../../../shared/assets/iphone-touch-id.cjs');
|
|
19
|
+
var faceId = require('../../../shared/assets/face-id.cjs');
|
|
20
20
|
require('@dynamic-labs/wallet-book');
|
|
21
21
|
require('../../../utils/constants/colors.cjs');
|
|
22
22
|
require('../../../utils/constants/values.cjs');
|
|
@@ -60,8 +60,8 @@ require('formik');
|
|
|
60
60
|
require('../../../components/IconButton/IconButton.cjs');
|
|
61
61
|
require('../../../components/Alert/Alert.cjs');
|
|
62
62
|
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
|
-
require('@dynamic-labs/viem-utils');
|
|
64
63
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
|
+
require('@dynamic-labs/viem-utils');
|
|
65
65
|
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
66
|
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
67
67
|
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
@@ -72,14 +72,14 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
72
72
|
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
73
73
|
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
74
74
|
|
|
75
|
-
const PasskeyDeviceIcon = () => {
|
|
76
|
-
let IdIcon;
|
|
75
|
+
const PasskeyDeviceIcon = ({ defaultIcon, className, size = 'small', }) => {
|
|
76
|
+
let IdIcon = defaultIcon ? defaultIcon : null;
|
|
77
77
|
if (utils.isIPhone()) {
|
|
78
78
|
if (utils.isIPhone8OrEarlier()) {
|
|
79
79
|
IdIcon = jsxRuntime.jsx(iphoneTouchId.ReactComponent, { "data-testid": 'iphone-8-icon' });
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
|
-
IdIcon = jsxRuntime.jsx(
|
|
82
|
+
IdIcon = jsxRuntime.jsx(faceId.ReactComponent, { "data-testid": 'iphone-icon' });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
if (utils.isAndroid()) {
|
|
@@ -94,7 +94,7 @@ const PasskeyDeviceIcon = () => {
|
|
|
94
94
|
if (!IdIcon) {
|
|
95
95
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
96
96
|
}
|
|
97
|
-
return jsxRuntime.jsx(Icon.Icon, { size:
|
|
97
|
+
return (jsxRuntime.jsx(Icon.Icon, { className: className, size: size, children: IdIcon }));
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
exports.PasskeyDeviceIcon = PasskeyDeviceIcon;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
import { IconSize } from '../../../components/Icon/Icon.types';
|
|
3
|
+
interface PasskeyDeviceIconProps {
|
|
4
|
+
defaultIcon?: JSX.Element;
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: IconSize;
|
|
7
|
+
}
|
|
8
|
+
export declare const PasskeyDeviceIcon: FC<PasskeyDeviceIconProps>;
|
|
9
|
+
export {};
|
|
@@ -11,8 +11,8 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
11
11
|
import '../../../context/ViewContext/ViewContext.js';
|
|
12
12
|
import { ReactComponent as SvgAndroidFaceId } from '../../../shared/assets/android-face-id.js';
|
|
13
13
|
import { ReactComponent as SvgAndroidTouchId } from '../../../shared/assets/android-touch-id.js';
|
|
14
|
-
import { ReactComponent as SvgIphoneFaceId } from '../../../shared/assets/iphone-face-id.js';
|
|
15
14
|
import { ReactComponent as SvgIphoneTouchId } from '../../../shared/assets/iphone-touch-id.js';
|
|
15
|
+
import { ReactComponent as SvgFaceId } from '../../../shared/assets/face-id.js';
|
|
16
16
|
import '@dynamic-labs/wallet-book';
|
|
17
17
|
import '../../../utils/constants/colors.js';
|
|
18
18
|
import '../../../utils/constants/values.js';
|
|
@@ -56,8 +56,8 @@ import 'formik';
|
|
|
56
56
|
import '../../../components/IconButton/IconButton.js';
|
|
57
57
|
import '../../../components/Alert/Alert.js';
|
|
58
58
|
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
|
-
import '@dynamic-labs/viem-utils';
|
|
60
59
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
+
import '@dynamic-labs/viem-utils';
|
|
61
61
|
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
62
62
|
import '../../../components/InlineWidget/InlineWidget.js';
|
|
63
63
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
@@ -68,14 +68,14 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
68
68
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
69
69
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
70
70
|
|
|
71
|
-
const PasskeyDeviceIcon = () => {
|
|
72
|
-
let IdIcon;
|
|
71
|
+
const PasskeyDeviceIcon = ({ defaultIcon, className, size = 'small', }) => {
|
|
72
|
+
let IdIcon = defaultIcon ? defaultIcon : null;
|
|
73
73
|
if (isIPhone()) {
|
|
74
74
|
if (isIPhone8OrEarlier()) {
|
|
75
75
|
IdIcon = jsx(SvgIphoneTouchId, { "data-testid": 'iphone-8-icon' });
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
|
-
IdIcon = jsx(
|
|
78
|
+
IdIcon = jsx(SvgFaceId, { "data-testid": 'iphone-icon' });
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
if (isAndroid()) {
|
|
@@ -90,7 +90,7 @@ const PasskeyDeviceIcon = () => {
|
|
|
90
90
|
if (!IdIcon) {
|
|
91
91
|
return jsx(Fragment, {});
|
|
92
92
|
}
|
|
93
|
-
return jsx(Icon, { size:
|
|
93
|
+
return (jsx(Icon, { className: className, size: size, children: IdIcon }));
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
export { PasskeyDeviceIcon };
|
|
@@ -64,6 +64,7 @@ require('formik');
|
|
|
64
64
|
require('i18next');
|
|
65
65
|
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
66
66
|
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
67
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
68
|
require('../../WalletList/WalletList.cjs');
|
|
68
69
|
require('qrcode');
|
|
69
70
|
require('@hcaptcha/react-hcaptcha');
|
|
@@ -74,7 +75,6 @@ require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/Secon
|
|
|
74
75
|
var index = require('../../../context/FooterAnimationContext/index.cjs');
|
|
75
76
|
var getProperErrorMessage = require('../../../modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
|
|
76
77
|
var PasskeyDeviceIcon = require('../PasskeyDeviceIcon/PasskeyDeviceIcon.cjs');
|
|
77
|
-
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
78
78
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
79
79
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
80
80
|
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -83,29 +83,33 @@ require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCa
|
|
|
83
83
|
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
84
84
|
|
|
85
85
|
const PasskeyIntroView = () => {
|
|
86
|
-
|
|
86
|
+
var _a, _b;
|
|
87
|
+
const { walletConnectorOptions, environmentId, handleLogOut, onboardingOnlyJwt, projectSettings, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
88
|
+
const allowSkippingAuthenticatorAtSignup = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.embeddedWallets) === null || _b === void 0 ? void 0 : _b.allowSkippingAuthenticatorAtSignup;
|
|
87
89
|
const { setIsFooterExpanded } = index.useFooterAnimationContext();
|
|
88
90
|
const { t } = reactI18next.useTranslation();
|
|
89
91
|
// TODO(GVTY-1137): send a metric when we detect passkeys are not enabled by the browser/device
|
|
90
92
|
// we removed enforcing this check since we were getting false negatives
|
|
91
93
|
// const { data: passkeyEnabled } = usePromise(isPasskeyEnabled);
|
|
94
|
+
const [createWalletWithAuthenticator, setCreateWalletWithAuthenticator] = React.useState(false);
|
|
92
95
|
// if passkey is not yet setup, but user logged in with email in a passkey env
|
|
93
96
|
// it should be null to force user to setup passkey even after the a refresh
|
|
94
97
|
React.useEffect(() => localStorage.LocalStorage.removeFromLS(localStorage$1.LAST_USED_WALLET), []);
|
|
95
98
|
const { createDynamicEmbeddedWalletMutation, isLoading, error } = useCreateDynamicEmbeddedWalletMutation.useCreateDynamicEmbeddedWalletMutation();
|
|
96
|
-
const handleCreateEmbeddedWallet = () => {
|
|
99
|
+
const handleCreateEmbeddedWallet = (withAuthenticator) => {
|
|
97
100
|
var _a;
|
|
98
101
|
const jwt = (_a = getAuthToken.getAuthToken()) !== null && _a !== void 0 ? _a : onboardingOnlyJwt;
|
|
99
102
|
const decodedJwt = decodeJwt.decodeJwt(jwt);
|
|
100
103
|
if (!jwt || !decodedJwt) {
|
|
101
104
|
throw new Error('User is not logged in');
|
|
102
105
|
}
|
|
106
|
+
setCreateWalletWithAuthenticator(withAuthenticator);
|
|
103
107
|
createDynamicEmbeddedWalletMutation({
|
|
104
108
|
authToken: jwt,
|
|
105
109
|
decodedJwt,
|
|
106
110
|
environmentId,
|
|
107
111
|
walletConnectorOptions,
|
|
108
|
-
withAuthenticator
|
|
112
|
+
withAuthenticator,
|
|
109
113
|
});
|
|
110
114
|
};
|
|
111
115
|
const errorText = React.useMemo(() => {
|
|
@@ -118,9 +122,9 @@ const PasskeyIntroView = () => {
|
|
|
118
122
|
return getProperErrorMessage.getProperErrorMessage(error);
|
|
119
123
|
}, [error]);
|
|
120
124
|
const infoIconButton = (jsxRuntime.jsx(Tooltip.Tooltip, { content: t('dyn_passkey_intro.helper.tooltip'), className: 'header__tooltip', copykey: 'dyn_passkey_intro.helper.tooltip', children: jsxRuntime.jsx(IconButton.IconButton, { type: 'button', "data-testid": 'info-button', onClick: () => setIsFooterExpanded((prev) => !prev), className: 'header__icon', children: jsxRuntime.jsx(questionMark.ReactComponent, {}) }) }, 'info-button'));
|
|
121
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: infoIconButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_intro.title', children: t('dyn_passkey_intro.title') }) }), jsxRuntime.jsxs("div", { className: 'passkey-intro-view', children: [jsxRuntime.jsx("div", { className: 'passkey-intro-view__header', children: jsxRuntime.jsx(passkeyIntroIcon.ReactComponent, {}) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'passkey-intro-view__subtitle', copykey: 'dyn_passkey_intro.subtitle', children: t('dyn_passkey_intro.subtitle') }), errorText && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: errorText }), jsxRuntime.jsxs("div", { className: 'passkey-intro-view__actions', children: [jsxRuntime.jsx(Button.Button, { buttonVariant: 'brand-primary', buttonPadding: 'large', onClick: handleCreateEmbeddedWallet, dataTestId: 'setup-passkey-button', loading: isLoading, disabled: isLoading, typographyProps: {
|
|
125
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: infoIconButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_intro.title', children: t('dyn_passkey_intro.title') }) }), jsxRuntime.jsxs("div", { className: 'passkey-intro-view', children: [jsxRuntime.jsx("div", { className: 'passkey-intro-view__header', children: jsxRuntime.jsx(passkeyIntroIcon.ReactComponent, {}) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'passkey-intro-view__subtitle', copykey: 'dyn_passkey_intro.subtitle', children: t('dyn_passkey_intro.subtitle') }), errorText && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: errorText }), jsxRuntime.jsxs("div", { className: 'passkey-intro-view__actions', children: [jsxRuntime.jsx(Button.Button, { buttonVariant: 'brand-primary', buttonPadding: 'large', onClick: () => handleCreateEmbeddedWallet(true), dataTestId: 'setup-passkey-button', loading: isLoading && createWalletWithAuthenticator, disabled: isLoading, typographyProps: {
|
|
122
126
|
color: 'inherit',
|
|
123
|
-
}, children: jsxRuntime.jsxs("div", { className: 'passkey-intro-view__inline-button', children: [jsxRuntime.jsx(PasskeyDeviceIcon.PasskeyDeviceIcon, {}), jsxRuntime.jsx(Typography.Typography, { copykey: 'dyn_passkey_intro.button', children: t('dyn_passkey_intro.button') })] }) }), jsxRuntime.jsx(TextButton.TextButton, { "data-testid": 'setup-passkey-logout-button', className: 'passkey-intro-view__log-out', onClick: handleLogOut, copykey: 'dyn_passkey_intro.button_logout', children: t('dyn_passkey_intro.button_logout') })] })] })] }));
|
|
127
|
+
}, children: jsxRuntime.jsxs("div", { className: 'passkey-intro-view__inline-button', children: [jsxRuntime.jsx(PasskeyDeviceIcon.PasskeyDeviceIcon, { size: 'small' }), jsxRuntime.jsx(Typography.Typography, { copykey: 'dyn_passkey_intro.button', children: t('dyn_passkey_intro.button') })] }) }), allowSkippingAuthenticatorAtSignup ? (jsxRuntime.jsx(TextButton.TextButton, { "data-testid": 'setup-passkey-skip-button', className: 'passkey-intro-view__skip', onClick: () => handleCreateEmbeddedWallet(false), copykey: 'dyn_passkey_intro.button_skip', children: t('dyn_passkey_intro.button_skip') })) : (jsxRuntime.jsx(TextButton.TextButton, { "data-testid": 'setup-passkey-logout-button', className: 'passkey-intro-view__log-out', onClick: handleLogOut, copykey: 'dyn_passkey_intro.button_logout', children: t('dyn_passkey_intro.button_logout') }))] })] })] }));
|
|
124
128
|
};
|
|
125
129
|
|
|
126
130
|
exports.PasskeyIntroView = PasskeyIntroView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useEffect, useMemo } from 'react';
|
|
2
|
+
import { useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
5
5
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
@@ -60,6 +60,7 @@ import 'formik';
|
|
|
60
60
|
import 'i18next';
|
|
61
61
|
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
62
62
|
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
63
|
+
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
64
|
import '../../WalletList/WalletList.js';
|
|
64
65
|
import 'qrcode';
|
|
65
66
|
import '@hcaptcha/react-hcaptcha';
|
|
@@ -70,7 +71,6 @@ import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/Second
|
|
|
70
71
|
import { useFooterAnimationContext } from '../../../context/FooterAnimationContext/index.js';
|
|
71
72
|
import { getProperErrorMessage } from '../../../modals/SignMessageConfirmationModal/getProperErrorMessage.js';
|
|
72
73
|
import { PasskeyDeviceIcon } from '../PasskeyDeviceIcon/PasskeyDeviceIcon.js';
|
|
73
|
-
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
74
74
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
75
75
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
76
76
|
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -79,29 +79,33 @@ import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCar
|
|
|
79
79
|
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
80
80
|
|
|
81
81
|
const PasskeyIntroView = () => {
|
|
82
|
-
|
|
82
|
+
var _a, _b;
|
|
83
|
+
const { walletConnectorOptions, environmentId, handleLogOut, onboardingOnlyJwt, projectSettings, } = useInternalDynamicContext();
|
|
84
|
+
const allowSkippingAuthenticatorAtSignup = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.embeddedWallets) === null || _b === void 0 ? void 0 : _b.allowSkippingAuthenticatorAtSignup;
|
|
83
85
|
const { setIsFooterExpanded } = useFooterAnimationContext();
|
|
84
86
|
const { t } = useTranslation();
|
|
85
87
|
// TODO(GVTY-1137): send a metric when we detect passkeys are not enabled by the browser/device
|
|
86
88
|
// we removed enforcing this check since we were getting false negatives
|
|
87
89
|
// const { data: passkeyEnabled } = usePromise(isPasskeyEnabled);
|
|
90
|
+
const [createWalletWithAuthenticator, setCreateWalletWithAuthenticator] = useState(false);
|
|
88
91
|
// if passkey is not yet setup, but user logged in with email in a passkey env
|
|
89
92
|
// it should be null to force user to setup passkey even after the a refresh
|
|
90
93
|
useEffect(() => LocalStorage.removeFromLS(LAST_USED_WALLET), []);
|
|
91
94
|
const { createDynamicEmbeddedWalletMutation, isLoading, error } = useCreateDynamicEmbeddedWalletMutation();
|
|
92
|
-
const handleCreateEmbeddedWallet = () => {
|
|
95
|
+
const handleCreateEmbeddedWallet = (withAuthenticator) => {
|
|
93
96
|
var _a;
|
|
94
97
|
const jwt = (_a = getAuthToken()) !== null && _a !== void 0 ? _a : onboardingOnlyJwt;
|
|
95
98
|
const decodedJwt = decodeJwt(jwt);
|
|
96
99
|
if (!jwt || !decodedJwt) {
|
|
97
100
|
throw new Error('User is not logged in');
|
|
98
101
|
}
|
|
102
|
+
setCreateWalletWithAuthenticator(withAuthenticator);
|
|
99
103
|
createDynamicEmbeddedWalletMutation({
|
|
100
104
|
authToken: jwt,
|
|
101
105
|
decodedJwt,
|
|
102
106
|
environmentId,
|
|
103
107
|
walletConnectorOptions,
|
|
104
|
-
withAuthenticator
|
|
108
|
+
withAuthenticator,
|
|
105
109
|
});
|
|
106
110
|
};
|
|
107
111
|
const errorText = useMemo(() => {
|
|
@@ -114,9 +118,9 @@ const PasskeyIntroView = () => {
|
|
|
114
118
|
return getProperErrorMessage(error);
|
|
115
119
|
}, [error]);
|
|
116
120
|
const infoIconButton = (jsx(Tooltip, { content: t('dyn_passkey_intro.helper.tooltip'), className: 'header__tooltip', copykey: 'dyn_passkey_intro.helper.tooltip', children: jsx(IconButton, { type: 'button', "data-testid": 'info-button', onClick: () => setIsFooterExpanded((prev) => !prev), className: 'header__icon', children: jsx(SvgQuestionMark, {}) }) }, 'info-button'));
|
|
117
|
-
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: infoIconButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_intro.title', children: t('dyn_passkey_intro.title') }) }), jsxs("div", { className: 'passkey-intro-view', children: [jsx("div", { className: 'passkey-intro-view__header', children: jsx(SvgPasskeyIntroIcon, {}) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'passkey-intro-view__subtitle', copykey: 'dyn_passkey_intro.subtitle', children: t('dyn_passkey_intro.subtitle') }), errorText && jsx(ErrorContainer, { children: errorText }), jsxs("div", { className: 'passkey-intro-view__actions', children: [jsx(Button, { buttonVariant: 'brand-primary', buttonPadding: 'large', onClick: handleCreateEmbeddedWallet, dataTestId: 'setup-passkey-button', loading: isLoading, disabled: isLoading, typographyProps: {
|
|
121
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: infoIconButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_intro.title', children: t('dyn_passkey_intro.title') }) }), jsxs("div", { className: 'passkey-intro-view', children: [jsx("div", { className: 'passkey-intro-view__header', children: jsx(SvgPasskeyIntroIcon, {}) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'passkey-intro-view__subtitle', copykey: 'dyn_passkey_intro.subtitle', children: t('dyn_passkey_intro.subtitle') }), errorText && jsx(ErrorContainer, { children: errorText }), jsxs("div", { className: 'passkey-intro-view__actions', children: [jsx(Button, { buttonVariant: 'brand-primary', buttonPadding: 'large', onClick: () => handleCreateEmbeddedWallet(true), dataTestId: 'setup-passkey-button', loading: isLoading && createWalletWithAuthenticator, disabled: isLoading, typographyProps: {
|
|
118
122
|
color: 'inherit',
|
|
119
|
-
}, children: jsxs("div", { className: 'passkey-intro-view__inline-button', children: [jsx(PasskeyDeviceIcon, {}), jsx(Typography, { copykey: 'dyn_passkey_intro.button', children: t('dyn_passkey_intro.button') })] }) }), jsx(TextButton, { "data-testid": 'setup-passkey-logout-button', className: 'passkey-intro-view__log-out', onClick: handleLogOut, copykey: 'dyn_passkey_intro.button_logout', children: t('dyn_passkey_intro.button_logout') })] })] })] }));
|
|
123
|
+
}, children: jsxs("div", { className: 'passkey-intro-view__inline-button', children: [jsx(PasskeyDeviceIcon, { size: 'small' }), jsx(Typography, { copykey: 'dyn_passkey_intro.button', children: t('dyn_passkey_intro.button') })] }) }), allowSkippingAuthenticatorAtSignup ? (jsx(TextButton, { "data-testid": 'setup-passkey-skip-button', className: 'passkey-intro-view__skip', onClick: () => handleCreateEmbeddedWallet(false), copykey: 'dyn_passkey_intro.button_skip', children: t('dyn_passkey_intro.button_skip') })) : (jsx(TextButton, { "data-testid": 'setup-passkey-logout-button', className: 'passkey-intro-view__log-out', onClick: handleLogOut, copykey: 'dyn_passkey_intro.button_logout', children: t('dyn_passkey_intro.button_logout') }))] })] })] }));
|
|
120
124
|
};
|
|
121
125
|
|
|
122
126
|
export { PasskeyIntroView };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactI18next = require('react-i18next');
|
|
8
|
+
require('../../../events/dynamicEvents.cjs');
|
|
9
|
+
require('../../../../../_virtual/_tslib.cjs');
|
|
10
|
+
require('@dynamic-labs/utils');
|
|
11
|
+
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
12
|
+
require('@dynamic-labs/sdk-api');
|
|
13
|
+
require('../../../shared/logger.cjs');
|
|
14
|
+
require('@dynamic-labs/iconic');
|
|
15
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
16
|
+
require('../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
var domain = require('../../../shared/assets/domain.cjs');
|
|
18
|
+
require('@dynamic-labs/wallet-book');
|
|
19
|
+
require('../../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../../utils/constants/values.cjs');
|
|
21
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
22
|
+
require('viem');
|
|
23
|
+
require('../../../shared/consts/index.cjs');
|
|
24
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
25
|
+
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
+
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
var getEnabledEmbeddedWalletsAuthenticators = require('../../../utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.cjs');
|
|
29
|
+
require('viem/chains');
|
|
30
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
32
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
33
|
+
require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
34
|
+
require('react-dom');
|
|
35
|
+
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
36
|
+
require('@dynamic-labs/types');
|
|
37
|
+
require('yup');
|
|
38
|
+
require('../../../context/MockContext/MockContext.cjs');
|
|
39
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
40
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
41
|
+
require('@dynamic-labs/rpc-providers');
|
|
42
|
+
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
43
|
+
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
44
|
+
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
45
|
+
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
46
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
|
+
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
48
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
49
|
+
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
50
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
51
|
+
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
52
|
+
require('react-focus-lock');
|
|
53
|
+
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
54
|
+
require('i18next');
|
|
55
|
+
require('qrcode');
|
|
56
|
+
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
57
|
+
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
58
|
+
require('formik');
|
|
59
|
+
var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
|
|
60
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
61
|
+
require('../../../components/Alert/Alert.cjs');
|
|
62
|
+
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
|
+
require('@dynamic-labs/viem-utils');
|
|
65
|
+
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
67
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
68
|
+
var NeedHelpSection = require('../../../components/NeedHelpSection/NeedHelpSection.cjs');
|
|
69
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
70
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
71
|
+
require('../../WalletList/WalletList.cjs');
|
|
72
|
+
require('@hcaptcha/react-hcaptcha');
|
|
73
|
+
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
74
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
75
|
+
var EmbeddedAuthChoiceCards = require('../EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs');
|
|
76
|
+
|
|
77
|
+
const PasskeyNewDomainDetectedView = () => {
|
|
78
|
+
const { t } = reactI18next.useTranslation();
|
|
79
|
+
const { projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
80
|
+
const supportedAuthenticators = React.useMemo(() => {
|
|
81
|
+
var _a;
|
|
82
|
+
const supportedAuths = getEnabledEmbeddedWalletsAuthenticators.getEnabledEmbeddedWalletsAuthenticators((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.supportedSecurityMethods);
|
|
83
|
+
return Object.keys(supportedAuths).filter((auth) => auth !== 'email');
|
|
84
|
+
}, [projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets]);
|
|
85
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_new_domain_detected.title', children: t('dyn_passkey_new_domain_detected.title') }) }), jsxRuntime.jsxs("div", { className: 'passkey-new-domain-detected', children: [jsxRuntime.jsx(domain.ReactComponent, { className: 'passkey-new-domain-detected__header' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_passkey_new_domain_detected.description') }), jsxRuntime.jsx(EmbeddedAuthChoiceCards.EmbeddedAuthChoiceCards, { supportedAuthenticators: supportedAuthenticators }), jsxRuntime.jsx(NeedHelpSection.NeedHelpSection, { isRecoveryFlow: true })] })] }));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.PasskeyNewDomainDetectedView = PasskeyNewDomainDetectedView;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import '../../../events/dynamicEvents.js';
|
|
5
|
+
import '../../../../../_virtual/_tslib.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../../context/DynamicContext/DynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/sdk-api';
|
|
9
|
+
import '../../../shared/logger.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import { ReactComponent as SvgDomain } from '../../../shared/assets/domain.js';
|
|
14
|
+
import '@dynamic-labs/wallet-book';
|
|
15
|
+
import '../../../utils/constants/colors.js';
|
|
16
|
+
import '../../../utils/constants/values.js';
|
|
17
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
18
|
+
import 'viem';
|
|
19
|
+
import '../../../shared/consts/index.js';
|
|
20
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
21
|
+
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../../context/ErrorContext/ErrorContext.js';
|
|
23
|
+
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import { getEnabledEmbeddedWalletsAuthenticators } from '../../../utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.js';
|
|
25
|
+
import 'viem/chains';
|
|
26
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
|
+
import '../../../config/ApiEndpoint.js';
|
|
29
|
+
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
30
|
+
import 'react-dom';
|
|
31
|
+
import '../../../context/ThemeContext/ThemeContext.js';
|
|
32
|
+
import '@dynamic-labs/types';
|
|
33
|
+
import 'yup';
|
|
34
|
+
import '../../../context/MockContext/MockContext.js';
|
|
35
|
+
import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
36
|
+
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
37
|
+
import '@dynamic-labs/rpc-providers';
|
|
38
|
+
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
39
|
+
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
40
|
+
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
41
|
+
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
42
|
+
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
44
|
+
import '../../../context/FooterAnimationContext/index.js';
|
|
45
|
+
import { Typography } from '../../../components/Typography/Typography.js';
|
|
46
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
47
|
+
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
|
+
import 'react-focus-lock';
|
|
49
|
+
import '../../../context/LoadingContext/LoadingContext.js';
|
|
50
|
+
import 'i18next';
|
|
51
|
+
import 'qrcode';
|
|
52
|
+
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
53
|
+
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
54
|
+
import 'formik';
|
|
55
|
+
import { ModalHeader } from '../../../components/ModalHeader/ModalHeader.js';
|
|
56
|
+
import '../../../components/IconButton/IconButton.js';
|
|
57
|
+
import '../../../components/Alert/Alert.js';
|
|
58
|
+
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
|
+
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
+
import '@dynamic-labs/viem-utils';
|
|
61
|
+
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
62
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
63
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
64
|
+
import { NeedHelpSection } from '../../../components/NeedHelpSection/NeedHelpSection.js';
|
|
65
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
66
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
67
|
+
import '../../WalletList/WalletList.js';
|
|
68
|
+
import '@hcaptcha/react-hcaptcha';
|
|
69
|
+
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
70
|
+
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
71
|
+
import { EmbeddedAuthChoiceCards } from '../EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js';
|
|
72
|
+
|
|
73
|
+
const PasskeyNewDomainDetectedView = () => {
|
|
74
|
+
const { t } = useTranslation();
|
|
75
|
+
const { projectSettings } = useInternalDynamicContext();
|
|
76
|
+
const supportedAuthenticators = useMemo(() => {
|
|
77
|
+
var _a;
|
|
78
|
+
const supportedAuths = getEnabledEmbeddedWalletsAuthenticators((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.supportedSecurityMethods);
|
|
79
|
+
return Object.keys(supportedAuths).filter((auth) => auth !== 'email');
|
|
80
|
+
}, [projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets]);
|
|
81
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, { children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_passkey_new_domain_detected.title', children: t('dyn_passkey_new_domain_detected.title') }) }), jsxs("div", { className: 'passkey-new-domain-detected', children: [jsx(SvgDomain, { className: 'passkey-new-domain-detected__header' }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_passkey_new_domain_detected.description') }), jsx(EmbeddedAuthChoiceCards, { supportedAuthenticators: supportedAuthenticators }), jsx(NeedHelpSection, { isRecoveryFlow: true })] })] }));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export { PasskeyNewDomainDetectedView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasskeyNewDomainDetectedView } from './PasskeyNewDomainDetectedView';
|