@frontegg/angular 6.14.0-alpha.7371486153 → 6.14.0

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.
@@ -0,0 +1,31 @@
1
+ import { Subscription, PartialObserver } from 'rxjs';
2
+ import { FronteggState } from '@frontegg/redux-store';
3
+ import { FronteggAppService } from './frontegg-app.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare type User = FronteggState['auth']['user'];
6
+ /**
7
+ * A service for managing user state subscription
8
+ * The service gives the ability to subscribe to user state change and get a manipulated data when the user state changes
9
+ */
10
+ export declare class FronteggUserSubscriptionService {
11
+ private fronteggAppService;
12
+ private userStateSubject;
13
+ constructor(fronteggAppService: FronteggAppService);
14
+ /**
15
+ * Trigger user subject change event if the user reference changes
16
+ * No need for deep equal because we already check it internally
17
+ * @param authState
18
+ */
19
+ private updateUserStateIfNeeded;
20
+ /**
21
+ * The function gives the ability to return a manipulated data of the user state as a subscription.
22
+ *
23
+ * @param dataManipulator Manipulator function that receives user state and returns a manipulated data
24
+ * @param observer For receiving manipulated data result
25
+ * @returns a subscription to be able to unsubscribe
26
+ */
27
+ getUserManipulatorSubscription<Result>(dataManipulator: (user: User) => Result, observer: PartialObserver<Result>): Subscription;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FronteggUserSubscriptionService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<FronteggUserSubscriptionService>;
30
+ }
31
+ //# sourceMappingURL=frontegg-user-subscription.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontegg-user-subscription.service.d.ts","sourceRoot":"","sources":["../../../../projects/frontegg-app/src/lib/frontegg-user-subscription.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAmB,MAAM,MAAM,CAAC;AAItE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;;AAE5D,oBAAY,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD;;;GAGG;AACH,qBAGa,+BAA+B;IAG9B,OAAO,CAAC,kBAAkB;IAFtC,OAAO,CAAC,gBAAgB,CAAuC;gBAE3C,kBAAkB,EAAE,kBAAkB;IAW1D;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAS/B;;;;;;OAMG;IACI,8BAA8B,CAAC,MAAM,EAC1C,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,EACvC,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,GAChC,YAAY;yCAtCJ,+BAA+B;6CAA/B,+BAA+B;CA2D3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/angular",
3
- "version": "6.14.0-alpha.7371486153",
3
+ "version": "6.14.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=12.0.0",