@frontegg/angular 5.38.0-alpha.5821687108 → 5.38.0-alpha.5846983462
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/bundles/frontegg-angular.umd.js +94 -101
- package/bundles/frontegg-angular.umd.js.map +1 -1
- package/esm2015/frontegg-angular.js +1 -3
- package/esm2015/lib/directives/authorized-content.directive.js +14 -16
- package/esm2015/lib/frontegg-app.module.js +14 -10
- package/esm2015/lib/frontegg-app.service.js +33 -16
- package/esm2015/lib/frontegg-auth.service.js +9 -13
- package/esm2015/lib/frontegg-entitlements.service.js +9 -11
- package/esm2015/lib/frontegg-subscription.services.js +9 -11
- package/esm2015/lib/frontegg.component.js +12 -8
- package/esm2015/lib/guards/frontegg-auth.guard.js +10 -13
- package/esm2015/public-api.js +1 -2
- package/fesm2015/frontegg-angular.js +94 -100
- package/fesm2015/frontegg-angular.js.map +1 -1
- package/frontegg-angular.d.ts +1 -2
- package/frontegg-angular.d.ts.map +1 -1
- package/lib/directives/authorized-content.directive.d.ts +3 -0
- package/lib/directives/authorized-content.directive.d.ts.map +1 -1
- package/lib/frontegg-app.module.d.ts +8 -0
- package/lib/frontegg-app.module.d.ts.map +1 -1
- package/lib/frontegg-app.service.d.ts +11 -1
- package/lib/frontegg-app.service.d.ts.map +1 -1
- package/lib/frontegg-auth.service.d.ts +3 -0
- package/lib/frontegg-auth.service.d.ts.map +1 -1
- package/lib/frontegg-entitlements.service.d.ts +3 -0
- package/lib/frontegg-entitlements.service.d.ts.map +1 -1
- package/lib/frontegg-subscription.services.d.ts +3 -0
- package/lib/frontegg-subscription.services.d.ts.map +1 -1
- package/lib/frontegg.component.d.ts +3 -0
- package/lib/frontegg.component.d.ts.map +1 -1
- package/lib/guards/frontegg-auth.guard.d.ts +3 -0
- package/lib/guards/frontegg-auth.guard.d.ts.map +1 -1
- package/package.json +1 -2
- package/public-api.d.ts +0 -1
- package/public-api.d.ts.map +1 -1
- package/esm2015/lib/guards/frontegg-load.guard.js +0 -24
- package/frontegg-angular.metadata.json +0 -1
- package/lib/guards/frontegg-load.guard.d.ts +0 -9
- package/lib/guards/frontegg-load.guard.d.ts.map +0 -1
|
@@ -341,41 +341,21 @@
|
|
|
341
341
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
var FronteggLoadGuard = /** @class */ (function () {
|
|
345
|
-
function FronteggLoadGuard(fronteggAppService) {
|
|
346
|
-
this.fronteggAppService = fronteggAppService;
|
|
347
|
-
}
|
|
348
|
-
FronteggLoadGuard.prototype.canActivate = function (route, state) {
|
|
349
|
-
var _this = this;
|
|
350
|
-
return new rxjs.Observable(function (obs) {
|
|
351
|
-
_this.fronteggAppService.isLoading$.subscribe(function (loading) {
|
|
352
|
-
if (!loading) {
|
|
353
|
-
obs.next(true);
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
});
|
|
357
|
-
};
|
|
358
|
-
return FronteggLoadGuard;
|
|
359
|
-
}());
|
|
360
|
-
FronteggLoadGuard.decorators = [
|
|
361
|
-
{ type: i0.Injectable }
|
|
362
|
-
];
|
|
363
|
-
FronteggLoadGuard.ctorParameters = function () { return [
|
|
364
|
-
{ type: FronteggAppService }
|
|
365
|
-
]; };
|
|
366
|
-
|
|
367
344
|
var FronteggComponent = /** @class */ (function () {
|
|
368
345
|
function FronteggComponent() {
|
|
369
346
|
}
|
|
370
347
|
return FronteggComponent;
|
|
371
348
|
}());
|
|
372
|
-
FronteggComponent
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
349
|
+
FronteggComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
350
|
+
FronteggComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FronteggComponent, selector: "frontegg", ngImport: i0__namespace, template: "", isInline: true });
|
|
351
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggComponent, decorators: [{
|
|
352
|
+
type: i0.Component,
|
|
353
|
+
args: [{
|
|
354
|
+
// tslint:disable-next-line:component-selector
|
|
355
|
+
selector: 'frontegg',
|
|
356
|
+
template: "",
|
|
357
|
+
}]
|
|
358
|
+
}] });
|
|
379
359
|
|
|
380
360
|
var sdkVersion = { version: '5.37.0' };
|
|
381
361
|
|
|
@@ -574,17 +554,40 @@
|
|
|
574
554
|
};
|
|
575
555
|
return FronteggAppService;
|
|
576
556
|
}());
|
|
577
|
-
FronteggAppService.ɵ
|
|
578
|
-
FronteggAppService
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
557
|
+
FronteggAppService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppService, deps: [{ token: FronteggAppOptionsClass }, { token: i1__namespace.Router }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
558
|
+
FronteggAppService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppService, providedIn: 'root' });
|
|
559
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppService, decorators: [{
|
|
560
|
+
type: i0.Injectable,
|
|
561
|
+
args: [{
|
|
562
|
+
providedIn: 'root',
|
|
563
|
+
}]
|
|
564
|
+
}], ctorParameters: function () {
|
|
565
|
+
return [{ type: undefined, decorators: [{
|
|
566
|
+
type: i0.Inject,
|
|
567
|
+
args: [FronteggAppOptionsClass]
|
|
568
|
+
}] }, { type: i1__namespace.Router }, { type: i0__namespace.NgZone }];
|
|
569
|
+
} });
|
|
570
|
+
var FronteggLoadGuard = /** @class */ (function () {
|
|
571
|
+
function FronteggLoadGuard(fronteggAppService) {
|
|
572
|
+
this.fronteggAppService = fronteggAppService;
|
|
573
|
+
}
|
|
574
|
+
FronteggLoadGuard.prototype.canActivate = function (route, state) {
|
|
575
|
+
var _this = this;
|
|
576
|
+
return new rxjs.Observable(function (obs) {
|
|
577
|
+
_this.fronteggAppService.isLoading$.subscribe(function (loading) {
|
|
578
|
+
if (!loading) {
|
|
579
|
+
obs.next(true);
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
return FronteggLoadGuard;
|
|
585
|
+
}());
|
|
586
|
+
FronteggLoadGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggLoadGuard, deps: [{ token: FronteggAppService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
587
|
+
FronteggLoadGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggLoadGuard });
|
|
588
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggLoadGuard, decorators: [{
|
|
589
|
+
type: i0.Injectable
|
|
590
|
+
}], ctorParameters: function () { return [{ type: FronteggAppService }]; } });
|
|
588
591
|
|
|
589
592
|
var FronteggBaseGuard = /** @class */ (function () {
|
|
590
593
|
function FronteggBaseGuard() {
|
|
@@ -1017,16 +1020,14 @@
|
|
|
1017
1020
|
};
|
|
1018
1021
|
return FronteggAuthService;
|
|
1019
1022
|
}());
|
|
1020
|
-
FronteggAuthService.ɵ
|
|
1021
|
-
FronteggAuthService
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
{ type: i1.Router }
|
|
1029
|
-
]; };
|
|
1023
|
+
FronteggAuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthService, deps: [{ token: FronteggAppService }, { token: i1__namespace.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1024
|
+
FronteggAuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthService, providedIn: 'root' });
|
|
1025
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthService, decorators: [{
|
|
1026
|
+
type: i0.Injectable,
|
|
1027
|
+
args: [{
|
|
1028
|
+
providedIn: 'root',
|
|
1029
|
+
}]
|
|
1030
|
+
}], ctorParameters: function () { return [{ type: FronteggAppService }, { type: i1__namespace.Router }]; } });
|
|
1030
1031
|
|
|
1031
1032
|
var FronteggAuthGuard = /** @class */ (function (_super) {
|
|
1032
1033
|
__extends(FronteggAuthGuard, _super);
|
|
@@ -1077,15 +1078,11 @@
|
|
|
1077
1078
|
};
|
|
1078
1079
|
return FronteggAuthGuard;
|
|
1079
1080
|
}(FronteggBaseGuard));
|
|
1080
|
-
FronteggAuthGuard
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
{ type: FronteggAuthService },
|
|
1086
|
-
{ type: i1.Router },
|
|
1087
|
-
{ type: i0.NgZone }
|
|
1088
|
-
]; };
|
|
1081
|
+
FronteggAuthGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthGuard, deps: [{ token: FronteggAppService }, { token: FronteggAuthService }, { token: i1__namespace.Router }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1082
|
+
FronteggAuthGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthGuard });
|
|
1083
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAuthGuard, decorators: [{
|
|
1084
|
+
type: i0.Injectable
|
|
1085
|
+
}], ctorParameters: function () { return [{ type: FronteggAppService }, { type: FronteggAuthService }, { type: i1__namespace.Router }, { type: i0__namespace.NgZone }]; } });
|
|
1089
1086
|
|
|
1090
1087
|
var AuthorizedContentDirective = /** @class */ (function () {
|
|
1091
1088
|
function AuthorizedContentDirective(templateRef, viewContainer, fronteggAuthService) {
|
|
@@ -1115,19 +1112,16 @@
|
|
|
1115
1112
|
};
|
|
1116
1113
|
return AuthorizedContentDirective;
|
|
1117
1114
|
}());
|
|
1118
|
-
AuthorizedContentDirective
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
AuthorizedContentDirective.propDecorators = {
|
|
1129
|
-
authorizedContent: [{ type: i0.Input }]
|
|
1130
|
-
};
|
|
1115
|
+
AuthorizedContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthorizedContentDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: FronteggAuthService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1116
|
+
AuthorizedContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: AuthorizedContentDirective, selector: "[authorizedContent]", inputs: { authorizedContent: "authorizedContent" }, ngImport: i0__namespace });
|
|
1117
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthorizedContentDirective, decorators: [{
|
|
1118
|
+
type: i0.Directive,
|
|
1119
|
+
args: [{
|
|
1120
|
+
selector: '[authorizedContent]',
|
|
1121
|
+
}]
|
|
1122
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }, { type: FronteggAuthService }]; }, propDecorators: { authorizedContent: [{
|
|
1123
|
+
type: i0.Input
|
|
1124
|
+
}] } });
|
|
1131
1125
|
|
|
1132
1126
|
var FronteggSubscriptionService = /** @class */ (function () {
|
|
1133
1127
|
function FronteggSubscriptionService(fronteggAppService) {
|
|
@@ -1206,15 +1200,14 @@
|
|
|
1206
1200
|
};
|
|
1207
1201
|
return FronteggSubscriptionService;
|
|
1208
1202
|
}());
|
|
1209
|
-
FronteggSubscriptionService.ɵ
|
|
1210
|
-
FronteggSubscriptionService
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
]; };
|
|
1203
|
+
FronteggSubscriptionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggSubscriptionService, deps: [{ token: FronteggAppService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1204
|
+
FronteggSubscriptionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggSubscriptionService, providedIn: 'root' });
|
|
1205
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggSubscriptionService, decorators: [{
|
|
1206
|
+
type: i0.Injectable,
|
|
1207
|
+
args: [{
|
|
1208
|
+
providedIn: 'root',
|
|
1209
|
+
}]
|
|
1210
|
+
}], ctorParameters: function () { return [{ type: FronteggAppService }]; } });
|
|
1218
1211
|
|
|
1219
1212
|
/**
|
|
1220
1213
|
* An entitlements service for:
|
|
@@ -1308,15 +1301,14 @@
|
|
|
1308
1301
|
};
|
|
1309
1302
|
return FronteggEntitlementsService;
|
|
1310
1303
|
}());
|
|
1311
|
-
FronteggEntitlementsService.ɵ
|
|
1312
|
-
FronteggEntitlementsService
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
]; };
|
|
1304
|
+
FronteggEntitlementsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggEntitlementsService, deps: [{ token: FronteggAppService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1305
|
+
FronteggEntitlementsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggEntitlementsService, providedIn: 'root' });
|
|
1306
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggEntitlementsService, decorators: [{
|
|
1307
|
+
type: i0.Injectable,
|
|
1308
|
+
args: [{
|
|
1309
|
+
providedIn: 'root',
|
|
1310
|
+
}]
|
|
1311
|
+
}], ctorParameters: function () { return [{ type: FronteggAppService }]; } });
|
|
1320
1312
|
|
|
1321
1313
|
var FronteggAppModule = /** @class */ (function () {
|
|
1322
1314
|
function FronteggAppModule() {
|
|
@@ -1340,13 +1332,17 @@
|
|
|
1340
1332
|
};
|
|
1341
1333
|
return FronteggAppModule;
|
|
1342
1334
|
}());
|
|
1343
|
-
FronteggAppModule
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1335
|
+
FronteggAppModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1336
|
+
FronteggAppModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppModule, declarations: [FronteggComponent, AuthorizedContentDirective], imports: [common.CommonModule, i1.RouterModule], exports: [FronteggComponent, AuthorizedContentDirective] });
|
|
1337
|
+
FronteggAppModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppModule, imports: [[common.CommonModule, i1.RouterModule]] });
|
|
1338
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FronteggAppModule, decorators: [{
|
|
1339
|
+
type: i0.NgModule,
|
|
1340
|
+
args: [{
|
|
1341
|
+
imports: [common.CommonModule, i1.RouterModule],
|
|
1342
|
+
declarations: [FronteggComponent, AuthorizedContentDirective],
|
|
1343
|
+
exports: [FronteggComponent, AuthorizedContentDirective],
|
|
1344
|
+
}]
|
|
1345
|
+
}] });
|
|
1350
1346
|
|
|
1351
1347
|
/*
|
|
1352
1348
|
* Public API Surface of frontegg-app
|
|
@@ -1367,10 +1363,7 @@
|
|
|
1367
1363
|
exports.FronteggAuthService = FronteggAuthService;
|
|
1368
1364
|
exports.FronteggComponent = FronteggComponent;
|
|
1369
1365
|
exports.FronteggEntitlementsService = FronteggEntitlementsService;
|
|
1370
|
-
exports.FronteggLoadGuard = FronteggLoadGuard;
|
|
1371
1366
|
exports.FronteggSubscriptionService = FronteggSubscriptionService;
|
|
1372
|
-
exports["ɵa"] = FronteggAppOptionsClass;
|
|
1373
|
-
exports["ɵb"] = FronteggBaseGuard;
|
|
1374
1367
|
|
|
1375
1368
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1376
1369
|
|