@srimandir/astro-consultation 2.37.8 → 2.37.9

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.
Files changed (51) hide show
  1. package/dist/astro-consultation.js +4726 -1889
  2. package/dist/astro-consultation.js.map +1 -1
  3. package/dist/astro-consultation.umd.cjs +6 -2
  4. package/dist/astro-consultation.umd.cjs.map +1 -1
  5. package/dist/components/AstroConsultationSuccessModal/AstroConsultationSuccessModal.d.ts +4 -3
  6. package/dist/components/ConsultationAstrologerListPage/ListHeroV2.d.ts +8 -0
  7. package/dist/components/ConsultationAstrologerListPage/index.d.ts +1 -1
  8. package/dist/components/ConsultationAstrologerListPage/types.d.ts +21 -0
  9. package/dist/components/ConsultationBookingDetails/BirthDetailsCard.d.ts +18 -0
  10. package/dist/components/ConsultationBookingDetails/BirthDetailsForm.d.ts +31 -0
  11. package/dist/components/ConsultationBookingDetails/BirthDetailsSheet.d.ts +21 -0
  12. package/dist/components/ConsultationBookingDetails/BookingAccordion.d.ts +28 -0
  13. package/dist/components/ConsultationBookingDetails/BookingHeader.d.ts +9 -0
  14. package/dist/components/ConsultationBookingDetails/ConsultationBookingCard.d.ts +17 -0
  15. package/dist/components/ConsultationBookingDetails/ConsultationBookingDetails.d.ts +54 -0
  16. package/dist/components/ConsultationBookingDetails/ConsultationReportCard.d.ts +12 -0
  17. package/dist/components/ConsultationBookingDetails/HelpSupportCard.d.ts +11 -0
  18. package/dist/components/ConsultationBookingDetails/ManageBookingCard.d.ts +12 -0
  19. package/dist/components/ConsultationBookingDetails/RecordingPlayer.d.ts +11 -0
  20. package/dist/components/ConsultationBookingDetails/RemediesTimeline.d.ts +13 -0
  21. package/dist/components/ConsultationBookingDetails/TrustMarkers.d.ts +9 -0
  22. package/dist/components/ConsultationBookingDetails/birthDetailsValidation.d.ts +8 -0
  23. package/dist/components/ConsultationBookingDetails/icons.d.ts +17 -0
  24. package/dist/components/ConsultationBookingDetails/index.d.ts +29 -0
  25. package/dist/components/ConsultationBookingDetails/types.d.ts +106 -0
  26. package/dist/components/ConsultationDetailsCard/ConsultationDetailsCard.d.ts +1 -8
  27. package/dist/components/ConsultationLandingV2/ConsultationLandingPageV2.d.ts +33 -0
  28. package/dist/components/ConsultationLandingV2/LandingSectionsV2.d.ts +2 -0
  29. package/dist/components/ConsultationLandingV2/TrustStatsV2.d.ts +9 -0
  30. package/dist/components/ConsultationLandingV2/index.d.ts +2 -0
  31. package/dist/components/ConsultationPaymentPage/types.d.ts +5 -0
  32. package/dist/components/ConsultationRatingSheet/ConsultationRatingSheet.d.ts +36 -0
  33. package/dist/components/ConsultationRatingSheet/index.d.ts +2 -0
  34. package/dist/components/ConsultationSlotSheet/ConsultationSlotSheet.d.ts +12 -42
  35. package/dist/components/ConsultationSlotSheet/icons.d.ts +4 -0
  36. package/dist/components/MyConsultations/ConsultationListCard.d.ts +10 -0
  37. package/dist/components/MyConsultations/ConsultationsEmptyLanding.d.ts +13 -0
  38. package/dist/components/MyConsultations/ConsultationsEmptyState.d.ts +9 -0
  39. package/dist/components/MyConsultations/MyConsultationsHeader.d.ts +8 -0
  40. package/dist/components/MyConsultations/MyConsultationsList.d.ts +19 -0
  41. package/dist/components/MyConsultations/UnscheduledConsultationCard.d.ts +9 -0
  42. package/dist/components/MyConsultations/icons.d.ts +18 -0
  43. package/dist/components/MyConsultations/index.d.ts +13 -0
  44. package/dist/components/MyConsultations/types.d.ts +24 -0
  45. package/dist/i18n/hi.d.ts +0 -1
  46. package/dist/i18n/index.d.ts +1 -9
  47. package/dist/i18n/types.d.ts +3 -9
  48. package/dist/i18n/v2.d.ts +14 -0
  49. package/dist/index.d.ts +5 -2
  50. package/dist/style.css +1 -1
  51. package/package.json +3 -3
@@ -5,12 +5,13 @@ export interface AstroConsultationSuccessModalProps {
5
5
  isOpen: boolean;
6
6
  onClose: () => void;
7
7
  astrologer: AstroConsultationSuccessModalAstrologer;
8
- /** Booked call date, already formatted by the host, e.g. "Friday, 25 August 2026". */
9
8
  dateLabel: string;
10
- /** Booked call time range, already formatted, e.g. "11:30 AM - 12:00 PM". */
11
9
  timeRangeLabel: string;
12
- /** Translation lookup; every string falls back to the English default. */
10
+ previousLabel?: string;
11
+ title?: string;
12
+ showCloseButton?: boolean;
13
13
  t?: (key: string, options?: any) => string | undefined;
14
+ desktopModal?: boolean;
14
15
  className?: string;
15
16
  }
16
17
  export declare const AstroConsultationSuccessModal: React.FC<AstroConsultationSuccessModalProps>;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationTranslate } from '../../i18n';
3
+ import { ConsultationAstrologerListV2Assets } from './types';
4
+ export declare const ListHeroV2: React.FC<{
5
+ assets: ConsultationAstrologerListV2Assets;
6
+ title?: string;
7
+ t?: ConsultationTranslate;
8
+ }>;
@@ -1,3 +1,3 @@
1
1
  export { ConsultationAstrologerListPage } from './ConsultationAstrologerListPage';
2
2
  export { filterAstrologersByLanguages } from './filterAstrologers';
3
- export type { ConsultationAstrologerListPageProps, ConsultationLanguageChip, ConsultationAstrologerSelectContext, AstrologerCardClickAt, } from './types';
3
+ export type { ConsultationAstrologerListPageProps, ConsultationLanguageChip, ConsultationAstrologerListV2Assets, ConsultationAstrologerSelectContext, AstrologerCardClickAt, } from './types';
@@ -1,4 +1,5 @@
1
1
  import { AstrologerCardAstrologer, AstrologerCardIcons } from '../AstrologerCard';
2
+ import { AstrologerCardV2Icons } from '../ConsultationLandingV2/AstrologerCardV2';
2
3
  import { ConsultationTranslate } from '../../i18n';
3
4
  /** One language chip. */
4
5
  export interface ConsultationLanguageChip {
@@ -20,7 +21,27 @@ export interface ConsultationAstrologerSelectContext {
20
21
  position: number;
21
22
  clickAt: AstrologerCardClickAt;
22
23
  }
24
+ /**
25
+ * Imagery for `design="v2"`, as host-supplied URLs: the cards' icons plus the
26
+ * hero's. The sprites are the V2 landing's (`ConsultationLandingAssetsV2`).
27
+ */
28
+ export interface ConsultationAstrologerListV2Assets extends AstrologerCardV2Icons {
29
+ /** Sparkle sprite either side of the hero photos. */
30
+ sparkle: string;
31
+ /** Trust-strip badges; the rating star is the cards' `starBadge`. */
32
+ verifiedBadge: string;
33
+ globeBadge: string;
34
+ /** The hero's three round photos, left to right. */
35
+ heroAvatars: string[];
36
+ }
23
37
  export interface ConsultationAstrologerListPageProps {
38
+ /**
39
+ * `default`: Figma 14534:27908. `v2`: Figma 4361:155025 — the V2 landing's
40
+ * listing (hero, `AstrologerCardV2`, "Back to top"); needs `v2Assets`.
41
+ */
42
+ design?: 'default' | 'v2';
43
+ /** Required for `design="v2"`. */
44
+ v2Assets?: ConsultationAstrologerListV2Assets;
24
45
  /** Header back button. Omit to render the header without one. */
25
46
  onBack?: () => void;
26
47
  /** Hides the sticky header, for hosts whose own app bar already titles the page. */
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { BirthDetailsValues, PlaceSuggestion } from './BirthDetailsForm';
3
+ import { ConsultationBookingTranslate } from './types';
4
+ export type { BirthDetailsValues, PlaceSuggestion };
5
+ export interface BirthDetailsCardProps {
6
+ title?: string;
7
+ values: BirthDetailsValues;
8
+ onChange?: (patch: Partial<BirthDetailsValues>) => void;
9
+ onSubmit?: (values: BirthDetailsValues) => void;
10
+ submitLabel?: string;
11
+ submitDisabled?: boolean;
12
+ trustLine?: string;
13
+ illustrationUrl?: string;
14
+ t?: ConsultationBookingTranslate;
15
+ placeSuggestions?: PlaceSuggestion[];
16
+ onPlaceSelect?: (suggestion: PlaceSuggestion) => void;
17
+ }
18
+ export declare const BirthDetailsCard: React.FC<BirthDetailsCardProps>;
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate } from './types';
3
+ export interface BirthDetailsValues {
4
+ name: string;
5
+ dateOfBirth: string;
6
+ timeOfBirth: string;
7
+ placeOfBirth: string;
8
+ unknownTime?: boolean;
9
+ }
10
+ export interface PlaceSuggestion {
11
+ id: string;
12
+ label: string;
13
+ }
14
+ export interface BirthDetailsFormProps {
15
+ values: BirthDetailsValues;
16
+ onChange?: (patch: Partial<BirthDetailsValues>) => void;
17
+ onSubmit?: (values: BirthDetailsValues) => void;
18
+ formId?: string;
19
+ className?: string;
20
+ children?: React.ReactNode;
21
+ t?: ConsultationBookingTranslate;
22
+ /**
23
+ * Caller-fetched suggestions for the place-of-birth field (e.g. debounced
24
+ * against a locality-search API). This component only renders them — it
25
+ * never fetches on its own, so callers stay in control of debouncing,
26
+ * caching and which API to hit.
27
+ */
28
+ placeSuggestions?: PlaceSuggestion[];
29
+ onPlaceSelect?: (suggestion: PlaceSuggestion) => void;
30
+ }
31
+ export declare const BirthDetailsForm: React.FC<BirthDetailsFormProps>;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { BirthDetailsValues, PlaceSuggestion } from './BirthDetailsForm';
3
+ import { ConsultationBookingTranslate } from './types';
4
+ export interface BirthDetailsSheetProps {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ astrologer: {
8
+ name: string;
9
+ photoUrl?: string;
10
+ };
11
+ title?: string;
12
+ values: BirthDetailsValues;
13
+ onChange?: (patch: Partial<BirthDetailsValues>) => void;
14
+ onSubmit?: (values: BirthDetailsValues) => void;
15
+ submitLabel?: string;
16
+ trustLine?: string;
17
+ t?: ConsultationBookingTranslate;
18
+ placeSuggestions?: PlaceSuggestion[];
19
+ onPlaceSelect?: (suggestion: PlaceSuggestion) => void;
20
+ }
21
+ export declare const BirthDetailsSheet: React.FC<BirthDetailsSheetProps>;
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBill, ConsultationBookingDetailRow, ConsultationBookingTranslate } from './types';
3
+ export interface BookingAccordionProps {
4
+ title: string;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onToggle?: (open: boolean) => void;
8
+ children?: React.ReactNode;
9
+ }
10
+ export declare const BookingAccordion: React.FC<BookingAccordionProps>;
11
+ export interface BookingDetailsAccordionProps extends Omit<BookingAccordionProps, 'children' | 'title'> {
12
+ title?: string;
13
+ rows: ConsultationBookingDetailRow[];
14
+ t?: ConsultationBookingTranslate;
15
+ }
16
+ export declare const BookingDetailsAccordion: React.FC<BookingDetailsAccordionProps>;
17
+ export interface BillDetailsAccordionProps extends Omit<BookingAccordionProps, 'children' | 'title'> {
18
+ title?: string;
19
+ bill: ConsultationBill;
20
+ onDownloadInvoice?: () => void;
21
+ t?: ConsultationBookingTranslate;
22
+ }
23
+ export declare const BillDetailsAccordion: React.FC<BillDetailsAccordionProps>;
24
+ export interface InvoiceDownloadRowProps {
25
+ label: string;
26
+ onClick?: () => void;
27
+ }
28
+ export declare const InvoiceDownloadRow: React.FC<InvoiceDownloadRowProps>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate } from './types';
3
+ export interface BookingHeaderProps {
4
+ title: string;
5
+ onBack?: () => void;
6
+ onHelp?: () => void;
7
+ t?: ConsultationBookingTranslate;
8
+ }
9
+ export declare const BookingHeader: React.FC<BookingHeaderProps>;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingStatus, ConsultationBookingTranslate, MyConsultationsAstrologer } from './types';
3
+ export interface ConsultationBookingCardProps {
4
+ status: ConsultationBookingStatus;
5
+ statusLabel?: string;
6
+ scheduleLabel: string;
7
+ astrologer: MyConsultationsAstrologer;
8
+ onBookAgain?: () => void;
9
+ bookAgainLabel?: string;
10
+ bookAgainDisabled?: boolean;
11
+ note?: string;
12
+ userRating?: number;
13
+ onRate?: (stars: number) => void;
14
+ showRating?: boolean;
15
+ t?: ConsultationBookingTranslate;
16
+ }
17
+ export declare const ConsultationBookingCard: React.FC<ConsultationBookingCardProps>;
@@ -0,0 +1,54 @@
1
+ import { default as React } from 'react';
2
+ import { BirthDetailsCardProps } from './BirthDetailsCard';
3
+ import { ManageBookingCardProps } from './ManageBookingCard';
4
+ import { ConsultationBill, ConsultationBookingDetailRow, ConsultationBookingStatus, ConsultationBookingTranslate, ConsultationClosedPujas, ConsultationKundaliSummary, ConsultationRemedies, ConsultationRemedyStep, ConsultationTrustMarker, MyConsultationsAstrologer } from './types';
5
+ export interface ConsultationBookingDetailsProps {
6
+ bookingIdLabel: string;
7
+ status: ConsultationBookingStatus;
8
+ statusLabel?: string;
9
+ astrologer: MyConsultationsAstrologer;
10
+ scheduleLabel: string;
11
+ onBookAgain?: () => void;
12
+ bookAgainLabel?: string;
13
+ bookAgainDisabled?: boolean;
14
+ cardNote?: string;
15
+ birthDetails?: Omit<BirthDetailsCardProps, 't'>;
16
+ manageBooking?: Omit<ManageBookingCardProps, 't'>;
17
+ userRating?: number;
18
+ onRate?: (stars: number) => void;
19
+ showRating?: boolean;
20
+ reportTitle?: string;
21
+ recordingDurationLabel?: string;
22
+ recordingProgressPercent?: number;
23
+ onPlayRecording?: () => void;
24
+ showRecording?: boolean;
25
+ recordingPendingNote?: string;
26
+ reportPreparing?: ConsultationRemedies;
27
+ kundaliSummary?: ConsultationKundaliSummary;
28
+ topics?: string[];
29
+ topicsTitle?: string;
30
+ insights?: string[];
31
+ insightsTitle?: string;
32
+ remediesTitle?: string;
33
+ remedySteps?: ConsultationRemedyStep[];
34
+ onRemedyCta?: (step: ConsultationRemedyStep) => void;
35
+ onRemedyFaq?: (step: ConsultationRemedyStep) => void;
36
+ closedPujas?: ConsultationClosedPujas;
37
+ onReconsult?: () => void;
38
+ trustTitle?: string;
39
+ trustMarkers?: ConsultationTrustMarker[];
40
+ trustClosingLine?: string;
41
+ kundaliDetailsTitle?: string;
42
+ kundaliDetailRows?: ConsultationBookingDetailRow[];
43
+ bookingDetailRows?: ConsultationBookingDetailRow[];
44
+ bookingDetailsOpen?: boolean;
45
+ bill?: ConsultationBill;
46
+ onDownloadInvoice?: () => void;
47
+ supportAvatarUrl?: string;
48
+ onBack?: () => void;
49
+ onHelp?: () => void;
50
+ onChat?: () => void;
51
+ t?: ConsultationBookingTranslate;
52
+ className?: string;
53
+ }
54
+ export declare const ConsultationBookingDetails: React.FC<ConsultationBookingDetailsProps>;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate, ConsultationKundaliSummary } from './types';
3
+ export interface ConsultationReportCardProps {
4
+ kundali?: ConsultationKundaliSummary;
5
+ topics?: string[];
6
+ topicsTitle?: string;
7
+ insights?: string[];
8
+ insightsTitle?: string;
9
+ astrologerPhotoUrl?: string;
10
+ t?: ConsultationBookingTranslate;
11
+ }
12
+ export declare const ConsultationReportCard: React.FC<ConsultationReportCardProps>;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate } from './types';
3
+ export interface HelpSupportCardProps {
4
+ title?: string;
5
+ subtitle?: string;
6
+ ctaLabel?: string;
7
+ avatarUrl?: string;
8
+ onChat?: () => void;
9
+ t?: ConsultationBookingTranslate;
10
+ }
11
+ export declare const HelpSupportCard: React.FC<HelpSupportCardProps>;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate } from './types';
3
+ export interface ManageBookingCardProps {
4
+ title?: string;
5
+ note?: string;
6
+ noteTone?: 'default' | 'error' | 'success' | 'info';
7
+ actionLabel?: string;
8
+ disabled?: boolean;
9
+ onReschedule?: () => void;
10
+ t?: ConsultationBookingTranslate;
11
+ }
12
+ export declare const ManageBookingCard: React.FC<ManageBookingCardProps>;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate } from './types';
3
+ export interface RecordingPlayerProps {
4
+ label?: string;
5
+ durationLabel?: string;
6
+ progressPercent?: number;
7
+ onPlay?: () => void;
8
+ showPrivacyNote?: boolean;
9
+ t?: ConsultationBookingTranslate;
10
+ }
11
+ export declare const RecordingPlayer: React.FC<RecordingPlayerProps>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate, ConsultationClosedPujas, ConsultationRemedyStep } from './types';
3
+ export interface RemediesTimelineProps {
4
+ title?: string;
5
+ steps: ConsultationRemedyStep[];
6
+ onPujaClick?: (step: ConsultationRemedyStep) => void;
7
+ onFaqClick?: (step: ConsultationRemedyStep) => void;
8
+ onReconsult?: () => void;
9
+ nudgeAvatarUrl?: string;
10
+ closedPujas?: ConsultationClosedPujas;
11
+ t?: ConsultationBookingTranslate;
12
+ }
13
+ export declare const RemediesTimeline: React.FC<RemediesTimelineProps>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationBookingTranslate, ConsultationTrustMarker } from './types';
3
+ export interface TrustMarkersProps {
4
+ title?: string;
5
+ markers: ConsultationTrustMarker[];
6
+ closingLine?: string;
7
+ t?: ConsultationBookingTranslate;
8
+ }
9
+ export declare const TrustMarkers: React.FC<TrustMarkersProps>;
@@ -0,0 +1,8 @@
1
+ import { BirthDetailsValues } from './BirthDetailsCard';
2
+ export type BirthDetailsField = 'name' | 'dateOfBirth' | 'timeOfBirth' | 'placeOfBirth';
3
+ export type BirthDetailsErrors = Partial<Record<BirthDetailsField, string>>;
4
+ export declare function validateName(name: string): string | undefined;
5
+ export declare function validateDateOfBirth(dob: string, today?: Date): string | undefined;
6
+ export declare function validateTimeOfBirth(time: string, unknownTime?: boolean): string | undefined;
7
+ export declare function validatePlaceOfBirth(place: string): string | undefined;
8
+ export declare function validateBirthDetails(values: BirthDetailsValues, today?: Date): BirthDetailsErrors;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export declare const StatusCheckIcon: React.FC;
3
+ export declare const PhoneCallIcon: React.FC;
4
+ export declare const PlayIcon: React.FC;
5
+ export declare const ChevronIcon: React.FC<{
6
+ open?: boolean;
7
+ }>;
8
+ export declare const ReceiptIcon: React.FC;
9
+ export declare const DownloadIcon: React.FC;
10
+ export declare const PlayFillIcon: React.FC;
11
+ export declare const ShieldIcon: React.FC;
12
+ export declare const ArrowRightIcon: React.FC;
13
+ export declare const TempleIcon: React.FC;
14
+ export declare const CheckboxIcon: React.FC<{
15
+ checked?: boolean;
16
+ }>;
17
+ export declare const ChevronRightIcon: React.FC;
@@ -0,0 +1,29 @@
1
+ export { ConsultationBookingDetails } from './ConsultationBookingDetails';
2
+ export type { ConsultationBookingDetailsProps } from './ConsultationBookingDetails';
3
+ export { BookingHeader } from './BookingHeader';
4
+ export type { BookingHeaderProps } from './BookingHeader';
5
+ export { ConsultationBookingCard } from './ConsultationBookingCard';
6
+ export type { ConsultationBookingCardProps } from './ConsultationBookingCard';
7
+ export { RecordingPlayer } from './RecordingPlayer';
8
+ export type { RecordingPlayerProps } from './RecordingPlayer';
9
+ export { ConsultationReportCard } from './ConsultationReportCard';
10
+ export type { ConsultationReportCardProps } from './ConsultationReportCard';
11
+ export { RemediesTimeline } from './RemediesTimeline';
12
+ export type { RemediesTimelineProps } from './RemediesTimeline';
13
+ export { TrustMarkers } from './TrustMarkers';
14
+ export type { TrustMarkersProps } from './TrustMarkers';
15
+ export { BookingAccordion, BookingDetailsAccordion, BillDetailsAccordion, InvoiceDownloadRow, } from './BookingAccordion';
16
+ export type { BookingAccordionProps, BookingDetailsAccordionProps, BillDetailsAccordionProps, InvoiceDownloadRowProps, } from './BookingAccordion';
17
+ export { BirthDetailsCard } from './BirthDetailsCard';
18
+ export type { BirthDetailsCardProps, BirthDetailsValues } from './BirthDetailsCard';
19
+ export { BirthDetailsForm } from './BirthDetailsForm';
20
+ export type { BirthDetailsFormProps } from './BirthDetailsForm';
21
+ export { BirthDetailsSheet } from './BirthDetailsSheet';
22
+ export type { BirthDetailsSheetProps } from './BirthDetailsSheet';
23
+ export { validateBirthDetails, validateDateOfBirth, validateName, validatePlaceOfBirth, validateTimeOfBirth, } from './birthDetailsValidation';
24
+ export type { BirthDetailsErrors, BirthDetailsField } from './birthDetailsValidation';
25
+ export { ManageBookingCard } from './ManageBookingCard';
26
+ export type { ManageBookingCardProps } from './ManageBookingCard';
27
+ export { HelpSupportCard } from './HelpSupportCard';
28
+ export type { HelpSupportCardProps } from './HelpSupportCard';
29
+ export type { ConsultationBill, ConsultationBillLine, ConsultationBookingDetailRow, ConsultationBookingStatus, ConsultationClosedPujas, ConsultationKundaliAttribute, ConsultationReconsultNudge, ConsultationRemedies, ConsultationRemedyBooked, ConsultationRemedyLink, ConsultationKundaliSummary, ConsultationRemedyPuja, ConsultationRemedyRecommendation, ConsultationRemedyStep, ConsultationTrustMarker, } from './types';
@@ -0,0 +1,106 @@
1
+ import { MyConsultationsAstrologer } from '../MyConsultations/types';
2
+ export type ConsultationBookingStatus = 'completed' | 'upcoming' | 'live' | 'missed' | 'cancelled';
3
+ export type ConsultationDeliverableState = 'processing' | 'ready';
4
+ export interface ConsultationDeliverable {
5
+ title: string;
6
+ description?: string;
7
+ state: ConsultationDeliverableState;
8
+ }
9
+ export interface ConsultationRemedies {
10
+ title: string;
11
+ note?: string;
12
+ progressPercent?: number;
13
+ illustrationUrl?: string;
14
+ ctaLabel?: string;
15
+ }
16
+ export interface ConsultationBillLine {
17
+ label: string;
18
+ amount: string;
19
+ }
20
+ export interface ConsultationBill {
21
+ lines: ConsultationBillLine[];
22
+ totalLabel: string;
23
+ total: string;
24
+ invoiceLabel?: string;
25
+ }
26
+ export interface ConsultationBookingDetailRow {
27
+ id?: string;
28
+ label: string;
29
+ value: string;
30
+ previousValue?: string;
31
+ }
32
+ export type ConsultationBookingTranslate = (key: string, options?: any) => string | undefined;
33
+ export type { MyConsultationsAstrologer };
34
+ export interface ConsultationKundaliAttribute {
35
+ label: string;
36
+ iconUrl?: string;
37
+ }
38
+ export interface ConsultationKundaliSummary {
39
+ name: string;
40
+ birthLabel?: string;
41
+ attributes?: ConsultationKundaliAttribute[];
42
+ }
43
+ export interface ConsultationRemedyLink {
44
+ storeId?: string;
45
+ slug?: string;
46
+ serviceType?: 'puja' | 'chadhava';
47
+ deeplink?: string;
48
+ webUrl?: string;
49
+ }
50
+ export interface ConsultationRemedyPuja {
51
+ title: string;
52
+ imageUrl?: string;
53
+ templeName?: string;
54
+ dateLabel?: string;
55
+ ratingLabel?: string;
56
+ bookedLabel?: string;
57
+ ctaLabel?: string;
58
+ ribbonLabel?: string;
59
+ closed?: boolean;
60
+ link?: ConsultationRemedyLink;
61
+ }
62
+ export interface ConsultationReconsultNudge {
63
+ text: string;
64
+ ctaLabel: string;
65
+ avatarUrl?: string;
66
+ }
67
+ export interface ConsultationRemedyBooked {
68
+ headline: string;
69
+ title: string;
70
+ subtitle?: string;
71
+ imageUrl?: string;
72
+ ctaLabel?: string;
73
+ link?: ConsultationRemedyLink;
74
+ }
75
+ export interface ConsultationClosedPujas {
76
+ title: string;
77
+ items: {
78
+ id: string;
79
+ title: string;
80
+ imageUrl?: string;
81
+ }[];
82
+ nudge?: ConsultationReconsultNudge;
83
+ }
84
+ export interface ConsultationRemedyRecommendation {
85
+ title: string;
86
+ description?: string;
87
+ imageUrl?: string;
88
+ ctaLabel?: string;
89
+ link?: ConsultationRemedyLink;
90
+ }
91
+ export interface ConsultationRemedyStep {
92
+ id: string;
93
+ title?: string;
94
+ puja?: ConsultationRemedyPuja;
95
+ recommendation?: ConsultationRemedyRecommendation;
96
+ booked?: ConsultationRemedyBooked;
97
+ nudge?: ConsultationReconsultNudge;
98
+ faq?: {
99
+ question: string;
100
+ };
101
+ }
102
+ export interface ConsultationTrustMarker {
103
+ title: string;
104
+ subtitle?: string;
105
+ iconUrl?: string;
106
+ }
@@ -1,24 +1,17 @@
1
1
  import { default as React } from 'react';
2
2
  export interface ConsultationDetailsCardAstrologer {
3
3
  name: string;
4
- /** Falls back to the initial-letter avatar when absent. */
5
4
  photoUrl?: string;
6
- /** Rendered comma-joined; the line is dropped when empty. */
7
5
  languages?: string[];
8
- /** Hidden when 0/undefined. */
9
6
  rating?: number;
10
- /** Hidden when undefined. */
11
7
  experienceYears?: number;
12
8
  }
13
9
  export interface ConsultationDetailsCardProps {
14
10
  astrologer: ConsultationDetailsCardAstrologer;
15
- /** Booked call date, already formatted by the host, e.g. "Friday, 25 August 2026". */
16
11
  dateLabel: string;
17
- /** Booked call time range, already formatted, e.g. "11:30 AM - 12:00 PM". */
18
12
  timeRangeLabel: string;
19
- /** Rendered inside the astrologer section, below the profile row — e.g. a "Join Call" CTA. */
13
+ previousLabel?: string;
20
14
  astrologerFooter?: React.ReactNode;
21
- /** Translation lookup; every string falls back to the English default. */
22
15
  t?: (key: string, options?: any) => string | undefined;
23
16
  className?: string;
24
17
  }
@@ -0,0 +1,33 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationTranslate } from '../../i18n';
3
+ import { ConsultationHeroCard, ConsultationTestimonial } from '../LandingShared/types';
4
+ import { AstrologerSectionV2Language } from './LandingSectionsV2';
5
+ import { ConsultationLandingAssetsV2 } from './types';
6
+ /** The page's sections, in render order — the keys `sectionRef` is called with. */
7
+ export type ConsultationLandingV2Section = 'hero' | 'why' | 'how' | 'astrologers' | 'testimonials' | 'faq';
8
+ export interface ConsultationLandingPageV2Props {
9
+ assets: ConsultationLandingAssetsV2;
10
+ /** See `ConsultationHeroV2Props.cards`. */
11
+ heroCards: ConsultationHeroCard[] | null;
12
+ testimonials: ConsultationTestimonial[];
13
+ /** Chips above the astrologer cards. */
14
+ languages: AstrologerSectionV2Language[];
15
+ selectedLanguage: string | null;
16
+ onLanguageSelect: (code: string) => void;
17
+ /**
18
+ * What sits under the chips: the host's `AstrologerCardV2`s (it wires their
19
+ * taps and impressions), or its loading / error / empty state.
20
+ */
21
+ astrologers: React.ReactNode;
22
+ /** Omit to hide "View all astrologers". */
23
+ onViewAll?: () => void;
24
+ /** The sticky "Select and Book" CTA. */
25
+ onBookNow: () => void;
26
+ /** The astrologer section, e.g. as a scroll target. */
27
+ astrologerSectionRef?: React.Ref<HTMLElement>;
28
+ /** A ref for each section's wrapper, e.g. for impression tracking. */
29
+ sectionRef?: (section: ConsultationLandingV2Section) => React.Ref<HTMLDivElement> | undefined;
30
+ t?: ConsultationTranslate;
31
+ className?: string;
32
+ }
33
+ export declare const ConsultationLandingPageV2: React.FC<ConsultationLandingPageV2Props>;
@@ -36,9 +36,11 @@ export declare const TestimonialsSectionV2: React.FC<SectionProps & {
36
36
  /** Native `<details>`: open/close, keyboard and a11y without any state. */
37
37
  export declare const ConsultationFaqV2: React.FC<SectionProps & {
38
38
  assets: ConsultationLandingAssetsV2;
39
+ onChatSupport?: () => void;
39
40
  }>;
40
41
  export declare const ConsultationStickyCtaV2: React.FC<SectionProps & {
41
42
  assets: ConsultationLandingAssetsV2;
42
43
  onClick: () => void;
44
+ label?: string;
43
45
  }>;
44
46
  export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ConsultationTranslate } from '../../i18n';
3
+ import { ConsultationLandingAssetsV2 } from './types';
4
+ export interface ConsultationTrustStatsV2Props {
5
+ assets: Pick<ConsultationLandingAssetsV2, 'verifiedBadge' | 'starBadge' | 'globeBadge'>;
6
+ t?: ConsultationTranslate;
7
+ className?: string;
8
+ }
9
+ export declare const ConsultationTrustStatsV2: React.FC<ConsultationTrustStatsV2Props>;
@@ -3,7 +3,9 @@
3
3
  * 4361:154137), kept for reuse. Every export is V2-suffixed; the current
4
4
  * design owns the unsuffixed names.
5
5
  */
6
+ export { ConsultationLandingPageV2, type ConsultationLandingPageV2Props, type ConsultationLandingV2Section, } from './ConsultationLandingPageV2';
6
7
  export { ConsultationHeroV2, type ConsultationHeroV2Props } from './ConsultationHeroV2';
8
+ export { ConsultationTrustStatsV2, type ConsultationTrustStatsV2Props } from './TrustStatsV2';
7
9
  export { WhyConsultSectionV2, HowItWorksSectionV2, AstrologerSectionV2, TestimonialsSectionV2, ConsultationFaqV2, ConsultationStickyCtaV2, type AstrologerSectionV2Props, type AstrologerSectionV2Language, } from './LandingSectionsV2';
8
10
  export { AstrologerCardV2, type AstrologerCardV2Props, type AstrologerCardV2Icons, } from './AstrologerCardV2';
9
11
  export type { ConsultationLandingAssetsV2 } from './types';
@@ -35,6 +35,11 @@ export interface ConsultationPaymentSubmission {
35
35
  email: string;
36
36
  }
37
37
  export interface ConsultationPaymentPageProps {
38
+ /**
39
+ * `v2` (Figma 4361:156511): "Review your Consultation" — contact and summary
40
+ * as cards, a Consultation / Total amount bill, and "₹500/- · Pay now →".
41
+ */
42
+ design?: 'default' | 'v2';
38
43
  /** Header back button. Omit to render the header without one. */
39
44
  onBack?: () => void;
40
45
  hideHeader?: boolean;
@@ -0,0 +1,36 @@
1
+ import { default as React } from 'react';
2
+ import { MyConsultationsAstrologer } from '../MyConsultations/types';
3
+ import { ConsultationTranslate } from '../../i18n';
4
+ export interface ConsultationRatingSubmission {
5
+ rating: number;
6
+ tags: string[];
7
+ comment: string;
8
+ }
9
+ export interface ConsultationRatingSheetProps {
10
+ isOpen: boolean;
11
+ onClose: () => void;
12
+ astrologer: MyConsultationsAstrologer;
13
+ scheduleLabel: string;
14
+ initialRating?: number;
15
+ onSubmit: (submission: ConsultationRatingSubmission) => void;
16
+ isSubmitting?: boolean;
17
+ t?: ConsultationTranslate;
18
+ }
19
+ type Mood = 'bad' | 'okay' | 'good';
20
+ export declare const RATING_TAGS: Record<Mood, {
21
+ id: string;
22
+ key: string;
23
+ label: string;
24
+ }[]>;
25
+ export declare const ConsultationRatingSheet: React.FC<ConsultationRatingSheetProps>;
26
+ export interface ConsultationToastProps {
27
+ isVisible: boolean;
28
+ message?: string;
29
+ subtitle?: string;
30
+ placement?: 'top' | 'bottom';
31
+ t?: ConsultationTranslate;
32
+ }
33
+ export declare const ConsultationToast: React.FC<ConsultationToastProps>;
34
+ export declare const ConsultationFeedbackToast: React.FC<ConsultationToastProps>;
35
+ export type ConsultationFeedbackToastProps = ConsultationToastProps;
36
+ export {};
@@ -0,0 +1,2 @@
1
+ export { ConsultationRatingSheet, ConsultationFeedbackToast, ConsultationToast, RATING_TAGS, } from './ConsultationRatingSheet';
2
+ export type { ConsultationRatingSheetProps, ConsultationRatingSubmission, ConsultationFeedbackToastProps, ConsultationToastProps, } from './ConsultationRatingSheet';