@dynamic-labs/utils 0.18.0-RC.10 → 0.18.0-RC.12
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 +29 -0
- package/package.json +2 -2
- package/src/errors/GateBlockedError.cjs +14 -0
- package/src/errors/GateBlockedError.d.ts +5 -0
- package/src/errors/GateBlockedError.js +10 -0
- package/src/errors/index.d.ts +1 -0
- package/src/index.cjs +2 -0
- package/src/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
## [0.18.0-RC.12](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.11...v0.18.0-RC.12) (2023-07-07)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add event listeners to connect-only ([#2578](https://github.com/dynamic-labs/DynamicAuth/issues/2578)) ([42fcf09](https://github.com/dynamic-labs/DynamicAuth/commit/42fcf096ac439ec883a79bf5811b27cdc360015a))
|
|
8
|
+
* add message when search finds no wallet ([#2421](https://github.com/dynamic-labs/DynamicAuth/issues/2421)) ([694ecee](https://github.com/dynamic-labs/DynamicAuth/commit/694ecee94d9f6f636364eae4aa95ea48e3ff0e0a))
|
|
9
|
+
* allow adding either ToS or PP and enable customization for both ([#2451](https://github.com/dynamic-labs/DynamicAuth/issues/2451)) ([0dce0fe](https://github.com/dynamic-labs/DynamicAuth/commit/0dce0fe534056298cbfdd9caa694231ede00c3fc))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **BridgeSummaryView:** handle primary wallet when it is not defined ([#2602](https://github.com/dynamic-labs/DynamicAuth/issues/2602)) ([8a5daa4](https://github.com/dynamic-labs/DynamicAuth/commit/8a5daa4b2ad218460ccfaab0fa68c75d0d5d569f))
|
|
15
|
+
* secondary wallets network change overrides primary wallet network ([#2603](https://github.com/dynamic-labs/DynamicAuth/issues/2603)) ([358fc45](https://github.com/dynamic-labs/DynamicAuth/commit/358fc45ecb73f31294744f7ba4dbba5779a3e1cf))
|
|
16
|
+
|
|
17
|
+
## [0.18.0-RC.11](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.10...v0.18.0-RC.11) (2023-07-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **DYN-2384:** expose useDynamicScopes hook ([#2179](https://github.com/dynamic-labs/DynamicAuth/issues/2179)) ([c224749](https://github.com/dynamic-labs/DynamicAuth/commit/c2247493d9c99dab7e41d7d8d156ae7e478973bc))
|
|
23
|
+
* **DynamicBridgeWidget:** add UI inline widget to match designs ([#2587](https://github.com/dynamic-labs/DynamicAuth/issues/2587)) ([d623aec](https://github.com/dynamic-labs/DynamicAuth/commit/d623aecda6388b67e40a3f8dabb03ca03a6f22b6))
|
|
24
|
+
* support starknet networks ([#2579](https://github.com/dynamic-labs/DynamicAuth/issues/2579)) ([a01545e](https://github.com/dynamic-labs/DynamicAuth/commit/a01545e0cf8e4e19a22dc64877d590d78647c579))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* metamask getConnectedAccounts triggering an infinite loop ([#2580](https://github.com/dynamic-labs/DynamicAuth/issues/2580)) ([e025cea](https://github.com/dynamic-labs/DynamicAuth/commit/e025cea33e4a95ea2a03ac11e47a88a73db39848))
|
|
30
|
+
|
|
2
31
|
## [0.18.0-RC.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.9...v0.18.0-RC.10) (2023-07-06)
|
|
3
32
|
|
|
4
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "0.18.0-RC.
|
|
3
|
+
"version": "0.18.0-RC.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/types": "0.18.0-RC.
|
|
29
|
+
"@dynamic-labs/types": "0.18.0-RC.12"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var DynamicError = require('./DynamicError.cjs');
|
|
6
|
+
|
|
7
|
+
class GateBlockedError extends DynamicError.DynamicError {
|
|
8
|
+
constructor(walletPublicKey) {
|
|
9
|
+
super('This address is blocked by the gate');
|
|
10
|
+
this.walletPublicKey = walletPublicKey;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.GateBlockedError = GateBlockedError;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DynamicError } from './DynamicError.js';
|
|
2
|
+
|
|
3
|
+
class GateBlockedError extends DynamicError {
|
|
4
|
+
constructor(walletPublicKey) {
|
|
5
|
+
super('This address is blocked by the gate');
|
|
6
|
+
this.walletPublicKey = walletPublicKey;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { GateBlockedError };
|
package/src/errors/index.d.ts
CHANGED
package/src/index.cjs
CHANGED
|
@@ -16,6 +16,7 @@ var WalletNotDeployedError = require('./errors/WalletNotDeployedError.cjs');
|
|
|
16
16
|
var WalletUsedError = require('./errors/WalletUsedError.cjs');
|
|
17
17
|
var EmailProviderError = require('./errors/EmailProviderError.cjs');
|
|
18
18
|
var MissingEnvironmentIdError = require('./errors/MissingEnvironmentIdError.cjs');
|
|
19
|
+
var GateBlockedError = require('./errors/GateBlockedError.cjs');
|
|
19
20
|
var CancellablePromise = require('./CancellablePromise/CancellablePromise.cjs');
|
|
20
21
|
var isFunction = require('./isFunction/isFunction.cjs');
|
|
21
22
|
var isMobile = require('./isMobile.cjs');
|
|
@@ -38,6 +39,7 @@ exports.WalletNotDeployedError = WalletNotDeployedError.WalletNotDeployedError;
|
|
|
38
39
|
exports.WalletUsedError = WalletUsedError.WalletUsedError;
|
|
39
40
|
exports.EmailProviderError = EmailProviderError.EmailProviderError;
|
|
40
41
|
exports.MissingEnvironmentIdError = MissingEnvironmentIdError.MissingEnvironmentIdError;
|
|
42
|
+
exports.GateBlockedError = GateBlockedError.GateBlockedError;
|
|
41
43
|
exports.CancellablePromise = CancellablePromise.CancellablePromise;
|
|
42
44
|
exports.isFunction = isFunction.isFunction;
|
|
43
45
|
exports.isAndroid = isMobile.isAndroid;
|
package/src/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export { WalletNotDeployedError } from './errors/WalletNotDeployedError.js';
|
|
|
12
12
|
export { WalletUsedError } from './errors/WalletUsedError.js';
|
|
13
13
|
export { EmailProviderError } from './errors/EmailProviderError.js';
|
|
14
14
|
export { MissingEnvironmentIdError } from './errors/MissingEnvironmentIdError.js';
|
|
15
|
+
export { GateBlockedError } from './errors/GateBlockedError.js';
|
|
15
16
|
export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';
|
|
16
17
|
export { isFunction } from './isFunction/isFunction.js';
|
|
17
18
|
export { isAndroid, isIOS, isIPad, isIPhone, isMobile, isSamsungBrowser } from './isMobile.js';
|