@dynamic-labs/sdk-react-core 0.18.0-beta.32 → 0.18.0

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.cjs +2 -2
  3. package/package.js +2 -2
  4. package/package.json +9 -9
  5. package/src/lib/components/Button/Button.cjs +10 -7
  6. package/src/lib/components/Button/Button.js +10 -7
  7. package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +1 -1
  8. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -1
  9. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -1
  10. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +2 -2
  11. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +2 -2
  12. package/src/lib/context/DynamicContext/DynamicContext.cjs +7 -2
  13. package/src/lib/context/DynamicContext/DynamicContext.js +8 -3
  14. package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.cjs +13 -3
  15. package/src/lib/context/DynamicContext/hooks/useVerificationInProgress/useVerificationInProgress.js +13 -3
  16. package/src/lib/context/DynamicContext/types/index.d.ts +2 -2
  17. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +10 -2
  18. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +10 -2
  19. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -0
  20. package/src/lib/styles/index.shadow.cjs +1 -1
  21. package/src/lib/styles/index.shadow.js +1 -1
  22. package/src/lib/utils/constants/errors.cjs +7 -0
  23. package/src/lib/utils/constants/errors.d.ts +1 -0
  24. package/src/lib/utils/constants/errors.js +3 -0
  25. package/src/lib/utils/constants/index.d.ts +1 -1
  26. package/src/lib/utils/constants/localStorage.cjs +3 -1
  27. package/src/lib/utils/constants/localStorage.d.ts +1 -0
  28. package/src/lib/utils/constants/localStorage.js +3 -2
  29. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +14 -2
  30. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +3 -2
  31. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +14 -2
  32. package/src/lib/utils/functions/index.d.ts +1 -0
  33. package/src/lib/utils/functions/isMagicConnector/index.d.ts +1 -0
  34. package/src/lib/utils/functions/isMagicConnector/isMagicConnector.cjs +10 -0
  35. package/src/lib/utils/functions/isMagicConnector/isMagicConnector.d.ts +2 -0
  36. package/src/lib/utils/functions/isMagicConnector/isMagicConnector.js +6 -0
  37. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +2 -2
  38. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.d.ts +2 -1
  39. package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +2 -2
  40. package/src/lib/utils/hooks/index.d.ts +2 -0
  41. package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.cjs +19 -3
  42. package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.d.ts +1 -2
  43. package/src/lib/utils/hooks/multiWallet/useMultiWallet/useMultiWallet.js +20 -4
  44. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +11 -9
  45. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.d.ts +1 -1
  46. package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +11 -9
  47. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +1 -1
  48. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +1 -1
  49. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +2 -2
  50. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +1 -1
  51. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +2 -2
  52. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs +2 -7
  53. package/src/lib/utils/hooks/useFetchNetworkConfigurations/useFetchNetworkConfigurations.js +2 -7
  54. package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/index.d.ts +1 -0
  55. package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +1 -0
  56. package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +16 -0
  57. package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +2 -0
  58. package/src/lib/utils/hooks/useFetchNetworkConfigurations/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +12 -0
  59. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +22 -4
  60. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +22 -4
  61. package/src/lib/utils/hooks/useTransactionEstimatedGas/index.d.ts +1 -0
  62. package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.cjs +61 -0
  63. package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.d.ts +20 -0
  64. package/src/lib/utils/hooks/useTransactionEstimatedGas/useTransactionEstimatedGas.js +57 -0
  65. package/src/lib/utils/hooks/useTransactionWithGasPrice/index.d.ts +1 -0
  66. package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.cjs +47 -0
  67. package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.d.ts +32 -0
  68. package/src/lib/utils/hooks/useTransactionWithGasPrice/useTransactionWithGasPrice.js +43 -0
  69. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +1 -0
  70. package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +1 -0
  71. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +1 -1
  72. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +2 -2
  73. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.d.ts +5 -1
  74. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +2 -2
  75. package/src/lib/utils/hooks/useWallets/useWallets.d.ts +2 -2
  76. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +4 -0
  77. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +4 -0
  78. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +5 -2
  79. package/src/lib/views/EmailUpdate/EmailUpdate.js +5 -2
  80. package/src/lib/views/EmailVerification/EmailVerification.cjs +6 -1
  81. package/src/lib/views/EmailVerification/EmailVerification.js +7 -2
  82. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.cjs +4 -1
  83. package/src/lib/views/LoginWithEmailView/components/LoginWithEmailWalletList/LoginWithEmailWalletList.js +4 -1
  84. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -0
  85. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +4 -0
  86. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -0
  87. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -0
  88. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -0
  89. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -0
  90. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +11 -16
  91. package/src/lib/views/SendBalanceView/SendBalanceView.js +11 -16
  92. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +66 -0
  93. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +8 -0
  94. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +62 -0
  95. package/src/lib/views/SendBalanceView/components/TransactionStage/index.d.ts +1 -0
  96. package/src/lib/views/SendBalanceView/components/index.d.ts +1 -0
  97. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -2
  98. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -2
  99. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +22 -4
  100. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +22 -4
  101. package/src/lib/views/TransactionConfirmationView/hooks/index.d.ts +2 -1
  102. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/index.d.ts +1 -0
  103. package/src/lib/views/TransactionConfirmationView/hooks/{useTransactionData/useTransactionData.cjs → useTransactionGas/useTransactionGas.cjs} +17 -42
  104. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.d.ts +11 -0
  105. package/src/lib/views/TransactionConfirmationView/hooks/{useTransactionData/useTransactionData.js → useTransactionGas/useTransactionGas.js} +18 -43
  106. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/index.d.ts +1 -0
  107. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.cjs +14 -0
  108. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.d.ts +7 -0
  109. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionTotal/useTransactionTotal.js +10 -0
  110. package/src/lib/views/WalletList/WalletList.cjs +4 -1
  111. package/src/lib/views/WalletList/WalletList.js +4 -1
  112. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +20 -4
  113. package/src/lib/views/WalletLockedView/WalletLockedView.js +20 -4
  114. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/index.d.ts +0 -1
  115. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionData/useTransactionData.d.ts +0 -18
@@ -74,7 +74,10 @@ const WalletList = ({ isWalletConnectList = false, }) => {
74
74
  };
75
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', {
76
76
  'wallet-list__scroll-container--full-height': isSearchEnabled,
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
+ }), "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) => {
78
+ var _a;
79
+ return (jsx(WalletListItem, { wallet: wallet, usingMultiWallet: isUsingMultiWallet, onResetSearchValue: () => handleFilterValueChange('') }, wallet.key + ((_a = wallet.groupedWallets) === null || _a === void 0 ? void 0 : _a.length)));
80
+ }))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }))] })), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
78
81
  'wallet-list__tiny-footer--hidden': footerIsVisible,
79
82
  }), "data-testid": 'wallet-list-tiny-footer' }))] }));
80
83
  };
@@ -2,12 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _tslib = require('../../../../_virtual/_tslib.cjs');
5
6
  var jsxRuntime = require('react/jsx-runtime');
7
+ var React = require('react');
6
8
  var walletBook = require('@dynamic-labs/wallet-book');
7
- require('react');
8
9
  var Typography = require('../../components/Typography/Typography.cjs');
9
10
  require('@dynamic-labs/sdk-api');
10
- require('../../shared/logger.cjs');
11
+ var logger = require('../../shared/logger.cjs');
11
12
  require('@dynamic-labs/iconic');
12
13
  require('@dynamic-labs/wallet-connector-core');
13
14
  require('../../context/ViewContext/ViewContext.cjs');
@@ -51,15 +52,30 @@ require('../../components/MenuList/Dropdown/Dropdown.cjs');
51
52
 
52
53
  const iconSize = 64;
53
54
  const WalletLockedView = () => {
54
- const { handleLogOut, primaryWallet, setShowAuthFlow } = useInternalDynamicContext.useInternalDynamicContext();
55
+ const { handleLogOut, primaryWallet, setShowAuthFlow, appName, authToken } = useInternalDynamicContext.useInternalDynamicContext();
56
+ React.useEffect(() => {
57
+ // when there is no valid session, we want to log user out
58
+ if (!authToken) {
59
+ handleLogOut();
60
+ }
61
+ }, [authToken, handleLogOut]);
55
62
  if (!primaryWallet) {
56
63
  return null;
57
64
  }
65
+ const handleConnectWallet = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
66
+ try {
67
+ yield primaryWallet.connector.connect();
68
+ setShowAuthFlow(false);
69
+ }
70
+ catch (_a) {
71
+ logger.logger.info('could not connect wallet');
72
+ }
73
+ });
58
74
  const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletName: primaryWallet.connector.name, style: {
59
75
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
60
76
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
61
77
  } }));
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" }))] }))] })));
78
+ return (jsxRuntime.jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsxRuntime.jsx(ErrorContainer.ErrorContainer, Object.assign({ withIcon: false, variant: 'success', className: 'wallet-locked-view__error-container' }, { children: "Connect your wallet to continue" })), 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: "Welcome back." })), jsxRuntime.jsxs(Typography.Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: ["We couldn't connect to your wallet. Click connect to retry the connection ", appName, "."] })), jsxRuntime.jsx(Button.Button, Object.assign({ buttonRounded: 'default', onClick: () => handleConnectWallet(), buttonClassName: 'wallet-locked-view__button' }, { children: "Connect wallet" })), jsxRuntime.jsx(Divider.Divider, { text: 'Or' }), jsxRuntime.jsx(TextButton.TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
63
79
  };
64
80
 
65
81
  exports.WalletLockedView = WalletLockedView;
@@ -1,9 +1,10 @@
1
+ import { __awaiter } from '../../../../_virtual/_tslib.js';
1
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { useEffect } from 'react';
2
4
  import { WalletIcon } from '@dynamic-labs/wallet-book';
3
- import 'react';
4
5
  import { Typography } from '../../components/Typography/Typography.js';
5
6
  import '@dynamic-labs/sdk-api';
6
- import '../../shared/logger.js';
7
+ import { logger } from '../../shared/logger.js';
7
8
  import '@dynamic-labs/iconic';
8
9
  import '@dynamic-labs/wallet-connector-core';
9
10
  import '../../context/ViewContext/ViewContext.js';
@@ -47,15 +48,30 @@ import '../../components/MenuList/Dropdown/Dropdown.js';
47
48
 
48
49
  const iconSize = 64;
49
50
  const WalletLockedView = () => {
50
- const { handleLogOut, primaryWallet, setShowAuthFlow } = useInternalDynamicContext();
51
+ const { handleLogOut, primaryWallet, setShowAuthFlow, appName, authToken } = useInternalDynamicContext();
52
+ useEffect(() => {
53
+ // when there is no valid session, we want to log user out
54
+ if (!authToken) {
55
+ handleLogOut();
56
+ }
57
+ }, [authToken, handleLogOut]);
51
58
  if (!primaryWallet) {
52
59
  return null;
53
60
  }
61
+ const handleConnectWallet = () => __awaiter(void 0, void 0, void 0, function* () {
62
+ try {
63
+ yield primaryWallet.connector.connect();
64
+ setShowAuthFlow(false);
65
+ }
66
+ catch (_a) {
67
+ logger.info('could not connect wallet');
68
+ }
69
+ });
54
70
  const icon = (jsx(WalletIcon, { walletName: primaryWallet.connector.name, style: {
55
71
  height: pixelToRem(iconSize * iconRatio),
56
72
  width: pixelToRem(iconSize * iconRatio),
57
73
  } }));
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" }))] }))] })));
74
+ return (jsxs("div", Object.assign({ "data-testid": 'wallet-locked-view' }, { children: [jsx(ErrorContainer, Object.assign({ withIcon: false, variant: 'success', className: 'wallet-locked-view__error-container' }, { children: "Connect your wallet to continue" })), 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: "Welcome back." })), jsxs(Typography, Object.assign({ variant: 'body_normal', color: 'secondary', weight: 'regular' }, { children: ["We couldn't connect to your wallet. Click connect to retry the connection ", appName, "."] })), jsx(Button, Object.assign({ buttonRounded: 'default', onClick: () => handleConnectWallet(), buttonClassName: 'wallet-locked-view__button' }, { children: "Connect wallet" })), jsx(Divider, { text: 'Or' }), jsx(TextButton, Object.assign({ className: 'wallet-locked-view__log-out', onClick: handleLogOut }, { children: "Log out" }))] }))] })));
59
75
  };
60
76
 
61
77
  export { WalletLockedView };
@@ -1 +0,0 @@
1
- export { useTransactionData } from './useTransactionData';
@@ -1,18 +0,0 @@
1
- import { ethers } from 'ethers';
2
- type TransactionDataHookProps = {
3
- provider: ethers.providers.Web3Provider;
4
- transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>;
5
- };
6
- export declare const useTransactionData: ({ provider, transaction, }: TransactionDataHookProps) => {
7
- gasEstimate: ethers.BigNumber | undefined;
8
- isEffectiveValueLoading: boolean;
9
- isGasPriceLoading: boolean;
10
- isLoading: boolean;
11
- isTransactionFromAddressLoading: boolean;
12
- isTransactionToAddressLoading: boolean;
13
- total: ethers.BigNumber | undefined;
14
- transactionFromAddress: string | undefined;
15
- transactionToAddress: string | undefined;
16
- transactionValue: ethers.BigNumber | undefined;
17
- };
18
- export {};