@web3auth/no-modal 10.0.3 → 10.0.5
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/utils.js +1 -1
- package/dist/lib.cjs/connectors/auth-connector/authConnector.js +4 -4
- package/dist/lib.cjs/noModal.js +4 -1
- package/dist/lib.cjs/types/react/wagmi/constants.d.ts +1 -0
- package/dist/lib.cjs/types/vue/wagmi/constants.d.ts +1 -0
- package/dist/lib.esm/base/utils.js +1 -1
- package/dist/lib.esm/connectors/auth-connector/authConnector.js +4 -4
- package/dist/lib.esm/noModal.js +4 -1
- package/dist/noModal.umd.min.js +1 -1
- package/dist/noModal.umd.min.js.LICENSE.txt +4 -0
- package/package.json +16 -16
- package/dist/lib.cjs/types/connectors/injected-solana-connector/utils.d.ts +0 -3
- package/dist/lib.cjs/types/connectors/wallet-connect-v2-connector/utils.d.ts +0 -3
- package/dist/lib.cjs/types/providers/account-abstraction-provider/rpc/index.d.ts +0 -1
|
@@ -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.0.
|
|
148
|
+
const sdkVersion = "10.0.5";
|
|
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;
|
|
@@ -424,7 +424,10 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
424
424
|
uxMode: this.authInstance.options.uxMode,
|
|
425
425
|
whiteLabel: JSON.stringify(this.authInstance.options.whiteLabel),
|
|
426
426
|
loginParams: JSON.stringify(loginParams),
|
|
427
|
-
version: auth.version.split(".")[0]
|
|
427
|
+
version: auth.version.split(".")[0],
|
|
428
|
+
web3AuthNetwork: this.coreOptions.web3AuthNetwork,
|
|
429
|
+
web3AuthClientId: this.coreOptions.clientId,
|
|
430
|
+
originData: this.authInstance.options.originData ? JSON.stringify(this.authInstance.options.originData) : undefined
|
|
428
431
|
},
|
|
429
432
|
web3AuthClientId: this.coreOptions.clientId,
|
|
430
433
|
web3AuthNetwork: this.coreOptions.web3AuthNetwork
|
|
@@ -501,9 +504,6 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
501
504
|
var _params$extraLoginOpt6;
|
|
502
505
|
finalUserId = params.loginHint || ((_params$extraLoginOpt6 = params.extraLoginOptions) === null || _params$extraLoginOpt6 === void 0 ? void 0 : _params$extraLoginOpt6.login_hint);
|
|
503
506
|
} else if ((_params$extraLoginOpt7 = params.extraLoginOptions) !== null && _params$extraLoginOpt7 !== void 0 && _params$extraLoginOpt7.id_token) {
|
|
504
|
-
if (typeof finalExtraLoginOptions.isUserIdCaseSensitive === "undefined") {
|
|
505
|
-
throw index$1.WalletInitializationError.invalidParams(`isUserIdCaseSensitive is required for this connection: ${finalExtraLoginOptions.authConnection}`);
|
|
506
|
-
}
|
|
507
507
|
const {
|
|
508
508
|
payload
|
|
509
509
|
} = utils.parseToken(params.extraLoginOptions.id_token);
|
package/dist/lib.cjs/noModal.js
CHANGED
|
@@ -104,7 +104,10 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
|
|
|
104
104
|
this.analytics.setGlobalProperties({
|
|
105
105
|
dapp_url: window.location.origin,
|
|
106
106
|
sdk_name: analytics.ANALYTICS_SDK_TYPE.WEB_NO_MODAL,
|
|
107
|
-
sdk_version: utils.sdkVersion
|
|
107
|
+
sdk_version: utils.sdkVersion,
|
|
108
|
+
// Required for organization analytics
|
|
109
|
+
web3auth_client_id: this.coreOptions.clientId,
|
|
110
|
+
web3auth_network: this.coreOptions.web3AuthNetwork
|
|
108
111
|
});
|
|
109
112
|
let trackData = {};
|
|
110
113
|
try {
|
|
@@ -6,6 +6,7 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
|
|
|
6
6
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
blockTime?: number | undefined | undefined;
|
|
9
10
|
contracts: {
|
|
10
11
|
readonly ensRegistry: {
|
|
11
12
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
@@ -6,6 +6,7 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
|
|
|
6
6
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
blockTime?: number | undefined | undefined;
|
|
9
10
|
contracts: {
|
|
10
11
|
readonly ensRegistry: {
|
|
11
12
|
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
@@ -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.0.
|
|
148
|
+
const sdkVersion = "10.0.5";
|
|
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;
|
|
@@ -426,7 +426,10 @@ class AuthConnector extends BaseConnector {
|
|
|
426
426
|
uxMode: this.authInstance.options.uxMode,
|
|
427
427
|
whiteLabel: JSON.stringify(this.authInstance.options.whiteLabel),
|
|
428
428
|
loginParams: JSON.stringify(loginParams),
|
|
429
|
-
version: version.split(".")[0]
|
|
429
|
+
version: version.split(".")[0],
|
|
430
|
+
web3AuthNetwork: this.coreOptions.web3AuthNetwork,
|
|
431
|
+
web3AuthClientId: this.coreOptions.clientId,
|
|
432
|
+
originData: this.authInstance.options.originData ? JSON.stringify(this.authInstance.options.originData) : undefined
|
|
430
433
|
},
|
|
431
434
|
web3AuthClientId: this.coreOptions.clientId,
|
|
432
435
|
web3AuthNetwork: this.coreOptions.web3AuthNetwork
|
|
@@ -505,9 +508,6 @@ class AuthConnector extends BaseConnector {
|
|
|
505
508
|
var _params$extraLoginOpt6;
|
|
506
509
|
finalUserId = params.loginHint || ((_params$extraLoginOpt6 = params.extraLoginOptions) === null || _params$extraLoginOpt6 === void 0 ? void 0 : _params$extraLoginOpt6.login_hint);
|
|
507
510
|
} else if ((_params$extraLoginOpt7 = params.extraLoginOptions) !== null && _params$extraLoginOpt7 !== void 0 && _params$extraLoginOpt7.id_token) {
|
|
508
|
-
if (typeof finalExtraLoginOptions.isUserIdCaseSensitive === "undefined") {
|
|
509
|
-
throw WalletInitializationError.invalidParams(`isUserIdCaseSensitive is required for this connection: ${finalExtraLoginOptions.authConnection}`);
|
|
510
|
-
}
|
|
511
511
|
const {
|
|
512
512
|
payload
|
|
513
513
|
} = parseToken(params.extraLoginOptions.id_token);
|
package/dist/lib.esm/noModal.js
CHANGED
|
@@ -99,7 +99,10 @@ class Web3AuthNoModal extends SafeEventEmitter {
|
|
|
99
99
|
this.analytics.setGlobalProperties({
|
|
100
100
|
dapp_url: window.location.origin,
|
|
101
101
|
sdk_name: ANALYTICS_SDK_TYPE.WEB_NO_MODAL,
|
|
102
|
-
sdk_version: sdkVersion
|
|
102
|
+
sdk_version: sdkVersion,
|
|
103
|
+
// Required for organization analytics
|
|
104
|
+
web3auth_client_id: this.coreOptions.clientId,
|
|
105
|
+
web3auth_network: this.coreOptions.web3AuthNetwork
|
|
103
106
|
});
|
|
104
107
|
let trackData = {};
|
|
105
108
|
try {
|