@srimandir/old-dosha-calculator 1.0.4 → 1.0.6
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/DateOfBirthPicker.d.ts +1 -0
- package/dist/components/DoshaCalculatorV2.d.ts +6 -1
- package/dist/components/HeaderV2.d.ts +6 -1
- package/dist/components/IndexV2.d.ts +6 -1
- package/dist/components/TimeOfBirthPicker.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/lib/analytics.d.ts +33 -0
- package/dist/old-dosha-calculator.js +4365 -4309
- package/dist/old-dosha-calculator.js.map +1 -1
- package/dist/old-dosha-calculator.umd.cjs +33 -33
- package/dist/old-dosha-calculator.umd.cjs.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +3 -3
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { DoshaAnalytics } from '../lib/analytics';
|
|
2
|
+
export interface DoshaCalculatorV2Props {
|
|
3
|
+
/** Optional analytics implementation for tracking user interactions */
|
|
4
|
+
analytics?: DoshaAnalytics;
|
|
5
|
+
}
|
|
6
|
+
declare const DoshaCalculatorV2: ({ analytics }?: DoshaCalculatorV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
7
|
export default DoshaCalculatorV2;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { DoshaAnalytics } from '../lib/analytics';
|
|
2
|
+
export interface HeaderV2Props {
|
|
3
|
+
/** Optional analytics implementation for tracking user interactions */
|
|
4
|
+
analytics?: DoshaAnalytics;
|
|
5
|
+
}
|
|
6
|
+
export default function HeaderV2({ analytics }?: HeaderV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { DoshaAnalytics } from '../lib/analytics';
|
|
2
|
+
export interface IndexV2Props {
|
|
3
|
+
/** Optional analytics implementation for tracking user interactions */
|
|
4
|
+
analytics?: DoshaAnalytics;
|
|
5
|
+
}
|
|
6
|
+
declare const IndexV2: ({ analytics }?: IndexV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
7
|
export default IndexV2;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,8 @@ export { default as TestimonialsV2 } from './components/TestimonialsV2';
|
|
|
5
5
|
export { default as TrustBarV2 } from './components/TrustBarV2';
|
|
6
6
|
export { default as Footer } from './components/Footer';
|
|
7
7
|
export { default as HomePageExperiment } from './components/HomePageExperiment';
|
|
8
|
+
export { FLOATING_CTA_STATUS } from './lib/analytics';
|
|
9
|
+
export type { DoshaAnalytics, FloatingCtaStatus } from './lib/analytics';
|
|
10
|
+
export type { IndexV2Props } from './components/IndexV2';
|
|
11
|
+
export type { DoshaCalculatorV2Props } from './components/DoshaCalculatorV2';
|
|
12
|
+
export type { HeaderV2Props } from './components/HeaderV2';
|
package/dist/lib/analytics.d.ts
CHANGED
|
@@ -1 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analytics interface for DoshaCalculator.
|
|
3
|
+
* Host app (e.g. hanuman) should pass an implementation via the analytics prop.
|
|
4
|
+
*/
|
|
5
|
+
export declare const FLOATING_CTA_STATUS: {
|
|
6
|
+
readonly all_fields_filled: "all_fields_filled";
|
|
7
|
+
readonly fields_not_filled: "fields_not_filled";
|
|
8
|
+
readonly puja_clicked: "puja_clicked";
|
|
9
|
+
};
|
|
10
|
+
export type FloatingCtaStatus = (typeof FLOATING_CTA_STATUS)[keyof typeof FLOATING_CTA_STATUS];
|
|
11
|
+
export interface DoshaAnalytics {
|
|
12
|
+
trackDoshaCalculatorWebView?(is_old_dosha?: boolean): void;
|
|
13
|
+
trackDoshaSectionImpression?(params: {
|
|
14
|
+
section: string;
|
|
15
|
+
timestamp?: string;
|
|
16
|
+
is_old_dosha?: boolean;
|
|
17
|
+
}): void;
|
|
18
|
+
trackFloatingCtaClicked?(status: FloatingCtaStatus, is_old_dosha?: boolean): void;
|
|
19
|
+
trackFormFillInitiated?(is_old_dosha?: boolean): void;
|
|
20
|
+
trackNameSectionClicked?(is_old_dosha?: boolean): void;
|
|
21
|
+
trackNameSectionFilled?(is_old_dosha?: boolean): void;
|
|
22
|
+
trackDobClicked?(is_old_dosha?: boolean): void;
|
|
23
|
+
trackDobFilled?(is_old_dosha?: boolean): void;
|
|
24
|
+
trackTimeClicked?(is_old_dosha?: boolean): void;
|
|
25
|
+
trackTimeFilled?(is_old_dosha?: boolean): void;
|
|
26
|
+
trackTimeCheckboxClicked?(is_old_dosha?: boolean): void;
|
|
27
|
+
trackPlaceOfBirthClicked?(is_old_dosha?: boolean): void;
|
|
28
|
+
trackPlaceOfBirthChosen?(placeValue: string, is_old_dosha?: boolean): void;
|
|
29
|
+
trackReadMoreReviewsClicked?(is_old_dosha?: boolean): void;
|
|
30
|
+
trackFaqQuestionClicked?(questionText: string, is_old_dosha?: boolean): void;
|
|
31
|
+
trackLanguageClicked?(selectedLanguage: string, is_old_dosha?: boolean): void;
|
|
32
|
+
trackLanguageChanged?(lang: string, is_old_dosha?: boolean): void;
|
|
33
|
+
}
|
|
1
34
|
export declare const trackEvent: (eventName: string, properties?: any) => void;
|