@srimandir/pitru-paksh-common 2.56.0 → 2.56.2-beta.0

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.
@@ -7,5 +7,7 @@ export interface AudioQuestionCardProps extends React.HTMLAttributes<HTMLDivElem
7
7
  description?: React.ReactNode;
8
8
  /** When provided, plays once automatically on mount. */
9
9
  audioSrc?: string;
10
+ /** Analytics-only: fires whenever the mute/unmute button is tapped. */
11
+ onMuteToggle?: (muted: boolean) => void;
10
12
  }
11
13
  export declare const AudioQuestionCard: React.FC<AudioQuestionCardProps>;
@@ -6,4 +6,4 @@ import { GotraInfoModalProps } from './GotraInfoModal.types';
6
6
  *
7
7
  * All copy defaults to locale-specific text (`locale`, `'en'`/`'hi'`/`'te'`).
8
8
  */
9
- export declare function GotraInfoModal({ isOpen, onClose, locale, className }: GotraInfoModalProps): import("react").JSX.Element;
9
+ export declare function GotraInfoModal({ isOpen, onClose, onOkayClick, locale, className }: GotraInfoModalProps): import("react").JSX.Element;
@@ -3,6 +3,8 @@ export interface GotraInfoModalProps {
3
3
  isOpen: boolean;
4
4
  /** Called by the close (X) button, backdrop tap, Escape and the "Okay" button. */
5
5
  onClose: () => void;
6
+ /** Analytics-only: fires when the "Okay" button specifically is tapped, ahead of `onClose`. */
7
+ onOkayClick?: () => void;
6
8
  /**
7
9
  * Locale used to resolve the heading/body/button copy below. Defaults to
8
10
  * `'en'`.
@@ -13,7 +13,7 @@ import { AncestorNameEntry, PujaDetailsFormProps, PujaDetailsFormValues } from '
13
13
  * always the fixed, translated copy (not overridable) since this form only
14
14
  * ever collects an Indian mobile number or an email.
15
15
  */
16
- export declare function PujaDetailsForm({ locale, values, onValuesChange, isGlobal, gotraOptions, isSarvaPitru, onBackClick, amount, ritualsCountLabel, onPriceInfoClick, showPriceInfoIcon, canProceed, copy: copyOverride, proceedCtaLabel, proceedButtonProps, onProceedPayment, onProceedCtaClick, onConfirmModalOpen, onConfirmEditDetailsClick, onConfirmModalDismiss, className, }: PujaDetailsFormProps): import("react").JSX.Element;
16
+ export declare function PujaDetailsForm({ locale, values, onValuesChange, isGlobal, gotraOptions, isSarvaPitru, onBackClick, amount, ritualsCountLabel, onPriceInfoClick, showPriceInfoIcon, canProceed, copy: copyOverride, proceedCtaLabel, proceedButtonProps, onProceedPayment, onProceedCtaClick, onConfirmModalOpen, onConfirmEditDetailsClick, onConfirmModalDismiss, onGotraInfoOpen, onGotraInfoOkayClick, className, }: PujaDetailsFormProps): import("react").JSX.Element;
17
17
  /**
18
18
  * Convenience factory for a blank `PujaDetailsFormValues`, e.g. to seed local
19
19
  * component state. `kartaCount` sets how many Karta name fields render —
@@ -99,5 +99,9 @@ export interface PujaDetailsFormProps {
99
99
  onConfirmEditDetailsClick?: () => void;
100
100
  /** The `ConfirmPujaDetailsModal` closed via backdrop/X/Escape — not its own Edit Details or Pay. */
101
101
  onConfirmModalDismiss?: () => void;
102
+ /** The Gotra field's info sheet opened — its info icon was tapped. */
103
+ onGotraInfoOpen?: () => void;
104
+ /** The Gotra info sheet's own "Okay" CTA was tapped (not its X/backdrop). */
105
+ onGotraInfoOkayClick?: () => void;
102
106
  className?: string;
103
107
  }
@@ -28,5 +28,7 @@ export interface VideoPlayerProps {
28
28
  */
29
29
  fill?: boolean;
30
30
  autoPlay?: boolean;
31
+ /** Analytics-only: fires whenever the play/pause button is tapped. */
32
+ onPlayToggle?: (playing: boolean) => void;
31
33
  }
32
34
  export declare const VideoPlayer: React.ForwardRefExoticComponent<VideoPlayerProps & React.RefAttributes<HTMLDivElement>>;