@srimandir/dosha-calculator 1.0.74 → 1.0.76
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/analytics.d.ts +7 -0
- package/dist/components/DoshaCalculator/DoshaCalculator.d.ts +3 -1
- package/dist/components/DoshaFormSection/DoshaFormSection.d.ts +1 -0
- package/dist/components/SriMandirPujaVerticalCard/SriMandirPujaVerticalCard.d.ts +4 -1
- package/dist/dosha-calculator.js +4491 -5873
- package/dist/dosha-calculator.js.map +1 -1
- package/dist/dosha-calculator.umd.cjs +96 -35
- package/dist/dosha-calculator.umd.cjs.map +1 -1
- package/dist/i18n/I18nContext.d.ts +3 -2
- package/package.json +3 -3
package/dist/analytics.d.ts
CHANGED
|
@@ -29,4 +29,11 @@ export interface DoshaAnalytics {
|
|
|
29
29
|
trackFaqQuestionClicked?(questionText: string): void;
|
|
30
30
|
trackLanguageClicked?(selectedLanguage: string): void;
|
|
31
31
|
trackLanguageChanged?(lang: string): void;
|
|
32
|
+
trackDoshaCalculatorResultBookCtaClicked?(params: {
|
|
33
|
+
position: string;
|
|
34
|
+
url: string;
|
|
35
|
+
isOldDosha?: boolean;
|
|
36
|
+
}): void;
|
|
37
|
+
trackDoshaCalculatorResultPageView?(): void;
|
|
38
|
+
trackDoshaCalculatorResultViewKundliClick?(): void;
|
|
32
39
|
}
|
|
@@ -11,6 +11,8 @@ export interface DoshaCalculatorProps {
|
|
|
11
11
|
languageSelector?: React.ReactNode;
|
|
12
12
|
/** Whether to show language selector */
|
|
13
13
|
showLanguageSelector?: boolean;
|
|
14
|
+
/** Whether the user is global (hides language toggle when true) */
|
|
15
|
+
isGlobal?: boolean;
|
|
14
16
|
/** Read more reviews link (optional) */
|
|
15
17
|
readMoreReviewsHref?: string;
|
|
16
18
|
/** Supabase project URL - if provided with supabaseAnonKey, a client will be created automatically */
|
|
@@ -52,4 +54,4 @@ export interface DoshaCalculatorProps {
|
|
|
52
54
|
/** Optional image component (e.g. next/image adapter) for optimized images. */
|
|
53
55
|
imageComponent?: DoshaImageComponent;
|
|
54
56
|
}
|
|
55
|
-
export declare function DoshaCalculator({ className, logoUrl, languageSelector, showLanguageSelector, readMoreReviewsHref, supabaseUrl, supabaseAnonKey, googleMapsApiKey, supabase: supabaseProp, resolvePlace: resolvePlaceProp, onResult, onError, renderPujaCard, isLoadingPujas, renderKundali, kundaliSectionId, analytics, getFirstPujaInfo, onBookPujaClick, imageComponent, }: DoshaCalculatorProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function DoshaCalculator({ className, logoUrl, languageSelector, showLanguageSelector, isGlobal, readMoreReviewsHref, supabaseUrl, supabaseAnonKey, googleMapsApiKey, supabase: supabaseProp, resolvePlace: resolvePlaceProp, onResult, onError, renderPujaCard, isLoadingPujas, renderKundali, kundaliSectionId, analytics, getFirstPujaInfo, onBookPujaClick, imageComponent, }: DoshaCalculatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SriMandirPuja } from '../../lib/sriMandirPujaHelpers';
|
|
2
2
|
import { DoshaImageComponent } from '../../types/image';
|
|
3
|
+
import { DoshaAnalytics } from '../../analytics';
|
|
3
4
|
export interface SriMandirPujaVerticalCardProps {
|
|
4
5
|
puja: SriMandirPuja;
|
|
5
6
|
doshaType: string;
|
|
@@ -9,5 +10,7 @@ export interface SriMandirPujaVerticalCardProps {
|
|
|
9
10
|
variant?: string;
|
|
10
11
|
/** Optional image component for optimization */
|
|
11
12
|
imageComponent?: DoshaImageComponent;
|
|
13
|
+
/** Optional analytics callback */
|
|
14
|
+
analytics?: DoshaAnalytics;
|
|
12
15
|
}
|
|
13
|
-
export declare function SriMandirPujaVerticalCard({ puja, doshaType, language, onBookClick, imageComponent, }: SriMandirPujaVerticalCardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function SriMandirPujaVerticalCard({ puja, doshaType, language, onBookClick, imageComponent, analytics, }: SriMandirPujaVerticalCardProps): import("react/jsx-runtime").JSX.Element;
|