@dynamic-labs/sdk-react-core 4.5.0 → 4.5.1
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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/index.cjs +7 -7
- package/src/index.js +2 -2
- package/src/lib/components/Alert/Alert.cjs +6 -3
- package/src/lib/components/Alert/Alert.d.ts +1 -0
- package/src/lib/components/Alert/Alert.js +6 -4
- package/src/lib/components/Alert/AlertText/AlertText.cjs +16 -0
- package/src/lib/components/Alert/AlertText/AlertText.d.ts +7 -0
- package/src/lib/components/Alert/AlertText/AlertText.js +12 -0
- package/src/lib/components/Alert/AlertText/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +0 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +1 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
- package/src/lib/components/UserProfile/UserProfile.js +1 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -12
- package/src/lib/context/DynamicContext/DynamicContext.js +15 -12
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +2 -2
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +3 -3
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +0 -4
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +0 -4
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +7 -2
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +7 -2
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.cjs +2 -2
- package/src/lib/context/DynamicContext/hooks/usePasskeySuccessPopup/usePasskeySuccessPopup.js +3 -3
- package/src/lib/context/DynamicContext/types/SettingsOverrides.d.ts +5 -2
- package/src/lib/context/ErrorContext/ErrorContext.cjs +7 -6
- package/src/lib/context/ErrorContext/ErrorContext.js +8 -7
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +3 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +3 -3
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -2
- package/src/lib/context/ViewContext/ViewContext.js +7 -2
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/data/api/embeddedWallets/embeddedWallets.cjs +5 -64
- package/src/lib/data/api/embeddedWallets/embeddedWallets.d.ts +2 -18
- package/src/lib/data/api/embeddedWallets/embeddedWallets.js +6 -61
- package/src/lib/data/api/wallets/wallets.cjs +1 -3
- package/src/lib/data/api/wallets/wallets.d.ts +1 -1
- package/src/lib/data/api/wallets/wallets.js +2 -4
- package/src/lib/events/embeddedWallet.d.ts +0 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -6
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -6
- package/src/lib/locale/en/translation.cjs +4 -7
- package/src/lib/locale/en/translation.d.ts +3 -6
- package/src/lib/locale/en/translation.js +4 -7
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +8 -8
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +8 -8
- package/src/lib/modals/index.d.ts +0 -2
- package/src/lib/shared/utils/functions/index.d.ts +0 -2
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +7 -5
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +8 -6
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/index.d.ts +0 -5
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +1 -1
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +1 -1
- package/src/lib/utils/functions/onrampConfigurationToOnrampOption/onrampConfigurationToOnrampOption.cjs +1 -1
- package/src/lib/utils/functions/onrampConfigurationToOnrampOption/onrampConfigurationToOnrampOption.js +1 -1
- package/src/lib/utils/hooks/index.d.ts +0 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +0 -2
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +0 -2
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +2 -2
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +3 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +16 -4
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +16 -4
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +3 -3
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +3 -3
- package/src/lib/utils/hooks/useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.cjs +1 -1
- package/src/lib/utils/hooks/useCreateWalletConnectorOptions/useCreateWalletConnectorOptions.js +1 -1
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +1 -6
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +1 -6
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +1 -1
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +1 -1
- package/src/lib/utils/hooks/useElementById/useElementById.cjs +2 -2
- package/src/lib/utils/hooks/useElementById/useElementById.js +3 -3
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +1 -13
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +1 -13
- package/src/lib/utils/hooks/useEmbeddedWallet/index.d.ts +0 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +7 -23
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +0 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +7 -23
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +4 -4
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +4 -4
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +3 -3
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +3 -3
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.cjs +1 -0
- package/src/lib/utils/hooks/useFundWithWallet/useConnectWalletForFunding/useConnectWalletForFunding.js +1 -0
- 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 +2 -2
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +2 -2
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.cjs +1 -1
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.js +1 -1
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +11 -18
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +12 -19
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +4 -4
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +4 -4
- package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.cjs +4 -4
- package/src/lib/utils/hooks/useUpgradeEmbeddedWallet/useUpgradeEmbeddedWallet.js +4 -4
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +4 -4
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +4 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +0 -3
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +0 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +0 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +0 -3
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +0 -1
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +0 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -24
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -24
- package/src/lib/utils/validations/index.d.ts +0 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +2 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +4 -4
- package/src/lib/views/EmailVerification/EmailVerification.js +4 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +12 -34
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +13 -35
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +2 -2
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +2 -2
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +1 -1
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +11 -11
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +11 -11
- package/src/lib/views/viewToComponentMap.cjs +0 -4
- package/src/lib/views/viewToComponentMap.d.ts +0 -2
- package/src/lib/views/viewToComponentMap.js +0 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +5 -7
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/views/ChooseOnrampProviderView/ChooseOnrampProviderView.js +4 -1
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/ChooseWalletFundingMethod.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/ChooseWalletFundingMethod.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.cjs +19 -11
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useFundingMethods.js +19 -11
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs +9 -5
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js +9 -5
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.cjs +6 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.js +6 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useSubmitExternalWalletFunding/useSubmitExternalWalletFunding.cjs +14 -2
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useSubmitExternalWalletFunding/useSubmitExternalWalletFunding.js +14 -2
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +7 -17
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +8 -18
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +0 -113
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +0 -109
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +0 -106
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +0 -3
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +0 -102
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +0 -5
- package/src/lib/modals/CreatePasswordModal/index.d.ts +0 -1
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +0 -106
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +0 -3
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +0 -102
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.types.d.ts +0 -6
- package/src/lib/modals/EnterPasswordModal/index.d.ts +0 -1
- package/src/lib/shared/assets/alt-key.cjs +0 -55
- package/src/lib/shared/assets/alt-key.js +0 -31
- package/src/lib/shared/assets/lock.cjs +0 -55
- package/src/lib/shared/assets/lock.js +0 -31
- package/src/lib/shared/assets/save-password-hero.cjs +0 -128
- package/src/lib/shared/assets/save-password-hero.js +0 -104
- package/src/lib/shared/assets/wallet-claim-hero.cjs +0 -128
- package/src/lib/shared/assets/wallet-claim-hero.js +0 -104
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.cjs +0 -15
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.d.ts +0 -1
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.js +0 -11
- package/src/lib/shared/utils/functions/generateRandomPassword/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/validatePassword/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.cjs +0 -60
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.d.ts +0 -13
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.js +0 -56
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.cjs +0 -8
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.d.ts +0 -2
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.js +0 -4
- package/src/lib/utils/functions/findCoinbaseMPCWallet/index.d.ts +0 -1
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +0 -53
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts +0 -9
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +0 -49
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/index.d.ts +0 -1
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.cjs +0 -14
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.js +0 -10
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/index.d.ts +0 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.cjs +0 -16
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.d.ts +0 -2
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.js +0 -12
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/index.d.ts +0 -1
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +0 -39
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +0 -2
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +0 -35
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/index.d.ts +0 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/index.d.ts +0 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +0 -229
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +0 -5
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +0 -225
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +0 -191
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.d.ts +0 -18
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +0 -187
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/index.d.ts +0 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +0 -141
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +0 -4
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +0 -137
- package/src/lib/utils/validations/validateMPCProviderEnabled/index.d.ts +0 -1
- package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.cjs +0 -18
- package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.d.ts +0 -2
- package/src/lib/utils/validations/validateMPCProviderEnabled/validateMPCProviderEnabled.js +0 -14
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +0 -116
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +0 -2
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +0 -112
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +0 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +0 -197
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +0 -12
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +0 -193
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +0 -1
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +0 -169
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +0 -9
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +0 -165
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +0 -141
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +0 -12
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +0 -137
- package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +0 -1
- package/src/lib/views/CreatePasswordView/index.d.ts +0 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +0 -141
- package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +0 -8
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +0 -137
- package/src/lib/views/EnterPasswordView/index.d.ts +0 -1
|
@@ -84,14 +84,12 @@ require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
|
84
84
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
85
85
|
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
86
86
|
require('../../../store/state/sendBalances.cjs');
|
|
87
|
-
var CreatePasswordModal = require('../../../modals/CreatePasswordModal/CreatePasswordModal.cjs');
|
|
88
87
|
require('../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
89
88
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
90
89
|
require('../../../views/TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
91
90
|
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
92
91
|
require('../../../context/OnrampContext/OnrampContext.cjs');
|
|
93
92
|
require('../../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs');
|
|
94
|
-
var EnterPasswordModal = require('../../../modals/EnterPasswordModal/EnterPasswordModal.cjs');
|
|
95
93
|
var SignMessageConfirmationModal = require('../../../modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs');
|
|
96
94
|
var SyncWalletPromptModal = require('../../../modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs');
|
|
97
95
|
var TransactionConfirmationModal = require('../../../modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs');
|
|
@@ -106,12 +104,6 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
106
104
|
const { modal: signMessageModal, open: openSignMessage } = useConfirmationModal.useConfirmationModal({
|
|
107
105
|
elementId: 'dynamic-sign-message',
|
|
108
106
|
});
|
|
109
|
-
const { modal: enterPasswordModal, open: openEnterPassword } = useConfirmationModal.useConfirmationModal({
|
|
110
|
-
elementId: 'dynamic-enter-password',
|
|
111
|
-
});
|
|
112
|
-
const { modal: createPasswordModal, open: openCreatePassword } = useConfirmationModal.useConfirmationModal({
|
|
113
|
-
elementId: 'dynamic-create-password',
|
|
114
|
-
});
|
|
115
107
|
const { modal: syncWalletPromptModal, open: openSyncWalletPrompt } = useConfirmationModal.useConfirmationModal({
|
|
116
108
|
elementId: 'dynamic-sync-wallet',
|
|
117
109
|
});
|
|
@@ -178,16 +170,10 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
178
170
|
shouldConfirmAction,
|
|
179
171
|
t,
|
|
180
172
|
]);
|
|
181
|
-
const
|
|
182
|
-
return openEnterPassword((resolve, reject) => (jsxRuntime.jsx(EnterPasswordModal.EnterPasswordModal, { handler: handler, onResolve: resolve, onReject: reject, closeView: closeView })));
|
|
183
|
-
}), [openEnterPassword]);
|
|
184
|
-
const createPassword = React.useCallback((_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ closeView = true }) {
|
|
185
|
-
return openCreatePassword((resolve, reject) => (jsxRuntime.jsx(CreatePasswordModal.CreatePasswordModal, { onResolve: resolve, onReject: reject, closeView: closeView })));
|
|
186
|
-
}), [openCreatePassword]);
|
|
187
|
-
const syncWallet = React.useCallback((_d) => _tslib.__awaiter(void 0, [_d], void 0, function* ({ walletConnector, activeAddress, expectedAddress }) {
|
|
173
|
+
const syncWallet = React.useCallback((_b) => _tslib.__awaiter(void 0, [_b], void 0, function* ({ walletConnector, activeAddress, expectedAddress }) {
|
|
188
174
|
yield openSyncWalletPrompt((resolve, reject) => (jsxRuntime.jsx(SyncWalletPromptModal.SyncWalletPromptModal, { onResolve: resolve, onReject: reject, connector: walletConnector, expectedAddress: expectedAddress, activeAddress: activeAddress })));
|
|
189
175
|
}), [openSyncWalletPrompt]);
|
|
190
|
-
const addNetwork = React.useCallback((
|
|
176
|
+
const addNetwork = React.useCallback((_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ handler, network, walletConnector }) {
|
|
191
177
|
yield openAddNetwork((resolve) => (jsxRuntime.jsx(AddNetworkModal.AddNetworkModal, { network: network, walletConnector: walletConnector, onCancel: resolve, onNetworkAdded: resolve, addNetworkMutation: handler })));
|
|
192
178
|
}), [openAddNetwork]);
|
|
193
179
|
const disabledConfirmationOnce = React.useCallback(() => {
|
|
@@ -195,9 +181,7 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
195
181
|
}, []);
|
|
196
182
|
const walletUiUtils = React.useMemo(() => ({
|
|
197
183
|
addNetwork,
|
|
198
|
-
createPassword,
|
|
199
184
|
disabledConfirmationOnce,
|
|
200
|
-
enterPassword,
|
|
201
185
|
sendTransaction,
|
|
202
186
|
signMessage,
|
|
203
187
|
signTransaction,
|
|
@@ -207,24 +191,18 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
207
191
|
signTransaction,
|
|
208
192
|
disabledConfirmationOnce,
|
|
209
193
|
sendTransaction,
|
|
210
|
-
enterPassword,
|
|
211
|
-
createPassword,
|
|
212
194
|
syncWallet,
|
|
213
195
|
addNetwork,
|
|
214
196
|
]);
|
|
215
197
|
return React.useMemo(() => [
|
|
216
198
|
signMessageModal ||
|
|
217
199
|
sendTransactionModal ||
|
|
218
|
-
enterPasswordModal ||
|
|
219
|
-
createPasswordModal ||
|
|
220
200
|
syncWalletPromptModal ||
|
|
221
201
|
addNetworkModal,
|
|
222
202
|
walletUiUtils,
|
|
223
203
|
], [
|
|
224
204
|
signMessageModal,
|
|
225
205
|
sendTransactionModal,
|
|
226
|
-
enterPasswordModal,
|
|
227
|
-
createPasswordModal,
|
|
228
206
|
syncWalletPromptModal,
|
|
229
207
|
addNetworkModal,
|
|
230
208
|
walletUiUtils,
|
|
@@ -80,14 +80,12 @@ import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
|
80
80
|
import '../../../context/FooterAnimationContext/index.js';
|
|
81
81
|
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
82
82
|
import '../../../store/state/sendBalances.js';
|
|
83
|
-
import { CreatePasswordModal } from '../../../modals/CreatePasswordModal/CreatePasswordModal.js';
|
|
84
83
|
import '../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
85
84
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
86
85
|
import '../../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
87
86
|
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
88
87
|
import '../../../context/OnrampContext/OnrampContext.js';
|
|
89
88
|
import '../../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js';
|
|
90
|
-
import { EnterPasswordModal } from '../../../modals/EnterPasswordModal/EnterPasswordModal.js';
|
|
91
89
|
import { SignMessageConfirmationModal } from '../../../modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js';
|
|
92
90
|
import { SyncWalletPromptModal } from '../../../modals/SyncWalletPromptModal/SyncWalletPromptModal.js';
|
|
93
91
|
import { TransactionConfirmationModal } from '../../../modals/TransactionConfirmationModal/TransactionConfirmationModal.js';
|
|
@@ -102,12 +100,6 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
102
100
|
const { modal: signMessageModal, open: openSignMessage } = useConfirmationModal({
|
|
103
101
|
elementId: 'dynamic-sign-message',
|
|
104
102
|
});
|
|
105
|
-
const { modal: enterPasswordModal, open: openEnterPassword } = useConfirmationModal({
|
|
106
|
-
elementId: 'dynamic-enter-password',
|
|
107
|
-
});
|
|
108
|
-
const { modal: createPasswordModal, open: openCreatePassword } = useConfirmationModal({
|
|
109
|
-
elementId: 'dynamic-create-password',
|
|
110
|
-
});
|
|
111
103
|
const { modal: syncWalletPromptModal, open: openSyncWalletPrompt } = useConfirmationModal({
|
|
112
104
|
elementId: 'dynamic-sync-wallet',
|
|
113
105
|
});
|
|
@@ -174,16 +166,10 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
174
166
|
shouldConfirmAction,
|
|
175
167
|
t,
|
|
176
168
|
]);
|
|
177
|
-
const
|
|
178
|
-
return openEnterPassword((resolve, reject) => (jsx(EnterPasswordModal, { handler: handler, onResolve: resolve, onReject: reject, closeView: closeView })));
|
|
179
|
-
}), [openEnterPassword]);
|
|
180
|
-
const createPassword = useCallback((_c) => __awaiter(void 0, [_c], void 0, function* ({ closeView = true }) {
|
|
181
|
-
return openCreatePassword((resolve, reject) => (jsx(CreatePasswordModal, { onResolve: resolve, onReject: reject, closeView: closeView })));
|
|
182
|
-
}), [openCreatePassword]);
|
|
183
|
-
const syncWallet = useCallback((_d) => __awaiter(void 0, [_d], void 0, function* ({ walletConnector, activeAddress, expectedAddress }) {
|
|
169
|
+
const syncWallet = useCallback((_b) => __awaiter(void 0, [_b], void 0, function* ({ walletConnector, activeAddress, expectedAddress }) {
|
|
184
170
|
yield openSyncWalletPrompt((resolve, reject) => (jsx(SyncWalletPromptModal, { onResolve: resolve, onReject: reject, connector: walletConnector, expectedAddress: expectedAddress, activeAddress: activeAddress })));
|
|
185
171
|
}), [openSyncWalletPrompt]);
|
|
186
|
-
const addNetwork = useCallback((
|
|
172
|
+
const addNetwork = useCallback((_c) => __awaiter(void 0, [_c], void 0, function* ({ handler, network, walletConnector }) {
|
|
187
173
|
yield openAddNetwork((resolve) => (jsx(AddNetworkModal, { network: network, walletConnector: walletConnector, onCancel: resolve, onNetworkAdded: resolve, addNetworkMutation: handler })));
|
|
188
174
|
}), [openAddNetwork]);
|
|
189
175
|
const disabledConfirmationOnce = useCallback(() => {
|
|
@@ -191,9 +177,7 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
191
177
|
}, []);
|
|
192
178
|
const walletUiUtils = useMemo(() => ({
|
|
193
179
|
addNetwork,
|
|
194
|
-
createPassword,
|
|
195
180
|
disabledConfirmationOnce,
|
|
196
|
-
enterPassword,
|
|
197
181
|
sendTransaction,
|
|
198
182
|
signMessage,
|
|
199
183
|
signTransaction,
|
|
@@ -203,24 +187,18 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
203
187
|
signTransaction,
|
|
204
188
|
disabledConfirmationOnce,
|
|
205
189
|
sendTransaction,
|
|
206
|
-
enterPassword,
|
|
207
|
-
createPassword,
|
|
208
190
|
syncWallet,
|
|
209
191
|
addNetwork,
|
|
210
192
|
]);
|
|
211
193
|
return useMemo(() => [
|
|
212
194
|
signMessageModal ||
|
|
213
195
|
sendTransactionModal ||
|
|
214
|
-
enterPasswordModal ||
|
|
215
|
-
createPasswordModal ||
|
|
216
196
|
syncWalletPromptModal ||
|
|
217
197
|
addNetworkModal,
|
|
218
198
|
walletUiUtils,
|
|
219
199
|
], [
|
|
220
200
|
signMessageModal,
|
|
221
201
|
sendTransactionModal,
|
|
222
|
-
enterPasswordModal,
|
|
223
|
-
createPasswordModal,
|
|
224
202
|
syncWalletPromptModal,
|
|
225
203
|
addNetworkModal,
|
|
226
204
|
walletUiUtils,
|
|
@@ -28,11 +28,11 @@ require('react-international-phone');
|
|
|
28
28
|
var getCustomCountries = require('../../../../utils/functions/getCustomCountries/getCustomCountries.cjs');
|
|
29
29
|
require('../../../../store/state/nonce/nonce.cjs');
|
|
30
30
|
require('../../../../store/state/projectSettings/projectSettings.cjs');
|
|
31
|
+
var getSupportedCountriesForVerificationFromProjectSettings = require('../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.cjs');
|
|
32
|
+
var getDefaultCountriesIfEmpty = require('../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.cjs');
|
|
31
33
|
require('../../../../config/ApiEndpoint.cjs');
|
|
32
34
|
require('../../../../store/state/user/user.cjs');
|
|
33
35
|
require('../../../../locale/locale.cjs');
|
|
34
|
-
var getSupportedCountriesForVerificationFromProjectSettings = require('../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.cjs');
|
|
35
|
-
var getDefaultCountriesIfEmpty = require('../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.cjs');
|
|
36
36
|
require('../../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
37
37
|
require('../../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
38
38
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -24,11 +24,11 @@ import 'react-international-phone';
|
|
|
24
24
|
import { getCustomCountries } from '../../../../utils/functions/getCustomCountries/getCustomCountries.js';
|
|
25
25
|
import '../../../../store/state/nonce/nonce.js';
|
|
26
26
|
import '../../../../store/state/projectSettings/projectSettings.js';
|
|
27
|
+
import { getSupportedCountriesForVerificationFromProjectSettings } from '../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.js';
|
|
28
|
+
import { getDefaultCountriesIfEmpty } from '../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.js';
|
|
27
29
|
import '../../../../config/ApiEndpoint.js';
|
|
28
30
|
import '../../../../store/state/user/user.js';
|
|
29
31
|
import '../../../../locale/locale.js';
|
|
30
|
-
import { getSupportedCountriesForVerificationFromProjectSettings } from '../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.js';
|
|
31
|
-
import { getDefaultCountriesIfEmpty } from '../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.js';
|
|
32
32
|
import '../../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
33
33
|
import '../../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
34
34
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -35,15 +35,15 @@ var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEma
|
|
|
35
35
|
require('../../store/state/nonce/nonce.cjs');
|
|
36
36
|
var isTurnkeyEnabled = require('../../utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.cjs');
|
|
37
37
|
require('../../store/state/projectSettings/projectSettings.cjs');
|
|
38
|
+
var updatePrimaryWalletId = require('../../utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.cjs');
|
|
39
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
40
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
41
|
+
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
38
42
|
var email = require('../../data/api/email/email.cjs');
|
|
39
43
|
var storeAuthTokenAndUser = require('../../store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs');
|
|
40
44
|
require('../../store/state/user/user.cjs');
|
|
41
45
|
require('../../config/ApiEndpoint.cjs');
|
|
42
46
|
require('../../locale/locale.cjs');
|
|
43
|
-
var updatePrimaryWalletId = require('../../utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.cjs');
|
|
44
|
-
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
45
|
-
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
46
|
-
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
47
47
|
var useOtpVerificationRequest = require('../../utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs');
|
|
48
48
|
require('react-dom');
|
|
49
49
|
require('../../utils/functions/compareChains/compareChains.cjs');
|
|
@@ -31,15 +31,15 @@ import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenE
|
|
|
31
31
|
import '../../store/state/nonce/nonce.js';
|
|
32
32
|
import { isTurnkeyEnabled } from '../../utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.js';
|
|
33
33
|
import '../../store/state/projectSettings/projectSettings.js';
|
|
34
|
+
import { updatePrimaryWalletId } from '../../utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.js';
|
|
35
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
36
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
37
|
+
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
34
38
|
import { signInWithEmailVerification, retryEmailVerification } from '../../data/api/email/email.js';
|
|
35
39
|
import { storeAuthTokenAndUser } from '../../store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.js';
|
|
36
40
|
import '../../store/state/user/user.js';
|
|
37
41
|
import '../../config/ApiEndpoint.js';
|
|
38
42
|
import '../../locale/locale.js';
|
|
39
|
-
import { updatePrimaryWalletId } from '../../utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.js';
|
|
40
|
-
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
41
|
-
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
42
|
-
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
43
43
|
import { useOtpVerificationRequest } from '../../utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js';
|
|
44
44
|
import 'react-dom';
|
|
45
45
|
import '../../utils/functions/compareChains/compareChains.js';
|
|
@@ -14,10 +14,8 @@ var Checkbox = require('../../../components/Checkbox/Checkbox.cjs');
|
|
|
14
14
|
var ErrorContainer = require('../../../components/ErrorContainer/ErrorContainer.cjs');
|
|
15
15
|
var IconButton = require('../../../components/IconButton/IconButton.cjs');
|
|
16
16
|
var ModalHeader = require('../../../components/ModalHeader/ModalHeader.cjs');
|
|
17
|
-
var ShadowDOM = require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
18
17
|
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
19
18
|
var TypographyButton = require('../../../components/TypographyButton/TypographyButton.cjs');
|
|
20
|
-
var ApiEndpoint = require('../../../config/ApiEndpoint.cjs');
|
|
21
19
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
22
20
|
require('@dynamic-labs/sdk-api-core');
|
|
23
21
|
var logger = require('../../../shared/logger.cjs');
|
|
@@ -39,6 +37,7 @@ require('@dynamic-labs/multi-wallet');
|
|
|
39
37
|
require('react-international-phone');
|
|
40
38
|
require('../../../store/state/nonce/nonce.cjs');
|
|
41
39
|
require('../../../store/state/projectSettings/projectSettings.cjs');
|
|
40
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
42
41
|
require('../../../store/state/user/user.cjs');
|
|
43
42
|
require('../../../locale/locale.cjs');
|
|
44
43
|
require('../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
@@ -72,6 +71,7 @@ require('../../../store/state/loadingAndLifecycle.cjs');
|
|
|
72
71
|
require('../../../store/state/walletOptions/walletOptions.cjs');
|
|
73
72
|
require('../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
74
73
|
require('../../../components/Alert/Alert.cjs');
|
|
74
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
75
75
|
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
76
76
|
require('../../../components/Input/Input.cjs');
|
|
77
77
|
require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
@@ -113,21 +113,18 @@ require('../../../shared/utils/functions/getInitialUrl/getInitialUrl.cjs');
|
|
|
113
113
|
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
114
114
|
|
|
115
115
|
const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) => {
|
|
116
|
-
var _a, _b, _c
|
|
116
|
+
var _a, _b, _c;
|
|
117
117
|
const { primaryWallet, user, setShowAuthFlow, environmentId } = useInternalDynamicContext.useInternalDynamicContext();
|
|
118
118
|
const { handleAcknowledgeExportPrompt } = useSyncEmbeddedWalletFlow.useSyncEmbeddedWalletFlow();
|
|
119
119
|
const { isTurnkeyWallet } = useIsTurnkeyWallet.useIsTurnkeyWallet();
|
|
120
|
-
const { shadowRoot } = ShadowDOM.useShadowDOMContext();
|
|
121
120
|
const { setDynamicWidgetView } = DynamicWidgetContext.useWidgetContext();
|
|
122
121
|
const { pushView } = ViewContext.useViewContext();
|
|
123
122
|
const { getEOAWallet, isSmartWallet } = useSmartWallets.useSmartWallets();
|
|
124
123
|
const [acknowledgement1, setAcknowledgement1] = React.useState(false);
|
|
125
|
-
const [hasRevealedCoinbaseMpcKey, setHasRevealedCoinbaseMpcKey] = React.useState(false);
|
|
126
124
|
const iframeContainerRef = React.useRef(null);
|
|
127
125
|
const walletProperties = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
|
|
128
126
|
const isTurnkeyHDWallet = walletProperties === null || walletProperties === void 0 ? void 0 : walletProperties.turnkeyHDWalletId;
|
|
129
127
|
const wallet = (_c = (primaryWallet && getEOAWallet(primaryWallet))) !== null && _c !== void 0 ? _c : primaryWallet;
|
|
130
|
-
const isCoinbaseMpcWallet = wallet && walletConnectorCore.isCoinbaseMpcWalletConnector(wallet.connector);
|
|
131
128
|
// eslint-disable-next-line arrow-body-style
|
|
132
129
|
React.useEffect(() => {
|
|
133
130
|
return () => {
|
|
@@ -141,14 +138,14 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
141
138
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
142
139
|
}, []);
|
|
143
140
|
const { isLoading: exportLoading } = usePromise.usePromise(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
144
|
-
var
|
|
141
|
+
var _d, _e;
|
|
145
142
|
const iframeContainerElement = iframeContainerRef.current;
|
|
146
143
|
if (!iframeContainerElement ||
|
|
147
|
-
((
|
|
144
|
+
((_d = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
148
145
|
return;
|
|
149
146
|
}
|
|
150
147
|
if (walletConnectorCore.isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
151
|
-
yield ((
|
|
148
|
+
yield ((_e = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _e === void 0 ? void 0 : _e.createOrRestoreSession());
|
|
152
149
|
}
|
|
153
150
|
return turnkeyExport.initExport({
|
|
154
151
|
iframeContainer: iframeContainerElement,
|
|
@@ -157,11 +154,8 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
157
154
|
});
|
|
158
155
|
}));
|
|
159
156
|
const { mutate: handleExportWallet, isLoading, error, data, } = useMutation.useMutation(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
160
|
-
var _g, _h
|
|
157
|
+
var _f, _g, _h;
|
|
161
158
|
handleAcknowledgeExportPrompt();
|
|
162
|
-
if (isCoinbaseMpcWallet) {
|
|
163
|
-
return (wallet === null || wallet === void 0 ? void 0 : wallet.connector).exportWalletKeys();
|
|
164
|
-
}
|
|
165
159
|
if (isTurnkeyWallet) {
|
|
166
160
|
try {
|
|
167
161
|
return yield turnkeyExport.exportCredential({
|
|
@@ -171,11 +165,11 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
171
165
|
wallet: wallet,
|
|
172
166
|
});
|
|
173
167
|
}
|
|
174
|
-
catch (
|
|
168
|
+
catch (_j) {
|
|
175
169
|
if (walletConnectorCore.isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector) &&
|
|
176
|
-
((
|
|
177
|
-
yield ((
|
|
178
|
-
yield ((
|
|
170
|
+
((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.removeSessionKeys)) {
|
|
171
|
+
yield ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys());
|
|
172
|
+
yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.createOrRestoreSession({
|
|
179
173
|
ignoreRestore: true,
|
|
180
174
|
}));
|
|
181
175
|
}
|
|
@@ -193,17 +187,6 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
193
187
|
logger.logger.error('Failed to export', err);
|
|
194
188
|
dynamicEvents.dynamicEvents.emit('embeddedWalletRevealFailed', err);
|
|
195
189
|
},
|
|
196
|
-
onSuccess: (data) => {
|
|
197
|
-
var _a, _b;
|
|
198
|
-
if (isCoinbaseMpcWallet && data && (data === null || data === void 0 ? void 0 : data.length)) {
|
|
199
|
-
const iframe = shadowRoot === null || shadowRoot === void 0 ? void 0 : shadowRoot.getElementById('coinbase-waas-key-export');
|
|
200
|
-
(_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({
|
|
201
|
-
key: (_b = data[0]) === null || _b === void 0 ? void 0 : _b.ecKeyPrivate,
|
|
202
|
-
type: 'export_key',
|
|
203
|
-
}, '*');
|
|
204
|
-
setHasRevealedCoinbaseMpcKey(true);
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
190
|
});
|
|
208
191
|
const errorText = React.useMemo(() => {
|
|
209
192
|
if (!error) {
|
|
@@ -256,15 +239,10 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
256
239
|
return t('dyn_embedded_reveal.agreement_title');
|
|
257
240
|
};
|
|
258
241
|
const title = getTitle();
|
|
259
|
-
// this element needs to be on the DOM before the reveal occurs
|
|
260
|
-
// so we can inject the key into it once it's fetched from coinbase.
|
|
261
|
-
const coinbaseWaasKeyExportIframe = (jsxRuntime.jsx("iframe", { src: (_d = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _d === void 0 ? void 0 : _d.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
|
|
262
|
-
borderRadius: '0.75rem',
|
|
263
|
-
}, allow: 'clipboard-write' }));
|
|
264
242
|
const handleClickUnlink = () => {
|
|
265
243
|
pushView('embedded-delete-view');
|
|
266
244
|
};
|
|
267
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: isPromptForExport ? null : closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsxRuntime.jsx("div", { className: 'embedded-reveal-view', children: jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader,
|
|
245
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: isPromptForExport ? null : closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsxRuntime.jsx("div", { className: 'embedded-reveal-view', children: jsxRuntime.jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader, isTurnkeyWallet ? (jsxRuntime.jsx("div", { id: constants.iframeContainerId, style: { display: data ? 'block' : 'none' }, ref: iframeContainerRef })) : null, hasInjectedCredential ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', onClick: () => setShowAuthFlow(false), loading: isLoading, copykey: 'dyn_embedded_reveal.done_button_label', typographyProps: {
|
|
268
246
|
color: 'inherit',
|
|
269
247
|
}, children: t('dyn_embedded_reveal.done_button_label') }), !exportPrivateKey && (jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonClassName: 'embedded-reveal-view__body__unlink_button', buttonVariant: 'tertiary', buttonPadding: 'none', copykey: 'dyn_embedded_reveal.unlink', onClick: handleClickUnlink, typographyProps: {
|
|
270
248
|
color: 'secondary',
|
|
@@ -4,16 +4,14 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
4
4
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { DynamicError, AccessBlockedError } from '@dynamic-labs/utils';
|
|
7
|
-
import {
|
|
7
|
+
import { isSessionKeyCompatibleWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
9
9
|
import { Checkbox } from '../../../components/Checkbox/Checkbox.js';
|
|
10
10
|
import { ErrorContainer } from '../../../components/ErrorContainer/ErrorContainer.js';
|
|
11
11
|
import { IconButton } from '../../../components/IconButton/IconButton.js';
|
|
12
12
|
import { ModalHeader } from '../../../components/ModalHeader/ModalHeader.js';
|
|
13
|
-
import { useShadowDOMContext } from '../../../components/ShadowDOM/ShadowDOM.js';
|
|
14
13
|
import { Typography } from '../../../components/Typography/Typography.js';
|
|
15
14
|
import { TypographyButton } from '../../../components/TypographyButton/TypographyButton.js';
|
|
16
|
-
import ApiEndpoint from '../../../config/ApiEndpoint.js';
|
|
17
15
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
18
16
|
import '@dynamic-labs/sdk-api-core';
|
|
19
17
|
import { logger } from '../../../shared/logger.js';
|
|
@@ -35,6 +33,7 @@ import '@dynamic-labs/multi-wallet';
|
|
|
35
33
|
import 'react-international-phone';
|
|
36
34
|
import '../../../store/state/nonce/nonce.js';
|
|
37
35
|
import '../../../store/state/projectSettings/projectSettings.js';
|
|
36
|
+
import '../../../config/ApiEndpoint.js';
|
|
38
37
|
import '../../../store/state/user/user.js';
|
|
39
38
|
import '../../../locale/locale.js';
|
|
40
39
|
import '../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
@@ -68,6 +67,7 @@ import '../../../store/state/loadingAndLifecycle.js';
|
|
|
68
67
|
import '../../../store/state/walletOptions/walletOptions.js';
|
|
69
68
|
import '../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
70
69
|
import '../../../components/Alert/Alert.js';
|
|
70
|
+
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
71
71
|
import '../../../components/InlineWidget/InlineWidget.js';
|
|
72
72
|
import '../../../components/Input/Input.js';
|
|
73
73
|
import '../../../components/IsBrowser/IsBrowser.js';
|
|
@@ -109,21 +109,18 @@ import '../../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
|
109
109
|
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
110
110
|
|
|
111
111
|
const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) => {
|
|
112
|
-
var _a, _b, _c
|
|
112
|
+
var _a, _b, _c;
|
|
113
113
|
const { primaryWallet, user, setShowAuthFlow, environmentId } = useInternalDynamicContext();
|
|
114
114
|
const { handleAcknowledgeExportPrompt } = useSyncEmbeddedWalletFlow();
|
|
115
115
|
const { isTurnkeyWallet } = useIsTurnkeyWallet();
|
|
116
|
-
const { shadowRoot } = useShadowDOMContext();
|
|
117
116
|
const { setDynamicWidgetView } = useWidgetContext();
|
|
118
117
|
const { pushView } = useViewContext();
|
|
119
118
|
const { getEOAWallet, isSmartWallet } = useSmartWallets();
|
|
120
119
|
const [acknowledgement1, setAcknowledgement1] = useState(false);
|
|
121
|
-
const [hasRevealedCoinbaseMpcKey, setHasRevealedCoinbaseMpcKey] = useState(false);
|
|
122
120
|
const iframeContainerRef = useRef(null);
|
|
123
121
|
const walletProperties = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletName }) => walletName === null || walletName === void 0 ? void 0 : walletName.startsWith('turnkey'))) === null || _b === void 0 ? void 0 : _b.walletProperties;
|
|
124
122
|
const isTurnkeyHDWallet = walletProperties === null || walletProperties === void 0 ? void 0 : walletProperties.turnkeyHDWalletId;
|
|
125
123
|
const wallet = (_c = (primaryWallet && getEOAWallet(primaryWallet))) !== null && _c !== void 0 ? _c : primaryWallet;
|
|
126
|
-
const isCoinbaseMpcWallet = wallet && isCoinbaseMpcWalletConnector(wallet.connector);
|
|
127
124
|
// eslint-disable-next-line arrow-body-style
|
|
128
125
|
useEffect(() => {
|
|
129
126
|
return () => {
|
|
@@ -137,14 +134,14 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
137
134
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
138
135
|
}, []);
|
|
139
136
|
const { isLoading: exportLoading } = usePromise(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
140
|
-
var
|
|
137
|
+
var _d, _e;
|
|
141
138
|
const iframeContainerElement = iframeContainerRef.current;
|
|
142
139
|
if (!iframeContainerElement ||
|
|
143
|
-
((
|
|
140
|
+
((_d = iframeContainerElement === null || iframeContainerElement === void 0 ? void 0 : iframeContainerElement.children) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
144
141
|
return;
|
|
145
142
|
}
|
|
146
143
|
if (isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector)) {
|
|
147
|
-
yield ((
|
|
144
|
+
yield ((_e = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _e === void 0 ? void 0 : _e.createOrRestoreSession());
|
|
148
145
|
}
|
|
149
146
|
return initExport({
|
|
150
147
|
iframeContainer: iframeContainerElement,
|
|
@@ -153,11 +150,8 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
153
150
|
});
|
|
154
151
|
}));
|
|
155
152
|
const { mutate: handleExportWallet, isLoading, error, data, } = useMutation(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
156
|
-
var _g, _h
|
|
153
|
+
var _f, _g, _h;
|
|
157
154
|
handleAcknowledgeExportPrompt();
|
|
158
|
-
if (isCoinbaseMpcWallet) {
|
|
159
|
-
return (wallet === null || wallet === void 0 ? void 0 : wallet.connector).exportWalletKeys();
|
|
160
|
-
}
|
|
161
155
|
if (isTurnkeyWallet) {
|
|
162
156
|
try {
|
|
163
157
|
return yield exportCredential({
|
|
@@ -167,11 +161,11 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
167
161
|
wallet: wallet,
|
|
168
162
|
});
|
|
169
163
|
}
|
|
170
|
-
catch (
|
|
164
|
+
catch (_j) {
|
|
171
165
|
if (isSessionKeyCompatibleWalletConnector(wallet === null || wallet === void 0 ? void 0 : wallet.connector) &&
|
|
172
|
-
((
|
|
173
|
-
yield ((
|
|
174
|
-
yield ((
|
|
166
|
+
((_f = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _f === void 0 ? void 0 : _f.removeSessionKeys)) {
|
|
167
|
+
yield ((_g = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _g === void 0 ? void 0 : _g.removeSessionKeys());
|
|
168
|
+
yield ((_h = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _h === void 0 ? void 0 : _h.createOrRestoreSession({
|
|
175
169
|
ignoreRestore: true,
|
|
176
170
|
}));
|
|
177
171
|
}
|
|
@@ -189,17 +183,6 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
189
183
|
logger.error('Failed to export', err);
|
|
190
184
|
dynamicEvents.emit('embeddedWalletRevealFailed', err);
|
|
191
185
|
},
|
|
192
|
-
onSuccess: (data) => {
|
|
193
|
-
var _a, _b;
|
|
194
|
-
if (isCoinbaseMpcWallet && data && (data === null || data === void 0 ? void 0 : data.length)) {
|
|
195
|
-
const iframe = shadowRoot === null || shadowRoot === void 0 ? void 0 : shadowRoot.getElementById('coinbase-waas-key-export');
|
|
196
|
-
(_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({
|
|
197
|
-
key: (_b = data[0]) === null || _b === void 0 ? void 0 : _b.ecKeyPrivate,
|
|
198
|
-
type: 'export_key',
|
|
199
|
-
}, '*');
|
|
200
|
-
setHasRevealedCoinbaseMpcKey(true);
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
186
|
});
|
|
204
187
|
const errorText = useMemo(() => {
|
|
205
188
|
if (!error) {
|
|
@@ -252,15 +235,10 @@ const EmbeddedRevealView = ({ exportPrivateKey, isPromptForExport = false, }) =>
|
|
|
252
235
|
return t('dyn_embedded_reveal.agreement_title');
|
|
253
236
|
};
|
|
254
237
|
const title = getTitle();
|
|
255
|
-
// this element needs to be on the DOM before the reveal occurs
|
|
256
|
-
// so we can inject the key into it once it's fetched from coinbase.
|
|
257
|
-
const coinbaseWaasKeyExportIframe = (jsx("iframe", { src: (_d = ApiEndpoint === null || ApiEndpoint === void 0 ? void 0 : ApiEndpoint.getBaseUrl()) === null || _d === void 0 ? void 0 : _d.replace('api/v0', 'coinbase-waas-key-export.html'), id: 'coinbase-waas-key-export', title: 'Coinbase WaaS key export', height: hasRevealedCoinbaseMpcKey ? '100%' : 0, width: hasRevealedCoinbaseMpcKey ? '100%' : 0, style: {
|
|
258
|
-
borderRadius: '0.75rem',
|
|
259
|
-
}, allow: 'clipboard-write' }));
|
|
260
238
|
const handleClickUnlink = () => {
|
|
261
239
|
pushView('embedded-delete-view');
|
|
262
240
|
};
|
|
263
|
-
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: isPromptForExport ? null : closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsx("div", { className: 'embedded-reveal-view', children: jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader,
|
|
241
|
+
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: isPromptForExport ? null : closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: title }) }), jsx("div", { className: 'embedded-reveal-view', children: jsxs("div", { className: 'embedded-reveal-view__body', children: [contentHeader, isTurnkeyWallet ? (jsx("div", { id: iframeContainerId, style: { display: data ? 'block' : 'none' }, ref: iframeContainerRef })) : null, hasInjectedCredential ? (jsxs(Fragment, { children: [jsx(TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', onClick: () => setShowAuthFlow(false), loading: isLoading, copykey: 'dyn_embedded_reveal.done_button_label', typographyProps: {
|
|
264
242
|
color: 'inherit',
|
|
265
243
|
}, children: t('dyn_embedded_reveal.done_button_label') }), !exportPrivateKey && (jsx(TypographyButton, { buttonClassName: 'embedded-reveal-view__body__unlink_button', buttonVariant: 'tertiary', buttonPadding: 'none', copykey: 'dyn_embedded_reveal.unlink', onClick: handleClickUnlink, typographyProps: {
|
|
266
244
|
color: 'secondary',
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs
CHANGED
|
@@ -30,11 +30,11 @@ require('react-international-phone');
|
|
|
30
30
|
var getCustomCountries = require('../../../../utils/functions/getCustomCountries/getCustomCountries.cjs');
|
|
31
31
|
require('../../../../store/state/nonce/nonce.cjs');
|
|
32
32
|
require('../../../../store/state/projectSettings/projectSettings.cjs');
|
|
33
|
+
var getSupportedCountriesForVerificationFromProjectSettings = require('../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.cjs');
|
|
34
|
+
var getDefaultCountriesIfEmpty = require('../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.cjs');
|
|
33
35
|
require('../../../../config/ApiEndpoint.cjs');
|
|
34
36
|
require('../../../../store/state/user/user.cjs');
|
|
35
37
|
require('../../../../locale/locale.cjs');
|
|
36
|
-
var getSupportedCountriesForVerificationFromProjectSettings = require('../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.cjs');
|
|
37
|
-
var getDefaultCountriesIfEmpty = require('../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.cjs');
|
|
38
38
|
require('../../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
39
39
|
require('../../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
40
40
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js
CHANGED
|
@@ -26,11 +26,11 @@ import 'react-international-phone';
|
|
|
26
26
|
import { getCustomCountries } from '../../../../utils/functions/getCustomCountries/getCustomCountries.js';
|
|
27
27
|
import '../../../../store/state/nonce/nonce.js';
|
|
28
28
|
import '../../../../store/state/projectSettings/projectSettings.js';
|
|
29
|
+
import { getSupportedCountriesForVerificationFromProjectSettings } from '../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.js';
|
|
30
|
+
import { getDefaultCountriesIfEmpty } from '../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.js';
|
|
29
31
|
import '../../../../config/ApiEndpoint.js';
|
|
30
32
|
import '../../../../store/state/user/user.js';
|
|
31
33
|
import '../../../../locale/locale.js';
|
|
32
|
-
import { getSupportedCountriesForVerificationFromProjectSettings } from '../../../../utils/functions/getSupportedCountriesForVerificationFromProjectSettings/getSupportedCountriesForVerificationFromProjectSettings.js';
|
|
33
|
-
import { getDefaultCountriesIfEmpty } from '../../../../utils/functions/getDefaultCountriesIfEmpty/getDefaultCountriesIfEmpty.js';
|
|
34
34
|
import '../../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
35
35
|
import '../../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
36
36
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -30,10 +30,10 @@ require('@dynamic-labs/multi-wallet');
|
|
|
30
30
|
require('react-international-phone');
|
|
31
31
|
require('../../store/state/nonce/nonce.cjs');
|
|
32
32
|
require('../../store/state/projectSettings/projectSettings.cjs');
|
|
33
|
+
var downloadFile = require('../../utils/functions/downloadFile/downloadFile.cjs');
|
|
33
34
|
require('../../config/ApiEndpoint.cjs');
|
|
34
35
|
require('../../store/state/user/user.cjs');
|
|
35
36
|
require('../../locale/locale.cjs');
|
|
36
|
-
var downloadFile = require('../../utils/functions/downloadFile/downloadFile.cjs');
|
|
37
37
|
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
38
38
|
require('../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
39
39
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -26,10 +26,10 @@ import '@dynamic-labs/multi-wallet';
|
|
|
26
26
|
import 'react-international-phone';
|
|
27
27
|
import '../../store/state/nonce/nonce.js';
|
|
28
28
|
import '../../store/state/projectSettings/projectSettings.js';
|
|
29
|
+
import { downloadFile } from '../../utils/functions/downloadFile/downloadFile.js';
|
|
29
30
|
import '../../config/ApiEndpoint.js';
|
|
30
31
|
import '../../store/state/user/user.js';
|
|
31
32
|
import '../../locale/locale.js';
|
|
32
|
-
import { downloadFile } from '../../utils/functions/downloadFile/downloadFile.js';
|
|
33
33
|
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
34
34
|
import '../../store/state/primaryWalletId/primaryWalletId.js';
|
|
35
35
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -28,10 +28,10 @@ require('@dynamic-labs/multi-wallet');
|
|
|
28
28
|
require('react-international-phone');
|
|
29
29
|
require('../../store/state/nonce/nonce.cjs');
|
|
30
30
|
require('../../store/state/projectSettings/projectSettings.cjs');
|
|
31
|
+
var isValidMfaRecoveryCode = require('../../utils/functions/isValidMfaRecoveryCode/isValidMfaRecoveryCode.cjs');
|
|
31
32
|
require('../../config/ApiEndpoint.cjs');
|
|
32
33
|
require('../../store/state/user/user.cjs');
|
|
33
34
|
require('../../locale/locale.cjs');
|
|
34
|
-
var isValidMfaRecoveryCode = require('../../utils/functions/isValidMfaRecoveryCode/isValidMfaRecoveryCode.cjs');
|
|
35
35
|
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
36
36
|
require('../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
37
37
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -24,10 +24,10 @@ import '@dynamic-labs/multi-wallet';
|
|
|
24
24
|
import 'react-international-phone';
|
|
25
25
|
import '../../store/state/nonce/nonce.js';
|
|
26
26
|
import '../../store/state/projectSettings/projectSettings.js';
|
|
27
|
+
import { isValidMfaRecoveryCode } from '../../utils/functions/isValidMfaRecoveryCode/isValidMfaRecoveryCode.js';
|
|
27
28
|
import '../../config/ApiEndpoint.js';
|
|
28
29
|
import '../../store/state/user/user.js';
|
|
29
30
|
import '../../locale/locale.js';
|
|
30
|
-
import { isValidMfaRecoveryCode } from '../../utils/functions/isValidMfaRecoveryCode/isValidMfaRecoveryCode.js';
|
|
31
31
|
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
32
32
|
import '../../store/state/primaryWalletId/primaryWalletId.js';
|
|
33
33
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|