@dynamic-labs/sdk-react-core 3.0.0-alpha.33 → 3.0.0-alpha.35
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
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.35](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.34...v3.0.0-alpha.35) (2024-08-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* allow mfa sync to rerun after logout ([#6503](https://github.com/dynamic-labs/DynamicAuth/issues/6503)) ([74377e8](https://github.com/dynamic-labs/DynamicAuth/commit/74377e844a84da422173289a10561eb7acf4f8b9))
|
|
8
|
+
|
|
9
|
+
## [3.0.0-alpha.34](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.33...v3.0.0-alpha.34) (2024-08-02)
|
|
10
|
+
|
|
2
11
|
## [3.0.0-alpha.33](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.32...v3.0.0-alpha.33) (2024-08-02)
|
|
3
12
|
|
|
4
13
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.35",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/iconic": "3.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "3.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/store": "3.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/iconic": "3.0.0-alpha.35",
|
|
21
|
+
"@dynamic-labs/logger": "3.0.0-alpha.35",
|
|
22
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.35",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "3.0.0-alpha.35",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.35",
|
|
25
|
+
"@dynamic-labs/store": "3.0.0-alpha.35",
|
|
26
|
+
"@dynamic-labs/types": "3.0.0-alpha.35",
|
|
27
|
+
"@dynamic-labs/utils": "3.0.0-alpha.35",
|
|
28
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.35",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.35",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -19,7 +19,7 @@ require('../../../shared/utils/classes/storage/sessionStorage.cjs');
|
|
|
19
19
|
var hasPendingMfaAction = require('../../../shared/utils/functions/hasPendingMfaAction/hasPendingMfaAction.cjs');
|
|
20
20
|
require('@dynamic-labs/utils');
|
|
21
21
|
require('../../../shared/consts/index.cjs');
|
|
22
|
-
require('
|
|
22
|
+
var useDynamicEvents = require('../events/useDynamicEvents/useDynamicEvents.cjs');
|
|
23
23
|
require('../../../../../_virtual/_tslib.cjs');
|
|
24
24
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
25
25
|
require('../../../context/ErrorContext/ErrorContext.cjs');
|
|
@@ -31,6 +31,7 @@ require('../../../locale/locale.cjs');
|
|
|
31
31
|
require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
32
32
|
require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
33
33
|
require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
34
|
+
require('../../../events/dynamicEvents.cjs');
|
|
34
35
|
require('../../../context/VerificationContext/VerificationContext.cjs');
|
|
35
36
|
require('react-dom');
|
|
36
37
|
require('../../../context/WalletContext/WalletContext.cjs');
|
|
@@ -100,6 +101,9 @@ const useSyncMfaFlow = () => {
|
|
|
100
101
|
const { getUserDevices } = useMfa.useMfa();
|
|
101
102
|
// this is used to make sure we only trigger the effect once
|
|
102
103
|
const triggered = React.useRef(false);
|
|
104
|
+
useDynamicEvents.useInternalDynamicEvents('logout', () => {
|
|
105
|
+
triggered.current = false;
|
|
106
|
+
});
|
|
103
107
|
React.useEffect(() => {
|
|
104
108
|
var _a;
|
|
105
109
|
// boilterplate: we don't want to run the sync logic if the sdk hasn't finished loading,
|
|
@@ -15,7 +15,7 @@ import '../../../shared/utils/classes/storage/sessionStorage.js';
|
|
|
15
15
|
import { hasPendingMfaAction } from '../../../shared/utils/functions/hasPendingMfaAction/hasPendingMfaAction.js';
|
|
16
16
|
import '@dynamic-labs/utils';
|
|
17
17
|
import '../../../shared/consts/index.js';
|
|
18
|
-
import '
|
|
18
|
+
import { useInternalDynamicEvents } from '../events/useDynamicEvents/useDynamicEvents.js';
|
|
19
19
|
import '../../../../../_virtual/_tslib.js';
|
|
20
20
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
21
21
|
import '../../../context/ErrorContext/ErrorContext.js';
|
|
@@ -27,6 +27,7 @@ import '../../../locale/locale.js';
|
|
|
27
27
|
import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
28
28
|
import '../../../context/AccountExistsContext/AccountExistsContext.js';
|
|
29
29
|
import '../../../context/UserWalletsContext/UserWalletsContext.js';
|
|
30
|
+
import '../../../events/dynamicEvents.js';
|
|
30
31
|
import '../../../context/VerificationContext/VerificationContext.js';
|
|
31
32
|
import 'react-dom';
|
|
32
33
|
import '../../../context/WalletContext/WalletContext.js';
|
|
@@ -96,6 +97,9 @@ const useSyncMfaFlow = () => {
|
|
|
96
97
|
const { getUserDevices } = useMfa();
|
|
97
98
|
// this is used to make sure we only trigger the effect once
|
|
98
99
|
const triggered = useRef(false);
|
|
100
|
+
useInternalDynamicEvents('logout', () => {
|
|
101
|
+
triggered.current = false;
|
|
102
|
+
});
|
|
99
103
|
useEffect(() => {
|
|
100
104
|
var _a;
|
|
101
105
|
// boilterplate: we don't want to run the sync logic if the sdk hasn't finished loading,
|