@dynamic-labs/multi-wallet 0.17.0-RC.2 → 0.17.0-RC.3
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 +14 -0
- package/package.json +4 -4
- package/src/errors.cjs +2 -1
- package/src/errors.d.ts +6 -2
- package/src/errors.js +2 -1
- package/src/multi-wallet.cjs +2 -6
- package/src/multi-wallet.d.ts +0 -1
- package/src/multi-wallet.js +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [0.17.0-RC.3](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.2...v0.17.0-RC.3) (2023-04-21)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* consume social sign in settings from dashboard ([#1896](https://github.com/dynamic-labs/DynamicAuth/issues/1896)) ([484fc53](https://github.com/dynamic-labs/DynamicAuth/commit/484fc539ee4f4bbef02dea52a3c4dace1a647b70))
|
|
8
|
+
* **DYN-1820:** support allow list in email authorization ([#1916](https://github.com/dynamic-labs/DynamicAuth/issues/1916)) ([9356346](https://github.com/dynamic-labs/DynamicAuth/commit/93563460d3231f644f21c9acda1b0c33e4dcd893))
|
|
9
|
+
* **DYN-2092:** add and expose global loading state ([#1872](https://github.com/dynamic-labs/DynamicAuth/issues/1872)) ([2aa1781](https://github.com/dynamic-labs/DynamicAuth/commit/2aa1781d02a801b712ff0a3fd6f9d608cc420b2a))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* lock QR Code to 1.5.1 ([#1924](https://github.com/dynamic-labs/DynamicAuth/issues/1924)) ([5c49ba7](https://github.com/dynamic-labs/DynamicAuth/commit/5c49ba7ca20d1effdb8f3d367158adeacda42809))
|
|
15
|
+
|
|
2
16
|
## [0.17.0-RC.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.1...v0.17.0-RC.2) (2023-04-20)
|
|
3
17
|
|
|
4
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "0.17.0-RC.
|
|
3
|
+
"version": "0.17.0-RC.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"buffer": "^6.0.3",
|
|
11
11
|
"deepmerge": "^4.3.1",
|
|
12
|
-
"@dynamic-labs/sdk-api": "0.0.
|
|
12
|
+
"@dynamic-labs/sdk-api": "0.0.178",
|
|
13
13
|
"@dynamic-labs/wallet-book": "^0.0.11",
|
|
14
14
|
"@magic-ext/oauth": "^10.2.0",
|
|
15
15
|
"starknet": "^3.19.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"magic-sdk": "^16.0.1",
|
|
30
30
|
"@keplr-wallet/provider": "0.11.56",
|
|
31
31
|
"@keplr-wallet/types": "^0.11.51",
|
|
32
|
-
"@dynamic-labs/logger": "0.17.0-RC.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.
|
|
32
|
+
"@dynamic-labs/logger": "0.17.0-RC.3",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@walletconnect/types": "^2.2.1"
|
package/src/errors.cjs
CHANGED
|
@@ -14,9 +14,10 @@ class EmailVerificationError extends DynamicError {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
class NoAccessError extends DynamicError {
|
|
17
|
-
constructor(walletPublicKey) {
|
|
17
|
+
constructor({ walletPublicKey, email, }) {
|
|
18
18
|
super('User does not have access');
|
|
19
19
|
this.name = 'NoAccessError';
|
|
20
|
+
this.email = email;
|
|
20
21
|
this.walletPublicKey = walletPublicKey;
|
|
21
22
|
}
|
|
22
23
|
}
|
package/src/errors.d.ts
CHANGED
|
@@ -7,8 +7,12 @@ export declare class EmailVerificationError extends DynamicError {
|
|
|
7
7
|
constructor(code: string);
|
|
8
8
|
}
|
|
9
9
|
export declare class NoAccessError extends DynamicError {
|
|
10
|
-
walletPublicKey
|
|
11
|
-
|
|
10
|
+
walletPublicKey?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
constructor({ walletPublicKey, email, }: {
|
|
13
|
+
email?: string;
|
|
14
|
+
walletPublicKey?: string;
|
|
15
|
+
});
|
|
12
16
|
}
|
|
13
17
|
export declare class ChainalysisError extends DynamicError {
|
|
14
18
|
walletPublicKey: string | undefined;
|
package/src/errors.js
CHANGED
|
@@ -10,9 +10,10 @@ class EmailVerificationError extends DynamicError {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
class NoAccessError extends DynamicError {
|
|
13
|
-
constructor(walletPublicKey) {
|
|
13
|
+
constructor({ walletPublicKey, email, }) {
|
|
14
14
|
super('User does not have access');
|
|
15
15
|
this.name = 'NoAccessError';
|
|
16
|
+
this.email = email;
|
|
16
17
|
this.walletPublicKey = walletPublicKey;
|
|
17
18
|
}
|
|
18
19
|
}
|
package/src/multi-wallet.cjs
CHANGED
|
@@ -268,12 +268,8 @@ const getSupportedChainsForWalletConnector = (walletConnector) => {
|
|
|
268
268
|
};
|
|
269
269
|
const getEnabledWallets = (props) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
270
270
|
const supportedWallets = yield getSupportedWallets(props.getSupportedWalletOpts);
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
wallet.isInstalledOnBrowser() === props.installed;
|
|
274
|
-
const allEnabledWallets = supportedWallets.filter((wallet) => isKeplrWalletEnabled(wallet) ||
|
|
275
|
-
(props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(wallet).includes(chain)) &&
|
|
276
|
-
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
271
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => (props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(wallet).includes(chain)) &&
|
|
272
|
+
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
277
273
|
wallet.key === 'magiclink');
|
|
278
274
|
return allEnabledWallets;
|
|
279
275
|
});
|
package/src/multi-wallet.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const getSupportedWallets: GetSupportedWallets;
|
|
|
6
6
|
export declare const getSupportedChainsForWalletConnector: (walletConnector: WalletConnector) => Chain[];
|
|
7
7
|
export declare const getEnabledWallets: (props: {
|
|
8
8
|
enabledChains: Chain[];
|
|
9
|
-
enabledNetworks: number[];
|
|
10
9
|
getSupportedWalletOpts: GetSupportedWalletsOpts;
|
|
11
10
|
installed: boolean;
|
|
12
11
|
}) => Promise<WalletConnector[]>;
|
package/src/multi-wallet.js
CHANGED
|
@@ -265,12 +265,8 @@ const getSupportedChainsForWalletConnector = (walletConnector) => {
|
|
|
265
265
|
};
|
|
266
266
|
const getEnabledWallets = (props) => __awaiter(void 0, void 0, void 0, function* () {
|
|
267
267
|
const supportedWallets = yield getSupportedWallets(props.getSupportedWalletOpts);
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
wallet.isInstalledOnBrowser() === props.installed;
|
|
271
|
-
const allEnabledWallets = supportedWallets.filter((wallet) => isKeplrWalletEnabled(wallet) ||
|
|
272
|
-
(props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(wallet).includes(chain)) &&
|
|
273
|
-
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
268
|
+
const allEnabledWallets = supportedWallets.filter((wallet) => (props.enabledChains.some((chain) => getSupportedChainsForWalletConnector(wallet).includes(chain)) &&
|
|
269
|
+
wallet.isInstalledOnBrowser() === props.installed) ||
|
|
274
270
|
wallet.key === 'magiclink');
|
|
275
271
|
return allEnabledWallets;
|
|
276
272
|
});
|