@srimandir/kundli-generator 7.6.8 → 8.0.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-C_dP1LnR.js → analytics-AI15hzcE.js} +990 -987
- package/dist/analytics-AI15hzcE.js.map +1 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotFields.d.ts +34 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +2 -24
- package/dist/components/KundliPlanBottomSheet/KundliPlanBottomSheet.d.ts +1 -0
- package/dist/components/KundliPlanBottomSheet/index.d.ts +2 -0
- package/dist/{criticalCss-DB4q04n5.js → criticalCss-CKMR1Lnj.js} +2 -2
- package/dist/{criticalCss-DB4q04n5.js.map → criticalCss-CKMR1Lnj.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/kundli-generator.js +26 -25
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-C_dP1LnR.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { KundliPlanAstrologer, ConsultationSlotSelection } from './types';
|
|
2
|
+
import { KundliAnalytics } from '../../analytics';
|
|
3
|
+
export interface ConsultationSlotFieldsProps {
|
|
4
|
+
onProceed: (selection: ConsultationSlotSelection) => void;
|
|
5
|
+
astrologers: KundliPlanAstrologer[];
|
|
6
|
+
t?: (key: string, options?: any) => string | undefined;
|
|
7
|
+
analytics?: KundliAnalytics;
|
|
8
|
+
/**
|
|
9
|
+
* Report language the user selected in the kundli form (e.g. "hi", "te").
|
|
10
|
+
* Drives which consultation language is preselected (see
|
|
11
|
+
* `getDefaultConsultationLanguage`). Defaults to `KundliContext`'s live
|
|
12
|
+
* `formValues.language_code` when not passed explicitly — callers not
|
|
13
|
+
* connected to that context (e.g. a standalone post-payment screen) must
|
|
14
|
+
* pass it.
|
|
15
|
+
*/
|
|
16
|
+
reportLanguage?: string;
|
|
17
|
+
/**
|
|
18
|
+
* True for the "Book slot again" retry flow / any post-payment booking
|
|
19
|
+
* screen (payment already succeeded) — false/omitted for the original
|
|
20
|
+
* pre-payment booking flow. Tags every analytics event fired here with
|
|
21
|
+
* `status: "pre_payment" | "post_payment"`.
|
|
22
|
+
*/
|
|
23
|
+
isPostPayment?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to show the guidance-topic picker below the slot grid. Defaults
|
|
26
|
+
* to `!isPostPayment` (the original behavior: ask once, pre-payment; the
|
|
27
|
+
* retry modal reuses the topic already captured then). Pass explicitly
|
|
28
|
+
* when a caller needs the two independent — e.g. a host that collects the
|
|
29
|
+
* topic post-payment on first booking still wants it asked even though
|
|
30
|
+
* `isPostPayment` is (correctly, for analytics) `true`.
|
|
31
|
+
*/
|
|
32
|
+
showGuidanceTopic?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const ConsultationSlotFields: React.FC<ConsultationSlotFieldsProps>;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface ConsultationSlotModalProps {
|
|
1
|
+
import { ConsultationSlotFieldsProps } from './ConsultationSlotFields';
|
|
2
|
+
export interface ConsultationSlotModalProps extends ConsultationSlotFieldsProps {
|
|
4
3
|
isOpen: boolean;
|
|
5
4
|
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
5
|
}
|
|
28
6
|
export declare const ConsultationSlotModal: React.FC<ConsultationSlotModalProps>;
|
|
@@ -34,3 +34,4 @@ export { PlanSheetHeader } from './PlanSheetHeader';
|
|
|
34
34
|
export { PlanFeatureList } from './PlanFeatureList';
|
|
35
35
|
export { AstrologerCard } from './AstrologerCard';
|
|
36
36
|
export { ConsultationSlotModal } from './ConsultationSlotModal';
|
|
37
|
+
export { ConsultationSlotFields } from './ConsultationSlotFields';
|
|
@@ -2,4 +2,6 @@ export { KundliPlanBottomSheet, getDefaultPlans } from './KundliPlanBottomSheet'
|
|
|
2
2
|
export type { KundliPlanBottomSheetProps, KundliPlan, ConsultationSlotSelection } from './KundliPlanBottomSheet';
|
|
3
3
|
export { ConsultationSlotModal } from './ConsultationSlotModal';
|
|
4
4
|
export type { ConsultationSlotModalProps } from './ConsultationSlotModal';
|
|
5
|
+
export { ConsultationSlotFields } from './ConsultationSlotFields';
|
|
6
|
+
export type { ConsultationSlotFieldsProps } from './ConsultationSlotFields';
|
|
5
7
|
export type { KundliPlanAstrologer, ConsultationSlot, ConsultationSlotDay, ConsultationSlotPeriod, ConsultationSlotsPreselectData, ConsultationSlotsByLanguage, FetchConsultationSlots, } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as e, h as ae, D as le, d as Ce, j as ge, c as Oe, u as Ne, L as de, S as Pe, n as Ie, t as Le, o as qe, k as Ke, P as Qe, F as He, U as Ge, p as We, q as ze } from "./analytics-AI15hzcE.js";
|
|
2
2
|
import { useRef as j, useState as I, useEffect as N, useCallback as ne, useMemo as fe } from "react";
|
|
3
3
|
import { UserReviewsSection as Ve, FAQAccordion as Ye, ContactUsSection as Xe, FooterShell as Je, FooterCTAButton as Ze, CircularMarquee as en, footerShellStyles as ee } from "@srimandir/astrology-common";
|
|
4
4
|
const nn = "_hero_1vvjv_1", tn = "_title_1vvjv_5", an = "_subtitle_1vvjv_10", sn = "_topicTags_1vvjv_23", on = "_tag_1vvjv_27", oe = {
|
|
@@ -2022,4 +2022,4 @@ export {
|
|
|
2022
2022
|
Ht as b,
|
|
2023
2023
|
Ea as c
|
|
2024
2024
|
};
|
|
2025
|
-
//# sourceMappingURL=criticalCss-
|
|
2025
|
+
//# sourceMappingURL=criticalCss-CKMR1Lnj.js.map
|