@dynamic-labs/sdk-react-core 1.1.0-alpha.0 → 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 +106 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +14 -13
- package/src/index.cjs +30 -7
- package/src/index.d.ts +2 -1
- package/src/index.js +18 -5
- package/src/lib/Main.cjs +5 -5
- package/src/lib/Main.js +5 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -1
- package/src/lib/components/Alert/Alert.types.d.ts +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +2 -1
- package/src/lib/components/Button/Button.cjs +2 -2
- package/src/lib/components/Button/Button.d.ts +2 -1
- package/src/lib/components/Button/Button.js +2 -2
- 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 +3 -2
- package/src/lib/components/Divider/Divider.js +3 -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/DynamicConnectButton/DynamicConnectButton.cjs +2 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +3 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -2
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +2 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +2 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -2
- package/src/lib/components/Input/Input.types.d.ts +2 -1
- package/src/lib/components/ListTile/ListTile.cjs +1 -1
- package/src/lib/components/ListTile/ListTile.js +1 -1
- package/src/lib/components/ListTile/ListTile.types.d.ts +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +2 -1
- package/src/lib/components/Modal/Modal.cjs +2 -1
- package/src/lib/components/Modal/Modal.d.ts +1 -2
- package/src/lib/components/Modal/Modal.js +2 -1
- package/src/lib/components/Modal/index.d.ts +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +9 -5
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +9 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -4
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +5 -4
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +3 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.js +3 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -2
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +10 -8
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +10 -8
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +3 -2
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +3 -2
- package/src/lib/components/Portal/Portal.cjs +2 -1
- package/src/lib/components/Portal/Portal.js +2 -1
- package/src/lib/components/Search/Search.cjs +1 -1
- package/src/lib/components/Search/Search.d.ts +2 -1
- package/src/lib/components/Search/Search.js +1 -1
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +2 -2
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +2 -2
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +5 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +5 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -3
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -3
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
- package/src/lib/components/ShadowDOM/index.d.ts +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +2 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +2 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +2 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +2 -1
- package/src/lib/components/TextButton/TextButton.d.ts +2 -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 +4 -3
- package/src/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/src/lib/components/Tooltip/Tooltip.js +4 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +3 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +2 -1
- package/src/lib/components/UserAddress/UserAddress.js +2 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -2
- package/src/lib/components/UserProfile/UserProfile.d.ts +1 -0
- package/src/lib/components/UserProfile/UserProfile.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +5 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +5 -4
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +3 -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 +55 -55
- package/src/lib/context/DynamicContext/DynamicContext.js +56 -56
- package/src/lib/context/DynamicContext/hooks/index.d.ts +3 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +16 -16
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +17 -17
- package/src/lib/context/DynamicContext/hooks/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/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +76 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.d.ts +3 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +72 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +11 -10
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +3 -5
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +4 -24
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +4 -24
- 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/LoadingContext/LoadingContext.cjs +55 -15
- package/src/lib/context/LoadingContext/LoadingContext.d.ts +1 -1
- package/src/lib/context/LoadingContext/LoadingContext.js +56 -16
- package/src/lib/context/MockContext/MockContext.cjs +1 -0
- package/src/lib/context/MockContext/MockContext.js +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +2 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +6 -16
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +7 -17
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +2 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +2 -1
- package/src/lib/context/ViewContext/ViewContext.cjs +4 -15
- package/src/lib/context/ViewContext/ViewContext.d.ts +2 -4
- package/src/lib/context/ViewContext/ViewContext.js +5 -16
- package/src/lib/data/api.cjs +15 -13
- package/src/lib/data/api.d.ts +7 -2
- package/src/lib/data/api.js +16 -14
- package/src/lib/{context/DynamicContext/internalEvents/internalEvents.cjs → events/dynamicEvents.cjs} +2 -3
- package/src/lib/events/dynamicEvents.d.ts +18 -0
- package/src/lib/events/dynamicEvents.js +5 -0
- package/src/lib/events/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +4 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +4 -3
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +5 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +5 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +5 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +5 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +8 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +8 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +3 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +3 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +3 -2
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +3 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +3 -2
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +3 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +5 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +5 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +5 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +2 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +5 -4
- package/src/lib/locale/en/translation.cjs +248 -3
- package/src/lib/locale/en/translation.d.ts +247 -2
- package/src/lib/locale/en/translation.js +248 -3
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +5 -4
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +5 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +5 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +5 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +7 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +7 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +7 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +7 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +5 -4
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +5 -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 +8 -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/utils/groupWalletOptions/groupWalletOptions.cjs +5 -3
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +5 -3
- 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/events/index.d.ts +3 -0
- package/src/lib/utils/hooks/events/types.d.ts +14 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/index.d.ts +1 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.cjs +21 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +8 -0
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.js +17 -0
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.cjs +1 -0
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.d.ts +2 -11
- package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/useWalletConnectorEvent.js +1 -0
- package/src/lib/utils/hooks/index.d.ts +3 -2
- 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 +57 -48
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +57 -48
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +51 -7
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +51 -7
- 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 +18 -12
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +18 -12
- 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/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +1 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +9 -13
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +9 -13
- 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 +10 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +10 -7
- 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/useWalletEventListeners/useWalletEventListeners.cjs +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +3 -2
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -2
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +3 -2
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +3 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -4
- package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -4
- 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 +2 -2
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +2 -2
- 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 +6 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +6 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +7 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +7 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +3 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +3 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +12 -10
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +12 -10
- package/src/lib/views/CollectUserDataView/useFields.cjs +11 -0
- package/src/lib/views/CollectUserDataView/useFields.d.ts +11 -0
- package/src/lib/views/CollectUserDataView/useFields.js +11 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +6 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +6 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +5 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.js +5 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +39 -30
- package/src/lib/views/EmailVerification/EmailVerification.js +39 -30
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +12 -6
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +12 -6
- 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 +8 -9
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.d.ts +0 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +9 -9
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +3 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +3 -2
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +4 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +4 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +5 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.d.ts +3 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +5 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +4 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +4 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +7 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +7 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +8 -8
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +8 -8
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +9 -9
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +9 -9
- package/src/lib/views/NoAccess/NoAccess.cjs +4 -3
- package/src/lib/views/NoAccess/NoAccess.js +4 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +9 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +9 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +13 -7
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +13 -7
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +3 -2
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +3 -2
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +6 -5
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +6 -5
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +4 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +8 -7
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +8 -7
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +9 -8
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +9 -8
- 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 +10 -6
- package/src/lib/views/PendingConnectView/PendingConnectView.js +10 -6
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +11 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +11 -7
- package/src/lib/views/QrCodeView/QRCode.cjs +3 -3
- package/src/lib/views/QrCodeView/QRCode.js +3 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +13 -9
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +13 -9
- package/src/lib/views/QrCodeView/QrCodeView.cjs +2 -1
- package/src/lib/views/QrCodeView/QrCodeView.js +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -2
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +4 -3
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +4 -3
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +7 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +7 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +11 -8
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +11 -8
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +2 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +3 -2
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +3 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +4 -3
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +4 -3
- 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 +4 -3
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +4 -3
- package/src/lib/views/WalletList/WalletList.cjs +6 -9
- package/src/lib/views/WalletList/WalletList.js +6 -9
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +3 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +3 -2
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +6 -4
- package/src/lib/views/WalletLockedView/WalletLockedView.js +6 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +7 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +7 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +9 -8
- package/src/lib/views/WalletUsedView/WalletUsedView.js +9 -8
- package/src/lib/views/viewToComponentMap.cjs +3 -0
- package/src/lib/views/viewToComponentMap.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +3 -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 +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +3 -2
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +8 -8
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +8 -8
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -0
- 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 +4 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +4 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -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 +14 -12
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +14 -12
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +7 -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 +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -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 +8 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +8 -5
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +9 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +9 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +5 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +5 -4
- 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 +3 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -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 +7 -4
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +8 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +14 -7
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -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 +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +10 -5
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +10 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +12 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -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 +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +11 -6
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +4 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +39 -13
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.d.ts +2 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +38 -13
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +10 -5
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +10 -5
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +7 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +7 -6
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +4 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -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 +5 -4
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +5 -4
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -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/context/DynamicContext/internalEvents/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.d.ts +0 -13
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.js +0 -6
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/index.d.ts +0 -1
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.cjs +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.d.ts +0 -0
- /package/src/lib/utils/hooks/{useEventListener → events/useEventListener}/useEventListener.js +0 -0
- /package/src/lib/utils/hooks/{useWalletConnectorEvent → events/useWalletConnectorEvent}/index.d.ts +0 -0
- /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
|
@@ -8,6 +8,7 @@ var utils = require('@dynamic-labs/utils');
|
|
|
8
8
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
9
9
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
10
|
require('react');
|
|
11
|
+
require('../../../../../events/dynamicEvents.cjs');
|
|
11
12
|
var useInternalDynamicContext = require('../../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
12
13
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
13
14
|
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -45,9 +46,10 @@ require('../../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
45
46
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
46
47
|
require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
47
48
|
require('../../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
49
|
+
require('react-focus-lock');
|
|
48
50
|
var DefaultPromptModal = require('../../DefaultPromptModal/DefaultPromptModal.cjs');
|
|
49
|
-
require('qrcode');
|
|
50
51
|
require('../../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
+
require('qrcode');
|
|
51
53
|
require('i18next');
|
|
52
54
|
require('../../../context/DynamicWidgetContext.cjs');
|
|
53
55
|
require('../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -61,7 +63,6 @@ require('../../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
61
63
|
require('../../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
62
64
|
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
63
65
|
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
64
|
-
require('react-focus-lock');
|
|
65
66
|
|
|
66
67
|
const DefaultPendingSignModalContent = () => {
|
|
67
68
|
const { selectedWalletConnector, setMultiWalletWidgetState } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -4,6 +4,7 @@ import { isMobile } from '@dynamic-labs/utils';
|
|
|
4
4
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
5
5
|
import { logger } from '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../../../../../events/dynamicEvents.js';
|
|
7
8
|
import { useInternalDynamicContext } from '../../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
8
9
|
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
9
10
|
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
@@ -41,9 +42,10 @@ import '../../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
41
42
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
42
43
|
import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
43
44
|
import '../../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
45
|
+
import 'react-focus-lock';
|
|
44
46
|
import { DefaultPromptModal } from '../../DefaultPromptModal/DefaultPromptModal.js';
|
|
45
|
-
import 'qrcode';
|
|
46
47
|
import '../../../../../context/LoadingContext/LoadingContext.js';
|
|
48
|
+
import 'qrcode';
|
|
47
49
|
import 'i18next';
|
|
48
50
|
import '../../../context/DynamicWidgetContext.js';
|
|
49
51
|
import '../../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -57,7 +59,6 @@ import '../../../../../components/InlineWidget/InlineWidget.js';
|
|
|
57
59
|
import '../../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
58
60
|
import '../../../../../components/Popper/Popper/Popper.js';
|
|
59
61
|
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
60
|
-
import 'react-focus-lock';
|
|
61
62
|
|
|
62
63
|
const DefaultPendingSignModalContent = () => {
|
|
63
64
|
const { selectedWalletConnector, setMultiWalletWidgetState } = useInternalDynamicContext();
|
|
@@ -8,23 +8,37 @@ var useInternalDynamicContext = require('../../../../context/DynamicContext/useI
|
|
|
8
8
|
var WidgetPortal = require('../../components/WidgetPortal/WidgetPortal.cjs');
|
|
9
9
|
var EmailConnectorPendingSignModalContent = require('../../components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs');
|
|
10
10
|
var EmailOTPConnectorPendingSignModalContent = require('../../components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs');
|
|
11
|
+
var PromptModal = require('../../components/PromptModal/PromptModal.cjs');
|
|
11
12
|
var DefaultPendingSignModalContent = require('./DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs');
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
const { selectedWalletConnector
|
|
15
|
-
const handleOnClickBackdrop = () => {
|
|
16
|
-
setMultiWalletWidgetState('idle');
|
|
17
|
-
setSelectedWalletConnectorKey(null);
|
|
18
|
-
};
|
|
14
|
+
const PendingSignContent = () => {
|
|
15
|
+
const { selectedWalletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
19
16
|
if (selectedWalletConnector !== null) {
|
|
20
17
|
if (walletConnectorCore.isEmailOTPWalletConnector(selectedWalletConnector)) {
|
|
21
|
-
return (jsxRuntime.jsx(
|
|
18
|
+
return (jsxRuntime.jsx(EmailOTPConnectorPendingSignModalContent.EmailOTPConnectorPendingSignModalContent, { walletConnector: selectedWalletConnector }));
|
|
22
19
|
}
|
|
23
20
|
if (walletConnectorCore.isEmailWalletConnector(selectedWalletConnector)) {
|
|
24
|
-
return (jsxRuntime.jsx(
|
|
21
|
+
return (jsxRuntime.jsx(EmailConnectorPendingSignModalContent.EmailConnectorPendingSignModalContent, { emailWalletConnector: selectedWalletConnector }));
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
24
|
return jsxRuntime.jsx(DefaultPendingSignModalContent.DefaultPendingSignModalContent, {});
|
|
28
25
|
};
|
|
26
|
+
const PendingSignWidgetPortal = () => {
|
|
27
|
+
const { setSelectedWalletConnectorKey, setMultiWalletWidgetState } = useInternalDynamicContext.useInternalDynamicContext();
|
|
28
|
+
const handleOnClickBackdrop = () => {
|
|
29
|
+
setMultiWalletWidgetState('idle');
|
|
30
|
+
setSelectedWalletConnectorKey(null);
|
|
31
|
+
};
|
|
32
|
+
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { onBackdropClick: handleOnClickBackdrop, children: jsxRuntime.jsx(PendingSignContent, {}) }));
|
|
33
|
+
};
|
|
34
|
+
const PendingSignModal = () => {
|
|
35
|
+
const { setSelectedWalletConnectorKey, setMultiWalletWidgetState } = useInternalDynamicContext.useInternalDynamicContext();
|
|
36
|
+
const handleOnClickBackdrop = () => {
|
|
37
|
+
setMultiWalletWidgetState('idle');
|
|
38
|
+
setSelectedWalletConnectorKey(null);
|
|
39
|
+
};
|
|
40
|
+
return (jsxRuntime.jsx(PromptModal.PromptModal, { onClose: handleOnClickBackdrop, children: jsxRuntime.jsx(PendingSignContent, {}) }));
|
|
41
|
+
};
|
|
29
42
|
|
|
30
43
|
exports.PendingSignModal = PendingSignModal;
|
|
44
|
+
exports.PendingSignWidgetPortal = PendingSignWidgetPortal;
|
|
@@ -4,23 +4,36 @@ import { useInternalDynamicContext } from '../../../../context/DynamicContext/us
|
|
|
4
4
|
import { WidgetPortal } from '../../components/WidgetPortal/WidgetPortal.js';
|
|
5
5
|
import { EmailConnectorPendingSignModalContent } from '../../components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js';
|
|
6
6
|
import { EmailOTPConnectorPendingSignModalContent } from '../../components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js';
|
|
7
|
+
import { PromptModal } from '../../components/PromptModal/PromptModal.js';
|
|
7
8
|
import { DefaultPendingSignModalContent } from './DefaultPendingSignModalContent/DefaultPendingSignModalContent.js';
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
-
const { selectedWalletConnector
|
|
11
|
-
const handleOnClickBackdrop = () => {
|
|
12
|
-
setMultiWalletWidgetState('idle');
|
|
13
|
-
setSelectedWalletConnectorKey(null);
|
|
14
|
-
};
|
|
10
|
+
const PendingSignContent = () => {
|
|
11
|
+
const { selectedWalletConnector } = useInternalDynamicContext();
|
|
15
12
|
if (selectedWalletConnector !== null) {
|
|
16
13
|
if (isEmailOTPWalletConnector(selectedWalletConnector)) {
|
|
17
|
-
return (jsx(
|
|
14
|
+
return (jsx(EmailOTPConnectorPendingSignModalContent, { walletConnector: selectedWalletConnector }));
|
|
18
15
|
}
|
|
19
16
|
if (isEmailWalletConnector(selectedWalletConnector)) {
|
|
20
|
-
return (jsx(
|
|
17
|
+
return (jsx(EmailConnectorPendingSignModalContent, { emailWalletConnector: selectedWalletConnector }));
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
return jsx(DefaultPendingSignModalContent, {});
|
|
24
21
|
};
|
|
22
|
+
const PendingSignWidgetPortal = () => {
|
|
23
|
+
const { setSelectedWalletConnectorKey, setMultiWalletWidgetState } = useInternalDynamicContext();
|
|
24
|
+
const handleOnClickBackdrop = () => {
|
|
25
|
+
setMultiWalletWidgetState('idle');
|
|
26
|
+
setSelectedWalletConnectorKey(null);
|
|
27
|
+
};
|
|
28
|
+
return (jsx(WidgetPortal, { onBackdropClick: handleOnClickBackdrop, children: jsx(PendingSignContent, {}) }));
|
|
29
|
+
};
|
|
30
|
+
const PendingSignModal = () => {
|
|
31
|
+
const { setSelectedWalletConnectorKey, setMultiWalletWidgetState } = useInternalDynamicContext();
|
|
32
|
+
const handleOnClickBackdrop = () => {
|
|
33
|
+
setMultiWalletWidgetState('idle');
|
|
34
|
+
setSelectedWalletConnectorKey(null);
|
|
35
|
+
};
|
|
36
|
+
return (jsx(PromptModal, { onClose: handleOnClickBackdrop, children: jsx(PendingSignContent, {}) }));
|
|
37
|
+
};
|
|
25
38
|
|
|
26
|
-
export { PendingSignModal };
|
|
39
|
+
export { PendingSignModal, PendingSignWidgetPortal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PendingSignModal } from './PendingSignModal';
|
|
1
|
+
export { PendingSignModal, PendingSignWidgetPortal } from './PendingSignModal';
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
7
|
require('react');
|
|
8
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
8
9
|
require('@dynamic-labs/utils');
|
|
9
10
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -44,10 +45,12 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
44
45
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
45
46
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
46
47
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
48
|
+
var WidgetPortal = require('../../components/WidgetPortal/WidgetPortal.cjs');
|
|
49
|
+
var PromptModal = require('../../components/PromptModal/PromptModal.cjs');
|
|
47
50
|
var DefaultPromptModal = require('../DefaultPromptModal/DefaultPromptModal.cjs');
|
|
48
51
|
var Divider = require('../../../../components/Divider/Divider.cjs');
|
|
49
|
-
require('qrcode');
|
|
50
52
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
53
|
+
require('qrcode');
|
|
51
54
|
require('i18next');
|
|
52
55
|
require('../../context/DynamicWidgetContext.cjs');
|
|
53
56
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -63,10 +66,13 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
63
66
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
64
67
|
require('react-focus-lock');
|
|
65
68
|
|
|
66
|
-
const
|
|
69
|
+
const PrimaryNotConnectedContent = () => {
|
|
67
70
|
var _a;
|
|
68
71
|
const { primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
69
|
-
return (jsxRuntime.jsxs(DefaultPromptModal.
|
|
72
|
+
return (jsxRuntime.jsxs(DefaultPromptModal.DefaultPromptLayout, { dataTestId: 'wallet-not-connected', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: (_a = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) === null || _a === void 0 ? void 0 : _a.key }), title: `Switch wallet in ${primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name}`, children: [jsxRuntime.jsxs(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Your active wallet in", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name }), ' ', "is not linked. Please switch to wallet", ' ', jsxRuntime.jsx(Typography.Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }), ' ', "to log in."] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: "You can link this wallet to this account after you log in." }), jsxRuntime.jsx(Divider.Divider, { fullWidth: true, text: 'Or' }), jsxRuntime.jsx(LogoutButton.LogoutButton, { isTextButton: false, buttonClassName: 'primary-not-connected__log-out-button' })] }));
|
|
70
73
|
};
|
|
74
|
+
const PrimaryNotConnectedWidgetPortal = () => (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { children: jsxRuntime.jsx(PrimaryNotConnectedContent, {}) }));
|
|
75
|
+
const PrimaryNotConnectedModal = () => (jsxRuntime.jsx(PromptModal.PromptModal, { children: jsxRuntime.jsx(PrimaryNotConnectedContent, {}) }));
|
|
71
76
|
|
|
72
77
|
exports.PrimaryNotConnectedModal = PrimaryNotConnectedModal;
|
|
78
|
+
exports.PrimaryNotConnectedWidgetPortal = PrimaryNotConnectedWidgetPortal;
|
package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '../../../../events/dynamicEvents.js';
|
|
4
5
|
import '@dynamic-labs/utils';
|
|
5
6
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
6
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -40,10 +41,12 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
40
41
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
41
42
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
42
43
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
43
|
-
import {
|
|
44
|
+
import { WidgetPortal } from '../../components/WidgetPortal/WidgetPortal.js';
|
|
45
|
+
import { PromptModal } from '../../components/PromptModal/PromptModal.js';
|
|
46
|
+
import { DefaultPromptLayout } from '../DefaultPromptModal/DefaultPromptModal.js';
|
|
44
47
|
import { Divider } from '../../../../components/Divider/Divider.js';
|
|
45
|
-
import 'qrcode';
|
|
46
48
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
49
|
+
import 'qrcode';
|
|
47
50
|
import 'i18next';
|
|
48
51
|
import '../../context/DynamicWidgetContext.js';
|
|
49
52
|
import '../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js';
|
|
@@ -59,10 +62,12 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
59
62
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
60
63
|
import 'react-focus-lock';
|
|
61
64
|
|
|
62
|
-
const
|
|
65
|
+
const PrimaryNotConnectedContent = () => {
|
|
63
66
|
var _a;
|
|
64
67
|
const { primaryWallet } = useInternalDynamicContext();
|
|
65
|
-
return (jsxs(
|
|
68
|
+
return (jsxs(DefaultPromptLayout, { dataTestId: 'wallet-not-connected', icon: jsx(WalletIcon, { walletKey: (_a = primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector) === null || _a === void 0 ? void 0 : _a.key }), title: `Switch wallet in ${primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name}`, children: [jsxs(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: ["Your active wallet in", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.name }), ' ', "is not linked. Please switch to wallet", ' ', jsx(Typography, { as: 'span', weight: 'medium', color: 'primary', children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) }), ' ', "to log in."] }), jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', "data-testid": 'content', children: "You can link this wallet to this account after you log in." }), jsx(Divider, { fullWidth: true, text: 'Or' }), jsx(LogoutButton, { isTextButton: false, buttonClassName: 'primary-not-connected__log-out-button' })] }));
|
|
66
69
|
};
|
|
70
|
+
const PrimaryNotConnectedWidgetPortal = () => (jsx(WidgetPortal, { children: jsx(PrimaryNotConnectedContent, {}) }));
|
|
71
|
+
const PrimaryNotConnectedModal = () => (jsx(PromptModal, { children: jsx(PrimaryNotConnectedContent, {}) }));
|
|
67
72
|
|
|
68
|
-
export { PrimaryNotConnectedModal };
|
|
73
|
+
export { PrimaryNotConnectedModal, PrimaryNotConnectedWidgetPortal };
|
|
@@ -4,11 +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');
|
|
9
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
10
10
|
require('@dynamic-labs/utils');
|
|
11
11
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
13
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
13
14
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
14
15
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
@@ -48,6 +49,7 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
48
49
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
49
50
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
50
51
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
52
|
+
require('react-focus-lock');
|
|
51
53
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
54
|
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
53
55
|
require('i18next');
|
|
@@ -64,7 +66,6 @@ require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
|
64
66
|
var TextButton = require('../../../../components/TextButton/TextButton.cjs');
|
|
65
67
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
66
68
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
67
|
-
require('react-focus-lock');
|
|
68
69
|
|
|
69
70
|
const QrCodeModalView = ({ walletId }) => {
|
|
70
71
|
var _a, _b;
|
|
@@ -86,7 +87,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
86
87
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
87
88
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
88
89
|
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletKey, style: { height: pixelToRem.pixelToRem(24), width: pixelToRem.pixelToRem(24) } }));
|
|
89
|
-
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 })) : (
|
|
90
91
|
// this div exists to give the parent a child, so that the parent
|
|
91
92
|
// takes on its given width and height. the result is stable
|
|
92
93
|
// rendering of this component, without this there is a brief flash
|
|
@@ -1,10 +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';
|
|
5
|
+
import '../../../../events/dynamicEvents.js';
|
|
6
6
|
import '@dynamic-labs/utils';
|
|
7
7
|
import { useInternalDynamicContext } from '../../../../context/DynamicContext/useInternalDynamicContext.js';
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
9
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
9
10
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
10
11
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
@@ -44,6 +45,7 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
44
45
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
45
46
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
46
47
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
48
|
+
import 'react-focus-lock';
|
|
47
49
|
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
48
50
|
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
49
51
|
import 'i18next';
|
|
@@ -60,7 +62,6 @@ import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
|
60
62
|
import { TextButton } from '../../../../components/TextButton/TextButton.js';
|
|
61
63
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
62
64
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
63
|
-
import 'react-focus-lock';
|
|
64
65
|
|
|
65
66
|
const QrCodeModalView = ({ walletId }) => {
|
|
66
67
|
var _a, _b;
|
|
@@ -82,7 +83,7 @@ const QrCodeModalView = ({ walletId }) => {
|
|
|
82
83
|
// can't use theme because it's string instead of 'light' | 'dark'
|
|
83
84
|
const typedTheme = theme.theme.name === 'light' ? 'light' : 'dark';
|
|
84
85
|
const icon = (jsx(WalletIcon, { walletKey: walletKey, style: { height: pixelToRem(24), width: pixelToRem(24) } }));
|
|
85
|
-
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 })) : (
|
|
86
87
|
// this div exists to give the parent a child, so that the parent
|
|
87
88
|
// takes on its given width and height. the result is stable
|
|
88
89
|
// rendering of this component, without this there is a brief flash
|
|
@@ -4,10 +4,12 @@ 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');
|
|
10
11
|
require('react');
|
|
12
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
11
13
|
require('@dynamic-labs/utils');
|
|
12
14
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
15
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -30,7 +32,6 @@ require('react-dom');
|
|
|
30
32
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
31
33
|
require('@dynamic-labs/types');
|
|
32
34
|
require('yup');
|
|
33
|
-
require('react-i18next');
|
|
34
35
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
35
36
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
36
37
|
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
@@ -46,6 +47,7 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
46
47
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
47
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
48
49
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
50
|
+
var PromptModal = require('../../components/PromptModal/PromptModal.cjs');
|
|
49
51
|
require('qrcode');
|
|
50
52
|
require('i18next');
|
|
51
53
|
require('../../context/DynamicWidgetContext.cjs');
|
|
@@ -62,18 +64,24 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
62
64
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
63
65
|
require('react-focus-lock');
|
|
64
66
|
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
+
const UnlinkWalletPopUpContent = ({ onClickCancel, }) => {
|
|
68
|
+
var _a;
|
|
69
|
+
const { handleUnlinkWallet, eventsCallbacks, setSelectedWalletWithAction, user, authMode, selectedWalletWithAction, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
70
|
+
const { t } = reactI18next.useTranslation();
|
|
67
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
|
+
}
|
|
68
76
|
const onConfirmClick = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
-
var
|
|
77
|
+
var _b;
|
|
70
78
|
try {
|
|
71
79
|
setLoading(true);
|
|
72
80
|
yield handleUnlinkWallet(walletId);
|
|
73
81
|
setSelectedWalletWithAction(null);
|
|
74
82
|
const walletFromId = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((wallet) => wallet.id === walletId);
|
|
75
83
|
if (walletFromId) {
|
|
76
|
-
(
|
|
84
|
+
(_b = eventsCallbacks === null || eventsCallbacks === void 0 ? void 0 : eventsCallbacks.onUnlinkSuccess) === null || _b === void 0 ? void 0 : _b.call(eventsCallbacks, walletFromId);
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
87
|
catch (error) {
|
|
@@ -83,16 +91,34 @@ const UnlinkWalletPopUp = ({ walletId }) => {
|
|
|
83
91
|
setLoading(false);
|
|
84
92
|
}
|
|
85
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();
|
|
86
117
|
const onCancelClick = () => {
|
|
87
118
|
setSelectedWalletWithAction(null);
|
|
88
119
|
};
|
|
89
|
-
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { onBackdropClick: onCancelClick, children: jsxRuntime.
|
|
90
|
-
variant: 'button_secondary',
|
|
91
|
-
weight: 'medium',
|
|
92
|
-
}, 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: {
|
|
93
|
-
variant: 'button_secondary',
|
|
94
|
-
weight: 'medium',
|
|
95
|
-
}, children: "No" })] }) }));
|
|
120
|
+
return (jsxRuntime.jsx(WidgetPortal.WidgetPortal, { onBackdropClick: onCancelClick, children: jsxRuntime.jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
96
121
|
};
|
|
97
122
|
|
|
98
|
-
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,9 +1,11 @@
|
|
|
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';
|
|
6
7
|
import 'react';
|
|
8
|
+
import '../../../../events/dynamicEvents.js';
|
|
7
9
|
import '@dynamic-labs/utils';
|
|
8
10
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
11
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -26,7 +28,6 @@ import 'react-dom';
|
|
|
26
28
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
27
29
|
import '@dynamic-labs/types';
|
|
28
30
|
import 'yup';
|
|
29
|
-
import 'react-i18next';
|
|
30
31
|
import '../../../../context/MockContext/MockContext.js';
|
|
31
32
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
32
33
|
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
@@ -42,6 +43,7 @@ import '../../../../context/QrCodeContext/QrCodeContext.js';
|
|
|
42
43
|
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
43
44
|
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
44
45
|
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
46
|
+
import { PromptModal } from '../../components/PromptModal/PromptModal.js';
|
|
45
47
|
import 'qrcode';
|
|
46
48
|
import 'i18next';
|
|
47
49
|
import '../../context/DynamicWidgetContext.js';
|
|
@@ -58,18 +60,24 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
58
60
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
59
61
|
import 'react-focus-lock';
|
|
60
62
|
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
const UnlinkWalletPopUpContent = ({ onClickCancel, }) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const { handleUnlinkWallet, eventsCallbacks, setSelectedWalletWithAction, user, authMode, selectedWalletWithAction, } = useInternalDynamicContext();
|
|
66
|
+
const { t } = useTranslation();
|
|
63
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
|
+
}
|
|
64
72
|
const onConfirmClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
-
var
|
|
73
|
+
var _b;
|
|
66
74
|
try {
|
|
67
75
|
setLoading(true);
|
|
68
76
|
yield handleUnlinkWallet(walletId);
|
|
69
77
|
setSelectedWalletWithAction(null);
|
|
70
78
|
const walletFromId = user === null || user === void 0 ? void 0 : user.verifiedCredentials.find((wallet) => wallet.id === walletId);
|
|
71
79
|
if (walletFromId) {
|
|
72
|
-
(
|
|
80
|
+
(_b = eventsCallbacks === null || eventsCallbacks === void 0 ? void 0 : eventsCallbacks.onUnlinkSuccess) === null || _b === void 0 ? void 0 : _b.call(eventsCallbacks, walletFromId);
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
catch (error) {
|
|
@@ -79,16 +87,33 @@ const UnlinkWalletPopUp = ({ walletId }) => {
|
|
|
79
87
|
setLoading(false);
|
|
80
88
|
}
|
|
81
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();
|
|
82
113
|
const onCancelClick = () => {
|
|
83
114
|
setSelectedWalletWithAction(null);
|
|
84
115
|
};
|
|
85
|
-
return (jsx(WidgetPortal, { onBackdropClick: onCancelClick, children:
|
|
86
|
-
variant: 'button_secondary',
|
|
87
|
-
weight: 'medium',
|
|
88
|
-
}, 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: {
|
|
89
|
-
variant: 'button_secondary',
|
|
90
|
-
weight: 'medium',
|
|
91
|
-
}, children: "No" })] }) }));
|
|
116
|
+
return (jsx(WidgetPortal, { onBackdropClick: onCancelClick, children: jsx(UnlinkWalletPopUpContent, { onClickCancel: onCancelClick }) }));
|
|
92
117
|
};
|
|
93
118
|
|
|
94
|
-
export {
|
|
119
|
+
export { UnlinkWalletPopUpModal, UnlinkWalletPopUpWidgetPortal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { UnlinkWalletPopUpModal, UnlinkWalletPopUpWidgetPortal, } from './UnlinkWalletPopUp';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../../../../../_virtual/_tslib.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
8
9
|
require('@dynamic-labs/utils');
|
|
9
10
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
10
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -46,8 +47,9 @@ require('../../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
|
46
47
|
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
47
48
|
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
48
49
|
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
49
|
-
require('
|
|
50
|
+
require('react-focus-lock');
|
|
50
51
|
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
+
require('qrcode');
|
|
51
53
|
require('i18next');
|
|
52
54
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
53
55
|
require('../../../../components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs');
|
|
@@ -60,12 +62,11 @@ require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
60
62
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
61
63
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
62
64
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
63
|
-
require('react-focus-lock');
|
|
64
65
|
require('formik');
|
|
65
66
|
|
|
66
67
|
const EditProfileView = ({ rootClassName, }) => {
|
|
67
68
|
const { setView } = ViewContext.useViewContext();
|
|
68
|
-
const {
|
|
69
|
+
const { setShowAuthFlow, multiWallet } = useInternalDynamicContext.useInternalDynamicContext();
|
|
69
70
|
const { goToProfileView } = DynamicWidgetContext.useWidgetContext();
|
|
70
71
|
const { updateUser } = useUserUpdateRequest.useUserUpdateRequestInternal({
|
|
71
72
|
validationSchemaStripUnknown: true,
|
|
@@ -74,10 +75,14 @@ const EditProfileView = ({ rootClassName, }) => {
|
|
|
74
75
|
const { isEmailVerificationRequired } = yield updateUser(formValues);
|
|
75
76
|
goToProfileView();
|
|
76
77
|
if (isEmailVerificationRequired) {
|
|
77
|
-
|
|
78
|
+
setShowAuthFlow(true, {
|
|
79
|
+
ignoreIfIsEmbeddedWidget: false,
|
|
80
|
+
initializeWalletConnect: false,
|
|
81
|
+
performMultiWalletChecks: false,
|
|
82
|
+
});
|
|
78
83
|
setView('verify-email');
|
|
79
84
|
}
|
|
80
|
-
}), [goToProfileView,
|
|
85
|
+
}), [goToProfileView, setShowAuthFlow, setView, updateUser]);
|
|
81
86
|
const isKYCEnabled = useKYCFlag.useKYCFlag();
|
|
82
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 })] }));
|
|
83
88
|
};
|