@dynamic-labs/sdk-react-core 0.18.0-RC.9 → 0.18.0-beta.28
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 +254 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +11 -0
- package/src/index.d.ts +3 -1
- package/src/index.js +7 -0
- package/src/lib/Main.cjs +52 -8
- package/src/lib/Main.js +52 -8
- 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 +3 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +3 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +3 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -0
- 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 +1 -1
- package/src/lib/components/ChainCard/ChainCard.js +1 -1
- package/src/lib/components/Divider/Divider.cjs +3 -0
- package/src/lib/components/Divider/Divider.js +3 -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 +86 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.d.ts +16 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +82 -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 +3 -0
- package/src/lib/components/Modal/Modal.js +3 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +12 -13
- package/src/lib/components/NetworkPicker/NetworkPicker.js +12 -13
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +3 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +3 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +3 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +12 -11
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +4 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +13 -11
- 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/PopperContext/PopperContext.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 -2
- package/src/lib/components/Portal/Portal.js +5 -2
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +9 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +9 -1
- 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 +23 -2
- package/src/lib/components/Step/Step.d.ts +2 -3
- package/src/lib/components/Step/Step.js +24 -3
- 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 +3 -0
- package/src/lib/components/Tooltip/Tooltip.js +3 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +18 -3
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +1 -6
- package/src/lib/components/TosAndPp/TosAndPp.js +19 -4
- 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 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +4 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +3 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +3 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +4 -1
- package/src/lib/components/UserAddress/UserAddress.js +4 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +6 -14
- package/src/lib/components/UserProfile/UserProfile.js +6 -14
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +15 -64
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.d.ts +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +15 -64
- 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/AccountExistsContext/AccountExistsContext.cjs +27 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.d.ts +17 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.js +21 -0
- package/src/lib/context/AccountExistsContext/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +156 -76
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +13 -131
- package/src/lib/context/DynamicContext/DynamicContext.js +157 -78
- package/src/lib/context/DynamicContext/helpers.cjs +6 -5
- package/src/lib/context/DynamicContext/helpers.d.ts +4 -2
- package/src/lib/context/DynamicContext/helpers.js +6 -5
- package/src/lib/context/DynamicContext/hooks/index.d.ts +4 -1
- 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/hooks/useVerificationInProgress/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +33 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +29 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +146 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +7 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +3 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +3 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +9 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +9 -3
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +8 -3
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +2 -2
- package/src/lib/context/DynamicContext/useDynamicContext.js +8 -3
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +1 -1
- 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 +36 -2
- package/src/lib/context/MockContext/MockContext.d.ts +1 -1
- package/src/lib/context/MockContext/MockContext.js +36 -2
- package/src/lib/context/MockContext/constants/index.cjs +64 -0
- package/src/lib/context/MockContext/constants/index.d.ts +2 -0
- package/src/lib/context/MockContext/constants/index.js +60 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +3 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +5 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -3
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +4 -1
- package/src/lib/context/WalletContext/WalletContext.js +4 -1
- package/src/lib/data/api.cjs +27 -0
- package/src/lib/data/api.d.ts +4 -0
- package/src/lib/data/api.js +28 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +6 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +6 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +7 -4
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +7 -4
- 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/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +54 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +50 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +5 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +5 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -0
- package/src/lib/shared/types/index.d.ts +6 -2
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +36 -24
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +16 -3
- package/src/lib/shared/utils/classes/storage/localStorage.js +37 -25
- package/src/lib/shared/utils/hooks/index.d.ts +2 -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/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 +10 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +10 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +3 -3
- package/src/lib/utils/functions/generateMessages/index.d.ts +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +3 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +2 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.cjs +1 -1
- package/src/lib/utils/functions/getMissingChains/getMissingChains.d.ts +1 -1
- package/src/lib/utils/functions/getMissingChains/getMissingChains.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +2 -2
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +3 -3
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +2 -2
- 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 +1 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +1 -0
- 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/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/isSocialKycEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.cjs +7 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.js +3 -0
- 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/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 +17 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +18 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +11 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +11 -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 +5 -2
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +5 -2
- package/src/lib/utils/hooks/index.d.ts +2 -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 +22 -5
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +22 -5
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +9 -11
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +9 -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/useAuthLayoutChecks.cjs +13 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +13 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +124 -83
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +14 -10
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +126 -85
- 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 +13 -23
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +13 -23
- 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/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -3
- 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/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +10 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +10 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +17 -2
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +17 -2
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +92 -32
- package/src/lib/utils/hooks/usePromise/usePromise.d.ts +33 -6
- package/src/lib/utils/hooks/usePromise/usePromise.js +93 -33
- package/src/lib/utils/hooks/usePromise/usePromise.types.d.ts +9 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.cjs +18 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.d.ts +13 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.js +14 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/index.d.ts +1 -0
- package/src/lib/utils/hooks/usePromise/utils/index.d.ts +2 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/index.d.ts +1 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +32 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.d.ts +5 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +28 -0
- package/src/lib/utils/hooks/useSocialAccounts/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +159 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +10 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +155 -0
- 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 +32 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +8 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +33 -7
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +3 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +3 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +18 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +19 -4
- 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 +31 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +5 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +31 -4
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +7 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +7 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +3 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +73 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.d.ts +2 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.js +69 -0
- package/src/lib/views/AccountExistsView/index.d.ts +1 -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 +17 -12
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +17 -12
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +2 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +2 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +5 -3
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +5 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +13 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +13 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -0
- 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 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +3 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +3 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +13 -4
- package/src/lib/views/EmailVerification/EmailVerification.js +14 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +3 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +3 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +3 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +3 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +27 -51
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +27 -51
- 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 -5
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +10 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +23 -21
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +24 -22
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +27 -27
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +27 -27
- package/src/lib/views/NoAccess/NoAccess.cjs +14 -20
- package/src/lib/views/NoAccess/NoAccess.js +14 -20
- 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 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +3 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +3 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +3 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +3 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +3 -0
- package/src/lib/views/QrCodeView/QRCode.js +3 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +5 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +5 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +3 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +3 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +4 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +4 -1
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.cjs → SearchNotFoundMessage/SearchNotFoundMessage.cjs} +6 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +8 -0
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.js → SearchNotFoundMessage/SearchNotFoundMessage.js} +6 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +4 -3
- package/src/lib/views/WalletList/WalletList.js +4 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +5 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +5 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +1 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +4 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +4 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +8 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.js +8 -2
- package/src/lib/views/viewToComponentMap.cjs +5 -0
- package/src/lib/views/viewToComponentMap.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +18 -7
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +30 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +31 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +3 -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 +16 -10
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +16 -10
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +14 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +8 -5
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +8 -5
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +4 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +6 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +6 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +3 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +17 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +17 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +3 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -0
- 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/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 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.cjs +0 -57
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.js +0 -53
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.cjs +0 -58
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.js +0 -54
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/index.d.ts +0 -1
- /package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/index.d.ts +0 -0
|
@@ -35,6 +35,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
35
35
|
require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
36
36
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
37
37
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
38
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
38
39
|
require('../../../components/IconButton/IconButton.cjs');
|
|
39
40
|
require('../../../components/Alert/Alert.cjs');
|
|
40
41
|
require('../../../context/MockContext/MockContext.cjs');
|
|
@@ -43,6 +44,8 @@ require('../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
|
43
44
|
require('../../../components/Popper/Popper/Popper.cjs');
|
|
44
45
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
46
|
require('yup');
|
|
47
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
48
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
46
49
|
var fieldsConfig = require('../fieldsConfig.cjs');
|
|
47
50
|
var getDisplayErrorMessage = require('./utils/getDisplayErrorMessage/getDisplayErrorMessage.cjs');
|
|
48
51
|
|
|
@@ -31,6 +31,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
31
31
|
import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
32
32
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
33
33
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
34
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
34
35
|
import '../../../components/IconButton/IconButton.js';
|
|
35
36
|
import '../../../components/Alert/Alert.js';
|
|
36
37
|
import '../../../context/MockContext/MockContext.js';
|
|
@@ -39,6 +40,8 @@ import '../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
|
39
40
|
import '../../../components/Popper/Popper/Popper.js';
|
|
40
41
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
41
42
|
import 'yup';
|
|
43
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
44
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
42
45
|
import { fieldsConfig } from '../fieldsConfig.js';
|
|
43
46
|
import { getDisplayErrorMessage } from './utils/getDisplayErrorMessage/getDisplayErrorMessage.js';
|
|
44
47
|
|
|
@@ -18,7 +18,7 @@ require('ethers');
|
|
|
18
18
|
var index = require('../../shared/consts/index.cjs');
|
|
19
19
|
|
|
20
20
|
const fieldsConfig = {
|
|
21
|
-
alias: { label: 'Alias', type: 'string', validation: yup.string() },
|
|
21
|
+
alias: { label: 'Alias', type: 'string', validation: yup.string().trim() },
|
|
22
22
|
country: {
|
|
23
23
|
label: 'Country',
|
|
24
24
|
type: 'select',
|
|
@@ -29,9 +29,13 @@ const fieldsConfig = {
|
|
|
29
29
|
type: 'email',
|
|
30
30
|
validation: yup.string().email('Email is not valid'),
|
|
31
31
|
},
|
|
32
|
-
firstName: {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
firstName: {
|
|
33
|
+
label: 'First Name',
|
|
34
|
+
type: 'string',
|
|
35
|
+
validation: yup.string().trim(),
|
|
36
|
+
},
|
|
37
|
+
jobTitle: { label: 'Job Title', type: 'string', validation: yup.string().trim() },
|
|
38
|
+
lastName: { label: 'Last Name', type: 'string', validation: yup.string().trim() },
|
|
35
39
|
phoneNumber: {
|
|
36
40
|
label: 'Phone number',
|
|
37
41
|
type: 'string',
|
|
@@ -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
|
@@ -31,6 +31,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
31
31
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
35
|
require('../../components/IconButton/IconButton.cjs');
|
|
35
36
|
require('../../components/Alert/Alert.cjs');
|
|
36
37
|
require('../../context/MockContext/MockContext.cjs');
|
|
@@ -41,6 +42,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
41
42
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
43
|
require('formik');
|
|
43
44
|
require('yup');
|
|
45
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
46
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
44
47
|
var OnboardingUserDataForm = require('../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs');
|
|
45
48
|
|
|
46
49
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -51,7 +54,7 @@ const CollectUserDataViewLoginWithEmail = () => {
|
|
|
51
54
|
const userProfile = createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
52
55
|
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
56
|
`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:
|
|
57
|
+
'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
58
|
};
|
|
56
59
|
|
|
57
60
|
exports.CollectUserDataViewLoginWithEmail = CollectUserDataViewLoginWithEmail;
|
package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js
CHANGED
|
@@ -27,6 +27,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
27
27
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
31
|
import '../../components/IconButton/IconButton.js';
|
|
31
32
|
import '../../components/Alert/Alert.js';
|
|
32
33
|
import '../../context/MockContext/MockContext.js';
|
|
@@ -37,6 +38,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
37
38
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
39
|
import 'formik';
|
|
39
40
|
import 'yup';
|
|
41
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
42
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
40
43
|
import { OnboardingUserDataForm } from '../CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js';
|
|
41
44
|
|
|
42
45
|
const CollectUserDataViewLoginWithEmail = () => {
|
|
@@ -47,7 +50,7 @@ const CollectUserDataViewLoginWithEmail = () => {
|
|
|
47
50
|
const userProfile = createUserProfile(decodedOnboardingOnlyToken);
|
|
48
51
|
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
52
|
`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:
|
|
53
|
+
'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
54
|
};
|
|
52
55
|
|
|
53
56
|
export { CollectUserDataViewLoginWithEmail };
|
|
@@ -33,6 +33,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
33
33
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
34
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
35
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
37
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
37
38
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
38
39
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -44,6 +45,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
44
45
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
46
|
require('formik');
|
|
46
47
|
require('yup');
|
|
48
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
49
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
47
50
|
|
|
48
51
|
const EmailConfirmationWaitingView = () => {
|
|
49
52
|
const { setView } = ViewContext.useViewContext();
|
|
@@ -57,7 +60,7 @@ const EmailConfirmationWaitingView = () => {
|
|
|
57
60
|
setView('login-with-email-or-wallet');
|
|
58
61
|
clearStatesOnBackClick();
|
|
59
62
|
}), [setView, emailConnector, clearStatesOnBackClick]);
|
|
60
|
-
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(
|
|
63
|
+
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' })] })));
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
exports.EmailConfirmationWaitingView = EmailConfirmationWaitingView;
|
|
@@ -29,6 +29,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
29
29
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
30
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
31
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
32
33
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
33
34
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
34
35
|
import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
@@ -40,6 +41,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
40
41
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
41
42
|
import 'formik';
|
|
42
43
|
import 'yup';
|
|
44
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
45
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
43
46
|
|
|
44
47
|
const EmailConfirmationWaitingView = () => {
|
|
45
48
|
const { setView } = useViewContext();
|
|
@@ -53,7 +56,7 @@ const EmailConfirmationWaitingView = () => {
|
|
|
53
56
|
setView('login-with-email-or-wallet');
|
|
54
57
|
clearStatesOnBackClick();
|
|
55
58
|
}), [setView, emailConnector, clearStatesOnBackClick]);
|
|
56
|
-
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(
|
|
59
|
+
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' })] })));
|
|
57
60
|
};
|
|
58
61
|
|
|
59
62
|
export { EmailConfirmationWaitingView };
|
|
@@ -33,6 +33,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
33
33
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
34
34
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
35
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
37
|
var IconButton = require('../../components/IconButton/IconButton.cjs');
|
|
37
38
|
var Button = require('../../components/Button/Button.cjs');
|
|
38
39
|
require('../../components/Alert/Alert.cjs');
|
|
@@ -43,6 +44,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
43
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
44
45
|
require('formik');
|
|
45
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
48
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
46
49
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
47
50
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
48
51
|
|
|
@@ -29,6 +29,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
29
29
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
30
30
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
31
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
32
33
|
import { IconButton } from '../../components/IconButton/IconButton.js';
|
|
33
34
|
import { Button } from '../../components/Button/Button.js';
|
|
34
35
|
import '../../components/Alert/Alert.js';
|
|
@@ -39,6 +40,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
39
40
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
40
41
|
import 'formik';
|
|
41
42
|
import 'yup';
|
|
43
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
44
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
42
45
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
43
46
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
44
47
|
|
|
@@ -35,6 +35,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
35
35
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
36
36
|
var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
37
37
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
38
|
+
var AccountExistsContext = require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
38
39
|
require('../../components/IconButton/IconButton.cjs');
|
|
39
40
|
var IconWithStatus = require('../../components/IconWithStatus/IconWithStatus.cjs');
|
|
40
41
|
var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
@@ -52,6 +53,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
52
53
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
53
54
|
require('formik');
|
|
54
55
|
require('yup');
|
|
56
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
57
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
55
58
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
56
59
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
57
60
|
var useEmailVerificationRequest = require('../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs');
|
|
@@ -65,6 +68,7 @@ const EmailVerification = () => {
|
|
|
65
68
|
const [showTransferMessage, setShowTransferMessage] = React.useState(false);
|
|
66
69
|
const { view, setView, goToInitialView } = ViewContext.useViewContext();
|
|
67
70
|
const { error, setError, setErrorMessage } = ErrorContext.useErrorContext();
|
|
71
|
+
const { setExistentAccountData } = AccountExistsContext.useAccountExistsContext();
|
|
68
72
|
const { environmentId, onboardingOnlyJwt, handleLogOut, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
69
73
|
const { email, verificationUUID, setVerificationUUID } = EmailVerificationContext.useEmailVerificationContext();
|
|
70
74
|
const { loading, setLoading } = LoadingContext.useLoadingContext();
|
|
@@ -146,15 +150,19 @@ const EmailVerification = () => {
|
|
|
146
150
|
}
|
|
147
151
|
setCallback('authSuccess');
|
|
148
152
|
// this timeout is set to make sure that the user will see success message
|
|
149
|
-
setTimeout(() => {
|
|
150
|
-
createUserProfileByJWT(jwt);
|
|
153
|
+
setTimeout(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
154
|
+
yield createUserProfileByJWT(jwt);
|
|
151
155
|
setShowAuthFlow(false);
|
|
152
|
-
}, 1500);
|
|
156
|
+
}), 1500);
|
|
153
157
|
}
|
|
154
158
|
catch (error) {
|
|
155
159
|
if (error instanceof utils.NoAccessError) {
|
|
156
160
|
setView('no-access');
|
|
157
161
|
}
|
|
162
|
+
if (error instanceof utils.AccountExistsError) {
|
|
163
|
+
setExistentAccountData(error.errorPayload);
|
|
164
|
+
setView('account-exists');
|
|
165
|
+
}
|
|
158
166
|
logger.logger.debug(error);
|
|
159
167
|
setErrorMessage(error.code);
|
|
160
168
|
}
|
|
@@ -174,6 +182,7 @@ const EmailVerification = () => {
|
|
|
174
182
|
createUserProfileByJWT,
|
|
175
183
|
setShowAuthFlow,
|
|
176
184
|
setErrorMessage,
|
|
185
|
+
setExistentAccountData,
|
|
177
186
|
]);
|
|
178
187
|
const handleRetry = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
179
188
|
try {
|
|
@@ -207,7 +216,7 @@ const EmailVerification = () => {
|
|
|
207
216
|
});
|
|
208
217
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'email-verification__container' }, { children: [error && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'email-verification__error-message' }, { children: error }))), showTransferMessage && (jsxRuntime.jsx("div", Object.assign({ className: 'email-verification__transfer-message' }, { children: "Verification complete, the email is now verified to this account." }))), isValidated ? (jsxRuntime.jsx("div", Object.assign({ className: 'email-verification__icon-container' }, { children: jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'email-verification__icon--verified', Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: check.ReactComponent }) }))) : (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: classNames.classNames({
|
|
209
218
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
210
|
-
}), Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxRuntime.jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: 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:
|
|
219
|
+
}), 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, {})] })));
|
|
211
220
|
};
|
|
212
221
|
|
|
213
222
|
exports.EmailVerification = EmailVerification;
|
|
@@ -2,7 +2,7 @@ import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useCallback } from 'react';
|
|
4
4
|
import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
|
|
5
|
-
import { NoAccessError } from '@dynamic-labs/utils';
|
|
5
|
+
import { NoAccessError, AccountExistsError } from '@dynamic-labs/utils';
|
|
6
6
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
7
7
|
import { decodeJwt } from '../../shared/utils/functions/decodeJwt/decodeJwt.js';
|
|
8
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -31,6 +31,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
31
31
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
32
32
|
import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
33
33
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
34
|
+
import { useAccountExistsContext } from '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
34
35
|
import '../../components/IconButton/IconButton.js';
|
|
35
36
|
import { IconWithStatus } from '../../components/IconWithStatus/IconWithStatus.js';
|
|
36
37
|
import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
@@ -48,6 +49,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
48
49
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
49
50
|
import 'formik';
|
|
50
51
|
import 'yup';
|
|
52
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
53
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
51
54
|
import { useEmailVerificationContext } from '../../context/EmailVerificationContext/EmailVerificationContext.js';
|
|
52
55
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
53
56
|
import { useEmailVerificationRequest } from '../../utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js';
|
|
@@ -61,6 +64,7 @@ const EmailVerification = () => {
|
|
|
61
64
|
const [showTransferMessage, setShowTransferMessage] = useState(false);
|
|
62
65
|
const { view, setView, goToInitialView } = useViewContext();
|
|
63
66
|
const { error, setError, setErrorMessage } = useErrorContext();
|
|
67
|
+
const { setExistentAccountData } = useAccountExistsContext();
|
|
64
68
|
const { environmentId, onboardingOnlyJwt, handleLogOut, authToken, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, } = useInternalDynamicContext();
|
|
65
69
|
const { email, verificationUUID, setVerificationUUID } = useEmailVerificationContext();
|
|
66
70
|
const { loading, setLoading } = useLoadingContext();
|
|
@@ -142,15 +146,19 @@ const EmailVerification = () => {
|
|
|
142
146
|
}
|
|
143
147
|
setCallback('authSuccess');
|
|
144
148
|
// this timeout is set to make sure that the user will see success message
|
|
145
|
-
setTimeout(() => {
|
|
146
|
-
createUserProfileByJWT(jwt);
|
|
149
|
+
setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
150
|
+
yield createUserProfileByJWT(jwt);
|
|
147
151
|
setShowAuthFlow(false);
|
|
148
|
-
}, 1500);
|
|
152
|
+
}), 1500);
|
|
149
153
|
}
|
|
150
154
|
catch (error) {
|
|
151
155
|
if (error instanceof NoAccessError) {
|
|
152
156
|
setView('no-access');
|
|
153
157
|
}
|
|
158
|
+
if (error instanceof AccountExistsError) {
|
|
159
|
+
setExistentAccountData(error.errorPayload);
|
|
160
|
+
setView('account-exists');
|
|
161
|
+
}
|
|
154
162
|
logger.debug(error);
|
|
155
163
|
setErrorMessage(error.code);
|
|
156
164
|
}
|
|
@@ -170,6 +178,7 @@ const EmailVerification = () => {
|
|
|
170
178
|
createUserProfileByJWT,
|
|
171
179
|
setShowAuthFlow,
|
|
172
180
|
setErrorMessage,
|
|
181
|
+
setExistentAccountData,
|
|
173
182
|
]);
|
|
174
183
|
const handleRetry = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
175
184
|
try {
|
|
@@ -203,7 +212,7 @@ const EmailVerification = () => {
|
|
|
203
212
|
});
|
|
204
213
|
return (jsxs("div", Object.assign({ className: 'email-verification__container' }, { children: [error && (jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'email-verification__error-message' }, { children: error }))), showTransferMessage && (jsx("div", Object.assign({ className: 'email-verification__transfer-message' }, { children: "Verification complete, the email is now verified to this account." }))), isValidated ? (jsx("div", Object.assign({ className: 'email-verification__icon-container' }, { children: jsx(IconWithStatus, { containerClassName: 'email-verification__icon--verified', Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgCheck }) }))) : (jsx(IconWithSpinner, { className: classNames({
|
|
205
214
|
'email-verification__icon-with-spinner': Boolean(!error),
|
|
206
|
-
}), Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', className: 'email-verification__title', color: 'primary' }, { children: "Confirm verification code" })), jsxs("div", Object.assign({ className: 'email-verification__copy-text-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: 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:
|
|
215
|
+
}), 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, {})] })));
|
|
207
216
|
};
|
|
208
217
|
|
|
209
218
|
export { EmailVerification };
|
|
@@ -22,6 +22,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
22
22
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
23
23
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
24
24
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
25
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
25
26
|
require('react-dom');
|
|
26
27
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
27
28
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
@@ -36,6 +37,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
36
37
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
37
38
|
require('formik');
|
|
38
39
|
require('yup');
|
|
40
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
41
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
39
42
|
require('../../context/MockContext/MockContext.cjs');
|
|
40
43
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
41
44
|
var useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
|
|
@@ -18,6 +18,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
18
18
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
19
19
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
20
20
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
21
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
21
22
|
import 'react-dom';
|
|
22
23
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
23
24
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
@@ -32,6 +33,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
32
33
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
33
34
|
import 'formik';
|
|
34
35
|
import 'yup';
|
|
36
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
37
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
35
38
|
import '../../context/MockContext/MockContext.js';
|
|
36
39
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
37
40
|
import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
|
|
@@ -32,6 +32,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
32
32
|
require('../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
33
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
34
34
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
|
+
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
36
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
36
37
|
require('../../../../components/Alert/Alert.cjs');
|
|
37
38
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
@@ -42,6 +43,8 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
42
43
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
44
|
require('formik');
|
|
44
45
|
require('yup');
|
|
46
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
47
|
+
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
45
48
|
var Badge = require('../../../../components/Badge/Badge.cjs');
|
|
46
49
|
|
|
47
50
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|
|
@@ -28,6 +28,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
28
28
|
import '../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
29
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
30
30
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
|
+
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
32
|
import '../../../../components/IconButton/IconButton.js';
|
|
32
33
|
import '../../../../components/Alert/Alert.js';
|
|
33
34
|
import '../../../../context/MockContext/MockContext.js';
|
|
@@ -38,6 +39,8 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
38
39
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
39
40
|
import 'formik';
|
|
40
41
|
import 'yup';
|
|
42
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
43
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
41
44
|
import { Badge } from '../../../../components/Badge/Badge.js';
|
|
42
45
|
|
|
43
46
|
const ListItemButton = ({ text, onClick, numberOfWallets }) => {
|