wt-front-shared 1.0.14 → 1.0.15
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/tokens/index.mjs +3 -3
- package/esm2020/lib/wt-front-shared.module.mjs +10 -1
- package/fesm2015/wt-front-shared.mjs +11 -2
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +11 -2
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/tokens/index.d.ts +0 -2
- package/lib/wt-front-shared.module.d.ts +2 -1
- package/package.json +1 -1
- package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +0 -29
- package/esm2020/lib/core/services/social/providers/fb-login-provider.mjs +0 -107
- package/esm2020/lib/core/services/social/providers/index.mjs +0 -4
- package/esm2020/lib/core/services/social/providers/login-provider.mjs +0 -2
- package/esm2020/lib/core/services/social/social-auth-service-config.mjs +0 -10
- package/esm2020/lib/models/social/fb-login-options.mjs +0 -2
- package/esm2020/lib/models/social/index.mjs +0 -2
- package/esm2020/lib/models/social/login-options.mjs +0 -2
- package/esm2020/lib/models/social/social-user.mjs +0 -2
- package/lib/core/services/social/providers/base-login-provider.d.ts +0 -13
- package/lib/core/services/social/providers/fb-login-provider.d.ts +0 -1
- package/lib/core/services/social/providers/index.d.ts +0 -3
- package/lib/core/services/social/providers/login-provider.d.ts +0 -7
- package/lib/core/services/social/social-auth-service-config.d.ts +0 -9
- package/lib/models/social/fb-login-options.d.ts +0 -11
- package/lib/models/social/index.d.ts +0 -3
- package/lib/models/social/login-options.d.ts +0 -2
- package/lib/models/social/social-user.d.ts +0 -12
|
@@ -64,8 +64,8 @@ import * as moment from 'moment';
|
|
|
64
64
|
import * as i3$3 from 'ngx-toastr';
|
|
65
65
|
import { switchMap as switchMap$1 } from 'rxjs/internal/operators/switchMap';
|
|
66
66
|
|
|
67
|
-
const CORE_CONFIG = new InjectionToken('
|
|
68
|
-
const AUTH_SERVICE_CONFIG = new InjectionToken('AUTH_SERVICE_CONFIG');
|
|
67
|
+
const CORE_CONFIG = new InjectionToken('SHARED_CORE_CONFIG');
|
|
68
|
+
// export const AUTH_SERVICE_CONFIG: InjectionToken<SocialAuthServiceConfig> = new InjectionToken<SocialAuthServiceConfig>('AUTH_SERVICE_CONFIG');
|
|
69
69
|
|
|
70
70
|
class WtFrontSharedModule {
|
|
71
71
|
static forRoot(configuration) {
|
|
@@ -77,6 +77,15 @@ class WtFrontSharedModule {
|
|
|
77
77
|
]
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
static forChild(configuration) {
|
|
81
|
+
console.log(configuration);
|
|
82
|
+
return {
|
|
83
|
+
ngModule: WtFrontSharedModule,
|
|
84
|
+
providers: [
|
|
85
|
+
{ provide: CORE_CONFIG, useValue: configuration }
|
|
86
|
+
]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
80
89
|
}
|
|
81
90
|
WtFrontSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
82
91
|
WtFrontSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: WtFrontSharedModule });
|