@dynamic-labs/sdk-react-core 0.17.0-RC.8 → 0.17.0
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 +338 -0
- package/package.cjs +9 -10
- package/package.js +9 -10
- package/package.json +17 -17
- package/src/index.cjs +36 -6
- package/src/index.d.ts +4 -1
- package/src/index.js +22 -5
- package/src/lib/Main.cjs +26 -14
- package/src/lib/Main.js +23 -11
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +11 -3
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +11 -3
- package/src/lib/components/Alert/Alert.cjs +30 -0
- package/src/lib/components/Alert/Alert.js +26 -0
- package/src/lib/components/Alert/Alert.types.d.ts +4 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +11 -3
- package/src/lib/components/AnimatePresence/AnimatePresence.js +11 -3
- package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +89 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.d.ts +10 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +85 -0
- package/src/lib/components/AuthProviderIcon/index.d.ts +1 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +7 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +4 -1
- package/src/lib/components/Checkbox/Checkbox.js +4 -1
- package/src/lib/components/Chip/Chip.cjs +13 -0
- package/src/lib/components/Chip/Chip.d.ts +7 -0
- package/src/lib/components/Chip/Chip.js +9 -0
- package/src/lib/components/Chip/index.d.ts +1 -0
- package/src/lib/components/Divider/Divider.cjs +17 -6
- package/src/lib/components/Divider/Divider.d.ts +7 -3
- package/src/lib/components/Divider/Divider.js +18 -7
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +6 -3
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +6 -3
- package/src/lib/components/FormFieldLabel/FormFieldLabel.cjs +10 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.d.ts +8 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.js +6 -0
- package/src/lib/components/FormFieldLabel/index.d.ts +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +7 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +7 -3
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +5 -2
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +5 -2
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +7 -3
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +7 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +14 -8
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +14 -8
- package/src/lib/components/Input/Input.cjs +13 -6
- package/src/lib/components/Input/Input.js +13 -6
- package/src/lib/components/Input/Input.types.d.ts +4 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +4 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +4 -1
- package/src/lib/components/Modal/Modal.cjs +10 -0
- package/src/lib/components/Modal/Modal.d.ts +6 -0
- package/src/lib/components/Modal/Modal.js +6 -0
- package/src/lib/components/Modal/index.d.ts +1 -0
- package/src/lib/components/ModalCard/ModalCard.cjs +9 -0
- package/src/lib/components/ModalCard/ModalCard.d.ts +2 -0
- package/src/lib/components/ModalCard/ModalCard.js +5 -0
- package/src/lib/components/ModalCard/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +8 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +8 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +11 -3
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +11 -3
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +17 -9
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +17 -9
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +14 -6
- package/src/lib/components/NetworkPicker/components/Network/Network.js +14 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +14 -6
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +14 -6
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +4 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +4 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +19 -10
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +19 -10
- package/src/lib/components/OverlayCard/OverlayCard.cjs +11 -3
- package/src/lib/components/OverlayCard/OverlayCard.js +11 -3
- 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 +11 -3
- package/src/lib/components/Portal/Portal.js +11 -3
- package/src/lib/components/Select/Select.cjs +4 -1
- package/src/lib/components/Select/Select.js +4 -1
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +13 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.d.ts +8 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +9 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +8 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +61 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +11 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +57 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +51 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +19 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +47 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +26 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +22 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/components/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/index.d.ts +2 -0
- package/src/lib/components/ShadowDOM/utils.cjs +4 -1
- package/src/lib/components/ShadowDOM/utils.js +4 -1
- package/src/lib/components/Spinner/spinner.cjs +4 -1
- package/src/lib/components/Spinner/spinner.js +4 -1
- package/src/lib/components/Step/Step.d.ts +7 -0
- package/src/lib/components/Step/index.d.ts +1 -0
- package/src/lib/components/Stepper/Stepper.d.ts +2 -0
- package/src/lib/components/Stepper/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +5 -2
- package/src/lib/components/Toolkit/Toolkit.js +5 -2
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +4 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +4 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +12 -4
- package/src/lib/components/Tooltip/Tooltip.js +12 -4
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +41 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +17 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +37 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +11 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +12 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +7 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/index.d.ts +2 -0
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +11 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +57 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +12 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +53 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +11 -3
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +11 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +4 -1
- package/src/lib/components/UserAddress/UserAddress.js +4 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +17 -9
- package/src/lib/components/UserProfile/UserProfile.js +13 -5
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +6 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +6 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +14 -6
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +35 -16
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +35 -16
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.js +1 -1
- package/src/lib/components/index.d.ts +9 -0
- package/src/lib/config/LSSuffix.cjs +24 -0
- package/src/lib/config/LSSuffix.d.ts +7 -0
- package/src/lib/config/LSSuffix.js +22 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.cjs +30 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.d.ts +13 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.js +24 -0
- package/src/lib/context/AccessDeniedContext/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +80 -32
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +26 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +77 -29
- package/src/lib/context/DynamicContext/helpers.cjs +8 -4
- package/src/lib/context/DynamicContext/helpers.js +7 -3
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +4 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +4 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +7 -3
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +7 -3
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +4 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +4 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +27 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +14 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +23 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +11 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +11 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +5 -2
- package/src/lib/context/DynamicContext/validators.cjs +4 -1
- package/src/lib/context/DynamicContext/validators.js +4 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +2 -2
- package/src/lib/context/FundingContext/FundingContext.js +1 -1
- package/src/lib/context/MockContext/MockContext.cjs +5 -1
- package/src/lib/context/MockContext/MockContext.js +5 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +11 -3
- package/src/lib/context/QrCodeContext/QrCodeContext.js +11 -3
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +74 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.d.ts +4 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.cjs +11 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.d.ts +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.js +6 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +69 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +9 -0
- package/src/lib/context/SendBalanceContext/index.d.ts +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +108 -23
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +4 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +108 -23
- package/src/lib/context/ThemeContext/themesData.cjs +22 -19
- package/src/lib/context/ThemeContext/themesData.d.ts +3 -3
- package/src/lib/context/ThemeContext/themesData.js +22 -19
- package/src/lib/context/ViewContext/ViewContext.cjs +21 -12
- package/src/lib/context/ViewContext/ViewContext.d.ts +10 -8
- package/src/lib/context/ViewContext/ViewContext.js +22 -13
- package/src/lib/data/api.cjs +9 -4
- package/src/lib/data/api.d.ts +2 -2
- package/src/lib/data/api.js +9 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +14 -6
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +13 -5
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +13 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +13 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +13 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +14 -6
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +13 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +14 -7
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +12 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +16 -8
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +16 -8
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +23 -12
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +23 -12
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +15 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +69 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +10 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +65 -0
- package/src/lib/modals/SendBalanceModal/index.d.ts +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +23 -12
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +23 -12
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +37 -100
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +39 -102
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -4
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/add.cjs +8 -9
- package/src/lib/shared/assets/add.js +8 -9
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/send.cjs +56 -0
- package/src/lib/shared/assets/send.js +32 -0
- package/src/lib/shared/types/index.d.ts +14 -2
- package/src/lib/shared/utils/functions/ceil/ceil.cjs +10 -0
- package/src/lib/shared/utils/functions/ceil/ceil.d.ts +1 -0
- package/src/lib/shared/utils/functions/ceil/ceil.js +6 -0
- package/src/lib/shared/utils/functions/ceil/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.cjs +2 -2
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.js +1 -1
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +2 -2
- package/src/lib/shared/utils/functions/chain/getChainIcon.js +1 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +21 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +2 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +17 -0
- package/src/lib/shared/utils/functions/formatBigNumber/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +4 -3
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +2 -1
- package/src/lib/shared/utils/functions/index.d.ts +3 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.cjs +27 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.d.ts +6 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.js +23 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.cjs +9 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.js +5 -0
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs +2 -1
- package/src/lib/shared/utils/functions/storage/getFromLS.js +2 -1
- package/src/lib/shared/utils/functions/storage/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.cjs +15 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.js +11 -0
- package/src/lib/shared/utils/functions/storage/setToLS.cjs +5 -2
- package/src/lib/shared/utils/functions/storage/setToLS.js +5 -2
- package/src/lib/shared/utils/functions/trimEnd/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +13 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +9 -0
- package/src/lib/shared/utils/hooks/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +8 -4
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +8 -4
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.cjs +12 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.d.ts +1 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.js +8 -0
- package/src/lib/utils/functions/getAppOrigin/index.d.ts +1 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +14 -2
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +13 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +4 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +4 -1
- package/src/lib/utils/functions/getEnabledKYC/index.cjs +5 -0
- package/src/lib/utils/functions/getEnabledKYC/index.d.ts +5 -0
- package/src/lib/utils/functions/getEnabledKYC/index.js +5 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +30 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +26 -0
- package/src/lib/utils/functions/getReferencedAccount/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +78 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +29 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +72 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +2 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +1 -0
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +2 -0
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.cjs +2 -2
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.js +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +4 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +4 -1
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +3 -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/functions/isSameWalletName/isSameWalletName.cjs +2 -2
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +1 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +3 -3
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +1 -1
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +2 -2
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +1 -1
- package/src/lib/utils/functions/isWalletLinked/index.d.ts +1 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.cjs +15 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.d.ts +2 -0
- package/src/lib/utils/functions/isWalletLinked/isWalletLinked.js +11 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +6 -3
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +4 -1
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +1 -1
- package/src/lib/utils/functions/storeAuthToken/index.cjs +14 -2
- package/src/lib/utils/functions/storeAuthToken/index.js +13 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +6 -6
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +8 -5
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +5 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +4 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +4 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +4 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +4 -0
- package/src/lib/utils/hooks/index.d.ts +4 -0
- package/src/lib/utils/hooks/multiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs +0 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.js +0 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +67 -8
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +10 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +68 -9
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +6 -2
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +6 -2
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +5 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +5 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +2 -2
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +1 -1
- package/src/lib/utils/hooks/useColorSchemePreference/index.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +27 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +23 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +6 -1
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +6 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +7 -4
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +5 -2
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +4 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +4 -1
- package/src/lib/utils/hooks/useConnectedAccountWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +30 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +2 -0
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +26 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +5 -2
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +5 -2
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +6 -2
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +7 -3
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +3 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +4 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +4 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +4 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +4 -1
- package/src/lib/utils/hooks/useGetSocialIcon/index.d.ts +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.cjs +14 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.d.ts +2 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.js +10 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +26 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +26 -2
- package/src/lib/utils/hooks/useIconThemeVariant/index.d.ts +1 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.cjs +15 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.d.ts +2 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.js +11 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +16 -6
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.d.ts +5 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +16 -6
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +4 -1
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +4 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.cjs +0 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.d.ts +1 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.js +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +4 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +4 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +3 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +3 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +4 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +21 -10
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +21 -10
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +39 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +35 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +53 -74
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +53 -74
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +56 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +52 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/index.d.ts +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.cjs +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.js +3 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +93 -55
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +92 -54
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +19 -17
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +17 -15
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +51 -15
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +51 -15
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +33 -27
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +5 -3
- package/src/lib/utils/hooks/useWallets/useWallets.js +34 -28
- package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +47 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +14 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +43 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +13 -6
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +13 -6
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +17 -10
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +17 -10
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +13 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +13 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +14 -7
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +14 -7
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +6 -3
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +6 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +13 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +13 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +16 -8
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +15 -7
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +14 -6
- package/src/lib/views/EmailUpdate/EmailUpdate.js +14 -6
- package/src/lib/views/EmailVerification/EmailVerification.cjs +20 -11
- package/src/lib/views/EmailVerification/EmailVerification.js +20 -11
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +12 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +11 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +15 -7
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +15 -7
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +13 -5
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +13 -5
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +13 -8
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +13 -8
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +12 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +11 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +28 -12
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +28 -12
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +31 -10
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +31 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +13 -6
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +13 -6
- package/src/lib/views/NoAccess/NoAccess.cjs +29 -32
- package/src/lib/views/NoAccess/NoAccess.js +30 -33
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +12 -5
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +12 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +13 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +13 -5
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +15 -8
- package/src/lib/views/PendingConnectView/PendingConnectView.js +14 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +16 -9
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +16 -9
- package/src/lib/views/QrCodeView/QRCode.cjs +2 -2
- package/src/lib/views/QrCodeView/QRCode.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +14 -6
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +13 -5
- package/src/lib/views/QrCodeView/QrCodeView.cjs +13 -6
- package/src/lib/views/QrCodeView/QrCodeView.js +13 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +117 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +13 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +113 -0
- package/src/lib/views/SendBalanceView/index.d.ts +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +19 -15
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +19 -15
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +62 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +58 -0
- package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +95 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +14 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +91 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.cjs +7 -1
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +18 -0
- package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +92 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.d.ts +18 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +88 -0
- package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +13 -5
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +13 -5
- package/src/lib/views/WalletList/WalletList.cjs +13 -9
- package/src/lib/views/WalletList/WalletList.js +8 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +11 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +11 -4
- package/src/lib/views/WalletList/data.cjs +9 -6
- package/src/lib/views/WalletList/data.d.ts +2 -2
- package/src/lib/views/WalletList/data.js +9 -6
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +14 -7
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +14 -7
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +12 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.js +12 -5
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +46 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +6 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +42 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +22 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +18 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.cjs +27 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.js +19 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +45 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.d.ts +16 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +35 -0
- package/src/lib/widgets/DynamicBridgeWidget/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +5 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +18 -9
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +18 -9
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +80 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +76 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +18 -32
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +19 -33
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +17 -8
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +18 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +17 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.d.ts +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +45 -28
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +47 -30
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.d.ts +4 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +12 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +12 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +17 -9
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +16 -10
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +16 -10
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +25 -5
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +25 -5
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +37 -23
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +2 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +37 -23
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +8 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +8 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +43 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +44 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +13 -13
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +14 -14
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +7 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +2 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +47 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +43 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +14 -6
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +17 -39
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +18 -40
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +45 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.d.ts +7 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +41 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +71 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +67 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +61 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +57 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +60 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +68 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -34
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +3 -32
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +16 -11
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +17 -12
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +13 -6
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +17 -11
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +17 -11
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +21 -11
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +20 -10
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +14 -6
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +19 -11
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +19 -11
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +15 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +11 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +13 -5
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +13 -5
- package/src/lib/widgets/index.d.ts +1 -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/modals/TransactionConfirmationModal/helpers/transactionErrorMessage.js +0 -12
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.cjs +0 -22
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.d.ts +0 -3
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.js +0 -18
- package/src/lib/utils/functions/getSocialIcon/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +0 -46
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +0 -42
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.types.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -67
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -63
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +0 -58
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.d.ts +0 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +0 -54
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/index.d.ts +0 -1
- /package/src/lib/widgets/DynamicWidget/{components → prompts/PendingSignModal}/DefaultPendingSignModalContent/index.d.ts +0 -0
package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { __awaiter, __rest } from '../../../../../../_virtual/_tslib.js';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { ethers } from 'ethers';
|
|
4
|
+
import '@dynamic-labs/utils';
|
|
5
|
+
import '@dynamic-labs/sdk-api';
|
|
6
|
+
import '../../../../config/ApiEndpoint.js';
|
|
7
|
+
import '../../../../shared/logger.js';
|
|
8
|
+
import '../../../../config/LSSuffix.js';
|
|
9
|
+
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
12
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
13
|
+
import '../../../../utils/constants/colors.js';
|
|
14
|
+
import '../../../../shared/consts/index.js';
|
|
15
|
+
import '@dynamic-labs/multi-wallet';
|
|
16
|
+
import '@dynamic-labs/rpc-providers';
|
|
17
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
18
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
19
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
20
|
+
import 'react-dom';
|
|
21
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
22
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
23
|
+
import 'react-focus-lock';
|
|
24
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
25
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
26
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
27
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
28
|
+
import '../../../../components/Alert/Alert.js';
|
|
29
|
+
import '@dynamic-labs/wallet-book';
|
|
30
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
31
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
32
|
+
import 'formik';
|
|
33
|
+
import 'yup';
|
|
34
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
35
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
36
|
+
import { usePromise } from '../../../../utils/hooks/usePromise/usePromise.js';
|
|
37
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
38
|
+
|
|
39
|
+
const useTransactionData = ({ provider, transaction, }) => {
|
|
40
|
+
const { data: transactionValue, isLoading: isEffectiveValueLoading } = usePromise(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
const val = yield transaction.value;
|
|
42
|
+
return val ? ethers.BigNumber.from(val) : undefined;
|
|
43
|
+
}));
|
|
44
|
+
const { data: estimatedGas, isLoading: isEstimatedGasLoading } = usePromise(() => {
|
|
45
|
+
// To safely run estimateGas using alchemy, we need to remove the from address
|
|
46
|
+
// because alchemy checks the origin address funds and can return an error if
|
|
47
|
+
// origin wallet has no funds for the transaction
|
|
48
|
+
// https://docs.alchemy.com/reference/eth-estimategas
|
|
49
|
+
const { from } = transaction, transactionWithNoOrigin = __rest(transaction, ["from"]);
|
|
50
|
+
return provider.estimateGas(transactionWithNoOrigin);
|
|
51
|
+
});
|
|
52
|
+
const { data: gasPrice, isLoading: isFeeDataLoading } = usePromise(() => provider.getGasPrice());
|
|
53
|
+
const isGasPriceLoading = isEstimatedGasLoading || isFeeDataLoading;
|
|
54
|
+
const gasEstimate = useMemo(() => gasPrice && estimatedGas
|
|
55
|
+
? ethers.BigNumber.from(gasPrice).mul(estimatedGas)
|
|
56
|
+
: undefined, [gasPrice, estimatedGas]);
|
|
57
|
+
const { data: transactionToAddress, isLoading: isTransactionToAddressLoading, } = usePromise(() => transaction.to);
|
|
58
|
+
const { data: transactionFromAddress, isLoading: isTransactionFromAddressLoading, } = usePromise(() => transaction.from);
|
|
59
|
+
const total = useMemo(() => {
|
|
60
|
+
if (gasEstimate !== undefined && transactionValue !== undefined) {
|
|
61
|
+
return gasEstimate.add(transactionValue);
|
|
62
|
+
}
|
|
63
|
+
return transactionValue || gasEstimate;
|
|
64
|
+
}, [gasEstimate, transactionValue]);
|
|
65
|
+
const isLoading = useMemo(() => isEffectiveValueLoading ||
|
|
66
|
+
isGasPriceLoading ||
|
|
67
|
+
isTransactionToAddressLoading ||
|
|
68
|
+
isTransactionFromAddressLoading, [
|
|
69
|
+
isEffectiveValueLoading,
|
|
70
|
+
isGasPriceLoading,
|
|
71
|
+
isTransactionToAddressLoading,
|
|
72
|
+
isTransactionFromAddressLoading,
|
|
73
|
+
]);
|
|
74
|
+
return {
|
|
75
|
+
gasEstimate,
|
|
76
|
+
isEffectiveValueLoading,
|
|
77
|
+
isGasPriceLoading,
|
|
78
|
+
isLoading,
|
|
79
|
+
isTransactionFromAddressLoading,
|
|
80
|
+
isTransactionToAddressLoading,
|
|
81
|
+
total,
|
|
82
|
+
transactionFromAddress,
|
|
83
|
+
transactionToAddress,
|
|
84
|
+
transactionValue,
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export { useTransactionData };
|
|
@@ -7,13 +7,16 @@ require('react');
|
|
|
7
7
|
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../../shared/logger.cjs');
|
|
10
|
+
require('../../../config/LSSuffix.cjs');
|
|
10
11
|
require('@dynamic-labs/iconic');
|
|
11
|
-
require('@dynamic-labs/
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
13
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
14
|
+
require('@dynamic-labs/utils');
|
|
13
15
|
require('../../../utils/constants/colors.cjs');
|
|
16
|
+
require('ethers');
|
|
14
17
|
require('../../../shared/consts/index.cjs');
|
|
15
18
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
16
|
-
require('@dynamic-labs/
|
|
19
|
+
require('@dynamic-labs/multi-wallet');
|
|
17
20
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
18
21
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
19
22
|
require('react-dom');
|
|
@@ -24,12 +27,17 @@ require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs'
|
|
|
24
27
|
require('../../../config/ApiEndpoint.cjs');
|
|
25
28
|
require('@dynamic-labs/rpc-providers');
|
|
26
29
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
-
require('
|
|
30
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
32
|
+
require('@dynamic-labs/wallet-book');
|
|
33
|
+
require('../../../components/Alert/Alert.cjs');
|
|
28
34
|
require('../../../context/MockContext/MockContext.cjs');
|
|
29
35
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
30
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
31
36
|
require('../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
32
|
-
require('../../../components/
|
|
37
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
38
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
39
|
+
require('formik');
|
|
40
|
+
require('yup');
|
|
33
41
|
|
|
34
42
|
const SearchInstead = () => (jsxRuntime.jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: "Don't see your wallet?" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: "Try search instead" }))] })));
|
|
35
43
|
|
|
@@ -3,13 +3,16 @@ import 'react';
|
|
|
3
3
|
import { Typography } from '../../../components/Typography/Typography.js';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../../shared/logger.js';
|
|
6
|
+
import '../../../config/LSSuffix.js';
|
|
6
7
|
import '@dynamic-labs/iconic';
|
|
7
|
-
import '@dynamic-labs/
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
9
|
import '../../../context/ViewContext/ViewContext.js';
|
|
10
|
+
import '@dynamic-labs/utils';
|
|
9
11
|
import '../../../utils/constants/colors.js';
|
|
12
|
+
import 'ethers';
|
|
10
13
|
import '../../../shared/consts/index.js';
|
|
11
14
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
12
|
-
import '@dynamic-labs/
|
|
15
|
+
import '@dynamic-labs/multi-wallet';
|
|
13
16
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
14
17
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
15
18
|
import 'react-dom';
|
|
@@ -20,12 +23,17 @@ import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
20
23
|
import '../../../config/ApiEndpoint.js';
|
|
21
24
|
import '@dynamic-labs/rpc-providers';
|
|
22
25
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
23
|
-
import '
|
|
26
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
27
|
+
import '../../../components/IconButton/IconButton.js';
|
|
28
|
+
import '@dynamic-labs/wallet-book';
|
|
29
|
+
import '../../../components/Alert/Alert.js';
|
|
24
30
|
import '../../../context/MockContext/MockContext.js';
|
|
25
31
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
26
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
27
32
|
import '../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
28
|
-
import '../../../components/
|
|
33
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
34
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
35
|
+
import 'formik';
|
|
36
|
+
import 'yup';
|
|
29
37
|
|
|
30
38
|
const SearchInstead = () => (jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [jsx(Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: "Don't see your wallet?" })), jsx(Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: "Try search instead" }))] })));
|
|
31
39
|
|
|
@@ -11,12 +11,15 @@ var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../shared/logger.cjs');
|
|
13
13
|
var getFromLS = require('../../shared/utils/functions/storage/getFromLS.cjs');
|
|
14
|
+
require('../../config/LSSuffix.cjs');
|
|
14
15
|
var setToLS = require('../../shared/utils/functions/storage/setToLS.cjs');
|
|
15
16
|
require('@dynamic-labs/iconic');
|
|
16
|
-
require('@dynamic-labs/
|
|
17
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
17
18
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
18
|
-
|
|
19
|
+
require('@dynamic-labs/utils');
|
|
20
|
+
var localStorage = require('../../utils/constants/localStorage.cjs');
|
|
19
21
|
require('../../utils/constants/colors.cjs');
|
|
22
|
+
require('ethers');
|
|
20
23
|
require('../../shared/consts/index.cjs');
|
|
21
24
|
var walletListBuilder = require('../../utils/functions/walletListBuilder/walletListBuilder.cjs');
|
|
22
25
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -26,29 +29,30 @@ var isUserLinkingWallet = require('../../shared/utils/functions/isUserLinkingWal
|
|
|
26
29
|
var SearchInstead = require('./SearchInstead/SearchInstead.cjs');
|
|
27
30
|
var WalletListItem = require('./WalletListItem/WalletListItem.cjs');
|
|
28
31
|
|
|
29
|
-
setToLS.setToLS(localStorage
|
|
32
|
+
setToLS.setToLS(localStorage.WALLET_PICKER_SEARCH_KEY, '');
|
|
30
33
|
const WalletList = ({ isWalletConnectList = false, }) => {
|
|
31
34
|
var _a;
|
|
32
35
|
const { walletsFilter, signWithEmailWalletName, user, wallets, projectSettings, connectedWallets, defaultNumberOfWalletsToShow, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
33
36
|
const { error } = ErrorContext.useErrorContext();
|
|
34
37
|
const { view } = ViewContext.useViewContext();
|
|
35
38
|
const { mockedSDK } = MockContext.useMockContext();
|
|
36
|
-
const isUsingMultiWallet = Boolean(
|
|
37
|
-
const [filterValue, setFilterValue] = React.useState((_a = getFromLS.getFromLS(localStorage
|
|
39
|
+
const isUsingMultiWallet = Boolean(getFromLS.getFromLS(localStorage.AUTH_USER));
|
|
40
|
+
const [filterValue, setFilterValue] = React.useState((_a = getFromLS.getFromLS(localStorage.WALLET_PICKER_SEARCH_KEY)) !== null && _a !== void 0 ? _a : '');
|
|
38
41
|
const [footerIsVisible, setFooterIsVisibile] = React.useState(false);
|
|
39
42
|
React.useEffect(() => {
|
|
40
|
-
setToLS.setToLS(localStorage
|
|
43
|
+
setToLS.setToLS(localStorage.WALLET_PICKER_SEARCH_KEY, filterValue);
|
|
41
44
|
}, [filterValue]);
|
|
42
45
|
const { numberOfWallets, walletsList } = walletListBuilder.walletListBuilder({
|
|
43
46
|
inputList: wallets,
|
|
44
47
|
isWalletConnectList,
|
|
45
|
-
lastUsedWalletName: getFromLS.getFromLS(localStorage
|
|
48
|
+
lastUsedWalletName: getFromLS.getFromLS(localStorage.LAST_USED_WALLET),
|
|
46
49
|
numberOfWalletsToShow: defaultNumberOfWalletsToShow,
|
|
47
50
|
searchFilter: filterValue,
|
|
48
51
|
signWithEmailWalletName,
|
|
49
52
|
walletsFilter: walletsFilter,
|
|
50
53
|
});
|
|
51
|
-
const isSearchEnabled = numberOfWallets
|
|
54
|
+
const isSearchEnabled = numberOfWallets > defaultNumberOfWalletsToShow &&
|
|
55
|
+
walletsList.length !== numberOfWallets;
|
|
52
56
|
const noDefaultFooter = isUserLinkingWallet.isUserLinkingWallet(user, view, mockedSDK);
|
|
53
57
|
const walletListScrollRef = React.useRef(null);
|
|
54
58
|
/* istanbul ignore next */
|
|
@@ -66,7 +70,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
66
70
|
};
|
|
67
71
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: error }), !projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsxRuntime.jsx(Search.Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => setFilterValue(value), onClickClear: () => setFilterValue('') }))), jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('wallet-list__scroll-container', {
|
|
68
72
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
69
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.
|
|
73
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: setFilterValue }, wallet.key)))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchInstead.SearchInstead, {}))] }))] })), noDefaultFooter && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__tiny-footer', {
|
|
70
74
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
71
75
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
72
76
|
};
|
|
@@ -7,12 +7,15 @@ import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../shared/logger.js';
|
|
9
9
|
import { getFromLS } from '../../shared/utils/functions/storage/getFromLS.js';
|
|
10
|
+
import '../../config/LSSuffix.js';
|
|
10
11
|
import { setToLS } from '../../shared/utils/functions/storage/setToLS.js';
|
|
11
12
|
import '@dynamic-labs/iconic';
|
|
12
|
-
import '@dynamic-labs/
|
|
13
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
13
14
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
15
|
+
import '@dynamic-labs/utils';
|
|
14
16
|
import { WALLET_PICKER_SEARCH_KEY, AUTH_USER, LAST_USED_WALLET } from '../../utils/constants/localStorage.js';
|
|
15
17
|
import '../../utils/constants/colors.js';
|
|
18
|
+
import 'ethers';
|
|
16
19
|
import '../../shared/consts/index.js';
|
|
17
20
|
import { walletListBuilder } from '../../utils/functions/walletListBuilder/walletListBuilder.js';
|
|
18
21
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -29,7 +32,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
29
32
|
const { error } = useErrorContext();
|
|
30
33
|
const { view } = useViewContext();
|
|
31
34
|
const { mockedSDK } = useMockContext();
|
|
32
|
-
const isUsingMultiWallet = Boolean(
|
|
35
|
+
const isUsingMultiWallet = Boolean(getFromLS(AUTH_USER));
|
|
33
36
|
const [filterValue, setFilterValue] = useState((_a = getFromLS(WALLET_PICKER_SEARCH_KEY)) !== null && _a !== void 0 ? _a : '');
|
|
34
37
|
const [footerIsVisible, setFooterIsVisibile] = useState(false);
|
|
35
38
|
useEffect(() => {
|
|
@@ -44,7 +47,8 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
44
47
|
signWithEmailWalletName,
|
|
45
48
|
walletsFilter: walletsFilter,
|
|
46
49
|
});
|
|
47
|
-
const isSearchEnabled = numberOfWallets
|
|
50
|
+
const isSearchEnabled = numberOfWallets > defaultNumberOfWalletsToShow &&
|
|
51
|
+
walletsList.length !== numberOfWallets;
|
|
48
52
|
const noDefaultFooter = isUserLinkingWallet(user, view, mockedSDK);
|
|
49
53
|
const walletListScrollRef = useRef(null);
|
|
50
54
|
/* istanbul ignore next */
|
|
@@ -62,7 +66,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
62
66
|
};
|
|
63
67
|
return (jsxs(Fragment, { children: [jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsx(ErrorContainer, { children: error }), !projectSettings ? (jsx(Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsx(Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => setFilterValue(value), onClickClear: () => setFilterValue('') }))), jsxs("div", Object.assign({ className: classNames('wallet-list__scroll-container', {
|
|
64
68
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
65
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (
|
|
69
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsx(WalletListItem, { wallet: wallet, connectedWallets: connectedWallets, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: setFilterValue }, wallet.key)))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchInstead, {}))] }))] })), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
|
|
66
70
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
67
71
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
68
72
|
};
|
|
@@ -12,11 +12,14 @@ require('react');
|
|
|
12
12
|
var classNames = require('../../../utils/functions/classNames/classNames.cjs');
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
require('../../../shared/logger.cjs');
|
|
15
|
-
require('
|
|
15
|
+
require('../../../config/LSSuffix.cjs');
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
16
17
|
var getWalletListItemLabel = require('../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs');
|
|
18
|
+
require('ethers');
|
|
17
19
|
require('../../../shared/consts/index.cjs');
|
|
18
20
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
19
21
|
require('../../../utils/constants/colors.cjs');
|
|
22
|
+
require('@dynamic-labs/multi-wallet');
|
|
20
23
|
require('@dynamic-labs/utils');
|
|
21
24
|
var pixelToRem = require('../../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
22
25
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
@@ -30,12 +33,16 @@ require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs'
|
|
|
30
33
|
require('../../../config/ApiEndpoint.cjs');
|
|
31
34
|
require('@dynamic-labs/rpc-providers');
|
|
32
35
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
33
|
-
require('
|
|
36
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
37
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
38
|
+
require('../../../components/Alert/Alert.cjs');
|
|
34
39
|
var useWalletItemActions = require('../../../utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
35
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
36
40
|
require('../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
37
|
-
require('../../../components/IconButton/IconButton.cjs');
|
|
38
41
|
var ListTile = require('../../../components/ListTile/ListTile.cjs');
|
|
42
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
43
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
|
+
require('formik');
|
|
45
|
+
require('yup');
|
|
39
46
|
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
40
47
|
|
|
41
48
|
const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = ({ leading, name, onClick, trailing }) => (jsxRuntime.jsx(ListTile.ListTile, Object.assign({ leading: leading, trailing: trailing, onClick: onClick, className: 'wallet-list-item__tile' }, { children: name }))), }) => {
|
|
@@ -8,11 +8,14 @@ import 'react';
|
|
|
8
8
|
import { classNames } from '../../../utils/functions/classNames/classNames.js';
|
|
9
9
|
import '@dynamic-labs/sdk-api';
|
|
10
10
|
import '../../../shared/logger.js';
|
|
11
|
-
import '
|
|
11
|
+
import '../../../config/LSSuffix.js';
|
|
12
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
12
13
|
import { getWalletListItemLabel } from '../../../shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js';
|
|
14
|
+
import 'ethers';
|
|
13
15
|
import '../../../shared/consts/index.js';
|
|
14
16
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
15
17
|
import '../../../utils/constants/colors.js';
|
|
18
|
+
import '@dynamic-labs/multi-wallet';
|
|
16
19
|
import '@dynamic-labs/utils';
|
|
17
20
|
import { pixelToRem } from '../../../utils/functions/pixelToRem/pixelToRem.js';
|
|
18
21
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
@@ -26,12 +29,16 @@ import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
26
29
|
import '../../../config/ApiEndpoint.js';
|
|
27
30
|
import '@dynamic-labs/rpc-providers';
|
|
28
31
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
29
|
-
import '
|
|
32
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
33
|
+
import '../../../components/IconButton/IconButton.js';
|
|
34
|
+
import '../../../components/Alert/Alert.js';
|
|
30
35
|
import { useWalletItemActions } from '../../../utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
31
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
32
36
|
import '../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
33
|
-
import '../../../components/IconButton/IconButton.js';
|
|
34
37
|
import { ListTile } from '../../../components/ListTile/ListTile.js';
|
|
38
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
39
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
40
|
+
import 'formik';
|
|
41
|
+
import 'yup';
|
|
35
42
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
36
43
|
|
|
37
44
|
const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = ({ leading, name, onClick, trailing }) => (jsx(ListTile, Object.assign({ leading: leading, trailing: trailing, onClick: onClick, className: 'wallet-list-item__tile' }, { children: name }))), }) => {
|
|
@@ -2,34 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
5
|
var multiWallet = require('@dynamic-labs/multi-wallet');
|
|
6
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
7
7
|
var rpcProviders = require('@dynamic-labs/rpc-providers');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
|
+
require('../../config/LSSuffix.cjs');
|
|
10
11
|
require('@dynamic-labs/iconic');
|
|
11
12
|
require('react/jsx-runtime');
|
|
12
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
14
|
require('react');
|
|
14
15
|
var createWallet = require('../../shared/utils/functions/wallet/createWallet.cjs');
|
|
16
|
+
require('@dynamic-labs/utils');
|
|
15
17
|
require('../../utils/constants/colors.cjs');
|
|
18
|
+
require('ethers');
|
|
16
19
|
require('../../shared/consts/index.cjs');
|
|
17
20
|
|
|
18
21
|
const getEnabledChains = (chains) => chains
|
|
19
22
|
.filter(({ enabled }) => enabled)
|
|
20
|
-
.map(({ name }) => { var _a; return (_a =
|
|
23
|
+
.map(({ name }) => { var _a; return (_a = walletConnectorCore.getChainInfo(name)) === null || _a === void 0 ? void 0 : _a.symbol; })
|
|
21
24
|
.filter((chain) => Boolean(chain));
|
|
22
|
-
const createWallets = (props) =>
|
|
25
|
+
const createWallets = (props) => {
|
|
23
26
|
var _a, _b, _c, _d;
|
|
24
|
-
return
|
|
27
|
+
return multiWallet.getEnabledWallets({
|
|
25
28
|
enabledChains: getEnabledChains(props.settings.chains),
|
|
26
29
|
getSupportedWalletOpts: Object.assign(Object.assign({}, props.getSupportedWalletOpts), { chainRpcProviders: rpcProviders.ChainRpcProviders, isWalletConnectV2Enabled: ((_a = props.settings.sdk.walletConnect) === null || _a === void 0 ? void 0 : _a.v2Enabled) &&
|
|
27
30
|
((_b = props.settings.sdk.walletConnect) === null || _b === void 0 ? void 0 : _b.projectId)
|
|
28
31
|
? (_c = props.settings.sdk.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled
|
|
29
32
|
: false, walletConnectProjectId: (_d = props.settings.sdk.walletConnect) === null || _d === void 0 ? void 0 : _d.projectId }),
|
|
30
33
|
installed: props.installed,
|
|
31
|
-
})
|
|
32
|
-
}
|
|
34
|
+
}).map(createWallet.createWallet);
|
|
35
|
+
};
|
|
33
36
|
const getInstalledWallets = (settings, getSupportedWalletOpts) => createWallets({
|
|
34
37
|
getSupportedWalletOpts,
|
|
35
38
|
installed: true,
|
|
@@ -6,6 +6,6 @@ interface IChain {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const getEnabledChains: (chains: IChain[]) => ("ETH" | "FLOW" | "SOL" | "EVM" | "ALGO" | "STARK" | "ATOM" | "COSMOS")[];
|
|
8
8
|
type BaseGetSupportedWalletOpts = Omit<GetSupportedWalletsOpts, 'isWalletConnectV2Enabled' | 'walletConnectProjectId' | 'chainRpcProviders'>;
|
|
9
|
-
export declare const getInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) =>
|
|
10
|
-
export declare const getNotInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) =>
|
|
9
|
+
export declare const getInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) => import("../../shared").WalletOption[];
|
|
10
|
+
export declare const getNotInstalledWallets: (settings: ProjectSettings, getSupportedWalletOpts: BaseGetSupportedWalletOpts) => import("../../shared").WalletOption[];
|
|
11
11
|
export {};
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getEnabledWallets } from '@dynamic-labs/multi-wallet';
|
|
2
|
+
import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
|
|
3
3
|
import { ChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
|
+
import '../../config/LSSuffix.js';
|
|
6
7
|
import '@dynamic-labs/iconic';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
8
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import { createWallet } from '../../shared/utils/functions/wallet/createWallet.js';
|
|
12
|
+
import '@dynamic-labs/utils';
|
|
11
13
|
import '../../utils/constants/colors.js';
|
|
14
|
+
import 'ethers';
|
|
12
15
|
import '../../shared/consts/index.js';
|
|
13
16
|
|
|
14
17
|
const getEnabledChains = (chains) => chains
|
|
15
18
|
.filter(({ enabled }) => enabled)
|
|
16
19
|
.map(({ name }) => { var _a; return (_a = getChainInfo(name)) === null || _a === void 0 ? void 0 : _a.symbol; })
|
|
17
20
|
.filter((chain) => Boolean(chain));
|
|
18
|
-
const createWallets = (props) =>
|
|
21
|
+
const createWallets = (props) => {
|
|
19
22
|
var _a, _b, _c, _d;
|
|
20
|
-
return
|
|
23
|
+
return getEnabledWallets({
|
|
21
24
|
enabledChains: getEnabledChains(props.settings.chains),
|
|
22
25
|
getSupportedWalletOpts: Object.assign(Object.assign({}, props.getSupportedWalletOpts), { chainRpcProviders: ChainRpcProviders, isWalletConnectV2Enabled: ((_a = props.settings.sdk.walletConnect) === null || _a === void 0 ? void 0 : _a.v2Enabled) &&
|
|
23
26
|
((_b = props.settings.sdk.walletConnect) === null || _b === void 0 ? void 0 : _b.projectId)
|
|
24
27
|
? (_c = props.settings.sdk.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled
|
|
25
28
|
: false, walletConnectProjectId: (_d = props.settings.sdk.walletConnect) === null || _d === void 0 ? void 0 : _d.projectId }),
|
|
26
29
|
installed: props.installed,
|
|
27
|
-
})
|
|
28
|
-
}
|
|
30
|
+
}).map(createWallet);
|
|
31
|
+
};
|
|
29
32
|
const getInstalledWallets = (settings, getSupportedWalletOpts) => createWallets({
|
|
30
33
|
getSupportedWalletOpts,
|
|
31
34
|
installed: true,
|
|
@@ -11,11 +11,14 @@ require('react');
|
|
|
11
11
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
12
12
|
require('@dynamic-labs/sdk-api');
|
|
13
13
|
require('../../shared/logger.cjs');
|
|
14
|
+
require('../../config/LSSuffix.cjs');
|
|
14
15
|
require('@dynamic-labs/iconic');
|
|
15
|
-
require('@dynamic-labs/
|
|
16
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
17
|
+
require('@dynamic-labs/utils');
|
|
16
18
|
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('ethers');
|
|
17
20
|
require('../../shared/consts/index.cjs');
|
|
18
|
-
require('@dynamic-labs/
|
|
21
|
+
require('@dynamic-labs/multi-wallet');
|
|
19
22
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
20
23
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
21
24
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -28,14 +31,18 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
28
31
|
require('../../config/ApiEndpoint.cjs');
|
|
29
32
|
require('@dynamic-labs/rpc-providers');
|
|
30
33
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
31
|
-
require('
|
|
34
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
36
|
+
var Button = require('../../components/Button/Button.cjs');
|
|
37
|
+
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
38
|
+
require('../../components/Alert/Alert.cjs');
|
|
32
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
33
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
34
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
35
41
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
36
|
-
|
|
37
|
-
require('../../components/
|
|
38
|
-
|
|
42
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
43
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
|
+
require('formik');
|
|
45
|
+
require('yup');
|
|
39
46
|
|
|
40
47
|
const WalletSignSpinnerView = () => {
|
|
41
48
|
const { setView } = ViewContext.useViewContext();
|
|
@@ -7,11 +7,14 @@ import 'react';
|
|
|
7
7
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
8
8
|
import '@dynamic-labs/sdk-api';
|
|
9
9
|
import '../../shared/logger.js';
|
|
10
|
+
import '../../config/LSSuffix.js';
|
|
10
11
|
import '@dynamic-labs/iconic';
|
|
11
|
-
import '@dynamic-labs/
|
|
12
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
13
|
+
import '@dynamic-labs/utils';
|
|
12
14
|
import '../../utils/constants/colors.js';
|
|
15
|
+
import 'ethers';
|
|
13
16
|
import '../../shared/consts/index.js';
|
|
14
|
-
import '@dynamic-labs/
|
|
17
|
+
import '@dynamic-labs/multi-wallet';
|
|
15
18
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
16
19
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
17
20
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
@@ -24,14 +27,18 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
24
27
|
import '../../config/ApiEndpoint.js';
|
|
25
28
|
import '@dynamic-labs/rpc-providers';
|
|
26
29
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
27
|
-
import '
|
|
30
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
|
+
import '../../components/IconButton/IconButton.js';
|
|
32
|
+
import { Button } from '../../components/Button/Button.js';
|
|
33
|
+
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
34
|
+
import '../../components/Alert/Alert.js';
|
|
28
35
|
import '../../context/MockContext/MockContext.js';
|
|
29
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
30
|
-
import '@dynamic-labs/wallet-connector-core';
|
|
31
37
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
32
|
-
import
|
|
33
|
-
import '../../components/
|
|
34
|
-
import
|
|
38
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
39
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
|
+
import 'formik';
|
|
41
|
+
import 'yup';
|
|
35
42
|
|
|
36
43
|
const WalletSignSpinnerView = () => {
|
|
37
44
|
const { setView } = useViewContext();
|
|
@@ -10,14 +10,17 @@ var walletBook = require('@dynamic-labs/wallet-book');
|
|
|
10
10
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
11
11
|
var decodeJwt = require('../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
12
12
|
var logger = require('../../shared/logger.cjs');
|
|
13
|
+
require('../../config/LSSuffix.cjs');
|
|
13
14
|
require('@dynamic-labs/iconic');
|
|
14
|
-
require('@dynamic-labs/
|
|
15
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
16
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
16
17
|
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
17
18
|
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('ethers');
|
|
18
20
|
require('../../shared/consts/index.cjs');
|
|
19
21
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
20
22
|
var index = require('../../utils/functions/storeAuthToken/index.cjs');
|
|
23
|
+
require('@dynamic-labs/multi-wallet');
|
|
21
24
|
var getVerifyArgs = require('../../utils/functions/getVerifyArgs/getVerifyArgs.cjs');
|
|
22
25
|
var createUserProfile = require('../../utils/functions/createUserProfile/createUserProfile.cjs');
|
|
23
26
|
require('@dynamic-labs/sdk-api');
|
|
@@ -35,13 +38,17 @@ var isSameWalletName = require('../../utils/functions/isSameWalletName/isSameWal
|
|
|
35
38
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
36
39
|
var getSiweStatement = require('../../utils/functions/getSiweStatement/getSiweStatement.cjs');
|
|
37
40
|
var getWalletProvider = require('../../utils/functions/getWalletProvider/getWalletProvider.cjs');
|
|
38
|
-
require('
|
|
41
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
42
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
43
|
+
var Button = require('../../components/Button/Button.cjs');
|
|
44
|
+
require('../../components/Alert/Alert.cjs');
|
|
39
45
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
46
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
|
-
require('@dynamic-labs/wallet-connector-core');
|
|
42
47
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
43
|
-
|
|
44
|
-
require('../../components/
|
|
48
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
49
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
50
|
+
require('formik');
|
|
51
|
+
require('yup');
|
|
45
52
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
46
53
|
|
|
47
54
|
const WalletUsedView = () => {
|