@dynamic-labs/sdk-react-core 2.0.0-alpha.3 → 2.0.0-alpha.31
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 +407 -0
- package/package.cjs +6 -5
- package/package.js +6 -5
- package/package.json +18 -15
- package/src/index.cjs +62 -215
- package/src/index.d.ts +96 -16
- package/src/index.js +39 -105
- package/src/lib/Main.cjs +33 -24
- package/src/lib/Main.js +34 -25
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +19 -15
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +19 -15
- package/src/lib/components/Alert/Alert.cjs +2 -2
- package/src/lib/components/Alert/Alert.js +2 -2
- package/src/lib/components/Alert/Alert.types.d.ts +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +19 -15
- package/src/lib/components/AnimatePresence/AnimatePresence.js +19 -15
- package/src/lib/components/AppOriginTile/AppOriginTile.cjs +17 -1
- package/src/lib/components/AppOriginTile/AppOriginTile.js +18 -2
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +25 -17
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +25 -17
- package/src/lib/components/Captcha/Captcha.cjs +18 -14
- package/src/lib/components/Captcha/Captcha.js +18 -14
- package/src/lib/components/ChainIcon/ChainIcon.cjs +26 -0
- package/src/lib/components/ChainIcon/ChainIcon.d.ts +8 -0
- package/src/lib/components/ChainIcon/ChainIcon.js +22 -0
- package/src/lib/components/ChainIcon/index.d.ts +1 -0
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -2
- package/src/lib/components/Checkbox/Checkbox.js +1 -2
- package/src/lib/components/CopyButton/CopyButton.cjs +7 -2
- package/src/lib/components/CopyButton/CopyButton.d.ts +5 -3
- package/src/lib/components/CopyButton/CopyButton.js +7 -2
- package/src/lib/components/Divider/Divider.cjs +23 -19
- package/src/lib/components/Divider/Divider.d.ts +4 -4
- package/src/lib/components/Divider/Divider.js +23 -19
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +19 -15
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +19 -15
- package/src/lib/components/DynamicFooter/DynamicFooter.cjs +8 -1
- package/src/lib/components/DynamicFooter/DynamicFooter.js +8 -1
- package/src/lib/components/EmailForm/EmailForm.cjs +103 -0
- package/src/lib/components/EmailForm/EmailForm.d.ts +13 -0
- package/src/lib/components/EmailForm/EmailForm.js +99 -0
- package/src/lib/components/EmailForm/index.d.ts +1 -0
- package/src/lib/components/EmailIcon/EmailIcon.cjs +14 -0
- package/src/lib/components/EmailIcon/EmailIcon.d.ts +2 -0
- package/src/lib/components/EmailIcon/EmailIcon.js +10 -0
- package/src/lib/components/EmailIcon/index.d.ts +1 -0
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -3
- package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -3
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.cjs +1 -2
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.js +1 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +5 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +5 -2
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +5 -2
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +5 -2
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +5 -2
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +5 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +5 -2
- package/src/lib/components/IconWithStatus/IconWithStatus.js +5 -2
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +22 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.d.ts +11 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +18 -0
- package/src/lib/components/InlineSubmitButton/index.d.ts +1 -0
- package/src/lib/components/Input/Input.cjs +9 -6
- package/src/lib/components/Input/Input.d.ts +13 -2
- package/src/lib/components/Input/Input.js +9 -6
- package/src/lib/components/Input/Input.types.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +19 -15
- package/src/lib/components/LogoutButton/LogoutButton.js +19 -15
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +19 -15
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +19 -15
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +3 -4
- package/src/lib/components/MenuList/MenuList/MenuList.js +3 -4
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +65 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.js +65 -1
- package/src/lib/components/Modal/Modal.cjs +19 -15
- package/src/lib/components/Modal/Modal.js +19 -15
- package/src/lib/components/ModalHeader/ModalHeader.cjs +14 -4
- package/src/lib/components/ModalHeader/ModalHeader.js +14 -4
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +20 -16
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +19 -15
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +30 -27
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +30 -27
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +22 -18
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +22 -18
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +21 -17
- package/src/lib/components/NetworkPicker/components/Network/Network.js +21 -17
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +7 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +7 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +70 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +71 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +26 -18
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +27 -19
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -2
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +14 -21
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +9 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +14 -21
- package/src/lib/components/OverlayCard/OverlayCard.cjs +40 -30
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +2 -3
- package/src/lib/components/OverlayCard/OverlayCard.js +41 -31
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs +46 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.d.ts +17 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js +40 -0
- package/src/lib/components/OverlayCard/OverlayCardTarget/index.d.ts +1 -0
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +18 -14
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +18 -14
- package/src/lib/components/PhoneIcon/PhoneIcon.cjs +14 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.d.ts +2 -0
- package/src/lib/components/PhoneIcon/PhoneIcon.js +10 -0
- package/src/lib/components/PhoneIcon/index.d.ts +1 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +116 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.d.ts +17 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +112 -0
- package/src/lib/components/PhoneNumberField/index.d.ts +1 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/index.d.ts +1 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs +231 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.d.ts +34 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js +227 -0
- package/src/lib/components/Portal/Portal.cjs +21 -15
- package/src/lib/components/Portal/Portal.js +21 -15
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +19 -15
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +19 -15
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.cjs +32 -28
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.js +32 -28
- package/src/lib/components/QRCode/index.d.ts +1 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +110 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.d.ts +14 -0
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +106 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +87 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.d.ts +11 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +83 -0
- package/src/lib/components/QrCodeWrapper/index.d.ts +1 -0
- package/src/lib/components/RenderView/RenderView.cjs +21 -17
- package/src/lib/components/RenderView/RenderView.js +21 -17
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +22 -18
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +22 -18
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +105 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.d.ts +2 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +101 -0
- package/src/lib/components/SandboxIndicatorWrapper/index.d.ts +1 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs} +21 -17
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.d.ts +6 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js} +21 -17
- package/src/lib/components/SecureEmbeddedWalletCard/index.d.ts +1 -0
- package/src/lib/components/Select/Select.cjs +1 -2
- package/src/lib/components/Select/Select.js +1 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +12 -16
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +2 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +12 -16
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +81 -13
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +3 -6
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +81 -13
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -2
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +21 -15
- package/src/lib/components/ShadowDOM/ShadowDOM.js +21 -16
- package/src/lib/components/ShadowDOM/utils.cjs +1 -2
- package/src/lib/components/ShadowDOM/utils.js +1 -2
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +1 -2
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +1 -2
- package/src/lib/components/Skeleton/Skeleton.cjs +2 -2
- package/src/lib/components/Skeleton/Skeleton.d.ts +2 -1
- package/src/lib/components/Skeleton/Skeleton.js +2 -2
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +23 -19
- package/src/lib/components/SocialSignIn/SocialSignIn.d.ts +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +23 -19
- package/src/lib/components/Spinner/spinner.cjs +1 -2
- package/src/lib/components/Spinner/spinner.js +1 -2
- package/src/lib/components/Step/Step.cjs +1 -2
- package/src/lib/components/Step/Step.js +1 -2
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.cjs → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs} +46 -26
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.d.ts +1 -0
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.js → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js} +47 -27
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/index.d.ts +1 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +94 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.d.ts +8 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +90 -0
- package/src/lib/components/ToggleVisibilityButton/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +25 -22
- package/src/lib/components/Toolkit/Toolkit.js +25 -22
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +20 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +20 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +22 -20
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +22 -20
- package/src/lib/components/Toolkit/components/index.d.ts +0 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +19 -15
- package/src/lib/components/Tooltip/Tooltip.js +19 -15
- package/src/lib/components/TosAndPp/TosAndPp.cjs +19 -15
- package/src/lib/components/TosAndPp/TosAndPp.js +19 -15
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +18 -14
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +18 -14
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +19 -15
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +19 -15
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.cjs +2 -2
- package/src/lib/components/Transition/OpacityTransition/OpacityTransition.js +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.cjs +2 -2
- package/src/lib/components/Transition/SlideInUpTransition/SlideInUpTransition.js +2 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +19 -15
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +19 -15
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.cjs +2 -2
- package/src/lib/components/Transition/ZoomTransition/ZoomTransition.js +2 -2
- package/src/lib/components/Typography/Typography.cjs +2 -2
- package/src/lib/components/Typography/Typography.js +2 -2
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +21 -17
- package/src/lib/components/UserAddress/UserAddress.js +21 -17
- package/src/lib/components/UserAvatar/UserAvatar.cjs +6 -2
- package/src/lib/components/UserAvatar/UserAvatar.d.ts +3 -1
- package/src/lib/components/UserAvatar/UserAvatar.js +6 -2
- package/src/lib/components/UserProfile/UserProfile.cjs +35 -18
- package/src/lib/components/UserProfile/UserProfile.js +35 -18
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +39 -20
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +39 -20
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.cjs +26 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.d.ts +9 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.js +22 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/components/index.d.ts +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +21 -17
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +21 -17
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +24 -18
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.d.ts +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +24 -18
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.d.ts +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/components/ConnectedAccountAvatar/ConnectedAccountAvatar.js +1 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +27 -23
- package/src/lib/components/UserProfileForm/UserProfileForm.d.ts +2 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.js +27 -23
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +1 -2
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +1 -2
- package/src/lib/components/index.d.ts +17 -5
- package/src/lib/context/AccessDeniedContext/AccessDeniedContext.d.ts +1 -1
- package/src/lib/context/AccountExistsContext/AccountExistsContext.d.ts +1 -1
- package/src/lib/context/CaptchaContext/CaptchaContext.d.ts +1 -1
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpContext.cjs +9 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpContext.d.ts +3 -0
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpContext.js +5 -0
- package/src/lib/context/{ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs → ConnectWithOtpContext/ConnectWithOtpProvider.cjs} +54 -33
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.d.ts +2 -0
- package/src/lib/context/{ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js → ConnectWithOtpContext/ConnectWithOtpProvider.js} +50 -29
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/constants.cjs +3 -4
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/constants.d.ts +1 -1
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/constants.js +1 -2
- package/src/lib/context/ConnectWithOtpContext/index.d.ts +2 -0
- package/src/lib/context/ConnectWithOtpContext/types.d.ts +20 -0
- package/src/lib/context/{ConnectWithEmailOtpContext/useConnectWithEmailOtp.cjs → ConnectWithOtpContext/useConnectWithOtp.cjs} +6 -5
- package/src/lib/context/ConnectWithOtpContext/useConnectWithOtp.d.ts +6 -0
- package/src/lib/context/{ConnectWithEmailOtpContext/useConnectWithEmailOtp.js → ConnectWithOtpContext/useConnectWithOtp.js} +6 -5
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createEmailHandler.cjs +5 -4
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createEmailHandler.d.ts +1 -1
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createEmailHandler.js +5 -4
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createMagicHandler.cjs +2 -1
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createMagicHandler.d.ts +1 -1
- package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/createMagicHandler.js +2 -1
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.cjs +32 -0
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.d.ts +3 -0
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.js +28 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +113 -141
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +10 -5
- package/src/lib/context/DynamicContext/DynamicContext.js +116 -144
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +29 -4
- package/src/lib/context/DynamicContext/helpers/helpers.d.ts +10 -2
- package/src/lib/context/DynamicContext/helpers/helpers.js +27 -5
- package/src/lib/context/DynamicContext/hooks/index.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +4 -21
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +5 -22
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.types.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +5 -2
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +5 -2
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +3 -8
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +30 -29
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +31 -30
- package/src/lib/context/DynamicContext/hooks/useMultiWallet/useMultiWallet.cjs +15 -0
- package/src/lib/context/DynamicContext/hooks/useMultiWallet/useMultiWallet.d.ts +6 -0
- package/src/lib/context/DynamicContext/hooks/useMultiWallet/useMultiWallet.js +11 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +2 -3
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +2 -3
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.types.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useParentDynamicContextGuard/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useParentDynamicContextGuard/useParentDynamicContextGuard.cjs +15 -0
- package/src/lib/context/DynamicContext/hooks/useParentDynamicContextGuard/useParentDynamicContextGuard.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useParentDynamicContextGuard/useParentDynamicContextGuard.js +11 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +6 -6
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +8 -6
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +6 -6
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +43 -30
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.d.ts +4 -3
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +43 -30
- package/src/lib/context/DynamicContext/types/index.d.ts +29 -21
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +5 -10
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +17 -43
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +17 -43
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +1 -5
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +1 -5
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +19 -15
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +19 -15
- package/src/lib/context/DynamicContext/validators/validators.cjs +1 -2
- package/src/lib/context/DynamicContext/validators/validators.js +1 -2
- package/src/lib/context/ErrorContext/ErrorContext.cjs +7 -0
- package/src/lib/context/ErrorContext/ErrorContext.d.ts +1 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +7 -0
- package/src/lib/context/FieldsStateContext/FieldsStateContext.cjs +23 -0
- package/src/lib/context/FieldsStateContext/FieldsStateContext.d.ts +12 -0
- package/src/lib/context/FieldsStateContext/FieldsStateContext.js +17 -0
- package/src/lib/context/FieldsStateContext/index.d.ts +1 -0
- package/src/lib/context/FundingContext/FundingContext.cjs +22 -16
- package/src/lib/context/FundingContext/FundingContext.js +21 -15
- package/src/lib/context/LoadingContext/LoadingContext.cjs +19 -14
- package/src/lib/context/LoadingContext/LoadingContext.js +19 -14
- package/src/lib/context/MockContext/MockContext.cjs +17 -12
- package/src/lib/context/MockContext/MockContext.js +17 -12
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +36 -26
- package/src/lib/context/PasskeyContext/PasskeyContext.d.ts +1 -1
- package/src/lib/context/PasskeyContext/PasskeyContext.js +36 -26
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +29 -19
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +29 -19
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +105 -26
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.d.ts +3 -1
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +105 -26
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +28 -21
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +29 -22
- package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +1 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +19 -15
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +19 -15
- package/src/lib/context/ThemeContext/ThemeContext.cjs +43 -47
- package/src/lib/context/ThemeContext/ThemeContext.d.ts +1 -1
- package/src/lib/context/ThemeContext/ThemeContext.js +44 -48
- package/src/lib/context/ThemeContext/themesData.cjs +1 -2
- package/src/lib/context/ThemeContext/themesData.d.ts +1 -1
- package/src/lib/context/ThemeContext/themesData.js +1 -2
- package/src/lib/context/ThemeContext/utils/findThemeMode/findThemeMode.d.ts +1 -1
- package/src/lib/context/ThemeContext/utils/stylesheetBuilder/stylesheetBuilder.cjs +19 -0
- package/src/lib/context/ThemeContext/utils/stylesheetBuilder/stylesheetBuilder.d.ts +2 -2
- package/src/lib/context/ThemeContext/utils/stylesheetBuilder/stylesheetBuilder.js +19 -0
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +21 -16
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.d.ts +1 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +21 -16
- package/src/lib/context/UserWalletsContext/UserWalletsContext.cjs +26 -1
- package/src/lib/context/UserWalletsContext/UserWalletsContext.d.ts +4 -2
- package/src/lib/context/UserWalletsContext/UserWalletsContext.js +27 -2
- package/src/lib/context/VerificationContext/VerificationContext.cjs +34 -0
- package/src/lib/context/VerificationContext/VerificationContext.d.ts +28 -0
- package/src/lib/context/VerificationContext/VerificationContext.js +28 -0
- package/src/lib/context/VerificationContext/index.d.ts +1 -0
- package/src/lib/context/ViewContext/ViewContext.cjs +7 -0
- package/src/lib/context/ViewContext/ViewContext.js +7 -0
- package/src/lib/context/ViewContext/types/index.d.ts +5 -3
- package/src/lib/context/WalletContext/WalletContext.cjs +31 -16
- package/src/lib/context/WalletContext/WalletContext.d.ts +8 -3
- package/src/lib/context/WalletContext/WalletContext.js +32 -18
- package/src/lib/data/api.cjs +234 -29
- package/src/lib/data/api.d.ts +74 -13
- package/src/lib/data/api.js +217 -23
- package/src/lib/events/dynamicEvents.d.ts +17 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -17
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +20 -17
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +46 -22
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +46 -22
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +19 -15
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +19 -15
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +21 -17
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +21 -17
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +22 -18
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +22 -18
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +24 -20
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +24 -20
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +21 -17
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +21 -17
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +23 -19
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +23 -19
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +21 -17
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +21 -17
- package/src/lib/locale/en/translation.cjs +398 -34
- package/src/lib/locale/en/translation.d.ts +393 -27
- package/src/lib/locale/en/translation.js +398 -34
- package/src/lib/locale/locale.cjs +12 -4
- package/src/lib/locale/locale.d.ts +3 -2
- package/src/lib/locale/locale.js +12 -4
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +81 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.d.ts +3 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +77 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.types.d.ts +8 -0
- package/src/lib/modals/ConfirmationModal/index.d.ts +1 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +87 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +3 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +83 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.types.d.ts +5 -0
- package/src/lib/modals/CreatePasswordModal/index.d.ts +1 -0
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +21 -17
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.d.ts +1 -1
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +21 -17
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +87 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +3 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +83 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.types.d.ts +6 -0
- package/src/lib/modals/EnterPasswordModal/index.d.ts +1 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +26 -22
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +1 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +26 -22
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +24 -20
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +24 -20
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.cjs +1 -0
- package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.js +1 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +24 -29
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +24 -29
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +3 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +20 -16
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.d.ts +1 -1
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +20 -16
- package/src/lib/modals/index.d.ts +3 -0
- package/src/lib/shared/assets/{dynamic-logo.cjs → chevron-down.cjs} +9 -7
- package/src/lib/shared/assets/{dynamic-logo.js → chevron-down.js} +9 -7
- package/src/lib/shared/assets/{sparkles.cjs → download.cjs} +7 -7
- package/src/lib/shared/assets/{sparkles.js → download.js} +7 -7
- package/src/lib/shared/assets/embedded-wallet-icon.cjs +6 -4
- package/src/lib/shared/assets/embedded-wallet-icon.js +6 -4
- package/src/lib/shared/assets/index.d.ts +20 -13
- package/src/lib/shared/assets/passkey-intro2.cjs +92 -0
- package/src/lib/shared/assets/passkey-intro2.js +68 -0
- package/src/lib/shared/assets/{circle-locker.cjs → password-hero.cjs} +3 -3
- package/src/lib/shared/assets/{circle-locker.js → password-hero.js} +3 -3
- package/src/lib/shared/assets/save-password-hero.cjs +127 -0
- package/src/lib/shared/assets/save-password-hero.js +103 -0
- package/src/lib/shared/assets/{add-wallet.cjs → sign-in-with-phone.cjs} +10 -15
- package/src/lib/shared/assets/{add-wallet.js → sign-in-with-phone.js} +10 -15
- package/src/lib/shared/assets/wallet-claim-hero.cjs +127 -0
- package/src/lib/shared/assets/wallet-claim-hero.js +103 -0
- package/src/lib/shared/consts/index.cjs +1 -1
- package/src/lib/shared/consts/index.js +1 -1
- package/src/lib/shared/types/connectionAndSignature.d.ts +15 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +51 -0
- package/src/lib/shared/types/dynamicHandlers.d.ts +9 -0
- package/src/lib/shared/types/embeddedWallets.d.ts +6 -0
- package/src/lib/shared/types/general.d.ts +13 -0
- package/src/lib/shared/types/index.d.ts +9 -220
- package/src/lib/shared/types/localStorage.d.ts +18 -0
- package/src/lib/shared/types/ui.d.ts +14 -0
- package/src/lib/shared/types/user.d.ts +15 -0
- package/src/lib/shared/types/wallets.d.ts +72 -0
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.cjs +6 -13
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.d.ts +1 -1
- package/src/lib/shared/utils/functions/decodeJwt/decodeJwt.js +6 -13
- package/src/lib/shared/utils/functions/decodeMinJwt/decodeMinJwt.cjs +22 -0
- package/src/lib/shared/utils/functions/decodeMinJwt/decodeMinJwt.d.ts +2 -0
- package/src/lib/shared/utils/functions/decodeMinJwt/decodeMinJwt.js +18 -0
- package/src/lib/shared/utils/functions/decodeMinJwt/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.cjs +14 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.d.ts +1 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/generateRandomPassword.js +10 -0
- package/src/lib/shared/utils/functions/generateRandomPassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/index.d.ts +3 -3
- package/src/lib/shared/utils/functions/lastAuthenticatedAccount/index.d.ts +1 -1
- package/src/lib/shared/utils/functions/parseToken/parseToken.cjs +18 -0
- package/src/lib/shared/utils/functions/parseToken/parseToken.d.ts +1 -0
- package/src/lib/shared/utils/functions/parseToken/parseToken.js +14 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +5 -2
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +2 -2
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +4 -1
- package/src/lib/shared/utils/functions/validatePassword/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.cjs +59 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.d.ts +13 -0
- package/src/lib/shared/utils/functions/validatePassword/validatePassword.js +55 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +10 -28
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +2 -6
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +10 -28
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs +0 -10
- package/src/lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js +0 -10
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +1 -1
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/fields.cjs +7 -0
- package/src/lib/utils/constants/fields.d.ts +1 -0
- package/src/lib/utils/constants/fields.js +3 -0
- package/src/lib/utils/constants/index.d.ts +2 -1
- package/src/lib/utils/constants/localStorage.cjs +6 -4
- package/src/lib/utils/constants/localStorage.d.ts +3 -2
- package/src/lib/utils/constants/localStorage.js +4 -3
- package/src/lib/utils/constants/values.cjs +8 -8
- package/src/lib/utils/constants/values.d.ts +2 -1
- package/src/lib/utils/constants/values.js +1 -1
- package/src/lib/utils/functions/createOwnerWallet/createOwnerWallet.d.ts +1 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.d.ts +1 -1
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.cjs +7 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.d.ts +2 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/findCoinbaseMPCWallet.js +3 -0
- package/src/lib/utils/functions/findCoinbaseMPCWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.cjs +8 -5
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.d.ts +1 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js +8 -5
- package/src/lib/utils/functions/formatPhone/formatPhone.cjs +33 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.d.ts +5 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.js +29 -0
- package/src/lib/utils/functions/formatPhone/index.d.ts +1 -0
- package/src/lib/utils/functions/getActiveOauthCredential/getActiveOauthCredential.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +1 -2
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +1 -2
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +32 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.d.ts +10 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +28 -0
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/index.d.ts +1 -0
- package/src/lib/utils/functions/getCustomCountries/getCustomCountries.cjs +25 -0
- package/src/lib/utils/functions/getCustomCountries/getCustomCountries.d.ts +4 -0
- package/src/lib/utils/functions/getCustomCountries/getCustomCountries.js +20 -0
- package/src/lib/utils/functions/getCustomCountries/index.d.ts +1 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.cjs +39 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +3 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +35 -0
- package/src/lib/utils/functions/getEOAWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +39 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +35 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/index.d.ts +1 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletsAuthenticators/getEnabledEmbeddedWalletsAuthenticators.d.ts +1 -1
- package/src/lib/utils/functions/getEnabledKYC/index.d.ts +1 -1
- package/src/lib/utils/functions/getEnabledOAuthProviders/index.d.ts +1 -1
- package/src/lib/utils/functions/getEnabledProviders/index.d.ts +1 -1
- package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.d.ts +1 -1
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.cjs +30 -0
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.d.ts +1 -0
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.js +26 -0
- package/src/lib/utils/functions/getMinAuthToken/index.d.ts +1 -0
- package/src/lib/utils/functions/getOauthLoginUrl/getOauthLoginUrl.d.ts +1 -1
- package/src/lib/utils/functions/getProviderByType/getProviderByType.d.ts +1 -1
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.cjs +2 -2
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.d.ts +1 -1
- package/src/lib/utils/functions/getProviderEnumForSocialSignInProvider/getProviderEnumForSocialSignInProvider.js +1 -1
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +2 -3
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.d.ts +1 -1
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +2 -3
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.cjs +2 -2
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.d.ts +1 -1
- package/src/lib/utils/functions/getSocialSignInProviderForProviderEnum/getSocialSignInProviderForProviderEnum.js +1 -1
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.cjs +2 -2
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.d.ts +1 -1
- package/src/lib/utils/functions/getSocialSignInProviderFromString/getSocialSignInProviderFromString.js +1 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +45 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.d.ts +6 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +41 -0
- package/src/lib/utils/functions/getUserIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +8 -5
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +1 -1
- package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +7 -4
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.cjs +23 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.d.ts +8 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.js +19 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.cjs +2 -3
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.d.ts +1 -1
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.js +2 -3
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +3 -3
- package/src/lib/utils/functions/getWalletAdditionalAddressByType/getWalletAdditionalAddressByType.d.ts +1 -1
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +1 -1
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.d.ts +2 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +11 -20
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.d.ts +1 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +11 -20
- package/src/lib/utils/functions/index.d.ts +17 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +38 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.d.ts +2 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +34 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.cjs +13 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isCoinbaseWaasEnabled/isCoinbaseWaasEnabled.js +9 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +5 -10
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.d.ts +2 -2
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +5 -10
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.cjs +3 -3
- package/src/lib/utils/functions/isEmbeddedWalletPresent/isEmbeddedWalletPresent.js +1 -1
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.d.ts +1 -1
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +29 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +25 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.cjs +2 -2
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.js +1 -1
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.cjs +2 -2
- package/src/lib/utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.js +1 -1
- package/src/lib/utils/functions/mergeNetworks/index.d.ts +1 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.cjs +26 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.d.ts +13 -0
- package/src/lib/utils/functions/mergeNetworks/mergeNetworks.js +22 -0
- package/src/lib/utils/functions/modulo/index.d.ts +1 -0
- package/src/lib/utils/functions/modulo/modulo.cjs +8 -0
- package/src/lib/utils/functions/modulo/modulo.d.ts +2 -0
- package/src/lib/utils/functions/modulo/modulo.js +4 -0
- package/src/lib/utils/functions/parseTheme/parseTheme.d.ts +1 -1
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -2
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -2
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.cjs +15 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.d.ts +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWallet/requiresPasswordForEmbeddedWallet.js +11 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/index.d.ts +1 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +36 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +32 -0
- package/src/lib/utils/functions/storeAuthToken/index.cjs +3 -3
- package/src/lib/utils/functions/storeAuthToken/index.d.ts +1 -1
- package/src/lib/utils/functions/storeAuthToken/index.js +4 -4
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/index.d.ts +1 -0
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.cjs +19 -0
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.d.ts +1 -0
- package/src/lib/utils/functions/updateJWTAndCreateUserProfile/updateJWTAndCreateUserProfile.js +15 -0
- package/src/lib/utils/functions/validatePhoneLength/index.d.ts +1 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.cjs +15 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.d.ts +3 -0
- package/src/lib/utils/functions/validatePhoneLength/validatePhoneLength.js +11 -0
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.cjs +9 -4
- package/src/lib/utils/functions/walletListBuilder/utils/getCalculatedOffset/getCalculatedOffset.js +9 -4
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +26 -9
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +13 -0
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +26 -10
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs +2 -2
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.js +2 -2
- package/src/lib/utils/hooks/authenticationHooks/index.d.ts +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +26 -28
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +26 -28
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +41 -28
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +4 -4
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +41 -28
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/index.d.ts +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +141 -0
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.d.ts +17 -0
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +136 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +21 -17
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.d.ts +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +21 -17
- package/src/lib/utils/hooks/index.d.ts +8 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +23 -23
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +23 -23
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +18 -14
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +18 -14
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +37 -19
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +37 -19
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +19 -15
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +19 -15
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +1 -2
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +1 -2
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +1 -2
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +1 -2
- package/src/lib/utils/hooks/useConfirmationPortal/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs +59 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.d.ts +13 -0
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.js +55 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +28 -49
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +7 -15
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +29 -50
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +2 -57
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +2 -57
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +19 -15
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +19 -15
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +27 -28
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +24 -25
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +28 -25
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +28 -25
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +16 -4
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +16 -4
- package/src/lib/utils/hooks/useDynamicModals/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +114 -0
- package/src/lib/{context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.d.ts → utils/hooks/useDynamicModals/useDynamicModals.d.ts} +4 -7
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +110 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +19 -15
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +19 -15
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +25 -24
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +23 -22
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +53 -24
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +53 -24
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +214 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +5 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +210 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +85 -24
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +3 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +85 -24
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +40 -33
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +40 -33
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +79 -1
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +79 -1
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +130 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +126 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +16 -22
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +17 -23
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +84 -91
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.d.ts +3 -9
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +87 -92
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -2
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -2
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +8 -15
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.d.ts +3 -5
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +8 -15
- package/src/lib/utils/hooks/useHandleVerificationRequired/index.d.ts +1 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +93 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.d.ts +15 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +87 -0
- package/src/lib/utils/hooks/useHandleVerifiedUser/index.d.ts +1 -0
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.cjs +101 -0
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.d.ts +5 -0
- package/src/lib/utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.js +97 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +23 -20
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +23 -20
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +24 -25
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +24 -25
- package/src/lib/utils/hooks/useInterval/useInterval.cjs +27 -0
- package/src/lib/utils/hooks/useInterval/useInterval.js +23 -0
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +29 -20
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +29 -20
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +26 -21
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.d.ts +2 -1
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +26 -21
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +19 -15
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +19 -15
- package/src/lib/utils/hooks/useNetworkDataFromWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +91 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.d.ts +3 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +87 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/index.d.ts +1 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +106 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.d.ts +3 -0
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +102 -0
- package/src/lib/utils/hooks/useOnUnmount/useOnUnmount.cjs +3 -1
- package/src/lib/utils/hooks/useOnUnmount/useOnUnmount.js +4 -2
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +19 -15
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +19 -15
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +82 -27
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.d.ts +1 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +83 -28
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +5 -2
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +5 -2
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +21 -56
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts +6 -4
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +21 -56
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +2 -3
- package/src/lib/utils/hooks/usePromise/usePromise.js +2 -3
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +4 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +4 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +7 -5
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +7 -5
- package/src/lib/utils/hooks/useSendDynamicProps/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.cjs +84 -0
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.d.ts +11 -0
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.js +78 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +38 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.d.ts +2 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +34 -0
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.cjs +2 -3
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js +2 -3
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +25 -20
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +25 -20
- package/src/lib/utils/hooks/useSocialAuth/farcaster.cjs +88 -0
- package/src/lib/utils/hooks/useSocialAuth/farcaster.d.ts +34 -0
- package/src/lib/utils/hooks/useSocialAuth/farcaster.js +82 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +129 -63
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +1 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +129 -63
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +21 -17
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +21 -17
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +9 -2
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.d.ts +2 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +10 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +58 -51
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.d.ts +8 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +59 -52
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/types.d.ts +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +40 -24
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.d.ts +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +40 -24
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/validateUpdateRequest/validateUpdateRequest.d.ts +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +1 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +4 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +1 -4
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +7 -50
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +4 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +7 -50
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +43 -36
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +6 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +43 -36
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +19 -15
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.d.ts +2 -2
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +19 -15
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.cjs +7 -4
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletConnectorNetwork/useWalletConnectorNetwork.js +7 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +1 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.d.ts +2 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +6 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +5 -2
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyRequiredConnectorsAreSetup/verifyRequiredConnectorsAreSetup.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +6 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +5 -2
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +5 -2
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +5 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +10 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +10 -4
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.cjs +2 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/convertLegacyPhantomLedgerConnector/convertLegacyPhantomLedgerConnector.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +7 -4
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +6 -3
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +4 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +4 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +1 -34
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -6
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -35
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +23 -17
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +23 -17
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +63 -22
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +63 -22
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +5 -2
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +5 -2
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +22 -18
- package/src/lib/views/AccountExistsView/AccountExistsView.js +22 -18
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +19 -15
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +19 -15
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +19 -15
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +19 -15
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +20 -16
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +20 -16
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +21 -17
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +21 -17
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +97 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +2 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +93 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +23 -19
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +23 -19
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +35 -28
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +34 -27
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.cjs +58 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.d.ts +19 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.js +54 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +103 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.d.ts +14 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +99 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/index.d.ts +1 -0
- package/src/lib/views/{TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs → CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs} +45 -48
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.d.ts +13 -0
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.js → CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js} +46 -39
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.d.ts +1 -11
- package/src/lib/views/CollectUserDataView/useFields.cjs +27 -6
- package/src/lib/views/CollectUserDataView/useFields.d.ts +18 -11
- package/src/lib/views/CollectUserDataView/useFields.js +27 -6
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs} +28 -22
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.d.ts +13 -0
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js} +28 -22
- package/src/lib/views/CollectUserDataViewNoWallet/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +178 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +174 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +150 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +9 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +146 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +127 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +123 -0
- package/src/lib/views/CreatePasswordView/SavePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/index.d.ts +1 -0
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +21 -17
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +21 -17
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +25 -21
- package/src/lib/views/EmailUpdate/EmailUpdate.js +25 -21
- package/src/lib/views/EmailVerification/EmailVerification.cjs +111 -67
- package/src/lib/views/EmailVerification/EmailVerification.d.ts +7 -2
- package/src/lib/views/EmailVerification/EmailVerification.js +111 -67
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +37 -31
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +37 -31
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +70 -42
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +70 -42
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +2 -3
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +1 -1
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +2 -3
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +122 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +8 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +118 -0
- package/src/lib/views/EnterPasswordView/index.d.ts +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +83 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.d.ts +5 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +79 -0
- package/src/lib/views/FarcasterConnectView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +10 -92
- package/src/lib/views/LoginView/LoginView.js +10 -92
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +123 -0
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.d.ts +10 -0
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +119 -0
- package/src/lib/views/LoginView/LoginViewSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +29 -56
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.d.ts +5 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +31 -58
- package/src/lib/views/LoginView/sections/LoginWidget.d.ts +1 -1
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +116 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.d.ts +3 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +112 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +155 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.d.ts +10 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +151 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +21 -17
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +21 -17
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +21 -17
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +21 -17
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +22 -18
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.d.ts +1 -1
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +19 -15
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.cjs → LoginView/sections/ToggleableSection/ToggleableSection.cjs} +38 -39
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.d.ts +13 -0
- package/src/lib/views/{TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js → LoginView/sections/ToggleableSection/ToggleableSection.js} +39 -50
- package/src/lib/views/LoginView/sections/ToggleableSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +20 -16
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +20 -16
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +21 -17
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +21 -17
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +20 -16
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +20 -16
- package/src/lib/views/LoginView/sections/index.d.ts +3 -1
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.cjs +62 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.d.ts +28 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/getLoginViewStructure.js +58 -0
- package/src/lib/views/LoginView/useLoginView/getLoginViewStructure/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/index.d.ts +1 -0
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +207 -0
- package/src/lib/views/LoginView/{useLoginView.d.ts → useLoginView/useLoginView.d.ts} +2 -2
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +202 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +37 -32
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.d.ts +6 -2
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +37 -32
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +30 -48
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +31 -49
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +28 -47
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +28 -47
- package/src/lib/views/NoAccess/NoAccess.cjs +24 -20
- package/src/lib/views/NoAccess/NoAccess.js +24 -20
- package/src/lib/views/NoAccess/useNoAccessText.cjs +19 -15
- package/src/lib/views/NoAccess/useNoAccessText.js +19 -15
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +22 -18
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +22 -18
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +21 -17
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +21 -17
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +45 -29
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.d.ts +1 -0
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +45 -29
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +22 -18
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +2 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +22 -18
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +21 -17
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +21 -17
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +20 -16
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +20 -16
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +21 -17
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +21 -17
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +38 -34
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +39 -35
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +21 -17
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +21 -17
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +130 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.d.ts +11 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +126 -0
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/index.d.ts +1 -0
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +24 -24
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +24 -24
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +26 -27
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +26 -27
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +21 -17
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +21 -17
- package/src/lib/views/Passkey/PasskeyRecovery/index.d.ts +1 -0
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +24 -20
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +24 -20
- package/src/lib/views/Passkey/types/index.d.ts +5 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +14 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.d.ts +4 -3
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +14 -4
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +5 -3
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.d.ts +4 -3
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +5 -3
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.cjs +2 -2
- package/src/lib/views/Passkey/utils/findEmailOtpWalletConnector/findEmailOtpWalletConnector.js +2 -2
- package/src/lib/views/Passkey/utils/findPasskeyEmailWalletConnector/findPasskeyEmailWalletConnector.d.ts +1 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +40 -5
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.d.ts +13 -4
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +42 -8
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +21 -17
- package/src/lib/views/PendingConnectView/PendingConnectView.js +21 -17
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +21 -17
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +21 -17
- package/src/lib/views/QrCodeView/QrCodeView.cjs +26 -29
- package/src/lib/views/QrCodeView/QrCodeView.js +27 -30
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +22 -18
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +22 -18
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +18 -14
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +18 -14
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +21 -17
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +21 -17
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/index.d.ts +0 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +66 -87
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +1 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +67 -88
- package/src/lib/views/SmsVerification/SmsVerification.cjs +90 -0
- package/src/lib/views/SmsVerification/SmsVerification.d.ts +2 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +86 -0
- package/src/lib/views/SmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/index.d.ts +1 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +255 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.d.ts +10 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +251 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +22 -18
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +21 -17
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +21 -17
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +21 -17
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +93 -94
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +7 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +94 -96
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +19 -4
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +19 -4
- package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +0 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +22 -18
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +22 -18
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +1 -2
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.d.ts +1 -1
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +1 -2
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +19 -15
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +19 -15
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +30 -28
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +30 -28
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +21 -17
- package/src/lib/views/WalletGroupView/WalletGroupView.js +21 -17
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +21 -17
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +21 -17
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +21 -17
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +21 -17
- package/src/lib/views/WalletList/WalletList.cjs +31 -18
- package/src/lib/views/WalletList/WalletList.js +31 -18
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +21 -17
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +21 -17
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +21 -17
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +21 -17
- package/src/lib/views/WalletList/data.cjs +3 -8
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletList/data.js +3 -8
- package/src/lib/views/WalletList/hooks/useTabState.cjs +19 -15
- package/src/lib/views/WalletList/hooks/useTabState.js +19 -15
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +21 -17
- package/src/lib/views/WalletLockedView/WalletLockedView.js +21 -17
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +86 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.d.ts +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +82 -0
- package/src/lib/views/WalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +19 -15
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +19 -15
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +34 -35
- package/src/lib/views/WalletUsedView/WalletUsedView.js +34 -35
- package/src/lib/views/index.d.ts +7 -6
- package/src/lib/views/viewToComponentMap.cjs +54 -37
- package/src/lib/views/viewToComponentMap.d.ts +63 -2
- package/src/lib/views/viewToComponentMap.js +54 -37
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +21 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +21 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +20 -16
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +19 -15
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +19 -15
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +22 -18
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +22 -18
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +21 -17
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +21 -17
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +18 -14
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +18 -14
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +29 -15
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +29 -15
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +21 -15
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +21 -15
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +71 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +71 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +20 -16
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +45 -48
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +45 -48
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +19 -15
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +25 -18
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +25 -18
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +38 -35
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +40 -37
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +31 -20
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +31 -20
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +5 -55
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +5 -55
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +22 -18
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +22 -18
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +20 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +36 -18
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +37 -19
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +19 -15
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +33 -37
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +34 -38
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +19 -15
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +20 -16
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +19 -15
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +21 -17
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +23 -17
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +23 -17
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +21 -17
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +20 -16
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +26 -22
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +26 -22
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +19 -15
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +21 -16
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +21 -16
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +20 -16
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +25 -18
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +25 -18
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.cjs +1 -2
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.js +1 -2
- package/src/lib/widgets/DynamicWidget/helpers/getTimeSince.cjs +11 -10
- package/src/lib/widgets/DynamicWidget/helpers/getTimeSince.js +2 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/helpers/helpers.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +3 -5
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +19 -15
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +22 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +22 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +27 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +27 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +24 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +24 -18
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +20 -16
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +19 -15
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +19 -15
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/useWalletDownloadLinks.cjs +37 -0
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/useWalletDownloadLinks.d.ts +9 -0
- package/src/lib/widgets/DynamicWidget/hooks/useWalletDownloadLinks/useWalletDownloadLinks.js +33 -0
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +20 -16
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +25 -27
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +27 -29
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +21 -29
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +21 -29
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +24 -18
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +25 -19
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +23 -31
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +23 -31
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +22 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +22 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +20 -16
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +21 -17
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +20 -16
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +20 -16
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +25 -21
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +25 -21
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +21 -17
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +21 -17
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +22 -17
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +22 -17
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +20 -15
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +20 -15
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +64 -30
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +64 -30
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +24 -20
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +24 -20
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +20 -16
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +20 -16
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
- package/src/lib/components/OverlayCard/OverlayCard.context.cjs +0 -9
- package/src/lib/components/OverlayCard/OverlayCard.context.d.ts +0 -6
- package/src/lib/components/OverlayCard/OverlayCard.context.js +0 -5
- package/src/lib/components/OverlayCard/OverlayCardTarget.cjs +0 -17
- package/src/lib/components/OverlayCard/OverlayCardTarget.d.ts +0 -2
- package/src/lib/components/OverlayCard/OverlayCardTarget.js +0 -13
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.d.ts +0 -6
- package/src/lib/components/SecureTurnkeyWalletCard/index.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.d.ts +0 -1
- package/src/lib/components/SyncPasskeyFlow/index.d.ts +0 -1
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +0 -18
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +0 -6
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +0 -14
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +0 -86
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.d.ts +0 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +0 -82
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.d.ts +0 -2
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.cjs +0 -9
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.d.ts +0 -3
- package/src/lib/context/ConnectWithEmailOtpContext/connectWithEmailOtpContext.js +0 -5
- package/src/lib/context/ConnectWithEmailOtpContext/index.d.ts +0 -2
- package/src/lib/context/ConnectWithEmailOtpContext/types.d.ts +0 -17
- package/src/lib/context/ConnectWithEmailOtpContext/useConnectWithEmailOtp.d.ts +0 -6
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +0 -49
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.d.ts +0 -13
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +0 -45
- package/src/lib/context/DynamicContext/handleDisconnectWallet/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.cjs +0 -49
- package/src/lib/context/DynamicContext/hooks/useSetShowLinkNewWalletModal/useSetShowLinkNewWalletModal.js +0 -45
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/index.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +0 -44
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +0 -40
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.cjs +0 -31
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.d.ts +0 -13
- package/src/lib/context/EmailVerificationContext/EmailVerificationContext.js +0 -25
- package/src/lib/context/EmailVerificationContext/index.d.ts +0 -1
- package/src/lib/shared/assets/alt-embedded-wallet.cjs +0 -54
- package/src/lib/shared/assets/alt-embedded-wallet.js +0 -30
- package/src/lib/shared/assets/passkey-success-icon.cjs +0 -94
- package/src/lib/shared/assets/passkey-success-icon.js +0 -70
- package/src/lib/shared/assets/wallet-outline.cjs +0 -51
- package/src/lib/shared/assets/wallet-outline.js +0 -27
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs +0 -25
- package/src/lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js +0 -21
- package/src/lib/shared/utils/functions/ceil/ceil.cjs +0 -10
- package/src/lib/shared/utils/functions/ceil/ceil.d.ts +0 -1
- package/src/lib/shared/utils/functions/ceil/ceil.js +0 -6
- package/src/lib/shared/utils/functions/ceil/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +0 -21
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +0 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +0 -17
- package/src/lib/shared/utils/functions/formatBigNumber/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.cjs +0 -12
- package/src/lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.js +0 -8
- package/src/lib/shared/utils/functions/trimEnd/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.cjs +0 -13
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.d.ts +0 -1
- package/src/lib/shared/utils/functions/trimEnd/trimEnd.js +0 -9
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.cjs +0 -9
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.d.ts +0 -2
- package/src/lib/utils/functions/authenication/isEmailVerificationRequired/isEmailVerificationRequired.js +0 -5
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.cjs +0 -18
- package/src/lib/utils/functions/isAccountAbstractionWallet/isAccountAbstractionWallet.js +0 -14
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +0 -10
- package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +0 -6
- package/src/lib/utils/functions/isSameWalletName/index.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.cjs +0 -9
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.d.ts +0 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +0 -5
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/index.d.ts +0 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +0 -102
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.d.ts +0 -8
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +0 -98
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +0 -39
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +0 -9
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +0 -35
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -16
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -2
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -12
- package/src/lib/utils/hooks/useTransactionEstimatedGas/index.d.ts +0 -1
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +0 -33
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.d.ts +0 -20
- package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +0 -29
- package/src/lib/utils/hooks/useTransactionWithGasPrice/index.d.ts +0 -1
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +0 -56
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +0 -32
- package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +0 -52
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +0 -105
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +0 -101
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.d.ts +0 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/index.d.ts +0 -1
- package/src/lib/views/LoginView/useLoginView.cjs +0 -265
- package/src/lib/views/LoginView/useLoginView.js +0 -260
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +0 -90
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +0 -14
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +0 -86
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +0 -11
- package/src/lib/views/SendBalanceView/components/TransactionStage/index.d.ts +0 -1
- package/src/lib/views/SendBalanceView/components/index.d.ts +0 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/index.d.ts +0 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +0 -11
- /package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.d.ts +0 -0
- /package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/index.d.ts +0 -0
- /package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/findEmailProvider.cjs +0 -0
- /package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/findEmailProvider.d.ts +0 -0
- /package/src/lib/context/{ConnectWithEmailOtpContext → ConnectWithOtpContext}/utils/findEmailProvider.js +0 -0
- /package/src/lib/{utils/hooks/multiWallet → context/DynamicContext/hooks}/useMultiWallet/index.d.ts +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var reactI18next = require('react-i18next');
|
|
7
|
+
var OTPVerificationView = require('../../components/OTPVerificationView/OTPVerificationView.cjs');
|
|
8
|
+
var PhoneIcon = require('../../components/PhoneIcon/PhoneIcon.cjs');
|
|
9
|
+
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
10
|
+
require('react');
|
|
11
|
+
require('../../events/dynamicEvents.cjs');
|
|
12
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
14
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
15
|
+
require('@dynamic-labs/sdk-api-core');
|
|
16
|
+
require('../../shared/logger.cjs');
|
|
17
|
+
require('@dynamic-labs/iconic');
|
|
18
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
19
|
+
require('@dynamic-labs/wallet-book');
|
|
20
|
+
require('../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../utils/constants/values.cjs');
|
|
22
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
|
+
require('../../shared/consts/index.cjs');
|
|
24
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
25
|
+
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
26
|
+
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
27
|
+
require('@dynamic-labs/multi-wallet');
|
|
28
|
+
require('react-international-phone');
|
|
29
|
+
require('viem');
|
|
30
|
+
require('viem/chains');
|
|
31
|
+
require('../../config/ApiEndpoint.cjs');
|
|
32
|
+
require('../../locale/locale.cjs');
|
|
33
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
35
|
+
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
36
|
+
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
37
|
+
require('react-dom');
|
|
38
|
+
require('../../context/WalletContext/WalletContext.cjs');
|
|
39
|
+
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
40
|
+
require('@dynamic-labs/types');
|
|
41
|
+
require('yup');
|
|
42
|
+
require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
43
|
+
require('../../context/MockContext/MockContext.cjs');
|
|
44
|
+
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
45
|
+
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
46
|
+
require('@dynamic-labs/rpc-providers');
|
|
47
|
+
require('../../context/FooterAnimationContext/index.cjs');
|
|
48
|
+
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
49
|
+
require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
50
|
+
require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
51
|
+
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
52
|
+
require('../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
53
|
+
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
54
|
+
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
55
|
+
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
56
|
+
require('react-focus-lock');
|
|
57
|
+
require('../../context/LoadingContext/LoadingContext.cjs');
|
|
58
|
+
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
59
|
+
require('../../components/IconButton/IconButton.cjs');
|
|
60
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
61
|
+
require('formik');
|
|
62
|
+
require('../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
63
|
+
require('../../components/Alert/Alert.cjs');
|
|
64
|
+
require('../../components/Input/Input.cjs');
|
|
65
|
+
require('../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
66
|
+
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
67
|
+
require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
68
|
+
var TextButton = require('../../components/TextButton/TextButton.cjs');
|
|
69
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
70
|
+
require('../../components/IsBrowser/IsBrowser.cjs');
|
|
71
|
+
require('../../components/Popper/Popper/Popper.cjs');
|
|
72
|
+
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
73
|
+
require('qrcode');
|
|
74
|
+
require('../WalletList/WalletList.cjs');
|
|
75
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
76
|
+
require('@hcaptcha/react-hcaptcha');
|
|
77
|
+
require('../LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
78
|
+
var useSmsVerification = require('./useSmsVerification/useSmsVerification.cjs');
|
|
79
|
+
|
|
80
|
+
const SmsVerification = () => {
|
|
81
|
+
const { view } = ViewContext.useViewContext();
|
|
82
|
+
const { handleLogOut } = useInternalDynamicContext.useInternalDynamicContext();
|
|
83
|
+
const { t } = reactI18next.useTranslation();
|
|
84
|
+
const isLoginView = view.type === 'login-with-sms-verification';
|
|
85
|
+
const { error, formattedPhone, isLoading, isValid, onSubmit, retryOneTimePassword, setError, } = useSmsVerification.useSmsVerification(isLoginView ? 'login' : 'verify-only');
|
|
86
|
+
const LogoutButton = !isLoginView ? (jsxRuntime.jsx(TextButton.TextButton, { className: 'sms-verification__log-out', onClick: handleLogOut, copykey: 'dyn_otp_verification.log_out_button', children: t('dyn_otp_verification.log_out_button') })) : undefined;
|
|
87
|
+
return (jsxRuntime.jsx(OTPVerificationView.OTPVerificationView, { MainIcon: PhoneIcon.PhoneIcon, displayedDestination: formattedPhone, error: error, hideHeader: true, isLoading: isLoading, onPinComplete: onSubmit, isValid: isValid, retryHandler: retryOneTimePassword, onPinChange: () => setError(undefined), appendToEnd: LogoutButton }));
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.SmsVerification = SmsVerification;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { OTPVerificationView } from '../../components/OTPVerificationView/OTPVerificationView.js';
|
|
4
|
+
import { PhoneIcon } from '../../components/PhoneIcon/PhoneIcon.js';
|
|
5
|
+
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../events/dynamicEvents.js';
|
|
8
|
+
import '../../../../_virtual/_tslib.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
10
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
11
|
+
import '@dynamic-labs/sdk-api-core';
|
|
12
|
+
import '../../shared/logger.js';
|
|
13
|
+
import '@dynamic-labs/iconic';
|
|
14
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
15
|
+
import '@dynamic-labs/wallet-book';
|
|
16
|
+
import '../../utils/constants/colors.js';
|
|
17
|
+
import '../../utils/constants/values.js';
|
|
18
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
|
+
import '../../shared/consts/index.js';
|
|
20
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
21
|
+
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
22
|
+
import '../../context/ErrorContext/ErrorContext.js';
|
|
23
|
+
import '@dynamic-labs/multi-wallet';
|
|
24
|
+
import 'react-international-phone';
|
|
25
|
+
import 'viem';
|
|
26
|
+
import 'viem/chains';
|
|
27
|
+
import '../../config/ApiEndpoint.js';
|
|
28
|
+
import '../../locale/locale.js';
|
|
29
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
31
|
+
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
32
|
+
import '../../context/VerificationContext/VerificationContext.js';
|
|
33
|
+
import 'react-dom';
|
|
34
|
+
import '../../context/WalletContext/WalletContext.js';
|
|
35
|
+
import '../../context/ThemeContext/ThemeContext.js';
|
|
36
|
+
import '@dynamic-labs/types';
|
|
37
|
+
import 'yup';
|
|
38
|
+
import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
39
|
+
import '../../context/MockContext/MockContext.js';
|
|
40
|
+
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
41
|
+
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
42
|
+
import '@dynamic-labs/rpc-providers';
|
|
43
|
+
import '../../context/FooterAnimationContext/index.js';
|
|
44
|
+
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
45
|
+
import '../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
46
|
+
import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
47
|
+
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
48
|
+
import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
49
|
+
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
50
|
+
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
51
|
+
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
52
|
+
import 'react-focus-lock';
|
|
53
|
+
import '../../context/LoadingContext/LoadingContext.js';
|
|
54
|
+
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
55
|
+
import '../../components/IconButton/IconButton.js';
|
|
56
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
57
|
+
import 'formik';
|
|
58
|
+
import '../TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
59
|
+
import '../../components/Alert/Alert.js';
|
|
60
|
+
import '../../components/Input/Input.js';
|
|
61
|
+
import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
62
|
+
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
63
|
+
import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
64
|
+
import { TextButton } from '../../components/TextButton/TextButton.js';
|
|
65
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
66
|
+
import '../../components/IsBrowser/IsBrowser.js';
|
|
67
|
+
import '../../components/Popper/Popper/Popper.js';
|
|
68
|
+
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
69
|
+
import 'qrcode';
|
|
70
|
+
import '../WalletList/WalletList.js';
|
|
71
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
72
|
+
import '@hcaptcha/react-hcaptcha';
|
|
73
|
+
import '../LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js';
|
|
74
|
+
import { useSmsVerification } from './useSmsVerification/useSmsVerification.js';
|
|
75
|
+
|
|
76
|
+
const SmsVerification = () => {
|
|
77
|
+
const { view } = useViewContext();
|
|
78
|
+
const { handleLogOut } = useInternalDynamicContext();
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const isLoginView = view.type === 'login-with-sms-verification';
|
|
81
|
+
const { error, formattedPhone, isLoading, isValid, onSubmit, retryOneTimePassword, setError, } = useSmsVerification(isLoginView ? 'login' : 'verify-only');
|
|
82
|
+
const LogoutButton = !isLoginView ? (jsx(TextButton, { className: 'sms-verification__log-out', onClick: handleLogOut, copykey: 'dyn_otp_verification.log_out_button', children: t('dyn_otp_verification.log_out_button') })) : undefined;
|
|
83
|
+
return (jsx(OTPVerificationView, { MainIcon: PhoneIcon, displayedDestination: formattedPhone, error: error, hideHeader: true, isLoading: isLoading, onPinComplete: onSubmit, isValid: isValid, retryHandler: retryOneTimePassword, onPinChange: () => setError(undefined), appendToEnd: LogoutButton }));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { SmsVerification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SmsVerification';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSmsVerification';
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../../_virtual/_tslib.cjs');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var reactInternationalPhone = require('react-international-phone');
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
9
|
+
require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
10
|
+
var decodeJwt = require('../../../shared/utils/functions/decodeJwt/decodeJwt.cjs');
|
|
11
|
+
require('@dynamic-labs/sdk-api-core');
|
|
12
|
+
var logger = require('../../../shared/logger.cjs');
|
|
13
|
+
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
|
+
require('react/jsx-runtime');
|
|
16
|
+
var ViewContext = require('../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
require('@dynamic-labs/wallet-book');
|
|
18
|
+
require('../../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../../utils/constants/values.cjs');
|
|
20
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
|
+
require('../../../shared/consts/index.cjs');
|
|
22
|
+
var dynamicEvents = require('../../../events/dynamicEvents.cjs');
|
|
23
|
+
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
24
|
+
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
25
|
+
require('@dynamic-labs/multi-wallet');
|
|
26
|
+
var isTurnkeyEnabled = require('../../../utils/functions/isTurnkeyEnabled/isTurnkeyEnabled.cjs');
|
|
27
|
+
require('viem');
|
|
28
|
+
require('viem/chains');
|
|
29
|
+
var api = require('../../../data/api.cjs');
|
|
30
|
+
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
31
|
+
var AccountExistsContext = require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
32
|
+
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
33
|
+
var useOtpVerificationRequest = require('../../../utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs');
|
|
34
|
+
require('react-dom');
|
|
35
|
+
var useEmbeddedWallet = require('../../../utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs');
|
|
36
|
+
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
37
|
+
var VerificationContext = require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
38
|
+
var useMutation = require('../../../utils/hooks/useMutation/useMutation.cjs');
|
|
39
|
+
var useOnUnmount = require('../../../utils/hooks/useOnUnmount/useOnUnmount.cjs');
|
|
40
|
+
require('@dynamic-labs/types');
|
|
41
|
+
var useCreateUserProfileByJWTCallback = require('../../../utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs');
|
|
42
|
+
var useHandleVerifiedUser = require('../../../utils/hooks/useHandleVerifiedUser/useHandleVerifiedUser.cjs');
|
|
43
|
+
require('yup');
|
|
44
|
+
require('react-i18next');
|
|
45
|
+
require('../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
46
|
+
require('../../../context/MockContext/MockContext.cjs');
|
|
47
|
+
require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
48
|
+
require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
|
+
require('@dynamic-labs/rpc-providers');
|
|
50
|
+
require('../../../components/Alert/Alert.cjs');
|
|
51
|
+
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
52
|
+
require('../../../components/IconButton/IconButton.cjs');
|
|
53
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
54
|
+
require('../../../components/Input/Input.cjs');
|
|
55
|
+
require('../../../components/IsBrowser/IsBrowser.cjs');
|
|
56
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
57
|
+
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
58
|
+
require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
59
|
+
require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
60
|
+
require('../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
61
|
+
require('../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
62
|
+
require('../../../components/Popper/Popper/Popper.cjs');
|
|
63
|
+
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
64
|
+
require('react-focus-lock');
|
|
65
|
+
require('qrcode');
|
|
66
|
+
require('../../../context/WalletContext/WalletContext.cjs');
|
|
67
|
+
require('formik');
|
|
68
|
+
require('../../WalletList/WalletList.cjs');
|
|
69
|
+
require('../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
70
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
71
|
+
require('../../../locale/locale.cjs');
|
|
72
|
+
require('@hcaptcha/react-hcaptcha');
|
|
73
|
+
require('../../../context/LoadingContext/LoadingContext.cjs');
|
|
74
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
75
|
+
require('../../../context/FooterAnimationContext/index.cjs');
|
|
76
|
+
require('../../LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs');
|
|
77
|
+
require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
78
|
+
require('../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
79
|
+
require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
80
|
+
require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
81
|
+
require('../../TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
82
|
+
require('../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
83
|
+
var useInternalDynamicContext = require('../../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
84
|
+
|
|
85
|
+
const sleepToShowSuccessMessage = () => utils.sleep(1500);
|
|
86
|
+
const useSmsVerification = (type) => {
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
const { handleVerifiedUserWithJWT } = useHandleVerifiedUser.useHandleVerifiedUser();
|
|
89
|
+
const { verificationUUID, displayedDestination: formattedPhone, retryData, } = VerificationContext.useVerification();
|
|
90
|
+
const { environmentId, handleLogOut, setOnboardingOnlyJwt, setCallback, setShowAuthFlow, projectSettings, authToken, onboardingOnlyJwt, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
91
|
+
const { setView, goToInitialView } = ViewContext.useViewContext();
|
|
92
|
+
const { createUserProfileByJWT } = useCreateUserProfileByJWTCallback.useCreateUserProfileByJWTCallback();
|
|
93
|
+
const [error, setError] = React.useState();
|
|
94
|
+
const { createEmbeddedWallet } = useEmbeddedWallet.useEmbeddedWallet();
|
|
95
|
+
const isTurnkeyProviderEnabled = isTurnkeyEnabled.isTurnkeyEnabled(projectSettings);
|
|
96
|
+
const { verifyOtp } = useOtpVerificationRequest.useOtpVerificationRequest();
|
|
97
|
+
const { setExistentAccountData } = AccountExistsContext.useAccountExistsContext();
|
|
98
|
+
/** Whether verification was successfully performed */
|
|
99
|
+
const isValidatedRef = React.useRef(false);
|
|
100
|
+
useOnUnmount.useOnUnmount(() => {
|
|
101
|
+
dynamicEvents.dynamicEvents.emit('smsVerificationResult', isValidatedRef.current, retryData !== null && retryData !== void 0 ? retryData : {
|
|
102
|
+
dialCode: '',
|
|
103
|
+
iso2: '',
|
|
104
|
+
phone: '',
|
|
105
|
+
});
|
|
106
|
+
if (!retryData)
|
|
107
|
+
logger.logger.warn('WARNING: emitted smsVerificationResult with incomplete params because retryData was undefined');
|
|
108
|
+
});
|
|
109
|
+
const retryOneTimePassword = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
110
|
+
setError(undefined);
|
|
111
|
+
if (!verificationUUID || !retryData) {
|
|
112
|
+
yield handleLogOut();
|
|
113
|
+
goToInitialView();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
api.retrySmsVerification({
|
|
117
|
+
environmentId,
|
|
118
|
+
isoCountryCode: retryData.iso2,
|
|
119
|
+
phoneCountryCode: retryData.dialCode,
|
|
120
|
+
phoneNumber: reactInternationalPhone.removeDialCode({
|
|
121
|
+
dialCode: retryData.dialCode,
|
|
122
|
+
phone: retryData.phone,
|
|
123
|
+
}),
|
|
124
|
+
verificationUUID,
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
const submitOtpForVerification = React.useCallback((verificationToken) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
128
|
+
var _e, _f;
|
|
129
|
+
if (!verificationUUID || (!authToken && !onboardingOnlyJwt)) {
|
|
130
|
+
yield handleLogOut();
|
|
131
|
+
goToInitialView();
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
const { updateUserProfileResponse } = yield verifyOtp(verificationToken, 'sms', verificationUUID);
|
|
135
|
+
isValidatedRef.current = true;
|
|
136
|
+
// There are no scenarios currently where the backend requests another verification after
|
|
137
|
+
// an SMS verification, but if this changes in the future, we will have to replace this comment
|
|
138
|
+
// with code similar to what we have after calling verifyEmail in EmailVerification
|
|
139
|
+
if (onboardingOnlyJwt) {
|
|
140
|
+
yield handleVerifiedUserWithJWT(updateUserProfileResponse.jwt);
|
|
141
|
+
setOnboardingOnlyJwt(undefined);
|
|
142
|
+
setCallback('authSuccess');
|
|
143
|
+
}
|
|
144
|
+
if (isTurnkeyProviderEnabled &&
|
|
145
|
+
!((_f = (_e = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _e === void 0 ? void 0 : _e.embeddedWallets) === null || _f === void 0 ? void 0 : _f.automaticEmbeddedWalletCreation)) {
|
|
146
|
+
setShowAuthFlow(false);
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
// this function will check turnkey wallet enabled and create wallet if needed
|
|
150
|
+
// if not enabled, it will throw an error.
|
|
151
|
+
yield createEmbeddedWallet().catch(() => setShowAuthFlow(false));
|
|
152
|
+
return true;
|
|
153
|
+
}), [
|
|
154
|
+
authToken,
|
|
155
|
+
createEmbeddedWallet,
|
|
156
|
+
goToInitialView,
|
|
157
|
+
handleLogOut,
|
|
158
|
+
isTurnkeyProviderEnabled,
|
|
159
|
+
onboardingOnlyJwt,
|
|
160
|
+
(_b = (_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.embeddedWallets) === null || _b === void 0 ? void 0 : _b.automaticEmbeddedWalletCreation,
|
|
161
|
+
setCallback,
|
|
162
|
+
setOnboardingOnlyJwt,
|
|
163
|
+
setShowAuthFlow,
|
|
164
|
+
verificationUUID,
|
|
165
|
+
verifyOtp,
|
|
166
|
+
]);
|
|
167
|
+
const submitOtpForLogin = React.useCallback((verificationToken) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
168
|
+
var _g, _h;
|
|
169
|
+
if (!verificationUUID) {
|
|
170
|
+
yield handleLogOut();
|
|
171
|
+
goToInitialView();
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
try {
|
|
175
|
+
const { jwt, minifiedJwt } = yield api.signInWithSmsVerification({
|
|
176
|
+
environmentId,
|
|
177
|
+
verificationToken,
|
|
178
|
+
verificationUUID,
|
|
179
|
+
});
|
|
180
|
+
if (!jwt) {
|
|
181
|
+
yield handleLogOut();
|
|
182
|
+
goToInitialView();
|
|
183
|
+
return false;
|
|
184
|
+
}
|
|
185
|
+
isValidatedRef.current = true;
|
|
186
|
+
const decodedJwt = decodeJwt.decodeJwt(jwt);
|
|
187
|
+
if (decodedJwt === null || decodedJwt === void 0 ? void 0 : decodedJwt.missingFields.length) {
|
|
188
|
+
setOnboardingOnlyJwt(jwt);
|
|
189
|
+
yield sleepToShowSuccessMessage();
|
|
190
|
+
setView('collect-user-data-login-no-wallet', {
|
|
191
|
+
userIdentification: 'phoneNumber',
|
|
192
|
+
userIdentificationOverride: formattedPhone,
|
|
193
|
+
});
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
yield handleVerifiedUserWithJWT(jwt);
|
|
197
|
+
setCallback('authSuccess');
|
|
198
|
+
// this timeout is set to make sure that the user will see success message
|
|
199
|
+
yield sleepToShowSuccessMessage();
|
|
200
|
+
yield createUserProfileByJWT(jwt, minifiedJwt);
|
|
201
|
+
if (isTurnkeyProviderEnabled &&
|
|
202
|
+
!((_h = (_g = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _g === void 0 ? void 0 : _g.embeddedWallets) === null || _h === void 0 ? void 0 : _h.automaticEmbeddedWalletCreation)) {
|
|
203
|
+
setShowAuthFlow(false);
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
// this function will check turnkey wallet enabled and create wallet if needed
|
|
207
|
+
// if not enabled, it will throw an error.
|
|
208
|
+
yield createEmbeddedWallet().catch(() => setShowAuthFlow(false));
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
if (error instanceof utils.NoAccessError) {
|
|
213
|
+
setView('no-access');
|
|
214
|
+
}
|
|
215
|
+
if (error instanceof utils.AccountExistsError) {
|
|
216
|
+
setExistentAccountData(error.errorPayload);
|
|
217
|
+
setView('account-exists');
|
|
218
|
+
}
|
|
219
|
+
logger.logger.debug(error);
|
|
220
|
+
setError(error);
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
}), [
|
|
224
|
+
createEmbeddedWallet,
|
|
225
|
+
createUserProfileByJWT,
|
|
226
|
+
environmentId,
|
|
227
|
+
formattedPhone,
|
|
228
|
+
goToInitialView,
|
|
229
|
+
handleLogOut,
|
|
230
|
+
isTurnkeyProviderEnabled,
|
|
231
|
+
(_d = (_c = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _c === void 0 ? void 0 : _c.embeddedWallets) === null || _d === void 0 ? void 0 : _d.automaticEmbeddedWalletCreation,
|
|
232
|
+
setCallback,
|
|
233
|
+
setOnboardingOnlyJwt,
|
|
234
|
+
setShowAuthFlow,
|
|
235
|
+
setView,
|
|
236
|
+
verificationUUID,
|
|
237
|
+
setExistentAccountData,
|
|
238
|
+
]);
|
|
239
|
+
const { data: isValid, isLoading, mutate: onSubmit, } = useMutation.useMutation(type === 'login' ? submitOtpForLogin : submitOtpForVerification, {
|
|
240
|
+
onFailure: (error) => {
|
|
241
|
+
setError(error);
|
|
242
|
+
},
|
|
243
|
+
});
|
|
244
|
+
return {
|
|
245
|
+
error,
|
|
246
|
+
formattedPhone: formattedPhone !== null && formattedPhone !== void 0 ? formattedPhone : '',
|
|
247
|
+
isLoading,
|
|
248
|
+
isValid: Boolean(isValid),
|
|
249
|
+
onSubmit,
|
|
250
|
+
retryOneTimePassword,
|
|
251
|
+
setError,
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
exports.useSmsVerification = useSmsVerification;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useSmsVerification: (type: 'login' | 'verify-only') => {
|
|
3
|
+
error: Error | undefined;
|
|
4
|
+
formattedPhone: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isValid: boolean;
|
|
7
|
+
onSubmit: (variables: string) => void;
|
|
8
|
+
retryOneTimePassword: () => Promise<void>;
|
|
9
|
+
setError: import("react").Dispatch<import("react").SetStateAction<Error | undefined>>;
|
|
10
|
+
};
|