@dynamic-labs/sdk-react-core 0.17.0-RC.9 → 0.17.1
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 +330 -0
- package/package.cjs +9 -10
- package/package.js +9 -10
- package/package.json +17 -17
- package/src/index.cjs +31 -4
- package/src/index.d.ts +3 -0
- package/src/index.js +19 -4
- package/src/lib/Main.cjs +21 -10
- package/src/lib/Main.js +19 -8
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +7 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +7 -0
- package/src/lib/components/Alert/Alert.cjs +1 -0
- package/src/lib/components/Alert/Alert.js +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +7 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +7 -0
- package/src/lib/components/AppOriginTile/AppOriginTile.types.d.ts +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +89 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.d.ts +10 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +85 -0
- package/src/lib/components/AuthProviderIcon/index.d.ts +1 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +7 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/src/lib/components/Checkbox/Checkbox.js +1 -0
- package/src/lib/components/Chip/Chip.cjs +13 -0
- package/src/lib/components/Chip/Chip.d.ts +7 -0
- package/src/lib/components/Chip/Chip.js +9 -0
- package/src/lib/components/Chip/index.d.ts +1 -0
- package/src/lib/components/Divider/Divider.cjs +13 -3
- package/src/lib/components/Divider/Divider.d.ts +7 -3
- package/src/lib/components/Divider/Divider.js +14 -4
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +3 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +3 -2
- package/src/lib/components/FormFieldLabel/FormFieldLabel.cjs +10 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.d.ts +8 -0
- package/src/lib/components/FormFieldLabel/FormFieldLabel.js +6 -0
- package/src/lib/components/FormFieldLabel/index.d.ts +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +5 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +5 -3
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +5 -3
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +5 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +12 -8
- package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +2 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +12 -8
- package/src/lib/components/Input/Input.cjs +13 -6
- package/src/lib/components/Input/Input.js +13 -6
- package/src/lib/components/Input/Input.types.d.ts +4 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -0
- package/src/lib/components/Modal/Modal.cjs +10 -0
- package/src/lib/components/Modal/Modal.d.ts +6 -0
- package/src/lib/components/Modal/Modal.js +6 -0
- package/src/lib/components/Modal/index.d.ts +1 -0
- package/src/lib/components/ModalCard/ModalCard.cjs +9 -0
- package/src/lib/components/ModalCard/ModalCard.d.ts +2 -0
- package/src/lib/components/ModalCard/ModalCard.js +5 -0
- package/src/lib/components/ModalCard/index.d.ts +1 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +5 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +5 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +7 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +7 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +14 -7
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +14 -7
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +10 -3
- package/src/lib/components/NetworkPicker/components/Network/Network.js +10 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +10 -3
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +10 -3
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -0
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +15 -7
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +15 -7
- package/src/lib/components/OverlayCard/OverlayCard.cjs +7 -0
- package/src/lib/components/OverlayCard/OverlayCard.js +7 -0
- package/src/lib/components/Popper/Popper/Popper.cjs +54 -0
- package/src/lib/components/Popper/Popper/Popper.d.ts +12 -0
- package/src/lib/components/Popper/Popper/Popper.js +50 -0
- package/src/lib/components/Popper/Popper/index.d.ts +1 -0
- package/src/lib/components/Popper/Popper.types.d.ts +6 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +18 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +9 -0
- package/src/lib/components/Popper/PopperContent/PopperContent.js +14 -0
- package/src/lib/components/Popper/PopperContent/index.d.ts +1 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.cjs +26 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.d.ts +8 -0
- package/src/lib/components/Popper/PopperContext/PopperContext.js +20 -0
- package/src/lib/components/Popper/PopperContext/index.d.ts +1 -0
- package/src/lib/components/Popper/index.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +14 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +2 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +10 -0
- package/src/lib/components/Popper/utils/getChildPosition/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +3 -0
- package/src/lib/components/Popper/utils/isScrollable/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.cjs +16 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.d.ts +1 -0
- package/src/lib/components/Popper/utils/isScrollable/isScrollable.js +12 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/index.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +24 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +1 -0
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +20 -0
- package/src/lib/components/Portal/Portal.cjs +7 -0
- package/src/lib/components/Portal/Portal.js +7 -0
- package/src/lib/components/Select/Select.cjs +1 -0
- package/src/lib/components/Select/Select.js +1 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.cjs +13 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.d.ts +8 -0
- package/src/lib/components/SelectNetworkButton/SelectNetworkButton.js +9 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +8 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +61 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +11 -0
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +57 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +51 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +19 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +47 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +26 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.d.ts +8 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +22 -0
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/components/index.d.ts +1 -0
- package/src/lib/components/SendBalancePageLayout/index.d.ts +2 -0
- package/src/lib/components/ShadowDOM/utils.cjs +1 -0
- package/src/lib/components/ShadowDOM/utils.js +1 -0
- package/src/lib/components/Spinner/spinner.cjs +1 -0
- package/src/lib/components/Spinner/spinner.js +1 -0
- package/src/lib/components/Step/Step.d.ts +7 -0
- package/src/lib/components/Step/index.d.ts +1 -0
- package/src/lib/components/Stepper/Stepper.d.ts +2 -0
- package/src/lib/components/Stepper/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -0
- package/src/lib/components/Toolkit/Toolkit.js +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -0
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -0
- package/src/lib/components/Tooltip/Tooltip.cjs +7 -0
- package/src/lib/components/Tooltip/Tooltip.js +7 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +41 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +17 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +37 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +11 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +12 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +7 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/components/index.d.ts +1 -0
- package/src/lib/components/TransactionConfirmationPageLayout/index.d.ts +2 -0
- package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +11 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +57 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.d.ts +12 -0
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +53 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +7 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +7 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -0
- package/src/lib/components/UserAddress/UserAddress.js +1 -0
- package/src/lib/components/UserProfile/UserProfile.cjs +3 -2
- package/src/lib/components/UserProfile/UserProfile.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +10 -3
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +31 -13
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +31 -13
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.d.ts +2 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.js +1 -1
- package/src/lib/components/index.d.ts +9 -0
- package/src/lib/config/LSSuffix.cjs +24 -0
- package/src/lib/config/LSSuffix.d.ts +7 -0
- package/src/lib/config/LSSuffix.js +22 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.cjs +30 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.d.ts +13 -0
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.js +24 -0
- package/src/lib/context/AccessDeniedContext/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +76 -30
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +26 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +73 -27
- package/src/lib/context/DynamicContext/helpers.cjs +5 -3
- package/src/lib/context/DynamicContext/helpers.js +4 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +5 -3
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +5 -3
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.cjs +27 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.d.ts +14 -0
- package/src/lib/context/DynamicContext/hooks/useSetShowAuthFlowWithInit/useSetShowAuthFlowWithInit.js +23 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +7 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +7 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -0
- package/src/lib/context/DynamicContext/validators.cjs +1 -0
- package/src/lib/context/DynamicContext/validators.js +1 -0
- package/src/lib/context/MockContext/MockContext.cjs +2 -0
- package/src/lib/context/MockContext/MockContext.js +2 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +7 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +7 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +74 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.d.ts +4 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.cjs +11 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.d.ts +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.errors.js +6 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +69 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +9 -0
- package/src/lib/context/SendBalanceContext/index.d.ts +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +103 -19
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +104 -20
- package/src/lib/context/ThemeContext/themesData.cjs +19 -18
- package/src/lib/context/ThemeContext/themesData.d.ts +3 -3
- package/src/lib/context/ThemeContext/themesData.js +19 -18
- package/src/lib/context/ViewContext/ViewContext.cjs +21 -12
- package/src/lib/context/ViewContext/ViewContext.d.ts +10 -8
- package/src/lib/context/ViewContext/ViewContext.js +22 -13
- package/src/lib/data/api.cjs +6 -2
- package/src/lib/data/api.d.ts +2 -2
- package/src/lib/data/api.js +6 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +10 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +10 -3
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +9 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +8 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +8 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +14 -7
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +14 -7
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +19 -9
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +19 -9
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +15 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +69 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +10 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +65 -0
- package/src/lib/modals/SendBalanceModal/index.d.ts +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +19 -10
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +19 -10
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +35 -83
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +37 -85
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +0 -4
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/assets/add.cjs +8 -9
- package/src/lib/shared/assets/add.js +8 -9
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/shared/assets/send.cjs +56 -0
- package/src/lib/shared/assets/send.js +32 -0
- package/src/lib/shared/types/index.d.ts +14 -2
- package/src/lib/shared/utils/functions/ceil/ceil.cjs +10 -0
- package/src/lib/shared/utils/functions/ceil/ceil.d.ts +1 -0
- package/src/lib/shared/utils/functions/ceil/ceil.js +6 -0
- package/src/lib/shared/utils/functions/ceil/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +9 -10
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +1 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +9 -10
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +1 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +1 -0
- package/src/lib/shared/utils/functions/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.cjs +27 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.d.ts +6 -0
- package/src/lib/shared/utils/functions/shortenEmail/shortenEmail.js +23 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.cjs +9 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.js +5 -0
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs +2 -1
- package/src/lib/shared/utils/functions/storage/getFromLS.js +2 -1
- package/src/lib/shared/utils/functions/storage/index.d.ts +2 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.cjs +15 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.d.ts +1 -0
- package/src/lib/shared/utils/functions/storage/removeFromLS.js +11 -0
- package/src/lib/shared/utils/functions/storage/setToLS.cjs +5 -2
- package/src/lib/shared/utils/functions/storage/setToLS.js +5 -2
- package/src/lib/shared/utils/functions/trimEnd/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +13 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +1 -0
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +9 -0
- package/src/lib/shared/utils/hooks/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +5 -3
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +5 -3
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.cjs +12 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.d.ts +1 -0
- package/src/lib/utils/functions/getAppOrigin/getAppOrigin.js +8 -0
- package/src/lib/utils/functions/getAppOrigin/index.d.ts +1 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +14 -2
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +13 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +30 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +7 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +26 -0
- package/src/lib/utils/functions/getReferencedAccount/index.d.ts +1 -0
- package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.cjs → getUserProfileFields/getUserProfileFields.cjs} +4 -0
- package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.js → getUserProfileFields/getUserProfileFields.js} +4 -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/handleUnlinkHelper/handleUnlinkHelper.cjs +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +1 -0
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +1 -0
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isNetworkUnsupported/index.d.ts +1 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.cjs +12 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.d.ts +2 -0
- package/src/lib/utils/functions/isNetworkUnsupported/isNetworkUnsupported.js +8 -0
- package/src/lib/utils/functions/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 +1 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -0
- package/src/lib/utils/functions/storeAuthToken/index.cjs +14 -2
- package/src/lib/utils/functions/storeAuthToken/index.js +13 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +2 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +2 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +2 -0
- package/src/lib/utils/hooks/index.d.ts +4 -0
- package/src/lib/utils/hooks/multiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.cjs +0 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWalletWidgetState/useMultiWalletWidgetState.js +0 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +66 -7
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +10 -3
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +67 -8
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +2 -0
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +2 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +2 -0
- package/src/lib/utils/hooks/useColorSchemePreference/index.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +27 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.d.ts +1 -0
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +23 -0
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.cjs +6 -1
- package/src/lib/utils/hooks/useConfirmationModal/useConfirmationModal.js +6 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -0
- 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 +1 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +1 -0
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +4 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +5 -2
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +1 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +1 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -0
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/index.d.ts +1 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.cjs +14 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.d.ts +2 -0
- package/src/lib/utils/hooks/useGetSocialIcon/useGetSocialIcon.js +10 -0
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +26 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +26 -2
- package/src/lib/utils/hooks/useIconThemeVariant/index.d.ts +1 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.cjs +15 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.d.ts +2 -0
- package/src/lib/utils/hooks/useIconThemeVariant/useIconThemeVariant.js +11 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +4 -4
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +3 -3
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +1 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +1 -0
- package/src/lib/utils/hooks/usePrevious/usePrevious.cjs +0 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.d.ts +1 -1
- package/src/lib/utils/hooks/usePrevious/usePrevious.js +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -0
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -0
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +4 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +20 -11
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +20 -11
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +39 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +35 -0
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +50 -73
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +52 -75
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +56 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.d.ts +8 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +52 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/index.d.ts +2 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.cjs +7 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectors/utils/primaryWalletIdValidator/primaryWalletIdValidator.js +3 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +88 -52
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +89 -53
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +14 -14
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +14 -14
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +51 -16
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +51 -16
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +33 -27
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +5 -3
- package/src/lib/utils/hooks/useWallets/useWallets.js +34 -28
- package/src/lib/utils/hooks/useWalletsConnectionState/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +47 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +14 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +43 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +9 -3
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +9 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +13 -7
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +13 -7
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +9 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +9 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +8 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +8 -2
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +3 -2
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +3 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +9 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +9 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +11 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +11 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +10 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.js +10 -3
- package/src/lib/views/EmailVerification/EmailVerification.cjs +17 -9
- package/src/lib/views/EmailVerification/EmailVerification.js +17 -9
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +7 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +7 -0
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +9 -5
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +9 -5
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +9 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +9 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +8 -4
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +9 -5
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +12 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +11 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +18 -8
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +18 -8
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +27 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +27 -7
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +9 -3
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +9 -3
- package/src/lib/views/NoAccess/NoAccess.cjs +25 -29
- package/src/lib/views/NoAccess/NoAccess.js +26 -30
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +8 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +8 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +9 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +9 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +10 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +10 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +14 -8
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +14 -8
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +9 -2
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +9 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +9 -3
- package/src/lib/views/QrCodeView/QrCodeView.js +9 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +117 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +13 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.js +113 -0
- package/src/lib/views/SendBalanceView/index.d.ts +1 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +15 -12
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +15 -12
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +62 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.d.ts +2 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +58 -0
- package/src/lib/views/SocialWrongAccountView/index.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +95 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +14 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +91 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.cjs +7 -1
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/helpers/transactionErrorMessage.d.ts +1 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +18 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.cjs +7 -0
- package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.js +7 -0
- package/src/lib/views/TransactionConfirmationView/index.d.ts +2 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +9 -2
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +9 -2
- package/src/lib/views/WalletList/WalletList.cjs +10 -8
- package/src/lib/views/WalletList/WalletList.js +5 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +8 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +8 -2
- package/src/lib/views/WalletList/data.cjs +5 -5
- package/src/lib/views/WalletList/data.d.ts +2 -2
- package/src/lib/views/WalletList/data.js +5 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +10 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +10 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +9 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.js +9 -3
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +46 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +6 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +42 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +22 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +18 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.cjs +27 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.d.ts +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.js +19 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +45 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.d.ts +16 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +35 -0
- package/src/lib/widgets/DynamicBridgeWidget/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.d.ts +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +5 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +14 -6
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +14 -6
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +80 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +76 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +15 -30
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +6 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +16 -31
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +13 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +13 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +13 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.cjs +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.d.ts +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetCard/DynamicWidgetCard.js +3 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +42 -26
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.d.ts +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +44 -28
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.cjs +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetPrompts/DynamicWidgetPrompts.js +17 -8
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.d.ts +4 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/DynamicWidgetVariants.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +8 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +13 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +13 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/types.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +12 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +12 -7
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +21 -3
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +21 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +9 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +9 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +10 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +34 -21
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +2 -3
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +34 -21
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +43 -6
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.d.ts +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +44 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +9 -10
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -5
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +10 -11
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +5 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -1
- package/src/lib/widgets/DynamicWidget/{components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs → prompts/DefaultPromptModal/DefaultPromptModal.cjs} +15 -15
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.d.ts +13 -0
- package/src/lib/widgets/DynamicWidget/{components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js → prompts/DefaultPromptModal/DefaultPromptModal.js} +15 -15
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +10 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +17 -40
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +18 -41
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +45 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.d.ts +7 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +41 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +71 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.d.ts +8 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +67 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +61 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +57 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +60 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +68 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +64 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +2 -33
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +2 -33
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +12 -8
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +13 -9
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +9 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +13 -8
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +13 -8
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +13 -7
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +13 -7
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +10 -3
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +10 -3
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +12 -4
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +15 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +11 -0
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +9 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +9 -2
- package/src/lib/widgets/index.d.ts +1 -0
- package/src/polyfills.cjs +11 -0
- package/src/polyfills.d.ts +1 -0
- package/src/polyfills.js +9 -0
- package/src/shim/process.cjs +238 -0
- package/src/shim/process.d.ts +34 -0
- package/src/shim/process.js +234 -0
- package/src/lib/modals/TransactionConfirmationModal/helpers/transactionErrorMessage.js +0 -12
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.cjs +0 -22
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.d.ts +0 -3
- package/src/lib/utils/functions/getSocialIcon/getSocialIcon.js +0 -18
- package/src/lib/utils/functions/getSocialIcon/index.d.ts +0 -1
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.types.d.ts +0 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +0 -68
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +0 -64
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +0 -59
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.d.ts +0 -6
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +0 -55
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/index.d.ts +0 -1
- /package/src/lib/utils/functions/{getEnabledUserProfileFields/getEnabledUserProfileFields.d.ts → getUserProfileFields/getUserProfileFields.d.ts} +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/index.d.ts +0 -0
- /package/src/lib/{modals/TransactionConfirmationModal → views/TransactionConfirmationView}/hooks/useTransactionData/useTransactionData.d.ts +0 -0
- /package/src/lib/widgets/DynamicWidget/{components → prompts/PendingSignModal}/DefaultPendingSignModalContent/index.d.ts +0 -0
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js
CHANGED
|
@@ -4,6 +4,7 @@ import 'react';
|
|
|
4
4
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../shared/logger.js';
|
|
7
|
+
import '../../config/LSSuffix.js';
|
|
7
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
9
10
|
import '@dynamic-labs/utils';
|
|
@@ -23,12 +24,18 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
23
24
|
import '../../config/ApiEndpoint.js';
|
|
24
25
|
import '@dynamic-labs/rpc-providers';
|
|
25
26
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
27
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
|
+
import '../../components/IconButton/IconButton.js';
|
|
29
|
+
import '@dynamic-labs/wallet-book';
|
|
30
|
+
import '../../components/Alert/Alert.js';
|
|
26
31
|
import '../../context/MockContext/MockContext.js';
|
|
27
32
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
28
33
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
29
34
|
import { TextButton } from '../../components/TextButton/TextButton.js';
|
|
30
|
-
import '../../components/
|
|
31
|
-
import '../../components/
|
|
35
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
36
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
37
|
+
import 'formik';
|
|
38
|
+
import 'yup';
|
|
32
39
|
import { OnboardingUserDataForm } from '../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js';
|
|
33
40
|
|
|
34
41
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -10,6 +10,7 @@ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
|
10
10
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../shared/logger.cjs');
|
|
13
|
+
require('../../config/LSSuffix.cjs');
|
|
13
14
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
14
15
|
var pencilAltIcon = require('../../shared/assets/pencil-alt-icon.cjs');
|
|
15
16
|
require('@dynamic-labs/utils');
|
|
@@ -29,14 +30,20 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
29
30
|
require('../../config/ApiEndpoint.cjs');
|
|
30
31
|
require('@dynamic-labs/rpc-providers');
|
|
31
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
32
|
-
require('../../context/
|
|
33
|
-
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
34
|
-
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
33
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
34
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
36
|
-
require('
|
|
35
|
+
require('@dynamic-labs/wallet-book');
|
|
37
36
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
38
37
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
38
|
+
require('../../components/Alert/Alert.cjs');
|
|
39
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
40
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
|
+
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
39
42
|
var TosAndPp = require('../../components/TosAndPp/TosAndPp.cjs');
|
|
43
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
44
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
|
+
require('formik');
|
|
46
|
+
require('yup');
|
|
40
47
|
|
|
41
48
|
const EmailConfirmationWaitingView = () => {
|
|
42
49
|
const { setView } = ViewContext.useViewContext();
|
|
@@ -6,6 +6,7 @@ import { isEmailWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
|
6
6
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../shared/logger.js';
|
|
9
|
+
import '../../config/LSSuffix.js';
|
|
9
10
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
10
11
|
import { ReactComponent as SvgPencilAltIcon } from '../../shared/assets/pencil-alt-icon.js';
|
|
11
12
|
import '@dynamic-labs/utils';
|
|
@@ -25,14 +26,20 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
25
26
|
import '../../config/ApiEndpoint.js';
|
|
26
27
|
import '@dynamic-labs/rpc-providers';
|
|
27
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
28
|
-
import '../../context/
|
|
29
|
-
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
30
|
-
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
29
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
30
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
32
|
-
import '
|
|
31
|
+
import '@dynamic-labs/wallet-book';
|
|
33
32
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
34
33
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
34
|
+
import '../../components/Alert/Alert.js';
|
|
35
|
+
import '../../context/MockContext/MockContext.js';
|
|
36
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
37
|
+
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
35
38
|
import { TosAndPp } from '../../components/TosAndPp/TosAndPp.js';
|
|
39
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
40
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
41
|
+
import 'formik';
|
|
42
|
+
import 'yup';
|
|
36
43
|
|
|
37
44
|
const EmailConfirmationWaitingView = () => {
|
|
38
45
|
const { setView } = useViewContext();
|
|
@@ -9,6 +9,7 @@ var iconic = require('@dynamic-labs/iconic');
|
|
|
9
9
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
10
10
|
require('@dynamic-labs/sdk-api');
|
|
11
11
|
require('../../shared/logger.cjs');
|
|
12
|
+
require('../../config/LSSuffix.cjs');
|
|
12
13
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
14
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
14
15
|
var chevronLeft = require('../../shared/assets/chevron-left.cjs');
|
|
@@ -29,12 +30,18 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
29
30
|
var api = require('../../data/api.cjs');
|
|
30
31
|
require('@dynamic-labs/rpc-providers');
|
|
31
32
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
35
|
+
require('@dynamic-labs/wallet-book');
|
|
36
|
+
var Button = require('../../components/Button/Button.cjs');
|
|
37
|
+
require('../../components/Alert/Alert.cjs');
|
|
32
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
33
39
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
34
40
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
require('
|
|
41
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
42
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
|
+
require('formik');
|
|
44
|
+
require('yup');
|
|
38
45
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
39
46
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
40
47
|
|
|
@@ -5,6 +5,7 @@ import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
|
|
|
5
5
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
6
6
|
import '@dynamic-labs/sdk-api';
|
|
7
7
|
import '../../shared/logger.js';
|
|
8
|
+
import '../../config/LSSuffix.js';
|
|
8
9
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
10
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
10
11
|
import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
|
|
@@ -25,12 +26,18 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
25
26
|
import { updateUserProfileFields } from '../../data/api.js';
|
|
26
27
|
import '@dynamic-labs/rpc-providers';
|
|
27
28
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
29
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
31
|
+
import '@dynamic-labs/wallet-book';
|
|
32
|
+
import { Button } from '../../components/Button/Button.js';
|
|
33
|
+
import '../../components/Alert/Alert.js';
|
|
28
34
|
import '../../context/MockContext/MockContext.js';
|
|
29
35
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
30
36
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import '
|
|
37
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
38
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
39
|
+
import 'formik';
|
|
40
|
+
import 'yup';
|
|
34
41
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
35
42
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
36
43
|
|
|
@@ -10,6 +10,7 @@ var utils = require('@dynamic-labs/utils');
|
|
|
10
10
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
11
11
|
var decodeJwt = require('../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
12
12
|
require('../../shared/logger.cjs');
|
|
13
|
+
require('../../config/LSSuffix.cjs');
|
|
13
14
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
15
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
15
16
|
var check = require('../../shared/assets/check.cjs');
|
|
@@ -31,18 +32,25 @@ require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
31
32
|
var api = require('../../data/api.cjs');
|
|
32
33
|
require('@dynamic-labs/rpc-providers');
|
|
33
34
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
35
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
37
|
+
var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs');
|
|
38
|
+
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
39
|
+
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
40
|
+
require('../../components/Alert/Alert.cjs');
|
|
34
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
35
42
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
36
43
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
37
44
|
var TextButton = require('../../components/TextButton/TextButton.cjs');
|
|
38
|
-
require('../../components/IconButton/IconButton.cjs');
|
|
39
|
-
require('../../components/Alert/Alert.cjs');
|
|
40
|
-
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
41
|
-
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
42
45
|
var ErrorContainer = require('../../components/ErrorContainer/ErrorContainer.cjs');
|
|
43
46
|
var TosAndPp = require('../../components/TosAndPp/TosAndPp.cjs');
|
|
44
47
|
var PinField = require('../../components/PinField/PinField.cjs');
|
|
45
|
-
var
|
|
48
|
+
var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
49
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
50
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
51
|
+
require('@dynamic-labs/wallet-book');
|
|
52
|
+
require('formik');
|
|
53
|
+
require('yup');
|
|
46
54
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
47
55
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
48
56
|
var useEmailVerificationRequest = require('../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs');
|
|
@@ -55,7 +63,7 @@ const EmailVerification = () => {
|
|
|
55
63
|
const [retried, setRetried] = React.useState(false);
|
|
56
64
|
const [isValidated, setIsValidated] = React.useState(false);
|
|
57
65
|
const [showTransferMessage, setShowTransferMessage] = React.useState(false);
|
|
58
|
-
const { view, setView } = ViewContext.useViewContext();
|
|
66
|
+
const { view, setView, goToInitialView } = ViewContext.useViewContext();
|
|
59
67
|
const { error, setError, setErrorMessage } = ErrorContext.useErrorContext();
|
|
60
68
|
const { environmentId, onboardingOnlyJwt, handleLogOut, termsOfServiceUrl, privacyPolicyUrl, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
61
69
|
const { email, verificationUUID, setVerificationUUID } = EmailVerificationContext.useEmailVerificationContext();
|
|
@@ -123,7 +131,6 @@ const EmailVerification = () => {
|
|
|
123
131
|
return;
|
|
124
132
|
}
|
|
125
133
|
const decodedJwt = decodeJwt.decodeJwt(jwt);
|
|
126
|
-
setCallback('authSuccess');
|
|
127
134
|
setIsValidated(true);
|
|
128
135
|
if (decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.missingFields.length) {
|
|
129
136
|
setOnboardingOnlyJwt(jwt);
|
|
@@ -132,6 +139,7 @@ const EmailVerification = () => {
|
|
|
132
139
|
}, 1500);
|
|
133
140
|
return;
|
|
134
141
|
}
|
|
142
|
+
setCallback('authSuccess');
|
|
135
143
|
// this timeout is set to make sure that the user will see success message
|
|
136
144
|
setTimeout(() => {
|
|
137
145
|
createUserProfileByJWT(jwt);
|
|
@@ -181,7 +189,7 @@ const EmailVerification = () => {
|
|
|
181
189
|
setHideRetryButton(true);
|
|
182
190
|
}
|
|
183
191
|
if (error.code === 'invalid_email_verification') {
|
|
184
|
-
|
|
192
|
+
goToInitialView();
|
|
185
193
|
}
|
|
186
194
|
}
|
|
187
195
|
finally {
|
|
@@ -207,7 +215,7 @@ const EmailVerification = () => {
|
|
|
207
215
|
}, [count]);
|
|
208
216
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'email-verification__container' }, { children: [error && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'email-verification__error-message' }, { children: error }))), showTransferMessage && (jsxRuntime.jsx("div", Object.assign({ className: 'email-verification__transfer-message' }, { children: "Verification complete, the email is now verified to this account." }))), isValidated ? (jsxRuntime.jsx("div", Object.assign({ className: 'email-verification__icon-container' }, { children: jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'email-verification__icon--verified', Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: check.ReactComponent }) }))) : (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: classNames.classNames({
|
|
209
217
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
210
|
-
}), Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxRuntime.jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: email }))] })), !isLoginView && (jsxRuntime.jsx(TextButton.TextButton, Object.assign({ onClick: () => setView('update-email'), className: 'email-verification__text-button', disabled: loading }, { children: "Edit email" }))), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: loading, handleComplete: isLoginView ? handleEmailLogin : handleComplete, isValidated: isValidated, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: () => setError(undefined) }), retried ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: ["Re-send code in ", count] })), jsxRuntime.jsxs("span", Object.assign({ className: 'email-verification__retry-container' }, { children: [jsxRuntime.jsx(checkCircle.ReactComponent, {}), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'primary', className: 'email-verification__retry-container-text' }, { children: "Code sent" }))] }))] })) : (!hideRetryButton && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'secondary' }, { children: "Did not receive your code yet?" })), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'email-verification__text-button', disabled: loading || isValidated, onClick: () => handleRetry() }, { children: "Re-send code" }))] }))), !isLoginView && (jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'email-verification__log-out', onClick: () => handleLogOut() }, { children: "Log out" }))), termsOfServiceUrl && privacyPolicyUrl && isLoginView && (jsxRuntime.jsx(TosAndPp.TosAndPp, { mode: 'logging in', privacyPolicyUrl: privacyPolicyUrl, termsOfServiceUrl: termsOfServiceUrl })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {})] })));
|
|
218
|
+
}), Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxRuntime.jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail.shortenEmail(email) }))] })), !isLoginView && (jsxRuntime.jsx(TextButton.TextButton, Object.assign({ onClick: () => setView('update-email'), className: 'email-verification__text-button', disabled: loading }, { children: "Edit email" }))), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: loading, handleComplete: isLoginView ? handleEmailLogin : handleComplete, isValidated: isValidated, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: () => setError(undefined) }), retried ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: ["Re-send code in ", count] })), jsxRuntime.jsxs("span", Object.assign({ className: 'email-verification__retry-container' }, { children: [jsxRuntime.jsx(checkCircle.ReactComponent, {}), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'primary', className: 'email-verification__retry-container-text' }, { children: "Code sent" }))] }))] })) : (!hideRetryButton && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'secondary' }, { children: "Did not receive your code yet?" })), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'email-verification__text-button', disabled: loading || isValidated, onClick: () => handleRetry() }, { children: "Re-send code" }))] }))), !isLoginView && (jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'email-verification__log-out', onClick: () => handleLogOut() }, { children: "Log out" }))), termsOfServiceUrl && privacyPolicyUrl && isLoginView && (jsxRuntime.jsx(TosAndPp.TosAndPp, { mode: 'logging in', privacyPolicyUrl: privacyPolicyUrl, termsOfServiceUrl: termsOfServiceUrl })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {})] })));
|
|
211
219
|
};
|
|
212
220
|
|
|
213
221
|
exports.EmailVerification = EmailVerification;
|
|
@@ -6,6 +6,7 @@ import { NoAccessError } from '@dynamic-labs/utils';
|
|
|
6
6
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
7
7
|
import { decodeJwt } from '../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
8
8
|
import '../../shared/logger.js';
|
|
9
|
+
import '../../config/LSSuffix.js';
|
|
9
10
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
11
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
11
12
|
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
@@ -27,18 +28,25 @@ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
|
27
28
|
import { signInWithEmailVerification, retryEmailVerification } from '../../data/api.js';
|
|
28
29
|
import '@dynamic-labs/rpc-providers';
|
|
29
30
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
31
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
|
+
import '../../components/IconButton/IconButton.js';
|
|
33
|
+
import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.js';
|
|
34
|
+
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
35
|
+
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
36
|
+
import '../../components/Alert/Alert.js';
|
|
30
37
|
import '../../context/MockContext/MockContext.js';
|
|
31
38
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
32
39
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
33
40
|
import { TextButton } from '../../components/TextButton/TextButton.js';
|
|
34
|
-
import '../../components/IconButton/IconButton.js';
|
|
35
|
-
import '../../components/Alert/Alert.js';
|
|
36
|
-
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
37
|
-
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
38
41
|
import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
|
|
39
42
|
import { TosAndPp } from '../../components/TosAndPp/TosAndPp.js';
|
|
40
43
|
import { PinField } from '../../components/PinField/PinField.js';
|
|
41
|
-
import {
|
|
44
|
+
import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
45
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
46
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
47
|
+
import '@dynamic-labs/wallet-book';
|
|
48
|
+
import 'formik';
|
|
49
|
+
import 'yup';
|
|
42
50
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
43
51
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
44
52
|
import { useEmailVerificationRequest } from '../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js';
|
|
@@ -51,7 +59,7 @@ const EmailVerification = () => {
|
|
|
51
59
|
const [retried, setRetried] = useState(false);
|
|
52
60
|
const [isValidated, setIsValidated] = useState(false);
|
|
53
61
|
const [showTransferMessage, setShowTransferMessage] = useState(false);
|
|
54
|
-
const { view, setView } = useViewContext();
|
|
62
|
+
const { view, setView, goToInitialView } = useViewContext();
|
|
55
63
|
const { error, setError, setErrorMessage } = useErrorContext();
|
|
56
64
|
const { environmentId, onboardingOnlyJwt, handleLogOut, termsOfServiceUrl, privacyPolicyUrl, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext();
|
|
57
65
|
const { email, verificationUUID, setVerificationUUID } = useEmailVerificationContext();
|
|
@@ -119,7 +127,6 @@ const EmailVerification = () => {
|
|
|
119
127
|
return;
|
|
120
128
|
}
|
|
121
129
|
const decodedJwt = decodeJwt(jwt);
|
|
122
|
-
setCallback('authSuccess');
|
|
123
130
|
setIsValidated(true);
|
|
124
131
|
if (decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.missingFields.length) {
|
|
125
132
|
setOnboardingOnlyJwt(jwt);
|
|
@@ -128,6 +135,7 @@ const EmailVerification = () => {
|
|
|
128
135
|
}, 1500);
|
|
129
136
|
return;
|
|
130
137
|
}
|
|
138
|
+
setCallback('authSuccess');
|
|
131
139
|
// this timeout is set to make sure that the user will see success message
|
|
132
140
|
setTimeout(() => {
|
|
133
141
|
createUserProfileByJWT(jwt);
|
|
@@ -177,7 +185,7 @@ const EmailVerification = () => {
|
|
|
177
185
|
setHideRetryButton(true);
|
|
178
186
|
}
|
|
179
187
|
if (error.code === 'invalid_email_verification') {
|
|
180
|
-
|
|
188
|
+
goToInitialView();
|
|
181
189
|
}
|
|
182
190
|
}
|
|
183
191
|
finally {
|
|
@@ -203,7 +211,7 @@ const EmailVerification = () => {
|
|
|
203
211
|
}, [count]);
|
|
204
212
|
return (jsxs("div", Object.assign({ className: 'email-verification__container' }, { children: [error && (jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'email-verification__error-message' }, { children: error }))), showTransferMessage && (jsx("div", Object.assign({ className: 'email-verification__transfer-message' }, { children: "Verification complete, the email is now verified to this account." }))), isValidated ? (jsx("div", Object.assign({ className: 'email-verification__icon-container' }, { children: jsx(IconWithStatus, { containerClassName: 'email-verification__icon--verified', Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgCheck }) }))) : (jsx(IconWithSpinner, { className: classNames({
|
|
205
213
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
206
|
-
}), Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: email }))] })), !isLoginView && (jsx(TextButton, Object.assign({ onClick: () => setView('update-email'), className: 'email-verification__text-button', disabled: loading }, { children: "Edit email" }))), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: loading, handleComplete: isLoginView ? handleEmailLogin : handleComplete, isValidated: isValidated, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: () => setError(undefined) }), retried ? (jsxs(Fragment, { children: [jsxs(Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: ["Re-send code in ", count] })), jsxs("span", Object.assign({ className: 'email-verification__retry-container' }, { children: [jsx(SvgCheckCircle, {}), jsx(Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'primary', className: 'email-verification__retry-container-text' }, { children: "Code sent" }))] }))] })) : (!hideRetryButton && (jsxs(Fragment, { children: [jsx(Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'secondary' }, { children: "Did not receive your code yet?" })), jsx(TextButton, Object.assign({ className: 'email-verification__text-button', disabled: loading || isValidated, onClick: () => handleRetry() }, { children: "Re-send code" }))] }))), !isLoginView && (jsx(TextButton, Object.assign({ className: 'email-verification__log-out', onClick: () => handleLogOut() }, { children: "Log out" }))), termsOfServiceUrl && privacyPolicyUrl && isLoginView && (jsx(TosAndPp, { mode: 'logging in', privacyPolicyUrl: privacyPolicyUrl, termsOfServiceUrl: termsOfServiceUrl })), jsx(PoweredByDynamic, {})] })));
|
|
214
|
+
}), Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail(email) }))] })), !isLoginView && (jsx(TextButton, Object.assign({ onClick: () => setView('update-email'), className: 'email-verification__text-button', disabled: loading }, { children: "Edit email" }))), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: loading, handleComplete: isLoginView ? handleEmailLogin : handleComplete, isValidated: isValidated, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: () => setError(undefined) }), retried ? (jsxs(Fragment, { children: [jsxs(Typography, Object.assign({ variant: 'body_small', color: 'secondary' }, { children: ["Re-send code in ", count] })), jsxs("span", Object.assign({ className: 'email-verification__retry-container' }, { children: [jsx(SvgCheckCircle, {}), jsx(Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'primary', className: 'email-verification__retry-container-text' }, { children: "Code sent" }))] }))] })) : (!hideRetryButton && (jsxs(Fragment, { children: [jsx(Typography, Object.assign({ variant: 'body_small', weight: 'medium', color: 'secondary' }, { children: "Did not receive your code yet?" })), jsx(TextButton, Object.assign({ className: 'email-verification__text-button', disabled: loading || isValidated, onClick: () => handleRetry() }, { children: "Re-send code" }))] }))), !isLoginView && (jsx(TextButton, Object.assign({ className: 'email-verification__log-out', onClick: () => handleLogOut() }, { children: "Log out" }))), termsOfServiceUrl && privacyPolicyUrl && isLoginView && (jsx(TosAndPp, { mode: 'logging in', privacyPolicyUrl: privacyPolicyUrl, termsOfServiceUrl: termsOfServiceUrl })), jsx(PoweredByDynamic, {})] })));
|
|
207
215
|
};
|
|
208
216
|
|
|
209
217
|
export { EmailVerification };
|
|
@@ -11,6 +11,7 @@ require('@dynamic-labs/utils');
|
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../config/ApiEndpoint.cjs');
|
|
13
13
|
require('../../shared/logger.cjs');
|
|
14
|
+
require('../../config/LSSuffix.cjs');
|
|
14
15
|
require('@dynamic-labs/iconic');
|
|
15
16
|
require('../../utils/constants/colors.cjs');
|
|
16
17
|
require('ethers');
|
|
@@ -18,6 +19,7 @@ require('../../shared/consts/index.cjs');
|
|
|
18
19
|
require('@dynamic-labs/multi-wallet');
|
|
19
20
|
require('@dynamic-labs/rpc-providers');
|
|
20
21
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
22
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
21
23
|
require('react-dom');
|
|
22
24
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
23
25
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -27,7 +29,12 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
27
29
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
28
30
|
require('../../components/IconButton/IconButton.cjs');
|
|
29
31
|
require('../../components/Alert/Alert.cjs');
|
|
32
|
+
require('@dynamic-labs/wallet-book');
|
|
30
33
|
var OTPVerificationView = require('../../components/OTPVerificationView/OTPVerificationView.cjs');
|
|
34
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
35
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
|
+
require('formik');
|
|
37
|
+
require('yup');
|
|
31
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
32
39
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
33
40
|
var useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
|
|
@@ -7,6 +7,7 @@ import '@dynamic-labs/utils';
|
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../config/ApiEndpoint.js';
|
|
9
9
|
import '../../shared/logger.js';
|
|
10
|
+
import '../../config/LSSuffix.js';
|
|
10
11
|
import '@dynamic-labs/iconic';
|
|
11
12
|
import '../../utils/constants/colors.js';
|
|
12
13
|
import 'ethers';
|
|
@@ -14,6 +15,7 @@ import '../../shared/consts/index.js';
|
|
|
14
15
|
import '@dynamic-labs/multi-wallet';
|
|
15
16
|
import '@dynamic-labs/rpc-providers';
|
|
16
17
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
18
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
17
19
|
import 'react-dom';
|
|
18
20
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
19
21
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
@@ -23,7 +25,12 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
23
25
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
24
26
|
import '../../components/IconButton/IconButton.js';
|
|
25
27
|
import '../../components/Alert/Alert.js';
|
|
28
|
+
import '@dynamic-labs/wallet-book';
|
|
26
29
|
import { OTPVerificationView } from '../../components/OTPVerificationView/OTPVerificationView.js';
|
|
30
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
31
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
32
|
+
import 'formik';
|
|
33
|
+
import 'yup';
|
|
27
34
|
import '../../context/MockContext/MockContext.js';
|
|
28
35
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
29
36
|
import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
|
|
@@ -7,6 +7,7 @@ var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
7
7
|
require('@dynamic-labs/sdk-api');
|
|
8
8
|
require('../../shared/logger.cjs');
|
|
9
9
|
var getFromLS = require('../../shared/utils/functions/storage/getFromLS.cjs');
|
|
10
|
+
require('../../config/LSSuffix.cjs');
|
|
10
11
|
require('@dynamic-labs/iconic');
|
|
11
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
@@ -22,14 +23,16 @@ var Divider = require('../../components/Divider/Divider.cjs');
|
|
|
22
23
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
23
24
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
24
25
|
var walletListBuilder = require('../../utils/functions/walletListBuilder/walletListBuilder.cjs');
|
|
26
|
+
var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
25
27
|
var LoginWithEmailForm = require('./components/LoginWithEmailForm/LoginWithEmailForm.cjs');
|
|
26
28
|
var LoginWithEmailWalletList = require('./components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs');
|
|
29
|
+
var SocialSignIn = require('./components/SocialSignIn/SocialSignIn.cjs');
|
|
27
30
|
|
|
28
31
|
const LoginWithEmailView = () => {
|
|
29
32
|
var _a;
|
|
30
33
|
const { error } = ErrorContext.useErrorContext();
|
|
31
|
-
const { authorizationViewDisplayOrder, wallets, projectSettings } = useInternalDynamicContext.useInternalDynamicContext();
|
|
32
|
-
const {
|
|
34
|
+
const { authorizationViewDisplayOrder, wallets, projectSettings, walletsFilter, signWithEmailWalletName, loginWithEmail, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
35
|
+
const { enabledSocialProviders } = SocialRedirectContext.useSocialRedirectContext();
|
|
33
36
|
const { numberOfWallets, walletsList } = walletListBuilder.walletListBuilder({
|
|
34
37
|
inputList: wallets,
|
|
35
38
|
isWalletConnectList: false,
|
|
@@ -40,14 +43,15 @@ const LoginWithEmailView = () => {
|
|
|
40
43
|
signWithEmailWalletName,
|
|
41
44
|
walletsFilter,
|
|
42
45
|
});
|
|
43
|
-
const
|
|
46
|
+
const isWeb2Priority = isDisplayOrderPriorityForWeb2.isDisplayOrderPriorityForWeb2(authorizationViewDisplayOrder);
|
|
47
|
+
const dividerText = isWeb2Priority
|
|
44
48
|
? 'Or continue with a wallet'
|
|
45
49
|
: 'Or continue with';
|
|
46
50
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'login-with-email__container' }, { children: [error && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: error }), jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('login-with-email__scroll', {
|
|
47
|
-
'login-with-email__scroll--email-first':
|
|
51
|
+
'login-with-email__scroll--email-first': isWeb2Priority,
|
|
48
52
|
}), "data-testid": 'login-with-email-scroll' }, { children: [numberOfWallets &&
|
|
49
53
|
walletsList.length &&
|
|
50
|
-
!((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _a === void 0 ? void 0 : _a.emailOnly) ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(LoginWithEmailWalletList.LoginWithEmailWalletList, { walletsList: walletsList, numberOfWallets: numberOfWallets }), jsxRuntime.jsx(Divider.Divider, { text: dividerText })] })) : null, jsxRuntime.jsx(LoginWithEmailForm.LoginWithEmailForm, {})] }))] })));
|
|
54
|
+
!((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _a === void 0 ? void 0 : _a.emailOnly) ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(LoginWithEmailWalletList.LoginWithEmailWalletList, { walletsList: walletsList, numberOfWallets: numberOfWallets }), jsxRuntime.jsx(Divider.Divider, { text: dividerText })] })) : null, jsxRuntime.jsxs("div", Object.assign({ className: 'login-with-email__scroll__web2' }, { children: [jsxRuntime.jsx(LoginWithEmailForm.LoginWithEmailForm, {}), enabledSocialProviders.length > 0 && jsxRuntime.jsx(SocialSignIn.SocialSignIn, {})] }))] }))] })));
|
|
51
55
|
};
|
|
52
56
|
|
|
53
57
|
exports.LoginWithEmailView = LoginWithEmailView;
|
|
@@ -3,6 +3,7 @@ import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
|
3
3
|
import '@dynamic-labs/sdk-api';
|
|
4
4
|
import '../../shared/logger.js';
|
|
5
5
|
import { getFromLS } from '../../shared/utils/functions/storage/getFromLS.js';
|
|
6
|
+
import '../../config/LSSuffix.js';
|
|
6
7
|
import '@dynamic-labs/iconic';
|
|
7
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
@@ -18,14 +19,16 @@ import { Divider } from '../../components/Divider/Divider.js';
|
|
|
18
19
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
19
20
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
20
21
|
import { walletListBuilder } from '../../utils/functions/walletListBuilder/walletListBuilder.js';
|
|
22
|
+
import { useSocialRedirectContext } from '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
21
23
|
import { LoginWithEmailForm } from './components/LoginWithEmailForm/LoginWithEmailForm.js';
|
|
22
24
|
import { NUMBER_OF_WALLETS, LoginWithEmailWalletList } from './components/LoginWithEmailWalletList/LoginWithEmailWalletList.js';
|
|
25
|
+
import { SocialSignIn } from './components/SocialSignIn/SocialSignIn.js';
|
|
23
26
|
|
|
24
27
|
const LoginWithEmailView = () => {
|
|
25
28
|
var _a;
|
|
26
29
|
const { error } = useErrorContext();
|
|
27
|
-
const { authorizationViewDisplayOrder, wallets, projectSettings } = useInternalDynamicContext();
|
|
28
|
-
const {
|
|
30
|
+
const { authorizationViewDisplayOrder, wallets, projectSettings, walletsFilter, signWithEmailWalletName, loginWithEmail, } = useInternalDynamicContext();
|
|
31
|
+
const { enabledSocialProviders } = useSocialRedirectContext();
|
|
29
32
|
const { numberOfWallets, walletsList } = walletListBuilder({
|
|
30
33
|
inputList: wallets,
|
|
31
34
|
isWalletConnectList: false,
|
|
@@ -36,14 +39,15 @@ const LoginWithEmailView = () => {
|
|
|
36
39
|
signWithEmailWalletName,
|
|
37
40
|
walletsFilter,
|
|
38
41
|
});
|
|
39
|
-
const
|
|
42
|
+
const isWeb2Priority = isDisplayOrderPriorityForWeb2(authorizationViewDisplayOrder);
|
|
43
|
+
const dividerText = isWeb2Priority
|
|
40
44
|
? 'Or continue with a wallet'
|
|
41
45
|
: 'Or continue with';
|
|
42
46
|
return (jsxs("div", Object.assign({ className: 'login-with-email__container' }, { children: [error && jsx(ErrorContainer, { children: error }), jsxs("div", Object.assign({ className: classNames('login-with-email__scroll', {
|
|
43
|
-
'login-with-email__scroll--email-first':
|
|
47
|
+
'login-with-email__scroll--email-first': isWeb2Priority,
|
|
44
48
|
}), "data-testid": 'login-with-email-scroll' }, { children: [numberOfWallets &&
|
|
45
49
|
walletsList.length &&
|
|
46
|
-
!((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _a === void 0 ? void 0 : _a.emailOnly) ? (jsxs(Fragment, { children: [jsx(LoginWithEmailWalletList, { walletsList: walletsList, numberOfWallets: numberOfWallets }), jsx(Divider, { text: dividerText })] })) : null, jsx(LoginWithEmailForm, {})] }))] })));
|
|
50
|
+
!((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design.modal) === null || _a === void 0 ? void 0 : _a.emailOnly) ? (jsxs(Fragment, { children: [jsx(LoginWithEmailWalletList, { walletsList: walletsList, numberOfWallets: numberOfWallets }), jsx(Divider, { text: dividerText })] })) : null, jsxs("div", Object.assign({ className: 'login-with-email__scroll__web2' }, { children: [jsx(LoginWithEmailForm, {}), enabledSocialProviders.length > 0 && jsx(SocialSignIn, {})] }))] }))] })));
|
|
47
51
|
};
|
|
48
52
|
|
|
49
53
|
export { LoginWithEmailView };
|
|
@@ -10,6 +10,7 @@ var stroke = require('../../../../shared/assets/stroke.cjs');
|
|
|
10
10
|
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../../../shared/logger.cjs');
|
|
13
|
+
require('../../../../config/LSSuffix.cjs');
|
|
13
14
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
15
|
require('@dynamic-labs/utils');
|
|
15
16
|
require('../../../../utils/constants/colors.cjs');
|
|
@@ -28,12 +29,18 @@ require('../../../../components/Transition/OpacityTransition/OpacityTransition.c
|
|
|
28
29
|
require('../../../../config/ApiEndpoint.cjs');
|
|
29
30
|
require('@dynamic-labs/rpc-providers');
|
|
30
31
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
32
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
|
+
require('../../../../components/IconButton/IconButton.cjs');
|
|
34
|
+
require('@dynamic-labs/wallet-book');
|
|
35
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
31
36
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
32
37
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
33
38
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
34
|
-
require('../../../../components/IconButton/IconButton.cjs');
|
|
35
39
|
var ListTile = require('../../../../components/ListTile/ListTile.cjs');
|
|
36
|
-
require('../../../../components/
|
|
40
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
41
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
|
+
require('formik');
|
|
43
|
+
require('yup');
|
|
37
44
|
var Badge = require('../../../../components/Badge/Badge.cjs');
|
|
38
45
|
|
|
39
46
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|
|
@@ -6,6 +6,7 @@ import { ReactComponent as SvgStroke } from '../../../../shared/assets/stroke.js
|
|
|
6
6
|
import { classNames } from '../../../../utils/functions/classNames/classNames.js';
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../../../shared/logger.js';
|
|
9
|
+
import '../../../../config/LSSuffix.js';
|
|
9
10
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
11
|
import '@dynamic-labs/utils';
|
|
11
12
|
import '../../../../utils/constants/colors.js';
|
|
@@ -24,12 +25,18 @@ import '../../../../components/Transition/OpacityTransition/OpacityTransition.js
|
|
|
24
25
|
import '../../../../config/ApiEndpoint.js';
|
|
25
26
|
import '@dynamic-labs/rpc-providers';
|
|
26
27
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
28
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
|
+
import '../../../../components/IconButton/IconButton.js';
|
|
30
|
+
import '@dynamic-labs/wallet-book';
|
|
31
|
+
import '../../../../components/Alert/Alert.js';
|
|
27
32
|
import '../../../../context/MockContext/MockContext.js';
|
|
28
33
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
29
34
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
30
|
-
import '../../../../components/IconButton/IconButton.js';
|
|
31
35
|
import { ListTile } from '../../../../components/ListTile/ListTile.js';
|
|
32
|
-
import '../../../../components/
|
|
36
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
37
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
38
|
+
import 'formik';
|
|
39
|
+
import 'yup';
|
|
33
40
|
import { Badge } from '../../../../components/Badge/Badge.js';
|
|
34
41
|
|
|
35
42
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|