@dynamic-labs/sdk-react-core 0.18.0-RC.10 → 0.18.0-RC.12
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 +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +3 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +2 -0
- package/src/lib/Main.cjs +3 -2
- package/src/lib/Main.js +3 -2
- package/src/lib/assets/index.d.ts +1 -0
- package/src/lib/assets/no-wallet-found.cjs +75 -0
- package/src/lib/assets/no-wallet-found.js +51 -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 +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -0
- package/src/lib/components/Divider/Divider.cjs +1 -0
- package/src/lib/components/Divider/Divider.js +1 -0
- package/src/lib/components/InlineWidget/InlineWidget.cjs +12 -0
- package/src/lib/components/InlineWidget/InlineWidget.d.ts +7 -0
- package/src/lib/components/InlineWidget/InlineWidget.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs +12 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/components/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/index.d.ts +2 -0
- 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/ActionList/ActionList.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.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.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 +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +1 -0
- package/src/lib/components/Portal/Portal.cjs +1 -0
- package/src/lib/components/Portal/Portal.js +1 -0
- package/src/lib/components/Step/Step.cjs +23 -2
- package/src/lib/components/Step/Step.d.ts +2 -3
- package/src/lib/components/Step/Step.js +24 -3
- package/src/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/src/lib/components/Tooltip/Tooltip.js +1 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +18 -3
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +1 -6
- package/src/lib/components/TosAndPp/TosAndPp.js +19 -4
- 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/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 +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +33 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +11 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +29 -0
- package/src/lib/components/WalletInformationCard/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +10 -9
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +5 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +10 -9
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.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 +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -0
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +4 -2
- package/src/lib/context/WalletContext/WalletContext.d.ts +3 -1
- package/src/lib/context/WalletContext/WalletContext.js +4 -2
- package/src/lib/data/api.cjs +3 -0
- package/src/lib/data/api.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -0
- 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 +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +5 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +5 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +5 -4
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +5 -4
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.cjs +18 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.d.ts +3 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.js +14 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/index.d.ts +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 +3 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +3 -2
- 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/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs +12 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +3 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js +8 -0
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +8 -8
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +8 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +1 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +1 -2
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -16
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +13 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +13 -3
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +8 -4
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +8 -4
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +14 -27
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +15 -28
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useDynamicScopes/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +40 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +36 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +6 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +7 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +20 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +3 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +20 -3
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +17 -12
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +17 -12
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +2 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +2 -2
- 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 +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -0
- 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 +2 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -1
- 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 +5 -4
- package/src/lib/views/EmailVerification/EmailVerification.js +5 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +1 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +1 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +1 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +1 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +1 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +1 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +4 -3
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +4 -3
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +6 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +6 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +12 -20
- package/src/lib/views/NoAccess/NoAccess.js +12 -20
- package/src/lib/views/NoAccess/useNoAccessText.cjs +93 -0
- package/src/lib/views/NoAccess/useNoAccessText.d.ts +31 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +88 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -0
- 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 +1 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +1 -0
- package/src/lib/views/QrCodeView/QRCode.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -0
- 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/useTransactionData/useTransactionData.cjs +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +1 -0
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.cjs → SearchNotFoundMessage/SearchNotFoundMessage.cjs} +3 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +8 -0
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.js → SearchNotFoundMessage/SearchNotFoundMessage.js} +3 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +3 -2
- package/src/lib/views/WalletList/WalletList.js +3 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -0
- 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 +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -0
- package/src/lib/views/viewToComponentMap.cjs +1 -0
- package/src/lib/views/viewToComponentMap.js +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +16 -7
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +17 -8
- 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 +28 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +29 -9
- 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/WalletsView/WalletsView.cjs +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -1
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -0
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -0
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +1 -0
- 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/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 +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -0
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -0
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -0
- 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 +1 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -0
- 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/views/WalletList/SearchInstead/SearchInstead.d.ts +0 -2
- package/src/lib/views/WalletList/SearchInstead/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +0 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.cjs +0 -57
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.js +0 -53
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.cjs +0 -58
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.js +0 -54
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/index.d.ts +0 -1
|
@@ -47,6 +47,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
47
47
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
48
48
|
require('formik');
|
|
49
49
|
require('yup');
|
|
50
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
50
51
|
|
|
51
52
|
const PendingSignatureView = () => {
|
|
52
53
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -43,6 +43,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
43
43
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
44
44
|
import 'formik';
|
|
45
45
|
import 'yup';
|
|
46
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
46
47
|
|
|
47
48
|
const PendingSignatureView = () => {
|
|
48
49
|
const [loading, setLoading] = useState(false);
|
|
@@ -38,6 +38,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
38
38
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
39
39
|
require('formik');
|
|
40
40
|
require('yup');
|
|
41
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
41
42
|
require('../../context/MockContext/MockContext.cjs');
|
|
42
43
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
43
44
|
var usePromise = require('../../utils/hooks/usePromise/usePromise.cjs');
|
|
@@ -34,6 +34,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
34
34
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
35
35
|
import 'formik';
|
|
36
36
|
import 'yup';
|
|
37
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
37
38
|
import '../../context/MockContext/MockContext.js';
|
|
38
39
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
39
40
|
import { usePromise } from '../../utils/hooks/usePromise/usePromise.js';
|
|
@@ -46,6 +46,7 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
46
46
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
47
47
|
require('formik');
|
|
48
48
|
require('yup');
|
|
49
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
50
|
|
|
50
51
|
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, walletName: walletConnectorCore.normalizeWalletName(walletName) })) : (
|
|
51
52
|
// this div exists to give the parent a child, so that the parent
|
|
@@ -42,6 +42,7 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
42
42
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
43
43
|
import 'formik';
|
|
44
44
|
import 'yup';
|
|
45
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
45
46
|
|
|
46
47
|
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, walletName: normalizeWalletName(walletName) })) : (
|
|
47
48
|
// this div exists to give the parent a child, so that the parent
|
|
@@ -41,6 +41,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
41
41
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
42
|
require('formik');
|
|
43
43
|
require('yup');
|
|
44
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
44
45
|
var QrCodeContext = require('../../context/QrCodeContext/QrCodeContext.cjs');
|
|
45
46
|
var QrCodeContainer = require('./QrCodeContainer/QrCodeContainer.cjs');
|
|
46
47
|
|
|
@@ -37,6 +37,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
37
37
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
38
|
import 'formik';
|
|
39
39
|
import 'yup';
|
|
40
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
40
41
|
import { useQrCodeContext } from '../../context/QrCodeContext/QrCodeContext.js';
|
|
41
42
|
import { QrCodeContainer } from './QrCodeContainer/QrCodeContainer.js';
|
|
42
43
|
|
|
@@ -39,6 +39,7 @@ require('../../components/Alert/Alert.cjs');
|
|
|
39
39
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
40
40
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
41
|
var SendBalancePageLayout = require('../../components/SendBalancePageLayout/SendBalancePageLayout.cjs');
|
|
42
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
42
43
|
var TransactionConfirmationView = require('../TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
43
44
|
var TransactionStatusLayout = require('../../components/TransactionStatusLayout/TransactionStatusLayout.cjs');
|
|
44
45
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
@@ -35,6 +35,7 @@ import '../../components/Alert/Alert.js';
|
|
|
35
35
|
import '../../components/Popper/Popper/Popper.js';
|
|
36
36
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
37
37
|
import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
|
|
38
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
38
39
|
import { TransactionConfirmationView } from '../TransactionConfirmationView/TransactionConfirmationView.js';
|
|
39
40
|
import { TransactionStatusLayout } from '../../components/TransactionStatusLayout/TransactionStatusLayout.js';
|
|
40
41
|
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
@@ -42,6 +42,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
42
42
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
43
|
require('formik');
|
|
44
44
|
require('yup');
|
|
45
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
46
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
46
47
|
|
|
47
48
|
const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -38,6 +38,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
38
38
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
39
39
|
import 'formik';
|
|
40
40
|
import 'yup';
|
|
41
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
41
42
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
42
43
|
|
|
43
44
|
const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -43,6 +43,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
43
43
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
44
|
require('formik');
|
|
45
45
|
require('yup');
|
|
46
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
46
47
|
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
47
48
|
|
|
48
49
|
const SocialWrongAccountView = () => {
|
|
@@ -39,6 +39,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
39
39
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
40
|
import 'formik';
|
|
41
41
|
import 'yup';
|
|
42
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
42
43
|
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
43
44
|
|
|
44
45
|
const SocialWrongAccountView = () => {
|
|
@@ -42,6 +42,7 @@ var TransactionConfirmationPageLayout = require('../../components/TransactionCon
|
|
|
42
42
|
var TransactionRow = require('../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs');
|
|
43
43
|
require('formik');
|
|
44
44
|
require('yup');
|
|
45
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
46
|
var useFetchCurrency = require('../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs');
|
|
46
47
|
var useTransactionData = require('./hooks/useTransactionData/useTransactionData.cjs');
|
|
47
48
|
var transactionErrorMessage = require('./helpers/transactionErrorMessage.cjs');
|
|
@@ -38,6 +38,7 @@ import { TransactionConfirmationPageLayout } from '../../components/TransactionC
|
|
|
38
38
|
import { TransactionRow } from '../../components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js';
|
|
39
39
|
import 'formik';
|
|
40
40
|
import 'yup';
|
|
41
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
41
42
|
import { useFetchCurrency } from '../../widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js';
|
|
42
43
|
import { useTransactionData } from './hooks/useTransactionData/useTransactionData.js';
|
|
43
44
|
import { transactionErrorMessage } from './helpers/transactionErrorMessage.js';
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs
CHANGED
|
@@ -36,6 +36,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
36
36
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
37
37
|
require('formik');
|
|
38
38
|
require('yup');
|
|
39
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
39
40
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
40
41
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
42
|
var usePromise = require('../../../../utils/hooks/usePromise/usePromise.cjs');
|
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js
CHANGED
|
@@ -32,6 +32,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
32
32
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
33
33
|
import 'formik';
|
|
34
34
|
import 'yup';
|
|
35
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
35
36
|
import '../../../../context/MockContext/MockContext.js';
|
|
36
37
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
37
38
|
import { usePromise } from '../../../../utils/hooks/usePromise/usePromise.js';
|
|
@@ -39,7 +39,8 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
39
39
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
40
|
require('formik');
|
|
41
41
|
require('yup');
|
|
42
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
42
43
|
|
|
43
|
-
const
|
|
44
|
+
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && jsxRuntime.jsx("div", { 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' }))] })));
|
|
44
45
|
|
|
45
|
-
exports.
|
|
46
|
+
exports.SearchNotFoundMessage = SearchNotFoundMessage;
|
|
@@ -35,7 +35,8 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
35
35
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
36
36
|
import 'formik';
|
|
37
37
|
import 'yup';
|
|
38
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
38
39
|
|
|
39
|
-
const
|
|
40
|
+
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && jsx("div", { 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' }))] })));
|
|
40
41
|
|
|
41
|
-
export {
|
|
42
|
+
export { SearchNotFoundMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchNotFoundMessage } from './SearchNotFoundMessage';
|
|
@@ -26,7 +26,8 @@ require('@dynamic-labs/utils');
|
|
|
26
26
|
var localStorage = require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
27
27
|
require('ethers');
|
|
28
28
|
require('../../shared/consts/index.cjs');
|
|
29
|
-
var
|
|
29
|
+
var noWalletFound = require('../../assets/no-wallet-found.cjs');
|
|
30
|
+
var SearchNotFoundMessage = require('./SearchNotFoundMessage/SearchNotFoundMessage.cjs');
|
|
30
31
|
var WalletListItem = require('./WalletListItem/WalletListItem.cjs');
|
|
31
32
|
|
|
32
33
|
localStorage.LocalStorage.setToLS(localStorage$1.WALLET_PICKER_SEARCH_KEY, '');
|
|
@@ -77,7 +78,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
77
78
|
};
|
|
78
79
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: error }), !projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsxRuntime.jsx(Search.Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }))), jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('wallet-list__scroll-container', {
|
|
79
80
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
80
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key)))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(
|
|
81
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try seaching for a different wallet', image: jsxRuntime.jsx(noWalletFound.ReactComponent, {}) })) : (walletsList.map((wallet) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }))] })), noDefaultFooter && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__tiny-footer', {
|
|
81
82
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
82
83
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
83
84
|
};
|
|
@@ -22,7 +22,8 @@ import '@dynamic-labs/utils';
|
|
|
22
22
|
import { LocalStorage } from '../../shared/utils/classes/storage/localStorage.js';
|
|
23
23
|
import 'ethers';
|
|
24
24
|
import '../../shared/consts/index.js';
|
|
25
|
-
import {
|
|
25
|
+
import { ReactComponent as SvgNoWalletFound } from '../../assets/no-wallet-found.js';
|
|
26
|
+
import { SearchNotFoundMessage } from './SearchNotFoundMessage/SearchNotFoundMessage.js';
|
|
26
27
|
import { WalletListItem } from './WalletListItem/WalletListItem.js';
|
|
27
28
|
|
|
28
29
|
LocalStorage.setToLS(WALLET_PICKER_SEARCH_KEY, '');
|
|
@@ -73,7 +74,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
73
74
|
};
|
|
74
75
|
return (jsxs(Fragment, { children: [jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsx(ErrorContainer, { children: error }), !projectSettings ? (jsx(Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsx(Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }))), jsxs("div", Object.assign({ className: classNames('wallet-list__scroll-container', {
|
|
75
76
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
76
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsx(WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key)))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(
|
|
77
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsx(SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try seaching for a different wallet', image: jsx(SvgNoWalletFound, {}) })) : (walletsList.map((wallet) => (jsx(WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }))] })), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
|
|
77
78
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
78
79
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
79
80
|
};
|
|
@@ -44,6 +44,7 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
44
44
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
45
|
require('formik');
|
|
46
46
|
require('yup');
|
|
47
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
47
48
|
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
48
49
|
var isWalletGroup = require('../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.cjs');
|
|
49
50
|
var WalletGroupContext = require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -40,6 +40,7 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
40
40
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
41
41
|
import 'formik';
|
|
42
42
|
import 'yup';
|
|
43
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
43
44
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
44
45
|
import { isWalletGroup } from '../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.js';
|
|
45
46
|
import { useWalletGroupContext } from '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -45,6 +45,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
45
45
|
require('formik');
|
|
46
46
|
require('yup');
|
|
47
47
|
var Divider = require('../../components/Divider/Divider.cjs');
|
|
48
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
48
49
|
|
|
49
50
|
const iconSize = 64;
|
|
50
51
|
const WalletLockedView = () => {
|
|
@@ -56,7 +57,7 @@ const WalletLockedView = () => {
|
|
|
56
57
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
57
58
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
58
59
|
} }));
|
|
59
|
-
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsxRuntime.jsx(Divider.Divider, { text: 'Or' }), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick:
|
|
60
|
+
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsxRuntime.jsx(Divider.Divider, { text: 'Or' }), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
exports.WalletLockedView = WalletLockedView;
|
|
@@ -41,6 +41,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
41
41
|
import 'formik';
|
|
42
42
|
import 'yup';
|
|
43
43
|
import { Divider } from '../../components/Divider/Divider.js';
|
|
44
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
44
45
|
|
|
45
46
|
const iconSize = 64;
|
|
46
47
|
const WalletLockedView = () => {
|
|
@@ -52,7 +53,7 @@ const WalletLockedView = () => {
|
|
|
52
53
|
height: pixelToRem(iconSize * iconRatio),
|
|
53
54
|
width: pixelToRem(iconSize * iconRatio),
|
|
54
55
|
} }));
|
|
55
|
-
return (jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsx(Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsx(Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsx(Divider, { text: 'Or' }), jsx(TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick:
|
|
56
|
+
return (jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsx(Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsx(Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsx(Divider, { text: 'Or' }), jsx(TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
export { WalletLockedView };
|
|
@@ -44,6 +44,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
44
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
45
|
require('formik');
|
|
46
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
47
48
|
|
|
48
49
|
const WalletSignSpinnerView = () => {
|
|
49
50
|
const { goToInitialView } = ViewContext.useViewContext();
|
|
@@ -40,6 +40,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
40
40
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
41
41
|
import 'formik';
|
|
42
42
|
import 'yup';
|
|
43
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
43
44
|
|
|
44
45
|
const WalletSignSpinnerView = () => {
|
|
45
46
|
const { goToInitialView } = useViewContext();
|
|
@@ -50,6 +50,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
50
50
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
51
51
|
require('formik');
|
|
52
52
|
require('yup');
|
|
53
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
53
54
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
54
55
|
|
|
55
56
|
const WalletUsedView = () => {
|
|
@@ -46,6 +46,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
46
46
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
47
47
|
import 'formik';
|
|
48
48
|
import 'yup';
|
|
49
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
49
50
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
50
51
|
|
|
51
52
|
const WalletUsedView = () => {
|
|
@@ -38,6 +38,7 @@ const viewToComponentMap = {
|
|
|
38
38
|
'collect-user-data': jsxRuntime.jsx(CollectUserDataView.CollectUserDataView, {}),
|
|
39
39
|
'collect-user-data-login-with-email': jsxRuntime.jsx(CollectUserDataViewLoginWithEmail.CollectUserDataViewLoginWithEmail, {}),
|
|
40
40
|
'email-wallet-otp-verification-view': jsxRuntime.jsx(EmailWalletOTPVerificationView.EmailWalletOTPVerificationView, {}),
|
|
41
|
+
'gate-blocked-wallet': jsxRuntime.jsx(NoAccess.NoAccess, {}),
|
|
41
42
|
'login-with-email-or-wallet': jsxRuntime.jsx(LoginWithEmailView.LoginWithEmailView, {}),
|
|
42
43
|
'login-with-email-or-wallet-full-wallet-list': jsxRuntime.jsx(WalletList.WalletList, {}),
|
|
43
44
|
'login-with-email-verification': jsxRuntime.jsx(EmailVerification.EmailVerification, {}),
|
|
@@ -34,6 +34,7 @@ const viewToComponentMap = {
|
|
|
34
34
|
'collect-user-data': jsx(CollectUserDataView, {}),
|
|
35
35
|
'collect-user-data-login-with-email': jsx(CollectUserDataViewLoginWithEmail, {}),
|
|
36
36
|
'email-wallet-otp-verification-view': jsx(EmailWalletOTPVerificationView, {}),
|
|
37
|
+
'gate-blocked-wallet': jsx(NoAccess, {}),
|
|
37
38
|
'login-with-email-or-wallet': jsx(LoginWithEmailView, {}),
|
|
38
39
|
'login-with-email-or-wallet-full-wallet-list': jsx(WalletList, {}),
|
|
39
40
|
'login-with-email-verification': jsx(EmailVerification, {}),
|
|
@@ -7,15 +7,17 @@ var React = require('react');
|
|
|
7
7
|
var IsBrowser = require('../../components/IsBrowser/IsBrowser.cjs');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
|
-
require('
|
|
10
|
+
var getChainIcon = require('../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
12
|
require('@dynamic-labs/wallet-book');
|
|
13
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
14
14
|
require('@dynamic-labs/utils');
|
|
15
15
|
require('../../utils/constants/colors.cjs');
|
|
16
16
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
var index = require('../../shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
19
|
+
require('@dynamic-labs/iconic');
|
|
20
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
19
21
|
require('../../shared/consts/index.cjs');
|
|
20
22
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
21
23
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -36,17 +38,17 @@ require('../../components/Alert/Alert.cjs');
|
|
|
36
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
39
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
40
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
39
|
-
var DynamicConnectButton = require('../../components/DynamicConnectButton/DynamicConnectButton.cjs');
|
|
40
41
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
41
42
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
43
|
require('formik');
|
|
43
44
|
require('yup');
|
|
45
|
+
var InlineWidgetButton = require('../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs');
|
|
46
|
+
var InlineWidget = require('../../components/InlineWidget/InlineWidget.cjs');
|
|
44
47
|
var DynamicBridgeUserProfile = require('./components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs');
|
|
45
|
-
var DynamicBridgeWidgetNav = require('./components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs');
|
|
46
48
|
var DynamicBridgeWidgetContext = require('./context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs');
|
|
47
49
|
|
|
48
|
-
const DynamicBridgeWidget = ({
|
|
49
|
-
const { showAuthFlow, setShowBridgeWidget,
|
|
50
|
+
const DynamicBridgeWidget = ({ className, variant = 'modal', }) => {
|
|
51
|
+
const { showAuthFlow, setShowBridgeWidget, walletsByChain, setShowAuthFlow, getConnectedWalletById, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
50
52
|
const { widgetRef, inlineControlsRef } = DynamicBridgeWidgetContext.useDynamicBridgeWidgetContext();
|
|
51
53
|
const closeOnOutsideClick = React.useCallback((e) => {
|
|
52
54
|
var _a;
|
|
@@ -58,7 +60,14 @@ const DynamicBridgeWidget = ({ buttonClassName, buttonContainerClassName, innerB
|
|
|
58
60
|
}
|
|
59
61
|
}, [inlineControlsRef, variant, showAuthFlow, setShowBridgeWidget]);
|
|
60
62
|
index.useOnClickOutside(widgetRef, closeOnOutsideClick);
|
|
61
|
-
return (jsxRuntime.jsx(IsBrowser.IsBrowser, { children: jsxRuntime.
|
|
63
|
+
return (jsxRuntime.jsx(IsBrowser.IsBrowser, { children: jsxRuntime.jsxs(ShadowDOM.ShadowDOM, Object.assign({ id: 'dynamic-bridge-widget', className: 'dynamic-widget__container' }, { children: [jsxRuntime.jsx(InlineWidget.InlineWidget, Object.assign({ ref: inlineControlsRef, className: className, dataTestId: 'BridgeWidgetNav' }, { children: walletsByChain === null || walletsByChain === void 0 ? void 0 : walletsByChain.map(({ chain }, index) => {
|
|
64
|
+
const ChainIcon = getChainIcon.getChainIcon(chain);
|
|
65
|
+
const wallet = getConnectedWalletById(`connect-only-wallet-${index}`);
|
|
66
|
+
if (wallet) {
|
|
67
|
+
return (jsxRuntime.jsx(InlineWidgetButton.InlineWidgetButton, Object.assign({ icon: jsxRuntime.jsx(ChainIcon, {}), onClick: () => setShowBridgeWidget(true) }, { children: shortenWalletAddress.shortenWalletAddress(wallet.address, 3, 3) }), chain));
|
|
68
|
+
}
|
|
69
|
+
return (jsxRuntime.jsx(InlineWidgetButton.InlineWidgetButton, Object.assign({ icon: jsxRuntime.jsx(ChainIcon, {}), onClick: () => setShowAuthFlow(true) }, { children: "Connect wallet" }), chain));
|
|
70
|
+
}) })), jsxRuntime.jsx(DynamicBridgeUserProfile.DynamicBridgeUserProfile, { variant: variant })] })) }));
|
|
62
71
|
};
|
|
63
72
|
|
|
64
73
|
exports.DynamicBridgeWidget = DynamicBridgeWidget;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { FC
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
export type DynamicBridgeWidgetVariant = 'modal' | 'dropdown';
|
|
3
3
|
export type DynamicBridgeWidgetProps = {
|
|
4
|
-
|
|
5
|
-
buttonContainerClassName?: string;
|
|
6
|
-
innerButtonComponent?: ReactNode;
|
|
4
|
+
className?: string;
|
|
7
5
|
variant?: DynamicBridgeWidgetVariant;
|
|
8
6
|
};
|
|
9
7
|
export declare const DynamicBridgeWidget: FC<DynamicBridgeWidgetProps>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { IsBrowser } from '../../components/IsBrowser/IsBrowser.js';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
|
-
import '
|
|
6
|
+
import { getChainIcon } from '../../shared/utils/functions/chain/getChainIcon.js';
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import '../../context/ViewContext/ViewContext.js';
|
|
9
8
|
import '@dynamic-labs/wallet-book';
|
|
9
|
+
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
10
10
|
import '@dynamic-labs/utils';
|
|
11
11
|
import '../../utils/constants/colors.js';
|
|
12
12
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import { useOnClickOutside } from '../../shared/utils/hooks/useOnClickOutside/index.js';
|
|
15
|
+
import '@dynamic-labs/iconic';
|
|
16
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
15
17
|
import '../../shared/consts/index.js';
|
|
16
18
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
17
19
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -32,17 +34,17 @@ import '../../components/Alert/Alert.js';
|
|
|
32
34
|
import '../../context/MockContext/MockContext.js';
|
|
33
35
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
34
36
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
35
|
-
import { DynamicConnectButton } from '../../components/DynamicConnectButton/DynamicConnectButton.js';
|
|
36
37
|
import '../../components/Popper/Popper/Popper.js';
|
|
37
38
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
39
|
import 'formik';
|
|
39
40
|
import 'yup';
|
|
41
|
+
import { InlineWidgetButton } from '../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js';
|
|
42
|
+
import { InlineWidget } from '../../components/InlineWidget/InlineWidget.js';
|
|
40
43
|
import { DynamicBridgeUserProfile } from './components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js';
|
|
41
|
-
import { DynamicBridgeWidgetNav } from './components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js';
|
|
42
44
|
import { useDynamicBridgeWidgetContext } from './context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js';
|
|
43
45
|
|
|
44
|
-
const DynamicBridgeWidget = ({
|
|
45
|
-
const { showAuthFlow, setShowBridgeWidget,
|
|
46
|
+
const DynamicBridgeWidget = ({ className, variant = 'modal', }) => {
|
|
47
|
+
const { showAuthFlow, setShowBridgeWidget, walletsByChain, setShowAuthFlow, getConnectedWalletById, } = useInternalDynamicContext();
|
|
46
48
|
const { widgetRef, inlineControlsRef } = useDynamicBridgeWidgetContext();
|
|
47
49
|
const closeOnOutsideClick = useCallback((e) => {
|
|
48
50
|
var _a;
|
|
@@ -54,7 +56,14 @@ const DynamicBridgeWidget = ({ buttonClassName, buttonContainerClassName, innerB
|
|
|
54
56
|
}
|
|
55
57
|
}, [inlineControlsRef, variant, showAuthFlow, setShowBridgeWidget]);
|
|
56
58
|
useOnClickOutside(widgetRef, closeOnOutsideClick);
|
|
57
|
-
return (jsx(IsBrowser, { children:
|
|
59
|
+
return (jsx(IsBrowser, { children: jsxs(ShadowDOM, Object.assign({ id: 'dynamic-bridge-widget', className: 'dynamic-widget__container' }, { children: [jsx(InlineWidget, Object.assign({ ref: inlineControlsRef, className: className, dataTestId: 'BridgeWidgetNav' }, { children: walletsByChain === null || walletsByChain === void 0 ? void 0 : walletsByChain.map(({ chain }, index) => {
|
|
60
|
+
const ChainIcon = getChainIcon(chain);
|
|
61
|
+
const wallet = getConnectedWalletById(`connect-only-wallet-${index}`);
|
|
62
|
+
if (wallet) {
|
|
63
|
+
return (jsx(InlineWidgetButton, Object.assign({ icon: jsx(ChainIcon, {}), onClick: () => setShowBridgeWidget(true) }, { children: shortenWalletAddress(wallet.address, 3, 3) }), chain));
|
|
64
|
+
}
|
|
65
|
+
return (jsx(InlineWidgetButton, Object.assign({ icon: jsx(ChainIcon, {}), onClick: () => setShowAuthFlow(true) }, { children: "Connect wallet" }), chain));
|
|
66
|
+
}) })), jsx(DynamicBridgeUserProfile, { variant: variant })] })) }));
|
|
58
67
|
};
|
|
59
68
|
|
|
60
69
|
export { DynamicBridgeWidget };
|
|
@@ -44,6 +44,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
44
44
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
45
|
require('formik');
|
|
46
46
|
require('yup');
|
|
47
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
47
48
|
|
|
48
49
|
const options = [
|
|
49
50
|
{
|
|
@@ -40,6 +40,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
40
40
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
41
41
|
require('formik');
|
|
42
42
|
require('yup');
|
|
43
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
43
44
|
|
|
44
45
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
45
46
|
|
|
@@ -36,6 +36,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
36
36
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
37
37
|
import 'formik';
|
|
38
38
|
import 'yup';
|
|
39
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
39
40
|
|
|
40
41
|
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 &&
|
|
41
42
|
React__default.cloneElement(networkIcon, {
|