@srimandir/kundli-generator 5.25.1 → 5.30.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.
Files changed (30) hide show
  1. package/dist/{analytics-DwdBIhfn.js → analytics-Deq0Kl4U.js} +824 -819
  2. package/dist/analytics-Deq0Kl4U.js.map +1 -0
  3. package/dist/analytics.d.ts +3 -1
  4. package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +5 -5
  5. package/dist/components/KundliPage/KundliPageVariant.d.ts +5 -0
  6. package/dist/components/KundliPage/sections/KundliTableSection/KundliTableSection.constants.d.ts +10 -0
  7. package/dist/components/KundliPage/sections/KundliTableSection/KundliTableSection.d.ts +7 -0
  8. package/dist/components/KundliPage/sections/KundliTableSection/index.d.ts +2 -0
  9. package/dist/components/KundliPlanBottomSheet/types.d.ts +1 -0
  10. package/dist/components/KundliThreeSkuPage/KundliThreeSkuPage.d.ts +38 -0
  11. package/dist/components/KundliThreeSkuPage/index.d.ts +2 -0
  12. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerCard.d.ts +6 -0
  13. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerProfiles.d.ts +22 -0
  14. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.d.ts +47 -0
  15. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.icons.d.ts +3 -0
  16. package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +81 -0
  17. package/dist/components/ThreeSkuPlanBottomSheet/index.d.ts +4 -0
  18. package/dist/criticalCss-lKR-u5PY.js +1974 -0
  19. package/dist/criticalCss-lKR-u5PY.js.map +1 -0
  20. package/dist/form-entry.js +1 -1
  21. package/dist/index.d.ts +2 -0
  22. package/dist/kundli-generator.js +15 -14
  23. package/dist/page-entry.js +2 -2
  24. package/dist/style.css +1 -1
  25. package/dist/utils/index.d.ts +1 -0
  26. package/dist/utils/phone.d.ts +26 -0
  27. package/package.json +2 -2
  28. package/dist/analytics-DwdBIhfn.js.map +0 -1
  29. package/dist/criticalCss-BrOHnQj-.js +0 -1192
  30. package/dist/criticalCss-BrOHnQj-.js.map +0 -1
@@ -90,7 +90,9 @@ export interface KundliAnalytics {
90
90
  trackNameSectionClicked?(): void;
91
91
  trackNameSectionFilled?(): void;
92
92
  trackPhoneSectionClicked?(): void;
93
- trackPhoneSectionFilled?(): void;
93
+ trackPhoneSectionFilled?(params: {
94
+ phone: string;
95
+ }): void;
94
96
  trackEmailSectionClicked?(): void;
95
97
  trackEmailSectionFilled?(): void;
96
98
  trackDobClicked?(): void;
@@ -22,9 +22,9 @@ export declare const useGooglePlacesAutocomplete: (params: {
22
22
  searchLocalities?: AtlasSearchLocalities;
23
23
  restrictCountry?: string;
24
24
  }) => {
25
- predictions: any;
26
- isSearching: any;
27
- loadError: any;
28
- searchPlaces: any;
29
- clearPredictions: any;
25
+ predictions: PlacePrediction[];
26
+ isSearching: boolean;
27
+ loadError: string | null;
28
+ searchPlaces: (query: string) => Promise<void>;
29
+ clearPredictions: () => void;
30
30
  };
@@ -1,5 +1,10 @@
1
1
  import { KundliPageProps as BaseKundliPageProps } from './KundliPage';
2
2
  export type KundliPageProps = BaseKundliPageProps & {
3
3
  variant?: "v1";
4
+ /**
5
+ * When provided, renders the isolated 3-SKU experiment page.
6
+ * Use this as an AB-toggle prop from host apps.
7
+ */
8
+ threeSkuExperimentKey?: string;
4
9
  };
5
10
  export declare const KundliPage: React.FC<KundliPageProps>;
@@ -0,0 +1,10 @@
1
+ export declare const DEFAULT_SAMPLE_URL = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf";
2
+ export type Cell = "check" | "cross";
3
+ export declare const rows: Array<{
4
+ label: string;
5
+ values: [Cell, Cell, Cell];
6
+ }>;
7
+ export declare const CheckIcon: () => JSX.Element;
8
+ export declare const CrossIcon: () => JSX.Element;
9
+ export declare const TrendUpIcon: () => JSX.Element;
10
+ export declare const SampleReportArrowIcon: () => JSX.Element;
@@ -0,0 +1,7 @@
1
+ export interface KundliPackagesSectionProps {
2
+ isGlobal?: boolean;
3
+ kundliReportSampleHref?: string;
4
+ oneQuestionSampleHref?: string;
5
+ className?: string;
6
+ }
7
+ export declare const KundliPackagesSection: React.FC<KundliPackagesSectionProps>;
@@ -0,0 +1,2 @@
1
+ export { KundliPackagesSection } from './KundliTableSection';
2
+ export type { KundliPackagesSectionProps } from './KundliTableSection';
@@ -5,6 +5,7 @@ export interface KundliPlanFeature {
5
5
  export interface KundliPlanAstrologer {
6
6
  name: string;
7
7
  experience: string;
8
+ languages?: string[];
8
9
  imageUrl?: string;
9
10
  certifications: string[];
10
11
  }
@@ -0,0 +1,38 @@
1
+ import { SupportedLocale } from '../../i18n/translations';
2
+ import { KundliFormValues } from '../KundliForm';
3
+ import { KundliAnalytics } from '../../analytics';
4
+ import { AtlasSearchLocalities } from '../KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete';
5
+ import { ThreeSkuAnalytics } from '../ThreeSkuPlanBottomSheet';
6
+ export interface KundliThreeSkuPageProps {
7
+ /** Optional CSS class name */
8
+ className?: string;
9
+ /** Language (en, hi). Overrides I18nProvider if set. */
10
+ locale?: SupportedLocale;
11
+ /** User ID from auth, for API calls etc. */
12
+ userId?: number;
13
+ /** Whether the user is global (international) or domestic */
14
+ isGlobal?: boolean;
15
+ /** URL for the "200+ page Kundli Report" sample link in the comparison table */
16
+ kundliReportSampleHref?: string;
17
+ /** URL for the "1 Question" sample link in the comparison table */
18
+ oneQuestionSampleHref?: string;
19
+ /** Called when user proceeds (Basic / Question plan) */
20
+ onProceed?: (values: KundliFormValues) => void;
21
+ /** Called when user proceeds with the Guidance (consultation) plan specifically */
22
+ onProceedGuidance?: (values: KundliFormValues) => void;
23
+ /** Form: proceed CTA as link */
24
+ proceedHref?: string;
25
+ /** Form: pricing labels */
26
+ originalPriceLabel?: string;
27
+ discountedPriceLabel?: string;
28
+ /**
29
+ * Analytics for the experiment page. Accepts ThreeSkuAnalytics (superset of base plan analytics).
30
+ * Cast your existing KundliAnalytics object — extra methods are optional so no extra work needed.
31
+ */
32
+ analytics?: ThreeSkuAnalytics & KundliAnalytics;
33
+ /** Notify when user changes language */
34
+ onLocaleChange?: (locale: SupportedLocale) => void;
35
+ /** Atlas localities search callback for birth place autocomplete */
36
+ atlasSearchLocalities?: AtlasSearchLocalities;
37
+ }
38
+ export declare const KundliThreeSkuPage: React.FC<KundliThreeSkuPageProps>;
@@ -0,0 +1,2 @@
1
+ export { KundliThreeSkuPage } from './KundliThreeSkuPage';
2
+ export type { KundliThreeSkuPageProps } from './KundliThreeSkuPage';
@@ -0,0 +1,6 @@
1
+ import { KundliPlanAstrologer } from '../KundliPlanBottomSheet/types';
2
+ export interface ThreeSkuAstrologerCardProps {
3
+ astrologer: KundliPlanAstrologer;
4
+ t?: (key: string, options?: any) => string;
5
+ }
6
+ export declare const ThreeSkuAstrologerCard: React.FC<ThreeSkuAstrologerCardProps>;
@@ -0,0 +1,22 @@
1
+ export declare const THREE_SKU_ASTROLOGERS: readonly [{
2
+ readonly id: "jyoti";
3
+ readonly name: "Astro Sadhana";
4
+ readonly imageUrl: "https://srm-cdn.a4b.io/yoda/1773992823100.webp";
5
+ readonly experience: "21+ Years of experience";
6
+ readonly languages: readonly ["Hindi", "English", "Telugu"];
7
+ readonly certifications: readonly ["25+ Years Vedic Astrology", "Result-Oriented Spiritual Guidance"];
8
+ }, {
9
+ readonly id: "samiksha";
10
+ readonly name: "Astro Samiksha";
11
+ readonly imageUrl: "https://srm-cdn.a4b.io/yoda/1773992841106.webp";
12
+ readonly experience: "21+ Years of experience";
13
+ readonly languages: readonly ["Hindi", "English", "Telugu"];
14
+ readonly certifications: readonly ["Certified Jyotish Acharya", "Guaranteed accurate solutions"];
15
+ }, {
16
+ readonly id: "neeraj";
17
+ readonly name: "Astro Neeraj";
18
+ readonly imageUrl: "https://srm-cdn.a4b.io/yoda/1773992858276.webp";
19
+ readonly experience: "18+ Years of experience";
20
+ readonly languages: readonly ["Hindi", "English", "Telugu"];
21
+ readonly certifications: readonly ["BHU Certified Vedic Astrologer", "Mantra & Rudraksha Specialist"];
22
+ }];
@@ -0,0 +1,47 @@
1
+ import { ThreeSkuLocale, ThreeSkuPlan } from './constants';
2
+ /**
3
+ * Analytics interface for the 3-SKU experiment bottom sheet.
4
+ * Extends the base plan analytics with question-specific tracking methods.
5
+ * Intentionally defined here so this component has zero dependency on
6
+ * the base KundliAnalytics interface.
7
+ */
8
+ export interface ThreeSkuAnalytics {
9
+ trackPlanPageViewed?(): void;
10
+ trackPlanPageClosed?(): void;
11
+ trackPlanSelected?(params: {
12
+ planId: string;
13
+ planName: string;
14
+ }): void;
15
+ trackPlanProceedClicked?(params: {
16
+ planId: string;
17
+ planName: string;
18
+ question_asked?: boolean;
19
+ question_text?: string;
20
+ question_source?: "chip" | "custom" | "chip_edited";
21
+ }): void;
22
+ trackQuestionTextboxClicked?(params: {
23
+ entry_method: "tap" | "keyboard_focus";
24
+ textbox_empty: boolean;
25
+ }): void;
26
+ trackPreSuggestedQuestionSelected?(params: {
27
+ question_text_loaded: string;
28
+ chip_index: number;
29
+ previous_chip_index: number | null;
30
+ user_had_custom_text: boolean;
31
+ }): void;
32
+ }
33
+ export interface ThreeSkuPlanBottomSheetProps {
34
+ isOpen: boolean;
35
+ onClose: () => void;
36
+ selectedPlan: ThreeSkuPlan | null;
37
+ onSelectPlan: (plan: ThreeSkuPlan) => void;
38
+ onProceed: (plan: ThreeSkuPlan, question?: string) => void;
39
+ plans?: ThreeSkuPlan[];
40
+ /** Whether the user is on the international (global) flow. Used for default plan pricing. */
41
+ isGlobal?: boolean;
42
+ /** Locale for built-in translations. Defaults to "en". Falls back to the passed `t` prop for any key not found locally. */
43
+ locale?: ThreeSkuLocale;
44
+ t?: (key: string) => string;
45
+ analytics?: ThreeSkuAnalytics;
46
+ }
47
+ export declare const ThreeSkuPlanBottomSheet: React.FC<ThreeSkuPlanBottomSheetProps>;
@@ -0,0 +1,3 @@
1
+ export declare const IncludedFeatureIcon: () => JSX.Element;
2
+ export declare const ExcludedFeatureIcon: () => JSX.Element;
3
+ export declare const TrendUpIcon: () => JSX.Element;
@@ -0,0 +1,81 @@
1
+ import { KundliPlan } from '../KundliPlanBottomSheet/types';
2
+ /**
3
+ * Self-contained en/hi strings for the 3-SKU experiment bottom sheet.
4
+ */
5
+ export declare const THREE_SKU_STRINGS: {
6
+ readonly en: {
7
+ readonly planSheetTitle: "Choose your Kundli Plan";
8
+ readonly planProceedToPayment: "Proceed to Payment";
9
+ readonly planAstrologerHeading: "Top astrologers who will consult you";
10
+ readonly planMostPopular: "Most popular";
11
+ readonly planNameBasic: "Kundli Report";
12
+ readonly planNameQuestion: "Kundli + 1 Question";
13
+ readonly planNameGuidance: "Kundli + Consultation";
14
+ readonly planSaveLabel: "Save ~25%";
15
+ readonly planFeatureDetailedInsights: "Detailed insights on love, marriage, career, health & finances";
16
+ readonly planFeaturePracticalRemedies: "Practical remedies like gemstones, rudraksha & mantras";
17
+ readonly planFeatureClearLanguage: "Clear, easy-to-understand language by expert astrologers";
18
+ readonly planFeatureAstrologyConsultant: "Astrology consultant";
19
+ readonly planFeaturePersonalizedReading: "Personalized reading";
20
+ readonly planFeatureIncludesPremium: "Includes everything in the Premium Personalized Kundli";
21
+ readonly planFeatureExpertAnswers: "PLUS: Expert Astrologer will answer your question in detail and suggest actionable remedies";
22
+ readonly planFeatureFollowUpQuestions: "Go deeper into asking follow up questions";
23
+ readonly planFeatureNoConsultation: "No personal consultation call";
24
+ readonly planFeaturePlusConsultation: "PLUS: A 30-minute private consultation with an expert astrologer";
25
+ readonly planFeatureRealTimeAnswers: "Get real-time answers & guidance for your biggest life concerns";
26
+ readonly planFeatureTailoredRemedies: "Remedies & timelines tailored to your unique birth chart";
27
+ readonly planQuestionLabel: "Ask your Question";
28
+ readonly planQuestionHeader: "Ask our top astrologers";
29
+ readonly planQuestionPlaceholder: "Ask follow up question";
30
+ readonly planQuestionHint: "Please enter your question to continue.";
31
+ readonly planQuestionChip1: "When will I get married?";
32
+ readonly planQuestionChip2: "Will my marriage be love, arranged, or both?";
33
+ readonly planQuestionChip3: "Is there any Dosha in my Kundli?";
34
+ readonly planQuestionChip4: "Is my current relationship right for me?";
35
+ readonly planAstrologerExp: "{{years}} Years of experience";
36
+ };
37
+ readonly hi: {
38
+ readonly planSheetTitle: "अपनी कुंडली प्लान चुनें";
39
+ readonly planProceedToPayment: "पेमेंट करें";
40
+ readonly planAstrologerHeading: "हम आपके लिए नीचे दिए गए टॉप ज्योतिषियों में से एक को चुनेंगे";
41
+ readonly planMostPopular: "सबसे लोकप्रिय";
42
+ readonly planNameBasic: "कुंडली रिपोर्ट";
43
+ readonly planNameQuestion: "कुंडली + 1 सवाल";
44
+ readonly planNameGuidance: "कुंडली रिपोर्ट + ज्योतिषी से बात";
45
+ readonly planSaveLabel: "~25% बचाएं";
46
+ readonly planFeatureDetailedInsights: "प्यार, विवाह, करियर, स्वास्थ्य और वित्त पर गहरी जानकारी";
47
+ readonly planFeaturePracticalRemedies: "रत्न, रुद्राक्ष और मंत्रों जैसे व्यावहारिक उपाय";
48
+ readonly planFeatureClearLanguage: "विशेषज्ञ ज्योतिषियों द्वारा स्पष्ट और आसान भाषा में";
49
+ readonly planFeatureAstrologyConsultant: "ज्योतिषी से बात नहीं होगी";
50
+ readonly planFeaturePersonalizedReading: "आपके लिए खास रीडिंग";
51
+ readonly planFeatureIncludesPremium: "प्रीमियम कुंडली रिपोर्ट में जो कुछ भी है, सब मिलेगा";
52
+ readonly planFeatureExpertAnswers: "PLUS: विशेषज्ञ ज्योतिषी आपके सवाल का विस्तार से जवाब देंगे और समाधान बताएंगे";
53
+ readonly planFeatureFollowUpQuestions: "आगे के सवाल पूछने की सुविधा";
54
+ readonly planFeatureNoConsultation: "कोई व्यक्तिगत परामर्श कॉल नहीं";
55
+ readonly planFeaturePlusConsultation: "साथ ही: एक अनुभवी ज्योतिषी से 30 मिनट की प्राइवेट बात";
56
+ readonly planFeatureRealTimeAnswers: "अपनी सबसे बड़ी परेशानियों का सीधा जवाब और सही सलाह पाएं";
57
+ readonly planFeatureTailoredRemedies: "आपकी कुंडली के हिसाब से उपाय और सही समय की जानकारी";
58
+ readonly planQuestionLabel: "अपना सवाल पूछें";
59
+ readonly planQuestionHeader: "अपने सवाल हमारे टॉप ज्योतिषियों से पूछें";
60
+ readonly planQuestionPlaceholder: "फॉलो अप सवाल लिखें";
61
+ readonly planQuestionHint: "जारी रखने के लिए अपना सवाल लिखें।";
62
+ readonly planQuestionChip1: "मेरी शादी कब होगी?";
63
+ readonly planQuestionChip2: "मेरी शादी प्रेम, अरेंज, या दोनों में से कैसी होगी?";
64
+ readonly planQuestionChip3: "क्या मेरी कुंडली में कोई दोष है?";
65
+ readonly planQuestionChip4: "क्या मेरा मौजूदा रिश्ता मेरे लिए सही है?";
66
+ readonly planAstrologerExp: "साल का अनुभव";
67
+ };
68
+ };
69
+ export type ThreeSkuLocale = keyof typeof THREE_SKU_STRINGS;
70
+ export interface ThreeSkuPlan extends KundliPlan {
71
+ supportsQuestion?: boolean;
72
+ }
73
+ export declare const getThreeSkuDefaultPlans: (isGlobal: boolean) => ThreeSkuPlan[];
74
+ export declare const CHIP_KEYS: readonly ["planQuestionChip1", "planQuestionChip2", "planQuestionChip3", "planQuestionChip4"];
75
+ export declare const TOP_ASTROLOGER_AVATARS: {
76
+ id: "jyoti" | "samiksha" | "neeraj";
77
+ imageUrl: "https://srm-cdn.a4b.io/yoda/1773992823100.webp" | "https://srm-cdn.a4b.io/yoda/1773992841106.webp" | "https://srm-cdn.a4b.io/yoda/1773992858276.webp";
78
+ name: "Astro Sadhana" | "Astro Samiksha" | "Astro Neeraj";
79
+ }[];
80
+ export declare const MAX_QUESTION_LENGTH = 5000;
81
+ export declare const MAX_TEXTAREA_HEIGHT_PX = 84;
@@ -0,0 +1,4 @@
1
+ export { ThreeSkuPlanBottomSheet } from './ThreeSkuPlanBottomSheet';
2
+ export { getThreeSkuDefaultPlans } from './constants';
3
+ export type { ThreeSkuPlanBottomSheetProps, ThreeSkuAnalytics } from './ThreeSkuPlanBottomSheet';
4
+ export type { ThreeSkuPlan, ThreeSkuLocale } from './constants';