simpo-component-library 3.6.801 → 3.6.803

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.
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
13
13
  constructor(elementRef: ElementRef);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  handleMoneyInput(event: any): void;
16
- get getTextColor(): "#000" | "#FFF";
16
+ get getTextColor(): "#FFF" | "#000";
17
17
  interpolateColor(color1: string, color2: string, factor: number): string;
18
18
  padZero(str: string, length: number): string;
19
19
  generateColorBasedOnNumber(number: number): string;
@@ -27,12 +27,16 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
27
27
  styles?: AuthenticationStylesModel;
28
28
  button?: ButtonModel;
29
29
  buttonId: string;
30
- currentPage: 'LOGIN' | 'SIGNUP' | 'FORGOT_PASSWORD';
30
+ authScreen: 'PHONE' | 'OTP' | 'REGISTER' | 'PASSWORD';
31
31
  private mobileTimer;
32
32
  email: string;
33
33
  mobile: string;
34
+ phoneNumber: string;
34
35
  otp: string;
35
36
  otpControls: FormArray<FormControl<string | null>>;
37
+ resendCountdown: number;
38
+ private resendInterval;
39
+ isExistingUser: boolean;
36
40
  password: string;
37
41
  confPassword: string;
38
42
  userName: string;
@@ -51,9 +55,22 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
51
55
  proceedToEnrollment: boolean;
52
56
  tryAtHome: boolean;
53
57
  navigateToSchemeDetails: boolean;
58
+ currentPage: string;
54
59
  inputs: QueryList<ElementRef>;
55
60
  ngOnInit(): void;
56
61
  ngAfterViewInit(): void;
62
+ /** Sets --accent-rgb CSS variable so animated circles match the user's brand color */
63
+ private setAccentRgbVar;
64
+ get canGoBack(): boolean;
65
+ goBack(): void;
66
+ closeAuth(): void;
67
+ formatCountdown(secs: number): string;
68
+ startResendTimer(seconds?: number): void;
69
+ sendOTP(): void;
70
+ resendOTPNew(): void;
71
+ verifyOTPNew(): void;
72
+ registerUser(): void;
73
+ loginWithPassword(): void;
57
74
  onInput(index: number): void;
58
75
  onKeyDown(event: KeyboardEvent, index: number): void;
59
76
  getGradientDirection(direction: string | undefined): string;
@@ -62,13 +79,8 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
62
79
  getFormOtp(): string;
63
80
  loginType: "PASSWORD" | "OTP";
64
81
  generateOtp: boolean;
65
- loginAuthentication(loginType: "PASSWORD" | "OTP"): void;
66
82
  generatedOtp: any;
67
83
  oneTimePassword: string;
68
- otpPayload: any;
69
- getOTP(): void;
70
- regenerateOtp(payload: any): void;
71
- resendOtp(): void;
72
84
  close(): void;
73
85
  login(): void;
74
86
  endUserRefferalDetails(userId: any, referralUniqueId: any): void;
@@ -82,7 +94,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
82
94
  validateNumber(event: KeyboardEvent): void;
83
95
  validateOTP(event: KeyboardEvent): void;
84
96
  checkStrength(): void;
85
- getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
97
+ getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
86
98
  emailDebounceTimer: any;
87
99
  onEmailChange(): void;
88
100
  emailCheck: boolean;
@@ -141,6 +141,14 @@ export declare class RestService implements OnDestroy {
141
141
  createLead(payload: any): Observable<Object>;
142
142
  getAppointmentPaymentStatus(orderId: any): Observable<Object>;
143
143
  getOtpForLogin(payload: any): Observable<Object>;
144
+ /** New OTP API: PUT /ecommerce/user/auth/send-otp
145
+ * Body: { identifier, businessId }
146
+ * Response: { data: { isExistingUser: boolean, message: string } }
147
+ */
148
+ sendOtpV2(identifier: string, businessId: string): Observable<Object>;
149
+ verifyOtpV2(payload: any): Observable<Object>;
150
+ completeSignupV2(payload: any): Observable<Object>;
151
+ loginWithPasswordNew(payload: any): Observable<Object>;
144
152
  flush(eventsToSend: any): void;
145
153
  getPopularSearches(): Observable<Object>;
146
154
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.801",
3
+ "version": "3.6.803",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file