@dynamic-labs/sdk-react-core 0.18.0-RC.1 → 0.18.0-RC.11
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 +163 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +12 -8
- package/src/index.d.ts +1 -0
- package/src/index.js +7 -4
- package/src/lib/Main.cjs +8 -8
- package/src/lib/Main.js +7 -7
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +8 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +9 -5
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.types.d.ts +1 -0
- 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 +3 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +20 -9
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +20 -9
- package/src/lib/components/Badge/Badge.cjs +1 -1
- package/src/lib/components/Badge/Badge.js +1 -1
- package/src/lib/components/ChainCard/ChainCard.cjs +11 -0
- package/src/lib/components/ChainCard/ChainCard.d.ts +4 -2
- package/src/lib/components/ChainCard/ChainCard.js +7 -0
- 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 +3 -1
- package/src/lib/components/Divider/Divider.js +3 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -3
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -3
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +11 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +9 -0
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +7 -0
- 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/InlineWidget/InlineWidget.cjs +12 -0
- package/src/lib/components/InlineWidget/InlineWidget.d.ts +7 -0
- package/src/lib/components/InlineWidget/InlineWidget.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs +12 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/components/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/index.d.ts +2 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
- package/src/lib/components/Modal/Modal.cjs +37 -1
- package/src/lib/components/Modal/Modal.d.ts +3 -0
- package/src/lib/components/Modal/Modal.js +37 -1
- package/src/lib/components/ModalCard/ModalCard.cjs +4 -1
- package/src/lib/components/ModalCard/ModalCard.d.ts +6 -1
- package/src/lib/components/ModalCard/ModalCard.js +4 -1
- package/src/lib/components/ModalHeader/ModalHeader.types.d.ts +1 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +27 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +27 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +3 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +6 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +6 -2
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.cjs +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/NetworkAction/NetworkAction.js +6 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.cjs +0 -5
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.d.ts +1 -1
- package/src/lib/components/NetworkPicker/components/NetworkControl/NetworkControl.js +0 -5
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -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 +5 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +5 -4
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.d.ts +6 -6
- package/src/lib/components/OverlayCard/OverlayCard.cjs +3 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +3 -1
- package/src/lib/components/Portal/Portal.cjs +4 -2
- package/src/lib/components/Portal/Portal.js +4 -2
- 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/SelectWalletChainLayout/SelectWalletChainLayout.cjs +12 -0
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.d.ts +0 -2
- package/src/lib/components/SelectWalletChainLayout/SelectWalletChainLayout.js +8 -0
- 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 +46 -0
- package/src/lib/components/Step/Step.d.ts +3 -3
- package/src/lib/components/Step/Step.js +42 -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 +4 -2
- package/src/lib/components/Tooltip/Tooltip.js +4 -2
- package/src/lib/components/TosAndPp/TosAndPp.cjs +6 -5
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +3 -4
- package/src/lib/components/TosAndPp/TosAndPp.js +6 -5
- 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 +3 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +3 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +3 -1
- package/src/lib/components/Transition/transition.type.d.ts +3 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +31 -3
- package/src/lib/components/UserAddress/UserAddress.d.ts +4 -2
- package/src/lib/components/UserAddress/UserAddress.js +31 -3
- 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 +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -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 +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +3 -1
- 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 +1 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +147 -59
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +23 -4
- package/src/lib/context/DynamicContext/DynamicContext.js +147 -59
- package/src/lib/context/DynamicContext/helpers.cjs +15 -4
- package/src/lib/context/DynamicContext/helpers.d.ts +6 -0
- package/src/lib/context/DynamicContext/helpers.js +15 -5
- 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 +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +3 -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 +7 -1
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.js +7 -1
- package/src/lib/context/DynamicContext/validators.cjs +1 -1
- package/src/lib/context/DynamicContext/validators.js +1 -1
- package/src/lib/context/ErrorContext/ErrorContext.cjs +6 -0
- package/src/lib/context/ErrorContext/ErrorContext.js +6 -0
- package/src/lib/context/MockContext/MockContext.cjs +2 -14
- package/src/lib/context/MockContext/MockContext.js +2 -14
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +3 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +3 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +3 -1
- package/src/lib/context/ThemeContext/themesData.cjs +1 -1
- package/src/lib/context/ThemeContext/themesData.js +1 -1
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +46 -0
- package/src/lib/context/WalletContext/WalletContext.d.ts +7 -0
- package/src/lib/context/WalletContext/WalletContext.js +41 -0
- package/src/lib/context/WalletContext/index.d.ts +1 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.cjs +37 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.d.ts +9 -0
- package/src/lib/context/WalletGroupContext/WalletGroupContext.js +27 -0
- package/src/lib/data/api.cjs +4 -1
- package/src/lib/data/api.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +20 -57
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.d.ts +1 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +21 -58
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +37 -15
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +38 -16
- package/src/lib/layout/DynamicAuthLayout/Header/header.types.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/EmptyFooterContent/empty-footer-content.cjs → HelpContent/EmptyHelpContent/EmptyHelpContent.cjs} +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/EmptyHelpContent.js +6 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/EmptyHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.cjs +36 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpContent.js +32 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +56 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +52 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.cjs +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.js +3 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +5 -4
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +4 -3
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.cjs → HelpContent/WalletListHelpContent/WalletListHelpContent.cjs} +13 -6
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.d.ts → HelpContent/WalletListHelpContent/WalletListHelpContent.d.ts} +1 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.js → HelpContent/WalletListHelpContent/WalletListHelpContent.js} +14 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.cjs +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +7 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.js +6 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/index.d.ts +4 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +49 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +45 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +59 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +55 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.cjs +18 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.d.ts +3 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.js +14 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/index.d.ts +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +52 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +48 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +54 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +6 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +50 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +54 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +50 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -1
- package/src/lib/shared/assets/chevron-left.cjs +5 -5
- package/src/lib/shared/assets/chevron-left.js +5 -5
- package/src/lib/shared/assets/close.cjs +5 -5
- package/src/lib/shared/assets/close.js +5 -5
- package/src/lib/shared/assets/footer-info-icon.cjs +2 -2
- package/src/lib/shared/assets/footer-info-icon.js +2 -2
- package/src/lib/shared/assets/index.d.ts +2 -0
- package/src/lib/shared/assets/key.cjs +53 -0
- package/src/lib/shared/assets/key.js +29 -0
- package/src/lib/shared/assets/question-mark.cjs +58 -0
- package/src/lib/shared/assets/question-mark.js +34 -0
- package/src/lib/shared/types/index.d.ts +3 -0
- package/src/lib/shared/utils/classes/index.d.ts +1 -0
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +74 -0
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +12 -0
- package/src/lib/shared/utils/classes/storage/localStorage.js +69 -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/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs +6 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.d.ts +3 -1
- package/src/lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js +6 -1
- 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/hooks/useMediaQuery/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.cjs +31 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useMediaQuery/useMediaQuery.js +27 -0
- 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 -5
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +3 -5
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +7 -27
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.d.ts +3 -4
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +8 -28
- package/src/lib/utils/functions/getMissingChains/getMissingChains.cjs +16 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.d.ts +3 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.js +12 -0
- package/src/lib/utils/functions/getMissingChains/index.d.ts +1 -0
- 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/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs +12 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +3 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js +8 -0
- package/src/lib/utils/functions/groupBy/groupBy.d.ts +12 -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 +3 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +3 -2
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +3 -2
- package/src/lib/utils/functions/isProviderEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.cjs +7 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isProviderEnabled/isProviderEnabled.js +3 -0
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +8 -8
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +8 -8
- package/src/lib/utils/functions/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/utils/isWalletGroup/isWalletGroup.d.ts +2 -4
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +3 -3
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.d.ts +3 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +3 -3
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +26 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +25 -8
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +12 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +11 -8
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +13 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +13 -0
- package/src/lib/utils/hooks/index.d.ts +4 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +13 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +13 -2
- 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/useAuthLayoutChecks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +82 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +11 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +78 -0
- 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/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +16 -3
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +16 -3
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +16 -18
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +16 -18
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +73 -21
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +17 -4
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +75 -23
- 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/useCountdown/useCountdown.cjs +39 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.d.ts +11 -0
- package/src/lib/utils/hooks/useCountdown/useCountdown.js +35 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +9 -8
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +9 -8
- package/src/lib/utils/hooks/useDynamicScopes/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +40 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +36 -0
- package/src/lib/utils/hooks/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 +7 -11
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +8 -12
- 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 +45 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.d.ts +3 -0
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +41 -0
- package/src/lib/utils/hooks/useInterval/useInterval.d.ts +1 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +10 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -0
- package/src/lib/utils/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +6 -0
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.cjs +6 -8
- package/src/lib/utils/hooks/useKeyboardEventListener/useKeyboardEventListener.js +7 -9
- 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/usePromise/usePromise.cjs +6 -2
- package/src/lib/utils/hooks/usePromise/usePromise.d.ts +4 -1
- package/src/lib/utils/hooks/usePromise/usePromise.js +6 -2
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +7 -29
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.d.ts +0 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +8 -30
- package/src/lib/utils/hooks/useTimeout/useTimeout.cjs +27 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.d.ts +1 -0
- package/src/lib/utils/hooks/useTimeout/useTimeout.js +23 -0
- package/src/lib/utils/hooks/useTransition/useTransition.cjs +16 -24
- package/src/lib/utils/hooks/useTransition/useTransition.d.ts +3 -3
- package/src/lib/utils/hooks/useTransition/useTransition.js +17 -25
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.cjs +11 -9
- package/src/lib/utils/hooks/useTransitionEvents/useTransitionEvents.js +11 -9
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +1 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +1 -1
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +1 -1
- package/src/lib/utils/hooks/useValidateSession/index.d.ts +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +79 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.d.ts +12 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +75 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +14 -24
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +15 -25
- 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 +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -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 +3 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -1
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +14 -2
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +4 -1
- package/src/lib/utils/hooks/useWallets/useWallets.js +15 -3
- package/src/lib/utils/hooks/useWallets/utils/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/index.d.ts +1 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs +35 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.d.ts +6 -0
- package/src/lib/utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js +29 -0
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +1 -1
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +1 -1
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs +38 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.d.ts +2 -0
- package/src/lib/views/BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js +34 -0
- package/src/lib/views/BridgeNextWalletConnectionView/index.d.ts +1 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +44 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.d.ts +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +40 -0
- package/src/lib/views/BridgeSummaryView/index.d.ts +1 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +48 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.d.ts +2 -0
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +44 -0
- package/src/lib/views/BridgeWelcomeView/index.d.ts +1 -0
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +3 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +3 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +4 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +4 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -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 +4 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +5 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +5 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +7 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.js +7 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +25 -32
- package/src/lib/views/EmailVerification/EmailVerification.js +26 -33
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +5 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +5 -3
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +10 -7
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +9 -6
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +3 -1
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +3 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +5 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +5 -2
- 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 +3 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +3 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +16 -10
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +16 -10
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +29 -16
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +29 -16
- package/src/lib/views/NoAccess/NoAccess.cjs +14 -21
- package/src/lib/views/NoAccess/NoAccess.js +14 -21
- package/src/lib/views/NoAccess/useNoAccessText.cjs +93 -0
- package/src/lib/views/NoAccess/useNoAccessText.d.ts +31 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +88 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +6 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +7 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +5 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +5 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +5 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +36 -4
- package/src/lib/views/QrCodeView/QRCode.js +37 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +5 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +1 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +9 -9
- package/src/lib/views/QrCodeView/QrCodeView.js +10 -10
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +15 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +15 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +3 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +3 -1
- package/src/lib/views/WalletGroupView/WalletGroupView.cjs +21 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.d.ts +2 -0
- package/src/lib/views/WalletGroupView/WalletGroupView.js +17 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.cjs +55 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.d.ts +6 -0
- package/src/lib/views/WalletGroupView/components/WalletGroupItem/WalletGroupItem.js +51 -0
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +3 -1
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +3 -1
- package/src/lib/views/WalletList/WalletList.cjs +29 -25
- package/src/lib/views/WalletList/WalletList.js +30 -26
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +13 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +14 -6
- package/src/lib/views/WalletList/data.cjs +4 -3
- package/src/lib/views/WalletList/data.js +4 -3
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +63 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.d.ts +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +59 -0
- package/src/lib/views/WalletLockedView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +5 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +5 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +6 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.js +6 -4
- package/src/lib/views/viewToComponentMap.cjs +11 -0
- package/src/lib/views/viewToComponentMap.js +11 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +34 -7
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -1
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +35 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +52 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +53 -4
- package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs} +15 -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} +12 -20
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +52 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +48 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +59 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.d.ts +7 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +55 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/index.d.ts +1 -0
- 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 +53 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +54 -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 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +17 -4
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +17 -4
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +4 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.types.d.ts +2 -7
- 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 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +17 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +17 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +7 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +7 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -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 +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +13 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +14 -3
- 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 +3 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +5 -3
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +18 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.d.ts +3 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +18 -2
- 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 +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +7 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +3 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +7 -21
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +7 -21
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -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} +5 -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} +5 -3
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -1
- package/src/polyfills.cjs +1 -2
- package/src/polyfills.js +1 -2
- 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/layout/DynamicAuthLayout/Footer/Footer.cjs +0 -65
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.d.ts +0 -10
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +0 -61
- package/src/lib/layout/DynamicAuthLayout/Footer/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.d.ts +0 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/EmptyFooterContent/empty-footer-content.js +0 -6
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/index.d.ts +0 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +0 -8
- package/src/lib/layout/DynamicAuthLayout/FooterContent/index.d.ts +0 -3
- 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/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.cjs +0 -12
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.d.ts +0 -1
- package/src/lib/utils/functions/hasWalletGroupFlag/hasWalletGroupFlag.js +0 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +0 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.d.ts +0 -5
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.d.ts +0 -2
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/NewToWeb3WalletItem.js +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/NewToWeb3WalletItem/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/index.d.ts +0 -0
- /package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/index.d.ts +0 -0
|
@@ -4,7 +4,6 @@ import { useState } from '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
7
|
import '@dynamic-labs/iconic';
|
|
9
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
9
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
@@ -13,6 +12,7 @@ import { ReactComponent as SvgDotsHorizontal } from '../../../../shared/assets/d
|
|
|
13
12
|
import '@dynamic-labs/wallet-book';
|
|
14
13
|
import '@dynamic-labs/utils';
|
|
15
14
|
import '../../../../utils/constants/colors.js';
|
|
15
|
+
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
16
16
|
import 'ethers';
|
|
17
17
|
import '../../../../shared/consts/index.js';
|
|
18
18
|
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
@@ -27,6 +27,7 @@ import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransitio
|
|
|
27
27
|
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
28
28
|
import '../../../../config/ApiEndpoint.js';
|
|
29
29
|
import '@dynamic-labs/rpc-providers';
|
|
30
|
+
import '../../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
30
31
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
31
32
|
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
33
|
import { ModalHeader } from '../../../../components/ModalHeader/ModalHeader.js';
|
|
@@ -43,6 +44,7 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
43
44
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
44
45
|
import 'formik';
|
|
45
46
|
import 'yup';
|
|
47
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
46
48
|
import { useSocialRedirectContext } from '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
47
49
|
import { OverlayCard } from '../../../../components/OverlayCard/OverlayCard.js';
|
|
48
50
|
import '../../../../components/OverlayCard/OverlayCard.context.js';
|
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
8
9
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
9
10
|
require('@dynamic-labs/sdk-api');
|
|
10
11
|
var logger = require('../../shared/logger.cjs');
|
|
11
|
-
require('../../config/LSSuffix.cjs');
|
|
12
12
|
require('@dynamic-labs/iconic');
|
|
13
13
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
14
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
15
|
-
require('@dynamic-labs/wallet-book');
|
|
16
15
|
require('@dynamic-labs/utils');
|
|
17
16
|
require('../../utils/constants/colors.cjs');
|
|
17
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
18
18
|
require('ethers');
|
|
19
19
|
require('../../shared/consts/index.cjs');
|
|
20
20
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
@@ -30,11 +30,13 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
30
30
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
31
31
|
require('../../config/ApiEndpoint.cjs');
|
|
32
32
|
require('@dynamic-labs/rpc-providers');
|
|
33
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
33
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
35
36
|
require('../../components/IconButton/IconButton.cjs');
|
|
36
37
|
require('../../components/Alert/Alert.cjs');
|
|
37
38
|
require('../../context/MockContext/MockContext.cjs');
|
|
39
|
+
var useConnectAndSign = require('../../utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs');
|
|
38
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
39
41
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
40
42
|
var ErrorContainer = require('../../components/ErrorContainer/ErrorContainer.cjs');
|
|
@@ -42,6 +44,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
42
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
45
|
require('formik');
|
|
44
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
48
|
var NetworkPicker = require('../../components/NetworkPicker/NetworkPicker.cjs');
|
|
46
49
|
var UserAddress = require('../../components/UserAddress/UserAddress.cjs');
|
|
47
50
|
var AuthProviderIcon = require('../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
@@ -49,21 +52,24 @@ var useUpdateUserProfileByJWTCallback = require('../../utils/hooks/useUpdateUser
|
|
|
49
52
|
var SelectNetworkButton = require('../../components/SelectNetworkButton/SelectNetworkButton.cjs');
|
|
50
53
|
|
|
51
54
|
const NetworkNotSupported = () => {
|
|
52
|
-
var _a, _b;
|
|
55
|
+
var _a, _b, _c, _d;
|
|
53
56
|
const { onboardingOnlyJwt, network, onboardingImageUrl, selectedWalletConnector: walletConnector, decodedOnboardingOnlyToken, setShowAuthFlow, setCallback, setNetwork, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
54
57
|
const { updateUserProfileByJWT } = useUpdateUserProfileByJWTCallback.useUpdateUserProfileByJWTCallback();
|
|
58
|
+
const finishConnectAndSign = useConnectAndSign.useConnectAndSign();
|
|
55
59
|
const [isNetworkPickerOpen, setIsNetworkPickerOpen] = React.useState(false);
|
|
56
|
-
if (!
|
|
60
|
+
if (!walletConnector) {
|
|
57
61
|
return null;
|
|
58
62
|
}
|
|
59
|
-
const handleNetworkChange = () => {
|
|
60
|
-
if (!onboardingOnlyJwt)
|
|
63
|
+
const handleNetworkChange = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
64
|
+
if (!onboardingOnlyJwt) {
|
|
65
|
+
finishConnectAndSign({ walletConnector });
|
|
61
66
|
return;
|
|
67
|
+
}
|
|
62
68
|
setCallback('authSuccess');
|
|
63
|
-
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
69
|
+
yield updateUserProfileByJWT(onboardingOnlyJwt);
|
|
64
70
|
setShowAuthFlow(false);
|
|
65
|
-
};
|
|
66
|
-
const userProfile = createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
71
|
+
});
|
|
72
|
+
const userProfile = decodedOnboardingOnlyToken && createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
|
|
67
73
|
const evmNetworks = walletConnector.evmNetworks || [];
|
|
68
74
|
const _isSupportedNetwork = isSupportedNetwork.isSupportedNetwork({ network, walletConnector });
|
|
69
75
|
const onSelectNetworkButtonClick = (networkId) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -78,7 +84,7 @@ const NetworkNotSupported = () => {
|
|
|
78
84
|
logger.logger.debug(e);
|
|
79
85
|
}
|
|
80
86
|
});
|
|
81
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsxRuntime.
|
|
87
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: [((_a = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _a === void 0 ? void 0 : _a.avatar) && (jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: jsxRuntime.jsx("img", { src: (_b = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported__img' }) }))), !((_c = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _c === void 0 ? void 0 : _c.avatar) && onboardingOnlyJwt && (jsxRuntime.jsx(AuthProviderIcon.AuthProviderIcon, { jwt: onboardingOnlyJwt })), !((_d = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _d === void 0 ? void 0 : _d.avatar) && !onboardingOnlyJwt && (jsxRuntime.jsx(walletBook.WalletIcon, { style: { height: 64, width: 64 }, walletName: walletConnector.name }))] })), jsxRuntime.jsx(UserAddress.UserAddress, { walletConnector: walletConnector, userProfile: userProfile }), jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsxRuntime.jsx(NetworkPicker.NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker', customCallbackOnSuccess: handleNetworkChange })) })), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsxRuntime.jsx(SelectNetworkButton.SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
|
|
82
88
|
};
|
|
83
89
|
|
|
84
90
|
exports.NetworkNotSupported = NetworkNotSupported;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
+
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
4
5
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
5
6
|
import '@dynamic-labs/sdk-api';
|
|
6
7
|
import { logger } from '../../shared/logger.js';
|
|
7
|
-
import '../../config/LSSuffix.js';
|
|
8
8
|
import '@dynamic-labs/iconic';
|
|
9
9
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
10
|
import '../../context/ViewContext/ViewContext.js';
|
|
11
|
-
import '@dynamic-labs/wallet-book';
|
|
12
11
|
import '@dynamic-labs/utils';
|
|
13
12
|
import '../../utils/constants/colors.js';
|
|
13
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
14
14
|
import 'ethers';
|
|
15
15
|
import '../../shared/consts/index.js';
|
|
16
16
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
@@ -26,11 +26,13 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
26
26
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
27
27
|
import '../../config/ApiEndpoint.js';
|
|
28
28
|
import '@dynamic-labs/rpc-providers';
|
|
29
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
29
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
30
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
31
32
|
import '../../components/IconButton/IconButton.js';
|
|
32
33
|
import '../../components/Alert/Alert.js';
|
|
33
34
|
import '../../context/MockContext/MockContext.js';
|
|
35
|
+
import { useConnectAndSign } from '../../utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js';
|
|
34
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
35
37
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
36
38
|
import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
|
|
@@ -38,6 +40,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
38
40
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
39
41
|
import 'formik';
|
|
40
42
|
import 'yup';
|
|
43
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
41
44
|
import { NetworkPicker } from '../../components/NetworkPicker/NetworkPicker.js';
|
|
42
45
|
import { UserAddress } from '../../components/UserAddress/UserAddress.js';
|
|
43
46
|
import { AuthProviderIcon } from '../../components/AuthProviderIcon/AuthProviderIcon.js';
|
|
@@ -45,21 +48,24 @@ import { useUpdateUserProfileByJWTCallback } from '../../utils/hooks/useUpdateUs
|
|
|
45
48
|
import { SelectNetworkButton } from '../../components/SelectNetworkButton/SelectNetworkButton.js';
|
|
46
49
|
|
|
47
50
|
const NetworkNotSupported = () => {
|
|
48
|
-
var _a, _b;
|
|
51
|
+
var _a, _b, _c, _d;
|
|
49
52
|
const { onboardingOnlyJwt, network, onboardingImageUrl, selectedWalletConnector: walletConnector, decodedOnboardingOnlyToken, setShowAuthFlow, setCallback, setNetwork, } = useInternalDynamicContext();
|
|
50
53
|
const { updateUserProfileByJWT } = useUpdateUserProfileByJWTCallback();
|
|
54
|
+
const finishConnectAndSign = useConnectAndSign();
|
|
51
55
|
const [isNetworkPickerOpen, setIsNetworkPickerOpen] = useState(false);
|
|
52
|
-
if (!
|
|
56
|
+
if (!walletConnector) {
|
|
53
57
|
return null;
|
|
54
58
|
}
|
|
55
|
-
const handleNetworkChange = () => {
|
|
56
|
-
if (!onboardingOnlyJwt)
|
|
59
|
+
const handleNetworkChange = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
|
+
if (!onboardingOnlyJwt) {
|
|
61
|
+
finishConnectAndSign({ walletConnector });
|
|
57
62
|
return;
|
|
63
|
+
}
|
|
58
64
|
setCallback('authSuccess');
|
|
59
|
-
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
65
|
+
yield updateUserProfileByJWT(onboardingOnlyJwt);
|
|
60
66
|
setShowAuthFlow(false);
|
|
61
|
-
};
|
|
62
|
-
const userProfile = createUserProfile(decodedOnboardingOnlyToken);
|
|
67
|
+
});
|
|
68
|
+
const userProfile = decodedOnboardingOnlyToken && createUserProfile(decodedOnboardingOnlyToken);
|
|
63
69
|
const evmNetworks = walletConnector.evmNetworks || [];
|
|
64
70
|
const _isSupportedNetwork = isSupportedNetwork({ network, walletConnector });
|
|
65
71
|
const onSelectNetworkButtonClick = (networkId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -74,7 +80,7 @@ const NetworkNotSupported = () => {
|
|
|
74
80
|
logger.debug(e);
|
|
75
81
|
}
|
|
76
82
|
});
|
|
77
|
-
return (jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [
|
|
83
|
+
return (jsxs("div", Object.assign({ className: 'network-not-supported', "data-testid": 'network-not-supported' }, { children: [onboardingImageUrl && (jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, Object.assign({ variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported' }, { children: "This network is not available, please update." }))), jsxs("div", Object.assign({ className: 'network-not-supported__content-container' }, { children: [jsxs("div", Object.assign({ className: 'network-not-supported__img-container' }, { children: [((_a = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _a === void 0 ? void 0 : _a.avatar) && (jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: jsx("img", { src: (_b = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported__img' }) }))), !((_c = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _c === void 0 ? void 0 : _c.avatar) && onboardingOnlyJwt && (jsx(AuthProviderIcon, { jwt: onboardingOnlyJwt })), !((_d = userProfile === null || userProfile === void 0 ? void 0 : userProfile.ens) === null || _d === void 0 ? void 0 : _d.avatar) && !onboardingOnlyJwt && (jsx(WalletIcon, { style: { height: 64, width: 64 }, walletName: walletConnector.name }))] })), jsx(UserAddress, { walletConnector: walletConnector, userProfile: userProfile }), jsx("div", Object.assign({ className: 'network-not-supported__network-container' }, { children: evmNetworks.length > 1 && (jsx(NetworkPicker, { evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker', customCallbackOnSuccess: handleNetworkChange })) })), jsxs("div", Object.assign({ className: 'network-not-supported__welcome-container' }, { children: [jsx(Typography, Object.assign({ variant: 'title', color: 'primary', className: 'network-not-supported__welcome-title' }, { children: "Update Network" })), jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Your wallet is not connected to a supported network. Please update before continuing." }))] })), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] }))] })));
|
|
78
84
|
};
|
|
79
85
|
|
|
80
86
|
export { NetworkNotSupported };
|
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
5
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var walletBook = require('@dynamic-labs/wallet-book');
|
|
8
9
|
var Typography = require('../../components/Typography/Typography.cjs');
|
|
9
10
|
require('@dynamic-labs/sdk-api');
|
|
10
11
|
require('../../shared/logger.cjs');
|
|
11
|
-
require('../../config/LSSuffix.cjs');
|
|
12
12
|
require('@dynamic-labs/iconic');
|
|
13
13
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
14
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
15
15
|
require('@dynamic-labs/utils');
|
|
16
16
|
require('../../utils/constants/colors.cjs');
|
|
17
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
18
|
require('ethers');
|
|
18
19
|
require('../../shared/consts/index.cjs');
|
|
19
20
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
20
21
|
require('@dynamic-labs/multi-wallet');
|
|
21
22
|
var isSupportedNetwork = require('../../utils/functions/isSupportedNetwork/isSupportedNetwork.cjs');
|
|
22
23
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
24
|
+
var getWalletConnectorNetworks = require('../../utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs');
|
|
23
25
|
require('../../components/ShadowDOM/ShadowDOM.cjs');
|
|
24
26
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
25
27
|
require('react-dom');
|
|
@@ -29,50 +31,61 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
29
31
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
32
|
require('../../config/ApiEndpoint.cjs');
|
|
31
33
|
require('@dynamic-labs/rpc-providers');
|
|
34
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
35
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
36
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
37
|
require('../../components/IconButton/IconButton.cjs');
|
|
35
38
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
36
39
|
require('../../components/Alert/Alert.cjs');
|
|
37
40
|
require('../../context/MockContext/MockContext.cjs');
|
|
41
|
+
var useConnectAndSign = require('../../utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs');
|
|
38
42
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
39
43
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
40
44
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
41
45
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
46
|
require('formik');
|
|
43
47
|
require('yup');
|
|
48
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
44
49
|
var useUpdateUserProfileByJWTCallback = require('../../utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs');
|
|
45
50
|
|
|
46
51
|
// The component notifies the user about the required manual network change,
|
|
47
52
|
// as the wallet does not support programmatic network change.
|
|
48
53
|
const NetworkNotSupportedSwitchManual = () => {
|
|
49
54
|
var _a, _b;
|
|
50
|
-
const { user,
|
|
55
|
+
const { user, onboardingOnlyJwt, selectedWalletConnector: walletConnector, setShowAuthFlow, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
51
56
|
const { updateUserProfileByJWT } = useUpdateUserProfileByJWTCallback.useUpdateUserProfileByJWTCallback();
|
|
57
|
+
const finishSign = useConnectAndSign.useConnectAndSign();
|
|
52
58
|
// Listen for network changes
|
|
53
59
|
React.useEffect(() => {
|
|
54
60
|
if (!walletConnector)
|
|
55
61
|
return;
|
|
56
|
-
const
|
|
57
|
-
network,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
setShowAuthFlow(false);
|
|
62
|
+
const onChainChange = (network) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
if (isSupportedNetwork.isSupportedNetwork({ network, walletConnector })) {
|
|
64
|
+
if (onboardingOnlyJwt) {
|
|
65
|
+
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
66
|
+
setShowAuthFlow(false);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
finishSign({ walletConnector });
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
});
|
|
73
|
+
walletConnector.setupEventListeners({
|
|
74
|
+
onChainChange,
|
|
75
|
+
});
|
|
76
|
+
return () => {
|
|
77
|
+
walletConnector.teardownEventListeners();
|
|
78
|
+
};
|
|
79
|
+
}, [onboardingOnlyJwt, walletConnector, updateUserProfileByJWT]);
|
|
70
80
|
const iconSize = 80;
|
|
71
81
|
const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
|
|
72
82
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
73
83
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
74
84
|
} }));
|
|
75
|
-
|
|
85
|
+
const walletConnectorNetworks = getWalletConnectorNetworks.getWalletConnectorNetworks(walletConnector);
|
|
86
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual' }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__img-container' }, { children: ((_a = user === null || user === void 0 ? void 0 : user.ens) === null || _a === void 0 ? void 0 : _a.avatar) ? (jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsxRuntime.jsx("img", { src: (_b = user === null || user === void 0 ? void 0 : user.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported-switch-manual__img' }) }))) : (jsxRuntime.jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }) }))) })), jsxRuntime.jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual__content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'network-not-supported-switch-manual__title', weight: 'medium', variant: 'title', color: 'primary' }, { children: "Update your Network" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary' }, { children: walletConnectorNetworks.length
|
|
87
|
+
? `To continue, please update the network in your wallet to ${walletConnectorNetworks[0].name}`
|
|
88
|
+
: 'Your wallet does not support switching networks from this app. Switch networks directly in your wallet.' }))] }))] })));
|
|
76
89
|
};
|
|
77
90
|
|
|
78
91
|
exports.NetworkNotSupportedSwitchManual = NetworkNotSupportedSwitchManual;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
1
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
4
5
|
import { Typography } from '../../components/Typography/Typography.js';
|
|
5
6
|
import '@dynamic-labs/sdk-api';
|
|
6
7
|
import '../../shared/logger.js';
|
|
7
|
-
import '../../config/LSSuffix.js';
|
|
8
8
|
import '@dynamic-labs/iconic';
|
|
9
9
|
import '@dynamic-labs/wallet-connector-core';
|
|
10
10
|
import '../../context/ViewContext/ViewContext.js';
|
|
11
11
|
import '@dynamic-labs/utils';
|
|
12
12
|
import '../../utils/constants/colors.js';
|
|
13
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
14
|
import 'ethers';
|
|
14
15
|
import '../../shared/consts/index.js';
|
|
15
16
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
16
17
|
import '@dynamic-labs/multi-wallet';
|
|
17
18
|
import { isSupportedNetwork } from '../../utils/functions/isSupportedNetwork/isSupportedNetwork.js';
|
|
18
19
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
20
|
+
import { getWalletConnectorNetworks } from '../../utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js';
|
|
19
21
|
import '../../components/ShadowDOM/ShadowDOM.js';
|
|
20
22
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
21
23
|
import 'react-dom';
|
|
@@ -25,50 +27,61 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
25
27
|
import '../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
26
28
|
import '../../config/ApiEndpoint.js';
|
|
27
29
|
import '@dynamic-labs/rpc-providers';
|
|
30
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
31
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
32
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
33
|
import '../../components/IconButton/IconButton.js';
|
|
31
34
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
32
35
|
import '../../components/Alert/Alert.js';
|
|
33
36
|
import '../../context/MockContext/MockContext.js';
|
|
37
|
+
import { useConnectAndSign } from '../../utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js';
|
|
34
38
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
35
39
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
36
40
|
import '../../components/Popper/Popper/Popper.js';
|
|
37
41
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
42
|
import 'formik';
|
|
39
43
|
import 'yup';
|
|
44
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
40
45
|
import { useUpdateUserProfileByJWTCallback } from '../../utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js';
|
|
41
46
|
|
|
42
47
|
// The component notifies the user about the required manual network change,
|
|
43
48
|
// as the wallet does not support programmatic network change.
|
|
44
49
|
const NetworkNotSupportedSwitchManual = () => {
|
|
45
50
|
var _a, _b;
|
|
46
|
-
const { user,
|
|
51
|
+
const { user, onboardingOnlyJwt, selectedWalletConnector: walletConnector, setShowAuthFlow, } = useInternalDynamicContext();
|
|
47
52
|
const { updateUserProfileByJWT } = useUpdateUserProfileByJWTCallback();
|
|
53
|
+
const finishSign = useConnectAndSign();
|
|
48
54
|
// Listen for network changes
|
|
49
55
|
useEffect(() => {
|
|
50
56
|
if (!walletConnector)
|
|
51
57
|
return;
|
|
52
|
-
const
|
|
53
|
-
network,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
setShowAuthFlow(false);
|
|
58
|
+
const onChainChange = (network) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
if (isSupportedNetwork({ network, walletConnector })) {
|
|
60
|
+
if (onboardingOnlyJwt) {
|
|
61
|
+
updateUserProfileByJWT(onboardingOnlyJwt);
|
|
62
|
+
setShowAuthFlow(false);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
finishSign({ walletConnector });
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
});
|
|
69
|
+
walletConnector.setupEventListeners({
|
|
70
|
+
onChainChange,
|
|
71
|
+
});
|
|
72
|
+
return () => {
|
|
73
|
+
walletConnector.teardownEventListeners();
|
|
74
|
+
};
|
|
75
|
+
}, [onboardingOnlyJwt, walletConnector, updateUserProfileByJWT]);
|
|
66
76
|
const iconSize = 80;
|
|
67
77
|
const icon = (jsx(WalletIcon, { walletName: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.name, style: {
|
|
68
78
|
height: pixelToRem(iconSize * iconRatio),
|
|
69
79
|
width: pixelToRem(iconSize * iconRatio),
|
|
70
80
|
} }));
|
|
71
|
-
|
|
81
|
+
const walletConnectorNetworks = getWalletConnectorNetworks(walletConnector);
|
|
82
|
+
return (jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual' }, { children: [jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__img-container' }, { children: ((_a = user === null || user === void 0 ? void 0 : user.ens) === null || _a === void 0 ? void 0 : _a.avatar) ? (jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsx("img", { src: (_b = user === null || user === void 0 ? void 0 : user.ens) === null || _b === void 0 ? void 0 : _b.avatar, alt: 'user ens avatar', className: 'network-not-supported-switch-manual__img' }) }))) : (jsx("div", Object.assign({ className: 'network-not-supported-switch-manual__network-container' }, { children: jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, isSpinning: true }) }))) })), jsxs("div", Object.assign({ className: 'network-not-supported-switch-manual__content' }, { children: [jsx(Typography, Object.assign({ className: 'network-not-supported-switch-manual__title', weight: 'medium', variant: 'title', color: 'primary' }, { children: "Update your Network" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary' }, { children: walletConnectorNetworks.length
|
|
83
|
+
? `To continue, please update the network in your wallet to ${walletConnectorNetworks[0].name}`
|
|
84
|
+
: 'Your wallet does not support switching networks from this app. Switch networks directly in your wallet.' }))] }))] })));
|
|
72
85
|
};
|
|
73
86
|
|
|
74
87
|
export { NetworkNotSupportedSwitchManual };
|
|
@@ -8,13 +8,14 @@ var iconic = require('@dynamic-labs/iconic');
|
|
|
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
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
12
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
14
13
|
var error = require('../../shared/assets/error.cjs');
|
|
15
14
|
require('@dynamic-labs/wallet-book');
|
|
15
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
16
16
|
require('@dynamic-labs/utils');
|
|
17
17
|
require('../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
18
19
|
require('ethers');
|
|
19
20
|
require('../../shared/consts/index.cjs');
|
|
20
21
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
@@ -29,6 +30,7 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
|
|
|
29
30
|
require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
30
31
|
require('../../config/ApiEndpoint.cjs');
|
|
31
32
|
require('@dynamic-labs/rpc-providers');
|
|
33
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
35
|
var AccessDeniedContext = require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
36
|
require('../../components/IconButton/IconButton.cjs');
|
|
@@ -42,38 +44,25 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
42
44
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
43
45
|
require('formik');
|
|
44
46
|
require('yup');
|
|
47
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
45
48
|
var StatusDot = require('../../components/StatusDot/StatusDot.cjs');
|
|
46
49
|
var getSocialNetworkIcon = require('../../utils/functions/getSocialNetworkIcon/getSocialNetworkIcon.cjs');
|
|
47
50
|
var EmailVerificationContext = require('../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
48
51
|
var AuthProviderIcon = require('../../components/AuthProviderIcon/AuthProviderIcon.cjs');
|
|
52
|
+
var useNoAccessText = require('./useNoAccessText.cjs');
|
|
49
53
|
|
|
50
54
|
const NoAccess = () => {
|
|
51
55
|
const { deniedAddress, setDeniedAddress, setDeniedOauthProvider } = AccessDeniedContext.useAccessDeniedContext();
|
|
52
|
-
const { selectedWalletConnector: walletConnector,
|
|
56
|
+
const { selectedWalletConnector: walletConnector, socialMediaIconUrl, notInTheListImageUrl, onboardingOnlyJwt, accessDeniedButton, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
53
57
|
const { email } = EmailVerificationContext.useEmailVerificationContext();
|
|
54
|
-
const { goToInitialView
|
|
55
|
-
const
|
|
56
|
-
const _socialMediaLinkText = !isChainalysisView
|
|
57
|
-
? socialMediaLinkText
|
|
58
|
-
: 'Why am I seeing this message?';
|
|
59
|
-
const _socialMediaUrl = !isChainalysisView
|
|
60
|
-
? socialMediaUrl
|
|
61
|
-
: 'https://docs.dynamic.xyz/docs';
|
|
58
|
+
const { goToInitialView } = ViewContext.useViewContext();
|
|
59
|
+
const { _socialMediaLinkText, _socialMediaUrl, isAccessListView, isGateBlockedView, subtitle, title, buttonTitle: _buttonTitle, } = useNoAccessText.useNoAccessText();
|
|
62
60
|
const handleChangeWallet = () => {
|
|
63
61
|
goToInitialView();
|
|
64
62
|
setDeniedAddress('');
|
|
65
63
|
setDeniedOauthProvider(undefined);
|
|
66
64
|
walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.endSession();
|
|
67
65
|
};
|
|
68
|
-
const title = isChainalysisView
|
|
69
|
-
? 'This address seems corrupted.'
|
|
70
|
-
: accessDeniedMessagePrimary || 'Access denied';
|
|
71
|
-
const subtitle = isChainalysisView
|
|
72
|
-
? 'This wallet has been correlated to illicit activity and cannot access this site.'
|
|
73
|
-
: accessDeniedMessageSecondary ||
|
|
74
|
-
"We couldn't find your wallet address or email on our allow list of customers.";
|
|
75
|
-
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || 'Try another method';
|
|
76
|
-
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
77
66
|
const SocialMediaIcon = !socialMediaIconUrl || typeof socialMediaIconUrl === 'string'
|
|
78
67
|
? null
|
|
79
68
|
: getSocialNetworkIcon.getSocialNetworkIcon(Object.keys(socialMediaIconUrl)[0]);
|
|
@@ -83,9 +72,13 @@ const NoAccess = () => {
|
|
|
83
72
|
}
|
|
84
73
|
return (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { containerClassName: 'wallet-no-access__icon--verified', Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: error.ReactComponent, variant: 'red' }));
|
|
85
74
|
}, [onboardingOnlyJwt, walletConnector]);
|
|
86
|
-
const formattedAddress =
|
|
75
|
+
const formattedAddress = shortenWalletAddress.shortenWalletAddress(deniedAddress, 6, 4);
|
|
76
|
+
const buttonTitle = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.title) || _buttonTitle;
|
|
77
|
+
const buttonAction = (accessDeniedButton === null || accessDeniedButton === void 0 ? void 0 : accessDeniedButton.action) || handleChangeWallet;
|
|
87
78
|
const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
|
|
88
|
-
|
|
79
|
+
const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
|
|
80
|
+
const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
|
|
81
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__container' }, { children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__main' }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__user-info-container' }, { children: [Icon, jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container' }, { children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address' }, { children: emailOrAddress }))] }))] })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__content' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary' }, { children: title })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary' }, { children: subtitle }))] })), jsxRuntime.jsx(Button.Button, Object.assign({ onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonRounded: 'default', buttonPadding: 'large' }, { children: buttonTitle })), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-no-access__social-info-container' }, { children: [jsxRuntime.jsxs("a", Object.assign({ href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'button_primary', color: 'primary' }, { children: _socialMediaLinkText })), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
|
|
89
82
|
height: pixelToRem.pixelToRem(24),
|
|
90
83
|
width: pixelToRem.pixelToRem(24),
|
|
91
84
|
} }))] })), typeof socialMediaIconUrl === 'string' && (jsxRuntime.jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
|