@srimandir/pitru-paksh-common 2.53.0 → 2.53.1-develop-pr211-3c4120b

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @srimandir/pitru-paksh-common
2
+
3
+ ## 2.53.1-develop-pr211-3c4120b
4
+
5
+ ### Patch Changes
6
+
7
+ - Feat/auto npm publish flow
@@ -12,4 +12,4 @@ export interface AncestorTabProps {
12
12
  /** Omit to make the tab inert (not yet reachable). */
13
13
  onClick?: () => void;
14
14
  }
15
- export declare function AncestorTab({ label, avatarUrl, state, onClick }: AncestorTabProps): import("react").JSX.Element;
15
+ export declare const AncestorTab: import('react').ForwardRefExoticComponent<AncestorTabProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -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>;
@@ -12,6 +12,10 @@ export interface BookingSummaryBannerDefaultCopy {
12
12
  ancestorsLabel: string;
13
13
  ritualsLabel: string;
14
14
  performersLabel: string;
15
+ /** Singular forms, used when that stat's count is exactly 1 (e.g. "1 Performer" instead of "1 Performers"). */
16
+ ancestorLabel: string;
17
+ ritualLabel: string;
18
+ performerLabel: string;
15
19
  }
16
20
  export declare const BOOKING_SUMMARY_BANNER_DEFAULT_COPY: Record<BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy>;
17
21
  /** Resolves the default copy for `locale`, falling back to `'en'` when unsupported. */
@@ -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'`.
@@ -19,5 +19,9 @@ export interface OutcomeAncestorEditModalProps {
19
19
  removeWarningMessageSuffix?: string;
20
20
  removeWarningConfirmLabel: string;
21
21
  removeWarningCancelLabel: string;
22
+ /** Fired when the remove-warning dialog opens (the "Remove" link tap on an active ancestor) — for analytics; no UI effect. */
23
+ onRemoveWarningShown?: (ancestor: OutcomeAncestorPujaItem) => void;
24
+ /** Fired when the remove-warning dialog is cancelled without removing — for analytics; no UI effect. Confirming it is already observable via `onToggle`. */
25
+ onRemoveWarningCancel?: (ancestor: OutcomeAncestorPujaItem) => void;
22
26
  }
23
- export declare function OutcomeAncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningMessageSuffix, removeWarningConfirmLabel, removeWarningCancelLabel, }: OutcomeAncestorEditModalProps): import("react").JSX.Element | null;
27
+ export declare function OutcomeAncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningMessageSuffix, removeWarningConfirmLabel, removeWarningCancelLabel, onRemoveWarningShown, onRemoveWarningCancel, }: OutcomeAncestorEditModalProps): import("react").JSX.Element | null;
@@ -4,6 +4,6 @@ export interface PujaDetailsCarouselHeaderProps {
4
4
  title: string;
5
5
  specificity?: string;
6
6
  dateLabel?: string;
7
- locationLabel: string;
7
+ locationLabel?: string;
8
8
  }
9
9
  export declare function PujaDetailsCarouselHeader({ images, useCase, title, specificity, dateLabel, locationLabel, }: PujaDetailsCarouselHeaderProps): import("react").JSX.Element;
@@ -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 —
@@ -7,7 +7,7 @@
7
7
  * `PujaDetailsFormProps` explicitly to override a piece of it for a one-off
8
8
  * usage.
9
9
  */
10
- export type PujaDetailsFormLocale = 'en' | 'hi' | 'te' | 'kn' | 'ta';
10
+ export type PujaDetailsFormLocale = 'en' | 'hi' | 'te' | 'kn';
11
11
  export interface PujaDetailsFormDefaultCopy {
12
12
  topBarTitle: string;
13
13
  backButtonAriaLabel: string;
@@ -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
  }
@@ -84,6 +84,14 @@ export interface ServiceOfferCardProps extends Omit<React.HTMLAttributes<HTMLDiv
84
84
  * that's this card's only "read more" affordance in that case.
85
85
  */
86
86
  onReadMoreClick?: (isExpanded: boolean) => void;
87
+ /**
88
+ * Fired whenever the `ServiceOfferSheet` (`sheetPrice` set) opens or
89
+ * closes — `true` on every open (card-body tap, image tap, or the "Read
90
+ * more" toggle), `false` on close (backdrop tap or its close button).
91
+ * Unlike `onReadMoreClick`, this fires for every path that opens the
92
+ * sheet, not just the toggle, and is the only way to observe it closing.
93
+ */
94
+ onSheetOpenChange?: (isOpen: boolean) => void;
87
95
  }
88
96
  /**
89
97
  * Add-on card used on "review your booking" screens: an image with a
@@ -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>>;