@web3auth/modal 8.2.1 → 8.3.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.
- package/dist/modal.cjs.js +10 -7
- package/dist/modal.esm.js +10 -7
- package/dist/modal.umd.min.js +1 -1
- package/package.json +8 -8
package/dist/modal.cjs.js
CHANGED
|
@@ -364,14 +364,17 @@ class Web3Auth extends no_modal_namespaceObject.Web3AuthNoModal {
|
|
|
364
364
|
});
|
|
365
365
|
this.modalConfig.adapters[base_.WALLET_ADAPTERS.WALLET_CONNECT_V2].showOnModal = false;
|
|
366
366
|
} else {
|
|
367
|
-
|
|
368
|
-
walletConnectAdapter.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
367
|
+
var _walletConnectAdapter;
|
|
368
|
+
if (!(walletConnectAdapter !== null && walletConnectAdapter !== void 0 && (_walletConnectAdapter = walletConnectAdapter.adapterOptions) !== null && _walletConnectAdapter !== void 0 && (_walletConnectAdapter = _walletConnectAdapter.adapterSettings) !== null && _walletConnectAdapter !== void 0 && (_walletConnectAdapter = _walletConnectAdapter.walletConnectInitOptions) !== null && _walletConnectAdapter !== void 0 && _walletConnectAdapter.projectId) && !walletConnectProjectId) throw base_.WalletInitializationError.invalidParams("Invalid wallet connect project id. Please configure it on the dashboard");
|
|
369
|
+
if (walletConnectProjectId) {
|
|
370
|
+
walletConnectAdapter.setAdapterSettings({
|
|
371
|
+
adapterSettings: {
|
|
372
|
+
walletConnectInitOptions: {
|
|
373
|
+
projectId: walletConnectProjectId
|
|
374
|
+
}
|
|
372
375
|
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
380
|
return adapterName;
|
package/dist/modal.esm.js
CHANGED
|
@@ -303,14 +303,17 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
303
303
|
});
|
|
304
304
|
this.modalConfig.adapters[WALLET_ADAPTERS.WALLET_CONNECT_V2].showOnModal = false;
|
|
305
305
|
} else {
|
|
306
|
-
|
|
307
|
-
walletConnectAdapter.
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
var _walletConnectAdapter;
|
|
307
|
+
if (!(walletConnectAdapter !== null && walletConnectAdapter !== void 0 && (_walletConnectAdapter = walletConnectAdapter.adapterOptions) !== null && _walletConnectAdapter !== void 0 && (_walletConnectAdapter = _walletConnectAdapter.adapterSettings) !== null && _walletConnectAdapter !== void 0 && (_walletConnectAdapter = _walletConnectAdapter.walletConnectInitOptions) !== null && _walletConnectAdapter !== void 0 && _walletConnectAdapter.projectId) && !walletConnectProjectId) throw WalletInitializationError.invalidParams("Invalid wallet connect project id. Please configure it on the dashboard");
|
|
308
|
+
if (walletConnectProjectId) {
|
|
309
|
+
walletConnectAdapter.setAdapterSettings({
|
|
310
|
+
adapterSettings: {
|
|
311
|
+
walletConnectInitOptions: {
|
|
312
|
+
projectId: walletConnectProjectId
|
|
313
|
+
}
|
|
311
314
|
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
314
317
|
}
|
|
315
318
|
}
|
|
316
319
|
return adapterName;
|