@dynamic-labs/sdk-react-core 3.0.0-alpha.66 → 3.0.0-alpha.68
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 +25 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/index.cjs +3 -5
- package/src/index.d.ts +0 -2
- package/src/index.js +3 -4
- package/src/lib/Main.cjs +7 -9
- package/src/lib/Main.js +7 -9
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +4 -6
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +4 -6
- package/src/lib/components/Alert/Alert.cjs +1 -2
- package/src/lib/components/Alert/Alert.js +1 -2
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +4 -6
- package/src/lib/components/AnimatePresence/AnimatePresence.js +4 -6
- package/src/lib/components/AppOriginTile/AppOriginTile.cjs +1 -1
- package/src/lib/components/AppOriginTile/AppOriginTile.js +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +5 -7
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +5 -7
- package/src/lib/components/Captcha/Captcha.cjs +5 -7
- package/src/lib/components/Captcha/Captcha.js +5 -7
- package/src/lib/components/ChainIcon/ChainIcon.cjs +1 -2
- package/src/lib/components/ChainIcon/ChainIcon.js +1 -2
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -2
- package/src/lib/components/Checkbox/Checkbox.js +1 -2
- package/src/lib/components/Divider/Divider.cjs +2 -4
- package/src/lib/components/Divider/Divider.js +2 -4
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +7 -9
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +7 -9
- package/src/lib/components/EmailForm/EmailForm.cjs +2 -4
- package/src/lib/components/EmailForm/EmailForm.js +2 -4
- 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 +1 -2
- package/src/lib/components/HardwareWalletToggle/HardwareWalletToggle.js +1 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -3
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -2
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -2
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +2 -3
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +2 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +2 -3
- package/src/lib/components/IconWithStatus/IconWithStatus.js +2 -3
- package/src/lib/components/LogoutButton/LogoutButton.cjs +5 -7
- package/src/lib/components/LogoutButton/LogoutButton.js +5 -7
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +0 -1
- package/src/lib/components/MenuList/MenuList/MenuList.js +0 -1
- package/src/lib/components/Modal/Modal.cjs +4 -6
- package/src/lib/components/Modal/Modal.js +4 -6
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +5 -7
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +5 -7
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +5 -7
- package/src/lib/components/NetworkPicker/NetworkPicker.js +5 -7
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -4
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -4
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -4
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.cjs +2 -4
- package/src/lib/components/NetworkPicker/components/NetworkControlSkeleton/NetworkControlSkeleton.js +2 -4
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -4
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -4
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -2
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +1 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +1 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +5 -7
- package/src/lib/components/OverlayCard/OverlayCard.js +5 -7
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +5 -7
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +5 -7
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +2 -4
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +2 -4
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.cjs +11 -8
- package/src/lib/components/PhoneNumberField/usePhoneInputLogic/usePhoneInputLogic.js +11 -8
- package/src/lib/components/PhoneNumberField/utils/parseDefaultCountry/parseDefaultCountry.cjs +3 -16
- package/src/lib/components/PhoneNumberField/utils/parseDefaultCountry/parseDefaultCountry.js +2 -15
- package/src/lib/components/Portal/Portal.cjs +4 -6
- package/src/lib/components/Portal/Portal.js +4 -6
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +5 -7
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +5 -7
- package/src/lib/components/QRCode/QRCode.cjs +4 -6
- package/src/lib/components/QRCode/QRCode.js +4 -6
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.cjs +3 -5
- package/src/lib/components/QrCodeWrapper/QrCodeContainer/QrCodeContainer.js +3 -5
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +3 -5
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +3 -5
- package/src/lib/components/RenderView/RenderView.cjs +2 -4
- package/src/lib/components/RenderView/RenderView.js +2 -4
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.cjs +4 -6
- package/src/lib/components/RetrySendVerificationCodeSection/RetrySendVerificationCodeSection.js +4 -6
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.cjs +5 -7
- package/src/lib/components/SandboxIndicatorWrapper/SandboxIndicatorWrapper.js +5 -7
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.cjs +5 -7
- package/src/lib/components/SecureEmbeddedWalletCard/SecureEmbeddedWalletCard.js +5 -7
- package/src/lib/components/Select/Select.cjs +1 -2
- package/src/lib/components/Select/Select.js +1 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +5 -7
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +5 -7
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +5 -7
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +5 -7
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.cjs +2 -4
- package/src/lib/components/SendBalancePageLayout/components/TokensBalanceDropdown/TokensBalanceDropdown.js +2 -4
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +4 -6
- package/src/lib/components/ShadowDOM/ShadowDOM.js +4 -6
- package/src/lib/components/ShadowDOM/utils.cjs +1 -2
- package/src/lib/components/ShadowDOM/utils.js +1 -2
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.cjs +1 -2
- package/src/lib/components/SignMessagePreview/components/SignTypedDataPreview/SignTypedDataPreview.js +1 -2
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +5 -7
- package/src/lib/components/SocialSignIn/SocialSignIn.js +5 -7
- package/src/lib/components/Spinner/spinner.cjs +1 -2
- package/src/lib/components/Spinner/spinner.js +1 -2
- package/src/lib/components/Step/Step.cjs +1 -2
- package/src/lib/components/Step/Step.js +1 -2
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.cjs +4 -6
- package/src/lib/components/SyncAuthFlow/SyncAuthFlow.js +4 -6
- package/src/lib/components/TelegramAutoLogin/TelegramAutoLogin.cjs +4 -6
- package/src/lib/components/TelegramAutoLogin/TelegramAutoLogin.js +4 -6
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.cjs +3 -5
- package/src/lib/components/ToggleVisibilityButton/ToggleVisibilityButton.js +3 -5
- package/src/lib/components/Toolkit/Toolkit.cjs +5 -7
- package/src/lib/components/Toolkit/Toolkit.js +5 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.cjs +5 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailSwitch.js +5 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +5 -7
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +5 -7
- package/src/lib/components/Tooltip/Tooltip.cjs +5 -7
- package/src/lib/components/Tooltip/Tooltip.js +5 -7
- package/src/lib/components/TosAndPp/TosAndPp.cjs +5 -7
- package/src/lib/components/TosAndPp/TosAndPp.js +5 -7
- package/src/lib/components/TransactionCard/TransactionCard.cjs +2 -3
- package/src/lib/components/TransactionCard/TransactionCard.js +2 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +5 -7
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +5 -7
- package/src/lib/components/TransactionConfirmationPageLayout/utils.cjs +1 -2
- package/src/lib/components/TransactionConfirmationPageLayout/utils.js +1 -2
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +3 -5
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -5
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +4 -6
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +4 -6
- package/src/lib/components/UserAddress/UserAddress.cjs +5 -7
- package/src/lib/components/UserAddress/UserAddress.js +5 -7
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -4
- package/src/lib/components/UserProfile/UserProfile.js +2 -4
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.cjs +5 -7
- package/src/lib/components/UserProfile/parts/EditProfileButton/EditProfileButton.js +5 -7
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.cjs +1 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedUserFieldIcon/VerifiedUserFieldIcon.js +1 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -4
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +5 -7
- package/src/lib/components/UserProfileForm/UserProfileForm.js +5 -7
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +1 -2
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +1 -2
- package/src/lib/context/CaptchaContext/CaptchaContext.cjs +1 -2
- package/src/lib/context/CaptchaContext/CaptchaContext.js +1 -2
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.cjs +6 -8
- package/src/lib/context/ConnectWithOtpContext/ConnectWithOtpProvider.js +6 -8
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.cjs +0 -1
- package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.js +0 -1
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.cjs +4 -6
- package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.js +4 -6
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.cjs +0 -1
- package/src/lib/context/ConnectWithOtpContext/utils/findEmailProvider.js +0 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +16 -29
- package/src/lib/context/DynamicContext/DynamicContext.js +16 -29
- package/src/lib/context/DynamicContext/helpers/helpers.cjs +9 -9
- package/src/lib/context/DynamicContext/helpers/helpers.js +4 -4
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -2
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -2
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +2 -3
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +2 -3
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +21 -85
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.d.ts +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +22 -85
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -2
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -2
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/useRegisterStorageService.cjs +39 -0
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/useRegisterStorageService.d.ts +10 -0
- package/src/lib/context/DynamicContext/hooks/useRegisterStorageService/useRegisterStorageService.js +35 -0
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.cjs +2 -4
- package/src/lib/context/DynamicContext/hooks/useShowAuthFlow/useShowAuthFlow.js +2 -4
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +5 -7
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +5 -7
- package/src/lib/context/DynamicContext/types/IDynamicContext.d.ts +0 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -2
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.cjs +5 -7
- package/src/lib/context/DynamicContext/useDynamicContext/useOverrides/useOverrides.js +5 -7
- package/src/lib/context/ErrorBoundary/ErrorBoundary.cjs +1 -2
- package/src/lib/context/ErrorBoundary/ErrorBoundary.js +1 -2
- package/src/lib/context/ErrorBoundary/ErrorBoundaryBase.cjs +1 -2
- package/src/lib/context/ErrorBoundary/ErrorBoundaryBase.js +1 -2
- package/src/lib/context/FundingContext/FundingContext.cjs +4 -6
- package/src/lib/context/FundingContext/FundingContext.js +4 -6
- package/src/lib/context/LoadingContext/LoadingContext.cjs +4 -6
- package/src/lib/context/LoadingContext/LoadingContext.js +4 -6
- package/src/lib/context/MockContext/MockContext.cjs +2 -4
- package/src/lib/context/MockContext/MockContext.js +2 -4
- package/src/lib/context/PasskeyContext/PasskeyContext.cjs +4 -6
- package/src/lib/context/PasskeyContext/PasskeyContext.js +4 -6
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.cjs +4 -6
- package/src/lib/context/PhantomRedirectContext/PhantomRedirectContext.js +4 -6
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +8 -10
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +7 -9
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.cjs +2 -3
- package/src/lib/context/ReinitializeContext/ReinitializeContextProvider.js +2 -3
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +5 -7
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +5 -7
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +5 -7
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -7
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.cjs +5 -7
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.js +5 -7
- package/src/lib/context/ThemeContext/ThemeContext.cjs +1 -2
- package/src/lib/context/ThemeContext/ThemeContext.js +1 -2
- package/src/lib/context/ThemeContext/themesData.cjs +1 -2
- package/src/lib/context/ThemeContext/themesData.js +1 -2
- package/src/lib/context/ThemeContext/utils/stylesheetBuilder/stylesheetBuilder.cjs +1 -2
- package/src/lib/context/ThemeContext/utils/stylesheetBuilder/stylesheetBuilder.js +1 -2
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +4 -6
- package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +4 -6
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +2 -3
- package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +2 -3
- package/src/lib/data/api/api.cjs +3 -4
- package/src/lib/data/api/api.js +3 -4
- package/src/lib/data/api/email/email.cjs +0 -1
- package/src/lib/data/api/email/email.js +0 -1
- package/src/lib/data/api/embeddedWallets/embeddedWallets.cjs +0 -1
- package/src/lib/data/api/embeddedWallets/embeddedWallets.js +0 -1
- package/src/lib/data/api/externalAuth/externalAuth.cjs +0 -1
- package/src/lib/data/api/externalAuth/externalAuth.js +0 -1
- package/src/lib/data/api/mfa/mfa.cjs +0 -1
- package/src/lib/data/api/mfa/mfa.js +0 -1
- package/src/lib/data/api/oauth/oauth.cjs +0 -1
- package/src/lib/data/api/oauth/oauth.js +0 -1
- package/src/lib/data/api/session/session.cjs +0 -1
- package/src/lib/data/api/session/session.js +0 -1
- package/src/lib/data/api/settings/settings.cjs +1 -2
- package/src/lib/data/api/settings/settings.js +1 -2
- package/src/lib/data/api/sms/sms.cjs +0 -1
- package/src/lib/data/api/sms/sms.js +0 -1
- package/src/lib/data/api/transactions/blockaid.d.ts +4 -0
- package/src/lib/data/api/user/user.cjs +0 -1
- package/src/lib/data/api/user/user.js +0 -1
- package/src/lib/data/api/wallets/wallets.cjs +0 -1
- package/src/lib/data/api/wallets/wallets.js +0 -1
- package/src/lib/events/auth.d.ts +0 -5
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +3 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +3 -5
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +5 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +2 -4
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +2 -4
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +2 -4
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +5 -7
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +5 -7
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +2 -4
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +2 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -4
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -4
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -4
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.cjs +2 -4
- package/src/lib/modals/ConfirmationModal/ConfirmationModal.js +2 -4
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.cjs +3 -5
- package/src/lib/modals/CreatePasswordModal/CreatePasswordModal.js +3 -5
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +3 -5
- package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +3 -5
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.cjs +4 -6
- package/src/lib/modals/EnterPasswordModal/EnterPasswordModal.js +4 -6
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -4
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -4
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +4 -6
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +5 -7
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.types.d.ts +0 -1
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.cjs +4 -6
- package/src/lib/modals/SyncWalletPromptModal/SyncWalletPromptModal.js +4 -6
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -4
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -4
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +2 -4
- package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +2 -4
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +3 -3
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +2 -2
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +1 -2
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +1 -2
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +7 -7
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +7 -7
- package/src/lib/shared/utils/hooks/usePrefetch/usePrefetch.cjs +1 -1
- package/src/lib/shared/utils/hooks/usePrefetch/usePrefetch.js +1 -1
- package/src/lib/shared/utils/index.d.ts +0 -1
- package/src/lib/store/index.d.ts +1 -1
- package/src/lib/store/internalImplementation/store.cjs +3 -4
- package/src/lib/store/internalImplementation/store.d.ts +0 -1
- package/src/lib/store/internalImplementation/store.js +4 -4
- package/src/lib/store/internalImplementation/utils/clearExpiredData/clearExpiredData.cjs +13 -10
- package/src/lib/store/internalImplementation/utils/clearExpiredData/clearExpiredData.js +12 -9
- package/src/lib/store/internalImplementation/utils/createStoreState/createStoreState.cjs +2 -0
- package/src/lib/store/internalImplementation/utils/createStoreState/createStoreState.d.ts +2 -0
- package/src/lib/store/internalImplementation/utils/createStoreState/createStoreState.js +2 -0
- package/src/lib/store/internalImplementation/utils/syncLegacyStorage/syncLegacyStorage.cjs +3 -3
- package/src/lib/store/internalImplementation/utils/syncLegacyStorage/syncLegacyStorage.js +3 -3
- package/src/lib/store/internalImplementation/utils/useStoreWithSelector/useStoreWithSelector.cjs +23 -1
- package/src/lib/store/internalImplementation/utils/useStoreWithSelector/useStoreWithSelector.js +24 -2
- package/src/lib/store/state/networkConfigurations/networkConfigurations.cjs +12 -15
- package/src/lib/store/state/networkConfigurations/networkConfigurations.d.ts +2 -8
- package/src/lib/store/state/networkConfigurations/networkConfigurations.js +11 -16
- package/src/lib/store/state/projectSettings/projectSettings.cjs +13 -15
- package/src/lib/store/state/projectSettings/projectSettings.d.ts +2 -8
- package/src/lib/store/state/projectSettings/projectSettings.js +12 -16
- package/src/lib/store/state/{sendBalances/sendBalances.cjs → sendBalances.cjs} +3 -8
- package/src/lib/store/state/sendBalances.d.ts +2 -0
- package/src/lib/store/state/sendBalances.js +11 -0
- package/src/lib/store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.cjs +1 -2
- package/src/lib/store/state/user/storeAuthTokenAndUser/storeAuthTokenAndUser.js +1 -2
- package/src/lib/store/state/{walletConnectorOptions/walletConnectorOptions.cjs → walletConnectorOptions.cjs} +3 -2
- package/src/lib/store/state/walletConnectorOptions.d.ts +1 -0
- package/src/lib/store/state/walletConnectorOptions.js +6 -0
- package/src/lib/store/stateConfig.cjs +8 -3
- package/src/lib/store/stateConfig.js +8 -3
- package/src/lib/store/types.d.ts +2 -2
- package/src/lib/utils/constants/sessionStorage.cjs +1 -1
- package/src/lib/utils/constants/sessionStorage.js +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +5 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +4 -2
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.cjs +0 -1
- package/src/lib/utils/functions/getCoinbaseMPCConnectorFetchers/getCoinbaseMPCConnectorFetchers.js +0 -1
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.cjs +2 -3
- package/src/lib/utils/functions/getEnabledEmbeddedWalletProviders/getEnabledEmbeddedWalletProviders.js +2 -3
- package/src/lib/utils/functions/getExpiresAt/getExpiresAt.cjs +3 -16
- package/src/lib/utils/functions/getExpiresAt/getExpiresAt.d.ts +1 -1
- package/src/lib/utils/functions/getExpiresAt/getExpiresAt.js +2 -15
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.cjs +5 -3
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getMinAuthToken/getMinAuthToken.js +4 -2
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.cjs +4 -5
- package/src/lib/utils/functions/getUserIdentifier/getUserIdentifier.js +4 -5
- package/src/lib/utils/functions/index.d.ts +0 -1
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.cjs +2 -3
- package/src/lib/utils/functions/isAllowedToLinkWallet/isAllowedToLinkWallet.js +2 -3
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.cjs +2 -3
- package/src/lib/utils/functions/isPhoneNumberProviderEnabled/isPhoneNumberProviderEnabled.js +2 -3
- 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/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.cjs +2 -3
- package/src/lib/utils/functions/requiresPasswordForEmbeddedWalletOnSignup/requiresPasswordForEmbeddedWalletOnSignup.js +2 -3
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.cjs +1 -2
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.js +1 -2
- package/src/lib/utils/functions/socialStorage/socialStorage.cjs +6 -6
- package/src/lib/utils/functions/socialStorage/socialStorage.js +6 -6
- package/src/lib/utils/functions/storeAuthToken/index.cjs +8 -15
- package/src/lib/utils/functions/storeAuthToken/index.js +7 -14
- package/src/lib/utils/functions/storeExpiresAt/storeExpiresAt.cjs +3 -16
- package/src/lib/utils/functions/storeExpiresAt/storeExpiresAt.js +2 -15
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +7 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +6 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +6 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +6 -8
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +6 -8
- package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +6 -8
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +5 -7
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +5 -7
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +5 -7
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +5 -7
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +7 -9
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +7 -9
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +4 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +4 -6
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +6 -18
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +5 -17
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +1 -2
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +1 -2
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs +0 -1
- package/src/lib/utils/hooks/useConfirmationPortal/useConfirmationPortal.js +0 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +0 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +0 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -2
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -2
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +5 -7
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +5 -7
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +4 -6
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +4 -6
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +5 -7
- package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +5 -7
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +5 -7
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +5 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +5 -7
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +5 -7
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +4 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +4 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +6 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +5 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.cjs +5 -7
- package/src/lib/utils/hooks/useEmbeddedWalletAuthenticator/useEmbeddedWalletAuthenticator.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.cjs +5 -7
- package/src/lib/utils/hooks/useEmbeddedWalletPassword/useEmbeddedWalletPassword.js +5 -7
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.cjs +0 -1
- package/src/lib/utils/hooks/useEmbeddedWalletSessionKeys/useEmbeddedWalletSessionKeys.js +0 -1
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.cjs +4 -6
- package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.js +4 -6
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +0 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +0 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -2
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -2
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.cjs +4 -6
- package/src/lib/utils/hooks/useHandleAuthenticatedUser/useHandleAuthenticatedUser.js +4 -6
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +5 -6
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +5 -6
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.cjs +4 -6
- package/src/lib/utils/hooks/useHandleVerificationRequired/useHandleVerificationRequired.js +4 -6
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +5 -7
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +5 -7
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.cjs +6 -8
- package/src/lib/utils/hooks/useInitEmbeddedWalletAuthMethod/useInitEmbeddedWalletAuthMethod.js +6 -8
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.cjs +7 -10
- package/src/lib/utils/hooks/useIsLoggedIn/useIsLoggedIn.js +7 -10
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.cjs +5 -7
- package/src/lib/utils/hooks/useIsTurnkeyWallet/useIsTurnkeyWallet.js +5 -7
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +5 -7
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +5 -7
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +4 -6
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +4 -6
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +5 -7
- package/src/lib/utils/hooks/useMfa/useMfa.js +5 -7
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +5 -7
- package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +5 -7
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.cjs +5 -7
- package/src/lib/utils/hooks/useNetworkDataFromWallet/useNetworkDataFromWallet.js +5 -7
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.cjs +5 -7
- package/src/lib/utils/hooks/useNetworkNotSupported/useNetworkNotSupported.js +5 -7
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.cjs +5 -7
- package/src/lib/utils/hooks/useOnlyConnectedMode/useOnlyConnectedMode.js +5 -7
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +5 -7
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +5 -7
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +1 -2
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +1 -2
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.cjs +5 -7
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.js +5 -7
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.cjs +1 -2
- package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.js +1 -2
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +5 -7
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +5 -7
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.cjs +1 -2
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.js +1 -2
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +6 -8
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +6 -8
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.cjs +7 -9
- package/src/lib/utils/hooks/useSmartWallets/useSmartWallets.js +7 -9
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +7 -9
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +6 -8
- package/src/lib/utils/hooks/useSocialAuth/farcaster/farcaster.cjs +0 -1
- package/src/lib/utils/hooks/useSocialAuth/farcaster/farcaster.js +0 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +4 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +4 -6
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +5 -7
- package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +5 -7
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.cjs +5 -9
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.js +5 -9
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.cjs +5 -7
- package/src/lib/utils/hooks/useSyncMfaFlow/useSyncMfaFlow.js +5 -7
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.cjs +5 -7
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.js +5 -7
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.cjs +6 -8
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.js +6 -8
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +5 -7
- package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +5 -7
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.cjs +4 -6
- package/src/lib/utils/hooks/useTransferWallet/useTransferWallet.js +4 -6
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +4 -6
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +4 -6
- 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 +5 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +5 -7
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.cjs +4 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUserWithModal/useUpdateUserWithModal.js +4 -6
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.cjs +1 -2
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.js +1 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +6 -8
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +6 -8
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.cjs +5 -7
- package/src/lib/utils/hooks/useViewSettings/useViewSettings.js +5 -7
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +3 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +3 -4
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +2 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +2 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.cjs +2 -3
- package/src/lib/utils/hooks/useWalletConnectorOptions/utils/verifyZeroDevIsSetup/verifyZeroDevIsSetup.js +2 -3
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +5 -13
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +5 -13
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +2 -10
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -10
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +27 -19
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +27 -19
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +7 -10
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +7 -10
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +5 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +5 -8
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.types.d.ts +0 -1
- package/src/lib/views/AccessBlockedView/AccessBlockedView.cjs +3 -5
- package/src/lib/views/AccessBlockedView/AccessBlockedView.js +3 -5
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +2 -4
- package/src/lib/views/AccountExistsView/AccountExistsView.js +2 -4
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +4 -6
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +4 -6
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +5 -7
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +5 -7
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +5 -7
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +5 -7
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -4
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -4
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.cjs +2 -4
- package/src/lib/views/CoinbaseMPCClaimIntro/CoinbaseMPCClaimIntro.js +2 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +2 -4
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +2 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +2 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +2 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.cjs +2 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/UserPhoneField/UserPhoneField.js +2 -4
- package/src/lib/views/CollectUserDataView/useFields.cjs +1 -2
- package/src/lib/views/CollectUserDataView/useFields.js +1 -2
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.cjs +2 -4
- package/src/lib/views/CollectUserDataViewNoWallet/CollectUserDataViewNoWallet.js +2 -4
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.cjs +2 -4
- package/src/lib/views/CreatePasswordView/CreatePasswordStep/CreatePasswordStep.js +2 -4
- package/src/lib/views/CreatePasswordView/CreatePasswordView.cjs +5 -7
- package/src/lib/views/CreatePasswordView/CreatePasswordView.js +5 -7
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.cjs +2 -4
- package/src/lib/views/CreatePasswordView/SavePasswordStep/SavePasswordStep.js +2 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +2 -4
- package/src/lib/views/EmailVerification/EmailVerification.js +2 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -4
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +4 -6
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +4 -6
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +0 -1
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +0 -1
- package/src/lib/views/EnterPasswordView/EnterPasswordView.cjs +2 -4
- package/src/lib/views/EnterPasswordView/EnterPasswordView.js +2 -4
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.cjs +2 -4
- package/src/lib/views/FarcasterConnectView/FarcasterConnectView.js +2 -4
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.cjs +1 -2
- package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.js +1 -2
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.cjs +2 -4
- package/src/lib/views/GlobalWalletConfirmView/GlobalWalletConfirmView.js +2 -4
- package/src/lib/views/GlobalWalletInfoView/GlobalWalletInfoView.cjs +1 -2
- package/src/lib/views/GlobalWalletInfoView/GlobalWalletInfoView.js +1 -2
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.cjs +2 -4
- package/src/lib/views/LoginView/LoginViewSection/LoginViewSection.js +2 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +2 -4
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +2 -4
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.cjs +2 -4
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/PhoneNumberSignInSection.js +2 -4
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +4 -6
- package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +4 -6
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +2 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +2 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +2 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +2 -4
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.cjs +5 -7
- package/src/lib/views/LoginView/sections/SocialSignInSection/SocialSignInSection.js +5 -7
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.cjs +2 -4
- package/src/lib/views/LoginView/sections/ToggleableSection/ToggleableSection.js +2 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +2 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +2 -4
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +8 -10
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +7 -9
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +5 -7
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +5 -7
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +2 -4
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +2 -4
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -6
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +4 -6
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +2 -4
- package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +2 -4
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +2 -4
- package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +2 -4
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.cjs +2 -4
- package/src/lib/views/MfaDisplayBackupCodesView/MfaDisplayBackupCodesView.js +2 -4
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +2 -4
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +2 -4
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.cjs +3 -5
- package/src/lib/views/MfaSecureDeviceHelpView/MfaSecureDeviceHelpView.js +3 -5
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.cjs +2 -4
- package/src/lib/views/MfaSecureDeviceView/MfaSecureDeviceView.js +2 -4
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +4 -6
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +4 -6
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -4
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -4
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -4
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -4
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -4
- package/src/lib/views/NoAccess/NoAccess.js +2 -4
- package/src/lib/views/NoAccess/useNoAccessText.cjs +5 -7
- package/src/lib/views/NoAccess/useNoAccessText.js +5 -7
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +2 -4
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +2 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.cjs +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/AuthChoiceInfo/AuthChoiceInfo.js +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +5 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +5 -7
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.cjs +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/ActionCard/ActionCard.js +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +2 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +2 -4
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.cjs +2 -4
- package/src/lib/views/Passkey/PasskeyDeviceIcon/PasskeyDeviceIcon.js +2 -4
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +6 -8
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +6 -8
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.cjs +2 -4
- package/src/lib/views/Passkey/PasskeyNewDomainDetectedView/PasskeyNewDomainDetectedView.js +2 -4
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +4 -6
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.cjs +2 -4
- package/src/lib/views/Passkey/PasskeyRecovery/InitRecovery/PasskeyInitRecovery.js +2 -4
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.cjs +2 -4
- package/src/lib/views/Passkey/RenamePasskeyView/RenamePasskeyView.js +2 -4
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.cjs +0 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletRequest/createEmbeddedWalletRequest.js +0 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +5 -6
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +5 -6
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -4
- package/src/lib/views/QrCodeView/QrCodeView.cjs +5 -7
- package/src/lib/views/QrCodeView/QrCodeView.js +5 -7
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.cjs +2 -4
- package/src/lib/views/SandboxMaximumThresholdReached/SandboxMaximumThresholdReached.js +2 -4
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +2 -4
- package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +2 -4
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.cjs +3 -5
- package/src/lib/views/SelectWalletInWalletGroupView/SelectWalletInWalletGroupView.js +3 -5
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -4
- package/src/lib/views/SelectWalletInWalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -4
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +4 -6
- package/src/lib/views/SendBalanceView/SendBalanceView.js +4 -6
- package/src/lib/views/SmsVerification/SmsVerification.cjs +2 -4
- package/src/lib/views/SmsVerification/SmsVerification.js +2 -4
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +5 -7
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +5 -7
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -4
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -4
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -4
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs +3 -5
- package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js +3 -5
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +2 -4
- package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +2 -4
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +3 -5
- package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +3 -5
- package/src/lib/views/SyncWalletView/SyncWalletView.cjs +8 -11
- package/src/lib/views/SyncWalletView/SyncWalletView.js +8 -11
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +4 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +4 -6
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +0 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +0 -1
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +2 -4
- package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +2 -4
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.cjs +1 -2
- package/src/lib/views/UserFieldEditorView/UserFieldsToIcon/UserFieldsToIcon.js +1 -2
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.cjs +5 -7
- package/src/lib/views/UserFieldEditorView/useAssignDefaultValues/useAssignDefaultValues.js +5 -7
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +2 -4
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +2 -4
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +3 -5
- package/src/lib/views/WalletGroupView/WalletGroupView.js +3 -5
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +2 -4
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +2 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +2 -4
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +2 -4
- package/src/lib/views/WalletList/WalletList.cjs +20 -17
- package/src/lib/views/WalletList/WalletList.js +19 -16
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.cjs +2 -4
- package/src/lib/views/WalletList/WalletListGridTabs/WalletListGridTabs.js +2 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -4
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -4
- package/src/lib/views/WalletList/data.cjs +1 -2
- package/src/lib/views/WalletList/data.js +1 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +2 -4
- package/src/lib/views/WalletLockedView/WalletLockedView.js +2 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +2 -4
- package/src/lib/views/WalletRedirectView/WalletRedirectView.js +2 -4
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +5 -7
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +5 -7
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +4 -6
- package/src/lib/views/WalletUsedView/WalletUsedView.js +4 -6
- package/src/lib/views/viewToComponentMap.cjs +2 -3
- package/src/lib/views/viewToComponentMap.js +2 -3
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +5 -7
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +5 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +5 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +5 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +5 -7
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +5 -7
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +3 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +3 -5
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +2 -4
- package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +2 -4
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +4 -6
- package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +4 -6
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveBitcoinWalletAddresses/ActiveBitcoinWalletAddresses.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletAddress/ActiveWalletAddress.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceItem/TokenBalanceItem.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/TokenBalanceList/TokenBalanceList.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/BottomNavBar/BottomNavBar.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +5 -7
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +4 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +4 -6
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/PromptModal/PromptModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/UnknownWalletInformation/UnknownWalletInformation.js +2 -4
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +6 -8
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +6 -8
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +2 -3
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +2 -3
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -4
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +5 -7
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.cjs +1 -2
- package/src/lib/widgets/DynamicWidget/helpers/getPasskeyProviderFromUserAgent.js +1 -2
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +0 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +0 -1
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/hooks/useCloseMultiWalletPrompt/useCloseMultiWalletPrompt.js +5 -7
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +4 -6
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +5 -7
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/hooks/useMultiWalletPromptState/useMultiWalletPromptState.js +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/AwaitingConnectionModal/AwaitingConnectionModal.js +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +2 -4
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +5 -7
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +2 -4
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.js +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +2 -4
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +5 -7
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +5 -7
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +2 -4
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +2 -4
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -4
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -4
- package/src/lib/shared/utils/classes/index.d.ts +0 -1
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +0 -82
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +0 -25
- package/src/lib/shared/utils/classes/storage/localStorage.js +0 -77
- package/src/lib/store/state/sendBalances/index.d.ts +0 -1
- package/src/lib/store/state/sendBalances/sendBalances.d.ts +0 -3
- package/src/lib/store/state/sendBalances/sendBalances.js +0 -16
- package/src/lib/store/state/walletConnectorOptions/index.d.ts +0 -1
- package/src/lib/store/state/walletConnectorOptions/walletConnectorOptions.d.ts +0 -2
- package/src/lib/store/state/walletConnectorOptions/walletConnectorOptions.js +0 -6
- package/src/lib/utils/functions/logVerboseTroubleshootingMessage/index.d.ts +0 -1
- package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.cjs +0 -28
- package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.d.ts +0 -1
- package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.js +0 -24
|
@@ -15,11 +15,10 @@ require('../../shared/logger.cjs');
|
|
|
15
15
|
require('@dynamic-labs/iconic');
|
|
16
16
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
require('@dynamic-labs/wallet-book');
|
|
18
|
+
require('@dynamic-labs/utils');
|
|
18
19
|
require('../../utils/constants/colors.cjs');
|
|
19
20
|
require('../../utils/constants/values.cjs');
|
|
20
|
-
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
21
|
require('../../store/state/loadingAndLifecycle.cjs');
|
|
22
|
-
require('@dynamic-labs/utils');
|
|
23
22
|
require('../../shared/consts/index.cjs');
|
|
24
23
|
require('../../events/dynamicEvents.cjs');
|
|
25
24
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -48,7 +47,7 @@ require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
48
47
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
48
|
require('@dynamic-labs/rpc-providers');
|
|
50
49
|
require('../../store/state/environmentId.cjs');
|
|
51
|
-
require('../../store/state/walletConnectorOptions
|
|
50
|
+
require('../../store/state/walletConnectorOptions.cjs');
|
|
52
51
|
require('../../store/state/tokenBalances.cjs');
|
|
53
52
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
54
53
|
require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
@@ -69,15 +68,14 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
69
68
|
require('react-focus-lock');
|
|
70
69
|
require('qrcode');
|
|
71
70
|
require('formik');
|
|
72
|
-
require('../../
|
|
71
|
+
require('../../context/FooterAnimationContext/index.cjs');
|
|
73
72
|
require('../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
74
73
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
75
74
|
require('@hcaptcha/react-hcaptcha');
|
|
76
75
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
77
|
-
require('../../context/FooterAnimationContext/index.cjs');
|
|
78
76
|
require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
79
77
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
80
|
-
require('../../store/state/sendBalances
|
|
78
|
+
require('../../store/state/sendBalances.cjs');
|
|
81
79
|
var useConfirmationPortal = require('../../utils/hooks/useConfirmationPortal/useConfirmationPortal.cjs');
|
|
82
80
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
83
81
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
@@ -11,11 +11,10 @@ import '../../shared/logger.js';
|
|
|
11
11
|
import '@dynamic-labs/iconic';
|
|
12
12
|
import '../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import '@dynamic-labs/wallet-book';
|
|
14
|
+
import '@dynamic-labs/utils';
|
|
14
15
|
import '../../utils/constants/colors.js';
|
|
15
16
|
import '../../utils/constants/values.js';
|
|
16
|
-
import '../../shared/utils/classes/storage/localStorage.js';
|
|
17
17
|
import '../../store/state/loadingAndLifecycle.js';
|
|
18
|
-
import '@dynamic-labs/utils';
|
|
19
18
|
import '../../shared/consts/index.js';
|
|
20
19
|
import '../../events/dynamicEvents.js';
|
|
21
20
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -44,7 +43,7 @@ import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
|
44
43
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
45
44
|
import '@dynamic-labs/rpc-providers';
|
|
46
45
|
import '../../store/state/environmentId.js';
|
|
47
|
-
import '../../store/state/walletConnectorOptions
|
|
46
|
+
import '../../store/state/walletConnectorOptions.js';
|
|
48
47
|
import '../../store/state/tokenBalances.js';
|
|
49
48
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
50
49
|
import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
@@ -65,15 +64,14 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
65
64
|
import 'react-focus-lock';
|
|
66
65
|
import 'qrcode';
|
|
67
66
|
import 'formik';
|
|
68
|
-
import '../../
|
|
67
|
+
import '../../context/FooterAnimationContext/index.js';
|
|
69
68
|
import '../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
70
69
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
71
70
|
import '@hcaptcha/react-hcaptcha';
|
|
72
71
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
73
|
-
import '../../context/FooterAnimationContext/index.js';
|
|
74
72
|
import '../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
75
73
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
76
|
-
import '../../store/state/sendBalances
|
|
74
|
+
import '../../store/state/sendBalances.js';
|
|
77
75
|
import { useConfirmationPortal } from '../../utils/hooks/useConfirmationPortal/useConfirmationPortal.js';
|
|
78
76
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
79
77
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
@@ -19,7 +19,6 @@ require('../../context/ViewContext/ViewContext.cjs');
|
|
|
19
19
|
require('@dynamic-labs/wallet-book');
|
|
20
20
|
require('../../utils/constants/colors.cjs');
|
|
21
21
|
require('../../utils/constants/values.cjs');
|
|
22
|
-
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
22
|
require('../../store/state/loadingAndLifecycle.cjs');
|
|
24
23
|
var usePreventPageScroll = require('../../shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
|
|
25
24
|
var index = require('../../shared/consts/index.cjs');
|
|
@@ -49,7 +48,7 @@ require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
49
48
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
50
49
|
require('@dynamic-labs/rpc-providers');
|
|
51
50
|
require('../../store/state/environmentId.cjs');
|
|
52
|
-
require('../../store/state/walletConnectorOptions
|
|
51
|
+
require('../../store/state/walletConnectorOptions.cjs');
|
|
53
52
|
require('react-i18next');
|
|
54
53
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
55
54
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
@@ -67,7 +66,7 @@ require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
|
67
66
|
require('../../components/IconButton/IconButton.cjs');
|
|
68
67
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
69
68
|
require('formik');
|
|
70
|
-
require('../../store/state/sendBalances
|
|
69
|
+
require('../../store/state/sendBalances.cjs');
|
|
71
70
|
require('../../components/Input/Input.cjs');
|
|
72
71
|
var TransactionConfirmationView = require('../../views/TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
73
72
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
@@ -82,7 +81,6 @@ require('../../context/WidgetRegistry/WidgetRegistryContextProvider.cjs');
|
|
|
82
81
|
require('../../context/FundingContext/FundingContext.cjs');
|
|
83
82
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
84
83
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
85
|
-
require('../../views/WalletList/WalletList.cjs');
|
|
86
84
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
87
85
|
require('@hcaptcha/react-hcaptcha');
|
|
88
86
|
require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
@@ -15,7 +15,6 @@ import '../../context/ViewContext/ViewContext.js';
|
|
|
15
15
|
import '@dynamic-labs/wallet-book';
|
|
16
16
|
import '../../utils/constants/colors.js';
|
|
17
17
|
import '../../utils/constants/values.js';
|
|
18
|
-
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
18
|
import '../../store/state/loadingAndLifecycle.js';
|
|
20
19
|
import { usePreventPageScroll } from '../../shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
|
|
21
20
|
import { authModalZIndex } from '../../shared/consts/index.js';
|
|
@@ -45,7 +44,7 @@ import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
|
45
44
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
46
45
|
import '@dynamic-labs/rpc-providers';
|
|
47
46
|
import '../../store/state/environmentId.js';
|
|
48
|
-
import '../../store/state/walletConnectorOptions
|
|
47
|
+
import '../../store/state/walletConnectorOptions.js';
|
|
49
48
|
import 'react-i18next';
|
|
50
49
|
import '../../context/FooterAnimationContext/index.js';
|
|
51
50
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
@@ -63,7 +62,7 @@ import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
|
63
62
|
import '../../components/IconButton/IconButton.js';
|
|
64
63
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
65
64
|
import 'formik';
|
|
66
|
-
import '../../store/state/sendBalances
|
|
65
|
+
import '../../store/state/sendBalances.js';
|
|
67
66
|
import '../../components/Input/Input.js';
|
|
68
67
|
import { TransactionConfirmationView } from '../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
69
68
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
@@ -78,7 +77,6 @@ import '../../context/WidgetRegistry/WidgetRegistryContextProvider.js';
|
|
|
78
77
|
import '../../context/FundingContext/FundingContext.js';
|
|
79
78
|
import '../../components/Popper/Popper/Popper.js';
|
|
80
79
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
81
|
-
import '../../views/WalletList/WalletList.js';
|
|
82
80
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
83
81
|
import '@hcaptcha/react-hcaptcha';
|
|
84
82
|
import '../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
@@ -19,7 +19,6 @@ require('../../context/ViewContext/ViewContext.cjs');
|
|
|
19
19
|
require('@dynamic-labs/wallet-book');
|
|
20
20
|
require('../../utils/constants/colors.cjs');
|
|
21
21
|
require('../../utils/constants/values.cjs');
|
|
22
|
-
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
22
|
require('../../store/state/loadingAndLifecycle.cjs');
|
|
24
23
|
var index = require('../../shared/consts/index.cjs');
|
|
25
24
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -48,7 +47,7 @@ require('../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
|
48
47
|
require('../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
49
48
|
require('@dynamic-labs/rpc-providers');
|
|
50
49
|
require('../../store/state/environmentId.cjs');
|
|
51
|
-
require('../../store/state/walletConnectorOptions
|
|
50
|
+
require('../../store/state/walletConnectorOptions.cjs');
|
|
52
51
|
require('react-i18next');
|
|
53
52
|
require('../../context/FooterAnimationContext/index.cjs');
|
|
54
53
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
@@ -66,7 +65,7 @@ require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
|
66
65
|
require('../../components/IconButton/IconButton.cjs');
|
|
67
66
|
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
68
67
|
require('formik');
|
|
69
|
-
require('../../store/state/sendBalances
|
|
68
|
+
require('../../store/state/sendBalances.cjs');
|
|
70
69
|
require('../../components/Input/Input.cjs');
|
|
71
70
|
require('../../views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs');
|
|
72
71
|
require('../../context/PasskeyContext/PasskeyContext.cjs');
|
|
@@ -81,7 +80,6 @@ require('../../context/WidgetRegistry/WidgetRegistryContextProvider.cjs');
|
|
|
81
80
|
require('../../context/FundingContext/FundingContext.cjs');
|
|
82
81
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
83
82
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
84
|
-
require('../../views/WalletList/WalletList.cjs');
|
|
85
83
|
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
86
84
|
require('@hcaptcha/react-hcaptcha');
|
|
87
85
|
require('../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
@@ -15,7 +15,6 @@ import '../../context/ViewContext/ViewContext.js';
|
|
|
15
15
|
import '@dynamic-labs/wallet-book';
|
|
16
16
|
import '../../utils/constants/colors.js';
|
|
17
17
|
import '../../utils/constants/values.js';
|
|
18
|
-
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
18
|
import '../../store/state/loadingAndLifecycle.js';
|
|
20
19
|
import { authModalZIndex } from '../../shared/consts/index.js';
|
|
21
20
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -44,7 +43,7 @@ import '../../context/FieldsStateContext/FieldsStateContext.js';
|
|
|
44
43
|
import '../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
45
44
|
import '@dynamic-labs/rpc-providers';
|
|
46
45
|
import '../../store/state/environmentId.js';
|
|
47
|
-
import '../../store/state/walletConnectorOptions
|
|
46
|
+
import '../../store/state/walletConnectorOptions.js';
|
|
48
47
|
import 'react-i18next';
|
|
49
48
|
import '../../context/FooterAnimationContext/index.js';
|
|
50
49
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
@@ -62,7 +61,7 @@ import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
|
62
61
|
import '../../components/IconButton/IconButton.js';
|
|
63
62
|
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
64
63
|
import 'formik';
|
|
65
|
-
import '../../store/state/sendBalances
|
|
64
|
+
import '../../store/state/sendBalances.js';
|
|
66
65
|
import '../../components/Input/Input.js';
|
|
67
66
|
import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
|
|
68
67
|
import '../../context/PasskeyContext/PasskeyContext.js';
|
|
@@ -77,7 +76,6 @@ import '../../context/WidgetRegistry/WidgetRegistryContextProvider.js';
|
|
|
77
76
|
import '../../context/FundingContext/FundingContext.js';
|
|
78
77
|
import '../../components/Popper/Popper/Popper.js';
|
|
79
78
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
80
|
-
import '../../views/WalletList/WalletList.js';
|
|
81
79
|
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
82
80
|
import '@hcaptcha/react-hcaptcha';
|
|
83
81
|
import '../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
|
+
var localStorage = require('../../../../utils/constants/localStorage.cjs');
|
|
7
8
|
require('../../../../utils/constants/colors.cjs');
|
|
8
9
|
require('../../../../utils/constants/values.cjs');
|
|
9
|
-
var localStorage = require('../../classes/storage/localStorage.cjs');
|
|
10
10
|
var isWalletGroup = require('../../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.cjs');
|
|
11
11
|
var getWalletGroupType = require('../../../../utils/functions/getWalletGroupType/getWalletGroupType.cjs');
|
|
12
12
|
|
|
13
|
-
const getLastUsedWalletKey = () =>
|
|
13
|
+
const getLastUsedWalletKey = () => utils.StorageService.getItem(localStorage.LAST_USED_WALLET);
|
|
14
14
|
const getWalletGroupLabel = (walletGroup, recommendedWallets) => {
|
|
15
15
|
const nestedRecommendedWalletSetting = recommendedWallets === null || recommendedWallets === void 0 ? void 0 : recommendedWallets.find((recommendedWallet) => walletGroup.groupedWallets.some((walletOption) => recommendedWallet.walletKey === walletOption.walletConnector.key));
|
|
16
16
|
if (nestedRecommendedWalletSetting) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { StorageService } from '@dynamic-labs/utils';
|
|
2
3
|
import { LAST_USED_WALLET } from '../../../../utils/constants/localStorage.js';
|
|
3
4
|
import '../../../../utils/constants/colors.js';
|
|
4
5
|
import '../../../../utils/constants/values.js';
|
|
5
|
-
import { LocalStorage } from '../../classes/storage/localStorage.js';
|
|
6
6
|
import { isWalletGroup } from '../../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.js';
|
|
7
7
|
import { getWalletGroupType } from '../../../../utils/functions/getWalletGroupType/getWalletGroupType.js';
|
|
8
8
|
|
|
9
|
-
const getLastUsedWalletKey = () =>
|
|
9
|
+
const getLastUsedWalletKey = () => StorageService.getItem(LAST_USED_WALLET);
|
|
10
10
|
const getWalletGroupLabel = (walletGroup, recommendedWallets) => {
|
|
11
11
|
const nestedRecommendedWalletSetting = recommendedWallets === null || recommendedWallets === void 0 ? void 0 : recommendedWallets.find((recommendedWallet) => walletGroup.groupedWallets.some((walletOption) => recommendedWallet.walletKey === walletOption.walletConnector.key));
|
|
12
12
|
if (nestedRecommendedWalletSetting) {
|
|
@@ -7,7 +7,6 @@ var React = require('react');
|
|
|
7
7
|
var loadingAndLifecycle = require('../../../../store/state/loadingAndLifecycle.cjs');
|
|
8
8
|
var logger = require('../../../logger.cjs');
|
|
9
9
|
var index = require('../../functions/lastAuthenticatedAccount/index.cjs');
|
|
10
|
-
var logVerboseTroubleshootingMessage = require('../../../../utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.cjs');
|
|
11
10
|
|
|
12
11
|
const useGlobalLoading = ({ authMode, connectedInfo, connectedWallets, projectSettings, primaryWallet, user, walletBook, enableInstrumentation, appName, environmentId, }) => {
|
|
13
12
|
var _a, _b;
|
|
@@ -19,7 +18,7 @@ const useGlobalLoading = ({ authMode, connectedInfo, connectedWallets, projectSe
|
|
|
19
18
|
if (hasLoaded.current)
|
|
20
19
|
return;
|
|
21
20
|
hasLoaded.current = true;
|
|
22
|
-
|
|
21
|
+
logger.logger.logVerboseTroubleshootingMessage('SDK finished loading', {
|
|
23
22
|
appName,
|
|
24
23
|
authMode,
|
|
25
24
|
connectedInfo,
|
|
@@ -3,7 +3,6 @@ import { useRef } from 'react';
|
|
|
3
3
|
import { useLoadingAndLifecycle } from '../../../../store/state/loadingAndLifecycle.js';
|
|
4
4
|
import { logger } from '../../../logger.js';
|
|
5
5
|
import { lastAuthenticatedAccount } from '../../functions/lastAuthenticatedAccount/index.js';
|
|
6
|
-
import { logVerboseTroubleshootingMessage } from '../../../../utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.js';
|
|
7
6
|
|
|
8
7
|
const useGlobalLoading = ({ authMode, connectedInfo, connectedWallets, projectSettings, primaryWallet, user, walletBook, enableInstrumentation, appName, environmentId, }) => {
|
|
9
8
|
var _a, _b;
|
|
@@ -15,7 +14,7 @@ const useGlobalLoading = ({ authMode, connectedInfo, connectedWallets, projectSe
|
|
|
15
14
|
if (hasLoaded.current)
|
|
16
15
|
return;
|
|
17
16
|
hasLoaded.current = true;
|
|
18
|
-
logVerboseTroubleshootingMessage('SDK finished loading', {
|
|
17
|
+
logger.logVerboseTroubleshootingMessage('SDK finished loading', {
|
|
19
18
|
appName,
|
|
20
19
|
authMode,
|
|
21
20
|
connectedInfo,
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
8
|
var logger = require('../../../logger.cjs');
|
|
8
|
-
var localStorage = require('../../classes/storage/localStorage.cjs');
|
|
9
9
|
|
|
10
10
|
const useLocalStorage = (key, initialValue, valueValidator, otherKeysToRemove) => {
|
|
11
11
|
const [storedValue, setStoredValue] = React.useState(() => {
|
|
12
12
|
try {
|
|
13
|
-
const item =
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
otherKeysToRemove === null || otherKeysToRemove === void 0 ? void 0 : otherKeysToRemove.forEach((k) =>
|
|
13
|
+
const item = utils.StorageService.getItem(key);
|
|
14
|
+
if (item && valueValidator && !valueValidator(item)) {
|
|
15
|
+
utils.StorageService.removeItem(key);
|
|
16
|
+
otherKeysToRemove === null || otherKeysToRemove === void 0 ? void 0 : otherKeysToRemove.forEach((k) => utils.StorageService.removeItem(k));
|
|
17
17
|
return initialValue;
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
@@ -29,14 +29,14 @@ const useLocalStorage = (key, initialValue, valueValidator, otherKeysToRemove) =
|
|
|
29
29
|
try {
|
|
30
30
|
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
31
31
|
setStoredValue(valueToStore);
|
|
32
|
-
|
|
32
|
+
utils.StorageService.setItem(key, valueToStore);
|
|
33
33
|
}
|
|
34
34
|
catch (error) {
|
|
35
35
|
logger.logger.error(error);
|
|
36
36
|
}
|
|
37
37
|
}, [key, storedValue]);
|
|
38
38
|
const removeValue = React.useCallback(() => {
|
|
39
|
-
|
|
39
|
+
utils.StorageService.removeItem(key);
|
|
40
40
|
setStoredValue(initialValue);
|
|
41
41
|
}, [initialValue, key]);
|
|
42
42
|
return [storedValue, setValue, removeValue];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { useState, useCallback } from 'react';
|
|
3
|
+
import { StorageService } from '@dynamic-labs/utils';
|
|
3
4
|
import { logger } from '../../../logger.js';
|
|
4
|
-
import { LocalStorage } from '../../classes/storage/localStorage.js';
|
|
5
5
|
|
|
6
6
|
const useLocalStorage = (key, initialValue, valueValidator, otherKeysToRemove) => {
|
|
7
7
|
const [storedValue, setStoredValue] = useState(() => {
|
|
8
8
|
try {
|
|
9
|
-
const item =
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
otherKeysToRemove === null || otherKeysToRemove === void 0 ? void 0 : otherKeysToRemove.forEach((k) =>
|
|
9
|
+
const item = StorageService.getItem(key);
|
|
10
|
+
if (item && valueValidator && !valueValidator(item)) {
|
|
11
|
+
StorageService.removeItem(key);
|
|
12
|
+
otherKeysToRemove === null || otherKeysToRemove === void 0 ? void 0 : otherKeysToRemove.forEach((k) => StorageService.removeItem(k));
|
|
13
13
|
return initialValue;
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
@@ -25,14 +25,14 @@ const useLocalStorage = (key, initialValue, valueValidator, otherKeysToRemove) =
|
|
|
25
25
|
try {
|
|
26
26
|
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
27
27
|
setStoredValue(valueToStore);
|
|
28
|
-
|
|
28
|
+
StorageService.setItem(key, valueToStore);
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
31
|
logger.error(error);
|
|
32
32
|
}
|
|
33
33
|
}, [key, storedValue]);
|
|
34
34
|
const removeValue = useCallback(() => {
|
|
35
|
-
|
|
35
|
+
StorageService.removeItem(key);
|
|
36
36
|
setStoredValue(initialValue);
|
|
37
37
|
}, [initialValue, key]);
|
|
38
38
|
return [storedValue, setValue, removeValue];
|
|
@@ -12,9 +12,9 @@ require('../../../../context/ViewContext/ViewContext.cjs');
|
|
|
12
12
|
require('react');
|
|
13
13
|
require('@dynamic-labs/wallet-book');
|
|
14
14
|
var isSSR = require('../../functions/isSSR/isSSR.cjs');
|
|
15
|
+
require('@dynamic-labs/utils');
|
|
15
16
|
require('../../../../utils/constants/colors.cjs');
|
|
16
17
|
require('../../../../utils/constants/values.cjs');
|
|
17
|
-
require('../../classes/storage/localStorage.cjs');
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Prefetches a resource
|
|
@@ -8,9 +8,9 @@ import '../../../../context/ViewContext/ViewContext.js';
|
|
|
8
8
|
import 'react';
|
|
9
9
|
import '@dynamic-labs/wallet-book';
|
|
10
10
|
import { isSSR } from '../../functions/isSSR/isSSR.js';
|
|
11
|
+
import '@dynamic-labs/utils';
|
|
11
12
|
import '../../../../utils/constants/colors.js';
|
|
12
13
|
import '../../../../utils/constants/values.js';
|
|
13
|
-
import '../../classes/storage/localStorage.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Prefetches a resource
|
package/src/lib/store/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { initializeStore, removeStoreInstance
|
|
1
|
+
export { initializeStore, removeStoreInstance } from './internalImplementation';
|
|
2
2
|
export * from './types';
|
|
@@ -30,13 +30,14 @@ const initializeStore = ({ storageSuffix, environmentId, }) => {
|
|
|
30
30
|
const persistName = storageSuffix
|
|
31
31
|
? `${localStorage$1.STORE_STORAGE_KEY}_${storageSuffix}`
|
|
32
32
|
: localStorage$1.STORE_STORAGE_KEY;
|
|
33
|
-
store =
|
|
33
|
+
store = syncLegacyStorage.syncLegacyStorage(store$1.persist({
|
|
34
34
|
name: persistName,
|
|
35
35
|
partialize: stateConfig.transformStateForLocalStorage,
|
|
36
36
|
storage: getStorage(),
|
|
37
37
|
// Map each entry to its initialValue
|
|
38
38
|
store: store$1.createStore(() => stateConfig.createInitialStates({ environmentId, storageSuffix })),
|
|
39
|
-
}))
|
|
39
|
+
}));
|
|
40
|
+
clearExpiredData.clearExpiredData(store);
|
|
40
41
|
};
|
|
41
42
|
const getStorage = () => {
|
|
42
43
|
if (typeof localStorage === 'undefined') {
|
|
@@ -47,9 +48,7 @@ const getStorage = () => {
|
|
|
47
48
|
}
|
|
48
49
|
return window.localStorage;
|
|
49
50
|
};
|
|
50
|
-
const resetStore = () => getStore().setState(getStore().getInitialState());
|
|
51
51
|
|
|
52
52
|
exports.getStore = getStore;
|
|
53
53
|
exports.initializeStore = initializeStore;
|
|
54
54
|
exports.removeStoreInstance = removeStoreInstance;
|
|
55
|
-
exports.resetStore = resetStore;
|
|
@@ -3,4 +3,3 @@ import { SdkStore, SdkStoreProps } from '../types';
|
|
|
3
3
|
export declare const getStore: () => StoreApi<SdkStore>;
|
|
4
4
|
export declare const removeStoreInstance: () => void;
|
|
5
5
|
export declare const initializeStore: ({ storageSuffix, environmentId, }: SdkStoreProps) => void;
|
|
6
|
-
export declare const resetStore: () => void;
|
|
@@ -26,13 +26,14 @@ const initializeStore = ({ storageSuffix, environmentId, }) => {
|
|
|
26
26
|
const persistName = storageSuffix
|
|
27
27
|
? `${STORE_STORAGE_KEY}_${storageSuffix}`
|
|
28
28
|
: STORE_STORAGE_KEY;
|
|
29
|
-
store =
|
|
29
|
+
store = syncLegacyStorage(persist({
|
|
30
30
|
name: persistName,
|
|
31
31
|
partialize: transformStateForLocalStorage,
|
|
32
32
|
storage: getStorage(),
|
|
33
33
|
// Map each entry to its initialValue
|
|
34
34
|
store: createStore(() => createInitialStates({ environmentId, storageSuffix })),
|
|
35
|
-
}))
|
|
35
|
+
}));
|
|
36
|
+
clearExpiredData(store);
|
|
36
37
|
};
|
|
37
38
|
const getStorage = () => {
|
|
38
39
|
if (typeof localStorage === 'undefined') {
|
|
@@ -43,6 +44,5 @@ const getStorage = () => {
|
|
|
43
44
|
}
|
|
44
45
|
return window.localStorage;
|
|
45
46
|
};
|
|
46
|
-
const resetStore = () => getStore().setState(getStore().getInitialState());
|
|
47
47
|
|
|
48
|
-
export { getStore, initializeStore, removeStoreInstance
|
|
48
|
+
export { getStore, initializeStore, removeStoreInstance };
|
|
@@ -3,22 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
var localStorage
|
|
6
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
|
+
var localStorage = require('../../../../utils/constants/localStorage.cjs');
|
|
8
8
|
|
|
9
9
|
const clearExpiredData = (store) => {
|
|
10
10
|
const { projectSettings, networkConfigurations, user } = store.getState();
|
|
11
11
|
// TODO: we can clean this up once we move wallet info to the store
|
|
12
|
-
const [connectedWalletData] =
|
|
12
|
+
const [connectedWalletData] = utils.StorageService.getItem(localStorage.CONNECTED_WALLETS_INFO) || [];
|
|
13
13
|
const shouldRemoveSettingsAndConfigs = !user && !connectedWalletData;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const isExpired = (value) => shouldRemoveSettingsAndConfigs ||
|
|
15
|
+
(value.expiresAt && value.expiresAt < Date.now());
|
|
16
|
+
if (isExpired(projectSettings)) {
|
|
17
|
+
store.setState({
|
|
18
|
+
projectSettings: store.getInitialState().projectSettings,
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
|
-
if ((
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
if (isExpired(networkConfigurations)) {
|
|
22
|
+
store.setState({
|
|
23
|
+
networkConfigurations: store.getInitialState().networkConfigurations,
|
|
24
|
+
});
|
|
22
25
|
}
|
|
23
26
|
return store;
|
|
24
27
|
};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { StorageService } from '@dynamic-labs/utils';
|
|
3
3
|
import { CONNECTED_WALLETS_INFO } from '../../../../utils/constants/localStorage.js';
|
|
4
4
|
|
|
5
5
|
const clearExpiredData = (store) => {
|
|
6
6
|
const { projectSettings, networkConfigurations, user } = store.getState();
|
|
7
7
|
// TODO: we can clean this up once we move wallet info to the store
|
|
8
|
-
const [connectedWalletData] =
|
|
8
|
+
const [connectedWalletData] = StorageService.getItem(CONNECTED_WALLETS_INFO) || [];
|
|
9
9
|
const shouldRemoveSettingsAndConfigs = !user && !connectedWalletData;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const isExpired = (value) => shouldRemoveSettingsAndConfigs ||
|
|
11
|
+
(value.expiresAt && value.expiresAt < Date.now());
|
|
12
|
+
if (isExpired(projectSettings)) {
|
|
13
|
+
store.setState({
|
|
14
|
+
projectSettings: store.getInitialState().projectSettings,
|
|
15
|
+
});
|
|
13
16
|
}
|
|
14
|
-
if ((
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
if (isExpired(networkConfigurations)) {
|
|
18
|
+
store.setState({
|
|
19
|
+
networkConfigurations: store.getInitialState().networkConfigurations,
|
|
20
|
+
});
|
|
18
21
|
}
|
|
19
22
|
return store;
|
|
20
23
|
};
|
|
@@ -11,10 +11,12 @@ const createStoreState = (variable) => {
|
|
|
11
11
|
const useValue = () => useStoreWithSelector.useStoreWithSelector(store.getStore(), (state) => state[variable]);
|
|
12
12
|
const setValue = (value) => store.getStore().setState(Object.assign(Object.assign({}, store.getStore().getState()), { [variable]: value }));
|
|
13
13
|
const getValue = () => store.getStore().getState()[variable];
|
|
14
|
+
const resetValue = () => setValue(store.getStore().getInitialState()[variable]);
|
|
14
15
|
return {
|
|
15
16
|
[`use${capitalizedName}`]: useValue,
|
|
16
17
|
[`get${capitalizedName}`]: getValue,
|
|
17
18
|
[`set${capitalizedName}`]: setValue,
|
|
19
|
+
[`reset${capitalizedName}`]: resetValue,
|
|
18
20
|
};
|
|
19
21
|
};
|
|
20
22
|
|
|
@@ -5,5 +5,7 @@ export type StoreState<N extends Extract<keyof SdkStore, string>> = {
|
|
|
5
5
|
[K in `set${Capitalize<N>}`]: (value: SdkStore[N]) => void;
|
|
6
6
|
} & {
|
|
7
7
|
[K in `get${Capitalize<N>}`]: () => SdkStore[N];
|
|
8
|
+
} & {
|
|
9
|
+
[K in `reset${Capitalize<N>}`]: () => void;
|
|
8
10
|
};
|
|
9
11
|
export declare const createStoreState: <N extends keyof SdkStore>(variable: N) => StoreState<N>;
|
|
@@ -7,10 +7,12 @@ const createStoreState = (variable) => {
|
|
|
7
7
|
const useValue = () => useStoreWithSelector(getStore(), (state) => state[variable]);
|
|
8
8
|
const setValue = (value) => getStore().setState(Object.assign(Object.assign({}, getStore().getState()), { [variable]: value }));
|
|
9
9
|
const getValue = () => getStore().getState()[variable];
|
|
10
|
+
const resetValue = () => setValue(getStore().getInitialState()[variable]);
|
|
10
11
|
return {
|
|
11
12
|
[`use${capitalizedName}`]: useValue,
|
|
12
13
|
[`get${capitalizedName}`]: getValue,
|
|
13
14
|
[`set${capitalizedName}`]: setValue,
|
|
15
|
+
[`reset${capitalizedName}`]: resetValue,
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var utils = require('@dynamic-labs/utils');
|
|
7
7
|
|
|
8
8
|
const AUTH_USER = 'dynamic_authenticated_user';
|
|
9
9
|
const syncLegacyStorage = (store) => {
|
|
10
|
-
const legacyUser =
|
|
10
|
+
const legacyUser = utils.StorageService.getItem(AUTH_USER);
|
|
11
11
|
if (Boolean(legacyUser) && !store.getState().user) {
|
|
12
12
|
store.setState({ user: legacyUser });
|
|
13
|
-
|
|
13
|
+
utils.StorageService.removeItem(AUTH_USER);
|
|
14
14
|
}
|
|
15
15
|
return store;
|
|
16
16
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { StorageService } from '@dynamic-labs/utils';
|
|
3
3
|
|
|
4
4
|
const AUTH_USER = 'dynamic_authenticated_user';
|
|
5
5
|
const syncLegacyStorage = (store) => {
|
|
6
|
-
const legacyUser =
|
|
6
|
+
const legacyUser = StorageService.getItem(AUTH_USER);
|
|
7
7
|
if (Boolean(legacyUser) && !store.getState().user) {
|
|
8
8
|
store.setState({ user: legacyUser });
|
|
9
|
-
|
|
9
|
+
StorageService.removeItem(AUTH_USER);
|
|
10
10
|
}
|
|
11
11
|
return store;
|
|
12
12
|
};
|