@dynamic-labs/sdk-react-core 4.9.3 → 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 CHANGED
@@ -1,4 +1,12 @@
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
+
2
10
  ### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
3
11
 
4
12
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.3";
6
+ var version = "4.9.4";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.642",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "4.9.3";
2
+ var version = "4.9.4";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.642",
5
5
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "4.9.3",
3
+ "version": "4.9.4",
4
4
  "dependencies": {
5
5
  "@dynamic-labs/sdk-api-core": "0.0.642",
6
6
  "@hcaptcha/react-hcaptcha": "1.4.4",
@@ -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.3",
18
- "@dynamic-labs/iconic": "4.9.3",
19
- "@dynamic-labs/logger": "4.9.3",
20
- "@dynamic-labs/multi-wallet": "4.9.3",
21
- "@dynamic-labs/rpc-providers": "4.9.3",
22
- "@dynamic-labs/store": "4.9.3",
23
- "@dynamic-labs/types": "4.9.3",
24
- "@dynamic-labs/utils": "4.9.3",
25
- "@dynamic-labs/wallet-book": "4.9.3",
26
- "@dynamic-labs/wallet-connector-core": "4.9.3",
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": {
@@ -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
  });
@@ -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);
@@ -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
  */