@srimandir/hanuman-chalisa 1.2.6 → 1.2.7

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.
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface CountdownTimerProps {
3
- /** Duration in hours from now */
4
- durationInHours: number;
3
+ /** Target date and time for the countdown */
4
+ targetDate: Date | string;
5
5
  }
6
6
  export declare const CountdownTimer: React.FC<CountdownTimerProps>;
7
7
  export {};
@@ -13,8 +13,8 @@ export interface HanumanChalisaAnalytics {
13
13
  trackHomePageBtnClicked?(): void;
14
14
  }
15
15
  export interface LandingPageProps {
16
- /** Duration in hours for the countdown timer (e.g., 48 for 48 hours) */
17
- timerDurationInHours?: number;
16
+ /** Target date and time for the countdown timer */
17
+ targetDate: Date | string;
18
18
  /** Callback when user submits the form */
19
19
  onSubmit?: (data: {
20
20
  name: string;
@@ -7,6 +7,7 @@ export interface HanumanChalisaAnalytics {
7
7
  trackPhoneFilled?(): void;
8
8
  trackSubmitClicked?(): void;
9
9
  trackSuccessPageViewed?(params: {
10
+ name?: string;
10
11
  email?: string;
11
12
  phone?: string;
12
13
  }): void;
@@ -21,10 +22,6 @@ interface SuccessPageProps {
21
22
  redirectSeconds?: number;
22
23
  /** Analytics callbacks for tracking events */
23
24
  analytics?: HanumanChalisaAnalytics;
24
- /** Email of the user for analytics */
25
- email?: string;
26
- /** Phone number of the user for analytics */
27
- phone?: string;
28
25
  /** Toast function to show notifications (type: 'success' | 'error' | 'warning', message: string) */
29
26
  showToast?: (type: 'success' | 'error' | 'warning' | 'info', message: string) => void;
30
27
  }