@dynamic-labs/sdk-react-core 2.0.0-alpha.2 → 2.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +223 -0
- package/package.cjs +6 -5
- package/package.js +6 -5
- package/package.json +18 -15
- package/src/index.cjs +78 -62
- package/src/index.d.ts +3 -4
- package/src/index.js +47 -34
- package/src/lib/Main.cjs +29 -19
- package/src/lib/Main.js +30 -20
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +18 -13
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +18 -13
- package/src/lib/components/Alert/Alert.cjs +1 -1
- package/src/lib/components/Alert/Alert.js +1 -1
- package/src/lib/components/Alert/Alert.types.d.ts +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +18 -13
- package/src/lib/components/AnimatePresence/AnimatePresence.js +18 -13
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +24 -15
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +24 -15
- package/src/lib/components/Captcha/Captcha.cjs +17 -12
- package/src/lib/components/Captcha/Captcha.js +17 -12
- 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 +0 -1
- package/src/lib/components/Checkbox/Checkbox.js +0 -1
- package/src/lib/components/Divider/Divider.cjs +19 -14
- package/src/lib/components/Divider/Divider.js +19 -14
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +18 -13
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +18 -13
- 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 +1 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -2
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.cjs +0 -1
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.js +0 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +3 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +3 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +3 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +3 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +3 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +3 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +3 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +3 -1
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +90 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.d.ts +10 -0
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +86 -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 +18 -13
- package/src/lib/components/LogoutButton/LogoutButton.js +18 -13
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +18 -13
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +18 -13
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +2 -3
- package/src/lib/components/MenuList/MenuList/MenuList.js +2 -3
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/MockedQrCode/MockedQrCode.cjs +66 -1
- package/src/lib/components/MockedQrCode/MockedQrCode.js +66 -1
- package/src/lib/components/Modal/Modal.cjs +18 -13
- package/src/lib/components/Modal/Modal.js +18 -13
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +18 -13
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +18 -13
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +29 -25
- package/src/lib/components/NetworkPicker/NetworkPicker.d.ts +2 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +29 -25
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +20 -15
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +20 -15
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +19 -14
- package/src/lib/components/NetworkPicker/components/Network/Network.js +19 -14
- 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 +71 -1
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +72 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +24 -15
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +25 -16
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +0 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +0 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +13 -20
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +9 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +13 -20
- package/src/lib/components/OverlayCard/OverlayCard.cjs +39 -28
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +2 -3
- package/src/lib/components/OverlayCard/OverlayCard.js +40 -29
- 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 +17 -12
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +17 -12
- 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 +115 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.d.ts +15 -0
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +111 -0
- package/src/lib/components/PhoneNumberField/getCustomCountries/getCustomCountries.cjs +23 -0
- package/src/lib/components/PhoneNumberField/getCustomCountries/getCustomCountries.d.ts +4 -0
- package/src/lib/components/PhoneNumberField/getCustomCountries/getCustomCountries.js +18 -0
- package/src/lib/components/PhoneNumberField/getCustomCountries/index.d.ts +1 -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 +216 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.d.ts +35 -0
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js +211 -0
- package/src/lib/components/Portal/Portal.cjs +20 -13
- package/src/lib/components/Portal/Portal.js +20 -13
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +18 -13
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +18 -13
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.cjs +30 -25
- package/src/lib/{views/QrCodeView → components/QRCode}/QRCode.js +30 -25
- package/src/lib/components/QRCode/index.d.ts +1 -0
- package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/QrCodeContainer.cjs +41 -31
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.d.ts +14 -0
- package/src/lib/{views/QrCodeView → components/QrCodeWrapper}/QrCodeContainer/QrCodeContainer.js +41 -31
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +88 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.d.ts +11 -0
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +84 -0
- package/src/lib/components/QrCodeWrapper/index.d.ts +1 -0
- package/src/lib/components/RenderView/RenderView.cjs +19 -14
- package/src/lib/components/RenderView/RenderView.js +19 -14
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +21 -16
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +21 -16
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +106 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.d.ts +2 -0
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +102 -0
- package/src/lib/components/SandboxIndicatorWrapper/index.d.ts +1 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs} +20 -15
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.d.ts +6 -0
- package/src/lib/components/{SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js → SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js} +20 -15
- package/src/lib/components/SecureEmbeddedWalletCard/index.d.ts +1 -0
- package/src/lib/components/Select/Select.cjs +0 -1
- package/src/lib/components/Select/Select.js +0 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +10 -15
- package/src/lib/components/SendBalanceForm/SendBalanceForm.d.ts +2 -1
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +10 -15
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +81 -12
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.d.ts +3 -6
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +81 -12
- 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 +20 -13
- package/src/lib/components/ShadowDOM/ShadowDOM.js +20 -14
- package/src/lib/components/ShadowDOM/utils.cjs +0 -1
- package/src/lib/components/ShadowDOM/utils.js +0 -1
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +0 -1
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +0 -1
- 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 +22 -17
- package/src/lib/components/SocialSignIn/SocialSignIn.js +22 -17
- package/src/lib/components/Spinner/spinner.cjs +0 -1
- package/src/lib/components/Spinner/spinner.js +0 -1
- package/src/lib/components/Step/Step.cjs +0 -1
- package/src/lib/components/Step/Step.js +0 -1
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.cjs → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.cjs} +45 -24
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.d.ts +1 -0
- package/src/lib/components/{SyncPasskeyFlow/SyncPasskeyFlow.js → SyncEmbeddedWalletAuthFlow/SyncEmbeddedWalletAuthFlow.js} +46 -25
- package/src/lib/components/SyncEmbeddedWalletAuthFlow/index.d.ts +1 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +95 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.d.ts +8 -0
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +91 -0
- package/src/lib/components/ToggleVisibilityButton/index.d.ts +1 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +21 -16
- package/src/lib/components/Toolkit/Toolkit.js +21 -16
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +19 -14
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +19 -14
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +21 -18
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +21 -18
- package/src/lib/components/Tooltip/Tooltip.cjs +18 -13
- package/src/lib/components/Tooltip/Tooltip.js +18 -13
- package/src/lib/components/TosAndPp/TosAndPp.cjs +18 -13
- package/src/lib/components/TosAndPp/TosAndPp.js +18 -13
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +17 -12
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +17 -12
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +18 -13
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +18 -13
- 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 +18 -13
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +18 -13
- 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 +20 -15
- package/src/lib/components/UserAddress/UserAddress.js +20 -15
- package/src/lib/components/UserProfile/UserProfile.cjs +34 -16
- package/src/lib/components/UserProfile/UserProfile.js +34 -16
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +37 -17
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +37 -17
- 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 +19 -14
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +19 -14
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +22 -15
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +22 -15
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +26 -21
- package/src/lib/components/UserProfileForm/UserProfileForm.d.ts +1 -1
- package/src/lib/components/UserProfileForm/UserProfileForm.js +25 -20
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +0 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +0 -1
- package/src/lib/components/index.d.ts +15 -5
- package/src/lib/context/CaptchaContext/CaptchaContext.d.ts +1 -1
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.cjs +18 -13
- package/src/lib/context/ConnectWithEmailOtpContext/ConnectWithEmailOtpProvider.js +18 -13
- package/src/lib/context/DynamicContext/DynamicContext.cjs +46 -62
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +4 -5
- package/src/lib/context/DynamicContext/DynamicContext.js +47 -63
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.cjs +1 -5
- package/src/lib/context/DynamicContext/handleDisconnectWallet/handleDisconnectWallet.js +1 -5
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +10 -1
- package/src/lib/context/DynamicContext/helpers/helpers.d.ts +5 -0
- package/src/lib/context/DynamicContext/helpers/helpers.js +10 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -20
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +4 -21
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.types.d.ts +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +3 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/types.d.ts +0 -2
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +24 -16
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +24 -16
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +0 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +0 -1
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +5 -5
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.d.ts +8 -6
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +5 -5
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +24 -18
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +24 -18
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +0 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +0 -1
- package/src/lib/context/DynamicContext/types/index.d.ts +18 -7
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +2 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +12 -17
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +12 -17
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +1 -3
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +1 -3
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +18 -13
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +18 -13
- package/src/lib/context/DynamicContext/validators/validators.cjs +0 -1
- package/src/lib/context/DynamicContext/validators/validators.js +0 -1
- 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 +20 -13
- package/src/lib/context/FundingContext/FundingContext.js +20 -13
- package/src/lib/context/LoadingContext/LoadingContext.cjs +17 -12
- package/src/lib/context/LoadingContext/LoadingContext.js +17 -12
- package/src/lib/context/MockContext/MockContext.cjs +16 -10
- package/src/lib/context/MockContext/MockContext.js +16 -10
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +26 -17
- package/src/lib/context/PasskeyContext/PasskeyContext.js +26 -17
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +28 -17
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +28 -17
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +37 -16
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.d.ts +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +37 -16
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +27 -19
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +28 -20
- package/src/lib/context/SendBalanceContext/SendBalanceContext.types.d.ts +1 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +19 -14
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +19 -14
- package/src/lib/context/ThemeContext/themesData.cjs +0 -1
- package/src/lib/context/ThemeContext/themesData.js +0 -1
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +18 -13
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +18 -13
- package/src/lib/context/VerificationContext/VerificationContext.cjs +34 -0
- package/src/lib/context/VerificationContext/VerificationContext.d.ts +35 -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 +30 -14
- package/src/lib/context/WalletContext/WalletContext.d.ts +8 -3
- package/src/lib/context/WalletContext/WalletContext.js +31 -16
- package/src/lib/data/api.cjs +166 -2
- package/src/lib/data/api.d.ts +53 -2
- package/src/lib/data/api.js +160 -5
- package/src/lib/events/dynamicEvents.d.ts +14 -3
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +18 -14
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +18 -14
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +33 -17
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +33 -17
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +18 -13
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +18 -13
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +19 -14
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +19 -14
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +20 -15
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +20 -15
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +23 -18
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +23 -18
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +19 -14
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +19 -14
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +21 -16
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +21 -16
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +19 -14
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +19 -14
- package/src/lib/locale/en/translation.cjs +322 -28
- package/src/lib/locale/en/translation.d.ts +318 -24
- package/src/lib/locale/en/translation.js +322 -28
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +82 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.d.ts +3 -0
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +78 -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 +88 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.d.ts +3 -0
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +84 -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 +20 -14
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +20 -14
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +88 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.d.ts +3 -0
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +84 -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 +24 -19
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.d.ts +1 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +24 -19
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +21 -16
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +21 -16
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +22 -26
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +22 -26
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +3 -5
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +18 -13
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +18 -13
- package/src/lib/modals/index.d.ts +3 -0
- package/src/lib/shared/assets/chevron-down.cjs +53 -0
- package/src/lib/shared/assets/chevron-down.js +29 -0
- package/src/lib/shared/assets/download.cjs +53 -0
- package/src/lib/shared/assets/download.js +29 -0
- package/src/lib/shared/assets/index.d.ts +19 -13
- package/src/lib/shared/assets/password-hero.cjs +53 -0
- package/src/lib/shared/assets/password-hero.js +29 -0
- 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/sign-in-with-phone.cjs +53 -0
- package/src/lib/shared/assets/sign-in-with-phone.js +29 -0
- 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/types/connectionAndSignature.d.ts +15 -0
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +48 -0
- package/src/lib/shared/types/embeddedWallets.d.ts +6 -0
- package/src/lib/shared/types/general.d.ts +5 -0
- package/src/lib/shared/types/index.d.ts +8 -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 +85 -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 +2 -3
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.cjs +3 -0
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.d.ts +1 -1
- package/src/lib/shared/utils/functions/providerLabel/providerLabel.js +3 -0
- 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 +1 -5
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +10 -28
- 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 +1 -0
- package/src/lib/utils/constants/localStorage.cjs +2 -0
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +2 -1
- package/src/lib/utils/constants/values.d.ts +1 -0
- 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 +0 -1
- package/src/lib/utils/functions/findEmbeddedWalletFromVerifiedCredentials/findEmbeddedWalletFromVerifiedCredentials.js +0 -1
- package/src/lib/utils/functions/formatPhone/formatPhone.cjs +28 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.d.ts +5 -0
- package/src/lib/utils/functions/formatPhone/formatPhone.js +24 -0
- package/src/lib/utils/functions/formatPhone/index.d.ts +1 -0
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +0 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +0 -1
- 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/getEOAWallet/getEOAWallet.cjs +38 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.d.ts +3 -0
- package/src/lib/utils/functions/getEOAWallet/getEOAWallet.js +34 -0
- package/src/lib/utils/functions/getEOAWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +38 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.d.ts +2 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +34 -0
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/index.d.ts +1 -0
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +0 -1
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +0 -1
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +44 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.d.ts +6 -0
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +40 -0
- package/src/lib/utils/functions/getUserIdentifier/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.cjs +25 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.d.ts +9 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/getUserVerifiedCredentialType.js +21 -0
- package/src/lib/utils/functions/getUserVerifiedCredentialType/index.d.ts +1 -0
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.cjs +0 -1
- package/src/lib/utils/functions/getUserWalletsFromVerifiedCredentials/getUserWalletsFromVerifiedCredentials.js +0 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +2 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +8 -17
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.d.ts +1 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +8 -17
- package/src/lib/utils/functions/index.d.ts +16 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/index.d.ts +1 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +37 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.d.ts +2 -0
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +33 -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 -4
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.d.ts +1 -1
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +5 -4
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +28 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +24 -0
- 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/parseWalletLinks/parseWalletLinks.cjs +0 -1
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +0 -1
- 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 +35 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.d.ts +2 -0
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +31 -0
- package/src/lib/utils/functions/storeAuthToken/index.cjs +0 -1
- package/src/lib/utils/functions/storeAuthToken/index.js +0 -1
- 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/hooks/authenticationHooks/index.d.ts +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +25 -18
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +25 -18
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +25 -19
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.d.ts +4 -4
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +25 -19
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/index.d.ts +1 -0
- package/src/lib/utils/hooks/authenticationHooks/{useEmailVerificationRequest/useEmailVerificationRequest.cjs → useOtpVerificationRequest/useOtpVerificationRequest.cjs} +58 -34
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.d.ts +7 -0
- package/src/lib/utils/hooks/authenticationHooks/{useEmailVerificationRequest/useEmailVerificationRequest.js → useOtpVerificationRequest/useOtpVerificationRequest.js} +59 -35
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +21 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.d.ts +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +21 -16
- package/src/lib/utils/hooks/index.d.ts +6 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +3 -14
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +1 -2
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +3 -14
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +22 -21
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +22 -21
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +17 -12
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +17 -12
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +29 -16
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +29 -16
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +18 -13
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +18 -13
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +0 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +0 -1
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +0 -1
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +0 -1
- 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 +5 -4
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +5 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +18 -13
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +18 -13
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +18 -13
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +18 -13
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +22 -22
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +22 -22
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +27 -23
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +27 -23
- 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 +112 -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 +108 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +18 -13
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +18 -13
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +21 -15
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +21 -15
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +51 -21
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +51 -21
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +215 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.d.ts +5 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +211 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +78 -20
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +78 -20
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.cjs +27 -24
- package/src/lib/utils/hooks/useEmbeddedWallet/useTurnkey/useTurnkey.js +27 -24
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +131 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.d.ts +4 -0
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +127 -0
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +15 -21
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +16 -22
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +84 -91
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.d.ts +2 -9
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +87 -92
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +0 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +0 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +2 -7
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +2 -7
- package/src/lib/utils/hooks/useHandleVerificationRequired/index.d.ts +1 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +62 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.d.ts +16 -0
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +56 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +18 -13
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +18 -13
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +23 -23
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +23 -23
- 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 +28 -18
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +28 -18
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +20 -18
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +20 -18
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +18 -13
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +18 -13
- package/src/lib/utils/hooks/useNetworkDataFromWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +92 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.d.ts +3 -0
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +88 -0
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +18 -13
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +18 -13
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +23 -23
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +23 -23
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +3 -1
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +3 -1
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs +20 -55
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts +5 -3
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/useProcessNetworkConfigurations.js +20 -55
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +1 -2
- package/src/lib/utils/hooks/usePromise/usePromise.js +1 -2
- 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 +1 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +1 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -1
- 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 +0 -1
- package/src/lib/utils/hooks/useSetWalletConnectorVerifiedCredentials/useSetWalletConnectorVerifiedCredentials.js +0 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +19 -13
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +19 -13
- 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 +102 -40
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +104 -42
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +18 -13
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +18 -13
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +0 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +0 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +52 -43
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.d.ts +2 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +52 -43
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +39 -22
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +39 -22
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +1 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +1 -4
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +2 -45
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +1 -5
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -45
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +23 -16
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +6 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +23 -16
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +18 -13
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +18 -13
- 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 +1 -2
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +1 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +3 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +3 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +3 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +3 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +3 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +3 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +4 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +4 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +3 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +3 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +4 -7
- package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +4 -7
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +0 -33
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -6
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +1 -34
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +22 -15
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +22 -15
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +62 -20
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +62 -20
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +1 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +3 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +3 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +20 -15
- package/src/lib/views/AccountExistsView/AccountExistsView.js +20 -15
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +18 -13
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +18 -13
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +18 -13
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +18 -13
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +19 -14
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +19 -14
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +19 -14
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +19 -14
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +98 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.d.ts +2 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +94 -0
- package/src/lib/views/CoinbaseMPCClaimIntro/index.d.ts +1 -0
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +21 -16
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +21 -16
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +29 -24
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +28 -23
- package/src/lib/views/CollectUserDataView/UserDataFields/{index.cjs → UserDataFields.cjs} +25 -16
- package/src/lib/views/CollectUserDataView/UserDataFields/UserDataFields.d.ts +11 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/{index.js → UserDataFields.js} +25 -16
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.cjs → CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs} +41 -36
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.d.ts +12 -0
- package/src/lib/views/{SendBalanceView/components/TransactionStage/TransactionStage.js → CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js} +41 -36
- 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 +36 -5
- package/src/lib/views/CollectUserDataView/useFields.js +36 -5
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs} +26 -19
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.d.ts +13 -0
- package/src/lib/views/{CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js → CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js} +26 -19
- package/src/lib/views/CollectUserDataViewNoWallet/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +179 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.d.ts +12 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +175 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/index.d.ts +1 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +151 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.d.ts +9 -0
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +147 -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 +19 -14
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +19 -14
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +21 -16
- package/src/lib/views/EmailUpdate/EmailUpdate.js +21 -16
- package/src/lib/views/EmailVerification/EmailVerification.cjs +38 -40
- package/src/lib/views/EmailVerification/EmailVerification.js +38 -40
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +36 -29
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +36 -29
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +67 -38
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +2 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +67 -38
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +0 -1
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.d.ts +1 -1
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +0 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +123 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.d.ts +8 -0
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +119 -0
- package/src/lib/views/EnterPasswordView/index.d.ts +1 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +84 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.d.ts +5 -0
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +80 -0
- package/src/lib/views/FarcasterConnectView/index.d.ts +1 -0
- package/src/lib/views/LoginView/LoginView.cjs +54 -28
- package/src/lib/views/LoginView/LoginView.js +54 -28
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +28 -36
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +30 -38
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +113 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.d.ts +3 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +109 -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 +153 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.d.ts +10 -0
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +149 -0
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +19 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +19 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +19 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +19 -14
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +18 -13
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +18 -13
- package/src/lib/views/{TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs → LoginView/sections/ToggleableSection/ToggleableSection.cjs} +37 -47
- 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} +38 -48
- package/src/lib/views/LoginView/sections/ToggleableSection/index.d.ts +1 -0
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +18 -13
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +18 -13
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +19 -14
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +19 -14
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +18 -13
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +18 -13
- 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 +208 -0
- package/src/lib/views/LoginView/{useLoginView.d.ts → useLoginView/useLoginView.d.ts} +1 -1
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +203 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +26 -27
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +26 -27
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +19 -14
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +19 -14
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +18 -13
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +18 -13
- package/src/lib/views/NoAccess/NoAccess.cjs +22 -17
- package/src/lib/views/NoAccess/NoAccess.js +22 -17
- package/src/lib/views/NoAccess/useNoAccessText.cjs +18 -13
- package/src/lib/views/NoAccess/useNoAccessText.js +18 -13
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +19 -14
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +19 -14
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +19 -14
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.d.ts +2 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +19 -14
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +18 -13
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +18 -13
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +19 -14
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +19 -14
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +20 -15
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +20 -15
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +19 -14
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +19 -14
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +22 -21
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +22 -21
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +24 -24
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +24 -24
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +19 -14
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.d.ts +2 -3
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +19 -14
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +20 -15
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +20 -15
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +5 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +5 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +2 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +2 -1
- 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/passkeyRecovery/passkeyRecovery.cjs +2 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +19 -14
- package/src/lib/views/PendingConnectView/PendingConnectView.js +19 -14
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +19 -14
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +19 -14
- package/src/lib/views/QrCodeView/QrCodeView.cjs +25 -27
- package/src/lib/views/QrCodeView/QrCodeView.js +26 -28
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +20 -15
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +20 -15
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +17 -12
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +17 -12
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +19 -14
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +19 -14
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +64 -84
- package/src/lib/views/SendBalanceView/SendBalanceView.d.ts +1 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +65 -85
- package/src/lib/views/SmsVerification/SmsVerification.cjs +106 -0
- package/src/lib/views/SmsVerification/SmsVerification.d.ts +2 -0
- package/src/lib/views/SmsVerification/SmsVerification.js +102 -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 +226 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.d.ts +10 -0
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +222 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +19 -14
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +19 -14
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +19 -14
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +19 -14
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +92 -92
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +7 -5
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +93 -94
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +17 -3
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +17 -3
- package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +0 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +20 -15
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +20 -15
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +0 -1
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +0 -1
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +18 -13
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +18 -13
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +28 -25
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +28 -25
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +20 -15
- package/src/lib/views/WalletGroupView/WalletGroupView.js +20 -15
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +19 -14
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +19 -14
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +19 -14
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +19 -14
- package/src/lib/views/WalletList/WalletList.cjs +26 -13
- package/src/lib/views/WalletList/WalletList.js +26 -13
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +31 -27
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +31 -27
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +19 -14
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +19 -14
- package/src/lib/views/WalletList/data.cjs +2 -7
- package/src/lib/views/WalletList/data.d.ts +1 -1
- package/src/lib/views/WalletList/data.js +2 -7
- package/src/lib/views/WalletList/hooks/useTabState.cjs +18 -13
- package/src/lib/views/WalletList/hooks/useTabState.js +18 -13
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +19 -14
- package/src/lib/views/WalletLockedView/WalletLockedView.js +19 -14
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +87 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.d.ts +2 -0
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +83 -0
- package/src/lib/views/WalletRedirectView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +18 -13
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +18 -13
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +27 -29
- package/src/lib/views/WalletUsedView/WalletUsedView.js +27 -29
- package/src/lib/views/index.d.ts +7 -6
- package/src/lib/views/viewToComponentMap.cjs +49 -33
- package/src/lib/views/viewToComponentMap.d.ts +62 -2
- package/src/lib/views/viewToComponentMap.js +49 -33
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +18 -13
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +21 -16
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +21 -16
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +18 -12
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +18 -12
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +19 -14
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +17 -12
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +17 -12
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +17 -12
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +17 -12
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +19 -12
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +19 -12
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +72 -1
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +72 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +18 -13
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +42 -45
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +42 -45
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +17 -12
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +17 -12
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +23 -15
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +23 -15
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/index.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +33 -30
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +34 -31
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +28 -17
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +28 -17
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +4 -54
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +4 -54
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +19 -14
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +19 -14
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +19 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +19 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +31 -34
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +32 -35
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +18 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +17 -12
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +17 -12
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +19 -14
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +21 -14
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +21 -14
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +19 -14
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +18 -13
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +23 -19
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +23 -19
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +17 -12
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +17 -12
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +19 -14
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +18 -13
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +24 -16
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +24 -16
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.cjs +0 -1
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.js +0 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +1 -3
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +18 -13
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +21 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +21 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +26 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +26 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +23 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +23 -16
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +19 -14
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +18 -13
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +18 -13
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +20 -27
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +20 -27
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +22 -15
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +23 -16
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +21 -28
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +21 -28
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +19 -14
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +23 -18
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +23 -18
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +19 -14
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +19 -14
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +19 -14
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +18 -12
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +18 -12
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.cjs +37 -23
- package/src/lib/widgets/DynamicWidget/views/WalletSettingsView/WalletSettingsView.js +37 -23
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +22 -17
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +22 -17
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +18 -13
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +18 -13
- 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/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/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/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/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/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.d.ts +0 -8
- 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/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.d.ts +0 -14
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
1
|
+
import { Dispatch, MutableRefObject, ReactElement, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { DynamicJwt, NameServiceData, ProjectSettings, SdkView } from '@dynamic-labs/sdk-api';
|
|
3
|
-
import { NetworkConfigurationMap, SocialProviderFilter, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
|
-
import { Chain,
|
|
3
|
+
import { GenericNetwork, NetworkConfigurationMap, SocialProviderFilter, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
|
+
import { Chain, GetAddressOpts, WalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { PasskeySuccessEnum } from '../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner';
|
|
6
6
|
import { AccessDeniedCustomButton, AccountSwitchState, AuthModeType, AwaitingSignatureState, ChainToWalletMap, DynamicEventsCallbacks, DynamicRPCProviders, MultiWalletWidgetState, RecommendedWallet, UserProfile, Wallet, WalletOption, WalletWithAction } from '../../../shared';
|
|
7
7
|
import { SocialNetworkIconType } from '../../../utils/functions/getSocialNetworkIcon';
|
|
@@ -18,7 +18,7 @@ export type WalletsFilter = (options: WalletOption[]) => WalletOption[];
|
|
|
18
18
|
export type WalletListViewTabItem = {
|
|
19
19
|
label: {
|
|
20
20
|
text?: string;
|
|
21
|
-
icon?: string;
|
|
21
|
+
icon?: string | ReactElement;
|
|
22
22
|
};
|
|
23
23
|
walletsFilter?: WalletsFilter;
|
|
24
24
|
recommendedWallets?: RecommendedWallet[];
|
|
@@ -31,13 +31,25 @@ export type WalletListViewSettings = {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export type ViewsOverrides = SdkView | WalletListViewSettings;
|
|
34
|
+
export type EvmNetworksOverrides = GenericNetwork[] | ((dashboardNetworks: GenericNetwork[]) => GenericNetwork[]);
|
|
34
35
|
export type SettingsOverrides = {
|
|
35
36
|
views?: Array<ViewsOverrides>;
|
|
37
|
+
/**
|
|
38
|
+
* Allows overriding which evm networks the SDK has access to.
|
|
39
|
+
* If an array is provided, it is used instead of whatever is obtained from dashboard configs.
|
|
40
|
+
* If a callback is passed, the callback will be called with the values obtained from dashboard, and
|
|
41
|
+
* it must return the network values that will be used.
|
|
42
|
+
*
|
|
43
|
+
* WARNING: this callback must be memoized as it will be used in a dependency array to ensure
|
|
44
|
+
* the SDK can react to this value changing (for ex, toggling a chain off).
|
|
45
|
+
*/
|
|
46
|
+
evmNetworks?: EvmNetworksOverrides;
|
|
36
47
|
};
|
|
37
48
|
export type ConnectWalletResult = {
|
|
38
49
|
address: string;
|
|
39
50
|
id: string;
|
|
40
51
|
};
|
|
52
|
+
export type NetworkValidationMode = 'always' | 'sign-in' | 'never';
|
|
41
53
|
export interface IDynamicContext {
|
|
42
54
|
accessDeniedMessagePrimary?: string;
|
|
43
55
|
accessDeniedMessageSecondary?: string;
|
|
@@ -45,6 +57,7 @@ export interface IDynamicContext {
|
|
|
45
57
|
accessDeniedButton?: AccessDeniedCustomButton;
|
|
46
58
|
accountSwitchState: AccountSwitchState;
|
|
47
59
|
appLogoUrl?: string;
|
|
60
|
+
networkValidationMode: NetworkValidationMode;
|
|
48
61
|
appName?: string;
|
|
49
62
|
isBridgeFlow: boolean;
|
|
50
63
|
authMode: AuthModeType;
|
|
@@ -52,7 +65,7 @@ export interface IDynamicContext {
|
|
|
52
65
|
authorizationViewDisplayOrder: DisplayOrder;
|
|
53
66
|
awaitingSignatureState: AwaitingSignatureState;
|
|
54
67
|
clearStatesOnBackClick: () => void;
|
|
55
|
-
connectWallet: (walletConnector: WalletConnector,
|
|
68
|
+
connectWallet: (walletConnector: WalletConnector, getAddressOpts?: GetAddressOpts, options?: ConnectWalletOptions) => Promise<ConnectWalletResult | undefined>;
|
|
56
69
|
connectedWallets: Wallet[];
|
|
57
70
|
linkedWallets: Wallet[];
|
|
58
71
|
locale: {
|
|
@@ -115,7 +128,6 @@ export interface IDynamicContext {
|
|
|
115
128
|
setLogInWithEmail: Dispatch<SetStateAction<boolean>>;
|
|
116
129
|
setMultiWallet: (value: boolean) => void;
|
|
117
130
|
setMultiWalletWidgetState: MultiWalletWidgetStateSetter;
|
|
118
|
-
setNetwork: Dispatch<SetStateAction<number | string | undefined>>;
|
|
119
131
|
setOnboardingOnlyJwt: Dispatch<SetStateAction<string | undefined>>;
|
|
120
132
|
setPrimaryWallet: (walletId: string) => Promise<void>;
|
|
121
133
|
setPrimaryWalletId: (walletId: string) => void;
|
|
@@ -123,7 +135,6 @@ export interface IDynamicContext {
|
|
|
123
135
|
setSelectedWalletConnectorKey: (key: string | null) => void;
|
|
124
136
|
setSelectedWalletWithAction: (walletWithAction: WalletWithAction | null) => void;
|
|
125
137
|
setShowAuthFlow: SetShowAuthFlow;
|
|
126
|
-
setShowLinkNewWalletModal: Dispatch<SetStateAction<boolean>>;
|
|
127
138
|
setShowDynamicUserProfile: Dispatch<SetStateAction<boolean>>;
|
|
128
139
|
setPasskeySuccessPopup: (key: PasskeySuccessEnum) => void;
|
|
129
140
|
setShowQrcodeModal: Dispatch<SetStateAction<boolean>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JwtVerifiedCredential } from '@dynamic-labs/sdk-api';
|
|
2
|
-
import { OnAuthSuccess,
|
|
2
|
+
import { OnAuthSuccess, OnLinkSuccess, OnUserProfileUpdate, UserProfile, Wallet } from '../../../shared/types';
|
|
3
3
|
import { IDynamicContext } from '../types';
|
|
4
|
-
export type Callback = 'authSuccess' | 'linkSuccess' | 'userProfileUpdate'
|
|
4
|
+
export type Callback = 'authSuccess' | 'linkSuccess' | 'userProfileUpdate';
|
|
5
5
|
export type CallbackParams = {
|
|
6
6
|
/** For embedded wallet events */
|
|
7
7
|
email?: string;
|
|
@@ -14,7 +14,6 @@ export type UseCustomerCallbacksArgs = {
|
|
|
14
14
|
onAuthSuccess?: OnAuthSuccess;
|
|
15
15
|
onLinkSuccess?: OnLinkSuccess;
|
|
16
16
|
onUserProfileUpdate?: OnUserProfileUpdate;
|
|
17
|
-
onEmbeddedWalletCreated?: OnEmbeddedWalletCreated;
|
|
18
17
|
};
|
|
19
18
|
handleLogOut: () => Promise<void>;
|
|
20
19
|
isAuthenticated: boolean;
|
|
@@ -13,15 +13,17 @@ require('@dynamic-labs/wallet-book');
|
|
|
13
13
|
require('../../../utils/constants/colors.cjs');
|
|
14
14
|
require('../../../utils/constants/values.cjs');
|
|
15
15
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
16
|
-
require('viem');
|
|
17
16
|
require('@dynamic-labs/utils');
|
|
18
17
|
require('../../../shared/consts/index.cjs');
|
|
19
18
|
require('../../../../../_virtual/_tslib.cjs');
|
|
20
19
|
require('@dynamic-labs/multi-wallet');
|
|
21
20
|
var getAuthToken = require('../../../utils/functions/getAuthToken/getAuthToken.cjs');
|
|
21
|
+
require('react-international-phone');
|
|
22
|
+
require('viem');
|
|
22
23
|
require('viem/chains');
|
|
24
|
+
require('../../../config/ApiEndpoint.cjs');
|
|
23
25
|
|
|
24
|
-
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate
|
|
26
|
+
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate }, handleLogOut, primaryWallet, secondaryWallets, user, isAuthenticated, setIsVerificationInProgress, }) => {
|
|
25
27
|
const [callbackQueue, setCallbackQueue] = React.useState([]);
|
|
26
28
|
/** Gets the wallet from its id */
|
|
27
29
|
const getWallet = React.useCallback((id) => {
|
|
@@ -31,7 +33,7 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
31
33
|
: undefined;
|
|
32
34
|
}, [primaryWallet, secondaryWallets]);
|
|
33
35
|
const handleNextCallback = React.useCallback((next, authToken, user) => {
|
|
34
|
-
var _a
|
|
36
|
+
var _a;
|
|
35
37
|
switch (next === null || next === void 0 ? void 0 : next.callback) {
|
|
36
38
|
case 'authSuccess': {
|
|
37
39
|
try {
|
|
@@ -42,7 +44,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
42
44
|
isAuthenticated,
|
|
43
45
|
primaryWallet,
|
|
44
46
|
user,
|
|
45
|
-
walletConnector: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector,
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
catch (e) {
|
|
@@ -57,7 +58,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
57
58
|
authToken,
|
|
58
59
|
user,
|
|
59
60
|
wallet,
|
|
60
|
-
walletConnector: wallet === null || wallet === void 0 ? void 0 : wallet.connector,
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
catch (e) {
|
|
@@ -74,21 +74,12 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
74
74
|
}
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
|
-
case 'embeddedWalletCreated': {
|
|
78
|
-
try {
|
|
79
|
-
onEmbeddedWalletCreated === null || onEmbeddedWalletCreated === void 0 ? void 0 : onEmbeddedWalletCreated((_b = next.params) === null || _b === void 0 ? void 0 : _b.verifiedCredential);
|
|
80
|
-
}
|
|
81
|
-
catch (e) {
|
|
82
|
-
logger.logger.error('Error calling onEmbeddedWalletCreated: ', e);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
77
|
}
|
|
86
78
|
}, [
|
|
87
79
|
getWallet,
|
|
88
80
|
handleLogOut,
|
|
89
81
|
isAuthenticated,
|
|
90
82
|
onAuthSuccess,
|
|
91
|
-
onEmbeddedWalletCreated,
|
|
92
83
|
onLinkSuccess,
|
|
93
84
|
onUserProfileUpdate,
|
|
94
85
|
primaryWallet,
|
|
@@ -105,9 +96,13 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
105
96
|
if (!authToken || (user.isAuthenticatedWithAWallet && !primaryWallet)) {
|
|
106
97
|
return;
|
|
107
98
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
handleNextCallback(callbackQueue[0], authToken, user);
|
|
100
|
+
setCallbackQueue((prev) => {
|
|
101
|
+
const [resolvedCallback, ...updatedQueue] = prev;
|
|
102
|
+
logger.logger.debug('Resolved callback: ', resolvedCallback.callback);
|
|
103
|
+
logger.logger.debug('Callbacks in queue: ', updatedQueue.map((c) => c.callback));
|
|
104
|
+
return updatedQueue;
|
|
105
|
+
});
|
|
111
106
|
}, [callbackQueue, handleNextCallback, primaryWallet, user]);
|
|
112
107
|
const setCallback = (callback, params) => {
|
|
113
108
|
setCallbackQueue((prev) => [...prev, { callback, params }]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SetCallbackType, UseCustomerCallbacksArgs } from './types';
|
|
2
|
-
export declare const useCustomerCallbacks: ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate
|
|
2
|
+
export declare const useCustomerCallbacks: ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate }, handleLogOut, primaryWallet, secondaryWallets, user, isAuthenticated, setIsVerificationInProgress, }: UseCustomerCallbacksArgs) => {
|
|
3
3
|
setCallback: SetCallbackType;
|
|
4
4
|
};
|
|
@@ -9,15 +9,17 @@ import '@dynamic-labs/wallet-book';
|
|
|
9
9
|
import '../../../utils/constants/colors.js';
|
|
10
10
|
import '../../../utils/constants/values.js';
|
|
11
11
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
12
|
-
import 'viem';
|
|
13
12
|
import '@dynamic-labs/utils';
|
|
14
13
|
import '../../../shared/consts/index.js';
|
|
15
14
|
import '../../../../../_virtual/_tslib.js';
|
|
16
15
|
import '@dynamic-labs/multi-wallet';
|
|
17
16
|
import { getAuthToken } from '../../../utils/functions/getAuthToken/getAuthToken.js';
|
|
17
|
+
import 'react-international-phone';
|
|
18
|
+
import 'viem';
|
|
18
19
|
import 'viem/chains';
|
|
20
|
+
import '../../../config/ApiEndpoint.js';
|
|
19
21
|
|
|
20
|
-
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate
|
|
22
|
+
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUserProfileUpdate }, handleLogOut, primaryWallet, secondaryWallets, user, isAuthenticated, setIsVerificationInProgress, }) => {
|
|
21
23
|
const [callbackQueue, setCallbackQueue] = useState([]);
|
|
22
24
|
/** Gets the wallet from its id */
|
|
23
25
|
const getWallet = useCallback((id) => {
|
|
@@ -27,7 +29,7 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
27
29
|
: undefined;
|
|
28
30
|
}, [primaryWallet, secondaryWallets]);
|
|
29
31
|
const handleNextCallback = useCallback((next, authToken, user) => {
|
|
30
|
-
var _a
|
|
32
|
+
var _a;
|
|
31
33
|
switch (next === null || next === void 0 ? void 0 : next.callback) {
|
|
32
34
|
case 'authSuccess': {
|
|
33
35
|
try {
|
|
@@ -38,7 +40,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
38
40
|
isAuthenticated,
|
|
39
41
|
primaryWallet,
|
|
40
42
|
user,
|
|
41
|
-
walletConnector: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector,
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
catch (e) {
|
|
@@ -53,7 +54,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
53
54
|
authToken,
|
|
54
55
|
user,
|
|
55
56
|
wallet,
|
|
56
|
-
walletConnector: wallet === null || wallet === void 0 ? void 0 : wallet.connector,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
catch (e) {
|
|
@@ -70,21 +70,12 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
70
70
|
}
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
|
-
case 'embeddedWalletCreated': {
|
|
74
|
-
try {
|
|
75
|
-
onEmbeddedWalletCreated === null || onEmbeddedWalletCreated === void 0 ? void 0 : onEmbeddedWalletCreated((_b = next.params) === null || _b === void 0 ? void 0 : _b.verifiedCredential);
|
|
76
|
-
}
|
|
77
|
-
catch (e) {
|
|
78
|
-
logger.error('Error calling onEmbeddedWalletCreated: ', e);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
73
|
}
|
|
82
74
|
}, [
|
|
83
75
|
getWallet,
|
|
84
76
|
handleLogOut,
|
|
85
77
|
isAuthenticated,
|
|
86
78
|
onAuthSuccess,
|
|
87
|
-
onEmbeddedWalletCreated,
|
|
88
79
|
onLinkSuccess,
|
|
89
80
|
onUserProfileUpdate,
|
|
90
81
|
primaryWallet,
|
|
@@ -101,9 +92,13 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onLinkSuccess, onUse
|
|
|
101
92
|
if (!authToken || (user.isAuthenticatedWithAWallet && !primaryWallet)) {
|
|
102
93
|
return;
|
|
103
94
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
handleNextCallback(callbackQueue[0], authToken, user);
|
|
96
|
+
setCallbackQueue((prev) => {
|
|
97
|
+
const [resolvedCallback, ...updatedQueue] = prev;
|
|
98
|
+
logger.debug('Resolved callback: ', resolvedCallback.callback);
|
|
99
|
+
logger.debug('Callbacks in queue: ', updatedQueue.map((c) => c.callback));
|
|
100
|
+
return updatedQueue;
|
|
101
|
+
});
|
|
107
102
|
}, [callbackQueue, handleNextCallback, primaryWallet, user]);
|
|
108
103
|
const setCallback = (callback, params) => {
|
|
109
104
|
setCallbackQueue((prev) => [...prev, { callback, params }]);
|
|
@@ -12,7 +12,7 @@ const useDynamicContext = () => {
|
|
|
12
12
|
if (context === undefined) {
|
|
13
13
|
throw new Error('useDynamicContext must be used within a DynamicContextProvider');
|
|
14
14
|
}
|
|
15
|
-
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState,
|
|
15
|
+
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, showDynamicUserProfile, } = context;
|
|
16
16
|
const { setAuthMode } = useOverrides.useOverrides(context);
|
|
17
17
|
return {
|
|
18
18
|
accountSwitchState,
|
|
@@ -41,7 +41,6 @@ const useDynamicContext = () => {
|
|
|
41
41
|
setAuthMode,
|
|
42
42
|
setLogInWithEmail,
|
|
43
43
|
setMultiWalletWidgetState,
|
|
44
|
-
setNetwork,
|
|
45
44
|
setPrimaryWallet,
|
|
46
45
|
setShowAuthFlow: (value) => setShowAuthFlow(value, {
|
|
47
46
|
clearErrors: true,
|
|
@@ -52,7 +51,6 @@ const useDynamicContext = () => {
|
|
|
52
51
|
}),
|
|
53
52
|
setShowBridgeWidget,
|
|
54
53
|
setShowDynamicUserProfile,
|
|
55
|
-
setShowLinkNewWalletModal,
|
|
56
54
|
setShowQrcodeModal,
|
|
57
55
|
shadowDOMEnabled,
|
|
58
56
|
showAuthFlow,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { IDynamicContext } from '../types';
|
|
3
|
-
export type UseDynamicContext = Pick<IDynamicContext, 'accountSwitchState' | 'authMode' | 'authToken' | 'awaitingSignatureState' | 'getNameService' | 'handleLogOut' | 'handleUnlinkWallet' | 'isAuthenticated' | 'isFullyConnected' | 'isVerificationInProgress' | 'loadingNetwork' | 'locale' | 'loginWithEmail' | 'multiWalletWidgetState' | 'network' | 'networkConfigurations' | 'primaryWallet' | 'qrcodeUri' | 'rpcProviders' | 'sdkHasLoaded' | 'setLogInWithEmail' | 'setMultiWalletWidgetState' | '
|
|
3
|
+
export type UseDynamicContext = Pick<IDynamicContext, 'accountSwitchState' | 'authMode' | 'authToken' | 'awaitingSignatureState' | 'getNameService' | 'handleLogOut' | 'handleUnlinkWallet' | 'isAuthenticated' | 'isFullyConnected' | 'isVerificationInProgress' | 'loadingNetwork' | 'locale' | 'loginWithEmail' | 'multiWalletWidgetState' | 'network' | 'networkConfigurations' | 'primaryWallet' | 'qrcodeUri' | 'rpcProviders' | 'sdkHasLoaded' | 'setLogInWithEmail' | 'setMultiWalletWidgetState' | 'setPrimaryWallet' | 'setShowDynamicUserProfile' | 'setShowQrcodeModal' | 'shadowDOMEnabled' | 'showAuthFlow' | 'showQrcodeModal' | 'user' | 'walletConnector' | 'walletConnectorOptions' | 'bridgeChains' | 'bridgeChainsToConnect' | 'setShowBridgeWidget' | 'sendWagmiSettings' | 'showDynamicUserProfile' | 'setAuthMode'> & {
|
|
4
4
|
setShowAuthFlow: Dispatch<SetStateAction<boolean>>;
|
|
5
5
|
};
|
|
6
6
|
export declare const useDynamicContext: () => UseDynamicContext;
|
|
@@ -8,7 +8,7 @@ const useDynamicContext = () => {
|
|
|
8
8
|
if (context === undefined) {
|
|
9
9
|
throw new Error('useDynamicContext must be used within a DynamicContextProvider');
|
|
10
10
|
}
|
|
11
|
-
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState,
|
|
11
|
+
const { accountSwitchState, authMode, authToken, awaitingSignatureState, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, isFullyConnected, isVerificationInProgress, loadingNetwork, locale, loginWithEmail, multiWalletWidgetState, network, networkConfigurations, qrcodeUri, rpcProviders, sdkHasLoaded, setLogInWithEmail, setMultiWalletWidgetState, setPrimaryWallet, setShowAuthFlow, setShowDynamicUserProfile, setShowQrcodeModal, shadowDOMEnabled, showAuthFlow, showQrcodeModal, user, walletConnector, walletConnectorOptions, bridgeChains, bridgeChainsToConnect, primaryWallet, setShowBridgeWidget, sendWagmiSettings, showDynamicUserProfile, } = context;
|
|
12
12
|
const { setAuthMode } = useOverrides(context);
|
|
13
13
|
return {
|
|
14
14
|
accountSwitchState,
|
|
@@ -37,7 +37,6 @@ const useDynamicContext = () => {
|
|
|
37
37
|
setAuthMode,
|
|
38
38
|
setLogInWithEmail,
|
|
39
39
|
setMultiWalletWidgetState,
|
|
40
|
-
setNetwork,
|
|
41
40
|
setPrimaryWallet,
|
|
42
41
|
setShowAuthFlow: (value) => setShowAuthFlow(value, {
|
|
43
42
|
clearErrors: true,
|
|
@@ -48,7 +47,6 @@ const useDynamicContext = () => {
|
|
|
48
47
|
}),
|
|
49
48
|
setShowBridgeWidget,
|
|
50
49
|
setShowDynamicUserProfile,
|
|
51
|
-
setShowLinkNewWalletModal,
|
|
52
50
|
setShowQrcodeModal,
|
|
53
51
|
shadowDOMEnabled,
|
|
54
52
|
showAuthFlow,
|
|
@@ -13,7 +13,6 @@ require('@dynamic-labs/wallet-book');
|
|
|
13
13
|
require('../../../../utils/constants/colors.cjs');
|
|
14
14
|
require('../../../../utils/constants/values.cjs');
|
|
15
15
|
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
16
|
-
require('viem');
|
|
17
16
|
require('@dynamic-labs/utils');
|
|
18
17
|
require('../../../../shared/consts/index.cjs');
|
|
19
18
|
require('../../../../events/dynamicEvents.cjs');
|
|
@@ -22,17 +21,21 @@ require('../../DynamicContext.cjs');
|
|
|
22
21
|
require('../../../CaptchaContext/CaptchaContext.cjs');
|
|
23
22
|
require('../../../ErrorContext/ErrorContext.cjs');
|
|
24
23
|
require('@dynamic-labs/multi-wallet');
|
|
24
|
+
require('react-international-phone');
|
|
25
|
+
require('viem');
|
|
25
26
|
require('viem/chains');
|
|
27
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
26
28
|
require('../../../AccessDeniedContext/AccessDeniedContext.cjs');
|
|
27
29
|
require('../../../AccountExistsContext/AccountExistsContext.cjs');
|
|
28
|
-
require('
|
|
29
|
-
require('../../../EmailVerificationContext/EmailVerificationContext.cjs');
|
|
30
|
+
require('../../../VerificationContext/VerificationContext.cjs');
|
|
30
31
|
require('react-dom');
|
|
32
|
+
require('../../../WalletContext/WalletContext.cjs');
|
|
31
33
|
require('../../../ThemeContext/ThemeContext.cjs');
|
|
32
34
|
var useIsLoggedIn = require('../../../../utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs');
|
|
33
35
|
require('@dynamic-labs/types');
|
|
34
36
|
require('yup');
|
|
35
37
|
require('react-i18next');
|
|
38
|
+
require('../../../FieldsStateContext/FieldsStateContext.cjs');
|
|
36
39
|
require('../../../MockContext/MockContext.cjs');
|
|
37
40
|
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
38
41
|
require('../../../UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
@@ -42,31 +45,33 @@ require('../../../../components/Alert/Alert.cjs');
|
|
|
42
45
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
43
46
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
44
47
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
48
|
+
require('../../../../components/Input/Input.cjs');
|
|
45
49
|
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
46
50
|
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
47
51
|
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
48
52
|
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
49
53
|
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
54
|
+
require('../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
55
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
56
|
+
require('../../../../components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs');
|
|
50
57
|
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
51
58
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
52
59
|
require('react-focus-lock');
|
|
60
|
+
require('qrcode');
|
|
53
61
|
require('formik');
|
|
54
|
-
require('i18next');
|
|
55
|
-
require('../../../../components/OverlayCard/OverlayCard.context.cjs');
|
|
56
|
-
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
57
|
-
require('../../../PasskeyContext/PasskeyContext.cjs');
|
|
58
62
|
require('../../../../views/WalletList/WalletList.cjs');
|
|
59
|
-
require('qrcode');
|
|
60
|
-
require('@hcaptcha/react-hcaptcha');
|
|
61
|
-
require('../../../LoadingContext/LoadingContext.cjs');
|
|
62
63
|
require('../../../SocialRedirectContext/SocialRedirectContext.cjs');
|
|
63
|
-
require('../../../WalletGroupContext/WalletGroupContext.cjs');
|
|
64
64
|
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
65
|
+
require('i18next');
|
|
66
|
+
require('@hcaptcha/react-hcaptcha');
|
|
67
|
+
require('../../../LoadingContext/LoadingContext.cjs');
|
|
65
68
|
require('../../../FooterAnimationContext/index.cjs');
|
|
69
|
+
require('../../../../locale/locale.cjs');
|
|
70
|
+
require('../../../WalletGroupContext/WalletGroupContext.cjs');
|
|
71
|
+
require('../../../PasskeyContext/PasskeyContext.cjs');
|
|
66
72
|
require('../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
67
73
|
require('../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
68
|
-
require('../../../../
|
|
69
|
-
require('@dynamic-labs/viem-utils');
|
|
74
|
+
require('../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
70
75
|
require('../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
71
76
|
|
|
72
77
|
const useOverrides = (dynamicContext) => {
|
|
@@ -9,7 +9,6 @@ import '@dynamic-labs/wallet-book';
|
|
|
9
9
|
import '../../../../utils/constants/colors.js';
|
|
10
10
|
import '../../../../utils/constants/values.js';
|
|
11
11
|
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
12
|
-
import 'viem';
|
|
13
12
|
import '@dynamic-labs/utils';
|
|
14
13
|
import '../../../../shared/consts/index.js';
|
|
15
14
|
import '../../../../events/dynamicEvents.js';
|
|
@@ -18,17 +17,21 @@ import '../../DynamicContext.js';
|
|
|
18
17
|
import '../../../CaptchaContext/CaptchaContext.js';
|
|
19
18
|
import '../../../ErrorContext/ErrorContext.js';
|
|
20
19
|
import '@dynamic-labs/multi-wallet';
|
|
20
|
+
import 'react-international-phone';
|
|
21
|
+
import 'viem';
|
|
21
22
|
import 'viem/chains';
|
|
23
|
+
import '../../../../config/ApiEndpoint.js';
|
|
22
24
|
import '../../../AccessDeniedContext/AccessDeniedContext.js';
|
|
23
25
|
import '../../../AccountExistsContext/AccountExistsContext.js';
|
|
24
|
-
import '
|
|
25
|
-
import '../../../EmailVerificationContext/EmailVerificationContext.js';
|
|
26
|
+
import '../../../VerificationContext/VerificationContext.js';
|
|
26
27
|
import 'react-dom';
|
|
28
|
+
import '../../../WalletContext/WalletContext.js';
|
|
27
29
|
import '../../../ThemeContext/ThemeContext.js';
|
|
28
30
|
import { useIsLoggedIn } from '../../../../utils/hooks/useIsLoggedIn/useIsLoggedIn.js';
|
|
29
31
|
import '@dynamic-labs/types';
|
|
30
32
|
import 'yup';
|
|
31
33
|
import 'react-i18next';
|
|
34
|
+
import '../../../FieldsStateContext/FieldsStateContext.js';
|
|
32
35
|
import '../../../MockContext/MockContext.js';
|
|
33
36
|
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
34
37
|
import '../../../UserFieldEditorContext/UserFieldEditorContext.js';
|
|
@@ -38,31 +41,33 @@ import '../../../../components/Alert/Alert.js';
|
|
|
38
41
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
39
42
|
import '../../../../components/IconButton/IconButton.js';
|
|
40
43
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
44
|
+
import '../../../../components/Input/Input.js';
|
|
41
45
|
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
42
46
|
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
43
47
|
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
44
48
|
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
45
49
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
50
|
+
import '../../../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
|
|
51
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
52
|
+
import '../../../../components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js';
|
|
46
53
|
import '../../../../components/Popper/Popper/Popper.js';
|
|
47
54
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
48
55
|
import 'react-focus-lock';
|
|
56
|
+
import 'qrcode';
|
|
49
57
|
import 'formik';
|
|
50
|
-
import 'i18next';
|
|
51
|
-
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
52
|
-
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
53
|
-
import '../../../PasskeyContext/PasskeyContext.js';
|
|
54
58
|
import '../../../../views/WalletList/WalletList.js';
|
|
55
|
-
import 'qrcode';
|
|
56
|
-
import '@hcaptcha/react-hcaptcha';
|
|
57
|
-
import '../../../LoadingContext/LoadingContext.js';
|
|
58
59
|
import '../../../SocialRedirectContext/SocialRedirectContext.js';
|
|
59
|
-
import '../../../WalletGroupContext/WalletGroupContext.js';
|
|
60
60
|
import '../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
61
|
+
import 'i18next';
|
|
62
|
+
import '@hcaptcha/react-hcaptcha';
|
|
63
|
+
import '../../../LoadingContext/LoadingContext.js';
|
|
61
64
|
import '../../../FooterAnimationContext/index.js';
|
|
65
|
+
import '../../../../locale/locale.js';
|
|
66
|
+
import '../../../WalletGroupContext/WalletGroupContext.js';
|
|
67
|
+
import '../../../PasskeyContext/PasskeyContext.js';
|
|
62
68
|
import '../../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
63
69
|
import '../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
64
|
-
import '../../../../
|
|
65
|
-
import '@dynamic-labs/viem-utils';
|
|
70
|
+
import '../../../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
66
71
|
import '../../../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
67
72
|
|
|
68
73
|
const useOverrides = (dynamicContext) => {
|
|
@@ -14,7 +14,6 @@ require('@dynamic-labs/wallet-book');
|
|
|
14
14
|
require('../../../utils/constants/colors.cjs');
|
|
15
15
|
require('../../../utils/constants/values.cjs');
|
|
16
16
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
|
-
require('viem');
|
|
18
17
|
require('@dynamic-labs/utils');
|
|
19
18
|
require('../../../shared/consts/index.cjs');
|
|
20
19
|
|
|
@@ -10,7 +10,6 @@ import '@dynamic-labs/wallet-book';
|
|
|
10
10
|
import '../../../utils/constants/colors.js';
|
|
11
11
|
import '../../../utils/constants/values.js';
|
|
12
12
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
13
|
-
import 'viem';
|
|
14
13
|
import '@dynamic-labs/utils';
|
|
15
14
|
import '../../../shared/consts/index.js';
|
|
16
15
|
|
|
@@ -8,10 +8,13 @@ var React = require('react');
|
|
|
8
8
|
const errorMessageMap = {
|
|
9
9
|
'-32000': 'Message signature denied',
|
|
10
10
|
'-32002': 'Please unlock your wallet extension and try again.',
|
|
11
|
+
'-32003': 'Message signature denied.',
|
|
11
12
|
'-32602': 'Invalid parameters. Please try again.',
|
|
12
13
|
'-32603': 'There was an internal error. Please try again.',
|
|
13
14
|
0: 'Message signature denied.',
|
|
14
15
|
4001: 'Message signature denied.',
|
|
16
|
+
4100: 'Please unlock your wallet extension and try again.',
|
|
17
|
+
4900: 'There was an internal error. Please try again.',
|
|
15
18
|
5001: 'Message signature denied.',
|
|
16
19
|
5002: 'Message signature denied.',
|
|
17
20
|
account_already_linked_to_different_profile: 'This social account is already linked to a different profile.',
|
|
@@ -33,7 +36,11 @@ const ErrorContextProvider = ({ children }) => {
|
|
|
33
36
|
var _a;
|
|
34
37
|
setError((_a = errorMessageMap[status]) !== null && _a !== void 0 ? _a : 'Something went wrong. Please try again.');
|
|
35
38
|
}, []);
|
|
39
|
+
const clearError = React.useCallback(() => {
|
|
40
|
+
setError(undefined);
|
|
41
|
+
}, []);
|
|
36
42
|
return (jsxRuntime.jsx(ErrorContext.Provider, { value: {
|
|
43
|
+
clearError,
|
|
37
44
|
error,
|
|
38
45
|
setError,
|
|
39
46
|
setErrorMessage,
|
|
@@ -3,6 +3,7 @@ interface ErrorContextProps {
|
|
|
3
3
|
error: string | undefined;
|
|
4
4
|
setError(error: string | undefined): void;
|
|
5
5
|
setErrorMessage: (status: string) => void;
|
|
6
|
+
clearError(): void;
|
|
6
7
|
}
|
|
7
8
|
export declare const ErrorContext: import("react").Context<ErrorContextProps | undefined>;
|
|
8
9
|
export declare const ErrorContextProvider: ({ children }: {
|
|
@@ -4,10 +4,13 @@ import { createContext, useState, useCallback, useContext } from 'react';
|
|
|
4
4
|
const errorMessageMap = {
|
|
5
5
|
'-32000': 'Message signature denied',
|
|
6
6
|
'-32002': 'Please unlock your wallet extension and try again.',
|
|
7
|
+
'-32003': 'Message signature denied.',
|
|
7
8
|
'-32602': 'Invalid parameters. Please try again.',
|
|
8
9
|
'-32603': 'There was an internal error. Please try again.',
|
|
9
10
|
0: 'Message signature denied.',
|
|
10
11
|
4001: 'Message signature denied.',
|
|
12
|
+
4100: 'Please unlock your wallet extension and try again.',
|
|
13
|
+
4900: 'There was an internal error. Please try again.',
|
|
11
14
|
5001: 'Message signature denied.',
|
|
12
15
|
5002: 'Message signature denied.',
|
|
13
16
|
account_already_linked_to_different_profile: 'This social account is already linked to a different profile.',
|
|
@@ -29,7 +32,11 @@ const ErrorContextProvider = ({ children }) => {
|
|
|
29
32
|
var _a;
|
|
30
33
|
setError((_a = errorMessageMap[status]) !== null && _a !== void 0 ? _a : 'Something went wrong. Please try again.');
|
|
31
34
|
}, []);
|
|
35
|
+
const clearError = useCallback(() => {
|
|
36
|
+
setError(undefined);
|
|
37
|
+
}, []);
|
|
32
38
|
return (jsx(ErrorContext.Provider, { value: {
|
|
39
|
+
clearError,
|
|
33
40
|
error,
|
|
34
41
|
setError,
|
|
35
42
|
setErrorMessage,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
|
+
|
|
9
|
+
const FieldsStateContext = React.createContext(undefined);
|
|
10
|
+
const FieldsStateProvider = ({ children }) => {
|
|
11
|
+
const selectedPhoneCountry = React.useRef();
|
|
12
|
+
return (jsxRuntime.jsx(FieldsStateContext.Provider, { value: { selectedPhoneCountry }, children: children }));
|
|
13
|
+
};
|
|
14
|
+
const useFieldsState = () => {
|
|
15
|
+
const context = React.useContext(FieldsStateContext);
|
|
16
|
+
if (!context)
|
|
17
|
+
throw new utils.DynamicError('Can only call useFieldsState inside FieldsStateProvider');
|
|
18
|
+
return context;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.FieldsStateContext = FieldsStateContext;
|
|
22
|
+
exports.FieldsStateProvider = FieldsStateProvider;
|
|
23
|
+
exports.useFieldsState = useFieldsState;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, MutableRefObject, PropsWithChildren } from 'react';
|
|
2
|
+
import { ParsedCountry } from 'react-international-phone';
|
|
3
|
+
export type FieldsStateContextType = {
|
|
4
|
+
/**
|
|
5
|
+
* Allows telling which country is selected, so that we can use it to detect if phone
|
|
6
|
+
* number is too short.
|
|
7
|
+
*/
|
|
8
|
+
selectedPhoneCountry: MutableRefObject<ParsedCountry | undefined>;
|
|
9
|
+
};
|
|
10
|
+
export declare const FieldsStateContext: import("react").Context<FieldsStateContextType | undefined>;
|
|
11
|
+
export declare const FieldsStateProvider: FC<PropsWithChildren>;
|
|
12
|
+
export declare const useFieldsState: () => FieldsStateContextType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { createContext, useRef, useContext } from 'react';
|
|
3
|
+
import { DynamicError } from '@dynamic-labs/utils';
|
|
4
|
+
|
|
5
|
+
const FieldsStateContext = createContext(undefined);
|
|
6
|
+
const FieldsStateProvider = ({ children }) => {
|
|
7
|
+
const selectedPhoneCountry = useRef();
|
|
8
|
+
return (jsx(FieldsStateContext.Provider, { value: { selectedPhoneCountry }, children: children }));
|
|
9
|
+
};
|
|
10
|
+
const useFieldsState = () => {
|
|
11
|
+
const context = useContext(FieldsStateContext);
|
|
12
|
+
if (!context)
|
|
13
|
+
throw new DynamicError('Can only call useFieldsState inside FieldsStateProvider');
|
|
14
|
+
return context;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { FieldsStateContext, FieldsStateProvider, useFieldsState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FieldsStateContext';
|