@dynamic-labs/sdk-react-core 0.18.0-RC.9 → 0.18.0-beta.29
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 +272 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +9 -9
- package/src/index.cjs +11 -0
- package/src/index.d.ts +3 -1
- package/src/index.js +7 -0
- package/src/lib/Main.cjs +52 -8
- package/src/lib/Main.js +52 -8
- package/src/lib/assets/index.d.ts +1 -0
- package/src/lib/assets/no-wallet-found.cjs +75 -0
- package/src/lib/assets/no-wallet-found.js +51 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +3 -0
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +3 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +3 -0
- package/src/lib/components/AnimatePresence/AnimatePresence.js +3 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +3 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +3 -0
- package/src/lib/components/Button/Button.cjs +12 -4
- package/src/lib/components/Button/Button.d.ts +3 -2
- package/src/lib/components/Button/Button.js +12 -4
- package/src/lib/components/ChainCard/ChainCard.cjs +1 -1
- package/src/lib/components/ChainCard/ChainCard.js +1 -1
- package/src/lib/components/Divider/Divider.cjs +3 -0
- package/src/lib/components/Divider/Divider.js +3 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -2
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -2
- package/src/lib/components/InlineWidget/InlineWidget.cjs +12 -0
- package/src/lib/components/InlineWidget/InlineWidget.d.ts +7 -0
- package/src/lib/components/InlineWidget/InlineWidget.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs +12 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js +8 -0
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/components/index.d.ts +1 -0
- package/src/lib/components/InlineWidget/index.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.cjs +9 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.d.ts +2 -0
- package/src/lib/components/LegacySafariCssOverrides/LegacySafariCssOverrides.js +5 -0
- package/src/lib/components/LegacySafariCssOverrides/index.d.ts +1 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +17 -3
- package/src/lib/components/LogoutButton/LogoutButton.js +17 -3
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +86 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.d.ts +16 -0
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +82 -0
- package/src/lib/components/MenuList/Dropdown/index.d.ts +1 -0
- package/src/lib/components/MenuList/MenuList/MenuList.cjs +34 -0
- package/src/lib/components/MenuList/MenuList/MenuList.d.ts +15 -0
- package/src/lib/components/MenuList/MenuList/MenuList.js +30 -0
- package/src/lib/components/MenuList/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/index.d.ts +1 -0
- package/src/lib/components/MenuList/utils/index.d.ts +1 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs +6 -1
- package/src/lib/components/MenuList/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +5 -0
- package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js +6 -1
- package/src/lib/components/Modal/Modal.cjs +3 -0
- package/src/lib/components/Modal/Modal.js +3 -0
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +12 -13
- package/src/lib/components/NetworkPicker/NetworkPicker.js +12 -13
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +3 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/Network/Network.js +3 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +3 -0
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +3 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +3 -0
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +3 -0
- package/src/lib/components/OverlayCard/OverlayCard.cjs +12 -11
- package/src/lib/components/OverlayCard/OverlayCard.d.ts +4 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +13 -11
- package/src/lib/components/Popper/Popper/Popper.cjs +12 -12
- package/src/lib/components/Popper/Popper/Popper.d.ts +7 -4
- package/src/lib/components/Popper/Popper/Popper.js +12 -12
- package/src/lib/components/Popper/PopperContent/PopperContent.cjs +1 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.d.ts +2 -1
- package/src/lib/components/Popper/PopperContent/PopperContent.js +1 -1
- package/src/lib/components/Popper/PopperContext/PopperContext.js +1 -1
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.cjs +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.d.ts +1 -0
- package/src/lib/components/Popper/utils/getChildPosition/getChildPosition.js +1 -0
- package/src/lib/components/Popper/utils/index.d.ts +0 -1
- package/src/lib/components/Portal/Portal.cjs +5 -2
- package/src/lib/components/Portal/Portal.js +5 -2
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.cjs +9 -1
- package/src/lib/components/PoweredByDynamic/PoweredByDynamic.js +9 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/ShadowDOM/ShadowDOM.cjs +4 -2
- package/src/lib/components/ShadowDOM/ShadowDOM.js +4 -2
- package/src/lib/components/Step/Step.cjs +23 -2
- package/src/lib/components/Step/Step.d.ts +2 -3
- package/src/lib/components/Step/Step.js +24 -3
- package/src/lib/components/Toolkit/Toolkit.cjs +3 -3
- package/src/lib/components/Toolkit/Toolkit.js +3 -3
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.cjs +18 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.d.ts +8 -0
- package/src/lib/components/Toolkit/components/MultiWalletSwitch.js +14 -0
- package/src/lib/components/Toolkit/components/index.d.ts +1 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +3 -0
- package/src/lib/components/Tooltip/Tooltip.js +3 -0
- package/src/lib/components/TosAndPp/TosAndPp.cjs +18 -3
- package/src/lib/components/TosAndPp/TosAndPp.d.ts +1 -6
- package/src/lib/components/TosAndPp/TosAndPp.js +19 -4
- 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 +4 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +4 -1
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +3 -0
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +3 -0
- package/src/lib/components/UserAddress/UserAddress.cjs +4 -1
- package/src/lib/components/UserAddress/UserAddress.js +4 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +6 -14
- package/src/lib/components/UserProfile/UserProfile.js +6 -14
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +3 -0
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +15 -64
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.d.ts +2 -4
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +15 -64
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +33 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +11 -0
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +29 -0
- package/src/lib/components/WalletInformationCard/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +3 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.cjs +27 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.d.ts +17 -0
- package/src/lib/context/AccountExistsContext/AccountExistsContext.js +21 -0
- package/src/lib/context/AccountExistsContext/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +156 -76
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +12 -132
- package/src/lib/context/DynamicContext/DynamicContext.js +157 -78
- package/src/lib/context/DynamicContext/helpers.cjs +6 -5
- package/src/lib/context/DynamicContext/helpers.d.ts +4 -2
- package/src/lib/context/DynamicContext/helpers.js +6 -5
- package/src/lib/context/DynamicContext/hooks/index.d.ts +4 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +1 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +1 -1
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +33 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.d.ts +1 -0
- package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +29 -0
- package/src/lib/context/DynamicContext/types/index.d.ts +146 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/types.d.ts +7 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +3 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +3 -0
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +9 -3
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.d.ts +1 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +9 -3
- package/src/lib/context/DynamicContext/useDynamicContext.cjs +8 -3
- package/src/lib/context/DynamicContext/useDynamicContext.d.ts +2 -2
- package/src/lib/context/DynamicContext/useDynamicContext.js +8 -3
- package/src/lib/context/DynamicContext/useInternalDynamicContext.d.ts +1 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +13 -1
- package/src/lib/context/FundingContext/FundingContext.js +13 -1
- package/src/lib/context/MockContext/MockContext.cjs +36 -2
- package/src/lib/context/MockContext/MockContext.d.ts +1 -1
- package/src/lib/context/MockContext/MockContext.js +36 -2
- package/src/lib/context/MockContext/constants/index.cjs +64 -0
- package/src/lib/context/MockContext/constants/index.d.ts +2 -0
- package/src/lib/context/MockContext/constants/index.js +60 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +3 -0
- package/src/lib/context/QrCodeContext/QrCodeContext.js +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +3 -0
- package/src/lib/context/SendBalanceContext/SendBalanceContext.js +3 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +5 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -3
- package/src/lib/context/ViewContext/ViewContext.d.ts +1 -1
- package/src/lib/context/WalletContext/WalletContext.cjs +4 -1
- package/src/lib/context/WalletContext/WalletContext.js +4 -1
- package/src/lib/data/api.cjs +27 -0
- package/src/lib/data/api.d.ts +4 -0
- package/src/lib/data/api.js +28 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +6 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +6 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +4 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/NewToWeb3WalletItem/NewToWeb3WalletItem.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +3 -0
- package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +3 -0
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +7 -3
- package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +7 -3
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +7 -4
- package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +7 -4
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.cjs +18 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.d.ts +3 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/getChainStepState.js +14 -0
- package/src/lib/layout/DynamicAuthLayout/utils/getChainStepState/index.d.ts +1 -0
- package/src/lib/layout/DynamicAuthLayout/utils/index.d.ts +1 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +54 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.d.ts +9 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +50 -0
- package/src/lib/layouts/BridgeNextWalletToConnectLayout/index.d.ts +1 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +3 -0
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +3 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +5 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +1 -0
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +5 -2
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +3 -0
- package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +3 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -0
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +3 -0
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +3 -0
- package/src/lib/shared/types/index.d.ts +6 -2
- package/src/lib/shared/utils/classes/storage/localStorage.cjs +36 -24
- package/src/lib/shared/utils/classes/storage/localStorage.d.ts +16 -3
- package/src/lib/shared/utils/classes/storage/localStorage.js +37 -25
- package/src/lib/shared/utils/hooks/index.d.ts +2 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.cjs +27 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.d.ts +17 -0
- package/src/lib/shared/utils/hooks/useEffectOnce/useEffectOnce.js +23 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.cjs +25 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.d.ts +2 -0
- package/src/lib/shared/utils/hooks/useForwardedRef/useForwardedRef.js +21 -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 +3 -1
- package/src/lib/utils/constants/localStorage.d.ts +1 -0
- package/src/lib/utils/constants/localStorage.js +3 -2
- package/src/lib/utils/constants/onrampProviders.cjs +7 -0
- package/src/lib/utils/constants/onrampProviders.d.ts +1 -0
- package/src/lib/utils/constants/onrampProviders.js +3 -0
- package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +10 -1
- package/src/lib/utils/functions/createUserProfile/createUserProfile.js +10 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +3 -3
- package/src/lib/utils/functions/generateMessages/index.d.ts +1 -1
- package/src/lib/utils/functions/generateMessages/index.js +3 -3
- package/src/lib/utils/functions/getAuthToken/getAuthToken.cjs +2 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.d.ts +1 -1
- package/src/lib/utils/functions/getAuthToken/getAuthToken.js +2 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +1 -0
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +1 -0
- package/src/lib/utils/functions/getMissingChains/getMissingChains.cjs +1 -1
- package/src/lib/utils/functions/getMissingChains/getMissingChains.d.ts +1 -1
- package/src/lib/utils/functions/getMissingChains/getMissingChains.js +1 -1
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.cjs +2 -2
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.d.ts +3 -3
- package/src/lib/utils/functions/getVerifyArgs/getVerifyArgs.js +2 -2
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.cjs +12 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.d.ts +3 -0
- package/src/lib/utils/functions/getWalletConnectorNetworks/getWalletConnectorNetworks.js +8 -0
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.cjs +3 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.d.ts +1 -1
- package/src/lib/utils/functions/getWalletVerifiedCredential/getWalletVerifiedCredential.js +3 -1
- package/src/lib/utils/functions/index.d.ts +3 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.cjs +1 -0
- package/src/lib/utils/functions/isEmailProviderEnabled/isEmailProviderEnabled.js +1 -0
- package/src/lib/utils/functions/isOnrampProvider/index.d.ts +1 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.cjs +9 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.d.ts +2 -0
- package/src/lib/utils/functions/isOnrampProvider/isOnrampProvider.js +5 -0
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +2 -2
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.d.ts +1 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +2 -2
- package/src/lib/utils/functions/isSocialKycEnabled/index.d.ts +1 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.cjs +7 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.d.ts +2 -0
- package/src/lib/utils/functions/isSocialKycEnabled/isSocialKycEnabled.js +3 -0
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.cjs +8 -8
- package/src/lib/utils/functions/isSupportedNetwork/isSupportedNetwork.js +8 -8
- package/src/lib/utils/functions/storeAuthToken/index.cjs +1 -3
- package/src/lib/utils/functions/storeAuthToken/index.js +1 -3
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.cjs +1 -1
- package/src/lib/utils/hooks/authenticationHooks/helpers/showPendingConnectView.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +21 -9
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +3 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +22 -10
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +11 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +11 -2
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +1 -16
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +5 -2
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +5 -2
- package/src/lib/utils/hooks/index.d.ts +2 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/index.d.ts +1 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +16 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +5 -0
- package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +12 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +22 -5
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +5 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +22 -5
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +9 -11
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +9 -11
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.cjs +29 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.d.ts +5 -0
- package/src/lib/utils/hooks/useApplyWalletConnectorNetwork/useApplyWalletConnectorNetwork.js +25 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +13 -6
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +13 -6
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +1 -0
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +124 -83
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +14 -10
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +126 -85
- package/src/lib/utils/hooks/useConnectWithEmail/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +6 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.d.ts +1 -4
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +6 -4
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.cjs +13 -23
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useConnectedAccountWallet/useConnectedAccountWallet.js +13 -23
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.cjs +69 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectedWalletsNetworkValidation/useConnectedWalletsNetworkValidation.js +65 -0
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useDynamicScopes/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.cjs +40 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.d.ts +6 -0
- package/src/lib/utils/hooks/useDynamicScopes/useDynamicScopes.js +36 -0
- package/src/lib/utils/hooks/useEmailProvider/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.cjs +54 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.d.ts +10 -0
- package/src/lib/utils/hooks/useEmailProvider/useEmailProvider.js +50 -0
- package/src/lib/utils/hooks/useEventListener/index.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.cjs +25 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.d.ts +1 -0
- package/src/lib/utils/hooks/useEventListener/useEventListener.js +21 -0
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +2 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.d.ts +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +3 -2
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.cjs +10 -5
- package/src/lib/utils/hooks/useHandleWalletsToConnect/useHandleWalletsToConnect.js +10 -5
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +17 -2
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +17 -2
- package/src/lib/utils/hooks/usePromise/usePromise.cjs +92 -32
- package/src/lib/utils/hooks/usePromise/usePromise.d.ts +33 -6
- package/src/lib/utils/hooks/usePromise/usePromise.js +93 -33
- package/src/lib/utils/hooks/usePromise/usePromise.types.d.ts +9 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.cjs +18 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.d.ts +13 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/createReducer.js +14 -0
- package/src/lib/utils/hooks/usePromise/utils/createReducer/index.d.ts +1 -0
- package/src/lib/utils/hooks/usePromise/utils/index.d.ts +2 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/index.d.ts +1 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.cjs +32 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.d.ts +5 -0
- package/src/lib/utils/hooks/usePromise/utils/resolveFetcher/resolveFetcher.js +28 -0
- package/src/lib/utils/hooks/useSocialAccounts/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +159 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +10 -0
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +155 -0
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs +4 -3
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.d.ts +1 -1
- package/src/lib/utils/hooks/useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.js +4 -3
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs +32 -6
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.d.ts +8 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js +33 -7
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +3 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +3 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +18 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.d.ts +2 -2
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +19 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +12 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.d.ts +4 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +12 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +43 -10
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +5 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +43 -10
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +7 -6
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +7 -6
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +3 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +3 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +73 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.d.ts +2 -0
- package/src/lib/views/AccountExistsView/AccountExistsView.js +69 -0
- package/src/lib/views/AccountExistsView/index.d.ts +1 -0
- 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 +17 -12
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +17 -12
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +2 -2
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +2 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +5 -3
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +5 -3
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -1
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +13 -3
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +13 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +3 -0
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +3 -0
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +8 -4
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +8 -4
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +4 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +4 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +4 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +4 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +3 -0
- package/src/lib/views/EmailUpdate/EmailUpdate.js +3 -0
- package/src/lib/views/EmailVerification/EmailVerification.cjs +13 -4
- package/src/lib/views/EmailVerification/EmailVerification.js +14 -5
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +3 -0
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +3 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +3 -0
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +3 -0
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +27 -51
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +27 -51
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +2 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +2 -2
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +10 -5
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +10 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +34 -22
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +35 -23
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +36 -26
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +36 -26
- package/src/lib/views/NoAccess/NoAccess.cjs +14 -20
- package/src/lib/views/NoAccess/NoAccess.js +14 -20
- package/src/lib/views/NoAccess/useNoAccessText.cjs +93 -0
- package/src/lib/views/NoAccess/useNoAccessText.d.ts +31 -0
- package/src/lib/views/NoAccess/useNoAccessText.js +88 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +3 -0
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +3 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +3 -0
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +3 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +3 -0
- package/src/lib/views/PendingConnectView/PendingConnectView.js +3 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +3 -0
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +3 -0
- package/src/lib/views/QrCodeView/QRCode.cjs +3 -0
- package/src/lib/views/QrCodeView/QRCode.js +3 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +3 -0
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +3 -0
- package/src/lib/views/QrCodeView/QrCodeView.cjs +3 -0
- package/src/lib/views/QrCodeView/QrCodeView.js +3 -0
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +5 -2
- package/src/lib/views/SendBalanceView/SendBalanceView.js +5 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +3 -0
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +3 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +3 -0
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +3 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -0
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -0
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.cjs +4 -1
- package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.js +4 -1
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.cjs → SearchNotFoundMessage/SearchNotFoundMessage.cjs} +6 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +8 -0
- package/src/lib/views/WalletList/{SearchInstead/SearchInstead.js → SearchNotFoundMessage/SearchNotFoundMessage.js} +6 -2
- package/src/lib/views/WalletList/SearchNotFoundMessage/index.d.ts +1 -0
- package/src/lib/views/WalletList/WalletList.cjs +4 -3
- package/src/lib/views/WalletList/WalletList.js +4 -3
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +5 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +5 -2
- package/src/lib/views/WalletList/WalletListItem/WalletListItem.types.d.ts +1 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +4 -1
- package/src/lib/views/WalletLockedView/WalletLockedView.js +4 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +3 -0
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +3 -0
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +8 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.js +8 -2
- package/src/lib/views/viewToComponentMap.cjs +5 -0
- package/src/lib/views/viewToComponentMap.js +5 -0
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +18 -7
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.d.ts +2 -4
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +19 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +30 -8
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +31 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +3 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js +2 -0
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +16 -10
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +16 -10
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +12 -3
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +14 -5
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +8 -5
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +8 -5
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +7 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.d.ts +4 -7
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +7 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +6 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +6 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +3 -0
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +4 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +4 -1
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +3 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +3 -0
- package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +17 -1
- package/src/lib/widgets/DynamicWidget/helpers/helpers.js +17 -1
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +3 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +3 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +3 -0
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +3 -0
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +0 -70
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.d.ts +0 -12
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +0 -64
- package/src/lib/components/NetworkPicker/components/ActionList/index.d.ts +0 -1
- package/src/lib/components/Popper/utils/watchToScrollInHierarchy/watchToScrollInHierarchy.d.ts +0 -1
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.cjs +0 -22
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.d.ts +0 -2
- package/src/lib/components/Toolkit/components/BrandStyleSwitch.js +0 -18
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.d.ts +0 -2
- package/src/lib/views/WalletList/SearchInstead/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs +0 -17
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js +0 -9
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.cjs +0 -57
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/DynamicBridgeWidgetNavPrimary.js +0 -53
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavPrimary/index.d.ts +0 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.cjs +0 -58
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.d.ts +0 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/DynamicBridgeWidgetNavSecondary.js +0 -54
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetNavSecondary/index.d.ts +0 -1
- /package/src/lib/components/{Popper → MenuList}/utils/watchToScrollInHierarchy/index.d.ts +0 -0
|
@@ -20,6 +20,7 @@ require('../../../context/DynamicContext/DynamicContext.cjs');
|
|
|
20
20
|
require('@dynamic-labs/multi-wallet');
|
|
21
21
|
require('../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
22
22
|
require('../../../context/ThemeContext/ThemeContext.cjs');
|
|
23
|
+
var Icon = require('../../../components/Icon/Icon.cjs');
|
|
23
24
|
require('react-dom');
|
|
24
25
|
require('react-focus-lock');
|
|
25
26
|
require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
@@ -30,6 +31,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
30
31
|
require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
31
32
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
32
33
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
35
|
require('../../../components/IconButton/IconButton.cjs');
|
|
34
36
|
require('../../../components/Alert/Alert.cjs');
|
|
35
37
|
require('../../../context/MockContext/MockContext.cjs');
|
|
@@ -39,7 +41,9 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
39
41
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
40
42
|
require('formik');
|
|
41
43
|
require('yup');
|
|
44
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
45
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
42
46
|
|
|
43
|
-
const
|
|
47
|
+
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && (jsxRuntime.jsx(Icon.Icon, Object.assign({ className: 'search-instead__container__image', color: 'text-tertiary' }, { children: image }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: title || "Don't see your wallet?" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: subtitle || 'Try search instead' }))] })));
|
|
44
48
|
|
|
45
|
-
exports.
|
|
49
|
+
exports.SearchNotFoundMessage = SearchNotFoundMessage;
|
|
@@ -16,6 +16,7 @@ import '../../../context/DynamicContext/DynamicContext.js';
|
|
|
16
16
|
import '@dynamic-labs/multi-wallet';
|
|
17
17
|
import '../../../components/ShadowDOM/ShadowDOM.js';
|
|
18
18
|
import '../../../context/ThemeContext/ThemeContext.js';
|
|
19
|
+
import { Icon } from '../../../components/Icon/Icon.js';
|
|
19
20
|
import 'react-dom';
|
|
20
21
|
import 'react-focus-lock';
|
|
21
22
|
import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
@@ -26,6 +27,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
26
27
|
import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
27
28
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
28
29
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
31
|
import '../../../components/IconButton/IconButton.js';
|
|
30
32
|
import '../../../components/Alert/Alert.js';
|
|
31
33
|
import '../../../context/MockContext/MockContext.js';
|
|
@@ -35,7 +37,9 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
35
37
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
36
38
|
import 'formik';
|
|
37
39
|
import 'yup';
|
|
40
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
41
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
38
42
|
|
|
39
|
-
const
|
|
43
|
+
const SearchNotFoundMessage = ({ title, subtitle, image, }) => (jsxs("div", Object.assign({ className: 'search-instead__container' }, { children: [image && (jsx(Icon, Object.assign({ className: 'search-instead__container__image', color: 'text-tertiary' }, { children: image }))), jsx(Typography, Object.assign({ color: 'secondary', variant: 'body_small', weight: 'regular' }, { children: title || "Don't see your wallet?" })), jsx(Typography, Object.assign({ color: 'primary', variant: 'button_primary', weight: 'regular' }, { children: subtitle || 'Try search instead' }))] })));
|
|
40
44
|
|
|
41
|
-
export {
|
|
45
|
+
export { SearchNotFoundMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchNotFoundMessage } from './SearchNotFoundMessage';
|
|
@@ -26,13 +26,14 @@ require('@dynamic-labs/utils');
|
|
|
26
26
|
var localStorage = require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
27
27
|
require('ethers');
|
|
28
28
|
require('../../shared/consts/index.cjs');
|
|
29
|
-
var
|
|
29
|
+
var noWalletFound = require('../../assets/no-wallet-found.cjs');
|
|
30
|
+
var SearchNotFoundMessage = require('./SearchNotFoundMessage/SearchNotFoundMessage.cjs');
|
|
30
31
|
var WalletListItem = require('./WalletListItem/WalletListItem.cjs');
|
|
31
32
|
|
|
32
33
|
localStorage.LocalStorage.setToLS(localStorage$1.WALLET_PICKER_SEARCH_KEY, '');
|
|
33
34
|
const WalletList = ({ isWalletConnectList = false, }) => {
|
|
34
35
|
var _a;
|
|
35
|
-
const { walletsFilter, signWithEmailWalletName, user, wallets, projectSettings,
|
|
36
|
+
const { walletsFilter, signWithEmailWalletName, user, wallets, projectSettings, defaultNumberOfWalletsToShow, walletsToConnectByChain, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
36
37
|
const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
|
|
37
38
|
const { error } = ErrorContext.useErrorContext();
|
|
38
39
|
const { view } = ViewContext.useViewContext();
|
|
@@ -77,7 +78,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
77
78
|
};
|
|
78
79
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: error }), !projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsxRuntime.jsx(Search.Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }))), jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('wallet-list__scroll-container', {
|
|
79
80
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
80
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet,
|
|
81
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try searching for a different wallet', image: jsxRuntime.jsx(noWalletFound.ReactComponent, {}) })) : (walletsList.map((wallet) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }))] })), noDefaultFooter && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__tiny-footer', {
|
|
81
82
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
82
83
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
83
84
|
};
|
|
@@ -22,13 +22,14 @@ import '@dynamic-labs/utils';
|
|
|
22
22
|
import { LocalStorage } from '../../shared/utils/classes/storage/localStorage.js';
|
|
23
23
|
import 'ethers';
|
|
24
24
|
import '../../shared/consts/index.js';
|
|
25
|
-
import {
|
|
25
|
+
import { ReactComponent as SvgNoWalletFound } from '../../assets/no-wallet-found.js';
|
|
26
|
+
import { SearchNotFoundMessage } from './SearchNotFoundMessage/SearchNotFoundMessage.js';
|
|
26
27
|
import { WalletListItem } from './WalletListItem/WalletListItem.js';
|
|
27
28
|
|
|
28
29
|
LocalStorage.setToLS(WALLET_PICKER_SEARCH_KEY, '');
|
|
29
30
|
const WalletList = ({ isWalletConnectList = false, }) => {
|
|
30
31
|
var _a;
|
|
31
|
-
const { walletsFilter, signWithEmailWalletName, user, wallets, projectSettings,
|
|
32
|
+
const { walletsFilter, signWithEmailWalletName, user, wallets, projectSettings, defaultNumberOfWalletsToShow, walletsToConnectByChain, } = useInternalDynamicContext();
|
|
32
33
|
const { walletBook } = useWalletBookContext();
|
|
33
34
|
const { error } = useErrorContext();
|
|
34
35
|
const { view } = useViewContext();
|
|
@@ -73,7 +74,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
|
|
|
73
74
|
};
|
|
74
75
|
return (jsxs(Fragment, { children: [jsxs("div", Object.assign({ className: 'wallet-list__container' }, { children: [error && jsx(ErrorContainer, { children: error }), !projectSettings ? (jsx(Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsx(Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }))), jsxs("div", Object.assign({ className: classNames('wallet-list__scroll-container', {
|
|
75
76
|
'wallet-list__scroll-container--full-height': isSearchEnabled,
|
|
76
|
-
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), walletsList.map((wallet) => (jsx(WalletListItem, { wallet: wallet,
|
|
77
|
+
}), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll }, { children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsx(SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try searching for a different wallet', image: jsx(SvgNoWalletFound, {}) })) : (walletsList.map((wallet) => (jsx(WalletListItem, { wallet: wallet, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }))] })), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
|
|
77
78
|
'wallet-list__tiny-footer--hidden': footerIsVisible,
|
|
78
79
|
}), "data-testid": 'wallet-list-tiny-footer' }))] }));
|
|
79
80
|
};
|
|
@@ -35,6 +35,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
35
35
|
require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
36
36
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
37
37
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
38
|
+
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
38
39
|
require('../../../components/IconButton/IconButton.cjs');
|
|
39
40
|
require('../../../components/Alert/Alert.cjs');
|
|
40
41
|
var useWalletItemActions = require('../../../utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
@@ -44,6 +45,8 @@ require('../../../components/Popper/Popper/Popper.cjs');
|
|
|
44
45
|
require('../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
46
|
require('formik');
|
|
46
47
|
require('yup');
|
|
48
|
+
require('../../../components/InlineWidget/InlineWidget.cjs');
|
|
49
|
+
require('../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
47
50
|
var Badge = require('../../../components/Badge/Badge.cjs');
|
|
48
51
|
var isWalletGroup = require('../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.cjs');
|
|
49
52
|
var WalletGroupContext = require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -72,10 +75,10 @@ const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = (
|
|
|
72
75
|
const name = _isWalletGroup
|
|
73
76
|
? walletBook.getWalletGroup(walletBook$1, wallet.key).name
|
|
74
77
|
: walletBook.getWalletBookWallet(walletBook$1, wallet.name).name;
|
|
75
|
-
const leading = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: wallet.name, style: { height: pixelToRem.pixelToRem(28), width: pixelToRem.pixelToRem(28) } }));
|
|
78
|
+
const leading = (jsxRuntime.jsx(walletBook.WalletIcon, { className: 'wallet-list-item__leading', walletName: wallet.name, style: { height: pixelToRem.pixelToRem(28), width: pixelToRem.pixelToRem(28) } }));
|
|
76
79
|
const trailing = (jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-list-item__trailing' }, { children: [label && (jsxRuntime.jsx("div", Object.assign({ className: classNames.classNames('trailing__child', {
|
|
77
80
|
trailing__label: !isComingSoon,
|
|
78
|
-
}) }, { children: jsxRuntime.jsx(Badge.Badge, { dot: !isComingSoon
|
|
81
|
+
}) }, { children: jsxRuntime.jsx(Badge.Badge, { dot: !isComingSoon, text: label, className: 'trailing__badge' }) }))), !isComingSoon && (jsxRuntime.jsx("div", Object.assign({ className: 'trailing__child trailing__arrow' }, { children: jsxRuntime.jsx(Icon.Icon, Object.assign({ color: 'text-tertiary', size: 'small' }, { children: jsxRuntime.jsx(stroke.ReactComponent, {}) })) })))] })));
|
|
79
82
|
return (jsxRuntime.jsx(Tile, { leading: leading, trailing: trailing, name: name, onClick: handleClick }));
|
|
80
83
|
};
|
|
81
84
|
|
|
@@ -31,6 +31,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
31
31
|
import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
32
32
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
33
33
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
34
|
+
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
34
35
|
import '../../../components/IconButton/IconButton.js';
|
|
35
36
|
import '../../../components/Alert/Alert.js';
|
|
36
37
|
import { useWalletItemActions } from '../../../utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
@@ -40,6 +41,8 @@ import '../../../components/Popper/Popper/Popper.js';
|
|
|
40
41
|
import '../../../components/Popper/PopperContext/PopperContext.js';
|
|
41
42
|
import 'formik';
|
|
42
43
|
import 'yup';
|
|
44
|
+
import '../../../components/InlineWidget/InlineWidget.js';
|
|
45
|
+
import '../../../components/MenuList/Dropdown/Dropdown.js';
|
|
43
46
|
import { Badge } from '../../../components/Badge/Badge.js';
|
|
44
47
|
import { isWalletGroup } from '../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.js';
|
|
45
48
|
import { useWalletGroupContext } from '../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -68,10 +71,10 @@ const WalletListItem = ({ usingMultiWallet, wallet, onResetSearchValue, tile = (
|
|
|
68
71
|
const name = _isWalletGroup
|
|
69
72
|
? getWalletGroup(walletBook, wallet.key).name
|
|
70
73
|
: getWalletBookWallet(walletBook, wallet.name).name;
|
|
71
|
-
const leading = (jsx(WalletIcon, { walletName: wallet.name, style: { height: pixelToRem(28), width: pixelToRem(28) } }));
|
|
74
|
+
const leading = (jsx(WalletIcon, { className: 'wallet-list-item__leading', walletName: wallet.name, style: { height: pixelToRem(28), width: pixelToRem(28) } }));
|
|
72
75
|
const trailing = (jsxs("div", Object.assign({ className: 'wallet-list-item__trailing' }, { children: [label && (jsx("div", Object.assign({ className: classNames('trailing__child', {
|
|
73
76
|
trailing__label: !isComingSoon,
|
|
74
|
-
}) }, { children: jsx(Badge, { dot: !isComingSoon
|
|
77
|
+
}) }, { children: jsx(Badge, { dot: !isComingSoon, text: label, className: 'trailing__badge' }) }))), !isComingSoon && (jsx("div", Object.assign({ className: 'trailing__child trailing__arrow' }, { children: jsx(Icon, Object.assign({ color: 'text-tertiary', size: 'small' }, { children: jsx(SvgStroke, {}) })) })))] })));
|
|
75
78
|
return (jsx(Tile, { leading: leading, trailing: trailing, name: name, onClick: handleClick }));
|
|
76
79
|
};
|
|
77
80
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WalletOption } from '../../../shared';
|
|
3
3
|
export type WalletListItemProps = {
|
|
4
|
-
connectedWallets: Wallet[];
|
|
5
4
|
onResetSearchValue?: (newSearchValue: string) => void;
|
|
6
5
|
tile?: WalletListItemTile;
|
|
7
6
|
usingMultiWallet: boolean;
|
|
@@ -31,6 +31,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
31
31
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
32
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
33
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
35
|
require('../../components/IconButton/IconButton.cjs');
|
|
35
36
|
var Button = require('../../components/Button/Button.cjs');
|
|
36
37
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -45,6 +46,8 @@ require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
|
45
46
|
require('formik');
|
|
46
47
|
require('yup');
|
|
47
48
|
var Divider = require('../../components/Divider/Divider.cjs');
|
|
49
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
50
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
48
51
|
|
|
49
52
|
const iconSize = 64;
|
|
50
53
|
const WalletLockedView = () => {
|
|
@@ -56,7 +59,7 @@ const WalletLockedView = () => {
|
|
|
56
59
|
height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
57
60
|
width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
|
|
58
61
|
} }));
|
|
59
|
-
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsxRuntime.jsx(Divider.Divider, { text: 'Or' }), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick:
|
|
62
|
+
return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxRuntime.jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsxRuntime.jsx(Divider.Divider, { text: 'Or' }), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
60
63
|
};
|
|
61
64
|
|
|
62
65
|
exports.WalletLockedView = WalletLockedView;
|
|
@@ -27,6 +27,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
27
27
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
28
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
29
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
30
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
31
|
import '../../components/IconButton/IconButton.js';
|
|
31
32
|
import { Button } from '../../components/Button/Button.js';
|
|
32
33
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
@@ -41,6 +42,8 @@ import '../../components/Popper/PopperContext/PopperContext.js';
|
|
|
41
42
|
import 'formik';
|
|
42
43
|
import 'yup';
|
|
43
44
|
import { Divider } from '../../components/Divider/Divider.js';
|
|
45
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
46
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
44
47
|
|
|
45
48
|
const iconSize = 64;
|
|
46
49
|
const WalletLockedView = () => {
|
|
@@ -52,7 +55,7 @@ const WalletLockedView = () => {
|
|
|
52
55
|
height: pixelToRem(iconSize * iconRatio),
|
|
53
56
|
width: pixelToRem(iconSize * iconRatio),
|
|
54
57
|
} }));
|
|
55
|
-
return (jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsx(Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsx(Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsx(Divider, { text: 'Or' }), jsx(TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick:
|
|
58
|
+
return (jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsx(ErrorContainer, Object.assign({ withIcon: false, className: 'wallet-locked-view__error-container' }, { children: "We cannot connect to your wallet" })), jsxs("div", Object.assign({ className: 'wallet-locked-view__content' }, { children: [jsx(IconWithSpinner, { Icon: icon, iconSize: iconSize, className: 'wallet-locked-view__icon', isSpinning: true }), jsx(Typography, Object.assign({ variant: 'title', color: 'primary', weight: 'medium', className: 'wallet-locked-view__title' }, { children: "Unlock your Wallet extension" })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: "Your wallet extension is locked. To continue, open your extension and unlock your wallet." })), jsx(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular', className: 'wallet-locked-view__button-header' }, { children: "Once unlocked, click here" })), jsx(Button, Object.assign({ buttonRounded: 'default', onClick: () => setShowAuthFlow(false), buttonClassName: 'wallet-locked-view__button' }, { children: "I unlocked the wallet" })), jsx(Divider, { text: 'Or' }), jsx(TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
|
|
56
59
|
};
|
|
57
60
|
|
|
58
61
|
export { WalletLockedView };
|
|
@@ -33,6 +33,7 @@ require('@dynamic-labs/rpc-providers');
|
|
|
33
33
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
34
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
35
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
36
37
|
require('../../components/IconButton/IconButton.cjs');
|
|
37
38
|
var Button = require('../../components/Button/Button.cjs');
|
|
38
39
|
var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
|
|
@@ -44,6 +45,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
44
45
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
45
46
|
require('formik');
|
|
46
47
|
require('yup');
|
|
48
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
49
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
47
50
|
|
|
48
51
|
const WalletSignSpinnerView = () => {
|
|
49
52
|
const { goToInitialView } = ViewContext.useViewContext();
|
|
@@ -29,6 +29,7 @@ import '@dynamic-labs/rpc-providers';
|
|
|
29
29
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
30
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
31
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
32
33
|
import '../../components/IconButton/IconButton.js';
|
|
33
34
|
import { Button } from '../../components/Button/Button.js';
|
|
34
35
|
import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
|
|
@@ -40,6 +41,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
40
41
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
41
42
|
import 'formik';
|
|
42
43
|
import 'yup';
|
|
44
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
45
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
43
46
|
|
|
44
47
|
const WalletSignSpinnerView = () => {
|
|
45
48
|
const { goToInitialView } = useViewContext();
|
|
@@ -40,6 +40,7 @@ var ErrorContext = require('../../context/ErrorContext/ErrorContext.cjs');
|
|
|
40
40
|
var getSiweStatement = require('../../utils/functions/getSiweStatement/getSiweStatement.cjs');
|
|
41
41
|
var getWalletProvider = require('../../utils/functions/getWalletProvider/getWalletProvider.cjs');
|
|
42
42
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
43
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
43
44
|
require('../../components/IconButton/IconButton.cjs');
|
|
44
45
|
var Button = require('../../components/Button/Button.cjs');
|
|
45
46
|
require('../../components/Alert/Alert.cjs');
|
|
@@ -50,6 +51,8 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
50
51
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
51
52
|
require('formik');
|
|
52
53
|
require('yup');
|
|
54
|
+
require('../../components/InlineWidget/InlineWidget.cjs');
|
|
55
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
53
56
|
var LoadingContext = require('../../context/LoadingContext/LoadingContext.cjs');
|
|
54
57
|
|
|
55
58
|
const WalletUsedView = () => {
|
|
@@ -58,7 +61,7 @@ const WalletUsedView = () => {
|
|
|
58
61
|
const { setErrorMessage } = ErrorContext.useErrorContext();
|
|
59
62
|
const { loading, setLoading } = LoadingContext.useLoadingContext();
|
|
60
63
|
const { setView, goToInitialView } = ViewContext.useViewContext();
|
|
61
|
-
const { environmentId,
|
|
64
|
+
const { environmentId, displaySiweStatement, authToken, setCallback, setShowAuthFlow, setUser, appName, siweStatement, setPrimaryWalletId, primaryWallet, setMultiWalletWidgetState, connectWallet, selectedWalletConnector: walletConnector, isSingleWalletAccount, consumeNonce, handleLogOut, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
62
65
|
React.useEffect(() => {
|
|
63
66
|
const _fetchPublicAddress = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
64
67
|
const address = yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.fetchPublicAddress());
|
|
@@ -102,9 +105,12 @@ const WalletUsedView = () => {
|
|
|
102
105
|
// TODO refactor this block
|
|
103
106
|
try {
|
|
104
107
|
const publicWalletAddress = yield connectWallet(walletConnector);
|
|
108
|
+
if (!publicWalletAddress) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
105
111
|
const walletProvider = getWalletProvider.getWalletProvider(walletConnector);
|
|
106
112
|
const verifyArgs = yield getVerifyArgs.getVerifyArgs({
|
|
107
|
-
|
|
113
|
+
displaySiweStatement,
|
|
108
114
|
environmentId,
|
|
109
115
|
nonce,
|
|
110
116
|
publicWalletAddress,
|
|
@@ -36,6 +36,7 @@ import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
|
|
|
36
36
|
import { getSiweStatement } from '../../utils/functions/getSiweStatement/getSiweStatement.js';
|
|
37
37
|
import { getWalletProvider } from '../../utils/functions/getWalletProvider/getWalletProvider.js';
|
|
38
38
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
39
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
39
40
|
import '../../components/IconButton/IconButton.js';
|
|
40
41
|
import { Button } from '../../components/Button/Button.js';
|
|
41
42
|
import '../../components/Alert/Alert.js';
|
|
@@ -46,6 +47,8 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
46
47
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
47
48
|
import 'formik';
|
|
48
49
|
import 'yup';
|
|
50
|
+
import '../../components/InlineWidget/InlineWidget.js';
|
|
51
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
49
52
|
import { useLoadingContext } from '../../context/LoadingContext/LoadingContext.js';
|
|
50
53
|
|
|
51
54
|
const WalletUsedView = () => {
|
|
@@ -54,7 +57,7 @@ const WalletUsedView = () => {
|
|
|
54
57
|
const { setErrorMessage } = useErrorContext();
|
|
55
58
|
const { loading, setLoading } = useLoadingContext();
|
|
56
59
|
const { setView, goToInitialView } = useViewContext();
|
|
57
|
-
const { environmentId,
|
|
60
|
+
const { environmentId, displaySiweStatement, authToken, setCallback, setShowAuthFlow, setUser, appName, siweStatement, setPrimaryWalletId, primaryWallet, setMultiWalletWidgetState, connectWallet, selectedWalletConnector: walletConnector, isSingleWalletAccount, consumeNonce, handleLogOut, } = useInternalDynamicContext();
|
|
58
61
|
useEffect(() => {
|
|
59
62
|
const _fetchPublicAddress = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
63
|
const address = yield (walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.fetchPublicAddress());
|
|
@@ -98,9 +101,12 @@ const WalletUsedView = () => {
|
|
|
98
101
|
// TODO refactor this block
|
|
99
102
|
try {
|
|
100
103
|
const publicWalletAddress = yield connectWallet(walletConnector);
|
|
104
|
+
if (!publicWalletAddress) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
101
107
|
const walletProvider = getWalletProvider(walletConnector);
|
|
102
108
|
const verifyArgs = yield getVerifyArgs({
|
|
103
|
-
|
|
109
|
+
displaySiweStatement,
|
|
104
110
|
environmentId,
|
|
105
111
|
nonce,
|
|
106
112
|
publicWalletAddress,
|
|
@@ -27,8 +27,12 @@ var WalletGroupView = require('./WalletGroupView/WalletGroupView.cjs');
|
|
|
27
27
|
var WalletLockedView = require('./WalletLockedView/WalletLockedView.cjs');
|
|
28
28
|
var BridgeWelcomeView = require('./BridgeWelcomeView/BridgeWelcomeView.cjs');
|
|
29
29
|
var BridgeSummaryView = require('./BridgeSummaryView/BridgeSummaryView.cjs');
|
|
30
|
+
var BridgeNextWalletConnectionView = require('./BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.cjs');
|
|
31
|
+
var AccountExistsView = require('./AccountExistsView/AccountExistsView.cjs');
|
|
30
32
|
|
|
31
33
|
const viewToComponentMap = {
|
|
34
|
+
'account-exists': jsxRuntime.jsx(AccountExistsView.AccountExistsView, {}),
|
|
35
|
+
'bridge-next-wallet-connection': jsxRuntime.jsx(BridgeNextWalletConnectionView.BridgeNextWalletConnectionView, {}),
|
|
32
36
|
'bridge-summary': jsxRuntime.jsx(BridgeSummaryView.BridgeSummaryView, {}),
|
|
33
37
|
'bridge-welcome': jsxRuntime.jsx(BridgeWelcomeView.BridgeWelcomeView, {}),
|
|
34
38
|
captcha: jsxRuntime.jsx(CaptchaVerifyUser.CaptchaVerifyUser, {}),
|
|
@@ -36,6 +40,7 @@ const viewToComponentMap = {
|
|
|
36
40
|
'collect-user-data': jsxRuntime.jsx(CollectUserDataView.CollectUserDataView, {}),
|
|
37
41
|
'collect-user-data-login-with-email': jsxRuntime.jsx(CollectUserDataViewLoginWithEmail.CollectUserDataViewLoginWithEmail, {}),
|
|
38
42
|
'email-wallet-otp-verification-view': jsxRuntime.jsx(EmailWalletOTPVerificationView.EmailWalletOTPVerificationView, {}),
|
|
43
|
+
'gate-blocked-wallet': jsxRuntime.jsx(NoAccess.NoAccess, {}),
|
|
39
44
|
'login-with-email-or-wallet': jsxRuntime.jsx(LoginWithEmailView.LoginWithEmailView, {}),
|
|
40
45
|
'login-with-email-or-wallet-full-wallet-list': jsxRuntime.jsx(WalletList.WalletList, {}),
|
|
41
46
|
'login-with-email-verification': jsxRuntime.jsx(EmailVerification.EmailVerification, {}),
|
|
@@ -23,8 +23,12 @@ import { WalletGroupView } from './WalletGroupView/WalletGroupView.js';
|
|
|
23
23
|
import { WalletLockedView } from './WalletLockedView/WalletLockedView.js';
|
|
24
24
|
import { BridgeWelcomeView } from './BridgeWelcomeView/BridgeWelcomeView.js';
|
|
25
25
|
import { BridgeSummaryView } from './BridgeSummaryView/BridgeSummaryView.js';
|
|
26
|
+
import { BridgeNextWalletConnectionView } from './BridgeNextWalletConnectionView/BridgeNextWalletConnectionView.js';
|
|
27
|
+
import { AccountExistsView } from './AccountExistsView/AccountExistsView.js';
|
|
26
28
|
|
|
27
29
|
const viewToComponentMap = {
|
|
30
|
+
'account-exists': jsx(AccountExistsView, {}),
|
|
31
|
+
'bridge-next-wallet-connection': jsx(BridgeNextWalletConnectionView, {}),
|
|
28
32
|
'bridge-summary': jsx(BridgeSummaryView, {}),
|
|
29
33
|
'bridge-welcome': jsx(BridgeWelcomeView, {}),
|
|
30
34
|
captcha: jsx(CaptchaVerifyUser, {}),
|
|
@@ -32,6 +36,7 @@ const viewToComponentMap = {
|
|
|
32
36
|
'collect-user-data': jsx(CollectUserDataView, {}),
|
|
33
37
|
'collect-user-data-login-with-email': jsx(CollectUserDataViewLoginWithEmail, {}),
|
|
34
38
|
'email-wallet-otp-verification-view': jsx(EmailWalletOTPVerificationView, {}),
|
|
39
|
+
'gate-blocked-wallet': jsx(NoAccess, {}),
|
|
35
40
|
'login-with-email-or-wallet': jsx(LoginWithEmailView, {}),
|
|
36
41
|
'login-with-email-or-wallet-full-wallet-list': jsx(WalletList, {}),
|
|
37
42
|
'login-with-email-verification': jsx(EmailVerification, {}),
|
|
@@ -7,15 +7,17 @@ var React = require('react');
|
|
|
7
7
|
var IsBrowser = require('../../components/IsBrowser/IsBrowser.cjs');
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
|
-
require('
|
|
10
|
+
var getChainIcon = require('../../shared/utils/functions/chain/getChainIcon.cjs');
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
12
|
require('@dynamic-labs/wallet-book');
|
|
13
|
+
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
14
14
|
require('@dynamic-labs/utils');
|
|
15
15
|
require('../../utils/constants/colors.cjs');
|
|
16
16
|
require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
17
17
|
require('ethers');
|
|
18
18
|
var index = require('../../shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
19
|
+
require('@dynamic-labs/iconic');
|
|
20
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
19
21
|
require('../../shared/consts/index.cjs');
|
|
20
22
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
21
23
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -31,22 +33,24 @@ require('@dynamic-labs/rpc-providers');
|
|
|
31
33
|
require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.cjs');
|
|
32
34
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
33
35
|
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
36
|
+
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
34
37
|
require('../../components/IconButton/IconButton.cjs');
|
|
35
38
|
require('../../components/Alert/Alert.cjs');
|
|
36
39
|
require('../../context/MockContext/MockContext.cjs');
|
|
37
40
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
38
41
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
39
|
-
var DynamicConnectButton = require('../../components/DynamicConnectButton/DynamicConnectButton.cjs');
|
|
40
42
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
41
43
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
42
44
|
require('formik');
|
|
43
45
|
require('yup');
|
|
46
|
+
var InlineWidgetButton = require('../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.cjs');
|
|
47
|
+
var InlineWidget = require('../../components/InlineWidget/InlineWidget.cjs');
|
|
48
|
+
require('../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
44
49
|
var DynamicBridgeUserProfile = require('./components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs');
|
|
45
|
-
var DynamicBridgeWidgetNav = require('./components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.cjs');
|
|
46
50
|
var DynamicBridgeWidgetContext = require('./context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.cjs');
|
|
47
51
|
|
|
48
|
-
const DynamicBridgeWidget = ({
|
|
49
|
-
const { showAuthFlow, setShowBridgeWidget,
|
|
52
|
+
const DynamicBridgeWidget = ({ className, variant = 'modal', }) => {
|
|
53
|
+
const { showAuthFlow, setShowBridgeWidget, walletsByChain, setShowAuthFlow, connectedWallets, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
50
54
|
const { widgetRef, inlineControlsRef } = DynamicBridgeWidgetContext.useDynamicBridgeWidgetContext();
|
|
51
55
|
const closeOnOutsideClick = React.useCallback((e) => {
|
|
52
56
|
var _a;
|
|
@@ -58,7 +62,14 @@ const DynamicBridgeWidget = ({ buttonClassName, buttonContainerClassName, innerB
|
|
|
58
62
|
}
|
|
59
63
|
}, [inlineControlsRef, variant, showAuthFlow, setShowBridgeWidget]);
|
|
60
64
|
index.useOnClickOutside(widgetRef, closeOnOutsideClick);
|
|
61
|
-
return (jsxRuntime.jsx(IsBrowser.IsBrowser, { children: jsxRuntime.
|
|
65
|
+
return (jsxRuntime.jsx(IsBrowser.IsBrowser, { children: jsxRuntime.jsxs(ShadowDOM.ShadowDOM, Object.assign({ id: 'dynamic-bridge-widget', className: 'dynamic-widget__container' }, { children: [jsxRuntime.jsx(InlineWidget.InlineWidget, Object.assign({ ref: inlineControlsRef, className: className, dataTestId: 'BridgeWidgetNav' }, { children: walletsByChain === null || walletsByChain === void 0 ? void 0 : walletsByChain.map(({ chain }) => {
|
|
66
|
+
const ChainIcon = getChainIcon.getChainIcon(chain);
|
|
67
|
+
const connectedChainWallets = connectedWallets.filter(({ chain: connectedChain }) => connectedChain === chain);
|
|
68
|
+
if (connectedChainWallets.length > 0) {
|
|
69
|
+
return connectedChainWallets.map((wallet) => (jsxRuntime.jsx(InlineWidgetButton.InlineWidgetButton, Object.assign({ icon: jsxRuntime.jsx(ChainIcon, {}), onClick: () => setShowBridgeWidget(true) }, { children: shortenWalletAddress.shortenWalletAddress(wallet.address, 3, 3) }), wallet.id)));
|
|
70
|
+
}
|
|
71
|
+
return (jsxRuntime.jsx(InlineWidgetButton.InlineWidgetButton, Object.assign({ icon: jsxRuntime.jsx(ChainIcon, {}), onClick: () => setShowAuthFlow(true) }, { children: "Connect wallet" }), chain));
|
|
72
|
+
}) })), jsxRuntime.jsx(DynamicBridgeUserProfile.DynamicBridgeUserProfile, { variant: variant })] })) }));
|
|
62
73
|
};
|
|
63
74
|
|
|
64
75
|
exports.DynamicBridgeWidget = DynamicBridgeWidget;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { FC
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
export type DynamicBridgeWidgetVariant = 'modal' | 'dropdown';
|
|
3
3
|
export type DynamicBridgeWidgetProps = {
|
|
4
|
-
|
|
5
|
-
buttonContainerClassName?: string;
|
|
6
|
-
innerButtonComponent?: ReactNode;
|
|
4
|
+
className?: string;
|
|
7
5
|
variant?: DynamicBridgeWidgetVariant;
|
|
8
6
|
};
|
|
9
7
|
export declare const DynamicBridgeWidget: FC<DynamicBridgeWidgetProps>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { IsBrowser } from '../../components/IsBrowser/IsBrowser.js';
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
|
-
import '
|
|
6
|
+
import { getChainIcon } from '../../shared/utils/functions/chain/getChainIcon.js';
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import '../../context/ViewContext/ViewContext.js';
|
|
9
8
|
import '@dynamic-labs/wallet-book';
|
|
9
|
+
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
10
10
|
import '@dynamic-labs/utils';
|
|
11
11
|
import '../../utils/constants/colors.js';
|
|
12
12
|
import '../../shared/utils/classes/storage/localStorage.js';
|
|
13
13
|
import 'ethers';
|
|
14
14
|
import { useOnClickOutside } from '../../shared/utils/hooks/useOnClickOutside/index.js';
|
|
15
|
+
import '@dynamic-labs/iconic';
|
|
16
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
15
17
|
import '../../shared/consts/index.js';
|
|
16
18
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
17
19
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -27,22 +29,24 @@ import '@dynamic-labs/rpc-providers';
|
|
|
27
29
|
import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup.js';
|
|
28
30
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
29
31
|
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
32
|
+
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
30
33
|
import '../../components/IconButton/IconButton.js';
|
|
31
34
|
import '../../components/Alert/Alert.js';
|
|
32
35
|
import '../../context/MockContext/MockContext.js';
|
|
33
36
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
34
37
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
35
|
-
import { DynamicConnectButton } from '../../components/DynamicConnectButton/DynamicConnectButton.js';
|
|
36
38
|
import '../../components/Popper/Popper/Popper.js';
|
|
37
39
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
38
40
|
import 'formik';
|
|
39
41
|
import 'yup';
|
|
42
|
+
import { InlineWidgetButton } from '../../components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.js';
|
|
43
|
+
import { InlineWidget } from '../../components/InlineWidget/InlineWidget.js';
|
|
44
|
+
import '../../components/MenuList/Dropdown/Dropdown.js';
|
|
40
45
|
import { DynamicBridgeUserProfile } from './components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js';
|
|
41
|
-
import { DynamicBridgeWidgetNav } from './components/DynamicBridgeWidgetNav/DynamicBridgeWidgetNav.js';
|
|
42
46
|
import { useDynamicBridgeWidgetContext } from './context/DynamicBridgeWidgetContext/DynamicBridgeWidgetContext.js';
|
|
43
47
|
|
|
44
|
-
const DynamicBridgeWidget = ({
|
|
45
|
-
const { showAuthFlow, setShowBridgeWidget,
|
|
48
|
+
const DynamicBridgeWidget = ({ className, variant = 'modal', }) => {
|
|
49
|
+
const { showAuthFlow, setShowBridgeWidget, walletsByChain, setShowAuthFlow, connectedWallets, } = useInternalDynamicContext();
|
|
46
50
|
const { widgetRef, inlineControlsRef } = useDynamicBridgeWidgetContext();
|
|
47
51
|
const closeOnOutsideClick = useCallback((e) => {
|
|
48
52
|
var _a;
|
|
@@ -54,7 +58,14 @@ const DynamicBridgeWidget = ({ buttonClassName, buttonContainerClassName, innerB
|
|
|
54
58
|
}
|
|
55
59
|
}, [inlineControlsRef, variant, showAuthFlow, setShowBridgeWidget]);
|
|
56
60
|
useOnClickOutside(widgetRef, closeOnOutsideClick);
|
|
57
|
-
return (jsx(IsBrowser, { children:
|
|
61
|
+
return (jsx(IsBrowser, { children: jsxs(ShadowDOM, Object.assign({ id: 'dynamic-bridge-widget', className: 'dynamic-widget__container' }, { children: [jsx(InlineWidget, Object.assign({ ref: inlineControlsRef, className: className, dataTestId: 'BridgeWidgetNav' }, { children: walletsByChain === null || walletsByChain === void 0 ? void 0 : walletsByChain.map(({ chain }) => {
|
|
62
|
+
const ChainIcon = getChainIcon(chain);
|
|
63
|
+
const connectedChainWallets = connectedWallets.filter(({ chain: connectedChain }) => connectedChain === chain);
|
|
64
|
+
if (connectedChainWallets.length > 0) {
|
|
65
|
+
return connectedChainWallets.map((wallet) => (jsx(InlineWidgetButton, Object.assign({ icon: jsx(ChainIcon, {}), onClick: () => setShowBridgeWidget(true) }, { children: shortenWalletAddress(wallet.address, 3, 3) }), wallet.id)));
|
|
66
|
+
}
|
|
67
|
+
return (jsx(InlineWidgetButton, Object.assign({ icon: jsx(ChainIcon, {}), onClick: () => setShowAuthFlow(true) }, { children: "Connect wallet" }), chain));
|
|
68
|
+
}) })), jsx(DynamicBridgeUserProfile, { variant: variant })] })) }));
|
|
58
69
|
};
|
|
59
70
|
|
|
60
71
|
export { DynamicBridgeWidget };
|