@dynamic-labs/utils 4.9.11 → 4.9.13-preview.0

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,21 @@
1
1
 
2
+ ### [4.9.13-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.0) (2025-03-28)
3
+
4
+
5
+ ### Features
6
+
7
+ * add zk sync aa connector ([0859f98](https://github.com/dynamic-labs/dynamic-auth/commit/0859f9810442c9229a1465f59f2400272c83ba09))
8
+
9
+ ### [4.9.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.11...v4.9.12) (2025-03-28)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * prevent event subscription from throwing a page error ([#8393](https://github.com/dynamic-labs/dynamic-auth/issues/8393)) ([eda85cd](https://github.com/dynamic-labs/dynamic-auth/commit/eda85cdeed4cc208e20618882cf3e5a54b176356))
15
+ * global wallet popup in rainbowkit reopening ([#8395](https://github.com/dynamic-labs/dynamic-auth/issues/8395)) ([5473e87](https://github.com/dynamic-labs/dynamic-auth/commit/5473e87834c5a2102f7d87fc649590726bc390c7))
16
+ * notify user when sei is not enable in keplr ([#8396](https://github.com/dynamic-labs/dynamic-auth/issues/8396)) ([79aea59](https://github.com/dynamic-labs/dynamic-auth/commit/79aea59bde82dabbe070a1f0fc5ac484a696e7ac))
17
+ * respect tokenBalance order from backend for SendBalance view ([#8398](https://github.com/dynamic-labs/dynamic-auth/issues/8398)) ([fdb0e1c](https://github.com/dynamic-labs/dynamic-auth/commit/fdb0e1cc2f1614326f506dfdb1726f4c5baf9c0c))
18
+
2
19
  ### [4.9.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.10...v4.9.11) (2025-03-26)
3
20
 
4
21
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.11";
6
+ var version = "4.9.13-preview.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.11";
2
+ var version = "4.9.13-preview.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "4.9.11",
3
+ "version": "4.9.13-preview.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.644",
21
+ "@dynamic-labs/sdk-api-core": "0.0.645",
22
22
  "tldts": "6.0.16",
23
- "@dynamic-labs/assert-package-version": "4.9.11",
24
- "@dynamic-labs/logger": "4.9.11",
25
- "@dynamic-labs/types": "4.9.11",
23
+ "@dynamic-labs/assert-package-version": "4.9.13-preview.0",
24
+ "@dynamic-labs/logger": "4.9.13-preview.0",
25
+ "@dynamic-labs/types": "4.9.13-preview.0",
26
26
  "buffer": "6.0.3",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -22,4 +22,5 @@ exports.ErrorCode = void 0;
22
22
  ErrorCode[ErrorCode["CONNECTION_REJECTED"] = 8] = "CONNECTION_REJECTED";
23
23
  ErrorCode[ErrorCode["MISSING_PUBLIC_ADDRESS"] = 9] = "MISSING_PUBLIC_ADDRESS";
24
24
  ErrorCode[ErrorCode["CONNECTION_PROPOSAL_EXPIRED"] = 10] = "CONNECTION_PROPOSAL_EXPIRED";
25
+ ErrorCode[ErrorCode["SEI_NOT_ENABLED_IN_KEPLR_WALLET"] = 11] = "SEI_NOT_ENABLED_IN_KEPLR_WALLET";
25
26
  })(exports.ErrorCode || (exports.ErrorCode = {}));
@@ -15,5 +15,6 @@ export declare enum ErrorCode {
15
15
  ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_PROFILE = 7,
16
16
  CONNECTION_REJECTED = 8,
17
17
  MISSING_PUBLIC_ADDRESS = 9,
18
- CONNECTION_PROPOSAL_EXPIRED = 10
18
+ CONNECTION_PROPOSAL_EXPIRED = 10,
19
+ SEI_NOT_ENABLED_IN_KEPLR_WALLET = 11
19
20
  }
@@ -18,6 +18,7 @@ var ErrorCode;
18
18
  ErrorCode[ErrorCode["CONNECTION_REJECTED"] = 8] = "CONNECTION_REJECTED";
19
19
  ErrorCode[ErrorCode["MISSING_PUBLIC_ADDRESS"] = 9] = "MISSING_PUBLIC_ADDRESS";
20
20
  ErrorCode[ErrorCode["CONNECTION_PROPOSAL_EXPIRED"] = 10] = "CONNECTION_PROPOSAL_EXPIRED";
21
+ ErrorCode[ErrorCode["SEI_NOT_ENABLED_IN_KEPLR_WALLET"] = 11] = "SEI_NOT_ENABLED_IN_KEPLR_WALLET";
21
22
  })(ErrorCode || (ErrorCode = {}));
22
23
 
23
24
  export { ErrorCode };
@@ -0,0 +1,15 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var CustomError = require('./CustomError.cjs');
7
+ var ErrorCode = require('./ErrorCode.cjs');
8
+
9
+ class SeiNotEnabledInKeplrWalletError extends CustomError.CustomError {
10
+ constructor() {
11
+ super('Sei network is not enabled in Keplr', ErrorCode.ErrorCode.SEI_NOT_ENABLED_IN_KEPLR_WALLET);
12
+ }
13
+ }
14
+
15
+ exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError;
@@ -0,0 +1,4 @@
1
+ import { CustomError } from './CustomError';
2
+ export declare class SeiNotEnabledInKeplrWalletError extends CustomError {
3
+ constructor();
4
+ }
@@ -0,0 +1,11 @@
1
+ 'use client'
2
+ import { CustomError } from './CustomError.js';
3
+ import { ErrorCode } from './ErrorCode.js';
4
+
5
+ class SeiNotEnabledInKeplrWalletError extends CustomError {
6
+ constructor() {
7
+ super('Sei network is not enabled in Keplr', ErrorCode.SEI_NOT_ENABLED_IN_KEPLR_WALLET);
8
+ }
9
+ }
10
+
11
+ export { SeiNotEnabledInKeplrWalletError };
@@ -40,3 +40,4 @@ export * from './UserRejectedRequestError';
40
40
  export * from './InvalidEmbeddedWalletSessionKeyError';
41
41
  export * from './EmbeddedWalletExistsError';
42
42
  export * from './GetAddressCancelledError';
43
+ export * from './SeiNotEnabledInKeplrWalletError';
package/src/index.cjs CHANGED
@@ -51,6 +51,7 @@ var UserRejectedRequestError = require('./errors/UserRejectedRequestError.cjs');
51
51
  var InvalidEmbeddedWalletSessionKeyError = require('./errors/InvalidEmbeddedWalletSessionKeyError.cjs');
52
52
  var EmbeddedWalletExistsError = require('./errors/EmbeddedWalletExistsError.cjs');
53
53
  var GetAddressCancelledError = require('./errors/GetAddressCancelledError.cjs');
54
+ var SeiNotEnabledInKeplrWalletError = require('./errors/SeiNotEnabledInKeplrWalletError.cjs');
54
55
  var eventTimeline = require('./eventTimeline/eventTimeline.cjs');
55
56
  var formatNumberText = require('./formatNumberText/formatNumberText.cjs');
56
57
  var getProvidersFromWindow = require('./getProvidersFromWindow/getProvidersFromWindow.cjs');
@@ -160,6 +161,7 @@ exports.UserRejectedRequestError = UserRejectedRequestError.UserRejectedRequestE
160
161
  exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError.InvalidEmbeddedWalletSessionKeyError;
161
162
  exports.EmbeddedWalletExistsError = EmbeddedWalletExistsError.EmbeddedWalletExistsError;
162
163
  exports.GetAddressCancelledError = GetAddressCancelledError.GetAddressCancelledError;
164
+ exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError.SeiNotEnabledInKeplrWalletError;
163
165
  exports.createEventTimeline = eventTimeline.createEventTimeline;
164
166
  exports.formatNumberText = formatNumberText.formatNumberText;
165
167
  exports.getProvidersFromWindow = getProvidersFromWindow.getProvidersFromWindow;
package/src/index.js CHANGED
@@ -47,6 +47,7 @@ export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
47
47
  export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
48
48
  export { EmbeddedWalletExistsError } from './errors/EmbeddedWalletExistsError.js';
49
49
  export { GetAddressCancelledError } from './errors/GetAddressCancelledError.js';
50
+ export { SeiNotEnabledInKeplrWalletError } from './errors/SeiNotEnabledInKeplrWalletError.js';
50
51
  export { createEventTimeline } from './eventTimeline/eventTimeline.js';
51
52
  export { formatNumberText } from './formatNumberText/formatNumberText.js';
52
53
  export { getProvidersFromWindow } from './getProvidersFromWindow/getProvidersFromWindow.js';