@dynamic-labs/sdk-react-core 1.1.0-alpha.10 → 1.1.0-alpha.11
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 +19 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +12 -13
- package/src/index.cjs +10 -5
- package/src/index.js +8 -5
- package/src/lib/Main.cjs +41 -21
- package/src/lib/Main.js +41 -21
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +9 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +9 -4
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +9 -4
- package/src/lib/components/AnimatePresence/AnimatePresence.js +9 -4
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +9 -4
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +9 -4
- package/src/lib/components/Divider/Divider.cjs +7 -2
- package/src/lib/components/Divider/Divider.js +7 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +9 -4
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +9 -4
- package/src/lib/components/Modal/Modal.cjs +9 -4
- package/src/lib/components/Modal/Modal.js +9 -4
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +10 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +10 -5
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +11 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.js +11 -6
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +11 -3
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +11 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +7 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.js +7 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +8 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +8 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +7 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +7 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +9 -4
- package/src/lib/components/OverlayCard/OverlayCard.js +9 -4
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +15 -6
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.d.ts +4 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +17 -8
- package/src/lib/components/Portal/Portal.cjs +16 -16
- package/src/lib/components/Portal/Portal.d.ts +3 -1
- package/src/lib/components/Portal/Portal.js +16 -16
- package/src/lib/components/RenderView/RenderView.cjs +71 -0
- package/src/lib/components/RenderView/RenderView.d.ts +2 -0
- package/src/lib/components/RenderView/RenderView.js +67 -0
- package/src/lib/components/RenderView/index.d.ts +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +9 -4
- package/src/lib/components/SocialSignIn/SocialSignIn.js +9 -4
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +9 -4
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +9 -4
- package/src/lib/components/Tooltip/Tooltip.cjs +18 -32
- package/src/lib/components/Tooltip/Tooltip.js +18 -32
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +9 -4
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +9 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +9 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +9 -4
- package/src/lib/components/UserAddress/UserAddress.cjs +9 -4
- package/src/lib/components/UserAddress/UserAddress.js +9 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +7 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +7 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +7 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +7 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +8 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +8 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.js +1 -1
- package/src/lib/context/CaptchaContext/CaptchaContext.js +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +9 -4
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +9 -4
- package/src/lib/context/DynamicContext/DynamicContext.cjs +30 -30
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +30 -30
- package/src/lib/context/DynamicContext/helpers.cjs +5 -3
- package/src/lib/context/DynamicContext/helpers.d.ts +2 -2
- package/src/lib/context/DynamicContext/helpers.js +5 -3
- package/src/lib/context/DynamicContext/hooks/index.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +10 -11
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +11 -12
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +23 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.d.ts +5 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +19 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +61 -1
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +2 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +61 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +17 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +17 -4
- package/src/lib/context/DynamicContext/types/index.d.ts +4 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext.js +1 -0
- package/src/lib/context/ErrorContext/ErrorContext.cjs +5 -11
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -12
- package/src/lib/context/FooterAnimationContext/index.d.ts +1 -2
- package/src/lib/context/FundingContext/FundingContext.cjs +1 -2
- package/src/lib/context/FundingContext/FundingContext.js +1 -2
- package/src/lib/context/LoadingContext/LoadingContext.cjs +8 -3
- package/src/lib/context/LoadingContext/LoadingContext.js +9 -4
- package/src/lib/context/MockContext/MockContext.cjs +12 -6
- package/src/lib/context/MockContext/MockContext.d.ts +4 -9
- package/src/lib/context/MockContext/MockContext.js +12 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +35 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +16 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +29 -0
- package/src/lib/context/PasskeyContext/index.d.ts +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +9 -4
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +9 -4
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +9 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +9 -5
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +9 -4
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +9 -4
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -4
- package/src/lib/context/ViewContext/ViewContext.d.ts +5 -5
- package/src/lib/context/ViewContext/ViewContext.js +7 -4
- package/src/lib/context/ViewContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +10 -0
- package/src/lib/data/api.cjs +18 -2
- package/src/lib/data/api.d.ts +8 -0
- package/src/lib/data/api.js +19 -4
- package/src/lib/events/dynamicEvents.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.cjs +12 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.d.ts +6 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.js +8 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +11 -8
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +11 -8
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +12 -20
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +13 -21
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +9 -9
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +9 -9
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +13 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +13 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +7 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +7 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +7 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +7 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +8 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +8 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +8 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +8 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +9 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +10 -5
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +7 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +7 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +7 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +7 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +9 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +9 -2
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +7 -2
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +7 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +7 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +7 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +7 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +7 -2
- package/src/lib/locale/en/translation.cjs +21 -2
- package/src/lib/locale/en/translation.d.ts +21 -2
- package/src/lib/locale/en/translation.js +21 -2
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +11 -4
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.d.ts +0 -2
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +11 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +7 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +7 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +6 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +6 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +7 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +7 -2
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +7 -2
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +7 -2
- package/src/lib/shared/assets/export-private-key.cjs +54 -0
- package/src/lib/shared/assets/export-private-key.js +30 -0
- package/src/lib/shared/assets/export-recovery-phrase.cjs +54 -0
- package/src/lib/shared/assets/export-recovery-phrase.js +30 -0
- package/src/lib/shared/assets/index.d.ts +2 -0
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs +1 -1
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js +1 -1
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +6 -7
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +6 -7
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs +1 -2
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js +1 -2
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs +0 -3
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +0 -3
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +7 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +3 -0
- package/src/lib/utils/functions/getWalletIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +6 -4
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +3 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -28
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -28
- package/src/lib/utils/hooks/index.d.ts +0 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +79 -76
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +79 -76
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +14 -13
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.d.ts +0 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +15 -14
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +1 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +3 -3
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +3 -3
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +1 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +0 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +0 -3
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +14 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +15 -1
- package/src/lib/utils/hooks/useHover/useHover.cjs +9 -3
- package/src/lib/utils/hooks/useHover/useHover.js +9 -3
- package/src/lib/utils/hooks/useHover/useHover.types.d.ts +8 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +27 -2
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +27 -2
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.d.ts +3 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +1 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +15 -21
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +15 -21
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +4 -26
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +4 -26
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +28 -4
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +28 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +7 -3
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +7 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +2 -2
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +2 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +9 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +9 -4
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +9 -5
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +9 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +6 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.js +6 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +6 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +6 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +7 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +7 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +8 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +8 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +7 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +7 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +7 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +7 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +7 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +7 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +7 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +7 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +31 -37
- package/src/lib/views/EmailVerification/EmailVerification.js +31 -37
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +9 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +9 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +9 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +9 -4
- package/src/lib/views/LoginView/LoginView.cjs +15 -7
- package/src/lib/views/LoginView/LoginView.js +15 -7
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +8 -3
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +8 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +6 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +6 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +6 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +6 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +7 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +7 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +7 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +7 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/LoginView/useLoginView.cjs +1 -1
- package/src/lib/views/LoginView/useLoginView.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +7 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +7 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +7 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +7 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +7 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +7 -2
- package/src/lib/views/NoAccess/NoAccess.cjs +7 -2
- package/src/lib/views/NoAccess/NoAccess.js +7 -2
- package/src/lib/views/NoAccess/useNoAccessText.cjs +3 -3
- package/src/lib/views/NoAccess/useNoAccessText.js +3 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +7 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +7 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +7 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +7 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +7 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +7 -2
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +8 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +8 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +8 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +8 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +11 -6
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +11 -6
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +8 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +8 -3
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +113 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.d.ts +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +109 -0
- package/src/lib/views/Passkey/RenamePasskeyView/index.d.ts +1 -0
- package/src/lib/views/Passkey/index.d.ts +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +7 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.js +8 -3
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +8 -3
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +9 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +10 -6
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -1
- package/src/lib/views/QrCodeView/QRCode.js +10 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +8 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +8 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +33 -24
- package/src/lib/views/QrCodeView/QrCodeView.js +34 -25
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +13 -8
- package/src/lib/views/SendBalanceView/SendBalanceView.js +13 -8
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +9 -4
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +9 -4
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +6 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +6 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +6 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +6 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +11 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +11 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +9 -4
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +9 -4
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +7 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +7 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +7 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +7 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +11 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.js +11 -7
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs +7 -2
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js +7 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +7 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +7 -2
- package/src/lib/views/WalletList/WalletList.cjs +8 -9
- package/src/lib/views/WalletList/WalletList.js +8 -9
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +7 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +7 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +7 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.js +8 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +7 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +8 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.js +7 -2
- package/src/lib/views/viewToComponentMap.cjs +44 -43
- package/src/lib/views/viewToComponentMap.d.ts +2 -3
- package/src/lib/views/viewToComponentMap.js +44 -43
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +7 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +8 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +6 -6
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +6 -6
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +8 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +8 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.d.ts +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +11 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +10 -6
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +9 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +8 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +9 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +28 -22
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +29 -23
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +7 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +11 -21
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +4 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +11 -21
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -5
- package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +19 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +15 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +9 -4
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +63 -17
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +63 -17
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +10 -5
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +18 -12
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +18 -12
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +12 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +12 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +12 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +12 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +62 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +62 -17
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +17 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +17 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +6 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +6 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +10 -16
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +10 -16
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +7 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +8 -3
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +35 -11
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +35 -11
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +7 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +11 -6
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +11 -6
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +7 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +7 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +7 -2
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.cjs +0 -23
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.d.ts +0 -4
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.js +0 -19
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +0 -76
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.d.ts +0 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +0 -72
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +0 -83
- package/src/lib/context/QrCodeContext/QrCodeContext.d.ts +0 -13
- package/src/lib/context/QrCodeContext/QrCodeContext.js +0 -77
- package/src/lib/context/QrCodeContext/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs +0 -34
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.d.ts +0 -7
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.js +0 -30
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs
CHANGED
|
@@ -46,15 +46,14 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
46
46
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
47
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
48
48
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
49
|
-
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
50
49
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
51
50
|
var Skeleton = require('../../../../components/Skeleton/Skeleton.cjs');
|
|
52
51
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
52
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
53
|
require('react-focus-lock');
|
|
55
54
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
-
require('qrcode');
|
|
57
55
|
require('i18next');
|
|
56
|
+
require('qrcode');
|
|
58
57
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
59
58
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
60
59
|
require('formik');
|
|
@@ -64,14 +63,20 @@ var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
|
64
63
|
require('../../../../components/Alert/Alert.cjs');
|
|
65
64
|
var PasskeyCreatedSuccessBanner = require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
65
|
require('@dynamic-labs/viem-utils');
|
|
66
|
+
var PasskeyContext = require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
67
|
var PasskeyCard = require('./PasskeyCard/PasskeyCard.cjs');
|
|
68
68
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
69
69
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
70
70
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
71
71
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
72
|
+
require('../../../../views/WalletList/WalletList.cjs');
|
|
73
|
+
require('@hcaptcha/react-hcaptcha');
|
|
74
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
75
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
72
76
|
|
|
73
77
|
const ManagePasskeysWidgetView = () => {
|
|
74
78
|
const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
79
|
+
const { passkeyEdited } = PasskeyContext.usePasskeyContext();
|
|
75
80
|
const { environmentId, projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
76
81
|
const { initPasskeyRecoveryProcess } = usePasskeyRecovery.usePasskeyRecovery();
|
|
77
82
|
const { t } = reactI18next.useTranslation();
|
|
@@ -86,7 +91,7 @@ const ManagePasskeysWidgetView = () => {
|
|
|
86
91
|
});
|
|
87
92
|
return data.passkeys;
|
|
88
93
|
}), {
|
|
89
|
-
deps: [environmentId, userJwt],
|
|
94
|
+
deps: [environmentId, userJwt, passkeyEdited],
|
|
90
95
|
enabled: Boolean(environmentId) && Boolean(userJwt),
|
|
91
96
|
});
|
|
92
97
|
const isRecoveryEnabled = Boolean(projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.passkeyEmbeddedWalletRecoveryEnabled);
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js
CHANGED
|
@@ -42,15 +42,14 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
42
42
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
43
43
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
44
44
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
45
|
-
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
46
45
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
47
46
|
import { Skeleton } from '../../../../components/Skeleton/Skeleton.js';
|
|
48
47
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
48
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
49
|
import 'react-focus-lock';
|
|
51
50
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
-
import 'qrcode';
|
|
53
51
|
import 'i18next';
|
|
52
|
+
import 'qrcode';
|
|
54
53
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
55
54
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
56
55
|
import 'formik';
|
|
@@ -60,14 +59,20 @@ import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
|
60
59
|
import '../../../../components/Alert/Alert.js';
|
|
61
60
|
import { PasskeyCreatedSuccessBanner } from '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
61
|
import '@dynamic-labs/viem-utils';
|
|
62
|
+
import { usePasskeyContext } from '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
63
|
import { PasskeyCard } from './PasskeyCard/PasskeyCard.js';
|
|
64
64
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
65
65
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
66
66
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
67
67
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
68
|
+
import '../../../../views/WalletList/WalletList.js';
|
|
69
|
+
import '@hcaptcha/react-hcaptcha';
|
|
70
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
71
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
68
72
|
|
|
69
73
|
const ManagePasskeysWidgetView = () => {
|
|
70
74
|
const { setDynamicWidgetView } = useWidgetContext();
|
|
75
|
+
const { passkeyEdited } = usePasskeyContext();
|
|
71
76
|
const { environmentId, projectSettings } = useInternalDynamicContext();
|
|
72
77
|
const { initPasskeyRecoveryProcess } = usePasskeyRecovery();
|
|
73
78
|
const { t } = useTranslation();
|
|
@@ -82,7 +87,7 @@ const ManagePasskeysWidgetView = () => {
|
|
|
82
87
|
});
|
|
83
88
|
return data.passkeys;
|
|
84
89
|
}), {
|
|
85
|
-
deps: [environmentId, userJwt],
|
|
90
|
+
deps: [environmentId, userJwt, passkeyEdited],
|
|
86
91
|
enabled: Boolean(environmentId) && Boolean(userJwt),
|
|
87
92
|
});
|
|
88
93
|
const isRecoveryEnabled = Boolean(projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.passkeyEmbeddedWalletRecoveryEnabled);
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs
CHANGED
|
@@ -6,14 +6,15 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactI18next = require('react-i18next');
|
|
8
8
|
var iconic = require('@dynamic-labs/iconic');
|
|
9
|
+
var DotsMenu = require('../../../components/DotsMenu/DotsMenu.cjs');
|
|
9
10
|
var classNames = require('../../../../../utils/functions/classNames/classNames.cjs');
|
|
10
11
|
require('../../../../../events/dynamicEvents.cjs');
|
|
11
12
|
require('@dynamic-labs/utils');
|
|
12
|
-
require('../../../../../context/DynamicContext/
|
|
13
|
+
var useInternalDynamicContext = require('../../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
13
14
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
15
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
15
16
|
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
16
|
-
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
var ViewContext = require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
17
18
|
require('@dynamic-labs/sdk-api');
|
|
18
19
|
require('../../../../../shared/logger.cjs');
|
|
19
20
|
require('@dynamic-labs/wallet-book');
|
|
@@ -41,26 +42,31 @@ require('../../../../../components/Transition/OpacityTransition/OpacityTransitio
|
|
|
41
42
|
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
42
43
|
require('../../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
43
44
|
require('../../../../../context/FooterAnimationContext/index.cjs');
|
|
44
|
-
require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
45
45
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
46
46
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
47
47
|
require('../../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
48
|
require('react-focus-lock');
|
|
49
49
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
50
|
-
require('qrcode');
|
|
51
50
|
var getPasskeyProviderFromUserAgent = require('../../../helpers/getPasskeyProviderFromUserAgent.cjs');
|
|
52
51
|
var getTimeSince = require('../../../helpers/getTimeSince.cjs');
|
|
52
|
+
require('qrcode');
|
|
53
53
|
require('../../../context/DynamicWidgetContext.cjs');
|
|
54
54
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
55
55
|
require('formik');
|
|
56
56
|
require('../../../../../components/IconButton/IconButton.cjs');
|
|
57
57
|
require('../../../../../components/Alert/Alert.cjs');
|
|
58
|
+
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
58
59
|
require('@dynamic-labs/viem-utils');
|
|
60
|
+
var PasskeyContext = require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
59
61
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
60
62
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
61
63
|
var shortenEmail = require('../../../../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
62
64
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
63
65
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
66
|
+
require('../../../../../views/WalletList/WalletList.cjs');
|
|
67
|
+
require('@hcaptcha/react-hcaptcha');
|
|
68
|
+
require('../../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
69
|
+
require('../../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
64
70
|
|
|
65
71
|
const mapPasskeyProviderToIcon = {
|
|
66
72
|
android: jsxRuntime.jsx(iconic.AndroidIcon, {}),
|
|
@@ -73,7 +79,23 @@ const mapPasskeyProviderToIcon = {
|
|
|
73
79
|
safari: jsxRuntime.jsx(iconic.SafariIcon, {}),
|
|
74
80
|
};
|
|
75
81
|
const PasskeyCard = ({ passkey }) => {
|
|
82
|
+
var _a;
|
|
76
83
|
const { t } = reactI18next.useTranslation();
|
|
84
|
+
const { setShowAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
|
|
85
|
+
const { setView } = ViewContext.useViewContext();
|
|
86
|
+
const { setPasskey, setPasskeyIcon } = PasskeyContext.usePasskeyContext();
|
|
87
|
+
const menuOptions = [
|
|
88
|
+
{
|
|
89
|
+
Icon: null,
|
|
90
|
+
callback: () => {
|
|
91
|
+
setShowAuthFlow(true);
|
|
92
|
+
setPasskey(passkey);
|
|
93
|
+
setPasskeyIcon(() => { var _a; return (_a = PasskeyProviderIcon()) !== null && _a !== void 0 ? _a : undefined; });
|
|
94
|
+
setView('rename-passkey');
|
|
95
|
+
},
|
|
96
|
+
text: 'Rename',
|
|
97
|
+
},
|
|
98
|
+
];
|
|
77
99
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
78
100
|
const { value: timeSinceValue, unit: timeSinceUnit } = getTimeSince.getTimeSince(passkey.createdAt);
|
|
79
101
|
const PasskeyProviderIcon = () => {
|
|
@@ -98,13 +120,15 @@ const PasskeyCard = ({ passkey }) => {
|
|
|
98
120
|
setShowTooltip(false);
|
|
99
121
|
}, 2000);
|
|
100
122
|
};
|
|
101
|
-
return (jsxRuntime.jsxs("div", { className: 'passkey-card', children: [jsxRuntime.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
123
|
+
return (jsxRuntime.jsxs("div", { className: 'passkey-card', children: [jsxRuntime.jsx("div", { className: 'passkey-card__info', children: jsxRuntime.jsxs("div", { className: 'passkey-card__info__text', children: [jsxRuntime.jsxs(Typography.Typography, { "data-testid": 'passkey-alias', variant: 'body_normal', color: 'primary', title: passkey.alias, onClick: handleShowTooltip, children: [jsxRuntime.jsxs("div", { className: 'passkey-card__body', children: [jsxRuntime.jsxs("div", { className: 'passkey-card__left', children: [jsxRuntime.jsx("div", { className: 'passkey-card__info__icon', "data-testid": 'provider-icon', children: jsxRuntime.jsx(PasskeyProviderIcon, {}) }), ((_a = passkey.alias) === null || _a === void 0 ? void 0 : _a.includes('@'))
|
|
124
|
+
? shortenEmail.shortenEmail(passkey.alias, {
|
|
125
|
+
breakpoint: 12,
|
|
126
|
+
cutEnd: 4,
|
|
127
|
+
cutStart: 4,
|
|
128
|
+
})
|
|
129
|
+
: passkey.alias] }), jsxRuntime.jsx(DotsMenu.DotsMenu, { options: menuOptions })] }), jsxRuntime.jsx("p", { className: classNames.classNames('passkey-card__info__tooltip', {
|
|
130
|
+
'passkey-card__info__tooltip--visible': showTooltip,
|
|
131
|
+
}), children: passkey.alias })] }), getPasskeyProviderName() && (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', color: 'secondary', children: [t('dyn_manage_passkeys.passkey_from'), " ", getPasskeyProviderName()] }))] }) }), jsxRuntime.jsx("div", { className: 'passkey-card__date', children: jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', color: 'secondary', copykey: 'dyn_time_since.created', children: [t('dyn_time_since.created'), ' ', `${timeSinceValue} ${timeSinceUnit} ${t('dyn_time_since.ago')}`] }) })] }));
|
|
108
132
|
};
|
|
109
133
|
|
|
110
134
|
exports.PasskeyCard = PasskeyCard;
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js
CHANGED
|
@@ -2,14 +2,15 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { AndroidIcon, BraveIcon, ChromeIcon, EdgeIcon, FirefoxIcon, AppleIcon, OperaIcon, SafariIcon } from '@dynamic-labs/iconic';
|
|
5
|
+
import { DotsMenu } from '../../../components/DotsMenu/DotsMenu.js';
|
|
5
6
|
import { classNames } from '../../../../../utils/functions/classNames/classNames.js';
|
|
6
7
|
import '../../../../../events/dynamicEvents.js';
|
|
7
8
|
import '@dynamic-labs/utils';
|
|
8
|
-
import '../../../../../context/DynamicContext/
|
|
9
|
+
import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
9
10
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
11
|
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
11
12
|
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
12
|
-
import '../../../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import { useViewContext } from '../../../../../context/ViewContext/ViewContext.js';
|
|
13
14
|
import '@dynamic-labs/sdk-api';
|
|
14
15
|
import '../../../../../shared/logger.js';
|
|
15
16
|
import '@dynamic-labs/wallet-book';
|
|
@@ -37,26 +38,31 @@ import '../../../../../components/Transition/OpacityTransition/OpacityTransition
|
|
|
37
38
|
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
38
39
|
import '../../../../../components/OverlayCard/OverlayCard.context.js';
|
|
39
40
|
import '../../../../../context/FooterAnimationContext/index.js';
|
|
40
|
-
import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
41
41
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
42
42
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
43
43
|
import '../../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
44
|
import 'react-focus-lock';
|
|
45
45
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
46
|
-
import 'qrcode';
|
|
47
46
|
import { getPasskeyProviderFromUserAgent } from '../../../helpers/getPasskeyProviderFromUserAgent.js';
|
|
48
47
|
import { getTimeSince } from '../../../helpers/getTimeSince.js';
|
|
48
|
+
import 'qrcode';
|
|
49
49
|
import '../../../context/DynamicWidgetContext.js';
|
|
50
50
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
51
51
|
import 'formik';
|
|
52
52
|
import '../../../../../components/IconButton/IconButton.js';
|
|
53
53
|
import '../../../../../components/Alert/Alert.js';
|
|
54
|
+
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
54
55
|
import '@dynamic-labs/viem-utils';
|
|
56
|
+
import { usePasskeyContext } from '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
55
57
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
56
58
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
57
59
|
import { shortenEmail } from '../../../../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
58
60
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
59
61
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
62
|
+
import '../../../../../views/WalletList/WalletList.js';
|
|
63
|
+
import '@hcaptcha/react-hcaptcha';
|
|
64
|
+
import '../../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
65
|
+
import '../../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
60
66
|
|
|
61
67
|
const mapPasskeyProviderToIcon = {
|
|
62
68
|
android: jsx(AndroidIcon, {}),
|
|
@@ -69,7 +75,23 @@ const mapPasskeyProviderToIcon = {
|
|
|
69
75
|
safari: jsx(SafariIcon, {}),
|
|
70
76
|
};
|
|
71
77
|
const PasskeyCard = ({ passkey }) => {
|
|
78
|
+
var _a;
|
|
72
79
|
const { t } = useTranslation();
|
|
80
|
+
const { setShowAuthFlow } = useInternalDynamicContext();
|
|
81
|
+
const { setView } = useViewContext();
|
|
82
|
+
const { setPasskey, setPasskeyIcon } = usePasskeyContext();
|
|
83
|
+
const menuOptions = [
|
|
84
|
+
{
|
|
85
|
+
Icon: null,
|
|
86
|
+
callback: () => {
|
|
87
|
+
setShowAuthFlow(true);
|
|
88
|
+
setPasskey(passkey);
|
|
89
|
+
setPasskeyIcon(() => { var _a; return (_a = PasskeyProviderIcon()) !== null && _a !== void 0 ? _a : undefined; });
|
|
90
|
+
setView('rename-passkey');
|
|
91
|
+
},
|
|
92
|
+
text: 'Rename',
|
|
93
|
+
},
|
|
94
|
+
];
|
|
73
95
|
const [showTooltip, setShowTooltip] = useState(false);
|
|
74
96
|
const { value: timeSinceValue, unit: timeSinceUnit } = getTimeSince(passkey.createdAt);
|
|
75
97
|
const PasskeyProviderIcon = () => {
|
|
@@ -94,13 +116,15 @@ const PasskeyCard = ({ passkey }) => {
|
|
|
94
116
|
setShowTooltip(false);
|
|
95
117
|
}, 2000);
|
|
96
118
|
};
|
|
97
|
-
return (jsxs("div", { className: 'passkey-card', children: [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
return (jsxs("div", { className: 'passkey-card', children: [jsx("div", { className: 'passkey-card__info', children: jsxs("div", { className: 'passkey-card__info__text', children: [jsxs(Typography, { "data-testid": 'passkey-alias', variant: 'body_normal', color: 'primary', title: passkey.alias, onClick: handleShowTooltip, children: [jsxs("div", { className: 'passkey-card__body', children: [jsxs("div", { className: 'passkey-card__left', children: [jsx("div", { className: 'passkey-card__info__icon', "data-testid": 'provider-icon', children: jsx(PasskeyProviderIcon, {}) }), ((_a = passkey.alias) === null || _a === void 0 ? void 0 : _a.includes('@'))
|
|
120
|
+
? shortenEmail(passkey.alias, {
|
|
121
|
+
breakpoint: 12,
|
|
122
|
+
cutEnd: 4,
|
|
123
|
+
cutStart: 4,
|
|
124
|
+
})
|
|
125
|
+
: passkey.alias] }), jsx(DotsMenu, { options: menuOptions })] }), jsx("p", { className: classNames('passkey-card__info__tooltip', {
|
|
126
|
+
'passkey-card__info__tooltip--visible': showTooltip,
|
|
127
|
+
}), children: passkey.alias })] }), getPasskeyProviderName() && (jsxs(Typography, { variant: 'body_small', color: 'secondary', children: [t('dyn_manage_passkeys.passkey_from'), " ", getPasskeyProviderName()] }))] }) }), jsx("div", { className: 'passkey-card__date', children: jsxs(Typography, { variant: 'body_small', color: 'secondary', copykey: 'dyn_time_since.created', children: [t('dyn_time_since.created'), ' ', `${timeSinceValue} ${timeSinceUnit} ${t('dyn_time_since.ago')}`] }) })] }));
|
|
104
128
|
};
|
|
105
129
|
|
|
106
130
|
export { PasskeyCard };
|
|
@@ -45,25 +45,30 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
45
45
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
46
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
47
47
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
48
|
-
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
49
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
50
49
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
51
50
|
require('react-focus-lock');
|
|
52
51
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
53
|
-
require('qrcode');
|
|
54
52
|
require('i18next');
|
|
53
|
+
require('qrcode');
|
|
55
54
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
56
55
|
require('formik');
|
|
57
56
|
var Button = require('../../../../components/Button/Button.cjs');
|
|
58
57
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
59
58
|
require('../../../../components/Alert/Alert.cjs');
|
|
59
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
60
60
|
require('@dynamic-labs/viem-utils');
|
|
61
|
+
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
61
62
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
62
63
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
63
64
|
var LogoutButton = require('../../../../components/LogoutButton/LogoutButton.cjs');
|
|
64
65
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
65
66
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
66
67
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
68
|
+
require('../../../../views/WalletList/WalletList.cjs');
|
|
69
|
+
require('@hcaptcha/react-hcaptcha');
|
|
70
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
71
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
67
72
|
|
|
68
73
|
const ProfileView = () => {
|
|
69
74
|
const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
@@ -41,25 +41,30 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
41
41
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
42
42
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
43
43
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
44
|
-
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
45
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
46
45
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
47
46
|
import 'react-focus-lock';
|
|
48
47
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
49
|
-
import 'qrcode';
|
|
50
48
|
import 'i18next';
|
|
49
|
+
import 'qrcode';
|
|
51
50
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
52
51
|
import 'formik';
|
|
53
52
|
import { Button } from '../../../../components/Button/Button.js';
|
|
54
53
|
import '../../../../components/IconButton/IconButton.js';
|
|
55
54
|
import '../../../../components/Alert/Alert.js';
|
|
55
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
56
56
|
import '@dynamic-labs/viem-utils';
|
|
57
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
57
58
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
58
59
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
59
60
|
import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.js';
|
|
60
61
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
61
62
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
62
63
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
64
|
+
import '../../../../views/WalletList/WalletList.js';
|
|
65
|
+
import '@hcaptcha/react-hcaptcha';
|
|
66
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
63
68
|
|
|
64
69
|
const ProfileView = () => {
|
|
65
70
|
const { setDynamicWidgetView } = useWidgetContext();
|
|
@@ -17,9 +17,9 @@ require('@dynamic-labs/iconic');
|
|
|
17
17
|
var checkCircle = require('../../../../shared/assets/check-circle.cjs');
|
|
18
18
|
var chevronLeft = require('../../../../shared/assets/chevron-left.cjs');
|
|
19
19
|
var lock = require('../../../../shared/assets/lock.cjs');
|
|
20
|
-
var altEmbeddedWallet = require('../../../../shared/assets/alt-embedded-wallet.cjs');
|
|
21
20
|
var faceId = require('../../../../shared/assets/face-id.cjs');
|
|
22
|
-
var
|
|
21
|
+
var exportPrivateKey = require('../../../../shared/assets/export-private-key.cjs');
|
|
22
|
+
var exportRecoveryPhrase = require('../../../../shared/assets/export-recovery-phrase.cjs');
|
|
23
23
|
require('../../../../shared/logger.cjs');
|
|
24
24
|
require('@dynamic-labs/wallet-book');
|
|
25
25
|
require('../../../../utils/constants/colors.cjs');
|
|
@@ -47,15 +47,14 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
47
47
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
48
48
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
49
49
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
50
|
-
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
51
50
|
var useIsTurnkeyWallet = require('../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
|
|
52
51
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
53
52
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
53
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
55
54
|
require('react-focus-lock');
|
|
56
55
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
57
|
-
require('qrcode');
|
|
58
56
|
require('i18next');
|
|
57
|
+
require('qrcode');
|
|
59
58
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
60
59
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
60
|
require('formik');
|
|
@@ -63,13 +62,19 @@ var Button = require('../../../../components/Button/Button.cjs');
|
|
|
63
62
|
var ModalHeader = require('../../../../components/ModalHeader/ModalHeader.cjs');
|
|
64
63
|
var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
65
64
|
require('../../../../components/Alert/Alert.cjs');
|
|
65
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
66
|
require('@dynamic-labs/viem-utils');
|
|
67
|
+
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
68
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
68
69
|
var useEmbeddedReveal = require('../../../../utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs');
|
|
69
70
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
70
71
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
71
72
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
72
73
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
|
+
require('../../../../views/WalletList/WalletList.cjs');
|
|
75
|
+
require('@hcaptcha/react-hcaptcha');
|
|
76
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
77
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
73
78
|
|
|
74
79
|
const WalletSettingsView = () => {
|
|
75
80
|
var _a, _b;
|
|
@@ -87,9 +92,9 @@ const WalletSettingsView = () => {
|
|
|
87
92
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
88
93
|
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(faceId.ReactComponent, { className: 'wallet-settings-view__body__section__button__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: isTurnkeyWallet && !isTurnkeyWalletWithoutAuthenticator ? (jsxRuntime.jsx(checkCircle.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--success' })) : undefined, 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: () => initExportProcess(), buttonClassName: 'wallet-settings-view__body__section__button', disabled: !isTurnkeyWallet || isTurnkeyWalletWithoutAuthenticator, startSlot:
|
|
89
94
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
90
|
-
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(
|
|
95
|
+
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: isTurnkeyWallet && !isTurnkeyWalletWithoutAuthenticator ? (jsxRuntime.jsx(chevronLeft.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' })) : (jsxRuntime.jsx(lock.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary' })), showInternalLoading: false }), isTurnkeyHDWallet && (jsxRuntime.jsx(Button.Button, { dataTestId: 'embedded-reveal-button', onClick: () => initExportProcess(true), buttonClassName: 'wallet-settings-view__body__section__button', disabled: !isTurnkeyWallet || isTurnkeyWalletWithoutAuthenticator, startSlot:
|
|
91
96
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
92
|
-
jsxRuntime.jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsxRuntime.jsx(
|
|
97
|
+
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: !isTurnkeyWalletWithoutAuthenticator ? (jsxRuntime.jsx(chevronLeft.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' })) : (jsxRuntime.jsx(lock.ReactComponent, { className: 'wallet-settings-view__body__section__button__icon-secondary' })), showInternalLoading: false }))] })] })] }));
|
|
93
98
|
};
|
|
94
99
|
|
|
95
100
|
exports.WalletSettingsView = WalletSettingsView;
|
|
@@ -13,9 +13,9 @@ import '@dynamic-labs/iconic';
|
|
|
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
15
|
import { ReactComponent as SvgLock } from '../../../../shared/assets/lock.js';
|
|
16
|
-
import { ReactComponent as SvgAltEmbeddedWallet } from '../../../../shared/assets/alt-embedded-wallet.js';
|
|
17
16
|
import { ReactComponent as SvgFaceId } from '../../../../shared/assets/face-id.js';
|
|
18
|
-
import { ReactComponent as
|
|
17
|
+
import { ReactComponent as SvgExportPrivateKey } from '../../../../shared/assets/export-private-key.js';
|
|
18
|
+
import { ReactComponent as SvgExportRecoveryPhrase } from '../../../../shared/assets/export-recovery-phrase.js';
|
|
19
19
|
import '../../../../shared/logger.js';
|
|
20
20
|
import '@dynamic-labs/wallet-book';
|
|
21
21
|
import '../../../../utils/constants/colors.js';
|
|
@@ -43,15 +43,14 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
43
43
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
44
44
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
45
45
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
46
|
-
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
47
46
|
import { useIsTurnkeyWallet } from '../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js';
|
|
48
47
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
49
48
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
49
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
51
50
|
import 'react-focus-lock';
|
|
52
51
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
53
|
-
import 'qrcode';
|
|
54
52
|
import 'i18next';
|
|
53
|
+
import 'qrcode';
|
|
55
54
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
56
55
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
56
|
import 'formik';
|
|
@@ -59,13 +58,19 @@ import { Button } from '../../../../components/Button/Button.js';
|
|
|
59
58
|
import { ModalHeader } from '../../../../components/ModalHeader/ModalHeader.js';
|
|
60
59
|
import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
61
60
|
import '../../../../components/Alert/Alert.js';
|
|
61
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
62
|
import '@dynamic-labs/viem-utils';
|
|
63
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
63
64
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
64
65
|
import { useEmbeddedReveal } from '../../../../utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js';
|
|
65
66
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
66
67
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
67
68
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
68
69
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
70
|
+
import '../../../../views/WalletList/WalletList.js';
|
|
71
|
+
import '@hcaptcha/react-hcaptcha';
|
|
72
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
73
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
69
74
|
|
|
70
75
|
const WalletSettingsView = () => {
|
|
71
76
|
var _a, _b;
|
|
@@ -83,9 +88,9 @@ const WalletSettingsView = () => {
|
|
|
83
88
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
84
89
|
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(SvgFaceId, { className: 'wallet-settings-view__body__section__button__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: isTurnkeyWallet && !isTurnkeyWalletWithoutAuthenticator ? (jsx(SvgCheckCircle, { className: 'wallet-settings-view__body__section__button__icon-secondary--success' })) : undefined, 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: () => initExportProcess(), buttonClassName: 'wallet-settings-view__body__section__button', disabled: !isTurnkeyWallet || isTurnkeyWalletWithoutAuthenticator, startSlot:
|
|
85
90
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
86
|
-
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(
|
|
91
|
+
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: isTurnkeyWallet && !isTurnkeyWalletWithoutAuthenticator ? (jsx(SvgChevronLeft, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' })) : (jsx(SvgLock, { className: 'wallet-settings-view__body__section__button__icon-secondary' })), showInternalLoading: false }), isTurnkeyHDWallet && (jsx(Button, { dataTestId: 'embedded-reveal-button', onClick: () => initExportProcess(true), buttonClassName: 'wallet-settings-view__body__section__button', disabled: !isTurnkeyWallet || isTurnkeyWalletWithoutAuthenticator, startSlot:
|
|
87
92
|
// eslint-disable-next-line react/jsx-wrap-multilines
|
|
88
|
-
jsxs("div", { className: 'wallet-settings-view__body__section__button__start-slot', children: [jsx(
|
|
93
|
+
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: !isTurnkeyWalletWithoutAuthenticator ? (jsx(SvgChevronLeft, { className: 'wallet-settings-view__body__section__button__icon-secondary--rotate' })) : (jsx(SvgLock, { className: 'wallet-settings-view__body__section__button__icon-secondary' })), showInternalLoading: false }))] })] })] }));
|
|
89
94
|
};
|
|
90
95
|
|
|
91
96
|
export { WalletSettingsView };
|
|
@@ -42,15 +42,14 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
42
42
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
43
43
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
44
44
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
45
|
-
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
46
45
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
47
46
|
var DynamicWidgetFooter = require('../../components/DynamicWidgetFooter/DynamicWidgetFooter.cjs');
|
|
48
47
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
48
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
49
|
require('react-focus-lock');
|
|
51
50
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
-
require('qrcode');
|
|
53
51
|
require('i18next');
|
|
52
|
+
require('qrcode');
|
|
54
53
|
require('../../context/DynamicWidgetContext.cjs');
|
|
55
54
|
var DynamicWidgetWallets = require('../../components/DynamicWidgetWallets/DynamicWidgetWallets.cjs');
|
|
56
55
|
var SingleWalletButtons = require('../../components/SingleWalletButtons/SingleWalletButtons.cjs');
|
|
@@ -59,13 +58,19 @@ require('formik');
|
|
|
59
58
|
var Button = require('../../../../components/Button/Button.cjs');
|
|
60
59
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
61
60
|
require('../../../../components/Alert/Alert.cjs');
|
|
61
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
62
62
|
require('@dynamic-labs/viem-utils');
|
|
63
|
+
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
63
64
|
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
64
65
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
65
66
|
var LogoutButton = require('../../../../components/LogoutButton/LogoutButton.cjs');
|
|
66
67
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
67
68
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
68
69
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
70
|
+
require('../../../../views/WalletList/WalletList.cjs');
|
|
71
|
+
require('@hcaptcha/react-hcaptcha');
|
|
72
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
73
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
69
74
|
|
|
70
75
|
const WalletsView = () => {
|
|
71
76
|
const { setShowLinkNewWalletModal, setSelectedWalletConnectorKey, user, authMode, multiWallet, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -38,15 +38,14 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
38
38
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
39
39
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
40
40
|
import '../../../../context/FooterAnimationContext/index.js';
|
|
41
|
-
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
42
41
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
43
42
|
import { DynamicWidgetFooter } from '../../components/DynamicWidgetFooter/DynamicWidgetFooter.js';
|
|
44
43
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
44
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
45
|
import 'react-focus-lock';
|
|
47
46
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
48
|
-
import 'qrcode';
|
|
49
47
|
import 'i18next';
|
|
48
|
+
import 'qrcode';
|
|
50
49
|
import '../../context/DynamicWidgetContext.js';
|
|
51
50
|
import { DynamicWidgetWallets } from '../../components/DynamicWidgetWallets/DynamicWidgetWallets.js';
|
|
52
51
|
import { SingleWalletButtons } from '../../components/SingleWalletButtons/SingleWalletButtons.js';
|
|
@@ -55,13 +54,19 @@ import 'formik';
|
|
|
55
54
|
import { Button } from '../../../../components/Button/Button.js';
|
|
56
55
|
import '../../../../components/IconButton/IconButton.js';
|
|
57
56
|
import '../../../../components/Alert/Alert.js';
|
|
57
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
58
58
|
import '@dynamic-labs/viem-utils';
|
|
59
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
59
60
|
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
60
61
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
61
62
|
import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.js';
|
|
62
63
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
63
64
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
64
65
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
66
|
+
import '../../../../views/WalletList/WalletList.js';
|
|
67
|
+
import '@hcaptcha/react-hcaptcha';
|
|
68
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
69
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
65
70
|
|
|
66
71
|
const WalletsView = () => {
|
|
67
72
|
const { setShowLinkNewWalletModal, setSelectedWalletConnectorKey, user, authMode, multiWallet, } = useInternalDynamicContext();
|