@web3auth/no-modal 10.5.0 → 10.5.1
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/dist/lib.cjs/base/constants.js +2 -0
- package/dist/lib.cjs/base/utils.js +2 -2
- package/dist/lib.cjs/index.js +1 -0
- package/dist/lib.cjs/types/base/constants.d.ts +1 -0
- package/dist/lib.esm/base/constants.js +2 -1
- package/dist/lib.esm/base/utils.js +3 -3
- package/dist/lib.esm/index.js +1 -1
- package/dist/noModal.umd.min.js +1 -1
- package/package.json +2 -2
|
@@ -23,10 +23,12 @@ const SOLANA_CAIP_CHAIN_MAP = {
|
|
|
23
23
|
"0x66": "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",
|
|
24
24
|
"0x67": "EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
25
25
|
};
|
|
26
|
+
const WALLET_REGISTRY_URL = "https://assets.web3auth.io/v2/wallet-registry.json";
|
|
26
27
|
|
|
27
28
|
exports.LOGIN_MODE = LOGIN_MODE;
|
|
28
29
|
exports.MODAL_SIGN_IN_METHODS = MODAL_SIGN_IN_METHODS;
|
|
29
30
|
exports.SMART_ACCOUNT_WALLET_SCOPE = SMART_ACCOUNT_WALLET_SCOPE;
|
|
30
31
|
exports.SOLANA_CAIP_CHAIN_MAP = SOLANA_CAIP_CHAIN_MAP;
|
|
32
|
+
exports.WALLET_REGISTRY_URL = WALLET_REGISTRY_URL;
|
|
31
33
|
exports.WEB3AUTH_STATE_STORAGE_KEY = WEB3AUTH_STATE_STORAGE_KEY;
|
|
32
34
|
exports.WIDGET_TYPE = WIDGET_TYPE;
|
|
@@ -32,7 +32,7 @@ const fetchProjectConfig = async ({
|
|
|
32
32
|
return res;
|
|
33
33
|
};
|
|
34
34
|
const fetchWalletRegistry = async url => {
|
|
35
|
-
const res = await httpHelpers.get(url ||
|
|
35
|
+
const res = await httpHelpers.get(url || constants.WALLET_REGISTRY_URL);
|
|
36
36
|
return res;
|
|
37
37
|
};
|
|
38
38
|
// Normalize wallet name to a standard format, used for external wallets that are auto-detected by MIPD (EIP-6963 and Wallet Standard)
|
|
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
|
|
|
145
145
|
ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
const sdkVersion = "10.5.
|
|
148
|
+
const sdkVersion = "10.5.1";
|
|
149
149
|
const getErrorAnalyticsProperties = error => {
|
|
150
150
|
try {
|
|
151
151
|
const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
|
package/dist/lib.cjs/index.js
CHANGED
|
@@ -98,6 +98,7 @@ exports.LOGIN_MODE = constants$1.LOGIN_MODE;
|
|
|
98
98
|
exports.MODAL_SIGN_IN_METHODS = constants$1.MODAL_SIGN_IN_METHODS;
|
|
99
99
|
exports.SMART_ACCOUNT_WALLET_SCOPE = constants$1.SMART_ACCOUNT_WALLET_SCOPE;
|
|
100
100
|
exports.SOLANA_CAIP_CHAIN_MAP = constants$1.SOLANA_CAIP_CHAIN_MAP;
|
|
101
|
+
exports.WALLET_REGISTRY_URL = constants$1.WALLET_REGISTRY_URL;
|
|
101
102
|
exports.WEB3AUTH_STATE_STORAGE_KEY = constants$1.WEB3AUTH_STATE_STORAGE_KEY;
|
|
102
103
|
exports.WIDGET_TYPE = constants$1.WIDGET_TYPE;
|
|
103
104
|
exports.cookieToWeb3AuthState = cookie.cookieToWeb3AuthState;
|
|
@@ -21,5 +21,6 @@ const SOLANA_CAIP_CHAIN_MAP = {
|
|
|
21
21
|
"0x66": "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",
|
|
22
22
|
"0x67": "EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
23
23
|
};
|
|
24
|
+
const WALLET_REGISTRY_URL = "https://assets.web3auth.io/v2/wallet-registry.json";
|
|
24
25
|
|
|
25
|
-
export { LOGIN_MODE, MODAL_SIGN_IN_METHODS, SMART_ACCOUNT_WALLET_SCOPE, SOLANA_CAIP_CHAIN_MAP, WEB3AUTH_STATE_STORAGE_KEY, WIDGET_TYPE };
|
|
26
|
+
export { LOGIN_MODE, MODAL_SIGN_IN_METHODS, SMART_ACCOUNT_WALLET_SCOPE, SOLANA_CAIP_CHAIN_MAP, WALLET_REGISTRY_URL, WEB3AUTH_STATE_STORAGE_KEY, WIDGET_TYPE };
|
|
@@ -2,7 +2,7 @@ import { CHAIN_NAMESPACES } from '@toruslabs/base-controllers';
|
|
|
2
2
|
export { cloneDeep } from '@toruslabs/base-controllers';
|
|
3
3
|
import { SIGNER_MAP } from '@toruslabs/constants';
|
|
4
4
|
import { get } from '@toruslabs/http-helpers';
|
|
5
|
-
import { SOLANA_CAIP_CHAIN_MAP } from './constants.js';
|
|
5
|
+
import { WALLET_REGISTRY_URL, SOLANA_CAIP_CHAIN_MAP } from './constants.js';
|
|
6
6
|
import { Web3AuthError } from './errors/index.js';
|
|
7
7
|
import { WEB3AUTH_NETWORK } from '@web3auth/auth';
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ const fetchProjectConfig = async ({
|
|
|
27
27
|
return res;
|
|
28
28
|
};
|
|
29
29
|
const fetchWalletRegistry = async url => {
|
|
30
|
-
const res = await get(url ||
|
|
30
|
+
const res = await get(url || WALLET_REGISTRY_URL);
|
|
31
31
|
return res;
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
|
|
|
145
145
|
ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
const sdkVersion = "10.5.
|
|
148
|
+
const sdkVersion = "10.5.1";
|
|
149
149
|
const getErrorAnalyticsProperties = error => {
|
|
150
150
|
try {
|
|
151
151
|
const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
|
package/dist/lib.esm/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { BaseConnector } from './base/connector/baseConnector.js';
|
|
|
8
8
|
export { CONNECTOR_CATEGORY, CONNECTOR_EVENTS, CONNECTOR_STATUS } from './base/connector/constants.js';
|
|
9
9
|
export { AUTH_CONNECTION, MFA_FACTOR, MFA_LEVELS, UX_MODE, WEB3AUTH_NETWORK, getED25519Key } from '@web3auth/auth';
|
|
10
10
|
export { checkIfTokenIsExpired, clearToken, getSavedToken, saveToken, storageAvailable } from './base/connector/utils.js';
|
|
11
|
-
export { LOGIN_MODE, MODAL_SIGN_IN_METHODS, SMART_ACCOUNT_WALLET_SCOPE, SOLANA_CAIP_CHAIN_MAP, WEB3AUTH_STATE_STORAGE_KEY, WIDGET_TYPE } from './base/constants.js';
|
|
11
|
+
export { LOGIN_MODE, MODAL_SIGN_IN_METHODS, SMART_ACCOUNT_WALLET_SCOPE, SOLANA_CAIP_CHAIN_MAP, WALLET_REGISTRY_URL, WEB3AUTH_STATE_STORAGE_KEY, WIDGET_TYPE } from './base/constants.js';
|
|
12
12
|
export { WalletInitializationError, WalletLoginError, WalletOperationsError, WalletProviderError, Web3AuthError } from './base/errors/index.js';
|
|
13
13
|
export { log } from './base/loglevel.js';
|
|
14
14
|
export { NFTCheckoutPluginError, WalletServicesPluginError } from './base/plugin/errors.js';
|