@dynamic-labs/sdk-react-core 0.18.0-RC.0 → 0.18.0-RC.10
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 +157 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +9 -8
- package/src/index.js +5 -4
- package/src/lib/Main.cjs +7 -8
- package/src/lib/Main.js +6 -7
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +7 -4
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +8 -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 +2 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.js +2 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +19 -9
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +19 -9
- package/src/lib/components/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 +2 -1
- package/src/lib/components/Divider/Divider.js +2 -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/LogoutButton/LogoutButton.cjs +1 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +1 -1
- package/src/lib/components/Modal/Modal.cjs +36 -1
- package/src/lib/components/Modal/Modal.d.ts +3 -0
- package/src/lib/components/Modal/Modal.js +36 -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 +26 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +26 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -1
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +5 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.d.ts +2 -1
- package/src/lib/components/NetworkPicker/components/Network/Network.js +5 -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 +2 -1
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +2 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +4 -4
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +0 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +4 -4
- package/src/lib/components/OptionsSwitcher/OptionsSwitcher.d.ts +6 -6
- package/src/lib/components/OverlayCard/OverlayCard.cjs +2 -1
- package/src/lib/components/OverlayCard/OverlayCard.js +2 -1
- package/src/lib/components/Portal/Portal.cjs +3 -2
- package/src/lib/components/Portal/Portal.js +3 -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 +25 -0
- package/src/lib/components/Step/Step.d.ts +2 -1
- package/src/lib/components/Step/Step.js +21 -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 +3 -2
- package/src/lib/components/Tooltip/Tooltip.js +3 -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 +2 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +2 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +2 -1
- package/src/lib/components/Transition/transition.type.d.ts +3 -3
- package/src/lib/components/UserAddress/UserAddress.cjs +30 -3
- package/src/lib/components/UserAddress/UserAddress.d.ts +4 -2
- package/src/lib/components/UserAddress/UserAddress.js +30 -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 +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +2 -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 +0 -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 +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +2 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +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 +2 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.js +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +2 -1
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +2 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +2 -1
- package/src/lib/context/ThemeContext/themesData.cjs +1 -1
- package/src/lib/context/ThemeContext/themesData.js +1 -1
- package/src/lib/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 +1 -1
- package/src/lib/data/api.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +19 -57
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.d.ts +1 -6
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +20 -58
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +36 -15
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +37 -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 +55 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +51 -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 +2 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/Item/Item.js +2 -1
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +4 -4
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent → HelpContent/WalletListHelpContent}/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -3
- package/src/lib/layout/DynamicAuthLayout/{FooterContent/WalletListFooterContent/WalletListFooterContent.cjs → HelpContent/WalletListHelpContent/WalletListHelpContent.cjs} +12 -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} +13 -7
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.cjs +5 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.d.ts +7 -0
- package/src/lib/layout/DynamicAuthLayout/{FooterContent → HelpContent}/WalletMoreInfoContent/WalletMoreInfoContent.js +5 -6
- package/src/lib/layout/DynamicAuthLayout/HelpContent/index.d.ts +4 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +48 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +44 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +58 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.d.ts +2 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +54 -0
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/index.d.ts +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +51 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +47 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +53 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +6 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +49 -0
- package/src/lib/layouts/BridgeWelcomeLayout/index.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +53 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +49 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +2 -1
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +2 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -1
- package/src/lib/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/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 +2 -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/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 +2 -2
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +2 -2
- 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 +9 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +9 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +1 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +80 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +11 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +76 -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 +5 -5
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +5 -5
- 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 +4 -3
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +5 -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/useUserDataForm/useUserDataForm.cjs +1 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.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 +8 -24
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +8 -24
- 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 +2 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -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 +39 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.d.ts +2 -0
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +35 -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 +2 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +2 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +2 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +3 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +3 -2
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +2 -1
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +2 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +1 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +1 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +2 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +2 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -4
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +6 -4
- package/src/lib/views/EmailUpdate/EmailUpdate.js +6 -4
- package/src/lib/views/EmailVerification/EmailVerification.cjs +21 -29
- package/src/lib/views/EmailVerification/EmailVerification.js +22 -30
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +4 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +4 -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 +2 -1
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +2 -1
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +10 -7
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +10 -7
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +3 -4
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -3
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +2 -1
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +2 -1
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +12 -7
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +12 -7
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +23 -15
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +23 -15
- package/src/lib/views/NoAccess/NoAccess.cjs +2 -1
- package/src/lib/views/NoAccess/NoAccess.js +2 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +5 -3
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -4
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +2 -1
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +2 -1
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +4 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +4 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +4 -4
- package/src/lib/views/QrCodeView/QRCode.cjs +35 -4
- package/src/lib/views/QrCodeView/QRCode.js +36 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +4 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.d.ts +1 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +4 -3
- package/src/lib/views/QrCodeView/QrCodeView.cjs +8 -9
- package/src/lib/views/QrCodeView/QrCodeView.js +9 -10
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +2 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +4 -5
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +4 -5
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +2 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +2 -1
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.cjs +15 -0
- package/src/lib/views/TransactionConfirmationView/helpers/transactionErrorMessage.js +15 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +2 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +2 -1
- package/src/lib/views/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 +2 -1
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +2 -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 +12 -5
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +13 -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 +62 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.d.ts +2 -0
- package/src/lib/views/WalletLockedView/WalletLockedView.js +58 -0
- package/src/lib/views/WalletLockedView/index.d.ts +1 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +4 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +4 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +5 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.js +5 -4
- package/src/lib/views/viewToComponentMap.cjs +10 -0
- package/src/lib/views/viewToComponentMap.js +10 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +23 -5
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +5 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +23 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +51 -3
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.d.ts +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +52 -4
- package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs} +14 -19
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.d.ts +7 -0
- package/src/lib/widgets/{DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js → DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js} +11 -20
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +51 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +9 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +47 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +58 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.d.ts +7 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +54 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +9 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +6 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.cjs +57 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.d.ts +6 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.js +53 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/index.d.ts +1 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.cjs +58 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.d.ts +6 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.js +54 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/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 +52 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +53 -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 +2 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +15 -3
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +15 -3
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +3 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +3 -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 +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +16 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +16 -5
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -4
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.cjs +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/DynamicWidgetViews.js +3 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +2 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +12 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +13 -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 +2 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +2 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +4 -3
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +4 -3
- package/src/lib/widgets/DynamicWidget/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 +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +6 -4
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +6 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +6 -21
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +6 -21
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +2 -1
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +2 -1
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/SendBalanceWidgetView/SendBalanceWidgetView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.cjs → WalletsView/WalletsView.cjs} +4 -3
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.d.ts +2 -0
- package/src/lib/widgets/DynamicWidget/views/{IndexView/IndexView.js → WalletsView/WalletsView.js} +4 -3
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +2 -1
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +2 -1
- package/src/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/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
|
@@ -8,7 +8,6 @@ require('react');
|
|
|
8
8
|
var Typography = require('../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
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
13
|
var chevronLeft = require('../../shared/assets/chevron-left.cjs');
|
|
@@ -17,6 +16,7 @@ var pencilAltIcon = require('../../shared/assets/pencil-alt-icon.cjs');
|
|
|
17
16
|
require('@dynamic-labs/wallet-book');
|
|
18
17
|
require('@dynamic-labs/utils');
|
|
19
18
|
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
20
|
require('ethers');
|
|
21
21
|
require('../../shared/consts/index.cjs');
|
|
22
22
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
@@ -31,6 +31,7 @@ require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
|
31
31
|
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
32
32
|
require('../../config/ApiEndpoint.cjs');
|
|
33
33
|
require('@dynamic-labs/rpc-providers');
|
|
34
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
34
35
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
35
36
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
37
|
var ModalHeader = require('../ModalHeader/ModalHeader.cjs');
|
|
@@ -42,7 +43,6 @@ require('../Alert/Alert.cjs');
|
|
|
42
43
|
require('../../context/MockContext/MockContext.cjs');
|
|
43
44
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
44
45
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
45
|
-
var TosAndPp = require('../TosAndPp/TosAndPp.cjs');
|
|
46
46
|
var PinField = require('../PinField/PinField.cjs');
|
|
47
47
|
var ModalHeaderBanner = require('../ModalHeaderBanner/ModalHeaderBanner.cjs');
|
|
48
48
|
var shortenEmail = require('../../shared/utils/functions/shortenEmail/shortenEmail.cjs');
|
|
@@ -51,9 +51,9 @@ require('../Popper/PopperContext/PopperContext.cjs');
|
|
|
51
51
|
require('formik');
|
|
52
52
|
require('yup');
|
|
53
53
|
|
|
54
|
-
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error,
|
|
54
|
+
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, displayPoweredByDynamic = false, }) => {
|
|
55
55
|
const backButton = (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsxRuntime.jsx(chevronLeft.ReactComponent, {}) })));
|
|
56
|
-
return (jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail.shortenEmail(email) })), onClickEditEmail && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary' }, { children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) })) })))] }))] }))] })), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsxRuntime.
|
|
56
|
+
return (jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [jsxRuntime.jsx(ModalHeaderBanner.ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsxRuntime.jsx(ModalHeader.ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton }, { children: jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsxRuntime.jsx(IconWithStatus.IconWithStatus, { Icon: iconic.SignInWithEmailIcon, iconSize: 50, InnerIcon: check.ReactComponent })), !isValid && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsxRuntime.jsx(Typography.Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxRuntime.jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail.shortenEmail(email) })), onClickEditEmail && (jsxRuntime.jsx(IconButton.IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary' }, { children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) })) })))] }))] }))] })), jsxRuntime.jsx(PinField.PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsxRuntime.jsx("div", Object.assign({ className: 'otp-verification-view__footer' }, { children: displayPoweredByDynamic && jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {}) }))] })));
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
exports.OTPVerificationView = OTPVerificationView;
|
|
@@ -9,8 +9,6 @@ type OtpVerificationLayoutProps = {
|
|
|
9
9
|
onClickEditEmail?: MouseEventHandler<HTMLButtonElement>;
|
|
10
10
|
onPinChange?: (value: string) => void;
|
|
11
11
|
onPinComplete: (value: string) => void;
|
|
12
|
-
privacyPolicyUrl?: string;
|
|
13
|
-
termsOfServiceUrl?: string;
|
|
14
12
|
};
|
|
15
13
|
export declare const OTPVerificationView: FC<OtpVerificationLayoutProps>;
|
|
16
14
|
export {};
|
|
@@ -4,7 +4,6 @@ import 'react';
|
|
|
4
4
|
import { Typography } from '../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/wallet-connector-core';
|
|
9
8
|
import '../../context/ViewContext/ViewContext.js';
|
|
10
9
|
import { ReactComponent as SvgChevronLeft } from '../../shared/assets/chevron-left.js';
|
|
@@ -13,6 +12,7 @@ import { ReactComponent as SvgPencilAltIcon } from '../../shared/assets/pencil-a
|
|
|
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 '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
|
27
27
|
import '../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 '../ModalHeader/ModalHeader.js';
|
|
@@ -38,7 +39,6 @@ import '../Alert/Alert.js';
|
|
|
38
39
|
import '../../context/MockContext/MockContext.js';
|
|
39
40
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
40
41
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
41
|
-
import { TosAndPp } from '../TosAndPp/TosAndPp.js';
|
|
42
42
|
import { PinField } from '../PinField/PinField.js';
|
|
43
43
|
import { ModalHeaderBanner } from '../ModalHeaderBanner/ModalHeaderBanner.js';
|
|
44
44
|
import { shortenEmail } from '../../shared/utils/functions/shortenEmail/shortenEmail.js';
|
|
@@ -47,9 +47,9 @@ import '../Popper/PopperContext/PopperContext.js';
|
|
|
47
47
|
import 'formik';
|
|
48
48
|
import 'yup';
|
|
49
49
|
|
|
50
|
-
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error,
|
|
50
|
+
const OTPVerificationView = ({ onClickBack, onClickEditEmail, isLoading, email, onPinComplete, isValid, error, onPinChange, displayPoweredByDynamic = false, }) => {
|
|
51
51
|
const backButton = (jsx(IconButton, Object.assign({ type: 'button', onClick: onClickBack, "data-testid": 'back-button' }, { children: jsx(SvgChevronLeft, {}) })));
|
|
52
|
-
return (jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [jsx(ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsx(ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton }, { children: jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsx(IconWithStatus, { Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxs(Fragment, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail(email) })), onClickEditEmail && (jsx(IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary' }, { children: jsx(SvgPencilAltIcon, {}) })) })))] }))] }))] })), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }),
|
|
52
|
+
return (jsxs("div", Object.assign({ className: 'otp-verification-view' }, { children: [jsx(ModalHeaderBanner, { type: 'error', message: error === null || error === void 0 ? void 0 : error.message }), jsx(ModalHeader, Object.assign({ alignContent: 'bottom', leading: onClickBack && backButton }, { children: jsxs("div", Object.assign({ className: 'otp-verification-view__status-header' }, { children: [isValid && (jsx(IconWithStatus, { Icon: SignInWithEmailIcon, iconSize: 50, InnerIcon: SvgCheck })), !isValid && (jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: isLoading }))] })) })), jsx(Typography, Object.assign({ weight: 'medium', variant: 'title', color: 'primary', className: 'otp-verification-view__title' }, { children: isValid ? 'Verification code confirmed' : 'Confirm verification code' })), jsxs("div", Object.assign({ className: 'otp-verification-view__body' }, { children: [isValid && (jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "Hang tight while we get things ready for you" }))), !isValid && (jsxs(Fragment, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'regular', color: 'secondary' }, { children: "We\u2019ve sent a verification code to" })), jsxs("div", Object.assign({ className: 'otp-verification-view__email-container' }, { children: [jsx(Typography, Object.assign({ variant: 'body_normal', weight: 'bold', color: 'secondary' }, { children: shortenEmail(email) })), onClickEditEmail && (jsx(IconButton, Object.assign({ onClick: onClickEditEmail, "data-testid": 'otp-verification-view__edit-button' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary' }, { children: jsx(SvgPencilAltIcon, {}) })) })))] }))] }))] })), jsx(PinField, { initialValue: Array(6).join('.').split('.'), isLoading: isLoading, handleComplete: onPinComplete, isValidated: isValid, inputMode: 'numeric', pattern: '[0-9]*', hasError: Boolean(error), onChange: onPinChange }), jsx("div", Object.assign({ className: 'otp-verification-view__footer' }, { children: displayPoweredByDynamic && jsx(PoweredByDynamic, {}) }))] })));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export { OTPVerificationView };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export type OptionsSwitcherOption = {
|
|
3
3
|
key: string;
|
|
4
4
|
label?: string;
|
|
@@ -8,10 +8,10 @@ export type OptionsSwitcherClassNames = {
|
|
|
8
8
|
buttonClassName?: string;
|
|
9
9
|
rootClassName?: string;
|
|
10
10
|
};
|
|
11
|
-
export type OptionsSwitcherProps = {
|
|
12
|
-
onChange?: (key:
|
|
11
|
+
export type OptionsSwitcherProps<T> = {
|
|
12
|
+
onChange?: (key: T) => void;
|
|
13
13
|
options?: OptionsSwitcherOption[];
|
|
14
|
-
value?:
|
|
14
|
+
value?: T;
|
|
15
15
|
};
|
|
16
|
-
export type Props = OptionsSwitcherClassNames & OptionsSwitcherProps
|
|
17
|
-
export declare const OptionsSwitcher:
|
|
16
|
+
export type Props<T> = OptionsSwitcherClassNames & OptionsSwitcherProps<T>;
|
|
17
|
+
export declare const OptionsSwitcher: <T extends string>({ onChange, value, options, rootClassName, activeButtonClassName, buttonClassName, }: Props<T>) => JSX.Element;
|
|
@@ -13,16 +13,17 @@ require('@dynamic-labs/utils');
|
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
require('../../config/ApiEndpoint.cjs');
|
|
15
15
|
require('../../shared/logger.cjs');
|
|
16
|
-
require('../../config/LSSuffix.cjs');
|
|
17
16
|
require('@dynamic-labs/iconic');
|
|
18
17
|
require('@dynamic-labs/wallet-connector-core');
|
|
19
18
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
20
19
|
require('@dynamic-labs/wallet-book');
|
|
21
20
|
require('../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
22
22
|
require('ethers');
|
|
23
23
|
require('../../shared/consts/index.cjs');
|
|
24
24
|
require('@dynamic-labs/multi-wallet');
|
|
25
25
|
require('@dynamic-labs/rpc-providers');
|
|
26
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
26
27
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
27
28
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
28
29
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -9,16 +9,17 @@ import '@dynamic-labs/utils';
|
|
|
9
9
|
import '@dynamic-labs/sdk-api';
|
|
10
10
|
import '../../config/ApiEndpoint.js';
|
|
11
11
|
import '../../shared/logger.js';
|
|
12
|
-
import '../../config/LSSuffix.js';
|
|
13
12
|
import '@dynamic-labs/iconic';
|
|
14
13
|
import '@dynamic-labs/wallet-connector-core';
|
|
15
14
|
import '../../context/ViewContext/ViewContext.js';
|
|
16
15
|
import '@dynamic-labs/wallet-book';
|
|
17
16
|
import '../../utils/constants/colors.js';
|
|
17
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
18
18
|
import 'ethers';
|
|
19
19
|
import '../../shared/consts/index.js';
|
|
20
20
|
import '@dynamic-labs/multi-wallet';
|
|
21
21
|
import '@dynamic-labs/rpc-providers';
|
|
22
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
22
23
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
23
24
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
25
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -13,16 +13,17 @@ require('@dynamic-labs/utils');
|
|
|
13
13
|
require('@dynamic-labs/sdk-api');
|
|
14
14
|
require('../../config/ApiEndpoint.cjs');
|
|
15
15
|
require('../../shared/logger.cjs');
|
|
16
|
-
require('../../config/LSSuffix.cjs');
|
|
17
16
|
require('@dynamic-labs/iconic');
|
|
18
17
|
require('@dynamic-labs/wallet-connector-core');
|
|
19
18
|
var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
|
|
20
19
|
require('@dynamic-labs/wallet-book');
|
|
21
20
|
require('../../utils/constants/colors.cjs');
|
|
21
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
22
22
|
require('ethers');
|
|
23
23
|
require('../../shared/consts/index.cjs');
|
|
24
24
|
require('@dynamic-labs/multi-wallet');
|
|
25
25
|
require('@dynamic-labs/rpc-providers');
|
|
26
|
+
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
26
27
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
27
28
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
28
29
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
@@ -71,7 +72,7 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
71
72
|
onBackdropClick(e);
|
|
72
73
|
}, onKeyDown: handleKeyClose, tabIndex: 0, "aria-label": 'Close modal',
|
|
73
74
|
// z-index - 2 to ensure that the backdrop is always behind the content
|
|
74
|
-
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'modal__backdrop' })), jsxRuntime.jsx("div", Object.assign({
|
|
75
|
+
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'modal__backdrop' })), jsxRuntime.jsx("div", Object.assign({ style: { zIndex } }, { children: children }))] })));
|
|
75
76
|
};
|
|
76
77
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
77
78
|
const modalRootElementRef = useElementById.useElementById(elementId);
|
|
@@ -9,16 +9,17 @@ import '@dynamic-labs/utils';
|
|
|
9
9
|
import '@dynamic-labs/sdk-api';
|
|
10
10
|
import '../../config/ApiEndpoint.js';
|
|
11
11
|
import '../../shared/logger.js';
|
|
12
|
-
import '../../config/LSSuffix.js';
|
|
13
12
|
import '@dynamic-labs/iconic';
|
|
14
13
|
import '@dynamic-labs/wallet-connector-core';
|
|
15
14
|
import { useViewContext } from '../../context/ViewContext/ViewContext.js';
|
|
16
15
|
import '@dynamic-labs/wallet-book';
|
|
17
16
|
import '../../utils/constants/colors.js';
|
|
17
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
18
18
|
import 'ethers';
|
|
19
19
|
import '../../shared/consts/index.js';
|
|
20
20
|
import '@dynamic-labs/multi-wallet';
|
|
21
21
|
import '@dynamic-labs/rpc-providers';
|
|
22
|
+
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
22
23
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
23
24
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
25
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
@@ -63,7 +64,7 @@ const ModalComponent = ({ children, handleClose, withBackdrop = true, zIndex, wh
|
|
|
63
64
|
onBackdropClick(e);
|
|
64
65
|
}, onKeyDown: handleKeyClose, tabIndex: 0, "aria-label": 'Close modal',
|
|
65
66
|
// z-index - 2 to ensure that the backdrop is always behind the content
|
|
66
|
-
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'modal__backdrop' })), jsx("div", Object.assign({
|
|
67
|
+
style: { zIndex: zIndex ? zIndex - 2 : undefined }, className: 'modal__backdrop' })), jsx("div", Object.assign({ style: { zIndex } }, { children: children }))] })));
|
|
67
68
|
};
|
|
68
69
|
const Portal = ({ children, isShown, handleClose, withBackdrop, zIndex, transitionEvents, elementId = 'dynamic-modal', }) => {
|
|
69
70
|
const modalRootElementRef = useElementById(elementId);
|
|
@@ -7,6 +7,6 @@ require('react');
|
|
|
7
7
|
var search = require('../../assets/search.cjs');
|
|
8
8
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
9
9
|
|
|
10
|
-
const Search = ({ className = '', id, label, type, onChange, onBlur, name, value, onClickClear, }) => (jsxRuntime.jsxs("label", Object.assign({ htmlFor: id, className: classNames.classNames('search__container', value ? 'search__container--active' : undefined) }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'search-icon__container' }, { children: jsxRuntime.jsx(search.ReactComponent, {}) })), jsxRuntime.jsx("input", { name: name, value: value, onChange: onChange, onBlur: onBlur, type: type, id: id, placeholder: label, className: classNames.classNames('search__input', className) }), value.length > 0 && (jsxRuntime.jsx("button", Object.assign({ type: 'button', onClick: onClickClear, className: 'search__button--clear' }, { children: "Clear" })))] })));
|
|
10
|
+
const Search = ({ className = '', id, label, type, onChange, onBlur, name, value, onClickClear, }) => (jsxRuntime.jsxs("label", Object.assign({ htmlFor: id, className: classNames.classNames('search__container', value ? 'search__container--active' : undefined) }, { children: [jsxRuntime.jsx("div", Object.assign({ className: 'search-icon__container' }, { children: jsxRuntime.jsx(search.ReactComponent, {}) })), jsxRuntime.jsx("input", { name: name, value: value, onChange: onChange, onBlur: onBlur, type: type, id: id, placeholder: label, className: classNames.classNames('search__input', className), "data-testid": 'Search' }), value.length > 0 && (jsxRuntime.jsx("button", Object.assign({ type: 'button', onClick: onClickClear, className: 'search__button--clear' }, { children: "Clear" })))] })));
|
|
11
11
|
|
|
12
12
|
exports.Search = Search;
|
|
@@ -3,6 +3,6 @@ import 'react';
|
|
|
3
3
|
import { ReactComponent as SvgSearch } from '../../assets/search.js';
|
|
4
4
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
5
5
|
|
|
6
|
-
const Search = ({ className = '', id, label, type, onChange, onBlur, name, value, onClickClear, }) => (jsxs("label", Object.assign({ htmlFor: id, className: classNames('search__container', value ? 'search__container--active' : undefined) }, { children: [jsx("div", Object.assign({ className: 'search-icon__container' }, { children: jsx(SvgSearch, {}) })), jsx("input", { name: name, value: value, onChange: onChange, onBlur: onBlur, type: type, id: id, placeholder: label, className: classNames('search__input', className) }), value.length > 0 && (jsx("button", Object.assign({ type: 'button', onClick: onClickClear, className: 'search__button--clear' }, { children: "Clear" })))] })));
|
|
6
|
+
const Search = ({ className = '', id, label, type, onChange, onBlur, name, value, onClickClear, }) => (jsxs("label", Object.assign({ htmlFor: id, className: classNames('search__container', value ? 'search__container--active' : undefined) }, { children: [jsx("div", Object.assign({ className: 'search-icon__container' }, { children: jsx(SvgSearch, {}) })), jsx("input", { name: name, value: value, onChange: onChange, onBlur: onBlur, type: type, id: id, placeholder: label, className: classNames('search__input', className), "data-testid": 'Search' }), value.length > 0 && (jsx("button", Object.assign({ type: 'button', onClick: onClickClear, className: 'search__button--clear' }, { children: "Clear" })))] })));
|
|
7
7
|
|
|
8
8
|
export { Search };
|
|
@@ -7,7 +7,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
|
-
require('../../config/LSSuffix.cjs');
|
|
11
10
|
require('@dynamic-labs/iconic');
|
|
12
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
12
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
@@ -15,6 +14,7 @@ var arrowDown = require('../../shared/assets/arrow-down.cjs');
|
|
|
15
14
|
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 classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -3,7 +3,6 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useState, useLayoutEffect } from 'react';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
|
-
import '../../config/LSSuffix.js';
|
|
7
6
|
import '@dynamic-labs/iconic';
|
|
8
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
8
|
import '../../context/ViewContext/ViewContext.js';
|
|
@@ -11,6 +10,7 @@ import { ReactComponent as SvgArrowDown } from '../../shared/assets/arrow-down.j
|
|
|
11
10
|
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 { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
7
|
+
var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
|
|
8
|
+
var PoweredByDynamic = require('../PoweredByDynamic/PoweredByDynamic.cjs');
|
|
9
|
+
|
|
10
|
+
const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100, isSpinning: true }), jsxRuntime.jsxs("div", Object.assign({ className: 'select-wallet-chain-layout__body' }, { children: [jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title' }, { children: "Select Chain" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal' }, { children: "This wallet supports multiple chains. Select which chain you'd like to connect to" })), jsxRuntime.jsx("div", Object.assign({ className: 'select-wallet-chain-layout__list' }, { children: children }))] })), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
|
|
11
|
+
|
|
12
|
+
exports.SelectWalletChainLayout = SelectWalletChainLayout;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
type SelectWalletChainLayoutProps = {
|
|
3
3
|
HeaderIcon?: ReactElement;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
onBack?: () => void;
|
|
6
4
|
};
|
|
7
5
|
export declare const SelectWalletChainLayout: FC<PropsWithChildren<SelectWalletChainLayoutProps>>;
|
|
8
6
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '../Typography/Typography.js';
|
|
3
|
+
import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
|
|
4
|
+
import { PoweredByDynamic } from '../PoweredByDynamic/PoweredByDynamic.js';
|
|
5
|
+
|
|
6
|
+
const SelectWalletChainLayout = ({ children, HeaderIcon }) => (jsxs("div", { children: [jsx(IconWithSpinner, { className: 'select-wallet-chain-layout__icon', Icon: HeaderIcon, iconSize: 100, isSpinning: true }), jsxs("div", Object.assign({ className: 'select-wallet-chain-layout__body' }, { children: [jsx(Typography, Object.assign({ className: 'select-wallet-chain-layout__title', as: 'h6', color: 'primary', variant: 'title' }, { children: "Select Chain" })), jsx(Typography, Object.assign({ className: 'select-wallet-chain-layout__text', as: 'p', color: 'secondary', variant: 'body_normal' }, { children: "This wallet supports multiple chains. Select which chain you'd like to connect to" })), jsx("div", Object.assign({ className: 'select-wallet-chain-layout__list' }, { children: children }))] })), jsx(PoweredByDynamic, { classNameRoot: 'select-wallet-chain-layout__powered-by' })] }));
|
|
7
|
+
|
|
8
|
+
export { SelectWalletChainLayout };
|
|
@@ -8,7 +8,6 @@ var walletBook = require('@dynamic-labs/wallet-book');
|
|
|
8
8
|
var IconButton = require('../IconButton/IconButton.cjs');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../shared/logger.cjs');
|
|
11
|
-
require('../../config/LSSuffix.cjs');
|
|
12
11
|
require('@dynamic-labs/iconic');
|
|
13
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
14
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
@@ -17,6 +16,7 @@ var chevronLeft = require('../../shared/assets/chevron-left.cjs');
|
|
|
17
16
|
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
18
17
|
require('@dynamic-labs/utils');
|
|
19
18
|
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
20
|
require('ethers');
|
|
21
21
|
require('../../shared/consts/index.cjs');
|
|
22
22
|
var ModalHeader = require('../ModalHeader/ModalHeader.cjs');
|
|
@@ -4,7 +4,6 @@ import { WalletIcon } from '@dynamic-labs/wallet-book';
|
|
|
4
4
|
import { IconButton } from '../IconButton/IconButton.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 SvgChevronLeft } from '../../shared/assets/chevron-le
|
|
|
13
12
|
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
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 { ModalHeader } from '../ModalHeader/ModalHeader.js';
|
package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs
CHANGED
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
require('@dynamic-labs/sdk-api');
|
|
7
7
|
require('../../../../shared/logger.cjs');
|
|
8
|
-
require('../../../../config/LSSuffix.cjs');
|
|
9
8
|
var getChainIcon = require('../../../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
10
9
|
require('@dynamic-labs/wallet-connector-core');
|
|
11
10
|
require('@dynamic-labs/wallet-book');
|
|
12
11
|
require('@dynamic-labs/utils');
|
|
13
12
|
require('../../../../utils/constants/colors.cjs');
|
|
13
|
+
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
14
14
|
require('ethers');
|
|
15
15
|
require('react');
|
|
16
16
|
require('@dynamic-labs/iconic');
|
package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import '@dynamic-labs/sdk-api';
|
|
3
3
|
import '../../../../shared/logger.js';
|
|
4
|
-
import '../../../../config/LSSuffix.js';
|
|
5
4
|
import { getChainIcon } from '../../../../shared/utils/functions/chain/getChainIcon.js';
|
|
6
5
|
import '@dynamic-labs/wallet-connector-core';
|
|
7
6
|
import '@dynamic-labs/wallet-book';
|
|
8
7
|
import '@dynamic-labs/utils';
|
|
9
8
|
import '../../../../utils/constants/colors.js';
|
|
9
|
+
import '../../../../shared/utils/classes/storage/localStorage.js';
|
|
10
10
|
import 'ethers';
|
|
11
11
|
import 'react';
|
|
12
12
|
import '@dynamic-labs/iconic';
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('@dynamic-labs/sdk-api');
|
|
6
6
|
require('../../shared/logger.cjs');
|
|
7
|
-
require('../../config/LSSuffix.cjs');
|
|
8
7
|
require('@dynamic-labs/iconic');
|
|
9
8
|
require('@dynamic-labs/wallet-connector-core');
|
|
10
9
|
require('react/jsx-runtime');
|
|
@@ -14,6 +13,7 @@ require('@dynamic-labs/wallet-book');
|
|
|
14
13
|
var isSSR = require('../../shared/utils/functions/isSSR/isSSR.cjs');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@dynamic-labs/sdk-api';
|
|
2
2
|
import '../../shared/logger.js';
|
|
3
|
-
import '../../config/LSSuffix.js';
|
|
4
3
|
import '@dynamic-labs/iconic';
|
|
5
4
|
import '@dynamic-labs/wallet-connector-core';
|
|
6
5
|
import 'react/jsx-runtime';
|
|
@@ -10,6 +9,7 @@ import '@dynamic-labs/wallet-book';
|
|
|
10
9
|
import { isSSR } from '../../shared/utils/functions/isSSR/isSSR.js';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
require('@dynamic-labs/sdk-api');
|
|
7
7
|
require('../../shared/logger.cjs');
|
|
8
|
-
require('../../config/LSSuffix.cjs');
|
|
9
8
|
require('@dynamic-labs/iconic');
|
|
10
9
|
require('@dynamic-labs/wallet-connector-core');
|
|
11
10
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
@@ -14,6 +13,7 @@ var spinner = require('../../shared/assets/spinner.cjs');
|
|
|
14
13
|
require('@dynamic-labs/wallet-book');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
require('../../shared/consts/index.cjs');
|
|
19
19
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import '@dynamic-labs/sdk-api';
|
|
3
3
|
import '../../shared/logger.js';
|
|
4
|
-
import '../../config/LSSuffix.js';
|
|
5
4
|
import '@dynamic-labs/iconic';
|
|
6
5
|
import '@dynamic-labs/wallet-connector-core';
|
|
7
6
|
import '../../context/ViewContext/ViewContext.js';
|
|
@@ -10,6 +9,7 @@ import { ReactComponent as SvgSpinner } from '../../shared/assets/spinner.js';
|
|
|
10
9
|
import '@dynamic-labs/wallet-book';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import '../../shared/consts/index.js';
|
|
15
15
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
7
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
8
|
+
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
9
|
+
require('@dynamic-labs/sdk-api');
|
|
10
|
+
require('../../shared/logger.cjs');
|
|
11
|
+
require('@dynamic-labs/iconic');
|
|
12
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
|
+
require('react');
|
|
15
|
+
var check = require('../../shared/assets/check.cjs');
|
|
16
|
+
require('@dynamic-labs/wallet-book');
|
|
17
|
+
require('@dynamic-labs/utils');
|
|
18
|
+
require('../../utils/constants/colors.cjs');
|
|
19
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
|
+
require('ethers');
|
|
21
|
+
require('../../shared/consts/index.cjs');
|
|
22
|
+
|
|
23
|
+
const Step = ({ children, className, icon, checked = false, }) => (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('step', className) }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'step__leading' }, { children: [icon ? (jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'step__icon' }, { children: icon }))) : (jsxRuntime.jsx("div", Object.assign({ className: 'step__index' }, { children: jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'body_small' }, { children: jsxRuntime.jsx("span", { className: 'step__index-label' }) })) }))), checked && (jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'step__check-mark' }, { children: jsxRuntime.jsx(check.ReactComponent, {}) })))] })), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'body_small' }, { children: children }))] })));
|
|
24
|
+
|
|
25
|
+
exports.Step = Step;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '../Typography/Typography.js';
|
|
3
|
+
import { Icon } from '../Icon/Icon.js';
|
|
4
|
+
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
5
|
+
import '@dynamic-labs/sdk-api';
|
|
6
|
+
import '../../shared/logger.js';
|
|
7
|
+
import '@dynamic-labs/iconic';
|
|
8
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
9
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
12
|
+
import '@dynamic-labs/wallet-book';
|
|
13
|
+
import '@dynamic-labs/utils';
|
|
14
|
+
import '../../utils/constants/colors.js';
|
|
15
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
16
|
+
import 'ethers';
|
|
17
|
+
import '../../shared/consts/index.js';
|
|
18
|
+
|
|
19
|
+
const Step = ({ children, className, icon, checked = false, }) => (jsxs("div", Object.assign({ className: classNames('step', className) }, { children: [jsxs("div", Object.assign({ className: 'step__leading' }, { children: [icon ? (jsx(Icon, Object.assign({ className: 'step__icon' }, { children: icon }))) : (jsx("div", Object.assign({ className: 'step__index' }, { children: jsx(Typography, Object.assign({ color: 'primary', variant: 'body_small' }, { children: jsx("span", { className: 'step__index-label' }) })) }))), checked && (jsx(Icon, Object.assign({ className: 'step__check-mark' }, { children: jsx(SvgCheck, {}) })))] })), jsx(Typography, Object.assign({ color: 'primary', variant: 'body_small' }, { children: children }))] })));
|
|
20
|
+
|
|
21
|
+
export { Step };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var Divider = require('../Divider/Divider.cjs');
|
|
8
|
+
|
|
9
|
+
const Stepper = ({ children }) => (jsxRuntime.jsx("div", Object.assign({ className: 'stepper' }, { children: React.Children.map(children, (step, index) => {
|
|
10
|
+
const divider = index === 0 ? undefined : jsxRuntime.jsx(Divider.Divider, { className: 'stepper__divider' });
|
|
11
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [divider, step] }));
|
|
12
|
+
}) })));
|
|
13
|
+
|
|
14
|
+
exports.Stepper = Stepper;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Children } from 'react';
|
|
3
|
+
import { Divider } from '../Divider/Divider.js';
|
|
4
|
+
|
|
5
|
+
const Stepper = ({ children }) => (jsx("div", Object.assign({ className: 'stepper' }, { children: Children.map(children, (step, index) => {
|
|
6
|
+
const divider = index === 0 ? undefined : jsx(Divider, { className: 'stepper__divider' });
|
|
7
|
+
return (jsxs(Fragment, { children: [divider, step] }));
|
|
8
|
+
}) })));
|
|
9
|
+
|
|
10
|
+
export { Stepper };
|
|
@@ -7,13 +7,13 @@ var React = require('react');
|
|
|
7
7
|
var Typography = require('../Typography/Typography.cjs');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
|
-
require('../../config/LSSuffix.cjs');
|
|
11
10
|
require('@dynamic-labs/iconic');
|
|
12
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
13
12
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
13
|
require('@dynamic-labs/wallet-book');
|
|
15
14
|
require('@dynamic-labs/utils');
|
|
16
15
|
require('../../utils/constants/colors.cjs');
|
|
16
|
+
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
var index = require('../../shared/consts/index.cjs');
|
|
19
19
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
@@ -3,13 +3,13 @@ import { useMemo } from 'react';
|
|
|
3
3
|
import { Typography } from '../Typography/Typography.js';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
|
-
import '../../config/LSSuffix.js';
|
|
7
6
|
import '@dynamic-labs/iconic';
|
|
8
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
9
8
|
import '../../context/ViewContext/ViewContext.js';
|
|
10
9
|
import '@dynamic-labs/wallet-book';
|
|
11
10
|
import '@dynamic-labs/utils';
|
|
12
11
|
import '../../utils/constants/colors.js';
|
|
12
|
+
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import { toolkitZIndex } from '../../shared/consts/index.js';
|
|
15
15
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs
CHANGED
|
@@ -6,7 +6,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var useInternalDynamicContext = require('../../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
7
7
|
require('@dynamic-labs/sdk-api');
|
|
8
8
|
require('../../../shared/logger.cjs');
|
|
9
|
-
require('../../../config/LSSuffix.cjs');
|
|
10
9
|
require('@dynamic-labs/iconic');
|
|
11
10
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
11
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
@@ -16,6 +15,7 @@ var isDisplayOrderPriorityForWeb3 = require('../../../shared/utils/functions/isD
|
|
|
16
15
|
var isDisplayOrderPriorityForWeb2 = require('../../../shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.cjs');
|
|
17
16
|
require('@dynamic-labs/utils');
|
|
18
17
|
require('../../../utils/constants/colors.cjs');
|
|
18
|
+
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
19
19
|
require('ethers');
|
|
20
20
|
require('../../../shared/consts/index.cjs');
|
|
21
21
|
var Switch = require('../../Switch/Switch.cjs');
|