@dynamic-labs/sdk-react-core 4.9.2 → 4.9.4
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 +22 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/index.cjs +1 -1
- package/src/index.js +1 -1
- package/src/lib/components/TosAndPp/TosAndPp.cjs +3 -1
- package/src/lib/components/TosAndPp/TosAndPp.js +3 -1
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +1 -2
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +1 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +0 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +0 -2
- package/src/lib/context/ErrorContext/hooks/useErrorText/useErrorText.cjs +1 -0
- package/src/lib/context/ErrorContext/hooks/useErrorText/useErrorText.js +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.cjs +1 -0
- package/src/lib/context/PhantomRedirectContext/useResponseHandlers.js +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -0
- package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -0
- package/src/lib/events/auth.d.ts +0 -5
- package/src/lib/locale/en/translation.cjs +1 -0
- package/src/lib/locale/en/translation.d.ts +1 -0
- package/src/lib/locale/en/translation.js +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSign/useConnectAndSign.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useConnectAndSignSplitSteps/useConnectAndSignSplitSteps.js +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.cjs +1 -0
- package/src/lib/utils/hooks/authenticationHooks/useSignConnectOnlyUser/useSignConnectOnlyUser.js +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +8 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +8 -8
- package/src/lib/utils/hooks/useValidateSession/handleStoreAndEnvironmentMismatch/handleStoreAndEnvironmentMismatch.cjs +1 -3
- package/src/lib/utils/hooks/useValidateSession/handleStoreAndEnvironmentMismatch/handleStoreAndEnvironmentMismatch.d.ts +1 -2
- package/src/lib/utils/hooks/useValidateSession/handleStoreAndEnvironmentMismatch/handleStoreAndEnvironmentMismatch.js +1 -3
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.cjs +3 -5
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.d.ts +1 -2
- package/src/lib/utils/hooks/useValidateSession/handleUserDataOutOfSync/handleUserDataOutOfSync.js +3 -5
- package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/handleWalletInfoOutOfSync.cjs +37 -0
- package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/handleWalletInfoOutOfSync.d.ts +9 -0
- package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/handleWalletInfoOutOfSync.js +33 -0
- package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/index.d.ts +1 -0
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +2 -6
- package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +2 -6
- package/src/lib/views/LoginView/useLoginView/useLoginView.cjs +9 -15
- package/src/lib/views/LoginView/useLoginView/useLoginView.js +9 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **logger:** don't try to store data if localStorage is not available ([#8309](https://github.com/dynamic-labs/dynamic-auth/issues/8309)) ([30164c7](https://github.com/dynamic-labs/dynamic-auth/commit/30164c7de7bbf1463c6f6a7c12c4b60b5cfb6e78))
|
|
8
|
+
* modal corners ([#8308](https://github.com/dynamic-labs/dynamic-auth/issues/8308)) ([2d21d87](https://github.com/dynamic-labs/dynamic-auth/commit/2d21d87466cee4ab3b981b24fa15f5c321b163f5))
|
|
9
|
+
|
|
10
|
+
### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* allow adding extra text to ToS and PP footer using custom css ([#8290](https://github.com/dynamic-labs/dynamic-auth/issues/8290)) ([0f6eb26](https://github.com/dynamic-labs/dynamic-auth/commit/0f6eb2666ea93a32360710ba5ac14eac53e07e2d))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* log out if there is a mismatch in user and wallet state ([#8300](https://github.com/dynamic-labs/dynamic-auth/issues/8300)) ([82ec2ad](https://github.com/dynamic-labs/dynamic-auth/commit/82ec2add1682a576d00dfe13aa1b9cccecf96688))
|
|
21
|
+
* sol sponsored tx for v3 ([#8288](https://github.com/dynamic-labs/dynamic-auth/issues/8288)) ([c466fba](https://github.com/dynamic-labs/dynamic-auth/commit/c466fba417d39641631e29104ec9c156dfdf7647))
|
|
22
|
+
* v3 existing wallet could not log in again ([#8282](https://github.com/dynamic-labs/dynamic-auth/issues/8282)) ([c2d68ad](https://github.com/dynamic-labs/dynamic-auth/commit/c2d68adf575fcce371e438076184ef590f346c9f))
|
|
23
|
+
|
|
2
24
|
### [4.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2) (2025-03-12)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.9.
|
|
6
|
+
var version = "4.9.4";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.642",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
11
11
|
"country-list": "2.3.0",
|
package/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.9.
|
|
2
|
+
var version = "4.9.4";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.642",
|
|
5
5
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
6
6
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
7
7
|
"country-list": "2.3.0",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.4",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.642",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
7
7
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
8
8
|
"country-list": "2.3.0",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"yup": "0.32.11",
|
|
15
15
|
"react-international-phone": "4.2.5",
|
|
16
16
|
"bs58": "5.0.0",
|
|
17
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
18
|
-
"@dynamic-labs/iconic": "4.9.
|
|
19
|
-
"@dynamic-labs/logger": "4.9.
|
|
20
|
-
"@dynamic-labs/multi-wallet": "4.9.
|
|
21
|
-
"@dynamic-labs/rpc-providers": "4.9.
|
|
22
|
-
"@dynamic-labs/store": "4.9.
|
|
23
|
-
"@dynamic-labs/types": "4.9.
|
|
24
|
-
"@dynamic-labs/utils": "4.9.
|
|
25
|
-
"@dynamic-labs/wallet-book": "4.9.
|
|
26
|
-
"@dynamic-labs/wallet-connector-core": "4.9.
|
|
17
|
+
"@dynamic-labs/assert-package-version": "4.9.4",
|
|
18
|
+
"@dynamic-labs/iconic": "4.9.4",
|
|
19
|
+
"@dynamic-labs/logger": "4.9.4",
|
|
20
|
+
"@dynamic-labs/multi-wallet": "4.9.4",
|
|
21
|
+
"@dynamic-labs/rpc-providers": "4.9.4",
|
|
22
|
+
"@dynamic-labs/store": "4.9.4",
|
|
23
|
+
"@dynamic-labs/types": "4.9.4",
|
|
24
|
+
"@dynamic-labs/utils": "4.9.4",
|
|
25
|
+
"@dynamic-labs/wallet-book": "4.9.4",
|
|
26
|
+
"@dynamic-labs/wallet-connector-core": "4.9.4",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -91,10 +91,10 @@ require('./lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
|
91
91
|
require('./lib/context/FieldsStateContext/FieldsStateContext.cjs');
|
|
92
92
|
var useRpcProviders = require('./lib/utils/hooks/useRpcProviders/useRpcProviders.cjs');
|
|
93
93
|
require('./lib/store/state/loadingAndLifecycle.cjs');
|
|
94
|
+
require('./lib/store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
94
95
|
require('./lib/context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
95
96
|
require('./lib/context/AccountExistsContext/AccountExistsContext.cjs');
|
|
96
97
|
require('./lib/context/ErrorContext/ErrorContext.cjs');
|
|
97
|
-
require('./lib/store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
98
98
|
require('@dynamic-labs/wallet-book');
|
|
99
99
|
require('./lib/store/state/walletOptions/walletOptions.cjs');
|
|
100
100
|
var useWalletItemActions = require('./lib/utils/hooks/useWalletItemActions/useWalletItemActions.cjs');
|
package/src/index.js
CHANGED
|
@@ -87,10 +87,10 @@ import './lib/context/UserFieldEditorContext/UserFieldEditorContext.js';
|
|
|
87
87
|
import './lib/context/FieldsStateContext/FieldsStateContext.js';
|
|
88
88
|
export { useRpcProviders } from './lib/utils/hooks/useRpcProviders/useRpcProviders.js';
|
|
89
89
|
import './lib/store/state/loadingAndLifecycle.js';
|
|
90
|
+
import './lib/store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
90
91
|
import './lib/context/AccessDeniedContext/AccessDeniedContext.js';
|
|
91
92
|
import './lib/context/AccountExistsContext/AccountExistsContext.js';
|
|
92
93
|
import './lib/context/ErrorContext/ErrorContext.js';
|
|
93
|
-
import './lib/store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
94
94
|
import '@dynamic-labs/wallet-book';
|
|
95
95
|
import './lib/store/state/walletOptions/walletOptions.js';
|
|
96
96
|
export { useWalletItemActions } from './lib/utils/hooks/useWalletItemActions/useWalletItemActions.js';
|
|
@@ -114,7 +114,9 @@ const TosAndPp = () => {
|
|
|
114
114
|
}
|
|
115
115
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [termsOfServiceUrl && jsxRuntime.jsx(jsxRuntime.Fragment, { children: "\u00A0&\u00A0" }), jsxRuntime.jsx("a", { className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer', children: "Privacy Policy" })] }));
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
const renderInjectedTextStart = () => (jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', id: 'custom-tos-and-pp-footer-start', "data-testid": 'custom-tos-and-pp-footer-start' }));
|
|
118
|
+
const renderInjectedTextEnd = () => (jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', id: 'custom-tos-and-pp-footer-end', "data-testid": 'custom-tos-and-pp-footer-end' }));
|
|
119
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [renderInjectedTextStart(), (privacyPolicyUrl || termsOfServiceUrl) && (jsxRuntime.jsxs(Typography.Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', children: ["By ", connectionType, ", you agree to", jsxRuntime.jsx("br", {}), "our\u00A0", renderTermsOfServices(), renderPrivacyPolicy(), "."] })), customTermsOfServices, customPrivacyPolicy, renderInjectedTextEnd()] }));
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
exports.TosAndPp = TosAndPp;
|
|
@@ -110,7 +110,9 @@ const TosAndPp = () => {
|
|
|
110
110
|
}
|
|
111
111
|
return (jsxs(Fragment, { children: [termsOfServiceUrl && jsx(Fragment, { children: "\u00A0&\u00A0" }), jsx("a", { className: 'tos-and-pp__link', href: privacyPolicyUrl, target: '_blank', rel: 'noreferrer', children: "Privacy Policy" })] }));
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
const renderInjectedTextStart = () => (jsx(Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', id: 'custom-tos-and-pp-footer-start', "data-testid": 'custom-tos-and-pp-footer-start' }));
|
|
114
|
+
const renderInjectedTextEnd = () => (jsx(Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', id: 'custom-tos-and-pp-footer-end', "data-testid": 'custom-tos-and-pp-footer-end' }));
|
|
115
|
+
return (jsxs(Fragment, { children: [renderInjectedTextStart(), (privacyPolicyUrl || termsOfServiceUrl) && (jsxs(Typography, { variant: 'body_small', weight: 'regular', className: 'tos-and-pp__text', children: ["By ", connectionType, ", you agree to", jsx("br", {}), "our\u00A0", renderTermsOfServices(), renderPrivacyPolicy(), "."] })), customTermsOfServices, customPrivacyPolicy, renderInjectedTextEnd()] }));
|
|
114
116
|
};
|
|
115
117
|
|
|
116
118
|
export { TosAndPp };
|
package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var dynamicEvents = require('../../../../events/dynamicEvents.cjs');
|
|
7
6
|
require('@dynamic-labs/sdk-api-core');
|
|
8
7
|
var logger = require('../../../../shared/logger.cjs');
|
|
9
8
|
require('@dynamic-labs/iconic');
|
|
@@ -33,6 +32,7 @@ require('../../../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
|
33
32
|
require('../../../AccessDeniedContext/AccessDeniedContext.cjs');
|
|
34
33
|
require('../../../AccountExistsContext/AccountExistsContext.cjs');
|
|
35
34
|
require('../../../UserWalletsContext/UserWalletsContext.cjs');
|
|
35
|
+
require('../../../../events/dynamicEvents.cjs');
|
|
36
36
|
require('../../../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
37
37
|
require('../../../VerificationContext/VerificationContext.cjs');
|
|
38
38
|
require('react-dom');
|
|
@@ -122,7 +122,6 @@ const useTieCallbacksToEvents = ({ clientCallbacks, user, }) => {
|
|
|
122
122
|
});
|
|
123
123
|
useDynamicEvents.useInternalDynamicEvents('walletAdded', (wallet, userWallets) => {
|
|
124
124
|
var _a;
|
|
125
|
-
dynamicEvents.dynamicEvents.emit('triggerSessionValidation');
|
|
126
125
|
logger.logger.debug('[walletAdded]', { userWallets, wallet });
|
|
127
126
|
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onWalletAdded) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, { userWallets, wallet });
|
|
128
127
|
});
|
package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { dynamicEvents } from '../../../../events/dynamicEvents.js';
|
|
3
2
|
import '@dynamic-labs/sdk-api-core';
|
|
4
3
|
import { logger } from '../../../../shared/logger.js';
|
|
5
4
|
import '@dynamic-labs/iconic';
|
|
@@ -29,6 +28,7 @@ import '../../../../store/state/primaryWalletId/primaryWalletId.js';
|
|
|
29
28
|
import '../../../AccessDeniedContext/AccessDeniedContext.js';
|
|
30
29
|
import '../../../AccountExistsContext/AccountExistsContext.js';
|
|
31
30
|
import '../../../UserWalletsContext/UserWalletsContext.js';
|
|
31
|
+
import '../../../../events/dynamicEvents.js';
|
|
32
32
|
import '../../../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
33
33
|
import '../../../VerificationContext/VerificationContext.js';
|
|
34
34
|
import 'react-dom';
|
|
@@ -118,7 +118,6 @@ const useTieCallbacksToEvents = ({ clientCallbacks, user, }) => {
|
|
|
118
118
|
});
|
|
119
119
|
useInternalDynamicEvents('walletAdded', (wallet, userWallets) => {
|
|
120
120
|
var _a;
|
|
121
|
-
dynamicEvents.emit('triggerSessionValidation');
|
|
122
121
|
logger.debug('[walletAdded]', { userWallets, wallet });
|
|
123
122
|
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onWalletAdded) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, { userWallets, wallet });
|
|
124
123
|
});
|
|
@@ -16,7 +16,6 @@ require('../../../utils/constants/colors.cjs');
|
|
|
16
16
|
require('../../../utils/constants/values.cjs');
|
|
17
17
|
require('../../../shared/consts/index.cjs');
|
|
18
18
|
var isAuthenticatedWithAWallet = require('../../../utils/functions/isAuthenticatedWithAWallet/isAuthenticatedWithAWallet.cjs');
|
|
19
|
-
var dynamicEvents = require('../../../events/dynamicEvents.cjs');
|
|
20
19
|
|
|
21
20
|
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onUserProfileUpdate }, handleLogOut, primaryWallet, user, isAuthenticated, }) => {
|
|
22
21
|
const [callbackQueue, setCallbackQueue] = React.useState([]);
|
|
@@ -30,7 +29,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onUserProfileUpdate
|
|
|
30
29
|
primaryWallet,
|
|
31
30
|
user,
|
|
32
31
|
});
|
|
33
|
-
dynamicEvents.dynamicEvents.emit('triggerSessionValidation');
|
|
34
32
|
}
|
|
35
33
|
catch (e) {
|
|
36
34
|
logger.logger.error('Error calling onAuthSuccess: ', e);
|
|
@@ -12,7 +12,6 @@ import '../../../utils/constants/colors.js';
|
|
|
12
12
|
import '../../../utils/constants/values.js';
|
|
13
13
|
import '../../../shared/consts/index.js';
|
|
14
14
|
import { isAuthenticatedWithAWallet } from '../../../utils/functions/isAuthenticatedWithAWallet/isAuthenticatedWithAWallet.js';
|
|
15
|
-
import { dynamicEvents } from '../../../events/dynamicEvents.js';
|
|
16
15
|
|
|
17
16
|
const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onUserProfileUpdate }, handleLogOut, primaryWallet, user, isAuthenticated, }) => {
|
|
18
17
|
const [callbackQueue, setCallbackQueue] = useState([]);
|
|
@@ -26,7 +25,6 @@ const useCustomerCallbacks = ({ callbacks: { onAuthSuccess, onUserProfileUpdate
|
|
|
26
25
|
primaryWallet,
|
|
27
26
|
user,
|
|
28
27
|
});
|
|
29
|
-
dynamicEvents.emit('triggerSessionValidation');
|
|
30
28
|
}
|
|
31
29
|
catch (e) {
|
|
32
30
|
logger.error('Error calling onAuthSuccess: ', e);
|
|
@@ -19,6 +19,7 @@ const mapErrorCodeToTranslation = {
|
|
|
19
19
|
[utils.ErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE]: 'dyn_error.account_already_linked_to_different_profile',
|
|
20
20
|
[utils.ErrorCode.CONNECTION_REJECTED]: 'dyn_error.connection_rejected',
|
|
21
21
|
[utils.ErrorCode.MISSING_PUBLIC_ADDRESS]: 'dyn_error.missing_public_address',
|
|
22
|
+
[utils.ErrorCode.CONNECTION_PROPOSAL_EXPIRED]: 'dyn_error.connection_proposal_expired',
|
|
22
23
|
};
|
|
23
24
|
/** A hook that listens to the error context and returns a translated value */
|
|
24
25
|
const useErrorText = () => {
|
|
@@ -15,6 +15,7 @@ const mapErrorCodeToTranslation = {
|
|
|
15
15
|
[ErrorCode.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE]: 'dyn_error.account_already_linked_to_different_profile',
|
|
16
16
|
[ErrorCode.CONNECTION_REJECTED]: 'dyn_error.connection_rejected',
|
|
17
17
|
[ErrorCode.MISSING_PUBLIC_ADDRESS]: 'dyn_error.missing_public_address',
|
|
18
|
+
[ErrorCode.CONNECTION_PROPOSAL_EXPIRED]: 'dyn_error.connection_proposal_expired',
|
|
18
19
|
};
|
|
19
20
|
/** A hook that listens to the error context and returns a translated value */
|
|
20
21
|
const useErrorText = () => {
|
|
@@ -54,6 +54,7 @@ require('../FieldsStateContext/FieldsStateContext.cjs');
|
|
|
54
54
|
require('../UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
55
55
|
require('@dynamic-labs/rpc-providers');
|
|
56
56
|
require('../../store/state/loadingAndLifecycle.cjs');
|
|
57
|
+
require('../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
57
58
|
require('../../store/state/walletOptions/walletOptions.cjs');
|
|
58
59
|
require('react-i18next');
|
|
59
60
|
require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
@@ -50,6 +50,7 @@ import '../FieldsStateContext/FieldsStateContext.js';
|
|
|
50
50
|
import '../UserFieldEditorContext/UserFieldEditorContext.js';
|
|
51
51
|
import '@dynamic-labs/rpc-providers';
|
|
52
52
|
import '../../store/state/loadingAndLifecycle.js';
|
|
53
|
+
import '../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
53
54
|
import '../../store/state/walletOptions/walletOptions.js';
|
|
54
55
|
import 'react-i18next';
|
|
55
56
|
import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
@@ -54,6 +54,7 @@ require('../UserFieldEditorContext/UserFieldEditorContext.cjs');
|
|
|
54
54
|
require('@dynamic-labs/rpc-providers');
|
|
55
55
|
require('../../store/state/loadingAndLifecycle.cjs');
|
|
56
56
|
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
57
|
+
require('../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
57
58
|
require('../../store/state/walletOptions/walletOptions.cjs');
|
|
58
59
|
require('react-i18next');
|
|
59
60
|
require('../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
@@ -50,6 +50,7 @@ import '../UserFieldEditorContext/UserFieldEditorContext.js';
|
|
|
50
50
|
import '@dynamic-labs/rpc-providers';
|
|
51
51
|
import '../../store/state/loadingAndLifecycle.js';
|
|
52
52
|
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
53
|
+
import '../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
53
54
|
import '../../store/state/walletOptions/walletOptions.js';
|
|
54
55
|
import 'react-i18next';
|
|
55
56
|
import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
package/src/lib/events/auth.d.ts
CHANGED
|
@@ -15,11 +15,6 @@ export type AuthEvents = {
|
|
|
15
15
|
logout: () => void;
|
|
16
16
|
/** This event is used to trigger logout to be called, DO NOT listen to it. Listen to "logout" instead */
|
|
17
17
|
triggerLogout: () => void;
|
|
18
|
-
/**
|
|
19
|
-
* DO NOT EXPOSE OR RELY ON THIS EVENT.
|
|
20
|
-
* This indicates we should perform session validation.
|
|
21
|
-
*/
|
|
22
|
-
triggerSessionValidation: () => void;
|
|
23
18
|
/**
|
|
24
19
|
* Emitted when the user succesfully completes an MFA challenge
|
|
25
20
|
*/
|
|
@@ -2479,6 +2479,7 @@ const translation = {
|
|
|
2479
2479
|
account_already_linked_to_different_profile: 'This social account is already linked to a different profile.',
|
|
2480
2480
|
connection_rejected: 'Connection rejected. Please try again.',
|
|
2481
2481
|
missing_public_address: 'Connection cancelled. Please try again',
|
|
2482
|
+
connection_proposal_expired: 'Connection proposal expired. Please try again.',
|
|
2482
2483
|
},
|
|
2483
2484
|
};
|
|
2484
2485
|
|
|
@@ -2475,6 +2475,7 @@ const translation = {
|
|
|
2475
2475
|
account_already_linked_to_different_profile: 'This social account is already linked to a different profile.',
|
|
2476
2476
|
connection_rejected: 'Connection rejected. Please try again.',
|
|
2477
2477
|
missing_public_address: 'Connection cancelled. Please try again',
|
|
2478
|
+
connection_proposal_expired: 'Connection proposal expired. Please try again.',
|
|
2478
2479
|
},
|
|
2479
2480
|
};
|
|
2480
2481
|
|