@srimandir/kundli-generator 9.4.0 → 9.4.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.
- package/dist/analytics-qrcpYMLy.js +2994 -0
- package/dist/analytics-qrcpYMLy.js.map +1 -0
- package/dist/analytics.d.ts +0 -144
- package/dist/components/KundliForm/KundliForm.d.ts +1 -9
- package/dist/components/KundliForm/sections/UserInfoFormSection/UserInfoFormSection.d.ts +1 -5
- package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +8 -29
- package/dist/components/KundliPage/KundliContext.d.ts +1 -24
- package/dist/components/KundliPage/KundliPage.d.ts +1 -17
- package/dist/components/KundliPage/KundliPageV1.d.ts +1 -22
- package/dist/components/KundliPage/KundliPageVariant.d.ts +0 -5
- package/dist/components/KundliPage/sections/index.d.ts +0 -1
- package/dist/components/KundliPlanBottomSheet/KundliPlanBottomSheet.d.ts +3 -14
- package/dist/components/KundliPlanBottomSheet/PlanIcons.d.ts +0 -10
- package/dist/components/KundliPlanBottomSheet/index.d.ts +1 -4
- package/dist/components/KundliPlanBottomSheet/types.d.ts +0 -46
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +1 -11
- package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +0 -26
- package/dist/criticalCss-Bj5LpOlA.js +1914 -0
- package/dist/criticalCss-Bj5LpOlA.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/i18n/I18nContext.d.ts +1 -7
- package/dist/index.d.ts +0 -2
- package/dist/kundli-generator.js +27 -29
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/analytics-C7H9-2dZ.js +0 -3908
- package/dist/analytics-C7H9-2dZ.js.map +0 -1
- package/dist/components/KundliForm/sections/UserInfoFormSection/useAtlasPlacesAutocomplete.d.ts +0 -22
- package/dist/components/KundliPage/sections/UtmBannerSection/UtmBannerSection.d.ts +0 -8
- package/dist/components/KundliPage/sections/UtmBannerSection/index.d.ts +0 -2
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +0 -28
- package/dist/components/KundliPlanBottomSheet/consultationSlotDefaults.d.ts +0 -44
- package/dist/criticalCss-C-F4ZKYw.js +0 -2017
- package/dist/criticalCss-C-F4ZKYw.js.map +0 -1
package/dist/components/KundliForm/sections/UserInfoFormSection/useAtlasPlacesAutocomplete.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AtlasSearchLocalities } from './useGooglePlacesAutocomplete';
|
|
2
|
-
export interface AtlasPrediction {
|
|
3
|
-
id: string;
|
|
4
|
-
description: string;
|
|
5
|
-
secondary_text?: string;
|
|
6
|
-
lat: number;
|
|
7
|
-
lng: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Atlas-backed birth place autocomplete. Used when `googleMapsAutocompleteEnabled`
|
|
11
|
-
* is false, as an alternative to `useGooglePlacesAutocomplete`.
|
|
12
|
-
*/
|
|
13
|
-
export declare const useAtlasPlacesAutocomplete: (params: {
|
|
14
|
-
searchLocalities?: AtlasSearchLocalities;
|
|
15
|
-
restrictCountry?: string;
|
|
16
|
-
}) => {
|
|
17
|
-
predictions: AtlasPrediction[];
|
|
18
|
-
isSearching: boolean;
|
|
19
|
-
loadError: string | null;
|
|
20
|
-
searchPlaces: (query: string) => Promise<void>;
|
|
21
|
-
clearPredictions: () => void;
|
|
22
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { KundliImageComponent } from '../../../../types/image';
|
|
2
|
-
export interface UtmBannerSectionProps {
|
|
3
|
-
imageUrl: string;
|
|
4
|
-
altText: string;
|
|
5
|
-
imageComponent?: KundliImageComponent;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const UtmBannerSection: React.FC<UtmBannerSectionProps>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { KundliPlanAstrologer, ConsultationSlotSelection } from './types';
|
|
2
|
-
import { KundliAnalytics } from '../../analytics';
|
|
3
|
-
export interface ConsultationSlotModalProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
onProceed: (selection: ConsultationSlotSelection) => void;
|
|
7
|
-
astrologers: KundliPlanAstrologer[];
|
|
8
|
-
t?: (key: string, options?: any) => string | undefined;
|
|
9
|
-
analytics?: KundliAnalytics;
|
|
10
|
-
/**
|
|
11
|
-
* Report language the user selected in the kundli form (e.g. "hi", "te").
|
|
12
|
-
* Drives which consultation language is preselected (see
|
|
13
|
-
* `getDefaultConsultationLanguage`). Defaults to `KundliContext`'s live
|
|
14
|
-
* `formValues.language_code` when not passed explicitly — callers not
|
|
15
|
-
* connected to that context (e.g. a standalone retry flow) must pass it.
|
|
16
|
-
*/
|
|
17
|
-
reportLanguage?: string;
|
|
18
|
-
/**
|
|
19
|
-
* True for the "Book slot again" retry flow on /payment_success (payment
|
|
20
|
-
* already succeeded, original slot booking failed) — false/omitted for the
|
|
21
|
-
* original pre-payment booking flow. Tags every analytics event fired by
|
|
22
|
-
* this modal with `status: "pre_payment" | "post_payment"`, and hides the
|
|
23
|
-
* guidance-topic picker in the retry case (topic was already captured
|
|
24
|
-
* during the original pre-payment flow).
|
|
25
|
-
*/
|
|
26
|
-
isPostPayment?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const ConsultationSlotModal: React.FC<ConsultationSlotModalProps>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ConsultationSlotDate, ConsultationSlotPeriod, ConsultationSlotsByLanguage } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Formats an ISO datetime (e.g. "2026-08-03T09:00:00+05:30") into a short
|
|
4
|
-
* label like "9:00 AM". Reads the hour/minute directly off the string
|
|
5
|
-
* instead of going through `Date`, so the slot shows the exact wall-clock
|
|
6
|
-
* time the backend sent rather than being reinterpreted in the browser's
|
|
7
|
-
* local timezone.
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatSlotTime: (isoDateTime: string) => string;
|
|
10
|
-
/** Builds a short day-tab label ("Today" / "Tomorrow" / weekday) + day number for a "yyyy-MM-dd" date string. */
|
|
11
|
-
export declare const formatSlotDayLabel: (isoDate: string, referenceDate?: Date) => ConsultationSlotDate;
|
|
12
|
-
export declare const CONSULTATION_PERIOD_ORDER: ConsultationSlotPeriod[];
|
|
13
|
-
/**
|
|
14
|
-
* Guidance topic chips shown before slot selection. Frontend-only, static
|
|
15
|
-
* list — never fetched from an API. `labelKey` resolves via the `t` prop
|
|
16
|
-
* (falls back to `label` when no translation is provided).
|
|
17
|
-
*/
|
|
18
|
-
export declare const GUIDANCE_TOPICS: {
|
|
19
|
-
id: string;
|
|
20
|
-
labelKey: string;
|
|
21
|
-
label: string;
|
|
22
|
-
}[];
|
|
23
|
-
/**
|
|
24
|
-
* Consultation-language dropdown options shown on the slot selection screen.
|
|
25
|
-
* Matches the report-language codes the host app's preselect API returns
|
|
26
|
-
* availability for (`ConsultationSlotsByLanguage` keys). `labelKey` resolves
|
|
27
|
-
* via the `t` prop, reusing the same keys as the kundli form's report
|
|
28
|
-
* language chips (falls back to `label` when no translation is provided).
|
|
29
|
-
*/
|
|
30
|
-
export declare const CONSULTATION_LANGUAGE_OPTIONS: {
|
|
31
|
-
code: string;
|
|
32
|
-
labelKey: string;
|
|
33
|
-
label: string;
|
|
34
|
-
}[];
|
|
35
|
-
export declare const languageHasAvailability: (language: ConsultationSlotsByLanguage[string] | undefined) => boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Picks which consultation language should be preselected when the slot
|
|
38
|
-
* modal opens, based on the report language the user selected in the form:
|
|
39
|
-
* try that report language's default consultation language first, then its
|
|
40
|
-
* fallback, then — if neither has availability — whichever other language
|
|
41
|
-
* does, in `CONSULTATION_LANGUAGE_OPTIONS` order. Falls back to the default
|
|
42
|
-
* language itself if nothing has availability at all.
|
|
43
|
-
*/
|
|
44
|
-
export declare const getDefaultConsultationLanguage: (slotsByLanguage: ConsultationSlotsByLanguage, reportLanguage: string | null | undefined, isGlobal: boolean) => string;
|