@dynamic-labs/sdk-react-core 0.17.0-RC.11 → 0.17.0-RC.13
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 +21 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +9 -9
- package/src/index.cjs +8 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +4 -1
- package/src/lib/Main.cjs +2 -0
- package/src/lib/Main.js +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -0
- package/src/lib/components/Divider/Divider.cjs +2 -0
- package/src/lib/components/Divider/Divider.js +2 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +4 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +4 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +2 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +7 -5
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +7 -5
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -0
- package/src/lib/components/Popper/Popper/Popper.cjs +54 -0
- package/src/lib/components/Popper/Popper/Popper.d.ts +12 -0
- package/src/lib/components/Popper/Popper/Popper.js +50 -0
- package/src/lib/components/Popper/Popper/index.d.ts +1 -0
- package/src/lib/components/Popper/Popper.types.d.ts +6 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +18 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +9 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.js +14 -0
- package/src/lib/components/Popper/PopperContent/index.d.ts +1 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.cjs +26 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.d.ts +8 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.js +20 -0
- package/src/lib/components/Popper/PopperContext/index.d.ts +1 -0
- package/src/lib/components/Popper/index.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +14 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +10 -0
- package/src/lib/components/Popper/utils/getChildPosition/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +3 -0
- package/src/lib/components/Popper/utils/isScrollable/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.cjs +16 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.js +12 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +24 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +20 -0
- package/src/lib/components/Portal/Portal.cjs +2 -0
- package/src/lib/components/Portal/Portal.js +2 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -0
- package/src/lib/components/Tooltip/Tooltip.js +2 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +2 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +2 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/useTransactionData.cjs +2 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/useTransactionData.js +2 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/isNetworkUnsupported/index.d.ts +1 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +12 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +8 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +25 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +25 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -0
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +2 -0
- package/src/lib/views/EmailVerification/EmailVerification.js +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +2 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +2 -0
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +2 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -0
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -0
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -0
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -0
- package/src/lib/views/NoAccess/NoAccess.js +2 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +2 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +2 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +2 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +2 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +2 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +2 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +2 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -0
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +2 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.js +2 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -27
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +8 -28
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -0
- package/src/polyfills.cjs +11 -0
- package/src/polyfills.d.ts +1 -0
- package/src/polyfills.js +9 -0
- package/src/shim/process.cjs +238 -0
- package/src/shim/process.d.ts +34 -0
- package/src/shim/process.js +234 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -68
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -64
|
@@ -32,6 +32,8 @@ import { Button } from '../../../../components/Button/Button.js';
|
|
|
32
32
|
import '../../../../components/IconButton/IconButton.js';
|
|
33
33
|
import '../../../../components/Alert/Alert.js';
|
|
34
34
|
import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.js';
|
|
35
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
36
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
35
37
|
import { DynamicWidgetFooter } from '../../components/DynamicWidgetFooter/DynamicWidgetFooter.js';
|
|
36
38
|
import { DynamicWidgetWallets } from '../../components/DynamicWidgetWallets/DynamicWidgetWallets.js';
|
|
37
39
|
import { SingleWalletButtons } from '../../components/SingleWalletButtons/SingleWalletButtons.js';
|
|
@@ -37,6 +37,8 @@ var Button = require('../../../../components/Button/Button.cjs');
|
|
|
37
37
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
38
38
|
require('../../../../components/Alert/Alert.cjs');
|
|
39
39
|
var LogoutButton = require('../../../../components/LogoutButton/LogoutButton.cjs');
|
|
40
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
41
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
42
|
var DynamicWidgetContext = require('../../context/DynamicWidgetContext.cjs');
|
|
41
43
|
|
|
42
44
|
const ProfileView = () => {
|
|
@@ -33,6 +33,8 @@ import { Button } from '../../../../components/Button/Button.js';
|
|
|
33
33
|
import '../../../../components/IconButton/IconButton.js';
|
|
34
34
|
import '../../../../components/Alert/Alert.js';
|
|
35
35
|
import { LogoutButton } from '../../../../components/LogoutButton/LogoutButton.js';
|
|
36
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
37
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
36
38
|
import { useWidgetContext } from '../../context/DynamicWidgetContext.js';
|
|
37
39
|
|
|
38
40
|
const ProfileView = () => {
|
|
@@ -31,6 +31,8 @@ require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
|
31
31
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
32
32
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
33
33
|
require('../../../../components/Alert/Alert.cjs');
|
|
34
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
35
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
34
36
|
var FundingContext = require('../../../../context/FundingContext/FundingContext.cjs');
|
|
35
37
|
|
|
36
38
|
const Modal = ({ onrampUrl }) => {
|
|
@@ -27,6 +27,8 @@ import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
|
27
27
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
28
28
|
import '../../../../components/IconButton/IconButton.js';
|
|
29
29
|
import '../../../../components/Alert/Alert.js';
|
|
30
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
31
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
30
32
|
import { useFundingContext } from '../../../../context/FundingContext/FundingContext.js';
|
|
31
33
|
|
|
32
34
|
const Modal = ({ onrampUrl }) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/polyfills.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// shim for using process in browser
|
|
7
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
8
|
+
function defaultSetTimout() {
|
|
9
|
+
throw new Error('setTimeout has not been defined');
|
|
10
|
+
}
|
|
11
|
+
function defaultClearTimeout() {
|
|
12
|
+
throw new Error('clearTimeout has not been defined');
|
|
13
|
+
}
|
|
14
|
+
var cachedSetTimeout = defaultSetTimout;
|
|
15
|
+
var cachedClearTimeout = defaultClearTimeout;
|
|
16
|
+
if (typeof globalThis.setTimeout === 'function') {
|
|
17
|
+
cachedSetTimeout = setTimeout;
|
|
18
|
+
}
|
|
19
|
+
if (typeof globalThis.clearTimeout === 'function') {
|
|
20
|
+
cachedClearTimeout = clearTimeout;
|
|
21
|
+
}
|
|
22
|
+
function runTimeout(fun) {
|
|
23
|
+
if (cachedSetTimeout === setTimeout) {
|
|
24
|
+
//normal enviroments in sane situations
|
|
25
|
+
return setTimeout(fun, 0);
|
|
26
|
+
}
|
|
27
|
+
// if setTimeout wasn't available but was latter defined
|
|
28
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) &&
|
|
29
|
+
setTimeout) {
|
|
30
|
+
cachedSetTimeout = setTimeout;
|
|
31
|
+
return setTimeout(fun, 0);
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
35
|
+
return cachedSetTimeout(fun, 0);
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
try {
|
|
39
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the globalThis object when called normally
|
|
40
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
// same as above but when it's a version of I.E. that must have the globalThis object for 'this', hopfully our context correct otherwise it will throw a globalThis error
|
|
44
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function runClearTimeout(marker) {
|
|
49
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
50
|
+
//normal enviroments in sane situations
|
|
51
|
+
return clearTimeout(marker);
|
|
52
|
+
}
|
|
53
|
+
// if clearTimeout wasn't available but was latter defined
|
|
54
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) &&
|
|
55
|
+
clearTimeout) {
|
|
56
|
+
cachedClearTimeout = clearTimeout;
|
|
57
|
+
return clearTimeout(marker);
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
61
|
+
return cachedClearTimeout(marker);
|
|
62
|
+
}
|
|
63
|
+
catch (e) {
|
|
64
|
+
try {
|
|
65
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the globalThis object when called normally
|
|
66
|
+
return cachedClearTimeout.call(null, marker);
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
// same as above but when it's a version of I.E. that must have the globalThis object for 'this', hopfully our context correct otherwise it will throw a globalThis error.
|
|
70
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
71
|
+
return cachedClearTimeout.call(this, marker);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var queue = [];
|
|
76
|
+
var draining = false;
|
|
77
|
+
var currentQueue;
|
|
78
|
+
var queueIndex = -1;
|
|
79
|
+
function cleanUpNextTick() {
|
|
80
|
+
if (!draining || !currentQueue) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
draining = false;
|
|
84
|
+
if (currentQueue.length) {
|
|
85
|
+
queue = currentQueue.concat(queue);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
queueIndex = -1;
|
|
89
|
+
}
|
|
90
|
+
if (queue.length) {
|
|
91
|
+
drainQueue();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function drainQueue() {
|
|
95
|
+
if (draining) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
99
|
+
draining = true;
|
|
100
|
+
var len = queue.length;
|
|
101
|
+
while (len) {
|
|
102
|
+
currentQueue = queue;
|
|
103
|
+
queue = [];
|
|
104
|
+
while (++queueIndex < len) {
|
|
105
|
+
if (currentQueue) {
|
|
106
|
+
currentQueue[queueIndex].run();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
queueIndex = -1;
|
|
110
|
+
len = queue.length;
|
|
111
|
+
}
|
|
112
|
+
currentQueue = null;
|
|
113
|
+
draining = false;
|
|
114
|
+
runClearTimeout(timeout);
|
|
115
|
+
}
|
|
116
|
+
function nextTick(fun) {
|
|
117
|
+
var args = new Array(arguments.length - 1);
|
|
118
|
+
if (arguments.length > 1) {
|
|
119
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
120
|
+
args[i - 1] = arguments[i];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
queue.push(new (Item(fun, args))());
|
|
124
|
+
if (queue.length === 1 && !draining) {
|
|
125
|
+
runTimeout(drainQueue);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// v8 likes predictible objects
|
|
129
|
+
function Item(fun, array) {
|
|
130
|
+
this.fun = fun;
|
|
131
|
+
this.array = array;
|
|
132
|
+
}
|
|
133
|
+
Item.prototype.run = function () {
|
|
134
|
+
this.fun.apply(null, this.array);
|
|
135
|
+
};
|
|
136
|
+
var title = 'browser';
|
|
137
|
+
var platform = 'browser';
|
|
138
|
+
var browser = true;
|
|
139
|
+
var env = {};
|
|
140
|
+
var argv = [];
|
|
141
|
+
var version = ''; // empty string to avoid regexp issues
|
|
142
|
+
var versions = {};
|
|
143
|
+
var release = {};
|
|
144
|
+
var config = {};
|
|
145
|
+
function noop() { }
|
|
146
|
+
var on = noop;
|
|
147
|
+
var addListener = noop;
|
|
148
|
+
var once = noop;
|
|
149
|
+
var off = noop;
|
|
150
|
+
var removeListener = noop;
|
|
151
|
+
var removeAllListeners = noop;
|
|
152
|
+
var emit = noop;
|
|
153
|
+
function binding(name) {
|
|
154
|
+
throw new Error('process.binding is not supported');
|
|
155
|
+
}
|
|
156
|
+
function cwd() {
|
|
157
|
+
return '/';
|
|
158
|
+
}
|
|
159
|
+
function chdir(dir) {
|
|
160
|
+
throw new Error('process.chdir is not supported');
|
|
161
|
+
}
|
|
162
|
+
function umask() {
|
|
163
|
+
return 0;
|
|
164
|
+
}
|
|
165
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
166
|
+
var performance = globalThis.performance || {};
|
|
167
|
+
var performanceNow = performance.now ||
|
|
168
|
+
performance.mozNow ||
|
|
169
|
+
performance.msNow ||
|
|
170
|
+
performance.oNow ||
|
|
171
|
+
performance.webkitNow ||
|
|
172
|
+
function () {
|
|
173
|
+
return new Date().getTime();
|
|
174
|
+
};
|
|
175
|
+
// generate timestamp or delta
|
|
176
|
+
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
177
|
+
function hrtime(previousTimestamp) {
|
|
178
|
+
var clocktime = performanceNow.call(performance) * 1e-3;
|
|
179
|
+
var seconds = Math.floor(clocktime);
|
|
180
|
+
var nanoseconds = Math.floor((clocktime % 1) * 1e9);
|
|
181
|
+
if (previousTimestamp) {
|
|
182
|
+
seconds = seconds - previousTimestamp[0];
|
|
183
|
+
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
184
|
+
if (nanoseconds < 0) {
|
|
185
|
+
seconds--;
|
|
186
|
+
nanoseconds += 1e9;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return [seconds, nanoseconds];
|
|
190
|
+
}
|
|
191
|
+
var startTime = new Date();
|
|
192
|
+
function uptime() {
|
|
193
|
+
var currentTime = new Date();
|
|
194
|
+
var dif = currentTime.getTime() - startTime.getTime();
|
|
195
|
+
return dif / 1000;
|
|
196
|
+
}
|
|
197
|
+
var process = {
|
|
198
|
+
nextTick: nextTick,
|
|
199
|
+
title: title,
|
|
200
|
+
browser: browser,
|
|
201
|
+
env: env,
|
|
202
|
+
argv: argv,
|
|
203
|
+
version: version,
|
|
204
|
+
versions: versions,
|
|
205
|
+
on: on,
|
|
206
|
+
addListener: addListener,
|
|
207
|
+
once: once,
|
|
208
|
+
off: off,
|
|
209
|
+
removeListener: removeListener,
|
|
210
|
+
removeAllListeners: removeAllListeners,
|
|
211
|
+
emit: emit,
|
|
212
|
+
binding: binding,
|
|
213
|
+
cwd: cwd,
|
|
214
|
+
chdir: chdir,
|
|
215
|
+
umask: umask,
|
|
216
|
+
hrtime: hrtime,
|
|
217
|
+
platform: platform,
|
|
218
|
+
release: release,
|
|
219
|
+
config: config,
|
|
220
|
+
uptime: uptime,
|
|
221
|
+
};
|
|
222
|
+
// replace process.env.VAR with define
|
|
223
|
+
const defines = {};
|
|
224
|
+
Object.keys(defines).forEach((key) => {
|
|
225
|
+
const segs = key.split('.');
|
|
226
|
+
let target = process;
|
|
227
|
+
for (let i = 0; i < segs.length; i++) {
|
|
228
|
+
const seg = segs[i];
|
|
229
|
+
if (i === segs.length - 1) {
|
|
230
|
+
target[seg] = defines[key];
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
target = target[seg] || (target[seg] = {});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
exports.process = process;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare function nextTick(fun: any): void;
|
|
2
|
+
declare function noop(): void;
|
|
3
|
+
declare function binding(name: any): void;
|
|
4
|
+
declare function cwd(): string;
|
|
5
|
+
declare function chdir(dir: any): void;
|
|
6
|
+
declare function umask(): number;
|
|
7
|
+
declare function hrtime(previousTimestamp: any): number[];
|
|
8
|
+
declare function uptime(): number;
|
|
9
|
+
export declare var process: {
|
|
10
|
+
nextTick: typeof nextTick;
|
|
11
|
+
title: string;
|
|
12
|
+
browser: boolean;
|
|
13
|
+
env: {};
|
|
14
|
+
argv: any[];
|
|
15
|
+
version: string;
|
|
16
|
+
versions: {};
|
|
17
|
+
on: typeof noop;
|
|
18
|
+
addListener: typeof noop;
|
|
19
|
+
once: typeof noop;
|
|
20
|
+
off: typeof noop;
|
|
21
|
+
removeListener: typeof noop;
|
|
22
|
+
removeAllListeners: typeof noop;
|
|
23
|
+
emit: typeof noop;
|
|
24
|
+
binding: typeof binding;
|
|
25
|
+
cwd: typeof cwd;
|
|
26
|
+
chdir: typeof chdir;
|
|
27
|
+
umask: typeof umask;
|
|
28
|
+
hrtime: typeof hrtime;
|
|
29
|
+
platform: string;
|
|
30
|
+
release: {};
|
|
31
|
+
config: {};
|
|
32
|
+
uptime: typeof uptime;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// shim for using process in browser
|
|
3
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
4
|
+
function defaultSetTimout() {
|
|
5
|
+
throw new Error('setTimeout has not been defined');
|
|
6
|
+
}
|
|
7
|
+
function defaultClearTimeout() {
|
|
8
|
+
throw new Error('clearTimeout has not been defined');
|
|
9
|
+
}
|
|
10
|
+
var cachedSetTimeout = defaultSetTimout;
|
|
11
|
+
var cachedClearTimeout = defaultClearTimeout;
|
|
12
|
+
if (typeof globalThis.setTimeout === 'function') {
|
|
13
|
+
cachedSetTimeout = setTimeout;
|
|
14
|
+
}
|
|
15
|
+
if (typeof globalThis.clearTimeout === 'function') {
|
|
16
|
+
cachedClearTimeout = clearTimeout;
|
|
17
|
+
}
|
|
18
|
+
function runTimeout(fun) {
|
|
19
|
+
if (cachedSetTimeout === setTimeout) {
|
|
20
|
+
//normal enviroments in sane situations
|
|
21
|
+
return setTimeout(fun, 0);
|
|
22
|
+
}
|
|
23
|
+
// if setTimeout wasn't available but was latter defined
|
|
24
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) &&
|
|
25
|
+
setTimeout) {
|
|
26
|
+
cachedSetTimeout = setTimeout;
|
|
27
|
+
return setTimeout(fun, 0);
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
31
|
+
return cachedSetTimeout(fun, 0);
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
try {
|
|
35
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the globalThis object when called normally
|
|
36
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
// same as above but when it's a version of I.E. that must have the globalThis object for 'this', hopfully our context correct otherwise it will throw a globalThis error
|
|
40
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function runClearTimeout(marker) {
|
|
45
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
46
|
+
//normal enviroments in sane situations
|
|
47
|
+
return clearTimeout(marker);
|
|
48
|
+
}
|
|
49
|
+
// if clearTimeout wasn't available but was latter defined
|
|
50
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) &&
|
|
51
|
+
clearTimeout) {
|
|
52
|
+
cachedClearTimeout = clearTimeout;
|
|
53
|
+
return clearTimeout(marker);
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
57
|
+
return cachedClearTimeout(marker);
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
try {
|
|
61
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the globalThis object when called normally
|
|
62
|
+
return cachedClearTimeout.call(null, marker);
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
// same as above but when it's a version of I.E. that must have the globalThis object for 'this', hopfully our context correct otherwise it will throw a globalThis error.
|
|
66
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
67
|
+
return cachedClearTimeout.call(this, marker);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
var queue = [];
|
|
72
|
+
var draining = false;
|
|
73
|
+
var currentQueue;
|
|
74
|
+
var queueIndex = -1;
|
|
75
|
+
function cleanUpNextTick() {
|
|
76
|
+
if (!draining || !currentQueue) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
draining = false;
|
|
80
|
+
if (currentQueue.length) {
|
|
81
|
+
queue = currentQueue.concat(queue);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
queueIndex = -1;
|
|
85
|
+
}
|
|
86
|
+
if (queue.length) {
|
|
87
|
+
drainQueue();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function drainQueue() {
|
|
91
|
+
if (draining) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
95
|
+
draining = true;
|
|
96
|
+
var len = queue.length;
|
|
97
|
+
while (len) {
|
|
98
|
+
currentQueue = queue;
|
|
99
|
+
queue = [];
|
|
100
|
+
while (++queueIndex < len) {
|
|
101
|
+
if (currentQueue) {
|
|
102
|
+
currentQueue[queueIndex].run();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
queueIndex = -1;
|
|
106
|
+
len = queue.length;
|
|
107
|
+
}
|
|
108
|
+
currentQueue = null;
|
|
109
|
+
draining = false;
|
|
110
|
+
runClearTimeout(timeout);
|
|
111
|
+
}
|
|
112
|
+
function nextTick(fun) {
|
|
113
|
+
var args = new Array(arguments.length - 1);
|
|
114
|
+
if (arguments.length > 1) {
|
|
115
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
116
|
+
args[i - 1] = arguments[i];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
queue.push(new (Item(fun, args))());
|
|
120
|
+
if (queue.length === 1 && !draining) {
|
|
121
|
+
runTimeout(drainQueue);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
// v8 likes predictible objects
|
|
125
|
+
function Item(fun, array) {
|
|
126
|
+
this.fun = fun;
|
|
127
|
+
this.array = array;
|
|
128
|
+
}
|
|
129
|
+
Item.prototype.run = function () {
|
|
130
|
+
this.fun.apply(null, this.array);
|
|
131
|
+
};
|
|
132
|
+
var title = 'browser';
|
|
133
|
+
var platform = 'browser';
|
|
134
|
+
var browser = true;
|
|
135
|
+
var env = {};
|
|
136
|
+
var argv = [];
|
|
137
|
+
var version = ''; // empty string to avoid regexp issues
|
|
138
|
+
var versions = {};
|
|
139
|
+
var release = {};
|
|
140
|
+
var config = {};
|
|
141
|
+
function noop() { }
|
|
142
|
+
var on = noop;
|
|
143
|
+
var addListener = noop;
|
|
144
|
+
var once = noop;
|
|
145
|
+
var off = noop;
|
|
146
|
+
var removeListener = noop;
|
|
147
|
+
var removeAllListeners = noop;
|
|
148
|
+
var emit = noop;
|
|
149
|
+
function binding(name) {
|
|
150
|
+
throw new Error('process.binding is not supported');
|
|
151
|
+
}
|
|
152
|
+
function cwd() {
|
|
153
|
+
return '/';
|
|
154
|
+
}
|
|
155
|
+
function chdir(dir) {
|
|
156
|
+
throw new Error('process.chdir is not supported');
|
|
157
|
+
}
|
|
158
|
+
function umask() {
|
|
159
|
+
return 0;
|
|
160
|
+
}
|
|
161
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
162
|
+
var performance = globalThis.performance || {};
|
|
163
|
+
var performanceNow = performance.now ||
|
|
164
|
+
performance.mozNow ||
|
|
165
|
+
performance.msNow ||
|
|
166
|
+
performance.oNow ||
|
|
167
|
+
performance.webkitNow ||
|
|
168
|
+
function () {
|
|
169
|
+
return new Date().getTime();
|
|
170
|
+
};
|
|
171
|
+
// generate timestamp or delta
|
|
172
|
+
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
173
|
+
function hrtime(previousTimestamp) {
|
|
174
|
+
var clocktime = performanceNow.call(performance) * 1e-3;
|
|
175
|
+
var seconds = Math.floor(clocktime);
|
|
176
|
+
var nanoseconds = Math.floor((clocktime % 1) * 1e9);
|
|
177
|
+
if (previousTimestamp) {
|
|
178
|
+
seconds = seconds - previousTimestamp[0];
|
|
179
|
+
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
180
|
+
if (nanoseconds < 0) {
|
|
181
|
+
seconds--;
|
|
182
|
+
nanoseconds += 1e9;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return [seconds, nanoseconds];
|
|
186
|
+
}
|
|
187
|
+
var startTime = new Date();
|
|
188
|
+
function uptime() {
|
|
189
|
+
var currentTime = new Date();
|
|
190
|
+
var dif = currentTime.getTime() - startTime.getTime();
|
|
191
|
+
return dif / 1000;
|
|
192
|
+
}
|
|
193
|
+
var process = {
|
|
194
|
+
nextTick: nextTick,
|
|
195
|
+
title: title,
|
|
196
|
+
browser: browser,
|
|
197
|
+
env: env,
|
|
198
|
+
argv: argv,
|
|
199
|
+
version: version,
|
|
200
|
+
versions: versions,
|
|
201
|
+
on: on,
|
|
202
|
+
addListener: addListener,
|
|
203
|
+
once: once,
|
|
204
|
+
off: off,
|
|
205
|
+
removeListener: removeListener,
|
|
206
|
+
removeAllListeners: removeAllListeners,
|
|
207
|
+
emit: emit,
|
|
208
|
+
binding: binding,
|
|
209
|
+
cwd: cwd,
|
|
210
|
+
chdir: chdir,
|
|
211
|
+
umask: umask,
|
|
212
|
+
hrtime: hrtime,
|
|
213
|
+
platform: platform,
|
|
214
|
+
release: release,
|
|
215
|
+
config: config,
|
|
216
|
+
uptime: uptime,
|
|
217
|
+
};
|
|
218
|
+
// replace process.env.VAR with define
|
|
219
|
+
const defines = {};
|
|
220
|
+
Object.keys(defines).forEach((key) => {
|
|
221
|
+
const segs = key.split('.');
|
|
222
|
+
let target = process;
|
|
223
|
+
for (let i = 0; i < segs.length; i++) {
|
|
224
|
+
const seg = segs[i];
|
|
225
|
+
if (i === segs.length - 1) {
|
|
226
|
+
target[seg] = defines[key];
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
target = target[seg] || (target[seg] = {});
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
export { process };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var utils = require('@dynamic-labs/utils');
|
|
8
|
-
require('@dynamic-labs/sdk-api');
|
|
9
|
-
require('../../../../shared/logger.cjs');
|
|
10
|
-
require('@dynamic-labs/iconic');
|
|
11
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
13
|
-
var close = require('../../../../shared/assets/close.cjs');
|
|
14
|
-
require('../../../../utils/constants/colors.cjs');
|
|
15
|
-
require('ethers');
|
|
16
|
-
var index = require('../../../../shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
17
|
-
require('../../../../shared/consts/index.cjs');
|
|
18
|
-
var useTransition = require('../../../../utils/hooks/useTransition/useTransition.cjs');
|
|
19
|
-
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
20
|
-
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
21
|
-
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
22
|
-
require('@dynamic-labs/multi-wallet');
|
|
23
|
-
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
24
|
-
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
25
|
-
require('react-dom');
|
|
26
|
-
require('react-focus-lock');
|
|
27
|
-
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
28
|
-
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
29
|
-
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
|
-
require('../../../../config/ApiEndpoint.cjs');
|
|
31
|
-
require('@dynamic-labs/rpc-providers');
|
|
32
|
-
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
33
|
-
require('../../../../context/MockContext/MockContext.cjs');
|
|
34
|
-
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
35
|
-
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
36
|
-
var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
37
|
-
require('../../../../components/Alert/Alert.cjs');
|
|
38
|
-
|
|
39
|
-
const DotsMenuWrapper = ({ children, onClose, content, showMenu, title, alignment = 'bottom', }) => {
|
|
40
|
-
const ref = React.useRef(null);
|
|
41
|
-
const closeOnOutsideClick = React.useCallback((event) => {
|
|
42
|
-
event.stopPropagation();
|
|
43
|
-
onClose();
|
|
44
|
-
}, [onClose]);
|
|
45
|
-
const handleOnClose = React.useCallback((event) => {
|
|
46
|
-
event.stopPropagation();
|
|
47
|
-
onClose();
|
|
48
|
-
}, [onClose]);
|
|
49
|
-
index.useOnClickOutside(ref, closeOnOutsideClick);
|
|
50
|
-
const { mount, stage, currentDuration } = useTransition.useTransition({
|
|
51
|
-
inDuration: utils.isMobile() ? 300 : 100,
|
|
52
|
-
isShown: showMenu,
|
|
53
|
-
outDuration: utils.isMobile() ? 400 : 100,
|
|
54
|
-
});
|
|
55
|
-
const alignmentClassName = classNames.classNames({
|
|
56
|
-
'dots-menu-wrapper__container__alignment__bottom': alignment === 'bottom',
|
|
57
|
-
'dots-menu-wrapper__container__alignment__top': alignment === 'top',
|
|
58
|
-
});
|
|
59
|
-
const menuAnimationClassName = classNames.classNames('dots-menu-wrapper__container', alignmentClassName, {
|
|
60
|
-
'dots-menu-wrapper__container--entering': stage === 'ENTERING',
|
|
61
|
-
'dots-menu-wrapper__container--exiting': stage === 'EXITING',
|
|
62
|
-
});
|
|
63
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'dots-menu-wrapper', ref: ref }, { children: [children, showMenu && (jsxRuntime.jsx("div", { className: 'dots-menu-wrapper__backdrop', onClick: handleOnClose, "data-testid": 'dots-menu-wrapper__backdrop' })), mount && (jsxRuntime.jsxs("div", Object.assign({ className: menuAnimationClassName, onClick: handleOnClose, style: {
|
|
64
|
-
animationDuration: `${currentDuration}ms`,
|
|
65
|
-
} }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'dots-menu-wrapper__header' }, { children: [jsxRuntime.jsx("div", { className: 'dots-menu-wrapper__header__icon' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary' }, { children: title })), jsxRuntime.jsx("div", Object.assign({ className: 'dots-menu-wrapper__header__icon' }, { children: jsxRuntime.jsx(IconButton.IconButton, Object.assign({ "data-testid": 'close-icon-button', onClick: handleOnClose }, { children: jsxRuntime.jsx(close.ReactComponent, {}) })) }))] })), content] })))] })));
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
exports.DotsMenuWrapper = DotsMenuWrapper;
|