@srimandir/old-dosha-calculator 8.0.2 → 8.0.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 (54) hide show
  1. package/dist/assets/testimonial-left.png.d.ts +2 -0
  2. package/dist/assets/testimonial-right.png.d.ts +2 -0
  3. package/dist/components/DateOfBirthPicker.d.ts +10 -0
  4. package/dist/components/DoshaCalculatorV2.d.ts +9 -0
  5. package/dist/components/DoshaDateField/DoshaDateField.d.ts +7 -0
  6. package/dist/components/DoshaHelpers.d.ts +3 -0
  7. package/dist/components/DoshaResults.d.ts +8 -0
  8. package/dist/components/DoshaResultsFull/DoshaResultsFull.d.ts +35 -0
  9. package/dist/components/DoshaResultsFull/index.d.ts +2 -0
  10. package/dist/components/DoshaResultsView/DoshaResultsView.d.ts +8 -0
  11. package/dist/components/DoshaTimeField/DoshaTimeField.d.ts +9 -0
  12. package/dist/components/Footer.d.ts +1 -0
  13. package/dist/components/HeaderV2.d.ts +8 -0
  14. package/dist/components/HomePageExperiment.d.ts +8 -0
  15. package/dist/components/IndexV2.d.ts +11 -0
  16. package/dist/components/KundaliCard/KundaliCard.d.ts +11 -0
  17. package/dist/components/SriMandirPujaCarousel.d.ts +10 -0
  18. package/dist/components/SriMandirPujaVerticalCard.d.ts +13 -0
  19. package/dist/components/TestimonialsV2.d.ts +1 -0
  20. package/dist/components/TimeOfBirthPicker.d.ts +10 -0
  21. package/dist/components/TrustBarV2.d.ts +1 -0
  22. package/dist/components/icons.d.ts +16 -0
  23. package/dist/components/ui/accordion.d.ts +7 -0
  24. package/dist/components/ui/badge.d.ts +6 -0
  25. package/dist/components/ui/button.d.ts +11 -0
  26. package/dist/components/ui/card.d.ts +7 -0
  27. package/dist/components/ui/collapsible.d.ts +5 -0
  28. package/dist/components/ui/input.d.ts +3 -0
  29. package/dist/components/ui/label.d.ts +5 -0
  30. package/dist/components/ui/skeleton.d.ts +2 -0
  31. package/dist/components/ui/switch.d.ts +4 -0
  32. package/dist/config/experiments.d.ts +3 -0
  33. package/dist/hooks/useExperiment.d.ts +4 -0
  34. package/dist/hooks/useGooglePlacesAutocomplete.d.ts +29 -0
  35. package/dist/i18n/i18n.d.ts +2 -0
  36. package/dist/index.d.ts +12 -0
  37. package/dist/integrations/supabase/client.d.ts +1 -0
  38. package/dist/lib/analytics.d.ts +41 -0
  39. package/dist/lib/kundaliChart.d.ts +11 -0
  40. package/dist/lib/sriMandirPujaHelpers.d.ts +23 -0
  41. package/dist/lib/supabase-dosha.d.ts +31 -0
  42. package/dist/lib/utils.d.ts +2 -0
  43. package/dist/old-dosha-calculator.js +31627 -0
  44. package/dist/old-dosha-calculator.js.map +1 -0
  45. package/dist/old-dosha-calculator.umd.cjs +160 -0
  46. package/dist/old-dosha-calculator.umd.cjs.map +1 -0
  47. package/dist/style.css +1 -0
  48. package/dist/types/dosha-api.d.ts +83 -0
  49. package/dist/types/image.d.ts +18 -0
  50. package/dist/utils/facebookPixel.d.ts +2 -0
  51. package/dist/utils/queryParams.d.ts +14 -0
  52. package/dist/utils/sriMandirPujas.d.ts +4 -0
  53. package/dist/utils/trafficTracking.d.ts +13 -0
  54. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ declare const _default: "/placeholder-testimonial-left.png";
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: "/placeholder-testimonial-right.png";
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface DateOfBirthPickerProps {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ error?: string;
6
+ disabled?: boolean;
7
+ onOpen?: () => void;
8
+ }
9
+ export declare const DateOfBirthPicker: React.FC<DateOfBirthPickerProps>;
10
+ export default DateOfBirthPicker;
@@ -0,0 +1,9 @@
1
+ import { DoshaAnalytics } from '../lib/analytics';
2
+ export interface DoshaCalculatorV2Props {
3
+ /** Optional analytics implementation for tracking user interactions */
4
+ analytics?: DoshaAnalytics;
5
+ /** Google Maps API key for place autocomplete (required for location search) */
6
+ googleMapsApiKey?: string;
7
+ }
8
+ declare const DoshaCalculatorV2: ({ analytics, googleMapsApiKey }?: DoshaCalculatorV2Props) => import("react").JSX.Element;
9
+ export default DoshaCalculatorV2;
@@ -0,0 +1,7 @@
1
+ export interface DoshaDateFieldProps {
2
+ id: string;
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ className?: string;
6
+ }
7
+ export declare function DoshaDateField({ id, value, onChange, className, }: DoshaDateFieldProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const DoshaResults: ({ results }: any) => import("react").JSX.Element;
2
+ export declare const DateOfBirthPicker: ({ value, onChange, error }: any) => import("react").JSX.Element;
3
+ export declare const TimeOfBirthPicker: ({ value, onChange, error }: any) => import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface DoshaResultsProps {
3
+ results: any;
4
+ birthDetails?: any;
5
+ onEdit?: () => void;
6
+ }
7
+ export declare const DoshaResults: React.FC<DoshaResultsProps>;
8
+ export default DoshaResults;
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ import { DoshaCalculationResult, BirthDetails } from '../../types/dosha-api';
3
+ import { SupabaseClient } from '@supabase/supabase-js';
4
+ import { DoshaAnalytics } from '../../lib/analytics';
5
+ export interface DoshaResultsFullProps {
6
+ result: DoshaCalculationResult;
7
+ t: (key: string) => string;
8
+ onEdit?: () => void;
9
+ className?: string;
10
+ /** Optional: scroll target id for "View Kundli" / "Go Back" (e.g. "kundali-chart-section"). If not set, those links are hidden. */
11
+ kundaliSectionId?: string;
12
+ /** Optional: contact email for feedback section */
13
+ feedbackEmail?: string;
14
+ /** Render a puja card for the given dosha type (mangal, kaal-sarp, pitra, shani). When provided, shown in the "Puja Recommendation" section per dosha. */
15
+ renderPujaCard?: (doshaType: string) => React.ReactNode;
16
+ /** When true, show loading state in the puja recommendation area. */
17
+ isLoadingPujas?: boolean;
18
+ /** Optional: render the Kundali chart section (e.g. KundaliCard). When provided, overrides built-in KundaliCard. */
19
+ renderKundali?: () => React.ReactNode;
20
+ /** Birth details from form submit; when set with supabase, built-in KundaliCard is shown (unless renderKundali is provided). */
21
+ birthDetails?: BirthDetails | null;
22
+ /** Supabase client for fetching Kundali chart; required for built-in KundaliCard. */
23
+ supabase?: SupabaseClient | null;
24
+ /** Current locale (e.g. 'en' or 'hi') for KundaliCard. */
25
+ language?: string;
26
+ /** Problem area text for personalized impact generation */
27
+ problemArea?: string;
28
+ /** Array of problem area IDs */
29
+ problemAreaIds?: string[];
30
+ /** Custom problem text when "other" is selected */
31
+ customProblemText?: string;
32
+ /** Analytics implementation for tracking events */
33
+ analytics?: DoshaAnalytics;
34
+ }
35
+ export declare function DoshaResultsFull({ result, t, onEdit, className, kundaliSectionId, feedbackEmail, renderPujaCard, isLoadingPujas, renderKundali, birthDetails, supabase, language, problemArea, problemAreaIds, customProblemText, analytics, }: DoshaResultsFullProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { DoshaResultsFull } from './DoshaResultsFull';
2
+ export type { DoshaResultsFullProps } from './DoshaResultsFull';
@@ -0,0 +1,8 @@
1
+ import { DoshaCalculationResult } from '../../types/dosha-api';
2
+ export interface DoshaResultsViewProps {
3
+ result: DoshaCalculationResult;
4
+ t: (key: string) => string;
5
+ onEdit?: () => void;
6
+ className?: string;
7
+ }
8
+ export declare function DoshaResultsView({ result, t, onEdit, className }: DoshaResultsViewProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface DoshaTimeFieldProps {
2
+ id: string;
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ }
9
+ export declare function DoshaTimeField({ id, value, onChange, placeholder, disabled, className, }: DoshaTimeFieldProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Footer(): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { DoshaAnalytics } from '../lib/analytics';
2
+ export interface HeaderV2Props {
3
+ /** Optional analytics implementation for tracking user interactions */
4
+ analytics?: DoshaAnalytics;
5
+ /** Whether the user is global (hides language toggle when true) */
6
+ isGlobal?: boolean;
7
+ }
8
+ export default function HeaderV2({ analytics, isGlobal }?: HeaderV2Props): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Home page wrapper that handles A/B testing between v1 and v5
3
+ *
4
+ * v1: Original design (IndexV2)
5
+ * v5: New copy - "Free Birth Chart Analysis to Find Right Puja for You"
6
+ */
7
+ declare const HomePageExperiment: () => import("react").JSX.Element;
8
+ export default HomePageExperiment;
@@ -0,0 +1,11 @@
1
+ import { DoshaAnalytics } from '../lib/analytics';
2
+ export interface IndexV2Props {
3
+ /** Optional analytics implementation for tracking user interactions */
4
+ analytics?: DoshaAnalytics;
5
+ /** Google Maps API key for place autocomplete */
6
+ googleMapsApiKey?: string;
7
+ /** Whether the user is global (hides language toggle when true) */
8
+ isGlobal?: boolean;
9
+ }
10
+ declare const IndexV2: ({ analytics, googleMapsApiKey, isGlobal }?: IndexV2Props) => import("react").JSX.Element;
11
+ export default IndexV2;
@@ -0,0 +1,11 @@
1
+ import { SupabaseClient } from '@supabase/supabase-js';
2
+ import { BirthDetails } from '../../lib/kundaliChart';
3
+ export interface KundaliCardProps {
4
+ birthDetails: BirthDetails;
5
+ supabase: SupabaseClient;
6
+ /** Current language for chart labels (e.g. 'en' or 'hi') */
7
+ language: string;
8
+ /** Translation function for UI strings */
9
+ t: (key: string) => string;
10
+ }
11
+ export declare function KundaliCard({ birthDetails, supabase, language, t }: KundaliCardProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SriMandirPuja } from '../lib/sriMandirPujaHelpers';
2
+ import { DoshaAnalytics } from '../lib/analytics';
3
+ export declare const SriMandirPujaCarousel: ({ pujas, language, analytics, }: {
4
+ pujas: SriMandirPuja[];
5
+ doshaType?: string;
6
+ formData?: any;
7
+ variant?: string;
8
+ language?: string;
9
+ analytics?: DoshaAnalytics;
10
+ }) => import("react").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { SriMandirPuja } from '../lib/sriMandirPujaHelpers';
2
+ import { DoshaAnalytics } from '../lib/analytics';
3
+ export interface SriMandirPujaVerticalCardProps {
4
+ puja: SriMandirPuja;
5
+ doshaType: string;
6
+ /** Current language (e.g. 'en' or 'hi') for title/temple/date/link. */
7
+ language: string;
8
+ onBookClick?: () => void | Promise<void>;
9
+ variant?: string;
10
+ /** Optional analytics callback */
11
+ analytics?: DoshaAnalytics;
12
+ }
13
+ export declare function SriMandirPujaVerticalCard({ puja, doshaType, language, onBookClick, analytics, }: SriMandirPujaVerticalCardProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TestimonialsV2(): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface TimeOfBirthPickerProps {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ error?: string;
6
+ disabled?: boolean;
7
+ onOpen?: () => void;
8
+ }
9
+ export declare const TimeOfBirthPicker: React.FC<TimeOfBirthPickerProps>;
10
+ export default TimeOfBirthPicker;
@@ -0,0 +1 @@
1
+ export default function TrustBarV2(): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps extends React.SVGProps<SVGSVGElement> {
3
+ }
4
+ export declare const AlertTriangle: React.FC<IconProps>;
5
+ export declare const CheckCircle: React.FC<IconProps>;
6
+ export declare const Info: React.FC<IconProps>;
7
+ export declare const Flame: React.FC<IconProps>;
8
+ export declare const Waves: React.FC<IconProps>;
9
+ export declare const Users: React.FC<IconProps>;
10
+ export declare const Moon: React.FC<IconProps>;
11
+ export declare const ArrowUp: React.FC<IconProps>;
12
+ export declare const ChevronDown: React.FC<IconProps>;
13
+ export declare const Loader2: React.FC<IconProps>;
14
+ export declare const ExternalLink: React.FC<IconProps>;
15
+ export declare const RotateCcw: React.FC<IconProps>;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline';
4
+ }
5
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { Badge };
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button, buttonVariants };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Card, CardHeader, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ declare const Collapsible: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ declare const CollapsibleTrigger: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
4
+ declare const CollapsibleContent: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
+ export { Input };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as LabelPrimitive from "@radix-ui/react-label";
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
+ export { Label };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
@@ -0,0 +1,3 @@
1
+ export declare const EXPERIMENTS: {
2
+ HOME_PAGE: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useExperiment: (experimentKey: string) => {
2
+ variant: string;
3
+ isLoading: boolean;
4
+ };
@@ -0,0 +1,29 @@
1
+ export interface PlacePrediction {
2
+ place_id: string;
3
+ description: string;
4
+ structured_formatting: {
5
+ main_text: string;
6
+ secondary_text: string;
7
+ };
8
+ }
9
+ export interface PlaceDetails {
10
+ display_name: string;
11
+ lat: number;
12
+ lng: number;
13
+ city?: string;
14
+ state?: string;
15
+ country?: string;
16
+ }
17
+ export declare const useGooglePlacesAutocomplete: (params?: {
18
+ apiKey?: string;
19
+ language?: string;
20
+ restrictCountry?: string;
21
+ }) => {
22
+ isLoaded: boolean;
23
+ predictions: PlacePrediction[];
24
+ isSearching: boolean;
25
+ loadError: string | null;
26
+ searchPlaces: (query: string) => Promise<void>;
27
+ getPlaceDetails: (placeId: string) => Promise<PlaceDetails | null>;
28
+ clearPredictions: () => void;
29
+ };
@@ -0,0 +1,2 @@
1
+ import { default as i18n } from 'i18next';
2
+ export default i18n;
@@ -0,0 +1,12 @@
1
+ export { default as IndexV2 } from './components/IndexV2';
2
+ export { default as DoshaCalculatorV2 } from './components/DoshaCalculatorV2';
3
+ export { default as HeaderV2 } from './components/HeaderV2';
4
+ export { default as TestimonialsV2 } from './components/TestimonialsV2';
5
+ export { default as TrustBarV2 } from './components/TrustBarV2';
6
+ export { default as Footer } from './components/Footer';
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';
@@ -0,0 +1 @@
1
+ export declare const supabase: import('@supabase/supabase-js').SupabaseClient<any, "public", "public", any, any>;
@@ -0,0 +1,41 @@
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
+ trackDoshaCalculatorResultBookCtaClicked?(params: {
34
+ position: string;
35
+ url: string;
36
+ isOldDosha?: boolean;
37
+ }): void;
38
+ trackDoshaCalculatorResultPageView?(is_old_dosha?: boolean): void;
39
+ trackDoshaCalculatorResultViewKundliClick?(is_old_dosha?: boolean): void;
40
+ }
41
+ export declare const trackEvent: (eventName: string, properties?: any) => void;
@@ -0,0 +1,11 @@
1
+ import { SupabaseClient } from '@supabase/supabase-js';
2
+ import { BirthDetails } from '../types/dosha-api';
3
+ export type { BirthDetails };
4
+ export type ChartType = 'North' | 'South';
5
+ export interface FetchKundaliOptions {
6
+ birthDetails: BirthDetails;
7
+ chartType: ChartType;
8
+ language: 'en' | 'hi';
9
+ signal?: AbortSignal;
10
+ }
11
+ export declare function fetchKundaliSvg(supabase: SupabaseClient, options: FetchKundaliOptions): Promise<string>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Sri Mandir Puja display helpers — same logic as celestial-puja-finder.
3
+ * Used by SriMandirPujaVerticalCard for title, temple, date, link, cover image.
4
+ */
5
+ export interface SriMandirPuja {
6
+ store_id: string;
7
+ pooja_title: string;
8
+ temple_name: string;
9
+ pooja_title_english?: string;
10
+ temple_name_english?: string;
11
+ cover_media_url?: string;
12
+ cover_media_url_english?: string;
13
+ puja_link: string;
14
+ puja_link_hindi?: string;
15
+ individual_pack_price_inr: number;
16
+ schedule_date_ist: string;
17
+ }
18
+ export declare function getPujaTitle(puja: SriMandirPuja | string, language: string): string;
19
+ export declare function getTempleName(puja: SriMandirPuja | string, language: string): string;
20
+ export declare function formatScheduleDate(dateStr: string, language?: string): string;
21
+ export declare function getPujaLink(puja: SriMandirPuja, language: string): string;
22
+ export declare function getCoverImageUrl(puja: SriMandirPuja, language: string): string;
23
+ export declare function getPujaForDosha(pujas: SriMandirPuja[], doshaType: string): SriMandirPuja | null;
@@ -0,0 +1,31 @@
1
+ import { SupabaseClient } from '@supabase/supabase-js';
2
+ import { DoshaSubmissionPayload, DoshaCalculationResponse } from '../types/dosha-api';
3
+ export interface SubmitDoshaOptions {
4
+ visitorId?: string;
5
+ sessionId?: string;
6
+ /** If true, insert into session_problem_statements (default true) */
7
+ trackProblemStatements?: boolean;
8
+ /** Problem statements and language for session_problem_statements */
9
+ problemStatements?: string[];
10
+ language?: string;
11
+ }
12
+ /**
13
+ * Insert session problem statements (fire-and-forget).
14
+ */
15
+ export declare function insertSessionProblemStatements(supabase: SupabaseClient, options: {
16
+ visitorId: string;
17
+ sessionId: string;
18
+ problemStatements: string[];
19
+ language?: string;
20
+ }): Promise<void>;
21
+ /**
22
+ * Invoke the calculate-dosha Edge Function and return the parsed response.
23
+ */
24
+ export declare function invokeCalculateDosha(supabase: SupabaseClient, payload: DoshaSubmissionPayload, headers?: {
25
+ 'x-visitor-id'?: string;
26
+ 'x-session-id'?: string;
27
+ }): Promise<DoshaCalculationResponse>;
28
+ /**
29
+ * Full submit: optionally insert session_problem_statements, then invoke calculate-dosha.
30
+ */
31
+ export declare function submitDoshaCalculation(supabase: SupabaseClient, payload: DoshaSubmissionPayload, options?: SubmitDoshaOptions): Promise<DoshaCalculationResponse>;
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;