@srimandir/hanuman-chalisa 1.5.2 → 1.5.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.
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface CountdownTimerProps {
3
+ /** Target date and time for the countdown */
4
+ targetDate: Date | string;
5
+ }
6
+ export declare const CountdownTimer: React.FC<CountdownTimerProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { CountdownTimer } from './CountdownTimer';
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ export interface HanumanChalisaAnalytics {
3
+ trackLandingPageViewed?(): void;
4
+ trackNameClicked?(): void;
5
+ trackNameFilled?(): void;
6
+ trackPhoneClicked?(): void;
7
+ trackPhoneFilled?(): void;
8
+ trackSubmitClicked?(): void;
9
+ trackSuccessPageViewed?(params: {
10
+ email?: string;
11
+ phone?: string;
12
+ }): void;
13
+ trackHomePageBtnClicked?(): void;
14
+ }
15
+ export interface LandingPageProps {
16
+ /** Target date and time for the countdown timer */
17
+ targetDate: Date | string;
18
+ /** Callback when user submits the form */
19
+ onSubmit?: (data: {
20
+ name: string;
21
+ fullPhoneNumber: string;
22
+ }) => void;
23
+ /** If true, uses +1 country code; if false, uses +91 */
24
+ isGlobal?: boolean;
25
+ /** Analytics callbacks for tracking events */
26
+ analytics?: HanumanChalisaAnalytics;
27
+ /** Toast function to show notifications (type: 'success' | 'error' | 'warning', message: string) */
28
+ showToast?: (type: 'success' | 'error' | 'warning' | 'info', message: string) => void;
29
+ }
30
+ export declare const LandingPage: React.FC<LandingPageProps>;
@@ -0,0 +1,2 @@
1
+ export { LandingPage } from './LandingPage';
2
+ export type { LandingPageProps } from './LandingPage';
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ export interface HanumanChalisaAnalytics {
3
+ trackLandingPageViewed?(): void;
4
+ trackNameClicked?(): void;
5
+ trackNameFilled?(): void;
6
+ trackPhoneClicked?(): void;
7
+ trackPhoneFilled?(): void;
8
+ trackSubmitClicked?(): void;
9
+ trackSuccessPageViewed?(params: {
10
+ name?: string;
11
+ email?: string;
12
+ phone?: string;
13
+ }): void;
14
+ trackHomePageBtnClicked?(): void;
15
+ }
16
+ interface SuccessPageProps {
17
+ userName?: string;
18
+ eventName?: string;
19
+ eventDate?: string;
20
+ eventTime?: string;
21
+ onWhatsAppClick?: () => void;
22
+ redirectSeconds?: number;
23
+ /** Analytics callbacks for tracking events */
24
+ analytics?: HanumanChalisaAnalytics;
25
+ /** Toast function to show notifications (type: 'success' | 'error' | 'warning', message: string) */
26
+ showToast?: (type: 'success' | 'error' | 'warning' | 'info', message: string) => void;
27
+ /** Disable automatic redirect (for debugging) */
28
+ disableRedirect?: boolean;
29
+ }
30
+ export declare const SuccessPage: React.FC<SuccessPageProps>;
31
+ export {};
@@ -0,0 +1 @@
1
+ export { SuccessPage } from './SuccessPage';
@@ -0,0 +1,208 @@
1
+ export declare const ISD_COUNTRY_OPTIONS: readonly [{
2
+ readonly code: "+1";
3
+ readonly country: "USA / Canada";
4
+ }, {
5
+ readonly code: "+7";
6
+ readonly country: "Russia / Kazakhstan";
7
+ }, {
8
+ readonly code: "+20";
9
+ readonly country: "Egypt";
10
+ }, {
11
+ readonly code: "+27";
12
+ readonly country: "South Africa";
13
+ }, {
14
+ readonly code: "+30";
15
+ readonly country: "Greece";
16
+ }, {
17
+ readonly code: "+31";
18
+ readonly country: "Netherlands";
19
+ }, {
20
+ readonly code: "+32";
21
+ readonly country: "Belgium";
22
+ }, {
23
+ readonly code: "+33";
24
+ readonly country: "France";
25
+ }, {
26
+ readonly code: "+34";
27
+ readonly country: "Spain";
28
+ }, {
29
+ readonly code: "+36";
30
+ readonly country: "Hungary";
31
+ }, {
32
+ readonly code: "+39";
33
+ readonly country: "Italy";
34
+ }, {
35
+ readonly code: "+40";
36
+ readonly country: "Romania";
37
+ }, {
38
+ readonly code: "+41";
39
+ readonly country: "Switzerland";
40
+ }, {
41
+ readonly code: "+43";
42
+ readonly country: "Austria";
43
+ }, {
44
+ readonly code: "+44";
45
+ readonly country: "United Kingdom";
46
+ }, {
47
+ readonly code: "+45";
48
+ readonly country: "Denmark";
49
+ }, {
50
+ readonly code: "+46";
51
+ readonly country: "Sweden";
52
+ }, {
53
+ readonly code: "+47";
54
+ readonly country: "Norway";
55
+ }, {
56
+ readonly code: "+48";
57
+ readonly country: "Poland";
58
+ }, {
59
+ readonly code: "+49";
60
+ readonly country: "Germany";
61
+ }, {
62
+ readonly code: "+51";
63
+ readonly country: "Peru";
64
+ }, {
65
+ readonly code: "+52";
66
+ readonly country: "Mexico";
67
+ }, {
68
+ readonly code: "+53";
69
+ readonly country: "Cuba";
70
+ }, {
71
+ readonly code: "+54";
72
+ readonly country: "Argentina";
73
+ }, {
74
+ readonly code: "+55";
75
+ readonly country: "Brazil";
76
+ }, {
77
+ readonly code: "+56";
78
+ readonly country: "Chile";
79
+ }, {
80
+ readonly code: "+57";
81
+ readonly country: "Colombia";
82
+ }, {
83
+ readonly code: "+60";
84
+ readonly country: "Malaysia";
85
+ }, {
86
+ readonly code: "+61";
87
+ readonly country: "Australia";
88
+ }, {
89
+ readonly code: "+62";
90
+ readonly country: "Indonesia";
91
+ }, {
92
+ readonly code: "+63";
93
+ readonly country: "Philippines";
94
+ }, {
95
+ readonly code: "+64";
96
+ readonly country: "New Zealand";
97
+ }, {
98
+ readonly code: "+65";
99
+ readonly country: "Singapore";
100
+ }, {
101
+ readonly code: "+66";
102
+ readonly country: "Thailand";
103
+ }, {
104
+ readonly code: "+81";
105
+ readonly country: "Japan";
106
+ }, {
107
+ readonly code: "+82";
108
+ readonly country: "South Korea";
109
+ }, {
110
+ readonly code: "+84";
111
+ readonly country: "Vietnam";
112
+ }, {
113
+ readonly code: "+86";
114
+ readonly country: "China";
115
+ }, {
116
+ readonly code: "+90";
117
+ readonly country: "Turkey";
118
+ }, {
119
+ readonly code: "+91";
120
+ readonly country: "India";
121
+ }, {
122
+ readonly code: "+92";
123
+ readonly country: "Pakistan";
124
+ }, {
125
+ readonly code: "+93";
126
+ readonly country: "Afghanistan";
127
+ }, {
128
+ readonly code: "+94";
129
+ readonly country: "Sri Lanka";
130
+ }, {
131
+ readonly code: "+95";
132
+ readonly country: "Myanmar";
133
+ }, {
134
+ readonly code: "+98";
135
+ readonly country: "Iran";
136
+ }, {
137
+ readonly code: "+211";
138
+ readonly country: "South Sudan";
139
+ }, {
140
+ readonly code: "+212";
141
+ readonly country: "Morocco";
142
+ }, {
143
+ readonly code: "+213";
144
+ readonly country: "Algeria";
145
+ }, {
146
+ readonly code: "+216";
147
+ readonly country: "Tunisia";
148
+ }, {
149
+ readonly code: "+218";
150
+ readonly country: "Libya";
151
+ }, {
152
+ readonly code: "+220";
153
+ readonly country: "Gambia";
154
+ }, {
155
+ readonly code: "+221";
156
+ readonly country: "Senegal";
157
+ }, {
158
+ readonly code: "+234";
159
+ readonly country: "Nigeria";
160
+ }, {
161
+ readonly code: "+254";
162
+ readonly country: "Kenya";
163
+ }, {
164
+ readonly code: "+255";
165
+ readonly country: "Tanzania";
166
+ }, {
167
+ readonly code: "+256";
168
+ readonly country: "Uganda";
169
+ }, {
170
+ readonly code: "+260";
171
+ readonly country: "Zambia";
172
+ }, {
173
+ readonly code: "+263";
174
+ readonly country: "Zimbabwe";
175
+ }, {
176
+ readonly code: "+264";
177
+ readonly country: "Namibia";
178
+ }, {
179
+ readonly code: "+265";
180
+ readonly country: "Malawi";
181
+ }, {
182
+ readonly code: "+880";
183
+ readonly country: "Bangladesh";
184
+ }, {
185
+ readonly code: "+886";
186
+ readonly country: "Taiwan";
187
+ }, {
188
+ readonly code: "+971";
189
+ readonly country: "United Arab Emirates";
190
+ }, {
191
+ readonly code: "+972";
192
+ readonly country: "Israel";
193
+ }, {
194
+ readonly code: "+973";
195
+ readonly country: "Bahrain";
196
+ }, {
197
+ readonly code: "+974";
198
+ readonly country: "Qatar";
199
+ }, {
200
+ readonly code: "+975";
201
+ readonly country: "Bhutan";
202
+ }, {
203
+ readonly code: "+976";
204
+ readonly country: "Mongolia";
205
+ }, {
206
+ readonly code: "+977";
207
+ readonly country: "Nepal";
208
+ }];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * What to Expect section items
3
+ */
4
+ export interface ExpectationItem {
5
+ icon: string;
6
+ titleKey: string;
7
+ descKey: string;
8
+ }
9
+ export declare const EXPECTATION_ITEMS: ExpectationItem[];
@@ -0,0 +1,3 @@
1
+ export { EXPECTATION_ITEMS } from './expectations';
2
+ export type { ExpectationItem } from './expectations';
3
+ export { ISD_COUNTRY_OPTIONS } from './countrycode';
@@ -0,0 +1,17 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface UserData {
3
+ name: string;
4
+ fullPhoneNumber: string;
5
+ }
6
+ interface AppContextValue {
7
+ userData: UserData | null;
8
+ setUserData: (data: UserData) => void;
9
+ showSuccess: boolean;
10
+ setShowSuccess: (show: boolean) => void;
11
+ }
12
+ export declare const useAppContext: () => AppContextValue;
13
+ interface AppContextProviderProps {
14
+ children: ReactNode;
15
+ }
16
+ export declare const AppContextProvider: React.FC<AppContextProviderProps>;
17
+ export {};
@@ -0,0 +1 @@
1
+ export { AppContextProvider, useAppContext } from './AppContext';
File without changes