@web3auth/no-modal 10.11.0 → 10.12.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.
|
@@ -147,7 +147,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
|
|
|
147
147
|
ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig10 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig10 === void 0 ? void 0 : _walletServicesConfig10.defaultPortfolio
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
const sdkVersion = "10.
|
|
150
|
+
const sdkVersion = "10.12.0";
|
|
151
151
|
const getErrorAnalyticsProperties = error => {
|
|
152
152
|
try {
|
|
153
153
|
const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
|
|
@@ -4,6 +4,7 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
|
4
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
5
|
var securePubSub = require('@toruslabs/secure-pub-sub');
|
|
6
6
|
var auth = require('@web3auth/auth');
|
|
7
|
+
var wsEmbed = require('@web3auth/ws-embed');
|
|
7
8
|
var deepmerge = require('deepmerge');
|
|
8
9
|
require('@segment/analytics-next');
|
|
9
10
|
var loglevel = require('../../base/loglevel.js');
|
|
@@ -42,7 +43,9 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
42
43
|
this.loginSettings = params.loginSettings || {
|
|
43
44
|
authConnection: ""
|
|
44
45
|
};
|
|
45
|
-
this.wsSettings = params.walletServicesSettings || {
|
|
46
|
+
this.wsSettings = params.walletServicesSettings || {
|
|
47
|
+
loginMode: wsEmbed.WS_EMBED_LOGIN_MODE.PLUGIN
|
|
48
|
+
};
|
|
46
49
|
this.authConnectionConfig = params.authConnectionConfig || [];
|
|
47
50
|
}
|
|
48
51
|
get provider() {
|
|
@@ -108,6 +111,7 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
108
111
|
});
|
|
109
112
|
const wsSupportedChains = chains.filter(x => x.chainNamespace === baseControllers.CHAIN_NAMESPACES.EIP155 || x.chainNamespace === baseControllers.CHAIN_NAMESPACES.SOLANA);
|
|
110
113
|
this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
|
|
114
|
+
loginMode: wsEmbed.WS_EMBED_LOGIN_MODE.PLUGIN,
|
|
111
115
|
chains: wsSupportedChains,
|
|
112
116
|
chainId,
|
|
113
117
|
whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
|
|
@@ -146,7 +146,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
|
|
|
146
146
|
ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig10 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig10 === void 0 ? void 0 : _walletServicesConfig10.defaultPortfolio
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
const sdkVersion = "10.
|
|
149
|
+
const sdkVersion = "10.12.0";
|
|
150
150
|
const getErrorAnalyticsProperties = error => {
|
|
151
151
|
try {
|
|
152
152
|
const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
|
|
@@ -2,6 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { SecurePubSub } from '@toruslabs/secure-pub-sub';
|
|
4
4
|
import { BUILD_ENV, UX_MODE, Auth, SDK_MODE, SUPPORTED_KEY_CURVES, randomId, version, createHandler, PopupHandler, getUserId } from '@web3auth/auth';
|
|
5
|
+
import { WS_EMBED_LOGIN_MODE } from '@web3auth/ws-embed';
|
|
5
6
|
import deepmerge from 'deepmerge';
|
|
6
7
|
import { parseToken } from '../utils.js';
|
|
7
8
|
import { BaseConnector } from '../../base/connector/baseConnector.js';
|
|
@@ -36,7 +37,9 @@ class AuthConnector extends BaseConnector {
|
|
|
36
37
|
this.loginSettings = params.loginSettings || {
|
|
37
38
|
authConnection: ""
|
|
38
39
|
};
|
|
39
|
-
this.wsSettings = params.walletServicesSettings || {
|
|
40
|
+
this.wsSettings = params.walletServicesSettings || {
|
|
41
|
+
loginMode: WS_EMBED_LOGIN_MODE.PLUGIN
|
|
42
|
+
};
|
|
40
43
|
this.authConnectionConfig = params.authConnectionConfig || [];
|
|
41
44
|
}
|
|
42
45
|
get provider() {
|
|
@@ -104,6 +107,7 @@ class AuthConnector extends BaseConnector {
|
|
|
104
107
|
});
|
|
105
108
|
const wsSupportedChains = chains.filter(x => x.chainNamespace === CHAIN_NAMESPACES.EIP155 || x.chainNamespace === CHAIN_NAMESPACES.SOLANA);
|
|
106
109
|
this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
|
|
110
|
+
loginMode: WS_EMBED_LOGIN_MODE.PLUGIN,
|
|
107
111
|
chains: wsSupportedChains,
|
|
108
112
|
chainId,
|
|
109
113
|
whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
|