@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
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
|
-
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
7
|
var QRCode = require('../../../../views/QrCodeView/QRCode.cjs');
|
|
9
8
|
require('react');
|
|
10
9
|
require('../../../../events/dynamicEvents.cjs');
|
|
11
10
|
require('@dynamic-labs/utils');
|
|
12
11
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
13
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
14
14
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
15
15
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
@@ -49,6 +49,7 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
49
49
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
50
50
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
51
51
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
52
|
+
require('react-focus-lock');
|
|
52
53
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
53
54
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
54
55
|
require('i18next');
|
|
@@ -65,7 +66,6 @@ require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
|
65
66
|
var TextButton = require('../../../../components/TextButton/TextButton.cjs');
|
|
66
67
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
67
68
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
68
|
-
require('react-focus-lock');
|
|
69
69
|
|
|
70
70
|
const QrCodeModalView = ({ walletId }) => {
|
|
71
71
|
var _a, _b;
|
|
@@ -87,7 +87,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
87
87
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
88
88
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
89
89
|
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletKey, style: { height: pixelToRem.pixelToRem(24), width: pixelToRem.pixelToRem(24) } }));
|
|
90
|
-
return (jsxRuntime.jsxs("div", { className: 'qr-code-modal-view', children: [jsxRuntime.jsxs(Typography.Typography, { variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title', children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] }), jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title', children: ["Connect wallet", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) }), ' ', "to switch active account."] }), jsxRuntime.jsx("div", { className: 'qr-code-modal-view__container', children: jsxRuntime.jsx("div", { className: 'qr-code-modal-view__wrapper', children: qrcodeUri ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletKey:
|
|
90
|
+
return (jsxRuntime.jsxs("div", { className: 'qr-code-modal-view', children: [jsxRuntime.jsxs(Typography.Typography, { variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title', children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] }), jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title', children: ["Connect wallet", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) }), ' ', "to switch active account."] }), jsxRuntime.jsx("div", { className: 'qr-code-modal-view__container', children: jsxRuntime.jsx("div", { className: 'qr-code-modal-view__wrapper', children: qrcodeUri ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletKey: walletKey })) : (
|
|
91
91
|
// this div exists to give the parent a child, so that the parent
|
|
92
92
|
// takes on its given width and height. the result is stable
|
|
93
93
|
// rendering of this component, without this there is a brief flash
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useWalletBookContext, getWalletPrimaryColor, WalletIcon } from '@dynamic-labs/wallet-book';
|
|
3
|
-
import { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
4
3
|
import { QRCode } from '../../../../views/QrCodeView/QRCode.js';
|
|
5
4
|
import 'react';
|
|
6
5
|
import '../../../../events/dynamicEvents.js';
|
|
7
6
|
import '@dynamic-labs/utils';
|
|
8
7
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
9
9
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
10
10
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
11
11
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
@@ -45,6 +45,7 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
45
45
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
46
46
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
47
47
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
|
+
import 'react-focus-lock';
|
|
48
49
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
49
50
|
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
50
51
|
import 'i18next';
|
|
@@ -61,7 +62,6 @@ import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
|
61
62
|
import { TextButton } from '../../../../components/TextButton/TextButton.js';
|
|
62
63
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
63
64
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
64
|
-
import 'react-focus-lock';
|
|
65
65
|
|
|
66
66
|
const QrCodeModalView = ({ walletId }) => {
|
|
67
67
|
var _a, _b;
|
|
@@ -83,7 +83,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
83
83
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
84
84
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
85
85
|
const icon = (jsx(WalletIcon, { walletKey: walletKey, style: { height: pixelToRem(24), width: pixelToRem(24) } }));
|
|
86
|
-
return (jsxs("div", { className: 'qr-code-modal-view', children: [jsxs(Typography, { variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title', children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] }), jsxs(Typography, { variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title', children: ["Connect wallet", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) }), ' ', "to switch active account."] }), jsx("div", { className: 'qr-code-modal-view__container', children: jsx("div", { className: 'qr-code-modal-view__wrapper', children: qrcodeUri ? (jsx(QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletKey:
|
|
86
|
+
return (jsxs("div", { className: 'qr-code-modal-view', children: [jsxs(Typography, { variant: 'button_primary', color: 'primary', className: 'qr-code-modal-view__title', children: ["Connect with ", newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.connector.name] }), jsxs(Typography, { variant: 'body_small', color: 'secondary', className: 'qr-code-modal-view__title', children: ["Connect wallet", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress(newPrimaryWallet === null || newPrimaryWallet === void 0 ? void 0 : newPrimaryWallet.address, 4, 4) }), ' ', "to switch active account."] }), jsx("div", { className: 'qr-code-modal-view__container', children: jsx("div", { className: 'qr-code-modal-view__wrapper', children: qrcodeUri ? (jsx(QRCode, { Icon: icon, accentColor: qrCodeColorsByTheme[typedTheme].accentColor, value: qrcodeUri, size: 175, logoSize: 40, walletKey: walletKey })) : (
|
|
87
87
|
// this div exists to give the parent a child, so that the parent
|
|
88
88
|
// takes on its given width and height. the result is stable
|
|
89
89
|
// rendering of this component, without this there is a brief flash
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../../../_virtual/_tslib.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var reactI18next = require('react-i18next');
|
|
7
8
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
8
9
|
var LoadingContext = require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
9
10
|
var WidgetPortal = require('../../components/WidgetPortal/WidgetPortal.cjs');
|
|
@@ -31,7 +32,6 @@ require('react-dom');
|
|
|
31
32
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
32
33
|
require('@dynamic-labs/types');
|
|
33
34
|
require('yup');
|
|
34
|
-
require('react-i18next');
|
|
35
35
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
36
36
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
37
37
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
@@ -47,6 +47,7 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
47
47
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
48
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
49
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
|
+
var PromptModal = require('../../components/PromptModal/PromptModal.cjs');
|
|
50
51
|
require('qrcode');
|
|
51
52
|
require('i18next');
|
|
52
53
|
require('../../context/DynamicWidgetContext.cjs');
|
|
@@ -63,18 +64,24 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
63
64
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
64
65
|
require('react-focus-lock');
|
|
65
66
|
|
|
66
|
-
const
|
|
67
|
-
|
|
67
|
+
const UnlinkWalletPopUpContent = ({ onClickCancel, }) => {
|
|
68
|
+
var _a;
|
|
69
|
+
const { handleUnlinkWallet, eventsCallbacks, setSelectedWalletWithAction, user, authMode, selectedWalletWithAction, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
70
|
+
const { t } = reactI18next.useTranslation();
|
|
68
71
|
const { loading, setLoading } = LoadingContext.useLoadingContext();
|
|
72
|
+
const walletId = (_a = selectedWalletWithAction === null || selectedWalletWithAction === void 0 ? void 0 : selectedWalletWithAction.wallet) === null || _a === void 0 ? void 0 : _a.id;
|
|
73
|
+
if (!walletId) {
|
|
74
|
+
throw new Error('Wallet id is not defined');
|
|
75
|
+
}
|
|
69
76
|
const onConfirmClick = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
-
var
|
|
77
|
+
var _b;
|
|
71
78
|
try {
|
|
72
79
|
setLoading(true);
|
|
73
80
|
yield handleUnlinkWallet(walletId);
|
|
74
81
|
setSelectedWalletWithAction(null);
|
|
75
82
|
const walletFromId = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((wallet) => wallet.id === walletId);
|
|
76
83
|
if (walletFromId) {
|
|
77
|
-
(
|
|
84
|
+
(_b = eventsCallbacks === null || eventsCallbacks === void 0 ? void 0 : eventsCallbacks.onUnlinkSuccess) === null || _b === void 0 ? void 0 : _b.call(eventsCallbacks, walletFromId);
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
catch (error) {
|
|
@@ -84,16 +91,34 @@ const UnlinkWalletPopUp = ({ walletId }) => {
|
|
|
84
91
|
setLoading(false);
|
|
85
92
|
}
|
|
86
93
|
});
|
|
94
|
+
return (jsxRuntime.jsxs("div", { className: 'unlink-wallet-popup__container', children: [jsxRuntime.jsx(Typography.Typography, { color: 'primary', className: 'unlink-wallet-popup__title', variant: 'body_normal', as: 'h6', children: authMode === 'connect-only'
|
|
95
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_title')
|
|
96
|
+
: t('dyn_unlink_wallet_pop_up.unlink_title') }), jsxRuntime.jsx(Typography.Typography, { className: 'unlink-wallet-popup__label', variant: 'body_small', color: 'secondary', children: authMode === 'connect-only'
|
|
97
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_description')
|
|
98
|
+
: t('dyn_unlink_wallet_pop_up.unlink_description') }), jsxRuntime.jsx(Button.Button, { buttonPadding: 'small', onClick: onConfirmClick, disabled: loading, buttonClassName: 'unlink-wallet-popup__button unlink-wallet-popup__button--shadow', color: 'primary', expanded: true, typographyProps: {
|
|
99
|
+
variant: 'button_secondary',
|
|
100
|
+
weight: 'medium',
|
|
101
|
+
}, dataTestId: 'unlink-wallet-popup-yes-button', children: authMode === 'connect-only'
|
|
102
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_button')
|
|
103
|
+
: t('dyn_unlink_wallet_pop_up.unlink_button') }), jsxRuntime.jsx(Button.Button, { expanded: true, buttonPadding: 'small', onClick: onClickCancel, buttonVariant: 'secondary', buttonClassName: 'unlink-wallet-popup__button', typographyProps: {
|
|
104
|
+
variant: 'button_secondary',
|
|
105
|
+
weight: 'medium',
|
|
106
|
+
}, children: t('dyn_unlink_wallet_pop_up.cancel_button') })] }));
|
|
107
|
+
};
|
|
108
|
+
const UnlinkWalletPopUpModal = () => {
|
|
109
|
+
const { setSelectedWalletWithAction } = useInternalDynamicContext.useInternalDynamicContext();
|
|
110
|
+
const onCancelClick = () => {
|
|
111
|
+
setSelectedWalletWithAction(null);
|
|
112
|
+
};
|
|
113
|
+
return (jsxRuntime.jsx(PromptModal.PromptModal, { onClose: onCancelClick, children: jsxRuntime.jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
114
|
+
};
|
|
115
|
+
const UnlinkWalletPopUpWidgetPortal = () => {
|
|
116
|
+
const { setSelectedWalletWithAction } = useInternalDynamicContext.useInternalDynamicContext();
|
|
87
117
|
const onCancelClick = () => {
|
|
88
118
|
setSelectedWalletWithAction(null);
|
|
89
119
|
};
|
|
90
|
-
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { onBackdropClick: onCancelClick, children: jsxRuntime.
|
|
91
|
-
variant: 'button_secondary',
|
|
92
|
-
weight: 'medium',
|
|
93
|
-
}, dataTestId: 'unlink-wallet-popup-yes-button', children: ["Yes, ", authMode === 'connect-only' ? 'disconnect' : 'unlink'] }), jsxRuntime.jsx(Button.Button, { expanded: true, buttonPadding: 'small', onClick: onCancelClick, buttonVariant: 'secondary', buttonClassName: 'unlink-wallet-popup__button', typographyProps: {
|
|
94
|
-
variant: 'button_secondary',
|
|
95
|
-
weight: 'medium',
|
|
96
|
-
}, children: "No" })] }) }));
|
|
120
|
+
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { onBackdropClick: onCancelClick, children: jsxRuntime.jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
97
121
|
};
|
|
98
122
|
|
|
99
|
-
exports.
|
|
123
|
+
exports.UnlinkWalletPopUpModal = UnlinkWalletPopUpModal;
|
|
124
|
+
exports.UnlinkWalletPopUpWidgetPortal = UnlinkWalletPopUpWidgetPortal;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export declare const UnlinkWalletPopUp: ({ walletId }: Props) => JSX.Element;
|
|
6
|
-
export {};
|
|
2
|
+
export declare const UnlinkWalletPopUpModal: () => JSX.Element;
|
|
3
|
+
export declare const UnlinkWalletPopUpWidgetPortal: () => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
3
4
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
4
5
|
import { useLoadingContext } from '../../../../context/LoadingContext/LoadingContext.js';
|
|
5
6
|
import { WidgetPortal } from '../../components/WidgetPortal/WidgetPortal.js';
|
|
@@ -27,7 +28,6 @@ import 'react-dom';
|
|
|
27
28
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
28
29
|
import '@dynamic-labs/types';
|
|
29
30
|
import 'yup';
|
|
30
|
-
import 'react-i18next';
|
|
31
31
|
import '../../../../context/MockContext/MockContext.js';
|
|
32
32
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
33
33
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
@@ -43,6 +43,7 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
43
43
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
44
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
45
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
|
+
import { PromptModal } from '../../components/PromptModal/PromptModal.js';
|
|
46
47
|
import 'qrcode';
|
|
47
48
|
import 'i18next';
|
|
48
49
|
import '../../context/DynamicWidgetContext.js';
|
|
@@ -59,18 +60,24 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
59
60
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
60
61
|
import 'react-focus-lock';
|
|
61
62
|
|
|
62
|
-
const
|
|
63
|
-
|
|
63
|
+
const UnlinkWalletPopUpContent = ({ onClickCancel, }) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const { handleUnlinkWallet, eventsCallbacks, setSelectedWalletWithAction, user, authMode, selectedWalletWithAction, } = useInternalDynamicContext();
|
|
66
|
+
const { t } = useTranslation();
|
|
64
67
|
const { loading, setLoading } = useLoadingContext();
|
|
68
|
+
const walletId = (_a = selectedWalletWithAction === null || selectedWalletWithAction === void 0 ? void 0 : selectedWalletWithAction.wallet) === null || _a === void 0 ? void 0 : _a.id;
|
|
69
|
+
if (!walletId) {
|
|
70
|
+
throw new Error('Wallet id is not defined');
|
|
71
|
+
}
|
|
65
72
|
const onConfirmClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
|
-
var
|
|
73
|
+
var _b;
|
|
67
74
|
try {
|
|
68
75
|
setLoading(true);
|
|
69
76
|
yield handleUnlinkWallet(walletId);
|
|
70
77
|
setSelectedWalletWithAction(null);
|
|
71
78
|
const walletFromId = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((wallet) => wallet.id === walletId);
|
|
72
79
|
if (walletFromId) {
|
|
73
|
-
(
|
|
80
|
+
(_b = eventsCallbacks === null || eventsCallbacks === void 0 ? void 0 : eventsCallbacks.onUnlinkSuccess) === null || _b === void 0 ? void 0 : _b.call(eventsCallbacks, walletFromId);
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
catch (error) {
|
|
@@ -80,16 +87,33 @@ const UnlinkWalletPopUp = ({ walletId }) => {
|
|
|
80
87
|
setLoading(false);
|
|
81
88
|
}
|
|
82
89
|
});
|
|
90
|
+
return (jsxs("div", { className: 'unlink-wallet-popup__container', children: [jsx(Typography, { color: 'primary', className: 'unlink-wallet-popup__title', variant: 'body_normal', as: 'h6', children: authMode === 'connect-only'
|
|
91
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_title')
|
|
92
|
+
: t('dyn_unlink_wallet_pop_up.unlink_title') }), jsx(Typography, { className: 'unlink-wallet-popup__label', variant: 'body_small', color: 'secondary', children: authMode === 'connect-only'
|
|
93
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_description')
|
|
94
|
+
: t('dyn_unlink_wallet_pop_up.unlink_description') }), jsx(Button, { buttonPadding: 'small', onClick: onConfirmClick, disabled: loading, buttonClassName: 'unlink-wallet-popup__button unlink-wallet-popup__button--shadow', color: 'primary', expanded: true, typographyProps: {
|
|
95
|
+
variant: 'button_secondary',
|
|
96
|
+
weight: 'medium',
|
|
97
|
+
}, dataTestId: 'unlink-wallet-popup-yes-button', children: authMode === 'connect-only'
|
|
98
|
+
? t('dyn_unlink_wallet_pop_up.disconnect_button')
|
|
99
|
+
: t('dyn_unlink_wallet_pop_up.unlink_button') }), jsx(Button, { expanded: true, buttonPadding: 'small', onClick: onClickCancel, buttonVariant: 'secondary', buttonClassName: 'unlink-wallet-popup__button', typographyProps: {
|
|
100
|
+
variant: 'button_secondary',
|
|
101
|
+
weight: 'medium',
|
|
102
|
+
}, children: t('dyn_unlink_wallet_pop_up.cancel_button') })] }));
|
|
103
|
+
};
|
|
104
|
+
const UnlinkWalletPopUpModal = () => {
|
|
105
|
+
const { setSelectedWalletWithAction } = useInternalDynamicContext();
|
|
106
|
+
const onCancelClick = () => {
|
|
107
|
+
setSelectedWalletWithAction(null);
|
|
108
|
+
};
|
|
109
|
+
return (jsx(PromptModal, { onClose: onCancelClick, children: jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
110
|
+
};
|
|
111
|
+
const UnlinkWalletPopUpWidgetPortal = () => {
|
|
112
|
+
const { setSelectedWalletWithAction } = useInternalDynamicContext();
|
|
83
113
|
const onCancelClick = () => {
|
|
84
114
|
setSelectedWalletWithAction(null);
|
|
85
115
|
};
|
|
86
|
-
return (jsx(WidgetPortal, { onBackdropClick: onCancelClick, children:
|
|
87
|
-
variant: 'button_secondary',
|
|
88
|
-
weight: 'medium',
|
|
89
|
-
}, dataTestId: 'unlink-wallet-popup-yes-button', children: ["Yes, ", authMode === 'connect-only' ? 'disconnect' : 'unlink'] }), jsx(Button, { expanded: true, buttonPadding: 'small', onClick: onCancelClick, buttonVariant: 'secondary', buttonClassName: 'unlink-wallet-popup__button', typographyProps: {
|
|
90
|
-
variant: 'button_secondary',
|
|
91
|
-
weight: 'medium',
|
|
92
|
-
}, children: "No" })] }) }));
|
|
116
|
+
return (jsx(WidgetPortal, { onBackdropClick: onCancelClick, children: jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
93
117
|
};
|
|
94
118
|
|
|
95
|
-
export {
|
|
119
|
+
export { UnlinkWalletPopUpModal, UnlinkWalletPopUpWidgetPortal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { UnlinkWalletPopUpModal, UnlinkWalletPopUpWidgetPortal, } from './UnlinkWalletPopUp';
|
|
@@ -47,8 +47,9 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
47
47
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
48
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
49
49
|
require('../../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
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
54
55
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -61,12 +62,11 @@ require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
61
62
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
62
63
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
63
64
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
64
|
-
require('react-focus-lock');
|
|
65
65
|
require('formik');
|
|
66
66
|
|
|
67
67
|
const EditProfileView = ({ rootClassName, }) => {
|
|
68
68
|
const { setView } = ViewContext.useViewContext();
|
|
69
|
-
const {
|
|
69
|
+
const { setShowAuthFlow, multiWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
70
70
|
const { goToProfileView } = DynamicWidgetContext.useWidgetContext();
|
|
71
71
|
const { updateUser } = useUserUpdateRequest.useUserUpdateRequestInternal({
|
|
72
72
|
validationSchemaStripUnknown: true,
|
|
@@ -75,10 +75,14 @@ const EditProfileView = ({ rootClassName, }) => {
|
|
|
75
75
|
const { isEmailVerificationRequired } = yield updateUser(formValues);
|
|
76
76
|
goToProfileView();
|
|
77
77
|
if (isEmailVerificationRequired) {
|
|
78
|
-
|
|
78
|
+
setShowAuthFlow(true, {
|
|
79
|
+
ignoreIfIsEmbeddedWidget: false,
|
|
80
|
+
initializeWalletConnect: false,
|
|
81
|
+
performMultiWalletChecks: false,
|
|
82
|
+
});
|
|
79
83
|
setView('verify-email');
|
|
80
84
|
}
|
|
81
|
-
}), [goToProfileView,
|
|
85
|
+
}), [goToProfileView, setShowAuthFlow, setView, updateUser]);
|
|
82
86
|
const isKYCEnabled = useKYCFlag.useKYCFlag();
|
|
83
87
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!multiWallet && isKYCEnabled && (jsxRuntime.jsx(Typography.Typography, { weight: 'regular', color: 'secondary', variant: 'body_normal', className: 'dynamic-widget-edit-profile-view__profile-title', children: "My information" })), jsxRuntime.jsx(UserProfileForm.UserProfileForm, { formClassName: rootClassName, onEditProfileSubmit: onEditProfileFormSubmit, onEditProfileCancel: goToProfileView })] }));
|
|
84
88
|
};
|
|
@@ -43,8 +43,9 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
43
43
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
44
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
45
45
|
import '../../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 { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
50
51
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -57,12 +58,11 @@ import '../../../../components/InlineWidget/InlineWidget.js';
|
|
|
57
58
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
58
59
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
59
60
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
60
|
-
import 'react-focus-lock';
|
|
61
61
|
import 'formik';
|
|
62
62
|
|
|
63
63
|
const EditProfileView = ({ rootClassName, }) => {
|
|
64
64
|
const { setView } = useViewContext();
|
|
65
|
-
const {
|
|
65
|
+
const { setShowAuthFlow, multiWallet } = useInternalDynamicContext();
|
|
66
66
|
const { goToProfileView } = useWidgetContext();
|
|
67
67
|
const { updateUser } = useUserUpdateRequestInternal({
|
|
68
68
|
validationSchemaStripUnknown: true,
|
|
@@ -71,10 +71,14 @@ const EditProfileView = ({ rootClassName, }) => {
|
|
|
71
71
|
const { isEmailVerificationRequired } = yield updateUser(formValues);
|
|
72
72
|
goToProfileView();
|
|
73
73
|
if (isEmailVerificationRequired) {
|
|
74
|
-
|
|
74
|
+
setShowAuthFlow(true, {
|
|
75
|
+
ignoreIfIsEmbeddedWidget: false,
|
|
76
|
+
initializeWalletConnect: false,
|
|
77
|
+
performMultiWalletChecks: false,
|
|
78
|
+
});
|
|
75
79
|
setView('verify-email');
|
|
76
80
|
}
|
|
77
|
-
}), [goToProfileView,
|
|
81
|
+
}), [goToProfileView, setShowAuthFlow, setView, updateUser]);
|
|
78
82
|
const isKYCEnabled = useKYCFlag();
|
|
79
83
|
return (jsxs(Fragment, { children: [!multiWallet && isKYCEnabled && (jsx(Typography, { weight: 'regular', color: 'secondary', variant: 'body_normal', className: 'dynamic-widget-edit-profile-view__profile-title', children: "My information" })), jsx(UserProfileForm, { formClassName: rootClassName, onEditProfileSubmit: onEditProfileFormSubmit, onEditProfileCancel: goToProfileView })] }));
|
|
80
84
|
};
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs
CHANGED
|
@@ -16,6 +16,7 @@ require('../../../../context/ViewContext/ViewContext.cjs');
|
|
|
16
16
|
require('@dynamic-labs/sdk-api');
|
|
17
17
|
require('../../../../shared/logger.cjs');
|
|
18
18
|
require('@dynamic-labs/iconic');
|
|
19
|
+
var add = require('../../../../shared/assets/add.cjs');
|
|
19
20
|
var chevronLeft = require('../../../../shared/assets/chevron-left.cjs');
|
|
20
21
|
require('@dynamic-labs/wallet-book');
|
|
21
22
|
require('../../../../utils/constants/colors.cjs');
|
|
@@ -50,8 +51,9 @@ var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
|
50
51
|
var Skeleton = require('../../../../components/Skeleton/Skeleton.cjs');
|
|
51
52
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
52
53
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
53
|
-
require('
|
|
54
|
+
require('react-focus-lock');
|
|
54
55
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
+
require('qrcode');
|
|
55
57
|
require('i18next');
|
|
56
58
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
57
59
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -65,13 +67,11 @@ require('@dynamic-labs/viem-utils');
|
|
|
65
67
|
var PasskeyCard = require('./PasskeyCard/PasskeyCard.cjs');
|
|
66
68
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
67
69
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
68
|
-
var NeedHelpSection = require('../../../../components/NeedHelpSection/NeedHelpSection.cjs');
|
|
69
70
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
70
71
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
71
|
-
require('react-focus-lock');
|
|
72
72
|
|
|
73
73
|
const ManagePasskeysWidgetView = () => {
|
|
74
|
-
const {
|
|
74
|
+
const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
75
75
|
const { environmentId, projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
76
76
|
const { initPasskeyRecoveryProcess } = usePasskeyRecovery.usePasskeyRecovery();
|
|
77
77
|
const { t } = reactI18next.useTranslation();
|
|
@@ -90,8 +90,8 @@ const ManagePasskeysWidgetView = () => {
|
|
|
90
90
|
enabled: Boolean(environmentId) && Boolean(userJwt),
|
|
91
91
|
});
|
|
92
92
|
const isRecoveryEnabled = Boolean(projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.passkeyEmbeddedWalletRecoveryEnabled);
|
|
93
|
-
const backButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick:
|
|
94
|
-
return (jsxRuntime.jsxs("div", { className: 'manage-passkeys-widget-view', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { leading: backButton, children: jsxRuntime.jsx("div", { className: 'send-balance-page-layout__header-content', children: jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', copykey: 'dyn_manage_passkeys.title', children: t('dyn_manage_passkeys.title') }) }) }), jsxRuntime.jsx(PasskeyCreatedSuccessBanner.PasskeyCreatedSuccessBanner, {}), jsxRuntime.jsxs("div", { className: 'manage-passkeys-widget-view__body', children: [jsxRuntime.jsx("div", { className: 'manage-passkeys-widget-view__body__cards', children: isLoading ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 1, className: 'manage-passkeys-widget-view__body__cards__skeleton' })) : (userPasskeys.map((passkey) => (jsxRuntime.jsx(PasskeyCard.PasskeyCard, { passkey: passkey }, passkey.id)))) }), isRecoveryEnabled && (jsxRuntime.jsx(Button.Button, { buttonPadding: 'large', buttonClassName: 'manage-passkeys-widget-view__body__recovery-button', onClick: initPasskeyRecoveryProcess, showInternalLoading: false, copykey: 'dyn_manage_passkeys.recovery_button', children: t('dyn_manage_passkeys.recovery_button') }))
|
|
93
|
+
const backButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: () => setDynamicWidgetView('wallet-settings'), "data-testid": 'back-button', children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) }));
|
|
94
|
+
return (jsxRuntime.jsxs("div", { className: 'manage-passkeys-widget-view', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { leading: backButton, children: jsxRuntime.jsx("div", { className: 'send-balance-page-layout__header-content', children: jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', copykey: 'dyn_manage_passkeys.title', children: t('dyn_manage_passkeys.title') }) }) }), jsxRuntime.jsx(PasskeyCreatedSuccessBanner.PasskeyCreatedSuccessBanner, {}), jsxRuntime.jsxs("div", { className: 'manage-passkeys-widget-view__body', children: [jsxRuntime.jsx("div", { className: 'manage-passkeys-widget-view__body__cards', children: isLoading ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 1, className: 'manage-passkeys-widget-view__body__cards__skeleton' })) : (userPasskeys.map((passkey) => (jsxRuntime.jsx(PasskeyCard.PasskeyCard, { passkey: passkey }, passkey.id)))) }), isRecoveryEnabled && (jsxRuntime.jsx(Button.Button, { buttonPadding: 'large', buttonClassName: 'manage-passkeys-widget-view__body__recovery-button', onClick: initPasskeyRecoveryProcess, showInternalLoading: false, startSlot: jsxRuntime.jsx(add.ReactComponent, {}), copykey: 'dyn_manage_passkeys.recovery_button', children: t('dyn_manage_passkeys.recovery_button') }))] })] }));
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
exports.ManagePasskeysWidgetView = ManagePasskeysWidgetView;
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js
CHANGED
|
@@ -12,6 +12,7 @@ import '../../../../context/ViewContext/ViewContext.js';
|
|
|
12
12
|
import '@dynamic-labs/sdk-api';
|
|
13
13
|
import '../../../../shared/logger.js';
|
|
14
14
|
import '@dynamic-labs/iconic';
|
|
15
|
+
import { ReactComponent as SvgAdd } from '../../../../shared/assets/add.js';
|
|
15
16
|
import { ReactComponent as SvgChevronLeft } from '../../../../shared/assets/chevron-left.js';
|
|
16
17
|
import '@dynamic-labs/wallet-book';
|
|
17
18
|
import '../../../../utils/constants/colors.js';
|
|
@@ -46,8 +47,9 @@ import { Typography } from '../../../../components/Typography/Typography.js';
|
|
|
46
47
|
import { Skeleton } from '../../../../components/Skeleton/Skeleton.js';
|
|
47
48
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
48
49
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
49
|
-
import '
|
|
50
|
+
import 'react-focus-lock';
|
|
50
51
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import 'qrcode';
|
|
51
53
|
import 'i18next';
|
|
52
54
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
53
55
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -61,13 +63,11 @@ import '@dynamic-labs/viem-utils';
|
|
|
61
63
|
import { PasskeyCard } from './PasskeyCard/PasskeyCard.js';
|
|
62
64
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
63
65
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
64
|
-
import { NeedHelpSection } from '../../../../components/NeedHelpSection/NeedHelpSection.js';
|
|
65
66
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
66
67
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
67
|
-
import 'react-focus-lock';
|
|
68
68
|
|
|
69
69
|
const ManagePasskeysWidgetView = () => {
|
|
70
|
-
const {
|
|
70
|
+
const { setDynamicWidgetView } = useWidgetContext();
|
|
71
71
|
const { environmentId, projectSettings } = useInternalDynamicContext();
|
|
72
72
|
const { initPasskeyRecoveryProcess } = usePasskeyRecovery();
|
|
73
73
|
const { t } = useTranslation();
|
|
@@ -86,8 +86,8 @@ const ManagePasskeysWidgetView = () => {
|
|
|
86
86
|
enabled: Boolean(environmentId) && Boolean(userJwt),
|
|
87
87
|
});
|
|
88
88
|
const isRecoveryEnabled = Boolean(projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.passkeyEmbeddedWalletRecoveryEnabled);
|
|
89
|
-
const backButton = (jsx(IconButton, { type: 'button', onClick:
|
|
90
|
-
return (jsxs("div", { className: 'manage-passkeys-widget-view', children: [jsx(ModalHeader, { leading: backButton, children: jsx("div", { className: 'send-balance-page-layout__header-content', children: jsx(Typography, { variant: 'title', color: 'primary', copykey: 'dyn_manage_passkeys.title', children: t('dyn_manage_passkeys.title') }) }) }), jsx(PasskeyCreatedSuccessBanner, {}), jsxs("div", { className: 'manage-passkeys-widget-view__body', children: [jsx("div", { className: 'manage-passkeys-widget-view__body__cards', children: isLoading ? (jsx(Skeleton, { count: 1, className: 'manage-passkeys-widget-view__body__cards__skeleton' })) : (userPasskeys.map((passkey) => (jsx(PasskeyCard, { passkey: passkey }, passkey.id)))) }), isRecoveryEnabled && (jsx(Button, { buttonPadding: 'large', buttonClassName: 'manage-passkeys-widget-view__body__recovery-button', onClick: initPasskeyRecoveryProcess, showInternalLoading: false, copykey: 'dyn_manage_passkeys.recovery_button', children: t('dyn_manage_passkeys.recovery_button') }))
|
|
89
|
+
const backButton = (jsx(IconButton, { type: 'button', onClick: () => setDynamicWidgetView('wallet-settings'), "data-testid": 'back-button', children: jsx(SvgChevronLeft, {}) }));
|
|
90
|
+
return (jsxs("div", { className: 'manage-passkeys-widget-view', children: [jsx(ModalHeader, { leading: backButton, children: jsx("div", { className: 'send-balance-page-layout__header-content', children: jsx(Typography, { variant: 'title', color: 'primary', copykey: 'dyn_manage_passkeys.title', children: t('dyn_manage_passkeys.title') }) }) }), jsx(PasskeyCreatedSuccessBanner, {}), jsxs("div", { className: 'manage-passkeys-widget-view__body', children: [jsx("div", { className: 'manage-passkeys-widget-view__body__cards', children: isLoading ? (jsx(Skeleton, { count: 1, className: 'manage-passkeys-widget-view__body__cards__skeleton' })) : (userPasskeys.map((passkey) => (jsx(PasskeyCard, { passkey: passkey }, passkey.id)))) }), isRecoveryEnabled && (jsx(Button, { buttonPadding: 'large', buttonClassName: 'manage-passkeys-widget-view__body__recovery-button', onClick: initPasskeyRecoveryProcess, showInternalLoading: false, startSlot: jsx(SvgAdd, {}), copykey: 'dyn_manage_passkeys.recovery_button', children: t('dyn_manage_passkeys.recovery_button') }))] })] }));
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export { ManagePasskeysWidgetView };
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs
CHANGED
|
@@ -45,8 +45,9 @@ require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
45
45
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
46
46
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
47
47
|
require('../../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
|
-
require('
|
|
48
|
+
require('react-focus-lock');
|
|
49
49
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
50
|
+
require('qrcode');
|
|
50
51
|
var getPasskeyProviderFromUserAgent = require('../../../helpers/getPasskeyProviderFromUserAgent.cjs');
|
|
51
52
|
var getTimeSince = require('../../../helpers/getTimeSince.cjs');
|
|
52
53
|
require('../../../context/DynamicWidgetContext.cjs');
|
|
@@ -60,7 +61,6 @@ require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
|
60
61
|
var shortenEmail = require('../../../../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
61
62
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
62
63
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
63
|
-
require('react-focus-lock');
|
|
64
64
|
|
|
65
65
|
const mapPasskeyProviderToIcon = {
|
|
66
66
|
android: jsxRuntime.jsx(iconic.AndroidIcon, {}),
|
package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js
CHANGED
|
@@ -41,8 +41,9 @@ import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
41
41
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
42
42
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
43
43
|
import '../../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
44
|
-
import '
|
|
44
|
+
import 'react-focus-lock';
|
|
45
45
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
46
|
+
import 'qrcode';
|
|
46
47
|
import { getPasskeyProviderFromUserAgent } from '../../../helpers/getPasskeyProviderFromUserAgent.js';
|
|
47
48
|
import { getTimeSince } from '../../../helpers/getTimeSince.js';
|
|
48
49
|
import '../../../context/DynamicWidgetContext.js';
|
|
@@ -56,7 +57,6 @@ import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
|
56
57
|
import { shortenEmail } from '../../../../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
57
58
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
58
59
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
59
|
-
import 'react-focus-lock';
|
|
60
60
|
|
|
61
61
|
const mapPasskeyProviderToIcon = {
|
|
62
62
|
android: jsx(AndroidIcon, {}),
|
|
@@ -48,8 +48,9 @@ require('../../../../context/FooterAnimationContext/index.cjs');
|
|
|
48
48
|
require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
49
49
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
50
50
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
51
|
-
require('
|
|
51
|
+
require('react-focus-lock');
|
|
52
52
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
53
|
+
require('qrcode');
|
|
53
54
|
require('i18next');
|
|
54
55
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
55
56
|
require('formik');
|
|
@@ -63,7 +64,6 @@ var LogoutButton = require('../../../../components/LogoutButton/LogoutButton.cjs
|
|
|
63
64
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
64
65
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
65
66
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
66
|
-
require('react-focus-lock');
|
|
67
67
|
|
|
68
68
|
const ProfileView = () => {
|
|
69
69
|
const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
@@ -44,8 +44,9 @@ import '../../../../context/FooterAnimationContext/index.js';
|
|
|
44
44
|
import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
45
45
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
46
46
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
47
|
-
import '
|
|
47
|
+
import 'react-focus-lock';
|
|
48
48
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
49
|
+
import 'qrcode';
|
|
49
50
|
import 'i18next';
|
|
50
51
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
51
52
|
import 'formik';
|
|
@@ -59,7 +60,6 @@ import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.j
|
|
|
59
60
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
60
61
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
61
62
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
62
|
-
import 'react-focus-lock';
|
|
63
63
|
|
|
64
64
|
const ProfileView = () => {
|
|
65
65
|
const { setDynamicWidgetView } = useWidgetContext();
|