@idsoftsource/initial-process 4.1.3 → 4.1.4

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/index.d.ts CHANGED
@@ -4647,56 +4647,38 @@ interface AppBranding {
4647
4647
  logo: string;
4648
4648
  displayName: string;
4649
4649
  }
4650
- declare class MaintenanceComponent {
4650
+ declare class MaintenanceComponent implements OnInit {
4651
+ private router;
4652
+ private tokenService;
4651
4653
  branding: AppBranding;
4652
4654
  currentYear: number;
4653
- constructor(libConfig?: LibraryConfig);
4654
- static ɵfac: i0.ɵɵFactoryDeclaration<MaintenanceComponent, [{ optional: true; }]>;
4655
+ page: boolean;
4656
+ constructor(router: Router, tokenService: TokenService, libConfig?: LibraryConfig);
4657
+ ngOnInit(): void;
4658
+ checkModule(): Promise<void>;
4659
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaintenanceComponent, [null, null, { optional: true; }]>;
4655
4660
  static ɵcmp: i0.ɵɵComponentDeclaration<MaintenanceComponent, "app-maintenance", never, {}, {}, never, never, true, never>;
4656
4661
  }
4657
4662
 
4658
- /**
4659
- * Where a signed-in user with an unverified email lands.
4660
- *
4661
- * - **Re-checks on arrival and on demand.** Verification happens in the
4662
- * user's mail client, in another tab, so the claim in this tab's token is
4663
- * stale by definition. `getAccessTokenSilently({ cacheMode: 'off' })`
4664
- * re-issues it, and a fresh `email_verified` moves them straight on — via
4665
- * `replaceUrl`, so this page doesn't sit in their back history.
4666
- * - **Rate-limits the resend.** A 30-second cooldown after each successful
4667
- * send, because the button is otherwise an open invitation to spam their
4668
- * own inbox (and our sending reputation).
4669
- */
4670
- declare class VerifyEmailComponent implements OnDestroy {
4663
+ declare class VerifyEmailComponent implements OnInit, OnDestroy {
4671
4664
  private libConfig;
4672
- private readonly auth;
4673
- private readonly tokenService;
4674
- private readonly userService;
4675
- private readonly authLogoutService;
4676
- private readonly router;
4677
- private readonly destroyRef;
4678
- protected readonly email: i0.WritableSignal<string>;
4679
- protected readonly pageLoader: i0.WritableSignal<boolean>;
4680
- protected readonly checking: i0.WritableSignal<boolean>;
4681
- protected readonly sending: i0.WritableSignal<boolean>;
4682
- protected readonly sent: i0.WritableSignal<boolean>;
4683
- protected readonly error: i0.WritableSignal<string>;
4684
- protected readonly failures: i0.WritableSignal<string[]>;
4685
- protected readonly cooldown: i0.WritableSignal<number>;
4686
- private timer;
4687
- constructor(libConfig: LibraryConfig);
4665
+ userService: UserDetailService;
4666
+ private authLogoutService;
4667
+ private tokenService;
4668
+ private router;
4669
+ private auth;
4670
+ loading: boolean;
4671
+ successMessage: boolean;
4672
+ errorMessage: boolean;
4673
+ pageLoader: boolean;
4674
+ cooldown: number;
4675
+ interval: any;
4676
+ constructor(libConfig: LibraryConfig, userService: UserDetailService, authLogoutService: AuthLogoutService, tokenService: TokenService, router: Router, auth: AuthService);
4677
+ ngOnInit(): Promise<void>;
4678
+ resendVerification(): Promise<void>;
4679
+ startCooldown(): void;
4680
+ logout(): Promise<void>;
4688
4681
  ngOnDestroy(): void;
4689
- /**
4690
- * Re-read the auth0 claims and leave once the address is verified.
4691
- * `silent` keeps the page loader/error off the initial check, which
4692
- * shouldn't look like an action the user started.
4693
- */
4694
- protected recheck(silent?: boolean): void;
4695
- protected resend(): void;
4696
- protected logout(): Promise<void>;
4697
- private startCooldown;
4698
- private stopTimer;
4699
- private showFailure;
4700
4682
  static ɵfac: i0.ɵɵFactoryDeclaration<VerifyEmailComponent, never>;
4701
4683
  static ɵcmp: i0.ɵɵComponentDeclaration<VerifyEmailComponent, "app-verify-email", never, {}, {}, never, never, true, never>;
4702
4684
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",