@idsoftsource/initial-process 4.1.1 → 4.1.3

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
@@ -1040,7 +1040,7 @@ interface GoogleAddressResult {
1040
1040
  }
1041
1041
  declare function extractGoogleAddressComponents(components: any[], latitude: number, longitude: number, formattedAddress?: string): GoogleAddressResult;
1042
1042
 
1043
- interface AppBranding {
1043
+ interface AppBranding$1 {
1044
1044
  logo: string;
1045
1045
  displayName: string;
1046
1046
  }
@@ -1197,7 +1197,7 @@ declare class InitialProcessComponent implements OnInit {
1197
1197
  }[];
1198
1198
  contractorCategories: ContractorSubCategoryReadModel[];
1199
1199
  isLoadingSubCategories: boolean;
1200
- appBrandingMap: Record<string, AppBranding>;
1200
+ appBrandingMap: Record<string, AppBranding$1>;
1201
1201
  constructor(router: Router, route: ActivatedRoute, userDetailService: UserDetailService, formBuilder: FormBuilder, fileService: FileService, providerService: ProvidersService, roleService: RolesService, modalService: BsModalService, contractorSubCategoryService: ProviderContractorSubCategoryService, providerContractorSubCategoryService: ProviderContractorSubCategoryService, authService: AuthService, tokenService: TokenService, roleContextService: RoleContextService, authLogoutService: AuthLogoutService, credStore: CredentialingStore, libConfig: LibraryConfig);
1202
1202
  selectedContract: any;
1203
1203
  changeContractor(event?: any[]): void;
@@ -4643,28 +4643,63 @@ declare class MustChangePasswordComponent {
4643
4643
  static ɵcmp: i0.ɵɵComponentDeclaration<MustChangePasswordComponent, "app-must-change-password", never, {}, {}, never, never, true, never>;
4644
4644
  }
4645
4645
 
4646
- declare class VerifyEmailComponent implements OnInit, OnDestroy {
4646
+ interface AppBranding {
4647
+ logo: string;
4648
+ displayName: string;
4649
+ }
4650
+ declare class MaintenanceComponent {
4651
+ branding: AppBranding;
4652
+ currentYear: number;
4653
+ constructor(libConfig?: LibraryConfig);
4654
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaintenanceComponent, [{ optional: true; }]>;
4655
+ static ɵcmp: i0.ɵɵComponentDeclaration<MaintenanceComponent, "app-maintenance", never, {}, {}, never, never, true, never>;
4656
+ }
4657
+
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 {
4647
4671
  private libConfig;
4648
- userService: UserDetailService;
4649
- private authLogoutService;
4650
- private tokenService;
4651
- private router;
4652
- private auth;
4653
- loading: boolean;
4654
- successMessage: boolean;
4655
- errorMessage: boolean;
4656
- pageLoader: boolean;
4657
- cooldown: number;
4658
- interval: any;
4659
- constructor(libConfig: LibraryConfig, userService: UserDetailService, authLogoutService: AuthLogoutService, tokenService: TokenService, router: Router, auth: AuthService);
4660
- ngOnInit(): Promise<void>;
4661
- resendVerification(): Promise<void>;
4662
- startCooldown(): void;
4663
- logout(): Promise<void>;
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);
4664
4688
  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;
4665
4700
  static ɵfac: i0.ɵɵFactoryDeclaration<VerifyEmailComponent, never>;
4666
4701
  static ɵcmp: i0.ɵɵComponentDeclaration<VerifyEmailComponent, "app-verify-email", never, {}, {}, never, never, true, never>;
4667
4702
  }
4668
4703
 
4669
- export { AddressVerifyFieldComponent, AddressVerifyFieldModule, AppType, ClaimProcessComponent, InitialProcessComponent, InitialProcessModule, LIBRARY_CONFIG, MustChangePasswordComponent, PreviewComponent, PrivacyPolicyComponent, TermsConditionsComponent, VerifyEmailComponent, extractGoogleAddressComponents };
4704
+ export { AddressVerifyFieldComponent, AddressVerifyFieldModule, AppType, ClaimProcessComponent, InitialProcessComponent, InitialProcessModule, LIBRARY_CONFIG, MaintenanceComponent, MustChangePasswordComponent, PreviewComponent, PrivacyPolicyComponent, TermsConditionsComponent, VerifyEmailComponent, extractGoogleAddressComponents };
4670
4705
  export type { GoogleAddressResult, LibraryConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",