@web3auth/no-modal 10.2.0 → 10.3.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/utils.js +1 -1
- package/dist/lib.cjs/connectors/auth-connector/authConnector.js +1 -9
- package/dist/lib.cjs/connectors/metamask-connector/metamaskConnector.js +1 -1
- package/dist/lib.cjs/connectors/utils.js +1 -1
- package/dist/lib.cjs/noModal.js +1 -4
- package/dist/lib.cjs/types/connectors/injected-solana-connector/utils.d.ts +3 -0
- package/dist/lib.cjs/types/connectors/utils.d.ts +1 -1
- package/dist/lib.cjs/types/connectors/wallet-connect-v2-connector/utils.d.ts +3 -0
- package/dist/lib.cjs/types/providers/account-abstraction-provider/rpc/index.d.ts +1 -0
- package/dist/lib.cjs/types/react/wagmi/constants.d.ts +3 -6
- package/dist/lib.cjs/types/vue/wagmi/constants.d.ts +3 -6
- package/dist/lib.esm/base/utils.js +1 -1
- package/dist/lib.esm/connectors/auth-connector/authConnector.js +1 -9
- package/dist/lib.esm/connectors/metamask-connector/metamaskConnector.js +1 -1
- package/dist/lib.esm/connectors/utils.js +1 -1
- package/dist/lib.esm/noModal.js +1 -4
- package/dist/noModal.umd.min.js +1 -1
- package/package.json +10 -10
|
@@ -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.
|
|
148
|
+
const sdkVersion = "10.3.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;
|
|
@@ -97,7 +97,6 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
97
97
|
case baseControllers.CHAIN_NAMESPACES.EIP155:
|
|
98
98
|
case baseControllers.CHAIN_NAMESPACES.SOLANA:
|
|
99
99
|
{
|
|
100
|
-
var _this$wsSettings$whit, _this$authOptions$whi, _this$wsSettings$whit2, _this$authOptions$whi2;
|
|
101
100
|
const {
|
|
102
101
|
default: WsEmbed
|
|
103
102
|
} = await import('@web3auth/ws-embed');
|
|
@@ -107,17 +106,10 @@ class AuthConnector extends baseConnector.BaseConnector {
|
|
|
107
106
|
modalZIndex: this.wsSettings.modalZIndex
|
|
108
107
|
});
|
|
109
108
|
const wsSupportedChains = chains.filter(x => x.chainNamespace === baseControllers.CHAIN_NAMESPACES.EIP155 || x.chainNamespace === baseControllers.CHAIN_NAMESPACES.SOLANA);
|
|
110
|
-
const wsEmbedWhiteLabel = _objectSpread(_objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel), {}, {
|
|
111
|
-
logoLight: ((_this$wsSettings$whit = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit === void 0 ? void 0 : _this$wsSettings$whit.logoLight) || ((_this$authOptions$whi = this.authOptions.whiteLabel) === null || _this$authOptions$whi === void 0 ? void 0 : _this$authOptions$whi.logoLight) || "",
|
|
112
|
-
logoDark: ((_this$wsSettings$whit2 = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit2 === void 0 ? void 0 : _this$wsSettings$whit2.logoDark) || ((_this$authOptions$whi2 = this.authOptions.whiteLabel) === null || _this$authOptions$whi2 === void 0 ? void 0 : _this$authOptions$whi2.logoDark) || ""
|
|
113
|
-
});
|
|
114
109
|
this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
|
|
115
110
|
chains: wsSupportedChains,
|
|
116
111
|
chainId,
|
|
117
|
-
whiteLabel: _objectSpread(_objectSpread({},
|
|
118
|
-
logoLight: wsEmbedWhiteLabel.logoLight || "",
|
|
119
|
-
logoDark: wsEmbedWhiteLabel.logoDark || ""
|
|
120
|
-
})
|
|
112
|
+
whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
|
|
121
113
|
})).then(() => {
|
|
122
114
|
this.wsEmbedInstancePromise = null;
|
|
123
115
|
return;
|
|
@@ -56,7 +56,7 @@ class MetaMaskConnector extends baseEvmConnector.BaseEvmConnector {
|
|
|
56
56
|
const appMetadata = {
|
|
57
57
|
name: utils.getSiteName(window) || "web3auth",
|
|
58
58
|
url: window.location.origin || "https://web3auth.io",
|
|
59
|
-
iconUrl
|
|
59
|
+
iconUrl: iconUrl !== null && iconUrl !== void 0 ? iconUrl : undefined
|
|
60
60
|
};
|
|
61
61
|
// initialize the MetaMask SDK
|
|
62
62
|
const metamaskOptions = deepmerge(this.metamaskOptions || {}, {
|
package/dist/lib.cjs/noModal.js
CHANGED
|
@@ -522,10 +522,7 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
|
|
|
522
522
|
const isKeyExportEnabled = (_ref2 = (_this$coreOptions$wal4 = (_this$coreOptions$wal5 = this.coreOptions.walletServicesConfig) === null || _this$coreOptions$wal5 === void 0 ? void 0 : _this$coreOptions$wal5.enableKeyExport) !== null && _this$coreOptions$wal4 !== void 0 ? _this$coreOptions$wal4 : enableKeyExport) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
523
523
|
this.coreOptions.walletServicesConfig = _objectSpread(_objectSpread({}, this.coreOptions.walletServicesConfig), {}, {
|
|
524
524
|
confirmationStrategy,
|
|
525
|
-
whiteLabel
|
|
526
|
-
logoLight: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoLight) || "",
|
|
527
|
-
logoDark: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoDark) || ""
|
|
528
|
-
}),
|
|
525
|
+
whiteLabel,
|
|
529
526
|
enableKeyExport: isKeyExportEnabled
|
|
530
527
|
});
|
|
531
528
|
}
|
|
@@ -5,7 +5,7 @@ export declare const getSiteName: (window: Window) => string;
|
|
|
5
5
|
/**
|
|
6
6
|
* Extracts an icon for the site from the DOM
|
|
7
7
|
*/
|
|
8
|
-
export declare function getSiteIcon(window: Window): Promise<string |
|
|
8
|
+
export declare function getSiteIcon(window: Window): Promise<string | undefined>;
|
|
9
9
|
export declare function parseToken<T>(token: string): {
|
|
10
10
|
header: {
|
|
11
11
|
alg: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ethRpcMiddlewares";
|
|
@@ -6,14 +6,11 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
|
|
|
6
6
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
blockTime
|
|
9
|
+
blockTime: 12000;
|
|
10
10
|
contracts: {
|
|
11
|
-
readonly ensRegistry: {
|
|
12
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
13
|
-
};
|
|
14
11
|
readonly ensUniversalResolver: {
|
|
15
|
-
readonly address: "
|
|
16
|
-
readonly blockCreated:
|
|
12
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
13
|
+
readonly blockCreated: 23085558;
|
|
17
14
|
};
|
|
18
15
|
readonly multicall3: {
|
|
19
16
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -6,14 +6,11 @@ export declare const defaultWagmiConfig: import("wagmi").Config<readonly [{
|
|
|
6
6
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
blockTime
|
|
9
|
+
blockTime: 12000;
|
|
10
10
|
contracts: {
|
|
11
|
-
readonly ensRegistry: {
|
|
12
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
13
|
-
};
|
|
14
11
|
readonly ensUniversalResolver: {
|
|
15
|
-
readonly address: "
|
|
16
|
-
readonly blockCreated:
|
|
12
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
13
|
+
readonly blockCreated: 23085558;
|
|
17
14
|
};
|
|
18
15
|
readonly multicall3: {
|
|
19
16
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -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.
|
|
148
|
+
const sdkVersion = "10.3.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;
|
|
@@ -93,7 +93,6 @@ class AuthConnector extends BaseConnector {
|
|
|
93
93
|
case CHAIN_NAMESPACES.EIP155:
|
|
94
94
|
case CHAIN_NAMESPACES.SOLANA:
|
|
95
95
|
{
|
|
96
|
-
var _this$wsSettings$whit, _this$authOptions$whi, _this$wsSettings$whit2, _this$authOptions$whi2;
|
|
97
96
|
const {
|
|
98
97
|
default: WsEmbed
|
|
99
98
|
} = await import('@web3auth/ws-embed');
|
|
@@ -103,17 +102,10 @@ class AuthConnector extends BaseConnector {
|
|
|
103
102
|
modalZIndex: this.wsSettings.modalZIndex
|
|
104
103
|
});
|
|
105
104
|
const wsSupportedChains = chains.filter(x => x.chainNamespace === CHAIN_NAMESPACES.EIP155 || x.chainNamespace === CHAIN_NAMESPACES.SOLANA);
|
|
106
|
-
const wsEmbedWhiteLabel = _objectSpread(_objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel), {}, {
|
|
107
|
-
logoLight: ((_this$wsSettings$whit = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit === void 0 ? void 0 : _this$wsSettings$whit.logoLight) || ((_this$authOptions$whi = this.authOptions.whiteLabel) === null || _this$authOptions$whi === void 0 ? void 0 : _this$authOptions$whi.logoLight) || "",
|
|
108
|
-
logoDark: ((_this$wsSettings$whit2 = this.wsSettings.whiteLabel) === null || _this$wsSettings$whit2 === void 0 ? void 0 : _this$wsSettings$whit2.logoDark) || ((_this$authOptions$whi2 = this.authOptions.whiteLabel) === null || _this$authOptions$whi2 === void 0 ? void 0 : _this$authOptions$whi2.logoDark) || ""
|
|
109
|
-
});
|
|
110
105
|
this.wsEmbedInstancePromise = this.wsEmbedInstance.init(_objectSpread(_objectSpread({}, this.wsSettings), {}, {
|
|
111
106
|
chains: wsSupportedChains,
|
|
112
107
|
chainId,
|
|
113
|
-
whiteLabel: _objectSpread(_objectSpread({},
|
|
114
|
-
logoLight: wsEmbedWhiteLabel.logoLight || "",
|
|
115
|
-
logoDark: wsEmbedWhiteLabel.logoDark || ""
|
|
116
|
-
})
|
|
108
|
+
whiteLabel: _objectSpread(_objectSpread({}, this.authOptions.whiteLabel), this.wsSettings.whiteLabel)
|
|
117
109
|
})).then(() => {
|
|
118
110
|
this.wsEmbedInstancePromise = null;
|
|
119
111
|
return;
|
|
@@ -50,7 +50,7 @@ class MetaMaskConnector extends BaseEvmConnector {
|
|
|
50
50
|
const appMetadata = {
|
|
51
51
|
name: getSiteName(window) || "web3auth",
|
|
52
52
|
url: window.location.origin || "https://web3auth.io",
|
|
53
|
-
iconUrl
|
|
53
|
+
iconUrl: iconUrl !== null && iconUrl !== void 0 ? iconUrl : undefined
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
// initialize the MetaMask SDK
|
package/dist/lib.esm/noModal.js
CHANGED
|
@@ -531,10 +531,7 @@ class Web3AuthNoModal extends SafeEventEmitter {
|
|
|
531
531
|
const isKeyExportEnabled = (_ref2 = (_this$coreOptions$wal4 = (_this$coreOptions$wal5 = this.coreOptions.walletServicesConfig) === null || _this$coreOptions$wal5 === void 0 ? void 0 : _this$coreOptions$wal5.enableKeyExport) !== null && _this$coreOptions$wal4 !== void 0 ? _this$coreOptions$wal4 : enableKeyExport) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
532
532
|
this.coreOptions.walletServicesConfig = _objectSpread(_objectSpread({}, this.coreOptions.walletServicesConfig), {}, {
|
|
533
533
|
confirmationStrategy,
|
|
534
|
-
whiteLabel
|
|
535
|
-
logoLight: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoLight) || "",
|
|
536
|
-
logoDark: (whiteLabel === null || whiteLabel === void 0 ? void 0 : whiteLabel.logoDark) || ""
|
|
537
|
-
}),
|
|
534
|
+
whiteLabel,
|
|
538
535
|
enableKeyExport: isKeyExportEnabled
|
|
539
536
|
});
|
|
540
537
|
}
|