monkey-front-core 0.0.438 → 0.0.439
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/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +8 -6
- package/fesm2015/monkey-front-core.mjs +14 -10
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -5
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.439.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.438.tgz +0 -0
|
@@ -3696,27 +3696,29 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3696
3696
|
this.configSubject$ = new BehaviorSubject({});
|
|
3697
3697
|
this.configBootstrapSubject$ = new BehaviorSubject({});
|
|
3698
3698
|
}
|
|
3699
|
-
internalValidations(...args) {
|
|
3700
|
-
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
|
|
3699
|
+
async internalValidations(...args) {
|
|
3700
|
+
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxi18nConfigService } = this;
|
|
3701
3701
|
const configBootstrap = args[0];
|
|
3702
3702
|
const callback = args[1];
|
|
3703
|
+
const environment = args[2];
|
|
3704
|
+
const config = args[3];
|
|
3705
|
+
await monkeyecxi18nConfigService.apply(config, environment);
|
|
3703
3706
|
monkeyecxSecurityConsoleConfigService.apply();
|
|
3704
3707
|
monkeyecxServiceWorkerConfigService.apply(configBootstrap);
|
|
3705
3708
|
monkeyecxMaintenanceConfigService.apply(configBootstrap);
|
|
3706
3709
|
callback(configBootstrap);
|
|
3707
3710
|
}
|
|
3708
3711
|
getWhiteLabelSettings(monkeyecxCode, configBootstrap, callback, environment, identifyCode) {
|
|
3709
|
-
const { monkeyecxService,
|
|
3712
|
+
const { monkeyecxService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGTMConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3710
3713
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3711
3714
|
monkeyecxService
|
|
3712
3715
|
?.get(`${url}/white-label.json`)
|
|
3713
3716
|
?.subscribe(async (config) => {
|
|
3714
|
-
await monkeyecxi18nConfigService.apply(config, environment);
|
|
3715
3717
|
monkeyecxLogsConfigService.apply(config, configBootstrap, environment, identifyCode);
|
|
3716
3718
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3717
3719
|
monkeyGTMConfigService.apply(environment);
|
|
3718
3720
|
monkeyEcxAlertsConfigService.apply(config);
|
|
3719
|
-
monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBootstrap, callback, environment));
|
|
3721
|
+
monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBootstrap, callback, environment, config));
|
|
3720
3722
|
configSubject$.next(config);
|
|
3721
3723
|
}, (err) => {
|
|
3722
3724
|
monkeyecxErrorConfigService.apply('theme');
|