@dynamic-labs/sdk-react-core 1.1.0-alpha.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +198 -0
- package/_virtual/_tslib.cjs +6 -1
- package/_virtual/_tslib.js +6 -1
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +13 -14
- package/src/index.cjs +57 -36
- package/src/index.d.ts +3 -2
- package/src/index.js +34 -22
- package/src/lib/Main.cjs +49 -27
- package/src/lib/Main.js +49 -27
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +16 -8
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +16 -8
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +16 -8
- package/src/lib/components/AnimatePresence/AnimatePresence.js +16 -8
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +24 -7
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +24 -7
- package/src/lib/components/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.d.ts +2 -1
- package/src/lib/components/Badge/Badge.js +1 -1
- package/src/lib/components/Badge/Badge.types.d.ts +2 -1
- package/src/lib/components/Captcha/Captcha.cjs +63 -1
- package/src/lib/components/Captcha/Captcha.js +63 -1
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/src/lib/components/Checkbox/Checkbox.js +1 -0
- package/src/lib/components/CopyButton/CopyButton.cjs +1 -11
- package/src/lib/components/CopyButton/CopyButton.js +2 -12
- package/src/lib/components/Divider/Divider.cjs +14 -6
- package/src/lib/components/Divider/Divider.js +14 -6
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +61 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +61 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.cjs +35 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +9 -0
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.js +31 -0
- package/src/lib/components/Icon/Icon.cjs +2 -0
- package/src/lib/components/Icon/Icon.js +2 -0
- package/src/lib/components/Icon/Icon.types.d.ts +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +4 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +4 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +3 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +3 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +4 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +4 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +4 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +4 -1
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +2 -1
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.cjs +9 -0
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.d.ts +6 -0
- package/src/lib/components/ListTileAnimatedTrailing/ListTileAnimatedTrailing.js +5 -0
- package/src/lib/components/ListTileAnimatedTrailing/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +51 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +51 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +12 -5
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +12 -5
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +1 -0
- package/src/lib/components/MenuList/MenuList/MenuList.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +16 -8
- package/src/lib/components/Modal/Modal.js +16 -8
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +26 -20
- package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +5 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +26 -20
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +19 -11
- package/src/lib/components/NetworkPicker/NetworkPicker.js +19 -11
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +17 -6
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +17 -6
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +14 -6
- package/src/lib/components/NetworkPicker/components/Network/Network.js +14 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +16 -8
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +16 -8
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +16 -55
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +16 -55
- package/src/lib/components/OverlayCard/OverlayCard.cjs +16 -8
- package/src/lib/components/OverlayCard/OverlayCard.js +16 -8
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +29 -16
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.d.ts +4 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +31 -18
- package/src/lib/components/Portal/Portal.cjs +23 -20
- package/src/lib/components/Portal/Portal.d.ts +3 -1
- package/src/lib/components/Portal/Portal.js +23 -20
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +63 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +63 -1
- package/src/lib/components/RenderView/RenderView.cjs +74 -0
- package/src/lib/components/RenderView/RenderView.d.ts +2 -0
- package/src/lib/components/RenderView/RenderView.js +70 -0
- package/src/lib/components/RenderView/index.d.ts +1 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +97 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.d.ts +9 -0
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +93 -0
- package/src/lib/components/RetrySendVerificationCodeSection/index.d.ts +1 -0
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +66 -7
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +66 -7
- package/src/lib/components/Select/Select.cjs +1 -0
- package/src/lib/components/Select/Select.js +1 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +5 -5
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +5 -5
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -0
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +61 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +61 -2
- package/src/lib/components/ShadowDOM/utils.cjs +1 -0
- package/src/lib/components/ShadowDOM/utils.js +1 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +1 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +1 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +14 -6
- package/src/lib/components/SocialSignIn/SocialSignIn.js +14 -6
- package/src/lib/components/Spinner/spinner.cjs +1 -0
- package/src/lib/components/Spinner/spinner.js +1 -0
- package/src/lib/components/StatusDot/StatusDot.d.ts +1 -1
- package/src/lib/components/Step/Step.cjs +1 -0
- package/src/lib/components/Step/Step.js +1 -0
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +24 -14
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.d.ts +1 -2
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +24 -14
- package/src/lib/components/Toolkit/Toolkit.cjs +50 -1
- package/src/lib/components/Toolkit/Toolkit.js +50 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +64 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +64 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +53 -2
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +53 -2
- package/src/lib/components/Tooltip/Tooltip.cjs +21 -32
- package/src/lib/components/Tooltip/Tooltip.js +21 -32
- package/src/lib/components/Tooltip/index.d.ts +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +63 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +63 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +70 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +70 -6
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +12 -4
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +12 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +15 -8
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +15 -8
- package/src/lib/components/UserAddress/UserAddress.cjs +12 -4
- package/src/lib/components/UserAddress/UserAddress.js +12 -4
- package/src/lib/components/UserProfile/UserProfile.cjs +50 -2
- package/src/lib/components/UserProfile/UserProfile.js +50 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +53 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +53 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +17 -7
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +17 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +53 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.js +53 -4
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.cjs +11 -0
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.d.ts +8 -0
- package/src/lib/components/WalletGroupViewLayout/WalletGroupViewLayout.js +7 -0
- package/src/lib/components/WalletGroupViewLayout/index.d.ts +1 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +4 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +2 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +4 -1
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.js +1 -1
- package/src/lib/context/CaptchaContext/CaptchaContext.js +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +17 -9
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +17 -9
- package/src/lib/context/DynamicContext/DynamicContext.cjs +78 -118
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +80 -120
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +1 -0
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +1 -0
- package/src/lib/context/DynamicContext/{helpers.cjs → helpers/helpers.cjs} +14 -10
- package/src/lib/context/DynamicContext/{helpers.d.ts → helpers/helpers.d.ts} +3 -3
- package/src/lib/context/DynamicContext/{helpers.js → helpers/helpers.js} +14 -10
- package/src/lib/context/DynamicContext/helpers/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/index.d.ts +2 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +17 -16
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +18 -17
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +13 -11
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +14 -12
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +36 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +124 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.d.ts +2 -0
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +120 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +2 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +2 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +23 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.d.ts +5 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +19 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +13 -1
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +2 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +13 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +40 -10
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.d.ts +7 -2
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +40 -10
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +1 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +6 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +2 -4
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +7 -50
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +7 -50
- package/src/lib/context/DynamicContext/useDynamicContext/index.d.ts +2 -0
- package/src/lib/context/DynamicContext/{useDynamicContext.cjs → useDynamicContext/useDynamicContext.cjs} +5 -1
- package/src/lib/context/DynamicContext/{useDynamicContext.d.ts → useDynamicContext/useDynamicContext.d.ts} +2 -2
- package/src/lib/context/DynamicContext/{useDynamicContext.js → useDynamicContext/useDynamicContext.js} +5 -1
- package/src/lib/context/DynamicContext/{useInternalDynamicContext.cjs → useDynamicContext/useInternalDynamicContext.cjs} +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useInternalDynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/{useInternalDynamicContext.js → useDynamicContext/useInternalDynamicContext.js} +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +88 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.d.ts +3 -0
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +84 -0
- package/src/lib/context/DynamicContext/validators/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/{validators.cjs → validators/validators.cjs} +7 -6
- package/src/lib/context/DynamicContext/{validators.d.ts → validators/validators.d.ts} +1 -1
- package/src/lib/context/DynamicContext/{validators.js → validators/validators.js} +7 -6
- package/src/lib/context/ErrorContext/ErrorContext.cjs +5 -11
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -12
- package/src/lib/context/FooterAnimationContext/index.d.ts +1 -2
- package/src/lib/context/FundingContext/FundingContext.cjs +53 -5
- package/src/lib/context/FundingContext/FundingContext.js +53 -5
- package/src/lib/context/LoadingContext/LoadingContext.cjs +15 -7
- package/src/lib/context/LoadingContext/LoadingContext.js +16 -8
- package/src/lib/context/MockContext/MockContext.cjs +17 -8
- package/src/lib/context/MockContext/MockContext.d.ts +4 -9
- package/src/lib/context/MockContext/MockContext.js +17 -8
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +187 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +23 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +181 -0
- package/src/lib/context/PasskeyContext/index.d.ts +1 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +40 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.d.ts +10 -0
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +35 -0
- package/src/lib/context/PhantomRedirectContext/index.d.ts +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +124 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.d.ts +5 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +120 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +19 -11
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +19 -11
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +15 -7
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +15 -7
- package/src/lib/context/ThemeContext/themesData.cjs +1 -0
- package/src/lib/context/ThemeContext/themesData.js +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +15 -8
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +15 -8
- package/src/lib/context/ViewContext/ViewContext.cjs +8 -5
- package/src/lib/context/ViewContext/ViewContext.d.ts +5 -5
- package/src/lib/context/ViewContext/ViewContext.js +8 -5
- package/src/lib/context/ViewContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +10 -0
- package/src/lib/context/WalletContext/WalletContext.cjs +44 -1
- package/src/lib/context/WalletContext/WalletContext.js +44 -1
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +13 -4
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +13 -4
- package/src/lib/data/api.cjs +42 -13
- package/src/lib/data/api.d.ts +16 -5
- package/src/lib/data/api.js +41 -13
- package/src/lib/events/dynamicEvents.d.ts +6 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.cjs +12 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.d.ts +6 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.js +8 -0
- package/src/lib/layout/DynamicAuthLayout/DefaultFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -13
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +20 -13
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +19 -24
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +20 -25
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +73 -12
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +73 -12
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +22 -10
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +22 -10
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +10 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +10 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +14 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +15 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +15 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +28 -18
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +28 -18
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +17 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +17 -8
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +14 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +15 -6
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +15 -6
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +16 -6
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +16 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +14 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +14 -6
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +14 -6
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +14 -6
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +14 -6
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +14 -6
- package/src/lib/locale/en/translation.cjs +238 -38
- package/src/lib/locale/en/translation.d.ts +228 -28
- package/src/lib/locale/en/translation.js +238 -38
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +18 -8
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.d.ts +0 -2
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +18 -8
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +14 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +14 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +39 -10
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +39 -10
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +15 -8
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +15 -8
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +13 -6
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +13 -6
- package/src/lib/shared/assets/domain.cjs +53 -0
- package/src/lib/shared/assets/domain.js +29 -0
- package/src/lib/shared/assets/export-private-key.cjs +54 -0
- package/src/lib/shared/assets/export-private-key.js +30 -0
- package/src/lib/shared/assets/export-recovery-phrase.cjs +54 -0
- package/src/lib/shared/assets/export-recovery-phrase.js +30 -0
- package/src/lib/shared/assets/gear.cjs +53 -0
- package/src/lib/shared/assets/gear.js +29 -0
- package/src/lib/shared/assets/index.d.ts +6 -1
- package/src/lib/shared/assets/multiple-account-security.cjs +106 -0
- package/src/lib/shared/assets/multiple-account-security.js +82 -0
- package/src/lib/shared/assets/passkey-account-security.cjs +92 -0
- package/src/lib/shared/assets/passkey-account-security.js +68 -0
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs +1 -1
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js +1 -1
- package/src/lib/shared/types/index.d.ts +17 -1
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +3 -1
- package/src/lib/shared/utils/classes/storage/localStorage.js +3 -1
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +15 -11
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.d.ts +1 -2
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +15 -11
- package/src/lib/shared/utils/functions/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs +1 -2
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js +1 -2
- package/src/lib/shared/utils/functions/providerLabel/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +15 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +2 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +11 -0
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +5 -3
- package/src/lib/shared/utils/functions/wallet/createWallet.js +5 -3
- package/src/lib/shared/utils/hooks/index.d.ts +5 -4
- package/src/lib/shared/utils/hooks/useOnClickOutside/index.cjs +4 -2
- package/src/lib/shared/utils/hooks/useOnClickOutside/index.js +5 -3
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs +29 -16
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +29 -16
- package/src/lib/shared/utils/hooks/useThrottle/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +29 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +8 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +25 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +4 -0
- package/src/lib/utils/constants/localStorage.d.ts +2 -0
- package/src/lib/utils/constants/localStorage.js +3 -1
- package/src/lib/utils/constants/values.cjs +26 -0
- package/src/lib/utils/constants/values.d.ts +7 -0
- package/src/lib/utils/constants/values.js +25 -1
- package/src/lib/utils/functions/createWalletClientFromWallet/createWalletClientFromWallet.cjs +63 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/createWalletClientFromWallet.d.ts +14 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/createWalletClientFromWallet.js +39 -0
- package/src/lib/utils/functions/createWalletClientFromWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.cjs +5 -2
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.d.ts +1 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js +5 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.cjs +8 -1
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +1 -1
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.js +8 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +2 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -1
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.cjs +18 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.js +14 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/index.d.ts +1 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.cjs +4 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.js +4 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +2 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +2 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.cjs +2 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.js +2 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +25 -4
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +10 -5
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +25 -4
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.cjs +10 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.d.ts +3 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.js +6 -0
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/index.d.ts +1 -0
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.cjs +19 -0
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.d.ts +3 -0
- package/src/lib/utils/functions/getWalletGroupType/getWalletGroupType.js +15 -0
- package/src/lib/utils/functions/getWalletGroupType/index.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +7 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +3 -0
- package/src/lib/utils/functions/getWalletIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +3 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +3 -1
- package/src/lib/utils/functions/index.d.ts +10 -5
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.cjs +3 -1
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.js +3 -1
- package/src/lib/utils/functions/isHardwareWalletEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.cjs +12 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.js +8 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -0
- package/src/lib/utils/functions/removeElementById/removeElementById.cjs +5 -4
- package/src/lib/utils/functions/removeElementById/removeElementById.js +5 -4
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +2 -2
- package/src/lib/utils/functions/storeAuthToken/index.cjs +1 -0
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -0
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +3 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +57 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +57 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +75 -21
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +75 -21
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +52 -19
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +52 -19
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +53 -5
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +53 -5
- package/src/lib/utils/hooks/events/index.d.ts +1 -1
- package/src/lib/utils/hooks/events/useWindowEvent/index.d.ts +1 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.cjs +24 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.d.ts +1 -0
- package/src/lib/utils/hooks/events/useWindowEvent/useWindowEvent.js +20 -0
- package/src/lib/utils/hooks/index.d.ts +2 -1
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +1 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +65 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +65 -3
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +48 -4
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +48 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +151 -78
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +151 -78
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +48 -5
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +48 -5
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +26 -13
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.d.ts +0 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +27 -14
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +2 -1
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +2 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +61 -15
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +17 -5
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +62 -16
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +50 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +50 -1
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +54 -4
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +54 -4
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +70 -13
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +71 -14
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +52 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +52 -3
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +8 -8
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +8 -8
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +64 -1
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +64 -1
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +54 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +54 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +52 -4
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +52 -4
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +63 -115
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +2 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +63 -115
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +194 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.d.ts +5 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +190 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +21 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +17 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +2 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +17 -2
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +18 -3
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +8 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.d.ts +4 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +8 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +64 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +64 -1
- package/src/lib/utils/hooks/useHover/useHover.cjs +9 -3
- package/src/lib/utils/hooks/useHover/useHover.js +9 -3
- package/src/lib/utils/hooks/useHover/useHover.types.d.ts +8 -1
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/index.d.ts +1 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +143 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.d.ts +13 -0
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +139 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +79 -3
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +79 -3
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +74 -5
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +74 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +54 -4
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +54 -4
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.d.ts +3 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +1 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +65 -1
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +65 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +171 -24
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +4 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +171 -24
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -0
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +2 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +2 -1
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +1 -0
- package/src/lib/utils/hooks/usePromise/usePromise.js +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.cjs +2 -0
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js +2 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +50 -3
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +50 -3
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +74 -27
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +75 -28
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +63 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +63 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +50 -31
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +50 -31
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +60 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +60 -2
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +1 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +88 -13
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +88 -13
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +2 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +4 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +10 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -4
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.cjs +11 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.d.ts +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.js +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +12 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +12 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +12 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +12 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +5 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +5 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +51 -9
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +51 -9
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +15 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +15 -8
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +70 -44
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +5 -7
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +71 -45
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +15 -13
- package/src/lib/views/AccountExistsView/AccountExistsView.js +15 -13
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +53 -2
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +53 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +51 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +51 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +52 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +52 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +12 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +12 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +16 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +16 -7
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +19 -11
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +19 -11
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +14 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +14 -6
- package/src/lib/views/CollectUserDataView/useFields.cjs +1 -0
- package/src/lib/views/CollectUserDataView/useFields.js +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +16 -7
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +16 -7
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +14 -6
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +14 -6
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +15 -7
- package/src/lib/views/EmailUpdate/EmailUpdate.js +15 -7
- package/src/lib/views/EmailVerification/EmailVerification.cjs +51 -58
- package/src/lib/views/EmailVerification/EmailVerification.js +51 -58
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +20 -11
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +20 -11
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +30 -14
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +30 -14
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +2 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +2 -0
- package/src/lib/views/LoginView/LoginView.cjs +20 -9
- package/src/lib/views/LoginView/LoginView.js +20 -9
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +18 -11
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +18 -11
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +14 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +52 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +52 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +13 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +13 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +14 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +14 -6
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +54 -5
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +55 -6
- package/src/lib/views/LoginView/useLoginView.cjs +50 -2
- package/src/lib/views/LoginView/useLoginView.js +50 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +15 -7
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +15 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +18 -10
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +18 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +19 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +19 -10
- package/src/lib/views/NoAccess/NoAccess.cjs +16 -7
- package/src/lib/views/NoAccess/NoAccess.js +16 -7
- package/src/lib/views/NoAccess/useNoAccessText.cjs +66 -4
- package/src/lib/views/NoAccess/useNoAccessText.js +66 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +16 -7
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +16 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +14 -6
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +14 -6
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +90 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.d.ts +6 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +86 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +120 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +7 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +116 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/index.d.ts +2 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +85 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.d.ts +14 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +81 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/index.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +121 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.d.ts +9 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +117 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +19 -11
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +19 -11
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +49 -36
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +50 -37
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +88 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.d.ts +2 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +84 -0
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +37 -16
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +8 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +38 -17
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +23 -15
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +23 -15
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +27 -37
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +6 -1
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +28 -38
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +116 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.d.ts +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +112 -0
- package/src/lib/views/Passkey/RenamePasskeyView/index.d.ts +1 -0
- package/src/lib/views/Passkey/index.d.ts +3 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +8 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +9 -5
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +8 -4
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.d.ts +3 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +9 -5
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.cjs +17 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.d.ts +3 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.js +13 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.cjs +3 -2
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.d.ts +2 -1
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.js +3 -2
- package/src/lib/views/Passkey/utils/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +124 -16
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +31 -6
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +124 -18
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +16 -7
- package/src/lib/views/PendingConnectView/PendingConnectView.js +17 -8
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +20 -11
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +20 -11
- package/src/lib/views/QrCodeView/QRCode.cjs +17 -10
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -1
- package/src/lib/views/QrCodeView/QRCode.js +17 -10
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +11 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +11 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +27 -14
- package/src/lib/views/QrCodeView/QrCodeView.js +28 -15
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +84 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.d.ts +8 -0
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +80 -0
- package/src/lib/views/SelectHardwareWalletView/index.d.ts +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +86 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.d.ts +2 -0
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +82 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +94 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +9 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +90 -0
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/index.d.ts +1 -0
- package/src/lib/views/SelectWalletInWalletGroupView/index.d.ts +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +21 -13
- package/src/lib/views/SendBalanceView/SendBalanceView.js +21 -13
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +16 -10
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +16 -10
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +13 -6
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +13 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +13 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +13 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +25 -12
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +25 -12
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +15 -8
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +15 -8
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +14 -6
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +14 -6
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +1 -0
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +65 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +65 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +15 -7
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +15 -7
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +31 -28
- package/src/lib/views/WalletGroupView/WalletGroupView.js +31 -28
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +73 -22
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +1 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +74 -23
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +14 -6
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +14 -6
- package/src/lib/views/WalletList/WalletList.cjs +59 -12
- package/src/lib/views/WalletList/WalletList.js +59 -12
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +28 -12
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +29 -13
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +0 -1
- package/src/lib/views/WalletList/data.cjs +1 -0
- package/src/lib/views/WalletList/data.js +1 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +15 -7
- package/src/lib/views/WalletLockedView/WalletLockedView.js +16 -8
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +33 -25
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +33 -25
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +25 -18
- package/src/lib/views/WalletUsedView/WalletUsedView.js +26 -19
- package/src/lib/views/viewToComponentMap.cjs +112 -43
- package/src/lib/views/viewToComponentMap.d.ts +2 -3
- package/src/lib/views/viewToComponentMap.js +112 -43
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +19 -9
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +24 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +25 -12
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +20 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +20 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +31 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +31 -19
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +61 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +61 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +62 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +62 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +51 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +51 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +15 -11
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +15 -11
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +15 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +15 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +31 -22
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +31 -22
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +20 -11
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.d.ts +3 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +20 -11
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +20 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +20 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +39 -14
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +38 -13
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +33 -24
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +33 -24
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +17 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +17 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +18 -11
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +18 -11
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +16 -8
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +16 -8
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +15 -7
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +27 -18
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +28 -19
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +16 -7
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +27 -19
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +27 -19
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +34 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.d.ts +10 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +30 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +18 -25
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +4 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +18 -25
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +21 -12
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +21 -12
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.js +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/index.d.ts +1 -0
- package/src/lib/{views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs → widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs} +45 -36
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.d.ts +3 -0
- package/src/lib/{views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js → widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js} +45 -36
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +15 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +15 -8
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +79 -22
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +79 -22
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +78 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +78 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +69 -11
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +1 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +69 -11
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +65 -1
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +65 -1
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +68 -18
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +68 -18
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +17 -9
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +65 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +65 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +15 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +19 -10
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +19 -10
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +16 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +67 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +67 -18
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +25 -9
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +25 -9
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +15 -6
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +15 -6
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +36 -44
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +36 -44
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +15 -7
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +15 -7
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +21 -28
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +21 -28
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +41 -13
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +41 -13
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +16 -7
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +53 -18
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +53 -18
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +16 -7
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +16 -7
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +16 -7
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +16 -7
- package/src/version.d.ts +2 -2
- package/src/lib/components/ChainCard/ChainCard.cjs +0 -11
- package/src/lib/components/ChainCard/ChainCard.d.ts +0 -9
- package/src/lib/components/ChainCard/ChainCard.js +0 -7
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +0 -15
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -6
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +0 -11
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.cjs +0 -23
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.d.ts +0 -4
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.js +0 -19
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +0 -76
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.d.ts +0 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +0 -72
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +0 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +0 -83
- package/src/lib/context/QrCodeContext/QrCodeContext.d.ts +0 -13
- package/src/lib/context/QrCodeContext/QrCodeContext.js +0 -77
- package/src/lib/context/QrCodeContext/index.d.ts +0 -1
- package/src/lib/shared/assets/turnkey.cjs +0 -79
- package/src/lib/shared/assets/turnkey.js +0 -55
- package/src/lib/utils/functions/isPasskeyEnabled/isPasskeyEnabled.cjs +0 -22
- package/src/lib/utils/functions/isPasskeyEnabled/isPasskeyEnabled.js +0 -18
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/index.d.ts +0 -1
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.cjs +0 -49
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.d.ts +0 -18
- package/src/lib/utils/functions/sendTransactionWithAutoNonce/sendTransactionWithAutoNonce.js +0 -44
- package/src/lib/utils/hooks/events/useEventListener/index.d.ts +0 -1
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.cjs +0 -26
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.d.ts +0 -1
- package/src/lib/utils/hooks/events/useEventListener/useEventListener.js +0 -22
- package/src/lib/utils/hooks/useDefaultQrCode/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs +0 -34
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.d.ts +0 -7
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.js +0 -30
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/hooks/useContent.d.ts +0 -7
- /package/src/lib/{views/WalletGroupView/components → components}/HardwareWalletToggle/index.d.ts +0 -0
|
@@ -9,18 +9,20 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
9
9
|
import '@dynamic-labs/wallet-book';
|
|
10
10
|
import { shortenWalletAddress } from '../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
11
11
|
import '../../../../utils/constants/colors.js';
|
|
12
|
+
import '../../../../utils/constants/values.js';
|
|
12
13
|
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
13
14
|
import 'viem';
|
|
14
15
|
import '@dynamic-labs/utils';
|
|
15
16
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
17
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
18
|
+
import '../../../../shared/consts/index.js';
|
|
18
19
|
import '../../../../events/dynamicEvents.js';
|
|
20
|
+
import '../../../../../../_virtual/_tslib.js';
|
|
19
21
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
20
22
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
21
|
-
import '../../../../shared/consts/index.js';
|
|
22
23
|
import '@dynamic-labs/multi-wallet';
|
|
23
24
|
import { getActiveOauthCredential } from '../../../../utils/functions/getActiveOauthCredential/getActiveOauthCredential.js';
|
|
25
|
+
import 'viem/chains';
|
|
24
26
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
25
27
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
26
28
|
import '../../../../config/ApiEndpoint.js';
|
|
@@ -35,34 +37,41 @@ import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser
|
|
|
35
37
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
36
38
|
import '@dynamic-labs/rpc-providers';
|
|
37
39
|
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
40
|
+
import { classNames } from '../../../../utils/functions/classNames/classNames.js';
|
|
41
|
+
import '../../../../components/Alert/Alert.js';
|
|
42
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
43
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
44
|
+
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
45
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
46
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
47
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
38
48
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
39
49
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
40
50
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
41
|
-
import '../../../../
|
|
51
|
+
import { shortenEmail } from '../../../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
52
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
53
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
54
|
+
import 'react-focus-lock';
|
|
55
|
+
import 'formik';
|
|
56
|
+
import 'i18next';
|
|
42
57
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
43
|
-
import '../../../../
|
|
44
|
-
import '../../../../context/
|
|
45
|
-
import
|
|
58
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
60
|
+
import '../../../../views/WalletList/WalletList.js';
|
|
61
|
+
import { useFetchNameService } from '../../hooks/useFetchNameService/useFetchNameService.js';
|
|
62
|
+
import { AuthProviderIcon } from '../../../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
63
|
+
import 'qrcode';
|
|
64
|
+
import '@hcaptcha/react-hcaptcha';
|
|
65
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
66
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
46
67
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
68
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
69
|
+
import '../../../../context/FooterAnimationContext/index.js';
|
|
47
70
|
import '../DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
|
-
import 'react-focus-lock';
|
|
49
|
-
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
50
|
-
import 'qrcode';
|
|
51
|
-
import { AuthProviderIcon } from '../../../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
52
|
-
import 'i18next';
|
|
53
71
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
54
|
-
import 'formik';
|
|
55
|
-
import '../../../../components/IconButton/IconButton.js';
|
|
56
|
-
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
57
|
-
import '../../../../components/Alert/Alert.js';
|
|
58
72
|
import '@dynamic-labs/viem-utils';
|
|
59
73
|
import '../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
60
|
-
import '../../../../
|
|
61
|
-
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
62
|
-
import { shortenEmail } from '../../../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
63
|
-
import '../../../../components/Popper/Popper/Popper.js';
|
|
64
|
-
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
65
|
-
import { useFetchNameService } from '../../hooks/useFetchNameService/useFetchNameService.js';
|
|
74
|
+
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
66
75
|
|
|
67
76
|
const AccountControl = ({ className }) => {
|
|
68
77
|
const { primaryWallet, user, authToken } = useInternalDynamicContext();
|
|
@@ -4,32 +4,35 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var reactI18next = require('react-i18next');
|
|
7
|
+
var sdkApi = require('@dynamic-labs/sdk-api');
|
|
7
8
|
require('react');
|
|
8
9
|
require('../../../../../events/dynamicEvents.cjs');
|
|
10
|
+
require('../../../../../../../_virtual/_tslib.cjs');
|
|
9
11
|
require('@dynamic-labs/utils');
|
|
10
12
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
11
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
13
|
-
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
14
|
-
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
15
|
-
require('@dynamic-labs/sdk-api');
|
|
16
13
|
require('../../../../../shared/logger.cjs');
|
|
17
14
|
require('@dynamic-labs/iconic');
|
|
15
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
16
|
+
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
18
17
|
var copy = require('../../../../../shared/assets/copy.cjs');
|
|
19
18
|
require('@dynamic-labs/wallet-book');
|
|
20
19
|
var shortenWalletAddress = require('../../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
21
20
|
require('../../../../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../../../../utils/constants/values.cjs');
|
|
22
22
|
require('../../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
23
|
require('viem');
|
|
24
24
|
require('../../../../../shared/consts/index.cjs');
|
|
25
|
+
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
25
27
|
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
var getWalletAdditionalAddressByType = require('../../../../../utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.cjs');
|
|
29
|
+
require('viem/chains');
|
|
26
30
|
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
27
31
|
require('../../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
28
32
|
require('../../../../../config/ApiEndpoint.cjs');
|
|
29
33
|
require('../../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
30
34
|
require('react-dom');
|
|
31
35
|
require('../../../../../context/ThemeContext/ThemeContext.cjs');
|
|
32
|
-
var usePromise = require('../../../../../utils/hooks/usePromise/usePromise.cjs');
|
|
33
36
|
require('@dynamic-labs/types');
|
|
34
37
|
require('yup');
|
|
35
38
|
require('../../../../../context/MockContext/MockContext.cjs');
|
|
@@ -43,21 +46,22 @@ require('../../../../../components/Transition/OpacityTransition/OpacityTransitio
|
|
|
43
46
|
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
44
47
|
require('../../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
45
48
|
require('../../../../../context/FooterAnimationContext/index.cjs');
|
|
46
|
-
require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
47
49
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
48
50
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
51
|
require('../../DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
52
|
require('react-focus-lock');
|
|
51
53
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
-
require('qrcode');
|
|
53
54
|
var Icon = require('../../../../../components/Icon/Icon.cjs');
|
|
54
55
|
require('i18next');
|
|
56
|
+
require('qrcode');
|
|
55
57
|
require('../../../context/DynamicWidgetContext.cjs');
|
|
56
58
|
var DotsMenu = require('../../DotsMenu/DotsMenu.cjs');
|
|
57
59
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
58
60
|
require('formik');
|
|
59
61
|
require('../../../../../components/IconButton/IconButton.cjs');
|
|
60
62
|
require('../../../../../components/Alert/Alert.cjs');
|
|
63
|
+
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
64
|
+
require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
61
65
|
require('@dynamic-labs/viem-utils');
|
|
62
66
|
require('../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
63
67
|
var CopyButton = require('../../../../../components/CopyButton/CopyButton.cjs');
|
|
@@ -65,11 +69,16 @@ require('../../../../../components/InlineWidget/InlineWidget.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');
|
|
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');
|
|
68
76
|
|
|
69
|
-
const ActiveBitcoinWalletAddresses = ({
|
|
77
|
+
const ActiveBitcoinWalletAddresses = ({ menuOption, wallet }) => {
|
|
78
|
+
var _a, _b;
|
|
70
79
|
const { t } = reactI18next.useTranslation();
|
|
71
|
-
const
|
|
72
|
-
const
|
|
80
|
+
const ordinalsAddress = (_a = getWalletAdditionalAddressByType.getWalletAdditionalAddressByType(sdkApi.WalletAddressType.Ordinals, wallet)) !== null && _a !== void 0 ? _a : wallet === null || wallet === void 0 ? void 0 : wallet.address;
|
|
81
|
+
const paymenyAddress = (_b = getWalletAdditionalAddressByType.getWalletAdditionalAddressByType(sdkApi.WalletAddressType.Payment, wallet)) !== null && _b !== void 0 ? _b : wallet === null || wallet === void 0 ? void 0 : wallet.address;
|
|
73
82
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_active_wallet_info.ordinals_address') }), jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__address', weight: 'medium', variant: 'body_normal', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(ordinalsAddress, 4, 4) })] }), jsxRuntime.jsx(DotsMenu.DotsMenu, { "data-testid": 'dots-menu', options: menuOption, buttonClassName: 'active-wallet-information__dots-menu', buttonClassNameWithOpenMenu: 'active-wallet-information__dots-menu' })] }), jsxRuntime.jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_active_wallet_info.payment_address') }), jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(paymenyAddress, 4, 4) })] }), jsxRuntime.jsx(CopyButton.CopyButton, { textToCopy: paymenyAddress !== null && paymenyAddress !== void 0 ? paymenyAddress : '', children: jsxRuntime.jsx(Icon.Icon, { size: 'xsmall', children: jsxRuntime.jsx(copy.ReactComponent, {}) }) })] })] }));
|
|
74
83
|
};
|
|
75
84
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { Wallet } from '../../../../../shared';
|
|
3
3
|
import { DotsMenuOption } from '../../DotsMenu';
|
|
4
4
|
type Props = {
|
|
5
|
-
bitcoinConnector: BitcoinWalletConnector;
|
|
6
5
|
menuOption: DotsMenuOption[];
|
|
6
|
+
wallet?: Wallet;
|
|
7
7
|
};
|
|
8
|
-
export declare const ActiveBitcoinWalletAddresses: ({
|
|
8
|
+
export declare const ActiveBitcoinWalletAddresses: ({ menuOption, wallet }: Props) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { WalletAddressType } from '@dynamic-labs/sdk-api';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '../../../../../events/dynamicEvents.js';
|
|
6
|
+
import '../../../../../../../_virtual/_tslib.js';
|
|
5
7
|
import '@dynamic-labs/utils';
|
|
6
8
|
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
7
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
9
|
-
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
10
|
-
import '../../../../../context/ViewContext/ViewContext.js';
|
|
11
|
-
import '@dynamic-labs/sdk-api';
|
|
12
9
|
import '../../../../../shared/logger.js';
|
|
13
10
|
import '@dynamic-labs/iconic';
|
|
11
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../../../../context/ViewContext/ViewContext.js';
|
|
14
13
|
import { ReactComponent as SvgCopy } from '../../../../../shared/assets/copy.js';
|
|
15
14
|
import '@dynamic-labs/wallet-book';
|
|
16
15
|
import { shortenWalletAddress } from '../../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
17
16
|
import '../../../../../utils/constants/colors.js';
|
|
17
|
+
import '../../../../../utils/constants/values.js';
|
|
18
18
|
import '../../../../../shared/utils/classes/storage/localStorage.js';
|
|
19
19
|
import 'viem';
|
|
20
20
|
import '../../../../../shared/consts/index.js';
|
|
21
|
+
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
21
23
|
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import { getWalletAdditionalAddressByType } from '../../../../../utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.js';
|
|
25
|
+
import 'viem/chains';
|
|
22
26
|
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
23
27
|
import '../../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
24
28
|
import '../../../../../config/ApiEndpoint.js';
|
|
25
29
|
import '../../../../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
26
30
|
import 'react-dom';
|
|
27
31
|
import '../../../../../context/ThemeContext/ThemeContext.js';
|
|
28
|
-
import { usePromise } from '../../../../../utils/hooks/usePromise/usePromise.js';
|
|
29
32
|
import '@dynamic-labs/types';
|
|
30
33
|
import 'yup';
|
|
31
34
|
import '../../../../../context/MockContext/MockContext.js';
|
|
@@ -39,21 +42,22 @@ import '../../../../../components/Transition/OpacityTransition/OpacityTransition
|
|
|
39
42
|
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
40
43
|
import '../../../../../components/OverlayCard/OverlayCard.context.js';
|
|
41
44
|
import '../../../../../context/FooterAnimationContext/index.js';
|
|
42
|
-
import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
43
45
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
44
46
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
47
|
import '../../DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
48
|
import 'react-focus-lock';
|
|
47
49
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
48
|
-
import 'qrcode';
|
|
49
50
|
import { Icon } from '../../../../../components/Icon/Icon.js';
|
|
50
51
|
import 'i18next';
|
|
52
|
+
import 'qrcode';
|
|
51
53
|
import '../../../context/DynamicWidgetContext.js';
|
|
52
54
|
import { DotsMenu } from '../../DotsMenu/DotsMenu.js';
|
|
53
55
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
54
56
|
import 'formik';
|
|
55
57
|
import '../../../../../components/IconButton/IconButton.js';
|
|
56
58
|
import '../../../../../components/Alert/Alert.js';
|
|
59
|
+
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
60
|
+
import '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
57
61
|
import '@dynamic-labs/viem-utils';
|
|
58
62
|
import '../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
59
63
|
import { CopyButton } from '../../../../../components/CopyButton/CopyButton.js';
|
|
@@ -61,11 +65,16 @@ import '../../../../../components/InlineWidget/InlineWidget.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';
|
|
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';
|
|
64
72
|
|
|
65
|
-
const ActiveBitcoinWalletAddresses = ({
|
|
73
|
+
const ActiveBitcoinWalletAddresses = ({ menuOption, wallet }) => {
|
|
74
|
+
var _a, _b;
|
|
66
75
|
const { t } = useTranslation();
|
|
67
|
-
const
|
|
68
|
-
const
|
|
76
|
+
const ordinalsAddress = (_a = getWalletAdditionalAddressByType(WalletAddressType.Ordinals, wallet)) !== null && _a !== void 0 ? _a : wallet === null || wallet === void 0 ? void 0 : wallet.address;
|
|
77
|
+
const paymenyAddress = (_b = getWalletAdditionalAddressByType(WalletAddressType.Payment, wallet)) !== null && _b !== void 0 ? _b : wallet === null || wallet === void 0 ? void 0 : wallet.address;
|
|
69
78
|
return (jsxs(Fragment, { children: [jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxs("div", { children: [jsx(Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_active_wallet_info.ordinals_address') }), jsx(Typography, { className: 'active-wallet-information__address', weight: 'medium', variant: 'body_normal', color: 'primary', children: shortenWalletAddress(ordinalsAddress, 4, 4) })] }), jsx(DotsMenu, { "data-testid": 'dots-menu', options: menuOption, buttonClassName: 'active-wallet-information__dots-menu', buttonClassNameWithOpenMenu: 'active-wallet-information__dots-menu' })] }), jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxs("div", { children: [jsx(Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_active_wallet_info.payment_address') }), jsx(Typography, { className: 'active-wallet-information__address', weight: 'regular', variant: 'body_small', color: 'primary', children: shortenWalletAddress(paymenyAddress, 4, 4) })] }), jsx(CopyButton, { textToCopy: paymenyAddress !== null && paymenyAddress !== void 0 ? paymenyAddress : '', children: jsx(Icon, { size: 'xsmall', children: jsx(SvgCopy, {}) }) })] })] }));
|
|
70
79
|
};
|
|
71
80
|
|
|
@@ -5,22 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('../../../../../events/dynamicEvents.cjs');
|
|
8
|
+
require('../../../../../../../_virtual/_tslib.cjs');
|
|
8
9
|
require('@dynamic-labs/utils');
|
|
9
10
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
10
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
11
|
-
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
12
|
-
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
13
|
-
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
14
11
|
require('@dynamic-labs/sdk-api');
|
|
15
12
|
require('../../../../../shared/logger.cjs');
|
|
16
13
|
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
|
+
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
16
|
+
var gear = require('../../../../../shared/assets/gear.cjs');
|
|
17
17
|
require('@dynamic-labs/wallet-book');
|
|
18
18
|
var shortenWalletAddress = require('../../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
19
19
|
require('../../../../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../../../../utils/constants/values.cjs');
|
|
20
21
|
require('../../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
22
|
require('viem');
|
|
22
23
|
require('../../../../../shared/consts/index.cjs');
|
|
24
|
+
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
|
+
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
23
26
|
require('@dynamic-labs/multi-wallet');
|
|
27
|
+
require('viem/chains');
|
|
24
28
|
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
25
29
|
require('../../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
26
30
|
require('../../../../../config/ApiEndpoint.cjs');
|
|
@@ -41,27 +45,36 @@ require('../../../../../components/Transition/OpacityTransition/OpacityTransitio
|
|
|
41
45
|
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
42
46
|
require('../../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
43
47
|
require('../../../../../context/FooterAnimationContext/index.cjs');
|
|
44
|
-
require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
45
48
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
46
49
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
47
50
|
require('../../DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
51
|
require('react-focus-lock');
|
|
49
52
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
50
|
-
require('
|
|
53
|
+
var IconWithStatus = require('../../../../../components/IconWithStatus/IconWithStatus.cjs');
|
|
51
54
|
require('i18next');
|
|
55
|
+
require('qrcode');
|
|
52
56
|
require('../../../context/DynamicWidgetContext.cjs');
|
|
53
57
|
var DotsMenu = require('../../DotsMenu/DotsMenu.cjs');
|
|
54
58
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
55
59
|
require('formik');
|
|
56
60
|
require('../../../../../components/IconButton/IconButton.cjs');
|
|
57
61
|
require('../../../../../components/Alert/Alert.cjs');
|
|
62
|
+
require('../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
63
|
+
var PasskeyContext = require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
58
64
|
require('@dynamic-labs/viem-utils');
|
|
59
65
|
require('../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
60
66
|
require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
61
67
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
62
68
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
63
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');
|
|
64
74
|
|
|
65
|
-
const ActiveWalletAddreess = ({ address, nameServiceName, menuOption, }) =>
|
|
75
|
+
const ActiveWalletAddreess = ({ address, nameServiceName, menuOption, }) => {
|
|
76
|
+
const { showAlert } = PasskeyContext.usePasskeyContext();
|
|
77
|
+
return (jsxRuntime.jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__handle', color: 'primary', variant: 'body_normal', children: nameServiceName }), jsxRuntime.jsx(Typography.Typography, { className: 'active-wallet-information__address', weight: nameServiceName ? 'regular' : 'medium', variant: nameServiceName ? 'body_small' : 'body_normal', color: nameServiceName ? 'secondary' : 'primary', children: shortenWalletAddress.shortenWalletAddress(address, 4, 4) })] }), jsxRuntime.jsx(DotsMenu.DotsMenu, { "data-testid": 'dots-menu', options: menuOption, buttonClassName: 'active-wallet-information__dots-menu', buttonClassNameWithOpenMenu: 'active-wallet-information__dots-menu', iconOverride: showAlert() ? (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: () => jsxRuntime.jsx(gear.ReactComponent, { width: 16, height: 16 }), variant: 'yellow' })) : (jsxRuntime.jsx(gear.ReactComponent, { width: 16, height: 16 })) })] }));
|
|
78
|
+
};
|
|
66
79
|
|
|
67
80
|
exports.ActiveWalletAddreess = ActiveWalletAddreess;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../../../events/dynamicEvents.js';
|
|
4
|
+
import '../../../../../../../_virtual/_tslib.js';
|
|
4
5
|
import '@dynamic-labs/utils';
|
|
5
6
|
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
6
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
7
|
-
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
8
|
-
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
9
|
-
import '../../../../../context/ViewContext/ViewContext.js';
|
|
10
7
|
import '@dynamic-labs/sdk-api';
|
|
11
8
|
import '../../../../../shared/logger.js';
|
|
12
9
|
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
11
|
+
import '../../../../../context/ViewContext/ViewContext.js';
|
|
12
|
+
import { ReactComponent as SvgGear } from '../../../../../shared/assets/gear.js';
|
|
13
13
|
import '@dynamic-labs/wallet-book';
|
|
14
14
|
import { shortenWalletAddress } from '../../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
15
15
|
import '../../../../../utils/constants/colors.js';
|
|
16
|
+
import '../../../../../utils/constants/values.js';
|
|
16
17
|
import '../../../../../shared/utils/classes/storage/localStorage.js';
|
|
17
18
|
import 'viem';
|
|
18
19
|
import '../../../../../shared/consts/index.js';
|
|
20
|
+
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
21
|
+
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
19
22
|
import '@dynamic-labs/multi-wallet';
|
|
23
|
+
import 'viem/chains';
|
|
20
24
|
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
21
25
|
import '../../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
22
26
|
import '../../../../../config/ApiEndpoint.js';
|
|
@@ -37,27 +41,36 @@ import '../../../../../components/Transition/OpacityTransition/OpacityTransition
|
|
|
37
41
|
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
38
42
|
import '../../../../../components/OverlayCard/OverlayCard.context.js';
|
|
39
43
|
import '../../../../../context/FooterAnimationContext/index.js';
|
|
40
|
-
import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
41
44
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
42
45
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
43
46
|
import '../../DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
47
|
import 'react-focus-lock';
|
|
45
48
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
46
|
-
import '
|
|
49
|
+
import { IconWithStatus } from '../../../../../components/IconWithStatus/IconWithStatus.js';
|
|
47
50
|
import 'i18next';
|
|
51
|
+
import 'qrcode';
|
|
48
52
|
import '../../../context/DynamicWidgetContext.js';
|
|
49
53
|
import { DotsMenu } from '../../DotsMenu/DotsMenu.js';
|
|
50
54
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
51
55
|
import 'formik';
|
|
52
56
|
import '../../../../../components/IconButton/IconButton.js';
|
|
53
57
|
import '../../../../../components/Alert/Alert.js';
|
|
58
|
+
import '../../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
59
|
+
import { usePasskeyContext } from '../../../../../context/PasskeyContext/PasskeyContext.js';
|
|
54
60
|
import '@dynamic-labs/viem-utils';
|
|
55
61
|
import '../../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
56
62
|
import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
57
63
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
58
64
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
59
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';
|
|
60
70
|
|
|
61
|
-
const ActiveWalletAddreess = ({ address, nameServiceName, menuOption, }) =>
|
|
71
|
+
const ActiveWalletAddreess = ({ address, nameServiceName, menuOption, }) => {
|
|
72
|
+
const { showAlert } = usePasskeyContext();
|
|
73
|
+
return (jsxs("div", { className: 'active-wallet-information__address-container', children: [jsxs("div", { children: [jsx(Typography, { className: 'active-wallet-information__handle', color: 'primary', variant: 'body_normal', children: nameServiceName }), jsx(Typography, { className: 'active-wallet-information__address', weight: nameServiceName ? 'regular' : 'medium', variant: nameServiceName ? 'body_small' : 'body_normal', color: nameServiceName ? 'secondary' : 'primary', children: shortenWalletAddress(address, 4, 4) })] }), jsx(DotsMenu, { "data-testid": 'dots-menu', options: menuOption, buttonClassName: 'active-wallet-information__dots-menu', buttonClassNameWithOpenMenu: 'active-wallet-information__dots-menu', iconOverride: showAlert() ? (jsx(IconWithStatus, { Icon: () => jsx(SvgGear, { width: 16, height: 16 }), variant: 'yellow' })) : (jsx(SvgGear, { width: 16, height: 16 })) })] }));
|
|
74
|
+
};
|
|
62
75
|
|
|
63
76
|
export { ActiveWalletAddreess };
|
package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs
CHANGED
|
@@ -5,33 +5,37 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactI18next = require('react-i18next');
|
|
8
|
-
var
|
|
8
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
9
9
|
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
10
10
|
require('../../../../events/dynamicEvents.cjs');
|
|
11
|
+
require('../../../../../../_virtual/_tslib.cjs');
|
|
11
12
|
require('@dynamic-labs/utils');
|
|
12
|
-
|
|
13
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
14
|
-
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
15
|
-
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
16
|
-
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
17
14
|
require('@dynamic-labs/sdk-api');
|
|
18
15
|
var logger = require('../../../../shared/logger.cjs');
|
|
19
16
|
require('@dynamic-labs/iconic');
|
|
17
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
20
18
|
require('@dynamic-labs/wallet-book');
|
|
21
19
|
require('../../../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../../../utils/constants/values.cjs');
|
|
22
21
|
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
22
|
require('viem');
|
|
24
23
|
require('../../../../shared/consts/index.cjs');
|
|
24
|
+
var useInternalDynamicContext = require('../../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
25
|
+
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
+
var createOwnerWallet = require('../../../../utils/functions/createOwnerWallet/createOwnerWallet.cjs');
|
|
25
28
|
require('@dynamic-labs/multi-wallet');
|
|
26
|
-
var isTestnet = require('../../../../utils/functions/isTestnet/isTestnet.cjs');
|
|
27
29
|
var isAccountAbstractionWallet = require('../../../../utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.cjs');
|
|
28
|
-
var
|
|
30
|
+
var isTestnet = require('../../../../utils/functions/isTestnet/isTestnet.cjs');
|
|
31
|
+
require('viem/chains');
|
|
29
32
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
33
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
31
34
|
require('../../../../config/ApiEndpoint.cjs');
|
|
32
35
|
require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
33
36
|
require('react-dom');
|
|
34
37
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
38
|
+
var useIsTurnkeyWallet = require('../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
|
|
35
39
|
var usePromise = require('../../../../utils/hooks/usePromise/usePromise.cjs');
|
|
36
40
|
require('@dynamic-labs/types');
|
|
37
41
|
require('yup');
|
|
@@ -46,35 +50,40 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
46
50
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
47
51
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
48
52
|
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
49
|
-
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
50
|
-
var useIsTurnkeyWallet = require('../../../../utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs');
|
|
51
53
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
52
54
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
55
|
require('../DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
56
|
require('react-focus-lock');
|
|
55
57
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
-
require('qrcode');
|
|
57
58
|
var AuthProviderIcon = require('../../../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
58
59
|
var helpers = require('../../helpers/helpers.cjs');
|
|
60
|
+
require('qrcode');
|
|
59
61
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
60
62
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
63
|
require('formik');
|
|
62
64
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
63
65
|
var Alert = require('../../../../components/Alert/Alert.cjs');
|
|
66
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
67
|
+
var PasskeyContext = require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
64
68
|
require('@dynamic-labs/viem-utils');
|
|
65
69
|
require('../../views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
66
70
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
67
71
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
68
72
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
69
73
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
|
+
require('../../../../views/WalletList/WalletList.cjs');
|
|
70
75
|
var NetworkPicker = require('../../../../components/NetworkPicker/NetworkPicker.cjs');
|
|
71
76
|
var useFetchNameService = require('../../hooks/useFetchNameService/useFetchNameService.cjs');
|
|
77
|
+
require('@hcaptcha/react-hcaptcha');
|
|
78
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
79
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
72
80
|
var Balance = require('../Balance/Balance.cjs');
|
|
73
81
|
var ActiveBitcoinWalletAddresses = require('./ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs');
|
|
74
82
|
var ActiveWalletAddress = require('./ActiveWalletAddress/ActiveWalletAddress.cjs');
|
|
75
83
|
|
|
76
84
|
const ICON_SIZE = 28;
|
|
77
85
|
const ActiveWalletInformation = () => {
|
|
86
|
+
var _a, _b;
|
|
78
87
|
const { t } = reactI18next.useTranslation();
|
|
79
88
|
const [isNetworkPickerOpen, setIsNetworkPickerOpen] = React.useState(false);
|
|
80
89
|
const { primaryWallet, authToken, network, projectSettings, handleLogOut, user, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -84,10 +93,12 @@ const ActiveWalletInformation = () => {
|
|
|
84
93
|
const nameService = useFetchNameService.useFetchNameService(address);
|
|
85
94
|
const { data: testnet } = usePromise.usePromise(() => isTestnet.isTestnet(primaryWallet), { deps: [network] });
|
|
86
95
|
const exportKeysOption = helpers.getExportKeysOption(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector, projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers);
|
|
96
|
+
const { showAlert } = PasskeyContext.usePasskeyContext();
|
|
87
97
|
const wallet = isAccountAbstractionWallet.isAccountAbstractionWallet(primaryWallet)
|
|
88
98
|
? createOwnerWallet.createOwnerWallet(primaryWallet, (user === null || user === void 0 ? void 0 : user.verifiedCredentials) || [])
|
|
89
99
|
: primaryWallet;
|
|
90
|
-
const isBitcoin = primaryWallet &&
|
|
100
|
+
const isBitcoin = primaryWallet && walletConnectorCore.isBitcoinConnector(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector);
|
|
101
|
+
const isEmbeddedWallet = Boolean(wallet && ((_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _a === void 0 ? void 0 : _a.key) === null || _b === void 0 ? void 0 : _b.startsWith('turnkey')));
|
|
91
102
|
const options = [
|
|
92
103
|
{
|
|
93
104
|
Icon: null,
|
|
@@ -104,6 +115,8 @@ const ActiveWalletInformation = () => {
|
|
|
104
115
|
{
|
|
105
116
|
Icon: null,
|
|
106
117
|
callback: () => setDynamicWidgetView('wallet-settings'),
|
|
118
|
+
fontColor: showAlert() ? 'primary' : undefined,
|
|
119
|
+
fontWeight: showAlert() ? 'bold' : undefined,
|
|
107
120
|
hide: !(wallet && wallet.connector.key.startsWith('turnkey')),
|
|
108
121
|
text: 'Wallet settings',
|
|
109
122
|
},
|
|
@@ -117,6 +130,7 @@ const ActiveWalletInformation = () => {
|
|
|
117
130
|
{
|
|
118
131
|
Icon: null,
|
|
119
132
|
callback: handleLogOut,
|
|
133
|
+
hide: isEmbeddedWallet,
|
|
120
134
|
text: 'Disconnect',
|
|
121
135
|
},
|
|
122
136
|
];
|
|
@@ -124,9 +138,20 @@ const ActiveWalletInformation = () => {
|
|
|
124
138
|
(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector).evmNetworks) ||
|
|
125
139
|
[];
|
|
126
140
|
const showTestnetAlert = testnet && !isTurnkeyWalletWithoutAuthenticator;
|
|
127
|
-
|
|
141
|
+
const activeWalletAddress = () => {
|
|
142
|
+
if (isBitcoin) {
|
|
143
|
+
return (jsxRuntime.jsx(ActiveBitcoinWalletAddresses.ActiveBitcoinWalletAddresses, { wallet: primaryWallet, menuOption: options }));
|
|
144
|
+
}
|
|
145
|
+
else if (isEmbeddedWallet) {
|
|
146
|
+
return (jsxRuntime.jsx(ActiveWalletAddress.ActiveWalletAddreess, { address: address, nameServiceName: user === null || user === void 0 ? void 0 : user.email, menuOption: options }));
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
return (jsxRuntime.jsx(ActiveWalletAddress.ActiveWalletAddreess, { address: address, nameServiceName: nameService === null || nameService === void 0 ? void 0 : nameService.name, menuOption: options }));
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
return (jsxRuntime.jsxs("div", { className: 'active-wallet-information-container', "data-testid": 'active-wallet-information', children: [jsxRuntime.jsxs("div", { className: 'active-wallet-information', children: [jsxRuntime.jsxs("div", { className: 'active-wallet-information__header', children: [jsxRuntime.jsx("div", { className: 'active-wallet-information__avatar', children: (nameService === null || nameService === void 0 ? void 0 : nameService.avatar) ? (jsxRuntime.jsx("div", { className: 'active-wallet-information__avatar', children: jsxRuntime.jsx("img", { src: nameService === null || nameService === void 0 ? void 0 : nameService.avatar, alt: '' }) })) : (jsxRuntime.jsx("div", { className: 'active-wallet-information__wallet-img', children: jsxRuntime.jsx(AuthProviderIcon.AuthProviderIcon, { jwt: authToken, iconSize: ICON_SIZE, showStatus: !isEmbeddedWallet }) })) }), jsxRuntime.jsxs("div", { className: 'active-wallet-information__details', children: [jsxRuntime.jsx("div", { className: classNames.classNames('active-wallet-information__addresses-container', {
|
|
128
153
|
'active-wallet-information__addresses-container--centered': !(nameService === null || nameService === void 0 ? void 0 : nameService.name),
|
|
129
|
-
}), children:
|
|
154
|
+
}), children: activeWalletAddress() }), jsxRuntime.jsx(NetworkPicker.NetworkPicker, { currentNetwork: network, connector: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, mainClassName: 'active-wallet-information__network-picker', buttonClassName: 'active-wallet-information__network-picker-button', evmNetworks: evmNetworks, showNetworkName: true })] })] }), showTestnetAlert && (jsxRuntime.jsx(Alert.Alert, { variant: 'warning', copykey: 'dyn_active_wallet_info.testnet_warning', children: t('dyn_active_wallet_info.testnet_warning') }))] }), jsxRuntime.jsxs("div", { className: 'balance-container', children: [jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', children: "Balance" }), primaryWallet && (jsxRuntime.jsx(Balance.Balance, { className: 'balance-container__balance', connector: primaryWallet.connector, address: primaryWallet.address, network: network }))] })] }));
|
|
130
155
|
};
|
|
131
156
|
|
|
132
157
|
exports.ActiveWalletInformation = ActiveWalletInformation;
|