@descope/angular-sdk 0.0.0-next-b22667bf-20250921 → 0.0.0-next-32808222-20250922

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.
@@ -640,6 +640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
640
640
  class UserManagementComponent {
641
641
  constructor(elementRef, descopeConfig) {
642
642
  this.elementRef = elementRef;
643
+ this.ready = new EventEmitter();
643
644
  this.webComponent = new DescopeUserManagementWidget();
644
645
  this.projectId = descopeConfig.projectId;
645
646
  this.baseUrl = descopeConfig.baseUrl;
@@ -653,6 +654,9 @@ class UserManagementComponent {
653
654
  ngOnChanges() {
654
655
  this.setupWebComponent();
655
656
  }
657
+ ngAfterViewInit() {
658
+ this.setupEventListeners();
659
+ }
656
660
  setupWebComponent() {
657
661
  this.webComponent.setAttribute('project-id', this.projectId);
658
662
  this.webComponent.setAttribute('tenant', this.tenant);
@@ -679,8 +683,15 @@ class UserManagementComponent {
679
683
  this.webComponent.logger = this.logger;
680
684
  }
681
685
  }
686
+ setupEventListeners() {
687
+ if (this.ready) {
688
+ this.webComponent.addEventListener('ready', () => {
689
+ this.ready?.emit();
690
+ });
691
+ }
692
+ }
682
693
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserManagementComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }], target: i0.ɵɵFactoryTarget.Component }); }
683
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: UserManagementComponent, isStandalone: true, selector: "user-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
694
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: UserManagementComponent, isStandalone: true, selector: "user-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
684
695
  }
685
696
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserManagementComponent, decorators: [{
686
697
  type: Component,
@@ -702,11 +713,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
702
713
  type: Input
703
714
  }], styleId: [{
704
715
  type: Input
716
+ }], ready: [{
717
+ type: Output
705
718
  }] } });
706
719
 
707
720
  class RoleManagementComponent {
708
721
  constructor(elementRef, descopeConfig) {
709
722
  this.elementRef = elementRef;
723
+ this.ready = new EventEmitter();
710
724
  this.webComponent = new DescopeRoleManagementWidget();
711
725
  this.projectId = descopeConfig.projectId;
712
726
  this.baseUrl = descopeConfig.baseUrl;
@@ -720,6 +734,9 @@ class RoleManagementComponent {
720
734
  ngOnChanges() {
721
735
  this.setupWebComponent();
722
736
  }
737
+ ngAfterViewInit() {
738
+ this.setupEventListeners();
739
+ }
723
740
  setupWebComponent() {
724
741
  this.webComponent.setAttribute('project-id', this.projectId);
725
742
  this.webComponent.setAttribute('tenant', this.tenant);
@@ -746,8 +763,15 @@ class RoleManagementComponent {
746
763
  this.webComponent.logger = this.logger;
747
764
  }
748
765
  }
766
+ setupEventListeners() {
767
+ if (this.ready) {
768
+ this.webComponent.addEventListener('ready', () => {
769
+ this.ready?.emit();
770
+ });
771
+ }
772
+ }
749
773
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: RoleManagementComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }], target: i0.ɵɵFactoryTarget.Component }); }
750
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: RoleManagementComponent, isStandalone: true, selector: "role-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
774
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: RoleManagementComponent, isStandalone: true, selector: "role-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
751
775
  }
752
776
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: RoleManagementComponent, decorators: [{
753
777
  type: Component,
@@ -769,11 +793,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
769
793
  type: Input
770
794
  }], styleId: [{
771
795
  type: Input
796
+ }], ready: [{
797
+ type: Output
772
798
  }] } });
773
799
 
774
800
  class AccessKeyManagementComponent {
775
801
  constructor(elementRef, descopeConfig) {
776
802
  this.elementRef = elementRef;
803
+ this.ready = new EventEmitter();
777
804
  this.webComponent = new DescopeAccessKeyManagementWidget();
778
805
  this.projectId = descopeConfig.projectId;
779
806
  this.baseUrl = descopeConfig.baseUrl;
@@ -787,6 +814,9 @@ class AccessKeyManagementComponent {
787
814
  ngOnChanges() {
788
815
  this.setupWebComponent();
789
816
  }
817
+ ngAfterViewInit() {
818
+ this.setupEventListeners();
819
+ }
790
820
  setupWebComponent() {
791
821
  this.webComponent.setAttribute('project-id', this.projectId);
792
822
  this.webComponent.setAttribute('tenant', this.tenant);
@@ -810,8 +840,15 @@ class AccessKeyManagementComponent {
810
840
  this.webComponent.logger = this.logger;
811
841
  }
812
842
  }
843
+ setupEventListeners() {
844
+ if (this.ready) {
845
+ this.webComponent.addEventListener('ready', () => {
846
+ this.ready?.emit();
847
+ });
848
+ }
849
+ }
813
850
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AccessKeyManagementComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }], target: i0.ɵɵFactoryTarget.Component }); }
814
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AccessKeyManagementComponent, isStandalone: true, selector: "access-key-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
851
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AccessKeyManagementComponent, isStandalone: true, selector: "access-key-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
815
852
  }
816
853
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AccessKeyManagementComponent, decorators: [{
817
854
  type: Component,
@@ -833,11 +870,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
833
870
  type: Input
834
871
  }], styleId: [{
835
872
  type: Input
873
+ }], ready: [{
874
+ type: Output
836
875
  }] } });
837
876
 
838
877
  class AuditManagementComponent {
839
878
  constructor(elementRef, descopeConfig) {
840
879
  this.elementRef = elementRef;
880
+ this.ready = new EventEmitter();
841
881
  this.webComponent = new DescopeAuditManagementWidget();
842
882
  this.projectId = descopeConfig.projectId;
843
883
  this.baseUrl = descopeConfig.baseUrl;
@@ -851,6 +891,9 @@ class AuditManagementComponent {
851
891
  ngOnChanges() {
852
892
  this.setupWebComponent();
853
893
  }
894
+ ngAfterViewInit() {
895
+ this.setupEventListeners();
896
+ }
854
897
  setupWebComponent() {
855
898
  this.webComponent.setAttribute('project-id', this.projectId);
856
899
  this.webComponent.setAttribute('tenant', this.tenant);
@@ -877,8 +920,15 @@ class AuditManagementComponent {
877
920
  this.webComponent.logger = this.logger;
878
921
  }
879
922
  }
923
+ setupEventListeners() {
924
+ if (this.ready) {
925
+ this.webComponent.addEventListener('ready', () => {
926
+ this.ready?.emit();
927
+ });
928
+ }
929
+ }
880
930
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AuditManagementComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }], target: i0.ɵɵFactoryTarget.Component }); }
881
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AuditManagementComponent, isStandalone: true, selector: "audit-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
931
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AuditManagementComponent, isStandalone: true, selector: "audit-management[tenant]", inputs: { tenant: "tenant", widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
882
932
  }
883
933
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AuditManagementComponent, decorators: [{
884
934
  type: Component,
@@ -900,6 +950,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
900
950
  type: Input
901
951
  }], styleId: [{
902
952
  type: Input
953
+ }], ready: [{
954
+ type: Output
903
955
  }] } });
904
956
 
905
957
  class UserProfileComponent {
@@ -907,6 +959,7 @@ class UserProfileComponent {
907
959
  this.elementRef = elementRef;
908
960
  this.descopeAuthService = descopeAuthService;
909
961
  this.logout = new EventEmitter();
962
+ this.ready = new EventEmitter();
910
963
  this.webComponent = new DescopeUserProfileWidget();
911
964
  this.projectId = descopeConfig.projectId;
912
965
  this.baseUrl = descopeConfig.baseUrl;
@@ -920,6 +973,9 @@ class UserProfileComponent {
920
973
  ngOnChanges() {
921
974
  this.setupWebComponent();
922
975
  }
976
+ ngAfterViewInit() {
977
+ this.setupEventListeners();
978
+ }
923
979
  setupWebComponent() {
924
980
  this.webComponent.setAttribute('project-id', this.projectId);
925
981
  this.webComponent.setAttribute('widget-id', this.widgetId);
@@ -944,15 +1000,22 @@ class UserProfileComponent {
944
1000
  if (this.logger) {
945
1001
  this.webComponent.logger = this.logger;
946
1002
  }
1003
+ }
1004
+ setupEventListeners() {
947
1005
  this.webComponent.addEventListener('logout', (e) => {
948
1006
  this.logout?.emit(e);
949
1007
  this.descopeAuthService.setSession('');
950
1008
  this.descopeAuthService.setIsAuthenticated(false);
951
1009
  this.descopeAuthService.setUser(null);
952
1010
  });
1011
+ if (this.ready) {
1012
+ this.webComponent.addEventListener('ready', () => {
1013
+ this.ready?.emit();
1014
+ });
1015
+ }
953
1016
  }
954
1017
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserProfileComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }, { token: DescopeAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
955
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: UserProfileComponent, isStandalone: true, selector: "user-profile", inputs: { widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { logout: "logout" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
1018
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: UserProfileComponent, isStandalone: true, selector: "user-profile", inputs: { widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { logout: "logout", ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
956
1019
  }
957
1020
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: UserProfileComponent, decorators: [{
958
1021
  type: Component,
@@ -973,12 +1036,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
973
1036
  type: Input
974
1037
  }], logout: [{
975
1038
  type: Output
1039
+ }], ready: [{
1040
+ type: Output
976
1041
  }] } });
977
1042
 
978
1043
  class ApplicationsPortalComponent {
979
1044
  constructor(elementRef, descopeConfig) {
980
1045
  this.elementRef = elementRef;
981
1046
  this.logout = new EventEmitter();
1047
+ this.ready = new EventEmitter();
982
1048
  this.webComponent = new DescopeApplicationsPortalWidget();
983
1049
  this.projectId = descopeConfig.projectId;
984
1050
  this.baseUrl = descopeConfig.baseUrl;
@@ -992,6 +1058,9 @@ class ApplicationsPortalComponent {
992
1058
  ngOnChanges() {
993
1059
  this.setupWebComponent();
994
1060
  }
1061
+ ngAfterViewInit() {
1062
+ this.setupEventListeners();
1063
+ }
995
1064
  setupWebComponent() {
996
1065
  this.webComponent.setAttribute('project-id', this.projectId);
997
1066
  this.webComponent.setAttribute('widget-id', this.widgetId);
@@ -1016,14 +1085,21 @@ class ApplicationsPortalComponent {
1016
1085
  if (this.styleId) {
1017
1086
  this.webComponent.setAttribute('style-id', this.styleId);
1018
1087
  }
1088
+ }
1089
+ setupEventListeners() {
1019
1090
  if (this.logout) {
1020
1091
  this.webComponent.addEventListener('logout', (e) => {
1021
1092
  this.logout?.emit(e);
1022
1093
  });
1023
1094
  }
1095
+ if (this.ready) {
1096
+ this.webComponent.addEventListener('ready', () => {
1097
+ this.ready?.emit();
1098
+ });
1099
+ }
1024
1100
  }
1025
1101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ApplicationsPortalComponent, deps: [{ token: i0.ElementRef }, { token: DescopeAuthConfig }], target: i0.ɵɵFactoryTarget.Component }); }
1026
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: ApplicationsPortalComponent, isStandalone: true, selector: "applications-portal", inputs: { widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { logout: "logout" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
1102
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: ApplicationsPortalComponent, isStandalone: true, selector: "applications-portal", inputs: { widgetId: "widgetId", theme: "theme", debug: "debug", logger: "logger", styleId: "styleId" }, outputs: { logout: "logout", ready: "ready" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
1027
1103
  }
1028
1104
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ApplicationsPortalComponent, decorators: [{
1029
1105
  type: Component,
@@ -1044,6 +1120,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
1044
1120
  type: Input
1045
1121
  }], logout: [{
1046
1122
  type: Output
1123
+ }], ready: [{
1124
+ type: Output
1047
1125
  }] } });
1048
1126
 
1049
1127
  class DescopeAuthModule {