@srimandir/kundli-generator 9.4.2 → 9.4.4

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.
Files changed (35) hide show
  1. package/dist/analytics-C7U4tH2y.js +3908 -0
  2. package/dist/analytics-C7U4tH2y.js.map +1 -0
  3. package/dist/analytics.d.ts +144 -0
  4. package/dist/components/KundliForm/KundliForm.d.ts +9 -1
  5. package/dist/components/KundliForm/sections/UserInfoFormSection/UserInfoFormSection.d.ts +5 -1
  6. package/dist/components/KundliForm/sections/UserInfoFormSection/useAtlasPlacesAutocomplete.d.ts +22 -0
  7. package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +29 -8
  8. package/dist/components/KundliPage/KundliContext.d.ts +24 -1
  9. package/dist/components/KundliPage/KundliPage.d.ts +17 -1
  10. package/dist/components/KundliPage/KundliPageV1.d.ts +22 -1
  11. package/dist/components/KundliPage/KundliPageVariant.d.ts +5 -0
  12. package/dist/components/KundliPage/sections/UtmBannerSection/UtmBannerSection.d.ts +8 -0
  13. package/dist/components/KundliPage/sections/UtmBannerSection/index.d.ts +2 -0
  14. package/dist/components/KundliPage/sections/index.d.ts +1 -0
  15. package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +28 -0
  16. package/dist/components/KundliPlanBottomSheet/KundliPlanBottomSheet.d.ts +14 -3
  17. package/dist/components/KundliPlanBottomSheet/PlanIcons.d.ts +10 -0
  18. package/dist/components/KundliPlanBottomSheet/consultationSlotDefaults.d.ts +44 -0
  19. package/dist/components/KundliPlanBottomSheet/index.d.ts +4 -1
  20. package/dist/components/KundliPlanBottomSheet/types.d.ts +46 -0
  21. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +11 -1
  22. package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +26 -0
  23. package/dist/criticalCss-DTGMtg9k.js +2017 -0
  24. package/dist/criticalCss-DTGMtg9k.js.map +1 -0
  25. package/dist/form-entry.js +1 -1
  26. package/dist/i18n/I18nContext.d.ts +7 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/kundli-generator.js +29 -27
  29. package/dist/page-entry.js +2 -2
  30. package/dist/style.css +1 -1
  31. package/package.json +2 -2
  32. package/dist/analytics-qrcpYMLy.js +0 -2994
  33. package/dist/analytics-qrcpYMLy.js.map +0 -1
  34. package/dist/criticalCss-Bj5LpOlA.js +0 -1914
  35. package/dist/criticalCss-Bj5LpOlA.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { ThreeSkuLocale, ThreeSkuPlan } from './constants';
2
+ import { ConsultationSlotSelection } from '../KundliPlanBottomSheet/types';
2
3
  /**
3
4
  * Analytics interface for the 3-SKU experiment bottom sheet.
4
5
  * Extends the base plan analytics with question-specific tracking methods.
@@ -20,6 +21,8 @@ export interface ThreeSkuAnalytics {
20
21
  question_asked?: boolean;
21
22
  question_text?: string;
22
23
  question_source?: "chip" | "custom" | "chip_edited";
24
+ cta_type?: "proceed" | "confirm_consultation_slot";
25
+ next_step?: "payment" | "slot_selection";
23
26
  }): void;
24
27
  trackQuestionTextboxClicked?(params: {
25
28
  entry_method: "tap" | "keyboard_focus";
@@ -32,13 +35,18 @@ export interface ThreeSkuAnalytics {
32
35
  user_had_custom_text: boolean;
33
36
  }): void;
34
37
  trackOneQuestionViewSampleReportClicked?(): void;
38
+ /** Fires when the astrologer consultation plan's "Select consultation slot" CTA is clicked. */
39
+ trackSelectConsultationSlotClicked?(params: {
40
+ planId: string;
41
+ planName: string;
42
+ }): void;
35
43
  }
36
44
  export interface ThreeSkuPlanBottomSheetProps {
37
45
  isOpen: boolean;
38
46
  onClose: () => void;
39
47
  selectedPlan: ThreeSkuPlan | null;
40
48
  onSelectPlan: (plan: ThreeSkuPlan) => void;
41
- onProceed: (plan: ThreeSkuPlan, question?: string) => void;
49
+ onProceed: (plan: ThreeSkuPlan, question?: string, consultationSlot?: ConsultationSlotSelection) => void;
42
50
  plans?: ThreeSkuPlan[];
43
51
  /** Whether the user is on the international (global) flow. Used for default plan pricing. */
44
52
  isGlobal?: boolean;
@@ -48,4 +56,6 @@ export interface ThreeSkuPlanBottomSheetProps {
48
56
  analytics?: ThreeSkuAnalytics;
49
57
  /** URL for the "1 Question" sample answer PDF shown inside the sheet. */
50
58
  oneQuestionSampleHref?: string;
59
+ /** Report language selected in the kundli form — drives the consultation slot modal's default language. */
60
+ reportLanguage?: string;
51
61
  }
@@ -6,6 +6,7 @@ export declare const THREE_SKU_STRINGS: {
6
6
  readonly en: {
7
7
  readonly planSheetTitle: "Choose your Kundli Plan";
8
8
  readonly planProceedToPayment: "Proceed to Payment";
9
+ readonly planSelectConsultationSlot: "Select consultation slot →";
9
10
  readonly planAstrologerHeading: "Top astrologers who will consult you";
10
11
  readonly planMostPopular: "Most popular";
11
12
  readonly planNew: "New";
@@ -35,10 +36,23 @@ export declare const THREE_SKU_STRINGS: {
35
36
  readonly planQuestionChip3: "Are there any doshas which is affecting me?";
36
37
  readonly planQuestionChip4: "Is my current job right for me?";
37
38
  readonly planAstrologerExp: "{{years}} Years of experience";
39
+ readonly planConsultationSlotTitle: "Select consultation slot";
40
+ readonly planConsultationTrustLabel: "3,750+ people have booked consultation";
41
+ readonly planSelectSlotHeading: "Select consultation slot";
42
+ readonly planGuidanceHeading: "What would you like guidance on?";
43
+ readonly planPeriodMorning: "Morning";
44
+ readonly planPeriodAfternoon: "Afternoon";
45
+ readonly planPeriodEvening: "Evening";
46
+ readonly planPeriodEveningNight: "Evening/Night";
47
+ readonly planTopicCareerWork: "Career & work";
48
+ readonly planTopicHealthWellbeing: "Health & wellbeing";
49
+ readonly planTopicLoveMarriage: "Love & marriage";
50
+ readonly planTopicMoneyFinance: "Money & finance";
38
51
  };
39
52
  readonly hi: {
40
53
  readonly planSheetTitle: "अपनी कुंडली प्लान चुनें";
41
54
  readonly planProceedToPayment: "पेमेंट करें";
55
+ readonly planSelectConsultationSlot: "परामर्श स्लॉट चुनें →";
42
56
  readonly planAstrologerHeading: "हम आपके लिए नीचे दिए गए टॉप ज्योतिषियों में से एक को चुनेंगे";
43
57
  readonly planMostPopular: "सबसे लोकप्रिय";
44
58
  readonly planNew: "नया";
@@ -68,6 +82,18 @@ export declare const THREE_SKU_STRINGS: {
68
82
  readonly planQuestionChip3: "क्या कोई दोष है जो मुझे प्रभावित कर रहा है?";
69
83
  readonly planQuestionChip4: "क्या मेरी मौजूदा नौकरी मेरे लिए सही है?";
70
84
  readonly planAstrologerExp: "साल का अनुभव";
85
+ readonly planConsultationSlotTitle: "परामर्श स्लॉट चुनें";
86
+ readonly planConsultationTrustLabel: "3,750+ लोगों ने परामर्श बुक किया है";
87
+ readonly planSelectSlotHeading: "परामर्श स्लॉट चुनें";
88
+ readonly planGuidanceHeading: "आप किस बारे में सलाह चाहते हैं?";
89
+ readonly planPeriodMorning: "सुबह";
90
+ readonly planPeriodAfternoon: "दोपहर";
91
+ readonly planPeriodEvening: "शाम";
92
+ readonly planPeriodEveningNight: "शाम/रात";
93
+ readonly planTopicCareerWork: "करियर और काम";
94
+ readonly planTopicHealthWellbeing: "सेहत और खुशहाली";
95
+ readonly planTopicLoveMarriage: "प्यार और शादी";
96
+ readonly planTopicMoneyFinance: "पैसा और वित्त";
71
97
  };
72
98
  };
73
99
  export type ThreeSkuLocale = keyof typeof THREE_SKU_STRINGS;