@dynamic-labs/sdk-react-core 1.1.0-alpha.1 → 1.1.0-alpha.10
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 +104 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +13 -12
- package/src/index.cjs +27 -5
- package/src/index.d.ts +2 -1
- package/src/index.js +16 -4
- package/src/lib/Main.cjs +4 -5
- package/src/lib/Main.js +4 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -1
- 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 +2 -2
- package/src/lib/components/Divider/Divider.js +2 -2
- 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/MenuList/Dropdown/Dropdown.cjs +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
- package/src/lib/components/Modal/Modal.cjs +1 -1
- package/src/lib/components/Modal/Modal.d.ts +1 -2
- package/src/lib/components/Modal/Modal.js +1 -1
- package/src/lib/components/Modal/index.d.ts +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +1 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -1
- package/src/lib/components/Portal/Portal.cjs +1 -1
- package/src/lib/components/Portal/Portal.js +1 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +5 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +5 -1
- package/src/lib/components/ShadowDOM/index.d.ts +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +1 -1
- 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 +1 -1
- package/src/lib/components/Tooltip/Tooltip.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
- package/src/lib/components/UserAddress/UserAddress.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -2
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +122 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.d.ts +2 -0
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +118 -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 +46 -35
- package/src/lib/context/DynamicContext/DynamicContext.js +47 -36
- package/src/lib/context/DynamicContext/hooks/index.d.ts +1 -1
- 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/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 +59 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +37 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +55 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +2 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +2 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +11 -7
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +9 -2
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +4 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +9 -2
- package/src/lib/context/FundingContext/FundingContext.cjs +4 -1
- package/src/lib/context/FundingContext/FundingContext.js +4 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -2
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -1
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/data/api.cjs +15 -13
- package/src/lib/data/api.d.ts +7 -2
- package/src/lib/data/api.js +15 -13
- package/src/lib/events/dynamicEvents.d.ts +5 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +4 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +7 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +2 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +2 -2
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +2 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -2
- package/src/lib/locale/en/translation.cjs +242 -3
- package/src/lib/locale/en/translation.d.ts +241 -2
- package/src/lib/locale/en/translation.js +242 -3
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +4 -4
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +4 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +4 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +4 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +4 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +4 -4
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +4 -4
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +4 -4
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +4 -4
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +4 -4
- 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/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 +7 -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/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/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 +32 -16
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +32 -16
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -1
- package/src/lib/utils/functions/index.d.ts +1 -0
- 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/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 +3 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +4 -4
- 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/useEmailVerificationRequest/useEmailVerificationRequest.cjs +28 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +28 -1
- 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 -0
- 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/useAuthLayoutChecks/useAuthLayoutChecks.cjs +5 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +5 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +3 -3
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +3 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +3 -5
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +3 -5
- 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 +3 -3
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +3 -3
- 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 +12 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +12 -6
- 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/useIsLoggedIn/useIsLoggedIn.cjs +2 -27
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +2 -27
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +6 -8
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +6 -8
- 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/useSocialAuth/useSocialAuth.cjs +20 -14
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +20 -14
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +26 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +26 -4
- 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 +2 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +2 -2
- 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/useWalletConnectors/useWalletConnectors.cjs +2 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +2 -2
- 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/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +2 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.js +2 -2
- 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 +5 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +5 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +5 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +5 -4
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +36 -25
- package/src/lib/views/EmailVerification/EmailVerification.js +36 -25
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -1
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -1
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +160 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +156 -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 +60 -7
- package/src/lib/views/LoginView/LoginView.js +60 -7
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +7 -9
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.d.ts +0 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +8 -9
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -4
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +4 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +5 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +5 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +5 -8
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +5 -8
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -2
- package/src/lib/views/NoAccess/NoAccess.js +2 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +8 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +8 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +12 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +12 -7
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +2 -2
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +2 -2
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +5 -5
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +5 -5
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.cjs +17 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.d.ts +3 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.js +13 -0
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/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 +9 -6
- package/src/lib/views/PendingConnectView/PendingConnectView.js +9 -6
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +10 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +10 -7
- package/src/lib/views/QrCodeView/QRCode.cjs +2 -3
- package/src/lib/views/QrCodeView/QRCode.js +2 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +12 -9
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +12 -9
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -1
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +6 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +6 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +2 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +2 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +72 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.js +73 -2
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.cjs +74 -0
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.d.ts +7 -0
- package/src/lib/views/WalletGroupView/components/HardwareWalletToggle/HardwareWalletToggle.js +70 -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 +2 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -2
- package/src/lib/views/WalletList/WalletList.cjs +5 -8
- package/src/lib/views/WalletList/WalletList.js +5 -8
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -2
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +5 -4
- package/src/lib/views/WalletLockedView/WalletLockedView.js +5 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +6 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +6 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -7
- package/src/lib/views/WalletUsedView/WalletUsedView.js +7 -7
- package/src/lib/views/viewToComponentMap.cjs +3 -0
- package/src/lib/views/viewToComponentMap.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +2 -2
- 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 +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +3 -3
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +3 -3
- 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 +2 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +76 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +72 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +67 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +63 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +13 -12
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +13 -12
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -3
- 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 +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -2
- 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 +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +71 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.d.ts +7 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +67 -0
- package/src/lib/widgets/DynamicWidget/components/PromptModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
- 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/useFetchBalance/useFetchBalance.cjs +66 -21
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +67 -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 +51 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +46 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +7 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +13 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +7 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +8 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +9 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +11 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +22 -8
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +22 -9
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +8 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +10 -6
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +38 -13
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.d.ts +2 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +37 -13
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +6 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +6 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +95 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +91 -0
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +4 -4
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -2
- 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/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
|
@@ -55,8 +55,8 @@ require('../QrCodeContext/QrCodeContext.cjs');
|
|
|
55
55
|
require('../AccountExistsContext/AccountExistsContext.cjs');
|
|
56
56
|
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
57
57
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
58
|
-
require('qrcode');
|
|
59
58
|
require('../LoadingContext/LoadingContext.cjs');
|
|
59
|
+
require('qrcode');
|
|
60
60
|
require('../AccessDeniedContext/AccessDeniedContext.cjs');
|
|
61
61
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
62
62
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -97,7 +97,7 @@ const SocialRedirectContextProvider = ({ children, }) => {
|
|
|
97
97
|
const handleError = React.useCallback((message) => {
|
|
98
98
|
logger.logger.error(message);
|
|
99
99
|
if (isAuthenticated) {
|
|
100
|
-
setShowAuthFlow(false);
|
|
100
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
101
101
|
setShowDynamicUserProfile(true);
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
@@ -51,8 +51,8 @@ import '../QrCodeContext/QrCodeContext.js';
|
|
|
51
51
|
import '../AccountExistsContext/AccountExistsContext.js';
|
|
52
52
|
import '../WalletGroupContext/WalletGroupContext.js';
|
|
53
53
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
54
|
-
import 'qrcode';
|
|
55
54
|
import '../LoadingContext/LoadingContext.js';
|
|
55
|
+
import 'qrcode';
|
|
56
56
|
import '../AccessDeniedContext/AccessDeniedContext.js';
|
|
57
57
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
58
58
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -93,7 +93,7 @@ const SocialRedirectContextProvider = ({ children, }) => {
|
|
|
93
93
|
const handleError = useCallback((message) => {
|
|
94
94
|
logger.error(message);
|
|
95
95
|
if (isAuthenticated) {
|
|
96
|
-
setShowAuthFlow(false);
|
|
96
|
+
setShowAuthFlow(false, { emitCancelAuth: true });
|
|
97
97
|
setShowDynamicUserProfile(true);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
@@ -54,8 +54,8 @@ require('../FooterAnimationContext/index.cjs');
|
|
|
54
54
|
require('../QrCodeContext/QrCodeContext.cjs');
|
|
55
55
|
require('../WalletGroupContext/WalletGroupContext.cjs');
|
|
56
56
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
57
|
-
require('qrcode');
|
|
58
57
|
require('../LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('qrcode');
|
|
59
59
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
60
60
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
61
61
|
require('@dynamic-labs/viem-utils');
|
|
@@ -50,8 +50,8 @@ import '../FooterAnimationContext/index.js';
|
|
|
50
50
|
import '../QrCodeContext/QrCodeContext.js';
|
|
51
51
|
import '../WalletGroupContext/WalletGroupContext.js';
|
|
52
52
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
53
|
-
import 'qrcode';
|
|
54
53
|
import '../LoadingContext/LoadingContext.js';
|
|
54
|
+
import 'qrcode';
|
|
55
55
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
56
56
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
57
57
|
import '@dynamic-labs/viem-utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, FC, PropsWithChildren, SetStateAction } from 'react';
|
|
2
|
-
export type ViewType = 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-with-email' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'update-email' | 'verify-email' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete';
|
|
2
|
+
export type ViewType = 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-with-email' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'update-email' | 'verify-email' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete' | 'embedded-reveal-view' | 'embedded-reveal-account-view';
|
|
3
3
|
export type ViewContextProps = {
|
|
4
4
|
setView: Dispatch<SetStateAction<ViewType>>;
|
|
5
5
|
view: ViewType;
|
package/src/lib/data/api.cjs
CHANGED
|
@@ -295,18 +295,6 @@ const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalle
|
|
|
295
295
|
return undefined;
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
const fetchNetworkSettings = (environmentId) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
299
|
-
try {
|
|
300
|
-
const res = yield sdkApi().getNetworksConfigurationByEnvId({
|
|
301
|
-
environmentId,
|
|
302
|
-
});
|
|
303
|
-
return res;
|
|
304
|
-
}
|
|
305
|
-
catch (e) {
|
|
306
|
-
logger.logger.error(e);
|
|
307
|
-
return undefined;
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
298
|
const fetchProjectSettings = (environmentId) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
311
299
|
try {
|
|
312
300
|
const res = yield sdkApi().getEnvironmentSettings({
|
|
@@ -529,12 +517,26 @@ const getUserPasskeys = ({ userJwt, environmentId, }) => _tslib.__awaiter(void 0
|
|
|
529
517
|
};
|
|
530
518
|
}
|
|
531
519
|
});
|
|
520
|
+
const exportEmbeddedWallet = ({ userJwt, environmentId, walletId, activityId, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
521
|
+
try {
|
|
522
|
+
const data = yield sdkApi(userJwt).embeddedWalletExport({
|
|
523
|
+
activityId,
|
|
524
|
+
environmentId,
|
|
525
|
+
walletId,
|
|
526
|
+
});
|
|
527
|
+
return data;
|
|
528
|
+
}
|
|
529
|
+
catch (e) {
|
|
530
|
+
logger.logger.error(e);
|
|
531
|
+
return { exportBundle: '' };
|
|
532
|
+
}
|
|
533
|
+
});
|
|
532
534
|
|
|
533
535
|
exports.completePasskeyRecovery = completePasskeyRecovery;
|
|
534
536
|
exports.createEmailVerification = createEmailVerification;
|
|
535
537
|
exports.createTurnkeyEvmEmbeddedWallet = createTurnkeyEvmEmbeddedWallet;
|
|
536
538
|
exports.createVisit = createVisit;
|
|
537
|
-
exports.
|
|
539
|
+
exports.exportEmbeddedWallet = exportEmbeddedWallet;
|
|
538
540
|
exports.fetchNonce = fetchNonce;
|
|
539
541
|
exports.fetchProjectSettings = fetchProjectSettings;
|
|
540
542
|
exports.getEmailProvider = getEmailProvider;
|
package/src/lib/data/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSettings, UserFields,
|
|
1
|
+
import { ProjectSettings, UserFields, ChainEnum, UpdateSelfResponse, WalletProviderEnum, AuthModeEnum, EmailVerificationCreateResponse, VerifyResponse, OauthRequest, OauthResultRequest, ProviderEnum, OnrampConfiguration, EmailProviderResponse, OauthResultResponse, PasskeyRegistrationCredential, ExportEmbeddedWalletResponse } from '@dynamic-labs/sdk-api';
|
|
2
2
|
import { AuthModeType, VerifyWallet } from '../shared/types';
|
|
3
3
|
export declare const fetchNonce: (environmentId: string) => Promise<string | undefined>;
|
|
4
4
|
export declare const getEmailProvider: ({ email, environmentId, }: {
|
|
@@ -49,7 +49,6 @@ export declare const createVisit: ({ authMode, chain, environmentId, walletProvi
|
|
|
49
49
|
walletProvider: string;
|
|
50
50
|
}) => Promise<void | undefined>;
|
|
51
51
|
export declare const verifyWallet: (environmentId: string, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, network, oauth, }: VerifyWallet) => Promise<string | undefined>;
|
|
52
|
-
export declare const fetchNetworkSettings: (environmentId: string) => Promise<NetworkConfigurationResponse[] | undefined>;
|
|
53
52
|
export declare const fetchProjectSettings: (environmentId: string) => Promise<ProjectSettings | undefined>;
|
|
54
53
|
export declare const updateUserProfileFields: (jwt: string | undefined, environmentId: string, fields: UserFields) => Promise<UpdateSelfResponse>;
|
|
55
54
|
export declare const getOauthLoginUrl: (environmentId: string, providerType: ProviderEnum, userJwt: string) => Promise<string | undefined>;
|
|
@@ -100,3 +99,9 @@ export type GetUserPasskeysProps = {
|
|
|
100
99
|
environmentId: string;
|
|
101
100
|
};
|
|
102
101
|
export declare const getUserPasskeys: ({ userJwt, environmentId, }: GetUserPasskeysProps) => Promise<import("@dynamic-labs/sdk-api").GetUserPasskeysResponse>;
|
|
102
|
+
export declare const exportEmbeddedWallet: ({ userJwt, environmentId, walletId, activityId, }: {
|
|
103
|
+
userJwt: string;
|
|
104
|
+
environmentId: string;
|
|
105
|
+
walletId: string;
|
|
106
|
+
activityId: string;
|
|
107
|
+
}) => Promise<ExportEmbeddedWalletResponse>;
|
package/src/lib/data/api.js
CHANGED
|
@@ -291,18 +291,6 @@ const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalle
|
|
|
291
291
|
return undefined;
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
|
-
const fetchNetworkSettings = (environmentId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
295
|
-
try {
|
|
296
|
-
const res = yield sdkApi().getNetworksConfigurationByEnvId({
|
|
297
|
-
environmentId,
|
|
298
|
-
});
|
|
299
|
-
return res;
|
|
300
|
-
}
|
|
301
|
-
catch (e) {
|
|
302
|
-
logger.error(e);
|
|
303
|
-
return undefined;
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
294
|
const fetchProjectSettings = (environmentId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
307
295
|
try {
|
|
308
296
|
const res = yield sdkApi().getEnvironmentSettings({
|
|
@@ -525,5 +513,19 @@ const getUserPasskeys = ({ userJwt, environmentId, }) => __awaiter(void 0, void
|
|
|
525
513
|
};
|
|
526
514
|
}
|
|
527
515
|
});
|
|
516
|
+
const exportEmbeddedWallet = ({ userJwt, environmentId, walletId, activityId, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
517
|
+
try {
|
|
518
|
+
const data = yield sdkApi(userJwt).embeddedWalletExport({
|
|
519
|
+
activityId,
|
|
520
|
+
environmentId,
|
|
521
|
+
walletId,
|
|
522
|
+
});
|
|
523
|
+
return data;
|
|
524
|
+
}
|
|
525
|
+
catch (e) {
|
|
526
|
+
logger.error(e);
|
|
527
|
+
return { exportBundle: '' };
|
|
528
|
+
}
|
|
529
|
+
});
|
|
528
530
|
|
|
529
|
-
export { completePasskeyRecovery, createEmailVerification, createTurnkeyEvmEmbeddedWallet, createVisit,
|
|
531
|
+
export { completePasskeyRecovery, createEmailVerification, createTurnkeyEvmEmbeddedWallet, createVisit, exportEmbeddedWallet, fetchNonce, fetchProjectSettings, getEmailProvider, getOAuthResult, getOnrampProviders, getUserPasskeys, initPasskeyRecovery, linkWallet, mapAuthModeTypeToEnum, mapChainToChainEnum, mapProviderToProviderEnum, mergeUserAccounts, retryEmailVerification, revokeSession, sendDynamicProps, signInOAuth, signInWithEmailVerification, transferWallet, unlinkOAuth, unlinkWallet, updateUserProfileFields, verifyEmail, verifyOAuth, verifyWallet };
|
|
@@ -2,11 +2,16 @@ import EventEmitter from 'eventemitter3';
|
|
|
2
2
|
import { Wallet } from '../shared';
|
|
3
3
|
/** Maps internal event names to their listeners */
|
|
4
4
|
export type DynamicEvents = {
|
|
5
|
+
/** Triggered when auth is closed before reaching success (due to user cancel or fail) */
|
|
6
|
+
authFlowCancelled: () => void;
|
|
7
|
+
/** Triggered when auth is attempted but fails, like when user rejects connection or the network call fails */
|
|
5
8
|
emailVerificationResult: (param: boolean, email: string) => void;
|
|
6
9
|
embeddedWalletCreated: (wallet: Wallet) => void;
|
|
7
10
|
embeddedWalletFailed: (error: unknown) => void;
|
|
8
11
|
passkeyRecoveryCompleted: (wallet: Wallet) => void;
|
|
9
12
|
passkeyRecoveryFailed: (error: unknown) => void;
|
|
13
|
+
embeddedWalletRevealCompleted: (wallet: Wallet) => void;
|
|
14
|
+
embeddedWalletRevealFailed: (error: unknown) => void;
|
|
10
15
|
logout: () => void;
|
|
11
16
|
};
|
|
12
17
|
export declare const dynamicEvents: EventEmitter<DynamicEvents, any>;
|
|
@@ -53,9 +53,10 @@ var HelpContent = require('./HelpContent/HelpContent.cjs');
|
|
|
53
53
|
var ToSFooter = require('./ToSFooter/ToSFooter.cjs');
|
|
54
54
|
var WalletProgressStepper = require('./WalletProgressStepper/WalletProgressStepper.cjs');
|
|
55
55
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
56
|
+
require('react-focus-lock');
|
|
57
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
56
58
|
require('qrcode');
|
|
57
59
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
58
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
59
60
|
require('i18next');
|
|
60
61
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
61
62
|
require('../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -67,7 +68,6 @@ require('../../components/InlineWidget/InlineWidget.cjs');
|
|
|
67
68
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
68
69
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
69
70
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
70
|
-
require('react-focus-lock');
|
|
71
71
|
|
|
72
72
|
const DynamicAuthLayout = ({ children, className, style, onClose, projectSettings, hideBridgeProgressSteppers, }) => {
|
|
73
73
|
const { view } = ViewContext.useViewContext();
|
|
@@ -49,9 +49,10 @@ import { HelpContent } from './HelpContent/HelpContent.js';
|
|
|
49
49
|
import { ToSFooter } from './ToSFooter/ToSFooter.js';
|
|
50
50
|
import { WalletProgressStepper } from './WalletProgressStepper/WalletProgressStepper.js';
|
|
51
51
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
52
|
+
import 'react-focus-lock';
|
|
53
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
52
54
|
import 'qrcode';
|
|
53
55
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
54
|
-
import '../../context/LoadingContext/LoadingContext.js';
|
|
55
56
|
import 'i18next';
|
|
56
57
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
57
58
|
import '../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -63,7 +64,6 @@ import '../../components/InlineWidget/InlineWidget.js';
|
|
|
63
64
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
64
65
|
import '../../components/Popper/Popper/Popper.js';
|
|
65
66
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
66
|
-
import 'react-focus-lock';
|
|
67
67
|
|
|
68
68
|
const DynamicAuthLayout = ({ children, className, style, onClose, projectSettings, hideBridgeProgressSteppers, }) => {
|
|
69
69
|
const { view } = useViewContext();
|
|
@@ -51,8 +51,9 @@ var Tooltip = require('../../../components/Tooltip/Tooltip.cjs');
|
|
|
51
51
|
var QrCodeContext = require('../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
52
52
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
53
53
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
|
-
require('
|
|
54
|
+
require('react-focus-lock');
|
|
55
55
|
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
+
require('qrcode');
|
|
56
57
|
require('i18next');
|
|
57
58
|
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
59
|
require('../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -66,7 +67,6 @@ require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
66
67
|
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
67
68
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
68
69
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
69
|
-
require('react-focus-lock');
|
|
70
70
|
|
|
71
71
|
const Header = ({ onClose: handleClose, heading, projectSettings, walletConnector, copykey, }) => {
|
|
72
72
|
const { clearStatesOnBackClick, selectedWalletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -47,8 +47,9 @@ import { Tooltip } from '../../../components/Tooltip/Tooltip.js';
|
|
|
47
47
|
import { useQrCodeContext } from '../../../context/QrCodeContext/QrCodeContext.js';
|
|
48
48
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
49
49
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
|
-
import '
|
|
50
|
+
import 'react-focus-lock';
|
|
51
51
|
import '../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import 'qrcode';
|
|
52
53
|
import 'i18next';
|
|
53
54
|
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
55
|
import '../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -62,7 +63,6 @@ import '../../../components/InlineWidget/InlineWidget.js';
|
|
|
62
63
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
63
64
|
import '../../../components/Popper/Popper/Popper.js';
|
|
64
65
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
65
|
-
import 'react-focus-lock';
|
|
66
66
|
|
|
67
67
|
const Header = ({ onClose: handleClose, heading, projectSettings, walletConnector, copykey, }) => {
|
|
68
68
|
const { clearStatesOnBackClick, selectedWalletConnector } = useInternalDynamicContext();
|
|
@@ -47,8 +47,9 @@ var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
|
47
47
|
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
48
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
49
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
|
-
require('
|
|
50
|
+
require('react-focus-lock');
|
|
51
51
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
+
require('qrcode');
|
|
52
53
|
require('i18next');
|
|
53
54
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
54
55
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -62,7 +63,6 @@ require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
62
63
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
63
64
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
64
65
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
65
|
-
require('react-focus-lock');
|
|
66
66
|
|
|
67
67
|
const HelpHeader = () => {
|
|
68
68
|
const { authMode, selectedWalletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -43,8 +43,9 @@ import { Typography } from '../../../../components/Typography/Typography.js';
|
|
|
43
43
|
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
44
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
45
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
|
-
import '
|
|
46
|
+
import 'react-focus-lock';
|
|
47
47
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
48
|
+
import 'qrcode';
|
|
48
49
|
import 'i18next';
|
|
49
50
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
50
51
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -58,7 +59,6 @@ import '../../../../components/InlineWidget/InlineWidget.js';
|
|
|
58
59
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
59
60
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
60
61
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
61
|
-
import 'react-focus-lock';
|
|
62
62
|
|
|
63
63
|
const HelpHeader = () => {
|
|
64
64
|
const { authMode, selectedWalletConnector } = useInternalDynamicContext();
|
package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs
CHANGED
|
@@ -46,8 +46,9 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
46
46
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
47
47
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
48
48
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
49
|
-
require('
|
|
49
|
+
require('react-focus-lock');
|
|
50
50
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
51
|
+
require('qrcode');
|
|
51
52
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
52
53
|
require('i18next');
|
|
53
54
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
@@ -62,7 +63,6 @@ require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
62
63
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
63
64
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
64
65
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
65
|
-
require('react-focus-lock');
|
|
66
66
|
|
|
67
67
|
const PasskeyInfoHelper = () => {
|
|
68
68
|
const { t } = reactI18next.useTranslation();
|
|
@@ -42,8 +42,9 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
42
42
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
43
43
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
44
44
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
45
|
-
import '
|
|
45
|
+
import 'react-focus-lock';
|
|
46
46
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
47
|
+
import 'qrcode';
|
|
47
48
|
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
48
49
|
import 'i18next';
|
|
49
50
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
@@ -58,7 +59,6 @@ import '../../../../components/InlineWidget/InlineWidget.js';
|
|
|
58
59
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
59
60
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
60
61
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
61
|
-
import 'react-focus-lock';
|
|
62
62
|
|
|
63
63
|
const PasskeyInfoHelper = () => {
|
|
64
64
|
const { t } = useTranslation();
|
|
@@ -44,8 +44,9 @@ require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
44
44
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
45
45
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
46
46
|
require('../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
47
|
-
require('
|
|
47
|
+
require('react-focus-lock');
|
|
48
48
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
49
|
+
require('qrcode');
|
|
49
50
|
require('i18next');
|
|
50
51
|
require('../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
51
52
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -58,7 +59,6 @@ require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
58
59
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
59
60
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
60
61
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
61
|
-
require('react-focus-lock');
|
|
62
62
|
|
|
63
63
|
const Item = ({ heading, StartIcon, EndIcon, message, url, }) => (jsxRuntime.jsxs("a", { className: 'footer-buttons-item', href: url, rel: 'noopener noreferrer', target: '_blank', children: [jsxRuntime.jsx("div", { className: 'footer-buttons-item__icon--left', children: jsxRuntime.jsx(StartIcon, {}) }), jsxRuntime.jsxs("div", { className: 'footer-buttons-item__typography', children: [jsxRuntime.jsx(Typography.Typography, { as: 'h2', weight: 'regular', color: 'primary', variant: 'body_normal', children: heading }), message && (jsxRuntime.jsx(Typography.Typography, { as: 'p', weight: 'regular', color: 'secondary', children: message }))] }), EndIcon && jsxRuntime.jsx(EndIcon, { style: { height: '1.5rem', width: '1.5rem' } })] }));
|
|
64
64
|
|
|
@@ -40,8 +40,9 @@ import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
40
40
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
41
41
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
42
42
|
import '../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
43
|
-
import '
|
|
43
|
+
import 'react-focus-lock';
|
|
44
44
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
45
|
+
import 'qrcode';
|
|
45
46
|
import 'i18next';
|
|
46
47
|
import '../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
47
48
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -54,7 +55,6 @@ import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
|
54
55
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
55
56
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
56
57
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
57
|
-
import 'react-focus-lock';
|
|
58
58
|
|
|
59
59
|
const Item = ({ heading, StartIcon, EndIcon, message, url, }) => (jsxs("a", { className: 'footer-buttons-item', href: url, rel: 'noopener noreferrer', target: '_blank', children: [jsx("div", { className: 'footer-buttons-item__icon--left', children: jsx(StartIcon, {}) }), jsxs("div", { className: 'footer-buttons-item__typography', children: [jsx(Typography, { as: 'h2', weight: 'regular', color: 'primary', variant: 'body_normal', children: heading }), message && (jsx(Typography, { as: 'p', weight: 'regular', color: 'secondary', children: message }))] }), EndIcon && jsx(EndIcon, { style: { height: '1.5rem', width: '1.5rem' } })] }));
|
|
60
60
|
|
|
@@ -45,8 +45,9 @@ require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
45
45
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
46
46
|
var NewToWeb3WalletItem = require('../NewToWeb3WalletItem/NewToWeb3WalletItem.cjs');
|
|
47
47
|
require('../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
|
-
require('
|
|
48
|
+
require('react-focus-lock');
|
|
49
49
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
50
|
+
require('qrcode');
|
|
50
51
|
require('i18next');
|
|
51
52
|
require('../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
52
53
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -59,15 +60,14 @@ require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
59
60
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
60
61
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
61
62
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
62
|
-
require('react-focus-lock');
|
|
63
63
|
|
|
64
64
|
const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
65
65
|
const showRefreshOnceInstalledWalletButton = Boolean(selectedUrl.length) && !(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser);
|
|
66
66
|
const walletConnectionAfterPageReloadHandler = () => {
|
|
67
|
-
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.
|
|
67
|
+
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.key)) {
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
localStorage.LocalStorage.setToLS(localStorage$1.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.
|
|
70
|
+
localStorage.LocalStorage.setToLS(localStorage$1.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.key);
|
|
71
71
|
window.location.reload();
|
|
72
72
|
};
|
|
73
73
|
return (jsxRuntime.jsxs("div", { className: 'new-to-web3-buttons__container', children: [!utils.isMobile() && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser) && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: wallet, children: jsxRuntime.jsx(Typography.Typography, { as: 'p', "data-testid": 'desktop-interactive-wallet-item', variant: 'body_normal', weight: 'bold', children: "Continue" }) })), showRefreshOnceInstalledWalletButton && (jsxRuntime.jsx("button", { onClick: walletConnectionAfterPageReloadHandler, children: jsxRuntime.jsx(Typography.Typography, { as: 'p', "data-testid": 'refresh-once-installed-button', variant: 'body_normal', weight: 'bold', children: "Continue once installed" }) }))] })), wallet && utils.isMobile() && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: wallet, children: jsxRuntime.jsx("p", { "data-testid": 'mobile-interactive-wallet-item', children: "Continue once installed" }) }))] }));
|
|
@@ -41,8 +41,9 @@ import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
41
41
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
42
42
|
import { NewToWeb3WalletItem } from '../NewToWeb3WalletItem/NewToWeb3WalletItem.js';
|
|
43
43
|
import '../../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
|
-
import '
|
|
44
|
+
import 'react-focus-lock';
|
|
45
45
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
46
|
+
import 'qrcode';
|
|
46
47
|
import 'i18next';
|
|
47
48
|
import '../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
48
49
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -55,15 +56,14 @@ import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
|
55
56
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
56
57
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
57
58
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
58
|
-
import 'react-focus-lock';
|
|
59
59
|
|
|
60
60
|
const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
61
61
|
const showRefreshOnceInstalledWalletButton = Boolean(selectedUrl.length) && !(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser);
|
|
62
62
|
const walletConnectionAfterPageReloadHandler = () => {
|
|
63
|
-
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.
|
|
63
|
+
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.key)) {
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
LocalStorage.setToLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.
|
|
66
|
+
LocalStorage.setToLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.key);
|
|
67
67
|
window.location.reload();
|
|
68
68
|
};
|
|
69
69
|
return (jsxs("div", { className: 'new-to-web3-buttons__container', children: [!isMobile() && (jsxs(Fragment, { children: [(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser) && (jsx(NewToWeb3WalletItem, { wallet: wallet, children: jsx(Typography, { as: 'p', "data-testid": 'desktop-interactive-wallet-item', variant: 'body_normal', weight: 'bold', children: "Continue" }) })), showRefreshOnceInstalledWalletButton && (jsx("button", { onClick: walletConnectionAfterPageReloadHandler, children: jsx(Typography, { as: 'p', "data-testid": 'refresh-once-installed-button', variant: 'body_normal', weight: 'bold', children: "Continue once installed" }) }))] })), wallet && isMobile() && (jsx(NewToWeb3WalletItem, { wallet: wallet, children: jsx("p", { "data-testid": 'mobile-interactive-wallet-item', children: "Continue once installed" }) }))] }));
|
package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs
CHANGED
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
7
|
var iconic = require('@dynamic-labs/iconic');
|
|
9
8
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
10
9
|
var utils = require('@dynamic-labs/utils');
|
|
11
10
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
12
11
|
require('@dynamic-labs/sdk-api');
|
|
13
12
|
require('../../../../shared/logger.cjs');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
14
14
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
15
15
|
var puzzle = require('../../../../shared/assets/puzzle.cjs');
|
|
16
16
|
var index = require('../../../../shared/utils/functions/getValueByKey/index.cjs');
|
|
@@ -51,8 +51,9 @@ var NewToWeb3WalletItem = require('./NewToWeb3WalletItem/NewToWeb3WalletItem.cjs
|
|
|
51
51
|
var Item = require('./Item/Item.cjs');
|
|
52
52
|
var WalletExtensionOrAppContinueButton = require('./WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs');
|
|
53
53
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
54
|
-
require('
|
|
54
|
+
require('react-focus-lock');
|
|
55
55
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
+
require('qrcode');
|
|
56
57
|
require('i18next');
|
|
57
58
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
58
59
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -66,7 +67,6 @@ require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
66
67
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
67
68
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
68
69
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
69
|
-
require('react-focus-lock');
|
|
70
70
|
|
|
71
71
|
const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
72
72
|
var _a, _b;
|
|
@@ -74,10 +74,10 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
|
74
74
|
const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
|
|
75
75
|
const [selectedUrl, setSelectedUrl] = React.useState('');
|
|
76
76
|
const chainName = ((_a = chains === null || chains === void 0 ? void 0 : chains.filter((chain) => Boolean(chain.enabled)).find((enabledChain) => enabledChain.name === newToWeb3WalletChainMap.primary_chain)) === null || _a === void 0 ? void 0 : _a.name) || 'evm';
|
|
77
|
-
const
|
|
78
|
-
const newToWeb3Wallet = walletConnectorOptions.find((wallet) =>
|
|
77
|
+
const walletKey = index.getValueByKey(newToWeb3WalletChainMap === null || newToWeb3WalletChainMap === void 0 ? void 0 : newToWeb3WalletChainMap.wallets, chainName);
|
|
78
|
+
const newToWeb3Wallet = walletConnectorOptions.find((wallet) => wallet.key === walletKey);
|
|
79
79
|
const isCustodialServiceWallet = newToWeb3Wallet === null || newToWeb3Wallet === void 0 ? void 0 : newToWeb3Wallet.walletConnector.canConnectViaCustodialService;
|
|
80
|
-
const links = walletBook.getWalletLinks(walletBook$1,
|
|
80
|
+
const links = walletBook.getWalletLinks(walletBook$1, walletKey);
|
|
81
81
|
const { currentDesktopUrl, canShowAndroidAppButton, canShowIosAppButton } = parseWalletLinks.parseWalletLinks(links);
|
|
82
82
|
const walletLinksElements = [
|
|
83
83
|
{
|
|
@@ -102,7 +102,7 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
|
102
102
|
if (!Object.keys((_b = walletBook$1 === null || walletBook$1 === void 0 ? void 0 : walletBook$1.wallets) !== null && _b !== void 0 ? _b : {}).length) {
|
|
103
103
|
return jsxRuntime.jsx(Skeleton.Skeleton, { className: 'walletlist-footer-content__container' });
|
|
104
104
|
}
|
|
105
|
-
return (jsxRuntime.jsx("div", { className: 'walletlist-help-content__container', children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, { delay: '300ms', children: [jsxRuntime.jsx("div", { className: 'walletlist-help-content__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey:
|
|
105
|
+
return (jsxRuntime.jsx("div", { className: 'walletlist-help-content__container', children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, { delay: '300ms', children: [jsxRuntime.jsx("div", { className: 'walletlist-help-content__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletKey, style: { height: pixelToRem.pixelToRem(56), width: pixelToRem.pixelToRem(56) } }) }), jsxRuntime.jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxRuntime.jsxs(Typography.Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', walletBook.getWalletBookWallet(walletBook$1, walletKey).name] }), jsxRuntime.jsx(Typography.Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsxRuntime.jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsxRuntime.jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsxRuntime.jsx(Item.Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxRuntime.jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsxRuntime.jsx(Typography.Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsxRuntime.jsx(WalletExtensionOrAppContinueButton.WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
exports.WalletListHelpContent = WalletListHelpContent;
|
package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
4
3
|
import { AppleIcon, AndroidIcon } from '@dynamic-labs/iconic';
|
|
5
4
|
import { useWalletBookContext, getWalletLinks, WalletIcon, getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
6
5
|
import { isMobile } from '@dynamic-labs/utils';
|
|
7
6
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
8
7
|
import '@dynamic-labs/sdk-api';
|
|
9
8
|
import '../../../../shared/logger.js';
|
|
9
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
10
10
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
11
11
|
import { ReactComponent as SvgPuzzle } from '../../../../shared/assets/puzzle.js';
|
|
12
12
|
import { getValueByKey } from '../../../../shared/utils/functions/getValueByKey/index.js';
|
|
@@ -47,8 +47,9 @@ import { NewToWeb3WalletItem } from './NewToWeb3WalletItem/NewToWeb3WalletItem.j
|
|
|
47
47
|
import { Item } from './Item/Item.js';
|
|
48
48
|
import { WalletExtensionOrAppContinueButton } from './WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js';
|
|
49
49
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
50
|
-
import '
|
|
50
|
+
import 'react-focus-lock';
|
|
51
51
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import 'qrcode';
|
|
52
53
|
import 'i18next';
|
|
53
54
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
54
55
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -62,7 +63,6 @@ import '../../../../components/InlineWidget/InlineWidget.js';
|
|
|
62
63
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
63
64
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
64
65
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
65
|
-
import 'react-focus-lock';
|
|
66
66
|
|
|
67
67
|
const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
68
68
|
var _a, _b;
|
|
@@ -70,10 +70,10 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
|
70
70
|
const { walletBook } = useWalletBookContext();
|
|
71
71
|
const [selectedUrl, setSelectedUrl] = useState('');
|
|
72
72
|
const chainName = ((_a = chains === null || chains === void 0 ? void 0 : chains.filter((chain) => Boolean(chain.enabled)).find((enabledChain) => enabledChain.name === newToWeb3WalletChainMap.primary_chain)) === null || _a === void 0 ? void 0 : _a.name) || 'evm';
|
|
73
|
-
const
|
|
74
|
-
const newToWeb3Wallet = walletConnectorOptions.find((wallet) =>
|
|
73
|
+
const walletKey = getValueByKey(newToWeb3WalletChainMap === null || newToWeb3WalletChainMap === void 0 ? void 0 : newToWeb3WalletChainMap.wallets, chainName);
|
|
74
|
+
const newToWeb3Wallet = walletConnectorOptions.find((wallet) => wallet.key === walletKey);
|
|
75
75
|
const isCustodialServiceWallet = newToWeb3Wallet === null || newToWeb3Wallet === void 0 ? void 0 : newToWeb3Wallet.walletConnector.canConnectViaCustodialService;
|
|
76
|
-
const links = getWalletLinks(walletBook,
|
|
76
|
+
const links = getWalletLinks(walletBook, walletKey);
|
|
77
77
|
const { currentDesktopUrl, canShowAndroidAppButton, canShowIosAppButton } = parseWalletLinks(links);
|
|
78
78
|
const walletLinksElements = [
|
|
79
79
|
{
|
|
@@ -98,7 +98,7 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
|
98
98
|
if (!Object.keys((_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _b !== void 0 ? _b : {}).length) {
|
|
99
99
|
return jsx(Skeleton, { className: 'walletlist-footer-content__container' });
|
|
100
100
|
}
|
|
101
|
-
return (jsx("div", { className: 'walletlist-help-content__container', children: jsxs(EnterTileAnimation, { delay: '300ms', children: [jsx("div", { className: 'walletlist-help-content__icon', children: jsx(WalletIcon, { walletKey:
|
|
101
|
+
return (jsx("div", { className: 'walletlist-help-content__container', children: jsxs(EnterTileAnimation, { delay: '300ms', children: [jsx("div", { className: 'walletlist-help-content__icon', children: jsx(WalletIcon, { walletKey: walletKey, style: { height: pixelToRem(56), width: pixelToRem(56) } }) }), jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxs(Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', getWalletBookWallet(walletBook, walletKey).name] }), jsx(Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsx(Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsx(Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsx(NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsx(WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export { WalletListHelpContent };
|