@srimandir/old-dosha-calculator 2.1.7 → 2.2.0
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/DoshaResultsFull/DoshaResultsFull.d.ts +4 -1
- package/dist/components/HeaderV2.d.ts +3 -1
- package/dist/components/IndexV2.d.ts +3 -1
- package/dist/components/SriMandirPujaCarousel.d.ts +3 -1
- package/dist/components/SriMandirPujaVerticalCard.d.ts +4 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/lib/analytics.d.ts +7 -0
- package/dist/old-dosha-calculator.js +5190 -3414
- package/dist/old-dosha-calculator.js.map +1 -1
- package/dist/old-dosha-calculator.umd.cjs +86 -25
- package/dist/old-dosha-calculator.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/image.d.ts +18 -0
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DoshaCalculationResult, BirthDetails } from '../../types/dosha-api';
|
|
3
3
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
4
|
+
import { DoshaAnalytics } from '../../lib/analytics';
|
|
4
5
|
export interface DoshaResultsFullProps {
|
|
5
6
|
result: DoshaCalculationResult;
|
|
6
7
|
t: (key: string) => string;
|
|
@@ -28,5 +29,7 @@ export interface DoshaResultsFullProps {
|
|
|
28
29
|
problemAreaIds?: string[];
|
|
29
30
|
/** Custom problem text when "other" is selected */
|
|
30
31
|
customProblemText?: string;
|
|
32
|
+
/** Analytics implementation for tracking events */
|
|
33
|
+
analytics?: DoshaAnalytics;
|
|
31
34
|
}
|
|
32
|
-
export declare function DoshaResultsFull({ result, t, onEdit, className, kundaliSectionId, feedbackEmail, renderPujaCard, isLoadingPujas, renderKundali, birthDetails, supabase, language, problemArea, problemAreaIds, customProblemText, }: DoshaResultsFullProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare function DoshaResultsFull({ result, t, onEdit, className, kundaliSectionId, feedbackEmail, renderPujaCard, isLoadingPujas, renderKundali, birthDetails, supabase, language, problemArea, problemAreaIds, customProblemText, analytics, }: DoshaResultsFullProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,5 +2,7 @@ import { DoshaAnalytics } from '../lib/analytics';
|
|
|
2
2
|
export interface HeaderV2Props {
|
|
3
3
|
/** Optional analytics implementation for tracking user interactions */
|
|
4
4
|
analytics?: DoshaAnalytics;
|
|
5
|
+
/** Whether the user is global (hides language toggle when true) */
|
|
6
|
+
isGlobal?: boolean;
|
|
5
7
|
}
|
|
6
|
-
export default function HeaderV2({ analytics }?: HeaderV2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function HeaderV2({ analytics, isGlobal }?: HeaderV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,8 @@ export interface IndexV2Props {
|
|
|
4
4
|
analytics?: DoshaAnalytics;
|
|
5
5
|
/** Google Maps API key for place autocomplete */
|
|
6
6
|
googleMapsApiKey?: string;
|
|
7
|
+
/** Whether the user is global (hides language toggle when true) */
|
|
8
|
+
isGlobal?: boolean;
|
|
7
9
|
}
|
|
8
|
-
declare const IndexV2: ({ analytics, googleMapsApiKey }?: IndexV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const IndexV2: ({ analytics, googleMapsApiKey, isGlobal }?: IndexV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export default IndexV2;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SriMandirPuja } from '../lib/sriMandirPujaHelpers';
|
|
2
|
-
|
|
2
|
+
import { DoshaAnalytics } from '../lib/analytics';
|
|
3
|
+
export declare const SriMandirPujaCarousel: ({ pujas, language, analytics, }: {
|
|
3
4
|
pujas: SriMandirPuja[];
|
|
4
5
|
doshaType?: string;
|
|
5
6
|
formData?: any;
|
|
6
7
|
variant?: string;
|
|
7
8
|
language?: string;
|
|
9
|
+
analytics?: DoshaAnalytics;
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SriMandirPuja } from '../lib/sriMandirPujaHelpers';
|
|
2
|
+
import { DoshaAnalytics } from '../lib/analytics';
|
|
2
3
|
export interface SriMandirPujaVerticalCardProps {
|
|
3
4
|
puja: SriMandirPuja;
|
|
4
5
|
doshaType: string;
|
|
@@ -6,5 +7,7 @@ export interface SriMandirPujaVerticalCardProps {
|
|
|
6
7
|
language: string;
|
|
7
8
|
onBookClick?: () => void | Promise<void>;
|
|
8
9
|
variant?: string;
|
|
10
|
+
/** Optional analytics callback */
|
|
11
|
+
analytics?: DoshaAnalytics;
|
|
9
12
|
}
|
|
10
|
-
export declare function SriMandirPujaVerticalCard({ puja, doshaType, language, onBookClick, }: SriMandirPujaVerticalCardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SriMandirPujaVerticalCard({ puja, doshaType, language, onBookClick, analytics, }: SriMandirPujaVerticalCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
package/dist/lib/analytics.d.ts
CHANGED
|
@@ -30,5 +30,12 @@ export interface DoshaAnalytics {
|
|
|
30
30
|
trackFaqQuestionClicked?(questionText: string, is_old_dosha?: boolean): void;
|
|
31
31
|
trackLanguageClicked?(selectedLanguage: string, is_old_dosha?: boolean): void;
|
|
32
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;
|
|
33
40
|
}
|
|
34
41
|
export declare const trackEvent: (eventName: string, properties?: any) => void;
|