@dynamic-labs/sdk-react-core 1.1.0-alpha.1 → 1.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +123 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +12 -12
- package/src/index.cjs +35 -8
- package/src/index.d.ts +2 -1
- package/src/index.js +22 -7
- package/src/lib/Main.cjs +45 -26
- package/src/lib/Main.js +45 -26
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +9 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +9 -4
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +9 -4
- package/src/lib/components/AnimatePresence/AnimatePresence.js +9 -4
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +9 -4
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +9 -4
- package/src/lib/components/ChainCard/ChainCard.d.ts +2 -2
- package/src/lib/components/CopyButton/CopyButton.d.ts +2 -1
- package/src/lib/components/Divider/Divider.cjs +8 -3
- package/src/lib/components/Divider/Divider.js +8 -3
- package/src/lib/components/DynamicBaseWidget/DynamicBaseWidget.cjs +13 -0
- package/src/lib/components/DynamicBaseWidget/DynamicBaseWidget.d.ts +7 -0
- package/src/lib/components/DynamicBaseWidget/DynamicBaseWidget.js +9 -0
- package/src/lib/components/DynamicBaseWidget/index.d.ts +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +9 -4
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +9 -4
- package/src/lib/components/Modal/Modal.cjs +9 -4
- package/src/lib/components/Modal/Modal.d.ts +1 -2
- package/src/lib/components/Modal/Modal.js +9 -4
- package/src/lib/components/Modal/index.d.ts +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +10 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +10 -5
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +11 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.js +11 -6
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +12 -4
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +12 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +8 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.js +8 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +9 -4
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +9 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +8 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +8 -3
- package/src/lib/components/OverlayCard/OverlayCard.cjs +9 -4
- package/src/lib/components/OverlayCard/OverlayCard.js +9 -4
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +15 -6
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.d.ts +4 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +17 -8
- package/src/lib/components/Portal/Portal.cjs +16 -16
- package/src/lib/components/Portal/Portal.d.ts +3 -1
- package/src/lib/components/Portal/Portal.js +16 -16
- package/src/lib/components/RenderView/RenderView.cjs +71 -0
- package/src/lib/components/RenderView/RenderView.d.ts +2 -0
- package/src/lib/components/RenderView/RenderView.js +67 -0
- package/src/lib/components/RenderView/index.d.ts +1 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +5 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +5 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +1 -1
- package/src/lib/components/ShadowDOM/index.d.ts +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +9 -4
- package/src/lib/components/SocialSignIn/SocialSignIn.js +9 -4
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +9 -4
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +9 -4
- package/src/lib/components/Toggle/Toggle.cjs +14 -0
- package/src/lib/components/Toggle/Toggle.d.ts +7 -0
- package/src/lib/components/Toggle/Toggle.js +10 -0
- package/src/lib/components/Toggle/index.d.ts +1 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +18 -32
- package/src/lib/components/Tooltip/Tooltip.js +18 -32
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +9 -4
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +9 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +9 -4
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +9 -4
- package/src/lib/components/UserAddress/UserAddress.cjs +9 -4
- package/src/lib/components/UserAddress/UserAddress.js +9 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +8 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +8 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +8 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +8 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +9 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +9 -3
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -1
- package/src/lib/components/index.d.ts +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 +127 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +123 -0
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.cjs +9 -0
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.d.ts +3 -0
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.js +5 -0
- package/src/lib/context/ConnectWithEmailOtpContext/constants.cjs +15 -0
- package/src/lib/context/ConnectWithEmailOtpContext/constants.d.ts +4 -0
- package/src/lib/context/ConnectWithEmailOtpContext/constants.js +10 -0
- package/src/lib/context/ConnectWithEmailOtpContext/index.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/types.d.ts +13 -0
- package/src/lib/context/ConnectWithEmailOtpContext/useConnectWithEmailOtp.cjs +19 -0
- package/src/lib/context/ConnectWithEmailOtpContext/useConnectWithEmailOtp.d.ts +6 -0
- package/src/lib/context/ConnectWithEmailOtpContext/useConnectWithEmailOtp.js +15 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createEmailHandler.cjs +27 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createEmailHandler.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createEmailHandler.js +23 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createMagicHandler.cjs +21 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createMagicHandler.d.ts +3 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/createMagicHandler.js +17 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/findEmailProvider.cjs +20 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/findEmailProvider.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/utils/findEmailProvider.js +16 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +73 -62
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +74 -63
- package/src/lib/context/DynamicContext/helpers.cjs +5 -3
- package/src/lib/context/DynamicContext/helpers.d.ts +2 -2
- package/src/lib/context/DynamicContext/helpers.js +5 -3
- package/src/lib/context/DynamicContext/hooks/index.d.ts +2 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +16 -16
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +17 -17
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +10 -11
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +11 -12
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +23 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.d.ts +5 -0
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +19 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +48 -0
- package/src/lib/context/DynamicContext/hooks/{useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts → useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.d.ts} +4 -7
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +44 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +119 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +39 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +115 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +18 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +18 -4
- package/src/lib/context/DynamicContext/types/index.d.ts +15 -9
- package/src/lib/context/DynamicContext/useCustomerCallbacks/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +10 -2
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +4 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +10 -2
- 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 +3 -1
- package/src/lib/context/FundingContext/FundingContext.js +4 -2
- package/src/lib/context/LoadingContext/LoadingContext.cjs +8 -3
- package/src/lib/context/LoadingContext/LoadingContext.js +9 -4
- package/src/lib/context/MockContext/MockContext.cjs +12 -6
- package/src/lib/context/MockContext/MockContext.d.ts +4 -9
- package/src/lib/context/MockContext/MockContext.js +12 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +35 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +16 -0
- package/src/lib/context/PasskeyContext/PasskeyContext.js +29 -0
- package/src/lib/context/PasskeyContext/index.d.ts +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +9 -4
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +9 -4
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +10 -6
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +10 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +9 -4
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +9 -4
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -4
- package/src/lib/context/ViewContext/ViewContext.d.ts +5 -5
- package/src/lib/context/ViewContext/ViewContext.js +7 -4
- package/src/lib/context/ViewContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/types/index.d.ts +10 -0
- package/src/lib/data/api.cjs +33 -15
- package/src/lib/data/api.d.ts +15 -2
- package/src/lib/data/api.js +33 -16
- package/src/lib/events/dynamicEvents.d.ts +7 -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 +12 -9
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +12 -9
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +13 -21
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +14 -22
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +9 -9
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +9 -9
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +14 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +8 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +8 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +8 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +8 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +11 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +11 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +14 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +14 -8
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +10 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +11 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +8 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +8 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +8 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +8 -3
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +10 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +11 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +8 -3
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +8 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +8 -3
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +8 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +8 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +8 -3
- package/src/lib/locale/en/translation.cjs +263 -5
- package/src/lib/locale/en/translation.d.ts +262 -4
- package/src/lib/locale/en/translation.js +263 -5
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +14 -7
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.d.ts +0 -2
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +14 -7
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +10 -5
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +10 -5
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +9 -5
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +9 -5
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +10 -5
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +10 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +10 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +10 -5
- package/src/lib/shared/assets/alt-embedded-wallet.cjs +54 -0
- package/src/lib/shared/assets/alt-embedded-wallet.js +30 -0
- package/src/lib/shared/assets/alt-key.cjs +54 -0
- package/src/lib/shared/assets/alt-key.js +30 -0
- package/src/lib/shared/assets/export-embedded-hero.cjs +90 -0
- package/src/lib/shared/assets/export-embedded-hero.js +66 -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/eye-off-icon.cjs +53 -0
- package/src/lib/shared/assets/eye-off-icon.js +29 -0
- package/src/lib/shared/assets/face-id.cjs +53 -0
- package/src/lib/shared/assets/face-id.js +29 -0
- package/src/lib/shared/assets/index.d.ts +9 -0
- package/src/lib/shared/assets/lock.cjs +54 -0
- package/src/lib/shared/assets/lock.js +30 -0
- package/src/lib/shared/assets/wallet-v2.cjs +53 -0
- package/src/lib/shared/assets/wallet-v2.js +29 -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/consts/index.cjs +1 -0
- package/src/lib/shared/consts/index.js +1 -0
- package/src/lib/shared/types/index.d.ts +5 -1
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +1 -0
- package/src/lib/shared/utils/functions/chain/getChainIcon.js +2 -1
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +6 -7
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +6 -7
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs +1 -2
- package/src/lib/shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js +1 -2
- package/src/lib/shared/utils/hooks/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/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +7 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +2 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +3 -0
- package/src/lib/utils/functions/getWalletIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +6 -3
- package/src/lib/utils/functions/isEmailValid/index.d.ts +1 -0
- package/src/lib/utils/functions/isEmailValid/isEmailValid.cjs +8 -0
- package/src/lib/utils/functions/isEmailValid/isEmailValid.d.ts +1 -0
- package/src/lib/utils/functions/isEmailValid/isEmailValid.js +4 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.cjs +9 -1
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.js +9 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +2 -4
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +2 -4
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +2 -2
- package/src/lib/utils/functions/walletListBuilder/utils/filterConnectedWallets/filterConnectedWallets.cjs +13 -2
- package/src/lib/utils/functions/walletListBuilder/utils/filterConnectedWallets/filterConnectedWallets.js +13 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +6 -6
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +7 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +16 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +16 -9
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +1 -1
- package/src/lib/utils/hooks/index.d.ts +2 -1
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +3 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +6 -1
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +3 -2
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +80 -73
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +2 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +80 -73
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +15 -14
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.d.ts +0 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +16 -15
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +4 -6
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +4 -6
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +3 -3
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +3 -3
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +2 -2
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +2 -2
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +4 -4
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +4 -4
- package/src/lib/utils/hooks/useEmbeddedReveal/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +70 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +66 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +9 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +9 -6
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +14 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +15 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +5 -3
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +5 -3
- package/src/lib/utils/hooks/useHover/useHover.cjs +9 -3
- package/src/lib/utils/hooks/useHover/useHover.js +9 -3
- package/src/lib/utils/hooks/useHover/useHover.types.d.ts +8 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +1 -1
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +1 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +1 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.d.ts +3 -1
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +7 -9
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +7 -9
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/index.d.ts +1 -0
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs → useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs} +53 -67
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts → useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts} +3 -2
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.js → useProcessNetworkConfigurations/useProcessNetworkConfigurations.js} +53 -67
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +1 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +2 -2
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +2 -2
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +8 -5
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +8 -5
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +29 -5
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +29 -5
- package/src/lib/utils/hooks/useWalletConnectorNetwork/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.cjs +42 -0
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.d.ts +18 -0
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.js +38 -0
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +9 -5
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +9 -5
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +5 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +5 -2
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +2 -2
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +2 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +9 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +9 -4
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +9 -5
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +9 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +7 -3
- package/src/lib/views/AccountExistsView/AccountExistsView.js +7 -3
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +1 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +10 -5
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +10 -5
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +8 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +8 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +9 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +9 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +11 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +11 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +8 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +8 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +8 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +8 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +8 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.js +8 -3
- package/src/lib/views/EmailVerification/EmailVerification.cjs +10 -5
- package/src/lib/views/EmailVerification/EmailVerification.js +10 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +9 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +9 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +165 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +161 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/constants.cjs +9 -0
- package/src/lib/views/EmbeddedReveal/constants.d.ts +2 -0
- package/src/lib/views/EmbeddedReveal/constants.js +4 -0
- package/src/lib/views/EmbeddedReveal/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/index.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +139 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +21 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +132 -0
- package/src/lib/views/LoginView/LoginView.cjs +71 -10
- package/src/lib/views/LoginView/LoginView.js +71 -10
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +14 -11
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.d.ts +0 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +15 -11
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +7 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +8 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +8 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +8 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +8 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/LoginView/useLoginView.cjs +1 -1
- package/src/lib/views/LoginView/useLoginView.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +10 -5
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +10 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +11 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +11 -7
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +11 -9
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +11 -9
- package/src/lib/views/NoAccess/NoAccess.cjs +8 -3
- package/src/lib/views/NoAccess/NoAccess.js +8 -3
- package/src/lib/views/NoAccess/useNoAccessText.cjs +3 -3
- package/src/lib/views/NoAccess/useNoAccessText.js +3 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +14 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +14 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +18 -8
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +18 -8
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +8 -3
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +8 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +9 -4
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +9 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +9 -4
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +9 -4
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +12 -7
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +12 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +12 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +12 -7
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +113 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.d.ts +2 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +109 -0
- package/src/lib/views/Passkey/RenamePasskeyView/index.d.ts +1 -0
- package/src/lib/views/Passkey/index.d.ts +1 -0
- package/src/lib/views/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/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +2 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +2 -2
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +2 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +15 -7
- package/src/lib/views/PendingConnectView/PendingConnectView.js +16 -8
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +17 -9
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +18 -10
- package/src/lib/views/QrCodeView/QRCode.cjs +12 -9
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -1
- package/src/lib/views/QrCodeView/QRCode.js +12 -9
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +18 -10
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +18 -10
- package/src/lib/views/QrCodeView/QrCodeView.cjs +34 -25
- package/src/lib/views/QrCodeView/QrCodeView.js +35 -26
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +12 -7
- package/src/lib/views/SendBalanceView/SendBalanceView.js +12 -7
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +9 -4
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +9 -4
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +7 -3
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +7 -3
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +11 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +11 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +11 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +11 -6
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +9 -4
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +9 -4
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +8 -3
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +8 -3
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +8 -3
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +8 -3
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +77 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.js +78 -3
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs +79 -0
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +7 -0
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js +75 -0
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/index.d.ts +1 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -4
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +2 -1
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +8 -3
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +8 -3
- package/src/lib/views/WalletList/WalletList.cjs +10 -14
- package/src/lib/views/WalletList/WalletList.js +10 -14
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +8 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +8 -3
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +11 -5
- package/src/lib/views/WalletLockedView/WalletLockedView.js +12 -6
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +12 -6
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +13 -7
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +13 -8
- package/src/lib/views/WalletUsedView/WalletUsedView.js +13 -8
- package/src/lib/views/viewToComponentMap.cjs +45 -41
- package/src/lib/views/viewToComponentMap.d.ts +2 -3
- package/src/lib/views/viewToComponentMap.js +45 -41
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +8 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +6 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +9 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +9 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +8 -8
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +8 -8
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +8 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +8 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +33 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.d.ts +2 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +29 -0
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +81 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +77 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +72 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +68 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +20 -15
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +10 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +17 -40
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +23 -46
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +9 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +77 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +73 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +8 -3
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +12 -22
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +4 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +12 -22
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +2 -1
- package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +19 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +15 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +71 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +72 -22
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +40 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +36 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +97 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +92 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +14 -8
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +28 -15
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +28 -16
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +16 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +17 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +18 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +19 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +10 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +10 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +68 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +68 -10
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +22 -5
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +24 -8
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +9 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +37 -18
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.d.ts +2 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +36 -18
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +15 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +15 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +13 -8
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +13 -8
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +36 -12
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +36 -12
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +8 -3
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +100 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +96 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +10 -5
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +8 -3
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +8 -3
- package/src/lib/widgets/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +0 -33
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +0 -29
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.cjs +0 -23
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.d.ts +0 -4
- package/src/lib/context/DynamicContext/hooks/useShowPasskeyCreateSuccess/useShowPasskeyCreateSuccess.js +0 -19
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +0 -76
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.d.ts +0 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +0 -72
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +0 -83
- package/src/lib/context/QrCodeContext/QrCodeContext.d.ts +0 -13
- package/src/lib/context/QrCodeContext/QrCodeContext.js +0 -77
- package/src/lib/context/QrCodeContext/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/index.d.ts +0 -1
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs +0 -34
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.d.ts +0 -7
- package/src/lib/utils/hooks/useDefaultQrCode/useDefaultQrCode.js +0 -30
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/index.d.ts +0 -1
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -0
|
@@ -38,28 +38,33 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
38
38
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
39
39
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
40
40
|
import '../../context/FooterAnimationContext/index.js';
|
|
41
|
-
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
42
41
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
43
42
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
44
43
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
|
+
import 'react-focus-lock';
|
|
45
45
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
46
|
-
import 'qrcode';
|
|
47
46
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
48
47
|
import { Icon } from '../../components/Icon/Icon.js';
|
|
49
48
|
import 'i18next';
|
|
49
|
+
import 'qrcode';
|
|
50
50
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
51
51
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
52
52
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
53
53
|
import 'formik';
|
|
54
54
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
55
55
|
import '../../components/Alert/Alert.js';
|
|
56
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
56
57
|
import '@dynamic-labs/viem-utils';
|
|
58
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
57
59
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
58
60
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
59
61
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
60
62
|
import '../../components/Popper/Popper/Popper.js';
|
|
61
63
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
62
|
-
import '
|
|
64
|
+
import '../WalletList/WalletList.js';
|
|
65
|
+
import '@hcaptcha/react-hcaptcha';
|
|
66
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
63
68
|
|
|
64
69
|
const EmailConfirmationWaitingView = () => {
|
|
65
70
|
const { setView } = useViewContext();
|
|
@@ -42,13 +42,13 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
42
42
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
43
43
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
44
44
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
45
|
-
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
46
45
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
47
46
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
48
47
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
49
|
-
require('
|
|
48
|
+
require('react-focus-lock');
|
|
50
49
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
51
50
|
require('i18next');
|
|
51
|
+
require('qrcode');
|
|
52
52
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
53
53
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
54
54
|
require('formik');
|
|
@@ -56,14 +56,19 @@ var Button = require('../../components/Button/Button.cjs');
|
|
|
56
56
|
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
57
57
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
58
58
|
require('../../components/Alert/Alert.cjs');
|
|
59
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
59
60
|
require('@dynamic-labs/viem-utils');
|
|
61
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
60
62
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
61
63
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
62
64
|
var Input = require('../../components/Input/Input.cjs');
|
|
63
65
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
64
66
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
65
67
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
66
|
-
require('
|
|
68
|
+
require('../WalletList/WalletList.cjs');
|
|
69
|
+
require('@hcaptcha/react-hcaptcha');
|
|
70
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
71
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
67
72
|
|
|
68
73
|
const EmailUpdate = () => {
|
|
69
74
|
const [updatedEmail, setUpdatedEmail] = React.useState('');
|
|
@@ -38,13 +38,13 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
38
38
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
39
39
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
40
40
|
import '../../context/FooterAnimationContext/index.js';
|
|
41
|
-
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
42
41
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
43
42
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
44
43
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
45
|
-
import '
|
|
44
|
+
import 'react-focus-lock';
|
|
46
45
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
47
46
|
import 'i18next';
|
|
47
|
+
import 'qrcode';
|
|
48
48
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
49
49
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
50
50
|
import 'formik';
|
|
@@ -52,14 +52,19 @@ import { Button } from '../../components/Button/Button.js';
|
|
|
52
52
|
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
53
53
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
54
54
|
import '../../components/Alert/Alert.js';
|
|
55
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
55
56
|
import '@dynamic-labs/viem-utils';
|
|
57
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
56
58
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
57
59
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
58
60
|
import { Input } from '../../components/Input/Input.js';
|
|
59
61
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
60
62
|
import '../../components/Popper/Popper/Popper.js';
|
|
61
63
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
62
|
-
import '
|
|
64
|
+
import '../WalletList/WalletList.js';
|
|
65
|
+
import '@hcaptcha/react-hcaptcha';
|
|
66
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
67
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
63
68
|
|
|
64
69
|
const EmailUpdate = () => {
|
|
65
70
|
const [updatedEmail, setUpdatedEmail] = useState('');
|
|
@@ -51,15 +51,15 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
51
51
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
52
52
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
53
53
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
54
|
-
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
55
54
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
56
55
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
57
56
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
57
|
+
require('react-focus-lock');
|
|
58
58
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
59
|
-
require('qrcode');
|
|
60
59
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
61
60
|
var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs');
|
|
62
61
|
require('i18next');
|
|
62
|
+
require('qrcode');
|
|
63
63
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
64
64
|
var ErrorContainer = require('../../components/ErrorContainer/ErrorContainer.cjs');
|
|
65
65
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -67,7 +67,9 @@ require('formik');
|
|
|
67
67
|
require('../../components/IconButton/IconButton.cjs');
|
|
68
68
|
var Icon = require('../../components/Icon/Icon.cjs');
|
|
69
69
|
require('../../components/Alert/Alert.cjs');
|
|
70
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
70
71
|
require('@dynamic-labs/viem-utils');
|
|
72
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
71
73
|
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
72
74
|
var TextButton = require('../../components/TextButton/TextButton.cjs');
|
|
73
75
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
@@ -76,8 +78,11 @@ var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEma
|
|
|
76
78
|
var PinField = require('../../components/PinField/PinField.cjs');
|
|
77
79
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
78
80
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
79
|
-
require('
|
|
81
|
+
require('../WalletList/WalletList.cjs');
|
|
80
82
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
83
|
+
require('@hcaptcha/react-hcaptcha');
|
|
84
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
85
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
81
86
|
|
|
82
87
|
const SECONDS_TO_RETRY = 15;
|
|
83
88
|
const sleepToShowSuccessMessage = () => utils.sleep(1500);
|
|
@@ -117,7 +122,7 @@ const EmailVerification = () => {
|
|
|
117
122
|
// It should be disabled by either clearStatesOnBackClick, the close button, or onAuthSuccess
|
|
118
123
|
setIsVerificationInProgress(true);
|
|
119
124
|
});
|
|
120
|
-
const isLoginView = view === 'login-with-email-verification';
|
|
125
|
+
const isLoginView = view.type === 'login-with-email-verification';
|
|
121
126
|
const { verifyEmail } = useEmailVerificationRequest.useEmailVerificationRequest();
|
|
122
127
|
const { createUserProfileByJWT } = useCreateUserProfileByJWTCallback.useCreateUserProfileByJWTCallback();
|
|
123
128
|
const handleComplete = React.useCallback((verificationToken) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -149,7 +154,7 @@ const EmailVerification = () => {
|
|
|
149
154
|
yield createEmbeddedWallet();
|
|
150
155
|
}
|
|
151
156
|
catch (e) {
|
|
152
|
-
setShowAuthFlow(false);
|
|
157
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
153
158
|
}
|
|
154
159
|
}
|
|
155
160
|
catch (error) {
|
|
@@ -47,15 +47,15 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
47
47
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
48
48
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
49
49
|
import '../../context/FooterAnimationContext/index.js';
|
|
50
|
-
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
51
50
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
52
51
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
53
52
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
53
|
+
import 'react-focus-lock';
|
|
54
54
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
55
|
-
import 'qrcode';
|
|
56
55
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
57
56
|
import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.js';
|
|
58
57
|
import 'i18next';
|
|
58
|
+
import 'qrcode';
|
|
59
59
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
60
60
|
import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
|
|
61
61
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -63,7 +63,9 @@ import 'formik';
|
|
|
63
63
|
import '../../components/IconButton/IconButton.js';
|
|
64
64
|
import { Icon } from '../../components/Icon/Icon.js';
|
|
65
65
|
import '../../components/Alert/Alert.js';
|
|
66
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
66
67
|
import '@dynamic-labs/viem-utils';
|
|
68
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
67
69
|
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
68
70
|
import { TextButton } from '../../components/TextButton/TextButton.js';
|
|
69
71
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
@@ -72,8 +74,11 @@ import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenE
|
|
|
72
74
|
import { PinField } from '../../components/PinField/PinField.js';
|
|
73
75
|
import '../../components/Popper/Popper/Popper.js';
|
|
74
76
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
75
|
-
import '
|
|
77
|
+
import '../WalletList/WalletList.js';
|
|
76
78
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
79
|
+
import '@hcaptcha/react-hcaptcha';
|
|
80
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
81
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
77
82
|
|
|
78
83
|
const SECONDS_TO_RETRY = 15;
|
|
79
84
|
const sleepToShowSuccessMessage = () => sleep(1500);
|
|
@@ -113,7 +118,7 @@ const EmailVerification = () => {
|
|
|
113
118
|
// It should be disabled by either clearStatesOnBackClick, the close button, or onAuthSuccess
|
|
114
119
|
setIsVerificationInProgress(true);
|
|
115
120
|
});
|
|
116
|
-
const isLoginView = view === 'login-with-email-verification';
|
|
121
|
+
const isLoginView = view.type === 'login-with-email-verification';
|
|
117
122
|
const { verifyEmail } = useEmailVerificationRequest();
|
|
118
123
|
const { createUserProfileByJWT } = useCreateUserProfileByJWTCallback();
|
|
119
124
|
const handleComplete = useCallback((verificationToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -145,7 +150,7 @@ const EmailVerification = () => {
|
|
|
145
150
|
yield createEmbeddedWallet();
|
|
146
151
|
}
|
|
147
152
|
catch (e) {
|
|
148
|
-
setShowAuthFlow(false);
|
|
153
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
149
154
|
}
|
|
150
155
|
}
|
|
151
156
|
catch (error) {
|
|
@@ -50,12 +50,17 @@ require('react-focus-lock');
|
|
|
50
50
|
require('formik');
|
|
51
51
|
require('i18next');
|
|
52
52
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
53
|
-
require('../../
|
|
54
|
-
require('
|
|
55
|
-
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
56
|
-
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
54
|
+
require('../WalletList/WalletList.cjs');
|
|
57
55
|
require('qrcode');
|
|
56
|
+
require('@hcaptcha/react-hcaptcha');
|
|
58
57
|
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
59
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
60
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
61
|
+
require('../../context/FooterAnimationContext/index.cjs');
|
|
62
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
63
|
+
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
59
64
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
65
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
66
|
require('@dynamic-labs/viem-utils');
|
|
@@ -46,12 +46,17 @@ import 'react-focus-lock';
|
|
|
46
46
|
import 'formik';
|
|
47
47
|
import 'i18next';
|
|
48
48
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
49
|
-
import '../../
|
|
50
|
-
import '
|
|
51
|
-
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
52
|
-
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
49
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
50
|
+
import '../WalletList/WalletList.js';
|
|
53
51
|
import 'qrcode';
|
|
52
|
+
import '@hcaptcha/react-hcaptcha';
|
|
54
53
|
import '../../context/LoadingContext/LoadingContext.js';
|
|
54
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
55
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
56
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
57
|
+
import '../../context/FooterAnimationContext/index.js';
|
|
58
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
59
|
+
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
55
60
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
61
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
62
|
import '@dynamic-labs/viem-utils';
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
var utils = require('@dynamic-labs/utils');
|
|
10
|
+
var getProperErrorMessage = require('../../../modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
|
|
11
|
+
var dynamicEvents = require('../../../events/dynamicEvents.cjs');
|
|
12
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
14
|
+
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
15
|
+
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
16
|
+
var ViewContext = require('../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
var decodeJwt = require('../../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
18
|
+
require('@dynamic-labs/iconic');
|
|
19
|
+
var close = require('../../../shared/assets/close.cjs');
|
|
20
|
+
var eyeOffIcon = require('../../../shared/assets/eye-off-icon.cjs');
|
|
21
|
+
var exportEmbeddedHero = require('../../../shared/assets/export-embedded-hero.cjs');
|
|
22
|
+
var walletV2 = require('../../../shared/assets/wallet-v2.cjs');
|
|
23
|
+
var logger = require('../../../shared/logger.cjs');
|
|
24
|
+
require('@dynamic-labs/wallet-book');
|
|
25
|
+
require('../../../utils/constants/colors.cjs');
|
|
26
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
27
|
+
require('viem');
|
|
28
|
+
require('../../../shared/consts/index.cjs');
|
|
29
|
+
require('@dynamic-labs/multi-wallet');
|
|
30
|
+
require('@dynamic-labs/sdk-api');
|
|
31
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
34
|
+
require('../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
35
|
+
require('react-dom');
|
|
36
|
+
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
37
|
+
var useMutation = require('../../../utils/hooks/useMutation/useMutation.cjs');
|
|
38
|
+
require('@dynamic-labs/types');
|
|
39
|
+
require('yup');
|
|
40
|
+
require('../../../context/MockContext/MockContext.cjs');
|
|
41
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
42
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
43
|
+
require('@dynamic-labs/rpc-providers');
|
|
44
|
+
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
45
|
+
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
46
|
+
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
47
|
+
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
48
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
49
|
+
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
50
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
51
|
+
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
52
|
+
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
53
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
|
+
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
55
|
+
require('react-focus-lock');
|
|
56
|
+
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
57
|
+
require('i18next');
|
|
58
|
+
require('qrcode');
|
|
59
|
+
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
|
+
var ErrorContainer = require('../../../components/ErrorContainer/ErrorContainer.cjs');
|
|
61
|
+
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
62
|
+
require('formik');
|
|
63
|
+
var Button = require('../../../components/Button/Button.cjs');
|
|
64
|
+
var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
|
|
65
|
+
var IconButton = require('../../../components/IconButton/IconButton.cjs');
|
|
66
|
+
require('../../../components/Alert/Alert.cjs');
|
|
67
|
+
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
68
|
+
require('@dynamic-labs/viem-utils');
|
|
69
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
70
|
+
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
71
|
+
var Checkbox = require('../../../components/Checkbox/Checkbox.cjs');
|
|
72
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
73
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
74
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
75
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
76
|
+
require('../../WalletList/WalletList.cjs');
|
|
77
|
+
require('@hcaptcha/react-hcaptcha');
|
|
78
|
+
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
79
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
80
|
+
var turnkeyExport = require('../utils/turnkeyExport/turnkeyExport.cjs');
|
|
81
|
+
var constants = require('../constants.cjs');
|
|
82
|
+
|
|
83
|
+
const EmbeddedRevealView = () => {
|
|
84
|
+
var _a, _b, _c;
|
|
85
|
+
const { authToken, primaryWallet, user, setShowAuthFlow, environmentId } = useInternalDynamicContext.useInternalDynamicContext();
|
|
86
|
+
const { view } = ViewContext.useViewContext();
|
|
87
|
+
const [acknowledgement1, setAcknowledgement1] = React.useState(false);
|
|
88
|
+
const iframeContainerRef = React.useRef(null);
|
|
89
|
+
const decodedJwt = decodeJwt.decodeJwt(authToken);
|
|
90
|
+
const walletProperties = (_b = (_a = decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
|
|
91
|
+
const isTurnkeyHDWallet = walletProperties === null || walletProperties === void 0 ? void 0 : walletProperties.turnkeyHDWalletId;
|
|
92
|
+
const exportPrivateKey = (_c = view === null || view === void 0 ? void 0 : view.type) === null || _c === void 0 ? void 0 : _c.includes('account');
|
|
93
|
+
React.useEffect(() => {
|
|
94
|
+
var _a;
|
|
95
|
+
const iframeContainerElement = iframeContainerRef.current;
|
|
96
|
+
if (!iframeContainerElement ||
|
|
97
|
+
((_a = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
turnkeyExport.initExport({
|
|
101
|
+
iframeContainer: iframeContainerElement,
|
|
102
|
+
iframeElementId: constants.iframeElementId,
|
|
103
|
+
wallet: primaryWallet,
|
|
104
|
+
});
|
|
105
|
+
return () => {
|
|
106
|
+
turnkeyExport.cleanupExport({
|
|
107
|
+
wallet: primaryWallet,
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
// only run once on mount
|
|
111
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
|
+
}, []);
|
|
113
|
+
const { mutate: handleExportWallet, isLoading, error, data, } = useMutation.useMutation(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
114
|
+
return turnkeyExport.exportCredential({
|
|
115
|
+
address: exportPrivateKey ? primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address : undefined,
|
|
116
|
+
authToken,
|
|
117
|
+
environmentId,
|
|
118
|
+
userEmail: user === null || user === void 0 ? void 0 : user.email,
|
|
119
|
+
wallet: primaryWallet,
|
|
120
|
+
});
|
|
121
|
+
}), {
|
|
122
|
+
onFailure: (err) => {
|
|
123
|
+
logger.logger.error('Failed to export', err);
|
|
124
|
+
dynamicEvents.dynamicEvents.emit('embeddedWalletRevealFailed', err);
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
const errorText = React.useMemo(() => {
|
|
128
|
+
if (!error) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
if (error instanceof utils.DynamicError) {
|
|
132
|
+
return error.message;
|
|
133
|
+
}
|
|
134
|
+
return getProperErrorMessage.getProperErrorMessage(error);
|
|
135
|
+
}, [error]);
|
|
136
|
+
const { t } = reactI18next.useTranslation();
|
|
137
|
+
const contentHeader = (jsxRuntime.jsx("div", { className: 'embedded-reveal-view__body__description', children: !isLoading && data && !error ? (jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', children: t('dyn_embedded_reveal.reveal_description') })) : (jsxRuntime.jsx("div", { className: 'embedded-reveal-view__header', children: jsxRuntime.jsx(exportEmbeddedHero.ReactComponent, {}) })) }));
|
|
138
|
+
React.useEffect(() => {
|
|
139
|
+
var _a;
|
|
140
|
+
if (((_a = iframeContainerRef === null || iframeContainerRef === void 0 ? void 0 : iframeContainerRef.current) === null || _a === void 0 ? void 0 : _a.children) && data) {
|
|
141
|
+
// eslint-disable-next-line prefer-destructuring
|
|
142
|
+
const iframeElement = iframeContainerRef.current.children[0];
|
|
143
|
+
iframeElement === null || iframeElement === void 0 ? void 0 : iframeElement.setAttribute('style', !isTurnkeyHDWallet || exportPrivateKey
|
|
144
|
+
? 'height: 60px'
|
|
145
|
+
: 'height: 100px');
|
|
146
|
+
}
|
|
147
|
+
}, [iframeContainerRef, data, isTurnkeyHDWallet, exportPrivateKey]);
|
|
148
|
+
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { onClick: () => setShowAuthFlow(false, { emitCancelAuth: true }), type: 'button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
149
|
+
const hasInjectedCredential = !isLoading && data && !error;
|
|
150
|
+
const credentialTitle = !isTurnkeyHDWallet || exportPrivateKey
|
|
151
|
+
? t('dyn_embedded_reveal.private_key_title')
|
|
152
|
+
: t('dyn_embedded_reveal.recovery_phrase_title');
|
|
153
|
+
const title = hasInjectedCredential
|
|
154
|
+
? credentialTitle
|
|
155
|
+
: t('dyn_embedded_reveal.agreement_title');
|
|
156
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsxRuntime.jsx("div", { className: 'embedded-reveal-view', children: jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader, jsxRuntime.jsx("div", { id: constants.iframeContainerId, style: { display: data ? 'block' : 'none' }, ref: iframeContainerRef }), hasInjectedCredential ? (jsxRuntime.jsx(Button.Button, { buttonPadding: 'large', buttonVariant: 'brand-primary', onClick: () => setShowAuthFlow(false), loading: isLoading, copykey: 'dyn_embedded_reveal.done_button_label', typographyProps: {
|
|
157
|
+
color: 'inherit',
|
|
158
|
+
}, children: t('dyn_embedded_reveal.done_button_label') })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: 'embedded-reveal-view__body__description', children: jsxRuntime.jsx(Badge.Badge, { text: t('dyn_embedded_reveal.badge_label'), className: 'embedded-reveal-view__body__badge' }) }), errorText && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: errorText }), jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body__card', children: [jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body__card__statement', children: [jsxRuntime.jsx("div", { className: 'embedded-reveal-view__body__card__icon', children: jsxRuntime.jsx(walletV2.ReactComponent, {}) }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_embedded_reveal.statement_1.title', children: t('dyn_embedded_reveal.statement_1.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_embedded_reveal.statement_1.description', children: t('dyn_embedded_reveal.statement_1.description') })] })] }), jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body__card__statement', children: [jsxRuntime.jsx("div", { className: 'embedded-reveal-view__body__card__icon', children: jsxRuntime.jsx(eyeOffIcon.ReactComponent, {}) }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_embedded_reveal.statement_2.title', children: t('dyn_embedded_reveal.statement_2.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_embedded_reveal.statement_2.description', children: t('dyn_embedded_reveal.statement_2.description', {
|
|
159
|
+
credential_type: credentialTitle === null || credentialTitle === void 0 ? void 0 : credentialTitle.toLowerCase(),
|
|
160
|
+
}) })] })] })] }), jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body__confirm_card', children: [jsxRuntime.jsxs("button", { className: 'embedded-reveal-view__body__card__acknowledgement', onClick: () => setAcknowledgement1(!acknowledgement1), children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx(Checkbox.Checkbox, { checked: acknowledgement1, onChange: () => setAcknowledgement1(!acknowledgement1), className: 'embedded-reveal-view__body__card__statement__checkbox', id: 'embedded-reveal-checkbox-1' }) }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_embedded_reveal.checkbox_label', children: t('dyn_embedded_reveal.checkbox_label') }) })] }), jsxRuntime.jsx(Button.Button, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
|
|
161
|
+
color: 'inherit',
|
|
162
|
+
}, onClick: () => handleExportWallet(), disabled: !acknowledgement1, loading: isLoading, dataTestId: 'embedded-reveal-button', copykey: 'dyn_embedded_reveal.reveal_button_label', children: t('dyn_embedded_reveal.reveal_button_label') })] })] }))] }) })] }));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
exports.EmbeddedRevealView = EmbeddedRevealView;
|