@dynamic-labs/sdk-react-core 4.5.0 → 4.5.2
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 +22 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- 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/NetworkPicker/NetworkPicker.cjs +11 -40
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -6
- package/src/lib/components/NetworkPicker/NetworkPicker.js +12 -41
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +2 -4
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +6 -8
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.cjs +67 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.d.ts +14 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/NetworkDropdown.js +63 -0
- package/src/lib/components/NetworkPicker/components/NetworkDropdown/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.cjs → NetworkSwitchControl/NetworkSwitchControl.cjs} +27 -36
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/NetworkSwitchControl.d.ts +16 -0
- package/src/lib/components/NetworkPicker/components/{EvmNetworkControl/EvmNetworkControl.js → NetworkSwitchControl/NetworkSwitchControl.js} +27 -35
- package/src/lib/components/NetworkPicker/components/NetworkSwitchControl/index.d.ts +1 -0
- package/src/lib/components/Portal/Portal.cjs +3 -2
- package/src/lib/components/Portal/Portal.js +3 -2
- 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 +13 -32
- package/src/lib/locale/en/translation.d.ts +12 -31
- package/src/lib/locale/en/translation.js +13 -32
- 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/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/{currency.cjs → wallet-with-sunglasses.cjs} +14 -26
- package/src/lib/shared/assets/wallet-with-sunglasses.js +34 -0
- 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/isNetworkUnsupported/isNetworkUnsupported.cjs +2 -4
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -2
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +2 -4
- 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/CollectUserDataView.cjs +2 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -4
- 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/NetworkNotSupported/NetworkNotSupported.cjs +3 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +3 -4
- 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 +10 -15
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +11 -16
- 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/DynamicNav/DynamicNav.cjs +2 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +2 -6
- 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 +103 -50
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/ReceiveExternalWalletFunds.js +99 -46
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.cjs +21 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenOption/TokenOption.js +21 -10
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/TokenSelectScreen/TokenSelectScreen.js +3 -3
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.cjs +27 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/calculateFiatBalance.js +23 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/calculateFiatBalance/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.cjs +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/convert/convert.js +4 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.cjs +33 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/convertScientificToDecimal.js +29 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/convertScientificToDecimal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.cjs +27 -22
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.d.ts +6 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/formatValue/formatValue.js +27 -22
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/isFiatToken/isFiatToken.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.cjs +32 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useExchangeRatesForFunding/useExchangeRatesForFunding.js +28 -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/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.cjs +27 -15
- package/src/lib/widgets/DynamicWidget/views/ReceiveExternalWalletFunds/utils/useTokensForFunding/useTokensForFunding.js +27 -15
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.cjs +20 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/EmptyScreen.js +16 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/EmptyScreen/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +10 -23
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +11 -24
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +0 -23
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/index.d.ts +0 -1
- 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/currency.js +0 -46
- 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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EmbeddedWalletChainEnum, ExportEmbeddedWalletResponse, RegisterEmbeddedWalletSessionKeyResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
import { UserProfile } from '../../../..';
|
|
3
3
|
import { CompletePasskeyRecoveryProps, CreateTurnkeyEmbeddedWalletProps, GetUserPasskeysProps, InitPasskeyRecoveryProps, UpdatePasskeyRecoveryEmailProps, UpdateUserPasskeysProps } from './types';
|
|
4
4
|
export declare const createTurnkeyEmbeddedWallet: ({ attestation, challenge, environmentId, chains, passkeyAlias, sessionPublicKey, }: CreateTurnkeyEmbeddedWalletProps) => Promise<UserProfile | undefined>;
|
|
@@ -12,22 +12,6 @@ export declare const exportEmbeddedWallet: ({ environmentId, walletId, activityI
|
|
|
12
12
|
walletId: string;
|
|
13
13
|
activityId: string;
|
|
14
14
|
}) => Promise<ExportEmbeddedWalletResponse>;
|
|
15
|
-
export declare const getWalletAuthToken: ({ environmentId, type, }: {
|
|
16
|
-
environmentId: string;
|
|
17
|
-
type: EmbeddedWalletAuthType | undefined;
|
|
18
|
-
}) => Promise<string | undefined>;
|
|
19
|
-
export declare const getEmbeddedWalletBackup: ({ environmentId, }: {
|
|
20
|
-
environmentId: string;
|
|
21
|
-
}) => Promise<string | undefined>;
|
|
22
|
-
export declare const getEmbeddedWalletPasscode: ({ environmentId, }: {
|
|
23
|
-
environmentId: string;
|
|
24
|
-
}) => Promise<string | undefined>;
|
|
25
|
-
export declare const claimEmbeddedWallet: ({ environmentId, walletId, }: {
|
|
26
|
-
environmentId: string;
|
|
27
|
-
walletId: string;
|
|
28
|
-
}) => Promise<VerifyResponse | {
|
|
29
|
-
code: string;
|
|
30
|
-
}>;
|
|
31
15
|
export declare const registerSessionKey: ({ environmentId, publicKey, prevSessionKeySignature, }: {
|
|
32
16
|
environmentId: string;
|
|
33
17
|
publicKey: string;
|
|
@@ -47,7 +31,7 @@ export declare const createEmbeddedWalletAccount: ({ environmentId, createEmbedd
|
|
|
47
31
|
stampHeaderValue: string;
|
|
48
32
|
};
|
|
49
33
|
};
|
|
50
|
-
}) => Promise<VerifyResponse>;
|
|
34
|
+
}) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
51
35
|
export declare const getDeleteEmbeddedWalletsRequest: ({ environmentId, }: {
|
|
52
36
|
environmentId: string;
|
|
53
37
|
}) => Promise<import("@dynamic-labs/sdk-api-core").TurnkeyDeleteEmbeddedWalletsRequestBody>;
|
|
@@ -127,62 +127,7 @@ const exportEmbeddedWallet = (_g) => __awaiter(void 0, [_g], void 0, function* (
|
|
|
127
127
|
return { exportBundle: '' };
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
const
|
|
131
|
-
try {
|
|
132
|
-
const authToken = yield sdkApi().getAuthToken({
|
|
133
|
-
environmentId,
|
|
134
|
-
type,
|
|
135
|
-
});
|
|
136
|
-
return authToken.token;
|
|
137
|
-
}
|
|
138
|
-
catch (e) {
|
|
139
|
-
yield logResponseError(e, 'Error getting wallet auth token');
|
|
140
|
-
return undefined;
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
const getEmbeddedWalletBackup = (_j) => __awaiter(void 0, [_j], void 0, function* ({ environmentId, }) {
|
|
144
|
-
try {
|
|
145
|
-
const response = yield sdkApi().getEmbeddedWalletBackups({
|
|
146
|
-
environmentId,
|
|
147
|
-
});
|
|
148
|
-
return response.secret;
|
|
149
|
-
}
|
|
150
|
-
catch (e) {
|
|
151
|
-
return undefined;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
const getEmbeddedWalletPasscode = (_k) => __awaiter(void 0, [_k], void 0, function* ({ environmentId, }) {
|
|
155
|
-
try {
|
|
156
|
-
const response = yield sdkApi().getEmbeddedWalletPasscode({
|
|
157
|
-
environmentId,
|
|
158
|
-
});
|
|
159
|
-
return response.secret;
|
|
160
|
-
}
|
|
161
|
-
catch (e) {
|
|
162
|
-
return undefined;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
const claimEmbeddedWallet = (_l) => __awaiter(void 0, [_l], void 0, function* ({ environmentId, walletId, }) {
|
|
166
|
-
var _m;
|
|
167
|
-
try {
|
|
168
|
-
const response = yield sdkApi().claimEmbeddedWallet({
|
|
169
|
-
embeddedWalletPasscodeClaimRequest: {
|
|
170
|
-
walletId,
|
|
171
|
-
},
|
|
172
|
-
environmentId,
|
|
173
|
-
});
|
|
174
|
-
storeAuthTokenAndUser(response);
|
|
175
|
-
return response;
|
|
176
|
-
}
|
|
177
|
-
catch (e) {
|
|
178
|
-
const data = yield logResponseError(e, 'Error claiming embedded wallet');
|
|
179
|
-
if (!((_m = data === null || data === void 0 ? void 0 : data.error) === null || _m === void 0 ? void 0 : _m.code)) {
|
|
180
|
-
return { code: 'unknown_error' };
|
|
181
|
-
}
|
|
182
|
-
throw e;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
const registerSessionKey = (_o) => __awaiter(void 0, [_o], void 0, function* ({ environmentId, publicKey, prevSessionKeySignature, }) {
|
|
130
|
+
const registerSessionKey = (_h) => __awaiter(void 0, [_h], void 0, function* ({ environmentId, publicKey, prevSessionKeySignature, }) {
|
|
186
131
|
let response;
|
|
187
132
|
try {
|
|
188
133
|
response = yield sdkApi().registerSessionKey({
|
|
@@ -201,7 +146,7 @@ const registerSessionKey = (_o) => __awaiter(void 0, [_o], void 0, function* ({
|
|
|
201
146
|
}
|
|
202
147
|
return response;
|
|
203
148
|
});
|
|
204
|
-
const getCreateEmbeddedWalletAccountRequest = (
|
|
149
|
+
const getCreateEmbeddedWalletAccountRequest = (_j) => __awaiter(void 0, [_j], void 0, function* ({ environmentId, chain, }) {
|
|
205
150
|
try {
|
|
206
151
|
const response = yield sdkApi().getCreateWalletAccountRequest({
|
|
207
152
|
chain,
|
|
@@ -214,7 +159,7 @@ const getCreateEmbeddedWalletAccountRequest = (_p) => __awaiter(void 0, [_p], vo
|
|
|
214
159
|
throw new DynamicError('Error fetching create embedded wallet account request');
|
|
215
160
|
}
|
|
216
161
|
});
|
|
217
|
-
const createEmbeddedWalletAccount = (
|
|
162
|
+
const createEmbeddedWalletAccount = (_k) => __awaiter(void 0, [_k], void 0, function* ({ environmentId, createEmbeddedWalletAccountRequest, }) {
|
|
218
163
|
try {
|
|
219
164
|
const response = yield sdkApi().createWalletAccount({
|
|
220
165
|
createWalletAccountRequest: {
|
|
@@ -229,7 +174,7 @@ const createEmbeddedWalletAccount = (_q) => __awaiter(void 0, [_q], void 0, func
|
|
|
229
174
|
throw new DynamicError('Error creating embedded wallet account');
|
|
230
175
|
}
|
|
231
176
|
});
|
|
232
|
-
const getDeleteEmbeddedWalletsRequest = (
|
|
177
|
+
const getDeleteEmbeddedWalletsRequest = (_l) => __awaiter(void 0, [_l], void 0, function* ({ environmentId, }) {
|
|
233
178
|
try {
|
|
234
179
|
const response = yield sdkApi().getEmbeddedWalletsDeleteRequest({
|
|
235
180
|
environmentId,
|
|
@@ -241,7 +186,7 @@ const getDeleteEmbeddedWalletsRequest = (_r) => __awaiter(void 0, [_r], void 0,
|
|
|
241
186
|
throw new DynamicError('Error fetching delete embedded wallets request');
|
|
242
187
|
}
|
|
243
188
|
});
|
|
244
|
-
const deleteEmbeddedWallets = (
|
|
189
|
+
const deleteEmbeddedWallets = (_m) => __awaiter(void 0, [_m], void 0, function* ({ environmentId, deleteEmbeddedWalletsRequest, }) {
|
|
245
190
|
try {
|
|
246
191
|
const response = yield sdkApi().deleteEmbeddedWallets({
|
|
247
192
|
deleteEmbeddedWalletsRequest: {
|
|
@@ -257,4 +202,4 @@ const deleteEmbeddedWallets = (_s) => __awaiter(void 0, [_s], void 0, function*
|
|
|
257
202
|
}
|
|
258
203
|
});
|
|
259
204
|
|
|
260
|
-
export {
|
|
205
|
+
export { completePasskeyRecovery, createEmbeddedWalletAccount, createTurnkeyEmbeddedWallet, deleteEmbeddedWallets, exportEmbeddedWallet, getCreateEmbeddedWalletAccountRequest, getDeleteEmbeddedWalletsRequest, getUserPasskeys, initEmbeddedWalletSession, registerSessionKey, updatePasskeyRecoveryEmail, updateUserPasskey };
|
|
@@ -27,15 +27,13 @@ const storeSelectedWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, funct
|
|
|
27
27
|
return undefined;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
const linkWallet = (environmentId_1, _b) => _tslib.__awaiter(void 0, [environmentId_1, _b], void 0, function* (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup,
|
|
30
|
+
const linkWallet = (environmentId_1, _b) => _tslib.__awaiter(void 0, [environmentId_1, _b], void 0, function* (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup, }) {
|
|
31
31
|
const verifyRequest = sdkApiCore.VerifyRequestFromJSON({
|
|
32
32
|
additionalWalletAddresses,
|
|
33
33
|
backup,
|
|
34
34
|
chain,
|
|
35
35
|
messageToSign,
|
|
36
36
|
network,
|
|
37
|
-
password,
|
|
38
|
-
passwordSource,
|
|
39
37
|
publicWalletAddress,
|
|
40
38
|
signedMessage,
|
|
41
39
|
walletName,
|
|
@@ -5,7 +5,7 @@ export declare const storeSelectedWallet: ({ environmentId, walletId, }: {
|
|
|
5
5
|
environmentId: string;
|
|
6
6
|
walletId: string;
|
|
7
7
|
}) => Promise<UserProfile | undefined>;
|
|
8
|
-
export declare const linkWallet: (environmentId: string, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup,
|
|
8
|
+
export declare const linkWallet: (environmentId: string, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup, }: VerifyWallet) => Promise<VerifyResponse | undefined>;
|
|
9
9
|
export declare const unlinkWallet: ({ environmentId, primaryWalletId, walletId, onSuccess, }: {
|
|
10
10
|
environmentId: string;
|
|
11
11
|
primaryWalletId: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../../../../_virtual/_tslib.js';
|
|
3
3
|
import { VerifyRequestFromJSON } from '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import { EmbeddedWalletExistsError, WalletUsedError, MergeAccountsConfirmationError, SandboxMaximumThresholdReachedError,
|
|
4
|
+
import { DynamicError, EmbeddedWalletExistsError, WalletUsedError, MergeAccountsConfirmationError, SandboxMaximumThresholdReachedError, WalletNotDeployedError, ChainalysisError, GateBlockedError, NoAccessError, AccountExistsError } from '@dynamic-labs/utils';
|
|
5
5
|
import { sdkApi } from '../api.js';
|
|
6
6
|
import { storeAuthTokenAndUser } from '../../../store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.js';
|
|
7
7
|
import '../../../store/state/user/user.js';
|
|
@@ -23,15 +23,13 @@ const storeSelectedWallet = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
|
23
23
|
return undefined;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
const linkWallet = (environmentId_1, _b) => __awaiter(void 0, [environmentId_1, _b], void 0, function* (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup,
|
|
26
|
+
const linkWallet = (environmentId_1, _b) => __awaiter(void 0, [environmentId_1, _b], void 0, function* (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup, }) {
|
|
27
27
|
const verifyRequest = VerifyRequestFromJSON({
|
|
28
28
|
additionalWalletAddresses,
|
|
29
29
|
backup,
|
|
30
30
|
chain,
|
|
31
31
|
messageToSign,
|
|
32
32
|
network,
|
|
33
|
-
password,
|
|
34
|
-
passwordSource,
|
|
35
33
|
publicWalletAddress,
|
|
36
34
|
signedMessage,
|
|
37
35
|
walletName,
|
|
@@ -6,10 +6,6 @@ export type EmbeddedWalletEvents = {
|
|
|
6
6
|
embeddedWalletFailed: (error: unknown) => void;
|
|
7
7
|
embeddedWalletRevealCompleted: (wallet: Wallet) => void;
|
|
8
8
|
embeddedWalletRevealFailed: (error: unknown) => void;
|
|
9
|
-
embeddedWalletCreatePasswordCompleted: (password: string) => void;
|
|
10
|
-
embeddedWalletCreatePasswordFailed: (error: unknown) => void;
|
|
11
9
|
embeddedWalletRecoveryEmailCompleted: (email: string) => void;
|
|
12
10
|
embeddedWalletRecoveryEmailFailed: (error: unknown) => void;
|
|
13
|
-
embeddedWalletUpdatePasswordCompleted: (password: string) => void;
|
|
14
|
-
embeddedWalletUpdatePasswordFailed: (error: unknown) => void;
|
|
15
11
|
};
|
|
@@ -54,13 +54,12 @@ require('@dynamic-labs/rpc-providers');
|
|
|
54
54
|
require('../../../store/state/loadingAndLifecycle.cjs');
|
|
55
55
|
require('../../../store/state/walletOptions/walletOptions.cjs');
|
|
56
56
|
require('react-i18next');
|
|
57
|
-
|
|
57
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
58
58
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
59
59
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
60
60
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
61
61
|
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
62
62
|
require('../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
63
|
-
require('../../../context/FooterAnimationContext/index.cjs');
|
|
64
63
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
65
64
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
66
65
|
require('react-focus-lock');
|
|
@@ -93,9 +92,6 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
93
92
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
94
93
|
var TosAndPp = require('../../../components/TosAndPp/TosAndPp.cjs');
|
|
95
94
|
|
|
96
|
-
const ToSFooter = () => {
|
|
97
|
-
const { showToSFooter } = useAuthLayoutChecks.useAuthLayoutChecks();
|
|
98
|
-
return (jsxRuntime.jsx("div", { className: 'tos-and-pp__footer', children: showToSFooter && jsxRuntime.jsx(TosAndPp.TosAndPp, {}) }));
|
|
99
|
-
};
|
|
95
|
+
const ToSFooter = () => (jsxRuntime.jsx("div", { className: 'tos-and-pp__footer', children: jsxRuntime.jsx(TosAndPp.TosAndPp, {}) }));
|
|
100
96
|
|
|
101
97
|
exports.ToSFooter = ToSFooter;
|
|
@@ -50,13 +50,12 @@ import '@dynamic-labs/rpc-providers';
|
|
|
50
50
|
import '../../../store/state/loadingAndLifecycle.js';
|
|
51
51
|
import '../../../store/state/walletOptions/walletOptions.js';
|
|
52
52
|
import 'react-i18next';
|
|
53
|
-
import
|
|
53
|
+
import '../../../context/FooterAnimationContext/index.js';
|
|
54
54
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
55
55
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
56
56
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
57
57
|
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
58
58
|
import '../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
59
|
-
import '../../../context/FooterAnimationContext/index.js';
|
|
60
59
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
61
60
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
62
61
|
import 'react-focus-lock';
|
|
@@ -89,9 +88,6 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
89
88
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
90
89
|
import { TosAndPp } from '../../../components/TosAndPp/TosAndPp.js';
|
|
91
90
|
|
|
92
|
-
const ToSFooter = () => {
|
|
93
|
-
const { showToSFooter } = useAuthLayoutChecks();
|
|
94
|
-
return (jsx("div", { className: 'tos-and-pp__footer', children: showToSFooter && jsx(TosAndPp, {}) }));
|
|
95
|
-
};
|
|
91
|
+
const ToSFooter = () => (jsx("div", { className: 'tos-and-pp__footer', children: jsx(TosAndPp, {}) }));
|
|
96
92
|
|
|
97
93
|
export { ToSFooter };
|
|
@@ -932,13 +932,6 @@ const translation = {
|
|
|
932
932
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
933
933
|
* @default
|
|
934
934
|
* {
|
|
935
|
-
global_section: {
|
|
936
|
-
title: 'Global',
|
|
937
|
-
currency: {
|
|
938
|
-
title: 'Currency',
|
|
939
|
-
badge: 'coming soon',
|
|
940
|
-
},
|
|
941
|
-
},
|
|
942
935
|
global_connectivity_section: {
|
|
943
936
|
title: 'Global Connectivity',
|
|
944
937
|
connected_apps_button: 'Connected Apps',
|
|
@@ -962,16 +955,12 @@ const translation = {
|
|
|
962
955
|
},
|
|
963
956
|
title: 'Settings',
|
|
964
957
|
button_logout: 'Log out',
|
|
958
|
+
empty_screen: {
|
|
959
|
+
title: 'Nothing to see here yet!',
|
|
960
|
+
},
|
|
965
961
|
}
|
|
966
962
|
*/
|
|
967
963
|
dyn_settings: {
|
|
968
|
-
global_section: {
|
|
969
|
-
title: 'Global',
|
|
970
|
-
currency: {
|
|
971
|
-
title: 'Currency',
|
|
972
|
-
badge: 'coming soon',
|
|
973
|
-
},
|
|
974
|
-
},
|
|
975
964
|
global_connectivity_section: {
|
|
976
965
|
title: 'Global Connectivity',
|
|
977
966
|
connected_apps_button: 'Connected Apps',
|
|
@@ -995,6 +984,9 @@ const translation = {
|
|
|
995
984
|
},
|
|
996
985
|
title: 'Settings',
|
|
997
986
|
button_logout: 'Log out',
|
|
987
|
+
empty_screen: {
|
|
988
|
+
title: 'Nothing to see here yet!',
|
|
989
|
+
},
|
|
998
990
|
},
|
|
999
991
|
/**
|
|
1000
992
|
* @description copy keys for global wallet view
|
|
@@ -2350,11 +2342,11 @@ const translation = {
|
|
|
2350
2342
|
* @description copy keys for the wallet funding flow
|
|
2351
2343
|
* @default
|
|
2352
2344
|
* {
|
|
2353
|
-
success: '
|
|
2345
|
+
success: 'Transaction processing',
|
|
2346
|
+
success_txn_link: 'View transaction',
|
|
2354
2347
|
|
|
2355
2348
|
funding_method_selection: {
|
|
2356
2349
|
title: 'Deposit',
|
|
2357
|
-
description: 'Fund your account by buying or transferring tokens.',
|
|
2358
2350
|
qr_option: 'Receive by QR',
|
|
2359
2351
|
buy_option: 'Buy Crypto',
|
|
2360
2352
|
external_wallet_option: 'From External Wallets',
|
|
@@ -2366,25 +2358,19 @@ const translation = {
|
|
|
2366
2358
|
from_external_wallet: {
|
|
2367
2359
|
wallet_list: {
|
|
2368
2360
|
title: 'Fund from Wallet',
|
|
2369
|
-
description:
|
|
2370
|
-
'Transfer crypto from an external wallet.',
|
|
2371
2361
|
},
|
|
2372
2362
|
funding_view: {
|
|
2373
2363
|
title: 'Fund from Wallet',
|
|
2374
2364
|
wallet_detail_from: 'From',
|
|
2375
|
-
balance: 'Balance',
|
|
2376
2365
|
confirm_button: 'Confirm Transaction',
|
|
2377
|
-
|
|
2378
|
-
'
|
|
2366
|
+
pricing_unavailable:
|
|
2367
|
+
'Pricing unavailable.',
|
|
2379
2368
|
minimum_error: 'Minimum {{minimum}}',
|
|
2380
2369
|
balance_error: 'Insufficient funds',
|
|
2381
2370
|
},
|
|
2382
2371
|
token_select: {
|
|
2383
2372
|
title: 'Select a Token',
|
|
2384
2373
|
search_placeholder: 'Search for a token',
|
|
2385
|
-
token_option: {
|
|
2386
|
-
balance_label: 'Balance',
|
|
2387
|
-
},
|
|
2388
2374
|
no_assets_title: 'No Supported Assets',
|
|
2389
2375
|
no_assets_description: 'This wallet does not support any assets',
|
|
2390
2376
|
},
|
|
@@ -2392,10 +2378,10 @@ const translation = {
|
|
|
2392
2378
|
}
|
|
2393
2379
|
*/
|
|
2394
2380
|
dyn_wallet_funding: {
|
|
2395
|
-
success: '
|
|
2381
|
+
success: 'Transaction processing',
|
|
2382
|
+
success_txn_link: 'View transaction',
|
|
2396
2383
|
funding_method_selection: {
|
|
2397
2384
|
title: 'Deposit',
|
|
2398
|
-
description: 'Fund your account by buying or transferring tokens.',
|
|
2399
2385
|
qr_option: 'Receive by QR',
|
|
2400
2386
|
buy_option: 'Buy Crypto',
|
|
2401
2387
|
external_wallet_option: 'From External Wallets',
|
|
@@ -2407,23 +2393,18 @@ const translation = {
|
|
|
2407
2393
|
from_external_wallet: {
|
|
2408
2394
|
wallet_list: {
|
|
2409
2395
|
title: 'Fund from External Wallet',
|
|
2410
|
-
description: 'Transfer crypto from an external wallet.',
|
|
2411
2396
|
},
|
|
2412
2397
|
funding_view: {
|
|
2413
2398
|
title: 'Fund from External Wallet',
|
|
2414
2399
|
wallet_detail_from: 'From',
|
|
2415
|
-
balance: 'Balance',
|
|
2416
2400
|
confirm_button: 'Confirm Transaction',
|
|
2417
|
-
|
|
2401
|
+
pricing_unavailable: 'Pricing unavailable.',
|
|
2418
2402
|
minimum_error: 'Minimum {{minimum}}',
|
|
2419
2403
|
balance_error: 'Insufficient funds',
|
|
2420
2404
|
},
|
|
2421
2405
|
token_select: {
|
|
2422
2406
|
title: 'Select a Token',
|
|
2423
2407
|
search_placeholder: 'Search for a token',
|
|
2424
|
-
token_option: {
|
|
2425
|
-
balance_label: 'Balance',
|
|
2426
|
-
},
|
|
2427
2408
|
no_assets_title: 'No Supported Assets',
|
|
2428
2409
|
no_assets_description: 'No supported assets in this wallet',
|
|
2429
2410
|
},
|
|
@@ -926,13 +926,6 @@ export declare const translation: {
|
|
|
926
926
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
927
927
|
* @default
|
|
928
928
|
* {
|
|
929
|
-
global_section: {
|
|
930
|
-
title: 'Global',
|
|
931
|
-
currency: {
|
|
932
|
-
title: 'Currency',
|
|
933
|
-
badge: 'coming soon',
|
|
934
|
-
},
|
|
935
|
-
},
|
|
936
929
|
global_connectivity_section: {
|
|
937
930
|
title: 'Global Connectivity',
|
|
938
931
|
connected_apps_button: 'Connected Apps',
|
|
@@ -956,16 +949,12 @@ export declare const translation: {
|
|
|
956
949
|
},
|
|
957
950
|
title: 'Settings',
|
|
958
951
|
button_logout: 'Log out',
|
|
952
|
+
empty_screen: {
|
|
953
|
+
title: 'Nothing to see here yet!',
|
|
954
|
+
},
|
|
959
955
|
}
|
|
960
956
|
*/
|
|
961
957
|
dyn_settings: {
|
|
962
|
-
global_section: {
|
|
963
|
-
title: string;
|
|
964
|
-
currency: {
|
|
965
|
-
title: string;
|
|
966
|
-
badge: string;
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
958
|
global_connectivity_section: {
|
|
970
959
|
title: string;
|
|
971
960
|
connected_apps_button: string;
|
|
@@ -991,6 +980,9 @@ export declare const translation: {
|
|
|
991
980
|
};
|
|
992
981
|
title: string;
|
|
993
982
|
button_logout: string;
|
|
983
|
+
empty_screen: {
|
|
984
|
+
title: string;
|
|
985
|
+
};
|
|
994
986
|
};
|
|
995
987
|
/**
|
|
996
988
|
* @description copy keys for global wallet view
|
|
@@ -2346,11 +2338,11 @@ export declare const translation: {
|
|
|
2346
2338
|
* @description copy keys for the wallet funding flow
|
|
2347
2339
|
* @default
|
|
2348
2340
|
* {
|
|
2349
|
-
success: '
|
|
2341
|
+
success: 'Transaction processing',
|
|
2342
|
+
success_txn_link: 'View transaction',
|
|
2350
2343
|
|
|
2351
2344
|
funding_method_selection: {
|
|
2352
2345
|
title: 'Deposit',
|
|
2353
|
-
description: 'Fund your account by buying or transferring tokens.',
|
|
2354
2346
|
qr_option: 'Receive by QR',
|
|
2355
2347
|
buy_option: 'Buy Crypto',
|
|
2356
2348
|
external_wallet_option: 'From External Wallets',
|
|
@@ -2362,25 +2354,19 @@ export declare const translation: {
|
|
|
2362
2354
|
from_external_wallet: {
|
|
2363
2355
|
wallet_list: {
|
|
2364
2356
|
title: 'Fund from Wallet',
|
|
2365
|
-
description:
|
|
2366
|
-
'Transfer crypto from an external wallet.',
|
|
2367
2357
|
},
|
|
2368
2358
|
funding_view: {
|
|
2369
2359
|
title: 'Fund from Wallet',
|
|
2370
2360
|
wallet_detail_from: 'From',
|
|
2371
|
-
balance: 'Balance',
|
|
2372
2361
|
confirm_button: 'Confirm Transaction',
|
|
2373
|
-
|
|
2374
|
-
'
|
|
2362
|
+
pricing_unavailable:
|
|
2363
|
+
'Pricing unavailable.',
|
|
2375
2364
|
minimum_error: 'Minimum {{minimum}}',
|
|
2376
2365
|
balance_error: 'Insufficient funds',
|
|
2377
2366
|
},
|
|
2378
2367
|
token_select: {
|
|
2379
2368
|
title: 'Select a Token',
|
|
2380
2369
|
search_placeholder: 'Search for a token',
|
|
2381
|
-
token_option: {
|
|
2382
|
-
balance_label: 'Balance',
|
|
2383
|
-
},
|
|
2384
2370
|
no_assets_title: 'No Supported Assets',
|
|
2385
2371
|
no_assets_description: 'This wallet does not support any assets',
|
|
2386
2372
|
},
|
|
@@ -2389,9 +2375,9 @@ export declare const translation: {
|
|
|
2389
2375
|
*/
|
|
2390
2376
|
dyn_wallet_funding: {
|
|
2391
2377
|
success: string;
|
|
2378
|
+
success_txn_link: string;
|
|
2392
2379
|
funding_method_selection: {
|
|
2393
2380
|
title: string;
|
|
2394
|
-
description: string;
|
|
2395
2381
|
qr_option: string;
|
|
2396
2382
|
buy_option: string;
|
|
2397
2383
|
external_wallet_option: string;
|
|
@@ -2403,23 +2389,18 @@ export declare const translation: {
|
|
|
2403
2389
|
from_external_wallet: {
|
|
2404
2390
|
wallet_list: {
|
|
2405
2391
|
title: string;
|
|
2406
|
-
description: string;
|
|
2407
2392
|
};
|
|
2408
2393
|
funding_view: {
|
|
2409
2394
|
title: string;
|
|
2410
2395
|
wallet_detail_from: string;
|
|
2411
|
-
balance: string;
|
|
2412
2396
|
confirm_button: string;
|
|
2413
|
-
|
|
2397
|
+
pricing_unavailable: string;
|
|
2414
2398
|
minimum_error: string;
|
|
2415
2399
|
balance_error: string;
|
|
2416
2400
|
};
|
|
2417
2401
|
token_select: {
|
|
2418
2402
|
title: string;
|
|
2419
2403
|
search_placeholder: string;
|
|
2420
|
-
token_option: {
|
|
2421
|
-
balance_label: string;
|
|
2422
|
-
};
|
|
2423
2404
|
no_assets_title: string;
|
|
2424
2405
|
no_assets_description: string;
|
|
2425
2406
|
};
|
|
@@ -928,13 +928,6 @@ const translation = {
|
|
|
928
928
|
* @description Settings for Dynamic settings view which are used inside dynamic widget
|
|
929
929
|
* @default
|
|
930
930
|
* {
|
|
931
|
-
global_section: {
|
|
932
|
-
title: 'Global',
|
|
933
|
-
currency: {
|
|
934
|
-
title: 'Currency',
|
|
935
|
-
badge: 'coming soon',
|
|
936
|
-
},
|
|
937
|
-
},
|
|
938
931
|
global_connectivity_section: {
|
|
939
932
|
title: 'Global Connectivity',
|
|
940
933
|
connected_apps_button: 'Connected Apps',
|
|
@@ -958,16 +951,12 @@ const translation = {
|
|
|
958
951
|
},
|
|
959
952
|
title: 'Settings',
|
|
960
953
|
button_logout: 'Log out',
|
|
954
|
+
empty_screen: {
|
|
955
|
+
title: 'Nothing to see here yet!',
|
|
956
|
+
},
|
|
961
957
|
}
|
|
962
958
|
*/
|
|
963
959
|
dyn_settings: {
|
|
964
|
-
global_section: {
|
|
965
|
-
title: 'Global',
|
|
966
|
-
currency: {
|
|
967
|
-
title: 'Currency',
|
|
968
|
-
badge: 'coming soon',
|
|
969
|
-
},
|
|
970
|
-
},
|
|
971
960
|
global_connectivity_section: {
|
|
972
961
|
title: 'Global Connectivity',
|
|
973
962
|
connected_apps_button: 'Connected Apps',
|
|
@@ -991,6 +980,9 @@ const translation = {
|
|
|
991
980
|
},
|
|
992
981
|
title: 'Settings',
|
|
993
982
|
button_logout: 'Log out',
|
|
983
|
+
empty_screen: {
|
|
984
|
+
title: 'Nothing to see here yet!',
|
|
985
|
+
},
|
|
994
986
|
},
|
|
995
987
|
/**
|
|
996
988
|
* @description copy keys for global wallet view
|
|
@@ -2346,11 +2338,11 @@ const translation = {
|
|
|
2346
2338
|
* @description copy keys for the wallet funding flow
|
|
2347
2339
|
* @default
|
|
2348
2340
|
* {
|
|
2349
|
-
success: '
|
|
2341
|
+
success: 'Transaction processing',
|
|
2342
|
+
success_txn_link: 'View transaction',
|
|
2350
2343
|
|
|
2351
2344
|
funding_method_selection: {
|
|
2352
2345
|
title: 'Deposit',
|
|
2353
|
-
description: 'Fund your account by buying or transferring tokens.',
|
|
2354
2346
|
qr_option: 'Receive by QR',
|
|
2355
2347
|
buy_option: 'Buy Crypto',
|
|
2356
2348
|
external_wallet_option: 'From External Wallets',
|
|
@@ -2362,25 +2354,19 @@ const translation = {
|
|
|
2362
2354
|
from_external_wallet: {
|
|
2363
2355
|
wallet_list: {
|
|
2364
2356
|
title: 'Fund from Wallet',
|
|
2365
|
-
description:
|
|
2366
|
-
'Transfer crypto from an external wallet.',
|
|
2367
2357
|
},
|
|
2368
2358
|
funding_view: {
|
|
2369
2359
|
title: 'Fund from Wallet',
|
|
2370
2360
|
wallet_detail_from: 'From',
|
|
2371
|
-
balance: 'Balance',
|
|
2372
2361
|
confirm_button: 'Confirm Transaction',
|
|
2373
|
-
|
|
2374
|
-
'
|
|
2362
|
+
pricing_unavailable:
|
|
2363
|
+
'Pricing unavailable.',
|
|
2375
2364
|
minimum_error: 'Minimum {{minimum}}',
|
|
2376
2365
|
balance_error: 'Insufficient funds',
|
|
2377
2366
|
},
|
|
2378
2367
|
token_select: {
|
|
2379
2368
|
title: 'Select a Token',
|
|
2380
2369
|
search_placeholder: 'Search for a token',
|
|
2381
|
-
token_option: {
|
|
2382
|
-
balance_label: 'Balance',
|
|
2383
|
-
},
|
|
2384
2370
|
no_assets_title: 'No Supported Assets',
|
|
2385
2371
|
no_assets_description: 'This wallet does not support any assets',
|
|
2386
2372
|
},
|
|
@@ -2388,10 +2374,10 @@ const translation = {
|
|
|
2388
2374
|
}
|
|
2389
2375
|
*/
|
|
2390
2376
|
dyn_wallet_funding: {
|
|
2391
|
-
success: '
|
|
2377
|
+
success: 'Transaction processing',
|
|
2378
|
+
success_txn_link: 'View transaction',
|
|
2392
2379
|
funding_method_selection: {
|
|
2393
2380
|
title: 'Deposit',
|
|
2394
|
-
description: 'Fund your account by buying or transferring tokens.',
|
|
2395
2381
|
qr_option: 'Receive by QR',
|
|
2396
2382
|
buy_option: 'Buy Crypto',
|
|
2397
2383
|
external_wallet_option: 'From External Wallets',
|
|
@@ -2403,23 +2389,18 @@ const translation = {
|
|
|
2403
2389
|
from_external_wallet: {
|
|
2404
2390
|
wallet_list: {
|
|
2405
2391
|
title: 'Fund from External Wallet',
|
|
2406
|
-
description: 'Transfer crypto from an external wallet.',
|
|
2407
2392
|
},
|
|
2408
2393
|
funding_view: {
|
|
2409
2394
|
title: 'Fund from External Wallet',
|
|
2410
2395
|
wallet_detail_from: 'From',
|
|
2411
|
-
balance: 'Balance',
|
|
2412
2396
|
confirm_button: 'Confirm Transaction',
|
|
2413
|
-
|
|
2397
|
+
pricing_unavailable: 'Pricing unavailable.',
|
|
2414
2398
|
minimum_error: 'Minimum {{minimum}}',
|
|
2415
2399
|
balance_error: 'Insufficient funds',
|
|
2416
2400
|
},
|
|
2417
2401
|
token_select: {
|
|
2418
2402
|
title: 'Select a Token',
|
|
2419
2403
|
search_placeholder: 'Search for a token',
|
|
2420
|
-
token_option: {
|
|
2421
|
-
balance_label: 'Balance',
|
|
2422
|
-
},
|
|
2423
2404
|
no_assets_title: 'No Supported Assets',
|
|
2424
2405
|
no_assets_description: 'No supported assets in this wallet',
|
|
2425
2406
|
},
|