@dynamic-labs/sdk-react-core 1.2.0-alpha.0 → 1.2.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 +31 -0
- package/package.cjs +1 -2
- package/package.js +1 -2
- package/package.json +11 -11
- package/src/index.cjs +3 -0
- package/src/index.js +3 -1
- package/src/lib/Main.cjs +2 -0
- package/src/lib/Main.js +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +2 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +2 -0
- package/src/lib/components/Captcha/Captcha.cjs +2 -0
- package/src/lib/components/Captcha/Captcha.js +2 -0
- package/src/lib/components/Divider/Divider.cjs +2 -0
- package/src/lib/components/Divider/Divider.js +2 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -0
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -13
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -13
- package/src/lib/components/LogoutButton/LogoutButton.cjs +2 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +2 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +2 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +2 -0
- package/src/lib/components/Modal/Modal.cjs +2 -0
- package/src/lib/components/Modal/Modal.js +2 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +2 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +2 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +2 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.js +2 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +2 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +2 -0
- package/src/lib/components/Portal/Portal.cjs +2 -0
- package/src/lib/components/Portal/Portal.js +2 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +2 -0
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +2 -0
- package/src/lib/components/RenderView/RenderView.cjs +2 -0
- package/src/lib/components/RenderView/RenderView.js +2 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +2 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +2 -0
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +2 -0
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +2 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +2 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.js +2 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +2 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.js +2 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +2 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +2 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +2 -0
- package/src/lib/components/Toolkit/Toolkit.js +2 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +2 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +2 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +2 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +2 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -0
- package/src/lib/components/Tooltip/Tooltip.js +2 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +2 -0
- package/src/lib/components/TosAndPp/TosAndPp.js +2 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +2 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +2 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +2 -0
- package/src/lib/components/UserAddress/UserAddress.js +2 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -0
- package/src/lib/components/UserProfile/UserProfile.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +6 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +6 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +2 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.js +2 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +12 -7
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +5 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +14 -9
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +10 -0
- package/src/lib/context/DynamicContext/helpers/helpers.d.ts +6 -0
- package/src/lib/context/DynamicContext/helpers/helpers.js +10 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +2 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +2 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +3 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +2 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +2 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +4 -1
- package/src/lib/context/FundingContext/FundingContext.js +4 -1
- package/src/lib/context/LoadingContext/LoadingContext.cjs +2 -0
- package/src/lib/context/LoadingContext/LoadingContext.js +2 -0
- package/src/lib/context/MockContext/MockContext.cjs +2 -0
- package/src/lib/context/MockContext/MockContext.js +2 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +9 -4
- package/src/lib/context/PasskeyContext/PasskeyContext.js +9 -4
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +2 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +2 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +5 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +5 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +10 -5
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +11 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +2 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +2 -0
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +2 -0
- package/src/lib/context/WalletContext/WalletContext.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +2 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +2 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -0
- package/src/lib/locale/en/translation.cjs +18 -0
- package/src/lib/locale/en/translation.d.ts +18 -0
- package/src/lib/locale/en/translation.js +18 -0
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +2 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +2 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +10 -9
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +10 -9
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -2
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +2 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +2 -0
- package/src/lib/shared/types/index.d.ts +1 -1
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +3 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +1 -1
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +3 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/walletFilters/index.cjs +6 -0
- package/src/lib/utils/functions/walletFilters/index.d.ts +5 -0
- package/src/lib/utils/functions/walletFilters/index.js +6 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +7 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +4 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +4 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +2 -0
- package/src/lib/utils/hooks/index.d.ts +0 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +2 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +2 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +2 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +2 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +2 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +2 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +2 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +2 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +2 -0
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +2 -0
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +2 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +2 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +2 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +2 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +2 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +2 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +2 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +3 -6
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +3 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +2 -0
- package/src/lib/utils/hooks/useEstimateL1Fee/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEstimateL1Fee/useEstimateL1Fee.cjs +31 -0
- package/src/lib/utils/hooks/useEstimateL1Fee/useEstimateL1Fee.d.ts +9 -0
- package/src/lib/utils/hooks/useEstimateL1Fee/useEstimateL1Fee.js +26 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +2 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +2 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +2 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +2 -0
- package/src/lib/utils/hooks/useInterval/useInterval.cjs +27 -0
- package/src/lib/utils/hooks/useInterval/useInterval.js +23 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +2 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +2 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +2 -0
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +2 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +2 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +2 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +2 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +2 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +11 -15
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +12 -16
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +2 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +2 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +2 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +2 -0
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +1 -1
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +1 -1
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +103 -29
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +5 -10
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +103 -30
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +2 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +2 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +2 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +2 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +2 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +2 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +2 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +2 -0
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +2 -0
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -2
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +2 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +2 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +4 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -5
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +4 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +2 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.js +2 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +2 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +2 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +2 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +2 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +22 -18
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +5 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +23 -19
- package/src/lib/views/LoginView/LoginView.cjs +2 -0
- package/src/lib/views/LoginView/LoginView.js +2 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +2 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +2 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +2 -0
- package/src/lib/views/LoginView/useLoginView.cjs +2 -0
- package/src/lib/views/LoginView/useLoginView.js +2 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +2 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +2 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -0
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -0
- package/src/lib/views/NoAccess/NoAccess.js +2 -0
- package/src/lib/views/NoAccess/useNoAccessText.cjs +2 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +2 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +2 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +2 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +23 -8
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +23 -8
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +5 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +5 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +2 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +2 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +2 -0
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +2 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +2 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +2 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +5 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +5 -0
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +2 -0
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +2 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -0
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +2 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +20 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +2 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +20 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +2 -0
- package/src/lib/views/QrCodeView/QRCode.js +2 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +2 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +2 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +2 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +2 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +2 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +8 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.js +8 -6
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +21 -10
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +5 -2
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +21 -10
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +6 -4
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +6 -4
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +16 -2
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +16 -2
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +28 -12
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +3 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +28 -12
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +2 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +2 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +2 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +2 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +2 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +2 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -0
- package/src/lib/views/WalletList/WalletList.cjs +3 -2
- package/src/lib/views/WalletList/WalletList.js +3 -2
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +2 -0
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +2 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +84 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.d.ts +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +80 -0
- package/src/lib/views/WalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -0
- package/src/lib/views/viewToComponentMap.cjs +4 -0
- package/src/lib/views/viewToComponentMap.js +4 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +2 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +2 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +2 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +2 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +2 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +69 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +69 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +5 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +6 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +12 -5
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +12 -5
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -0
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +0 -10
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +0 -6
- package/src/lib/views/SendBalanceView/components/index.d.ts +0 -1
|
@@ -48,6 +48,7 @@ var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
|
48
48
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
49
|
require('../../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
50
|
require('react-focus-lock');
|
|
51
|
+
var Divider = require('../../../../../components/Divider/Divider.cjs');
|
|
51
52
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
53
|
require('i18next');
|
|
53
54
|
require('qrcode');
|
|
@@ -59,9 +60,12 @@ require('../../../../../components/Alert/Alert.cjs');
|
|
|
59
60
|
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
60
61
|
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
61
62
|
require('@dynamic-labs/viem-utils');
|
|
63
|
+
require('../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
64
|
+
require('../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
62
65
|
require('../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
63
66
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
64
67
|
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
68
|
+
var LogoutButton = require('../../../../../components/LogoutButton/LogoutButton.cjs');
|
|
65
69
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
66
70
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
67
71
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
@@ -70,6 +74,6 @@ require('@hcaptcha/react-hcaptcha');
|
|
|
70
74
|
require('../../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
71
75
|
require('../../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
72
76
|
|
|
73
|
-
const SwitchAccountView = ({ selectedWalletToSwitchTo }) => (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Switch to wallet", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.address, 3, 3) }), ' ', "in ", selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.connector.name, " to make it active."] }));
|
|
77
|
+
const SwitchAccountView = ({ selectedWalletToSwitchTo }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Switch to wallet", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.address, 3, 3) }), ' ', "in ", selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.connector.name, " to make it active."] }), jsxRuntime.jsx(Divider.Divider, { fullWidth: true, text: 'Or' }), jsxRuntime.jsx(LogoutButton.LogoutButton, { isTextButton: false })] }));
|
|
74
78
|
|
|
75
79
|
exports.SwitchAccountView = SwitchAccountView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../../../events/dynamicEvents.js';
|
|
4
4
|
import '../../../../../../../_virtual/_tslib.js';
|
|
@@ -44,6 +44,7 @@ import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
|
44
44
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
45
|
import '../../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
46
|
import 'react-focus-lock';
|
|
47
|
+
import { Divider } from '../../../../../components/Divider/Divider.js';
|
|
47
48
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
48
49
|
import 'i18next';
|
|
49
50
|
import 'qrcode';
|
|
@@ -55,9 +56,12 @@ import '../../../../../components/Alert/Alert.js';
|
|
|
55
56
|
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
56
57
|
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
57
58
|
import '@dynamic-labs/viem-utils';
|
|
59
|
+
import '../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
60
|
+
import '../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
58
61
|
import '../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
59
62
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
60
63
|
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
64
|
+
import { LogoutButton } from '../../../../../components/LogoutButton/LogoutButton.js';
|
|
61
65
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
62
66
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
63
67
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
@@ -66,6 +70,6 @@ import '@hcaptcha/react-hcaptcha';
|
|
|
66
70
|
import '../../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
71
|
import '../../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
68
72
|
|
|
69
|
-
const SwitchAccountView = ({ selectedWalletToSwitchTo }) => (jsxs(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Switch to wallet", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress(selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.address, 3, 3) }), ' ', "in ", selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.connector.name, " to make it active."] }));
|
|
73
|
+
const SwitchAccountView = ({ selectedWalletToSwitchTo }) => (jsxs(Fragment, { children: [jsxs(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Switch to wallet", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress(selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.address, 3, 3) }), ' ', "in ", selectedWalletToSwitchTo === null || selectedWalletToSwitchTo === void 0 ? void 0 : selectedWalletToSwitchTo.connector.name, " to make it active."] }), jsx(Divider, { fullWidth: true, text: 'Or' }), jsx(LogoutButton, { isTextButton: false })] }));
|
|
70
74
|
|
|
71
75
|
export { SwitchAccountView };
|
|
@@ -63,6 +63,8 @@ require('../../../../../components/Alert/Alert.cjs');
|
|
|
63
63
|
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
64
|
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
65
|
require('@dynamic-labs/viem-utils');
|
|
66
|
+
require('../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
67
|
+
require('../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
66
68
|
require('../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
69
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
68
70
|
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -59,6 +59,8 @@ import '../../../../../components/Alert/Alert.js';
|
|
|
59
59
|
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
60
|
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
61
61
|
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import '../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
63
|
+
import '../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
62
64
|
import '../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
65
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
64
66
|
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -62,6 +62,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
62
62
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
63
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
64
|
require('@dynamic-labs/viem-utils');
|
|
65
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
66
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
65
67
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
68
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
67
69
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -58,6 +58,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
58
58
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
59
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
60
|
import '@dynamic-labs/viem-utils';
|
|
61
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
62
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
61
63
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
62
64
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
63
65
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs
CHANGED
|
@@ -65,6 +65,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
65
65
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
66
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
67
|
require('@dynamic-labs/viem-utils');
|
|
68
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
69
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
68
70
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
69
71
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
70
72
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js
CHANGED
|
@@ -61,6 +61,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
61
61
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
62
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
63
|
import '@dynamic-labs/viem-utils';
|
|
64
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
65
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
64
66
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
65
67
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
66
68
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -63,6 +63,8 @@ require('../../../../../components/Alert/Alert.cjs');
|
|
|
63
63
|
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
64
|
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
65
|
require('@dynamic-labs/viem-utils');
|
|
66
|
+
require('../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
67
|
+
require('../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
66
68
|
require('../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
69
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
68
70
|
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -59,6 +59,8 @@ import '../../../../../components/Alert/Alert.js';
|
|
|
59
59
|
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
60
|
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
61
61
|
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import '../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
63
|
+
import '../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
62
64
|
import '../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
65
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
64
66
|
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -72,6 +72,8 @@ var DefaultPendingSignModalContent = require('./DefaultPendingSignModalContent/D
|
|
|
72
72
|
require('../../context/DynamicWidgetContext.cjs');
|
|
73
73
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
74
74
|
require('@dynamic-labs/viem-utils');
|
|
75
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
76
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
75
77
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
76
78
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
77
79
|
|
|
@@ -68,6 +68,8 @@ import { DefaultPendingSignModalContent } from './DefaultPendingSignModalContent
|
|
|
68
68
|
import '../../context/DynamicWidgetContext.js';
|
|
69
69
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
70
70
|
import '@dynamic-labs/viem-utils';
|
|
71
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
72
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
71
73
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
72
74
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
73
75
|
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs
CHANGED
|
@@ -63,6 +63,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
63
63
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
64
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
65
|
require('@dynamic-labs/viem-utils');
|
|
66
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
67
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
66
68
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
69
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
68
70
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js
CHANGED
|
@@ -59,6 +59,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
59
59
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
60
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
61
61
|
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
63
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
62
64
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
65
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
64
66
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -64,6 +64,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
64
64
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
65
65
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
66
66
|
require('@dynamic-labs/viem-utils');
|
|
67
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
68
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
67
69
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
68
70
|
var CopyButton = require('../../../../components/CopyButton/CopyButton.cjs');
|
|
69
71
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
@@ -60,6 +60,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
60
60
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
61
61
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
62
62
|
import '@dynamic-labs/viem-utils';
|
|
63
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
64
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
63
65
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
64
66
|
import { CopyButton } from '../../../../components/CopyButton/CopyButton.js';
|
|
65
67
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
@@ -71,6 +71,8 @@ var WidgetPortal = require('../../components/WidgetPortal/WidgetPortal.cjs');
|
|
|
71
71
|
require('../../context/DynamicWidgetContext.cjs');
|
|
72
72
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
73
73
|
require('@dynamic-labs/viem-utils');
|
|
74
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
75
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
74
76
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
75
77
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
76
78
|
|
|
@@ -67,6 +67,8 @@ import { WidgetPortal } from '../../components/WidgetPortal/WidgetPortal.js';
|
|
|
67
67
|
import '../../context/DynamicWidgetContext.js';
|
|
68
68
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
69
69
|
import '@dynamic-labs/viem-utils';
|
|
70
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
71
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
70
72
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
71
73
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
72
74
|
|
|
@@ -61,6 +61,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
61
61
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
62
62
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
63
63
|
require('@dynamic-labs/viem-utils');
|
|
64
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
65
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
64
66
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
65
67
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
66
68
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -57,6 +57,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
57
57
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
58
58
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
59
59
|
import '@dynamic-labs/viem-utils';
|
|
60
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
61
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
60
62
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
61
63
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
62
64
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs
CHANGED
|
@@ -65,6 +65,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
65
65
|
var PasskeyCreatedSuccessBanner = require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
66
|
var PasskeyContext = require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
67
|
require('@dynamic-labs/viem-utils');
|
|
68
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
69
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
68
70
|
var PasskeyCard = require('./PasskeyCard/PasskeyCard.cjs');
|
|
69
71
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
70
72
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js
CHANGED
|
@@ -61,6 +61,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
61
61
|
import { PasskeyCreatedSuccessBanner } from '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
62
|
import { usePasskeyContext } from '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
63
|
import '@dynamic-labs/viem-utils';
|
|
64
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
65
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
64
66
|
import { PasskeyCard } from './PasskeyCard/PasskeyCard.js';
|
|
65
67
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
66
68
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs
CHANGED
|
@@ -62,6 +62,8 @@ require('../../../../../components/Alert/Alert.cjs');
|
|
|
62
62
|
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
63
|
var PasskeyContext = require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
64
|
require('@dynamic-labs/viem-utils');
|
|
65
|
+
require('../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
66
|
+
require('../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
65
67
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
66
68
|
require('../../../../../components/IsBrowser/IsBrowser.cjs');
|
|
67
69
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js
CHANGED
|
@@ -58,6 +58,8 @@ import '../../../../../components/Alert/Alert.js';
|
|
|
58
58
|
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
59
|
import { usePasskeyContext } from '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
60
|
import '@dynamic-labs/viem-utils';
|
|
61
|
+
import '../../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
62
|
+
import '../../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
61
63
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
62
64
|
import '../../../../../components/IsBrowser/IsBrowser.js';
|
|
63
65
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
@@ -63,6 +63,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
63
63
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
64
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
65
65
|
require('@dynamic-labs/viem-utils');
|
|
66
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
67
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
66
68
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
67
69
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
68
70
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -59,6 +59,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
59
59
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
60
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
61
61
|
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
63
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
62
64
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
63
65
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
64
66
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -16,7 +16,6 @@ require('../../../../context/ViewContext/ViewContext.cjs');
|
|
|
16
16
|
var androidTouchId = require('../../../../shared/assets/android-touch-id.cjs');
|
|
17
17
|
var checkCircle = require('../../../../shared/assets/check-circle.cjs');
|
|
18
18
|
var chevronLeft = require('../../../../shared/assets/chevron-left.cjs');
|
|
19
|
-
var lock = require('../../../../shared/assets/lock.cjs');
|
|
20
19
|
var exportPrivateKey = require('../../../../shared/assets/export-private-key.cjs');
|
|
21
20
|
var exportRecoveryPhrase = require('../../../../shared/assets/export-recovery-phrase.cjs');
|
|
22
21
|
require('../../../../shared/logger.cjs');
|
|
@@ -70,6 +69,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
70
69
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
71
70
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
72
71
|
require('@dynamic-labs/viem-utils');
|
|
72
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
73
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
73
74
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
74
75
|
var PasskeyDeviceIcon = require('../../../../views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs');
|
|
75
76
|
var useEmbeddedReveal = require('../../../../utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
@@ -92,7 +93,7 @@ const WalletSettingsView = () => {
|
|
|
92
93
|
const { isTurnkeyWallet, isTurnkeyWalletWithoutAuthenticator } = useIsTurnkeyWallet.useIsTurnkeyWallet();
|
|
93
94
|
const { theme } = ThemeContext.useThemeContext();
|
|
94
95
|
const { t } = reactI18next.useTranslation();
|
|
95
|
-
const { initPasskeyRecoveryProcess } = usePasskeyRecovery.usePasskeyRecovery();
|
|
96
|
+
const { initPasskeyRecoveryProcess, shouldInitRecovery } = usePasskeyRecovery.usePasskeyRecovery();
|
|
96
97
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
97
98
|
const decodedJwt = decodeJwt.decodeJwt(authToken);
|
|
98
99
|
const walletProperties = (_b = (_a = decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
|
|
@@ -111,6 +112,12 @@ const WalletSettingsView = () => {
|
|
|
111
112
|
setIsLoading(false);
|
|
112
113
|
}
|
|
113
114
|
});
|
|
115
|
+
const handleExportClick = (recoveryPhrase) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
116
|
+
if (yield shouldInitRecovery()) {
|
|
117
|
+
yield initPasskeyRecoveryProcess(undefined, 'reveal');
|
|
118
|
+
}
|
|
119
|
+
return initExportProcess(recoveryPhrase);
|
|
120
|
+
});
|
|
114
121
|
const renderPasskeysButtonEndSlot = () => {
|
|
115
122
|
if (isTurnkeyWalletWithAuthenticator)
|
|
116
123
|
return (jsxRuntime.jsx(checkCircle.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--success' }));
|
|
@@ -121,11 +128,11 @@ const WalletSettingsView = () => {
|
|
|
121
128
|
const backButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: goToInitialDynamicWidgetView, "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
|
|
122
129
|
return (jsxRuntime.jsxs("div", { className: 'wallet-settings-view', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { leading: backButton, children: jsxRuntime.jsx("div", { className: 'wallet-settings-view__header', children: jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', copykey: 'dyn_wallet_settings.title', children: t('dyn_wallet_settings.title') }) }) }), jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body', children: [isPasskeyEnabled && (jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsxRuntime.jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.signing_section.title') }), jsxRuntime.jsx(Button.Button, { dataTestId: 'manage-passkeys-button', onClick: () => handlePasskeyClick(), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
123
130
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
124
|
-
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(PasskeyDeviceIcon.PasskeyDeviceIcon, { className: 'wallet-settings-view__body__section__button__icon', defaultIcon: jsxRuntime.jsx(androidTouchId.ReactComponent, { "data-testid": 'default-icon' }) }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.signing_section.passkey_button', children: t('dyn_wallet_settings.signing_section.passkey_button') })] }), endSlot: renderPasskeysButtonEndSlot(), disabled: isLoading, showInternalLoading: false })] })), jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsxRuntime.jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.export_section.title') }), jsxRuntime.jsx(Button.Button, { dataTestId: 'embedded-reveal-account-button', onClick: () =>
|
|
131
|
+
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(PasskeyDeviceIcon.PasskeyDeviceIcon, { className: 'wallet-settings-view__body__section__button__icon', defaultIcon: jsxRuntime.jsx(androidTouchId.ReactComponent, { "data-testid": 'default-icon' }) }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.signing_section.passkey_button', children: t('dyn_wallet_settings.signing_section.passkey_button') })] }), endSlot: renderPasskeysButtonEndSlot(), disabled: isLoading, showInternalLoading: false })] })), jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsxRuntime.jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.export_section.title') }), jsxRuntime.jsx(Button.Button, { dataTestId: 'embedded-reveal-account-button', onClick: () => handleExportClick(), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
125
132
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
126
|
-
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(exportPrivateKey.ReactComponent, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.private_key_button', children: t('dyn_wallet_settings.export_section.private_key_button') })] }), endSlot:
|
|
133
|
+
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(exportPrivateKey.ReactComponent, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.private_key_button', children: t('dyn_wallet_settings.export_section.private_key_button') })] }), endSlot: jsxRuntime.jsx(chevronLeft.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' }), showInternalLoading: false }), isTurnkeyHDWallet && (jsxRuntime.jsx(Button.Button, { dataTestId: 'embedded-reveal-button', onClick: () => handleExportClick(true), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
127
134
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
128
|
-
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(exportRecoveryPhrase.ReactComponent, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.srp_button', children: t('dyn_wallet_settings.export_section.srp_button') })] }), endSlot:
|
|
135
|
+
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(exportRecoveryPhrase.ReactComponent, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.srp_button', children: t('dyn_wallet_settings.export_section.srp_button') })] }), endSlot: jsxRuntime.jsx(chevronLeft.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' }), showInternalLoading: false }))] })] })] }));
|
|
129
136
|
};
|
|
130
137
|
|
|
131
138
|
exports.WalletSettingsView = WalletSettingsView;
|
|
@@ -12,7 +12,6 @@ import '../../../../context/ViewContext/ViewContext.js';
|
|
|
12
12
|
import { ReactComponent as SvgAndroidTouchId } from '../../../../shared/assets/android-touch-id.js';
|
|
13
13
|
import { ReactComponent as SvgCheckCircle } from '../../../../shared/assets/check-circle.js';
|
|
14
14
|
import { ReactComponent as SvgChevronLeft } from '../../../../shared/assets/chevron-left.js';
|
|
15
|
-
import { ReactComponent as SvgLock } from '../../../../shared/assets/lock.js';
|
|
16
15
|
import { ReactComponent as SvgExportPrivateKey } from '../../../../shared/assets/export-private-key.js';
|
|
17
16
|
import { ReactComponent as SvgExportRecoveryPhrase } from '../../../../shared/assets/export-recovery-phrase.js';
|
|
18
17
|
import '../../../../shared/logger.js';
|
|
@@ -66,6 +65,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
66
65
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
67
66
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
68
67
|
import '@dynamic-labs/viem-utils';
|
|
68
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
69
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
69
70
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
70
71
|
import { PasskeyDeviceIcon } from '../../../../views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js';
|
|
71
72
|
import { useEmbeddedReveal } from '../../../../utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
@@ -88,7 +89,7 @@ const WalletSettingsView = () => {
|
|
|
88
89
|
const { isTurnkeyWallet, isTurnkeyWalletWithoutAuthenticator } = useIsTurnkeyWallet();
|
|
89
90
|
const { theme } = useThemeContext();
|
|
90
91
|
const { t } = useTranslation();
|
|
91
|
-
const { initPasskeyRecoveryProcess } = usePasskeyRecovery();
|
|
92
|
+
const { initPasskeyRecoveryProcess, shouldInitRecovery } = usePasskeyRecovery();
|
|
92
93
|
const [isLoading, setIsLoading] = useState(false);
|
|
93
94
|
const decodedJwt = decodeJwt(authToken);
|
|
94
95
|
const walletProperties = (_b = (_a = decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
|
|
@@ -107,6 +108,12 @@ const WalletSettingsView = () => {
|
|
|
107
108
|
setIsLoading(false);
|
|
108
109
|
}
|
|
109
110
|
});
|
|
111
|
+
const handleExportClick = (recoveryPhrase) => __awaiter(void 0, void 0, void 0, function* () {
|
|
112
|
+
if (yield shouldInitRecovery()) {
|
|
113
|
+
yield initPasskeyRecoveryProcess(undefined, 'reveal');
|
|
114
|
+
}
|
|
115
|
+
return initExportProcess(recoveryPhrase);
|
|
116
|
+
});
|
|
110
117
|
const renderPasskeysButtonEndSlot = () => {
|
|
111
118
|
if (isTurnkeyWalletWithAuthenticator)
|
|
112
119
|
return (jsx(SvgCheckCircle, { className: 'wallet-settings-view__body__section__button__icon-secondary--success' }));
|
|
@@ -117,11 +124,11 @@ const WalletSettingsView = () => {
|
|
|
117
124
|
const backButton = (jsx(IconButton, { type: 'button', onClick: goToInitialDynamicWidgetView, "data-testid": 'back-button', children: jsx(SvgChevronLeft, {}) }));
|
|
118
125
|
return (jsxs("div", { className: 'wallet-settings-view', children: [jsx(ModalHeader, { leading: backButton, children: jsx("div", { className: 'wallet-settings-view__header', children: jsx(Typography, { variant: 'title', color: 'primary', copykey: 'dyn_wallet_settings.title', children: t('dyn_wallet_settings.title') }) }) }), jsxs("div", { className: 'wallet-settings-view__body', children: [isPasskeyEnabled && (jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.signing_section.title') }), jsx(Button, { dataTestId: 'manage-passkeys-button', onClick: () => handlePasskeyClick(), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
119
126
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
120
|
-
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(PasskeyDeviceIcon, { className: 'wallet-settings-view__body__section__button__icon', defaultIcon: jsx(SvgAndroidTouchId, { "data-testid": 'default-icon' }) }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.signing_section.passkey_button', children: t('dyn_wallet_settings.signing_section.passkey_button') })] }), endSlot: renderPasskeysButtonEndSlot(), disabled: isLoading, showInternalLoading: false })] })), jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.export_section.title') }), jsx(Button, { dataTestId: 'embedded-reveal-account-button', onClick: () =>
|
|
127
|
+
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(PasskeyDeviceIcon, { className: 'wallet-settings-view__body__section__button__icon', defaultIcon: jsx(SvgAndroidTouchId, { "data-testid": 'default-icon' }) }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.signing_section.passkey_button', children: t('dyn_wallet_settings.signing_section.passkey_button') })] }), endSlot: renderPasskeysButtonEndSlot(), disabled: isLoading, showInternalLoading: false })] })), jsxs("div", { className: 'wallet-settings-view__body__section', children: [jsx("div", { className: 'wallet-settings-view__body__section__title', children: t('dyn_wallet_settings.export_section.title') }), jsx(Button, { dataTestId: 'embedded-reveal-account-button', onClick: () => handleExportClick(), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
121
128
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
122
|
-
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(SvgExportPrivateKey, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.private_key_button', children: t('dyn_wallet_settings.export_section.private_key_button') })] }), endSlot:
|
|
129
|
+
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(SvgExportPrivateKey, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.private_key_button', children: t('dyn_wallet_settings.export_section.private_key_button') })] }), endSlot: jsx(SvgChevronLeft, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' }), showInternalLoading: false }), isTurnkeyHDWallet && (jsx(Button, { dataTestId: 'embedded-reveal-button', onClick: () => handleExportClick(true), buttonClassName: 'wallet-settings-view__body__section__button', startSlot:
|
|
123
130
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
124
|
-
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(SvgExportRecoveryPhrase, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.srp_button', children: t('dyn_wallet_settings.export_section.srp_button') })] }), endSlot:
|
|
131
|
+
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(SvgExportRecoveryPhrase, { className: `wallet-settings-view__body__section__button__icon${theme.theme.name === 'dark' ? '__stroke' : ''}` }), jsx(Typography, { color: 'primary', weight: 'medium', copykey: 'dyn_wallet_settings.export_section.srp_button', children: t('dyn_wallet_settings.export_section.srp_button') })] }), endSlot: jsx(SvgChevronLeft, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' }), showInternalLoading: false }))] })] })] }));
|
|
125
132
|
};
|
|
126
133
|
|
|
127
134
|
export { WalletSettingsView };
|
|
@@ -65,6 +65,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
65
65
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
66
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
67
|
require('@dynamic-labs/viem-utils');
|
|
68
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
69
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
68
70
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
69
71
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
70
72
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -61,6 +61,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
61
61
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
62
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
63
|
import '@dynamic-labs/viem-utils';
|
|
64
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
65
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
64
66
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
65
67
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
66
68
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -59,6 +59,8 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
59
59
|
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
60
60
|
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
61
61
|
require('@dynamic-labs/viem-utils');
|
|
62
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
63
|
+
require('../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs');
|
|
62
64
|
require('../../../DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
63
65
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
64
66
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -55,6 +55,8 @@ import '../../../../components/Alert/Alert.js';
|
|
|
55
55
|
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
56
56
|
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
57
57
|
import '@dynamic-labs/viem-utils';
|
|
58
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
59
|
+
import '../../../../utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js';
|
|
58
60
|
import '../../../DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
59
61
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
60
62
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const magicEmailOtpWalletConnectorKey = 'magicemailotp';
|
|
6
|
-
const magicSocialWalletConnectorKey = 'magicsocial';
|
|
7
|
-
const isMagicConnector = (connector) => connector.key === magicEmailOtpWalletConnectorKey ||
|
|
8
|
-
connector.key === magicSocialWalletConnectorKey;
|
|
9
|
-
|
|
10
|
-
exports.isMagicConnector = isMagicConnector;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const magicEmailOtpWalletConnectorKey = 'magicemailotp';
|
|
2
|
-
const magicSocialWalletConnectorKey = 'magicsocial';
|
|
3
|
-
const isMagicConnector = (connector) => connector.key === magicEmailOtpWalletConnectorKey ||
|
|
4
|
-
connector.key === magicSocialWalletConnectorKey;
|
|
5
|
-
|
|
6
|
-
export { isMagicConnector };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TransactionStage';
|