@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
|
@@ -11,7 +11,7 @@ const useDynamicContext = () => {
|
|
|
11
11
|
if (context === undefined) {
|
|
12
12
|
throw new Error('useDynamicContext must be used within a DynamicContextProvider');
|
|
13
13
|
}
|
|
14
|
-
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setNetwork, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, } = context;
|
|
14
|
+
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setNetwork, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, showDynamicUserProfile, setShowLinkNewWalletModal, } = context;
|
|
15
15
|
return {
|
|
16
16
|
accountSwitchState,
|
|
17
17
|
authMode,
|
|
@@ -40,12 +40,20 @@ const useDynamicContext = () => {
|
|
|
40
40
|
setMultiWalletWidgetState,
|
|
41
41
|
setNetwork,
|
|
42
42
|
setPrimaryWallet,
|
|
43
|
-
setShowAuthFlow,
|
|
43
|
+
setShowAuthFlow: (value) => setShowAuthFlow(value, {
|
|
44
|
+
clearErrors: true,
|
|
45
|
+
emitCancelAuth: true,
|
|
46
|
+
ignoreIfIsEmbeddedWidget: true,
|
|
47
|
+
initializeWalletConnect: true,
|
|
48
|
+
performMultiWalletChecks: true,
|
|
49
|
+
}),
|
|
44
50
|
setShowBridgeWidget,
|
|
45
51
|
setShowDynamicUserProfile,
|
|
52
|
+
setShowLinkNewWalletModal,
|
|
46
53
|
setShowQrcodeModal,
|
|
47
54
|
shadowDOMEnabled,
|
|
48
55
|
showAuthFlow,
|
|
56
|
+
showDynamicUserProfile,
|
|
49
57
|
showQrcodeModal,
|
|
50
58
|
user,
|
|
51
59
|
walletConnector,
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
1
2
|
import { IDynamicContext } from './types';
|
|
2
|
-
export type UseDynamicContext = Pick<IDynamicContext, 'accountSwitchState' | 'authMode' | 'authToken' | 'awaitingSignatureState' | 'getNameService' | 'handleLogOut' | 'handleUnlinkWallet' | 'isAuthenticated' | 'isFullyConnected' | 'isVerificationInProgress' | 'loadingNetwork' | 'locale' | 'loginWithEmail' | 'multiWalletWidgetState' | 'network' | 'networkConfigurations' | 'primaryWallet' | 'qrcodeUri' | 'rpcProviders' | 'sdkHasLoaded' | 'setLogInWithEmail' | 'setMultiWalletWidgetState' | 'setNetwork' | 'setPrimaryWallet' | '
|
|
3
|
+
export type UseDynamicContext = Pick<IDynamicContext, 'accountSwitchState' | 'authMode' | 'authToken' | 'awaitingSignatureState' | 'getNameService' | 'handleLogOut' | 'handleUnlinkWallet' | 'isAuthenticated' | 'isFullyConnected' | 'isVerificationInProgress' | 'loadingNetwork' | 'locale' | 'loginWithEmail' | 'multiWalletWidgetState' | 'network' | 'networkConfigurations' | 'primaryWallet' | 'qrcodeUri' | 'rpcProviders' | 'sdkHasLoaded' | 'setLogInWithEmail' | 'setMultiWalletWidgetState' | 'setNetwork' | 'setPrimaryWallet' | 'setShowDynamicUserProfile' | 'setShowQrcodeModal' | 'shadowDOMEnabled' | 'showAuthFlow' | 'showQrcodeModal' | 'user' | 'walletConnector' | 'walletConnectorOptions' | 'bridgeChains' | 'bridgeChainsToConnect' | 'setShowBridgeWidget' | 'sendWagmiSettings' | 'showDynamicUserProfile' | 'setShowLinkNewWalletModal'> & {
|
|
4
|
+
setShowAuthFlow: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
3
6
|
export declare const useDynamicContext: () => UseDynamicContext;
|
|
@@ -7,7 +7,7 @@ const useDynamicContext = () => {
|
|
|
7
7
|
if (context === undefined) {
|
|
8
8
|
throw new Error('useDynamicContext must be used within a DynamicContextProvider');
|
|
9
9
|
}
|
|
10
|
-
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setNetwork, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, } = context;
|
|
10
|
+
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setNetwork, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, showDynamicUserProfile, setShowLinkNewWalletModal, } = context;
|
|
11
11
|
return {
|
|
12
12
|
accountSwitchState,
|
|
13
13
|
authMode,
|
|
@@ -36,12 +36,20 @@ const useDynamicContext = () => {
|
|
|
36
36
|
setMultiWalletWidgetState,
|
|
37
37
|
setNetwork,
|
|
38
38
|
setPrimaryWallet,
|
|
39
|
-
setShowAuthFlow,
|
|
39
|
+
setShowAuthFlow: (value) => setShowAuthFlow(value, {
|
|
40
|
+
clearErrors: true,
|
|
41
|
+
emitCancelAuth: true,
|
|
42
|
+
ignoreIfIsEmbeddedWidget: true,
|
|
43
|
+
initializeWalletConnect: true,
|
|
44
|
+
performMultiWalletChecks: true,
|
|
45
|
+
}),
|
|
40
46
|
setShowBridgeWidget,
|
|
41
47
|
setShowDynamicUserProfile,
|
|
48
|
+
setShowLinkNewWalletModal,
|
|
42
49
|
setShowQrcodeModal,
|
|
43
50
|
shadowDOMEnabled,
|
|
44
51
|
showAuthFlow,
|
|
52
|
+
showDynamicUserProfile,
|
|
45
53
|
showQrcodeModal,
|
|
46
54
|
user,
|
|
47
55
|
walletConnector,
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var useInternalDynamicContext = require('../DynamicContext/useInternalDynamicContext.cjs');
|
|
8
7
|
|
|
9
8
|
const errorMessageMap = {
|
|
10
9
|
'-32000': 'Message signature denied',
|
|
@@ -29,21 +28,16 @@ const errorMessageMap = {
|
|
|
29
28
|
};
|
|
30
29
|
const ErrorContext = React.createContext(undefined);
|
|
31
30
|
const ErrorContextProvider = ({ children }) => {
|
|
32
|
-
const { showAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
|
|
33
31
|
const [error, setError] = React.useState(undefined);
|
|
34
32
|
const setErrorMessage = React.useCallback((status) => {
|
|
35
33
|
var _a;
|
|
36
34
|
setError((_a = errorMessageMap[status]) !== null && _a !== void 0 ? _a : 'Something went wrong. Please try again.');
|
|
37
35
|
}, []);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
setError,
|
|
44
|
-
setErrorMessage,
|
|
45
|
-
}), [error, setErrorMessage]);
|
|
46
|
-
return (jsxRuntime.jsx(ErrorContext.Provider, { value: value, children: children }));
|
|
36
|
+
return (jsxRuntime.jsx(ErrorContext.Provider, { value: {
|
|
37
|
+
error,
|
|
38
|
+
setError,
|
|
39
|
+
setErrorMessage,
|
|
40
|
+
}, children: children }));
|
|
47
41
|
};
|
|
48
42
|
const useErrorContext = () => {
|
|
49
43
|
const context = React.useContext(ErrorContext);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { createContext, useState, useCallback,
|
|
3
|
-
import { useInternalDynamicContext } from '../DynamicContext/useInternalDynamicContext.js';
|
|
2
|
+
import { createContext, useState, useCallback, useContext } from 'react';
|
|
4
3
|
|
|
5
4
|
const errorMessageMap = {
|
|
6
5
|
'-32000': 'Message signature denied',
|
|
@@ -25,21 +24,16 @@ const errorMessageMap = {
|
|
|
25
24
|
};
|
|
26
25
|
const ErrorContext = createContext(undefined);
|
|
27
26
|
const ErrorContextProvider = ({ children }) => {
|
|
28
|
-
const { showAuthFlow } = useInternalDynamicContext();
|
|
29
27
|
const [error, setError] = useState(undefined);
|
|
30
28
|
const setErrorMessage = useCallback((status) => {
|
|
31
29
|
var _a;
|
|
32
30
|
setError((_a = errorMessageMap[status]) !== null && _a !== void 0 ? _a : 'Something went wrong. Please try again.');
|
|
33
31
|
}, []);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
setError,
|
|
40
|
-
setErrorMessage,
|
|
41
|
-
}), [error, setErrorMessage]);
|
|
42
|
-
return (jsx(ErrorContext.Provider, { value: value, children: children }));
|
|
32
|
+
return (jsx(ErrorContext.Provider, { value: {
|
|
33
|
+
error,
|
|
34
|
+
setError,
|
|
35
|
+
setErrorMessage,
|
|
36
|
+
}, children: children }));
|
|
43
37
|
};
|
|
44
38
|
const useErrorContext = () => {
|
|
45
39
|
const context = useContext(ErrorContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
interface FooterAnimationContextProps {
|
|
2
|
+
export interface FooterAnimationContextProps {
|
|
3
3
|
isFooterExpanded: boolean;
|
|
4
4
|
setIsFooterExpanded: Dispatch<SetStateAction<boolean>>;
|
|
5
5
|
}
|
|
@@ -8,4 +8,3 @@ export declare const FooterAnimationContextProvider: ({ children, }: {
|
|
|
8
8
|
children: JSX.Element;
|
|
9
9
|
}) => JSX.Element;
|
|
10
10
|
export declare const useFooterAnimationContext: () => FooterAnimationContextProps;
|
|
11
|
-
export {};
|
|
@@ -39,13 +39,15 @@ const FundingContextProvider = ({ children, }) => {
|
|
|
39
39
|
const chainName = (_c = walletConnectorCore.getChainInfo(primaryWallet.chain)) === null || _c === void 0 ? void 0 : _c.name;
|
|
40
40
|
if (!chainName)
|
|
41
41
|
return;
|
|
42
|
+
const bitcoinAddress = walletConnectorCore.isBitcoinConnector(primaryWallet.connector) &&
|
|
43
|
+
(yield primaryWallet.connector.getPaymentAddress());
|
|
42
44
|
try {
|
|
43
45
|
const [{ url }] = yield api.getOnrampProviders({
|
|
44
46
|
chain: chainName,
|
|
45
47
|
environmentId,
|
|
46
48
|
networkId: network ? network.toString() : undefined,
|
|
47
49
|
token,
|
|
48
|
-
walletAddress: address
|
|
50
|
+
walletAddress: address || bitcoinAddress || primaryWallet.address,
|
|
49
51
|
});
|
|
50
52
|
if (!url)
|
|
51
53
|
throw new Error('No onramp url found');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { createContext, useContext, useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
|
4
|
-
import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import { getChainInfo, isBitcoinConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { getOnrampProviders } from '../../data/api.js';
|
|
6
6
|
import { useInternalDynamicContext } from '../DynamicContext/useInternalDynamicContext.js';
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
@@ -35,13 +35,15 @@ const FundingContextProvider = ({ children, }) => {
|
|
|
35
35
|
const chainName = (_c = getChainInfo(primaryWallet.chain)) === null || _c === void 0 ? void 0 : _c.name;
|
|
36
36
|
if (!chainName)
|
|
37
37
|
return;
|
|
38
|
+
const bitcoinAddress = isBitcoinConnector(primaryWallet.connector) &&
|
|
39
|
+
(yield primaryWallet.connector.getPaymentAddress());
|
|
38
40
|
try {
|
|
39
41
|
const [{ url }] = yield getOnrampProviders({
|
|
40
42
|
chain: chainName,
|
|
41
43
|
environmentId,
|
|
42
44
|
networkId: network ? network.toString() : undefined,
|
|
43
45
|
token,
|
|
44
|
-
walletAddress: address
|
|
46
|
+
walletAddress: address || bitcoinAddress || primaryWallet.address,
|
|
45
47
|
});
|
|
46
48
|
if (!url)
|
|
47
49
|
throw new Error('No onramp url found');
|
|
@@ -49,11 +49,16 @@ require('react-focus-lock');
|
|
|
49
49
|
require('formik');
|
|
50
50
|
require('i18next');
|
|
51
51
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
52
|
-
require('
|
|
53
|
-
require('
|
|
52
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
53
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
54
|
+
require('qrcode');
|
|
55
|
+
require('@hcaptcha/react-hcaptcha');
|
|
56
|
+
require('../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
54
57
|
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
58
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
59
|
+
require('../FooterAnimationContext/index.cjs');
|
|
60
|
+
require('../PasskeyContext/PasskeyContext.cjs');
|
|
55
61
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
56
|
-
require('qrcode');
|
|
57
62
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
63
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
59
64
|
require('@dynamic-labs/viem-utils');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { createContext,
|
|
2
|
+
import { createContext, useState, useMemo, useContext } from 'react';
|
|
3
3
|
import { useInternalDynamicEvents } from '../../utils/hooks/events/useDynamicEvents/useDynamicEvents.js';
|
|
4
4
|
import '@dynamic-labs/utils';
|
|
5
5
|
import '../DynamicContext/DynamicContext.js';
|
|
@@ -45,11 +45,16 @@ import 'react-focus-lock';
|
|
|
45
45
|
import 'formik';
|
|
46
46
|
import 'i18next';
|
|
47
47
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
48
|
-
import '
|
|
49
|
-
import '
|
|
48
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
49
|
+
import '../../views/WalletList/WalletList.js';
|
|
50
|
+
import 'qrcode';
|
|
51
|
+
import '@hcaptcha/react-hcaptcha';
|
|
52
|
+
import '../SocialRedirectContext/SocialRedirectContext.js';
|
|
50
53
|
import '../WalletGroupContext/WalletGroupContext.js';
|
|
54
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
55
|
+
import '../FooterAnimationContext/index.js';
|
|
56
|
+
import '../PasskeyContext/PasskeyContext.js';
|
|
51
57
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
52
|
-
import 'qrcode';
|
|
53
58
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
59
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
55
60
|
import '@dynamic-labs/viem-utils';
|
|
@@ -40,6 +40,7 @@ require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
40
40
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
41
41
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
42
42
|
require('../../components/Alert/Alert.cjs');
|
|
43
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
43
44
|
require('@dynamic-labs/viem-utils');
|
|
44
45
|
require('formik');
|
|
45
46
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
@@ -50,19 +51,27 @@ var PopperContext = require('../../components/Popper/PopperContext/PopperContext
|
|
|
50
51
|
require('react-focus-lock');
|
|
51
52
|
require('i18next');
|
|
52
53
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
54
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
55
|
+
require('qrcode');
|
|
56
|
+
require('@hcaptcha/react-hcaptcha');
|
|
57
|
+
require('../LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
59
|
+
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
60
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
61
|
+
require('../PasskeyContext/PasskeyContext.cjs');
|
|
53
62
|
var index$1 = require('./constants/index.cjs');
|
|
54
63
|
|
|
55
64
|
const MockContext = React.createContext(undefined);
|
|
56
|
-
const MockContextProvider = ({ children,
|
|
65
|
+
const MockContextProvider = ({ children, view, customerTheme, dynamicLayoutClassName, }) => {
|
|
57
66
|
const viewContextValue = {
|
|
58
67
|
goToInitialView: () => { },
|
|
59
68
|
/* istanbul ignore next */
|
|
60
69
|
setView: () => { },
|
|
61
70
|
view,
|
|
62
71
|
};
|
|
63
|
-
return (jsxRuntime.jsx(MockContext.Provider, { value: { mockedSDK: true }, children: jsxRuntime.jsx(PopperContext.PopperProvider, { children: jsxRuntime.jsx(ViewContext.ViewContext.Provider, { value: viewContextValue, children: jsxRuntime.jsx(ErrorContext.ErrorContextProvider, { children: jsxRuntime.jsx(ThemeContext.ThemeContextProvider, { customerTheme: customerTheme, children: jsxRuntime.jsx(index.FooterAnimationContextProvider, { children: jsxRuntime.jsx(walletBook.WalletBookContextProvider, { walletBook: index$1.walletBookMock, children: jsxRuntime.jsx(MockContextWrapper, { dynamicLayoutClassName: dynamicLayoutClassName,
|
|
72
|
+
return (jsxRuntime.jsx(MockContext.Provider, { value: { mockedSDK: true }, children: jsxRuntime.jsx(PopperContext.PopperProvider, { children: jsxRuntime.jsx(ViewContext.ViewContext.Provider, { value: viewContextValue, children: jsxRuntime.jsx(ErrorContext.ErrorContextProvider, { children: jsxRuntime.jsx(ThemeContext.ThemeContextProvider, { customerTheme: customerTheme, children: jsxRuntime.jsx(index.FooterAnimationContextProvider, { children: jsxRuntime.jsx(walletBook.WalletBookContextProvider, { walletBook: index$1.walletBookMock, children: jsxRuntime.jsx(MockContextWrapper, { dynamicLayoutClassName: dynamicLayoutClassName, children: children }) }) }) }) }) }) }) }));
|
|
64
73
|
};
|
|
65
|
-
const MockContextWrapper = ({ dynamicLayoutClassName,
|
|
74
|
+
const MockContextWrapper = ({ dynamicLayoutClassName, children, }) => {
|
|
66
75
|
/* istanbul ignore next */
|
|
67
76
|
const onClose = () => new Promise(() => { });
|
|
68
77
|
const mockProjectSettings = {
|
|
@@ -76,9 +85,6 @@ const MockContextWrapper = ({ dynamicLayoutClassName, mockedWalletConnector, wal
|
|
|
76
85
|
};
|
|
77
86
|
return (jsxRuntime.jsx("div", { className: 'mock-ctx__container', style: { position: 'relative' }, children: jsxRuntime.jsx(DynamicAuthModal.DynamicAuthModal, { className: dynamicLayoutClassName, onClose: onClose, projectSettings: mockProjectSettings, transitionProps: {
|
|
78
87
|
isShown: true,
|
|
79
|
-
}, walletConnector: mockedWalletConnector !== null && mockedWalletConnector !== void 0 ? mockedWalletConnector : {
|
|
80
|
-
canConnectViaQrCode: true,
|
|
81
|
-
name: walletName,
|
|
82
88
|
}, children: children }) }));
|
|
83
89
|
};
|
|
84
90
|
const useMockContext = () => {
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import type { WalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
3
2
|
import { ChainToWalletMap } from '../../shared';
|
|
4
3
|
import { ThemeData } from '../ThemeContext';
|
|
5
|
-
import { ViewType } from '../ViewContext';
|
|
4
|
+
import { ViewState, ViewType } from '../ViewContext';
|
|
6
5
|
type MockContextProps = {
|
|
7
6
|
children: ReactNode;
|
|
8
7
|
customerTheme?: ThemeData;
|
|
9
8
|
dynamicLayoutClassName?: string;
|
|
10
|
-
mockedWalletConnector?: WalletConnector;
|
|
11
9
|
newToWeb3WalletChainMap: ChainToWalletMap;
|
|
12
|
-
view: ViewType
|
|
13
|
-
walletName: string;
|
|
10
|
+
view: ViewState<ViewType>;
|
|
14
11
|
};
|
|
15
12
|
type MockContextWrapperProps = {
|
|
16
13
|
children: ReactNode;
|
|
17
14
|
dynamicLayoutClassName?: string;
|
|
18
|
-
mockedWalletConnector?: WalletConnector;
|
|
19
|
-
walletName: string;
|
|
20
15
|
};
|
|
21
16
|
type MockContextValue = {
|
|
22
17
|
mockedSDK: boolean;
|
|
23
18
|
};
|
|
24
19
|
export declare const MockContext: import("react").Context<MockContextValue | undefined>;
|
|
25
|
-
export declare const MockContextProvider: ({ children,
|
|
26
|
-
export declare const MockContextWrapper: ({ dynamicLayoutClassName,
|
|
20
|
+
export declare const MockContextProvider: ({ children, view, customerTheme, dynamicLayoutClassName, }: MockContextProps) => JSX.Element;
|
|
21
|
+
export declare const MockContextWrapper: ({ dynamicLayoutClassName, children, }: MockContextWrapperProps) => JSX.Element;
|
|
27
22
|
export declare const useMockContext: () => MockContextValue;
|
|
28
23
|
export {};
|
|
@@ -36,6 +36,7 @@ import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
|
36
36
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
37
37
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
38
38
|
import '../../components/Alert/Alert.js';
|
|
39
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
39
40
|
import '@dynamic-labs/viem-utils';
|
|
40
41
|
import 'formik';
|
|
41
42
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
@@ -46,19 +47,27 @@ import { PopperProvider } from '../../components/Popper/PopperContext/PopperCont
|
|
|
46
47
|
import 'react-focus-lock';
|
|
47
48
|
import 'i18next';
|
|
48
49
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
50
|
+
import '../../views/WalletList/WalletList.js';
|
|
51
|
+
import 'qrcode';
|
|
52
|
+
import '@hcaptcha/react-hcaptcha';
|
|
53
|
+
import '../LoadingContext/LoadingContext.js';
|
|
54
|
+
import '../SocialRedirectContext/SocialRedirectContext.js';
|
|
55
|
+
import '../WalletGroupContext/WalletGroupContext.js';
|
|
56
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
57
|
+
import '../PasskeyContext/PasskeyContext.js';
|
|
49
58
|
import { walletBookMock } from './constants/index.js';
|
|
50
59
|
|
|
51
60
|
const MockContext = createContext(undefined);
|
|
52
|
-
const MockContextProvider = ({ children,
|
|
61
|
+
const MockContextProvider = ({ children, view, customerTheme, dynamicLayoutClassName, }) => {
|
|
53
62
|
const viewContextValue = {
|
|
54
63
|
goToInitialView: () => { },
|
|
55
64
|
/* istanbul ignore next */
|
|
56
65
|
setView: () => { },
|
|
57
66
|
view,
|
|
58
67
|
};
|
|
59
|
-
return (jsx(MockContext.Provider, { value: { mockedSDK: true }, children: jsx(PopperProvider, { children: jsx(ViewContext.Provider, { value: viewContextValue, children: jsx(ErrorContextProvider, { children: jsx(ThemeContextProvider, { customerTheme: customerTheme, children: jsx(FooterAnimationContextProvider, { children: jsx(WalletBookContextProvider, { walletBook: walletBookMock, children: jsx(MockContextWrapper, { dynamicLayoutClassName: dynamicLayoutClassName,
|
|
68
|
+
return (jsx(MockContext.Provider, { value: { mockedSDK: true }, children: jsx(PopperProvider, { children: jsx(ViewContext.Provider, { value: viewContextValue, children: jsx(ErrorContextProvider, { children: jsx(ThemeContextProvider, { customerTheme: customerTheme, children: jsx(FooterAnimationContextProvider, { children: jsx(WalletBookContextProvider, { walletBook: walletBookMock, children: jsx(MockContextWrapper, { dynamicLayoutClassName: dynamicLayoutClassName, children: children }) }) }) }) }) }) }) }));
|
|
60
69
|
};
|
|
61
|
-
const MockContextWrapper = ({ dynamicLayoutClassName,
|
|
70
|
+
const MockContextWrapper = ({ dynamicLayoutClassName, children, }) => {
|
|
62
71
|
/* istanbul ignore next */
|
|
63
72
|
const onClose = () => new Promise(() => { });
|
|
64
73
|
const mockProjectSettings = {
|
|
@@ -72,9 +81,6 @@ const MockContextWrapper = ({ dynamicLayoutClassName, mockedWalletConnector, wal
|
|
|
72
81
|
};
|
|
73
82
|
return (jsx("div", { className: 'mock-ctx__container', style: { position: 'relative' }, children: jsx(DynamicAuthModal, { className: dynamicLayoutClassName, onClose: onClose, projectSettings: mockProjectSettings, transitionProps: {
|
|
74
83
|
isShown: true,
|
|
75
|
-
}, walletConnector: mockedWalletConnector !== null && mockedWalletConnector !== void 0 ? mockedWalletConnector : {
|
|
76
|
-
canConnectViaQrCode: true,
|
|
77
|
-
name: walletName,
|
|
78
84
|
}, children: children }) }));
|
|
79
85
|
};
|
|
80
86
|
const useMockContext = () => {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
|
|
8
|
+
const PasskeyContext = React.createContext(undefined);
|
|
9
|
+
const PasskeyContextProvider = ({ children, }) => {
|
|
10
|
+
// state for when passkey list needs to re-render
|
|
11
|
+
const [passkeyEdited, setPasskeyEdited] = React.useState(false);
|
|
12
|
+
// states to pass into rename passkey popup
|
|
13
|
+
const [passkey, setPasskey] = React.useState(undefined);
|
|
14
|
+
const [passkeyIcon, setPasskeyIcon] = React.useState(undefined);
|
|
15
|
+
const value = React.useMemo(() => ({
|
|
16
|
+
passkey,
|
|
17
|
+
passkeyEdited,
|
|
18
|
+
passkeyIcon,
|
|
19
|
+
setPasskey,
|
|
20
|
+
setPasskeyEdited,
|
|
21
|
+
setPasskeyIcon,
|
|
22
|
+
}), [passkey, passkeyIcon, passkeyEdited]);
|
|
23
|
+
return (jsxRuntime.jsx(PasskeyContext.Provider, { value: value, children: children }));
|
|
24
|
+
};
|
|
25
|
+
const usePasskeyContext = () => {
|
|
26
|
+
const context = React.useContext(PasskeyContext);
|
|
27
|
+
if (context === undefined) {
|
|
28
|
+
throw new Error('usage of PasskeyContext not wrapped in `PasskeyContextProvider`.');
|
|
29
|
+
}
|
|
30
|
+
return context;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.PasskeyContext = PasskeyContext;
|
|
34
|
+
exports.PasskeyContextProvider = PasskeyContextProvider;
|
|
35
|
+
exports.usePasskeyContext = usePasskeyContext;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode, SetStateAction, Dispatch } from 'react';
|
|
2
|
+
import { UserPasskey } from '@dynamic-labs/sdk-api';
|
|
3
|
+
type PasskeyContextProps = {
|
|
4
|
+
passkey: UserPasskey | undefined;
|
|
5
|
+
setPasskey: Dispatch<SetStateAction<UserPasskey | undefined>>;
|
|
6
|
+
passkeyEdited: boolean;
|
|
7
|
+
setPasskeyEdited: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
passkeyIcon: JSX.Element | undefined;
|
|
9
|
+
setPasskeyIcon: Dispatch<SetStateAction<JSX.Element | undefined>>;
|
|
10
|
+
};
|
|
11
|
+
export declare const PasskeyContext: import("react").Context<PasskeyContextProps | undefined>;
|
|
12
|
+
export declare const PasskeyContextProvider: ({ children, }: {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export declare const usePasskeyContext: () => PasskeyContextProps;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { createContext, useState, useMemo, useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
const PasskeyContext = createContext(undefined);
|
|
5
|
+
const PasskeyContextProvider = ({ children, }) => {
|
|
6
|
+
// state for when passkey list needs to re-render
|
|
7
|
+
const [passkeyEdited, setPasskeyEdited] = useState(false);
|
|
8
|
+
// states to pass into rename passkey popup
|
|
9
|
+
const [passkey, setPasskey] = useState(undefined);
|
|
10
|
+
const [passkeyIcon, setPasskeyIcon] = useState(undefined);
|
|
11
|
+
const value = useMemo(() => ({
|
|
12
|
+
passkey,
|
|
13
|
+
passkeyEdited,
|
|
14
|
+
passkeyIcon,
|
|
15
|
+
setPasskey,
|
|
16
|
+
setPasskeyEdited,
|
|
17
|
+
setPasskeyIcon,
|
|
18
|
+
}), [passkey, passkeyIcon, passkeyEdited]);
|
|
19
|
+
return (jsx(PasskeyContext.Provider, { value: value, children: children }));
|
|
20
|
+
};
|
|
21
|
+
const usePasskeyContext = () => {
|
|
22
|
+
const context = useContext(PasskeyContext);
|
|
23
|
+
if (context === undefined) {
|
|
24
|
+
throw new Error('usage of PasskeyContext not wrapped in `PasskeyContextProvider`.');
|
|
25
|
+
}
|
|
26
|
+
return context;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { PasskeyContext, PasskeyContextProvider, usePasskeyContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PasskeyContext';
|
|
@@ -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('../WalletGroupContext/WalletGroupContext.cjs');
|
|
56
|
-
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
54
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
57
55
|
require('qrcode');
|
|
56
|
+
require('@hcaptcha/react-hcaptcha');
|
|
58
57
|
require('../LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
59
|
+
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
60
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
61
|
+
require('../FooterAnimationContext/index.cjs');
|
|
62
|
+
require('../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 '../WalletGroupContext/WalletGroupContext.js';
|
|
52
|
-
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
49
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
50
|
+
import '../../views/WalletList/WalletList.js';
|
|
53
51
|
import 'qrcode';
|
|
52
|
+
import '@hcaptcha/react-hcaptcha';
|
|
54
53
|
import '../LoadingContext/LoadingContext.js';
|
|
54
|
+
import '../SocialRedirectContext/SocialRedirectContext.js';
|
|
55
|
+
import '../WalletGroupContext/WalletGroupContext.js';
|
|
56
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
57
|
+
import '../FooterAnimationContext/index.js';
|
|
58
|
+
import '../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';
|
|
@@ -50,14 +50,18 @@ require('react-focus-lock');
|
|
|
50
50
|
require('formik');
|
|
51
51
|
require('i18next');
|
|
52
52
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
53
|
-
require('
|
|
54
|
-
require('
|
|
53
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
54
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
55
|
+
require('../AccessDeniedContext/AccessDeniedContext.cjs');
|
|
56
|
+
require('qrcode');
|
|
57
|
+
require('@hcaptcha/react-hcaptcha');
|
|
58
|
+
require('../LoadingContext/LoadingContext.cjs');
|
|
55
59
|
require('../AccountExistsContext/AccountExistsContext.cjs');
|
|
56
60
|
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
61
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
62
|
+
require('../FooterAnimationContext/index.cjs');
|
|
63
|
+
require('../PasskeyContext/PasskeyContext.cjs');
|
|
57
64
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
|
-
require('qrcode');
|
|
59
|
-
require('../LoadingContext/LoadingContext.cjs');
|
|
60
|
-
require('../AccessDeniedContext/AccessDeniedContext.cjs');
|
|
61
65
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
62
66
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
63
67
|
require('@dynamic-labs/viem-utils');
|
|
@@ -97,7 +101,7 @@ const SocialRedirectContextProvider = ({ children, }) => {
|
|
|
97
101
|
const handleError = React.useCallback((message) => {
|
|
98
102
|
logger.logger.error(message);
|
|
99
103
|
if (isAuthenticated) {
|
|
100
|
-
setShowAuthFlow(false);
|
|
104
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
101
105
|
setShowDynamicUserProfile(true);
|
|
102
106
|
}
|
|
103
107
|
else {
|
|
@@ -46,14 +46,18 @@ import 'react-focus-lock';
|
|
|
46
46
|
import 'formik';
|
|
47
47
|
import 'i18next';
|
|
48
48
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
49
|
-
import '
|
|
50
|
-
import '
|
|
49
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
50
|
+
import '../../views/WalletList/WalletList.js';
|
|
51
|
+
import '../AccessDeniedContext/AccessDeniedContext.js';
|
|
52
|
+
import 'qrcode';
|
|
53
|
+
import '@hcaptcha/react-hcaptcha';
|
|
54
|
+
import '../LoadingContext/LoadingContext.js';
|
|
51
55
|
import '../AccountExistsContext/AccountExistsContext.js';
|
|
52
56
|
import '../WalletGroupContext/WalletGroupContext.js';
|
|
57
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
58
|
+
import '../FooterAnimationContext/index.js';
|
|
59
|
+
import '../PasskeyContext/PasskeyContext.js';
|
|
53
60
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
54
|
-
import 'qrcode';
|
|
55
|
-
import '../LoadingContext/LoadingContext.js';
|
|
56
|
-
import '../AccessDeniedContext/AccessDeniedContext.js';
|
|
57
61
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
58
62
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
59
63
|
import '@dynamic-labs/viem-utils';
|
|
@@ -93,7 +97,7 @@ const SocialRedirectContextProvider = ({ children, }) => {
|
|
|
93
97
|
const handleError = useCallback((message) => {
|
|
94
98
|
logger.error(message);
|
|
95
99
|
if (isAuthenticated) {
|
|
96
|
-
setShowAuthFlow(false);
|
|
100
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
97
101
|
setShowDynamicUserProfile(true);
|
|
98
102
|
}
|
|
99
103
|
else {
|
|
@@ -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('../WalletGroupContext/WalletGroupContext.cjs');
|
|
56
|
-
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
54
|
+
require('../../views/WalletList/WalletList.cjs');
|
|
57
55
|
require('qrcode');
|
|
56
|
+
require('@hcaptcha/react-hcaptcha');
|
|
58
57
|
require('../LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
59
|
+
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
60
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
61
|
+
require('../FooterAnimationContext/index.cjs');
|
|
62
|
+
require('../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');
|