@dynamic-labs/sdk-react-core 0.19.0 → 1.0.0-alpha.0
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 +8 -8
- package/src/index.cjs +1 -1
- package/src/index.js +1 -1
- package/src/lib/Main.cjs +1 -1
- package/src/lib/Main.js +1 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -1
- package/src/lib/components/Divider/Divider.cjs +1 -1
- package/src/lib/components/Divider/Divider.js +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
- package/src/lib/components/Modal/Modal.cjs +1 -1
- package/src/lib/components/Modal/Modal.js +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -1
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -1
- package/src/lib/components/Portal/Portal.cjs +1 -1
- package/src/lib/components/Portal/Portal.js +1 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +18 -16
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +18 -16
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +3 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +3 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +3 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +3 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -1
- package/src/lib/components/Tooltip/Tooltip.js +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +4 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +4 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +3 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
- package/src/lib/components/UserAddress/UserAddress.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -1
- package/src/lib/context/MockContext/MockContext.cjs +1 -1
- package/src/lib/context/MockContext/MockContext.js +1 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
- package/src/lib/locale/en/translation.cjs +115 -4
- package/src/lib/locale/en/translation.js +113 -5
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +4 -3
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +4 -3
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -3
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +4 -3
- package/src/lib/views/NoAccess/NoAccess.cjs +3 -2
- package/src/lib/views/NoAccess/NoAccess.js +3 -2
- package/src/lib/views/NoAccess/useNoAccessText.cjs +26 -24
- package/src/lib/views/NoAccess/useNoAccessText.js +26 -24
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
- package/src/lib/views/QrCodeView/QRCode.cjs +1 -1
- package/src/lib/views/QrCodeView/QRCode.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -1
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -2
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +3 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +3 -2
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +15 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +15 -5
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +5 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +5 -2
- package/src/lib/views/WalletList/WalletList.cjs +4 -2
- package/src/lib/views/WalletList/WalletList.js +4 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +3 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -1
- 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/DotsMenu/DotsMenu.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -1
- 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/components/Wallet/Wallet.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.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/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +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/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
|
@@ -2,59 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var reactI18next = require('react-i18next');
|
|
5
6
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
6
7
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
7
8
|
|
|
8
9
|
const useNoAccessText = () => {
|
|
9
10
|
const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
10
11
|
const { view } = ViewContext.useViewContext();
|
|
12
|
+
const { t } = reactI18next.useTranslation();
|
|
11
13
|
const isChainalysisView = view === 'chainalysis-blocked-wallet';
|
|
12
14
|
const isGateBlockedView = view === 'gate-blocked-wallet';
|
|
13
15
|
const isAccessListView = view === 'no-access';
|
|
14
16
|
const getSocialMediaLinkText = () => {
|
|
15
17
|
if (isChainalysisView) {
|
|
16
|
-
return textData.chainalysis._socialMediaLinkText;
|
|
18
|
+
return t(textData.chainalysis._socialMediaLinkText);
|
|
17
19
|
}
|
|
18
20
|
if (isGateBlockedView) {
|
|
19
|
-
return
|
|
21
|
+
return undefined;
|
|
20
22
|
}
|
|
21
23
|
return socialMediaLinkText;
|
|
22
24
|
};
|
|
23
25
|
const getSocialMediaUrl = () => {
|
|
24
26
|
if (isChainalysisView) {
|
|
25
|
-
return textData.chainalysis._socialMediaUrl;
|
|
27
|
+
return t(textData.chainalysis._socialMediaUrl);
|
|
26
28
|
}
|
|
27
29
|
if (isGateBlockedView) {
|
|
28
|
-
return
|
|
30
|
+
return undefined;
|
|
29
31
|
}
|
|
30
32
|
return socialMediaUrl;
|
|
31
33
|
};
|
|
32
34
|
const getTitle = () => {
|
|
33
35
|
if (isChainalysisView) {
|
|
34
|
-
return textData.chainalysis.title;
|
|
36
|
+
return t(textData.chainalysis.title);
|
|
35
37
|
}
|
|
36
38
|
if (isGateBlockedView) {
|
|
37
|
-
return textData.gate.title;
|
|
39
|
+
return t(textData.gate.title);
|
|
38
40
|
}
|
|
39
|
-
return accessDeniedMessagePrimary || textData.default.title;
|
|
41
|
+
return accessDeniedMessagePrimary || t(textData.default.title);
|
|
40
42
|
};
|
|
41
43
|
const getSubtitle = () => {
|
|
42
44
|
if (isChainalysisView) {
|
|
43
|
-
return textData.chainalysis.subtitle;
|
|
45
|
+
return t(textData.chainalysis.subtitle);
|
|
44
46
|
}
|
|
45
47
|
if (isGateBlockedView) {
|
|
46
|
-
return textData.gate.subtitle;
|
|
48
|
+
return t(textData.gate.subtitle);
|
|
47
49
|
}
|
|
48
|
-
return accessDeniedMessageSecondary || textData.default.subtitle;
|
|
50
|
+
return accessDeniedMessageSecondary || t(textData.default.subtitle);
|
|
49
51
|
};
|
|
50
52
|
const getButtonTitle = () => {
|
|
51
53
|
if (isChainalysisView) {
|
|
52
|
-
return textData.chainalysis.buttonTitle;
|
|
54
|
+
return t(textData.chainalysis.buttonTitle);
|
|
53
55
|
}
|
|
54
56
|
if (isGateBlockedView) {
|
|
55
|
-
return textData.gate.buttonTitle;
|
|
57
|
+
return t(textData.gate.buttonTitle);
|
|
56
58
|
}
|
|
57
|
-
return textData.default.buttonTitle;
|
|
59
|
+
return t(textData.default.buttonTitle);
|
|
58
60
|
};
|
|
59
61
|
return {
|
|
60
62
|
_socialMediaLinkText: getSocialMediaLinkText(),
|
|
@@ -69,23 +71,23 @@ const useNoAccessText = () => {
|
|
|
69
71
|
};
|
|
70
72
|
const textData = {
|
|
71
73
|
chainalysis: {
|
|
72
|
-
_socialMediaLinkText: '
|
|
73
|
-
_socialMediaUrl: '
|
|
74
|
-
buttonTitle: '
|
|
75
|
-
subtitle: '
|
|
76
|
-
title: '
|
|
74
|
+
_socialMediaLinkText: 'dyn_no_access.chainalysis.social_media_link_text',
|
|
75
|
+
_socialMediaUrl: 'dyn_no_access.chainalysis.social_media_link_url',
|
|
76
|
+
buttonTitle: 'dyn_no_access.chainalysis.button_text',
|
|
77
|
+
subtitle: 'dyn_no_access.chainalysis.description',
|
|
78
|
+
title: 'dyn_no_access.chainalysis.title',
|
|
77
79
|
},
|
|
78
80
|
default: {
|
|
79
|
-
buttonTitle: '
|
|
80
|
-
subtitle:
|
|
81
|
-
title: '
|
|
81
|
+
buttonTitle: 'dyn_no_access.default.button_text',
|
|
82
|
+
subtitle: 'dyn_no_access.default.description',
|
|
83
|
+
title: 'dyn_no_access.default.title',
|
|
82
84
|
},
|
|
83
85
|
gate: {
|
|
84
86
|
_socialMediaLinkText: undefined,
|
|
85
87
|
_socialMediaUrl: undefined,
|
|
86
|
-
buttonTitle: '
|
|
87
|
-
subtitle: '
|
|
88
|
-
title: '
|
|
88
|
+
buttonTitle: 'dyn_no_access.gate.button_text',
|
|
89
|
+
subtitle: 'dyn_no_access.gate.description',
|
|
90
|
+
title: 'dyn_no_access.gate.title',
|
|
89
91
|
},
|
|
90
92
|
};
|
|
91
93
|
|
|
@@ -1,56 +1,58 @@
|
|
|
1
|
+
import { useTranslation } from 'react-i18next';
|
|
1
2
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
2
3
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
3
4
|
|
|
4
5
|
const useNoAccessText = () => {
|
|
5
6
|
const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext();
|
|
6
7
|
const { view } = useViewContext();
|
|
8
|
+
const { t } = useTranslation();
|
|
7
9
|
const isChainalysisView = view === 'chainalysis-blocked-wallet';
|
|
8
10
|
const isGateBlockedView = view === 'gate-blocked-wallet';
|
|
9
11
|
const isAccessListView = view === 'no-access';
|
|
10
12
|
const getSocialMediaLinkText = () => {
|
|
11
13
|
if (isChainalysisView) {
|
|
12
|
-
return textData.chainalysis._socialMediaLinkText;
|
|
14
|
+
return t(textData.chainalysis._socialMediaLinkText);
|
|
13
15
|
}
|
|
14
16
|
if (isGateBlockedView) {
|
|
15
|
-
return
|
|
17
|
+
return undefined;
|
|
16
18
|
}
|
|
17
19
|
return socialMediaLinkText;
|
|
18
20
|
};
|
|
19
21
|
const getSocialMediaUrl = () => {
|
|
20
22
|
if (isChainalysisView) {
|
|
21
|
-
return textData.chainalysis._socialMediaUrl;
|
|
23
|
+
return t(textData.chainalysis._socialMediaUrl);
|
|
22
24
|
}
|
|
23
25
|
if (isGateBlockedView) {
|
|
24
|
-
return
|
|
26
|
+
return undefined;
|
|
25
27
|
}
|
|
26
28
|
return socialMediaUrl;
|
|
27
29
|
};
|
|
28
30
|
const getTitle = () => {
|
|
29
31
|
if (isChainalysisView) {
|
|
30
|
-
return textData.chainalysis.title;
|
|
32
|
+
return t(textData.chainalysis.title);
|
|
31
33
|
}
|
|
32
34
|
if (isGateBlockedView) {
|
|
33
|
-
return textData.gate.title;
|
|
35
|
+
return t(textData.gate.title);
|
|
34
36
|
}
|
|
35
|
-
return accessDeniedMessagePrimary || textData.default.title;
|
|
37
|
+
return accessDeniedMessagePrimary || t(textData.default.title);
|
|
36
38
|
};
|
|
37
39
|
const getSubtitle = () => {
|
|
38
40
|
if (isChainalysisView) {
|
|
39
|
-
return textData.chainalysis.subtitle;
|
|
41
|
+
return t(textData.chainalysis.subtitle);
|
|
40
42
|
}
|
|
41
43
|
if (isGateBlockedView) {
|
|
42
|
-
return textData.gate.subtitle;
|
|
44
|
+
return t(textData.gate.subtitle);
|
|
43
45
|
}
|
|
44
|
-
return accessDeniedMessageSecondary || textData.default.subtitle;
|
|
46
|
+
return accessDeniedMessageSecondary || t(textData.default.subtitle);
|
|
45
47
|
};
|
|
46
48
|
const getButtonTitle = () => {
|
|
47
49
|
if (isChainalysisView) {
|
|
48
|
-
return textData.chainalysis.buttonTitle;
|
|
50
|
+
return t(textData.chainalysis.buttonTitle);
|
|
49
51
|
}
|
|
50
52
|
if (isGateBlockedView) {
|
|
51
|
-
return textData.gate.buttonTitle;
|
|
53
|
+
return t(textData.gate.buttonTitle);
|
|
52
54
|
}
|
|
53
|
-
return textData.default.buttonTitle;
|
|
55
|
+
return t(textData.default.buttonTitle);
|
|
54
56
|
};
|
|
55
57
|
return {
|
|
56
58
|
_socialMediaLinkText: getSocialMediaLinkText(),
|
|
@@ -65,23 +67,23 @@ const useNoAccessText = () => {
|
|
|
65
67
|
};
|
|
66
68
|
const textData = {
|
|
67
69
|
chainalysis: {
|
|
68
|
-
_socialMediaLinkText: '
|
|
69
|
-
_socialMediaUrl: '
|
|
70
|
-
buttonTitle: '
|
|
71
|
-
subtitle: '
|
|
72
|
-
title: '
|
|
70
|
+
_socialMediaLinkText: 'dyn_no_access.chainalysis.social_media_link_text',
|
|
71
|
+
_socialMediaUrl: 'dyn_no_access.chainalysis.social_media_link_url',
|
|
72
|
+
buttonTitle: 'dyn_no_access.chainalysis.button_text',
|
|
73
|
+
subtitle: 'dyn_no_access.chainalysis.description',
|
|
74
|
+
title: 'dyn_no_access.chainalysis.title',
|
|
73
75
|
},
|
|
74
76
|
default: {
|
|
75
|
-
buttonTitle: '
|
|
76
|
-
subtitle:
|
|
77
|
-
title: '
|
|
77
|
+
buttonTitle: 'dyn_no_access.default.button_text',
|
|
78
|
+
subtitle: 'dyn_no_access.default.description',
|
|
79
|
+
title: 'dyn_no_access.default.title',
|
|
78
80
|
},
|
|
79
81
|
gate: {
|
|
80
82
|
_socialMediaLinkText: undefined,
|
|
81
83
|
_socialMediaUrl: undefined,
|
|
82
|
-
buttonTitle: '
|
|
83
|
-
subtitle: '
|
|
84
|
-
title: '
|
|
84
|
+
buttonTitle: 'dyn_no_access.gate.button_text',
|
|
85
|
+
subtitle: 'dyn_no_access.gate.description',
|
|
86
|
+
title: 'dyn_no_access.gate.title',
|
|
85
87
|
},
|
|
86
88
|
};
|
|
87
89
|
|
|
@@ -32,11 +32,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
|
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
34
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
|
+
require('react-i18next');
|
|
35
36
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
36
37
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
38
39
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
39
|
-
require('react-i18next');
|
|
40
40
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
41
41
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
42
42
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -28,11 +28,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
|
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
30
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
|
+
import 'react-i18next';
|
|
31
32
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
32
33
|
import '../../context/FooterAnimationContext/index.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
34
35
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
35
|
-
import 'react-i18next';
|
|
36
36
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
37
37
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
38
38
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -31,11 +31,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
|
|
|
31
31
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
32
32
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
33
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
|
+
require('react-i18next');
|
|
34
35
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
35
36
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
36
37
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
38
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
38
|
-
require('react-i18next');
|
|
39
39
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
40
40
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
41
41
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -27,11 +27,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
|
|
|
27
27
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
28
28
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
29
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
|
+
import 'react-i18next';
|
|
30
31
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
31
32
|
import '../../context/FooterAnimationContext/index.js';
|
|
32
33
|
import '../../context/MockContext/MockContext.js';
|
|
33
34
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
34
|
-
import 'react-i18next';
|
|
35
35
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
36
36
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
37
37
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -32,11 +32,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
|
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
34
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
|
+
require('react-i18next');
|
|
35
36
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
36
37
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
38
39
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
39
|
-
require('react-i18next');
|
|
40
40
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
41
41
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
42
42
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -28,11 +28,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
|
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
30
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
|
+
import 'react-i18next';
|
|
31
32
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
32
33
|
import '../../context/FooterAnimationContext/index.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
34
35
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
35
|
-
import 'react-i18next';
|
|
36
36
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
37
37
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
38
38
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
@@ -35,11 +35,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
|
|
|
35
35
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
36
36
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
37
37
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
38
|
+
require('react-i18next');
|
|
38
39
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
39
40
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
40
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
41
42
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
42
|
-
require('react-i18next');
|
|
43
43
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
44
44
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
45
45
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -31,11 +31,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
|
|
|
31
31
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
32
32
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
33
33
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
34
|
+
import 'react-i18next';
|
|
34
35
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
35
36
|
import '../../context/FooterAnimationContext/index.js';
|
|
36
37
|
import '../../context/MockContext/MockContext.js';
|
|
37
38
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
38
|
-
import 'react-i18next';
|
|
39
39
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
40
40
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
41
41
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
@@ -27,6 +27,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
27
27
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
28
28
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
29
29
|
require('react-dom');
|
|
30
|
+
require('react-i18next');
|
|
30
31
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
31
32
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
32
33
|
require('react-focus-lock');
|
|
@@ -35,7 +36,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
35
36
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
36
37
|
require('../../components/IconButton/IconButton.cjs');
|
|
37
38
|
require('../../components/Alert/Alert.cjs');
|
|
38
|
-
require('react-i18next');
|
|
39
39
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
40
40
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
41
|
require('formik');
|
|
@@ -23,6 +23,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
23
23
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
24
24
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
+
import 'react-i18next';
|
|
26
27
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
27
28
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
28
29
|
import 'react-focus-lock';
|
|
@@ -31,7 +32,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
31
32
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
32
33
|
import '../../components/IconButton/IconButton.js';
|
|
33
34
|
import '../../components/Alert/Alert.js';
|
|
34
|
-
import 'react-i18next';
|
|
35
35
|
import '../../components/Popper/Popper/Popper.js';
|
|
36
36
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
37
37
|
import 'formik';
|
|
@@ -37,11 +37,11 @@ require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsS
|
|
|
37
37
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
38
38
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
39
39
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
40
|
+
require('react-i18next');
|
|
40
41
|
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
41
42
|
require('../../../context/FooterAnimationContext/index.cjs');
|
|
42
43
|
require('../../../context/MockContext/MockContext.cjs');
|
|
43
44
|
require('../../../context/QrCodeContext/QrCodeContext.cjs');
|
|
44
|
-
require('react-i18next');
|
|
45
45
|
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
46
46
|
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
47
47
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -33,11 +33,11 @@ import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSe
|
|
|
33
33
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
34
34
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
35
35
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
36
|
+
import 'react-i18next';
|
|
36
37
|
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
37
38
|
import '../../../context/FooterAnimationContext/index.js';
|
|
38
39
|
import '../../../context/MockContext/MockContext.js';
|
|
39
40
|
import '../../../context/QrCodeContext/QrCodeContext.js';
|
|
40
|
-
import 'react-i18next';
|
|
41
41
|
import '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
42
42
|
import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
43
43
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -27,6 +27,7 @@ require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
27
27
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
28
28
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
29
29
|
require('react-dom');
|
|
30
|
+
require('react-i18next');
|
|
30
31
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
31
32
|
require('react-focus-lock');
|
|
32
33
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
@@ -34,7 +35,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
34
35
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
35
36
|
require('../../components/IconButton/IconButton.cjs');
|
|
36
37
|
require('../../components/Alert/Alert.cjs');
|
|
37
|
-
require('react-i18next');
|
|
38
38
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
39
39
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
40
|
require('formik');
|
|
@@ -23,6 +23,7 @@ import '../../context/ErrorContext/ErrorContext.js';
|
|
|
23
23
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
24
24
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
+
import 'react-i18next';
|
|
26
27
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
27
28
|
import 'react-focus-lock';
|
|
28
29
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
@@ -30,7 +31,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
30
31
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
31
32
|
import '../../components/IconButton/IconButton.js';
|
|
32
33
|
import '../../components/Alert/Alert.js';
|
|
33
|
-
import 'react-i18next';
|
|
34
34
|
import '../../components/Popper/Popper/Popper.js';
|
|
35
35
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
36
36
|
import 'formik';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
8
9
|
var viem = require('viem');
|
|
9
10
|
var utils = require('@dynamic-labs/utils');
|
|
10
11
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
@@ -37,7 +38,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
37
38
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
38
39
|
require('../../components/IconButton/IconButton.cjs');
|
|
39
40
|
require('../../components/Alert/Alert.cjs');
|
|
40
|
-
require('react-i18next');
|
|
41
41
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
42
42
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
43
|
var SendBalancePageLayout = require('../../components/SendBalancePageLayout/SendBalancePageLayout.cjs');
|
|
@@ -68,6 +68,7 @@ var TransactionStage = require('./components/TransactionStage/TransactionStage.c
|
|
|
68
68
|
const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBack, onClickClose, onError, onSuccess, onDone, displayPoweredByDynamicFooter = false, }) => {
|
|
69
69
|
const [stage, setStage] = React.useState('form');
|
|
70
70
|
const { primaryWallet, network, walletUiUtils } = useInternalDynamicContext.useInternalDynamicContext();
|
|
71
|
+
const { t } = reactI18next.useTranslation();
|
|
71
72
|
const [value, setValue] = React.useState(initialValue !== null && initialValue !== void 0 ? initialValue : null);
|
|
72
73
|
const [recipientAddress, setRecipientAddress] = React.useState(initialRecipientAddress);
|
|
73
74
|
const transactionRef = React.useRef(null);
|
|
@@ -105,7 +106,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
105
106
|
to: recipientAddress,
|
|
106
107
|
value,
|
|
107
108
|
};
|
|
108
|
-
return (jsxRuntime.jsx(TransactionStage.TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: '
|
|
109
|
+
return (jsxRuntime.jsx(TransactionStage.TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: t('dyn_send_transaction.confirmation.title'), onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
109
110
|
walletUiUtils.disabledConfirmationOnce();
|
|
110
111
|
const signer = yield walletConnector.getSigner();
|
|
111
112
|
const sentTransaction = yield signer.sendTransaction({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { parseEther } from 'viem';
|
|
5
6
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
6
7
|
import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
|
|
@@ -33,7 +34,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
33
34
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
34
35
|
import '../../components/IconButton/IconButton.js';
|
|
35
36
|
import '../../components/Alert/Alert.js';
|
|
36
|
-
import 'react-i18next';
|
|
37
37
|
import '../../components/Popper/Popper/Popper.js';
|
|
38
38
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
39
39
|
import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
|
|
@@ -64,6 +64,7 @@ import { TransactionStage } from './components/TransactionStage/TransactionStage
|
|
|
64
64
|
const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBack, onClickClose, onError, onSuccess, onDone, displayPoweredByDynamicFooter = false, }) => {
|
|
65
65
|
const [stage, setStage] = useState('form');
|
|
66
66
|
const { primaryWallet, network, walletUiUtils } = useInternalDynamicContext();
|
|
67
|
+
const { t } = useTranslation();
|
|
67
68
|
const [value, setValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : null);
|
|
68
69
|
const [recipientAddress, setRecipientAddress] = useState(initialRecipientAddress);
|
|
69
70
|
const transactionRef = useRef(null);
|
|
@@ -101,7 +102,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
101
102
|
to: recipientAddress,
|
|
102
103
|
value,
|
|
103
104
|
};
|
|
104
|
-
return (jsx(TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: '
|
|
105
|
+
return (jsx(TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: t('dyn_send_transaction.confirmation.title'), onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
105
106
|
walletUiUtils.disabledConfirmationOnce();
|
|
106
107
|
const signer = yield walletConnector.getSigner();
|
|
107
108
|
const sentTransaction = yield signer.sendTransaction({
|
|
@@ -27,6 +27,7 @@ require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
27
27
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
28
28
|
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
29
29
|
require('react-dom');
|
|
30
|
+
require('react-i18next');
|
|
30
31
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
31
32
|
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
32
33
|
require('react-focus-lock');
|
|
@@ -35,7 +36,6 @@ require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransiti
|
|
|
35
36
|
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
36
37
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
37
38
|
require('../../../../components/Alert/Alert.cjs');
|
|
38
|
-
require('react-i18next');
|
|
39
39
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
40
40
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
41
|
require('formik');
|
|
@@ -23,6 +23,7 @@ import '../../../../context/ErrorContext/ErrorContext.js';
|
|
|
23
23
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
24
24
|
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
+
import 'react-i18next';
|
|
26
27
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
27
28
|
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
28
29
|
import 'react-focus-lock';
|
|
@@ -31,7 +32,6 @@ import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransitio
|
|
|
31
32
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
32
33
|
import '../../../../components/IconButton/IconButton.js';
|
|
33
34
|
import '../../../../components/Alert/Alert.js';
|
|
34
|
-
import 'react-i18next';
|
|
35
35
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
36
36
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
37
37
|
import 'formik';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
6
7
|
var sdkApi = require('@dynamic-labs/sdk-api');
|
|
7
8
|
require('react');
|
|
8
9
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
@@ -36,7 +37,6 @@ require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
|
36
37
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
38
39
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
39
|
-
require('react-i18next');
|
|
40
40
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
41
41
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
42
42
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
@@ -64,7 +64,8 @@ var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialR
|
|
|
64
64
|
const SocialRedirectView = () => {
|
|
65
65
|
const { socialProvider, signInProvider } = SocialRedirectContext.useSocialRedirectContext();
|
|
66
66
|
const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
|
|
67
|
-
|
|
67
|
+
const { t } = reactI18next.useTranslation();
|
|
68
|
+
return (jsxRuntime.jsxs("div", { className: classNames.classNames('social-redirect-view__container'), children: [socialProvider && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('social-redirect-view__title'), children: t('dyn_social_redirect.logging_in') }), signInProvider !== sdkApi.SignInProviderEnum.MagicLink && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
exports.SocialRedirectView = SocialRedirectView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { SignInProviderEnum } from '@dynamic-labs/sdk-api';
|
|
3
4
|
import 'react';
|
|
4
5
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
@@ -32,7 +33,6 @@ import '../../components/OverlayCard/OverlayCard.context.js';
|
|
|
32
33
|
import '../../context/FooterAnimationContext/index.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
34
35
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
35
|
-
import 'react-i18next';
|
|
36
36
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
37
37
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
38
38
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
@@ -60,7 +60,8 @@ import { useSocialRedirectContext } from '../../context/SocialRedirectContext/So
|
|
|
60
60
|
const SocialRedirectView = () => {
|
|
61
61
|
const { socialProvider, signInProvider } = useSocialRedirectContext();
|
|
62
62
|
const findSocialIcon = useFindSocialIcon();
|
|
63
|
-
|
|
63
|
+
const { t } = useTranslation();
|
|
64
|
+
return (jsxs("div", { className: classNames('social-redirect-view__container'), children: [socialProvider && (jsx(IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('social-redirect-view__title'), children: t('dyn_social_redirect.logging_in') }), signInProvider !== SignInProviderEnum.MagicLink && (jsx(PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
export { SocialRedirectView };
|
|
@@ -32,11 +32,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
|
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
34
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
|
+
require('react-i18next');
|
|
35
36
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
36
37
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
38
39
|
require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
39
|
-
require('react-i18next');
|
|
40
40
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
41
41
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
42
42
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -28,11 +28,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
|
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
30
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
|
+
import 'react-i18next';
|
|
31
32
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
32
33
|
import '../../context/FooterAnimationContext/index.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
34
35
|
import '../../context/QrCodeContext/QrCodeContext.js';
|
|
35
|
-
import 'react-i18next';
|
|
36
36
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
37
37
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
38
38
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|