@dynamic-labs/sdk-react-core 1.1.0-phantom.0 → 1.1.1
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 +152 -2
- package/_virtual/_tslib.cjs +6 -1
- package/_virtual/_tslib.js +6 -1
- package/package.cjs +2 -3
- package/package.js +2 -3
- package/package.json +12 -12
- package/src/index.cjs +26 -12
- package/src/index.d.ts +1 -1
- package/src/index.js +15 -7
- package/src/lib/Main.cjs +2 -1
- package/src/lib/Main.js +2 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +3 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +3 -1
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +3 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +11 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +11 -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/Badge/Badge.types.d.ts +2 -1
- package/src/lib/components/Captcha/Captcha.cjs +3 -1
- package/src/lib/components/Captcha/Captcha.js +3 -1
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/src/lib/components/Checkbox/Checkbox.js +1 -0
- package/src/lib/components/CopyButton/CopyButton.cjs +1 -11
- package/src/lib/components/CopyButton/CopyButton.js +2 -12
- package/src/lib/components/Divider/Divider.cjs +3 -1
- package/src/lib/components/Divider/Divider.js +3 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.cjs +35 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +9 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.js +31 -0
- package/src/lib/components/Icon/Icon.cjs +2 -0
- package/src/lib/components/Icon/Icon.js +2 -0
- package/src/lib/components/Icon/Icon.types.d.ts +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +2 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +2 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +2 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +2 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +2 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +2 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +2 -1
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.cjs +9 -0
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.d.ts +6 -0
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.js +5 -0
- package/src/lib/components/ListTileAnimatedTrailing/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +2 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +3 -2
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +3 -2
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +1 -0
- package/src/lib/components/MenuList/MenuList/MenuList.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +3 -1
- package/src/lib/components/Modal/Modal.js +3 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +10 -11
- package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +5 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +10 -11
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +3 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +4 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +4 -2
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +14 -59
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +14 -59
- package/src/lib/components/OverlayCard/OverlayCard.cjs +3 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +3 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +3 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +3 -1
- package/src/lib/components/Portal/Portal.cjs +3 -1
- package/src/lib/components/Portal/Portal.js +3 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +3 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +3 -1
- package/src/lib/components/RenderView/RenderView.cjs +4 -2
- package/src/lib/components/RenderView/RenderView.js +4 -2
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +97 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.d.ts +9 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +93 -0
- package/src/lib/components/RetrySendVerificationCodeSection/index.d.ts +1 -0
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +66 -7
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +66 -7
- package/src/lib/components/Select/Select.cjs +1 -0
- package/src/lib/components/Select/Select.js +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -4
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -4
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +3 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.js +3 -1
- package/src/lib/components/ShadowDOM/utils.cjs +1 -0
- package/src/lib/components/ShadowDOM/utils.js +1 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +1 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +5 -3
- package/src/lib/components/SocialSignIn/SocialSignIn.js +5 -3
- package/src/lib/components/Spinner/spinner.cjs +1 -0
- package/src/lib/components/Spinner/spinner.js +1 -0
- package/src/lib/components/StatusDot/StatusDot.d.ts +1 -1
- package/src/lib/components/Step/Step.cjs +1 -0
- package/src/lib/components/Step/Step.js +1 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +9 -6
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +9 -6
- package/src/lib/components/Toolkit/Toolkit.cjs +3 -1
- package/src/lib/components/Toolkit/Toolkit.js +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +3 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +3 -1
- package/src/lib/components/Tooltip/Tooltip.js +3 -1
- package/src/lib/components/Tooltip/index.d.ts +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +3 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +3 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +70 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +70 -6
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +3 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +3 -1
- package/src/lib/components/UserAddress/UserAddress.js +3 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +3 -1
- package/src/lib/components/UserProfile/UserProfile.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +3 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +3 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.js +3 -1
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.cjs +11 -0
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.d.ts +8 -0
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.js +7 -0
- package/src/lib/components/WalletGroupViewLayout/index.d.ts +1 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +4 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +2 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +4 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +2 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +2 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +7 -6
- package/src/lib/context/DynamicContext/DynamicContext.js +7 -6
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +1 -0
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +1 -0
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +2 -0
- package/src/lib/context/DynamicContext/helpers/helpers.js +2 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +2 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +2 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +2 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +2 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +3 -52
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +3 -52
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +7 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +7 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +1 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +3 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +2 -4
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +6 -50
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +6 -50
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +3 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +3 -1
- package/src/lib/context/DynamicContext/validators/validators.cjs +1 -0
- package/src/lib/context/DynamicContext/validators/validators.js +1 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +2 -1
- package/src/lib/context/FundingContext/FundingContext.js +2 -1
- package/src/lib/context/LoadingContext/LoadingContext.cjs +3 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +3 -1
- package/src/lib/context/MockContext/MockContext.cjs +3 -1
- package/src/lib/context/MockContext/MockContext.js +3 -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/PhantomRedirectContext.cjs +17 -112
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +1 -1
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +17 -112
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +124 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.d.ts +5 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +120 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -2
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +4 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +4 -2
- package/src/lib/context/ThemeContext/themesData.cjs +1 -0
- package/src/lib/context/ThemeContext/themesData.js +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +2 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +2 -1
- package/src/lib/context/ViewContext/ViewContext.cjs +1 -1
- package/src/lib/context/ViewContext/ViewContext.js +1 -1
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +3 -1
- package/src/lib/context/WalletContext/WalletContext.js +3 -1
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +13 -4
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +13 -4
- package/src/lib/data/api.cjs +21 -8
- package/src/lib/data/api.d.ts +6 -3
- package/src/lib/data/api.js +21 -8
- package/src/lib/events/dynamicEvents.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +4 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +4 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +7 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +7 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +3 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +3 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +3 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +3 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +3 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +3 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +3 -1
- package/src/lib/locale/en/translation.cjs +217 -36
- package/src/lib/locale/en/translation.d.ts +207 -26
- package/src/lib/locale/en/translation.js +217 -36
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +3 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +3 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +30 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +30 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +4 -3
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +4 -3
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +2 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +2 -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 +8 -0
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +1 -0
- package/src/lib/shared/utils/classes/storage/localStorage.js +1 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +9 -4
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.d.ts +1 -2
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +9 -4
- package/src/lib/shared/utils/functions/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/providerLabel/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +15 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +2 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +11 -0
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +5 -3
- package/src/lib/shared/utils/functions/wallet/createWallet.js +5 -3
- package/src/lib/shared/utils/hooks/index.d.ts +5 -4
- package/src/lib/shared/utils/hooks/useThrottle/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +29 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +8 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +25 -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/constants/values.cjs +26 -0
- package/src/lib/utils/constants/values.d.ts +7 -0
- package/src/lib/utils/constants/values.js +25 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.cjs +5 -2
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.d.ts +1 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js +5 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.cjs +8 -1
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +1 -1
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.js +8 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +1 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +1 -0
- 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/getOauthLoginUrl/getOauthLoginUrl.cjs +4 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.js +4 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +2 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +2 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.cjs +2 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.js +2 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +8 -4
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +8 -4
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.cjs +19 -0
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.d.ts +3 -0
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.js +15 -0
- package/src/lib/utils/functions/getWalletGroupType/index.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +2 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +2 -1
- package/src/lib/utils/functions/index.d.ts +2 -1
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.cjs +3 -1
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.js +3 -1
- package/src/lib/utils/functions/isHardwareWalletEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.cjs +12 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.js +8 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +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/functions/storeAuthToken/index.cjs +1 -0
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +9 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +7 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +7 -7
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +3 -2
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +3 -2
- package/src/lib/utils/hooks/index.d.ts +2 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +8 -4
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +8 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +3 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +3 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +14 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +14 -3
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +2 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +2 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +12 -0
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +12 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +2 -1
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +2 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +53 -10
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +17 -5
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +54 -11
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +2 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +2 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +3 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +3 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +17 -7
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +17 -7
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +3 -2
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +3 -2
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +8 -8
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +8 -8
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +3 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +3 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +2 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +2 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +3 -2
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +3 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +16 -121
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +16 -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/useEmbeddedWalletAuthenticator/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +21 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +17 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +1 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +2 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +1 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +1 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +3 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +3 -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 +6 -3
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +6 -3
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +12 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +12 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +3 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +3 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +3 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +3 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +121 -21
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +4 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +122 -22
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +2 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +2 -0
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +1 -0
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +1 -0
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +1 -0
- package/src/lib/utils/hooks/usePromise/usePromise.js +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.cjs +2 -0
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js +2 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +2 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +2 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +10 -2
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +11 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +2 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +2 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +3 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +3 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +2 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +2 -1
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +1 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +4 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +4 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +8 -7
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +8 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.cjs +11 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.d.ts +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.js +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +10 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +10 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +12 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +12 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +5 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +5 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +2 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +66 -45
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +5 -7
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +67 -46
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -8
- package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -8
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +3 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +3 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +3 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +3 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +3 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +3 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +3 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +3 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +5 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +5 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -1
- package/src/lib/views/CollectUserDataView/useFields.cjs +1 -0
- package/src/lib/views/CollectUserDataView/useFields.js +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +3 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +3 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -1
- package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -22
- package/src/lib/views/EmailVerification/EmailVerification.js +19 -22
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +4 -2
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +4 -2
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +15 -6
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +15 -6
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +2 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +2 -0
- package/src/lib/views/LoginView/LoginView.cjs +3 -1
- package/src/lib/views/LoginView/LoginView.js +3 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +3 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +4 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +5 -4
- package/src/lib/views/LoginView/useLoginView.cjs +3 -1
- package/src/lib/views/LoginView/useLoginView.js +3 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +3 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +3 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +3 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +3 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +3 -1
- package/src/lib/views/NoAccess/NoAccess.js +3 -1
- package/src/lib/views/NoAccess/useNoAccessText.cjs +3 -1
- package/src/lib/views/NoAccess/useNoAccessText.js +3 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -1
- package/src/lib/views/{WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs → Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs} +20 -10
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.d.ts +6 -0
- package/src/lib/views/{WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js → Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js} +21 -11
- 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 +8 -6
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +8 -6
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +16 -10
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +17 -11
- 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 +23 -9
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +24 -10
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +6 -5
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +6 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +15 -32
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +6 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +16 -33
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +2 -1
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +2 -1
- package/src/lib/views/Passkey/index.d.ts +2 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +7 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +8 -5
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +7 -4
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +8 -5
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.cjs +3 -2
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.d.ts +2 -1
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.js +3 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +123 -16
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +31 -6
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +123 -18
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +3 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +3 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +8 -6
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +8 -6
- package/src/lib/views/QrCodeView/QRCode.cjs +3 -1
- package/src/lib/views/QrCodeView/QRCode.js +3 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -1
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -1
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -1
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +84 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.d.ts +8 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +80 -0
- package/src/lib/views/SelectHardwareWalletView/index.d.ts +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +86 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.d.ts +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +82 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +94 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +9 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +90 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/index.d.ts +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/index.d.ts +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +3 -3
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +3 -3
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +3 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +3 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +8 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +8 -2
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +2 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +3 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +3 -1
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +3 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +3 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +19 -21
- package/src/lib/views/WalletGroupView/WalletGroupView.js +19 -21
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +73 -22
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +1 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +74 -23
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +3 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +3 -1
- package/src/lib/views/WalletList/WalletList.cjs +4 -2
- package/src/lib/views/WalletList/WalletList.js +4 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +19 -9
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +20 -10
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +0 -1
- package/src/lib/views/WalletList/data.cjs +1 -0
- package/src/lib/views/WalletList/data.js +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +12 -12
- package/src/lib/views/WalletUsedView/WalletUsedView.js +13 -13
- package/src/lib/views/viewToComponentMap.cjs +68 -0
- package/src/lib/views/viewToComponentMap.js +68 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +13 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +14 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +9 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +9 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +3 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +3 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +3 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +3 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +3 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +6 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +23 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +23 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +5 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +5 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +34 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.d.ts +10 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +30 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +3 -1
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.js +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +3 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +78 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +78 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +8 -11
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +1 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +8 -11
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +9 -23
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +9 -23
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +4 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +36 -8
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +36 -8
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -1
- package/src/version.d.ts +2 -2
- package/src/lib/components/ChainCard/ChainCard.cjs +0 -11
- package/src/lib/components/ChainCard/ChainCard.d.ts +0 -9
- package/src/lib/components/ChainCard/ChainCard.js +0 -7
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +0 -15
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -6
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +0 -11
- package/src/lib/shared/assets/turnkey.cjs +0 -79
- package/src/lib/shared/assets/turnkey.js +0 -55
- package/src/lib/utils/functions/isPasskeyEnabled/isPasskeyEnabled.cjs +0 -22
- package/src/lib/utils/functions/isPasskeyEnabled/isPasskeyEnabled.js +0 -18
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/index.d.ts +0 -1
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.cjs +0 -49
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.d.ts +0 -18
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.js +0 -44
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/hooks/useContent.d.ts +0 -7
- /package/src/lib/{views/WalletGroupView/components → components}/HardwareWalletToggle/index.d.ts +0 -0
|
@@ -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 {};
|
|
@@ -2,6 +2,7 @@ import { jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { isIPhone, isIPhone8OrEarlier, isAndroid, getAndroidVersion } from '@dynamic-labs/utils';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../../events/dynamicEvents.js';
|
|
5
|
+
import '../../../../../_virtual/_tslib.js';
|
|
5
6
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
6
7
|
import '@dynamic-labs/sdk-api';
|
|
7
8
|
import '../../../shared/logger.js';
|
|
@@ -10,10 +11,11 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
10
11
|
import '../../../context/ViewContext/ViewContext.js';
|
|
11
12
|
import { ReactComponent as SvgAndroidFaceId } from '../../../shared/assets/android-face-id.js';
|
|
12
13
|
import { ReactComponent as SvgAndroidTouchId } from '../../../shared/assets/android-touch-id.js';
|
|
13
|
-
import { ReactComponent as SvgIphoneFaceId } from '../../../shared/assets/iphone-face-id.js';
|
|
14
14
|
import { ReactComponent as SvgIphoneTouchId } from '../../../shared/assets/iphone-touch-id.js';
|
|
15
|
+
import { ReactComponent as SvgFaceId } from '../../../shared/assets/face-id.js';
|
|
15
16
|
import '@dynamic-labs/wallet-book';
|
|
16
17
|
import '../../../utils/constants/colors.js';
|
|
18
|
+
import '../../../utils/constants/values.js';
|
|
17
19
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
18
20
|
import 'viem';
|
|
19
21
|
import '../../../shared/consts/index.js';
|
|
@@ -54,8 +56,8 @@ import 'formik';
|
|
|
54
56
|
import '../../../components/IconButton/IconButton.js';
|
|
55
57
|
import '../../../components/Alert/Alert.js';
|
|
56
58
|
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
57
|
-
import '@dynamic-labs/viem-utils';
|
|
58
59
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
+
import '@dynamic-labs/viem-utils';
|
|
59
61
|
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
60
62
|
import '../../../components/InlineWidget/InlineWidget.js';
|
|
61
63
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
@@ -66,14 +68,14 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
66
68
|
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
69
|
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
68
70
|
|
|
69
|
-
const PasskeyDeviceIcon = () => {
|
|
70
|
-
let IdIcon;
|
|
71
|
+
const PasskeyDeviceIcon = ({ defaultIcon, className, size = 'small', }) => {
|
|
72
|
+
let IdIcon = defaultIcon ? defaultIcon : null;
|
|
71
73
|
if (isIPhone()) {
|
|
72
74
|
if (isIPhone8OrEarlier()) {
|
|
73
75
|
IdIcon = jsx(SvgIphoneTouchId, { "data-testid": 'iphone-8-icon' });
|
|
74
76
|
}
|
|
75
77
|
else {
|
|
76
|
-
IdIcon = jsx(
|
|
78
|
+
IdIcon = jsx(SvgFaceId, { "data-testid": 'iphone-icon' });
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
if (isAndroid()) {
|
|
@@ -88,7 +90,7 @@ const PasskeyDeviceIcon = () => {
|
|
|
88
90
|
if (!IdIcon) {
|
|
89
91
|
return jsx(Fragment, {});
|
|
90
92
|
}
|
|
91
|
-
return jsx(Icon, { size:
|
|
93
|
+
return (jsx(Icon, { className: className, size: size, children: IdIcon }));
|
|
92
94
|
};
|
|
93
95
|
|
|
94
96
|
export { PasskeyDeviceIcon };
|
|
@@ -17,16 +17,17 @@ require('../../../shared/logger.cjs');
|
|
|
17
17
|
require('@dynamic-labs/wallet-book');
|
|
18
18
|
var localStorage$1 = require('../../../utils/constants/localStorage.cjs');
|
|
19
19
|
require('../../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../../utils/constants/values.cjs');
|
|
20
21
|
var localStorage = require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
22
|
require('viem');
|
|
23
|
+
require('@dynamic-labs/sdk-api');
|
|
22
24
|
require('../../../shared/consts/index.cjs');
|
|
23
25
|
require('../../../events/dynamicEvents.cjs');
|
|
26
|
+
require('../../../../../_virtual/_tslib.cjs');
|
|
24
27
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
28
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
26
29
|
require('@dynamic-labs/multi-wallet');
|
|
27
30
|
var getAuthToken = require('../../../utils/functions/getAuthToken/getAuthToken.cjs');
|
|
28
|
-
require('@dynamic-labs/sdk-api');
|
|
29
|
-
var isPasskeyEnabled = require('../../../utils/functions/isPasskeyEnabled/isPasskeyEnabled.cjs');
|
|
30
31
|
require('viem/chains');
|
|
31
32
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
33
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
@@ -35,7 +36,6 @@ require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs'
|
|
|
35
36
|
require('react-dom');
|
|
36
37
|
var useCreateDynamicEmbeddedWalletMutation = require('../../../utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs');
|
|
37
38
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
38
|
-
var usePromise = require('../../../utils/hooks/usePromise/usePromise.cjs');
|
|
39
39
|
require('@dynamic-labs/types');
|
|
40
40
|
require('yup');
|
|
41
41
|
require('../../../context/MockContext/MockContext.cjs');
|
|
@@ -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,27 +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
|
|
92
|
+
// we removed enforcing this check since we were getting false negatives
|
|
93
|
+
// const { data: passkeyEnabled } = usePromise(isPasskeyEnabled);
|
|
94
|
+
const [createWalletWithAuthenticator, setCreateWalletWithAuthenticator] = React.useState(false);
|
|
90
95
|
// if passkey is not yet setup, but user logged in with email in a passkey env
|
|
91
96
|
// it should be null to force user to setup passkey even after the a refresh
|
|
92
97
|
React.useEffect(() => localStorage.LocalStorage.removeFromLS(localStorage$1.LAST_USED_WALLET), []);
|
|
93
98
|
const { createDynamicEmbeddedWalletMutation, isLoading, error } = useCreateDynamicEmbeddedWalletMutation.useCreateDynamicEmbeddedWalletMutation();
|
|
94
|
-
const handleCreateEmbeddedWallet = () => {
|
|
99
|
+
const handleCreateEmbeddedWallet = (withAuthenticator) => {
|
|
95
100
|
var _a;
|
|
96
101
|
const jwt = (_a = getAuthToken.getAuthToken()) !== null && _a !== void 0 ? _a : onboardingOnlyJwt;
|
|
97
102
|
const decodedJwt = decodeJwt.decodeJwt(jwt);
|
|
98
103
|
if (!jwt || !decodedJwt) {
|
|
99
104
|
throw new Error('User is not logged in');
|
|
100
105
|
}
|
|
106
|
+
setCreateWalletWithAuthenticator(withAuthenticator);
|
|
101
107
|
createDynamicEmbeddedWalletMutation({
|
|
102
108
|
authToken: jwt,
|
|
103
109
|
decodedJwt,
|
|
104
110
|
environmentId,
|
|
105
111
|
walletConnectorOptions,
|
|
106
|
-
withAuthenticator
|
|
112
|
+
withAuthenticator,
|
|
107
113
|
});
|
|
108
114
|
};
|
|
109
115
|
const errorText = React.useMemo(() => {
|
|
@@ -116,9 +122,9 @@ const PasskeyIntroView = () => {
|
|
|
116
122
|
return getProperErrorMessage.getProperErrorMessage(error);
|
|
117
123
|
}, [error]);
|
|
118
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'));
|
|
119
|
-
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') }),
|
|
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: {
|
|
120
126
|
color: 'inherit',
|
|
121
|
-
}, 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') }))] })] })] }));
|
|
122
128
|
};
|
|
123
129
|
|
|
124
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';
|
|
@@ -13,16 +13,17 @@ import '../../../shared/logger.js';
|
|
|
13
13
|
import '@dynamic-labs/wallet-book';
|
|
14
14
|
import { LAST_USED_WALLET } from '../../../utils/constants/localStorage.js';
|
|
15
15
|
import '../../../utils/constants/colors.js';
|
|
16
|
+
import '../../../utils/constants/values.js';
|
|
16
17
|
import { LocalStorage } from '../../../shared/utils/classes/storage/localStorage.js';
|
|
17
18
|
import 'viem';
|
|
19
|
+
import '@dynamic-labs/sdk-api';
|
|
18
20
|
import '../../../shared/consts/index.js';
|
|
19
21
|
import '../../../events/dynamicEvents.js';
|
|
22
|
+
import '../../../../../_virtual/_tslib.js';
|
|
20
23
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
21
24
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
22
25
|
import '@dynamic-labs/multi-wallet';
|
|
23
26
|
import { getAuthToken } from '../../../utils/functions/getAuthToken/getAuthToken.js';
|
|
24
|
-
import '@dynamic-labs/sdk-api';
|
|
25
|
-
import { isPasskeyEnabled } from '../../../utils/functions/isPasskeyEnabled/isPasskeyEnabled.js';
|
|
26
27
|
import 'viem/chains';
|
|
27
28
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
29
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
@@ -31,7 +32,6 @@ import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
|
31
32
|
import 'react-dom';
|
|
32
33
|
import { useCreateDynamicEmbeddedWalletMutation } from '../../../utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js';
|
|
33
34
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
34
|
-
import { usePromise } from '../../../utils/hooks/usePromise/usePromise.js';
|
|
35
35
|
import '@dynamic-labs/types';
|
|
36
36
|
import 'yup';
|
|
37
37
|
import '../../../context/MockContext/MockContext.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,27 +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
|
|
88
|
+
// we removed enforcing this check since we were getting false negatives
|
|
89
|
+
// const { data: passkeyEnabled } = usePromise(isPasskeyEnabled);
|
|
90
|
+
const [createWalletWithAuthenticator, setCreateWalletWithAuthenticator] = useState(false);
|
|
86
91
|
// if passkey is not yet setup, but user logged in with email in a passkey env
|
|
87
92
|
// it should be null to force user to setup passkey even after the a refresh
|
|
88
93
|
useEffect(() => LocalStorage.removeFromLS(LAST_USED_WALLET), []);
|
|
89
94
|
const { createDynamicEmbeddedWalletMutation, isLoading, error } = useCreateDynamicEmbeddedWalletMutation();
|
|
90
|
-
const handleCreateEmbeddedWallet = () => {
|
|
95
|
+
const handleCreateEmbeddedWallet = (withAuthenticator) => {
|
|
91
96
|
var _a;
|
|
92
97
|
const jwt = (_a = getAuthToken()) !== null && _a !== void 0 ? _a : onboardingOnlyJwt;
|
|
93
98
|
const decodedJwt = decodeJwt(jwt);
|
|
94
99
|
if (!jwt || !decodedJwt) {
|
|
95
100
|
throw new Error('User is not logged in');
|
|
96
101
|
}
|
|
102
|
+
setCreateWalletWithAuthenticator(withAuthenticator);
|
|
97
103
|
createDynamicEmbeddedWalletMutation({
|
|
98
104
|
authToken: jwt,
|
|
99
105
|
decodedJwt,
|
|
100
106
|
environmentId,
|
|
101
107
|
walletConnectorOptions,
|
|
102
|
-
withAuthenticator
|
|
108
|
+
withAuthenticator,
|
|
103
109
|
});
|
|
104
110
|
};
|
|
105
111
|
const errorText = useMemo(() => {
|
|
@@ -112,9 +118,9 @@ const PasskeyIntroView = () => {
|
|
|
112
118
|
return getProperErrorMessage(error);
|
|
113
119
|
}, [error]);
|
|
114
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'));
|
|
115
|
-
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') }),
|
|
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: {
|
|
116
122
|
color: 'inherit',
|
|
117
|
-
}, 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') }))] })] })] }));
|
|
118
124
|
};
|
|
119
125
|
|
|
120
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';
|
|
@@ -8,16 +8,18 @@ var React = require('react');
|
|
|
8
8
|
var reactI18next = require('react-i18next');
|
|
9
9
|
var iconic = require('@dynamic-labs/iconic');
|
|
10
10
|
var utils = require('@dynamic-labs/utils');
|
|
11
|
-
require('../../../../events/dynamicEvents.cjs');
|
|
11
|
+
var dynamicEvents = require('../../../../events/dynamicEvents.cjs');
|
|
12
12
|
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
var logger = require('../../../../shared/logger.cjs');
|
|
15
15
|
require('@dynamic-labs/wallet-connector-core');
|
|
16
16
|
var ViewContext = require('../../../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
var check = require('../../../../shared/assets/check.cjs');
|
|
18
|
+
var close = require('../../../../shared/assets/close.cjs');
|
|
18
19
|
var error = require('../../../../shared/assets/error.cjs');
|
|
19
20
|
require('@dynamic-labs/wallet-book');
|
|
20
21
|
require('../../../../utils/constants/colors.cjs');
|
|
22
|
+
require('../../../../utils/constants/values.cjs');
|
|
21
23
|
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
22
24
|
require('viem');
|
|
23
25
|
require('../../../../shared/consts/index.cjs');
|
|
@@ -35,6 +37,8 @@ require('../../../../context/EmailVerificationContext/EmailVerificationContext.c
|
|
|
35
37
|
require('react-dom');
|
|
36
38
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
37
39
|
var useMutation = require('../../../../utils/hooks/useMutation/useMutation.cjs');
|
|
40
|
+
var passkeyRecovery = require('../../utils/passkeyRecovery/passkeyRecovery.cjs');
|
|
41
|
+
var useIsTurnkeyWallet = require('../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
|
|
38
42
|
require('@dynamic-labs/types');
|
|
39
43
|
require('yup');
|
|
40
44
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
@@ -48,7 +52,6 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
48
52
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
49
53
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
50
54
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
51
|
-
var useIsTurnkeyWallet = require('../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
|
|
52
55
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
53
56
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
57
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
@@ -61,12 +64,13 @@ require('qrcode');
|
|
|
61
64
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
62
65
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
63
66
|
require('formik');
|
|
64
|
-
require('../../../../components/
|
|
67
|
+
var ModalHeader = require('../../../../components/ModalHeader/ModalHeader.cjs');
|
|
68
|
+
var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
65
69
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
66
70
|
require('../../../../components/Alert/Alert.cjs');
|
|
67
71
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
68
|
-
require('@dynamic-labs/viem-utils');
|
|
69
72
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
73
|
+
require('@dynamic-labs/viem-utils');
|
|
70
74
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
71
75
|
var getProperErrorMessage = require('../../../../modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
|
|
72
76
|
var TextButton = require('../../../../components/TextButton/TextButton.cjs');
|
|
@@ -79,12 +83,11 @@ require('../../../WalletList/WalletList.cjs');
|
|
|
79
83
|
require('@hcaptcha/react-hcaptcha');
|
|
80
84
|
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
81
85
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
82
|
-
var passkeyRecovery = require('../../utils/passkeyRecovery/passkeyRecovery.cjs');
|
|
83
86
|
|
|
84
87
|
// eslint-disable-next-line no-useless-escape
|
|
85
88
|
const bundleRegex = new RegExp(/^([A-Za-z0-9\s_+@\.-]+)$/);
|
|
86
|
-
const PasskeyBundleRecovery = () => {
|
|
87
|
-
const { authToken, primaryWallet, environmentId, user } = useInternalDynamicContext.useInternalDynamicContext();
|
|
89
|
+
const PasskeyBundleRecovery = ({ authenticatorType, currentAction, }) => {
|
|
90
|
+
const { authToken, primaryWallet, environmentId, user, setShowAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
|
|
88
91
|
const { isTurnkeyWalletWithoutAuthenticator } = useIsTurnkeyWallet.useIsTurnkeyWallet();
|
|
89
92
|
const [bundleInput, setBundleInput] = React.useState('');
|
|
90
93
|
const [resendingCode, setResendingCode] = React.useState(false);
|
|
@@ -101,8 +104,14 @@ const PasskeyBundleRecovery = () => {
|
|
|
101
104
|
wallet,
|
|
102
105
|
});
|
|
103
106
|
setIsValid(true);
|
|
107
|
+
// For passkey it will be called after adding a passkey in passkey-recovery-complete view
|
|
108
|
+
authenticatorType === 'email' &&
|
|
109
|
+
dynamicEvents.dynamicEvents.emit('passkeyRecoveryCompleted', primaryWallet);
|
|
104
110
|
setTimeout(() => {
|
|
105
|
-
|
|
111
|
+
if (authenticatorType === 'passkey') {
|
|
112
|
+
return setView('passkey-recovery-complete');
|
|
113
|
+
}
|
|
114
|
+
setShowAuthFlow(false);
|
|
106
115
|
}, 2000);
|
|
107
116
|
}));
|
|
108
117
|
/**
|
|
@@ -136,6 +145,7 @@ const PasskeyBundleRecovery = () => {
|
|
|
136
145
|
setResendingCode(true);
|
|
137
146
|
yield passkeyRecovery.resentRecoveryEmail({
|
|
138
147
|
authToken,
|
|
148
|
+
authenticatorType,
|
|
139
149
|
environmentId,
|
|
140
150
|
wallet: primaryWallet,
|
|
141
151
|
});
|
|
@@ -160,7 +170,11 @@ const PasskeyBundleRecovery = () => {
|
|
|
160
170
|
const translationKey = isTurnkeyWalletWithoutAuthenticator
|
|
161
171
|
? 'dyn_passkey_secure_modal'
|
|
162
172
|
: 'dyn_passkey_recovery';
|
|
163
|
-
|
|
173
|
+
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: () => {
|
|
174
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
175
|
+
dynamicEvents.dynamicEvents.emit('passkeyRecoveryFailed', new utils.DynamicError('Validation request cancelled'));
|
|
176
|
+
}, "data-testid": 'close-button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
177
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: `${translationKey}.code.title`, children: t(`${translationKey}.code.title`) }) }), jsxRuntime.jsxs("div", { className: 'passkey-recovery-view', children: [!error$1 && !isValid ? (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: emailIcon, isSpinning: !error$1 && !isValid, iconSize: 96 })) : (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: iconic.SignInWithEmailIcon, iconSize: 64, variant: error$1 ? 'red' : 'green', InnerIcon: error$1 ? error.ReactComponent : check.ReactComponent })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'passkey-recovery-view__subtitle', copykey: `${translationKey}.code.description`, children: t(`${translationKey}.code.description`, { email: user === null || user === void 0 ? void 0 : user.email }) }), jsxRuntime.jsx("div", { className: 'passkey-recovery-view__actions', children: jsxRuntime.jsx(Input.Input, { id: 'passkey-recovery-bundle', "data-testid": 'passkey-recovery-bundle-input', value: bundleInput, onChange: handleBundleChanged, label: t(`${translationKey}.code.input_label`), disabled: isLoading || resendingCode, error: Boolean(error$1), className: isValid ? 'passkey-recovery-view__input-valid' : '', autoFocus: true, message: errorText }) }), jsxRuntime.jsxs("div", { className: 'passkey-recovery-view__resend-code', children: [jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', copykey: `${translationKey}.code.resend.text`, children: t(`${translationKey}.code.resend.text`) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'link', copykey: `${translationKey}.code.resend.button`, children: jsxRuntime.jsx(TextButton.TextButton, { "data-testid": 'resend-email-button', onClick: handleResentEmail, disabled: resendingCode || isLoading || (bundleInput.length > 0 && !error$1), children: t(`${translationKey}.code.resend.button`) }) })] })] })] }));
|
|
164
178
|
};
|
|
165
179
|
|
|
166
180
|
exports.PasskeyBundleRecovery = PasskeyBundleRecovery;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
import { AuthenticatorType } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import { EmbeddedWalletCurrentAction } from '../../../../shared';
|
|
4
|
+
interface PasskeyBundleValidationProps {
|
|
5
|
+
authenticatorType: AuthenticatorType;
|
|
6
|
+
currentAction?: EmbeddedWalletCurrentAction;
|
|
7
|
+
}
|
|
8
|
+
export declare const PasskeyBundleRecovery: FC<PasskeyBundleValidationProps>;
|
|
9
|
+
export {};
|