@dynamic-labs/sdk-react-core 0.17.0-RC.2 → 0.17.0-RC.21
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 +242 -0
- package/package.cjs +11 -11
- package/package.js +11 -11
- package/package.json +18 -15
- package/src/index.cjs +35 -6
- package/src/index.d.ts +6 -2
- package/src/index.js +21 -4
- package/src/lib/Main.cjs +17 -5
- package/src/lib/Main.js +16 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +11 -2
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +11 -2
- package/src/lib/components/Alert/Alert.cjs +29 -0
- package/src/lib/components/Alert/Alert.js +25 -0
- package/src/lib/components/Alert/Alert.types.d.ts +4 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +11 -2
- package/src/lib/components/AnimatePresence/AnimatePresence.js +11 -2
- package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
- package/src/lib/components/ChainCard/ChainCard.d.ts +7 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +3 -1
- package/src/lib/components/Checkbox/Checkbox.js +3 -1
- package/src/lib/components/Divider/Divider.cjs +16 -4
- package/src/lib/components/Divider/Divider.d.ts +6 -2
- package/src/lib/components/Divider/Divider.js +16 -4
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +5 -3
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +5 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +5 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +5 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +4 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +4 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +4 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +4 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +11 -5
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +11 -5
- package/src/lib/components/Input/Input.cjs +13 -6
- package/src/lib/components/Input/Input.js +14 -7
- package/src/lib/components/Input/Input.types.d.ts +4 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +3 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +3 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +9 -3
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +3 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +9 -3
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +11 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +11 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +17 -8
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.d.ts +2 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +17 -8
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +13 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.js +13 -4
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.d.ts +4 -4
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +2 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +12 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +12 -3
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +3 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +16 -7
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +16 -7
- package/src/lib/components/OverlayCard/OverlayCard.cjs +11 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +11 -2
- 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 +3 -1
- package/src/lib/components/Select/Select.js +3 -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 +42 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +10 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +38 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +40 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +17 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +36 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +25 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +21 -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 +3 -1
- package/src/lib/components/ShadowDOM/utils.js +3 -1
- package/src/lib/components/Spinner/spinner.cjs +3 -1
- package/src/lib/components/Spinner/spinner.js +3 -1
- package/src/lib/components/Toolkit/Toolkit.cjs +4 -1
- package/src/lib/components/Toolkit/Toolkit.js +4 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +3 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +11 -2
- package/src/lib/components/Tooltip/Tooltip.js +11 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +40 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +17 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +36 -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 +55 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +12 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +51 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +11 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +11 -2
- package/src/lib/components/UserAddress/UserAddress.cjs +7 -7
- package/src/lib/components/UserAddress/UserAddress.js +8 -8
- package/src/lib/components/UserProfile/UserProfile.cjs +16 -8
- package/src/lib/components/UserProfile/UserProfile.js +12 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +12 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +12 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +13 -4
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +13 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +13 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +13 -4
- package/src/lib/components/WalletOrSocialMagicIcon/WalletOrSocialMagicIcon.cjs +62 -0
- package/src/lib/components/WalletOrSocialMagicIcon/WalletOrSocialMagicIcon.d.ts +10 -0
- package/src/lib/components/WalletOrSocialMagicIcon/WalletOrSocialMagicIcon.js +58 -0
- package/src/lib/components/WalletOrSocialMagicIcon/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +3 -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 +89 -31
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +21 -11
- package/src/lib/context/DynamicContext/DynamicContext.js +84 -26
- package/src/lib/context/DynamicContext/helpers.cjs +3 -1
- package/src/lib/context/DynamicContext/helpers.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +4 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +4 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +84 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.d.ts +11 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +80 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.types.d.ts +4 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +11 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +11 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +4 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +4 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +3 -1
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +3 -1
- package/src/lib/context/DynamicContext/validators.cjs +3 -1
- package/src/lib/context/DynamicContext/validators.js +3 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +69 -0
- package/src/lib/context/FundingContext/FundingContext.d.ts +14 -0
- package/src/lib/context/FundingContext/FundingContext.js +63 -0
- package/src/lib/context/FundingContext/index.d.ts +1 -0
- package/src/lib/context/MockContext/MockContext.cjs +3 -1
- package/src/lib/context/MockContext/MockContext.js +3 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +11 -2
- package/src/lib/context/QrCodeContext/QrCodeContext.js +11 -2
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +72 -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 +67 -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 +107 -22
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +5 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +107 -22
- package/src/lib/context/ThemeContext/themesData.cjs +21 -19
- package/src/lib/context/ThemeContext/themesData.d.ts +3 -3
- package/src/lib/context/ThemeContext/themesData.js +21 -19
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/data/api.cjs +41 -17
- package/src/lib/data/api.d.ts +10 -3
- package/src/lib/data/api.js +28 -5
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +13 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +13 -4
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +12 -3
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +12 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +12 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +12 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +13 -4
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +12 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +13 -5
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +11 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +15 -6
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +15 -6
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +25 -8
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +25 -8
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +65 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +10 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +61 -0
- package/src/lib/modals/SendBalanceModal/index.d.ts +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +19 -10
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +19 -10
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +34 -99
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +36 -101
- 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/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 -4
- 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 +5 -10
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +3 -8
- package/src/lib/shared/utils/functions/index.d.ts +3 -0
- 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 +2 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +35 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +17 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +31 -0
- package/src/lib/shared/utils/hooks/useIsMounted/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.cjs +18 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useIsMounted/useIsMounted.js +14 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +3 -1
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +3 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +3 -1
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/functions/generateMessages/index.cjs +4 -3
- package/src/lib/utils/functions/generateMessages/index.js +2 -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/getDynamicLayoutData/getDynamicLayoutData.cjs +3 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +3 -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/getNetwork/getNetwork.cjs +1 -6
- package/src/lib/utils/functions/getNetwork/getNetwork.d.ts +1 -1
- package/src/lib/utils/functions/getNetwork/getNetwork.js +1 -6
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +29 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +25 -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/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs +1 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -2
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.js +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +6 -3
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +4 -1
- 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/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.cjs +16 -1
- package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.d.ts +6 -0
- package/src/lib/utils/functions/isProgrammableNetworkSwitchSupported/isProgrammableNetworkSwitchSupported.js +16 -1
- 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/isSupportedNetwork/isSupportedNetwork.cjs +6 -1
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.d.ts +1 -1
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +6 -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.d.ts +2 -0
- 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/walletListBuilder/walletListBuilder.cjs +6 -7
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -5
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +4 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +3 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +3 -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/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 +64 -8
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +8 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +65 -9
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +5 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +5 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +7 -3
- 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/useConfirmationModal/useConfirmationModal.cjs +6 -1
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +6 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +6 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +4 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +3 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +3 -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 +4 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +53 -31
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts +5 -5
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +53 -31
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +4 -2
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +5 -2
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +4 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +3 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +3 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +25 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +25 -2
- 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 +3 -1
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +3 -1
- package/src/lib/utils/hooks/useMutation/useMutation.cjs +4 -4
- package/src/lib/utils/hooks/useMutation/useMutation.js +1 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +8 -5
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +2 -2
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +10 -7
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +7 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +7 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +7 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +6 -4
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +5 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +3 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +3 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +27 -17
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +23 -13
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +37 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +33 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +31 -9
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +29 -7
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +92 -55
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +6 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +91 -54
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +17 -15
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +15 -13
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +49 -14
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +49 -14
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +28 -34
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +6 -6
- package/src/lib/utils/hooks/useWallets/useWallets.js +29 -35
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +12 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +12 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +18 -9
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +18 -9
- package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.cjs → OnboardingUserDataForm/OnboardingUserDataForm.cjs} +22 -11
- package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.d.ts → OnboardingUserDataForm/OnboardingUserDataForm.d.ts} +1 -1
- package/src/lib/views/CollectUserDataView/{UserDataForm/UserDataForm.js → OnboardingUserDataForm/OnboardingUserDataForm.js} +22 -11
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +14 -5
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +14 -5
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +3 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +3 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +14 -5
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +14 -5
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +15 -6
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +14 -5
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +13 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.js +13 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +20 -6
- package/src/lib/views/EmailVerification/EmailVerification.js +20 -6
- 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 +4 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +12 -3
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +12 -3
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +15 -9
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +14 -8
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +28 -14
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +28 -14
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +37 -10
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +37 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +14 -5
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +14 -5
- package/src/lib/views/NoAccess/NoAccess.cjs +93 -0
- package/src/lib/views/NoAccess/NoAccess.d.ts +2 -0
- package/src/lib/views/NoAccess/NoAccess.js +89 -0
- package/src/lib/views/NoAccess/index.d.ts +1 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +11 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +11 -3
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +12 -3
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +12 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +14 -6
- package/src/lib/views/PendingConnectView/PendingConnectView.js +13 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +15 -7
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +15 -7
- 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 +13 -4
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +12 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +12 -4
- package/src/lib/views/QrCodeView/QrCodeView.js +12 -4
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +110 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +13 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +106 -0
- package/src/lib/views/SendBalanceView/index.d.ts +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +16 -12
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +16 -12
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +59 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +55 -0
- package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +93 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +14 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +89 -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 +90 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.d.ts +18 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +86 -0
- package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +12 -3
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +12 -3
- package/src/lib/views/WalletList/WalletList.cjs +4 -2
- package/src/lib/views/WalletList/WalletList.js +4 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +11 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +11 -3
- package/src/lib/views/WalletList/data.cjs +10 -13
- package/src/lib/views/WalletList/data.d.ts +3 -4
- package/src/lib/views/WalletList/data.js +11 -13
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +13 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +13 -5
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +14 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.js +12 -4
- package/src/lib/views/index.d.ts +1 -1
- package/src/lib/views/viewToComponentMap.cjs +5 -3
- package/src/lib/views/viewToComponentMap.js +5 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +12 -3
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +17 -9
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +17 -9
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +78 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +74 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +13 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +17 -30
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +18 -31
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +16 -6
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +16 -6
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +17 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +16 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +13 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +48 -27
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +50 -29
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +18 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +18 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +12 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +12 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +15 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +15 -6
- 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 +15 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +15 -8
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +13 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +12 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +12 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +13 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +31 -21
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +2 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +31 -21
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +4 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +4 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +41 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +42 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +13 -12
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +14 -13
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +4 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +4 -0
- 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.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +22 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +18 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +45 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +41 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +13 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +59 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +55 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +17 -36
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +18 -37
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +43 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.d.ts +7 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +39 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +69 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +65 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +59 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +55 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +48 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +44 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +66 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +62 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -33
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +3 -31
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +15 -9
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +16 -10
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +13 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +16 -9
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +16 -9
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +21 -9
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +20 -8
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +13 -4
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +13 -4
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +18 -9
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +18 -9
- 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/FundingWidget.cjs +10 -0
- package/src/lib/widgets/FundingWidget/FundingWidget.d.ts +2 -0
- package/src/lib/widgets/FundingWidget/FundingWidget.js +6 -0
- package/src/lib/widgets/FundingWidget/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +62 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.d.ts +5 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +57 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/index.d.ts +1 -0
- 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/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.cjs +0 -12
- package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.d.ts +0 -2
- package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/getMagicLinkApiKeyFromProviders.js +0 -8
- package/src/lib/utils/hooks/useWallets/utils/getMagicLinkApiKeyFromProviders/index.d.ts +0 -1
- package/src/lib/utils/hooks/useWallets/utils/index.d.ts +0 -1
- package/src/lib/views/CollectUserDataView/UserDataForm/index.d.ts +0 -1
- package/src/lib/views/WalletNoAccess/WalletNoAccess.cjs +0 -85
- package/src/lib/views/WalletNoAccess/WalletNoAccess.d.ts +0 -2
- package/src/lib/views/WalletNoAccess/WalletNoAccess.js +0 -81
- package/src/lib/views/WalletNoAccess/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +0 -43
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +0 -39
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.types.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -64
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -60
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +0 -55
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.d.ts +0 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +0 -51
- 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/data/api.cjs
CHANGED
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../_virtual/_tslib.cjs');
|
|
6
|
-
var
|
|
6
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
7
|
var sdkApi$1 = require('@dynamic-labs/sdk-api');
|
|
8
8
|
var version = require('../../version.cjs');
|
|
9
9
|
var ApiEndpoint = require('../config/ApiEndpoint.cjs');
|
|
10
10
|
var logger = require('../shared/logger.cjs');
|
|
11
11
|
require('@dynamic-labs/iconic');
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
13
|
require('react/jsx-runtime');
|
|
13
14
|
require('../context/ViewContext/ViewContext.cjs');
|
|
14
15
|
require('react');
|
|
15
16
|
require('../utils/constants/colors.cjs');
|
|
17
|
+
require('ethers');
|
|
16
18
|
require('../shared/consts/index.cjs');
|
|
17
19
|
|
|
18
20
|
const sdkApi = (jwt) => {
|
|
@@ -53,7 +55,7 @@ const createEmailVerification = ({ email, environmentId, }) => _tslib.__awaiter(
|
|
|
53
55
|
catch (e) {
|
|
54
56
|
const data = yield e.json();
|
|
55
57
|
logger.logger.error(data.error);
|
|
56
|
-
throw new
|
|
58
|
+
throw new utils.EmailVerificationError(data.code);
|
|
57
59
|
}
|
|
58
60
|
});
|
|
59
61
|
const signInWithEmailVerification = ({ verificationToken, verificationUUID, environmentId, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -70,7 +72,10 @@ const signInWithEmailVerification = ({ verificationToken, verificationUUID, envi
|
|
|
70
72
|
catch (e) {
|
|
71
73
|
const data = yield e.json();
|
|
72
74
|
logger.logger.error(data.error);
|
|
73
|
-
|
|
75
|
+
if (data.error.code === 'missing_from_list') {
|
|
76
|
+
throw new utils.NoAccessError({ email: data.payload.email });
|
|
77
|
+
}
|
|
78
|
+
throw new utils.EmailVerificationError(data.code);
|
|
74
79
|
}
|
|
75
80
|
});
|
|
76
81
|
const retryEmailVerification = ({ email, environmentId, verificationUUID, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -87,7 +92,7 @@ const retryEmailVerification = ({ email, environmentId, verificationUUID, }) =>
|
|
|
87
92
|
catch (e) {
|
|
88
93
|
const data = yield e.json();
|
|
89
94
|
logger.logger.error(data.error);
|
|
90
|
-
throw new
|
|
95
|
+
throw new utils.EmailVerificationError(data.code);
|
|
91
96
|
}
|
|
92
97
|
});
|
|
93
98
|
const verifyEmail = ({ verificationToken, verificationUUID, environmentId, }, userJwt) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -104,7 +109,7 @@ const verifyEmail = ({ verificationToken, verificationUUID, environmentId, }, us
|
|
|
104
109
|
catch (e) {
|
|
105
110
|
const data = yield e.json();
|
|
106
111
|
logger.logger.error(data.error);
|
|
107
|
-
throw new
|
|
112
|
+
throw new utils.EmailVerificationError(data.code);
|
|
108
113
|
}
|
|
109
114
|
});
|
|
110
115
|
const revokeSession = ({ environmentId, sessionId, }, userJwt) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -118,10 +123,11 @@ const revokeSession = ({ environmentId, sessionId, }, userJwt) => _tslib.__await
|
|
|
118
123
|
logger.logger.error(Error(body.error.message));
|
|
119
124
|
}
|
|
120
125
|
});
|
|
121
|
-
const linkWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }, userJwt) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
126
|
+
const linkWallet = (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }, userJwt) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
122
127
|
const verifyRequest = sdkApi$1.VerifyRequestFromJSON({
|
|
123
128
|
chain,
|
|
124
129
|
messageToSign,
|
|
130
|
+
network,
|
|
125
131
|
publicWalletAddress,
|
|
126
132
|
signedMessage,
|
|
127
133
|
walletName,
|
|
@@ -139,7 +145,7 @@ const linkWallet = (environmentId, { messageToSign, signedMessage, publicWalletA
|
|
|
139
145
|
const data = yield e.json();
|
|
140
146
|
if (data.code === 'reassign_wallet_confirm' ||
|
|
141
147
|
data.code === 'reassign_wallet_error') {
|
|
142
|
-
throw new
|
|
148
|
+
throw new utils.WalletUsedError(data.code);
|
|
143
149
|
}
|
|
144
150
|
return undefined;
|
|
145
151
|
}
|
|
@@ -184,21 +190,21 @@ const transferWallet = (environmentId, { messageToSign, signedMessage, publicWal
|
|
|
184
190
|
const mapChainToChainEnum = (chain) => {
|
|
185
191
|
const foundChain = Object.values(sdkApi$1.ChainEnum).find((value) => value === chain);
|
|
186
192
|
if (!foundChain) {
|
|
187
|
-
throw new
|
|
193
|
+
throw new utils.DynamicError(`Invalid chain ${chain}`);
|
|
188
194
|
}
|
|
189
195
|
return foundChain;
|
|
190
196
|
};
|
|
191
197
|
const mapProviderToProviderEnum = (provider) => {
|
|
192
198
|
const foundProvider = Object.values(sdkApi$1.WalletProviderEnum).find((value) => value === provider);
|
|
193
199
|
if (!foundProvider) {
|
|
194
|
-
throw new
|
|
200
|
+
throw new utils.DynamicError(`Invalid provider ${provider}`);
|
|
195
201
|
}
|
|
196
202
|
return foundProvider;
|
|
197
203
|
};
|
|
198
204
|
const mapAuthModeTypeToEnum = (authMode) => {
|
|
199
205
|
const found = Object.values(sdkApi$1.AuthModeEnum).find((value) => value === authMode);
|
|
200
206
|
if (!found) {
|
|
201
|
-
throw new
|
|
207
|
+
throw new utils.DynamicError(`Invalid authMode ${authMode}`);
|
|
202
208
|
}
|
|
203
209
|
return found;
|
|
204
210
|
};
|
|
@@ -221,11 +227,13 @@ const createVisit = ({ authMode, chain, environmentId, walletProvider, publicWal
|
|
|
221
227
|
logger.logger.error(error);
|
|
222
228
|
}
|
|
223
229
|
});
|
|
224
|
-
const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
230
|
+
const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, network, oauth, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
225
231
|
const verifyRequest = sdkApi$1.VerifyRequestFromJSON({
|
|
226
232
|
captchaToken,
|
|
227
233
|
chain,
|
|
228
234
|
messageToSign,
|
|
235
|
+
network,
|
|
236
|
+
oauth,
|
|
229
237
|
publicWalletAddress,
|
|
230
238
|
signedMessage,
|
|
231
239
|
walletName,
|
|
@@ -242,13 +250,15 @@ const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalle
|
|
|
242
250
|
logger.logger.error(e);
|
|
243
251
|
const data = yield e.json();
|
|
244
252
|
if (data.code === 'wallet_not_deployed') {
|
|
245
|
-
throw new
|
|
253
|
+
throw new utils.WalletNotDeployedError();
|
|
246
254
|
}
|
|
247
255
|
if (data.error.code === 'chainalysis_blocked_wallet') {
|
|
248
|
-
throw new
|
|
256
|
+
throw new utils.ChainalysisError(data.payload.walletPublicKey);
|
|
249
257
|
}
|
|
250
258
|
if (data.error.code === 'missing_from_list') {
|
|
251
|
-
throw new
|
|
259
|
+
throw new utils.NoAccessError({
|
|
260
|
+
walletPublicKey: data.payload.walletPublicKey,
|
|
261
|
+
});
|
|
252
262
|
}
|
|
253
263
|
return undefined;
|
|
254
264
|
}
|
|
@@ -280,7 +290,7 @@ const fetchProjectSettings = (environmentId) => _tslib.__awaiter(void 0, void 0,
|
|
|
280
290
|
const updateUserProfileFields = (jwt, environmentId, fields) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
281
291
|
try {
|
|
282
292
|
if (!jwt)
|
|
283
|
-
throw new
|
|
293
|
+
throw new utils.DynamicError('User not authenticated');
|
|
284
294
|
const res = yield sdkApi(jwt).updateSelf({
|
|
285
295
|
environmentId,
|
|
286
296
|
userFields: fields,
|
|
@@ -292,10 +302,10 @@ const updateUserProfileFields = (jwt, environmentId, fields) => _tslib.__awaiter
|
|
|
292
302
|
if (e instanceof Response) {
|
|
293
303
|
const error = yield e.json();
|
|
294
304
|
if (error.code === 'email_already_exists') {
|
|
295
|
-
throw new
|
|
305
|
+
throw new utils.EmailAlreadyExistsError();
|
|
296
306
|
}
|
|
297
307
|
else if (error.code === 'username_already_exists') {
|
|
298
|
-
throw new
|
|
308
|
+
throw new utils.UsernameAlreadyExistsError();
|
|
299
309
|
}
|
|
300
310
|
}
|
|
301
311
|
throw e;
|
|
@@ -331,6 +341,19 @@ const unlinkOAuth = ({ environmentId, verifiedCrentialId, }, userJwt) => _tslib.
|
|
|
331
341
|
catch (e) {
|
|
332
342
|
return undefined;
|
|
333
343
|
}
|
|
344
|
+
});
|
|
345
|
+
const getOnrampProviders = ({ chain, environmentId, networkId, token, walletAddress, }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
346
|
+
const { onramps } = yield sdkApi().getSupportedOnramps({
|
|
347
|
+
chain,
|
|
348
|
+
environmentId,
|
|
349
|
+
networkId: networkId ? String(networkId) : undefined,
|
|
350
|
+
token,
|
|
351
|
+
walletAddress,
|
|
352
|
+
});
|
|
353
|
+
if (!onramps || onramps.length === 0) {
|
|
354
|
+
throw new Error('No onramps');
|
|
355
|
+
}
|
|
356
|
+
return onramps;
|
|
334
357
|
});
|
|
335
358
|
|
|
336
359
|
exports.createEmailVerification = createEmailVerification;
|
|
@@ -338,6 +361,7 @@ exports.createVisit = createVisit;
|
|
|
338
361
|
exports.fetchNetworkSettings = fetchNetworkSettings;
|
|
339
362
|
exports.fetchNonce = fetchNonce;
|
|
340
363
|
exports.fetchProjectSettings = fetchProjectSettings;
|
|
364
|
+
exports.getOnrampProviders = getOnrampProviders;
|
|
341
365
|
exports.linkWallet = linkWallet;
|
|
342
366
|
exports.mapAuthModeTypeToEnum = mapAuthModeTypeToEnum;
|
|
343
367
|
exports.mapChainToChainEnum = mapChainToChainEnum;
|
package/src/lib/data/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSettings, UserFields, NetworkConfigurationResponse, ChainEnum, UpdateSelfResponse, WalletProviderEnum, AuthModeEnum, EmailVerificationCreateResponse, VerifyResponse, OauthRequest, ProviderEnum } from '@dynamic-labs/sdk-api';
|
|
1
|
+
import { ProjectSettings, UserFields, NetworkConfigurationResponse, ChainEnum, UpdateSelfResponse, WalletProviderEnum, AuthModeEnum, EmailVerificationCreateResponse, VerifyResponse, OauthRequest, ProviderEnum, OnrampConfiguration } from '@dynamic-labs/sdk-api';
|
|
2
2
|
import { AuthModeType, VerifyWallet } from '../shared/types';
|
|
3
3
|
export declare const fetchNonce: (environmentId: string) => Promise<string | undefined>;
|
|
4
4
|
export declare const createEmailVerification: ({ email, environmentId, }: {
|
|
@@ -24,7 +24,7 @@ export declare const revokeSession: ({ environmentId, sessionId, }: {
|
|
|
24
24
|
environmentId: string;
|
|
25
25
|
sessionId: string;
|
|
26
26
|
}, userJwt: string) => Promise<void>;
|
|
27
|
-
export declare const linkWallet: (environmentId: string, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }: VerifyWallet, userJwt: string) => Promise<string | undefined>;
|
|
27
|
+
export declare const linkWallet: (environmentId: string, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }: VerifyWallet, userJwt: string) => Promise<string | undefined>;
|
|
28
28
|
export declare const unlinkWallet: ({ environmentId, primaryWalletId, walletId, }: {
|
|
29
29
|
environmentId: string;
|
|
30
30
|
primaryWalletId: string | undefined;
|
|
@@ -42,7 +42,7 @@ export declare const createVisit: ({ authMode, chain, environmentId, walletProvi
|
|
|
42
42
|
walletName: string;
|
|
43
43
|
walletProvider: string;
|
|
44
44
|
}) => Promise<void | undefined>;
|
|
45
|
-
export declare const verifyWallet: (environmentId: string, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, }: VerifyWallet) => Promise<string | undefined>;
|
|
45
|
+
export declare const verifyWallet: (environmentId: string, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, network, oauth, }: VerifyWallet) => Promise<string | undefined>;
|
|
46
46
|
export declare const fetchNetworkSettings: (environmentId: string) => Promise<NetworkConfigurationResponse[] | undefined>;
|
|
47
47
|
export declare const fetchProjectSettings: (environmentId: string) => Promise<ProjectSettings | undefined>;
|
|
48
48
|
export declare const updateUserProfileFields: (jwt: string | undefined, environmentId: string, fields: UserFields) => Promise<UpdateSelfResponse>;
|
|
@@ -51,3 +51,10 @@ export declare const unlinkOAuth: ({ environmentId, verifiedCrentialId, }: {
|
|
|
51
51
|
environmentId: string;
|
|
52
52
|
verifiedCrentialId: string;
|
|
53
53
|
}, userJwt: string) => Promise<string | undefined>;
|
|
54
|
+
export declare const getOnrampProviders: ({ chain, environmentId, networkId, token, walletAddress, }: {
|
|
55
|
+
chain: string;
|
|
56
|
+
environmentId: string;
|
|
57
|
+
networkId?: string | number | undefined;
|
|
58
|
+
token?: string | undefined;
|
|
59
|
+
walletAddress: string;
|
|
60
|
+
}) => Promise<OnrampConfiguration[]>;
|
package/src/lib/data/api.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
2
|
-
import { EmailVerificationError, DynamicError, EmailAlreadyExistsError, UsernameAlreadyExistsError, WalletUsedError, WalletNotDeployedError, ChainalysisError
|
|
2
|
+
import { NoAccessError, EmailVerificationError, DynamicError, EmailAlreadyExistsError, UsernameAlreadyExistsError, WalletUsedError, WalletNotDeployedError, ChainalysisError } from '@dynamic-labs/utils';
|
|
3
3
|
import { SDKApi, Configuration, VerifyRequestFromJSON, ChainEnum, WalletProviderEnum, AuthModeEnum } from '@dynamic-labs/sdk-api';
|
|
4
4
|
import { VERSION, API_VERSION } from '../../version.js';
|
|
5
5
|
import ApiEndpoint from '../config/ApiEndpoint.js';
|
|
6
6
|
import { logger } from '../shared/logger.js';
|
|
7
7
|
import '@dynamic-labs/iconic';
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
9
10
|
import '../context/ViewContext/ViewContext.js';
|
|
10
11
|
import 'react';
|
|
11
12
|
import '../utils/constants/colors.js';
|
|
13
|
+
import 'ethers';
|
|
12
14
|
import '../shared/consts/index.js';
|
|
13
15
|
|
|
14
16
|
const sdkApi = (jwt) => {
|
|
@@ -66,6 +68,9 @@ const signInWithEmailVerification = ({ verificationToken, verificationUUID, envi
|
|
|
66
68
|
catch (e) {
|
|
67
69
|
const data = yield e.json();
|
|
68
70
|
logger.error(data.error);
|
|
71
|
+
if (data.error.code === 'missing_from_list') {
|
|
72
|
+
throw new NoAccessError({ email: data.payload.email });
|
|
73
|
+
}
|
|
69
74
|
throw new EmailVerificationError(data.code);
|
|
70
75
|
}
|
|
71
76
|
});
|
|
@@ -114,10 +119,11 @@ const revokeSession = ({ environmentId, sessionId, }, userJwt) => __awaiter(void
|
|
|
114
119
|
logger.error(Error(body.error.message));
|
|
115
120
|
}
|
|
116
121
|
});
|
|
117
|
-
const linkWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }, userJwt) => __awaiter(void 0, void 0, void 0, function* () {
|
|
122
|
+
const linkWallet = (environmentId, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, }, userJwt) => __awaiter(void 0, void 0, void 0, function* () {
|
|
118
123
|
const verifyRequest = VerifyRequestFromJSON({
|
|
119
124
|
chain,
|
|
120
125
|
messageToSign,
|
|
126
|
+
network,
|
|
121
127
|
publicWalletAddress,
|
|
122
128
|
signedMessage,
|
|
123
129
|
walletName,
|
|
@@ -217,11 +223,13 @@ const createVisit = ({ authMode, chain, environmentId, walletProvider, publicWal
|
|
|
217
223
|
logger.error(error);
|
|
218
224
|
}
|
|
219
225
|
});
|
|
220
|
-
const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
226
|
+
const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, network, oauth, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
221
227
|
const verifyRequest = VerifyRequestFromJSON({
|
|
222
228
|
captchaToken,
|
|
223
229
|
chain,
|
|
224
230
|
messageToSign,
|
|
231
|
+
network,
|
|
232
|
+
oauth,
|
|
225
233
|
publicWalletAddress,
|
|
226
234
|
signedMessage,
|
|
227
235
|
walletName,
|
|
@@ -244,7 +252,9 @@ const verifyWallet = (environmentId, { messageToSign, signedMessage, publicWalle
|
|
|
244
252
|
throw new ChainalysisError(data.payload.walletPublicKey);
|
|
245
253
|
}
|
|
246
254
|
if (data.error.code === 'missing_from_list') {
|
|
247
|
-
throw new NoAccessError(
|
|
255
|
+
throw new NoAccessError({
|
|
256
|
+
walletPublicKey: data.payload.walletPublicKey,
|
|
257
|
+
});
|
|
248
258
|
}
|
|
249
259
|
return undefined;
|
|
250
260
|
}
|
|
@@ -327,6 +337,19 @@ const unlinkOAuth = ({ environmentId, verifiedCrentialId, }, userJwt) => __await
|
|
|
327
337
|
catch (e) {
|
|
328
338
|
return undefined;
|
|
329
339
|
}
|
|
340
|
+
});
|
|
341
|
+
const getOnrampProviders = ({ chain, environmentId, networkId, token, walletAddress, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
342
|
+
const { onramps } = yield sdkApi().getSupportedOnramps({
|
|
343
|
+
chain,
|
|
344
|
+
environmentId,
|
|
345
|
+
networkId: networkId ? String(networkId) : undefined,
|
|
346
|
+
token,
|
|
347
|
+
walletAddress,
|
|
348
|
+
});
|
|
349
|
+
if (!onramps || onramps.length === 0) {
|
|
350
|
+
throw new Error('No onramps');
|
|
351
|
+
}
|
|
352
|
+
return onramps;
|
|
330
353
|
});
|
|
331
354
|
|
|
332
|
-
export { createEmailVerification, createVisit, fetchNetworkSettings, fetchNonce, fetchProjectSettings, linkWallet, mapAuthModeTypeToEnum, mapChainToChainEnum, mapProviderToProviderEnum, retryEmailVerification, revokeSession, signInWithEmailVerification, transferWallet, unlinkOAuth, unlinkWallet, updateUserProfileFields, verifyEmail, verifyOAuth, verifyWallet };
|
|
355
|
+
export { createEmailVerification, createVisit, fetchNetworkSettings, fetchNonce, fetchProjectSettings, getOnrampProviders, linkWallet, mapAuthModeTypeToEnum, mapChainToChainEnum, mapProviderToProviderEnum, retryEmailVerification, revokeSession, signInWithEmailVerification, transferWallet, unlinkOAuth, unlinkWallet, updateUserProfileFields, verifyEmail, verifyOAuth, verifyWallet };
|
|
@@ -15,24 +15,33 @@ var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
|
15
15
|
require('@dynamic-labs/sdk-api');
|
|
16
16
|
require('../../shared/logger.cjs');
|
|
17
17
|
require('@dynamic-labs/iconic');
|
|
18
|
-
require('@dynamic-labs/
|
|
18
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
19
|
+
require('@dynamic-labs/utils');
|
|
19
20
|
require('../../utils/constants/colors.cjs');
|
|
21
|
+
require('ethers');
|
|
20
22
|
require('../../shared/consts/index.cjs');
|
|
21
23
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
24
|
+
require('@dynamic-labs/multi-wallet');
|
|
22
25
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
26
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
24
27
|
require('react-dom');
|
|
25
28
|
require('react-focus-lock');
|
|
26
29
|
require('../../config/ApiEndpoint.cjs');
|
|
30
|
+
require('@dynamic-labs/rpc-providers');
|
|
27
31
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
28
|
-
require('
|
|
32
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
34
|
+
require('@dynamic-labs/wallet-book');
|
|
35
|
+
var AnimatePresence = require('../../components/AnimatePresence/AnimatePresence.cjs');
|
|
36
|
+
require('../../components/Alert/Alert.cjs');
|
|
29
37
|
var MockContext = require('../../context/MockContext/MockContext.cjs');
|
|
30
38
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
31
39
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
32
|
-
require('../../components/IconButton/IconButton.cjs');
|
|
33
40
|
var VerticalAccordion = require('../../components/Accordion/components/VerticalAccordion/VerticalAccordion.cjs');
|
|
34
41
|
var AccordionItem = require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
35
|
-
|
|
42
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
43
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
|
+
require('../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
36
45
|
var isUserLinkingWallet = require('../../shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs');
|
|
37
46
|
require('../../components/OverlayCard/OverlayCard.context.cjs');
|
|
38
47
|
var OverlayCardTarget = require('../../components/OverlayCard/OverlayCardTarget.cjs');
|
|
@@ -11,24 +11,33 @@ import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
|
11
11
|
import '@dynamic-labs/sdk-api';
|
|
12
12
|
import '../../shared/logger.js';
|
|
13
13
|
import '@dynamic-labs/iconic';
|
|
14
|
-
import '@dynamic-labs/
|
|
14
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
15
|
+
import '@dynamic-labs/utils';
|
|
15
16
|
import '../../utils/constants/colors.js';
|
|
17
|
+
import 'ethers';
|
|
16
18
|
import '../../shared/consts/index.js';
|
|
17
19
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
20
|
+
import '@dynamic-labs/multi-wallet';
|
|
18
21
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
22
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
20
23
|
import 'react-dom';
|
|
21
24
|
import 'react-focus-lock';
|
|
22
25
|
import '../../config/ApiEndpoint.js';
|
|
26
|
+
import '@dynamic-labs/rpc-providers';
|
|
23
27
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
|
-
import '
|
|
28
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../components/IconButton/IconButton.js';
|
|
30
|
+
import '@dynamic-labs/wallet-book';
|
|
31
|
+
import { AnimatePresence } from '../../components/AnimatePresence/AnimatePresence.js';
|
|
32
|
+
import '../../components/Alert/Alert.js';
|
|
25
33
|
import { useMockContext } from '../../context/MockContext/MockContext.js';
|
|
26
34
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
27
35
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
28
|
-
import '../../components/IconButton/IconButton.js';
|
|
29
36
|
import { VerticalAccordion } from '../../components/Accordion/components/VerticalAccordion/VerticalAccordion.js';
|
|
30
37
|
import { AccordionItem } from '../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
31
|
-
import
|
|
38
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
39
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
|
+
import '../../components/SendBalanceForm/SendBalanceForm.js';
|
|
32
41
|
import { isUserLinkingWallet } from '../../shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js';
|
|
33
42
|
import '../../components/OverlayCard/OverlayCard.context.js';
|
|
34
43
|
import { OverlayCardTarget } from '../../components/OverlayCard/OverlayCardTarget.js';
|
|
@@ -9,15 +9,18 @@ var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../shared/logger.cjs');
|
|
11
11
|
require('@dynamic-labs/iconic');
|
|
12
|
-
require('@dynamic-labs/
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
13
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
14
14
|
var arrowDown = require('../../../shared/assets/arrow-down.cjs');
|
|
15
|
+
require('@dynamic-labs/utils');
|
|
15
16
|
require('../../../utils/constants/colors.cjs');
|
|
17
|
+
require('ethers');
|
|
16
18
|
require('../../../shared/consts/index.cjs');
|
|
17
19
|
var Skeleton = require('../../../components/Skeleton/Skeleton.cjs');
|
|
18
20
|
var classNames = require('../../../utils/functions/classNames/classNames.cjs');
|
|
19
21
|
var Typography = require('../../../components/Typography/Typography.cjs');
|
|
20
22
|
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
23
|
+
require('@dynamic-labs/multi-wallet');
|
|
21
24
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
22
25
|
require('react-dom');
|
|
23
26
|
require('react-focus-lock');
|
|
@@ -25,12 +28,18 @@ require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
25
28
|
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
26
29
|
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
27
30
|
require('../../../config/ApiEndpoint.cjs');
|
|
31
|
+
require('@dynamic-labs/rpc-providers');
|
|
28
32
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
29
|
-
require('
|
|
33
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
35
|
+
require('@dynamic-labs/wallet-book');
|
|
36
|
+
require('../../../components/Alert/Alert.cjs');
|
|
30
37
|
require('../../../context/MockContext/MockContext.cjs');
|
|
31
38
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
32
39
|
require('../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
33
|
-
require('../../../components/
|
|
40
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
41
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
34
43
|
|
|
35
44
|
const Footer = ({ heading, icon, projectSettings }) => {
|
|
36
45
|
const { theme } = ThemeContext.useThemeContext();
|
|
@@ -5,15 +5,18 @@ import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../../shared/logger.js';
|
|
7
7
|
import '@dynamic-labs/iconic';
|
|
8
|
-
import '@dynamic-labs/
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
9
9
|
import '../../../context/ViewContext/ViewContext.js';
|
|
10
10
|
import { ReactComponent as SvgArrowDown } from '../../../shared/assets/arrow-down.js';
|
|
11
|
+
import '@dynamic-labs/utils';
|
|
11
12
|
import '../../../utils/constants/colors.js';
|
|
13
|
+
import 'ethers';
|
|
12
14
|
import '../../../shared/consts/index.js';
|
|
13
15
|
import { Skeleton } from '../../../components/Skeleton/Skeleton.js';
|
|
14
16
|
import { classNames } from '../../../utils/functions/classNames/classNames.js';
|
|
15
17
|
import { Typography } from '../../../components/Typography/Typography.js';
|
|
16
18
|
import '../../../context/DynamicContext/DynamicContext.js';
|
|
19
|
+
import '@dynamic-labs/multi-wallet';
|
|
17
20
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
18
21
|
import 'react-dom';
|
|
19
22
|
import 'react-focus-lock';
|
|
@@ -21,12 +24,18 @@ import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
|
21
24
|
import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
22
25
|
import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
23
26
|
import '../../../config/ApiEndpoint.js';
|
|
27
|
+
import '@dynamic-labs/rpc-providers';
|
|
24
28
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
25
|
-
import '
|
|
29
|
+
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import '../../../components/IconButton/IconButton.js';
|
|
31
|
+
import '@dynamic-labs/wallet-book';
|
|
32
|
+
import '../../../components/Alert/Alert.js';
|
|
26
33
|
import '../../../context/MockContext/MockContext.js';
|
|
27
34
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
28
35
|
import '../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
29
|
-
import '../../../components/
|
|
36
|
+
import '../../../components/Popper/Popper/Popper.js';
|
|
37
|
+
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import '../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
30
39
|
|
|
31
40
|
const Footer = ({ heading, icon, projectSettings }) => {
|
|
32
41
|
const { theme } = useThemeContext();
|
package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs
CHANGED
|
@@ -8,11 +8,14 @@ var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../../../../shared/logger.cjs');
|
|
10
10
|
require('@dynamic-labs/iconic');
|
|
11
|
-
require('@dynamic-labs/
|
|
11
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
12
|
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
13
14
|
require('../../../../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
14
16
|
require('../../../../../shared/consts/index.cjs');
|
|
15
17
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
18
|
+
require('@dynamic-labs/multi-wallet');
|
|
16
19
|
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
17
20
|
require('../../../../../context/ThemeContext/ThemeContext.cjs');
|
|
18
21
|
require('react-dom');
|
|
@@ -21,12 +24,18 @@ require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs'
|
|
|
21
24
|
require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
22
25
|
require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
23
26
|
require('../../../../../config/ApiEndpoint.cjs');
|
|
27
|
+
require('@dynamic-labs/rpc-providers');
|
|
24
28
|
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
25
|
-
require('
|
|
29
|
+
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
30
|
+
require('../../../../../components/IconButton/IconButton.cjs');
|
|
31
|
+
require('@dynamic-labs/wallet-book');
|
|
32
|
+
require('../../../../../components/Alert/Alert.cjs');
|
|
26
33
|
require('../../../../../context/MockContext/MockContext.cjs');
|
|
27
34
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
28
35
|
require('../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
29
|
-
require('../../../../../components/
|
|
36
|
+
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
37
|
+
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
38
|
+
require('../../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
30
39
|
|
|
31
40
|
const Item = ({ heading, StartIcon, EndIcon, message, url, }) => (jsxRuntime.jsxs("a", Object.assign({ className: 'footer-buttons-item', href: url, rel: 'noopener noreferrer', target: '_blank' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'footer-buttons-item__icon--left' }, { children: jsxRuntime.jsx(StartIcon, {}) })), jsxRuntime.jsxs("div", Object.assign({ className: 'footer-buttons-item__typography' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'h2', weight: 'regular', color: 'primary', variant: 'body_normal' }, { children: heading })), message && (jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'p', weight: 'regular', color: 'secondary' }, { children: message })))] })), EndIcon && jsxRuntime.jsx(EndIcon, { style: { height: '1.5rem', width: '1.5rem' } })] })));
|
|
32
41
|
|
|
@@ -4,11 +4,14 @@ import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../../../../shared/logger.js';
|
|
6
6
|
import '@dynamic-labs/iconic';
|
|
7
|
-
import '@dynamic-labs/
|
|
7
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import '../../../../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
9
10
|
import '../../../../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
10
12
|
import '../../../../../shared/consts/index.js';
|
|
11
13
|
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
14
|
+
import '@dynamic-labs/multi-wallet';
|
|
12
15
|
import '../../../../../components/ShadowDOM/ShadowDOM.js';
|
|
13
16
|
import '../../../../../context/ThemeContext/ThemeContext.js';
|
|
14
17
|
import 'react-dom';
|
|
@@ -17,12 +20,18 @@ import '../../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
|
17
20
|
import '../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
18
21
|
import '../../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
19
22
|
import '../../../../../config/ApiEndpoint.js';
|
|
23
|
+
import '@dynamic-labs/rpc-providers';
|
|
20
24
|
import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
21
|
-
import '
|
|
25
|
+
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
26
|
+
import '../../../../../components/IconButton/IconButton.js';
|
|
27
|
+
import '@dynamic-labs/wallet-book';
|
|
28
|
+
import '../../../../../components/Alert/Alert.js';
|
|
22
29
|
import '../../../../../context/MockContext/MockContext.js';
|
|
23
30
|
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
24
31
|
import '../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
25
|
-
import '../../../../../components/
|
|
32
|
+
import '../../../../../components/Popper/Popper/Popper.js';
|
|
33
|
+
import '../../../../../components/Popper/PopperContext/PopperContext.js';
|
|
34
|
+
import '../../../../../components/SendBalanceForm/SendBalanceForm.js';
|
|
26
35
|
|
|
27
36
|
const Item = ({ heading, StartIcon, EndIcon, message, url, }) => (jsxs("a", Object.assign({ className: 'footer-buttons-item', href: url, rel: 'noopener noreferrer', target: '_blank' }, { children: [jsx("div", Object.assign({ className: 'footer-buttons-item__icon--left' }, { children: jsx(StartIcon, {}) })), jsxs("div", Object.assign({ className: 'footer-buttons-item__typography' }, { children: [jsx(Typography, Object.assign({ as: 'h2', weight: 'regular', color: 'primary', variant: 'body_normal' }, { children: heading })), message && (jsx(Typography, Object.assign({ as: 'p', weight: 'regular', color: 'secondary' }, { children: message })))] })), EndIcon && jsx(EndIcon, { style: { height: '1.5rem', width: '1.5rem' } })] })));
|
|
28
37
|
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
7
|
require('react');
|
|
8
8
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../../../shared/logger.cjs');
|
|
11
11
|
var setToLS = require('../../../../../shared/utils/functions/storage/setToLS.cjs');
|
|
12
12
|
require('@dynamic-labs/iconic');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
14
|
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
14
15
|
var localStorage = require('../../../../../utils/constants/localStorage.cjs');
|
|
15
16
|
require('../../../../../utils/constants/colors.cjs');
|
|
17
|
+
require('ethers');
|
|
16
18
|
require('../../../../../shared/consts/index.cjs');
|
|
17
19
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
20
|
+
require('@dynamic-labs/multi-wallet');
|
|
18
21
|
require('../../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
19
22
|
require('../../../../../context/ThemeContext/ThemeContext.cjs');
|
|
20
23
|
require('react-dom');
|
|
@@ -23,12 +26,18 @@ require('../../../../../components/Transition/ZoomTransition/ZoomTransition.cjs'
|
|
|
23
26
|
require('../../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
24
27
|
require('../../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
25
28
|
require('../../../../../config/ApiEndpoint.cjs');
|
|
29
|
+
require('@dynamic-labs/rpc-providers');
|
|
26
30
|
require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
-
require('
|
|
31
|
+
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
|
+
require('../../../../../components/IconButton/IconButton.cjs');
|
|
33
|
+
require('@dynamic-labs/wallet-book');
|
|
34
|
+
require('../../../../../components/Alert/Alert.cjs');
|
|
28
35
|
require('../../../../../context/MockContext/MockContext.cjs');
|
|
29
36
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
30
37
|
require('../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
31
|
-
require('../../../../../components/
|
|
38
|
+
require('../../../../../components/Popper/Popper/Popper.cjs');
|
|
39
|
+
require('../../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
|
+
require('../../../../../components/SendBalanceForm/SendBalanceForm.cjs');
|
|
32
41
|
var NewToWeb3WalletItem = require('../NewToWeb3WalletItem/NewToWeb3WalletItem.cjs');
|
|
33
42
|
|
|
34
43
|
const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
@@ -40,7 +49,7 @@ const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
|
40
49
|
setToLS.setToLS(localStorage.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.name);
|
|
41
50
|
window.location.reload();
|
|
42
51
|
};
|
|
43
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'new-to-web3-buttons__container' }, { children: [!
|
|
52
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'new-to-web3-buttons__container' }, { children: [!utils.isMobile() && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser) && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'p', "data-testid": 'desktop-interactive-wallet-item', variant: 'body_normal', weight: 'bold' }, { children: "Continue" })) }))), showRefreshOnceInstalledWalletButton && (jsxRuntime.jsx("button", Object.assign({ onClick: walletConnectionAfterPageReloadHandler }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'p', "data-testid": 'refresh-once-installed-button', variant: 'body_normal', weight: 'bold' }, { children: "Continue once installed" })) })))] })), wallet && utils.isMobile() && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsxRuntime.jsx("p", Object.assign({ "data-testid": 'mobile-interactive-wallet-item' }, { children: "Continue once installed" })) })))] })));
|
|
44
53
|
};
|
|
45
54
|
|
|
46
55
|
exports.WalletExtensionOrAppContinueButton = WalletExtensionOrAppContinueButton;
|