@dynamic-labs/sdk-react-core 1.1.0-alpha.9 → 1.1.0
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 +198 -0
- package/_virtual/_tslib.cjs +6 -1
- package/_virtual/_tslib.js +6 -1
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +13 -14
- package/src/index.cjs +57 -36
- package/src/index.d.ts +3 -2
- package/src/index.js +34 -22
- package/src/lib/Main.cjs +49 -27
- package/src/lib/Main.js +49 -27
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +16 -8
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +16 -8
- 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 +16 -8
- package/src/lib/components/AnimatePresence/AnimatePresence.js +16 -8
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +24 -7
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +24 -7
- 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 +63 -1
- package/src/lib/components/Captcha/Captcha.js +63 -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 +14 -6
- package/src/lib/components/Divider/Divider.js +14 -6
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +61 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +61 -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 +4 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +4 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +3 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +3 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +4 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +4 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +4 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +4 -1
- 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 +51 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +51 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +12 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +12 -5
- 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 +16 -8
- package/src/lib/components/Modal/Modal.js +16 -8
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +26 -20
- package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +5 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +26 -20
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +19 -11
- package/src/lib/components/NetworkPicker/NetworkPicker.js +19 -11
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +17 -6
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +17 -6
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +14 -6
- package/src/lib/components/NetworkPicker/components/Network/Network.js +14 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +16 -8
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +16 -8
- 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 +16 -55
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +16 -55
- package/src/lib/components/OverlayCard/OverlayCard.cjs +16 -8
- package/src/lib/components/OverlayCard/OverlayCard.js +16 -8
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +29 -16
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.d.ts +4 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +31 -18
- package/src/lib/components/Portal/Portal.cjs +23 -20
- package/src/lib/components/Portal/Portal.d.ts +3 -1
- package/src/lib/components/Portal/Portal.js +23 -20
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +63 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +63 -1
- package/src/lib/components/RenderView/RenderView.cjs +74 -0
- package/src/lib/components/RenderView/RenderView.d.ts +2 -0
- package/src/lib/components/RenderView/RenderView.js +70 -0
- package/src/lib/components/RenderView/index.d.ts +1 -0
- 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 +5 -5
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +5 -5
- 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 +61 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +61 -2
- 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 +14 -6
- package/src/lib/components/SocialSignIn/SocialSignIn.js +14 -6
- 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 +24 -14
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.d.ts +1 -2
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +24 -14
- package/src/lib/components/Toolkit/Toolkit.cjs +50 -1
- package/src/lib/components/Toolkit/Toolkit.js +50 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +64 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +64 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +53 -2
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +53 -2
- package/src/lib/components/Tooltip/Tooltip.cjs +21 -32
- package/src/lib/components/Tooltip/Tooltip.js +21 -32
- package/src/lib/components/Tooltip/index.d.ts +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +63 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +63 -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 +12 -4
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +12 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +15 -8
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +15 -8
- package/src/lib/components/UserAddress/UserAddress.cjs +12 -4
- package/src/lib/components/UserAddress/UserAddress.js +12 -4
- package/src/lib/components/UserProfile/UserProfile.cjs +50 -2
- package/src/lib/components/UserProfile/UserProfile.js +50 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +53 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +53 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +17 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +17 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +53 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.js +53 -4
- 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 +2 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.js +1 -1
- package/src/lib/context/CaptchaContext/CaptchaContext.js +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +17 -9
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +17 -9
- package/src/lib/context/DynamicContext/DynamicContext.cjs +78 -118
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +80 -120
- 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.cjs → helpers/helpers.cjs} +14 -10
- package/src/lib/context/DynamicContext/{helpers.d.ts → helpers/helpers.d.ts} +3 -3
- package/src/lib/context/DynamicContext/{helpers.js → helpers/helpers.js} +14 -10
- package/src/lib/context/DynamicContext/helpers/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/index.d.ts +2 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +17 -16
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +18 -17
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +13 -11
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +14 -12
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +36 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +124 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.d.ts +2 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +120 -0
- 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/usePasskeySuccessPopup/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +23 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.d.ts +5 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +19 -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 +13 -1
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +2 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +13 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +40 -10
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.d.ts +7 -2
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +40 -10
- 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 +6 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +2 -4
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +7 -50
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +7 -50
- package/src/lib/context/DynamicContext/useDynamicContext/index.d.ts +2 -0
- package/src/lib/context/DynamicContext/{useDynamicContext.cjs → useDynamicContext/useDynamicContext.cjs} +5 -1
- package/src/lib/context/DynamicContext/{useDynamicContext.d.ts → useDynamicContext/useDynamicContext.d.ts} +2 -2
- package/src/lib/context/DynamicContext/{useDynamicContext.js → useDynamicContext/useDynamicContext.js} +5 -1
- package/src/lib/context/DynamicContext/{useInternalDynamicContext.cjs → useDynamicContext/useInternalDynamicContext.cjs} +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useInternalDynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/{useInternalDynamicContext.js → useDynamicContext/useInternalDynamicContext.js} +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +88 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.d.ts +3 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +84 -0
- package/src/lib/context/DynamicContext/validators/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/{validators.cjs → validators/validators.cjs} +7 -6
- package/src/lib/context/DynamicContext/{validators.d.ts → validators/validators.d.ts} +1 -1
- package/src/lib/context/DynamicContext/{validators.js → validators/validators.js} +7 -6
- package/src/lib/context/ErrorContext/ErrorContext.cjs +5 -11
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -12
- package/src/lib/context/FooterAnimationContext/index.d.ts +1 -2
- package/src/lib/context/FundingContext/FundingContext.cjs +53 -5
- package/src/lib/context/FundingContext/FundingContext.js +53 -5
- package/src/lib/context/LoadingContext/LoadingContext.cjs +15 -7
- package/src/lib/context/LoadingContext/LoadingContext.js +16 -8
- package/src/lib/context/MockContext/MockContext.cjs +17 -8
- package/src/lib/context/MockContext/MockContext.d.ts +4 -9
- package/src/lib/context/MockContext/MockContext.js +17 -8
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +187 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +23 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +181 -0
- package/src/lib/context/PasskeyContext/index.d.ts +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +40 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +10 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +35 -0
- package/src/lib/context/PhantomRedirectContext/index.d.ts +1 -0
- 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 +19 -11
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +19 -11
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +15 -7
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +15 -7
- 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 +15 -8
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +15 -8
- package/src/lib/context/ViewContext/ViewContext.cjs +8 -5
- package/src/lib/context/ViewContext/ViewContext.d.ts +5 -5
- package/src/lib/context/ViewContext/ViewContext.js +8 -5
- package/src/lib/context/ViewContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +10 -0
- package/src/lib/context/WalletContext/WalletContext.cjs +44 -1
- package/src/lib/context/WalletContext/WalletContext.js +44 -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 +42 -13
- package/src/lib/data/api.d.ts +16 -5
- package/src/lib/data/api.js +41 -13
- package/src/lib/events/dynamicEvents.d.ts +6 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.cjs +12 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.d.ts +6 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.js +8 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -13
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +20 -13
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +19 -24
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +20 -25
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +73 -12
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +73 -12
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +22 -10
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +22 -10
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +10 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +10 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +14 -6
- 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 +15 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +15 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +28 -18
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +28 -18
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +17 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +17 -8
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +14 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +15 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +15 -6
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +16 -6
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +16 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +14 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +14 -6
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +14 -6
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +14 -6
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +14 -6
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +14 -6
- package/src/lib/locale/en/translation.cjs +238 -38
- package/src/lib/locale/en/translation.d.ts +228 -28
- package/src/lib/locale/en/translation.js +238 -38
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +18 -8
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.d.ts +0 -2
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +18 -8
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +14 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +14 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +39 -10
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +39 -10
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +15 -8
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +15 -8
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +13 -6
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +13 -6
- package/src/lib/shared/assets/domain.cjs +53 -0
- package/src/lib/shared/assets/domain.js +29 -0
- package/src/lib/shared/assets/export-private-key.cjs +54 -0
- package/src/lib/shared/assets/export-private-key.js +30 -0
- package/src/lib/shared/assets/export-recovery-phrase.cjs +54 -0
- package/src/lib/shared/assets/export-recovery-phrase.js +30 -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 +6 -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/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs +1 -1
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js +1 -1
- package/src/lib/shared/types/index.d.ts +17 -1
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +3 -1
- package/src/lib/shared/utils/classes/storage/localStorage.js +3 -1
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +15 -11
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.d.ts +1 -2
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +15 -11
- package/src/lib/shared/utils/functions/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs +1 -2
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js +1 -2
- 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/useOnClickOutside/index.cjs +4 -2
- package/src/lib/shared/utils/hooks/useOnClickOutside/index.js +5 -3
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs +29 -16
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +29 -16
- 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/createWalletClientFromWallet/createWalletClientFromWallet.cjs +63 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/createWalletClientFromWallet.d.ts +14 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/createWalletClientFromWallet.js +39 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/index.d.ts +1 -0
- 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/generateMessages/index.cjs +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +2 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -1
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.cjs +18 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.js +14 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/index.d.ts +1 -0
- package/src/lib/utils/functions/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 +25 -4
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +10 -5
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +25 -4
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.cjs +10 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.d.ts +3 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.js +6 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/index.d.ts +1 -0
- 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 +7 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +3 -0
- package/src/lib/utils/functions/getWalletIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +3 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +3 -1
- package/src/lib/utils/functions/index.d.ts +10 -5
- 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/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +2 -2
- package/src/lib/utils/functions/storeAuthToken/index.cjs +1 -0
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -0
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +3 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +57 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +57 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +75 -21
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +75 -21
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +52 -19
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +52 -19
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +53 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +53 -5
- package/src/lib/utils/hooks/events/index.d.ts +1 -1
- package/src/lib/utils/hooks/events/useWindowEvent/index.d.ts +1 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +24 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.d.ts +1 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +20 -0
- package/src/lib/utils/hooks/index.d.ts +2 -1
- 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 +65 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +65 -3
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +48 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +48 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +151 -78
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +151 -78
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +48 -5
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +48 -5
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +26 -13
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.d.ts +0 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +27 -14
- 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 +61 -15
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +17 -5
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +62 -16
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +50 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +50 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +54 -4
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +54 -4
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +70 -13
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +71 -14
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +52 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +52 -3
- 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 +64 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +64 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +54 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +54 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +52 -4
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +52 -4
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +63 -115
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +63 -115
- 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 +2 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +17 -2
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +18 -3
- 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 +8 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.d.ts +4 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +8 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +64 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +64 -1
- package/src/lib/utils/hooks/useHover/useHover.cjs +9 -3
- package/src/lib/utils/hooks/useHover/useHover.js +9 -3
- package/src/lib/utils/hooks/useHover/useHover.types.d.ts +8 -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 +79 -3
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +79 -3
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +74 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +74 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +54 -4
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +54 -4
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.d.ts +3 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +1 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +65 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +65 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +171 -24
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +4 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +171 -24
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -0
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +2 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +2 -1
- 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 +50 -3
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +50 -3
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +74 -27
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +75 -28
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +63 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +63 -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 +50 -31
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +50 -31
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +60 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +60 -2
- 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 +88 -13
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +88 -13
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +4 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +10 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -4
- 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 +12 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +12 -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 +51 -9
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +51 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +15 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +15 -8
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +70 -44
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +5 -7
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +71 -45
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +15 -13
- package/src/lib/views/AccountExistsView/AccountExistsView.js +15 -13
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +53 -2
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +53 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +51 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +51 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +52 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +52 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +12 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +12 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +16 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +16 -7
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +19 -11
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +19 -11
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +14 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +14 -6
- 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 +16 -7
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +16 -7
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +14 -6
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +14 -6
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +15 -7
- package/src/lib/views/EmailUpdate/EmailUpdate.js +15 -7
- package/src/lib/views/EmailVerification/EmailVerification.cjs +51 -58
- package/src/lib/views/EmailVerification/EmailVerification.js +51 -58
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +20 -11
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +20 -11
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +30 -14
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +30 -14
- 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 +20 -9
- package/src/lib/views/LoginView/LoginView.js +20 -9
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +18 -11
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +18 -11
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +52 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +52 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +13 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +13 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +14 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +14 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +54 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +55 -6
- package/src/lib/views/LoginView/useLoginView.cjs +50 -2
- package/src/lib/views/LoginView/useLoginView.js +50 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +15 -7
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +15 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +18 -10
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +18 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +19 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +19 -10
- package/src/lib/views/NoAccess/NoAccess.cjs +16 -7
- package/src/lib/views/NoAccess/NoAccess.js +16 -7
- package/src/lib/views/NoAccess/useNoAccessText.cjs +66 -4
- package/src/lib/views/NoAccess/useNoAccessText.js +66 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +16 -7
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +16 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +14 -6
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +14 -6
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +90 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.d.ts +6 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +86 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +120 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +7 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +116 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/index.d.ts +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +85 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.d.ts +14 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +81 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +121 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.d.ts +9 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +117 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +19 -11
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +19 -11
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +49 -36
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +50 -37
- 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 +37 -16
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +38 -17
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +23 -15
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +23 -15
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +27 -37
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +6 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +28 -38
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +116 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.d.ts +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +112 -0
- package/src/lib/views/Passkey/RenamePasskeyView/index.d.ts +1 -0
- package/src/lib/views/Passkey/index.d.ts +3 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +8 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +9 -5
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +8 -4
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +9 -5
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.cjs +17 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.d.ts +3 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.js +13 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/index.d.ts +1 -0
- 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/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +124 -16
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +31 -6
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +124 -18
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +16 -7
- package/src/lib/views/PendingConnectView/PendingConnectView.js +17 -8
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +20 -11
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +20 -11
- package/src/lib/views/QrCodeView/QRCode.cjs +17 -10
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -1
- package/src/lib/views/QrCodeView/QRCode.js +17 -10
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +11 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +11 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +27 -14
- package/src/lib/views/QrCodeView/QrCodeView.js +28 -15
- 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 +21 -13
- package/src/lib/views/SendBalanceView/SendBalanceView.js +21 -13
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +16 -10
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +16 -10
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +13 -6
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +13 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +13 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +13 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +25 -12
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +25 -12
- 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 +15 -8
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +15 -8
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +14 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +14 -6
- 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 +65 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +65 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +15 -7
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +15 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +31 -28
- package/src/lib/views/WalletGroupView/WalletGroupView.js +31 -28
- 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 +14 -6
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +14 -6
- package/src/lib/views/WalletList/WalletList.cjs +59 -12
- package/src/lib/views/WalletList/WalletList.js +59 -12
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +28 -12
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +29 -13
- 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 +15 -7
- package/src/lib/views/WalletLockedView/WalletLockedView.js +16 -8
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +33 -25
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +33 -25
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +25 -18
- package/src/lib/views/WalletUsedView/WalletUsedView.js +26 -19
- package/src/lib/views/viewToComponentMap.cjs +112 -43
- package/src/lib/views/viewToComponentMap.d.ts +2 -3
- package/src/lib/views/viewToComponentMap.js +112 -43
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +19 -9
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +24 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +25 -12
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +20 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +20 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +31 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +31 -19
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +61 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +61 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +62 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +62 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +51 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +51 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +15 -11
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +15 -11
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +15 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +15 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +31 -22
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +31 -22
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +20 -11
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.d.ts +3 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +20 -11
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +20 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +20 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +39 -14
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +38 -13
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +33 -24
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +33 -24
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +17 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +17 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +18 -11
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +18 -11
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +15 -7
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +27 -18
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +28 -19
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +27 -19
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +27 -19
- 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 +4 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +18 -25
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +4 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +18 -25
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +21 -12
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +21 -12
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/index.d.ts +1 -0
- package/src/lib/{views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs → widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs} +45 -36
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.d.ts +3 -0
- package/src/lib/{views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js → widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js} +45 -36
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +15 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +15 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +79 -22
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +79 -22
- 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 +69 -11
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +1 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +69 -11
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +65 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +65 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +68 -18
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +68 -18
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +17 -9
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +65 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +65 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +15 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +19 -10
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +19 -10
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +67 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +67 -18
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +25 -9
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +25 -9
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +15 -6
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +15 -6
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +36 -44
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +36 -44
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +15 -7
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +21 -28
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +21 -28
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +41 -13
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +41 -13
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +16 -7
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +53 -18
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +53 -18
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +16 -7
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +16 -7
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +16 -7
- 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/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.cjs +0 -23
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.d.ts +0 -4
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.js +0 -19
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +0 -76
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.d.ts +0 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +0 -72
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +0 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +0 -83
- package/src/lib/context/QrCodeContext/QrCodeContext.d.ts +0 -13
- package/src/lib/context/QrCodeContext/QrCodeContext.js +0 -77
- package/src/lib/context/QrCodeContext/index.d.ts +0 -1
- 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/utils/hooks/events/useEventListener/index.d.ts +0 -1
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.cjs +0 -26
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.d.ts +0 -1
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.js +0 -22
- package/src/lib/utils/hooks/useDefaultQrCode/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs +0 -34
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.d.ts +0 -7
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.js +0 -30
- 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
|
@@ -0,0 +1,116 @@
|
|
|
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 SvgMultipleAccountSecurity } from '../../../shared/assets/multiple-account-security.js';
|
|
14
|
+
import { ReactComponent as SvgPasskeyAccountSecurity } from '../../../shared/assets/passkey-account-security.js';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../utils/constants/values.js';
|
|
18
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import 'viem';
|
|
20
|
+
import '../../../shared/consts/index.js';
|
|
21
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
22
|
+
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
23
|
+
import '../../../context/ErrorContext/ErrorContext.js';
|
|
24
|
+
import '@dynamic-labs/multi-wallet';
|
|
25
|
+
import { getEnabledEmbeddedWalletsAuthenticators } from '../../../utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.js';
|
|
26
|
+
import 'viem/chains';
|
|
27
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
|
+
import '../../../config/ApiEndpoint.js';
|
|
30
|
+
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
31
|
+
import 'react-dom';
|
|
32
|
+
import '../../../context/ThemeContext/ThemeContext.js';
|
|
33
|
+
import { usePasskeyRecovery } from '../../../utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js';
|
|
34
|
+
import '@dynamic-labs/types';
|
|
35
|
+
import 'yup';
|
|
36
|
+
import '../../../context/MockContext/MockContext.js';
|
|
37
|
+
import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
38
|
+
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
39
|
+
import '@dynamic-labs/rpc-providers';
|
|
40
|
+
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
41
|
+
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
42
|
+
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
43
|
+
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
44
|
+
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
45
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
46
|
+
import '../../../context/FooterAnimationContext/index.js';
|
|
47
|
+
import { useIsTurnkeyWallet } from '../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js';
|
|
48
|
+
import { Typography } from '../../../components/Typography/Typography.js';
|
|
49
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
|
+
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
51
|
+
import 'react-focus-lock';
|
|
52
|
+
import '../../../context/LoadingContext/LoadingContext.js';
|
|
53
|
+
import 'i18next';
|
|
54
|
+
import 'qrcode';
|
|
55
|
+
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
|
+
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
|
+
import 'formik';
|
|
58
|
+
import { Button } from '../../../components/Button/Button.js';
|
|
59
|
+
import { ModalHeader } from '../../../components/ModalHeader/ModalHeader.js';
|
|
60
|
+
import '../../../components/IconButton/IconButton.js';
|
|
61
|
+
import '../../../components/Alert/Alert.js';
|
|
62
|
+
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
63
|
+
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
64
|
+
import '@dynamic-labs/viem-utils';
|
|
65
|
+
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
66
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
67
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
68
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
69
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
70
|
+
import '../../WalletList/WalletList.js';
|
|
71
|
+
import '@hcaptcha/react-hcaptcha';
|
|
72
|
+
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
73
|
+
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
74
|
+
import { EmbeddedAuthChoiceCards } from '../EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js';
|
|
75
|
+
import { AuthChoiceInfo } from './AuthChoiceInfo/AuthChoiceInfo.js';
|
|
76
|
+
|
|
77
|
+
const EmbeddedAuthChoice = ({ currentAction, }) => {
|
|
78
|
+
const { t } = useTranslation();
|
|
79
|
+
const { primaryWallet, projectSettings, setShowAuthFlow } = useInternalDynamicContext();
|
|
80
|
+
const { initPasskeyRecoveryProcess } = usePasskeyRecovery();
|
|
81
|
+
const { isTurnkeyWallet } = useIsTurnkeyWallet();
|
|
82
|
+
const supportedAuthenticators = useMemo(() => {
|
|
83
|
+
var _a;
|
|
84
|
+
const supportedAuths = getEnabledEmbeddedWalletsAuthenticators((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.supportedSecurityMethods);
|
|
85
|
+
const supportedMethods = Object.keys(supportedAuths);
|
|
86
|
+
if (currentAction !== 'helpSession') {
|
|
87
|
+
return supportedMethods.filter((auth) => auth !== 'email');
|
|
88
|
+
}
|
|
89
|
+
return supportedMethods;
|
|
90
|
+
}, [projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets]);
|
|
91
|
+
const isEmailAuthSessionActive = () => {
|
|
92
|
+
if (!primaryWallet || !isTurnkeyWallet) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
const turnkeyAuthenticatorHandler = primaryWallet.connector.getAuthenticatorHandler();
|
|
96
|
+
return turnkeyAuthenticatorHandler.isSessionActive();
|
|
97
|
+
};
|
|
98
|
+
const renderIcon = () => supportedAuthenticators.length > 1 ? (jsx(SvgMultipleAccountSecurity, {})) : (jsx(SvgPasskeyAccountSecurity, {}));
|
|
99
|
+
const buttonCopyKey = isEmailAuthSessionActive()
|
|
100
|
+
? 'dyn_embedded_authenticator.passkey.auth_info.start_button'
|
|
101
|
+
: 'dyn_embedded_authenticator.passkey.auth_info.add_button';
|
|
102
|
+
const title = currentAction === 'helpSession'
|
|
103
|
+
? 'dyn_embedded_authenticator.need_help_title'
|
|
104
|
+
: 'dyn_embedded_authenticator.title';
|
|
105
|
+
const description = currentAction === 'helpSession'
|
|
106
|
+
? 'dyn_embedded_authenticator.need_help_description'
|
|
107
|
+
: 'dyn_embedded_authenticator.description';
|
|
108
|
+
if (!(supportedAuthenticators === null || supportedAuthenticators === void 0 ? void 0 : supportedAuthenticators.length)) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
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: title, children: t(title) }) }), jsxs("div", { className: 'embedded-auth-choice', children: [jsx("div", { className: 'embedded-auth-choice__header', children: renderIcon() }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'embedded-auth-choice__subtitle', copykey: description, children: t(description) }), supportedAuthenticators.length > 1 ? (jsx(EmbeddedAuthChoiceCards, { currentAction: currentAction, supportedAuthenticators: supportedAuthenticators })) : (jsxs(Fragment, { children: [jsx(AuthChoiceInfo, { choice: 'passkey' }), jsx(Button, { dataTestId: 'passkey-only-choice-button', buttonVariant: 'brand-primary', color: 'brand-primary', expanded: true, onClick: () => initPasskeyRecoveryProcess('passkey'), copykey: buttonCopyKey, typographyProps: {
|
|
112
|
+
color: 'inherit',
|
|
113
|
+
}, children: t(buttonCopyKey) })] })), jsx(Button, { buttonVariant: 'primary', buttonClassName: 'embedded-auth-choice__skip-button', expanded: true, onClick: () => setShowAuthFlow(false), copykey: 'dyn_embedded_authenticator.skip', children: t('dyn_embedded_authenticator.skip') })] })] }));
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export { EmbeddedAuthChoice };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
7
|
+
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
8
|
+
require('react');
|
|
9
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
10
|
+
require('../../../../../../_virtual/_tslib.cjs');
|
|
11
|
+
require('@dynamic-labs/utils');
|
|
12
|
+
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
13
|
+
require('@dynamic-labs/sdk-api');
|
|
14
|
+
require('../../../../shared/logger.cjs');
|
|
15
|
+
require('@dynamic-labs/iconic');
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
17
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
18
|
+
var chevronLeft = require('../../../../shared/assets/chevron-left.cjs');
|
|
19
|
+
require('@dynamic-labs/wallet-book');
|
|
20
|
+
require('../../../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../../../utils/constants/values.cjs');
|
|
22
|
+
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
|
+
require('viem');
|
|
24
|
+
require('../../../../shared/consts/index.cjs');
|
|
25
|
+
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
+
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
require('viem/chains');
|
|
29
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
|
+
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
31
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
32
|
+
require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
33
|
+
require('react-dom');
|
|
34
|
+
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
35
|
+
require('@dynamic-labs/types');
|
|
36
|
+
require('yup');
|
|
37
|
+
require('../../../../context/MockContext/MockContext.cjs');
|
|
38
|
+
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
39
|
+
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
40
|
+
require('@dynamic-labs/rpc-providers');
|
|
41
|
+
require('../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
42
|
+
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
43
|
+
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
44
|
+
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
45
|
+
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
47
|
+
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
48
|
+
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
49
|
+
var Badge = require('../../../../components/Badge/Badge.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
|
+
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
55
|
+
require('i18next');
|
|
56
|
+
require('qrcode');
|
|
57
|
+
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
|
+
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
59
|
+
require('formik');
|
|
60
|
+
var spinner = require('../../../../components/Spinner/spinner.cjs');
|
|
61
|
+
require('../../../../components/IconButton/IconButton.cjs');
|
|
62
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
63
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
|
+
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
|
+
require('@dynamic-labs/viem-utils');
|
|
66
|
+
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
68
|
+
require('../../../../components/MenuList/Dropdown/Dropdown.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
|
+
|
|
76
|
+
const ActionCard = ({ titleKey, descriptionKey, description, LeadingIcon, action, badgeVariant, badgeKey, isLoading, dataTestId, }) => {
|
|
77
|
+
const { t } = reactI18next.useTranslation();
|
|
78
|
+
return (jsxRuntime.jsxs("button", { className: 'action-card', onClick: action, "data-testid": dataTestId, children: [jsxRuntime.jsx(Icon.Icon, { className: 'action-card__icon', children: LeadingIcon }), jsxRuntime.jsxs("div", { className: 'action-card__content', children: [jsxRuntime.jsxs("div", { className: 'action-card__content__row', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'medium', copykey: titleKey, children: t(titleKey) }), jsxRuntime.jsx(Badge.Badge, { text: t(badgeKey), className: classNames.classNames('action-card__content__row__badge', {
|
|
79
|
+
'action-card__content__row__badge--primary': badgeVariant === 'primary',
|
|
80
|
+
}, {
|
|
81
|
+
'action-card__content__row__badge--secondary': badgeVariant === 'secondary',
|
|
82
|
+
}), copykey: badgeKey })] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', copykey: descriptionKey, children: description })] }), jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', className: 'action-card__action-icon', children: isLoading ? jsxRuntime.jsx(spinner.Spinner, {}) : jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })] }));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.ActionCard = ActionCard;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
titleKey: string;
|
|
4
|
+
descriptionKey: string;
|
|
5
|
+
description: string;
|
|
6
|
+
badgeKey: string;
|
|
7
|
+
badgeVariant: 'primary' | 'secondary';
|
|
8
|
+
action: VoidFunction;
|
|
9
|
+
LeadingIcon: ReactElement;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const ActionCard: ({ titleKey, descriptionKey, description, LeadingIcon, action, badgeVariant, badgeKey, isLoading, dataTestId, }: Props) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { classNames } from '../../../../utils/functions/classNames/classNames.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../../../../events/dynamicEvents.js';
|
|
6
|
+
import '../../../../../../_virtual/_tslib.js';
|
|
7
|
+
import '@dynamic-labs/utils';
|
|
8
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
9
|
+
import '@dynamic-labs/sdk-api';
|
|
10
|
+
import '../../../../shared/logger.js';
|
|
11
|
+
import '@dynamic-labs/iconic';
|
|
12
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
13
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
14
|
+
import { ReactComponent as SvgChevronLeft } from '../../../../shared/assets/chevron-left.js';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../../utils/constants/values.js';
|
|
18
|
+
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import 'viem';
|
|
20
|
+
import '../../../../shared/consts/index.js';
|
|
21
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
23
|
+
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import 'viem/chains';
|
|
25
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
26
|
+
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
27
|
+
import '../../../../config/ApiEndpoint.js';
|
|
28
|
+
import '../../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
31
|
+
import '@dynamic-labs/types';
|
|
32
|
+
import 'yup';
|
|
33
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
34
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
35
|
+
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
36
|
+
import '@dynamic-labs/rpc-providers';
|
|
37
|
+
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
38
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
39
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
40
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
41
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
42
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
43
|
+
import '../../../../context/FooterAnimationContext/index.js';
|
|
44
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
45
|
+
import { Badge } from '../../../../components/Badge/Badge.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 { Icon } from '../../../../components/Icon/Icon.js';
|
|
51
|
+
import 'i18next';
|
|
52
|
+
import 'qrcode';
|
|
53
|
+
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
|
+
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
55
|
+
import 'formik';
|
|
56
|
+
import { Spinner } from '../../../../components/Spinner/spinner.js';
|
|
57
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
58
|
+
import '../../../../components/Alert/Alert.js';
|
|
59
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
61
|
+
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
64
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.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
|
+
|
|
72
|
+
const ActionCard = ({ titleKey, descriptionKey, description, LeadingIcon, action, badgeVariant, badgeKey, isLoading, dataTestId, }) => {
|
|
73
|
+
const { t } = useTranslation();
|
|
74
|
+
return (jsxs("button", { className: 'action-card', onClick: action, "data-testid": dataTestId, children: [jsx(Icon, { className: 'action-card__icon', children: LeadingIcon }), jsxs("div", { className: 'action-card__content', children: [jsxs("div", { className: 'action-card__content__row', children: [jsx(Typography, { variant: 'body_normal', weight: 'medium', copykey: titleKey, children: t(titleKey) }), jsx(Badge, { text: t(badgeKey), className: classNames('action-card__content__row__badge', {
|
|
75
|
+
'action-card__content__row__badge--primary': badgeVariant === 'primary',
|
|
76
|
+
}, {
|
|
77
|
+
'action-card__content__row__badge--secondary': badgeVariant === 'secondary',
|
|
78
|
+
}), copykey: badgeKey })] }), jsx(Typography, { variant: 'body_small', color: 'secondary', copykey: descriptionKey, children: description })] }), jsx(Icon, { color: 'text-tertiary', className: 'action-card__action-icon', children: isLoading ? jsx(Spinner, {}) : jsx(SvgChevronLeft, {}) })] }));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { ActionCard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionCard } from './ActionCard';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
require('../../../events/dynamicEvents.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 androidTouchId = require('../../../shared/assets/android-touch-id.cjs');
|
|
18
|
+
var mail = require('../../../shared/assets/mail.cjs');
|
|
19
|
+
require('@dynamic-labs/wallet-book');
|
|
20
|
+
require('../../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../../utils/constants/values.cjs');
|
|
22
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
|
+
require('viem');
|
|
24
|
+
require('../../../shared/consts/index.cjs');
|
|
25
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
26
|
+
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
27
|
+
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
28
|
+
require('@dynamic-labs/multi-wallet');
|
|
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
|
+
var useElementById = require('../../../utils/hooks/useElementById/useElementById.cjs');
|
|
36
|
+
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
37
|
+
var constants = require('../PasskeyRecovery/constants.cjs');
|
|
38
|
+
var useInitEmbeddedWalletAuthMethod = require('../../../utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs');
|
|
39
|
+
require('@dynamic-labs/types');
|
|
40
|
+
require('yup');
|
|
41
|
+
require('../../../context/MockContext/MockContext.cjs');
|
|
42
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
43
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
44
|
+
require('@dynamic-labs/rpc-providers');
|
|
45
|
+
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
|
+
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
47
|
+
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
48
|
+
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
49
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
50
|
+
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
51
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
52
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
|
+
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
|
+
require('react-focus-lock');
|
|
55
|
+
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
+
var Icon = require('../../../components/Icon/Icon.cjs');
|
|
57
|
+
require('i18next');
|
|
58
|
+
require('qrcode');
|
|
59
|
+
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
|
+
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
|
+
require('formik');
|
|
62
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
63
|
+
require('../../../components/Alert/Alert.cjs');
|
|
64
|
+
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
65
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
66
|
+
require('@dynamic-labs/viem-utils');
|
|
67
|
+
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
68
|
+
var PasskeyDeviceIcon = require('../PasskeyDeviceIcon/PasskeyDeviceIcon.cjs');
|
|
69
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
70
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
71
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
72
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
73
|
+
require('../../WalletList/WalletList.cjs');
|
|
74
|
+
require('@hcaptcha/react-hcaptcha');
|
|
75
|
+
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
76
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
77
|
+
var ActionCard = require('./ActionCard/ActionCard.cjs');
|
|
78
|
+
|
|
79
|
+
const EmbeddedAuthChoiceCards = ({ currentAction, supportedAuthenticators, }) => {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const [selectedAuthType, setSelectedAuthType] = React.useState();
|
|
82
|
+
const { projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
83
|
+
const { t } = reactI18next.useTranslation();
|
|
84
|
+
const { initAuthMethod, isLoading } = useInitEmbeddedWalletAuthMethod.useInitEmbeddedWalletAuthMethod();
|
|
85
|
+
const iframeContainerRef = useElementById.useElementById(constants.iframeContainerId);
|
|
86
|
+
const supportedAuthenticatorsMap = {
|
|
87
|
+
email: {
|
|
88
|
+
badgeKey: 'dyn_embedded_authenticator.email.badge',
|
|
89
|
+
description: t('dyn_embedded_authenticator.email.description', {
|
|
90
|
+
expiration: (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.sessionKeyDuration) === null || _b === void 0 ? void 0 : _b.amount,
|
|
91
|
+
}),
|
|
92
|
+
descriptionKey: 'dyn_embedded_authenticator.email.description',
|
|
93
|
+
icon: (jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', size: 'small', children: jsxRuntime.jsx(mail.ReactComponent, {}) }, 'one-time-code-icon')),
|
|
94
|
+
titleKey: 'dyn_embedded_authenticator.email.title',
|
|
95
|
+
},
|
|
96
|
+
passkey: {
|
|
97
|
+
badgeKey: 'dyn_embedded_authenticator.passkey.badge',
|
|
98
|
+
description: t('dyn_embedded_authenticator.passkey.description'),
|
|
99
|
+
descriptionKey: 'dyn_embedded_authenticator.passkey.description',
|
|
100
|
+
icon: (jsxRuntime.jsx(PasskeyDeviceIcon.PasskeyDeviceIcon, { defaultIcon: jsxRuntime.jsx(androidTouchId.ReactComponent, { "data-testid": 'default-icon' }) })),
|
|
101
|
+
titleKey: 'dyn_embedded_authenticator.passkey.title',
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
const handleSelection = (authenticatorType) => () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
105
|
+
setSelectedAuthType(authenticatorType);
|
|
106
|
+
yield initAuthMethod({
|
|
107
|
+
authenticatorType: authenticatorType,
|
|
108
|
+
currentAction,
|
|
109
|
+
iframeContainer: iframeContainerRef.current,
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
return (jsxRuntime.jsx("div", { className: 'embedded-auth-choice-cards', children: supportedAuthenticators &&
|
|
113
|
+
supportedAuthenticators.map((authenticatorType) => (jsxRuntime.jsx(ActionCard.ActionCard, { LeadingIcon: supportedAuthenticatorsMap[authenticatorType]
|
|
114
|
+
.icon, action: handleSelection(authenticatorType), badgeKey: supportedAuthenticatorsMap[authenticatorType]
|
|
115
|
+
.badgeKey, badgeVariant: authenticatorType === 'passkey' ? 'primary' : 'secondary', descriptionKey: supportedAuthenticatorsMap[authenticatorType]
|
|
116
|
+
.descriptionKey, description: supportedAuthenticatorsMap[authenticatorType]
|
|
117
|
+
.description, titleKey: supportedAuthenticatorsMap[authenticatorType]
|
|
118
|
+
.titleKey, isLoading: isLoading && authenticatorType === selectedAuthType, dataTestId: `embedded-auth-choice__item-${authenticatorType}` }, authenticatorType))) }));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
exports.EmbeddedAuthChoiceCards = EmbeddedAuthChoiceCards;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AuthenticatorType } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import { EmbeddedWalletCurrentAction } from '../../../shared';
|
|
4
|
+
interface EmbeddedAuthChoiceCardsProps {
|
|
5
|
+
currentAction?: EmbeddedWalletCurrentAction;
|
|
6
|
+
supportedAuthenticators: AuthenticatorType[];
|
|
7
|
+
}
|
|
8
|
+
export declare const EmbeddedAuthChoiceCards: FC<EmbeddedAuthChoiceCardsProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import '../../../events/dynamicEvents.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../../context/DynamicContext/DynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/sdk-api';
|
|
9
|
+
import '../../../shared/logger.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import { ReactComponent as SvgAndroidTouchId } from '../../../shared/assets/android-touch-id.js';
|
|
14
|
+
import { ReactComponent as SvgMail } from '../../../shared/assets/mail.js';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../utils/constants/values.js';
|
|
18
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import 'viem';
|
|
20
|
+
import '../../../shared/consts/index.js';
|
|
21
|
+
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
22
|
+
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
23
|
+
import '../../../context/ErrorContext/ErrorContext.js';
|
|
24
|
+
import '@dynamic-labs/multi-wallet';
|
|
25
|
+
import 'viem/chains';
|
|
26
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
28
|
+
import '../../../config/ApiEndpoint.js';
|
|
29
|
+
import '../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
30
|
+
import 'react-dom';
|
|
31
|
+
import { useElementById } from '../../../utils/hooks/useElementById/useElementById.js';
|
|
32
|
+
import '../../../context/ThemeContext/ThemeContext.js';
|
|
33
|
+
import { iframeContainerId } from '../PasskeyRecovery/constants.js';
|
|
34
|
+
import { useInitEmbeddedWalletAuthMethod } from '../../../utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js';
|
|
35
|
+
import '@dynamic-labs/types';
|
|
36
|
+
import 'yup';
|
|
37
|
+
import '../../../context/MockContext/MockContext.js';
|
|
38
|
+
import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
39
|
+
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
40
|
+
import '@dynamic-labs/rpc-providers';
|
|
41
|
+
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
43
|
+
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
44
|
+
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
45
|
+
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
46
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
47
|
+
import '../../../context/FooterAnimationContext/index.js';
|
|
48
|
+
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
|
+
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
|
+
import 'react-focus-lock';
|
|
51
|
+
import '../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import { Icon } from '../../../components/Icon/Icon.js';
|
|
53
|
+
import 'i18next';
|
|
54
|
+
import 'qrcode';
|
|
55
|
+
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
|
+
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
|
+
import 'formik';
|
|
58
|
+
import '../../../components/IconButton/IconButton.js';
|
|
59
|
+
import '../../../components/Alert/Alert.js';
|
|
60
|
+
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
61
|
+
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
62
|
+
import '@dynamic-labs/viem-utils';
|
|
63
|
+
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
64
|
+
import { PasskeyDeviceIcon } from '../PasskeyDeviceIcon/PasskeyDeviceIcon.js';
|
|
65
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
66
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
67
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
68
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
69
|
+
import '../../WalletList/WalletList.js';
|
|
70
|
+
import '@hcaptcha/react-hcaptcha';
|
|
71
|
+
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
72
|
+
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
73
|
+
import { ActionCard } from './ActionCard/ActionCard.js';
|
|
74
|
+
|
|
75
|
+
const EmbeddedAuthChoiceCards = ({ currentAction, supportedAuthenticators, }) => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const [selectedAuthType, setSelectedAuthType] = useState();
|
|
78
|
+
const { projectSettings } = useInternalDynamicContext();
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const { initAuthMethod, isLoading } = useInitEmbeddedWalletAuthMethod();
|
|
81
|
+
const iframeContainerRef = useElementById(iframeContainerId);
|
|
82
|
+
const supportedAuthenticatorsMap = {
|
|
83
|
+
email: {
|
|
84
|
+
badgeKey: 'dyn_embedded_authenticator.email.badge',
|
|
85
|
+
description: t('dyn_embedded_authenticator.email.description', {
|
|
86
|
+
expiration: (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.sessionKeyDuration) === null || _b === void 0 ? void 0 : _b.amount,
|
|
87
|
+
}),
|
|
88
|
+
descriptionKey: 'dyn_embedded_authenticator.email.description',
|
|
89
|
+
icon: (jsx(Icon, { color: 'text-tertiary', size: 'small', children: jsx(SvgMail, {}) }, 'one-time-code-icon')),
|
|
90
|
+
titleKey: 'dyn_embedded_authenticator.email.title',
|
|
91
|
+
},
|
|
92
|
+
passkey: {
|
|
93
|
+
badgeKey: 'dyn_embedded_authenticator.passkey.badge',
|
|
94
|
+
description: t('dyn_embedded_authenticator.passkey.description'),
|
|
95
|
+
descriptionKey: 'dyn_embedded_authenticator.passkey.description',
|
|
96
|
+
icon: (jsx(PasskeyDeviceIcon, { defaultIcon: jsx(SvgAndroidTouchId, { "data-testid": 'default-icon' }) })),
|
|
97
|
+
titleKey: 'dyn_embedded_authenticator.passkey.title',
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
const handleSelection = (authenticatorType) => () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
setSelectedAuthType(authenticatorType);
|
|
102
|
+
yield initAuthMethod({
|
|
103
|
+
authenticatorType: authenticatorType,
|
|
104
|
+
currentAction,
|
|
105
|
+
iframeContainer: iframeContainerRef.current,
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
return (jsx("div", { className: 'embedded-auth-choice-cards', children: supportedAuthenticators &&
|
|
109
|
+
supportedAuthenticators.map((authenticatorType) => (jsx(ActionCard, { LeadingIcon: supportedAuthenticatorsMap[authenticatorType]
|
|
110
|
+
.icon, action: handleSelection(authenticatorType), badgeKey: supportedAuthenticatorsMap[authenticatorType]
|
|
111
|
+
.badgeKey, badgeVariant: authenticatorType === 'passkey' ? 'primary' : 'secondary', descriptionKey: supportedAuthenticatorsMap[authenticatorType]
|
|
112
|
+
.descriptionKey, description: supportedAuthenticatorsMap[authenticatorType]
|
|
113
|
+
.description, titleKey: supportedAuthenticatorsMap[authenticatorType]
|
|
114
|
+
.titleKey, isLoading: isLoading && authenticatorType === selectedAuthType, dataTestId: `embedded-auth-choice__item-${authenticatorType}` }, authenticatorType))) }));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { EmbeddedAuthChoiceCards };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmbeddedAuthChoiceCards } from './EmbeddedAuthChoiceCards';
|