@web3auth/modal 10.0.0-beta.7 → 10.0.0-beta.8
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/packages/modal/src/config.js +1 -1
- package/dist/lib.cjs/packages/modal/src/modalManager.js +3 -1
- package/dist/lib.esm/packages/modal/src/config.js +1 -1
- package/dist/lib.esm/packages/modal/src/modalManager.js +3 -1
- package/dist/modal.umd.min.js +1 -1
- package/dist/modal.umd.min.js.LICENSE.txt +2 -2
- package/package.json +17 -17
|
@@ -251,7 +251,9 @@ class Web3Auth extends noModal.Web3AuthNoModal {
|
|
|
251
251
|
this.options.uiConfig = deepmerge(noModal.cloneDeep(projectConfig.whitelabel || {}), this.options.uiConfig || {});
|
|
252
252
|
if (!this.options.uiConfig.defaultLanguage) this.options.uiConfig.defaultLanguage = utils.getUserLanguage(this.options.uiConfig.defaultLanguage);
|
|
253
253
|
if (!this.options.uiConfig.mode) this.options.uiConfig.mode = "light";
|
|
254
|
-
this.options.uiConfig = deepmerge(projectConfig.loginModal || {}, this.options.uiConfig
|
|
254
|
+
this.options.uiConfig = deepmerge(projectConfig.loginModal || {}, this.options.uiConfig, {
|
|
255
|
+
arrayMerge: (_, sourceArray) => sourceArray
|
|
256
|
+
});
|
|
255
257
|
// merge login methods order from project config and user config, with user config taking precedence
|
|
256
258
|
const defaultAuthConnections = projectConfig.embeddedWalletAuth.filter(x => x.isDefault).map(x => x.authConnection);
|
|
257
259
|
const mergedAuthConnections = [...(this.options.uiConfig.loginMethodsOrder || []), ...defaultAuthConnections];
|
|
@@ -262,7 +262,9 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
262
262
|
this.options.uiConfig = deepmerge(cloneDeep(projectConfig.whitelabel || {}), this.options.uiConfig || {});
|
|
263
263
|
if (!this.options.uiConfig.defaultLanguage) this.options.uiConfig.defaultLanguage = getUserLanguage(this.options.uiConfig.defaultLanguage);
|
|
264
264
|
if (!this.options.uiConfig.mode) this.options.uiConfig.mode = "light";
|
|
265
|
-
this.options.uiConfig = deepmerge(projectConfig.loginModal || {}, this.options.uiConfig
|
|
265
|
+
this.options.uiConfig = deepmerge(projectConfig.loginModal || {}, this.options.uiConfig, {
|
|
266
|
+
arrayMerge: (_, sourceArray) => sourceArray
|
|
267
|
+
});
|
|
266
268
|
|
|
267
269
|
// merge login methods order from project config and user config, with user config taking precedence
|
|
268
270
|
const defaultAuthConnections = projectConfig.embeddedWalletAuth.filter(x => x.isDefault).map(x => x.authConnection);
|