@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,104 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
var _path, _path2, _path3, _path4, _g, _path5, _defs;
|
|
5
|
-
var _excluded = ["title", "titleId"];
|
|
6
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
8
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; }
|
|
9
|
-
var SvgWalletClaimHero = function SvgWalletClaimHero(_ref) {
|
|
10
|
-
var title = _ref.title,
|
|
11
|
-
titleId = _ref.titleId,
|
|
12
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
14
|
-
width: 327,
|
|
15
|
-
height: 112,
|
|
16
|
-
viewBox: "0 0 327 112",
|
|
17
|
-
fill: "none",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
-
"aria-labelledby": titleId
|
|
20
|
-
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
21
|
-
id: titleId
|
|
22
|
-
}, title) : null, /*#__PURE__*/React.createElement("g", {
|
|
23
|
-
clipPath: "url(#wallet-claim-hero_svg__a)"
|
|
24
|
-
}, /*#__PURE__*/React.createElement("mask", {
|
|
25
|
-
id: "wallet-claim-hero_svg__b",
|
|
26
|
-
style: {
|
|
27
|
-
maskType: "luminance"
|
|
28
|
-
},
|
|
29
|
-
maskUnits: "userSpaceOnUse",
|
|
30
|
-
x: 0,
|
|
31
|
-
y: 0,
|
|
32
|
-
width: 327,
|
|
33
|
-
height: 112
|
|
34
|
-
}, _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
35
|
-
d: "M315 0H12C5.373 0 0 5.373 0 12v88c0 6.627 5.373 12 12 12h303c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12Z",
|
|
36
|
-
fill: "#fff"
|
|
37
|
-
}))), /*#__PURE__*/React.createElement("g", {
|
|
38
|
-
mask: "url(#wallet-claim-hero_svg__b)"
|
|
39
|
-
}, _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
40
|
-
d: "M164 228c62.96 0 114-51.04 114-114S226.96 0 164 0 50 51.04 50 114s51.04 114 114 114Z",
|
|
41
|
-
fill: "url(#wallet-claim-hero_svg__c)",
|
|
42
|
-
fillOpacity: 0.12
|
|
43
|
-
})), /*#__PURE__*/React.createElement("mask", {
|
|
44
|
-
id: "wallet-claim-hero_svg__d",
|
|
45
|
-
style: {
|
|
46
|
-
maskType: "luminance"
|
|
47
|
-
},
|
|
48
|
-
maskUnits: "userSpaceOnUse",
|
|
49
|
-
x: 86,
|
|
50
|
-
y: 29,
|
|
51
|
-
width: 40,
|
|
52
|
-
height: 40
|
|
53
|
-
}, _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
54
|
-
d: "M116.91 29 86 37.282l8.282 30.91 30.91-8.282L116.91 29Z",
|
|
55
|
-
fill: "#fff"
|
|
56
|
-
}))), /*#__PURE__*/React.createElement("g", {
|
|
57
|
-
mask: "url(#wallet-claim-hero_svg__d)"
|
|
58
|
-
}, /*#__PURE__*/React.createElement("mask", {
|
|
59
|
-
id: "wallet-claim-hero_svg__e",
|
|
60
|
-
style: {
|
|
61
|
-
maskType: "luminance"
|
|
62
|
-
},
|
|
63
|
-
maskUnits: "userSpaceOnUse",
|
|
64
|
-
x: 90,
|
|
65
|
-
y: 33,
|
|
66
|
-
width: 31,
|
|
67
|
-
height: 31
|
|
68
|
-
}, _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
|
|
69
|
-
d: "M119.763 44.8c-2.097-7.824-10.139-12.467-17.963-10.371-7.824 2.096-12.468 10.139-10.371 17.963 2.096 7.824 10.139 12.467 17.963 10.37 7.824-2.096 12.467-10.138 10.371-17.962Z",
|
|
70
|
-
fill: "#fff"
|
|
71
|
-
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
72
|
-
mask: "url(#wallet-claim-hero_svg__e)"
|
|
73
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
74
|
-
fillRule: "evenodd",
|
|
75
|
-
clipRule: "evenodd",
|
|
76
|
-
d: "M118.709 55.166a14.617 14.617 0 0 0 1.054-10.366c-2.097-7.824-10.139-12.467-17.963-10.371-7.825 2.096-12.468 10.139-10.371 17.963a14.612 14.612 0 0 0 6.097 8.451c1.808-3.916 6.565-6.42 9.647-7.247 3.083-.826 7.955-1.146 11.536 1.57Zm-19.375-8.688a5.5 5.5 0 1 1 10.625-2.848 5.5 5.5 0 0 1-10.625 2.848Z",
|
|
77
|
-
fill: "#4779FF"
|
|
78
|
-
})))), _path5 || (_path5 = /*#__PURE__*/React.createElement("path", {
|
|
79
|
-
fillRule: "evenodd",
|
|
80
|
-
clipRule: "evenodd",
|
|
81
|
-
d: "m207.67 19.875-.767 2.862a9.86 9.86 0 0 0-5.861 6.61c-1.412 5.269 1.715 10.684 6.984 12.096 5.268 1.412 10.684-1.715 12.096-6.984a9.862 9.862 0 0 0-1.771-8.655l.767-2.861a5.926 5.926 0 0 0-11.448-3.068Zm9.321 2.498-.444 1.655a9.844 9.844 0 0 0-3.409-1.665 9.847 9.847 0 0 0-3.785-.262l.444-1.656a3.723 3.723 0 1 1 7.194 1.928Zm-3.445 8.52a2.57 2.57 0 0 1-2.019 1.862l-.539 2.011a1.1 1.1 0 1 1-2.127-.57l.539-2.01a2.569 2.569 0 1 1 4.146-1.294ZM164.89 32.064a6.223 6.223 0 0 0-1.78 0c-.68.098-1.313.337-1.815.527l-.135.05-16.681 6.256-.406.152c-1.922.718-3.61 1.348-4.91 2.493a9.333 9.333 0 0 0-2.552 3.683c-.616 1.62-.614 3.421-.611 5.473l.001.434V66.01c0 8.793 4.782 16.125 9.952 21.51 5.205 5.422 11.159 9.252 14.308 11.089l.127.075c.575.337 1.321.775 2.307.987a6.624 6.624 0 0 0 2.61 0c.986-.212 1.732-.65 2.307-.987l.127-.075c3.149-1.837 9.103-5.667 14.308-11.088 5.17-5.386 9.952-12.718 9.952-21.511V51.13l.001-.433c.003-2.052.005-3.854-.611-5.473a9.333 9.333 0 0 0-2.552-3.683c-1.3-1.145-2.988-1.775-4.91-2.493-.134-.05-.27-.1-.406-.152l-16.681-6.255-.135-.05c-.502-.19-1.135-.43-1.815-.528Zm-6.946 16.362a9.282 9.282 0 1 1 13.127 13.128 9.282 9.282 0 0 1-13.127-13.128Zm3.282 3.282a4.64 4.64 0 1 1 6.563 6.563 4.64 4.64 0 0 1-6.563-6.563Zm3.515 14.885a11.63 11.63 0 0 1-2.945-.377v15.598h4.641v-4.51h4.601v-4.642h-4.601V66.47a11.69 11.69 0 0 1-1.696.123Z",
|
|
82
|
-
fill: "#4779FF"
|
|
83
|
-
})))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
84
|
-
id: "wallet-claim-hero_svg__c",
|
|
85
|
-
x1: 164,
|
|
86
|
-
y1: 0,
|
|
87
|
-
x2: 164,
|
|
88
|
-
y2: 93.5,
|
|
89
|
-
gradientUnits: "userSpaceOnUse"
|
|
90
|
-
}, /*#__PURE__*/React.createElement("stop", {
|
|
91
|
-
stopColor: "#4779FF"
|
|
92
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
93
|
-
offset: 1,
|
|
94
|
-
stopColor: "#4779FF",
|
|
95
|
-
stopOpacity: 0
|
|
96
|
-
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
97
|
-
id: "wallet-claim-hero_svg__a"
|
|
98
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
99
|
-
fill: "#fff",
|
|
100
|
-
d: "M0 0h327v112H0z"
|
|
101
|
-
})))));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export { SvgWalletClaimHero as ReactComponent };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const generateRandomPassword = (length = 20) => {
|
|
7
|
-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()';
|
|
8
|
-
let generatedPassword = '';
|
|
9
|
-
for (let i = 0; i < length; i++) {
|
|
10
|
-
generatedPassword += characters.charAt(Math.floor(Math.random() * characters.length));
|
|
11
|
-
}
|
|
12
|
-
return generatedPassword;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
exports.generateRandomPassword = generateRandomPassword;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateRandomPassword: (length?: number) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
const generateRandomPassword = (length = 20) => {
|
|
3
|
-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()';
|
|
4
|
-
let generatedPassword = '';
|
|
5
|
-
for (let i = 0; i < length; i++) {
|
|
6
|
-
generatedPassword += characters.charAt(Math.floor(Math.random() * characters.length));
|
|
7
|
-
}
|
|
8
|
-
return generatedPassword;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { generateRandomPassword };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { generateRandomPassword } from './generateRandomPassword';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { validatePassword } from './validatePassword';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const validatePassword = (password) => {
|
|
7
|
-
const hasProperLength = password.length >= 6;
|
|
8
|
-
const hasUpperCase = /[A-Z]/.test(password);
|
|
9
|
-
const hasLowerCase = /[a-z]/.test(password);
|
|
10
|
-
const hasNumbers = /\d/.test(password);
|
|
11
|
-
const hasNonalphas = /\W/.test(password);
|
|
12
|
-
let strength = [
|
|
13
|
-
hasLowerCase,
|
|
14
|
-
hasUpperCase,
|
|
15
|
-
hasNumbers,
|
|
16
|
-
hasNonalphas,
|
|
17
|
-
hasProperLength,
|
|
18
|
-
].filter(Boolean).length;
|
|
19
|
-
if (strength >= 3 && password.length >= 12) {
|
|
20
|
-
strength = 5;
|
|
21
|
-
}
|
|
22
|
-
const securityCriteria = [
|
|
23
|
-
{
|
|
24
|
-
description: 'Password is atleast 6 characters in length',
|
|
25
|
-
key: 'hasProperLength',
|
|
26
|
-
value: hasProperLength,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
description: 'Contains at least one uppercase letter',
|
|
30
|
-
key: 'hasUpperCase',
|
|
31
|
-
value: hasUpperCase,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
description: 'Contains at least one lowercase letter',
|
|
35
|
-
key: 'hasLowerCase',
|
|
36
|
-
value: hasLowerCase,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: 'Contains at least one number',
|
|
40
|
-
key: 'hasNumbers',
|
|
41
|
-
value: hasNumbers,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: 'Contains at least one non-alphanumeric character',
|
|
45
|
-
key: 'hasNonalphas',
|
|
46
|
-
value: hasNonalphas,
|
|
47
|
-
},
|
|
48
|
-
];
|
|
49
|
-
return {
|
|
50
|
-
hasLowerCase,
|
|
51
|
-
hasNonalphas,
|
|
52
|
-
hasNumbers,
|
|
53
|
-
hasProperLength,
|
|
54
|
-
hasUpperCase,
|
|
55
|
-
securityCriteria,
|
|
56
|
-
strength,
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
exports.validatePassword = validatePassword;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const validatePassword: (password: string) => {
|
|
2
|
-
hasLowerCase: boolean;
|
|
3
|
-
hasNonalphas: boolean;
|
|
4
|
-
hasNumbers: boolean;
|
|
5
|
-
hasProperLength: boolean;
|
|
6
|
-
hasUpperCase: boolean;
|
|
7
|
-
securityCriteria: {
|
|
8
|
-
description: string;
|
|
9
|
-
key: string;
|
|
10
|
-
value: boolean;
|
|
11
|
-
}[];
|
|
12
|
-
strength: number;
|
|
13
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
const validatePassword = (password) => {
|
|
3
|
-
const hasProperLength = password.length >= 6;
|
|
4
|
-
const hasUpperCase = /[A-Z]/.test(password);
|
|
5
|
-
const hasLowerCase = /[a-z]/.test(password);
|
|
6
|
-
const hasNumbers = /\d/.test(password);
|
|
7
|
-
const hasNonalphas = /\W/.test(password);
|
|
8
|
-
let strength = [
|
|
9
|
-
hasLowerCase,
|
|
10
|
-
hasUpperCase,
|
|
11
|
-
hasNumbers,
|
|
12
|
-
hasNonalphas,
|
|
13
|
-
hasProperLength,
|
|
14
|
-
].filter(Boolean).length;
|
|
15
|
-
if (strength >= 3 && password.length >= 12) {
|
|
16
|
-
strength = 5;
|
|
17
|
-
}
|
|
18
|
-
const securityCriteria = [
|
|
19
|
-
{
|
|
20
|
-
description: 'Password is atleast 6 characters in length',
|
|
21
|
-
key: 'hasProperLength',
|
|
22
|
-
value: hasProperLength,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
description: 'Contains at least one uppercase letter',
|
|
26
|
-
key: 'hasUpperCase',
|
|
27
|
-
value: hasUpperCase,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
description: 'Contains at least one lowercase letter',
|
|
31
|
-
key: 'hasLowerCase',
|
|
32
|
-
value: hasLowerCase,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
description: 'Contains at least one number',
|
|
36
|
-
key: 'hasNumbers',
|
|
37
|
-
value: hasNumbers,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
description: 'Contains at least one non-alphanumeric character',
|
|
41
|
-
key: 'hasNonalphas',
|
|
42
|
-
value: hasNonalphas,
|
|
43
|
-
},
|
|
44
|
-
];
|
|
45
|
-
return {
|
|
46
|
-
hasLowerCase,
|
|
47
|
-
hasNonalphas,
|
|
48
|
-
hasNumbers,
|
|
49
|
-
hasProperLength,
|
|
50
|
-
hasUpperCase,
|
|
51
|
-
securityCriteria,
|
|
52
|
-
strength,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export { validatePassword };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const findCoinbaseMPCWallet = (walletOptions) => walletOptions === null || walletOptions === void 0 ? void 0 : walletOptions.find(({ key }) => key === 'coinbasempc');
|
|
7
|
-
|
|
8
|
-
exports.findCoinbaseMPCWallet = findCoinbaseMPCWallet;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { findCoinbaseMPCWallet } from './findCoinbaseMPCWallet';
|
package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
7
|
-
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
8
|
-
require('@dynamic-labs/utils');
|
|
9
|
-
require('../../../config/ApiEndpoint.cjs');
|
|
10
|
-
require('../../constants/values.cjs');
|
|
11
|
-
require('@dynamic-labs/multi-wallet');
|
|
12
|
-
require('../../../shared/logger.cjs');
|
|
13
|
-
require('../../constants/colors.cjs');
|
|
14
|
-
require('react-international-phone');
|
|
15
|
-
require('@dynamic-labs/iconic');
|
|
16
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
17
|
-
require('react');
|
|
18
|
-
require('react/jsx-runtime');
|
|
19
|
-
require('../../../context/ViewContext/ViewContext.cjs');
|
|
20
|
-
require('@dynamic-labs/wallet-book');
|
|
21
|
-
require('../../../shared/consts/index.cjs');
|
|
22
|
-
require('../../../store/state/nonce/nonce.cjs');
|
|
23
|
-
require('../../../store/state/projectSettings/projectSettings.cjs');
|
|
24
|
-
require('../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
25
|
-
require('../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
26
|
-
require('../../../store/state/user/user.cjs');
|
|
27
|
-
var embeddedWallets = require('../../../data/api/embeddedWallets/embeddedWallets.cjs');
|
|
28
|
-
require('../../../locale/locale.cjs');
|
|
29
|
-
|
|
30
|
-
const getCoinbaseMPCConnectorFetchers = ({ environmentId }) => {
|
|
31
|
-
const fetchAuthToken = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
-
const token = yield embeddedWallets.getWalletAuthToken({
|
|
33
|
-
environmentId,
|
|
34
|
-
type: sdkApiCore.EmbeddedWalletAuthType.Mpc,
|
|
35
|
-
});
|
|
36
|
-
return token || '';
|
|
37
|
-
});
|
|
38
|
-
const fetchBackupCode = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
-
const token = yield embeddedWallets.getEmbeddedWalletBackup({
|
|
40
|
-
environmentId,
|
|
41
|
-
});
|
|
42
|
-
return token || '';
|
|
43
|
-
});
|
|
44
|
-
const fetchPasscode = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
-
const token = yield embeddedWallets.getEmbeddedWalletPasscode({
|
|
46
|
-
environmentId,
|
|
47
|
-
});
|
|
48
|
-
return token || '';
|
|
49
|
-
});
|
|
50
|
-
return { fetchAuthToken, fetchBackupCode, fetchPasscode };
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.getCoinbaseMPCConnectorFetchers = getCoinbaseMPCConnectorFetchers;
|
package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
environmentId: string;
|
|
3
|
-
};
|
|
4
|
-
export declare const getCoinbaseMPCConnectorFetchers: ({ environmentId }: Props) => {
|
|
5
|
-
fetchAuthToken: () => Promise<string>;
|
|
6
|
-
fetchBackupCode: () => Promise<string>;
|
|
7
|
-
fetchPasscode: () => Promise<string>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
3
|
-
import { EmbeddedWalletAuthType } from '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import '@dynamic-labs/utils';
|
|
5
|
-
import '../../../config/ApiEndpoint.js';
|
|
6
|
-
import '../../constants/values.js';
|
|
7
|
-
import '@dynamic-labs/multi-wallet';
|
|
8
|
-
import '../../../shared/logger.js';
|
|
9
|
-
import '../../constants/colors.js';
|
|
10
|
-
import 'react-international-phone';
|
|
11
|
-
import '@dynamic-labs/iconic';
|
|
12
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
13
|
-
import 'react';
|
|
14
|
-
import 'react/jsx-runtime';
|
|
15
|
-
import '../../../context/ViewContext/ViewContext.js';
|
|
16
|
-
import '@dynamic-labs/wallet-book';
|
|
17
|
-
import '../../../shared/consts/index.js';
|
|
18
|
-
import '../../../store/state/nonce/nonce.js';
|
|
19
|
-
import '../../../store/state/projectSettings/projectSettings.js';
|
|
20
|
-
import '../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
21
|
-
import '../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
22
|
-
import '../../../store/state/user/user.js';
|
|
23
|
-
import { getWalletAuthToken, getEmbeddedWalletBackup, getEmbeddedWalletPasscode } from '../../../data/api/embeddedWallets/embeddedWallets.js';
|
|
24
|
-
import '../../../locale/locale.js';
|
|
25
|
-
|
|
26
|
-
const getCoinbaseMPCConnectorFetchers = ({ environmentId }) => {
|
|
27
|
-
const fetchAuthToken = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
-
const token = yield getWalletAuthToken({
|
|
29
|
-
environmentId,
|
|
30
|
-
type: EmbeddedWalletAuthType.Mpc,
|
|
31
|
-
});
|
|
32
|
-
return token || '';
|
|
33
|
-
});
|
|
34
|
-
const fetchBackupCode = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
-
const token = yield getEmbeddedWalletBackup({
|
|
36
|
-
environmentId,
|
|
37
|
-
});
|
|
38
|
-
return token || '';
|
|
39
|
-
});
|
|
40
|
-
const fetchPasscode = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
-
const token = yield getEmbeddedWalletPasscode({
|
|
42
|
-
environmentId,
|
|
43
|
-
});
|
|
44
|
-
return token || '';
|
|
45
|
-
});
|
|
46
|
-
return { fetchAuthToken, fetchBackupCode, fetchPasscode };
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export { getCoinbaseMPCConnectorFetchers };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getCoinbaseMPCConnectorFetchers } from './getCoinbaseMPCConnectorFetchers';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
7
|
-
var isProviderEnabled = require('../isProviderEnabled/isProviderEnabled.cjs');
|
|
8
|
-
|
|
9
|
-
const isCoinbaseWaasEnabled = (projectSettings) => {
|
|
10
|
-
var _a;
|
|
11
|
-
return isProviderEnabled.isProviderEnabled((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [], sdkApiCore.ProviderEnum.CoinbaseWaas);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.isCoinbaseWaasEnabled = isCoinbaseWaasEnabled;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
3
|
-
import { isProviderEnabled } from '../isProviderEnabled/isProviderEnabled.js';
|
|
4
|
-
|
|
5
|
-
const isCoinbaseWaasEnabled = (projectSettings) => {
|
|
6
|
-
var _a;
|
|
7
|
-
return isProviderEnabled((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.providers) !== null && _a !== void 0 ? _a : [], ProviderEnum.CoinbaseWaas);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { isCoinbaseWaasEnabled };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { requiresPasswordForEmbeddedWallet } from './requiresPasswordForEmbeddedWallet';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const requiresPasswordForEmbeddedWallet = (projectSettings) => {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
const embeddedWalletsPasswordSettings = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.supportedSecurityMethods) === null || _b === void 0 ? void 0 : _b.password;
|
|
9
|
-
if (!embeddedWalletsPasswordSettings) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
return (embeddedWalletsPasswordSettings.isEnabled &&
|
|
13
|
-
embeddedWalletsPasswordSettings.isDefault);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.requiresPasswordForEmbeddedWallet = requiresPasswordForEmbeddedWallet;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
const requiresPasswordForEmbeddedWallet = (projectSettings) => {
|
|
3
|
-
var _a, _b;
|
|
4
|
-
const embeddedWalletsPasswordSettings = (_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets) === null || _a === void 0 ? void 0 : _a.supportedSecurityMethods) === null || _b === void 0 ? void 0 : _b.password;
|
|
5
|
-
if (!embeddedWalletsPasswordSettings) {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
return (embeddedWalletsPasswordSettings.isEnabled &&
|
|
9
|
-
embeddedWalletsPasswordSettings.isDefault);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { requiresPasswordForEmbeddedWallet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { requiresPasswordForEmbeddedWalletOnSignup } from './requiresPasswordForEmbeddedWalletOnSignup';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
require('@dynamic-labs/sdk-api-core');
|
|
7
|
-
require('../../constants/values.cjs');
|
|
8
|
-
require('@dynamic-labs/utils');
|
|
9
|
-
require('../../../../../_virtual/_tslib.cjs');
|
|
10
|
-
require('@dynamic-labs/multi-wallet');
|
|
11
|
-
require('../../../shared/logger.cjs');
|
|
12
|
-
require('../../constants/colors.cjs');
|
|
13
|
-
require('react-international-phone');
|
|
14
|
-
require('@dynamic-labs/iconic');
|
|
15
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
16
|
-
require('react');
|
|
17
|
-
require('react/jsx-runtime');
|
|
18
|
-
require('../../../context/ViewContext/ViewContext.cjs');
|
|
19
|
-
require('@dynamic-labs/wallet-book');
|
|
20
|
-
require('../../../shared/consts/index.cjs');
|
|
21
|
-
require('../../../store/state/nonce/nonce.cjs');
|
|
22
|
-
require('../../../store/state/projectSettings/projectSettings.cjs');
|
|
23
|
-
var requiresPasswordForEmbeddedWallet = require('../requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.cjs');
|
|
24
|
-
require('../../../config/ApiEndpoint.cjs');
|
|
25
|
-
require('../../../store/state/user/user.cjs');
|
|
26
|
-
require('../../../locale/locale.cjs');
|
|
27
|
-
require('../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
28
|
-
require('../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
29
|
-
|
|
30
|
-
const requiresPasswordForEmbeddedWalletOnSignup = (projectSettings) => {
|
|
31
|
-
const embeddedWalletsSettings = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets;
|
|
32
|
-
if (!embeddedWalletsSettings) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
return (requiresPasswordForEmbeddedWallet.requiresPasswordForEmbeddedWallet(projectSettings) &&
|
|
36
|
-
Boolean(embeddedWalletsSettings.forceAuthenticatorAtSignup));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
exports.requiresPasswordForEmbeddedWalletOnSignup = requiresPasswordForEmbeddedWalletOnSignup;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import '@dynamic-labs/sdk-api-core';
|
|
3
|
-
import '../../constants/values.js';
|
|
4
|
-
import '@dynamic-labs/utils';
|
|
5
|
-
import '../../../../../_virtual/_tslib.js';
|
|
6
|
-
import '@dynamic-labs/multi-wallet';
|
|
7
|
-
import '../../../shared/logger.js';
|
|
8
|
-
import '../../constants/colors.js';
|
|
9
|
-
import 'react-international-phone';
|
|
10
|
-
import '@dynamic-labs/iconic';
|
|
11
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
-
import 'react';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
|
-
import '../../../context/ViewContext/ViewContext.js';
|
|
15
|
-
import '@dynamic-labs/wallet-book';
|
|
16
|
-
import '../../../shared/consts/index.js';
|
|
17
|
-
import '../../../store/state/nonce/nonce.js';
|
|
18
|
-
import '../../../store/state/projectSettings/projectSettings.js';
|
|
19
|
-
import { requiresPasswordForEmbeddedWallet } from '../requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.js';
|
|
20
|
-
import '../../../config/ApiEndpoint.js';
|
|
21
|
-
import '../../../store/state/user/user.js';
|
|
22
|
-
import '../../../locale/locale.js';
|
|
23
|
-
import '../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
24
|
-
import '../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
25
|
-
|
|
26
|
-
const requiresPasswordForEmbeddedWalletOnSignup = (projectSettings) => {
|
|
27
|
-
const embeddedWalletsSettings = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk.embeddedWallets;
|
|
28
|
-
if (!embeddedWalletsSettings) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
return (requiresPasswordForEmbeddedWallet(projectSettings) &&
|
|
32
|
-
Boolean(embeddedWalletsSettings.forceAuthenticatorAtSignup));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export { requiresPasswordForEmbeddedWalletOnSignup };
|
package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useCoinbaseMPC } from './useCoinbaseMPC';
|