@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
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
3
|
-
import { useCallback } from 'react';
|
|
4
|
-
import '../../../context/DynamicContext/DynamicContext.js';
|
|
5
|
-
import '@dynamic-labs/sdk-api-core';
|
|
6
|
-
import { logger } from '../../../shared/logger.js';
|
|
7
|
-
import '@dynamic-labs/iconic';
|
|
8
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
9
|
-
import 'react/jsx-runtime';
|
|
10
|
-
import { useViewContext } from '../../../context/ViewContext/ViewContext.js';
|
|
11
|
-
import '@dynamic-labs/wallet-book';
|
|
12
|
-
import '@dynamic-labs/utils';
|
|
13
|
-
import '../../constants/colors.js';
|
|
14
|
-
import '../../constants/values.js';
|
|
15
|
-
import '../../../shared/consts/index.js';
|
|
16
|
-
import { dynamicEvents } from '../../../events/dynamicEvents.js';
|
|
17
|
-
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
18
|
-
import '../../../context/ErrorContext/ErrorContext.js';
|
|
19
|
-
import '@dynamic-labs/multi-wallet';
|
|
20
|
-
import 'react-international-phone';
|
|
21
|
-
import '../../../store/state/nonce/nonce.js';
|
|
22
|
-
import '../../../store/state/projectSettings/projectSettings.js';
|
|
23
|
-
import '../../../config/ApiEndpoint.js';
|
|
24
|
-
import { claimEmbeddedWallet } from '../../../data/api/embeddedWallets/embeddedWallets.js';
|
|
25
|
-
import '../../../store/state/user/user.js';
|
|
26
|
-
import '../../../locale/locale.js';
|
|
27
|
-
import '../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
28
|
-
import '../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
29
|
-
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
-
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
|
-
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
32
|
-
import '../../../context/VerificationContext/VerificationContext.js';
|
|
33
|
-
import 'react-dom';
|
|
34
|
-
import '../../functions/compareChains/compareChains.js';
|
|
35
|
-
import '../../../context/ThemeContext/ThemeContext.js';
|
|
36
|
-
import '../useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
37
|
-
import 'bs58';
|
|
38
|
-
import '@dynamic-labs/types';
|
|
39
|
-
import '../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
40
|
-
import '../../../context/LoadingContext/LoadingContext.js';
|
|
41
|
-
import '../../../context/WalletContext/WalletContext.js';
|
|
42
|
-
import '../useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
43
|
-
import 'yup';
|
|
44
|
-
import '../../../context/MockContext/MockContext.js';
|
|
45
|
-
import '../../../views/CollectUserDataView/useFields.js';
|
|
46
|
-
import '../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
47
|
-
import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
48
|
-
import '@dynamic-labs/rpc-providers';
|
|
49
|
-
import '../../../store/state/loadingAndLifecycle.js';
|
|
50
|
-
import '../../../store/state/walletOptions/walletOptions.js';
|
|
51
|
-
import 'react-i18next';
|
|
52
|
-
import '../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
53
|
-
import '../../../components/Alert/Alert.js';
|
|
54
|
-
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
55
|
-
import '../../../components/IconButton/IconButton.js';
|
|
56
|
-
import '../../../components/InlineWidget/InlineWidget.js';
|
|
57
|
-
import '../../../components/Input/Input.js';
|
|
58
|
-
import '../../../components/IsBrowser/IsBrowser.js';
|
|
59
|
-
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
60
|
-
import '../../../components/OverlayCard/OverlayCard.js';
|
|
61
|
-
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
62
|
-
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
63
|
-
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
64
|
-
import '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
65
|
-
import '../../../components/Popper/Popper/Popper.js';
|
|
66
|
-
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
67
|
-
import 'react-focus-lock';
|
|
68
|
-
import 'qrcode';
|
|
69
|
-
import 'formik';
|
|
70
|
-
import '../useSubdomainCheck/useSubdomainCheck.js';
|
|
71
|
-
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
72
|
-
import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
73
|
-
import '../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
74
|
-
import '../../../context/ConnectWithOtpContext/constants.js';
|
|
75
|
-
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
76
|
-
import '@hcaptcha/react-hcaptcha';
|
|
77
|
-
import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
78
|
-
import '../../../context/FooterAnimationContext/index.js';
|
|
79
|
-
import '../../../context/PasskeyContext/PasskeyContext.js';
|
|
80
|
-
import '../../../store/state/sendBalances.js';
|
|
81
|
-
import '../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
82
|
-
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
83
|
-
import '../../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
84
|
-
import '../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
85
|
-
import '../../../context/OnrampContext/OnrampContext.js';
|
|
86
|
-
import '../../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js';
|
|
87
|
-
import '../../../../index.js';
|
|
88
|
-
import '../../../store/state/tokenBalances.js';
|
|
89
|
-
import '../../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
90
|
-
import { useInternalDynamicContext } from '../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
91
|
-
|
|
92
|
-
const useEmbeddedWalletPassword = () => {
|
|
93
|
-
const { primaryWallet, setShowAuthFlow, environmentId } = useInternalDynamicContext();
|
|
94
|
-
const { pushView } = useViewContext();
|
|
95
|
-
const createPassword = useCallback((isClaim, isSignUp) => __awaiter(void 0, void 0, void 0, function* () {
|
|
96
|
-
setShowAuthFlow(true, { ignoreIfIsEmbeddedWidget: false });
|
|
97
|
-
if (isClaim) {
|
|
98
|
-
pushView('wallet-claim-intro');
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
pushView('create-password-view', {
|
|
102
|
-
isSignUp,
|
|
103
|
-
notCalledFromWalletUtils: true,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
return new Promise((resolve, reject) => {
|
|
107
|
-
dynamicEvents.once('embeddedWalletCreatePasswordCompleted', (password) => resolve(password));
|
|
108
|
-
dynamicEvents.once('embeddedWalletCreatePasswordFailed', (error) => reject(error));
|
|
109
|
-
});
|
|
110
|
-
}), [setShowAuthFlow, pushView]);
|
|
111
|
-
const claimWallet = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
112
|
-
try {
|
|
113
|
-
if (!primaryWallet) {
|
|
114
|
-
throw new Error('No primary wallet');
|
|
115
|
-
}
|
|
116
|
-
const refreshedToken = yield claimEmbeddedWallet({
|
|
117
|
-
environmentId,
|
|
118
|
-
walletId: primaryWallet.id,
|
|
119
|
-
});
|
|
120
|
-
// if an error occurs while calling the api, the user won't be logged out
|
|
121
|
-
if ('code' in refreshedToken) {
|
|
122
|
-
logger.error('Error updating jwt after claiming wallet');
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
catch (error) {
|
|
127
|
-
logger.error('Error claiming wallet', error);
|
|
128
|
-
throw new Error('Error claiming wallet');
|
|
129
|
-
}
|
|
130
|
-
}), [environmentId, primaryWallet]);
|
|
131
|
-
return {
|
|
132
|
-
claimWallet,
|
|
133
|
-
createPassword,
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export { useEmbeddedWalletPassword };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { validateMPCProviderEnabled } from './validateMPCProviderEnabled';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var isCoinbaseWaasEnabled = require('../../functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.cjs');
|
|
7
|
-
|
|
8
|
-
const validateMPCProviderEnabled = (projectSettings) => {
|
|
9
|
-
if (!projectSettings) {
|
|
10
|
-
throw new Error('Project settings are missing');
|
|
11
|
-
}
|
|
12
|
-
const isCoinbaseWaaSProviderEnabled = isCoinbaseWaasEnabled.isCoinbaseWaasEnabled(projectSettings);
|
|
13
|
-
if (!isCoinbaseWaaSProviderEnabled) {
|
|
14
|
-
throw new Error('No embedded wallet is enabled. Go to the dashboard and make sure to have both Embedded wallets and at least one EVM network enabled. Also, check if EthereumWalletConnectors is in the DynamicContextProvider > settings > walletConnectors.');
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.validateMPCProviderEnabled = validateMPCProviderEnabled;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { isCoinbaseWaasEnabled } from '../../functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.js';
|
|
3
|
-
|
|
4
|
-
const validateMPCProviderEnabled = (projectSettings) => {
|
|
5
|
-
if (!projectSettings) {
|
|
6
|
-
throw new Error('Project settings are missing');
|
|
7
|
-
}
|
|
8
|
-
const isCoinbaseWaaSProviderEnabled = isCoinbaseWaasEnabled(projectSettings);
|
|
9
|
-
if (!isCoinbaseWaaSProviderEnabled) {
|
|
10
|
-
throw new Error('No embedded wallet is enabled. Go to the dashboard and make sure to have both Embedded wallets and at least one EVM network enabled. Also, check if EthereumWalletConnectors is in the DynamicContextProvider > settings > walletConnectors.');
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { validateMPCProviderEnabled };
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var reactI18next = require('react-i18next');
|
|
8
|
-
require('@dynamic-labs/utils');
|
|
9
|
-
require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
10
|
-
require('../../components/Alert/Alert.cjs');
|
|
11
|
-
require('react');
|
|
12
|
-
require('../../events/dynamicEvents.cjs');
|
|
13
|
-
require('../../../../_virtual/_tslib.cjs');
|
|
14
|
-
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
15
|
-
require('@dynamic-labs/sdk-api-core');
|
|
16
|
-
require('../../shared/logger.cjs');
|
|
17
|
-
require('@dynamic-labs/iconic');
|
|
18
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
19
|
-
var altKey = require('../../shared/assets/alt-key.cjs');
|
|
20
|
-
var close = require('../../shared/assets/close.cjs');
|
|
21
|
-
var lock = require('../../shared/assets/lock.cjs');
|
|
22
|
-
var walletClaimHero = require('../../shared/assets/wallet-claim-hero.cjs');
|
|
23
|
-
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
24
|
-
require('@dynamic-labs/wallet-book');
|
|
25
|
-
require('../../utils/constants/colors.cjs');
|
|
26
|
-
require('../../utils/constants/values.cjs');
|
|
27
|
-
require('../../shared/consts/index.cjs');
|
|
28
|
-
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
29
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
30
|
-
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
31
|
-
require('@dynamic-labs/multi-wallet');
|
|
32
|
-
require('react-international-phone');
|
|
33
|
-
require('../../store/state/nonce/nonce.cjs');
|
|
34
|
-
require('../../store/state/projectSettings/projectSettings.cjs');
|
|
35
|
-
require('../../config/ApiEndpoint.cjs');
|
|
36
|
-
require('../../store/state/user/user.cjs');
|
|
37
|
-
require('../../locale/locale.cjs');
|
|
38
|
-
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
39
|
-
require('../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
40
|
-
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
41
|
-
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
42
|
-
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
43
|
-
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
44
|
-
require('react-dom');
|
|
45
|
-
require('../../utils/functions/compareChains/compareChains.cjs');
|
|
46
|
-
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
47
|
-
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
|
|
48
|
-
require('bs58');
|
|
49
|
-
require('@dynamic-labs/types');
|
|
50
|
-
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
51
|
-
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
52
|
-
require('../../context/WalletContext/WalletContext.cjs');
|
|
53
|
-
require('../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
54
|
-
require('yup');
|
|
55
|
-
require('../../context/MockContext/MockContext.cjs');
|
|
56
|
-
require('../CollectUserDataView/useFields.cjs');
|
|
57
|
-
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
58
|
-
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
59
|
-
require('@dynamic-labs/rpc-providers');
|
|
60
|
-
require('../../store/state/loadingAndLifecycle.cjs');
|
|
61
|
-
require('../../store/state/walletOptions/walletOptions.cjs');
|
|
62
|
-
var Typography = require('../../components/Typography/Typography.cjs');
|
|
63
|
-
require('../../context/FooterAnimationContext/index.cjs');
|
|
64
|
-
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
65
|
-
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
66
|
-
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
67
|
-
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
68
|
-
require('../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
69
|
-
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
70
|
-
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
71
|
-
require('react-focus-lock');
|
|
72
|
-
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
73
|
-
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
74
|
-
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
75
|
-
var TypographyButton = require('../../components/TypographyButton/TypographyButton.cjs');
|
|
76
|
-
require('formik');
|
|
77
|
-
require('../../utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs');
|
|
78
|
-
var ModalHeader = require('../../components/ModalHeader/ModalHeader.cjs');
|
|
79
|
-
require('../../store/state/sendBalances.cjs');
|
|
80
|
-
require('../../components/Input/Input.cjs');
|
|
81
|
-
require('../../components/OverlayCard/OverlayCard.cjs');
|
|
82
|
-
require('../TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
83
|
-
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
84
|
-
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
85
|
-
require('../../context/OnrampContext/OnrampContext.cjs');
|
|
86
|
-
require('qrcode');
|
|
87
|
-
require('../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.cjs');
|
|
88
|
-
require('../../../index.cjs');
|
|
89
|
-
require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
90
|
-
require('../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
|
|
91
|
-
require('../../context/ConnectWithOtpContext/constants.cjs');
|
|
92
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
93
|
-
require('@hcaptcha/react-hcaptcha');
|
|
94
|
-
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
95
|
-
require('../../store/state/tokenBalances.cjs');
|
|
96
|
-
require('../../shared/utils/functions/getInitialUrl/getInitialUrl.cjs');
|
|
97
|
-
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
98
|
-
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
99
|
-
require('../../components/Popper/Popper/Popper.cjs');
|
|
100
|
-
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
101
|
-
|
|
102
|
-
const CoinbaseMPCClaimIntro = () => {
|
|
103
|
-
const { setShowAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
|
|
104
|
-
const { pushView } = ViewContext.useViewContext();
|
|
105
|
-
const { t } = reactI18next.useTranslation();
|
|
106
|
-
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { onClick: () => setShowAuthFlow(false), type: 'button', children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
107
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_create_password.intro.title', children: t('dyn_create_password.intro.title') }) }), jsxRuntime.jsx("div", { className: 'mpc-claim-intro', children: jsxRuntime.jsxs("div", { className: 'mpc-claim-intro__body', children: [jsxRuntime.jsx("div", { className: 'mpc-claim-intro__body__description', children: jsxRuntime.jsx(walletClaimHero.ReactComponent, {}) }), jsxRuntime.jsx("div", { className: 'confirm-password-description', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_create_password.intro.description', children: t('dyn_create_password.intro.description.title') }) }), jsxRuntime.jsxs("div", { className: 'mpc-claim-intro__body__card', children: [jsxRuntime.jsxs("div", { className: 'mpc-claim-intro__body__card__statement', children: [jsxRuntime.jsx("div", { className: 'mpc-claim-intro__body__card__icon', children: jsxRuntime.jsx(lock.ReactComponent, {}) }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_create_password.intro.description.additional_protection.title', children: t('dyn_create_password.intro.description.additional_protection.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_create_password.intro.description.additional_protection.description', children: t('dyn_create_password.intro.description.additional_protection.description') })] })] }), jsxRuntime.jsxs("div", { className: 'mpc-claim-intro__body__card__statement', children: [jsxRuntime.jsx("div", { className: 'mpc-claim-intro__body__card__icon', children: jsxRuntime.jsx(altKey.ReactComponent, {}) }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_create_password.intro.description.restore_access.title', children: t('dyn_create_password.intro.description.restore_access.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_create_password.intro.description.restore_access.description', children: t('dyn_create_password.intro.description.restore_access.description') })] })] })] }), jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
|
|
108
|
-
color: 'inherit',
|
|
109
|
-
}, onClick: () => {
|
|
110
|
-
pushView('create-password-view', {
|
|
111
|
-
notCalledFromWalletUtils: true,
|
|
112
|
-
});
|
|
113
|
-
}, copykey: 'dyn_create_password.intro.continue', children: t('dyn_create_password.intro.continue') })] }) })] }));
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
exports.CoinbaseMPCClaimIntro = CoinbaseMPCClaimIntro;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import '@dynamic-labs/utils';
|
|
5
|
-
import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
6
|
-
import '../../components/Alert/Alert.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../events/dynamicEvents.js';
|
|
9
|
-
import '../../../../_virtual/_tslib.js';
|
|
10
|
-
import '../../context/DynamicContext/DynamicContext.js';
|
|
11
|
-
import '@dynamic-labs/sdk-api-core';
|
|
12
|
-
import '../../shared/logger.js';
|
|
13
|
-
import '@dynamic-labs/iconic';
|
|
14
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
15
|
-
import { ReactComponent as SvgAltKey } from '../../shared/assets/alt-key.js';
|
|
16
|
-
import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
|
|
17
|
-
import { ReactComponent as SvgLock } from '../../shared/assets/lock.js';
|
|
18
|
-
import { ReactComponent as SvgWalletClaimHero } from '../../shared/assets/wallet-claim-hero.js';
|
|
19
|
-
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
20
|
-
import '@dynamic-labs/wallet-book';
|
|
21
|
-
import '../../utils/constants/colors.js';
|
|
22
|
-
import '../../utils/constants/values.js';
|
|
23
|
-
import '../../shared/consts/index.js';
|
|
24
|
-
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
25
|
-
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
26
|
-
import '../../context/ErrorContext/ErrorContext.js';
|
|
27
|
-
import '@dynamic-labs/multi-wallet';
|
|
28
|
-
import 'react-international-phone';
|
|
29
|
-
import '../../store/state/nonce/nonce.js';
|
|
30
|
-
import '../../store/state/projectSettings/projectSettings.js';
|
|
31
|
-
import '../../config/ApiEndpoint.js';
|
|
32
|
-
import '../../store/state/user/user.js';
|
|
33
|
-
import '../../locale/locale.js';
|
|
34
|
-
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
35
|
-
import '../../store/state/primaryWalletId/primaryWalletId.js';
|
|
36
|
-
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
37
|
-
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
38
|
-
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
39
|
-
import '../../context/VerificationContext/VerificationContext.js';
|
|
40
|
-
import 'react-dom';
|
|
41
|
-
import '../../utils/functions/compareChains/compareChains.js';
|
|
42
|
-
import '../../context/ThemeContext/ThemeContext.js';
|
|
43
|
-
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
44
|
-
import 'bs58';
|
|
45
|
-
import '@dynamic-labs/types';
|
|
46
|
-
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
47
|
-
import '../../context/LoadingContext/LoadingContext.js';
|
|
48
|
-
import '../../context/WalletContext/WalletContext.js';
|
|
49
|
-
import '../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
50
|
-
import 'yup';
|
|
51
|
-
import '../../context/MockContext/MockContext.js';
|
|
52
|
-
import '../CollectUserDataView/useFields.js';
|
|
53
|
-
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
54
|
-
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
55
|
-
import '@dynamic-labs/rpc-providers';
|
|
56
|
-
import '../../store/state/loadingAndLifecycle.js';
|
|
57
|
-
import '../../store/state/walletOptions/walletOptions.js';
|
|
58
|
-
import { Typography } from '../../components/Typography/Typography.js';
|
|
59
|
-
import '../../context/FooterAnimationContext/index.js';
|
|
60
|
-
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
61
|
-
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
62
|
-
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
63
|
-
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
64
|
-
import '../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
65
|
-
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
66
|
-
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
67
|
-
import 'react-focus-lock';
|
|
68
|
-
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
69
|
-
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
70
|
-
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
71
|
-
import { TypographyButton } from '../../components/TypographyButton/TypographyButton.js';
|
|
72
|
-
import 'formik';
|
|
73
|
-
import '../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
74
|
-
import { ModalHeader } from '../../components/ModalHeader/ModalHeader.js';
|
|
75
|
-
import '../../store/state/sendBalances.js';
|
|
76
|
-
import '../../components/Input/Input.js';
|
|
77
|
-
import '../../components/OverlayCard/OverlayCard.js';
|
|
78
|
-
import '../TransactionConfirmationView/TransactionConfirmationView.js';
|
|
79
|
-
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
80
|
-
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
81
|
-
import '../../context/OnrampContext/OnrampContext.js';
|
|
82
|
-
import 'qrcode';
|
|
83
|
-
import '../../widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js';
|
|
84
|
-
import '../../../index.js';
|
|
85
|
-
import '../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
86
|
-
import '../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
87
|
-
import '../../context/ConnectWithOtpContext/constants.js';
|
|
88
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
89
|
-
import '@hcaptcha/react-hcaptcha';
|
|
90
|
-
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
91
|
-
import '../../store/state/tokenBalances.js';
|
|
92
|
-
import '../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
93
|
-
import '../../components/InlineWidget/InlineWidget.js';
|
|
94
|
-
import '../../components/IsBrowser/IsBrowser.js';
|
|
95
|
-
import '../../components/Popper/Popper/Popper.js';
|
|
96
|
-
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
97
|
-
|
|
98
|
-
const CoinbaseMPCClaimIntro = () => {
|
|
99
|
-
const { setShowAuthFlow } = useInternalDynamicContext();
|
|
100
|
-
const { pushView } = useViewContext();
|
|
101
|
-
const { t } = useTranslation();
|
|
102
|
-
const closeButton = (jsx(IconButton, { onClick: () => setShowAuthFlow(false), type: 'button', children: jsx(SvgClose, {}) }));
|
|
103
|
-
return (jsxs(Fragment, { children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_create_password.intro.title', children: t('dyn_create_password.intro.title') }) }), jsx("div", { className: 'mpc-claim-intro', children: jsxs("div", { className: 'mpc-claim-intro__body', children: [jsx("div", { className: 'mpc-claim-intro__body__description', children: jsx(SvgWalletClaimHero, {}) }), jsx("div", { className: 'confirm-password-description', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_create_password.intro.description', children: t('dyn_create_password.intro.description.title') }) }), jsxs("div", { className: 'mpc-claim-intro__body__card', children: [jsxs("div", { className: 'mpc-claim-intro__body__card__statement', children: [jsx("div", { className: 'mpc-claim-intro__body__card__icon', children: jsx(SvgLock, {}) }), jsxs("div", { children: [jsx(Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_create_password.intro.description.additional_protection.title', children: t('dyn_create_password.intro.description.additional_protection.title') }), jsx(Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_create_password.intro.description.additional_protection.description', children: t('dyn_create_password.intro.description.additional_protection.description') })] })] }), jsxs("div", { className: 'mpc-claim-intro__body__card__statement', children: [jsx("div", { className: 'mpc-claim-intro__body__card__icon', children: jsx(SvgAltKey, {}) }), jsxs("div", { children: [jsx(Typography, { variant: 'body_normal', color: 'primary', style: { letterSpacing: '-0.15px' }, copykey: 'dyn_create_password.intro.description.restore_access.title', children: t('dyn_create_password.intro.description.restore_access.title') }), jsx(Typography, { variant: 'body_small', color: 'secondary', weight: 'regular', copykey: 'dyn_create_password.intro.description.restore_access.description', children: t('dyn_create_password.intro.description.restore_access.description') })] })] })] }), jsx(TypographyButton, { buttonPadding: 'large', buttonVariant: 'brand-primary', typographyProps: {
|
|
104
|
-
color: 'inherit',
|
|
105
|
-
}, onClick: () => {
|
|
106
|
-
pushView('create-password-view', {
|
|
107
|
-
notCalledFromWalletUtils: true,
|
|
108
|
-
});
|
|
109
|
-
}, copykey: 'dyn_create_password.intro.continue', children: t('dyn_create_password.intro.continue') })] }) })] }));
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export { CoinbaseMPCClaimIntro };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CoinbaseMPCClaimIntro } from './CoinbaseMPCClaimIntro';
|