@dynamic-labs/sdk-react-core 0.18.0-RC.2 → 0.18.0-RC.20
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 +293 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +22 -8
- package/src/index.d.ts +1 -0
- package/src/index.js +10 -2
- package/src/lib/Main.cjs +50 -9
- package/src/lib/Main.js +50 -9
- package/src/lib/assets/index.d.ts +1 -0
- package/src/lib/assets/no-wallet-found.cjs +75 -0
- package/src/lib/assets/no-wallet-found.js +51 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +8 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +9 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.types.d.ts +1 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +3 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -1
- package/src/lib/components/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.js +1 -1
- package/src/lib/components/Button/Button.cjs +12 -4
- package/src/lib/components/Button/Button.d.ts +3 -2
- package/src/lib/components/Button/Button.js +12 -4
- package/src/lib/components/ChainCard/ChainCard.cjs +11 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +4 -2
- package/src/lib/components/ChainCard/ChainCard.js +7 -0
- package/src/lib/components/Divider/Divider.cjs +3 -1
- package/src/lib/components/Divider/Divider.js +3 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -5
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +1 -9
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -4
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +11 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +9 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +7 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -2
- package/src/lib/components/InlineWidget/InlineWidget.cjs +12 -0
- package/src/lib/components/InlineWidget/InlineWidget.d.ts +7 -0
- package/src/lib/components/InlineWidget/InlineWidget.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs +12 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/components/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/index.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.cjs +9 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.js +5 -0
- package/src/lib/components/LegacySafariCssOverrides/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +17 -3
- package/src/lib/components/LogoutButton/LogoutButton.js +17 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +85 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.d.ts +16 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +81 -0
- package/src/lib/components/MenuList/Dropdown/index.d.ts +1 -0
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +34 -0
- package/src/lib/components/MenuList/MenuList/MenuList.d.ts +15 -0
- package/src/lib/components/MenuList/MenuList/MenuList.js +30 -0
- package/src/lib/components/MenuList/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/utils/index.d.ts +1 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +6 -1
- package/src/lib/components/MenuList/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +5 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +6 -1
- package/src/lib/components/Modal/Modal.cjs +38 -1
- package/src/lib/components/Modal/Modal.d.ts +3 -0
- package/src/lib/components/Modal/Modal.js +38 -1
- package/src/lib/components/ModalCard/ModalCard.cjs +4 -1
- package/src/lib/components/ModalCard/ModalCard.d.ts +6 -1
- package/src/lib/components/ModalCard/ModalCard.js +4 -1
- package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +33 -11
- package/src/lib/components/NetworkPicker/NetworkPicker.js +33 -11
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +6 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +6 -2
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.cjs +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.js +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +0 -5
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +1 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +0 -5
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +5 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +5 -4
- package/src/lib/components/OverlayCard/OverlayCard.cjs +12 -12
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +4 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +13 -12
- package/src/lib/components/Popper/Popper/Popper.cjs +12 -12
- package/src/lib/components/Popper/Popper/Popper.d.ts +7 -4
- package/src/lib/components/Popper/Popper/Popper.js +12 -12
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +1 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +2 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.js +1 -1
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +0 -1
- package/src/lib/components/Portal/Portal.cjs +5 -3
- package/src/lib/components/Portal/Portal.js +5 -3
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +9 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +9 -1
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.cjs +12 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -2
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +8 -0
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +4 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +4 -2
- package/src/lib/components/Step/Step.cjs +35 -3
- package/src/lib/components/Step/Step.d.ts +3 -3
- package/src/lib/components/Step/Step.js +36 -4
- package/src/lib/components/Toolkit/Toolkit.cjs +3 -3
- package/src/lib/components/Toolkit/Toolkit.js +3 -3
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +18 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +8 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +14 -0
- package/src/lib/components/Toolkit/components/index.d.ts +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +4 -2
- package/src/lib/components/Tooltip/Tooltip.js +4 -2
- package/src/lib/components/TosAndPp/TosAndPp.cjs +21 -5
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +1 -7
- package/src/lib/components/TosAndPp/TosAndPp.js +22 -6
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +4 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +4 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +3 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +3 -1
- package/src/lib/components/Transition/transition.type.d.ts +3 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +31 -2
- package/src/lib/components/UserAddress/UserAddress.d.ts +4 -2
- package/src/lib/components/UserAddress/UserAddress.js +31 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +4 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +4 -2
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +33 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +11 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +29 -0
- package/src/lib/components/WalletInformationCard/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +3 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +199 -84
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +13 -124
- package/src/lib/context/DynamicContext/DynamicContext.js +201 -87
- package/src/lib/context/DynamicContext/helpers.cjs +16 -3
- package/src/lib/context/DynamicContext/helpers.d.ts +8 -0
- package/src/lib/context/DynamicContext/helpers.js +16 -4
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +144 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +7 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +10 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +10 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/utils/disableAuthVerificationFlag/disableAuthVerificationFlag.cjs +27 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/utils/disableAuthVerificationFlag/disableAuthVerificationFlag.d.ts +3 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/utils/disableAuthVerificationFlag/disableAuthVerificationFlag.js +23 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/utils/disableAuthVerificationFlag/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/utils/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +9 -3
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +4 -2
- package/src/lib/context/DynamicContext/useDynamicContext.js +9 -3
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +1 -1
- package/src/lib/context/ErrorContext/ErrorContext.cjs +6 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +13 -1
- package/src/lib/context/FundingContext/FundingContext.js +13 -1
- package/src/lib/context/MockContext/MockContext.cjs +2 -14
- package/src/lib/context/MockContext/MockContext.js +2 -14
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +3 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +4 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +4 -2
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +48 -0
- package/src/lib/context/WalletContext/WalletContext.d.ts +7 -0
- package/src/lib/context/WalletContext/WalletContext.js +43 -0
- package/src/lib/context/WalletContext/index.d.ts +1 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +37 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.d.ts +9 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +27 -0
- package/src/lib/data/api.cjs +19 -0
- package/src/lib/data/api.d.ts +4 -0
- package/src/lib/data/api.js +20 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -57
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.d.ts +1 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +21 -58
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +38 -16
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +39 -17
- package/src/lib/layout/DynamicAuthLayout/Header/header.types.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/EmptyFooterContent/empty-footer-content.cjs → HelpContent/EmptyHelpContent/EmptyHelpContent.cjs} +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.js +6 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +36 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +32 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +57 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +53 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.cjs → HelpContent/WalletListHelpContent/WalletListHelpContent.cjs} +11 -5
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.d.ts → HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts} +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.js → HelpContent/WalletListHelpContent/WalletListHelpContent.js} +11 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.cjs +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +7 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.js +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/index.d.ts +4 -0
- package/src/lib/{views/WalletList/SearchInstead/SearchInstead.cjs → layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs} +10 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.d.ts +2 -0
- package/src/lib/{views/WalletList/SearchInstead/SearchInstead.js → layout/DynamicAuthLayout/ToSFooter/ToSFooter.js} +11 -5
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +60 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +56 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.cjs +18 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.d.ts +3 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.js +14 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/index.d.ts +1 -0
- package/src/lib/layouts/{SelectWalletListLayout/SelectWalletListLayout.cjs → BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs} +7 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/{SelectWalletListLayout/SelectWalletListLayout.js → BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js} +7 -6
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +5 -3
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +5 -3
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -1
- package/src/lib/modals/index.d.ts +0 -1
- package/src/lib/shared/assets/chevron-left.cjs +5 -5
- package/src/lib/shared/assets/chevron-left.js +5 -5
- package/src/lib/shared/assets/close.cjs +5 -5
- package/src/lib/shared/assets/close.js +5 -5
- package/src/lib/shared/assets/footer-info-icon.cjs +2 -2
- package/src/lib/shared/assets/footer-info-icon.js +2 -2
- package/src/lib/shared/assets/index.d.ts +2 -0
- package/src/lib/shared/assets/key.cjs +53 -0
- package/src/lib/shared/assets/key.js +29 -0
- package/src/lib/shared/assets/question-mark.cjs +58 -0
- package/src/lib/shared/assets/question-mark.js +34 -0
- package/src/lib/shared/types/index.d.ts +8 -1
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +45 -7
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +17 -2
- package/src/lib/shared/utils/classes/storage/localStorage.js +45 -7
- package/src/lib/shared/utils/hooks/index.d.ts +3 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.cjs +27 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.d.ts +17 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.js +23 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.cjs +25 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.d.ts +2 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.js +21 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +6 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +3 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +6 -1
- package/src/lib/shared/utils/hooks/useMediaQuery/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.cjs +31 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.js +27 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +3 -1
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/constants/onrampProviders.cjs +7 -0
- package/src/lib/utils/constants/onrampProviders.d.ts +1 -0
- package/src/lib/utils/constants/onrampProviders.js +3 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +1 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +3 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +3 -3
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +7 -27
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.d.ts +3 -4
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +8 -28
- package/src/lib/utils/functions/getMissingChains/getMissingChains.cjs +16 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.d.ts +3 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.js +12 -0
- package/src/lib/utils/functions/getMissingChains/index.d.ts +1 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs +12 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +3 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js +8 -0
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs +3 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.js +3 -1
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +4 -2
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +4 -2
- package/src/lib/utils/functions/isOnrampProvider/index.d.ts +1 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.cjs +9 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.d.ts +2 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.js +5 -0
- package/src/lib/utils/functions/isProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.cjs +7 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.js +3 -0
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +2 -2
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.d.ts +1 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +2 -2
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +8 -8
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +8 -8
- package/src/lib/utils/functions/storeAuthToken/index.cjs +1 -3
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -3
- package/src/lib/utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.d.ts +2 -4
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +1 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +32 -6
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +33 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +13 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +13 -2
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +16 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +16 -0
- package/src/lib/utils/hooks/index.d.ts +6 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +17 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +8 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +13 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +24 -5
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +24 -5
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +8 -11
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +8 -11
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.cjs +29 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.d.ts +5 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.js +25 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +84 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +11 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +80 -0
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +16 -3
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +16 -3
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +16 -18
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +16 -18
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +128 -86
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +27 -13
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +129 -87
- package/src/lib/utils/hooks/useConnectWithEmail/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +6 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +1 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +6 -4
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +11 -18
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +11 -18
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +69 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +65 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.cjs +39 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.d.ts +11 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.js +35 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +5 -4
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +5 -4
- package/src/lib/utils/hooks/useDynamicScopes/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +40 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +36 -0
- package/src/lib/utils/hooks/useEmailProvider/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +54 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.d.ts +10 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +50 -0
- package/src/lib/utils/hooks/useEventListener/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.cjs +25 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.js +21 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.d.ts +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +3 -2
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +6 -10
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +7 -11
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +20 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +20 -5
- package/src/lib/utils/hooks/useInterval/useInterval.d.ts +1 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +10 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +6 -0
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +6 -8
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +7 -9
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +74 -17
- package/src/lib/utils/hooks/usePromise/usePromise.d.ts +18 -1
- package/src/lib/utils/hooks/usePromise/usePromise.js +75 -18
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +6 -28
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +7 -29
- package/src/lib/utils/hooks/useTimeout/useTimeout.cjs +27 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.d.ts +1 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.js +23 -0
- package/src/lib/utils/hooks/useTransition/useTransition.cjs +16 -24
- package/src/lib/utils/hooks/useTransition/useTransition.d.ts +3 -3
- package/src/lib/utils/hooks/useTransition/useTransition.js +17 -25
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.cjs +11 -9
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.js +11 -9
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +23 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +8 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +23 -6
- package/src/lib/utils/hooks/useValidateSession/index.d.ts +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +82 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +12 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +78 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +13 -20
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +14 -21
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +12 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +12 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +32 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +5 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +32 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +6 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +6 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +3 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -1
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +10 -1
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +2 -1
- package/src/lib/utils/hooks/useWallets/useWallets.js +11 -2
- package/src/lib/utils/hooks/useWallets/utils/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +35 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.d.ts +6 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +29 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +38 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.d.ts +2 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +34 -0
- package/src/lib/views/BridgeNextWalletConnectionView/index.d.ts +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +44 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.d.ts +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +40 -0
- package/src/lib/views/BridgeSummaryView/index.d.ts +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +48 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.d.ts +2 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +44 -0
- package/src/lib/views/BridgeWelcomeView/index.d.ts +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +4 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +4 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +13 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +13 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +8 -4
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +8 -4
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +5 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +5 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +5 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +5 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +19 -27
- package/src/lib/views/EmailVerification/EmailVerification.js +20 -28
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +5 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +5 -3
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +4 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +28 -52
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +28 -52
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +2 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -2
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +10 -6
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +10 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +27 -22
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +28 -23
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +25 -21
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +25 -21
- package/src/lib/views/NoAccess/NoAccess.cjs +15 -22
- package/src/lib/views/NoAccess/NoAccess.js +15 -22
- package/src/lib/views/NoAccess/useNoAccessText.cjs +93 -0
- package/src/lib/views/NoAccess/useNoAccessText.d.ts +31 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +88 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +5 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +5 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +37 -4
- package/src/lib/views/QrCodeView/QRCode.js +38 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +5 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +1 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +8 -9
- package/src/lib/views/QrCodeView/QrCodeView.js +8 -9
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +15 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +15 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +3 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +21 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.d.ts +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +17 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +55 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +6 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +51 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +48 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +8 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +44 -0
- package/src/lib/views/WalletList/SearchNotFoundMessage/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +10 -9
- package/src/lib/views/WalletList/WalletList.js +11 -10
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +12 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +12 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +1 -2
- package/src/lib/views/WalletList/data.cjs +2 -1
- package/src/lib/views/WalletList/data.js +2 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +64 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.d.ts +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +60 -0
- package/src/lib/views/WalletLockedView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +6 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +6 -1
- package/src/lib/views/viewToComponentMap.cjs +11 -0
- package/src/lib/views/viewToComponentMap.js +11 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +18 -10
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +30 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +31 -10
- package/src/lib/{modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.cjs → widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs} +18 -29
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.d.ts +7 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +56 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +15 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +15 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +11 -11
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.d.ts +6 -6
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +12 -12
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +13 -5
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +15 -7
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +21 -8
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +21 -8
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +5 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -5
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +2 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +7 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +15 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +15 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +3 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +35 -2
- package/src/lib/widgets/DynamicWidget/helpers/helpers.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +35 -3
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +4 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -1
- package/src/polyfills.cjs +1 -2
- package/src/polyfills.js +1 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +0 -70
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.d.ts +0 -12
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +0 -64
- package/src/lib/components/NetworkPicker/components/ActionList/index.d.ts +0 -1
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +0 -1
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.cjs +0 -22
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.d.ts +0 -2
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.js +0 -18
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +0 -66
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.d.ts +0 -10
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +0 -62
- package/src/lib/layout/DynamicAuthLayout/Footer/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.js +0 -6
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +0 -8
- package/src/lib/layout/DynamicAuthLayout/FooterContent/index.d.ts +0 -3
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.cjs +0 -77
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.d.ts +0 -2
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.js +0 -73
- package/src/lib/modals/MultiWalletStepSelectorModal/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.cjs +0 -61
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.d.ts +0 -6
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.js +0 -57
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.cjs +0 -89
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.d.ts +0 -8
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.js +0 -85
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.d.ts +0 -7
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.js +0 -67
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/index.d.ts +0 -1
- package/src/lib/modals/MultiWalletStepSelectorModal/views/index.d.ts +0 -3
- package/src/lib/utils/functions/groupBy/groupBy.cjs +0 -30
- package/src/lib/utils/functions/groupBy/groupBy.js +0 -26
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.cjs +0 -12
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +0 -1
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.js +0 -8
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.d.ts +0 -2
- package/src/lib/views/WalletList/SearchInstead/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +0 -52
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -10
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -44
- /package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/index.d.ts +0 -0
|
@@ -14,7 +14,7 @@ import 'ethers';
|
|
|
14
14
|
import { countryCodes, tShirtSizes, teamNames } from '../../shared/consts/index.js';
|
|
15
15
|
|
|
16
16
|
const fieldsConfig = {
|
|
17
|
-
alias: { label: 'Alias', type: 'string', validation: string() },
|
|
17
|
+
alias: { label: 'Alias', type: 'string', validation: string().trim() },
|
|
18
18
|
country: {
|
|
19
19
|
label: 'Country',
|
|
20
20
|
type: 'select',
|
|
@@ -25,9 +25,13 @@ const fieldsConfig = {
|
|
|
25
25
|
type: 'email',
|
|
26
26
|
validation: string().email('Email is not valid'),
|
|
27
27
|
},
|
|
28
|
-
firstName: {
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
firstName: {
|
|
29
|
+
label: 'First Name',
|
|
30
|
+
type: 'string',
|
|
31
|
+
validation: string().trim(),
|
|
32
|
+
},
|
|
33
|
+
jobTitle: { label: 'Job Title', type: 'string', validation: string().trim() },
|
|
34
|
+
lastName: { label: 'Last Name', type: 'string', validation: string().trim() },
|
|
31
35
|
phoneNumber: {
|
|
32
36
|
label: 'Phone number',
|
|
33
37
|
type: 'string',
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs
CHANGED
|
@@ -28,11 +28,11 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
28
28
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
29
29
|
require('../../config/ApiEndpoint.cjs');
|
|
30
30
|
require('@dynamic-labs/rpc-providers');
|
|
31
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
31
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
32
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
33
34
|
require('../../components/IconButton/IconButton.cjs');
|
|
34
35
|
require('../../components/Alert/Alert.cjs');
|
|
35
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
36
36
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
37
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
38
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -41,6 +41,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
41
41
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
42
|
require('formik');
|
|
43
43
|
require('yup');
|
|
44
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
44
46
|
var OnboardingUserDataForm = require('../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs');
|
|
45
47
|
|
|
46
48
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -51,7 +53,7 @@ const CollectUserDataViewLoginWithEmail = () => {
|
|
|
51
53
|
const userProfile = createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
52
54
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email' }, { children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxRuntime.jsx("div", Object.assign({ className: 'collect-user-data-login-with-email__icon-container' }, { children: jsxRuntime.jsx(iconic.UserProfileIcon, {}) })), jsxRuntime.jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email__form' }, { children: [jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, Object.assign({ userProfile: userProfile }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email__welcome-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title' }, { children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
|
|
53
55
|
`Welcome to ${appName}` })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
|
|
54
|
-
'We need a bit of information to get started' }))] })) })), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'collect-user-data-login-with-email__log-out', onClick:
|
|
56
|
+
'We need a bit of information to get started' }))] })) })), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
exports.CollectUserDataViewLoginWithEmail = CollectUserDataViewLoginWithEmail;
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js
CHANGED
|
@@ -24,11 +24,11 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
24
24
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
25
25
|
import '../../config/ApiEndpoint.js';
|
|
26
26
|
import '@dynamic-labs/rpc-providers';
|
|
27
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
27
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
28
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
29
30
|
import '../../components/IconButton/IconButton.js';
|
|
30
31
|
import '../../components/Alert/Alert.js';
|
|
31
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
32
32
|
import '../../context/MockContext/MockContext.js';
|
|
33
33
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
34
34
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -37,6 +37,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
37
37
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
38
|
import 'formik';
|
|
39
39
|
import 'yup';
|
|
40
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
41
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
40
42
|
import { OnboardingUserDataForm } from '../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js';
|
|
41
43
|
|
|
42
44
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -47,7 +49,7 @@ const CollectUserDataViewLoginWithEmail = () => {
|
|
|
47
49
|
const userProfile = createUserProfile(decodedOnboardingOnlyToken);
|
|
48
50
|
return (jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email' }, { children: [onboardingImageUrl && (jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsx("div", Object.assign({ className: 'collect-user-data-login-with-email__icon-container' }, { children: jsx(UserProfileIcon, {}) })), jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email__form' }, { children: [jsx(OnboardingUserDataForm, Object.assign({ userProfile: userProfile }, { children: jsxs("div", Object.assign({ className: 'collect-user-data-login-with-email__welcome-container' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title' }, { children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
|
|
49
51
|
`Welcome to ${appName}` })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
|
|
50
|
-
'We need a bit of information to get started' }))] })) })), jsx(TextButton, Object.assign({ className: 'collect-user-data-login-with-email__log-out', onClick:
|
|
52
|
+
'We need a bit of information to get started' }))] })) })), jsx(TextButton, Object.assign({ className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
export { CollectUserDataViewLoginWithEmail };
|
|
@@ -30,25 +30,26 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
30
30
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
31
31
|
require('../../config/ApiEndpoint.cjs');
|
|
32
32
|
require('@dynamic-labs/rpc-providers');
|
|
33
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
36
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
36
37
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
37
38
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
38
39
|
require('../../components/Alert/Alert.cjs');
|
|
39
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
40
|
require('../../context/MockContext/MockContext.cjs');
|
|
41
41
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
42
42
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
43
|
-
var TosAndPp = require('../../components/TosAndPp/TosAndPp.cjs');
|
|
44
43
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
45
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
46
45
|
require('formik');
|
|
47
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
48
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
48
49
|
|
|
49
50
|
const EmailConfirmationWaitingView = () => {
|
|
50
51
|
const { setView } = ViewContext.useViewContext();
|
|
51
|
-
const { clearStatesOnBackClick,
|
|
52
|
+
const { clearStatesOnBackClick, selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
|
|
52
53
|
if (walletConnector && !walletConnectorCore.isEmailWalletConnector(walletConnector)) {
|
|
53
54
|
throw new Error('Wallet connector is not email provider');
|
|
54
55
|
}
|
|
@@ -58,7 +59,7 @@ const EmailConfirmationWaitingView = () => {
|
|
|
58
59
|
setView('login-with-email-or-wallet');
|
|
59
60
|
clearStatesOnBackClick();
|
|
60
61
|
}), [setView, emailConnector, clearStatesOnBackClick]);
|
|
61
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__header-icon' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true }) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title' }, { children: "Confirm your email" })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ weight: 'regular', variant: 'body_normal', color: 'secondary' }, { children: ["We\u2019ve sent a verification email to", ' '] })), jsxRuntime.jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view__email-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span' }, { children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email })), jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary' }, { children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) })) }))] })), jsxRuntime.jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__note' }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'regular', variant: 'body_small', color: 'secondary' }, { children: "Note: it might take a few seconds to proceed after clicking the link in your email" })) })), jsxRuntime.jsx(
|
|
62
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__header-icon' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true }) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title' }, { children: "Confirm your email" })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ weight: 'regular', variant: 'body_normal', color: 'secondary' }, { children: ["We\u2019ve sent a verification email to", ' '] })), jsxRuntime.jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view__email-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span' }, { children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email })), jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary' }, { children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) })) }))] })), jsxRuntime.jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__note' }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'regular', variant: 'body_small', color: 'secondary' }, { children: "Note: it might take a few seconds to proceed after clicking the link in your email" })) })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] })));
|
|
62
63
|
};
|
|
63
64
|
|
|
64
65
|
exports.EmailConfirmationWaitingView = EmailConfirmationWaitingView;
|
|
@@ -26,25 +26,26 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
26
26
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
27
27
|
import '../../config/ApiEndpoint.js';
|
|
28
28
|
import '@dynamic-labs/rpc-providers';
|
|
29
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
30
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
32
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
32
33
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
33
34
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
34
35
|
import '../../components/Alert/Alert.js';
|
|
35
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
36
|
import '../../context/MockContext/MockContext.js';
|
|
37
37
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
38
38
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
39
|
-
import { TosAndPp } from '../../components/TosAndPp/TosAndPp.js';
|
|
40
39
|
import '../../components/Popper/Popper/Popper.js';
|
|
41
40
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
42
41
|
import 'formik';
|
|
43
42
|
import 'yup';
|
|
43
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
44
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
44
45
|
|
|
45
46
|
const EmailConfirmationWaitingView = () => {
|
|
46
47
|
const { setView } = useViewContext();
|
|
47
|
-
const { clearStatesOnBackClick,
|
|
48
|
+
const { clearStatesOnBackClick, selectedWalletConnector: walletConnector } = useInternalDynamicContext();
|
|
48
49
|
if (walletConnector && !isEmailWalletConnector(walletConnector)) {
|
|
49
50
|
throw new Error('Wallet connector is not email provider');
|
|
50
51
|
}
|
|
@@ -54,7 +55,7 @@ const EmailConfirmationWaitingView = () => {
|
|
|
54
55
|
setView('login-with-email-or-wallet');
|
|
55
56
|
clearStatesOnBackClick();
|
|
56
57
|
}), [setView, emailConnector, clearStatesOnBackClick]);
|
|
57
|
-
return (jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view' }, { children: [jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__header-icon' }, { children: jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true }) })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title' }, { children: "Confirm your email" })), jsxs(Typography, Object.assign({ weight: 'regular', variant: 'body_normal', color: 'secondary' }, { children: ["We\u2019ve sent a verification email to", ' '] })), jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view__email-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span' }, { children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email })), jsx(IconButton, Object.assign({ onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary' }, { children: jsx(SvgPencilAltIcon, {}) })) }))] })), jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__note' }, { children: jsx(Typography, Object.assign({ weight: 'regular', variant: 'body_small', color: 'secondary' }, { children: "Note: it might take a few seconds to proceed after clicking the link in your email" })) })), jsx(
|
|
58
|
+
return (jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view' }, { children: [jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__header-icon' }, { children: jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true }) })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title' }, { children: "Confirm your email" })), jsxs(Typography, Object.assign({ weight: 'regular', variant: 'body_normal', color: 'secondary' }, { children: ["We\u2019ve sent a verification email to", ' '] })), jsxs("div", Object.assign({ className: 'email-confirmation-waiting-view__email-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span' }, { children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email })), jsx(IconButton, Object.assign({ onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary' }, { children: jsx(SvgPencilAltIcon, {}) })) }))] })), jsx("div", Object.assign({ className: 'email-confirmation-waiting-view__note' }, { children: jsx(Typography, Object.assign({ weight: 'regular', variant: 'body_small', color: 'secondary' }, { children: "Note: it might take a few seconds to proceed after clicking the link in your email" })) })), jsx(PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] })));
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
export { EmailConfirmationWaitingView };
|
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var iconic = require('@dynamic-labs/iconic');
|
|
9
9
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
10
10
|
require('@dynamic-labs/sdk-api');
|
|
11
|
-
require('../../shared/logger.cjs');
|
|
11
|
+
var logger = require('../../shared/logger.cjs');
|
|
12
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
13
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
14
14
|
var chevronLeft = require('../../shared/assets/chevron-left.cjs');
|
|
@@ -30,12 +30,12 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
30
30
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
31
31
|
var api = require('../../data/api.cjs');
|
|
32
32
|
require('@dynamic-labs/rpc-providers');
|
|
33
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
34
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
36
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
36
37
|
var Button = require('../../components/Button/Button.cjs');
|
|
37
38
|
require('../../components/Alert/Alert.cjs');
|
|
38
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
39
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
41
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -43,6 +43,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
43
43
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
44
|
require('formik');
|
|
45
45
|
require('yup');
|
|
46
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
47
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
46
48
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
47
49
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
48
50
|
|
|
@@ -75,6 +77,7 @@ const EmailUpdate = () => {
|
|
|
75
77
|
setVerificationUUID(emailVerification.verificationUUID);
|
|
76
78
|
}
|
|
77
79
|
catch (error) {
|
|
80
|
+
logger.logger.debug(error);
|
|
78
81
|
setErrorMessage(error.code);
|
|
79
82
|
}
|
|
80
83
|
finally {
|
|
@@ -4,7 +4,7 @@ import { useState } from 'react';
|
|
|
4
4
|
import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
|
|
5
5
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
6
6
|
import '@dynamic-labs/sdk-api';
|
|
7
|
-
import '../../shared/logger.js';
|
|
7
|
+
import { logger } from '../../shared/logger.js';
|
|
8
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
9
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
10
10
|
import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
|
|
@@ -26,12 +26,12 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
26
26
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
27
27
|
import { updateUserProfileFields } from '../../data/api.js';
|
|
28
28
|
import '@dynamic-labs/rpc-providers';
|
|
29
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
30
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
30
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
32
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
32
33
|
import { Button } from '../../components/Button/Button.js';
|
|
33
34
|
import '../../components/Alert/Alert.js';
|
|
34
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
35
35
|
import '../../context/MockContext/MockContext.js';
|
|
36
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
37
37
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -39,6 +39,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
39
39
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
40
|
import 'formik';
|
|
41
41
|
import 'yup';
|
|
42
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
43
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
42
44
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
43
45
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
44
46
|
|
|
@@ -71,6 +73,7 @@ const EmailUpdate = () => {
|
|
|
71
73
|
setVerificationUUID(emailVerification.verificationUUID);
|
|
72
74
|
}
|
|
73
75
|
catch (error) {
|
|
76
|
+
logger.debug(error);
|
|
74
77
|
setErrorMessage(error.code);
|
|
75
78
|
}
|
|
76
79
|
finally {
|
|
@@ -13,7 +13,7 @@ require('@dynamic-labs/wallet-connector-core');
|
|
|
13
13
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
14
14
|
var check = require('../../shared/assets/check.cjs');
|
|
15
15
|
var checkCircle = require('../../shared/assets/check-circle.cjs');
|
|
16
|
-
require('../../shared/logger.cjs');
|
|
16
|
+
var logger = require('../../shared/logger.cjs');
|
|
17
17
|
require('@dynamic-labs/wallet-book');
|
|
18
18
|
require('../../utils/constants/colors.cjs');
|
|
19
19
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
@@ -32,6 +32,7 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
32
32
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
33
33
|
var api = require('../../data/api.cjs');
|
|
34
34
|
require('@dynamic-labs/rpc-providers');
|
|
35
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
35
36
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
36
37
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
37
38
|
require('../../components/IconButton/IconButton.cjs');
|
|
@@ -39,36 +40,40 @@ var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs
|
|
|
39
40
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
40
41
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
41
42
|
require('../../components/Alert/Alert.cjs');
|
|
42
|
-
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
43
43
|
require('../../context/MockContext/MockContext.cjs');
|
|
44
44
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
45
45
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
46
|
+
var useCountdown = require('../../utils/hooks/useCountdown/useCountdown.cjs');
|
|
46
47
|
var TextButton = require('../../components/TextButton/TextButton.cjs');
|
|
47
48
|
var ErrorContainer = require('../../components/ErrorContainer/ErrorContainer.cjs');
|
|
48
|
-
var TosAndPp = require('../../components/TosAndPp/TosAndPp.cjs');
|
|
49
49
|
var PinField = require('../../components/PinField/PinField.cjs');
|
|
50
50
|
var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
51
51
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
52
52
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
53
53
|
require('formik');
|
|
54
54
|
require('yup');
|
|
55
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
56
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
55
57
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
56
58
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
57
59
|
var useEmailVerificationRequest = require('../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs');
|
|
58
60
|
var useCreateUserProfileByJWTCallback = require('../../utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs');
|
|
59
61
|
|
|
60
|
-
const
|
|
62
|
+
const SECONDS_TO_RETRY = 15;
|
|
61
63
|
const EmailVerification = () => {
|
|
62
64
|
const [hideRetryButton, setHideRetryButton] = React.useState(false);
|
|
63
|
-
const [count, setCount] = React.useState(secondsToRetry);
|
|
64
65
|
const [retried, setRetried] = React.useState(false);
|
|
65
66
|
const [isValidated, setIsValidated] = React.useState(false);
|
|
66
67
|
const [showTransferMessage, setShowTransferMessage] = React.useState(false);
|
|
67
68
|
const { view, setView, goToInitialView } = ViewContext.useViewContext();
|
|
68
69
|
const { error, setError, setErrorMessage } = ErrorContext.useErrorContext();
|
|
69
|
-
const { environmentId, onboardingOnlyJwt, handleLogOut,
|
|
70
|
+
const { environmentId, onboardingOnlyJwt, handleLogOut, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
70
71
|
const { email, verificationUUID, setVerificationUUID } = EmailVerificationContext.useEmailVerificationContext();
|
|
71
72
|
const { loading, setLoading } = LoadingContext.useLoadingContext();
|
|
73
|
+
const { remainingSeconds, startCountdown } = useCountdown.useCountdown({
|
|
74
|
+
callback: () => setRetried(false),
|
|
75
|
+
seconds: SECONDS_TO_RETRY,
|
|
76
|
+
});
|
|
72
77
|
const isLoginView = view === 'login-with-email-verification';
|
|
73
78
|
const { verifyEmail } = useEmailVerificationRequest.useEmailVerificationRequest();
|
|
74
79
|
const { createUserProfileByJWT } = useCreateUserProfileByJWTCallback.useCreateUserProfileByJWTCallback();
|
|
@@ -93,6 +98,7 @@ const EmailVerification = () => {
|
|
|
93
98
|
setShowAuthFlow(false);
|
|
94
99
|
}
|
|
95
100
|
catch (error) {
|
|
101
|
+
logger.logger.debug(error);
|
|
96
102
|
setErrorMessage(error.code);
|
|
97
103
|
}
|
|
98
104
|
finally {
|
|
@@ -142,15 +148,16 @@ const EmailVerification = () => {
|
|
|
142
148
|
}
|
|
143
149
|
setCallback('authSuccess');
|
|
144
150
|
// this timeout is set to make sure that the user will see success message
|
|
145
|
-
setTimeout(() => {
|
|
146
|
-
createUserProfileByJWT(jwt);
|
|
151
|
+
setTimeout(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
152
|
+
yield createUserProfileByJWT(jwt);
|
|
147
153
|
setShowAuthFlow(false);
|
|
148
|
-
}, 1500);
|
|
154
|
+
}), 1500);
|
|
149
155
|
}
|
|
150
156
|
catch (error) {
|
|
151
157
|
if (error instanceof utils.NoAccessError) {
|
|
152
158
|
setView('no-access');
|
|
153
159
|
}
|
|
160
|
+
logger.logger.debug(error);
|
|
154
161
|
setErrorMessage(error.code);
|
|
155
162
|
}
|
|
156
163
|
finally {
|
|
@@ -183,9 +190,11 @@ const EmailVerification = () => {
|
|
|
183
190
|
});
|
|
184
191
|
setVerificationUUID(newVerificationUUID);
|
|
185
192
|
setRetried(true);
|
|
193
|
+
startCountdown();
|
|
186
194
|
setError(undefined);
|
|
187
195
|
}
|
|
188
196
|
catch (error) {
|
|
197
|
+
logger.logger.debug(error);
|
|
189
198
|
setErrorMessage(error.code);
|
|
190
199
|
if (error.code === 'too_many_email_verification_attempts') {
|
|
191
200
|
setHideRetryButton(true);
|
|
@@ -198,26 +207,9 @@ const EmailVerification = () => {
|
|
|
198
207
|
setLoading(false);
|
|
199
208
|
}
|
|
200
209
|
});
|
|
201
|
-
React.useEffect(() => {
|
|
202
|
-
/* istanbul ignore next */
|
|
203
|
-
setCount(secondsToRetry);
|
|
204
|
-
const timeout = setTimeout(() => {
|
|
205
|
-
if (retried)
|
|
206
|
-
setRetried(false);
|
|
207
|
-
}, secondsToRetry * 1000);
|
|
208
|
-
return () => clearTimeout(timeout);
|
|
209
|
-
}, [retried]);
|
|
210
|
-
React.useEffect(() => {
|
|
211
|
-
/* istanbul ignore next */
|
|
212
|
-
const timeout = setTimeout(() => {
|
|
213
|
-
if (count)
|
|
214
|
-
setCount((prev) => prev - 1);
|
|
215
|
-
}, 1000);
|
|
216
|
-
return () => clearTimeout(timeout);
|
|
217
|
-
}, [count]);
|
|
218
210
|
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({
|
|
219
211
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
220
|
-
}), 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 ",
|
|
212
|
+
}), 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 ", remainingSeconds] })), 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" }))), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {})] })));
|
|
221
213
|
};
|
|
222
214
|
|
|
223
215
|
exports.EmailVerification = EmailVerification;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { useState, useCallback
|
|
3
|
+
import { useState, useCallback } from 'react';
|
|
4
4
|
import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
|
|
5
5
|
import { NoAccessError } from '@dynamic-labs/utils';
|
|
6
6
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
@@ -9,7 +9,7 @@ import '@dynamic-labs/wallet-connector-core';
|
|
|
9
9
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
10
10
|
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
11
11
|
import { ReactComponent as SvgCheckCircle } from '../../shared/assets/check-circle.js';
|
|
12
|
-
import '../../shared/logger.js';
|
|
12
|
+
import { logger } from '../../shared/logger.js';
|
|
13
13
|
import '@dynamic-labs/wallet-book';
|
|
14
14
|
import '../../utils/constants/colors.js';
|
|
15
15
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
@@ -28,6 +28,7 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
28
28
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
29
29
|
import { signInWithEmailVerification, retryEmailVerification } from '../../data/api.js';
|
|
30
30
|
import '@dynamic-labs/rpc-providers';
|
|
31
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
31
32
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
32
33
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
33
34
|
import '../../components/IconButton/IconButton.js';
|
|
@@ -35,36 +36,40 @@ import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.j
|
|
|
35
36
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
36
37
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
37
38
|
import '../../components/Alert/Alert.js';
|
|
38
|
-
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
39
39
|
import '../../context/MockContext/MockContext.js';
|
|
40
40
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
41
41
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
42
|
+
import { useCountdown } from '../../utils/hooks/useCountdown/useCountdown.js';
|
|
42
43
|
import { TextButton } from '../../components/TextButton/TextButton.js';
|
|
43
44
|
import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
|
|
44
|
-
import { TosAndPp } from '../../components/TosAndPp/TosAndPp.js';
|
|
45
45
|
import { PinField } from '../../components/PinField/PinField.js';
|
|
46
46
|
import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
47
47
|
import '../../components/Popper/Popper/Popper.js';
|
|
48
48
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
49
49
|
import 'formik';
|
|
50
50
|
import 'yup';
|
|
51
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
52
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
51
53
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
52
54
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
53
55
|
import { useEmailVerificationRequest } from '../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js';
|
|
54
56
|
import { useCreateUserProfileByJWTCallback } from '../../utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js';
|
|
55
57
|
|
|
56
|
-
const
|
|
58
|
+
const SECONDS_TO_RETRY = 15;
|
|
57
59
|
const EmailVerification = () => {
|
|
58
60
|
const [hideRetryButton, setHideRetryButton] = useState(false);
|
|
59
|
-
const [count, setCount] = useState(secondsToRetry);
|
|
60
61
|
const [retried, setRetried] = useState(false);
|
|
61
62
|
const [isValidated, setIsValidated] = useState(false);
|
|
62
63
|
const [showTransferMessage, setShowTransferMessage] = useState(false);
|
|
63
64
|
const { view, setView, goToInitialView } = useViewContext();
|
|
64
65
|
const { error, setError, setErrorMessage } = useErrorContext();
|
|
65
|
-
const { environmentId, onboardingOnlyJwt, handleLogOut,
|
|
66
|
+
const { environmentId, onboardingOnlyJwt, handleLogOut, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext();
|
|
66
67
|
const { email, verificationUUID, setVerificationUUID } = useEmailVerificationContext();
|
|
67
68
|
const { loading, setLoading } = useLoadingContext();
|
|
69
|
+
const { remainingSeconds, startCountdown } = useCountdown({
|
|
70
|
+
callback: () => setRetried(false),
|
|
71
|
+
seconds: SECONDS_TO_RETRY,
|
|
72
|
+
});
|
|
68
73
|
const isLoginView = view === 'login-with-email-verification';
|
|
69
74
|
const { verifyEmail } = useEmailVerificationRequest();
|
|
70
75
|
const { createUserProfileByJWT } = useCreateUserProfileByJWTCallback();
|
|
@@ -89,6 +94,7 @@ const EmailVerification = () => {
|
|
|
89
94
|
setShowAuthFlow(false);
|
|
90
95
|
}
|
|
91
96
|
catch (error) {
|
|
97
|
+
logger.debug(error);
|
|
92
98
|
setErrorMessage(error.code);
|
|
93
99
|
}
|
|
94
100
|
finally {
|
|
@@ -138,15 +144,16 @@ const EmailVerification = () => {
|
|
|
138
144
|
}
|
|
139
145
|
setCallback('authSuccess');
|
|
140
146
|
// this timeout is set to make sure that the user will see success message
|
|
141
|
-
setTimeout(() => {
|
|
142
|
-
createUserProfileByJWT(jwt);
|
|
147
|
+
setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
148
|
+
yield createUserProfileByJWT(jwt);
|
|
143
149
|
setShowAuthFlow(false);
|
|
144
|
-
}, 1500);
|
|
150
|
+
}), 1500);
|
|
145
151
|
}
|
|
146
152
|
catch (error) {
|
|
147
153
|
if (error instanceof NoAccessError) {
|
|
148
154
|
setView('no-access');
|
|
149
155
|
}
|
|
156
|
+
logger.debug(error);
|
|
150
157
|
setErrorMessage(error.code);
|
|
151
158
|
}
|
|
152
159
|
finally {
|
|
@@ -179,9 +186,11 @@ const EmailVerification = () => {
|
|
|
179
186
|
});
|
|
180
187
|
setVerificationUUID(newVerificationUUID);
|
|
181
188
|
setRetried(true);
|
|
189
|
+
startCountdown();
|
|
182
190
|
setError(undefined);
|
|
183
191
|
}
|
|
184
192
|
catch (error) {
|
|
193
|
+
logger.debug(error);
|
|
185
194
|
setErrorMessage(error.code);
|
|
186
195
|
if (error.code === 'too_many_email_verification_attempts') {
|
|
187
196
|
setHideRetryButton(true);
|
|
@@ -194,26 +203,9 @@ const EmailVerification = () => {
|
|
|
194
203
|
setLoading(false);
|
|
195
204
|
}
|
|
196
205
|
});
|
|
197
|
-
useEffect(() => {
|
|
198
|
-
/* istanbul ignore next */
|
|
199
|
-
setCount(secondsToRetry);
|
|
200
|
-
const timeout = setTimeout(() => {
|
|
201
|
-
if (retried)
|
|
202
|
-
setRetried(false);
|
|
203
|
-
}, secondsToRetry * 1000);
|
|
204
|
-
return () => clearTimeout(timeout);
|
|
205
|
-
}, [retried]);
|
|
206
|
-
useEffect(() => {
|
|
207
|
-
/* istanbul ignore next */
|
|
208
|
-
const timeout = setTimeout(() => {
|
|
209
|
-
if (count)
|
|
210
|
-
setCount((prev) => prev - 1);
|
|
211
|
-
}, 1000);
|
|
212
|
-
return () => clearTimeout(timeout);
|
|
213
|
-
}, [count]);
|
|
214
206
|
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({
|
|
215
207
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
216
|
-
}), 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 ",
|
|
208
|
+
}), 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 ", remainingSeconds] })), 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" }))), jsx(PoweredByDynamic, {})] })));
|
|
217
209
|
};
|
|
218
210
|
|
|
219
211
|
export { EmailVerification };
|
|
@@ -19,6 +19,7 @@ require('ethers');
|
|
|
19
19
|
require('../../shared/consts/index.cjs');
|
|
20
20
|
require('@dynamic-labs/multi-wallet');
|
|
21
21
|
require('@dynamic-labs/rpc-providers');
|
|
22
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
22
23
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
23
24
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
24
25
|
require('react-dom');
|
|
@@ -35,7 +36,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
35
36
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
37
|
require('formik');
|
|
37
38
|
require('yup');
|
|
38
|
-
require('../../
|
|
39
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
40
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
39
41
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
42
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
43
|
var useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
|
|
@@ -44,7 +46,7 @@ require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
|
44
46
|
const EmailWalletOTPVerificationView = () => {
|
|
45
47
|
const { setView } = ViewContext.useViewContext();
|
|
46
48
|
const [error, setError] = React.useState();
|
|
47
|
-
const { selectedWalletConnector: emailWalletConnector,
|
|
49
|
+
const { selectedWalletConnector: emailWalletConnector, clearStatesOnBackClick, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
48
50
|
if (!emailWalletConnector ||
|
|
49
51
|
!walletConnectorCore.isEmailOTPWalletConnector(emailWalletConnector)) {
|
|
50
52
|
throw new Error('Current wallet is not EmailWalletConnector');
|
|
@@ -61,7 +63,7 @@ const EmailWalletOTPVerificationView = () => {
|
|
|
61
63
|
const { data: isValid, isLoading, mutate: onSubmit, } = useMutation.useMutation((otp) => emailWalletConnector.verifyOneTimePassword(otp), {
|
|
62
64
|
onFailure: (error) => setError(error),
|
|
63
65
|
});
|
|
64
|
-
return (jsxRuntime.jsx(OTPVerificationView.OTPVerificationView, { email: email, error: error, onClickBack: handleBackClick, isLoading: isLoading, onPinComplete: onSubmit, isValid: isValid === true,
|
|
66
|
+
return (jsxRuntime.jsx(OTPVerificationView.OTPVerificationView, { email: email, error: error, onClickBack: handleBackClick, isLoading: isLoading, onPinComplete: onSubmit, isValid: isValid === true, onPinChange: () => setError(undefined), onClickEditEmail: handleBackClick, displayPoweredByDynamic: true }));
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
exports.EmailWalletOTPVerificationView = EmailWalletOTPVerificationView;
|