@srimandir/kundli-generator 5.30.7 → 5.30.8

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.
@@ -59,6 +59,16 @@ export declare const KUNDLI_ANALYTICS_EVENT_NAMES: {
59
59
  readonly kundli_plan_proceed_clicked: "kundli_plan_proceed_clicked";
60
60
  /** Plan sheet closed without proceeding */
61
61
  readonly kundli_plan_page_closed: "kundli_plan_page_closed";
62
+ /** 3-SKU experiment: comparison table enters viewport */
63
+ readonly comparison_table_impression: "comparison_table_impression";
64
+ /** 3-SKU experiment: plan card changed */
65
+ readonly plan_changed: "plan_changed";
66
+ /** 3-SKU experiment: first focus/tap on question textbox */
67
+ readonly question_textbox_clicked: "question_textbox_clicked";
68
+ /** 3-SKU experiment: suggested question chip selection */
69
+ readonly pre_suggested_question_selected: "pre_suggested_question_selected";
70
+ /** 3-SKU experiment: proceed from selected plan */
71
+ readonly plan_proceed_clicked: "plan_proceed_clicked";
62
72
  /** Legacy / alias: when landing page is viewed */
63
73
  readonly kundli_page_view: "kundli_page_view";
64
74
  /** Legacy / alias: when L1 form page is viewed (same as l1_page_opened) */
@@ -115,14 +125,32 @@ export interface KundliAnalytics {
115
125
  trackKundliPageView?(): void;
116
126
  trackKundliFormView?(): void;
117
127
  trackReadMoreReviewsClicked?(): void;
128
+ trackComparisonTableImpression?(): void;
118
129
  trackPlanPageViewed?(): void;
119
130
  trackPlanSelected?(params: {
120
131
  planId: string;
121
132
  planName: string;
133
+ sku_type?: 'report' | 'report_question' | 'report_consultation';
134
+ }): void;
135
+ trackQuestionTextboxClicked?(params: {
136
+ entry_method: 'tap' | 'keyboard_focus';
137
+ textbox_empty: boolean;
138
+ }): void;
139
+ trackPreSuggestedQuestionSelected?(params: {
140
+ question_text_loaded: string;
141
+ chip_index: number;
142
+ previous_chip_index: number | null;
143
+ user_had_custom_text: boolean;
122
144
  }): void;
123
145
  trackPlanProceedClicked?(params: {
124
146
  planId: string;
125
147
  planName: string;
148
+ sku_type?: 'report' | 'report_question' | 'report_consultation';
149
+ price?: string;
150
+ currency?: 'INR' | 'USD';
151
+ question_asked?: boolean;
152
+ question_text?: string;
153
+ question_source?: 'chip' | 'custom' | 'chip_edited';
126
154
  }): void;
127
155
  trackPlanPageClosed?(): void;
128
156
  }
@@ -2,6 +2,7 @@ export interface KundliPackagesSectionProps {
2
2
  isGlobal?: boolean;
3
3
  kundliReportSampleHref?: string;
4
4
  oneQuestionSampleHref?: string;
5
+ onComparisonTableImpression?: () => void;
5
6
  className?: string;
6
7
  }
7
8
  export declare const KundliPackagesSection: React.FC<KundliPackagesSectionProps>;
@@ -6,15 +6,20 @@ import { ThreeSkuLocale, ThreeSkuPlan } from './constants';
6
6
  * the base KundliAnalytics interface.
7
7
  */
8
8
  export interface ThreeSkuAnalytics {
9
+ trackComparisonTableImpression?(): void;
9
10
  trackPlanPageViewed?(): void;
10
11
  trackPlanPageClosed?(): void;
11
12
  trackPlanSelected?(params: {
12
13
  planId: string;
13
14
  planName: string;
15
+ sku_type?: "report" | "report_question" | "report_consultation";
14
16
  }): void;
15
17
  trackPlanProceedClicked?(params: {
16
18
  planId: string;
17
19
  planName: string;
20
+ sku_type?: "report" | "report_question" | "report_consultation";
21
+ price?: string;
22
+ currency?: "INR" | "USD";
18
23
  question_asked?: boolean;
19
24
  question_text?: string;
20
25
  question_source?: "chip" | "custom" | "chip_edited";
@@ -35,7 +40,7 @@ export interface ThreeSkuPlanBottomSheetProps {
35
40
  onClose: () => void;
36
41
  selectedPlan: ThreeSkuPlan | null;
37
42
  onSelectPlan: (plan: ThreeSkuPlan) => void;
38
- onProceed: (plan: ThreeSkuPlan, question?: string) => void;
43
+ onProceed: (plan: ThreeSkuPlan, question?: string, questionSource?: "chip" | "custom" | "chip_edited") => void;
39
44
  plans?: ThreeSkuPlan[];
40
45
  /** Whether the user is on the international (global) flow. Used for default plan pricing. */
41
46
  isGlobal?: boolean;