@dynamic-labs/utils 2.1.0-alpha.22 → 2.1.0-alpha.24

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,34 @@
1
1
 
2
+ ## [2.1.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.23...v2.1.0-alpha.24) (2024-05-26)
3
+
4
+
5
+ ### Features
6
+
7
+ * add onMfaCompleteOnce to useMfa ([#5702](https://github.com/dynamic-labs/DynamicAuth/issues/5702)) ([6451e33](https://github.com/dynamic-labs/DynamicAuth/commit/6451e3369ef1b4ba116378f0dd3fe4e82007e670))
8
+ * prompt custom fields during onboarding ([#5302](https://github.com/dynamic-labs/DynamicAuth/issues/5302)) ([8664223](https://github.com/dynamic-labs/DynamicAuth/commit/86642232cf2b490a820169f48ba8dc093010e1a0))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * correct text on pending signature screen to match the embedded widget modal text ([#5707](https://github.com/dynamic-labs/DynamicAuth/issues/5707)) ([44a6a06](https://github.com/dynamic-labs/DynamicAuth/commit/44a6a0664e08d4b9fc25dd86c0e30f8d585558e0))
14
+ * pass captcha token for farcaster login ([#5706](https://github.com/dynamic-labs/DynamicAuth/issues/5706)) ([32bcb6e](https://github.com/dynamic-labs/DynamicAuth/commit/32bcb6e0e06c6e273c07f32893dfd550deeb6a19))
15
+ * use coinbase provider to get connected accounts for consistency ([#5711](https://github.com/dynamic-labs/DynamicAuth/issues/5711)) ([b9e9170](https://github.com/dynamic-labs/DynamicAuth/commit/b9e9170dad1ac27a85a44a7177b82055ce0035cb))
16
+
17
+ ## [2.1.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.22...v2.1.0-alpha.23) (2024-05-23)
18
+
19
+
20
+ ### Features
21
+
22
+ * add authFailure and authInit events ([#5659](https://github.com/dynamic-labs/DynamicAuth/issues/5659)) ([f4f592a](https://github.com/dynamic-labs/DynamicAuth/commit/f4f592aaacd96fae9333b803c235c5f1fea0e20e))
23
+ * prompt mfa on signup and signin ([#5599](https://github.com/dynamic-labs/DynamicAuth/issues/5599)) ([8d4ecf4](https://github.com/dynamic-labs/DynamicAuth/commit/8d4ecf4c69c59c1fb14e79511fb2f9b33a7e3d89))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * close auth modal if create embedded wallet throws ([#5683](https://github.com/dynamic-labs/DynamicAuth/issues/5683)) ([5331d73](https://github.com/dynamic-labs/DynamicAuth/commit/5331d731a171bb52a598eb5b25f7ba80cef7a64c))
29
+ * prevent state update when the webview is unmounted ([#5688](https://github.com/dynamic-labs/DynamicAuth/issues/5688)) ([8e4ecbd](https://github.com/dynamic-labs/DynamicAuth/commit/8e4ecbdcdb5f48c57ecaad90d663c66529013192))
30
+ * show phone number in use error message ([#5681](https://github.com/dynamic-labs/DynamicAuth/issues/5681)) ([e62f7b7](https://github.com/dynamic-labs/DynamicAuth/commit/e62f7b7b6a5e217944346faf2410028433cecad4))
31
+
2
32
  ## [2.1.0-alpha.22](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.21...v2.1.0-alpha.22) (2024-05-21)
3
33
 
4
34
  ## [2.1.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.20...v2.1.0-alpha.21) (2024-05-21)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "2.1.0-alpha.22",
3
+ "version": "2.1.0-alpha.24",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/dynamic-labs/DynamicAuth.git",
6
+ "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
7
7
  "directory": "packages/utils"
8
8
  },
9
9
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
@@ -26,10 +26,10 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.447",
29
+ "@dynamic-labs/sdk-api-core": "0.0.453",
30
30
  "tldts": "6.0.16",
31
- "@dynamic-labs/logger": "2.1.0-alpha.22",
32
- "@dynamic-labs/types": "2.1.0-alpha.22",
31
+ "@dynamic-labs/logger": "2.1.0-alpha.24",
32
+ "@dynamic-labs/types": "2.1.0-alpha.24",
33
33
  "buffer": "6.0.3"
34
34
  },
35
35
  "peerDependencies": {
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var DynamicError = require('./DynamicError.cjs');
7
+
8
+ class EmbeddedWalletException extends DynamicError.DynamicError {
9
+ constructor(message) {
10
+ super(message);
11
+ }
12
+ }
13
+
14
+ exports.EmbeddedWalletException = EmbeddedWalletException;
@@ -0,0 +1,4 @@
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class EmbeddedWalletException extends DynamicError {
3
+ constructor(message: string);
4
+ }
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import { DynamicError } from './DynamicError.js';
3
+
4
+ class EmbeddedWalletException extends DynamicError {
5
+ constructor(message) {
6
+ super(message);
7
+ }
8
+ }
9
+
10
+ export { EmbeddedWalletException };
@@ -6,8 +6,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var DynamicError = require('./DynamicError.cjs');
7
7
 
8
8
  class InvalidPhoneNumberError extends DynamicError.DynamicError {
9
- constructor() {
10
- super('Invalid phone number.');
9
+ constructor(error) {
10
+ super(error !== null && error !== void 0 ? error : 'Invalid phone number.');
11
11
  }
12
12
  }
13
13
 
@@ -1,4 +1,4 @@
1
1
  import { DynamicError } from './DynamicError';
2
2
  export declare class InvalidPhoneNumberError extends DynamicError {
3
- constructor();
3
+ constructor(error?: string);
4
4
  }
@@ -2,8 +2,8 @@
2
2
  import { DynamicError } from './DynamicError.js';
3
3
 
4
4
  class InvalidPhoneNumberError extends DynamicError {
5
- constructor() {
6
- super('Invalid phone number.');
5
+ constructor(error) {
6
+ super(error !== null && error !== void 0 ? error : 'Invalid phone number.');
7
7
  }
8
8
  }
9
9
 
@@ -27,3 +27,4 @@ export * from './MergeAccountsConfirmationError';
27
27
  export * from './CustomFieldNotUniqueError';
28
28
  export * from './CookieInvalidError';
29
29
  export * from './AccessBlockedError';
30
+ export * from './EmbeddedWalletException';
package/src/index.cjs CHANGED
@@ -33,6 +33,7 @@ var MergeAccountsConfirmationError = require('./errors/MergeAccountsConfirmation
33
33
  var CustomFieldNotUniqueError = require('./errors/CustomFieldNotUniqueError.cjs');
34
34
  var CookieInvalidError = require('./errors/CookieInvalidError.cjs');
35
35
  var AccessBlockedError = require('./errors/AccessBlockedError.cjs');
36
+ var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
36
37
  var CancellablePromise = require('./CancellablePromise/CancellablePromise.cjs');
37
38
  var isFunction = require('./isFunction/isFunction.cjs');
38
39
  var isMobile = require('./isMobile.cjs');
@@ -91,6 +92,7 @@ exports.MergeAccountsConfirmationError = MergeAccountsConfirmationError.MergeAcc
91
92
  exports.CustomFieldNotUniqueError = CustomFieldNotUniqueError.CustomFieldNotUniqueError;
92
93
  exports.CookieInvalidError = CookieInvalidError.CookieInvalidError;
93
94
  exports.AccessBlockedError = AccessBlockedError.AccessBlockedError;
95
+ exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
94
96
  exports.CancellablePromise = CancellablePromise.CancellablePromise;
95
97
  exports.isFunction = isFunction.isFunction;
96
98
  exports.getAndroidVersion = isMobile.getAndroidVersion;
package/src/index.js CHANGED
@@ -29,6 +29,7 @@ export { MergeAccountsConfirmationError } from './errors/MergeAccountsConfirmati
29
29
  export { CustomFieldNotUniqueError } from './errors/CustomFieldNotUniqueError.js';
30
30
  export { CookieInvalidError } from './errors/CookieInvalidError.js';
31
31
  export { AccessBlockedError } from './errors/AccessBlockedError.js';
32
+ export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
32
33
  export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';
33
34
  export { isFunction } from './isFunction/isFunction.js';
34
35
  export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows } from './isMobile.js';