@srimandir/hanuman-chalisa 1.2.0 → 1.2.2
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/dist/components/LandingPage/LandingPage.d.ts +15 -0
- package/dist/components/SuccessPage/SuccessPage.d.ts +19 -0
- package/dist/context/AppContext.d.ts +2 -0
- package/dist/hanuman-chalisa.js +739 -631
- package/dist/hanuman-chalisa.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,17 @@
|
|
|
1
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
|
+
}
|
|
2
15
|
export interface LandingPageProps {
|
|
3
16
|
/** Duration in hours for the countdown timer (e.g., 48 for 48 hours) */
|
|
4
17
|
timerDurationInHours?: number;
|
|
@@ -9,5 +22,7 @@ export interface LandingPageProps {
|
|
|
9
22
|
}) => void;
|
|
10
23
|
/** If true, uses +1 country code; if false, uses +91 */
|
|
11
24
|
isGlobal?: boolean;
|
|
25
|
+
/** Analytics callbacks for tracking events */
|
|
26
|
+
analytics?: HanumanChalisaAnalytics;
|
|
12
27
|
}
|
|
13
28
|
export declare const LandingPage: React.FC<LandingPageProps>;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
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
|
+
}
|
|
2
15
|
interface SuccessPageProps {
|
|
3
16
|
userName?: string;
|
|
4
17
|
eventName?: string;
|
|
@@ -6,6 +19,12 @@ interface SuccessPageProps {
|
|
|
6
19
|
eventTime?: string;
|
|
7
20
|
onWhatsAppClick?: () => void;
|
|
8
21
|
redirectSeconds?: number;
|
|
22
|
+
/** Analytics callbacks for tracking events */
|
|
23
|
+
analytics?: HanumanChalisaAnalytics;
|
|
24
|
+
/** Email of the user for analytics */
|
|
25
|
+
email?: string;
|
|
26
|
+
/** Phone number of the user for analytics */
|
|
27
|
+
phone?: string;
|
|
9
28
|
}
|
|
10
29
|
export declare const SuccessPage: React.FC<SuccessPageProps>;
|
|
11
30
|
export {};
|
|
@@ -12,6 +12,8 @@ interface AppContextValue {
|
|
|
12
12
|
export declare const useAppContext: () => AppContextValue;
|
|
13
13
|
interface AppContextProviderProps {
|
|
14
14
|
children: ReactNode;
|
|
15
|
+
/** Set to true to disable the internal Toaster (useful when parent app has its own toast system) */
|
|
16
|
+
disableToaster?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export declare const AppContextProvider: React.FC<AppContextProviderProps>;
|
|
17
19
|
export {};
|