@dynamic-labs/sdk-react-core 0.19.0-alpha.7 → 0.19.0-alpha.9
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 +53 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +10 -10
- package/src/index.cjs +14 -5
- package/src/index.d.ts +2 -2
- package/src/index.js +8 -3
- package/src/lib/Main.cjs +3 -1
- package/src/lib/Main.js +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -3
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -3
- package/src/lib/components/Divider/Divider.cjs +1 -1
- package/src/lib/components/Divider/Divider.js +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +4 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.js +4 -3
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +1 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.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/OTPVerificationView/OTPVerificationView.cjs +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +2 -2
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +2 -2
- package/src/lib/components/SignMessagePreview/SignMessagePreview.cjs +27 -0
- package/src/lib/components/SignMessagePreview/SignMessagePreview.d.ts +6 -0
- package/src/lib/components/SignMessagePreview/SignMessagePreview.js +23 -0
- package/src/lib/components/SignMessagePreview/SignMessagePreview.types.d.ts +8 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +44 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.d.ts +8 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +40 -0
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/index.d.ts +1 -0
- package/src/lib/components/SignMessagePreview/components/index.d.ts +1 -0
- package/src/lib/components/SignMessagePreview/index.d.ts +1 -0
- package/src/lib/components/SignMessagePreview/utils/index.d.ts +1 -0
- package/src/lib/components/SignMessagePreview/utils/isSignTypedData/index.d.ts +1 -0
- package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.cjs +17 -0
- package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.d.ts +2 -0
- package/src/lib/components/SignMessagePreview/utils/isSignTypedData/isSignTypedData.js +13 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +26 -14
- package/src/lib/components/SocialSignIn/SocialSignIn.d.ts +8 -7
- package/src/lib/components/SocialSignIn/SocialSignIn.js +26 -14
- package/src/lib/components/Toolkit/Toolkit.cjs +2 -1
- package/src/lib/components/Toolkit/Toolkit.js +2 -1
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +1 -1
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +1 -2
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +1 -1
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
- package/src/lib/components/UserAvatar/UserAvatar.cjs +22 -0
- package/src/lib/components/UserAvatar/UserAvatar.d.ts +7 -0
- package/src/lib/components/UserAvatar/UserAvatar.js +18 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +12 -2
- package/src/lib/components/UserProfile/UserProfile.js +12 -2
- 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 +16 -14
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +16 -14
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +1 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.js +1 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +2 -3
- package/src/lib/context/DynamicContext/helpers.cjs +22 -10
- package/src/lib/context/DynamicContext/helpers.d.ts +4 -2
- package/src/lib/context/DynamicContext/helpers.js +20 -10
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -0
- package/src/lib/context/ErrorContext/ErrorContext.cjs +4 -1
- package/src/lib/context/ErrorContext/ErrorContext.js +4 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +1 -0
- package/src/lib/context/FundingContext/FundingContext.js +1 -0
- package/src/lib/context/MockContext/MockContext.cjs +1 -1
- package/src/lib/context/MockContext/MockContext.js +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +7 -4
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +7 -4
- package/src/lib/context/ViewContext/ViewContext.cjs +4 -19
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/ViewContext/ViewContext.js +5 -20
- package/src/lib/context/WalletContext/WalletContext.cjs +1 -1
- package/src/lib/context/WalletContext/WalletContext.js +1 -1
- package/src/lib/data/api.cjs +67 -29
- package/src/lib/data/api.d.ts +6 -3
- package/src/lib/data/api.js +68 -31
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +5 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +5 -2
- 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/HelpContent.cjs +5 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +5 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +61 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +57 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/index.d.ts +1 -0
- 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 +3 -3
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +3 -3
- 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/HelpContent/index.d.ts +1 -0
- 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/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 +43 -5
- package/src/lib/locale/en/translation.js +41 -6
- package/src/lib/locale/locale.cjs +17 -4
- package/src/lib/locale/locale.d.ts +1 -0
- package/src/lib/locale/locale.js +17 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -2
- 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/shared/assets/android-face-id.cjs +61 -0
- package/src/lib/shared/assets/android-face-id.js +37 -0
- package/src/lib/shared/assets/index.d.ts +6 -0
- package/src/lib/shared/assets/iphone-face-id.cjs +53 -0
- package/src/lib/shared/assets/iphone-face-id.js +29 -0
- package/src/lib/shared/assets/iphone-touch-id.cjs +72 -0
- package/src/lib/shared/assets/iphone-touch-id.js +48 -0
- package/src/lib/shared/assets/passkey-intro-icon.cjs +97 -0
- package/src/lib/shared/assets/passkey-intro-icon.js +73 -0
- package/src/lib/shared/assets/passkey-success-icon.cjs +94 -0
- package/src/lib/shared/assets/passkey-success-icon.js +70 -0
- package/src/lib/shared/assets/user-account-2.cjs +53 -0
- package/src/lib/shared/assets/user-account-2.js +29 -0
- package/src/lib/shared/types/index.d.ts +5 -0
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +7 -5
- package/src/lib/shared/utils/functions/wallet/createWallet.js +7 -5
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +4 -2
- package/src/lib/utils/constants/localStorage.d.ts +2 -1
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.cjs +11 -0
- package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.d.ts +2 -0
- package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.js +7 -0
- package/src/lib/utils/functions/getActiveOauthCredential/index.d.ts +1 -0
- package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/index.d.ts +1 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.cjs +72 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.d.ts +2 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.js +68 -0
- package/src/lib/utils/functions/getOauthLoginUrl/index.d.ts +1 -0
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.cjs +19 -0
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.d.ts +2 -0
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.js +15 -0
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/index.d.ts +1 -0
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.cjs +19 -0
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.d.ts +2 -0
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.js +15 -0
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/index.d.ts +1 -0
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.cjs +19 -0
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.d.ts +2 -0
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.js +15 -0
- package/src/lib/utils/functions/getSocialSignInProviderFromString/index.d.ts +1 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -1
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.cjs +3 -0
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.js +3 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +1 -0
- package/src/lib/utils/functions/index.d.ts +6 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +8 -23
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +9 -24
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +7 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +7 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +4 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +5 -4
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +1 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +1 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +10 -5
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -1
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +10 -5
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +11 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +11 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +15 -1
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +15 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +0 -4
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +0 -4
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +1 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +15 -165
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +2 -2
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +17 -167
- package/src/lib/utils/hooks/useSocialAuth/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +277 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +20 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +273 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +1 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +14 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +14 -3
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +1 -0
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +15 -26
- package/src/lib/utils/hooks/useWallets/useWallets.js +16 -27
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +5 -3
- package/src/lib/views/AccountExistsView/AccountExistsView.js +5 -3
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +1 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +1 -1
- package/src/lib/views/LoginView/LoginView.js +1 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +12 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +12 -4
- package/src/lib/views/LoginView/sections/LoginWidget.d.ts +5 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +77 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.d.ts +3 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +73 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +4 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.d.ts +2 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +4 -3
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +19 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.d.ts +6 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +19 -4
- 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/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +4 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +4 -3
- package/src/lib/views/LoginView/useLoginView.cjs +9 -10
- package/src/lib/views/LoginView/useLoginView.js +9 -10
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +2 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -2
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
- package/src/lib/views/NoAccess/NoAccess.js +1 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -3
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
- package/src/lib/views/PasskeyIntroView/PasskeyIntroView.cjs +90 -0
- package/src/lib/views/PasskeyIntroView/PasskeyIntroView.d.ts +2 -0
- package/src/lib/views/PasskeyIntroView/PasskeyIntroView.js +86 -0
- package/src/lib/views/PasskeyIntroView/index.d.ts +1 -0
- package/src/lib/views/PasskeySuccessView/PasskeySuccessView.cjs +63 -0
- package/src/lib/views/PasskeySuccessView/PasskeySuccessView.d.ts +2 -0
- package/src/lib/views/PasskeySuccessView/PasskeySuccessView.js +59 -0
- package/src/lib/views/PasskeySuccessView/index.d.ts +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -2
- package/src/lib/views/QrCodeView/QRCode.cjs +3 -3
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -2
- package/src/lib/views/QrCodeView/QRCode.js +3 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -3
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -7
- package/src/lib/views/SocialRedirectView/SocialRedirectView.d.ts +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -7
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.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/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +4 -2
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +4 -2
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +1 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.js +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
- package/src/lib/views/WalletList/WalletList.cjs +1 -4
- package/src/lib/views/WalletList/WalletList.js +1 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +3 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +3 -3
- package/src/lib/views/WalletList/data.cjs +3 -15
- package/src/lib/views/WalletList/data.d.ts +4 -2
- package/src/lib/views/WalletList/data.js +3 -14
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
- package/src/lib/views/viewToComponentMap.cjs +4 -0
- package/src/lib/views/viewToComponentMap.js +4 -0
- 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 +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +3 -3
- 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 +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +4 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +19 -4
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +19 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.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/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +13 -4
- 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/DynamicWidgetWallets/DynamicWidgetWallets.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.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 +3 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +2 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +3 -2
- 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 +7 -10
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +8 -11
- package/src/lib/widgets/DynamicWidget/hooks/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useViewController/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.cjs +17 -0
- package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.d.ts +6 -0
- package/src/lib/widgets/DynamicWidget/hooks/useViewController/useViewController.js +13 -0
- 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 +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.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 +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -2
- 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 +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +8 -7
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +8 -7
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +4 -4
- 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/SendBalanceWidgetView/SendBalanceWidgetView.cjs +2 -3
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +2 -3
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +4 -4
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +4 -4
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
- package/src/lib/widgets/index.d.ts +0 -1
- package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.cjs +0 -33
- package/src/lib/utils/functions/getRedirectURIOrigin/getRedirectURIOrigin.js +0 -29
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.cjs +0 -13
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.d.ts +0 -2
- package/src/lib/widgets/OAuthIFrameContainer/OAuthIFrameContainer.js +0 -9
- package/src/lib/widgets/OAuthIFrameContainer/index.d.ts +0 -1
|
@@ -15,6 +15,7 @@ import '../../shared/consts/index.js';
|
|
|
15
15
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
16
16
|
import '@dynamic-labs/multi-wallet';
|
|
17
17
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
18
|
+
import '../../config/ApiEndpoint.js';
|
|
18
19
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
20
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
20
21
|
import 'react-dom';
|
|
@@ -22,7 +23,6 @@ import 'react-focus-lock';
|
|
|
22
23
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
23
24
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
25
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
-
import '../../config/ApiEndpoint.js';
|
|
26
26
|
import '@dynamic-labs/rpc-providers';
|
|
27
27
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -50,7 +50,7 @@ import '../../components/OverlayCard/OverlayCard.context.js';
|
|
|
50
50
|
const PendingConnectView = () => {
|
|
51
51
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
|
|
52
52
|
const iconSize = 94;
|
|
53
|
-
const icon = (jsx(WalletIcon, {
|
|
53
|
+
const icon = (jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
|
|
54
54
|
height: pixelToRem(iconSize * iconRatio),
|
|
55
55
|
width: pixelToRem(iconSize * iconRatio),
|
|
56
56
|
} }));
|
|
@@ -21,6 +21,7 @@ var useInternalDynamicContext = require('../../context/DynamicContext/useInterna
|
|
|
21
21
|
require('@dynamic-labs/multi-wallet');
|
|
22
22
|
var requiresTwoStepAuthentication = require('../../utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs');
|
|
23
23
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
24
|
+
require('../../config/ApiEndpoint.cjs');
|
|
24
25
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
25
26
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
26
27
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -29,7 +30,6 @@ require('react-focus-lock');
|
|
|
29
30
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
30
31
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
31
32
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
32
|
-
require('../../config/ApiEndpoint.cjs');
|
|
33
33
|
require('@dynamic-labs/rpc-providers');
|
|
34
34
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
35
35
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -80,7 +80,7 @@ const PendingSignatureView = () => {
|
|
|
80
80
|
setLoading(false);
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
83
|
+
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: {
|
|
84
84
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
85
85
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
86
86
|
} }));
|
|
@@ -17,6 +17,7 @@ import { useInternalDynamicContext } from '../../context/DynamicContext/useInter
|
|
|
17
17
|
import '@dynamic-labs/multi-wallet';
|
|
18
18
|
import { requiresTwoStepAuthentication } from '../../utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js';
|
|
19
19
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
20
|
+
import '../../config/ApiEndpoint.js';
|
|
20
21
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
21
22
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
22
23
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -25,7 +26,6 @@ import 'react-focus-lock';
|
|
|
25
26
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
26
27
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
27
28
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
28
|
-
import '../../config/ApiEndpoint.js';
|
|
29
29
|
import '@dynamic-labs/rpc-providers';
|
|
30
30
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
31
31
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -76,7 +76,7 @@ const PendingSignatureView = () => {
|
|
|
76
76
|
setLoading(false);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
const icon = (jsx(WalletIcon, {
|
|
79
|
+
const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: {
|
|
80
80
|
height: pixelToRem(iconSize * iconRatio),
|
|
81
81
|
width: pixelToRem(iconSize * iconRatio),
|
|
82
82
|
} }));
|
|
@@ -62,7 +62,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
|
|
|
62
62
|
? rows.push([key])
|
|
63
63
|
: rows[rows.length - 1].push(key)) && rows, []);
|
|
64
64
|
};
|
|
65
|
-
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor,
|
|
65
|
+
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, }) => {
|
|
66
66
|
const { showQrCodeImage } = QrCodeContext.useQrCodeContext();
|
|
67
67
|
const { data } = usePromise.usePromise(() => QRCodeUtil__default["default"].toDataURL(value));
|
|
68
68
|
const dots = React.useMemo(() => {
|
|
@@ -107,8 +107,8 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
|
|
|
107
107
|
}, [ecl, logoSize, size, value, accentColor]);
|
|
108
108
|
const logoPosition = size / 2 - logoSize / 2 - logoMargin;
|
|
109
109
|
const walletsWithoutIndicator = ['coinbase', 'walletconnect'];
|
|
110
|
-
const indicator = !
|
|
111
|
-
walletsWithoutIndicator.includes(walletConnectorCore.normalizeWalletName(
|
|
110
|
+
const indicator = !walletKey ||
|
|
111
|
+
walletsWithoutIndicator.includes(walletConnectorCore.normalizeWalletName(walletKey))
|
|
112
112
|
? undefined
|
|
113
113
|
: 'walletConnect';
|
|
114
114
|
return (jsxRuntime.jsx("div", Object.assign({ className: 'qrcode__container' }, { children: jsxRuntime.jsx("div", Object.assign({ className: 'qrcode' }, { children: showQrCodeImage ? (jsxRuntime.jsx("img", { src: data, alt: '' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("svg", Object.assign({ height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code' }, { children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", Object.assign({ id: 'clip-logo' }, { children: jsxRuntime.jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) })) }), jsxRuntime.jsx("rect", { fill: 'none', height: size, width: size }), dots] })), jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) })) })));
|
|
@@ -8,7 +8,7 @@ type QRCodeProps = {
|
|
|
8
8
|
logoSize?: number;
|
|
9
9
|
size?: number;
|
|
10
10
|
value: string;
|
|
11
|
-
|
|
11
|
+
walletKey?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor,
|
|
13
|
+
export declare const QRCode: ({ ecl, Icon, logoMargin, logoSize, size, value, accentColor, walletKey, }: QRCodeProps) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -54,7 +54,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
|
|
|
54
54
|
? rows.push([key])
|
|
55
55
|
: rows[rows.length - 1].push(key)) && rows, []);
|
|
56
56
|
};
|
|
57
|
-
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor,
|
|
57
|
+
const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, }) => {
|
|
58
58
|
const { showQrCodeImage } = useQrCodeContext();
|
|
59
59
|
const { data } = usePromise(() => QRCodeUtil.toDataURL(value));
|
|
60
60
|
const dots = useMemo(() => {
|
|
@@ -99,8 +99,8 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
|
|
|
99
99
|
}, [ecl, logoSize, size, value, accentColor]);
|
|
100
100
|
const logoPosition = size / 2 - logoSize / 2 - logoMargin;
|
|
101
101
|
const walletsWithoutIndicator = ['coinbase', 'walletconnect'];
|
|
102
|
-
const indicator = !
|
|
103
|
-
walletsWithoutIndicator.includes(normalizeWalletName(
|
|
102
|
+
const indicator = !walletKey ||
|
|
103
|
+
walletsWithoutIndicator.includes(normalizeWalletName(walletKey))
|
|
104
104
|
? undefined
|
|
105
105
|
: 'walletConnect';
|
|
106
106
|
return (jsx("div", Object.assign({ className: 'qrcode__container' }, { children: jsx("div", Object.assign({ className: 'qrcode' }, { children: showQrCodeImage ? (jsx("img", { src: data, alt: '' })) : (jsxs(Fragment, { children: [jsxs("svg", Object.assign({ height: '100%', width: '100%', viewBox: `0 0 ${size} ${size}`, "data-testid": 'qr-code' }, { children: [jsx("defs", { children: jsx("clipPath", Object.assign({ id: 'clip-logo' }, { children: jsx("rect", { height: logoSize, width: logoSize, x: logoPosition, y: logoPosition, rx: 7, ry: 7 }) })) }), jsx("rect", { fill: 'none', height: size, width: size }), dots] })), jsx(IconWithSpinner, { Icon: Icon, iconSize: logoSize, isSpinning: true, className: 'qrcode__icon', indicator: indicator })] })) })) })));
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
7
6
|
var MockedQrCode = require('../../../components/MockedQrCode/MockedQrCode.cjs');
|
|
8
7
|
require('@dynamic-labs/sdk-api');
|
|
9
8
|
require('../../../shared/logger.cjs');
|
|
10
9
|
require('@dynamic-labs/iconic');
|
|
10
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
11
11
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
12
12
|
require('react');
|
|
13
13
|
var link = require('../../../shared/assets/link.cjs');
|
|
@@ -22,6 +22,7 @@ var QRCode = require('../QRCode.cjs');
|
|
|
22
22
|
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
23
23
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
24
24
|
require('@dynamic-labs/multi-wallet');
|
|
25
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
25
26
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
26
27
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
27
28
|
var Icon = require('../../../components/Icon/Icon.cjs');
|
|
@@ -30,7 +31,6 @@ require('react-focus-lock');
|
|
|
30
31
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
31
32
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
32
33
|
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
33
|
-
require('../../../config/ApiEndpoint.cjs');
|
|
34
34
|
require('@dynamic-labs/rpc-providers');
|
|
35
35
|
require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
36
36
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -55,7 +55,7 @@ require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
|
55
55
|
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
56
56
|
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
57
57
|
|
|
58
|
-
const QrCodeContainer = ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50,
|
|
58
|
+
const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsxRuntime.jsx(QRCode.QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
|
|
59
59
|
// this div exists to give the parent a child, so that the parent
|
|
60
60
|
// takes on its given width and height. the result is stable
|
|
61
61
|
// rendering of this component, without this there is a brief flash
|
|
@@ -5,7 +5,8 @@ type QrCodeContainerProps = {
|
|
|
5
5
|
desktopUri?: string;
|
|
6
6
|
qrcodeValue: string;
|
|
7
7
|
showCopyToClipboardButton?: boolean;
|
|
8
|
+
walletKey: string;
|
|
8
9
|
walletName: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const QrCodeContainer: ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, }: QrCodeContainerProps) => JSX.Element;
|
|
11
|
+
export declare const QrCodeContainer: ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton, desktopUri, }: QrCodeContainerProps) => JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
3
2
|
import { MockedQrCode } from '../../../components/MockedQrCode/MockedQrCode.js';
|
|
4
3
|
import '@dynamic-labs/sdk-api';
|
|
5
4
|
import '../../../shared/logger.js';
|
|
6
5
|
import '@dynamic-labs/iconic';
|
|
6
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
7
7
|
import '../../../context/ViewContext/ViewContext.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import { ReactComponent as SvgLink } from '../../../shared/assets/link.js';
|
|
@@ -18,6 +18,7 @@ import { QRCode } from '../QRCode.js';
|
|
|
18
18
|
import { Typography } from '../../../components/Typography/Typography.js';
|
|
19
19
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
20
20
|
import '@dynamic-labs/multi-wallet';
|
|
21
|
+
import '../../../config/ApiEndpoint.js';
|
|
21
22
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
22
23
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
23
24
|
import { Icon } from '../../../components/Icon/Icon.js';
|
|
@@ -26,7 +27,6 @@ import 'react-focus-lock';
|
|
|
26
27
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
27
28
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
28
29
|
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
29
|
-
import '../../../config/ApiEndpoint.js';
|
|
30
30
|
import '@dynamic-labs/rpc-providers';
|
|
31
31
|
import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
32
32
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
@@ -51,7 +51,7 @@ import '../../../components/InlineWidget/InlineWidget.js';
|
|
|
51
51
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
52
52
|
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
53
53
|
|
|
54
|
-
const QrCodeContainer = ({ accentColor, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50,
|
|
54
|
+
const QrCodeContainer = ({ accentColor, walletKey, walletName, qrcodeValue, Icon: WalletIcon, showCopyToClipboardButton = false, desktopUri, }) => (jsxs("div", Object.assign({ className: 'qrcode-container__container' }, { children: [jsxs("div", Object.assign({ className: 'qrcode-container__top' }, { children: [qrcodeValue ? (jsx(QRCode, { Icon: WalletIcon, accentColor: accentColor, value: qrcodeValue, logoSize: 50, walletKey: walletKey })) : (
|
|
55
55
|
// this div exists to give the parent a child, so that the parent
|
|
56
56
|
// takes on its given width and height. the result is stable
|
|
57
57
|
// rendering of this component, without this there is a brief flash
|
|
@@ -19,13 +19,13 @@ require('ethers');
|
|
|
19
19
|
require('../../shared/consts/index.cjs');
|
|
20
20
|
require('@dynamic-labs/multi-wallet');
|
|
21
21
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
22
|
+
require('../../config/ApiEndpoint.cjs');
|
|
22
23
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
24
|
require('react-dom');
|
|
24
25
|
require('react-focus-lock');
|
|
25
26
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
26
27
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
27
28
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
28
|
-
require('../../config/ApiEndpoint.cjs');
|
|
29
29
|
require('@dynamic-labs/rpc-providers');
|
|
30
30
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
31
31
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -63,12 +63,12 @@ const QrCodeView = () => {
|
|
|
63
63
|
if (!walletConnector) {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
|
-
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
66
|
+
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
|
|
67
67
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'qr-code-view__container', "data-testid": 'qr-code-view' }, { children: [jsxRuntime.jsx(QrCodeContainer.QrCodeContainer, { desktopUri: desktopUri, accentColor:
|
|
68
68
|
/* istanbul ignore next */
|
|
69
69
|
name === 'dark'
|
|
70
70
|
? theme.colors.textPrimary
|
|
71
|
-
: (_a = walletBook.getWalletPrimaryColor(walletBook$1, walletConnector.
|
|
71
|
+
: (_a = walletBook.getWalletPrimaryColor(walletBook$1, walletConnector.key)) !== null && _a !== void 0 ? _a : '', walletKey: walletConnector.key, walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
exports.QrCodeView = QrCodeView;
|
|
@@ -15,13 +15,13 @@ import 'ethers';
|
|
|
15
15
|
import '../../shared/consts/index.js';
|
|
16
16
|
import '@dynamic-labs/multi-wallet';
|
|
17
17
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
18
|
+
import '../../config/ApiEndpoint.js';
|
|
18
19
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
20
|
import 'react-dom';
|
|
20
21
|
import 'react-focus-lock';
|
|
21
22
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
22
23
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
23
24
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
24
|
-
import '../../config/ApiEndpoint.js';
|
|
25
25
|
import '@dynamic-labs/rpc-providers';
|
|
26
26
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
27
27
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -59,12 +59,12 @@ const QrCodeView = () => {
|
|
|
59
59
|
if (!walletConnector) {
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
const icon = (jsx(WalletIcon, {
|
|
62
|
+
const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
|
|
63
63
|
return (jsxs("div", Object.assign({ className: 'qr-code-view__container', "data-testid": 'qr-code-view' }, { children: [jsx(QrCodeContainer, { desktopUri: desktopUri, accentColor:
|
|
64
64
|
/* istanbul ignore next */
|
|
65
65
|
name === 'dark'
|
|
66
66
|
? theme.colors.textPrimary
|
|
67
|
-
: (_a = getWalletPrimaryColor(walletBook, walletConnector.
|
|
67
|
+
: (_a = getWalletPrimaryColor(walletBook, walletConnector.key)) !== null && _a !== void 0 ? _a : '', walletKey: walletConnector.key, walletName: walletConnector.name, qrcodeValue: qrcodeUri, Icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect }), jsx(PoweredByDynamic, { classNameRoot: 'qr-code-view__powered-by' })] })));
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export { QrCodeView };
|
|
@@ -81,7 +81,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
81
81
|
const buildFormStage = () => (jsxRuntime.jsx(SendBalancePageLayout.SendBalancePageLayout, { initialValues: {
|
|
82
82
|
amount: value === null ? '' : formatBigNumber.formatBigNumber(value),
|
|
83
83
|
recipient: recipientAddress,
|
|
84
|
-
}, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress.shortenWalletAddress(primaryWallet.address, 3, 3),
|
|
84
|
+
}, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress.shortenWalletAddress(primaryWallet.address, 3, 3), walletKey: primaryWallet.connector.key, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
|
|
85
85
|
setValue(ethers.utils.parseEther(data.amount));
|
|
86
86
|
setRecipientAddress(data.recipient);
|
|
87
87
|
setStage('confirmation');
|
|
@@ -77,7 +77,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
|
|
|
77
77
|
const buildFormStage = () => (jsx(SendBalancePageLayout, { initialValues: {
|
|
78
78
|
amount: value === null ? '' : formatBigNumber(value),
|
|
79
79
|
recipient: recipientAddress,
|
|
80
|
-
}, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress(primaryWallet.address, 3, 3),
|
|
80
|
+
}, balance: balance, onClickBack: onClickBack, chain: primaryWallet.chain, networkName: networkName, networkIcon: networkIcon, currencySymbol: currencySymbol, isLoading: false, walletAddress: shortenWalletAddress(primaryWallet.address, 3, 3), walletKey: primaryWallet.connector.key, onClickClose: onClickClose, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, onSubmit: (data) => {
|
|
81
81
|
setValue(utils.parseEther(data.amount));
|
|
82
82
|
setRecipientAddress(data.recipient);
|
|
83
83
|
setStage('confirmation');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var sdkApi = require('@dynamic-labs/sdk-api');
|
|
6
7
|
require('react');
|
|
7
8
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
8
|
-
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
10
|
require('@dynamic-labs/iconic');
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -18,6 +18,7 @@ require('ethers');
|
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
20
20
|
require('@dynamic-labs/multi-wallet');
|
|
21
|
+
require('../../config/ApiEndpoint.cjs');
|
|
21
22
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
22
23
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
23
24
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -26,13 +27,13 @@ require('react-focus-lock');
|
|
|
26
27
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
27
28
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
28
29
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
|
-
require('../../config/ApiEndpoint.cjs');
|
|
30
30
|
require('@dynamic-labs/rpc-providers');
|
|
31
31
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
34
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
35
|
require('../../components/IconButton/IconButton.cjs');
|
|
36
|
+
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
36
37
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
37
38
|
require('../../components/Alert/Alert.cjs');
|
|
38
39
|
require('formik');
|
|
@@ -53,12 +54,9 @@ require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
|
53
54
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
54
55
|
|
|
55
56
|
const SocialRedirectView = () => {
|
|
56
|
-
const { socialProvider,
|
|
57
|
+
const { socialProvider, signInProvider } = SocialRedirectContext.useSocialRedirectContext();
|
|
57
58
|
const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
|
|
58
|
-
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('social-redirect-view__container') }, { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true }), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', className: classNames.classNames('social-redirect-view__title') }, { children: "Logging you in" }))] })));
|
|
59
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('social-redirect-view__container') }, { children: [socialProvider && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', className: classNames.classNames('social-redirect-view__title') }, { children: "Logging you in" })), signInProvider !== sdkApi.SignInProviderEnum.MagicLink && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] })));
|
|
62
60
|
};
|
|
63
61
|
|
|
64
62
|
exports.SocialRedirectView = SocialRedirectView;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SocialRedirectView: () => JSX.Element
|
|
2
|
+
export declare const SocialRedirectView: () => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { SignInProviderEnum } from '@dynamic-labs/sdk-api';
|
|
2
3
|
import 'react';
|
|
3
4
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
4
|
-
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
6
|
import '@dynamic-labs/iconic';
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -14,6 +14,7 @@ import 'ethers';
|
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
16
16
|
import '@dynamic-labs/multi-wallet';
|
|
17
|
+
import '../../config/ApiEndpoint.js';
|
|
17
18
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
18
19
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
19
20
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -22,13 +23,13 @@ import 'react-focus-lock';
|
|
|
22
23
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
23
24
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
25
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
-
import '../../config/ApiEndpoint.js';
|
|
26
26
|
import '@dynamic-labs/rpc-providers';
|
|
27
27
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
30
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
31
|
import '../../components/IconButton/IconButton.js';
|
|
32
|
+
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
32
33
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
33
34
|
import '../../components/Alert/Alert.js';
|
|
34
35
|
import 'formik';
|
|
@@ -49,12 +50,9 @@ import '../../components/OverlayCard/OverlayCard.context.js';
|
|
|
49
50
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
50
51
|
|
|
51
52
|
const SocialRedirectView = () => {
|
|
52
|
-
const { socialProvider,
|
|
53
|
+
const { socialProvider, signInProvider } = useSocialRedirectContext();
|
|
53
54
|
const findSocialIcon = useFindSocialIcon();
|
|
54
|
-
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
return (jsxs("div", Object.assign({ className: classNames('social-redirect-view__container') }, { children: [jsx(IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true }), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', className: classNames('social-redirect-view__title') }, { children: "Logging you in" }))] })));
|
|
55
|
+
return (jsxs("div", Object.assign({ className: classNames('social-redirect-view__container') }, { children: [socialProvider && (jsx(IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', className: classNames('social-redirect-view__title') }, { children: "Logging you in" })), signInProvider !== SignInProviderEnum.MagicLink && (jsx(PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] })));
|
|
58
56
|
};
|
|
59
57
|
|
|
60
58
|
export { SocialRedirectView };
|
|
@@ -18,6 +18,7 @@ require('ethers');
|
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
20
20
|
require('@dynamic-labs/multi-wallet');
|
|
21
|
+
require('../../config/ApiEndpoint.cjs');
|
|
21
22
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
22
23
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
23
24
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -26,7 +27,6 @@ require('react-focus-lock');
|
|
|
26
27
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
27
28
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
28
29
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
|
-
require('../../config/ApiEndpoint.cjs');
|
|
30
30
|
require('@dynamic-labs/rpc-providers');
|
|
31
31
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -14,6 +14,7 @@ import 'ethers';
|
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
16
16
|
import '@dynamic-labs/multi-wallet';
|
|
17
|
+
import '../../config/ApiEndpoint.js';
|
|
17
18
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
18
19
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
19
20
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -22,7 +23,6 @@ import 'react-focus-lock';
|
|
|
22
23
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
23
24
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
24
25
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
|
-
import '../../config/ApiEndpoint.js';
|
|
26
26
|
import '@dynamic-labs/rpc-providers';
|
|
27
27
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -19,6 +19,7 @@ require('ethers');
|
|
|
19
19
|
require('../../shared/consts/index.cjs');
|
|
20
20
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
21
21
|
require('@dynamic-labs/multi-wallet');
|
|
22
|
+
require('../../config/ApiEndpoint.cjs');
|
|
22
23
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
24
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
24
25
|
var Icon = require('../../components/Icon/Icon.cjs');
|
|
@@ -27,7 +28,6 @@ require('react-focus-lock');
|
|
|
27
28
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
28
29
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
29
30
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
|
-
require('../../config/ApiEndpoint.cjs');
|
|
31
31
|
require('@dynamic-labs/rpc-providers');
|
|
32
32
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
33
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -15,6 +15,7 @@ import 'ethers';
|
|
|
15
15
|
import '../../shared/consts/index.js';
|
|
16
16
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
17
17
|
import '@dynamic-labs/multi-wallet';
|
|
18
|
+
import '../../config/ApiEndpoint.js';
|
|
18
19
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
20
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
20
21
|
import { Icon } from '../../components/Icon/Icon.js';
|
|
@@ -23,7 +24,6 @@ import 'react-focus-lock';
|
|
|
23
24
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
24
25
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
25
26
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
26
|
-
import '../../config/ApiEndpoint.js';
|
|
27
27
|
import '@dynamic-labs/rpc-providers';
|
|
28
28
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
29
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -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 walletBook = require('@dynamic-labs/wallet-book');
|
|
9
10
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
10
11
|
require('@dynamic-labs/sdk-api');
|
|
@@ -20,6 +21,7 @@ require('ethers');
|
|
|
20
21
|
require('../../shared/consts/index.cjs');
|
|
21
22
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
22
23
|
require('@dynamic-labs/multi-wallet');
|
|
24
|
+
require('../../config/ApiEndpoint.cjs');
|
|
23
25
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
24
26
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
25
27
|
require('react-dom');
|
|
@@ -27,7 +29,6 @@ require('react-focus-lock');
|
|
|
27
29
|
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
28
30
|
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
29
31
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
|
-
require('../../config/ApiEndpoint.cjs');
|
|
31
32
|
require('@dynamic-labs/rpc-providers');
|
|
32
33
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -55,6 +56,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
55
56
|
const [walletAddress, setWalletAddress] = React.useState(undefined);
|
|
56
57
|
const { goToInitialView } = ViewContext.useViewContext();
|
|
57
58
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
59
|
+
const { t } = reactI18next.useTranslation();
|
|
58
60
|
React.useEffect(() => {
|
|
59
61
|
const _fetchPublicAddress = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
60
62
|
const address = yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.fetchPublicAddress());
|
|
@@ -63,7 +65,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
63
65
|
_fetchPublicAddress();
|
|
64
66
|
}, [walletConnector]);
|
|
65
67
|
const _shortenWalletAddress = shortenWalletAddress.shortenWalletAddress(walletAddress);
|
|
66
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children:
|
|
68
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children: t('dyn_wallet_link.cannot_link.title') })), jsxRuntime.jsx("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, width: 64, height: 64 }) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__shorten-wallet-address', variant: 'body_normal', weight: 'regular', color: 'primary' }, { children: _shortenWalletAddress })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__copy', variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: t('dyn_wallet_link.cannot_link.description') })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonClassName: 'wallet-cannot-be-transferred-view__transfer-alt-wallet-button', buttonVariant: 'primary', buttonRounded: 'default', expanded: true, buttonPadding: 'large', onClick: goToInitialView, dataTestId: 'wallet-cannot-be-transferred-view-transfer-alt-wallet' }, { children: t('dyn_wallet_link.cannot_link.link_other_button') })), jsxRuntime.jsx(Button.Button, Object.assign({ dataTestId: 'wallet-cannot-be-transferred-view-cancel', buttonPadding: 'small', buttonClassName: 'wallet-cannot-be-transferred-view__cancel', buttonRounded: 'small', onClick: goToInitialView }, { children: t('dyn_wallet_link.cannot_link.cancel_button') }))] })));
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
exports.WalletCannotBeTransferredView = WalletCannotBeTransferredView;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
5
6
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
6
7
|
import '@dynamic-labs/sdk-api';
|
|
@@ -16,6 +17,7 @@ import 'ethers';
|
|
|
16
17
|
import '../../shared/consts/index.js';
|
|
17
18
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
18
19
|
import '@dynamic-labs/multi-wallet';
|
|
20
|
+
import '../../config/ApiEndpoint.js';
|
|
19
21
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
20
22
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
21
23
|
import 'react-dom';
|
|
@@ -23,7 +25,6 @@ import 'react-focus-lock';
|
|
|
23
25
|
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
24
26
|
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
25
27
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
26
|
-
import '../../config/ApiEndpoint.js';
|
|
27
28
|
import '@dynamic-labs/rpc-providers';
|
|
28
29
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -51,6 +52,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
51
52
|
const [walletAddress, setWalletAddress] = useState(undefined);
|
|
52
53
|
const { goToInitialView } = useViewContext();
|
|
53
54
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
|
|
55
|
+
const { t } = useTranslation();
|
|
54
56
|
useEffect(() => {
|
|
55
57
|
const _fetchPublicAddress = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
56
58
|
const address = yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.fetchPublicAddress());
|
|
@@ -59,7 +61,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
59
61
|
_fetchPublicAddress();
|
|
60
62
|
}, [walletConnector]);
|
|
61
63
|
const _shortenWalletAddress = shortenWalletAddress(walletAddress);
|
|
62
|
-
return (jsxs("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__container' }, { children: [jsx(Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children:
|
|
64
|
+
return (jsxs("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__container' }, { children: [jsx(Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children: t('dyn_wallet_link.cannot_link.title') })), jsx("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__icon' }, { children: jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, width: 64, height: 64 }) })), jsx(Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__shorten-wallet-address', variant: 'body_normal', weight: 'regular', color: 'primary' }, { children: _shortenWalletAddress })), jsx(Typography, Object.assign({ className: 'wallet-cannot-be-transferred-view__copy', variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: t('dyn_wallet_link.cannot_link.description') })), jsx(Button, Object.assign({ buttonClassName: 'wallet-cannot-be-transferred-view__transfer-alt-wallet-button', buttonVariant: 'primary', buttonRounded: 'default', expanded: true, buttonPadding: 'large', onClick: goToInitialView, dataTestId: 'wallet-cannot-be-transferred-view-transfer-alt-wallet' }, { children: t('dyn_wallet_link.cannot_link.link_other_button') })), jsx(Button, Object.assign({ dataTestId: 'wallet-cannot-be-transferred-view-cancel', buttonPadding: 'small', buttonClassName: 'wallet-cannot-be-transferred-view__cancel', buttonRounded: 'small', onClick: goToInitialView }, { children: t('dyn_wallet_link.cannot_link.cancel_button') }))] })));
|
|
63
65
|
};
|
|
64
66
|
|
|
65
67
|
export { WalletCannotBeTransferredView };
|
|
@@ -15,7 +15,7 @@ const WalletGroupView = () => {
|
|
|
15
15
|
if (!selectedWalletGroup)
|
|
16
16
|
throw new Error('Could not access WalletGroup view without selected group');
|
|
17
17
|
const walletBookData = walletBook.getWalletGroup(walletBook$1, selectedWalletGroup === null || selectedWalletGroup === void 0 ? void 0 : selectedWalletGroup.key);
|
|
18
|
-
return (jsxRuntime.jsx(SelectWalletChainLayout.SelectWalletChainLayout, Object.assign({ HeaderIcon: jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
18
|
+
return (jsxRuntime.jsx(SelectWalletChainLayout.SelectWalletChainLayout, Object.assign({ HeaderIcon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: (_a = walletBookData.brand) === null || _a === void 0 ? void 0 : _a.spriteId }) }, { children: selectedWalletGroup.groupedWallets.map((wallet) => (jsxRuntime.jsx(WalletGroupItem.WalletGroupItem, { wallet: wallet }, wallet.key))) })));
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.WalletGroupView = WalletGroupView;
|
|
@@ -11,7 +11,7 @@ const WalletGroupView = () => {
|
|
|
11
11
|
if (!selectedWalletGroup)
|
|
12
12
|
throw new Error('Could not access WalletGroup view without selected group');
|
|
13
13
|
const walletBookData = getWalletGroup(walletBook, selectedWalletGroup === null || selectedWalletGroup === void 0 ? void 0 : selectedWalletGroup.key);
|
|
14
|
-
return (jsx(SelectWalletChainLayout, Object.assign({ HeaderIcon: jsx(WalletIcon, {
|
|
14
|
+
return (jsx(SelectWalletChainLayout, Object.assign({ HeaderIcon: jsx(WalletIcon, { walletKey: (_a = walletBookData.brand) === null || _a === void 0 ? void 0 : _a.spriteId }) }, { children: selectedWalletGroup.groupedWallets.map((wallet) => (jsx(WalletGroupItem, { wallet: wallet }, wallet.key))) })));
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export { WalletGroupView };
|