@eui/tools 5.3.5 → 5.3.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.
@@ -1 +1 @@
1
- 5.3.5
1
+ 5.3.8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## 5.3.8 (2022-06-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * zipkin cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([88fd83eb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/88fd83ebd2cccfb13da4f2f2b73d72ea747fd925))
7
+ * code cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([350c18d6](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/350c18d67bbcfb4c443ab53a6ea6e2b24afef256))
8
+
9
+ * * *
10
+ * * *
11
+ ## 5.3.7 (2022-06-02)
12
+
13
+ ##### Chores
14
+
15
+ * **other:**
16
+ * update v13 resolutions to postcss-preset-env previous version 7.6.0 - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([9c06c4b0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9c06c4b06308a9a59b14a173d1ef416e4dd7420a))
17
+
18
+ * * *
19
+ * * *
20
+ ## 5.3.6 (2022-06-01)
21
+
22
+ ##### Bug Fixes
23
+
24
+ * **other:**
25
+ * force @csstools/postcss-trigonometric-functions to 1.0.0 for v13 resolutions - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([ccd6934a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ccd6934a87dd15f6b08d79d5f2d27eed8dd84e47))
26
+
27
+ * * *
28
+ * * *
1
29
  ## 5.3.5 (2022-06-01)
2
30
 
3
31
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.5",
3
+ "version": "5.3.8",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -4,7 +4,7 @@ import { Router } from '@angular/router';
4
4
  import { take } from 'rxjs/operators';
5
5
 
6
6
  import { CONFIG_TOKEN, I18nService, UserService } from '@eui/core';
7
- import { ELEMENT_ROUTER_TOKEN, IRouterService, initialization } from '@csdr/integration';
7
+ import { ELEMENT_ROUTER_TOKEN, IRouterService, initialization } from '@csdr/integration/element';
8
8
 
9
9
  import { appConfig } from '../config/index';
10
10
 
@@ -1,9 +1,7 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { NgModule, Injector, NgZone, PLATFORM_ID } from '@angular/core';
1
+ import { NgModule, Injector } from '@angular/core';
3
2
  import { BrowserModule } from '@angular/platform-browser';
4
3
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5
- import { Router } from '@angular/router';
6
- import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
4
+ import { HttpClientModule } from '@angular/common/http';
7
5
  import { createCustomElement } from '@angular/elements';
8
6
 
9
7
  import { StoreModule } from '@ngrx/store';
@@ -11,34 +9,21 @@ import { EffectsModule } from '@ngrx/effects';
11
9
  import { StoreRouterConnectingModule } from '@ngrx/router-store';
12
10
  import { StoreDevtoolsModule } from '@ngrx/store-devtools';
13
11
 
14
- import { TranslateModule, TranslateService } from '@ngx-translate/core';
12
+ import { TranslateModule } from '@ngx-translate/core';
15
13
 
16
14
  import {
17
- CachePreventionInterceptor,
18
- CONFIG_TOKEN,
19
15
  CoreModule,
20
- CorsSecurityInterceptor,
21
- CsrfPreventionInterceptor,
22
16
  EUI_CONFIG_TOKEN,
23
- EuLoginSessionTimeoutHandlingInterceptor,
24
- GLOBAL_CONFIG_TOKEN,
25
- I18nService,
26
- LogService,
27
- OpenIdConnectInterceptor,
28
- StorageService,
29
- StoreService,
30
17
  translateConfig,
31
- UserService,
32
- UxAppShellService,
33
18
  } from '@eui/core';
34
19
  import {
35
20
  EuiBlockContentComponentModule,
36
21
  EuiButtonModule,
37
22
  EuiLabelModule,
38
23
  } from '@eui/components-next';
39
- import { LanguageInterceptor, PushNotificationsService, BreadcrumbsService } from '@csdr/core';
40
- // TODO[REMOTE-SETUP] uncomment if zipkin is used
41
- // import { TRACE_LOCAL_SERVICE_NAME, ZipkinHttpInterceptor, ZipkinTraceManager } from '@csdr/zipkin-tracing';
24
+ import {
25
+ CsdrCoreModule,
26
+ } from '@csdr/core';
42
27
 
43
28
  import { TOKEN, reducerProvider, metaReducers } from './reducers/index';
44
29
  import { CustomSerializer } from './reducers/custom-route-serializer';
@@ -48,27 +33,13 @@ import { appConfig } from '../config';
48
33
 
49
34
  import { Module as RootPackageCommonModule } from '@module.scope@/@module.name@';
50
35
  import {
51
- ELEMENT_ROUTER_TOKEN,
52
- I18N_SERVICE_HOST_TOKEN,
53
- I18nServiceMapping,
54
- NG_ZONE_HOST_TOKEN,
55
- PUSH_NOTIFICATION_SERVICE_HOST_TOKEN,
56
- PushNotificationServiceMapping,
57
- USER_SERVICE_HOST_TOKEN,
58
- UserServiceMapping,
59
- UX_APP_SHELL_SERVICE_HOST_TOKEN,
60
- UX_SERVICE_HOST_TOKEN,
61
- UxAppShellServiceMapping,
62
- } from '@csdr/integration';
36
+ DEFAULT_MAPPED_PROVIDERS,
37
+ } from '@csdr/integration/element';
63
38
  import { RoutingModule } from './routing.module';
64
39
 
65
40
  import { FallbackComponent } from './fallback.component';
66
41
  import { ModuleComponent } from './module.component';
67
42
 
68
- export function openidConnectInterceptorFactory(config) {
69
- return new OpenIdConnectInterceptor();
70
- }
71
-
72
43
  @NgModule({
73
44
  imports: [
74
45
  BrowserModule,
@@ -81,6 +52,7 @@ export function openidConnectInterceptorFactory(config) {
81
52
  TranslateModule.forRoot(translateConfig),
82
53
 
83
54
  CoreModule.forRoot(),
55
+ CsdrCoreModule.forRoot(),
84
56
 
85
57
  EuiBlockContentComponentModule,
86
58
  EuiButtonModule,
@@ -103,102 +75,8 @@ export function openidConnectInterceptorFactory(config) {
103
75
  provide: EUI_CONFIG_TOKEN,
104
76
  useValue: { appConfig: { ...appConfig, ...environment }, environment },
105
77
  },
106
- // TODO[REMOTE-SETUP] uncomment if LanguageInterceptor is used
107
- // {
108
- // provide: HTTP_INTERCEPTORS,
109
- // useClass: LanguageInterceptor,
110
- // deps: [CONFIG_TOKEN, StorageService],
111
- // multi: true,
112
- // },
113
- {
114
- provide: HTTP_INTERCEPTORS,
115
- useClass: CorsSecurityInterceptor,
116
- multi: true,
117
- },
118
- {
119
- provide: HTTP_INTERCEPTORS,
120
- useClass: EuLoginSessionTimeoutHandlingInterceptor,
121
- multi: true,
122
- },
123
- {
124
- provide: HTTP_INTERCEPTORS,
125
- useClass: CsrfPreventionInterceptor,
126
- multi: true,
127
- },
128
- {
129
- provide: HTTP_INTERCEPTORS,
130
- useClass: CachePreventionInterceptor,
131
- multi: true,
132
- },
133
- {
134
- provide: HTTP_INTERCEPTORS,
135
- useFactory: openidConnectInterceptorFactory,
136
- deps: [CONFIG_TOKEN],
137
- multi: true,
138
- },
139
- // TODO[REMOTE-SETUP] uncomment if zipkin is used
140
- // {
141
- // provide: HTTP_INTERCEPTORS,
142
- // useClass: ZipkinHttpInterceptor,
143
- // deps: [TRACE_LOCAL_SERVICE_NAME, ZipkinTraceManager],
144
- // multi: true,
145
- // },
146
-
147
- // used in the el-mappers
148
- { provide: I18N_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['I18nService'] },
149
- { provide: PUSH_NOTIFICATION_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['PushNotificationsService'] },
150
- { provide: USER_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UserService'] },
151
- { provide: UX_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxService'] },
152
- { provide: UX_APP_SHELL_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxAppShellService'] },
153
- { provide: NG_ZONE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['ngZone'] },
154
- // TODO[REMOTE-SETUP] uncomment if LanguageInterceptor or StorageService is used
155
- // { provide: StorageService, useFactory: () => window['PROVIDERS']['StorageService'] },
156
78
 
157
- {
158
- provide: I18nService,
159
- useFactory: (
160
- config: any,
161
- translateService: TranslateService,
162
- logService: LogService,
163
- store: StoreService,
164
- document: Document,
165
- hostI18nService: any) => new I18nServiceMapping(
166
- config, translateService, logService, store, document, hostI18nService),
167
- deps: [GLOBAL_CONFIG_TOKEN, TranslateService, LogService, StoreService, DOCUMENT, I18N_SERVICE_HOST_TOKEN],
168
- },
169
- {
170
- provide: PushNotificationsService,
171
- useFactory: (
172
- zone: NgZone,
173
- hostPushNotificationService: any) => new PushNotificationServiceMapping(zone, hostPushNotificationService),
174
- deps: [NgZone, PUSH_NOTIFICATION_SERVICE_HOST_TOKEN],
175
- },
176
- {
177
- provide: UserService,
178
- useFactory: (storeService: StoreService, hostUserService: any) => new UserServiceMapping(storeService, hostUserService),
179
- deps: [StoreService, USER_SERVICE_HOST_TOKEN],
180
- },
181
- {
182
- provide: UxAppShellService,
183
- useFactory: (
184
- config: any,
185
- http: HttpClient,
186
- platformId: any,
187
- router: Router,
188
- storeService: StoreService,
189
- iI18nService: I18nService,
190
- hostUxService: any,
191
- hostUxAppShellService: any,
192
- hostNgZone) => new UxAppShellServiceMapping(
193
- config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService, hostNgZone),
194
- deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService,
195
- UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN, NG_ZONE_HOST_TOKEN],
196
- },
197
- { provide: BreadcrumbsService, useFactory: () => window['PROVIDERS']['BreadcrumbsService'], deps: [] },
198
- { provide: ELEMENT_ROUTER_TOKEN, useFactory: () => window['PROVIDERS']['ELEMENT_ROUTER_TOKEN'], deps: [] },
199
- // TODO[REMOTE-SETUP] uncomment if zipkin is used
200
- // { provide: TRACE_LOCAL_SERVICE_NAME, useFactory: () => window['PROVIDERS']['TRACE_LOCAL_SERVICE_NAME'], deps: [] },
201
- // { provide: ZipkinTraceManager, useFactory: () => window['PROVIDERS']['ZipkinTraceManager'], deps: [] },
79
+ ...DEFAULT_MAPPED_PROVIDERS,
202
80
  ],
203
81
  })
204
82
  export class AppModule {
@@ -3,7 +3,7 @@ import { RouterModule, Routes, Router, NavigationStart } from '@angular/router';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { filter, distinctUntilChanged } from 'rxjs/operators';
5
5
 
6
- import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration';
6
+ import { CCRoute, ELEMENT_ROUTER_TOKEN, IRouterService } from '@csdr/integration/element';
7
7
 
8
8
  import { routes } from '@module.scope@/@module.name@';
9
9
  import { appConfig } from '../config/index';
@@ -4,4 +4,7 @@ module.exports = {
4
4
  plugins: [
5
5
  new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
6
6
  ],
7
+ output: {
8
+ jsonpFunction: '@module.scope-name@-v10',
9
+ },
7
10
  }
@@ -2,5 +2,6 @@
2
2
  "@types/node": ">=14.14.10",
3
3
  "https-proxy-agent": ">=2.2.3",
4
4
  "mem": ">=4.3.0 <=8.1.1",
5
- "isbinaryfile": "4.0.8"
5
+ "isbinaryfile": "4.0.8",
6
+ "postcss-preset-env": "7.6.0"
6
7
  }