@onecx/ngrx-integration-interface 7.1.0 → 8.0.0-rc.6

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/README.md CHANGED
@@ -1,9 +1,17 @@
1
- # ngrx-integration-interface
1
+ # @onecx/ngrx-integration-interface
2
2
 
3
- This library provides services and utilities for integrating NgRx state management with OneCX topics and events.
3
+ `@onecx/ngrx-integration-interface` contains integration services and utilities for integrating NgRx state management with OneCX platform services.
4
+ More information about OneCX libraries can be found in the [OneCX documentation](https://onecx.github.io/docs/documentation/current/onecx-portal-ui-libs/index.html).
4
5
 
5
- This library was generated with [Nx](https://nx.dev).
6
+ ## Installation
6
7
 
7
- ## Running unit tests
8
+ ```bash
9
+ npm install @onecx/ngrx-integration-interface
10
+ ```
8
11
 
9
- Run `nx test ngrx-integration-interface` to execute the unit tests.
12
+ ## Additional Commands
13
+ - `npx nx run ngrx-integration-interface:build` - Builds the library and outputs the result to the `dist` folder.
14
+ - `npx nx run ngrx-integration-interface:build-migrations` - Builds the migration files for the library.
15
+ - `npx nx run ngrx-integration-interface:test` - Runs the unit tests for the library.
16
+ - `npx nx run ngrx-integration-interface:lint` - Lints the library's codebase.
17
+ - `npx nx run ngrx-integration-interface:release` - Releases a new version of the library to npm, following semantic versioning guidelines.
@@ -4,7 +4,7 @@ import { createActionGroup, props, Store, createReducer, on, createFeatureSelect
4
4
  import { EventsTopic, EventType, CurrentThemeTopic } from '@onecx/integration-interface';
5
5
  import { filter } from 'rxjs';
6
6
  import { AppStateService, ShellCapabilityService, Capability, UserService, ConfigurationService, AppConfigService } from '@onecx/angular-integration-interface';
7
- import { __decorate, __metadata } from 'tslib';
7
+ import { __decorate } from 'tslib';
8
8
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
9
9
 
10
10
  const OneCxActions = createActionGroup({
@@ -55,10 +55,10 @@ class NavigatedEventStoreConnectorService {
55
55
  ngOnDestroy() {
56
56
  this._eventsTopic$?.destroy();
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigatedEventStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
59
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigatedEventStoreConnectorService }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigatedEventStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
59
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigatedEventStoreConnectorService }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavigatedEventStoreConnectorService, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NavigatedEventStoreConnectorService, decorators: [{
62
62
  type: Injectable
63
63
  }], ctorParameters: () => [] });
64
64
 
@@ -78,14 +78,13 @@ let PermissionsStoreConnectorService = class PermissionsStoreConnectorService {
78
78
  this.store.dispatch(OneCxActions.permissionsChanged({ permissions }));
79
79
  });
80
80
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionsStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionsStoreConnectorService }); }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PermissionsStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PermissionsStoreConnectorService }); }
83
83
  };
84
84
  PermissionsStoreConnectorService = __decorate([
85
- UntilDestroy(),
86
- __metadata("design:paramtypes", [])
85
+ UntilDestroy()
87
86
  ], PermissionsStoreConnectorService);
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PermissionsStoreConnectorService, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: PermissionsStoreConnectorService, decorators: [{
89
88
  type: Injectable
90
89
  }], ctorParameters: () => [] });
91
90
 
@@ -105,14 +104,13 @@ let ConfigurationStoreConnectorService = class ConfigurationStoreConnectorServic
105
104
  }
106
105
  });
107
106
  }
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
109
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationStoreConnectorService }); }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ConfigurationStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
108
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ConfigurationStoreConnectorService }); }
110
109
  };
111
110
  ConfigurationStoreConnectorService = __decorate([
112
- UntilDestroy(),
113
- __metadata("design:paramtypes", [])
111
+ UntilDestroy()
114
112
  ], ConfigurationStoreConnectorService);
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfigurationStoreConnectorService, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ConfigurationStoreConnectorService, decorators: [{
116
114
  type: Injectable
117
115
  }], ctorParameters: () => [] });
118
116
 
@@ -132,14 +130,13 @@ let CurrentMfeStoreConnectorService = class CurrentMfeStoreConnectorService {
132
130
  this.store.dispatch(OneCxActions.currentMfeChanged({ currentMfe }));
133
131
  });
134
132
  }
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentMfeStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
136
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentMfeStoreConnectorService }); }
133
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentMfeStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
134
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentMfeStoreConnectorService }); }
137
135
  };
138
136
  CurrentMfeStoreConnectorService = __decorate([
139
- UntilDestroy(),
140
- __metadata("design:paramtypes", [])
137
+ UntilDestroy()
141
138
  ], CurrentMfeStoreConnectorService);
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentMfeStoreConnectorService, decorators: [{
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentMfeStoreConnectorService, decorators: [{
143
140
  type: Injectable
144
141
  }], ctorParameters: () => [] });
145
142
 
@@ -159,14 +156,13 @@ let CurrentPageStoreConnectorService = class CurrentPageStoreConnectorService {
159
156
  this.store.dispatch(OneCxActions.currentPageChanged({ currentPage }));
160
157
  });
161
158
  }
162
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentPageStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
163
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentPageStoreConnectorService }); }
159
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentPageStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
160
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentPageStoreConnectorService }); }
164
161
  };
165
162
  CurrentPageStoreConnectorService = __decorate([
166
- UntilDestroy(),
167
- __metadata("design:paramtypes", [])
163
+ UntilDestroy()
168
164
  ], CurrentPageStoreConnectorService);
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentPageStoreConnectorService, decorators: [{
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentPageStoreConnectorService, decorators: [{
170
166
  type: Injectable
171
167
  }], ctorParameters: () => [] });
172
168
 
@@ -189,14 +185,13 @@ let CurrentThemeStoreConnectorService = class CurrentThemeStoreConnectorService
189
185
  ngOnDestroy() {
190
186
  this.currentThemeTopic$.destroy();
191
187
  }
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentThemeStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
193
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentThemeStoreConnectorService }); }
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentThemeStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
189
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentThemeStoreConnectorService }); }
194
190
  };
195
191
  CurrentThemeStoreConnectorService = __decorate([
196
- UntilDestroy(),
197
- __metadata("design:paramtypes", [])
192
+ UntilDestroy()
198
193
  ], CurrentThemeStoreConnectorService);
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentThemeStoreConnectorService, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentThemeStoreConnectorService, decorators: [{
200
195
  type: Injectable
201
196
  }], ctorParameters: () => [] });
202
197
 
@@ -216,14 +211,13 @@ let CurrentWorkspaceStoreConnectorService = class CurrentWorkspaceStoreConnector
216
211
  this.store.dispatch(OneCxActions.currentWorkspaceChanged({ currentWorkspace }));
217
212
  });
218
213
  }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentWorkspaceStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
220
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentWorkspaceStoreConnectorService }); }
214
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentWorkspaceStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
215
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentWorkspaceStoreConnectorService }); }
221
216
  };
222
217
  CurrentWorkspaceStoreConnectorService = __decorate([
223
- UntilDestroy(),
224
- __metadata("design:paramtypes", [])
218
+ UntilDestroy()
225
219
  ], CurrentWorkspaceStoreConnectorService);
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CurrentWorkspaceStoreConnectorService, decorators: [{
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: CurrentWorkspaceStoreConnectorService, decorators: [{
227
221
  type: Injectable
228
222
  }], ctorParameters: () => [] });
229
223
 
@@ -243,14 +237,13 @@ let AppConfigStoreConnectorService = class AppConfigStoreConnectorService {
243
237
  this.store.dispatch(OneCxActions.appConfigChanged({ appConfig }));
244
238
  });
245
239
  }
246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppConfigStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
247
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppConfigStoreConnectorService }); }
240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigStoreConnectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
241
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigStoreConnectorService }); }
248
242
  };
249
243
  AppConfigStoreConnectorService = __decorate([
250
- UntilDestroy(),
251
- __metadata("design:paramtypes", [])
244
+ UntilDestroy()
252
245
  ], AppConfigStoreConnectorService);
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppConfigStoreConnectorService, decorators: [{
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigStoreConnectorService, decorators: [{
254
247
  type: Injectable
255
248
  }], ctorParameters: () => [] });
256
249
 
@@ -1 +1 @@
1
- {"version":3,"file":"onecx-ngrx-integration-interface.mjs","sources":["../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-actions.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/navigated-event-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/permissions-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/configuration-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-mfe-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-page-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-theme-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-workspace-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/app-config-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-reducer.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-selectors.ts","../../../../libs/ngrx-integration-interface/src/index.ts","../../../../libs/ngrx-integration-interface/src/onecx-ngrx-integration-interface.ts"],"sourcesContent":["import { createActionGroup, props } from '@ngrx/store'\nimport { MfeInfo, PageInfo, Theme, UserProfile, Workspace } from '@onecx/integration-interface'\n\nexport const OneCxActions = createActionGroup({\n source: 'OneCX',\n events: {\n navigated: props<{\n event: undefined | unknown\n }>(),\n permissionsChanged: props<{\n permissions: string[]\n }>(),\n configChanged: props<{\n config: { [key: string]: string }\n }>(),\n currentMfeChanged: props<{\n currentMfe: MfeInfo\n }>(),\n currentPageChanged: props<{\n currentPage: PageInfo | undefined\n }>(),\n currentThemeChanged: props<{\n currentTheme: Theme\n }>(),\n currentWorkspaceChanged: props<{\n currentWorkspace: Workspace\n }>(),\n appConfigChanged: props<{\n appConfig: { [key: string]: string }\n }>(),\n userProfileChanged: props<{\n userProfile: UserProfile\n }>(),\n },\n})\n","import { Injectable, OnDestroy, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { EventsTopic, EventType } from '@onecx/integration-interface'\nimport { filter } from 'rxjs'\nimport { CurrentLocationTopicPayload, TopicEventType } from '@onecx/integration-interface'\nimport { Capability, ShellCapabilityService } from '@onecx/angular-integration-interface'\nimport { Observable } from 'rxjs'\nimport { OneCxActions } from '../onecx-actions'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideNavigatedEventStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(NavigatedEventStoreConnectorService)),\n NavigatedEventStoreConnectorService,\n ]\n}\n\n@Injectable()\nexport class NavigatedEventStoreConnectorService implements OnDestroy {\n private appStateService = inject(AppStateService)\n private capabilityService = inject(ShellCapabilityService)\n private _eventsTopic$: EventsTopic | undefined\n get eventsTopic$() {\n this._eventsTopic$ ??= new EventsTopic()\n return this._eventsTopic$\n }\n set eventsTopic$(source: EventsTopic) {\n this._eventsTopic$ = source\n }\n private store = inject(Store)\n constructor() {\n let observable: Observable<TopicEventType | CurrentLocationTopicPayload> =\n this.appStateService.currentLocation$.asObservable()\n if (!this.capabilityService.hasCapability(Capability.CURRENT_LOCATION_TOPIC)) {\n observable = this.eventsTopic$.pipe(filter((e) => e.type === EventType.NAVIGATED))\n }\n observable.subscribe((navigatedEvent) => {\n let event: unknown = navigatedEvent as CurrentLocationTopicPayload\n if (!this.capabilityService.hasCapability(Capability.CURRENT_LOCATION_TOPIC)) {\n event = (navigatedEvent as TopicEventType).payload\n }\n this.store.dispatch(OneCxActions.navigated({ event }))\n })\n }\n ngOnDestroy(): void {\n this._eventsTopic$?.destroy()\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { UserService } from '@onecx/angular-integration-interface'\n\nexport function providePermissionsStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(PermissionsStoreConnectorService)),\n PermissionsStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class PermissionsStoreConnectorService {\n private userService = inject(UserService)\n private store = inject(Store)\n constructor() {\n this.userService.getPermissions()\n .pipe(untilDestroyed(this))\n .subscribe((permissions) => {\n this.store.dispatch(OneCxActions.permissionsChanged({ permissions }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { UntilDestroy } from '@ngneat/until-destroy'\nimport { Store } from '@ngrx/store'\nimport { ConfigurationService } from '@onecx/angular-integration-interface'\nimport { OneCxActions } from '../onecx-actions'\n\nexport function provideConfigurationStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(ConfigurationStoreConnectorService)),\n ConfigurationStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class ConfigurationStoreConnectorService {\n private configService = inject(ConfigurationService)\n private store = inject(Store)\n constructor() {\n this.configService.getConfig().then((config: any) => {\n if (config) {\n this.store.dispatch(OneCxActions.configChanged({ config }))\n }\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { MfeInfo } from '@onecx/integration-interface'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentMfeStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentMfeStoreConnectorService)),\n CurrentMfeStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentMfeStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentMfe$\n .pipe(untilDestroyed(this))\n .subscribe((currentMfe: MfeInfo) => {\n this.store.dispatch(OneCxActions.currentMfeChanged({ currentMfe }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { PageInfo } from '@onecx/integration-interface'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentPageStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentPageStoreConnectorService)),\n CurrentPageStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentPageStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentPage$\n .pipe(untilDestroyed(this))\n .subscribe((currentPage: PageInfo | undefined) => {\n this.store.dispatch(OneCxActions.currentPageChanged({ currentPage }))\n })\n }\n}\n","import { Injectable, OnDestroy, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { CurrentThemeTopic, Theme } from '@onecx/integration-interface'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\n\nexport function provideCurrentThemeStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentThemeStoreConnectorService)),\n CurrentThemeStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentThemeStoreConnectorService implements OnDestroy {\n private currentThemeTopic$ = new CurrentThemeTopic()\n private store = inject(Store)\n constructor() {\n this.currentThemeTopic$\n .pipe(untilDestroyed(this))\n .subscribe((currentTheme: Theme) => {\n this.store.dispatch(OneCxActions.currentThemeChanged({ currentTheme }))\n })\n }\n ngOnDestroy(): void {\n this.currentThemeTopic$.destroy()\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { Workspace } from '@onecx/integration-interface'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentWorkspaceStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentWorkspaceStoreConnectorService)),\n CurrentWorkspaceStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentWorkspaceStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentWorkspace$\n .pipe(untilDestroyed(this))\n .subscribe((currentWorkspace: Workspace) => {\n this.store.dispatch(OneCxActions.currentWorkspaceChanged({ currentWorkspace }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { AppConfigService } from '@onecx/angular-integration-interface'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\n\nexport function provideAppConfigStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(AppConfigStoreConnectorService)),\n AppConfigStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class AppConfigStoreConnectorService {\n private appConfigService = inject(AppConfigService)\n private store = inject(Store)\n constructor() {\n this.appConfigService.config$\n .pipe(untilDestroyed(this))\n .subscribe((appConfig) => {\n this.store.dispatch(OneCxActions.appConfigChanged({ appConfig }))\n })\n }\n}\n","import { createReducer, on } from '@ngrx/store'\nimport { OneCxActions } from './onecx-actions'\nimport { OneCxState } from './onecx-state'\nimport { NavigatedEventPayload } from '@onecx/integration-interface'\n\nexport const oneCxReducer = createReducer<OneCxState>(\n {},\n on(\n OneCxActions.navigated,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n location: action.event as NavigatedEventPayload,\n })\n ),\n on(\n OneCxActions.permissionsChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n permissions: action.permissions,\n })\n ),\n on(\n OneCxActions.configChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n config: action.config,\n })\n ),\n on(\n OneCxActions.currentMfeChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentMfe: action.currentMfe,\n })\n ),\n on(\n OneCxActions.currentPageChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentPage: action.currentPage,\n })\n ),\n on(\n OneCxActions.currentThemeChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentTheme: action.currentTheme,\n })\n ),\n on(\n OneCxActions.currentWorkspaceChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentWorkspace: action.currentWorkspace,\n })\n ),\n on(\n OneCxActions.appConfigChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n appConfig: action.appConfig,\n })\n ),\n on(\n OneCxActions.userProfileChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n userProfile: action.userProfile,\n })\n )\n)\n","import { MemoizedSelector, createFeatureSelector, createSelector } from '@ngrx/store'\nimport { OneCxState } from './onecx-state'\nimport { LocationState } from './onecx-state'\nimport { MfeInfo, PageInfo, Theme, Workspace, UserProfile } from '@onecx/integration-interface'\n\nexport function createOneCxSelector<State extends Record<string, any>>(): MemoizedSelector<State, OneCxState> {\n return createFeatureSelector('onecx')\n}\n\nexport type OneCxSelectors<V> = {\n selectLocation: MemoizedSelector<V, LocationState | undefined>\n selectBackNavigationPossible: MemoizedSelector<V, boolean>\n selectPermissions: MemoizedSelector<V, string[] | undefined>\n selectConfig: MemoizedSelector<V, { [key: string]: string } | undefined>\n selectCurrentMfe: MemoizedSelector<V, MfeInfo | undefined>\n selectCurrentPage: MemoizedSelector<V, PageInfo | undefined>\n selectCurrentTheme: MemoizedSelector<V, Theme | undefined>\n selectCurrentWorkspace: MemoizedSelector<V, Workspace | undefined>\n selectAppConfig: MemoizedSelector<V, { [key: string]: string } | undefined>\n selectUserProfile: MemoizedSelector<V, UserProfile | undefined>\n}\n\nexport function getOneCxSelectors<V extends Record<string, any>>(\n selectState: (state: V) => OneCxState = createOneCxSelector<V>()\n): OneCxSelectors<V> {\n const selectLocation = createSelector(selectState, (state) => state.location)\n const selectBackNavigationPossible = createSelector(selectLocation, (location) => !!location && !location?.isFirst)\n const selectPermissions = createSelector(selectState, (state) => state.permissions)\n const selectConfig = createSelector(selectState, (state) => state.config)\n const selectCurrentMfe = createSelector(selectState, (state) => state.currentMfe)\n const selectCurrentPage = createSelector(selectState, (state) => state.currentPage)\n const selectCurrentTheme = createSelector(selectState, (state) => state.currentTheme)\n const selectCurrentWorkspace = createSelector(selectState, (state) => state.currentWorkspace)\n const selectAppConfig = createSelector(selectState, (state) => state.appConfig)\n const selectUserProfile = createSelector(selectState, (state) => state.userProfile)\n return {\n selectLocation,\n selectBackNavigationPossible,\n selectPermissions,\n selectConfig,\n selectCurrentMfe,\n selectCurrentPage,\n selectCurrentTheme,\n selectCurrentWorkspace,\n selectAppConfig,\n selectUserProfile,\n }\n}\n","// Store Connector\nexport * from './lib/store-connector/store-connectors'\n\nexport * from './lib/store-connector/onecx-actions'\nexport * from './lib/store-connector/onecx-reducer'\nexport * from './lib/store-connector/onecx-selectors'\nexport * from './lib/store-connector/onecx-state'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGO,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAC5C,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE;QACN,SAAS,EAAE,KAAK,EAEZ;QACJ,kBAAkB,EAAE,KAAK,EAErB;QACJ,aAAa,EAAE,KAAK,EAEhB;QACJ,iBAAiB,EAAE,KAAK,EAEpB;QACJ,kBAAkB,EAAE,KAAK,EAErB;QACJ,mBAAmB,EAAE,KAAK,EAEtB;QACJ,uBAAuB,EAAE,KAAK,EAE1B;QACJ,gBAAgB,EAAE,KAAK,EAEnB;QACJ,kBAAkB,EAAE,KAAK,EAErB;AACL,KAAA;AACF,CAAA;;SCxBe,mCAAmC,GAAA;IACjD,OAAO;QACL,6BAA6B,CAAC,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;QAChF,mCAAmC;KACpC;AACH;MAGa,mCAAmC,CAAA;AAI9C,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,IAAI,CAAC,aAAa,KAAK,IAAI,WAAW,EAAE;QACxC,OAAO,IAAI,CAAC,aAAa;IAC3B;IAC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AAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC;IACnF,OAAO;QACL,cAAc;QACd,4BAA4B;QAC5B,iBAAiB;QACjB,YAAY;QACZ,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,sBAAsB;QACtB,eAAe;QACf,iBAAiB;KAClB;AACH;;AC/CA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"onecx-ngrx-integration-interface.mjs","sources":["../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-actions.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/navigated-event-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/permissions-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/configuration-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-mfe-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-page-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-theme-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/current-workspace-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/store-connectors/app-config-store-connector-service.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-reducer.ts","../../../../libs/ngrx-integration-interface/src/lib/store-connector/onecx-selectors.ts","../../../../libs/ngrx-integration-interface/src/index.ts","../../../../libs/ngrx-integration-interface/src/onecx-ngrx-integration-interface.ts"],"sourcesContent":["import { createActionGroup, props } from '@ngrx/store'\nimport { MfeInfo, PageInfo, Theme, UserProfile, Workspace } from '@onecx/integration-interface'\n\nexport const OneCxActions = createActionGroup({\n source: 'OneCX',\n events: {\n navigated: props<{\n event: undefined | unknown\n }>(),\n permissionsChanged: props<{\n permissions: string[]\n }>(),\n configChanged: props<{\n config: { [key: string]: string }\n }>(),\n currentMfeChanged: props<{\n currentMfe: MfeInfo\n }>(),\n currentPageChanged: props<{\n currentPage: PageInfo | undefined\n }>(),\n currentThemeChanged: props<{\n currentTheme: Theme\n }>(),\n currentWorkspaceChanged: props<{\n currentWorkspace: Workspace\n }>(),\n appConfigChanged: props<{\n appConfig: { [key: string]: string }\n }>(),\n userProfileChanged: props<{\n userProfile: UserProfile\n }>(),\n },\n})\n","import { Injectable, OnDestroy, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { EventsTopic, EventType } from '@onecx/integration-interface'\nimport { filter } from 'rxjs'\nimport { CurrentLocationTopicPayload, TopicEventType } from '@onecx/integration-interface'\nimport { Capability, ShellCapabilityService } from '@onecx/angular-integration-interface'\nimport { Observable } from 'rxjs'\nimport { OneCxActions } from '../onecx-actions'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideNavigatedEventStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(NavigatedEventStoreConnectorService)),\n NavigatedEventStoreConnectorService,\n ]\n}\n\n@Injectable()\nexport class NavigatedEventStoreConnectorService implements OnDestroy {\n private appStateService = inject(AppStateService)\n private capabilityService = inject(ShellCapabilityService)\n private _eventsTopic$: EventsTopic | undefined\n get eventsTopic$() {\n this._eventsTopic$ ??= new EventsTopic()\n return this._eventsTopic$\n }\n set eventsTopic$(source: EventsTopic) {\n this._eventsTopic$ = source\n }\n private store = inject(Store)\n constructor() {\n let observable: Observable<TopicEventType | CurrentLocationTopicPayload> =\n this.appStateService.currentLocation$.asObservable()\n if (!this.capabilityService.hasCapability(Capability.CURRENT_LOCATION_TOPIC)) {\n observable = this.eventsTopic$.pipe(filter((e) => e.type === EventType.NAVIGATED))\n }\n observable.subscribe((navigatedEvent) => {\n let event: unknown = navigatedEvent as CurrentLocationTopicPayload\n if (!this.capabilityService.hasCapability(Capability.CURRENT_LOCATION_TOPIC)) {\n event = (navigatedEvent as TopicEventType).payload\n }\n this.store.dispatch(OneCxActions.navigated({ event }))\n })\n }\n ngOnDestroy(): void {\n this._eventsTopic$?.destroy()\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { UserService } from '@onecx/angular-integration-interface'\n\nexport function providePermissionsStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(PermissionsStoreConnectorService)),\n PermissionsStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class PermissionsStoreConnectorService {\n private userService = inject(UserService)\n private store = inject(Store)\n constructor() {\n this.userService.getPermissions()\n .pipe(untilDestroyed(this))\n .subscribe((permissions) => {\n this.store.dispatch(OneCxActions.permissionsChanged({ permissions }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { UntilDestroy } from '@ngneat/until-destroy'\nimport { Store } from '@ngrx/store'\nimport { ConfigurationService } from '@onecx/angular-integration-interface'\nimport { OneCxActions } from '../onecx-actions'\n\nexport function provideConfigurationStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(ConfigurationStoreConnectorService)),\n ConfigurationStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class ConfigurationStoreConnectorService {\n private configService = inject(ConfigurationService)\n private store = inject(Store)\n constructor() {\n this.configService.getConfig().then((config: any) => {\n if (config) {\n this.store.dispatch(OneCxActions.configChanged({ config }))\n }\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { MfeInfo } from '@onecx/integration-interface'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentMfeStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentMfeStoreConnectorService)),\n CurrentMfeStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentMfeStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentMfe$\n .pipe(untilDestroyed(this))\n .subscribe((currentMfe: MfeInfo) => {\n this.store.dispatch(OneCxActions.currentMfeChanged({ currentMfe }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { PageInfo } from '@onecx/integration-interface'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentPageStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentPageStoreConnectorService)),\n CurrentPageStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentPageStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentPage$\n .pipe(untilDestroyed(this))\n .subscribe((currentPage: PageInfo | undefined) => {\n this.store.dispatch(OneCxActions.currentPageChanged({ currentPage }))\n })\n }\n}\n","import { Injectable, OnDestroy, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { CurrentThemeTopic, Theme } from '@onecx/integration-interface'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\n\nexport function provideCurrentThemeStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentThemeStoreConnectorService)),\n CurrentThemeStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentThemeStoreConnectorService implements OnDestroy {\n private currentThemeTopic$ = new CurrentThemeTopic()\n private store = inject(Store)\n constructor() {\n this.currentThemeTopic$\n .pipe(untilDestroyed(this))\n .subscribe((currentTheme: Theme) => {\n this.store.dispatch(OneCxActions.currentThemeChanged({ currentTheme }))\n })\n }\n ngOnDestroy(): void {\n this.currentThemeTopic$.destroy()\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { Workspace } from '@onecx/integration-interface'\nimport { AppStateService } from '@onecx/angular-integration-interface'\n\nexport function provideCurrentWorkspaceStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(CurrentWorkspaceStoreConnectorService)),\n CurrentWorkspaceStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class CurrentWorkspaceStoreConnectorService {\n private appStateService = inject(AppStateService)\n private store = inject(Store)\n constructor() {\n this.appStateService.currentWorkspace$\n .pipe(untilDestroyed(this))\n .subscribe((currentWorkspace: Workspace) => {\n this.store.dispatch(OneCxActions.currentWorkspaceChanged({ currentWorkspace }))\n })\n }\n}\n","import { Injectable, inject, provideEnvironmentInitializer } from '@angular/core'\nimport { Store } from '@ngrx/store'\nimport { OneCxActions } from '../onecx-actions'\nimport { AppConfigService } from '@onecx/angular-integration-interface'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\n\nexport function provideAppConfigStoreConnector() {\n return [\n provideEnvironmentInitializer(() => inject(AppConfigStoreConnectorService)),\n AppConfigStoreConnectorService,\n ]\n}\n\n@UntilDestroy()\n@Injectable()\nexport class AppConfigStoreConnectorService {\n private appConfigService = inject(AppConfigService)\n private store = inject(Store)\n constructor() {\n this.appConfigService.config$\n .pipe(untilDestroyed(this))\n .subscribe((appConfig) => {\n this.store.dispatch(OneCxActions.appConfigChanged({ appConfig }))\n })\n }\n}\n","import { createReducer, on } from '@ngrx/store'\nimport { OneCxActions } from './onecx-actions'\nimport { OneCxState } from './onecx-state'\nimport { NavigatedEventPayload } from '@onecx/integration-interface'\n\nexport const oneCxReducer = createReducer<OneCxState>(\n {},\n on(\n OneCxActions.navigated,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n location: action.event as NavigatedEventPayload,\n })\n ),\n on(\n OneCxActions.permissionsChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n permissions: action.permissions,\n })\n ),\n on(\n OneCxActions.configChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n config: action.config,\n })\n ),\n on(\n OneCxActions.currentMfeChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentMfe: action.currentMfe,\n })\n ),\n on(\n OneCxActions.currentPageChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentPage: action.currentPage,\n })\n ),\n on(\n OneCxActions.currentThemeChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentTheme: action.currentTheme,\n })\n ),\n on(\n OneCxActions.currentWorkspaceChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n currentWorkspace: action.currentWorkspace,\n })\n ),\n on(\n OneCxActions.appConfigChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n appConfig: action.appConfig,\n })\n ),\n on(\n OneCxActions.userProfileChanged,\n (state: OneCxState, action): OneCxState => ({\n ...state,\n userProfile: action.userProfile,\n })\n )\n)\n","import { MemoizedSelector, createFeatureSelector, createSelector } from '@ngrx/store'\nimport { OneCxState } from './onecx-state'\nimport { LocationState } from './onecx-state'\nimport { MfeInfo, PageInfo, Theme, Workspace, UserProfile } from '@onecx/integration-interface'\n\nexport function createOneCxSelector<State extends Record<string, any>>(): MemoizedSelector<State, OneCxState> {\n return createFeatureSelector('onecx')\n}\n\nexport type OneCxSelectors<V> = {\n selectLocation: MemoizedSelector<V, LocationState | undefined>\n selectBackNavigationPossible: MemoizedSelector<V, boolean>\n selectPermissions: MemoizedSelector<V, string[] | undefined>\n selectConfig: MemoizedSelector<V, { [key: string]: string } | undefined>\n selectCurrentMfe: MemoizedSelector<V, MfeInfo | undefined>\n selectCurrentPage: MemoizedSelector<V, PageInfo | undefined>\n selectCurrentTheme: MemoizedSelector<V, Theme | undefined>\n selectCurrentWorkspace: MemoizedSelector<V, Workspace | undefined>\n selectAppConfig: MemoizedSelector<V, { [key: string]: string } | undefined>\n selectUserProfile: MemoizedSelector<V, UserProfile | undefined>\n}\n\nexport function getOneCxSelectors<V extends Record<string, any>>(\n selectState: (state: V) => OneCxState = createOneCxSelector<V>()\n): OneCxSelectors<V> {\n const selectLocation = createSelector(selectState, (state) => state.location)\n const selectBackNavigationPossible = createSelector(selectLocation, (location) => !!location && !location?.isFirst)\n const selectPermissions = createSelector(selectState, (state) => state.permissions)\n const selectConfig = createSelector(selectState, (state) => state.config)\n const selectCurrentMfe = createSelector(selectState, (state) => state.currentMfe)\n const selectCurrentPage = createSelector(selectState, (state) => state.currentPage)\n const selectCurrentTheme = createSelector(selectState, (state) => state.currentTheme)\n const selectCurrentWorkspace = createSelector(selectState, (state) => state.currentWorkspace)\n const selectAppConfig = createSelector(selectState, (state) => state.appConfig)\n const selectUserProfile = createSelector(selectState, (state) => state.userProfile)\n return {\n selectLocation,\n selectBackNavigationPossible,\n selectPermissions,\n selectConfig,\n selectCurrentMfe,\n selectCurrentPage,\n selectCurrentTheme,\n selectCurrentWorkspace,\n selectAppConfig,\n selectUserProfile,\n }\n}\n","// Store Connector\nexport * from './lib/store-connector/store-connectors'\n\nexport * from './lib/store-connector/onecx-actions'\nexport * from './lib/store-connector/onecx-reducer'\nexport * from './lib/store-connector/onecx-selectors'\nexport * from './lib/store-connector/onecx-state'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGO,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAC5C,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE;QACN,SAAS,EAAE,KAAK,EAEZ;QACJ,kBAAkB,EAAE,KAAK,EAErB;QACJ,aAAa,EAAE,KAAK,EAEhB;QACJ,iBAAiB,EAAE,KAAK,EAEpB;QACJ,kBAAkB,EAAE,KAAK,EAErB;QACJ,mBAAmB,EAAE,KAAK,EAEtB;QACJ,uBAA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AkB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,YAAY,CAAC;AACrF,IAAA,MAAM,sBAAsB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,gBAAgB,CAAC;AAC7F,IAAA,MAAM,eAAe,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;AAC/E,IAAA,MAAM,iBAAiB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC;IACnF,OAAO;QACL,cAAc;QACd,4BAA4B;QAC5B,iBAAiB;QACjB,YAAY;QACZ,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,sBAAsB;QACtB,eAAe;QACf,iBAAiB;KAClB;AACH;;AC/CA;;ACAA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "@onecx/ngrx-integration-interface",
3
- "version": "7.1.0",
3
+ "version": "8.0.0-rc.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/onecx/onecx-portal-ui-libs"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/core": "^20.0.0",
11
- "@ngrx/store": "^20.0.0",
12
- "@onecx/angular-integration-interface": "^7.1.0",
13
- "@onecx/integration-interface": "^7.1.0",
10
+ "@angular/core": "^21.0.0",
11
+ "@ngrx/store": "^21.0.0",
12
+ "@onecx/angular-integration-interface": "^8.0.0-rc.6",
13
+ "@onecx/integration-interface": "^8.0.0-rc.6",
14
14
  "@ngneat/until-destroy": "^10.0.0",
15
- "rxjs": "^7.8.1"
15
+ "rxjs": "^7.8.1",
16
+ "@onecx/accelerator": "^8.0.0-rc.6"
16
17
  },
17
18
  "publishConfig": {
18
19
  "access": "public"
19
20
  },
20
21
  "module": "fesm2022/onecx-ngrx-integration-interface.mjs",
21
- "typings": "index.d.ts",
22
+ "typings": "types/onecx-ngrx-integration-interface.d.ts",
22
23
  "exports": {
23
24
  "./package.json": {
24
25
  "default": "./package.json"
25
26
  },
26
27
  ".": {
27
- "types": "./index.d.ts",
28
+ "types": "./types/onecx-ngrx-integration-interface.d.ts",
28
29
  "default": "./fesm2022/onecx-ngrx-integration-interface.mjs"
29
30
  }
30
31
  },