@dynamic-labs/sdk-react-core 0.18.0-RC.1 → 0.18.0-RC.2
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 +23 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +10 -15
- package/src/index.js +3 -5
- package/src/lib/Main.cjs +5 -6
- package/src/lib/Main.js +4 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +2 -1
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +2 -1
- package/src/lib/components/Alert/Alert.cjs +1 -1
- package/src/lib/components/Alert/Alert.js +1 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +19 -9
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +19 -9
- package/src/lib/components/Checkbox/Checkbox.cjs +1 -1
- package/src/lib/components/Checkbox/Checkbox.js +1 -1
- package/src/lib/components/Divider/Divider.cjs +2 -1
- package/src/lib/components/Divider/Divider.js +2 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +3 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +9 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +3 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +1 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +1 -1
- package/src/lib/components/IconWithStatus/IconWithStatus.js +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +2 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +2 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +2 -1
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.d.ts +6 -6
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -1
- package/src/lib/components/Portal/Portal.cjs +2 -1
- package/src/lib/components/Portal/Portal.js +2 -1
- package/src/lib/components/Search/Search.cjs +1 -1
- package/src/lib/components/Search/Search.js +1 -1
- package/src/lib/components/Select/Select.cjs +1 -1
- package/src/lib/components/Select/Select.js +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
- package/src/lib/components/ShadowDOM/utils.cjs +1 -1
- package/src/lib/components/ShadowDOM/utils.js +1 -1
- package/src/lib/components/Spinner/spinner.cjs +1 -1
- package/src/lib/components/Spinner/spinner.js +1 -1
- package/src/lib/components/Step/Step.cjs +14 -0
- package/src/lib/components/Step/Step.js +10 -0
- package/src/lib/components/Stepper/Stepper.cjs +14 -0
- package/src/lib/components/Stepper/Stepper.js +10 -0
- package/src/lib/components/Toolkit/Toolkit.cjs +1 -1
- package/src/lib/components/Toolkit/Toolkit.js +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +1 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -1
- package/src/lib/components/Tooltip/Tooltip.js +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
- package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
- package/src/lib/components/UserAddress/UserAddress.js +1 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +1 -1
- package/src/lib/components/UserProfile/UserProfile.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +3 -2
- package/src/lib/components/UserProfileForm/UserProfileForm.cjs +43 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.d.ts +11 -0
- package/src/lib/components/UserProfileForm/UserProfileForm.js +39 -0
- package/src/lib/components/index.d.ts +0 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +79 -38
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +15 -3
- package/src/lib/context/DynamicContext/DynamicContext.js +76 -35
- package/src/lib/context/DynamicContext/helpers.cjs +3 -4
- package/src/lib/context/DynamicContext/helpers.js +2 -3
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +2 -2
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +2 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +5 -1
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +5 -1
- package/src/lib/context/DynamicContext/validators.cjs +1 -1
- package/src/lib/context/DynamicContext/validators.js +1 -1
- package/src/lib/context/MockContext/MockContext.cjs +1 -1
- package/src/lib/context/MockContext/MockContext.js +1 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +2 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -1
- package/src/lib/context/ThemeContext/themesData.cjs +1 -1
- package/src/lib/context/ThemeContext/themesData.js +1 -1
- package/src/lib/data/api.cjs +1 -1
- package/src/lib/data/api.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +5 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +6 -4
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +53 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +6 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +49 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +53 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +49 -0
- package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.cjs +52 -0
- package/src/lib/layouts/SelectWalletListLayout/SelectWalletListLayout.js +48 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.cjs +77 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.d.ts +2 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/MultiWalletStepSelectorModal.js +73 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/index.d.ts +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.cjs +61 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.d.ts +6 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/ResumeView.js +57 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/ResumeView/index.d.ts +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.cjs +89 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.d.ts +8 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/SelectWalletView.js +85 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/SelectWalletView/index.d.ts +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.cjs +71 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.d.ts +7 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/WelcomeView.js +67 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/WelcomeView/index.d.ts +1 -0
- package/src/lib/modals/MultiWalletStepSelectorModal/views/index.d.ts +3 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -1
- package/src/lib/modals/index.d.ts +1 -0
- package/src/lib/shared/utils/classes/index.d.ts +1 -0
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +48 -0
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +10 -0
- package/src/lib/shared/utils/classes/storage/localStorage.js +43 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +3 -4
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +2 -3
- package/src/lib/shared/utils/functions/index.d.ts +0 -1
- package/src/lib/shared/utils/functions/wallet/createWallet.cjs +2 -2
- package/src/lib/shared/utils/functions/wallet/createWallet.d.ts +2 -1
- package/src/lib/shared/utils/functions/wallet/createWallet.js +2 -2
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +6 -18
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +6 -18
- package/src/lib/shared/utils/index.d.ts +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +2 -2
- package/src/lib/utils/constants/localStorage.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.js +2 -2
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +3 -4
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -3
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -1
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.cjs +2 -2
- package/src/lib/utils/functions/getReferencedAccount/getReferencedAccount.js +2 -2
- package/src/lib/utils/functions/groupBy/groupBy.cjs +30 -0
- package/src/lib/utils/functions/groupBy/groupBy.d.ts +12 -0
- package/src/lib/utils/functions/groupBy/groupBy.js +26 -0
- package/src/lib/utils/functions/groupBy/index.d.ts +1 -0
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +2 -2
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +2 -2
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +1 -1
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +1 -1
- package/src/lib/utils/functions/storeAuthToken/index.cjs +3 -4
- package/src/lib/utils/functions/storeAuthToken/index.js +2 -3
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.cjs +2 -2
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.d.ts +2 -1
- package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +2 -2
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +3 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +2 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +9 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +8 -7
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +9 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +8 -7
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +58 -25
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +6 -5
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +60 -27
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +1 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -4
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -4
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +3 -4
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +4 -5
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +1 -1
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +1 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -3
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +3 -4
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +1 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +1 -1
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +3 -4
- package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +2 -3
- package/src/lib/utils/hooks/useHandleWalletsToConnect/index.d.ts +1 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +35 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.d.ts +3 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +31 -0
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +1 -1
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +1 -1
- package/src/lib/utils/hooks/usePrimaryWalletId/index.d.ts +1 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.cjs +35 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.d.ts +5 -0
- package/src/lib/utils/hooks/usePrimaryWalletId/usePrimaryWalletId.js +31 -0
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +1 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +1 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +4 -5
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +3 -4
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.cjs +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/reconnectSocialWallet.js +1 -1
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +6 -15
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +6 -5
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +6 -15
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.cjs +2 -2
- package/src/lib/utils/hooks/useWalletConnectors/utils/createLinkedWalletsFromWalletOptions/createLinkedWalletsFromWalletOptions.js +2 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +1 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +1 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -1
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +5 -2
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +3 -1
- package/src/lib/utils/hooks/useWallets/useWallets.js +5 -2
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +3 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +3 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +1 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +1 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +2 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +4 -3
- package/src/lib/views/EmailUpdate/EmailUpdate.js +4 -3
- package/src/lib/views/EmailVerification/EmailVerification.cjs +9 -7
- package/src/lib/views/EmailVerification/EmailVerification.js +9 -7
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -1
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -1
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +6 -5
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +5 -4
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +3 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +3 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +2 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +2 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +3 -4
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -3
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +2 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +2 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +2 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +3 -2
- package/src/lib/views/NoAccess/NoAccess.js +3 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +5 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.js +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +2 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +2 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +2 -1
- package/src/lib/views/QrCodeView/QrCodeView.cjs +4 -2
- package/src/lib/views/QrCodeView/QrCodeView.js +5 -3
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +2 -1
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +2 -1
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +2 -1
- package/src/lib/views/WalletList/WalletList.cjs +24 -20
- package/src/lib/views/WalletList/WalletList.js +23 -19
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +8 -6
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +9 -7
- package/src/lib/views/WalletList/data.cjs +2 -2
- package/src/lib/views/WalletList/data.js +2 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +4 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +4 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +5 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.js +5 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +25 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +5 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +25 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +51 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +52 -4
- package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs} +14 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.d.ts +7 -0
- package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js} +11 -20
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +51 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +47 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +44 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +10 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +41 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.cjs +6 -11
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetViews/DynamicBridgeWidgetViews.js +3 -4
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +5 -4
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.d.ts +2 -2
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +6 -5
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.cjs +24 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/EditProfileView/EditProfileView.js +24 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +24 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +25 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +50 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +51 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +43 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.d.ts +7 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +34 -0
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +16 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +16 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +3 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +4 -3
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +6 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +6 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +6 -21
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +6 -21
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.cjs → WalletsView/WalletsView.cjs} +4 -3
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.js → WalletsView/WalletsView.js} +4 -3
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -1
- package/src/lib/components/ChainWalletsList/ChainWalletsList.d.ts +0 -7
- package/src/lib/components/ChainWalletsList/index.d.ts +0 -1
- package/src/lib/components/WalletInfoCard/WalletInfoCard.d.ts +0 -8
- package/src/lib/components/WalletInfoCard/index.d.ts +0 -1
- package/src/lib/config/LSSuffix.cjs +0 -24
- package/src/lib/config/LSSuffix.d.ts +0 -7
- package/src/lib/config/LSSuffix.js +0 -22
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.cjs +0 -9
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.d.ts +0 -1
- package/src/lib/shared/utils/functions/storage/getDynamicLSKey.js +0 -5
- package/src/lib/shared/utils/functions/storage/getFromLS.cjs +0 -25
- package/src/lib/shared/utils/functions/storage/getFromLS.d.ts +0 -1
- package/src/lib/shared/utils/functions/storage/getFromLS.js +0 -21
- package/src/lib/shared/utils/functions/storage/index.d.ts +0 -4
- package/src/lib/shared/utils/functions/storage/removeFromLS.cjs +0 -15
- package/src/lib/shared/utils/functions/storage/removeFromLS.d.ts +0 -1
- package/src/lib/shared/utils/functions/storage/removeFromLS.js +0 -11
- package/src/lib/shared/utils/functions/storage/setToLS.cjs +0 -15
- package/src/lib/shared/utils/functions/storage/setToLS.d.ts +0 -1
- package/src/lib/shared/utils/functions/storage/setToLS.js +0 -11
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.d.ts +0 -5
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.d.ts +0 -2
|
@@ -7,13 +7,14 @@ const useDynamicContext = () => {
|
|
|
7
7
|
if (context === undefined) {
|
|
8
8
|
throw new Error('useDynamicContext must be used within a DynamicContextProvider');
|
|
9
9
|
}
|
|
10
|
-
const { accountSwitchState, awaitingSignatureState, authMode, authToken, connectedWallets, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, loadingNetwork, multiWalletWidgetState, network, networkConfigurations, primaryWallet, qrcodeUri, rpcProviders, sdkHasLoaded, secondaryWallets, setShowAuthFlow, setNetwork, showAuthFlow, showQrcodeModal, setMultiWalletWidgetState, setShowQrcodeModal, setPrimaryWallet, setShowDynamicUserProfile, user, walletConnector, wallets, shadowDOMEnabled, } = context;
|
|
10
|
+
const { accountSwitchState, awaitingSignatureState, authMode, authToken, connectedWallets, connectedWalletsInfo, getNameService, handleLogOut, handleUnlinkWallet, isAuthenticated, loadingNetwork, multiWalletWidgetState, network, networkConfigurations, primaryWallet, qrcodeUri, rpcProviders, sdkHasLoaded, secondaryWallets, setShowAuthFlow, setNetwork, showAuthFlow, showQrcodeModal, setMultiWalletWidgetState, setShowQrcodeModal, setPrimaryWallet, setShowDynamicUserProfile, setShowBridgeAuthFlow, user, walletConnector, wallets, shadowDOMEnabled, walletsToConnectByChain, walletsByChain, } = context;
|
|
11
11
|
return {
|
|
12
12
|
accountSwitchState,
|
|
13
13
|
authMode,
|
|
14
14
|
authToken,
|
|
15
15
|
awaitingSignatureState,
|
|
16
16
|
connectedWallets,
|
|
17
|
+
connectedWalletsInfo,
|
|
17
18
|
getNameService,
|
|
18
19
|
handleLogOut,
|
|
19
20
|
handleUnlinkWallet,
|
|
@@ -31,6 +32,7 @@ const useDynamicContext = () => {
|
|
|
31
32
|
setNetwork,
|
|
32
33
|
setPrimaryWallet,
|
|
33
34
|
setShowAuthFlow,
|
|
35
|
+
setShowBridgeAuthFlow,
|
|
34
36
|
setShowDynamicUserProfile,
|
|
35
37
|
setShowQrcodeModal,
|
|
36
38
|
shadowDOMEnabled,
|
|
@@ -39,6 +41,8 @@ const useDynamicContext = () => {
|
|
|
39
41
|
user,
|
|
40
42
|
walletConnector,
|
|
41
43
|
wallets,
|
|
44
|
+
walletsByChain,
|
|
45
|
+
walletsToConnectByChain,
|
|
42
46
|
};
|
|
43
47
|
};
|
|
44
48
|
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('@dynamic-labs/sdk-api');
|
|
6
6
|
require('../../shared/logger.cjs');
|
|
7
|
-
require('../../config/LSSuffix.cjs');
|
|
8
7
|
var validateType = require('../../shared/utils/functions/validateType/validateType.cjs');
|
|
9
8
|
require('@dynamic-labs/iconic');
|
|
10
9
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -14,6 +13,7 @@ require('react');
|
|
|
14
13
|
require('@dynamic-labs/wallet-book');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@dynamic-labs/sdk-api';
|
|
2
2
|
import '../../shared/logger.js';
|
|
3
|
-
import '../../config/LSSuffix.js';
|
|
4
3
|
import { validateType } from '../../shared/utils/functions/validateType/validateType.js';
|
|
5
4
|
import '@dynamic-labs/iconic';
|
|
6
5
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -10,6 +9,7 @@ import 'react';
|
|
|
10
9
|
import '@dynamic-labs/wallet-book';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
|
|
@@ -12,12 +12,12 @@ var useInternalDynamicContext = require('../DynamicContext/useInternalDynamicCon
|
|
|
12
12
|
var ErrorContext = require('../ErrorContext/ErrorContext.cjs');
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
require('../../shared/logger.cjs');
|
|
15
|
-
require('../../config/LSSuffix.cjs');
|
|
16
15
|
require('@dynamic-labs/iconic');
|
|
17
16
|
require('@dynamic-labs/wallet-connector-core');
|
|
18
17
|
require('@dynamic-labs/wallet-book');
|
|
19
18
|
require('@dynamic-labs/utils');
|
|
20
19
|
require('../../utils/constants/colors.cjs');
|
|
20
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
21
21
|
require('ethers');
|
|
22
22
|
var index$1 = require('../../shared/consts/index.cjs');
|
|
23
23
|
|
|
@@ -8,12 +8,12 @@ import { useInternalDynamicContext } from '../DynamicContext/useInternalDynamicC
|
|
|
8
8
|
import { ErrorContextProvider } from '../ErrorContext/ErrorContext.js';
|
|
9
9
|
import '@dynamic-labs/sdk-api';
|
|
10
10
|
import '../../shared/logger.js';
|
|
11
|
-
import '../../config/LSSuffix.js';
|
|
12
11
|
import '@dynamic-labs/iconic';
|
|
13
12
|
import '@dynamic-labs/wallet-connector-core';
|
|
14
13
|
import '@dynamic-labs/wallet-book';
|
|
15
14
|
import '@dynamic-labs/utils';
|
|
16
15
|
import '../../utils/constants/colors.js';
|
|
16
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
17
17
|
import 'ethers';
|
|
18
18
|
import { defaultWalletsForChains } from '../../shared/consts/index.js';
|
|
19
19
|
|
|
@@ -8,12 +8,12 @@ require('@dynamic-labs/utils');
|
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../config/ApiEndpoint.cjs');
|
|
10
10
|
require('../../shared/logger.cjs');
|
|
11
|
-
require('../../config/LSSuffix.cjs');
|
|
12
11
|
require('@dynamic-labs/iconic');
|
|
13
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
13
|
require('../ViewContext/ViewContext.cjs');
|
|
15
14
|
require('@dynamic-labs/wallet-book');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -34,6 +34,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
34
34
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
35
35
|
require('formik');
|
|
36
36
|
require('yup');
|
|
37
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
37
38
|
var useDefaultQrCode = require('../../utils/hooks/useDefaultQrCode/useDefaultQrCode.cjs');
|
|
38
39
|
require('../MockContext/MockContext.cjs');
|
|
39
40
|
require('../CaptchaContext/CaptchaContext.cjs');
|
|
@@ -4,12 +4,12 @@ import '@dynamic-labs/utils';
|
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../config/ApiEndpoint.js';
|
|
6
6
|
import '../../shared/logger.js';
|
|
7
|
-
import '../../config/LSSuffix.js';
|
|
8
7
|
import '@dynamic-labs/iconic';
|
|
9
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
9
|
import '../ViewContext/ViewContext.js';
|
|
11
10
|
import '@dynamic-labs/wallet-book';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -30,6 +30,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
30
30
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
31
31
|
import 'formik';
|
|
32
32
|
import 'yup';
|
|
33
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
33
34
|
import { useDefaultQrCode } from '../../utils/hooks/useDefaultQrCode/useDefaultQrCode.js';
|
|
34
35
|
import '../MockContext/MockContext.js';
|
|
35
36
|
import '../CaptchaContext/CaptchaContext.js';
|
|
@@ -11,11 +11,11 @@ require('@dynamic-labs/utils');
|
|
|
11
11
|
require('@dynamic-labs/sdk-api');
|
|
12
12
|
require('../../config/ApiEndpoint.cjs');
|
|
13
13
|
require('../../shared/logger.cjs');
|
|
14
|
-
require('../../config/LSSuffix.cjs');
|
|
15
14
|
require('@dynamic-labs/iconic');
|
|
16
15
|
require('../ViewContext/ViewContext.cjs');
|
|
17
16
|
require('@dynamic-labs/wallet-book');
|
|
18
17
|
require('../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../../shared/consts/index.cjs');
|
|
21
21
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -37,6 +37,7 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
37
37
|
require('formik');
|
|
38
38
|
require('yup');
|
|
39
39
|
var SendBalanceModal = require('../../modals/SendBalanceModal/SendBalanceModal.cjs');
|
|
40
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
40
41
|
require('../MockContext/MockContext.cjs');
|
|
41
42
|
require('../CaptchaContext/CaptchaContext.cjs');
|
|
42
43
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -7,11 +7,11 @@ import '@dynamic-labs/utils';
|
|
|
7
7
|
import '@dynamic-labs/sdk-api';
|
|
8
8
|
import '../../config/ApiEndpoint.js';
|
|
9
9
|
import '../../shared/logger.js';
|
|
10
|
-
import '../../config/LSSuffix.js';
|
|
11
10
|
import '@dynamic-labs/iconic';
|
|
12
11
|
import '../ViewContext/ViewContext.js';
|
|
13
12
|
import '@dynamic-labs/wallet-book';
|
|
14
13
|
import '../../utils/constants/colors.js';
|
|
14
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
15
15
|
import 'ethers';
|
|
16
16
|
import '../../shared/consts/index.js';
|
|
17
17
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -33,6 +33,7 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
33
33
|
import 'formik';
|
|
34
34
|
import 'yup';
|
|
35
35
|
import { SendBalanceModal } from '../../modals/SendBalanceModal/SendBalanceModal.js';
|
|
36
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
36
37
|
import '../MockContext/MockContext.js';
|
|
37
38
|
import '../CaptchaContext/CaptchaContext.js';
|
|
38
39
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -12,10 +12,10 @@ require('@dynamic-labs/utils');
|
|
|
12
12
|
require('@dynamic-labs/sdk-api');
|
|
13
13
|
require('../../config/ApiEndpoint.cjs');
|
|
14
14
|
var logger = require('../../shared/logger.cjs');
|
|
15
|
-
require('../../config/LSSuffix.cjs');
|
|
16
15
|
require('@dynamic-labs/iconic');
|
|
17
16
|
require('@dynamic-labs/wallet-book');
|
|
18
17
|
require('../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../../shared/consts/index.cjs');
|
|
21
21
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -35,6 +35,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
35
35
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
36
36
|
require('formik');
|
|
37
37
|
require('yup');
|
|
38
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../MockContext/MockContext.cjs');
|
|
39
40
|
var ErrorContext = require('../ErrorContext/ErrorContext.cjs');
|
|
40
41
|
require('../CaptchaContext/CaptchaContext.cjs');
|
|
@@ -8,10 +8,10 @@ import '@dynamic-labs/utils';
|
|
|
8
8
|
import '@dynamic-labs/sdk-api';
|
|
9
9
|
import '../../config/ApiEndpoint.js';
|
|
10
10
|
import { logger } from '../../shared/logger.js';
|
|
11
|
-
import '../../config/LSSuffix.js';
|
|
12
11
|
import '@dynamic-labs/iconic';
|
|
13
12
|
import '@dynamic-labs/wallet-book';
|
|
14
13
|
import '../../utils/constants/colors.js';
|
|
14
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
15
15
|
import 'ethers';
|
|
16
16
|
import '../../shared/consts/index.js';
|
|
17
17
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -31,6 +31,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
31
31
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
32
32
|
import 'formik';
|
|
33
33
|
import 'yup';
|
|
34
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../MockContext/MockContext.js';
|
|
35
36
|
import { useErrorContext } from '../ErrorContext/ErrorContext.js';
|
|
36
37
|
import '../CaptchaContext/CaptchaContext.js';
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('@dynamic-labs/sdk-api');
|
|
6
6
|
require('../../shared/logger.cjs');
|
|
7
|
-
require('../../config/LSSuffix.cjs');
|
|
8
7
|
require('@dynamic-labs/iconic');
|
|
9
8
|
require('@dynamic-labs/wallet-connector-core');
|
|
10
9
|
require('react/jsx-runtime');
|
|
@@ -14,6 +13,7 @@ require('@dynamic-labs/wallet-book');
|
|
|
14
13
|
var index = require('../../shared/utils/functions/getValueByKey/index.cjs');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@dynamic-labs/sdk-api';
|
|
2
2
|
import '../../shared/logger.js';
|
|
3
|
-
import '../../config/LSSuffix.js';
|
|
4
3
|
import '@dynamic-labs/iconic';
|
|
5
4
|
import '@dynamic-labs/wallet-connector-core';
|
|
6
5
|
import 'react/jsx-runtime';
|
|
@@ -10,6 +9,7 @@ import '@dynamic-labs/wallet-book';
|
|
|
10
9
|
import { getValueByKey } from '../../shared/utils/functions/getValueByKey/index.js';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
|
package/src/lib/data/api.cjs
CHANGED
|
@@ -8,7 +8,6 @@ var sdkApi$1 = require('@dynamic-labs/sdk-api');
|
|
|
8
8
|
var version = require('../../version.cjs');
|
|
9
9
|
var ApiEndpoint = require('../config/ApiEndpoint.cjs');
|
|
10
10
|
var logger = require('../shared/logger.cjs');
|
|
11
|
-
require('../config/LSSuffix.cjs');
|
|
12
11
|
require('@dynamic-labs/iconic');
|
|
13
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
13
|
require('react/jsx-runtime');
|
|
@@ -16,6 +15,7 @@ require('../context/ViewContext/ViewContext.cjs');
|
|
|
16
15
|
require('react');
|
|
17
16
|
require('@dynamic-labs/wallet-book');
|
|
18
17
|
require('../utils/constants/colors.cjs');
|
|
18
|
+
require('../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../shared/consts/index.cjs');
|
|
21
21
|
|
package/src/lib/data/api.js
CHANGED
|
@@ -4,7 +4,6 @@ import { SDKApi, Configuration, VerifyRequestFromJSON, ChainEnum, WalletProvider
|
|
|
4
4
|
import { VERSION, API_VERSION } from '../../version.js';
|
|
5
5
|
import ApiEndpoint from '../config/ApiEndpoint.js';
|
|
6
6
|
import { logger } from '../shared/logger.js';
|
|
7
|
-
import '../config/LSSuffix.js';
|
|
8
7
|
import '@dynamic-labs/iconic';
|
|
9
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
9
|
import 'react/jsx-runtime';
|
|
@@ -12,6 +11,7 @@ import '../context/ViewContext/ViewContext.js';
|
|
|
12
11
|
import 'react';
|
|
13
12
|
import '@dynamic-labs/wallet-book';
|
|
14
13
|
import '../utils/constants/colors.js';
|
|
14
|
+
import '../shared/utils/classes/storage/localStorage.js';
|
|
15
15
|
import 'ethers';
|
|
16
16
|
import '../shared/consts/index.js';
|
|
17
17
|
|
|
@@ -14,12 +14,12 @@ var VerticalDrawerTransition = require('../../components/Transition/VerticalDraw
|
|
|
14
14
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
15
15
|
require('@dynamic-labs/sdk-api');
|
|
16
16
|
require('../../shared/logger.cjs');
|
|
17
|
-
require('../../config/LSSuffix.cjs');
|
|
18
17
|
require('@dynamic-labs/iconic');
|
|
19
18
|
require('@dynamic-labs/wallet-connector-core');
|
|
20
19
|
require('@dynamic-labs/wallet-book');
|
|
21
20
|
require('@dynamic-labs/utils');
|
|
22
21
|
require('../../utils/constants/colors.cjs');
|
|
22
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
23
|
require('ethers');
|
|
24
24
|
require('../../shared/consts/index.cjs');
|
|
25
25
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
@@ -35,6 +35,7 @@ require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
|
35
35
|
require('../../components/IconButton/IconButton.cjs');
|
|
36
36
|
var AnimatePresence = require('../../components/AnimatePresence/AnimatePresence.cjs');
|
|
37
37
|
require('../../components/Alert/Alert.cjs');
|
|
38
|
+
require('../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
var MockContext = require('../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
40
41
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -10,12 +10,12 @@ import { VerticalDrawerTransition } from '../../components/Transition/VerticalDr
|
|
|
10
10
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
11
11
|
import '@dynamic-labs/sdk-api';
|
|
12
12
|
import '../../shared/logger.js';
|
|
13
|
-
import '../../config/LSSuffix.js';
|
|
14
13
|
import '@dynamic-labs/iconic';
|
|
15
14
|
import '@dynamic-labs/wallet-connector-core';
|
|
16
15
|
import '@dynamic-labs/wallet-book';
|
|
17
16
|
import '@dynamic-labs/utils';
|
|
18
17
|
import '../../utils/constants/colors.js';
|
|
18
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
19
19
|
import 'ethers';
|
|
20
20
|
import '../../shared/consts/index.js';
|
|
21
21
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
@@ -31,6 +31,7 @@ import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
|
31
31
|
import '../../components/IconButton/IconButton.js';
|
|
32
32
|
import { AnimatePresence } from '../../components/AnimatePresence/AnimatePresence.js';
|
|
33
33
|
import '../../components/Alert/Alert.js';
|
|
34
|
+
import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import { useMockContext } from '../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
36
37
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -8,7 +8,6 @@ var index = require('../../../context/FooterAnimationContext/index.cjs');
|
|
|
8
8
|
var ThemeContext = require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../shared/logger.cjs');
|
|
11
|
-
require('../../../config/LSSuffix.cjs');
|
|
12
11
|
require('@dynamic-labs/iconic');
|
|
13
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
13
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
@@ -16,6 +15,7 @@ var arrowDown = require('../../../shared/assets/arrow-down.cjs');
|
|
|
16
15
|
require('@dynamic-labs/wallet-book');
|
|
17
16
|
require('@dynamic-labs/utils');
|
|
18
17
|
require('../../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../../../shared/consts/index.cjs');
|
|
21
21
|
var Skeleton = require('../../../components/Skeleton/Skeleton.cjs');
|
|
@@ -35,6 +35,7 @@ require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
35
35
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
36
|
require('../../../components/IconButton/IconButton.cjs');
|
|
37
37
|
require('../../../components/Alert/Alert.cjs');
|
|
38
|
+
require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
40
41
|
require('../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -4,7 +4,6 @@ import { useFooterAnimationContext } from '../../../context/FooterAnimationConte
|
|
|
4
4
|
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../../shared/logger.js';
|
|
7
|
-
import '../../../config/LSSuffix.js';
|
|
8
7
|
import '@dynamic-labs/iconic';
|
|
9
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
9
|
import '../../../context/ViewContext/ViewContext.js';
|
|
@@ -12,6 +11,7 @@ import { ReactComponent as SvgArrowDown } from '../../../shared/assets/arrow-dow
|
|
|
12
11
|
import '@dynamic-labs/wallet-book';
|
|
13
12
|
import '@dynamic-labs/utils';
|
|
14
13
|
import '../../../utils/constants/colors.js';
|
|
14
|
+
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
15
15
|
import 'ethers';
|
|
16
16
|
import '../../../shared/consts/index.js';
|
|
17
17
|
import { Skeleton } from '../../../components/Skeleton/Skeleton.js';
|
|
@@ -31,6 +31,7 @@ import '../../../context/ErrorContext/ErrorContext.js';
|
|
|
31
31
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
32
|
import '../../../components/IconButton/IconButton.js';
|
|
33
33
|
import '../../../components/Alert/Alert.js';
|
|
34
|
+
import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
34
35
|
import '../../../context/MockContext/MockContext.js';
|
|
35
36
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
36
37
|
import '../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs
CHANGED
|
@@ -7,13 +7,13 @@ require('react');
|
|
|
7
7
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../../../../shared/logger.cjs');
|
|
10
|
-
require('../../../../../config/LSSuffix.cjs');
|
|
11
10
|
require('@dynamic-labs/iconic');
|
|
12
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
12
|
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
14
13
|
require('@dynamic-labs/wallet-book');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../../../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../../../../shared/consts/index.cjs');
|
|
19
19
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
@@ -31,6 +31,7 @@ require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
31
31
|
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
32
|
require('../../../../../components/IconButton/IconButton.cjs');
|
|
33
33
|
require('../../../../../components/Alert/Alert.cjs');
|
|
34
|
+
require('../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
34
35
|
require('../../../../../context/MockContext/MockContext.cjs');
|
|
35
36
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
36
37
|
require('../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -3,13 +3,13 @@ import 'react';
|
|
|
3
3
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../../../../shared/logger.js';
|
|
6
|
-
import '../../../../../config/LSSuffix.js';
|
|
7
6
|
import '@dynamic-labs/iconic';
|
|
8
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
8
|
import '../../../../../context/ViewContext/ViewContext.js';
|
|
10
9
|
import '@dynamic-labs/wallet-book';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../../../../utils/constants/colors.js';
|
|
12
|
+
import '../../../../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../../../../shared/consts/index.js';
|
|
15
15
|
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
@@ -27,6 +27,7 @@ import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
|
27
27
|
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
28
|
import '../../../../../components/IconButton/IconButton.js';
|
|
29
29
|
import '../../../../../components/Alert/Alert.js';
|
|
30
|
+
import '../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
30
31
|
import '../../../../../context/MockContext/MockContext.js';
|
|
31
32
|
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
32
33
|
import '../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -8,14 +8,13 @@ require('react');
|
|
|
8
8
|
var Typography = require('../../../../../components/Typography/Typography.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../../../shared/logger.cjs');
|
|
11
|
-
require('../../../../../config/LSSuffix.cjs');
|
|
12
|
-
var setToLS = require('../../../../../shared/utils/functions/storage/setToLS.cjs');
|
|
13
11
|
require('@dynamic-labs/iconic');
|
|
14
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
15
13
|
require('../../../../../context/ViewContext/ViewContext.cjs');
|
|
16
14
|
require('@dynamic-labs/wallet-book');
|
|
17
|
-
var localStorage = require('../../../../../utils/constants/localStorage.cjs');
|
|
15
|
+
var localStorage$1 = require('../../../../../utils/constants/localStorage.cjs');
|
|
18
16
|
require('../../../../../utils/constants/colors.cjs');
|
|
17
|
+
var localStorage = require('../../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
18
|
require('ethers');
|
|
20
19
|
require('../../../../../shared/consts/index.cjs');
|
|
21
20
|
require('../../../../../context/DynamicContext/DynamicContext.cjs');
|
|
@@ -33,6 +32,7 @@ require('../../../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
33
32
|
require('../../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
33
|
require('../../../../../components/IconButton/IconButton.cjs');
|
|
35
34
|
require('../../../../../components/Alert/Alert.cjs');
|
|
35
|
+
require('../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
36
36
|
require('../../../../../context/MockContext/MockContext.cjs');
|
|
37
37
|
require('../../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
38
|
require('../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -48,7 +48,7 @@ const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
|
48
48
|
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.name)) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
localStorage.LocalStorage.setToLS(localStorage$1.NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.name);
|
|
52
52
|
window.location.reload();
|
|
53
53
|
};
|
|
54
54
|
return (jsxRuntime.jsxs("div", Object.assign({ className: 'new-to-web3-buttons__container' }, { children: [!utils.isMobile() && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser) && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'p', "data-testid": 'desktop-interactive-wallet-item', variant: 'body_normal', weight: 'bold' }, { children: "Continue" })) }))), showRefreshOnceInstalledWalletButton && (jsxRuntime.jsx("button", Object.assign({ onClick: walletConnectionAfterPageReloadHandler }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'p', "data-testid": 'refresh-once-installed-button', variant: 'body_normal', weight: 'bold' }, { children: "Continue once installed" })) })))] })), wallet && utils.isMobile() && (jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsxRuntime.jsx("p", Object.assign({ "data-testid": 'mobile-interactive-wallet-item' }, { children: "Continue once installed" })) })))] })));
|
|
@@ -4,14 +4,13 @@ import 'react';
|
|
|
4
4
|
import { Typography } from '../../../../../components/Typography/Typography.js';
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../../../../shared/logger.js';
|
|
7
|
-
import '../../../../../config/LSSuffix.js';
|
|
8
|
-
import { setToLS } from '../../../../../shared/utils/functions/storage/setToLS.js';
|
|
9
7
|
import '@dynamic-labs/iconic';
|
|
10
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
11
9
|
import '../../../../../context/ViewContext/ViewContext.js';
|
|
12
10
|
import '@dynamic-labs/wallet-book';
|
|
13
11
|
import { NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY } from '../../../../../utils/constants/localStorage.js';
|
|
14
12
|
import '../../../../../utils/constants/colors.js';
|
|
13
|
+
import { LocalStorage } from '../../../../../shared/utils/classes/storage/localStorage.js';
|
|
15
14
|
import 'ethers';
|
|
16
15
|
import '../../../../../shared/consts/index.js';
|
|
17
16
|
import '../../../../../context/DynamicContext/DynamicContext.js';
|
|
@@ -29,6 +28,7 @@ import '../../../../../context/ErrorContext/ErrorContext.js';
|
|
|
29
28
|
import '../../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
29
|
import '../../../../../components/IconButton/IconButton.js';
|
|
31
30
|
import '../../../../../components/Alert/Alert.js';
|
|
31
|
+
import '../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
32
32
|
import '../../../../../context/MockContext/MockContext.js';
|
|
33
33
|
import '../../../../../context/CaptchaContext/CaptchaContext.js';
|
|
34
34
|
import '../../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -44,7 +44,7 @@ const WalletExtensionOrAppContinueButton = ({ wallet, selectedUrl, }) => {
|
|
|
44
44
|
if (!(wallet === null || wallet === void 0 ? void 0 : wallet.name)) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
setToLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.name);
|
|
47
|
+
LocalStorage.setToLS(NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY, wallet.name);
|
|
48
48
|
window.location.reload();
|
|
49
49
|
};
|
|
50
50
|
return (jsxs("div", Object.assign({ className: 'new-to-web3-buttons__container' }, { children: [!isMobile() && (jsxs(Fragment, { children: [(wallet === null || wallet === void 0 ? void 0 : wallet.isInstalledOnBrowser) && (jsx(NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsx(Typography, Object.assign({ as: 'p', "data-testid": 'desktop-interactive-wallet-item', variant: 'body_normal', weight: 'bold' }, { children: "Continue" })) }))), showRefreshOnceInstalledWalletButton && (jsx("button", Object.assign({ onClick: walletConnectionAfterPageReloadHandler }, { children: jsx(Typography, Object.assign({ as: 'p', "data-testid": 'refresh-once-installed-button', variant: 'body_normal', weight: 'bold' }, { children: "Continue once installed" })) })))] })), wallet && isMobile() && (jsx(NewToWeb3WalletItem, Object.assign({ wallet: wallet }, { children: jsx("p", Object.assign({ "data-testid": 'mobile-interactive-wallet-item' }, { children: "Continue once installed" })) })))] })));
|
|
@@ -11,11 +11,11 @@ var utils = require('@dynamic-labs/utils');
|
|
|
11
11
|
var useInternalDynamicContext = require('../../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
12
12
|
require('@dynamic-labs/sdk-api');
|
|
13
13
|
require('../../../../shared/logger.cjs');
|
|
14
|
-
require('../../../../config/LSSuffix.cjs');
|
|
15
14
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
16
15
|
var puzzle = require('../../../../shared/assets/puzzle.cjs');
|
|
17
16
|
var index = require('../../../../shared/utils/functions/getValueByKey/index.cjs');
|
|
18
17
|
require('../../../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../../../../shared/consts/index.cjs');
|
|
21
21
|
var parseWalletLinks = require('../../../../utils/functions/parseWalletLinks/parseWalletLinks.cjs');
|
|
@@ -35,6 +35,7 @@ require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
|
35
35
|
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
36
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
37
37
|
require('../../../../components/Alert/Alert.cjs');
|
|
38
|
+
require('../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
38
39
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
39
40
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
40
41
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -50,12 +51,13 @@ var WalletExtensionOrAppContinueButton = require('./WalletExtensionOrAppContinue
|
|
|
50
51
|
const WalletListFooterContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
51
52
|
var _a;
|
|
52
53
|
const { wallets } = useInternalDynamicContext.useInternalDynamicContext();
|
|
54
|
+
const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
|
|
53
55
|
const [selectedUrl, setSelectedUrl] = React.useState('');
|
|
54
56
|
const chainName = ((_a = chains === null || chains === void 0 ? void 0 : chains.filter((chain) => Boolean(chain.enabled)).find((enabledChain) => enabledChain.name === newToWeb3WalletChainMap.primary_chain)) === null || _a === void 0 ? void 0 : _a.name) || 'evm';
|
|
55
57
|
const walletName = index.getValueByKey(newToWeb3WalletChainMap === null || newToWeb3WalletChainMap === void 0 ? void 0 : newToWeb3WalletChainMap.wallets, chainName);
|
|
56
58
|
const newToWeb3Wallet = wallets.find((wallet) => walletConnectorCore.normalizeWalletName(wallet.name) === walletName);
|
|
57
59
|
const isCustodialServiceWallet = newToWeb3Wallet === null || newToWeb3Wallet === void 0 ? void 0 : newToWeb3Wallet.walletConnector.canConnectViaCustodialService;
|
|
58
|
-
const links = walletBook.getWalletLinks(walletName);
|
|
60
|
+
const links = walletBook.getWalletLinks(walletBook$1, walletName);
|
|
59
61
|
const { currentDesktopUrl, canShowAndroidAppButton, canShowIosAppButton } = parseWalletLinks.parseWalletLinks(links);
|
|
60
62
|
const walletLinksElements = [
|
|
61
63
|
{
|
|
@@ -77,7 +79,7 @@ const WalletListFooterContent = ({ chains, newToWeb3WalletChainMap, }) => {
|
|
|
77
79
|
url: links.android,
|
|
78
80
|
},
|
|
79
81
|
];
|
|
80
|
-
return (jsxRuntime.jsx("div", Object.assign({ className: 'walletlist-footer-content__container' }, { children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, Object.assign({ delay: '300ms' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'walletlist-footer-content__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName, style: { height: pixelToRem.pixelToRem(56), width: pixelToRem.pixelToRem(56) } }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'walletlist-footer-content__typography-wrapper' }, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ as: 'p', variant: 'title', weight: 'medium' }, { children: ["We recommend installing
|
|
82
|
+
return (jsxRuntime.jsx("div", Object.assign({ className: 'walletlist-footer-content__container' }, { children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, Object.assign({ delay: '300ms' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'walletlist-footer-content__icon' }, { children: jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletName, style: { height: pixelToRem.pixelToRem(56), width: pixelToRem.pixelToRem(56) } }) })), jsxRuntime.jsxs("div", Object.assign({ className: 'walletlist-footer-content__typography-wrapper' }, { children: [jsxRuntime.jsxs(Typography.Typography, Object.assign({ as: 'p', variant: 'title', weight: 'medium' }, { children: ["We recommend installing", ' ', walletBook.getWalletBookWallet(walletBook$1, walletName).name] })), jsxRuntime.jsx(Typography.Typography, Object.assign({ as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-footer-content__typography--label' }, { children: "Select your preferred option below:" }))] })), jsxRuntime.jsx("div", Object.assign({ className: 'walletlist-footer-content__buttons-wrapper' }, { children: walletLinksElements.map((element, i) => element.isEnabled ? (jsxRuntime.jsx("button", Object.assign({ onClick: () => setSelectedUrl(element.url) }, { children: jsxRuntime.jsx(Item.Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }), i)) : undefined) })), isCustodialServiceWallet && (jsxRuntime.jsxs("div", Object.assign({ className: 'walletlist-footer-content__custodial-wallet-area' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'walletlist-footer-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular' }, { children: "If you don't want to install a wallet, then use:" })), jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] }))), jsxRuntime.jsx(WalletExtensionOrAppContinueButton.WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] })) })));
|
|
81
83
|
};
|
|
82
84
|
|
|
83
85
|
exports.WalletListFooterContent = WalletListFooterContent;
|