@srimandir/dosha-calculator 1.0.21 → 1.0.22
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/DoshaCalculator/DoshaCalculator.d.ts +1 -1
- package/dist/components/DoshaFormSection/DoshaFormSection.d.ts +2 -4
- package/dist/dosha-calculator.js +1931 -1927
- package/dist/dosha-calculator.js.map +1 -1
- package/dist/dosha-calculator.umd.cjs +32 -32
- package/dist/dosha-calculator.umd.cjs.map +1 -1
- package/package.json +3 -3
|
@@ -20,7 +20,7 @@ export interface DoshaCalculatorProps {
|
|
|
20
20
|
googleMapsApiKey?: string;
|
|
21
21
|
/** Supabase client for backend submission (Lovable / celestial-puja-finder compatible). Use this if you want to pass a pre-configured client instead of supabaseUrl + supabaseAnonKey. */
|
|
22
22
|
supabase?: SupabaseClient | null;
|
|
23
|
-
/**
|
|
23
|
+
/** @deprecated No longer needed - place resolution is now handled automatically at form level using Google Places autocomplete */
|
|
24
24
|
resolvePlace?: (place: string) => Promise<ResolvedPlace | null>;
|
|
25
25
|
/** Called with result when calculation succeeds; second arg is birth details for Kundali when available */
|
|
26
26
|
onResult?: (result: DoshaCalculationResult, birthDetails?: BirthDetails) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DoshaAnalytics } from '../../analytics';
|
|
2
2
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
3
|
-
import {
|
|
3
|
+
import { DoshaCalculationResult, BirthDetails } from '../../types/dosha-api';
|
|
4
4
|
export interface DoshaFormValues {
|
|
5
5
|
name: string;
|
|
6
6
|
gender: 'male' | 'female';
|
|
@@ -21,9 +21,7 @@ export interface DoshaFormSectionProps {
|
|
|
21
21
|
onFormValidityChange?: (isValid: boolean) => void;
|
|
22
22
|
/** Supabase client for submission (when set, footer CTA will submit) */
|
|
23
23
|
supabase?: SupabaseClient | null;
|
|
24
|
-
/**
|
|
25
|
-
resolvePlace?: (place: string) => Promise<ResolvedPlace | null>;
|
|
26
|
-
/** Google Maps API key for autocomplete suggestions (optional but recommended) */
|
|
24
|
+
/** Google Maps API key for place autocomplete and timezone resolution (required for form submission) */
|
|
27
25
|
googleMapsApiKey?: string;
|
|
28
26
|
/** Called with result on successful calculation. Second arg is birth details for Kundali chart when available. */
|
|
29
27
|
onResult?: (result: DoshaCalculationResult, birthDetails?: BirthDetails) => void;
|