@srimandir/pitru-paksh-ritual-recommendation 2.1.3 → 2.2.4
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/components/BillDetails/BillDetails.d.ts +2 -0
- package/dist/components/CauseOfDeath/CauseOfDeath.d.ts +1 -7
- package/dist/components/DeathTithi/DeathTithi.d.ts +1 -18
- package/dist/components/Hero/Hero.d.ts +2 -1
- package/dist/components/Landing/Landing.d.ts +1 -9
- package/dist/components/Outcome/Outcome.d.ts +1 -21
- package/dist/components/PujaDetailsSheet/PujaAboutSection.d.ts +5 -0
- package/dist/components/PujaDetailsSheet/PujaDetailsCarouselHeader.d.ts +5 -2
- package/dist/components/PujaDetailsSheet/index.d.ts +2 -0
- package/dist/components/SelectAncestors/SelectAncestors.d.ts +1 -10
- package/dist/i18n/translations.en.d.ts +1 -0
- package/dist/i18n/translations.hi.d.ts +1 -0
- package/dist/i18n/translations.kn.d.ts +1 -0
- package/dist/i18n/translations.te.d.ts +1 -0
- package/dist/pitru-paksh-ritual-recommendation.js +2089 -2132
- package/dist/pitru-paksh-ritual-recommendation.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/dist/types/pitruPaksh.types.d.ts +8 -0
- package/dist/types/pujaL2.types.d.ts +2 -0
- package/dist/utils/mapPujaL2Response.d.ts +2 -0
- package/package.json +3 -3
- package/dist/dev/sampleOutcomeData.d.ts +0 -9
|
@@ -5,6 +5,8 @@ export interface BillDetailsItem {
|
|
|
5
5
|
subtitle: string;
|
|
6
6
|
/** e.g. "(2x₹100)" — omitted when there's no per-unit breakdown to show */
|
|
7
7
|
quantityLabel?: string;
|
|
8
|
+
/** e.g. "₹851" — struck through before `lineTotal`; omitted when there's no discount to show */
|
|
9
|
+
originalLineTotal?: string;
|
|
8
10
|
/** e.g. "₹200.0/-" */
|
|
9
11
|
lineTotal: string;
|
|
10
12
|
}
|
|
@@ -6,11 +6,5 @@ export interface CauseOfDeathProps {
|
|
|
6
6
|
audioSrc?: string;
|
|
7
7
|
onBackClick?: () => void;
|
|
8
8
|
onProceed?: () => void;
|
|
9
|
-
/** The "why untimely/accidental death matters" info sheet just opened. */
|
|
10
|
-
onInfoSheetOpen?: () => void;
|
|
11
|
-
/** Info sheet closed via its own CTA ("Got it"), not a backdrop/X dismiss. */
|
|
12
|
-
onInfoSheetProceed?: () => void;
|
|
13
|
-
/** Info sheet closed without its CTA (backdrop/X). */
|
|
14
|
-
onInfoSheetDismiss?: () => void;
|
|
15
9
|
}
|
|
16
|
-
export declare function CauseOfDeath({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed
|
|
10
|
+
export declare function CauseOfDeath({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed }: CauseOfDeathProps): import("react").JSX.Element;
|
|
@@ -10,22 +10,5 @@ export interface DeathTithiProps {
|
|
|
10
10
|
onResolveTithiForDate?: (date: string, ancestorKey: string) => Promise<TithiPreview | undefined>;
|
|
11
11
|
/** Checks whether a directly-picked tithi is still bookable. Never rejects — a failure resolves to undefined. */
|
|
12
12
|
onValidateTithi?: (tithiKey: string, ancestorKey: string) => Promise<TithiValidity | undefined>;
|
|
13
|
-
/** The tithi wheel closed without a value being confirmed. */
|
|
14
|
-
onTithiPickerDismiss?: () => void;
|
|
15
|
-
/** The date calendar closed without a value being confirmed. */
|
|
16
|
-
onDatePickerDismiss?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* The tithi wheel was reopened via its already-selected value's editable
|
|
19
|
-
* field (not the initial pick, which the caller already sees through its
|
|
20
|
-
* own `mutate` call) — the only path this component doesn't otherwise
|
|
21
|
-
* expose an open signal for.
|
|
22
|
-
*/
|
|
23
|
-
onTithiPickerReopen?: () => void;
|
|
24
|
-
/** Same as `onTithiPickerReopen`, for the date calendar's editable field. */
|
|
25
|
-
onDatePickerReopen?: () => void;
|
|
26
|
-
/** The Amavasya-fallback dialog's own CTA was tapped (not a backdrop dismiss). `source` is which flow triggered the fallback — a picked tithi that's closed, or a picked date that resolved to one. */
|
|
27
|
-
onFallbackPopupProceed?: (source: 'date' | 'tithi') => void;
|
|
28
|
-
/** The Amavasya-fallback dialog was dismissed via its backdrop, not its CTA. */
|
|
29
|
-
onFallbackPopupDismiss?: (source: 'date' | 'tithi') => void;
|
|
30
13
|
}
|
|
31
|
-
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, onValidateTithi,
|
|
14
|
+
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, onValidateTithi, }: DeathTithiProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface HeroProps {
|
|
2
2
|
videoUrl: string;
|
|
3
3
|
onCtaClick: () => void;
|
|
4
|
+
onCtaVisibilityChange?: (visible: boolean) => void;
|
|
4
5
|
}
|
|
5
|
-
export declare function Hero({ videoUrl, onCtaClick }: HeroProps): import("react").JSX.Element;
|
|
6
|
+
export declare function Hero({ videoUrl, onCtaClick, onCtaVisibilityChange }: HeroProps): import("react").JSX.Element;
|
|
@@ -4,13 +4,5 @@ export interface LandingProps {
|
|
|
4
4
|
onCtaClick: () => void;
|
|
5
5
|
locale: SupportedLocale;
|
|
6
6
|
onLocaleChange: (locale: SupportedLocale) => void;
|
|
7
|
-
/**
|
|
8
|
-
* Reports each content section's DOM node as it mounts/unmounts, in render
|
|
9
|
-
* order (`position` is its 0-based index among the sections this fires
|
|
10
|
-
* for — chrome like Hero/TopBar/FooterSection is excluded). No visibility
|
|
11
|
-
* tracking happens here — this component stays dumb; observing these
|
|
12
|
-
* nodes (e.g. via `IntersectionObserver`) is the caller's job.
|
|
13
|
-
*/
|
|
14
|
-
onSectionRef?: (sectionName: string, position: number, el: HTMLDivElement | null) => void;
|
|
15
7
|
}
|
|
16
|
-
export declare function Landing({ videoUrl, onCtaClick, locale, onLocaleChange,
|
|
8
|
+
export declare function Landing({ videoUrl, onCtaClick, locale, onLocaleChange, }: LandingProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DevoteeReviewData, DevoteeReviewMedia } from '../PujaDetailsSheet';
|
|
2
|
-
import { PackageSelectOption } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
3
2
|
import { RitualRecommendationData, MandapArrangementData, PackageSelectSheetProps } from '../../types';
|
|
4
3
|
export interface OutcomeProps {
|
|
5
4
|
ritualCount: number;
|
|
@@ -13,24 +12,5 @@ export interface OutcomeProps {
|
|
|
13
12
|
totalPrice: string;
|
|
14
13
|
onPriceInfoClick?: () => void;
|
|
15
14
|
onProceedClick?: (id: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Reports each rendered ritual card's DOM node as it mounts/unmounts
|
|
18
|
-
* (added/removed rituals included). No visibility tracking happens
|
|
19
|
-
* here — this component stays dumb; observing these nodes (e.g. via
|
|
20
|
-
* `IntersectionObserver`) is the caller's job.
|
|
21
|
-
*/
|
|
22
|
-
onCardRef?: (index: number, el: HTMLDivElement | null) => void;
|
|
23
|
-
/** The sticky CTA opened the "who is performing the puja" package sheet. */
|
|
24
|
-
onPackageSheetOpen?: () => void;
|
|
25
|
-
/** A different package option was highlighted in the package sheet. */
|
|
26
|
-
onPackageInteraction?: (packageId: PackageSelectOption["id"]) => void;
|
|
27
|
-
/** The package sheet closed via its backdrop/drag-down, not its own Proceed. */
|
|
28
|
-
onPackageSheetDismiss?: () => void;
|
|
29
|
-
/** The "Learn more" detail sheet's own CTA ("Got it") was tapped, not a backdrop/X dismiss. `ritualIndex` is whichever ritual it was open for. */
|
|
30
|
-
onAboutPujaProceed?: (ritualIndex: number) => void;
|
|
31
|
-
/** The "Learn more" detail sheet closed via backdrop/X, not its own CTA. */
|
|
32
|
-
onAboutPujaDismiss?: (ritualIndex: number) => void;
|
|
33
|
-
/** The ancestor-edit modal closed via its backdrop, not its own Confirm button. */
|
|
34
|
-
onPitruListDismiss?: (ritualIndex: number) => void;
|
|
35
15
|
}
|
|
36
|
-
export declare function Outcome({ ritualCount, rituals, mandapArrangement, devoteesReviews, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick,
|
|
16
|
+
export declare function Outcome({ ritualCount, rituals, mandapArrangement, devoteesReviews, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, packageSelectOptions, }: OutcomeProps & PackageSelectSheetProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export interface PujaDetailsCarouselHeaderProps {
|
|
2
2
|
images: string[];
|
|
3
|
+
/** Short purpose tag shown above the title, e.g. "पितृ शांति" */
|
|
4
|
+
useCase?: string;
|
|
3
5
|
title: string;
|
|
4
|
-
|
|
6
|
+
/** Fuller puja name shown as a subtitle below the title, e.g. "पितृ तीर्थ महापूजा" */
|
|
7
|
+
specificity?: string;
|
|
5
8
|
dateLabel: string;
|
|
6
9
|
locationLabel: string;
|
|
7
10
|
}
|
|
8
|
-
export declare function PujaDetailsCarouselHeader({ images, title,
|
|
11
|
+
export declare function PujaDetailsCarouselHeader({ images, useCase, title, specificity, dateLabel, locationLabel, }: PujaDetailsCarouselHeaderProps): import("react").JSX.Element;
|
|
@@ -4,6 +4,8 @@ export { PujaDetailsCarouselHeader } from './PujaDetailsCarouselHeader';
|
|
|
4
4
|
export type { PujaDetailsCarouselHeaderProps } from './PujaDetailsCarouselHeader';
|
|
5
5
|
export { PujaBenefitsSection } from './PujaBenefitsSection';
|
|
6
6
|
export type { PujaBenefitsSectionProps, PujaBenefitData } from './PujaBenefitsSection';
|
|
7
|
+
export { PujaAboutSection } from './PujaAboutSection';
|
|
8
|
+
export type { PujaAboutSectionProps } from './PujaAboutSection';
|
|
7
9
|
export { TempleSignificanceSection } from './TempleSignificanceSection';
|
|
8
10
|
export type { TempleSignificanceSectionProps } from './TempleSignificanceSection';
|
|
9
11
|
export { SheetVideoTestimonials } from './SheetVideoTestimonials';
|
|
@@ -6,14 +6,5 @@ export interface SelectAncestorsProps {
|
|
|
6
6
|
audioSrc?: string;
|
|
7
7
|
onBackClick?: () => void;
|
|
8
8
|
onProceed?: () => void;
|
|
9
|
-
/** The "Add more" bottom sheet just opened. */
|
|
10
|
-
onAddAncestorSheetOpen?: () => void;
|
|
11
|
-
/**
|
|
12
|
-
* The "Add more" bottom sheet closed — fires on every close, including
|
|
13
|
-
* right after a successful save (`AddAncestorSheet.handleSave` calls its
|
|
14
|
-
* own `onClose` after `onSave`). This component stays dumb; telling a
|
|
15
|
-
* save-close apart from a real dismiss is the caller's job.
|
|
16
|
-
*/
|
|
17
|
-
onAddAncestorSheetDismiss?: () => void;
|
|
18
9
|
}
|
|
19
|
-
export declare function SelectAncestors({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed,
|
|
10
|
+
export declare function SelectAncestors({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, }: SelectAncestorsProps): import("react").JSX.Element;
|
|
@@ -247,6 +247,7 @@ export declare const en: {
|
|
|
247
247
|
reviewsVideoProofChipSubtitle: string;
|
|
248
248
|
reviewsReadAllLabel: string;
|
|
249
249
|
pujaBenefitsHeading: string;
|
|
250
|
+
pujaAboutHeading: string;
|
|
250
251
|
templeSignificanceReadMoreLabel: string;
|
|
251
252
|
templeSignificanceReadLessLabel: string;
|
|
252
253
|
pujaVideoTestimonialsHeading: string;
|
|
@@ -243,6 +243,7 @@ export declare const hi: {
|
|
|
243
243
|
reviewsVideoProofChipSubtitle: string;
|
|
244
244
|
reviewsReadAllLabel: string;
|
|
245
245
|
pujaBenefitsHeading: string;
|
|
246
|
+
pujaAboutHeading: string;
|
|
246
247
|
templeSignificanceReadMoreLabel: string;
|
|
247
248
|
templeSignificanceReadLessLabel: string;
|
|
248
249
|
pujaVideoTestimonialsHeading: string;
|