@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
|
@@ -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 useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
|
|
@@ -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 { useMutation } from '../../utils/hooks/useMutation/useMutation.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 Badge = require('../../../../components/Badge/Badge.cjs');
|
|
46
47
|
|
|
47
48
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|
|
@@ -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 { Badge } from '../../../../components/Badge/Badge.js';
|
|
42
43
|
|
|
43
44
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs
CHANGED
|
@@ -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
|
var useWalletItemActions = require('../../../../utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
42
43
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
43
44
|
var useConnectWithEmail = require('../../../../utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs');
|
package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js
CHANGED
|
@@ -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 { useWalletItemActions } from '../../../../utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
38
39
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
39
40
|
import { useConnectWithEmail } from '../../../../utils/hooks/useConnectWithEmail/useConnectWithEmail.js';
|
|
@@ -48,6 +48,7 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
48
48
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
49
49
|
require('formik');
|
|
50
50
|
require('yup');
|
|
51
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
51
52
|
var SocialRedirectContext = require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
52
53
|
var OverlayCard = require('../../../../components/OverlayCard/OverlayCard.cjs');
|
|
53
54
|
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
@@ -44,6 +44,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
44
44
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
45
45
|
import 'formik';
|
|
46
46
|
import 'yup';
|
|
47
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
47
48
|
import { useSocialRedirectContext } from '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
48
49
|
import { OverlayCard } from '../../../../components/OverlayCard/OverlayCard.js';
|
|
49
50
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
@@ -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 NetworkPicker = require('../../components/NetworkPicker/NetworkPicker.cjs');
|
|
48
49
|
var UserAddress = require('../../components/UserAddress/UserAddress.cjs');
|
|
49
50
|
var AuthProviderIcon = require('../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
@@ -59,15 +60,15 @@ const NetworkNotSupported = () => {
|
|
|
59
60
|
if (!walletConnector) {
|
|
60
61
|
return null;
|
|
61
62
|
}
|
|
62
|
-
const handleNetworkChange = () => {
|
|
63
|
+
const handleNetworkChange = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
63
64
|
if (!onboardingOnlyJwt) {
|
|
64
65
|
finishConnectAndSign({ walletConnector });
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
68
|
setCallback('authSuccess');
|
|
68
|
-
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
69
|
+
yield updateUserProfileByJWT(onboardingOnlyJwt);
|
|
69
70
|
setShowAuthFlow(false);
|
|
70
|
-
};
|
|
71
|
+
});
|
|
71
72
|
const userProfile = decodedOnboardingOnlyToken && createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
72
73
|
const evmNetworks = walletConnector.evmNetworks || [];
|
|
73
74
|
const _isSupportedNetwork = isSupportedNetwork.isSupportedNetwork({ network, walletConnector });
|
|
@@ -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 { NetworkPicker } from '../../components/NetworkPicker/NetworkPicker.js';
|
|
44
45
|
import { UserAddress } from '../../components/UserAddress/UserAddress.js';
|
|
45
46
|
import { AuthProviderIcon } from '../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
@@ -55,15 +56,15 @@ const NetworkNotSupported = () => {
|
|
|
55
56
|
if (!walletConnector) {
|
|
56
57
|
return null;
|
|
57
58
|
}
|
|
58
|
-
const handleNetworkChange = () => {
|
|
59
|
+
const handleNetworkChange = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
60
|
if (!onboardingOnlyJwt) {
|
|
60
61
|
finishConnectAndSign({ walletConnector });
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
63
64
|
setCallback('authSuccess');
|
|
64
|
-
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
65
|
+
yield updateUserProfileByJWT(onboardingOnlyJwt);
|
|
65
66
|
setShowAuthFlow(false);
|
|
66
|
-
};
|
|
67
|
+
});
|
|
67
68
|
const userProfile = decodedOnboardingOnlyToken && createUserProfile(decodedOnboardingOnlyToken);
|
|
68
69
|
const evmNetworks = walletConnector.evmNetworks || [];
|
|
69
70
|
const _isSupportedNetwork = isSupportedNetwork({ network, walletConnector });
|
|
@@ -21,6 +21,7 @@ var useInternalDynamicContext = require('../../context/DynamicContext/useInterna
|
|
|
21
21
|
require('@dynamic-labs/multi-wallet');
|
|
22
22
|
var isSupportedNetwork = require('../../utils/functions/isSupportedNetwork/isSupportedNetwork.cjs');
|
|
23
23
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
24
|
+
var getWalletConnectorNetworks = require('../../utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs');
|
|
24
25
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
25
26
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
26
27
|
require('react-dom');
|
|
@@ -44,6 +45,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
44
45
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
46
|
require('formik');
|
|
46
47
|
require('yup');
|
|
48
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
47
49
|
var useUpdateUserProfileByJWTCallback = require('../../utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs');
|
|
48
50
|
|
|
49
51
|
// The component notifies the user about the required manual network change,
|
|
@@ -80,7 +82,10 @@ const NetworkNotSupportedSwitchManual = () => {
|
|
|
80
82
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
81
83
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
82
84
|
} }));
|
|
83
|
-
|
|
85
|
+
const walletConnectorNetworks = getWalletConnectorNetworks.getWalletConnectorNetworks(walletConnector);
|
|
86
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__img-container' }, { children: ((_a = user === null || user === void 0 ? void 0 : user.ens) === null || _a === void 0 ? void 0 : _a.avatar) ? (jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsxRuntime.jsx("img", { src: (_b = user === null || user === void 0 ? void 0 : user.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported-switch-manual__img' }) }))) : (jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual__content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'network-not-supported-switch-manual__title', weight: 'medium', variant: 'title', color: 'primary' }, { children: "Update your Network" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary' }, { children: walletConnectorNetworks.length
|
|
87
|
+
? `To continue, please update the network in your wallet to ${walletConnectorNetworks[0].name}`
|
|
88
|
+
: 'Your wallet does not support switching networks from this app. Switch networks directly in your wallet.' }))] }))] })));
|
|
84
89
|
};
|
|
85
90
|
|
|
86
91
|
exports.NetworkNotSupportedSwitchManual = NetworkNotSupportedSwitchManual;
|
|
@@ -17,6 +17,7 @@ import { useInternalDynamicContext } from '../../context/DynamicContext/useInter
|
|
|
17
17
|
import '@dynamic-labs/multi-wallet';
|
|
18
18
|
import { isSupportedNetwork } from '../../utils/functions/isSupportedNetwork/isSupportedNetwork.js';
|
|
19
19
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
20
|
+
import { getWalletConnectorNetworks } from '../../utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js';
|
|
20
21
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
21
22
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
22
23
|
import 'react-dom';
|
|
@@ -40,6 +41,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
40
41
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
41
42
|
import 'formik';
|
|
42
43
|
import 'yup';
|
|
44
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
43
45
|
import { useUpdateUserProfileByJWTCallback } from '../../utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js';
|
|
44
46
|
|
|
45
47
|
// The component notifies the user about the required manual network change,
|
|
@@ -76,7 +78,10 @@ const NetworkNotSupportedSwitchManual = () => {
|
|
|
76
78
|
height: pixelToRem(iconSize * iconRatio),
|
|
77
79
|
width: pixelToRem(iconSize * iconRatio),
|
|
78
80
|
} }));
|
|
79
|
-
|
|
81
|
+
const walletConnectorNetworks = getWalletConnectorNetworks(walletConnector);
|
|
82
|
+
return (jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual' }, { children: [jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__img-container' }, { children: ((_a = user === null || user === void 0 ? void 0 : user.ens) === null || _a === void 0 ? void 0 : _a.avatar) ? (jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsx("img", { src: (_b = user === null || user === void 0 ? void 0 : user.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported-switch-manual__img' }) }))) : (jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }) }))) })), jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual__content' }, { children: [jsx(Typography, Object.assign({ className: 'network-not-supported-switch-manual__title', weight: 'medium', variant: 'title', color: 'primary' }, { children: "Update your Network" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary' }, { children: walletConnectorNetworks.length
|
|
83
|
+
? `To continue, please update the network in your wallet to ${walletConnectorNetworks[0].name}`
|
|
84
|
+
: 'Your wallet does not support switching networks from this app. Switch networks directly in your wallet.' }))] }))] })));
|
|
80
85
|
};
|
|
81
86
|
|
|
82
87
|
export { NetworkNotSupportedSwitchManual };
|
|
@@ -12,6 +12,7 @@ require('@dynamic-labs/wallet-connector-core');
|
|
|
12
12
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
13
13
|
var error = require('../../shared/assets/error.cjs');
|
|
14
14
|
require('@dynamic-labs/wallet-book');
|
|
15
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
15
16
|
require('@dynamic-labs/utils');
|
|
16
17
|
require('../../utils/constants/colors.cjs');
|
|
17
18
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
@@ -43,38 +44,25 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
43
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
45
|
require('formik');
|
|
45
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
46
48
|
var StatusDot = require('../../components/StatusDot/StatusDot.cjs');
|
|
47
49
|
var getSocialNetworkIcon = require('../../utils/functions/getSocialNetworkIcon/getSocialNetworkIcon.cjs');
|
|
48
50
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
49
51
|
var AuthProviderIcon = require('../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
52
|
+
var useNoAccessText = require('./useNoAccessText.cjs');
|
|
50
53
|
|
|
51
54
|
const NoAccess = () => {
|
|
52
55
|
const { deniedAddress, setDeniedAddress, setDeniedOauthProvider } = AccessDeniedContext.useAccessDeniedContext();
|
|
53
|
-
const { selectedWalletConnector: walletConnector,
|
|
56
|
+
const { selectedWalletConnector: walletConnector, socialMediaIconUrl, notInTheListImageUrl, onboardingOnlyJwt, accessDeniedButton, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
54
57
|
const { email } = EmailVerificationContext.useEmailVerificationContext();
|
|
55
|
-
const { goToInitialView
|
|
56
|
-
const
|
|
57
|
-
const _socialMediaLinkText = !isChainalysisView
|
|
58
|
-
? socialMediaLinkText
|
|
59
|
-
: 'Why am I seeing this message?';
|
|
60
|
-
const _socialMediaUrl = !isChainalysisView
|
|
61
|
-
? socialMediaUrl
|
|
62
|
-
: 'https://docs.dynamic.xyz/docs';
|
|
58
|
+
const { goToInitialView } = ViewContext.useViewContext();
|
|
59
|
+
const { _socialMediaLinkText, _socialMediaUrl, isAccessListView, isGateBlockedView, subtitle, title, buttonTitle: _buttonTitle, } = useNoAccessText.useNoAccessText();
|
|
63
60
|
const handleChangeWallet = () => {
|
|
64
61
|
goToInitialView();
|
|
65
62
|
setDeniedAddress('');
|
|
66
63
|
setDeniedOauthProvider(undefined);
|
|
67
64
|
walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.endSession();
|
|
68
65
|
};
|
|
69
|
-
const title = isChainalysisView
|
|
70
|
-
? 'This address seems corrupted.'
|
|
71
|
-
: accessDeniedMessagePrimary || 'Access denied';
|
|
72
|
-
const subtitle = isChainalysisView
|
|
73
|
-
? 'This wallet has been correlated to illicit activity and cannot access this site.'
|
|
74
|
-
: accessDeniedMessageSecondary ||
|
|
75
|
-
"We couldn't find your wallet address or email on our allow list of customers.";
|
|
76
|
-
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || 'Try another method';
|
|
77
|
-
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
78
66
|
const SocialMediaIcon = !socialMediaIconUrl || typeof socialMediaIconUrl === 'string'
|
|
79
67
|
? null
|
|
80
68
|
: getSocialNetworkIcon.getSocialNetworkIcon(Object.keys(socialMediaIconUrl)[0]);
|
|
@@ -84,9 +72,13 @@ const NoAccess = () => {
|
|
|
84
72
|
}
|
|
85
73
|
return (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'wallet-no-access__icon--verified', Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: error.ReactComponent, variant: 'red' }));
|
|
86
74
|
}, [onboardingOnlyJwt, walletConnector]);
|
|
87
|
-
const formattedAddress =
|
|
75
|
+
const formattedAddress = shortenWalletAddress.shortenWalletAddress(deniedAddress, 6, 4);
|
|
76
|
+
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || _buttonTitle;
|
|
77
|
+
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
88
78
|
const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
|
|
89
|
-
|
|
79
|
+
const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
|
|
80
|
+
const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
|
|
81
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__container' }, { children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__main' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__user-info-container' }, { children: [Icon, jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container' }, { children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address' }, { children: emailOrAddress }))] }))] })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary' }, { children: title })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary' }, { children: subtitle }))] })), jsxRuntime.jsx(Button.Button, Object.assign({ onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonRounded: 'default', buttonPadding: 'large' }, { children: buttonTitle })), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__social-info-container' }, { children: [jsxRuntime.jsxs("a", Object.assign({ href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary' }, { children: _socialMediaLinkText })), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
|
|
90
82
|
height: pixelToRem.pixelToRem(24),
|
|
91
83
|
width: pixelToRem.pixelToRem(24),
|
|
92
84
|
} }))] })), typeof socialMediaIconUrl === 'string' && (jsxRuntime.jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
|
|
@@ -8,6 +8,7 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
8
8
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
9
9
|
import { ReactComponent as SvgError } from '../../shared/assets/error.js';
|
|
10
10
|
import '@dynamic-labs/wallet-book';
|
|
11
|
+
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
11
12
|
import '@dynamic-labs/utils';
|
|
12
13
|
import '../../utils/constants/colors.js';
|
|
13
14
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
@@ -39,38 +40,25 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
39
40
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
41
|
import 'formik';
|
|
41
42
|
import 'yup';
|
|
43
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
42
44
|
import { StatusDot } from '../../components/StatusDot/StatusDot.js';
|
|
43
45
|
import { getSocialNetworkIcon } from '../../utils/functions/getSocialNetworkIcon/getSocialNetworkIcon.js';
|
|
44
46
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
45
47
|
import { AuthProviderIcon } from '../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
48
|
+
import { useNoAccessText } from './useNoAccessText.js';
|
|
46
49
|
|
|
47
50
|
const NoAccess = () => {
|
|
48
51
|
const { deniedAddress, setDeniedAddress, setDeniedOauthProvider } = useAccessDeniedContext();
|
|
49
|
-
const { selectedWalletConnector: walletConnector,
|
|
52
|
+
const { selectedWalletConnector: walletConnector, socialMediaIconUrl, notInTheListImageUrl, onboardingOnlyJwt, accessDeniedButton, } = useInternalDynamicContext();
|
|
50
53
|
const { email } = useEmailVerificationContext();
|
|
51
|
-
const { goToInitialView
|
|
52
|
-
const
|
|
53
|
-
const _socialMediaLinkText = !isChainalysisView
|
|
54
|
-
? socialMediaLinkText
|
|
55
|
-
: 'Why am I seeing this message?';
|
|
56
|
-
const _socialMediaUrl = !isChainalysisView
|
|
57
|
-
? socialMediaUrl
|
|
58
|
-
: 'https://docs.dynamic.xyz/docs';
|
|
54
|
+
const { goToInitialView } = useViewContext();
|
|
55
|
+
const { _socialMediaLinkText, _socialMediaUrl, isAccessListView, isGateBlockedView, subtitle, title, buttonTitle: _buttonTitle, } = useNoAccessText();
|
|
59
56
|
const handleChangeWallet = () => {
|
|
60
57
|
goToInitialView();
|
|
61
58
|
setDeniedAddress('');
|
|
62
59
|
setDeniedOauthProvider(undefined);
|
|
63
60
|
walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.endSession();
|
|
64
61
|
};
|
|
65
|
-
const title = isChainalysisView
|
|
66
|
-
? 'This address seems corrupted.'
|
|
67
|
-
: accessDeniedMessagePrimary || 'Access denied';
|
|
68
|
-
const subtitle = isChainalysisView
|
|
69
|
-
? 'This wallet has been correlated to illicit activity and cannot access this site.'
|
|
70
|
-
: accessDeniedMessageSecondary ||
|
|
71
|
-
"We couldn't find your wallet address or email on our allow list of customers.";
|
|
72
|
-
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || 'Try another method';
|
|
73
|
-
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
74
62
|
const SocialMediaIcon = !socialMediaIconUrl || typeof socialMediaIconUrl === 'string'
|
|
75
63
|
? null
|
|
76
64
|
: getSocialNetworkIcon(Object.keys(socialMediaIconUrl)[0]);
|
|
@@ -80,9 +68,13 @@ const NoAccess = () => {
|
|
|
80
68
|
}
|
|
81
69
|
return (jsx(IconWithStatus, { containerClassName: 'wallet-no-access__icon--verified', Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgError, variant: 'red' }));
|
|
82
70
|
}, [onboardingOnlyJwt, walletConnector]);
|
|
83
|
-
const formattedAddress =
|
|
71
|
+
const formattedAddress = shortenWalletAddress(deniedAddress, 6, 4);
|
|
72
|
+
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || _buttonTitle;
|
|
73
|
+
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
84
74
|
const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
|
|
85
|
-
|
|
75
|
+
const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
|
|
76
|
+
const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
|
|
77
|
+
return (jsxs("div", Object.assign({ className: 'wallet-no-access__container' }, { children: [showNoInTheListImage && (jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxs("div", Object.assign({ className: 'wallet-no-access__main' }, { children: [jsxs("div", Object.assign({ className: 'wallet-no-access__user-info-container' }, { children: [Icon, jsxs("div", Object.assign({ "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container' }, { children: [walletConnector && (jsx(StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address' }, { children: emailOrAddress }))] }))] })), jsxs("div", Object.assign({ className: 'wallet-no-access__content' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary' }, { children: title })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary' }, { children: subtitle }))] })), jsx(Button, Object.assign({ onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonRounded: 'default', buttonPadding: 'large' }, { children: buttonTitle })), _socialMediaUrl && _socialMediaLinkText && (jsxs("div", Object.assign({ className: 'wallet-no-access__social-info-container' }, { children: [jsxs("a", Object.assign({ href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link' }, { children: [jsx(Typography, Object.assign({ variant: 'button_primary', color: 'primary' }, { children: _socialMediaLinkText })), showSocialMediaIcon && (jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
|
|
86
78
|
height: pixelToRem(24),
|
|
87
79
|
width: pixelToRem(24),
|
|
88
80
|
} }))] })), typeof socialMediaIconUrl === 'string' && (jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
6
|
+
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
7
|
+
|
|
8
|
+
const useNoAccessText = () => {
|
|
9
|
+
const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
10
|
+
const { view } = ViewContext.useViewContext();
|
|
11
|
+
const isChainalysisView = view === 'chainalysis-blocked-wallet';
|
|
12
|
+
const isGateBlockedView = view === 'gate-blocked-wallet';
|
|
13
|
+
const isAccessListView = view === 'no-access';
|
|
14
|
+
const getSocialMediaLinkText = () => {
|
|
15
|
+
if (isChainalysisView) {
|
|
16
|
+
return textData.chainalysis._socialMediaLinkText;
|
|
17
|
+
}
|
|
18
|
+
if (isGateBlockedView) {
|
|
19
|
+
return textData.gate._socialMediaLinkText;
|
|
20
|
+
}
|
|
21
|
+
return socialMediaLinkText;
|
|
22
|
+
};
|
|
23
|
+
const getSocialMediaUrl = () => {
|
|
24
|
+
if (isChainalysisView) {
|
|
25
|
+
return textData.chainalysis._socialMediaUrl;
|
|
26
|
+
}
|
|
27
|
+
if (isGateBlockedView) {
|
|
28
|
+
return textData.gate._socialMediaUrl;
|
|
29
|
+
}
|
|
30
|
+
return socialMediaUrl;
|
|
31
|
+
};
|
|
32
|
+
const getTitle = () => {
|
|
33
|
+
if (isChainalysisView) {
|
|
34
|
+
return textData.chainalysis.title;
|
|
35
|
+
}
|
|
36
|
+
if (isGateBlockedView) {
|
|
37
|
+
return textData.gate.title;
|
|
38
|
+
}
|
|
39
|
+
return accessDeniedMessagePrimary || textData.default.title;
|
|
40
|
+
};
|
|
41
|
+
const getSubtitle = () => {
|
|
42
|
+
if (isChainalysisView) {
|
|
43
|
+
return textData.chainalysis.subtitle;
|
|
44
|
+
}
|
|
45
|
+
if (isGateBlockedView) {
|
|
46
|
+
return textData.gate.subtitle;
|
|
47
|
+
}
|
|
48
|
+
return accessDeniedMessageSecondary || textData.default.subtitle;
|
|
49
|
+
};
|
|
50
|
+
const getButtonTitle = () => {
|
|
51
|
+
if (isChainalysisView) {
|
|
52
|
+
return textData.chainalysis.buttonTitle;
|
|
53
|
+
}
|
|
54
|
+
if (isGateBlockedView) {
|
|
55
|
+
return textData.gate.buttonTitle;
|
|
56
|
+
}
|
|
57
|
+
return textData.default.buttonTitle;
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
_socialMediaLinkText: getSocialMediaLinkText(),
|
|
61
|
+
_socialMediaUrl: getSocialMediaUrl(),
|
|
62
|
+
buttonTitle: getButtonTitle(),
|
|
63
|
+
isAccessListView,
|
|
64
|
+
isChainalysisView,
|
|
65
|
+
isGateBlockedView,
|
|
66
|
+
subtitle: getSubtitle(),
|
|
67
|
+
title: getTitle(),
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
const textData = {
|
|
71
|
+
chainalysis: {
|
|
72
|
+
_socialMediaLinkText: 'Why am I seeing this message?',
|
|
73
|
+
_socialMediaUrl: 'https://docs.dynamic.xyz/docs',
|
|
74
|
+
buttonTitle: 'Try another method',
|
|
75
|
+
subtitle: 'This wallet has been correlated to illicit activity and cannot access this site.',
|
|
76
|
+
title: 'This address seems corrupted.',
|
|
77
|
+
},
|
|
78
|
+
default: {
|
|
79
|
+
buttonTitle: 'Try another method',
|
|
80
|
+
subtitle: "We couldn't find your wallet address or email on our allow list of customers.",
|
|
81
|
+
title: 'Access denied',
|
|
82
|
+
},
|
|
83
|
+
gate: {
|
|
84
|
+
_socialMediaLinkText: undefined,
|
|
85
|
+
_socialMediaUrl: undefined,
|
|
86
|
+
buttonTitle: 'Try a different wallet',
|
|
87
|
+
subtitle: 'An NFT or a token is required to access this site.',
|
|
88
|
+
title: 'You cannot access the site',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.textData = textData;
|
|
93
|
+
exports.useNoAccessText = useNoAccessText;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const useNoAccessText: () => {
|
|
2
|
+
_socialMediaLinkText: string | undefined;
|
|
3
|
+
_socialMediaUrl: string | undefined;
|
|
4
|
+
buttonTitle: string;
|
|
5
|
+
isAccessListView: boolean;
|
|
6
|
+
isChainalysisView: boolean;
|
|
7
|
+
isGateBlockedView: boolean;
|
|
8
|
+
subtitle: string;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const textData: {
|
|
12
|
+
chainalysis: {
|
|
13
|
+
_socialMediaLinkText: string;
|
|
14
|
+
_socialMediaUrl: string;
|
|
15
|
+
buttonTitle: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
default: {
|
|
20
|
+
buttonTitle: string;
|
|
21
|
+
subtitle: string;
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
24
|
+
gate: {
|
|
25
|
+
_socialMediaLinkText: undefined;
|
|
26
|
+
_socialMediaUrl: undefined;
|
|
27
|
+
buttonTitle: string;
|
|
28
|
+
subtitle: string;
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
2
|
+
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
3
|
+
|
|
4
|
+
const useNoAccessText = () => {
|
|
5
|
+
const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext();
|
|
6
|
+
const { view } = useViewContext();
|
|
7
|
+
const isChainalysisView = view === 'chainalysis-blocked-wallet';
|
|
8
|
+
const isGateBlockedView = view === 'gate-blocked-wallet';
|
|
9
|
+
const isAccessListView = view === 'no-access';
|
|
10
|
+
const getSocialMediaLinkText = () => {
|
|
11
|
+
if (isChainalysisView) {
|
|
12
|
+
return textData.chainalysis._socialMediaLinkText;
|
|
13
|
+
}
|
|
14
|
+
if (isGateBlockedView) {
|
|
15
|
+
return textData.gate._socialMediaLinkText;
|
|
16
|
+
}
|
|
17
|
+
return socialMediaLinkText;
|
|
18
|
+
};
|
|
19
|
+
const getSocialMediaUrl = () => {
|
|
20
|
+
if (isChainalysisView) {
|
|
21
|
+
return textData.chainalysis._socialMediaUrl;
|
|
22
|
+
}
|
|
23
|
+
if (isGateBlockedView) {
|
|
24
|
+
return textData.gate._socialMediaUrl;
|
|
25
|
+
}
|
|
26
|
+
return socialMediaUrl;
|
|
27
|
+
};
|
|
28
|
+
const getTitle = () => {
|
|
29
|
+
if (isChainalysisView) {
|
|
30
|
+
return textData.chainalysis.title;
|
|
31
|
+
}
|
|
32
|
+
if (isGateBlockedView) {
|
|
33
|
+
return textData.gate.title;
|
|
34
|
+
}
|
|
35
|
+
return accessDeniedMessagePrimary || textData.default.title;
|
|
36
|
+
};
|
|
37
|
+
const getSubtitle = () => {
|
|
38
|
+
if (isChainalysisView) {
|
|
39
|
+
return textData.chainalysis.subtitle;
|
|
40
|
+
}
|
|
41
|
+
if (isGateBlockedView) {
|
|
42
|
+
return textData.gate.subtitle;
|
|
43
|
+
}
|
|
44
|
+
return accessDeniedMessageSecondary || textData.default.subtitle;
|
|
45
|
+
};
|
|
46
|
+
const getButtonTitle = () => {
|
|
47
|
+
if (isChainalysisView) {
|
|
48
|
+
return textData.chainalysis.buttonTitle;
|
|
49
|
+
}
|
|
50
|
+
if (isGateBlockedView) {
|
|
51
|
+
return textData.gate.buttonTitle;
|
|
52
|
+
}
|
|
53
|
+
return textData.default.buttonTitle;
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
_socialMediaLinkText: getSocialMediaLinkText(),
|
|
57
|
+
_socialMediaUrl: getSocialMediaUrl(),
|
|
58
|
+
buttonTitle: getButtonTitle(),
|
|
59
|
+
isAccessListView,
|
|
60
|
+
isChainalysisView,
|
|
61
|
+
isGateBlockedView,
|
|
62
|
+
subtitle: getSubtitle(),
|
|
63
|
+
title: getTitle(),
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const textData = {
|
|
67
|
+
chainalysis: {
|
|
68
|
+
_socialMediaLinkText: 'Why am I seeing this message?',
|
|
69
|
+
_socialMediaUrl: 'https://docs.dynamic.xyz/docs',
|
|
70
|
+
buttonTitle: 'Try another method',
|
|
71
|
+
subtitle: 'This wallet has been correlated to illicit activity and cannot access this site.',
|
|
72
|
+
title: 'This address seems corrupted.',
|
|
73
|
+
},
|
|
74
|
+
default: {
|
|
75
|
+
buttonTitle: 'Try another method',
|
|
76
|
+
subtitle: "We couldn't find your wallet address or email on our allow list of customers.",
|
|
77
|
+
title: 'Access denied',
|
|
78
|
+
},
|
|
79
|
+
gate: {
|
|
80
|
+
_socialMediaLinkText: undefined,
|
|
81
|
+
_socialMediaUrl: undefined,
|
|
82
|
+
buttonTitle: 'Try a different wallet',
|
|
83
|
+
subtitle: 'An NFT or a token is required to access this site.',
|
|
84
|
+
title: 'You cannot access the site',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export { textData, useNoAccessText };
|
|
@@ -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
|
var getBrowserIcon = require('../../shared/utils/functions/getBrowserIcon/getBrowserIcon.cjs');
|
|
44
45
|
var WalletHelpLink = require('./WalletHelpLink.cjs');
|
|
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
|
import { getBrowserIcon } from '../../shared/utils/functions/getBrowserIcon/getBrowserIcon.js';
|
|
40
41
|
import { WalletHelpLink } from './WalletHelpLink.js';
|
|
41
42
|
|
|
@@ -39,6 +39,7 @@ 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
44
|
const capitalize = (value) => value[0].toUpperCase() + value.slice(1);
|
|
44
45
|
const WalletHelpLink = ({ name, link, Icon }) => (jsxRuntime.jsx("div", Object.assign({ className: 'wallet-help-link' }, { children: jsxRuntime.jsxs("a", Object.assign({ className: 'wallet-help-link__anchor', href: link, target: '_blank', rel: 'noreferrer' }, { children: [jsxRuntime.jsx(Icon, { style: {
|
|
@@ -35,6 +35,7 @@ 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
40
|
const capitalize = (value) => value[0].toUpperCase() + value.slice(1);
|
|
40
41
|
const WalletHelpLink = ({ name, link, Icon }) => (jsx("div", Object.assign({ className: 'wallet-help-link' }, { children: jsxs("a", Object.assign({ className: 'wallet-help-link__anchor', href: link, target: '_blank', rel: 'noreferrer' }, { children: [jsx(Icon, { style: {
|
|
@@ -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
|
|
|
46
47
|
const PendingConnectView = () => {
|
|
47
48
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
@@ -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
|
|
|
42
43
|
const PendingConnectView = () => {
|
|
43
44
|
const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
|