@dynamic-labs/sdk-react-core 0.17.0-RC.7 → 0.17.0-RC.9
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 +37 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +8 -8
- package/src/index.cjs +7 -2
- package/src/index.d.ts +2 -2
- package/src/index.js +5 -1
- package/src/lib/Main.cjs +6 -3
- package/src/lib/Main.js +5 -2
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +5 -2
- package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +5 -2
- package/src/lib/components/Alert/Alert.cjs +29 -0
- package/src/lib/components/Alert/Alert.js +25 -0
- package/src/lib/components/Alert/Alert.types.d.ts +4 -1
- package/src/lib/components/AnimatePresence/AnimatePresence.cjs +5 -2
- package/src/lib/components/AnimatePresence/AnimatePresence.js +5 -2
- package/src/lib/components/Checkbox/Checkbox.cjs +3 -1
- package/src/lib/components/Checkbox/Checkbox.js +3 -1
- package/src/lib/components/Divider/Divider.cjs +5 -2
- package/src/lib/components/Divider/Divider.js +5 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +3 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +3 -1
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +3 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +3 -0
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.cjs +4 -1
- package/src/lib/components/IconWithSpinner/Indicator/Indicator.js +4 -1
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.cjs +3 -0
- package/src/lib/components/IconWithSpinner/Spinner/Spinner.js +3 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.cjs +3 -0
- package/src/lib/components/IconWithStatus/IconWithStatus.js +3 -0
- package/src/lib/components/LogoutButton/LogoutButton.cjs +3 -1
- package/src/lib/components/LogoutButton/LogoutButton.js +3 -1
- package/src/lib/components/NetworkPicker/NetworkPicker.cjs +4 -2
- package/src/lib/components/NetworkPicker/NetworkPicker.js +4 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.cjs +5 -2
- package/src/lib/components/NetworkPicker/components/ActionList/ActionList.js +5 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +4 -2
- package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +4 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.cjs +5 -2
- package/src/lib/components/NetworkPicker/components/Network/Network.js +5 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +5 -2
- package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +5 -2
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +3 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +3 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +5 -2
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +5 -2
- package/src/lib/components/OverlayCard/OverlayCard.cjs +5 -2
- package/src/lib/components/OverlayCard/OverlayCard.js +5 -2
- package/src/lib/components/Portal/Portal.cjs +5 -2
- package/src/lib/components/Portal/Portal.js +5 -2
- package/src/lib/components/Select/Select.cjs +3 -1
- package/src/lib/components/Select/Select.js +3 -1
- package/src/lib/components/ShadowDOM/utils.cjs +3 -1
- package/src/lib/components/ShadowDOM/utils.js +3 -1
- package/src/lib/components/Spinner/spinner.cjs +3 -1
- package/src/lib/components/Spinner/spinner.js +3 -1
- package/src/lib/components/Toolkit/Toolkit.cjs +4 -1
- package/src/lib/components/Toolkit/Toolkit.js +4 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.cjs +3 -1
- package/src/lib/components/Toolkit/components/LoginWithEmailViewDisplayPriorityOrderSwitch.js +3 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +5 -2
- package/src/lib/components/Tooltip/Tooltip.js +5 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +5 -2
- package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +5 -2
- package/src/lib/components/UserAddress/UserAddress.cjs +3 -1
- package/src/lib/components/UserAddress/UserAddress.js +3 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +16 -8
- package/src/lib/components/UserProfile/UserProfile.js +12 -4
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.cjs +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/components/VerifiedEmailIcon/VerifiedEmailIcon.js +3 -1
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +5 -2
- package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +5 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -16
- package/src/lib/context/DynamicContext/DynamicContext.d.ts +2 -6
- package/src/lib/context/DynamicContext/DynamicContext.js +9 -10
- package/src/lib/context/DynamicContext/helpers.cjs +3 -1
- package/src/lib/context/DynamicContext/helpers.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.cjs +3 -1
- package/src/lib/context/DynamicContext/hooks/useDisplayOrderState/useDisplayOrderState.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.cjs +3 -0
- package/src/lib/context/DynamicContext/hooks/useEmailLoginState/useEmailLoginState.js +3 -0
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +3 -1
- package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +3 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +4 -1
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +4 -1
- package/src/lib/context/DynamicContext/validators.cjs +3 -1
- package/src/lib/context/DynamicContext/validators.js +3 -1
- package/src/lib/context/FundingContext/FundingContext.cjs +2 -2
- package/src/lib/context/FundingContext/FundingContext.js +1 -1
- package/src/lib/context/MockContext/MockContext.cjs +3 -1
- package/src/lib/context/MockContext/MockContext.js +3 -1
- package/src/lib/context/QrCodeContext/QrCodeContext.cjs +5 -2
- package/src/lib/context/QrCodeContext/QrCodeContext.js +5 -2
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +6 -3
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.d.ts +1 -1
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +5 -2
- package/src/lib/context/ThemeContext/themesData.cjs +3 -1
- package/src/lib/context/ThemeContext/themesData.js +3 -1
- package/src/lib/data/api.cjs +19 -17
- package/src/lib/data/api.js +4 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +5 -2
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.cjs +5 -2
- package/src/lib/layout/DynamicAuthLayout/Footer/Footer.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.cjs +5 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/Item/Item.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +6 -3
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.cjs +7 -4
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletListFooterContent/WalletListFooterContent.js +5 -2
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +4 -1
- package/src/lib/layout/DynamicAuthLayout/FooterContent/WalletMoreInfoContent/WalletMoreInfoContent.js +4 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +5 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +5 -2
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +5 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +5 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +27 -41
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +27 -41
- package/src/lib/modals/TransactionConfirmationModal/hooks/index.d.ts +1 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/index.d.ts +1 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/useTransactionData.cjs +85 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/useTransactionData.d.ts +18 -0
- package/src/lib/modals/TransactionConfirmationModal/hooks/useTransactionData/useTransactionData.js +81 -0
- package/src/lib/shared/types/index.d.ts +1 -1
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.cjs +2 -2
- package/src/lib/shared/utils/functions/chain/getChainDisplayName.js +1 -1
- package/src/lib/shared/utils/functions/chain/getChainIcon.cjs +2 -2
- package/src/lib/shared/utils/functions/chain/getChainIcon.js +1 -1
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs +22 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.d.ts +2 -0
- package/src/lib/shared/utils/functions/formatBigNumber/formatBigNumber.js +18 -0
- package/src/lib/shared/utils/functions/formatBigNumber/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs +5 -10
- package/src/lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js +3 -8
- package/src/lib/shared/utils/functions/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs +3 -1
- package/src/lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js +3 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/generateMessages/index.cjs +4 -3
- package/src/lib/utils/functions/generateMessages/index.js +2 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.cjs +3 -1
- package/src/lib/utils/functions/getDynamicLayoutData/getDynamicLayoutData.js +3 -1
- package/src/lib/utils/functions/getEnabledKYC/index.cjs +5 -0
- package/src/lib/utils/functions/getEnabledKYC/index.d.ts +5 -0
- package/src/lib/utils/functions/getEnabledKYC/index.js +5 -0
- package/src/lib/utils/functions/getEnabledUserProfileFields/getEnabledUserProfileFields.cjs +74 -0
- package/src/lib/utils/functions/getEnabledUserProfileFields/getEnabledUserProfileFields.d.ts +29 -0
- package/src/lib/utils/functions/getEnabledUserProfileFields/getEnabledUserProfileFields.js +68 -0
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.cjs +2 -2
- package/src/lib/utils/functions/getWalletProvider/getWalletProvider.js +1 -1
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.cjs +6 -3
- package/src/lib/utils/functions/handleUnlinkHelper/handleUnlinkHelper.js +4 -1
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.cjs +2 -2
- package/src/lib/utils/functions/isSameWalletName/isSameWalletName.js +1 -1
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.cjs +3 -3
- package/src/lib/utils/functions/isSelectedWalletAlreadyConnected/isSelectedWalletAlreadyConnected.js +1 -1
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.cjs +2 -2
- package/src/lib/utils/functions/isWalletConnected/isWalletConnected.js +1 -1
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.cjs +5 -3
- package/src/lib/utils/functions/parseWalletLinks/parseWalletLinks.js +3 -1
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.cjs +2 -2
- package/src/lib/utils/functions/requiresTwoStepAuthentication/requiresTwoStepAuthentication.js +1 -1
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +6 -7
- package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +1 -2
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +6 -4
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +3 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +3 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +3 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +3 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +3 -0
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +2 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +1 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.cjs +4 -1
- package/src/lib/utils/hooks/multiWallet/useVerifyOnAwaitingSignature/useVerifyOnAwaitingSignature.js +4 -1
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.cjs +6 -3
- package/src/lib/utils/hooks/useAuthenticateConnectedUser/useAuthenticateConnectedUser.js +4 -1
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.cjs +2 -2
- package/src/lib/utils/hooks/useClearWalletConnectSessions/useClearWalletConnectSessions.js +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +6 -3
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -1
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +4 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.cjs +3 -1
- package/src/lib/utils/hooks/useConnectWithEmail/useConnectWithEmail.js +3 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.cjs +4 -1
- package/src/lib/utils/hooks/useCreateUserProfileByJWTCallback/useCreateUserProfileByJWTCallback.js +4 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +16 -20
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts +1 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +16 -20
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.cjs +4 -2
- package/src/lib/utils/hooks/useFetchNonce/useFetchNonce.js +3 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +5 -2
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +4 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.cjs +3 -1
- package/src/lib/utils/hooks/useFetchWalletsForChainsMap/useFetchWalletsForChainsMap.js +3 -1
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +16 -6
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.d.ts +5 -0
- package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +16 -6
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.cjs +3 -1
- package/src/lib/utils/hooks/useMultiWalletFlag/useMultiWalletFlag.js +3 -1
- package/src/lib/utils/hooks/useMutation/useMutation.cjs +4 -4
- package/src/lib/utils/hooks/useMutation/useMutation.js +1 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.cjs +3 -1
- package/src/lib/utils/hooks/useRpcProviders/useRpcProviders.js +3 -1
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.cjs +6 -4
- package/src/lib/utils/hooks/useUserDataForm/useUserDataForm.js +5 -3
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +11 -8
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +7 -4
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +6 -3
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +4 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +9 -7
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +3 -1
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs +6 -3
- package/src/lib/utils/hooks/useWalletItemActions/useWalletItemActions.js +4 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -0
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -0
- package/src/lib/utils/hooks/useWallets/useWallets.cjs +4 -14
- package/src/lib/utils/hooks/useWallets/useWallets.d.ts +2 -5
- package/src/lib/utils/hooks/useWallets/useWallets.js +4 -14
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +5 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +5 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +5 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +5 -2
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +10 -6
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.d.ts +1 -1
- package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +10 -6
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +7 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +7 -4
- package/src/lib/views/CollectUserDataView/fieldsConfig.cjs +3 -1
- package/src/lib/views/CollectUserDataView/fieldsConfig.js +3 -1
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +5 -2
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +5 -2
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +6 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +5 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +5 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +5 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +6 -3
- package/src/lib/views/EmailVerification/EmailVerification.js +5 -2
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +6 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +5 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.cjs +4 -2
- package/src/lib/views/LoginWithEmailView/LoginWithEmailView.js +4 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.cjs +5 -2
- package/src/lib/views/LoginWithEmailView/components/ListItemButton/ListItemButton.js +5 -2
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.cjs +6 -3
- package/src/lib/views/LoginWithEmailView/components/LoginWithEmailForm/LoginWithEmailForm.js +5 -2
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.cjs +12 -5
- package/src/lib/views/LoginWithEmailView/components/SocialSignIn/SocialSignIn.js +12 -5
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +5 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +5 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +5 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +5 -2
- package/src/lib/views/NoAccess/NoAccess.cjs +5 -2
- package/src/lib/views/NoAccess/NoAccess.js +5 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +5 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +5 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +5 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +5 -2
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +6 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.js +5 -2
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +4 -1
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +4 -1
- package/src/lib/views/QrCodeView/QRCode.cjs +2 -2
- package/src/lib/views/QrCodeView/QRCode.js +1 -1
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +6 -3
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +5 -2
- package/src/lib/views/QrCodeView/QrCodeView.cjs +5 -2
- package/src/lib/views/QrCodeView/QrCodeView.js +5 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +5 -2
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +5 -2
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.cjs +5 -2
- package/src/lib/views/WalletList/SearchInstead/SearchInstead.js +5 -2
- package/src/lib/views/WalletList/WalletList.cjs +3 -1
- package/src/lib/views/WalletList/WalletList.js +3 -1
- 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/data.cjs +4 -1
- package/src/lib/views/WalletList/data.js +4 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +5 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +5 -2
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +7 -4
- package/src/lib/views/WalletUsedView/WalletUsedView.js +5 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.cjs +7 -4
- package/src/lib/widgets/DynamicWidget/components/DotsMenuWrapper/DotsMenuWrapper.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetSwitcher/DynamicWidgetSwitcher.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +5 -2
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.js +3 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +5 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.cjs +3 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchBalance/useFetchBalance.js +3 -0
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchChain/useFetchChain.js +1 -1
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/hooks/useFetchCurrency/useFetchCurrency.js +1 -1
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/prompts/DetectedKnownSecondaryWalletModal/DetectedKnownSecondaryWalletModal.js +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.cjs +6 -3
- package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/PendingSignModal.js +4 -1
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +7 -3
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +5 -2
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +12 -6
- package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +10 -4
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.cjs +5 -2
- package/src/lib/widgets/DynamicWidget/views/IndexView/IndexView.js +5 -2
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +9 -7
- package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +9 -7
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +5 -2
- package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
|
|
2
|
+
## [0.17.0-RC.9](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.8...v0.17.0-RC.9) (2023-05-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **DYN-2231:** show in the user profile all existing fields ([#1988](https://github.com/dynamic-labs/DynamicAuth/issues/1988)) ([1f8cee2](https://github.com/dynamic-labs/DynamicAuth/commit/1f8cee22cf8338bd518961288c570c40e807cd52))
|
|
8
|
+
* **TransactionModal:** add insufficient funds warning ([#2031](https://github.com/dynamic-labs/DynamicAuth/issues/2031)) ([bf868e2](https://github.com/dynamic-labs/DynamicAuth/commit/bf868e239e74f4cd0ceda5e09b7538d97d4e431d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **DYN-1820:** use missing_from_list error code ([#2040](https://github.com/dynamic-labs/DynamicAuth/issues/2040)) ([92c7ad5](https://github.com/dynamic-labs/DynamicAuth/commit/92c7ad565376573d963c65fa821c97a2102ec8d7))
|
|
14
|
+
* **MagicClientNetworkHandler:** save last used network id ([#2045](https://github.com/dynamic-labs/DynamicAuth/issues/2045)) ([6e1c571](https://github.com/dynamic-labs/DynamicAuth/commit/6e1c57127a824cd02d4b785fb8a387e4f221f044))
|
|
15
|
+
* **TransactionModal:** ensure alchemy will not fail when estimating for gas ([#2034](https://github.com/dynamic-labs/DynamicAuth/issues/2034)) ([86c0d7c](https://github.com/dynamic-labs/DynamicAuth/commit/86c0d7cc7b20ff12bc9fc2e33961e177d9decf2a))
|
|
16
|
+
|
|
17
|
+
## [0.17.0-RC.8](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.7...v0.17.0-RC.8) (2023-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ⚠ BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* Removes support for Fortmatic in favor of Magic
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add selected address to qr code modal ([#2017](https://github.com/dynamic-labs/DynamicAuth/issues/2017)) ([58a5d69](https://github.com/dynamic-labs/DynamicAuth/commit/58a5d691f8a4045d92be1a2bcaf6092f44b91b73))
|
|
27
|
+
* **DYN-2228:** show network picker only when more than 1 network ([#2007](https://github.com/dynamic-labs/DynamicAuth/issues/2007)) ([8329737](https://github.com/dynamic-labs/DynamicAuth/commit/83297378cc5ed019f3f8297b48c16f56d7cfe9a7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* disable kyc submit button when network is not supported ([#1952](https://github.com/dynamic-labs/DynamicAuth/issues/1952)) ([ec2f0eb](https://github.com/dynamic-labs/DynamicAuth/commit/ec2f0eb708ed2938dd68cbc7e8ee40f3bc856c2b))
|
|
33
|
+
* missing evm networks for connect-only ([#2006](https://github.com/dynamic-labs/DynamicAuth/issues/2006)) ([78561b3](https://github.com/dynamic-labs/DynamicAuth/commit/78561b3243ac38a348a383bb3c79ce58c8731538))
|
|
34
|
+
* wallet-connect menu on mobile ([#2025](https://github.com/dynamic-labs/DynamicAuth/issues/2025)) ([1f358a6](https://github.com/dynamic-labs/DynamicAuth/commit/1f358a66dda696e745db32f121fb4ef62379cb9a))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
* remove Fortmatic ([#2010](https://github.com/dynamic-labs/DynamicAuth/issues/2010)) ([0ca95c1](https://github.com/dynamic-labs/DynamicAuth/commit/0ca95c175b5d8383433340832bd9ae7dab85f912))
|
|
38
|
+
|
|
2
39
|
## [0.17.0-RC.7](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.6...v0.17.0-RC.7) (2023-04-28)
|
|
3
40
|
|
|
4
41
|
|
package/package.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "0.17.0-RC.
|
|
5
|
+
var version = "0.17.0-RC.9";
|
|
6
6
|
var dependencies = {
|
|
7
7
|
"react-focus-lock": "^2.9.2",
|
|
8
8
|
"@dynamic-labs/iconic": "^0.1.19",
|
|
9
9
|
"@dynamic-labs/sdk-api": "0.0.183",
|
|
10
|
-
"@dynamic-labs/wallet-book": "^0.0.
|
|
10
|
+
"@dynamic-labs/wallet-book": "^0.0.14",
|
|
11
11
|
"@hcaptcha/react-hcaptcha": "~1.4.4",
|
|
12
12
|
"country-list": "^2.3.0",
|
|
13
13
|
yup: "^0.32.11",
|
package/package.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var version = "0.17.0-RC.
|
|
1
|
+
var version = "0.17.0-RC.9";
|
|
2
2
|
var dependencies = {
|
|
3
3
|
"react-focus-lock": "^2.9.2",
|
|
4
4
|
"@dynamic-labs/iconic": "^0.1.19",
|
|
5
5
|
"@dynamic-labs/sdk-api": "0.0.183",
|
|
6
|
-
"@dynamic-labs/wallet-book": "^0.0.
|
|
6
|
+
"@dynamic-labs/wallet-book": "^0.0.14",
|
|
7
7
|
"@hcaptcha/react-hcaptcha": "~1.4.4",
|
|
8
8
|
"country-list": "^2.3.0",
|
|
9
9
|
yup: "^0.32.11",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "0.17.0-RC.
|
|
3
|
+
"version": "0.17.0-RC.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
"react-focus-lock": "^2.9.2",
|
|
11
11
|
"@dynamic-labs/iconic": "^0.1.19",
|
|
12
12
|
"@dynamic-labs/sdk-api": "0.0.183",
|
|
13
|
-
"@dynamic-labs/wallet-book": "^0.0.
|
|
13
|
+
"@dynamic-labs/wallet-book": "^0.0.14",
|
|
14
14
|
"@hcaptcha/react-hcaptcha": "~1.4.4",
|
|
15
15
|
"country-list": "^2.3.0",
|
|
16
16
|
"yup": "^0.32.11",
|
|
17
17
|
"formik": "^2.2.9",
|
|
18
18
|
"qrcode": "1.5.1",
|
|
19
19
|
"ethers": "^5.7.2",
|
|
20
|
-
"@dynamic-labs/logger": "0.17.0-RC.
|
|
21
|
-
"@dynamic-labs/multi-wallet": "0.17.0-RC.
|
|
22
|
-
"@dynamic-labs/rpc-providers": "0.17.0-RC.
|
|
23
|
-
"@dynamic-labs/types": "0.17.0-RC.
|
|
24
|
-
"@dynamic-labs/utils": "0.17.0-RC.
|
|
25
|
-
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.
|
|
20
|
+
"@dynamic-labs/logger": "0.17.0-RC.9",
|
|
21
|
+
"@dynamic-labs/multi-wallet": "0.17.0-RC.9",
|
|
22
|
+
"@dynamic-labs/rpc-providers": "0.17.0-RC.9",
|
|
23
|
+
"@dynamic-labs/types": "0.17.0-RC.9",
|
|
24
|
+
"@dynamic-labs/utils": "0.17.0-RC.9",
|
|
25
|
+
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.9"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"semver": "^7.3.8"
|
package/src/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ var isSSR = require('./lib/shared/utils/functions/isSSR/isSSR.cjs');
|
|
|
29
29
|
var isDisplayOrderPriorityForWeb3 = require('./lib/shared/utils/functions/isDisplayOrderPriorityForWeb3/isDisplayOrderPriorityForWeb3.cjs');
|
|
30
30
|
var isDisplayOrderPriorityForWeb2 = require('./lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.cjs');
|
|
31
31
|
var getWalletListItemLabel = require('./lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.cjs');
|
|
32
|
+
var formatBigNumber = require('./lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs');
|
|
32
33
|
var useLocalStorage = require('./lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs');
|
|
33
34
|
var index$1 = require('./lib/shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
34
35
|
var usePreventPageScroll = require('./lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
|
|
@@ -68,7 +69,9 @@ var dotsHorizontal = require('./lib/shared/assets/dots-horizontal.cjs');
|
|
|
68
69
|
var index$2 = require('./lib/shared/consts/index.cjs');
|
|
69
70
|
var logger = require('./lib/shared/logger.cjs');
|
|
70
71
|
require('./lib/utils/constants/colors.cjs');
|
|
71
|
-
|
|
72
|
+
require('@dynamic-labs/multi-wallet');
|
|
73
|
+
require('@dynamic-labs/utils');
|
|
74
|
+
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
72
75
|
require('@dynamic-labs/sdk-api');
|
|
73
76
|
var ShadowDOM = require('./lib/components/ShadowDOM/ShadowDOM.cjs');
|
|
74
77
|
require('./lib/context/ThemeContext/ThemeContext.cjs');
|
|
@@ -86,6 +89,7 @@ var useWalletItemActions = require('./lib/utils/hooks/useWalletItemActions/useWa
|
|
|
86
89
|
var useUserUpdateRequest = require('./lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
87
90
|
var DynamicConnectButton = require('./lib/components/DynamicConnectButton/DynamicConnectButton.cjs');
|
|
88
91
|
require('./lib/components/IconButton/IconButton.cjs');
|
|
92
|
+
require('./lib/components/Alert/Alert.cjs');
|
|
89
93
|
require('@dynamic-labs/iconic');
|
|
90
94
|
var WalletList = require('./lib/views/WalletList/WalletList.cjs');
|
|
91
95
|
var PendingSignatureView = require('./lib/views/PendingSignatureView/PendingSignatureView.cjs');
|
|
@@ -133,6 +137,7 @@ exports.isSSR = isSSR.isSSR;
|
|
|
133
137
|
exports.isDisplayOrderPriorityForWeb3 = isDisplayOrderPriorityForWeb3.isDisplayOrderPriorityForWeb3;
|
|
134
138
|
exports.isDisplayOrderPriorityForWeb2 = isDisplayOrderPriorityForWeb2.isDisplayOrderPriorityForWeb2;
|
|
135
139
|
exports.getWalletListItemLabel = getWalletListItemLabel.getWalletListItemLabel;
|
|
140
|
+
exports.formatBigNumber = formatBigNumber.formatBigNumber;
|
|
136
141
|
exports.useLocalStorage = useLocalStorage.useLocalStorage;
|
|
137
142
|
exports.useOnClickOutside = index$1.useOnClickOutside;
|
|
138
143
|
exports.usePreventPageScroll = usePreventPageScroll.usePreventPageScroll;
|
|
@@ -180,7 +185,7 @@ exports.widgetModalZIndex = index$2.widgetModalZIndex;
|
|
|
180
185
|
exports.logger = logger.logger;
|
|
181
186
|
Object.defineProperty(exports, 'normalizeWalletName', {
|
|
182
187
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
188
|
+
get: function () { return walletConnectorCore.normalizeWalletName; }
|
|
184
189
|
});
|
|
185
190
|
exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
186
191
|
exports.isSameWalletName = isSameWalletName.isSameWalletName;
|
package/src/index.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ export * from './lib/views';
|
|
|
12
12
|
export * from './lib/context/MockContext';
|
|
13
13
|
export * from './lib/context/ThemeContext/themesData';
|
|
14
14
|
export type { ViewType } from './lib/context/ViewContext';
|
|
15
|
-
export type { NotSupportedError, NoAccessError, ChainalysisError, EmailAlreadyExistsError, UsernameAlreadyExistsError, WalletNotDeployedError, WalletUsedError, EmailVerificationError, } from '@dynamic-labs/
|
|
15
|
+
export type { NotSupportedError, NoAccessError, ChainalysisError, EmailAlreadyExistsError, UsernameAlreadyExistsError, WalletNotDeployedError, WalletUsedError, EmailVerificationError, } from '@dynamic-labs/utils';
|
|
16
16
|
export type { WalletConnector, Chain, } from '@dynamic-labs/wallet-connector-core';
|
|
17
17
|
export type { EvmNetwork } from '@dynamic-labs/types';
|
|
18
|
-
export { normalizeWalletName } from '@dynamic-labs/
|
|
18
|
+
export { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
19
19
|
export { isSameWalletName } from './lib/utils/functions/isSameWalletName';
|
|
20
20
|
export { classNames } from './lib/utils/functions/classNames';
|
|
21
21
|
export { getNetwork } from './lib/utils/functions/getNetwork';
|
package/src/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export { isSSR } from './lib/shared/utils/functions/isSSR/isSSR.js';
|
|
|
25
25
|
export { isDisplayOrderPriorityForWeb3 } from './lib/shared/utils/functions/isDisplayOrderPriorityForWeb3/isDisplayOrderPriorityForWeb3.js';
|
|
26
26
|
export { isDisplayOrderPriorityForWeb2 } from './lib/shared/utils/functions/isDisplayOrderPriorityForWeb2/isDisplayOrderPriorityForWeb2.js';
|
|
27
27
|
export { getWalletListItemLabel } from './lib/shared/utils/functions/getWalletListItemLabel/getWalletListItemLabel.js';
|
|
28
|
+
export { formatBigNumber } from './lib/shared/utils/functions/formatBigNumber/formatBigNumber.js';
|
|
28
29
|
export { useLocalStorage } from './lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js';
|
|
29
30
|
export { useOnClickOutside } from './lib/shared/utils/hooks/useOnClickOutside/index.js';
|
|
30
31
|
export { usePreventPageScroll } from './lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
|
|
@@ -64,7 +65,9 @@ export { ReactComponent as DotsHorizontalIcon } from './lib/shared/assets/dots-h
|
|
|
64
65
|
export { authModalZIndex, countryCodes, defaultWalletsForChains, tShirtSizes, teamNames, toolkitZIndex, tooltipZIndex, widgetModalZIndex } from './lib/shared/consts/index.js';
|
|
65
66
|
export { logger } from './lib/shared/logger.js';
|
|
66
67
|
import './lib/utils/constants/colors.js';
|
|
67
|
-
|
|
68
|
+
import '@dynamic-labs/multi-wallet';
|
|
69
|
+
import '@dynamic-labs/utils';
|
|
70
|
+
export { normalizeWalletName } from '@dynamic-labs/wallet-connector-core';
|
|
68
71
|
import '@dynamic-labs/sdk-api';
|
|
69
72
|
export { ShadowDOM } from './lib/components/ShadowDOM/ShadowDOM.js';
|
|
70
73
|
import './lib/context/ThemeContext/ThemeContext.js';
|
|
@@ -82,6 +85,7 @@ export { useWalletItemActions } from './lib/utils/hooks/useWalletItemActions/use
|
|
|
82
85
|
export { useUserUpdateRequest } from './lib/utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
83
86
|
export { DynamicConnectButton } from './lib/components/DynamicConnectButton/DynamicConnectButton.js';
|
|
84
87
|
import './lib/components/IconButton/IconButton.js';
|
|
88
|
+
import './lib/components/Alert/Alert.js';
|
|
85
89
|
import '@dynamic-labs/iconic';
|
|
86
90
|
export { WalletList } from './lib/views/WalletList/WalletList.js';
|
|
87
91
|
export { PendingSignatureView } from './lib/views/PendingSignatureView/PendingSignatureView.js';
|
package/src/lib/Main.cjs
CHANGED
|
@@ -5,18 +5,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
9
9
|
var index = require('./context/FooterAnimationContext/index.cjs');
|
|
10
10
|
require('@dynamic-labs/sdk-api');
|
|
11
11
|
require('./shared/logger.cjs');
|
|
12
12
|
var getFromLS = require('./shared/utils/functions/storage/getFromLS.cjs');
|
|
13
13
|
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
14
15
|
var ViewContext = require('./context/ViewContext/ViewContext.cjs');
|
|
15
16
|
var localStorage$1 = require('./utils/constants/localStorage.cjs');
|
|
16
17
|
require('./utils/constants/colors.cjs');
|
|
18
|
+
require('ethers');
|
|
17
19
|
var usePreventPageScroll = require('./shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
|
|
18
20
|
var index$1 = require('./shared/consts/index.cjs');
|
|
19
21
|
var useInternalDynamicContext = require('./context/DynamicContext/useInternalDynamicContext.cjs');
|
|
22
|
+
require('@dynamic-labs/multi-wallet');
|
|
20
23
|
require('./components/ShadowDOM/ShadowDOM.cjs');
|
|
21
24
|
require('./context/ThemeContext/ThemeContext.cjs');
|
|
22
25
|
var Portal = require('./components/Portal/Portal.cjs');
|
|
@@ -25,10 +28,10 @@ require('./config/ApiEndpoint.cjs');
|
|
|
25
28
|
require('@dynamic-labs/rpc-providers');
|
|
26
29
|
var isSameWalletName = require('./utils/functions/isSameWalletName/isSameWalletName.cjs');
|
|
27
30
|
require('./context/ErrorContext/ErrorContext.cjs');
|
|
28
|
-
require('ethers');
|
|
29
31
|
var useWalletItemActions = require('./utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
|
30
32
|
require('./utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
31
33
|
require('./components/IconButton/IconButton.cjs');
|
|
34
|
+
require('./components/Alert/Alert.cjs');
|
|
32
35
|
require('./components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
33
36
|
require('./components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
34
37
|
require('./components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
@@ -66,7 +69,7 @@ const Main = () => {
|
|
|
66
69
|
// providers like blocto and dapper
|
|
67
70
|
handleCustodialWalletClick(walletConnector);
|
|
68
71
|
}
|
|
69
|
-
else if (
|
|
72
|
+
else if (utils.isMobile()) {
|
|
70
73
|
// mobile wallets
|
|
71
74
|
handleMobileWalletClick(walletConnector);
|
|
72
75
|
}
|
package/src/lib/Main.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback, useEffect } from 'react';
|
|
4
|
-
import { isMobile } from '@dynamic-labs/
|
|
4
|
+
import { isMobile } from '@dynamic-labs/utils';
|
|
5
5
|
import { FooterAnimationContextProvider } from './context/FooterAnimationContext/index.js';
|
|
6
6
|
import '@dynamic-labs/sdk-api';
|
|
7
7
|
import './shared/logger.js';
|
|
8
8
|
import { getFromLS } from './shared/utils/functions/storage/getFromLS.js';
|
|
9
9
|
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
10
11
|
import { useViewContext } from './context/ViewContext/ViewContext.js';
|
|
11
12
|
import { NEWTOWEB3_WALLET_EXTENSION_FLAG_KEY } from './utils/constants/localStorage.js';
|
|
12
13
|
import './utils/constants/colors.js';
|
|
14
|
+
import 'ethers';
|
|
13
15
|
import { usePreventPageScroll } from './shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
|
|
14
16
|
import { authModalZIndex } from './shared/consts/index.js';
|
|
15
17
|
import { useInternalDynamicContext } from './context/DynamicContext/useInternalDynamicContext.js';
|
|
18
|
+
import '@dynamic-labs/multi-wallet';
|
|
16
19
|
import './components/ShadowDOM/ShadowDOM.js';
|
|
17
20
|
import './context/ThemeContext/ThemeContext.js';
|
|
18
21
|
import { Portal } from './components/Portal/Portal.js';
|
|
@@ -21,10 +24,10 @@ import './config/ApiEndpoint.js';
|
|
|
21
24
|
import '@dynamic-labs/rpc-providers';
|
|
22
25
|
import { isSameWalletName } from './utils/functions/isSameWalletName/isSameWalletName.js';
|
|
23
26
|
import './context/ErrorContext/ErrorContext.js';
|
|
24
|
-
import 'ethers';
|
|
25
27
|
import { useWalletItemActions } from './utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
26
28
|
import './utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
27
29
|
import './components/IconButton/IconButton.js';
|
|
30
|
+
import './components/Alert/Alert.js';
|
|
28
31
|
import './components/Transition/ZoomTransition/ZoomTransition.js';
|
|
29
32
|
import './components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
30
33
|
import './components/Transition/OpacityTransition/OpacityTransition.js';
|
|
@@ -5,14 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
|
|
8
|
-
require('@dynamic-labs/
|
|
8
|
+
require('@dynamic-labs/utils');
|
|
9
9
|
require('@dynamic-labs/sdk-api');
|
|
10
10
|
require('../../../../config/ApiEndpoint.cjs');
|
|
11
11
|
require('../../../../shared/logger.cjs');
|
|
12
12
|
require('@dynamic-labs/iconic');
|
|
13
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
14
|
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
14
15
|
require('../../../../utils/constants/colors.cjs');
|
|
16
|
+
require('ethers');
|
|
15
17
|
require('../../../../shared/consts/index.cjs');
|
|
18
|
+
require('@dynamic-labs/multi-wallet');
|
|
16
19
|
require('@dynamic-labs/rpc-providers');
|
|
17
20
|
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
18
21
|
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -25,7 +28,7 @@ require('../../../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
25
28
|
require('../../../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
26
29
|
require('../../../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
27
30
|
require('../../../IconButton/IconButton.cjs');
|
|
28
|
-
require('
|
|
31
|
+
require('../../../Alert/Alert.cjs');
|
|
29
32
|
require('../../../../context/MockContext/MockContext.cjs');
|
|
30
33
|
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
31
34
|
require('../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useRef, useMemo, useEffect } from 'react';
|
|
3
3
|
import { classNames } from '../../../../utils/functions/classNames/classNames.js';
|
|
4
|
-
import '@dynamic-labs/
|
|
4
|
+
import '@dynamic-labs/utils';
|
|
5
5
|
import '@dynamic-labs/sdk-api';
|
|
6
6
|
import '../../../../config/ApiEndpoint.js';
|
|
7
7
|
import '../../../../shared/logger.js';
|
|
8
8
|
import '@dynamic-labs/iconic';
|
|
9
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
9
10
|
import '../../../../context/ViewContext/ViewContext.js';
|
|
10
11
|
import '../../../../utils/constants/colors.js';
|
|
12
|
+
import 'ethers';
|
|
11
13
|
import '../../../../shared/consts/index.js';
|
|
14
|
+
import '@dynamic-labs/multi-wallet';
|
|
12
15
|
import '@dynamic-labs/rpc-providers';
|
|
13
16
|
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
14
17
|
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
@@ -21,7 +24,7 @@ import '../../../Transition/ZoomTransition/ZoomTransition.js';
|
|
|
21
24
|
import '../../../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
22
25
|
import '../../../Transition/OpacityTransition/OpacityTransition.js';
|
|
23
26
|
import '../../../IconButton/IconButton.js';
|
|
24
|
-
import '
|
|
27
|
+
import '../../../Alert/Alert.js';
|
|
25
28
|
import '../../../../context/MockContext/MockContext.js';
|
|
26
29
|
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
27
30
|
import '../../../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
require('@dynamic-labs/sdk-api');
|
|
7
|
+
require('../../shared/logger.cjs');
|
|
8
|
+
require('@dynamic-labs/iconic');
|
|
9
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
10
|
+
require('../../context/ViewContext/ViewContext.cjs');
|
|
11
|
+
require('react');
|
|
12
|
+
var error = require('../../shared/assets/error.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
14
|
+
require('../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
16
|
+
require('../../shared/consts/index.cjs');
|
|
17
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
18
|
+
var Typography = require('../Typography/Typography.cjs');
|
|
19
|
+
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
20
|
+
|
|
21
|
+
const errorIconMap = {
|
|
22
|
+
error: jsxRuntime.jsx(error.ReactComponent, {}),
|
|
23
|
+
};
|
|
24
|
+
const Alert = ({ children, icon, variant = 'error', contentDataTestId, }) => (jsxRuntime.jsxs("div", Object.assign({ className: classNames.classNames('alert', {
|
|
25
|
+
'alert--error': variant === 'error',
|
|
26
|
+
'alert--warning': variant === 'warning',
|
|
27
|
+
}) }, { children: [icon && (jsxRuntime.jsx(Icon.Icon, Object.assign({ size: 'small', className: 'alert__icon' }, { children: typeof icon === 'string' ? errorIconMap[icon] : icon }))), jsxRuntime.jsx(Typography.Typography, Object.assign({ variant: 'body_small', "data-testid": contentDataTestId }, { children: children }))] })));
|
|
28
|
+
|
|
29
|
+
exports.Alert = Alert;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import '@dynamic-labs/sdk-api';
|
|
3
|
+
import '../../shared/logger.js';
|
|
4
|
+
import '@dynamic-labs/iconic';
|
|
5
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
6
|
+
import '../../context/ViewContext/ViewContext.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import { ReactComponent as SvgError } from '../../shared/assets/error.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
10
|
+
import '../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
12
|
+
import '../../shared/consts/index.js';
|
|
13
|
+
import { Icon } from '../Icon/Icon.js';
|
|
14
|
+
import { Typography } from '../Typography/Typography.js';
|
|
15
|
+
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
16
|
+
|
|
17
|
+
const errorIconMap = {
|
|
18
|
+
error: jsx(SvgError, {}),
|
|
19
|
+
};
|
|
20
|
+
const Alert = ({ children, icon, variant = 'error', contentDataTestId, }) => (jsxs("div", Object.assign({ className: classNames('alert', {
|
|
21
|
+
'alert--error': variant === 'error',
|
|
22
|
+
'alert--warning': variant === 'warning',
|
|
23
|
+
}) }, { children: [icon && (jsx(Icon, Object.assign({ size: 'small', className: 'alert__icon' }, { children: typeof icon === 'string' ? errorIconMap[icon] : icon }))), jsx(Typography, Object.assign({ variant: 'body_small', "data-testid": contentDataTestId }, { children: children }))] })));
|
|
24
|
+
|
|
25
|
+
export { Alert };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
export type AlertIcons = 'error';
|
|
2
3
|
export type AlertProps = {
|
|
3
|
-
|
|
4
|
+
contentDataTestId?: string;
|
|
5
|
+
icon?: ReactElement | AlertIcons;
|
|
6
|
+
variant?: 'error' | 'warning';
|
|
4
7
|
};
|
|
5
8
|
export type AlertComponent = FC<PropsWithChildren<AlertProps>>;
|
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
require('@dynamic-labs/
|
|
6
|
+
require('@dynamic-labs/utils');
|
|
7
7
|
require('@dynamic-labs/sdk-api');
|
|
8
8
|
require('../../config/ApiEndpoint.cjs');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
10
|
require('@dynamic-labs/iconic');
|
|
11
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
11
12
|
require('react/jsx-runtime');
|
|
12
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
14
|
require('../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
14
16
|
require('../../shared/consts/index.cjs');
|
|
17
|
+
require('@dynamic-labs/multi-wallet');
|
|
15
18
|
require('@dynamic-labs/rpc-providers');
|
|
16
19
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
17
20
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -24,7 +27,7 @@ require('../Transition/ZoomTransition/ZoomTransition.cjs');
|
|
|
24
27
|
require('../Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
25
28
|
require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
26
29
|
require('../IconButton/IconButton.cjs');
|
|
27
|
-
require('
|
|
30
|
+
require('../Alert/Alert.cjs');
|
|
28
31
|
var useForceUpdate = require('../../utils/hooks/useForceUpdate/useForceUpdate.cjs');
|
|
29
32
|
require('../../context/MockContext/MockContext.cjs');
|
|
30
33
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { useState, useRef, useMemo, useCallback, useEffect, isValidElement, Children, cloneElement } from 'react';
|
|
2
|
-
import '@dynamic-labs/
|
|
2
|
+
import '@dynamic-labs/utils';
|
|
3
3
|
import '@dynamic-labs/sdk-api';
|
|
4
4
|
import '../../config/ApiEndpoint.js';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
6
|
import '@dynamic-labs/iconic';
|
|
7
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
8
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
9
10
|
import '../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
10
12
|
import '../../shared/consts/index.js';
|
|
13
|
+
import '@dynamic-labs/multi-wallet';
|
|
11
14
|
import '@dynamic-labs/rpc-providers';
|
|
12
15
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
13
16
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
@@ -20,7 +23,7 @@ import '../Transition/ZoomTransition/ZoomTransition.js';
|
|
|
20
23
|
import '../Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
21
24
|
import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
22
25
|
import '../IconButton/IconButton.js';
|
|
23
|
-
import '
|
|
26
|
+
import '../Alert/Alert.js';
|
|
24
27
|
import { useForceUpdate } from '../../utils/hooks/useForceUpdate/useForceUpdate.js';
|
|
25
28
|
import '../../context/MockContext/MockContext.js';
|
|
26
29
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -6,11 +6,13 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
require('@dynamic-labs/sdk-api');
|
|
7
7
|
require('../../shared/logger.cjs');
|
|
8
8
|
require('@dynamic-labs/iconic');
|
|
9
|
-
require('@dynamic-labs/
|
|
9
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
10
10
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
11
11
|
require('react');
|
|
12
12
|
var check = require('../../shared/assets/check.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
13
14
|
require('../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
14
16
|
require('../../shared/consts/index.cjs');
|
|
15
17
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
16
18
|
|
|
@@ -2,11 +2,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import '@dynamic-labs/sdk-api';
|
|
3
3
|
import '../../shared/logger.js';
|
|
4
4
|
import '@dynamic-labs/iconic';
|
|
5
|
-
import '@dynamic-labs/
|
|
5
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import '../../context/ViewContext/ViewContext.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import { ReactComponent as SvgCheck } from '../../shared/assets/check.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
9
10
|
import '../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
10
12
|
import '../../shared/consts/index.js';
|
|
11
13
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
12
14
|
|
|
@@ -8,11 +8,14 @@ var Typography = require('../Typography/Typography.cjs');
|
|
|
8
8
|
require('@dynamic-labs/sdk-api');
|
|
9
9
|
require('../../shared/logger.cjs');
|
|
10
10
|
require('@dynamic-labs/iconic');
|
|
11
|
-
require('@dynamic-labs/
|
|
11
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
12
12
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
13
14
|
require('../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
14
16
|
require('../../shared/consts/index.cjs');
|
|
15
17
|
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
18
|
+
require('@dynamic-labs/multi-wallet');
|
|
16
19
|
require('../ShadowDOM/ShadowDOM.cjs');
|
|
17
20
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
18
21
|
require('react-dom');
|
|
@@ -23,11 +26,11 @@ require('../Transition/OpacityTransition/OpacityTransition.cjs');
|
|
|
23
26
|
require('../../config/ApiEndpoint.cjs');
|
|
24
27
|
require('@dynamic-labs/rpc-providers');
|
|
25
28
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
26
|
-
require('ethers');
|
|
27
29
|
require('../../context/MockContext/MockContext.cjs');
|
|
28
30
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
29
31
|
require('../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.cjs');
|
|
30
32
|
require('../IconButton/IconButton.cjs');
|
|
33
|
+
require('../Alert/Alert.cjs');
|
|
31
34
|
|
|
32
35
|
const Divider = ({ text }) => (jsxRuntime.jsxs("div", Object.assign({ className: 'divider' }, { children: [jsxRuntime.jsx("div", { className: 'divider__dash' }), jsxRuntime.jsx(Typography.Typography, Object.assign({ className: 'divider__text', variant: 'body_small', color: 'secondary' }, { children: text })), jsxRuntime.jsx("div", { className: 'divider__dash' })] })));
|
|
33
36
|
|
|
@@ -4,11 +4,14 @@ import { Typography } from '../Typography/Typography.js';
|
|
|
4
4
|
import '@dynamic-labs/sdk-api';
|
|
5
5
|
import '../../shared/logger.js';
|
|
6
6
|
import '@dynamic-labs/iconic';
|
|
7
|
-
import '@dynamic-labs/
|
|
7
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import '../../context/ViewContext/ViewContext.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
9
10
|
import '../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
10
12
|
import '../../shared/consts/index.js';
|
|
11
13
|
import '../../context/DynamicContext/DynamicContext.js';
|
|
14
|
+
import '@dynamic-labs/multi-wallet';
|
|
12
15
|
import '../ShadowDOM/ShadowDOM.js';
|
|
13
16
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
14
17
|
import 'react-dom';
|
|
@@ -19,11 +22,11 @@ import '../Transition/OpacityTransition/OpacityTransition.js';
|
|
|
19
22
|
import '../../config/ApiEndpoint.js';
|
|
20
23
|
import '@dynamic-labs/rpc-providers';
|
|
21
24
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
22
|
-
import 'ethers';
|
|
23
25
|
import '../../context/MockContext/MockContext.js';
|
|
24
26
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
25
27
|
import '../../utils/hooks/useUserUpdateRequest/useUserUpdateRequest.js';
|
|
26
28
|
import '../IconButton/IconButton.js';
|
|
29
|
+
import '../Alert/Alert.js';
|
|
27
30
|
|
|
28
31
|
const Divider = ({ text }) => (jsxs("div", Object.assign({ className: 'divider' }, { children: [jsx("div", { className: 'divider__dash' }), jsx(Typography, Object.assign({ className: 'divider__text', variant: 'body_small', color: 'secondary' }, { children: text })), jsx("div", { className: 'divider__dash' })] })));
|
|
29
32
|
|
|
@@ -6,11 +6,13 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
require('@dynamic-labs/sdk-api');
|
|
7
7
|
require('../../shared/logger.cjs');
|
|
8
8
|
require('@dynamic-labs/iconic');
|
|
9
|
-
require('@dynamic-labs/
|
|
9
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
10
10
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
11
11
|
require('react');
|
|
12
12
|
var error = require('../../shared/assets/error.cjs');
|
|
13
|
+
require('@dynamic-labs/utils');
|
|
13
14
|
require('../../utils/constants/colors.cjs');
|
|
15
|
+
require('ethers');
|
|
14
16
|
require('../../shared/consts/index.cjs');
|
|
15
17
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
16
18
|
var Typography = require('../Typography/Typography.cjs');
|
|
@@ -2,11 +2,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import '@dynamic-labs/sdk-api';
|
|
3
3
|
import '../../shared/logger.js';
|
|
4
4
|
import '@dynamic-labs/iconic';
|
|
5
|
-
import '@dynamic-labs/
|
|
5
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import '../../context/ViewContext/ViewContext.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import { ReactComponent as SvgError } from '../../shared/assets/error.js';
|
|
9
|
+
import '@dynamic-labs/utils';
|
|
9
10
|
import '../../utils/constants/colors.js';
|
|
11
|
+
import 'ethers';
|
|
10
12
|
import '../../shared/consts/index.js';
|
|
11
13
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
12
14
|
import { Typography } from '../Typography/Typography.js';
|
|
@@ -7,10 +7,13 @@ var React = require('react');
|
|
|
7
7
|
var classNames = require('../../utils/functions/classNames/classNames.cjs');
|
|
8
8
|
require('../../utils/constants/colors.cjs');
|
|
9
9
|
require('@dynamic-labs/multi-wallet');
|
|
10
|
+
require('@dynamic-labs/utils');
|
|
10
11
|
require('@dynamic-labs/sdk-api');
|
|
11
12
|
require('../../shared/logger.cjs');
|
|
12
13
|
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
13
15
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
16
|
+
require('ethers');
|
|
14
17
|
var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
|
|
15
18
|
var Spinner = require('./Spinner/Spinner.cjs');
|
|
16
19
|
var Indicator = require('./Indicator/Indicator.cjs');
|
|
@@ -3,10 +3,13 @@ import { useState, useEffect } from 'react';
|
|
|
3
3
|
import { classNames } from '../../utils/functions/classNames/classNames.js';
|
|
4
4
|
import '../../utils/constants/colors.js';
|
|
5
5
|
import '@dynamic-labs/multi-wallet';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
6
7
|
import '@dynamic-labs/sdk-api';
|
|
7
8
|
import '../../shared/logger.js';
|
|
8
9
|
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
9
11
|
import '../../context/ViewContext/ViewContext.js';
|
|
12
|
+
import 'ethers';
|
|
10
13
|
import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
|
|
11
14
|
import { Spinner } from './Spinner/Spinner.js';
|
|
12
15
|
import { Indicator } from './Indicator/Indicator.js';
|