@dynamic-labs/sdk-react-core 4.20.6 → 4.20.7
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 +6 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/lib/context/ViewContext/types/index.d.ts +1 -1
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +2 -0
- package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +2 -0
- package/src/lib/locale/en/translation.cjs +20 -0
- package/src/lib/locale/en/translation.d.ts +20 -0
- package/src/lib/locale/en/translation.js +20 -0
- package/src/lib/shared/assets/index.d.ts +2 -0
- package/src/lib/shared/assets/locked.cjs +52 -0
- package/src/lib/shared/assets/locked.js +28 -0
- package/src/lib/shared/assets/white-check-black-circle.cjs +61 -0
- package/src/lib/shared/assets/white-check-black-circle.js +37 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/authViewLayoutChecks.cjs +1 -0
- package/src/lib/utils/constants/authViewLayoutChecks.js +1 -0
- package/src/lib/utils/functions/getTransactionLink/getTransactionLink.cjs +3 -0
- package/src/lib/utils/functions/getTransactionLink/getTransactionLink.d.ts +1 -1
- package/src/lib/utils/functions/getTransactionLink/getTransactionLink.js +3 -0
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDynamicWaas/useDynamicWaas.cjs +8 -5
- package/src/lib/utils/hooks/useDynamicWaas/useDynamicWaas.js +8 -5
- package/src/lib/utils/hooks/useSubmitExchangeFunding/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSubmitExchangeFunding/useSubmitExchangeFunding.d.ts +11 -0
- package/src/lib/views/BackupUnsuccessfulView/BackupUnsuccessfulView.cjs +14 -4
- package/src/lib/views/BackupUnsuccessfulView/BackupUnsuccessfulView.js +14 -4
- package/src/lib/views/MfaExchangeView/MfaExchangeView.cjs +127 -0
- package/src/lib/views/MfaExchangeView/MfaExchangeView.d.ts +7 -0
- package/src/lib/views/MfaExchangeView/MfaExchangeView.js +123 -0
- package/src/lib/views/MfaExchangeView/index.d.ts +1 -0
- package/src/lib/views/viewToComponentMap.cjs +2 -0
- package/src/lib/views/viewToComponentMap.d.ts +4 -0
- package/src/lib/views/viewToComponentMap.js +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.d.ts +8 -13
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/ConfirmExchangeTransferView/ConfirmExchangeTransferView.d.ts +1 -2
- package/src/lib/widgets/DynamicWidget/views/DepositedExchangeView/DepositedExchangeView.cjs +121 -0
- package/src/lib/widgets/DynamicWidget/views/DepositedExchangeView/DepositedExchangeView.d.ts +11 -0
- package/src/lib/widgets/DynamicWidget/views/DepositedExchangeView/DepositedExchangeView.js +117 -0
- package/src/lib/widgets/DynamicWidget/views/DepositedExchangeView/index.d.ts +1 -0
|
@@ -12,6 +12,7 @@ import { ChooseOnrampProviderView } from '../../views/ChooseOnrampProviderView/C
|
|
|
12
12
|
import { ChooseWalletFundingMethod } from '../../views/ChooseWalletFundingMethod/ChooseWalletFundingMethod.js';
|
|
13
13
|
import { ConfirmExchangeTransferView } from '../../views/ConfirmExchangeTransferView/ConfirmExchangeTransferView.js';
|
|
14
14
|
import { ConnectedAppsView } from '../../views/ConnectedAppsView/ConnectedAppsView.js';
|
|
15
|
+
import { DepositedExchangeView } from '../../views/DepositedExchangeView/DepositedExchangeView.js';
|
|
15
16
|
import { DepositView } from '../../views/DepositView/DepositView.js';
|
|
16
17
|
import { GlobalWalletView } from '../../views/GlobalWalletView/GlobalWalletView.js';
|
|
17
18
|
import { ManageMfaWidgetView } from '../../views/ManageMfaWidgetView/ManageMfaWidgetView.js';
|
|
@@ -27,6 +28,7 @@ const mapViewToComponent = {
|
|
|
27
28
|
'confirm-exchange-transfer': ConfirmExchangeTransferView,
|
|
28
29
|
'connected-apps': ConnectedAppsView,
|
|
29
30
|
'deposit-view': DepositView,
|
|
31
|
+
'deposited-exchange': DepositedExchangeView,
|
|
30
32
|
'edit-profile': EditProfileView,
|
|
31
33
|
'global-wallet': GlobalWalletView,
|
|
32
34
|
'manage-mfa': ManageMfaWidgetView,
|
|
@@ -13,7 +13,7 @@ export declare const DynamicSessionManagementViews: readonly ["session-managemen
|
|
|
13
13
|
export type DynamicSessionManagementViewsType = typeof DynamicSessionManagementViews[number];
|
|
14
14
|
export declare const DynamicTransactionsWidgetViews: readonly ["send-balance"];
|
|
15
15
|
export type DynamicTransactionsWidgetViewsType = typeof DynamicTransactionsWidgetViews[number];
|
|
16
|
-
export type DynamicWidgetViews = 'wallets' | 'profile' | 'edit-profile' | 'choose-wallet-funding-method' | 'receive-wallet-funds' | DynamicTransactionsWidgetViewsType | DynamicPasskeyWidgetViewsType | DynamicMfaWidgetViewsType | DynamicSettingsType | DynamicGlobalWalletType | DynamicSessionManagementViewsType | 'connected-apps' | 'deposit-view' | 'confirm-exchange-transfer' | 'choose-onramp-provider' | 'choose-linked-wallet';
|
|
16
|
+
export type DynamicWidgetViews = 'wallets' | 'profile' | 'edit-profile' | 'choose-wallet-funding-method' | 'receive-wallet-funds' | 'deposited-exchange' | DynamicTransactionsWidgetViewsType | DynamicPasskeyWidgetViewsType | DynamicMfaWidgetViewsType | DynamicSettingsType | DynamicGlobalWalletType | DynamicSessionManagementViewsType | 'connected-apps' | 'deposit-view' | 'confirm-exchange-transfer' | 'choose-onramp-provider' | 'choose-linked-wallet';
|
|
17
17
|
export type DynamicWidgetViewMapConstraint = Record<DynamicWidgetViews, FC<any>>;
|
|
18
18
|
export type DynamicWidgetViewMap = typeof mapViewToComponent;
|
|
19
19
|
export type SetDynamicWidgetView = <T extends DynamicWidgetViews>(view: T, props?: ComponentProps<DynamicWidgetViewMap[T]>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ExchangeKeyEnum } from '@dynamic-labs/sdk-api-core';
|
|
3
3
|
import { FundingTokenData } from '../ReceiveWalletFunds/types';
|
|
4
|
-
type ConfirmExchangeTransferViewProps = {
|
|
4
|
+
export type ConfirmExchangeTransferViewProps = {
|
|
5
5
|
amount?: number;
|
|
6
6
|
fiatAmount?: number;
|
|
7
7
|
toAddress?: string;
|
|
@@ -15,4 +15,3 @@ type ConfirmExchangeTransferViewProps = {
|
|
|
15
15
|
onBack: () => void;
|
|
16
16
|
};
|
|
17
17
|
export declare const ConfirmExchangeTransferView: FC<ConfirmExchangeTransferViewProps>;
|
|
18
|
-
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var reactI18next = require('react-i18next');
|
|
8
|
+
var Typography = require('../../../../components/Typography/Typography.cjs');
|
|
9
|
+
var TypographyButton = require('../../../../components/TypographyButton/TypographyButton.cjs');
|
|
10
|
+
require('@dynamic-labs/utils');
|
|
11
|
+
require('../../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
12
|
+
require('react');
|
|
13
|
+
var close = require('../../../../shared/assets/close.cjs');
|
|
14
|
+
require('@dynamic-labs/iconic');
|
|
15
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
16
|
+
var whiteCheckBlackCircle = require('../../../../shared/assets/white-check-black-circle.cjs');
|
|
17
|
+
require('../../../../../../_virtual/_tslib.cjs');
|
|
18
|
+
require('@dynamic-labs/sdk-api-core');
|
|
19
|
+
require('../../../../shared/logger.cjs');
|
|
20
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
21
|
+
require('@dynamic-labs/wallet-book');
|
|
22
|
+
var shortenWalletAddress = require('../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
23
|
+
require('../../../../utils/constants/colors.cjs');
|
|
24
|
+
require('../../../../utils/constants/values.cjs');
|
|
25
|
+
require('../../../../shared/consts/index.cjs');
|
|
26
|
+
require('../../../../components/Alert/Alert.cjs');
|
|
27
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
28
|
+
require('../../../../context/DynamicContext/DynamicContext.cjs');
|
|
29
|
+
require('../../../../store/state/loadingAndLifecycle/loadingAndLifecycle.cjs');
|
|
30
|
+
require('../../../../store/state/authMode/authMode.cjs');
|
|
31
|
+
require('../../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
32
|
+
require('../../../../context/ErrorContext/ErrorContext.cjs');
|
|
33
|
+
require('@dynamic-labs/multi-wallet');
|
|
34
|
+
require('react-international-phone');
|
|
35
|
+
require('../../../../store/state/nonce/nonce.cjs');
|
|
36
|
+
require('../../../../store/state/projectSettings/projectSettings.cjs');
|
|
37
|
+
require('../../../../config/ApiEndpoint.cjs');
|
|
38
|
+
require('../../../../store/state/user/user.cjs');
|
|
39
|
+
require('../../../../locale/locale.cjs');
|
|
40
|
+
require('../../../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
41
|
+
require('../../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
42
|
+
require('../../../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
43
|
+
require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
44
|
+
require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
45
|
+
require('../../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
46
|
+
require('../../../../context/VerificationContext/VerificationContext.cjs');
|
|
47
|
+
require('react-dom');
|
|
48
|
+
require('../../../../utils/functions/compareChains/compareChains.cjs');
|
|
49
|
+
require('../../../../views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.cjs');
|
|
50
|
+
require('../../../../context/ThemeContext/ThemeContext.cjs');
|
|
51
|
+
require('../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
|
|
52
|
+
require('bs58');
|
|
53
|
+
require('@dynamic-labs/types');
|
|
54
|
+
require('../../../../context/SocialRedirectContext/SocialRedirectContext.cjs');
|
|
55
|
+
require('../../../../context/LoadingContext/LoadingContext.cjs');
|
|
56
|
+
require('../../../../context/WalletContext/WalletContext.cjs');
|
|
57
|
+
require('../../../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.cjs');
|
|
58
|
+
require('yup');
|
|
59
|
+
require('../../../../context/MockContext/MockContext.cjs');
|
|
60
|
+
require('../../../../views/CollectUserDataView/useFields.cjs');
|
|
61
|
+
require('../../../../context/FieldsStateContext/FieldsStateContext.cjs');
|
|
62
|
+
require('../../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
63
|
+
require('@dynamic-labs/rpc-providers');
|
|
64
|
+
require('../../../../store/state/walletOptions/walletOptions.cjs');
|
|
65
|
+
var PoweredByDynamic = require('../../../../components/PoweredByDynamic/PoweredByDynamic.cjs');
|
|
66
|
+
require('../../../../context/FooterAnimationContext/index.cjs');
|
|
67
|
+
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
68
|
+
require('../../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
|
|
69
|
+
require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
|
|
70
|
+
require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
|
|
71
|
+
require('../../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
72
|
+
require('../../../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
73
|
+
require('../../components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
74
|
+
require('react-focus-lock');
|
|
75
|
+
var Icon = require('../../../../components/Icon/Icon.cjs');
|
|
76
|
+
require('../../context/DynamicWidgetContext.cjs');
|
|
77
|
+
var IconButton = require('../../../../components/IconButton/IconButton.cjs');
|
|
78
|
+
require('../../../../components/MenuList/Dropdown/Dropdown.cjs');
|
|
79
|
+
require('formik');
|
|
80
|
+
require('../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs');
|
|
81
|
+
var ModalHeader = require('../../../../components/ModalHeader/ModalHeader.cjs');
|
|
82
|
+
require('../../../../store/state/sendBalances.cjs');
|
|
83
|
+
require('../../../../components/Input/Input.cjs');
|
|
84
|
+
require('../../../../components/OverlayCard/OverlayCard.cjs');
|
|
85
|
+
require('../../../../views/TransactionConfirmationView/TransactionConfirmationView.cjs');
|
|
86
|
+
require('../../../../context/PasskeyContext/PasskeyContext.cjs');
|
|
87
|
+
require('../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs');
|
|
88
|
+
require('../../../../context/OnrampContext/OnrampContext.cjs');
|
|
89
|
+
require('qrcode');
|
|
90
|
+
require('../ReceiveWalletFunds/ReceiveWalletFunds.cjs');
|
|
91
|
+
require('../../../../../index.cjs');
|
|
92
|
+
require('../../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
|
|
93
|
+
require('../../../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
|
|
94
|
+
require('../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
|
|
95
|
+
require('@hcaptcha/react-hcaptcha');
|
|
96
|
+
require('../../../../context/ErrorContext/hooks/useErrorText/useErrorText.cjs');
|
|
97
|
+
require('../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
98
|
+
require('../../helpers/convertExchangeKeyAndProviderEnum.cjs');
|
|
99
|
+
require('../../../../store/state/connectorsInitializing/connectorsInitializing.cjs');
|
|
100
|
+
require('../../../../store/state/tokenBalances.cjs');
|
|
101
|
+
require('../../../../shared/utils/functions/getInitialUrl/getInitialUrl.cjs');
|
|
102
|
+
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
103
|
+
require('../../../../components/IsBrowser/IsBrowser.cjs');
|
|
104
|
+
require('../../../../components/Popper/Popper/Popper.cjs');
|
|
105
|
+
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
106
|
+
|
|
107
|
+
const DepositedExchangeView = ({ transaction, onClose, onSubmit, toAddress, onView, }) => {
|
|
108
|
+
const { t } = reactI18next.useTranslation();
|
|
109
|
+
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', id: 'close-button', "data-testid": 'close-button', onClick: () => {
|
|
110
|
+
onClose();
|
|
111
|
+
}, children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
112
|
+
return (jsxRuntime.jsxs("div", { className: 'deposited-exchange-view', children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, children: jsxRuntime.jsx(Typography.Typography, { variant: 'title', children: t('dyn_deposited_exchange.title') }) }), jsxRuntime.jsxs("div", { className: 'deposited-exchange-view__container', children: [jsxRuntime.jsx("div", { className: 'deposited-exchange-view__container__icon-holder', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', className: 'fund-from-wallet__content__wallet-card__balance__icon-holder__icon', children: jsxRuntime.jsx(whiteCheckBlackCircle.ReactComponent, { "data-testid": 'token-select-dropdown' }) }) }), jsxRuntime.jsx("div", { className: 'deposited-exchange-view__container__description', children: jsxRuntime.jsxs(Typography.Typography, { className: 'deposited-exchange-view__container__description__text', children: [jsxRuntime.jsxs("strong", { children: [transaction.amount, " ", transaction.currency] }), t('dyn_deposited_exchange.description', {
|
|
113
|
+
address: shortenWalletAddress.shortenWalletAddress(toAddress),
|
|
114
|
+
})] }) }), jsxRuntime.jsxs("div", { className: 'deposited-exchange-view__container__buttons', children: [jsxRuntime.jsx("div", { className: 'deposited-exchange-view__container__buttons__button', children: jsxRuntime.jsx(TypographyButton.TypographyButton, { dataTestId: 'done-button', buttonVariant: 'brand-primary', buttonPadding: 'large', className: 'deposited-exchange-view__container__buttons__button__button', typographyProps: { color: 'white' }, onClick: () => {
|
|
115
|
+
onSubmit();
|
|
116
|
+
}, children: t('dyn_deposited_exchange.done') }) }), jsxRuntime.jsx("div", { className: 'deposited-exchange-view__container__buttons__button', children: jsxRuntime.jsx(TypographyButton.TypographyButton, { dataTestId: 'view-button', buttonVariant: 'secondary', buttonPadding: 'large', className: 'deposited-exchange-view__container__buttons__button__button', typographyProps: { color: 'primary' }, onClick: () => {
|
|
117
|
+
onView();
|
|
118
|
+
}, children: t('dyn_deposited_exchange.view') }) })] })] }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { asFooter: true })] }));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
exports.DepositedExchangeView = DepositedExchangeView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ExchangeTransferResponse } from '@dynamic-labs/sdk-api-core';
|
|
3
|
+
type props = {
|
|
4
|
+
transaction: ExchangeTransferResponse;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSubmit: () => void;
|
|
7
|
+
onView: () => void;
|
|
8
|
+
toAddress: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DepositedExchangeView: FC<props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { Typography } from '../../../../components/Typography/Typography.js';
|
|
5
|
+
import { TypographyButton } from '../../../../components/TypographyButton/TypographyButton.js';
|
|
6
|
+
import '@dynamic-labs/utils';
|
|
7
|
+
import '../../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import { ReactComponent as SvgClose } from '../../../../shared/assets/close.js';
|
|
10
|
+
import '@dynamic-labs/iconic';
|
|
11
|
+
import '../../../../context/ViewContext/ViewContext.js';
|
|
12
|
+
import { ReactComponent as SvgWhiteCheckBlackCircle } from '../../../../shared/assets/white-check-black-circle.js';
|
|
13
|
+
import '../../../../../../_virtual/_tslib.js';
|
|
14
|
+
import '@dynamic-labs/sdk-api-core';
|
|
15
|
+
import '../../../../shared/logger.js';
|
|
16
|
+
import '@dynamic-labs/wallet-connector-core';
|
|
17
|
+
import '@dynamic-labs/wallet-book';
|
|
18
|
+
import { shortenWalletAddress } from '../../../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
19
|
+
import '../../../../utils/constants/colors.js';
|
|
20
|
+
import '../../../../utils/constants/values.js';
|
|
21
|
+
import '../../../../shared/consts/index.js';
|
|
22
|
+
import '../../../../components/Alert/Alert.js';
|
|
23
|
+
import '../../../../events/dynamicEvents.js';
|
|
24
|
+
import '../../../../context/DynamicContext/DynamicContext.js';
|
|
25
|
+
import '../../../../store/state/loadingAndLifecycle/loadingAndLifecycle.js';
|
|
26
|
+
import '../../../../store/state/authMode/authMode.js';
|
|
27
|
+
import '../../../../context/CaptchaContext/CaptchaContext.js';
|
|
28
|
+
import '../../../../context/ErrorContext/ErrorContext.js';
|
|
29
|
+
import '@dynamic-labs/multi-wallet';
|
|
30
|
+
import 'react-international-phone';
|
|
31
|
+
import '../../../../store/state/nonce/nonce.js';
|
|
32
|
+
import '../../../../store/state/projectSettings/projectSettings.js';
|
|
33
|
+
import '../../../../config/ApiEndpoint.js';
|
|
34
|
+
import '../../../../store/state/user/user.js';
|
|
35
|
+
import '../../../../locale/locale.js';
|
|
36
|
+
import '../../../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
37
|
+
import '../../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
38
|
+
import '../../../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
39
|
+
import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
40
|
+
import '../../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
41
|
+
import '../../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
42
|
+
import '../../../../context/VerificationContext/VerificationContext.js';
|
|
43
|
+
import 'react-dom';
|
|
44
|
+
import '../../../../utils/functions/compareChains/compareChains.js';
|
|
45
|
+
import '../../../../views/Passkey/utils/findPrimaryEmbeddedChain/findPrimaryEmbeddedChain.js';
|
|
46
|
+
import '../../../../context/ThemeContext/ThemeContext.js';
|
|
47
|
+
import '../../../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
48
|
+
import 'bs58';
|
|
49
|
+
import '@dynamic-labs/types';
|
|
50
|
+
import '../../../../context/SocialRedirectContext/SocialRedirectContext.js';
|
|
51
|
+
import '../../../../context/LoadingContext/LoadingContext.js';
|
|
52
|
+
import '../../../../context/WalletContext/WalletContext.js';
|
|
53
|
+
import '../../../../utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/constants.js';
|
|
54
|
+
import 'yup';
|
|
55
|
+
import '../../../../context/MockContext/MockContext.js';
|
|
56
|
+
import '../../../../views/CollectUserDataView/useFields.js';
|
|
57
|
+
import '../../../../context/FieldsStateContext/FieldsStateContext.js';
|
|
58
|
+
import '../../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
59
|
+
import '@dynamic-labs/rpc-providers';
|
|
60
|
+
import '../../../../store/state/walletOptions/walletOptions.js';
|
|
61
|
+
import { PoweredByDynamic } from '../../../../components/PoweredByDynamic/PoweredByDynamic.js';
|
|
62
|
+
import '../../../../context/FooterAnimationContext/index.js';
|
|
63
|
+
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
64
|
+
import '../../../../components/Transition/ZoomTransition/ZoomTransition.js';
|
|
65
|
+
import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
|
|
66
|
+
import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
|
|
67
|
+
import '../../../../components/OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
68
|
+
import '../../../../context/WalletGroupContext/WalletGroupContext.js';
|
|
69
|
+
import '../../components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
70
|
+
import 'react-focus-lock';
|
|
71
|
+
import { Icon } from '../../../../components/Icon/Icon.js';
|
|
72
|
+
import '../../context/DynamicWidgetContext.js';
|
|
73
|
+
import { IconButton } from '../../../../components/IconButton/IconButton.js';
|
|
74
|
+
import '../../../../components/MenuList/Dropdown/Dropdown.js';
|
|
75
|
+
import 'formik';
|
|
76
|
+
import '../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
77
|
+
import { ModalHeader } from '../../../../components/ModalHeader/ModalHeader.js';
|
|
78
|
+
import '../../../../store/state/sendBalances.js';
|
|
79
|
+
import '../../../../components/Input/Input.js';
|
|
80
|
+
import '../../../../components/OverlayCard/OverlayCard.js';
|
|
81
|
+
import '../../../../views/TransactionConfirmationView/TransactionConfirmationView.js';
|
|
82
|
+
import '../../../../context/PasskeyContext/PasskeyContext.js';
|
|
83
|
+
import '../ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
|
|
84
|
+
import '../../../../context/OnrampContext/OnrampContext.js';
|
|
85
|
+
import 'qrcode';
|
|
86
|
+
import '../ReceiveWalletFunds/ReceiveWalletFunds.js';
|
|
87
|
+
import '../../../../../index.js';
|
|
88
|
+
import '../../../../context/IpConfigurationContext/IpConfigurationContext.js';
|
|
89
|
+
import '../../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
|
|
90
|
+
import '../../../DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
|
|
91
|
+
import '@hcaptcha/react-hcaptcha';
|
|
92
|
+
import '../../../../context/ErrorContext/hooks/useErrorText/useErrorText.js';
|
|
93
|
+
import '../../../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
94
|
+
import '../../helpers/convertExchangeKeyAndProviderEnum.js';
|
|
95
|
+
import '../../../../store/state/connectorsInitializing/connectorsInitializing.js';
|
|
96
|
+
import '../../../../store/state/tokenBalances.js';
|
|
97
|
+
import '../../../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
98
|
+
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
99
|
+
import '../../../../components/IsBrowser/IsBrowser.js';
|
|
100
|
+
import '../../../../components/Popper/Popper/Popper.js';
|
|
101
|
+
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
102
|
+
|
|
103
|
+
const DepositedExchangeView = ({ transaction, onClose, onSubmit, toAddress, onView, }) => {
|
|
104
|
+
const { t } = useTranslation();
|
|
105
|
+
const closeButton = (jsx(IconButton, { type: 'button', id: 'close-button', "data-testid": 'close-button', onClick: () => {
|
|
106
|
+
onClose();
|
|
107
|
+
}, children: jsx(SvgClose, {}) }));
|
|
108
|
+
return (jsxs("div", { className: 'deposited-exchange-view', children: [jsx(ModalHeader, { trailing: closeButton, children: jsx(Typography, { variant: 'title', children: t('dyn_deposited_exchange.title') }) }), jsxs("div", { className: 'deposited-exchange-view__container', children: [jsx("div", { className: 'deposited-exchange-view__container__icon-holder', children: jsx(Icon, { color: 'text-tertiary', className: 'fund-from-wallet__content__wallet-card__balance__icon-holder__icon', children: jsx(SvgWhiteCheckBlackCircle, { "data-testid": 'token-select-dropdown' }) }) }), jsx("div", { className: 'deposited-exchange-view__container__description', children: jsxs(Typography, { className: 'deposited-exchange-view__container__description__text', children: [jsxs("strong", { children: [transaction.amount, " ", transaction.currency] }), t('dyn_deposited_exchange.description', {
|
|
109
|
+
address: shortenWalletAddress(toAddress),
|
|
110
|
+
})] }) }), jsxs("div", { className: 'deposited-exchange-view__container__buttons', children: [jsx("div", { className: 'deposited-exchange-view__container__buttons__button', children: jsx(TypographyButton, { dataTestId: 'done-button', buttonVariant: 'brand-primary', buttonPadding: 'large', className: 'deposited-exchange-view__container__buttons__button__button', typographyProps: { color: 'white' }, onClick: () => {
|
|
111
|
+
onSubmit();
|
|
112
|
+
}, children: t('dyn_deposited_exchange.done') }) }), jsx("div", { className: 'deposited-exchange-view__container__buttons__button', children: jsx(TypographyButton, { dataTestId: 'view-button', buttonVariant: 'secondary', buttonPadding: 'large', className: 'deposited-exchange-view__container__buttons__button__button', typographyProps: { color: 'primary' }, onClick: () => {
|
|
113
|
+
onView();
|
|
114
|
+
}, children: t('dyn_deposited_exchange.view') }) })] })] }), jsx(PoweredByDynamic, { asFooter: true })] }));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { DepositedExchangeView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DepositedExchangeView } from './DepositedExchangeView';
|