@dynamic-labs/sdk-react-core 1.0.6 → 1.0.8
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 +19 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +12 -12
- package/src/index.cjs +10 -8
- package/src/index.js +5 -4
- package/src/lib/Main.cjs +1 -1
- package/src/lib/Main.js +1 -1
- package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts +2 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -1
- package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +2 -2
- package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +2 -2
- package/src/lib/components/WalletInformationCard/WalletInformationCard.cjs +3 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.d.ts +2 -1
- package/src/lib/components/WalletInformationCard/WalletInformationCard.js +3 -1
- package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -2
- package/src/lib/context/DynamicContext/DynamicContext.js +2 -2
- package/src/lib/data/api.cjs +2 -2
- package/src/lib/data/api.d.ts +1 -0
- package/src/lib/data/api.js +2 -2
- package/src/lib/locale/en/translation.cjs +34 -0
- package/src/lib/locale/en/translation.d.ts +34 -0
- package/src/lib/locale/en/translation.js +34 -0
- package/src/lib/shared/utils/hooks/index.d.ts +5 -4
- package/src/lib/shared/utils/hooks/useThrottle/index.d.ts +1 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.cjs +29 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.d.ts +8 -0
- package/src/lib/shared/utils/hooks/useThrottle/useThrottle.js +25 -0
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.cjs +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.d.ts +1 -1
- package/src/lib/utils/functions/getWalletIdentifier/getWalletIdentifier.js +1 -1
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.cjs +13 -2
- package/src/lib/utils/hooks/multiWallet/useSyncPrimaryWallet/useSyncPrimaryWallet.js +13 -2
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.cjs +1 -1
- package/src/lib/utils/hooks/useColorSchemePreference/useColorSchemePreference.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +14 -6
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +14 -6
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.cjs +15 -1
- package/src/lib/utils/hooks/useFetchProjectSettings/useFetchProjectSettings.js +16 -2
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +8 -8
- package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +8 -8
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +4 -3
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +4 -3
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.cjs +65 -45
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.d.ts +5 -7
- package/src/lib/utils/hooks/useWalletsConnectionState/useWalletsConnectionState.js +66 -46
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +3 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +10 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +11 -6
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +6 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +6 -5
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +5 -2
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +5 -2
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +3 -1
- package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
### [1.0.8](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.7...v1.0.8) (2024-01-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* pass id to wagmi chain override ([#4512](https://github.com/dynamic-labs/DynamicAuth/issues/4512)) ([#4514](https://github.com/dynamic-labs/DynamicAuth/issues/4514)) ([0e6da01](https://github.com/dynamic-labs/DynamicAuth/commit/0e6da0108d30b9ae65062126f4a41543740acc87))
|
|
8
|
+
|
|
9
|
+
### [1.0.7](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.6...v1.0.7) (2024-01-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add support for newest backpack extension ([66786ce](https://github.com/dynamic-labs/DynamicAuth/commit/66786ceb7927046c1cdb439888271f3070ca93a4))
|
|
15
|
+
* broken help icon in create passkey view ([2e38ea5](https://github.com/dynamic-labs/DynamicAuth/commit/2e38ea580e55f3349a2d3040d7b07bb2923631f7))
|
|
16
|
+
* connect to wallet with wallet connect even if network is not supported ([#4465](https://github.com/dynamic-labs/DynamicAuth/issues/4465)) ([#4472](https://github.com/dynamic-labs/DynamicAuth/issues/4472)) ([8270b94](https://github.com/dynamic-labs/DynamicAuth/commit/8270b9468c289e7c49cd2ef104fb73dfaaa9f41c))
|
|
17
|
+
* infinite loop when connecting with trust wallet ([#4448](https://github.com/dynamic-labs/DynamicAuth/issues/4448)) ([#4450](https://github.com/dynamic-labs/DynamicAuth/issues/4450)) ([c5ffee6](https://github.com/dynamic-labs/DynamicAuth/commit/c5ffee67a6a95ee62e779da69ce311c90575388f))
|
|
18
|
+
* logging in with an email linked to a third party wallet gets stu… ([#4422](https://github.com/dynamic-labs/DynamicAuth/issues/4422)) ([995889b](https://github.com/dynamic-labs/DynamicAuth/commit/995889b5d03bcbafecd6959c52a88db8d9db940e))
|
|
19
|
+
* switching wallet in extension caused connected flag to be false ([#4464](https://github.com/dynamic-labs/DynamicAuth/issues/4464)) ([a53dc1a](https://github.com/dynamic-labs/DynamicAuth/commit/a53dc1a9869a270c98753041cfbd587855629af4)), closes [#4454](https://github.com/dynamic-labs/DynamicAuth/issues/4454)
|
|
20
|
+
|
|
2
21
|
### [1.0.6](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.5...v1.0.6) (2024-01-18)
|
|
3
22
|
|
|
4
23
|
|
package/package.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "1.0.
|
|
5
|
+
var version = "1.0.8";
|
|
6
6
|
var dependencies = {
|
|
7
|
-
"@dynamic-labs/iconic": "0.1.
|
|
8
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
7
|
+
"@dynamic-labs/iconic": "0.1.48",
|
|
8
|
+
"@dynamic-labs/sdk-api": "0.0.347",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"country-list": "2.3.0",
|
|
11
11
|
formik: "2.2.9",
|
package/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var version = "1.0.
|
|
1
|
+
var version = "1.0.8";
|
|
2
2
|
var dependencies = {
|
|
3
|
-
"@dynamic-labs/iconic": "0.1.
|
|
4
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
3
|
+
"@dynamic-labs/iconic": "0.1.48",
|
|
4
|
+
"@dynamic-labs/sdk-api": "0.0.347",
|
|
5
5
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
6
6
|
"country-list": "2.3.0",
|
|
7
7
|
formik: "2.2.9",
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
7
7
|
"directory": "packages/sdk-react-core"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@dynamic-labs/iconic": "0.1.
|
|
11
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
10
|
+
"@dynamic-labs/iconic": "0.1.48",
|
|
11
|
+
"@dynamic-labs/sdk-api": "0.0.347",
|
|
12
12
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
13
13
|
"country-list": "2.3.0",
|
|
14
14
|
"formik": "2.2.9",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"react-focus-lock": "2.9.2",
|
|
18
18
|
"react-i18next": "^13.2.0",
|
|
19
19
|
"yup": "0.32.11",
|
|
20
|
-
"@dynamic-labs/ethereum": "1.0.
|
|
21
|
-
"@dynamic-labs/logger": "1.0.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "1.0.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "1.0.
|
|
24
|
-
"@dynamic-labs/types": "1.0.
|
|
25
|
-
"@dynamic-labs/utils": "1.0.
|
|
26
|
-
"@dynamic-labs/viem-utils": "1.0.
|
|
27
|
-
"@dynamic-labs/wallet-book": "1.0.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "1.0.
|
|
20
|
+
"@dynamic-labs/ethereum": "1.0.8",
|
|
21
|
+
"@dynamic-labs/logger": "1.0.8",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "1.0.8",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "1.0.8",
|
|
24
|
+
"@dynamic-labs/types": "1.0.8",
|
|
25
|
+
"@dynamic-labs/utils": "1.0.8",
|
|
26
|
+
"@dynamic-labs/viem-utils": "1.0.8",
|
|
27
|
+
"@dynamic-labs/wallet-book": "1.0.8",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "1.0.8",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -38,13 +38,14 @@ var getWalletListItemLabel = require('./lib/shared/utils/functions/getWalletList
|
|
|
38
38
|
var formatBigNumber = require('./lib/shared/utils/functions/formatBigNumber/formatBigNumber.cjs');
|
|
39
39
|
var trimEnd = require('./lib/shared/utils/functions/trimEnd/trimEnd.cjs');
|
|
40
40
|
var ceil = require('./lib/shared/utils/functions/ceil/ceil.cjs');
|
|
41
|
+
var useEffectOnce = require('./lib/shared/utils/hooks/useEffectOnce/useEffectOnce.cjs');
|
|
42
|
+
var useForwardedRef = require('./lib/shared/utils/hooks/useForwardedRef/useForwardedRef.cjs');
|
|
43
|
+
var useGlobalLoading = require('./lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs');
|
|
41
44
|
var useLocalStorage = require('./lib/shared/utils/hooks/useLocalStorage/useLocalStorage.cjs');
|
|
45
|
+
var useMediaQuery = require('./lib/shared/utils/hooks/useMediaQuery/useMediaQuery.cjs');
|
|
42
46
|
var index$1 = require('./lib/shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
43
47
|
var usePreventPageScroll = require('./lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.cjs');
|
|
44
|
-
var
|
|
45
|
-
var useMediaQuery = require('./lib/shared/utils/hooks/useMediaQuery/useMediaQuery.cjs');
|
|
46
|
-
var useEffectOnce = require('./lib/shared/utils/hooks/useEffectOnce/useEffectOnce.cjs');
|
|
47
|
-
var useForwardedRef = require('./lib/shared/utils/hooks/useForwardedRef/useForwardedRef.cjs');
|
|
48
|
+
var useThrottle = require('./lib/shared/utils/hooks/useThrottle/useThrottle.cjs');
|
|
48
49
|
var localStorage = require('./lib/shared/utils/classes/storage/localStorage.cjs');
|
|
49
50
|
var PhantomLedgerIcon = require('./lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.cjs');
|
|
50
51
|
var addWallet = require('./lib/shared/assets/add-wallet.cjs');
|
|
@@ -217,13 +218,14 @@ exports.getWalletListItemLabel = getWalletListItemLabel.getWalletListItemLabel;
|
|
|
217
218
|
exports.formatBigNumber = formatBigNumber.formatBigNumber;
|
|
218
219
|
exports.trimEnd = trimEnd.trimEnd;
|
|
219
220
|
exports.ceil = ceil.ceil;
|
|
221
|
+
exports.useEffectOnce = useEffectOnce.useEffectOnce;
|
|
222
|
+
exports.useForwardedRef = useForwardedRef.useForwardedRef;
|
|
223
|
+
exports.useGlobalLoading = useGlobalLoading.useGlobalLoading;
|
|
220
224
|
exports.useLocalStorage = useLocalStorage.useLocalStorage;
|
|
225
|
+
exports.useMediaQuery = useMediaQuery.useMediaQuery;
|
|
221
226
|
exports.useOnClickOutside = index$1.useOnClickOutside;
|
|
222
227
|
exports.usePreventPageScroll = usePreventPageScroll.usePreventPageScroll;
|
|
223
|
-
exports.
|
|
224
|
-
exports.useMediaQuery = useMediaQuery.useMediaQuery;
|
|
225
|
-
exports.useEffectOnce = useEffectOnce.useEffectOnce;
|
|
226
|
-
exports.useForwardedRef = useForwardedRef.useForwardedRef;
|
|
228
|
+
exports.useThrottle = useThrottle.useThrottle;
|
|
227
229
|
exports.LocalStorage = localStorage.LocalStorage;
|
|
228
230
|
exports.PhantomLedgerIcon = PhantomLedgerIcon.PhantomLedgerIcon;
|
|
229
231
|
exports.AddWalletIcon = addWallet.ReactComponent;
|
package/src/index.js
CHANGED
|
@@ -34,13 +34,14 @@ export { getWalletListItemLabel } from './lib/shared/utils/functions/getWalletLi
|
|
|
34
34
|
export { formatBigNumber } from './lib/shared/utils/functions/formatBigNumber/formatBigNumber.js';
|
|
35
35
|
export { trimEnd } from './lib/shared/utils/functions/trimEnd/trimEnd.js';
|
|
36
36
|
export { ceil } from './lib/shared/utils/functions/ceil/ceil.js';
|
|
37
|
+
export { useEffectOnce } from './lib/shared/utils/hooks/useEffectOnce/useEffectOnce.js';
|
|
38
|
+
export { useForwardedRef } from './lib/shared/utils/hooks/useForwardedRef/useForwardedRef.js';
|
|
39
|
+
export { useGlobalLoading } from './lib/shared/utils/hooks/useGlobalLoading/useGlobalLoading.js';
|
|
37
40
|
export { useLocalStorage } from './lib/shared/utils/hooks/useLocalStorage/useLocalStorage.js';
|
|
41
|
+
export { useMediaQuery } from './lib/shared/utils/hooks/useMediaQuery/useMediaQuery.js';
|
|
38
42
|
export { useOnClickOutside } from './lib/shared/utils/hooks/useOnClickOutside/index.js';
|
|
39
43
|
export { usePreventPageScroll } from './lib/shared/utils/hooks/usePreventPageScroll/usePreventPageScroll.js';
|
|
40
|
-
export {
|
|
41
|
-
export { useMediaQuery } from './lib/shared/utils/hooks/useMediaQuery/useMediaQuery.js';
|
|
42
|
-
export { useEffectOnce } from './lib/shared/utils/hooks/useEffectOnce/useEffectOnce.js';
|
|
43
|
-
export { useForwardedRef } from './lib/shared/utils/hooks/useForwardedRef/useForwardedRef.js';
|
|
44
|
+
export { useThrottle } from './lib/shared/utils/hooks/useThrottle/useThrottle.js';
|
|
44
45
|
export { LocalStorage } from './lib/shared/utils/classes/storage/localStorage.js';
|
|
45
46
|
export { PhantomLedgerIcon } from './lib/shared/assets/wallets/PhantomLedgerIcon/PhantomLedgerIcon.js';
|
|
46
47
|
export { ReactComponent as AddWalletIcon } from './lib/shared/assets/add-wallet.js';
|
package/src/lib/Main.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var index$1 = require('./shared/consts/index.cjs');
|
|
|
24
24
|
require('./context/DynamicContext/DynamicContext.cjs');
|
|
25
25
|
var useInternalDynamicContext = require('./context/DynamicContext/useInternalDynamicContext.cjs');
|
|
26
26
|
var UserWalletsContext = require('./context/UserWalletsContext/UserWalletsContext.cjs');
|
|
27
|
+
require('react-i18next');
|
|
27
28
|
require('./context/CaptchaContext/CaptchaContext.cjs');
|
|
28
29
|
require('./context/ErrorContext/ErrorContext.cjs');
|
|
29
30
|
var isSupportedNetwork = require('./utils/functions/isSupportedNetwork/isSupportedNetwork.cjs');
|
|
@@ -37,7 +38,6 @@ var isSameWalletName = require('./utils/functions/isSameWalletName/isSameWalletN
|
|
|
37
38
|
require('./context/ThemeContext/ThemeContext.cjs');
|
|
38
39
|
require('@dynamic-labs/types');
|
|
39
40
|
require('yup');
|
|
40
|
-
require('react-i18next');
|
|
41
41
|
require('./context/MockContext/MockContext.cjs');
|
|
42
42
|
require('./utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs');
|
|
43
43
|
require('./context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
package/src/lib/Main.js
CHANGED
|
@@ -20,6 +20,7 @@ import { authModalZIndex } from './shared/consts/index.js';
|
|
|
20
20
|
import './context/DynamicContext/DynamicContext.js';
|
|
21
21
|
import { useInternalDynamicContext } from './context/DynamicContext/useInternalDynamicContext.js';
|
|
22
22
|
import { useUserWallets } from './context/UserWalletsContext/UserWalletsContext.js';
|
|
23
|
+
import 'react-i18next';
|
|
23
24
|
import './context/CaptchaContext/CaptchaContext.js';
|
|
24
25
|
import './context/ErrorContext/ErrorContext.js';
|
|
25
26
|
import { isSupportedNetwork } from './utils/functions/isSupportedNetwork/isSupportedNetwork.js';
|
|
@@ -33,7 +34,6 @@ import { isSameWalletName } from './utils/functions/isSameWalletName/isSameWalle
|
|
|
33
34
|
import './context/ThemeContext/ThemeContext.js';
|
|
34
35
|
import '@dynamic-labs/types';
|
|
35
36
|
import 'yup';
|
|
36
|
-
import 'react-i18next';
|
|
37
37
|
import './context/MockContext/MockContext.js';
|
|
38
38
|
import './utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js';
|
|
39
39
|
import './context/UserFieldEditorContext/UserFieldEditorContext.js';
|
package/src/lib/components/InlineWidget/components/InlineWidgetButton/InlineWidgetButton.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC, MouseEventHandler, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { CopyKey } from '../../../../shared';
|
|
2
3
|
type InlineWidgetButtonProps = {
|
|
3
4
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
4
5
|
icon?: ReactElement;
|
|
5
6
|
className?: string;
|
|
6
|
-
};
|
|
7
|
+
} & CopyKey;
|
|
7
8
|
export declare const InlineWidgetButton: FC<PropsWithChildren<InlineWidgetButtonProps>>;
|
|
8
9
|
export {};
|
|
@@ -9,11 +9,11 @@ var classNames = require('../../../utils/functions/classNames/classNames.cjs');
|
|
|
9
9
|
var Popper = require('../../Popper/Popper/Popper.cjs');
|
|
10
10
|
var PopperContext = require('../../Popper/PopperContext/PopperContext.cjs');
|
|
11
11
|
var watchToScrollInHierarchy = require('../utils/watchToScrollInHierarchy/watchToScrollInHierarchy.cjs');
|
|
12
|
+
var useForwardedRef = require('../../../shared/utils/hooks/useForwardedRef/useForwardedRef.cjs');
|
|
12
13
|
require('../../../shared/logger.cjs');
|
|
13
14
|
require('../../../shared/utils/classes/storage/localStorage.cjs');
|
|
14
15
|
var index = require('../../../shared/utils/hooks/useOnClickOutside/index.cjs');
|
|
15
16
|
require('@dynamic-labs/utils');
|
|
16
|
-
var useForwardedRef = require('../../../shared/utils/hooks/useForwardedRef/useForwardedRef.cjs');
|
|
17
17
|
require('@dynamic-labs/sdk-api');
|
|
18
18
|
require('@dynamic-labs/iconic');
|
|
19
19
|
require('@dynamic-labs/wallet-connector-core');
|
|
@@ -5,11 +5,11 @@ import { classNames } from '../../../utils/functions/classNames/classNames.js';
|
|
|
5
5
|
import { Popper } from '../../Popper/Popper/Popper.js';
|
|
6
6
|
import { usePopper } from '../../Popper/PopperContext/PopperContext.js';
|
|
7
7
|
import { watchToScrollInHierarchy } from '../utils/watchToScrollInHierarchy/watchToScrollInHierarchy.js';
|
|
8
|
+
import { useForwardedRef } from '../../../shared/utils/hooks/useForwardedRef/useForwardedRef.js';
|
|
8
9
|
import '../../../shared/logger.js';
|
|
9
10
|
import '../../../shared/utils/classes/storage/localStorage.js';
|
|
10
11
|
import { useOnClickOutside } from '../../../shared/utils/hooks/useOnClickOutside/index.js';
|
|
11
12
|
import '@dynamic-labs/utils';
|
|
12
|
-
import { useForwardedRef } from '../../../shared/utils/hooks/useForwardedRef/useForwardedRef.js';
|
|
13
13
|
import '@dynamic-labs/sdk-api';
|
|
14
14
|
import '@dynamic-labs/iconic';
|
|
15
15
|
import '@dynamic-labs/wallet-connector-core';
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
6
|
var React = require('react');
|
|
8
7
|
var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
|
|
9
8
|
require('@dynamic-labs/sdk-api');
|
|
10
9
|
require('../../shared/logger.cjs');
|
|
11
10
|
require('@dynamic-labs/iconic');
|
|
12
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
+
require('react/jsx-runtime');
|
|
13
13
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
14
14
|
require('@dynamic-labs/wallet-book');
|
|
15
15
|
var localStorage$1 = require('../../utils/constants/localStorage.cjs');
|
|
@@ -102,7 +102,7 @@ const SyncPasskeyFlow = () => {
|
|
|
102
102
|
user,
|
|
103
103
|
createEmbeddedWallet,
|
|
104
104
|
]);
|
|
105
|
-
return
|
|
105
|
+
return null;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
exports.SyncPasskeyFlow = SyncPasskeyFlow;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
2
|
import { useEffect } from 'react';
|
|
4
3
|
import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
|
|
5
4
|
import '@dynamic-labs/sdk-api';
|
|
6
5
|
import '../../shared/logger.js';
|
|
7
6
|
import '@dynamic-labs/iconic';
|
|
8
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
9
|
import '../../context/ViewContext/ViewContext.js';
|
|
10
10
|
import '@dynamic-labs/wallet-book';
|
|
11
11
|
import { LAST_USED_WALLET } from '../../utils/constants/localStorage.js';
|
|
@@ -98,7 +98,7 @@ const SyncPasskeyFlow = () => {
|
|
|
98
98
|
user,
|
|
99
99
|
createEmbeddedWallet,
|
|
100
100
|
]);
|
|
101
|
-
return
|
|
101
|
+
return null;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export { SyncPasskeyFlow };
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var reactI18next = require('react-i18next');
|
|
7
8
|
var Typography = require('../Typography/Typography.cjs');
|
|
8
9
|
require('@dynamic-labs/sdk-api');
|
|
9
10
|
require('../../shared/logger.cjs');
|
|
@@ -20,6 +21,7 @@ require('../../shared/consts/index.cjs');
|
|
|
20
21
|
var Icon = require('../Icon/Icon.cjs');
|
|
21
22
|
|
|
22
23
|
const WalletInformationCard = ({ address, ens, balance, icon, network, menu, }) => {
|
|
24
|
+
const { t } = reactI18next.useTranslation();
|
|
23
25
|
const details = React.useMemo(() => {
|
|
24
26
|
const shortenAddress = shortenWalletAddress.shortenWalletAddress(address, 4, 4);
|
|
25
27
|
if (ens) {
|
|
@@ -27,7 +29,7 @@ const WalletInformationCard = ({ address, ens, balance, icon, network, menu, })
|
|
|
27
29
|
}
|
|
28
30
|
return (jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', children: shortenAddress }));
|
|
29
31
|
}, [ens, address]);
|
|
30
|
-
return (jsxRuntime.jsxs("div", { className: 'wallet-information-card', children: [jsxRuntime.jsxs("div", { className: 'wallet-information-card__header', children: [jsxRuntime.jsxs("div", { className: 'wallet-information-card__details-container', children: [icon && (jsxRuntime.jsx(Icon.Icon, { className: 'wallet-information-card__icon', children: icon })), jsxRuntime.jsx("div", { className: 'wallet-information-card__details', children: details }), jsxRuntime.jsx("div", { className: 'wallet-information-card__menu', children: menu })] }), network] }), jsxRuntime.jsxs("div", { className: 'wallet-information-card__balance-container', children: [jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', children:
|
|
32
|
+
return (jsxRuntime.jsxs("div", { className: 'wallet-information-card', children: [jsxRuntime.jsxs("div", { className: 'wallet-information-card__header', children: [jsxRuntime.jsxs("div", { className: 'wallet-information-card__details-container', children: [icon && (jsxRuntime.jsx(Icon.Icon, { className: 'wallet-information-card__icon', children: icon })), jsxRuntime.jsx("div", { className: 'wallet-information-card__details', children: details }), jsxRuntime.jsx("div", { className: 'wallet-information-card__menu', children: menu })] }), network] }), jsxRuntime.jsxs("div", { className: 'wallet-information-card__balance-container', children: [jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', copykey: 'dyn_wallet_information.balance', children: t('dyn_wallet_information.balance') }), balance] })] }));
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
exports.WalletInformationCard = WalletInformationCard;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { CopyKey } from '../../shared';
|
|
2
3
|
type WalletInformationCardProps = {
|
|
3
4
|
address: string;
|
|
4
5
|
ens?: string;
|
|
@@ -6,6 +7,6 @@ type WalletInformationCardProps = {
|
|
|
6
7
|
network?: ReactNode;
|
|
7
8
|
balance?: ReactNode;
|
|
8
9
|
menu?: ReactNode;
|
|
9
|
-
};
|
|
10
|
+
} & CopyKey;
|
|
10
11
|
export declare const WalletInformationCard: FC<WalletInformationCardProps>;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
3
4
|
import { Typography } from '../Typography/Typography.js';
|
|
4
5
|
import '@dynamic-labs/sdk-api';
|
|
5
6
|
import '../../shared/logger.js';
|
|
@@ -16,6 +17,7 @@ import '../../shared/consts/index.js';
|
|
|
16
17
|
import { Icon } from '../Icon/Icon.js';
|
|
17
18
|
|
|
18
19
|
const WalletInformationCard = ({ address, ens, balance, icon, network, menu, }) => {
|
|
20
|
+
const { t } = useTranslation();
|
|
19
21
|
const details = useMemo(() => {
|
|
20
22
|
const shortenAddress = shortenWalletAddress(address, 4, 4);
|
|
21
23
|
if (ens) {
|
|
@@ -23,7 +25,7 @@ const WalletInformationCard = ({ address, ens, balance, icon, network, menu, })
|
|
|
23
25
|
}
|
|
24
26
|
return (jsx(Typography, { weight: 'medium', variant: 'body_normal', color: 'primary', children: shortenAddress }));
|
|
25
27
|
}, [ens, address]);
|
|
26
|
-
return (jsxs("div", { className: 'wallet-information-card', children: [jsxs("div", { className: 'wallet-information-card__header', children: [jsxs("div", { className: 'wallet-information-card__details-container', children: [icon && (jsx(Icon, { className: 'wallet-information-card__icon', children: icon })), jsx("div", { className: 'wallet-information-card__details', children: details }), jsx("div", { className: 'wallet-information-card__menu', children: menu })] }), network] }), jsxs("div", { className: 'wallet-information-card__balance-container', children: [jsx(Typography, { color: 'secondary', variant: 'body_small', children:
|
|
28
|
+
return (jsxs("div", { className: 'wallet-information-card', children: [jsxs("div", { className: 'wallet-information-card__header', children: [jsxs("div", { className: 'wallet-information-card__details-container', children: [icon && (jsx(Icon, { className: 'wallet-information-card__icon', children: icon })), jsx("div", { className: 'wallet-information-card__details', children: details }), jsx("div", { className: 'wallet-information-card__menu', children: menu })] }), network] }), jsxs("div", { className: 'wallet-information-card__balance-container', children: [jsx(Typography, { color: 'secondary', variant: 'body_small', copykey: 'dyn_wallet_information.balance', children: t('dyn_wallet_information.balance') }), balance] })] }));
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
export { WalletInformationCard };
|
|
@@ -21,8 +21,8 @@ require('../../utils/constants/colors.cjs');
|
|
|
21
21
|
var values = require('../../utils/constants/values.cjs');
|
|
22
22
|
var localStorage = require('../../shared/utils/classes/storage/localStorage.cjs');
|
|
23
23
|
require('viem');
|
|
24
|
-
var useLocalStorage = require('../../shared/utils/hooks/useLocalStorage/useLocalStorage.cjs');
|
|
25
24
|
var useGlobalLoading = require('../../shared/utils/hooks/useGlobalLoading/useGlobalLoading.cjs');
|
|
25
|
+
var useLocalStorage = require('../../shared/utils/hooks/useLocalStorage/useLocalStorage.cjs');
|
|
26
26
|
require('../../shared/consts/index.cjs');
|
|
27
27
|
require('@dynamic-labs/multi-wallet');
|
|
28
28
|
var getAuthToken = require('../../utils/functions/getAuthToken/getAuthToken.cjs');
|
|
@@ -118,7 +118,7 @@ const DynamicContext = React.createContext(undefined);
|
|
|
118
118
|
/** The context provider itself we only use internally */
|
|
119
119
|
const InnerDynamicContextProvider = ({ children, theme, settings, locale: locale$1, }) => {
|
|
120
120
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
121
|
-
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, enableForcedNetworkValidation: enableForcedNetworkValidationProp = false, deepLinkPreference = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, localStorageSuffix, eventsCallbacks, evmNetworks, walletsFilter, logLevel = 'WARN', notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView =
|
|
121
|
+
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, enableForcedNetworkValidation: enableForcedNetworkValidationProp = false, deepLinkPreference = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, localStorageSuffix, eventsCallbacks, evmNetworks, walletsFilter, logLevel = 'WARN', notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, } = settings;
|
|
122
122
|
let enableForcedNetworkValidation = enableForcedNetworkValidationProp;
|
|
123
123
|
if (bridgeChains) {
|
|
124
124
|
enableForcedNetworkValidation = true;
|
|
@@ -17,8 +17,8 @@ import '../../utils/constants/colors.js';
|
|
|
17
17
|
import { DEFAULT_NUMBER_OF_WALLETS_TO_SHOW } from '../../utils/constants/values.js';
|
|
18
18
|
import { LocalStorage } from '../../shared/utils/classes/storage/localStorage.js';
|
|
19
19
|
import 'viem';
|
|
20
|
-
import { useLocalStorage } from '../../shared/utils/hooks/useLocalStorage/useLocalStorage.js';
|
|
21
20
|
import { useGlobalLoading } from '../../shared/utils/hooks/useGlobalLoading/useGlobalLoading.js';
|
|
21
|
+
import { useLocalStorage } from '../../shared/utils/hooks/useLocalStorage/useLocalStorage.js';
|
|
22
22
|
import '../../shared/consts/index.js';
|
|
23
23
|
import '@dynamic-labs/multi-wallet';
|
|
24
24
|
import { getAuthToken } from '../../utils/functions/getAuthToken/getAuthToken.js';
|
|
@@ -114,7 +114,7 @@ const DynamicContext = createContext(undefined);
|
|
|
114
114
|
/** The context provider itself we only use internally */
|
|
115
115
|
const InnerDynamicContextProvider = ({ children, theme, settings, locale, }) => {
|
|
116
116
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
117
|
-
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, enableForcedNetworkValidation: enableForcedNetworkValidationProp = false, deepLinkPreference = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, localStorageSuffix, eventsCallbacks, evmNetworks, walletsFilter, logLevel = 'WARN', notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView =
|
|
117
|
+
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, apiBaseUrl, enableForcedNetworkValidation: enableForcedNetworkValidationProp = false, deepLinkPreference = 'native', bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = 'connect-and-sign', debugError = false, displaySiweStatement = true, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = true, environmentId, localStorageSuffix, eventsCallbacks, evmNetworks, walletsFilter, logLevel = 'WARN', notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, signWithEmailWalletName, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, toolkitEnabled, siweStatement, shadowDOMEnabled = true, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = false, walletConnectPreferredChains, walletConnectorExtensions, } = settings;
|
|
118
118
|
let enableForcedNetworkValidation = enableForcedNetworkValidationProp;
|
|
119
119
|
if (bridgeChains) {
|
|
120
120
|
enableForcedNetworkValidation = true;
|
package/src/lib/data/api.cjs
CHANGED
|
@@ -430,9 +430,9 @@ const getOnrampProviders = ({ chain, environmentId, networkId, token, walletAddr
|
|
|
430
430
|
});
|
|
431
431
|
const sendDynamicProps = (environmentId, settingsToSend) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
432
432
|
try {
|
|
433
|
-
const { dynamicContextProps, dynamicWagmiSettings } = settingsToSend;
|
|
433
|
+
const { dynamicContextProps, dynamicWagmiSettings, frameworkSettings } = settingsToSend;
|
|
434
434
|
if (dynamicContextProps) {
|
|
435
|
-
yield sendDynamicContextSettings(environmentId, { dynamicContextProps }, helpers.isDynamicContextSessionSettingExpired, helpers.setDynamicContextSessionSettings);
|
|
435
|
+
yield sendDynamicContextSettings(environmentId, { dynamicContextProps, frameworkSettings }, helpers.isDynamicContextSessionSettingExpired, helpers.setDynamicContextSessionSettings);
|
|
436
436
|
}
|
|
437
437
|
if (dynamicWagmiSettings) {
|
|
438
438
|
yield sendDynamicContextSettings(environmentId, { dynamicWagmiSettings }, helpers.isWagmiSessionSettingExpired, helpers.setWagmiSessionSettings);
|
package/src/lib/data/api.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare const getOnrampProviders: ({ chain, environmentId, networkId, tok
|
|
|
70
70
|
export declare const sendDynamicProps: (environmentId: string, settingsToSend: {
|
|
71
71
|
dynamicContextProps?: object;
|
|
72
72
|
dynamicWagmiSettings?: object;
|
|
73
|
+
frameworkSettings?: object;
|
|
73
74
|
}) => Promise<void>;
|
|
74
75
|
export declare const mergeUserAccounts: (userJwt: string, environmentId: string) => Promise<string | undefined>;
|
|
75
76
|
export type CreateTurnkeyEvmEmbeddedWalletProps = {
|
package/src/lib/data/api.js
CHANGED
|
@@ -426,9 +426,9 @@ const getOnrampProviders = ({ chain, environmentId, networkId, token, walletAddr
|
|
|
426
426
|
});
|
|
427
427
|
const sendDynamicProps = (environmentId, settingsToSend) => __awaiter(void 0, void 0, void 0, function* () {
|
|
428
428
|
try {
|
|
429
|
-
const { dynamicContextProps, dynamicWagmiSettings } = settingsToSend;
|
|
429
|
+
const { dynamicContextProps, dynamicWagmiSettings, frameworkSettings } = settingsToSend;
|
|
430
430
|
if (dynamicContextProps) {
|
|
431
|
-
yield sendDynamicContextSettings(environmentId, { dynamicContextProps }, isDynamicContextSessionSettingExpired, setDynamicContextSessionSettings);
|
|
431
|
+
yield sendDynamicContextSettings(environmentId, { dynamicContextProps, frameworkSettings }, isDynamicContextSessionSettingExpired, setDynamicContextSessionSettings);
|
|
432
432
|
}
|
|
433
433
|
if (dynamicWagmiSettings) {
|
|
434
434
|
yield sendDynamicContextSettings(environmentId, { dynamicWagmiSettings }, isWagmiSessionSettingExpired, setWagmiSessionSettings);
|
|
@@ -45,6 +45,18 @@ const translation = {
|
|
|
45
45
|
description: 'You’ll need to connect both your {{firstBlockchainName}} and {{secondBlockchainName}} wallets to get started',
|
|
46
46
|
title: 'Connect to {{appName}}',
|
|
47
47
|
},
|
|
48
|
+
widget: {
|
|
49
|
+
address: 'Copy wallet address',
|
|
50
|
+
connect: 'Connect wallet',
|
|
51
|
+
connect_with_network: 'Connect {{blockchainName}} wallet',
|
|
52
|
+
copy: {
|
|
53
|
+
address: 'Copy wallet address',
|
|
54
|
+
ens: 'Copy ENS',
|
|
55
|
+
},
|
|
56
|
+
disconnect: 'Disconnect',
|
|
57
|
+
edit_profile: 'Edit profile',
|
|
58
|
+
wallet_network: '{{networkName}} wallet',
|
|
59
|
+
},
|
|
48
60
|
}
|
|
49
61
|
*/
|
|
50
62
|
dyn_bridge: {
|
|
@@ -57,6 +69,18 @@ const translation = {
|
|
|
57
69
|
description: 'You’ll need to connect both your {{firstBlockchainName}} and {{secondBlockchainName}} wallets to get started',
|
|
58
70
|
title: 'Connect to {{appName}}',
|
|
59
71
|
},
|
|
72
|
+
widget: {
|
|
73
|
+
address: 'Copy wallet address',
|
|
74
|
+
connect: 'Connect wallet',
|
|
75
|
+
connect_with_network: 'Connect {{blockchainName}} wallet',
|
|
76
|
+
copy: {
|
|
77
|
+
address: 'Copy wallet address',
|
|
78
|
+
ens: 'Copy ENS',
|
|
79
|
+
},
|
|
80
|
+
disconnect: 'Disconnect',
|
|
81
|
+
edit_profile: 'Edit profile',
|
|
82
|
+
wallet_network: '{{networkName}} wallet',
|
|
83
|
+
},
|
|
60
84
|
},
|
|
61
85
|
/**
|
|
62
86
|
* @description copy keys for Dynamic Captcha
|
|
@@ -1076,6 +1100,16 @@ const translation = {
|
|
|
1076
1100
|
empty_wallets_action_link: 'Link',
|
|
1077
1101
|
empty_wallets_action_connect: 'Connect',
|
|
1078
1102
|
},
|
|
1103
|
+
/**
|
|
1104
|
+
* @description copy keys for Dynamic wallet information card
|
|
1105
|
+
* @default
|
|
1106
|
+
* {
|
|
1107
|
+
balance: 'Balance'
|
|
1108
|
+
}
|
|
1109
|
+
*/
|
|
1110
|
+
dyn_wallet_information: {
|
|
1111
|
+
balance: 'Balance',
|
|
1112
|
+
},
|
|
1079
1113
|
};
|
|
1080
1114
|
|
|
1081
1115
|
exports.translation = translation;
|
|
@@ -40,6 +40,18 @@ export declare const translation: {
|
|
|
40
40
|
description: 'You’ll need to connect both your {{firstBlockchainName}} and {{secondBlockchainName}} wallets to get started',
|
|
41
41
|
title: 'Connect to {{appName}}',
|
|
42
42
|
},
|
|
43
|
+
widget: {
|
|
44
|
+
address: 'Copy wallet address',
|
|
45
|
+
connect: 'Connect wallet',
|
|
46
|
+
connect_with_network: 'Connect {{blockchainName}} wallet',
|
|
47
|
+
copy: {
|
|
48
|
+
address: 'Copy wallet address',
|
|
49
|
+
ens: 'Copy ENS',
|
|
50
|
+
},
|
|
51
|
+
disconnect: 'Disconnect',
|
|
52
|
+
edit_profile: 'Edit profile',
|
|
53
|
+
wallet_network: '{{networkName}} wallet',
|
|
54
|
+
},
|
|
43
55
|
}
|
|
44
56
|
*/
|
|
45
57
|
dyn_bridge: {
|
|
@@ -52,6 +64,18 @@ export declare const translation: {
|
|
|
52
64
|
description: string;
|
|
53
65
|
title: string;
|
|
54
66
|
};
|
|
67
|
+
widget: {
|
|
68
|
+
address: string;
|
|
69
|
+
connect: string;
|
|
70
|
+
connect_with_network: string;
|
|
71
|
+
copy: {
|
|
72
|
+
address: string;
|
|
73
|
+
ens: string;
|
|
74
|
+
};
|
|
75
|
+
disconnect: string;
|
|
76
|
+
edit_profile: string;
|
|
77
|
+
wallet_network: string;
|
|
78
|
+
};
|
|
55
79
|
};
|
|
56
80
|
/**
|
|
57
81
|
* @description copy keys for Dynamic Captcha
|
|
@@ -1071,4 +1095,14 @@ export declare const translation: {
|
|
|
1071
1095
|
empty_wallets_action_link: string;
|
|
1072
1096
|
empty_wallets_action_connect: string;
|
|
1073
1097
|
};
|
|
1098
|
+
/**
|
|
1099
|
+
* @description copy keys for Dynamic wallet information card
|
|
1100
|
+
* @default
|
|
1101
|
+
* {
|
|
1102
|
+
balance: 'Balance'
|
|
1103
|
+
}
|
|
1104
|
+
*/
|
|
1105
|
+
dyn_wallet_information: {
|
|
1106
|
+
balance: string;
|
|
1107
|
+
};
|
|
1074
1108
|
};
|
|
@@ -41,6 +41,18 @@ const translation = {
|
|
|
41
41
|
description: 'You’ll need to connect both your {{firstBlockchainName}} and {{secondBlockchainName}} wallets to get started',
|
|
42
42
|
title: 'Connect to {{appName}}',
|
|
43
43
|
},
|
|
44
|
+
widget: {
|
|
45
|
+
address: 'Copy wallet address',
|
|
46
|
+
connect: 'Connect wallet',
|
|
47
|
+
connect_with_network: 'Connect {{blockchainName}} wallet',
|
|
48
|
+
copy: {
|
|
49
|
+
address: 'Copy wallet address',
|
|
50
|
+
ens: 'Copy ENS',
|
|
51
|
+
},
|
|
52
|
+
disconnect: 'Disconnect',
|
|
53
|
+
edit_profile: 'Edit profile',
|
|
54
|
+
wallet_network: '{{networkName}} wallet',
|
|
55
|
+
},
|
|
44
56
|
}
|
|
45
57
|
*/
|
|
46
58
|
dyn_bridge: {
|
|
@@ -53,6 +65,18 @@ const translation = {
|
|
|
53
65
|
description: 'You’ll need to connect both your {{firstBlockchainName}} and {{secondBlockchainName}} wallets to get started',
|
|
54
66
|
title: 'Connect to {{appName}}',
|
|
55
67
|
},
|
|
68
|
+
widget: {
|
|
69
|
+
address: 'Copy wallet address',
|
|
70
|
+
connect: 'Connect wallet',
|
|
71
|
+
connect_with_network: 'Connect {{blockchainName}} wallet',
|
|
72
|
+
copy: {
|
|
73
|
+
address: 'Copy wallet address',
|
|
74
|
+
ens: 'Copy ENS',
|
|
75
|
+
},
|
|
76
|
+
disconnect: 'Disconnect',
|
|
77
|
+
edit_profile: 'Edit profile',
|
|
78
|
+
wallet_network: '{{networkName}} wallet',
|
|
79
|
+
},
|
|
56
80
|
},
|
|
57
81
|
/**
|
|
58
82
|
* @description copy keys for Dynamic Captcha
|
|
@@ -1072,6 +1096,16 @@ const translation = {
|
|
|
1072
1096
|
empty_wallets_action_link: 'Link',
|
|
1073
1097
|
empty_wallets_action_connect: 'Connect',
|
|
1074
1098
|
},
|
|
1099
|
+
/**
|
|
1100
|
+
* @description copy keys for Dynamic wallet information card
|
|
1101
|
+
* @default
|
|
1102
|
+
* {
|
|
1103
|
+
balance: 'Balance'
|
|
1104
|
+
}
|
|
1105
|
+
*/
|
|
1106
|
+
dyn_wallet_information: {
|
|
1107
|
+
balance: 'Balance',
|
|
1108
|
+
},
|
|
1075
1109
|
};
|
|
1076
1110
|
|
|
1077
1111
|
export { translation };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export { useEffectOnce } from './useEffectOnce';
|
|
2
|
+
export { useForwardedRef } from './useForwardedRef';
|
|
3
|
+
export { useGlobalLoading } from './useGlobalLoading';
|
|
1
4
|
export { useLocalStorage } from './useLocalStorage';
|
|
5
|
+
export { useMediaQuery } from './useMediaQuery';
|
|
2
6
|
export { useOnClickOutside } from './useOnClickOutside';
|
|
3
7
|
export { usePreventPageScroll } from './usePreventPageScroll';
|
|
4
|
-
export
|
|
5
|
-
export { useMediaQuery } from './useMediaQuery';
|
|
6
|
-
export { useEffectOnce } from './useEffectOnce';
|
|
7
|
-
export { useForwardedRef } from './useForwardedRef';
|
|
8
|
+
export * from './useThrottle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useThrottle';
|