@posiwise/public-modules 0.1.23 → 0.1.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/public-modules",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -979,4 +979,56 @@ export declare abstract class BaseContactFormComponent extends AppBaseComponent
979
979
  protected abstract getDefaultSubject(): string;
980
980
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseContactFormComponent, never>;
981
981
  static ɵcmp: i0.ɵɵComponentDeclaration<BaseContactFormComponent, "ng-component", never, {}, {}, never, never, false, never>;
982
+ }
983
+ interface SupportCompany {
984
+ name?: string;
985
+ email?: string;
986
+ phone_number?: string;
987
+ street?: string;
988
+ city?: string;
989
+ city_code?: string;
990
+ state?: string;
991
+ }
992
+ interface SupportContact {
993
+ name: string;
994
+ email: string;
995
+ phone: string;
996
+ phoneHref: string;
997
+ address: string;
998
+ }
999
+ declare function buildAddress(company: SupportCompany | null | undefined): string;
1000
+ declare function toTelHref(phone: string): string;
1001
+ declare function buildSupportContact(company: SupportCompany | null | undefined): SupportContact;
1002
+ interface ServiceStatus {
1003
+ state: 'checking' | 'operational' | 'incidents' | 'unknown';
1004
+ count: number;
1005
+ }
1006
+ declare function serviceStatusFrom(res: {
1007
+ open_incidents?: unknown[];
1008
+ } | null): ServiceStatus;
1009
+ interface HelpPath {
1010
+ icon: string;
1011
+ key: string;
1012
+ link: string;
1013
+ }
1014
+ /**
1015
+ * Public /support page for logged-out visitors (App Store Guideline 1.5).
1016
+ * Every detail is tenant-driven: name, email, phone and address come from the
1017
+ * domain config, so PosiWise, CloudOlive and any other tenant render their own.
1018
+ */
1019
+ export declare class SupportPublicComponent extends AppBaseComponent {
1020
+ readonly landing = false;
1021
+ readonly helpPaths: HelpPath[];
1022
+ readonly checklist: string[];
1023
+ contact: SupportContact;
1024
+ copied: boolean;
1025
+ status: ServiceStatus;
1026
+ private readonly cdr;
1027
+ private copiedTimer;
1028
+ constructor(injector: Injector);
1029
+ get mailto(): string;
1030
+ private setStatus;
1031
+ copyEmail(): void;
1032
+ static ɵfac: i0.ɵɵFactoryDeclaration<SupportPublicComponent, never>;
1033
+ static ɵcmp: i0.ɵɵComponentDeclaration<SupportPublicComponent, "pw-support-public", never, {}, {}, never, never, true, never>;
982
1034
  }