@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../../../_virtual/_tslib.js';
|
|
2
2
|
import { isPasskeyWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
3
3
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { completePasskeyRecovery as completePasskeyRecovery$1, initEmbeddedWalletSession as initEmbeddedWalletSession$1 } from '../../../../data/api.js';
|
|
5
5
|
import { decodeJwt } from '../../../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
6
6
|
import '@dynamic-labs/iconic';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
@@ -9,17 +9,20 @@ import '../../../../context/ViewContext/ViewContext.js';
|
|
|
9
9
|
import 'react';
|
|
10
10
|
import '../../../../shared/logger.js';
|
|
11
11
|
import '@dynamic-labs/wallet-book';
|
|
12
|
+
import { EMBEDDED_WALLET_SESSION_SETTINGS } from '../../../../utils/constants/localStorage.js';
|
|
12
13
|
import '../../../../utils/constants/colors.js';
|
|
13
|
-
import '../../../../
|
|
14
|
+
import '../../../../utils/constants/values.js';
|
|
15
|
+
import { LocalStorage } from '../../../../shared/utils/classes/storage/localStorage.js';
|
|
14
16
|
import 'viem';
|
|
17
|
+
import '@dynamic-labs/sdk-api';
|
|
15
18
|
import '../../../../shared/consts/index.js';
|
|
16
19
|
import { findEmbeddedWalletFromVerifiedCredentials } from '../../../../utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js';
|
|
17
20
|
import '@dynamic-labs/multi-wallet';
|
|
18
|
-
import '@dynamic-labs/sdk-api';
|
|
19
21
|
import { removeElementById } from '../../../../utils/functions/removeElementById/removeElementById.js';
|
|
20
|
-
import
|
|
22
|
+
import 'viem/chains';
|
|
23
|
+
import { iframeElementId } from '../../PasskeyRecovery/constants.js';
|
|
21
24
|
|
|
22
|
-
const
|
|
25
|
+
const initEmbeddedWalletSession = ({ authenticatorType, authToken, iframeContainer, iframeElementId, environmentId, userEmail, wallet, sessionExpiration, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
26
|
var _a;
|
|
24
27
|
if (!authToken) {
|
|
25
28
|
throw new DynamicError('Auth token is not defined');
|
|
@@ -29,18 +32,32 @@ const initPasskeyRecovery = ({ authToken, iframeContainer, iframeElementId, envi
|
|
|
29
32
|
!isPasskeyWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
30
33
|
throw new DynamicError('PasskeyWalletConnector not found');
|
|
31
34
|
}
|
|
32
|
-
const turnkeyRecoveryHandler = (_a = wallet.connector) === null || _a === void 0 ? void 0 : _a.
|
|
33
|
-
|
|
35
|
+
const turnkeyRecoveryHandler = (_a = wallet.connector) === null || _a === void 0 ? void 0 : _a.getAuthenticatorHandler();
|
|
36
|
+
if (authenticatorType === 'passkey' &&
|
|
37
|
+
turnkeyRecoveryHandler.isSessionActive()) {
|
|
38
|
+
return addNewPasskeyAuthenticator({
|
|
39
|
+
authToken,
|
|
40
|
+
environmentId,
|
|
41
|
+
userEmail,
|
|
42
|
+
wallet,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const publicKey = yield turnkeyRecoveryHandler.initRecovery(authenticatorType, iframeContainer, iframeElementId, sessionExpiration);
|
|
34
46
|
if (!publicKey) {
|
|
35
47
|
throw new DynamicError('Something went wrong');
|
|
36
48
|
}
|
|
37
|
-
const
|
|
49
|
+
const response = yield initEmbeddedWalletSession$1({
|
|
50
|
+
authenticatorType,
|
|
38
51
|
environmentId,
|
|
39
52
|
publicKey,
|
|
40
53
|
userJwt: authToken,
|
|
41
54
|
walletId: wallet.id,
|
|
42
55
|
});
|
|
43
|
-
turnkeyRecoveryHandler.recoveryUserId =
|
|
56
|
+
turnkeyRecoveryHandler.recoveryUserId =
|
|
57
|
+
authenticatorType === 'passkey'
|
|
58
|
+
? response.turnkeyRecoveryUserId
|
|
59
|
+
: response.turnkeyUserId;
|
|
60
|
+
return;
|
|
44
61
|
});
|
|
45
62
|
const passkeyRecoveryBundleValidation = ({ authToken, bundleInput, wallet, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
63
|
var _b, _c, _d, _e;
|
|
@@ -57,9 +74,16 @@ const passkeyRecoveryBundleValidation = ({ authToken, bundleInput, wallet, }) =>
|
|
|
57
74
|
throw new DynamicError('User must be logged in with a valid token');
|
|
58
75
|
}
|
|
59
76
|
const organizationId = (_d = (_c = (_b = decodedJwt.verifiedCredentials) === null || _b === void 0 ? void 0 : _b.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _c === void 0 ? void 0 : _c.walletProperties) === null || _d === void 0 ? void 0 : _d.turnkeySubOrganizationId;
|
|
60
|
-
|
|
77
|
+
const turnkeyRecoveryHandler = (_e = wallet.connector) === null || _e === void 0 ? void 0 : _e.getAuthenticatorHandler();
|
|
78
|
+
yield turnkeyRecoveryHandler.verifyRecoveryCode(bundleInput, organizationId);
|
|
79
|
+
const sessionSettings = {
|
|
80
|
+
createdAt: new Date().getTime(),
|
|
81
|
+
emailCode: bundleInput,
|
|
82
|
+
userId: turnkeyRecoveryHandler.recoveryUserId,
|
|
83
|
+
};
|
|
84
|
+
LocalStorage.setToLS(EMBEDDED_WALLET_SESSION_SETTINGS, sessionSettings);
|
|
61
85
|
});
|
|
62
|
-
const resentRecoveryEmail = ({ authToken, environmentId, wallet, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
const resentRecoveryEmail = ({ authenticatorType, authToken, environmentId, wallet, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
87
|
var _f;
|
|
64
88
|
if (!authToken) {
|
|
65
89
|
throw new DynamicError('Auth token is not defined');
|
|
@@ -69,11 +93,12 @@ const resentRecoveryEmail = ({ authToken, environmentId, wallet, }) => __awaiter
|
|
|
69
93
|
!isPasskeyWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
70
94
|
throw new DynamicError('PasskeyWalletConnector not found');
|
|
71
95
|
}
|
|
72
|
-
const publicKey = (_f = wallet.connector) === null || _f === void 0 ? void 0 : _f.
|
|
96
|
+
const publicKey = (_f = wallet.connector) === null || _f === void 0 ? void 0 : _f.getAuthenticatorHandler().publicKey;
|
|
73
97
|
if (!publicKey) {
|
|
74
98
|
throw new DynamicError('Could not proceed with your request. Please restart the process.');
|
|
75
99
|
}
|
|
76
|
-
return
|
|
100
|
+
return initEmbeddedWalletSession$1({
|
|
101
|
+
authenticatorType,
|
|
77
102
|
environmentId,
|
|
78
103
|
publicKey,
|
|
79
104
|
userJwt: authToken,
|
|
@@ -100,7 +125,7 @@ const completePasskeyRecovery = ({ authToken, userEmail, environmentId, wallet,
|
|
|
100
125
|
if (!organizationId) {
|
|
101
126
|
throw new DynamicError('Invalid token!');
|
|
102
127
|
}
|
|
103
|
-
const turnkeyRecoveryHandler = wallet.connector.
|
|
128
|
+
const turnkeyRecoveryHandler = wallet.connector.getAuthenticatorHandler();
|
|
104
129
|
const { attestation, challenge } = yield connector.getWebAuthnAttestation();
|
|
105
130
|
// calls turnkey recovery api
|
|
106
131
|
yield turnkeyRecoveryHandler.completeRecovery({
|
|
@@ -121,19 +146,100 @@ const completePasskeyRecovery = ({ authToken, userEmail, environmentId, wallet,
|
|
|
121
146
|
if (decodedJwt === undefined) {
|
|
122
147
|
throw new DynamicError('Invalid token!');
|
|
123
148
|
}
|
|
124
|
-
const
|
|
149
|
+
const chain = connector.connectedChain;
|
|
150
|
+
const embeddedWalletVerifiedCredential = findEmbeddedWalletFromVerifiedCredentials(jwt, chain);
|
|
125
151
|
if (!embeddedWalletVerifiedCredential) {
|
|
126
152
|
throw new DynamicError('EmbeddedWalletVerifiedCredential not found');
|
|
127
153
|
}
|
|
128
154
|
connector.setVerifiedCredentials(decodedJwt.verifiedCredentials);
|
|
129
155
|
// clear iframeStamper and its reference
|
|
130
|
-
connector.
|
|
156
|
+
connector.getAuthenticatorHandler().clear();
|
|
131
157
|
// deletes iframe container after usage
|
|
132
|
-
removeElementById(
|
|
158
|
+
removeElementById(iframeElementId);
|
|
159
|
+
return {
|
|
160
|
+
decodedJwt,
|
|
161
|
+
jwt,
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
const addNewPasskeyAuthenticator = ({ authToken, userEmail, environmentId, wallet, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
165
|
+
var _k, _l, _m;
|
|
166
|
+
if (!authToken) {
|
|
167
|
+
throw new DynamicError('User must be logged in');
|
|
168
|
+
}
|
|
169
|
+
let decodedJwt = decodeJwt(authToken);
|
|
170
|
+
if (!decodedJwt) {
|
|
171
|
+
throw new DynamicError('User must be logged in with a valid token');
|
|
172
|
+
}
|
|
173
|
+
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.connector) ||
|
|
174
|
+
!(wallet === null || wallet === void 0 ? void 0 : wallet.id) ||
|
|
175
|
+
!isPasskeyWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
176
|
+
throw new DynamicError('PasskeyWalletConnector not found');
|
|
177
|
+
}
|
|
178
|
+
const connector = wallet.connector;
|
|
179
|
+
connector.setEmail(userEmail);
|
|
180
|
+
const organizationId = (_m = (_l = (_k = decodedJwt.verifiedCredentials) === null || _k === void 0 ? void 0 : _k.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _l === void 0 ? void 0 : _l.walletProperties) === null || _m === void 0 ? void 0 : _m.turnkeySubOrganizationId;
|
|
181
|
+
if (!organizationId) {
|
|
182
|
+
throw new DynamicError('Invalid token!');
|
|
183
|
+
}
|
|
184
|
+
const turnkeyRecoveryHandler = wallet.connector.getAuthenticatorHandler();
|
|
185
|
+
const { attestation, challenge } = yield connector.getWebAuthnAttestation();
|
|
186
|
+
// calls turnkey create authenticator api
|
|
187
|
+
yield turnkeyRecoveryHandler.addPasskeyAuthenticator({
|
|
188
|
+
attestation,
|
|
189
|
+
challenge,
|
|
190
|
+
organizationId,
|
|
191
|
+
});
|
|
192
|
+
// calls readcost api to add new authenticator
|
|
193
|
+
const passkeyRecoveryResponse = yield completePasskeyRecovery$1({
|
|
194
|
+
attestation: attestation,
|
|
195
|
+
challenge,
|
|
196
|
+
environmentId,
|
|
197
|
+
userJwt: authToken,
|
|
198
|
+
walletId: wallet === null || wallet === void 0 ? void 0 : wallet.id,
|
|
199
|
+
});
|
|
200
|
+
const { jwt } = passkeyRecoveryResponse;
|
|
201
|
+
decodedJwt = decodeJwt(jwt);
|
|
202
|
+
if (decodedJwt === undefined) {
|
|
203
|
+
throw new DynamicError('Invalid token!');
|
|
204
|
+
}
|
|
205
|
+
const chain = connector.connectedChain;
|
|
206
|
+
const embeddedWalletVerifiedCredential = findEmbeddedWalletFromVerifiedCredentials(jwt, chain);
|
|
207
|
+
if (!embeddedWalletVerifiedCredential) {
|
|
208
|
+
throw new DynamicError('EmbeddedWalletVerifiedCredential not found');
|
|
209
|
+
}
|
|
210
|
+
connector.setVerifiedCredentials(decodedJwt.verifiedCredentials);
|
|
133
211
|
return {
|
|
134
212
|
decodedJwt,
|
|
135
213
|
jwt,
|
|
136
214
|
};
|
|
137
215
|
});
|
|
216
|
+
const restoreEmbeddedWalletSession = ({ authToken, iframeContainer, iframeElementId, wallet, sessionExpiration, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
217
|
+
var _o, _p, _q, _r;
|
|
218
|
+
if (!authToken) {
|
|
219
|
+
throw new DynamicError('Auth token is not defined');
|
|
220
|
+
}
|
|
221
|
+
const decodedJwt = decodeJwt(authToken);
|
|
222
|
+
if (!decodedJwt) {
|
|
223
|
+
throw new DynamicError('User must be logged in with a valid token');
|
|
224
|
+
}
|
|
225
|
+
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.connector) ||
|
|
226
|
+
!(wallet === null || wallet === void 0 ? void 0 : wallet.id) ||
|
|
227
|
+
!isPasskeyWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
228
|
+
throw new DynamicError('PasskeyWalletConnector not found');
|
|
229
|
+
}
|
|
230
|
+
const sessionSettings = LocalStorage.getFromLS(EMBEDDED_WALLET_SESSION_SETTINGS);
|
|
231
|
+
const turnkeyRecoveryHandler = (_o = wallet.connector) === null || _o === void 0 ? void 0 : _o.getAuthenticatorHandler();
|
|
232
|
+
if (!sessionSettings || Boolean(turnkeyRecoveryHandler.recoveryUserId)) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
const publicKey = yield turnkeyRecoveryHandler.initRecovery('email', iframeContainer, iframeElementId, sessionExpiration);
|
|
236
|
+
if (!publicKey) {
|
|
237
|
+
throw new DynamicError('Something went wrong');
|
|
238
|
+
}
|
|
239
|
+
turnkeyRecoveryHandler.recoveryUserId = sessionSettings.userId;
|
|
240
|
+
const organizationId = (_r = (_q = (_p = decodedJwt.verifiedCredentials) === null || _p === void 0 ? void 0 : _p.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _q === void 0 ? void 0 : _q.walletProperties) === null || _r === void 0 ? void 0 : _r.turnkeySubOrganizationId;
|
|
241
|
+
yield turnkeyRecoveryHandler.verifyRecoveryCode(sessionSettings.emailCode, organizationId);
|
|
242
|
+
return true;
|
|
243
|
+
});
|
|
138
244
|
|
|
139
|
-
export { completePasskeyRecovery,
|
|
245
|
+
export { addNewPasskeyAuthenticator, completePasskeyRecovery, initEmbeddedWalletSession, passkeyRecoveryBundleValidation, resentRecoveryEmail, restoreEmbeddedWalletSession };
|
|
@@ -8,20 +8,24 @@ var utils = require('@dynamic-labs/utils');
|
|
|
8
8
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
9
9
|
require('react');
|
|
10
10
|
require('../../events/dynamicEvents.cjs');
|
|
11
|
-
|
|
12
|
-
require('
|
|
13
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
14
|
-
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
15
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
11
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
12
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
16
13
|
require('@dynamic-labs/sdk-api');
|
|
17
14
|
require('../../shared/logger.cjs');
|
|
18
15
|
require('@dynamic-labs/iconic');
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
17
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
19
18
|
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../utils/constants/values.cjs');
|
|
20
20
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
21
|
require('viem');
|
|
22
22
|
require('../../shared/consts/index.cjs');
|
|
23
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
24
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
23
26
|
require('@dynamic-labs/multi-wallet');
|
|
24
27
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
28
|
+
require('viem/chains');
|
|
25
29
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
26
30
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
27
31
|
require('../../config/ApiEndpoint.cjs');
|
|
@@ -41,26 +45,31 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
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('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
51
|
require('react-focus-lock');
|
|
49
52
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
50
53
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
51
|
-
require('qrcode');
|
|
52
54
|
require('i18next');
|
|
55
|
+
require('qrcode');
|
|
53
56
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
54
57
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
55
58
|
require('formik');
|
|
56
59
|
require('../../components/IconButton/IconButton.cjs');
|
|
57
60
|
require('../../components/Alert/Alert.cjs');
|
|
61
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
62
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
58
63
|
require('@dynamic-labs/viem-utils');
|
|
59
64
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
60
65
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
61
66
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
62
67
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
63
68
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
69
|
+
require('../WalletList/WalletList.cjs');
|
|
70
|
+
require('@hcaptcha/react-hcaptcha');
|
|
71
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
72
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
64
73
|
|
|
65
74
|
const PendingConnectView = () => {
|
|
66
75
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -4,20 +4,24 @@ import { isMobile } from '@dynamic-labs/utils';
|
|
|
4
4
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../events/dynamicEvents.js';
|
|
7
|
-
import
|
|
8
|
-
import '
|
|
9
|
-
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
10
|
-
import '../../context/ErrorContext/ErrorContext.js';
|
|
11
|
-
import '../../context/ViewContext/ViewContext.js';
|
|
7
|
+
import '../../../../_virtual/_tslib.js';
|
|
8
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
12
9
|
import '@dynamic-labs/sdk-api';
|
|
13
10
|
import '../../shared/logger.js';
|
|
14
11
|
import '@dynamic-labs/iconic';
|
|
12
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
13
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
15
14
|
import '../../utils/constants/colors.js';
|
|
15
|
+
import '../../utils/constants/values.js';
|
|
16
16
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
17
17
|
import 'viem';
|
|
18
18
|
import '../../shared/consts/index.js';
|
|
19
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
20
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
21
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
19
22
|
import '@dynamic-labs/multi-wallet';
|
|
20
23
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
24
|
+
import 'viem/chains';
|
|
21
25
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
22
26
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
23
27
|
import '../../config/ApiEndpoint.js';
|
|
@@ -37,26 +41,31 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
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 '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
47
|
import 'react-focus-lock';
|
|
45
|
-
import {
|
|
48
|
+
import { iconRatio, IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
46
49
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
47
|
-
import 'qrcode';
|
|
48
50
|
import 'i18next';
|
|
51
|
+
import 'qrcode';
|
|
49
52
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
50
53
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
51
54
|
import 'formik';
|
|
52
55
|
import '../../components/IconButton/IconButton.js';
|
|
53
56
|
import '../../components/Alert/Alert.js';
|
|
57
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
58
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
54
59
|
import '@dynamic-labs/viem-utils';
|
|
55
60
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
56
61
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
57
62
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
58
63
|
import '../../components/Popper/Popper/Popper.js';
|
|
59
64
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
65
|
+
import '../WalletList/WalletList.js';
|
|
66
|
+
import '@hcaptcha/react-hcaptcha';
|
|
67
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
68
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
60
69
|
|
|
61
70
|
const PendingConnectView = () => {
|
|
62
71
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
|
|
@@ -6,25 +6,29 @@ var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var reactI18next = require('react-i18next');
|
|
9
|
-
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
9
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
11
10
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
12
11
|
require('../../events/dynamicEvents.cjs');
|
|
13
12
|
require('@dynamic-labs/utils');
|
|
14
|
-
|
|
15
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
16
|
-
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
17
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
18
14
|
require('@dynamic-labs/sdk-api');
|
|
19
15
|
var logger = require('../../shared/logger.cjs');
|
|
20
16
|
require('@dynamic-labs/iconic');
|
|
17
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
18
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
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');
|
|
25
27
|
require('@dynamic-labs/multi-wallet');
|
|
26
28
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
27
29
|
var requiresTwoStepAuthentication = require('../../utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs');
|
|
30
|
+
require('viem/chains');
|
|
31
|
+
var isHardwareWalletEnabled = require('../../utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.cjs');
|
|
28
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
29
33
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
30
34
|
require('../../config/ApiEndpoint.cjs');
|
|
@@ -45,27 +49,32 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
45
49
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
46
50
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
47
51
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
48
|
-
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
49
52
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
50
53
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
51
54
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
52
55
|
require('react-focus-lock');
|
|
53
56
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
54
57
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
55
|
-
require('qrcode');
|
|
56
58
|
require('i18next');
|
|
59
|
+
require('qrcode');
|
|
57
60
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
61
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
59
62
|
require('formik');
|
|
60
63
|
var Button = require('../../components/Button/Button.cjs');
|
|
61
64
|
require('../../components/IconButton/IconButton.cjs');
|
|
62
65
|
require('../../components/Alert/Alert.cjs');
|
|
66
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
67
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
63
68
|
require('@dynamic-labs/viem-utils');
|
|
64
69
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
65
70
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
66
71
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
67
72
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
68
73
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
74
|
+
require('../WalletList/WalletList.cjs');
|
|
75
|
+
require('@hcaptcha/react-hcaptcha');
|
|
76
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
77
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
69
78
|
|
|
70
79
|
const PendingSignatureView = () => {
|
|
71
80
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -76,7 +85,7 @@ const PendingSignatureView = () => {
|
|
|
76
85
|
/**
|
|
77
86
|
* The following check on Phantom+Ledger will be fixed in a future ticket.
|
|
78
87
|
*/
|
|
79
|
-
const
|
|
88
|
+
const isHardwareWallet = isHardwareWalletEnabled.isHardwareWalletEnabled(walletConnector);
|
|
80
89
|
if (!walletConnector) {
|
|
81
90
|
return null;
|
|
82
91
|
}
|
|
@@ -96,12 +105,12 @@ const PendingSignatureView = () => {
|
|
|
96
105
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
97
106
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
98
107
|
} }));
|
|
99
|
-
const typographyBodyCopy =
|
|
108
|
+
const typographyBodyCopy = isHardwareWallet
|
|
100
109
|
? t('dyn_pending_signature.phantom_ledger_sign')
|
|
101
110
|
: t('dyn_pending_signature.regular_sign_description');
|
|
102
|
-
return (jsxRuntime.jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('pending-signature__copy'), copykey:
|
|
111
|
+
return (jsxRuntime.jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', className: classNames.classNames('pending-signature__copy'), copykey: isHardwareWallet
|
|
103
112
|
? 'dyn_pending_signature.phantom_ledger_sign'
|
|
104
|
-
: 'dyn_pending_signature.regular_sign_description', children: typographyBodyCopy }),
|
|
113
|
+
: 'dyn_pending_signature.regular_sign_description', children: typographyBodyCopy }), isHardwareWallet && (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', weight: 'regular', className: classNames.classNames('pending-signature__copy', 'pending-signature__copy--mini'), copykey: 'dyn_pending_signature.phantom_ledger_warning', children: [jsxRuntime.jsx("strong", { children: t('dyn_pending_signature.note') }), t('dyn_pending_signature.phantom_ledger_warning')] })), requiresTwoStepAuthentication.requiresTwoStepAuthentication(walletConnector) && (jsxRuntime.jsx(Button.Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
|
|
105
114
|
variant: 'button_primary',
|
|
106
115
|
weight: 'medium',
|
|
107
116
|
}, copykey: 'dyn_pending_signature.click_to_sign', children: t('dyn_pending_signature.click_to_sign') }))] }));
|
|
@@ -2,25 +2,29 @@ import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { PhantomLedgerWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
6
5
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
7
6
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
8
7
|
import '../../events/dynamicEvents.js';
|
|
9
8
|
import '@dynamic-labs/utils';
|
|
10
|
-
import
|
|
11
|
-
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
12
|
-
import '../../context/ErrorContext/ErrorContext.js';
|
|
13
|
-
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
14
10
|
import '@dynamic-labs/sdk-api';
|
|
15
11
|
import { logger } from '../../shared/logger.js';
|
|
16
12
|
import '@dynamic-labs/iconic';
|
|
13
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
14
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
17
15
|
import '../../utils/constants/colors.js';
|
|
16
|
+
import '../../utils/constants/values.js';
|
|
18
17
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
18
|
import 'viem';
|
|
20
19
|
import '../../shared/consts/index.js';
|
|
20
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
21
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
21
23
|
import '@dynamic-labs/multi-wallet';
|
|
22
24
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
23
25
|
import { requiresTwoStepAuthentication } from '../../utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js';
|
|
26
|
+
import 'viem/chains';
|
|
27
|
+
import { isHardwareWalletEnabled } from '../../utils/functions/isHardwareWalletEnabled/isHardwareWalletEnabled.js';
|
|
24
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
25
29
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
26
30
|
import '../../config/ApiEndpoint.js';
|
|
@@ -41,27 +45,32 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
41
45
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
42
46
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
43
47
|
import '../../context/FooterAnimationContext/index.js';
|
|
44
|
-
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
45
48
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
46
49
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
47
50
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
51
|
import 'react-focus-lock';
|
|
49
52
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
50
53
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
51
|
-
import 'qrcode';
|
|
52
54
|
import 'i18next';
|
|
55
|
+
import 'qrcode';
|
|
53
56
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
57
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
55
58
|
import 'formik';
|
|
56
59
|
import { Button } from '../../components/Button/Button.js';
|
|
57
60
|
import '../../components/IconButton/IconButton.js';
|
|
58
61
|
import '../../components/Alert/Alert.js';
|
|
62
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
63
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
59
64
|
import '@dynamic-labs/viem-utils';
|
|
60
65
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
61
66
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
62
67
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
63
68
|
import '../../components/Popper/Popper/Popper.js';
|
|
64
69
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
70
|
+
import '../WalletList/WalletList.js';
|
|
71
|
+
import '@hcaptcha/react-hcaptcha';
|
|
72
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
73
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
65
74
|
|
|
66
75
|
const PendingSignatureView = () => {
|
|
67
76
|
const [loading, setLoading] = useState(false);
|
|
@@ -72,7 +81,7 @@ const PendingSignatureView = () => {
|
|
|
72
81
|
/**
|
|
73
82
|
* The following check on Phantom+Ledger will be fixed in a future ticket.
|
|
74
83
|
*/
|
|
75
|
-
const
|
|
84
|
+
const isHardwareWallet = isHardwareWalletEnabled(walletConnector);
|
|
76
85
|
if (!walletConnector) {
|
|
77
86
|
return null;
|
|
78
87
|
}
|
|
@@ -92,12 +101,12 @@ const PendingSignatureView = () => {
|
|
|
92
101
|
height: pixelToRem(iconSize * iconRatio),
|
|
93
102
|
width: pixelToRem(iconSize * iconRatio),
|
|
94
103
|
} }));
|
|
95
|
-
const typographyBodyCopy =
|
|
104
|
+
const typographyBodyCopy = isHardwareWallet
|
|
96
105
|
? t('dyn_pending_signature.phantom_ledger_sign')
|
|
97
106
|
: t('dyn_pending_signature.regular_sign_description');
|
|
98
|
-
return (jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('pending-signature__copy'), copykey:
|
|
107
|
+
return (jsxs("div", { className: 'pending-signature__container', "data-testid": 'pending-signature-view', children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true, indicator: 'connected', className: 'pending-signature__icon-with-spinner' }), jsx(Typography, { variant: 'body_normal', weight: 'regular', className: classNames('pending-signature__copy'), copykey: isHardwareWallet
|
|
99
108
|
? 'dyn_pending_signature.phantom_ledger_sign'
|
|
100
|
-
: 'dyn_pending_signature.regular_sign_description', children: typographyBodyCopy }),
|
|
109
|
+
: 'dyn_pending_signature.regular_sign_description', children: typographyBodyCopy }), isHardwareWallet && (jsxs(Typography, { variant: 'body_small', weight: 'regular', className: classNames('pending-signature__copy', 'pending-signature__copy--mini'), copykey: 'dyn_pending_signature.phantom_ledger_warning', children: [jsx("strong", { children: t('dyn_pending_signature.note') }), t('dyn_pending_signature.phantom_ledger_warning')] })), requiresTwoStepAuthentication(walletConnector) && (jsx(Button, { buttonClassName: 'pending-signature__button', onClick: handleClick, loading: loading, buttonVariant: 'primary', buttonPadding: 'large', expanded: true, typographyProps: {
|
|
101
110
|
variant: 'button_primary',
|
|
102
111
|
weight: 'medium',
|
|
103
112
|
}, copykey: 'dyn_pending_signature.click_to_sign', children: t('dyn_pending_signature.click_to_sign') }))] }));
|
|
@@ -6,23 +6,25 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var QRCodeUtil = require('qrcode');
|
|
8
8
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
9
|
-
var QrCodeContext = require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
10
9
|
require('../../events/dynamicEvents.cjs');
|
|
10
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
11
11
|
require('@dynamic-labs/utils');
|
|
12
12
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
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');
|
|
17
13
|
require('@dynamic-labs/sdk-api');
|
|
18
14
|
require('../../shared/logger.cjs');
|
|
19
15
|
require('@dynamic-labs/iconic');
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
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
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
25
26
|
require('@dynamic-labs/multi-wallet');
|
|
27
|
+
require('viem/chains');
|
|
26
28
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
27
29
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
28
30
|
require('../../config/ApiEndpoint.cjs');
|
|
@@ -52,10 +54,16 @@ require('react-focus-lock');
|
|
|
52
54
|
require('formik');
|
|
53
55
|
require('i18next');
|
|
54
56
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
55
|
-
require('../../
|
|
57
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
58
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
59
|
+
require('../WalletList/WalletList.cjs');
|
|
60
|
+
require('@hcaptcha/react-hcaptcha');
|
|
61
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
62
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
56
63
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
64
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
65
|
+
require('../../context/FooterAnimationContext/index.cjs');
|
|
57
66
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
59
67
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
68
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
69
|
require('@dynamic-labs/viem-utils');
|
|
@@ -72,8 +80,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
|
|
|
72
80
|
? rows.push([key])
|
|
73
81
|
: rows[rows.length - 1].push(key)) && rows, []);
|
|
74
82
|
};
|
|
75
|
-
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, }) => {
|
|
76
|
-
const { showQrCodeImage } = QrCodeContext.useQrCodeContext();
|
|
83
|
+
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, showQrCodeImage, }) => {
|
|
77
84
|
const { data } = usePromise.usePromise(() => QRCodeUtil__default["default"].toDataURL(value));
|
|
78
85
|
const dots = React.useMemo(() => {
|
|
79
86
|
const dots = [];
|
|
@@ -120,7 +127,7 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
|
|
|
120
127
|
const indicator = !walletKey || walletsWithoutIndicator.includes(walletKey)
|
|
121
128
|
? undefined
|
|
122
129
|
: 'walletConnect';
|
|
123
|
-
return (jsxRuntime.jsx("div", { className: 'qrcode__container', children: jsxRuntime.jsx("div", { className: 'qrcode', children: showQrCodeImage ? (jsxRuntime.jsx("img", { src: data, alt: '' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("svg", { height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code', children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: 'clip-logo', children: jsxRuntime.jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) }) }), jsxRuntime.jsx("rect", { fill: 'none', height: size, width: size }), dots] }), jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) }) }));
|
|
130
|
+
return (jsxRuntime.jsx("div", { className: 'qrcode__container', children: jsxRuntime.jsx("div", { className: 'qrcode', children: showQrCodeImage ? (jsxRuntime.jsx("img", { "data-testid": 'qr-code-image', src: data, alt: '' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("svg", { height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code', children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: 'clip-logo', children: jsxRuntime.jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) }) }), jsxRuntime.jsx("rect", { fill: 'none', height: size, width: size }), dots] }), jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) }) }));
|
|
124
131
|
};
|
|
125
132
|
|
|
126
133
|
exports.QRCode = QRCode;
|
|
@@ -9,6 +9,7 @@ type QRCodeProps = {
|
|
|
9
9
|
size?: number;
|
|
10
10
|
value: string;
|
|
11
11
|
walletKey?: string;
|
|
12
|
+
showQrCodeImage?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor, walletKey, }: QRCodeProps) => JSX.Element;
|
|
14
|
+
export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor, walletKey, showQrCodeImage, }: QRCodeProps) => JSX.Element;
|
|
14
15
|
export {};
|