@dynamic-labs/sdk-react-core 0.19.0-alpha.6 → 0.19.0-alpha.8
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 +47 -0
- package/package.cjs +8 -6
- package/package.js +8 -6
- package/package.json +15 -13
- package/src/index.cjs +3 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -0
- package/src/lib/Main.cjs +2 -0
- package/src/lib/Main.js +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -2
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -2
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +3 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.d.ts +4 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +3 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +3 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.js +3 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +1 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.js +1 -1
- package/src/lib/components/Modal/Modal.cjs +1 -0
- package/src/lib/components/Modal/Modal.js +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +0 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +9 -3
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +9 -3
- 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 -0
- package/src/lib/components/Portal/Portal.js +1 -0
- package/src/lib/components/Search/Search.d.ts +0 -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/SocialSignIn/SocialSignIn.cjs +98 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.d.ts +12 -0
- package/src/lib/components/SocialSignIn/SocialSignIn.js +94 -0
- package/src/lib/components/Switch/Switch.d.ts +0 -1
- package/src/lib/components/Toolkit/components/AuthModeSwitch.d.ts +0 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.d.ts +0 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.d.ts +0 -1
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +0 -1
- package/src/lib/components/Toolkit/components/TemplateSelect.d.ts +0 -1
- package/src/lib/components/Toolkit/components/ThemeSwitch.d.ts +0 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/src/lib/components/Tooltip/Tooltip.js +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +0 -1
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +4 -1
- package/src/lib/components/UserProfile/UserProfile.js +4 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +16 -13
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +16 -13
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +36 -18
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +14 -2
- package/src/lib/context/DynamicContext/DynamicContext.js +36 -18
- package/src/lib/context/DynamicContext/helpers.cjs +42 -3
- package/src/lib/context/DynamicContext/helpers.d.ts +7 -1
- package/src/lib/context/DynamicContext/helpers.js +38 -4
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +5 -2
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +4 -2
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +5 -2
- package/src/lib/context/DynamicContext/internalEvents/internalEvents.d.ts +1 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +6 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +2 -1
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +2 -1
- package/src/lib/context/ErrorContext/ErrorContext.cjs +5 -1
- package/src/lib/context/ErrorContext/ErrorContext.js +5 -1
- package/src/lib/context/MockContext/MockContext.cjs +1 -0
- package/src/lib/context/MockContext/MockContext.js +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +8 -4
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +5 -5
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +8 -4
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -0
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +2 -16
- package/src/lib/context/WalletContext/WalletContext.js +2 -16
- package/src/lib/data/api.cjs +49 -10
- package/src/lib/data/api.d.ts +1 -0
- package/src/lib/data/api.js +50 -12
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +3 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -0
- package/src/lib/locale/en/translation.cjs +90 -0
- package/src/lib/locale/en/translation.js +77 -0
- package/src/lib/locale/index.d.ts +1 -0
- package/src/lib/locale/locale.cjs +55 -0
- package/src/lib/locale/locale.d.ts +13 -0
- package/src/lib/locale/locale.js +46 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -0
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -0
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/sign-in-with-email.cjs +59 -0
- package/src/lib/shared/assets/sign-in-with-email.js +35 -0
- package/src/lib/shared/types/index.d.ts +4 -0
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +1 -1
- package/src/lib/shared/utils/functions/wallet/createWallet.js +1 -1
- 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 +5 -1
- package/src/lib/utils/constants/localStorage.d.ts +2 -0
- package/src/lib/utils/constants/localStorage.js +4 -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/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/index.d.ts +5 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +31 -16
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +31 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +6 -2
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +6 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +9 -4
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +1 -19
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +9 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +4 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +4 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +11 -15
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +12 -16
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +74 -0
- package/src/lib/utils/{functions/getDynamicLayoutData/getDynamicLayoutData.d.ts → hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts} +2 -2
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +70 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +10 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +10 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +10 -164
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +2 -2
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +12 -166
- package/src/lib/utils/hooks/useSocialAuth/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +278 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +20 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +274 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +8 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +8 -6
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +13 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +13 -3
- package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.cjs +0 -5
- package/src/lib/utils/hooks/useWalletConnectorEvent/useWalletConnectorEvent.js +0 -5
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +0 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +0 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +7 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +7 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -0
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +3 -1
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +3 -2
- package/src/lib/utils/hooks/useWallets/useWallets.js +3 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +6 -3
- package/src/lib/views/AccountExistsView/AccountExistsView.js +6 -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 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +4 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +4 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +1 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -0
- 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 +10 -3
- package/src/lib/views/EmailVerification/EmailVerification.js +11 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +6 -6
- package/src/lib/views/LoginView/LoginView.js +6 -6
- package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.cjs +1 -0
- package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.js +1 -0
- package/src/lib/views/LoginView/sections/LoginWidget.d.ts +10 -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 +65 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.d.ts +3 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +61 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +49 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.d.ts +7 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +45 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.cjs +1 -0
- package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.js +1 -0
- package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.cjs → sections/WalletSignInSection/WalletSignInSection.cjs} +9 -3
- package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.d.ts → sections/WalletSignInSection/WalletSignInSection.d.ts} +1 -1
- package/src/lib/views/LoginView/{components/WalletSignIn/WalletSignIn.js → sections/WalletSignInSection/WalletSignInSection.js} +9 -3
- package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.cjs +3 -1
- package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.js +3 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/index.d.ts +4 -0
- package/src/lib/views/LoginView/useLoginView.cjs +11 -8
- package/src/lib/views/LoginView/useLoginView.js +11 -8
- 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 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -0
- package/src/lib/views/NoAccess/NoAccess.js +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -1
- package/src/lib/views/QrCodeView/QRCode.cjs +4 -3
- package/src/lib/views/QrCodeView/QRCode.d.ts +2 -2
- package/src/lib/views/QrCodeView/QRCode.js +4 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -2
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -2
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -0
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -6
- package/src/lib/views/SocialRedirectView/SocialRedirectView.d.ts +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -6
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -0
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -0
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -1
- 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 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +3 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +3 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -1
- package/src/lib/views/viewToComponentMap.cjs +1 -0
- package/src/lib/views/viewToComponentMap.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +3 -3
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -1
- 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 +7 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +7 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +19 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +19 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +10 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +10 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +2 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +2 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +4 -3
- 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 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -5
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -5
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +4 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +0 -67
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +0 -63
- package/src/lib/views/LoginView/components/LoginWidget.d.ts +0 -5
- package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.cjs +0 -88
- package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.d.ts +0 -2
- package/src/lib/views/LoginView/components/SocialSignIn/SocialSignIn.js +0 -84
- package/src/lib/views/LoginView/components/WalletSignIn/index.d.ts +0 -1
- package/src/lib/views/LoginView/components/index.d.ts +0 -3
- /package/src/lib/{views/LoginView/components → components}/SocialSignIn/index.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/LoginEmailForm.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/EmailSignIn → sections/EmailSignInSection}/index.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/ListItemButton.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/ListItemButton/index.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/WalletSimpleSignIn.d.ts +0 -0
- /package/src/lib/views/LoginView/{components/WalletSignIn → sections/WalletSignInSection}/WalletSimpleSignIn/index.d.ts +0 -0
|
@@ -37,6 +37,7 @@ import 'formik';
|
|
|
37
37
|
import 'yup';
|
|
38
38
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
39
39
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
40
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
40
41
|
import { TransactionConfirmationView } from '../../../TransactionConfirmationView/TransactionConfirmationView.js';
|
|
41
42
|
import '../../../CollectUserDataView/fieldsConfig.js';
|
|
42
43
|
import '../../../../context/MockContext/MockContext.js';
|
|
@@ -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');
|
|
@@ -33,6 +33,7 @@ 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');
|
|
@@ -49,15 +50,13 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
49
50
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
50
51
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
51
52
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
53
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
52
54
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
53
55
|
|
|
54
56
|
const SocialRedirectView = () => {
|
|
55
|
-
const { socialProvider,
|
|
57
|
+
const { socialProvider, signInProvider } = SocialRedirectContext.useSocialRedirectContext();
|
|
56
58
|
const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
|
|
57
|
-
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
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' }))] })));
|
|
61
60
|
};
|
|
62
61
|
|
|
63
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';
|
|
@@ -29,6 +29,7 @@ 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';
|
|
@@ -45,15 +46,13 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
45
46
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
46
47
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
47
48
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
49
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
48
50
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
49
51
|
|
|
50
52
|
const SocialRedirectView = () => {
|
|
51
|
-
const { socialProvider,
|
|
53
|
+
const { socialProvider, signInProvider } = useSocialRedirectContext();
|
|
52
54
|
const findSocialIcon = useFindSocialIcon();
|
|
53
|
-
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
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' }))] })));
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
export { SocialRedirectView };
|
|
@@ -50,6 +50,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
50
50
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
51
51
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
52
52
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
53
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
53
54
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
54
55
|
|
|
55
56
|
const SocialWrongAccountView = () => {
|
|
@@ -46,6 +46,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
46
46
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
47
47
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
48
48
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
49
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
49
50
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
50
51
|
|
|
51
52
|
const SocialWrongAccountView = () => {
|
|
@@ -46,6 +46,7 @@ require('formik');
|
|
|
46
46
|
require('yup');
|
|
47
47
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
48
48
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
49
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
49
50
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
50
51
|
var useTransactionGas = require('./hooks/useTransactionGas/useTransactionGas.cjs');
|
|
51
52
|
var useTransactionTotal = require('./hooks/useTransactionTotal/useTransactionTotal.cjs');
|
|
@@ -42,6 +42,7 @@ import 'formik';
|
|
|
42
42
|
import 'yup';
|
|
43
43
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
44
44
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
45
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
45
46
|
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
46
47
|
import { useTransactionGas } from './hooks/useTransactionGas/useTransactionGas.js';
|
|
47
48
|
import { useTransactionTotal } from './hooks/useTransactionTotal/useTransactionTotal.js';
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs
CHANGED
|
@@ -39,6 +39,7 @@ require('formik');
|
|
|
39
39
|
require('yup');
|
|
40
40
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
41
41
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
42
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
42
43
|
require('../../../CollectUserDataView/fieldsConfig.cjs');
|
|
43
44
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
44
45
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js
CHANGED
|
@@ -35,6 +35,7 @@ import 'formik';
|
|
|
35
35
|
import 'yup';
|
|
36
36
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
37
37
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
38
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
38
39
|
import '../../../CollectUserDataView/fieldsConfig.js';
|
|
39
40
|
import '../../../../context/MockContext/MockContext.js';
|
|
40
41
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -53,6 +53,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
53
53
|
require('formik');
|
|
54
54
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
55
55
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
56
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
56
57
|
|
|
57
58
|
const UserFieldEditorView = ({ onClickClose, onSubmit, fields, submitText, subtitle, title, }) => {
|
|
58
59
|
// Treat undefined props
|
|
@@ -49,6 +49,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
49
49
|
import 'formik';
|
|
50
50
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
51
51
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
52
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
52
53
|
|
|
53
54
|
const UserFieldEditorView = ({ onClickClose, onSubmit, fields, submitText, subtitle, title, }) => {
|
|
54
55
|
// Treat undefined props
|
|
@@ -49,6 +49,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
49
49
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
50
50
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
51
51
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
52
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
52
53
|
|
|
53
54
|
const WalletCannotBeTransferredView = () => {
|
|
54
55
|
const [walletAddress, setWalletAddress] = React.useState(undefined);
|
|
@@ -62,7 +63,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
62
63
|
_fetchPublicAddress();
|
|
63
64
|
}, [walletConnector]);
|
|
64
65
|
const _shortenWalletAddress = shortenWalletAddress.shortenWalletAddress(walletAddress);
|
|
65
|
-
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: "Cannot link this wallet to a new account" })), jsxRuntime.jsx("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
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: "Cannot link this wallet to a new account" })), 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: "This wallet is the only wallet in your other account. You cannot transfer it, since then you will lose access to that account." })), 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: "Transfer a different wallet" })), 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: "Cancel" }))] })));
|
|
66
67
|
};
|
|
67
68
|
|
|
68
69
|
exports.WalletCannotBeTransferredView = WalletCannotBeTransferredView;
|
|
@@ -45,6 +45,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
45
45
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
46
46
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
47
47
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
48
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
48
49
|
|
|
49
50
|
const WalletCannotBeTransferredView = () => {
|
|
50
51
|
const [walletAddress, setWalletAddress] = useState(undefined);
|
|
@@ -58,7 +59,7 @@ const WalletCannotBeTransferredView = () => {
|
|
|
58
59
|
_fetchPublicAddress();
|
|
59
60
|
}, [walletConnector]);
|
|
60
61
|
const _shortenWalletAddress = shortenWalletAddress(walletAddress);
|
|
61
|
-
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: "Cannot link this wallet to a new account" })), jsx("div", Object.assign({ className: 'wallet-cannot-be-transferred-view__icon' }, { children: jsx(WalletIcon, {
|
|
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: "Cannot link this wallet to a new account" })), 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: "This wallet is the only wallet in your other account. You cannot transfer it, since then you will lose access to that account." })), 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: "Transfer a different wallet" })), 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: "Cancel" }))] })));
|
|
62
63
|
};
|
|
63
64
|
|
|
64
65
|
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 };
|
|
@@ -47,6 +47,7 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
47
47
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
48
48
|
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
49
|
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
50
|
+
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
50
51
|
|
|
51
52
|
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && (jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'search-instead__container__image', color: 'text-tertiary' }, { children: image }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: title || "Don't see your wallet?" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: subtitle || 'Try search instead' }))] })));
|
|
52
53
|
|
|
@@ -43,6 +43,7 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
43
43
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
44
44
|
import '../../../components/InlineWidget/InlineWidget.js';
|
|
45
45
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
46
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
46
47
|
|
|
47
48
|
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && (jsx(Icon, Object.assign({ className: 'search-instead__container__image', color: 'text-tertiary' }, { children: image }))), jsx(Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: title || "Don't see your wallet?" })), jsx(Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: subtitle || 'Try search instead' }))] })));
|
|
48
49
|
|
|
@@ -53,6 +53,7 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
53
53
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
54
54
|
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
55
55
|
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
56
|
+
require('../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
56
57
|
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
57
58
|
var isWalletGroup = require('../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.cjs');
|
|
58
59
|
var WalletGroupContext = require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -80,8 +81,8 @@ const WalletListItem = ({ disabled = false, usingMultiWallet, wallet, onResetSea
|
|
|
80
81
|
});
|
|
81
82
|
const name = _isWalletGroup
|
|
82
83
|
? walletBook.getWalletGroup(walletBook$1, wallet.key).name
|
|
83
|
-
: walletBook.getWalletBookWallet(walletBook$1, wallet.
|
|
84
|
-
const leading = (jsxRuntime.jsx(walletBook.WalletIcon, { className: 'wallet-list-item__leading',
|
|
84
|
+
: walletBook.getWalletBookWallet(walletBook$1, wallet.key).name;
|
|
85
|
+
const leading = (jsxRuntime.jsx(walletBook.WalletIcon, { className: 'wallet-list-item__leading', walletKey: wallet.key, style: { height: pixelToRem.pixelToRem(28), width: pixelToRem.pixelToRem(28) } }));
|
|
85
86
|
const trailing = (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-list-item__trailing' }, { children: [label && (jsxRuntime.jsx("div", Object.assign({ className: classNames.classNames('trailing__child', {
|
|
86
87
|
trailing__label: !isComingSoon,
|
|
87
88
|
}) }, { children: jsxRuntime.jsx(Badge.Badge, { dot: !isComingSoon, text: label, className: 'trailing__badge' }) }))), !isComingSoon && (jsxRuntime.jsx("div", Object.assign({ className: 'trailing__child trailing__arrow' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary', size: 'small' }, { children: jsxRuntime.jsx(stroke.ReactComponent, {}) })) })))] })));
|
|
@@ -49,6 +49,7 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
49
49
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
50
50
|
import '../../../components/InlineWidget/InlineWidget.js';
|
|
51
51
|
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
52
|
+
import '../../../components/OverlayCard/OverlayCard.context.js';
|
|
52
53
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
53
54
|
import { isWalletGroup } from '../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.js';
|
|
54
55
|
import { useWalletGroupContext } from '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -76,8 +77,8 @@ const WalletListItem = ({ disabled = false, usingMultiWallet, wallet, onResetSea
|
|
|
76
77
|
});
|
|
77
78
|
const name = _isWalletGroup
|
|
78
79
|
? getWalletGroup(walletBook, wallet.key).name
|
|
79
|
-
: getWalletBookWallet(walletBook, wallet.
|
|
80
|
-
const leading = (jsx(WalletIcon, { className: 'wallet-list-item__leading',
|
|
80
|
+
: getWalletBookWallet(walletBook, wallet.key).name;
|
|
81
|
+
const leading = (jsx(WalletIcon, { className: 'wallet-list-item__leading', walletKey: wallet.key, style: { height: pixelToRem(28), width: pixelToRem(28) } }));
|
|
81
82
|
const trailing = (jsxs("div", Object.assign({ className: 'wallet-list-item__trailing' }, { children: [label && (jsx("div", Object.assign({ className: classNames('trailing__child', {
|
|
82
83
|
trailing__label: !isComingSoon,
|
|
83
84
|
}) }, { children: jsx(Badge, { dot: !isComingSoon, text: label, className: 'trailing__badge' }) }))), !isComingSoon && (jsx("div", Object.assign({ className: 'trailing__child trailing__arrow' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary', size: 'small' }, { children: jsx(SvgStroke, {}) })) })))] })));
|
|
@@ -53,6 +53,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
53
53
|
var Divider = require('../../components/Divider/Divider.cjs');
|
|
54
54
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
55
55
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
56
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
56
57
|
|
|
57
58
|
const iconSize = 64;
|
|
58
59
|
const WalletLockedView = () => {
|
|
@@ -75,7 +76,7 @@ const WalletLockedView = () => {
|
|
|
75
76
|
logger.logger.info('could not connect wallet');
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
|
-
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
79
|
+
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: primaryWallet.connector.key, style: {
|
|
79
80
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
80
81
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
81
82
|
} }));
|
|
@@ -49,6 +49,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
49
49
|
import { Divider } from '../../components/Divider/Divider.js';
|
|
50
50
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
51
51
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
52
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
52
53
|
|
|
53
54
|
const iconSize = 64;
|
|
54
55
|
const WalletLockedView = () => {
|
|
@@ -71,7 +72,7 @@ const WalletLockedView = () => {
|
|
|
71
72
|
logger.info('could not connect wallet');
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
|
-
const icon = (jsx(WalletIcon, {
|
|
75
|
+
const icon = (jsx(WalletIcon, { walletKey: primaryWallet.connector.key, style: {
|
|
75
76
|
height: pixelToRem(iconSize * iconRatio),
|
|
76
77
|
width: pixelToRem(iconSize * iconRatio),
|
|
77
78
|
} }));
|
|
@@ -51,6 +51,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
51
51
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
52
52
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
53
53
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
54
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
54
55
|
|
|
55
56
|
const WalletSignSpinnerView = () => {
|
|
56
57
|
const { goToInitialView } = ViewContext.useViewContext();
|
|
@@ -58,7 +59,7 @@ const WalletSignSpinnerView = () => {
|
|
|
58
59
|
if (!walletConnector) {
|
|
59
60
|
return null;
|
|
60
61
|
}
|
|
61
|
-
const {
|
|
62
|
+
const { key } = walletConnector;
|
|
62
63
|
const iconSize = 80;
|
|
63
64
|
const handleClose = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
64
65
|
goToInitialView();
|
|
@@ -66,7 +67,7 @@ const WalletSignSpinnerView = () => {
|
|
|
66
67
|
setSelectedWalletConnector(null);
|
|
67
68
|
yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.endSession());
|
|
68
69
|
});
|
|
69
|
-
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
70
|
+
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: key, style: {
|
|
70
71
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
71
72
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
72
73
|
} }));
|
|
@@ -47,6 +47,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
47
47
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
48
48
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
49
49
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
50
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
50
51
|
|
|
51
52
|
const WalletSignSpinnerView = () => {
|
|
52
53
|
const { goToInitialView } = useViewContext();
|
|
@@ -54,7 +55,7 @@ const WalletSignSpinnerView = () => {
|
|
|
54
55
|
if (!walletConnector) {
|
|
55
56
|
return null;
|
|
56
57
|
}
|
|
57
|
-
const {
|
|
58
|
+
const { key } = walletConnector;
|
|
58
59
|
const iconSize = 80;
|
|
59
60
|
const handleClose = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
61
|
goToInitialView();
|
|
@@ -62,7 +63,7 @@ const WalletSignSpinnerView = () => {
|
|
|
62
63
|
setSelectedWalletConnector(null);
|
|
63
64
|
yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.endSession());
|
|
64
65
|
});
|
|
65
|
-
const icon = (jsx(WalletIcon, {
|
|
66
|
+
const icon = (jsx(WalletIcon, { walletKey: key, style: {
|
|
66
67
|
height: pixelToRem(iconSize * iconRatio),
|
|
67
68
|
width: pixelToRem(iconSize * iconRatio),
|
|
68
69
|
} }));
|
|
@@ -57,6 +57,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
57
57
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
58
58
|
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
59
59
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
60
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
60
61
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
61
62
|
|
|
62
63
|
const WalletUsedView = () => {
|
|
@@ -144,7 +145,7 @@ const WalletUsedView = () => {
|
|
|
144
145
|
setMultiWalletWidgetState('idle');
|
|
145
146
|
}
|
|
146
147
|
});
|
|
147
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-used-view__container' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'wallet-used-view__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
148
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-used-view__container' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'wallet-used-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-used-view__shorten-wallet-address', variant: 'body_normal', weight: 'regular', color: 'primary' }, { children: _shortenWalletAddress })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-used-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children: "Your wallet is already linked to another account" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'wallet-used-view__copy', variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Linking your wallet to this account will unlink it from its previously associated account" })), isSingleWalletAccount && (jsxRuntime.jsxs("label", Object.assign({ htmlFor: 'skipEmptyAccountCheck', className: 'wallet-used-view__checkbox-label' }, { children: [jsxRuntime.jsx(Checkbox.Checkbox, { id: 'skipEmptyAccountCheck', className: 'wallet-used-view__checkbox-container', defaultChecked: isChecked, onChange: () => setIsChecked(!isChecked), ariaLabel: 'skip empty account check' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: "I understand that linking this wallet means that I will lose access to the other account." }))] }))), jsxRuntime.jsx(Button.Button, Object.assign({ buttonClassName: 'wallet-used-view__accept-button', buttonVariant: 'primary', buttonRounded: 'default', expanded: true, buttonPadding: 'large', onClick: () => handleWalletTransfer(), disabled: (!isChecked && isSingleWalletAccount) || loading, dataTestId: 'wallet-used-view-transfer-wallet' }, { children: "Link wallet to current account" })), jsxRuntime.jsx(Button.Button, Object.assign({ dataTestId: 'wallet-used-view-log-out', buttonPadding: 'small', buttonClassName: 'wallet-used-view__logout', buttonRounded: 'small', onClick: handleLogOut }, { children: "Log out" }))] })));
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
exports.WalletUsedView = WalletUsedView;
|
|
@@ -53,6 +53,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
53
53
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
54
54
|
import '../../components/InlineWidget/InlineWidget.js';
|
|
55
55
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
56
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
56
57
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
57
58
|
|
|
58
59
|
const WalletUsedView = () => {
|
|
@@ -140,7 +141,7 @@ const WalletUsedView = () => {
|
|
|
140
141
|
setMultiWalletWidgetState('idle');
|
|
141
142
|
}
|
|
142
143
|
});
|
|
143
|
-
return (jsxs("div", Object.assign({ className: 'wallet-used-view__container' }, { children: [jsx("div", Object.assign({ className: 'wallet-used-view__icon' }, { children: jsx(WalletIcon, {
|
|
144
|
+
return (jsxs("div", Object.assign({ className: 'wallet-used-view__container' }, { children: [jsx("div", Object.assign({ className: 'wallet-used-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-used-view__shorten-wallet-address', variant: 'body_normal', weight: 'regular', color: 'primary' }, { children: _shortenWalletAddress })), jsx(Typography, Object.assign({ className: 'wallet-used-view__title', as: 'h6', variant: 'title', color: 'primary', weight: 'medium' }, { children: "Your wallet is already linked to another account" })), jsx(Typography, Object.assign({ className: 'wallet-used-view__copy', variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Linking your wallet to this account will unlink it from its previously associated account" })), isSingleWalletAccount && (jsxs("label", Object.assign({ htmlFor: 'skipEmptyAccountCheck', className: 'wallet-used-view__checkbox-label' }, { children: [jsx(Checkbox, { id: 'skipEmptyAccountCheck', className: 'wallet-used-view__checkbox-container', defaultChecked: isChecked, onChange: () => setIsChecked(!isChecked), ariaLabel: 'skip empty account check' }), jsx(Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: "I understand that linking this wallet means that I will lose access to the other account." }))] }))), jsx(Button, Object.assign({ buttonClassName: 'wallet-used-view__accept-button', buttonVariant: 'primary', buttonRounded: 'default', expanded: true, buttonPadding: 'large', onClick: () => handleWalletTransfer(), disabled: (!isChecked && isSingleWalletAccount) || loading, dataTestId: 'wallet-used-view-transfer-wallet' }, { children: "Link wallet to current account" })), jsx(Button, Object.assign({ dataTestId: 'wallet-used-view-log-out', buttonPadding: 'small', buttonClassName: 'wallet-used-view__logout', buttonRounded: 'small', onClick: handleLogOut }, { children: "Log out" }))] })));
|
|
144
145
|
};
|
|
145
146
|
|
|
146
147
|
export { WalletUsedView };
|
|
@@ -48,6 +48,7 @@ const viewToComponentMap = {
|
|
|
48
48
|
'login-with-email-verification': jsxRuntime.jsx(EmailVerification.EmailVerification, {}),
|
|
49
49
|
'login-with-wallet-only': jsxRuntime.jsx(LoginView.LoginView, {}),
|
|
50
50
|
'merge-user-accounts': jsxRuntime.jsx(MergeUserAccountsView.MergeUserAccountsView, {}),
|
|
51
|
+
'multi-wallet-wallet-list': jsxRuntime.jsx(WalletList.WalletList, {}),
|
|
51
52
|
'network-not-supported': jsxRuntime.jsx(NetworkNotSupported.NetworkNotSupported, {}),
|
|
52
53
|
'network-not-supported-manual': jsxRuntime.jsx(NetworkNotSupportedSwitchManual.NetworkNotSupportedSwitchManual, {}),
|
|
53
54
|
'no-access': jsxRuntime.jsx(NoAccess.NoAccess, {}),
|
|
@@ -44,6 +44,7 @@ const viewToComponentMap = {
|
|
|
44
44
|
'login-with-email-verification': jsx(EmailVerification, {}),
|
|
45
45
|
'login-with-wallet-only': jsx(LoginView, {}),
|
|
46
46
|
'merge-user-accounts': jsx(MergeUserAccountsView, {}),
|
|
47
|
+
'multi-wallet-wallet-list': jsx(WalletList, {}),
|
|
47
48
|
'network-not-supported': jsx(NetworkNotSupported, {}),
|
|
48
49
|
'network-not-supported-manual': jsx(NetworkNotSupportedSwitchManual, {}),
|
|
49
50
|
'no-access': jsx(NoAccess, {}),
|
|
@@ -50,6 +50,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
50
50
|
var InlineWidgetButton = require('../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs');
|
|
51
51
|
var InlineWidget = require('../../components/InlineWidget/InlineWidget.cjs');
|
|
52
52
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
53
|
+
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
53
54
|
var DynamicBridgeUserProfile = require('./components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs');
|
|
54
55
|
var DynamicBridgeWidgetContext = require('./context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs');
|
|
55
56
|
|
|
@@ -46,6 +46,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
46
46
|
import { InlineWidgetButton } from '../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js';
|
|
47
47
|
import { InlineWidget } from '../../components/InlineWidget/InlineWidget.js';
|
|
48
48
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
49
|
+
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
49
50
|
import { DynamicBridgeUserProfile } from './components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js';
|
|
50
51
|
import { useDynamicBridgeWidgetContext } from './context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js';
|
|
51
52
|
|
|
@@ -51,6 +51,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
51
51
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
52
52
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
53
53
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
54
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
54
55
|
|
|
55
56
|
const options = [
|
|
56
57
|
{
|
|
@@ -47,6 +47,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
47
47
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
48
48
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
49
49
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
50
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
50
51
|
|
|
51
52
|
const options = [
|
|
52
53
|
{
|
|
@@ -47,6 +47,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
47
47
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
48
48
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
49
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
50
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
50
51
|
|
|
51
52
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
52
53
|
|
|
@@ -43,6 +43,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
43
43
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
44
44
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
45
45
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
46
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
46
47
|
|
|
47
48
|
const DynamicBridgeWalletCard = ({ className, networkIcon, networkName, children }) => (jsxs("div", Object.assign({ className: classNames('dynamic-bridge-wallet-card', className) }, { children: [jsxs("div", Object.assign({ className: 'dynamic-bridge-wallet-card__network' }, { children: [networkIcon &&
|
|
48
49
|
React__default.cloneElement(networkIcon, {
|
|
@@ -46,10 +46,11 @@ require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
46
46
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
47
47
|
var WalletInformationCard = require('../../../../components/WalletInformationCard/WalletInformationCard.cjs');
|
|
48
48
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
49
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
49
50
|
var DotsMenu = require('../../../DynamicWidget/components/DotsMenu/DotsMenu.cjs');
|
|
50
51
|
var useFetchNameService = require('../../../DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs');
|
|
51
52
|
|
|
52
|
-
const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance,
|
|
53
|
+
const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance, walletKey, onUnlinkClick }) => {
|
|
53
54
|
const nameService = useFetchNameService.useFetchNameService(walletAddress);
|
|
54
55
|
const options = [
|
|
55
56
|
{
|
|
@@ -71,7 +72,7 @@ const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance, walletName,
|
|
|
71
72
|
text: 'Disconnect',
|
|
72
73
|
},
|
|
73
74
|
];
|
|
74
|
-
return (jsxRuntime.jsx(WalletInformationCard.WalletInformationCard, { ens: nameService === null || nameService === void 0 ? void 0 : nameService.name, address: walletAddress, icon: jsxRuntime.jsx(walletBook.WalletIcon, {
|
|
75
|
+
return (jsxRuntime.jsx(WalletInformationCard.WalletInformationCard, { ens: nameService === null || nameService === void 0 ? void 0 : nameService.name, address: walletAddress, icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletKey }), balance: walletBalance, menu: jsxRuntime.jsx(DotsMenu.DotsMenu, { options: options }) }));
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
exports.DynamicBridgeWalletCardBody = DynamicBridgeWalletCardBody;
|
|
@@ -42,10 +42,11 @@ import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
|
42
42
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
43
43
|
import { WalletInformationCard } from '../../../../components/WalletInformationCard/WalletInformationCard.js';
|
|
44
44
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
45
|
+
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
45
46
|
import { DotsMenu } from '../../../DynamicWidget/components/DotsMenu/DotsMenu.js';
|
|
46
47
|
import { useFetchNameService } from '../../../DynamicWidget/hooks/useFetchNameService/useFetchNameService.js';
|
|
47
48
|
|
|
48
|
-
const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance,
|
|
49
|
+
const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance, walletKey, onUnlinkClick }) => {
|
|
49
50
|
const nameService = useFetchNameService(walletAddress);
|
|
50
51
|
const options = [
|
|
51
52
|
{
|
|
@@ -67,7 +68,7 @@ const DynamicBridgeWalletCardBody = ({ walletAddress, walletBalance, walletName,
|
|
|
67
68
|
text: 'Disconnect',
|
|
68
69
|
},
|
|
69
70
|
];
|
|
70
|
-
return (jsx(WalletInformationCard, { ens: nameService === null || nameService === void 0 ? void 0 : nameService.name, address: walletAddress, icon: jsx(WalletIcon, {
|
|
71
|
+
return (jsx(WalletInformationCard, { ens: nameService === null || nameService === void 0 ? void 0 : nameService.name, address: walletAddress, icon: jsx(WalletIcon, { walletKey: walletKey }), balance: walletBalance, menu: jsx(DotsMenu, { options: options }) }));
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
export { DynamicBridgeWalletCardBody };
|
|
@@ -47,6 +47,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
47
47
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
48
48
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
49
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
50
|
+
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
50
51
|
|
|
51
52
|
const DynamicBridgeWidgetEmptyCard = ({ chain }) => {
|
|
52
53
|
const { walletsToConnectByChain, setShowAuthFlow, setShowBridgeWidget, setBridgeChainToConnect, } = useInternalDynamicContext.useInternalDynamicContext();
|