@srimandir/make-your-own-ritual 0.36.0 → 0.37.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.
- package/dist/components/DeathTithi/DeathTithi.d.ts +0 -8
- package/dist/components/MyorOutcome/MyorOutcome.d.ts +1 -18
- package/dist/components/PujaDetailsSheet/PujaDetailsSheet.d.ts +1 -12
- package/dist/components/PujaDetailsSheet/index.d.ts +1 -1
- package/dist/components/SelectAncestors/SelectAncestors.d.ts +0 -3
- package/dist/components/SelectRitualDaySheet/SelectRitualDaySheet.d.ts +1 -2
- package/dist/make-your-own-ritual.js +1173 -1228
- package/dist/make-your-own-ritual.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/pitruPakshStore.types.d.ts +7 -0
- package/package.json +3 -3
- package/dist/dismissType.d.ts +0 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PickedDate } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
2
|
-
import { MyorDismissType } from '../../dismissType';
|
|
3
2
|
import { MakeYourOwnRitualDataState, RitualDataAction, TithiPreview, TithiValidity } from '../../types';
|
|
4
3
|
/**
|
|
5
4
|
* Interaction points this screen doesn't otherwise expose a callback for —
|
|
@@ -30,7 +29,6 @@ export type DeathTithiInteractionEvent = {
|
|
|
30
29
|
type: "tithi_picker_dismiss";
|
|
31
30
|
ancestorKey: string;
|
|
32
31
|
ancestorPosition: number;
|
|
33
|
-
dismissType: MyorDismissType;
|
|
34
32
|
} | {
|
|
35
33
|
type: "date_picker_shown";
|
|
36
34
|
ancestorKey: string;
|
|
@@ -44,7 +42,6 @@ export type DeathTithiInteractionEvent = {
|
|
|
44
42
|
type: "date_picker_dismiss";
|
|
45
43
|
ancestorKey: string;
|
|
46
44
|
ancestorPosition: number;
|
|
47
|
-
dismissType: MyorDismissType;
|
|
48
45
|
} | {
|
|
49
46
|
type: "date_passed_popup_shown";
|
|
50
47
|
ancestorKey: string;
|
|
@@ -53,11 +50,6 @@ export type DeathTithiInteractionEvent = {
|
|
|
53
50
|
type: "date_passed_popup_dismiss";
|
|
54
51
|
ancestorKey: string;
|
|
55
52
|
ancestorPosition: number;
|
|
56
|
-
dismissType: MyorDismissType;
|
|
57
|
-
} | {
|
|
58
|
-
type: "date_passed_popup_proceed";
|
|
59
|
-
ancestorKey: string;
|
|
60
|
-
ancestorPosition: number;
|
|
61
53
|
} | {
|
|
62
54
|
type: "proceed_click";
|
|
63
55
|
ancestorKey: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OutcomeRitualData, OutcomeMandapArrangementData, OutcomePackageSelectProps, DevoteeReviewData, DevoteeReviewMedia } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
2
|
-
import { PujaDetailsSheetScrollInfo } from '../PujaDetailsSheet';
|
|
3
2
|
/**
|
|
4
3
|
* `OutcomeRitualData` plus MYOR's own per-ritual "Learn more" reviews
|
|
5
4
|
* (fetched on demand per temple, unlike ritual-recommendations' one fixed
|
|
@@ -29,22 +28,6 @@ export interface MyorOutcomeProps {
|
|
|
29
28
|
backButtonAriaLabel?: string;
|
|
30
29
|
/** Top bar's language switcher — same `LandingPage`'s own `TopBar` triggers. */
|
|
31
30
|
onLocaleChange?: (locale: string) => void;
|
|
32
|
-
/** Fired when the sticky CTA ("bhugtan karein") is tapped — before the package sheet opens (or, `skipPackageSelect`, before `onProceedClick` fires directly). */
|
|
33
|
-
onProceedCtaClick?: () => void;
|
|
34
|
-
/** Fired the same moment as `onProceedCtaClick` when that tap actually opens the "who is performing" package sheet (skipped entirely when `skipPackageSelect`). */
|
|
35
|
-
onPackageSheetOpen?: () => void;
|
|
36
|
-
/** Fired when a different package option is picked inside the open sheet. */
|
|
37
|
-
onPackageInteraction?: (packageId: string) => void;
|
|
38
|
-
/** Fired when the package sheet is dismissed (backdrop/close) without proceeding. */
|
|
39
|
-
onPackageSheetDismiss?: () => void;
|
|
40
|
-
/** Fired when a ritual's own detail sheet (`PujaDetailsSheet`/`ChadhavaSevaBottomSheet`, opened via `onLearnMoreClick`) is closed. */
|
|
41
|
-
onAboutPujaDismiss?: (ritualIndex: number) => void;
|
|
42
|
-
/** The "Learn more" detail sheet's own content was scrolled — raw values only, no debouncing here. Only fires for the full `PujaDetailsSheet` (a real ritual), not `ChadhavaSevaBottomSheet` (add-ons), which has no scrollable body of its own. */
|
|
43
|
-
onAboutPujaScroll?: (ritualIndex: number, info: PujaDetailsSheetScrollInfo) => void;
|
|
44
|
-
/** Fired when the bill-details sheet is closed — `'cart'` for the sticky CTA's whole-cart bill, a ritual index for that ritual's own. */
|
|
45
|
-
onBillDetailsDismiss?: (billDetailsFor: 'cart' | number) => void;
|
|
46
|
-
/** Reports each rendered ritual card's DOM node as it mounts/unmounts, keyed by `ritual.index` — stays dumb, e.g. for an `IntersectionObserver`-based impression tracker in the host app. */
|
|
47
|
-
onCardRef?: (ritualIndex: number, el: HTMLDivElement | null) => void;
|
|
48
31
|
currencySybmol: string;
|
|
49
32
|
}
|
|
50
33
|
/**
|
|
@@ -60,4 +43,4 @@ export interface MyorOutcomeProps {
|
|
|
60
43
|
* - A ritual's own `devoteesReviews` (per-temple, fetched on demand) takes
|
|
61
44
|
* precedence over showing nothing.
|
|
62
45
|
*/
|
|
63
|
-
export declare function MyorOutcome({ rituals, mandapArrangement, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, skipPackageSelect, onBack, backButtonAriaLabel, onLocaleChange,
|
|
46
|
+
export declare function MyorOutcome({ rituals, mandapArrangement, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, skipPackageSelect, onBack, backButtonAriaLabel, onLocaleChange, packageSelectOptions, }: MyorOutcomeProps & OutcomePackageSelectProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface PujaDetailsSheetScrollInfo {
|
|
3
|
-
scrollTop: number;
|
|
4
|
-
scrollHeight: number;
|
|
5
|
-
clientHeight: number;
|
|
6
|
-
}
|
|
7
2
|
export interface PujaDetailsSheetProps {
|
|
8
3
|
isOpen: boolean;
|
|
9
4
|
onClose: () => void;
|
|
@@ -12,12 +7,6 @@ export interface PujaDetailsSheetProps {
|
|
|
12
7
|
/** Pinned below the scrollable content, e.g. a CTA button */
|
|
13
8
|
footer?: ReactNode;
|
|
14
9
|
children: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Fired on every scroll of the sheet's own content — raw values only, no
|
|
17
|
-
* debouncing/max-depth tracking here (that's the caller's job, same
|
|
18
|
-
* division as `MyorOutcome`'s own `onCardRef`).
|
|
19
|
-
*/
|
|
20
|
-
onScroll?: (info: PujaDetailsSheetScrollInfo) => void;
|
|
21
10
|
}
|
|
22
11
|
/**
|
|
23
12
|
* MYOR's own clone of ritual-recommendations' `PujaDetailsSheet` — kept
|
|
@@ -25,4 +14,4 @@ export interface PujaDetailsSheetProps {
|
|
|
25
14
|
* own sheet is untouched. Only real difference: `overflow-x-hidden` on the
|
|
26
15
|
* scrollable body (see below).
|
|
27
16
|
*/
|
|
28
|
-
export declare function PujaDetailsSheet({ isOpen, onClose, closeButtonAriaLabel, dragHandleAriaLabel, footer, children,
|
|
17
|
+
export declare function PujaDetailsSheet({ isOpen, onClose, closeButtonAriaLabel, dragHandleAriaLabel, footer, children, }: PujaDetailsSheetProps): import("react").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PujaDetailsSheet } from './PujaDetailsSheet';
|
|
2
|
-
export type { PujaDetailsSheetProps
|
|
2
|
+
export type { PujaDetailsSheetProps } from './PujaDetailsSheet';
|
|
3
3
|
export { PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
4
4
|
export type { PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
5
5
|
export { MyorDevoteesReviews } from './MyorDevoteesReviews';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PujaId, MakeYourOwnRitualDataState, RitualDataAction } from '../../types';
|
|
3
3
|
import { RitualDayOption } from '../SelectRitualDaySheet';
|
|
4
|
-
import { MyorDismissType } from '../../dismissType';
|
|
5
4
|
/**
|
|
6
5
|
* Interaction points this screen doesn't otherwise expose a callback for —
|
|
7
6
|
* added for analytics, kept as one prop rather than one per interaction so
|
|
@@ -25,7 +24,6 @@ export type SelectAncestorsInteractionEvent = {
|
|
|
25
24
|
names: string[];
|
|
26
25
|
} | {
|
|
27
26
|
type: "add_ancestor_dismiss";
|
|
28
|
-
dismissType: MyorDismissType;
|
|
29
27
|
} | {
|
|
30
28
|
type: "proceed_click";
|
|
31
29
|
isLastRitual: boolean;
|
|
@@ -33,7 +31,6 @@ export type SelectAncestorsInteractionEvent = {
|
|
|
33
31
|
type: "ritual_day_prompt_shown";
|
|
34
32
|
} | {
|
|
35
33
|
type: "ritual_day_prompt_dismissed";
|
|
36
|
-
dismissType: MyorDismissType;
|
|
37
34
|
};
|
|
38
35
|
export interface SelectAncestorsProps {
|
|
39
36
|
store: MakeYourOwnRitualDataState;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
|
|
3
2
|
export type RitualDayOption = 'amavasya' | 'death-anniversary';
|
|
4
3
|
export interface SelectRitualDaySheetProps {
|
|
5
4
|
isOpen: boolean;
|
|
6
|
-
onClose: (
|
|
5
|
+
onClose: () => void;
|
|
7
6
|
/** Fires with the option active when the CTA is pressed — 'amavasya' needs no death-tithi step; only 'death-anniversary' does. */
|
|
8
7
|
onCtaClick: (option: RitualDayOption) => void;
|
|
9
8
|
/** True when every ancestor's tithi is unknown (all pujas selected "All Ancestors") — Amavasya is then the only sensible day, so skip the choice. Otherwise both options are offered. */
|