@srimandir/make-your-own-ritual 0.31.0 → 0.31.2
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/ChadhavaSevaBottomSheet/ChadhavaSevaBottomSheet.d.ts +4 -0
- package/dist/components/DeathTithi/DeathTithi.d.ts +4 -1
- package/dist/components/LandingPage/LandingPage.d.ts +6 -2
- package/dist/components/PujaProgressTabs/PujaProgressTabs.d.ts +0 -2
- package/dist/i18n/translations.en.d.ts +10 -1
- package/dist/i18n/translations.hi.d.ts +10 -1
- package/dist/i18n/translations.kn.d.ts +10 -1
- package/dist/i18n/translations.te.d.ts +10 -1
- package/dist/make-your-own-ritual.js +1615 -1500
- package/dist/make-your-own-ritual.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/landingPage.types.d.ts +5 -0
- package/dist/types/pitruPakshStore.types.d.ts +2 -1
- package/package.json +7 -7
- package/dist/utils/scroll.utils.d.ts +0 -6
|
@@ -5,5 +5,9 @@ export interface ChadhavaSevaBottomSheetProps {
|
|
|
5
5
|
imageUrl: string;
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
8
|
+
/** The individual resolved ancestor dates this add-on needs, e.g. "16/04/26 (Ekadashi), 18/04/26 (Trayodashi)" — same field the full `PujaDetailsCarouselHeader` sheet shows for a real ritual. Omitted when nothing's resolved yet. */
|
|
9
|
+
dateLabel?: string;
|
|
10
|
+
/** Omitted for most add-ons — donations/services aren't tied to a physical location the way a temple ritual is. */
|
|
11
|
+
locationLabel?: string;
|
|
8
12
|
}
|
|
9
13
|
export declare const ChadhavaSevaBottomSheet: React.FC<ChadhavaSevaBottomSheetProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PickedDate } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
1
2
|
import { MakeYourOwnRitualDataState, RitualDataAction, TithiPreview, TithiValidity } from '../../types';
|
|
2
3
|
/**
|
|
3
4
|
* Interaction points this screen doesn't otherwise expose a callback for —
|
|
@@ -67,5 +68,7 @@ export interface DeathTithiProps {
|
|
|
67
68
|
/** Checks whether a directly-picked tithi is still bookable. Never rejects — a failure resolves to undefined. */
|
|
68
69
|
onValidateTithi?: (tithiKey: string, ancestorKey: string) => Promise<TithiValidity | undefined>;
|
|
69
70
|
onInteraction?: (event: DeathTithiInteractionEvent) => void;
|
|
71
|
+
/** Last selectable date on the death-date picker — the backend rejects a future date of passing, so the host caps the wheel here instead of only finding out after a resolve call fails. Defaults to the picker's own "today" cap. */
|
|
72
|
+
maxDate?: PickedDate;
|
|
70
73
|
}
|
|
71
|
-
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, onValidateTithi, onInteraction, }: DeathTithiProps): import("react").JSX.Element;
|
|
74
|
+
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, onValidateTithi, onInteraction, maxDate, }: DeathTithiProps): import("react").JSX.Element;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { SupportedLocale } from '../../i18n';
|
|
2
|
-
import { LandingPageStore, LandingPageAction, PitruPakshRenderableRitual } from '../../types';
|
|
2
|
+
import { LandingPageStore, LandingPageAction, LandingPagePackage, PitruPakshRenderableRitual } from '../../types';
|
|
3
3
|
export interface LandingPageProps {
|
|
4
4
|
store: LandingPageStore;
|
|
5
5
|
mutate: (action: LandingPageAction) => void;
|
|
6
6
|
onProceed: (selectedRitualIds: string[]) => void;
|
|
7
7
|
onLocaleChange: (locale: SupportedLocale) => void;
|
|
8
|
+
/** "Who's performing the puja" packages — only `packages[0]`'s price backs the Mandap Vyavastha fee note, shown once a "ritual"-type puja is selected. */
|
|
9
|
+
packages?: LandingPagePackage[];
|
|
8
10
|
/** Fired when a card's "About this Chadhava/Seva" link is clicked, with that ritual's id. */
|
|
9
11
|
onAboutRitualClick?: (ritualId: string) => void;
|
|
10
12
|
/** Fired once, the first time a card scrolls into view, with its 1-based list position. */
|
|
11
13
|
onCardImpression?: (ritual: PitruPakshRenderableRitual, position: number) => void;
|
|
12
14
|
/** Fired when a card's checkbox is toggled, with its 1-based list position and the new selected state. */
|
|
13
15
|
onCardToggle?: (ritual: PitruPakshRenderableRitual, position: number, willBeSelected: boolean) => void;
|
|
16
|
+
/** Called when the top bar's back button is clicked. */
|
|
17
|
+
onBackClick?: () => void;
|
|
14
18
|
}
|
|
15
|
-
export declare function LandingPage({ store, mutate, onProceed, onLocaleChange, onAboutRitualClick, onCardImpression, onCardToggle, }: LandingPageProps): import("react").JSX.Element;
|
|
19
|
+
export declare function LandingPage({ store, mutate, onProceed, onLocaleChange, onAboutRitualClick, onCardImpression, onCardToggle, packages, onBackClick, }: LandingPageProps): import("react").JSX.Element;
|
|
@@ -9,8 +9,6 @@ export interface PujaProgressTabsProps {
|
|
|
9
9
|
items: PujaTabItem[];
|
|
10
10
|
/** Called when a `completed` or `active` tab is clicked. `pending` tabs are never clickable. */
|
|
11
11
|
onTabClick?: (id: string) => void;
|
|
12
|
-
/** Fires with the id of whichever tab is horizontally centered as the user manually drags/scrolls the row — e.g. to sync selection to whatever's centered. */
|
|
13
|
-
onCenteredTabChange?: (id: string) => void;
|
|
14
12
|
className?: string;
|
|
15
13
|
}
|
|
16
14
|
export declare const PujaProgressTabs: React.FC<PujaProgressTabsProps>;
|
|
@@ -25,7 +25,11 @@ export declare const en: {
|
|
|
25
25
|
ritualSelectAriaLabel: string;
|
|
26
26
|
ritualCountSingular: string;
|
|
27
27
|
ritualCountPlural: string;
|
|
28
|
+
mandapFeeLabel: string;
|
|
29
|
+
mandapFeeItemLabel: string;
|
|
28
30
|
ctaProceed: string;
|
|
31
|
+
formPhone: string;
|
|
32
|
+
formEmail: string;
|
|
29
33
|
makeYourOwnRitualCtaLabel: string;
|
|
30
34
|
makeYourOwnRitualHeroTitle: string;
|
|
31
35
|
makeYourOwnRitualHeroSubtitle: string;
|
|
@@ -46,7 +50,7 @@ export declare const en: {
|
|
|
46
50
|
selectAncestorsBackAriaLabel: string;
|
|
47
51
|
selectAncestorsProgressLabel: string;
|
|
48
52
|
selectAncestorsQuestion: string;
|
|
49
|
-
|
|
53
|
+
selectAncestorsCardHeading: string;
|
|
50
54
|
selectAncestorsAllAncestorsCaption: string;
|
|
51
55
|
selectAncestorsCtaNextRitual: string;
|
|
52
56
|
selectAncestorsCtaProceed: string;
|
|
@@ -114,10 +118,14 @@ export declare const en: {
|
|
|
114
118
|
selectRitualDaySheetHeading: string;
|
|
115
119
|
selectRitualDaySheetCardTitle: string;
|
|
116
120
|
selectRitualDaySheetCardDescription: string;
|
|
121
|
+
selectRitualDaySheetAllAncestorsCardTitle: string;
|
|
122
|
+
selectRitualDaySheetAllAncestorsCardDescription: string;
|
|
117
123
|
selectRitualDaySheetTag: string;
|
|
118
124
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
125
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
126
|
selectRitualDaySheetCta: string;
|
|
127
|
+
selectRitualDaySheetAmavasyaCta: string;
|
|
128
|
+
selectRitualDaySheetDeathTithiCta: string;
|
|
121
129
|
outcomeSummaryBadge: string;
|
|
122
130
|
outcomeSummaryHeading: string;
|
|
123
131
|
outcomeSummaryTrust1: string;
|
|
@@ -125,4 +133,5 @@ export declare const en: {
|
|
|
125
133
|
outcomeSummaryTrust3: string;
|
|
126
134
|
pujaVideoTestimonialsHeading: string;
|
|
127
135
|
pujaVideoTestimonialsSubtitle: string;
|
|
136
|
+
sankalpProceedToPaymentLabel: string;
|
|
128
137
|
};
|
|
@@ -25,7 +25,11 @@ export declare const hi: {
|
|
|
25
25
|
ritualSelectAriaLabel: string;
|
|
26
26
|
ritualCountSingular: string;
|
|
27
27
|
ritualCountPlural: string;
|
|
28
|
+
mandapFeeLabel: string;
|
|
29
|
+
mandapFeeItemLabel: string;
|
|
28
30
|
ctaProceed: string;
|
|
31
|
+
formPhone: string;
|
|
32
|
+
formEmail: string;
|
|
29
33
|
makeYourOwnRitualCtaLabel: string;
|
|
30
34
|
makeYourOwnRitualHeroTitle: string;
|
|
31
35
|
makeYourOwnRitualHeroSubtitle: string;
|
|
@@ -46,7 +50,7 @@ export declare const hi: {
|
|
|
46
50
|
selectAncestorsBackAriaLabel: string;
|
|
47
51
|
selectAncestorsProgressLabel: string;
|
|
48
52
|
selectAncestorsQuestion: string;
|
|
49
|
-
|
|
53
|
+
selectAncestorsCardHeading: string;
|
|
50
54
|
selectAncestorsAllAncestorsCaption: string;
|
|
51
55
|
selectAncestorsCtaNextRitual: string;
|
|
52
56
|
selectAncestorsCtaProceed: string;
|
|
@@ -114,10 +118,14 @@ export declare const hi: {
|
|
|
114
118
|
selectRitualDaySheetHeading: string;
|
|
115
119
|
selectRitualDaySheetCardTitle: string;
|
|
116
120
|
selectRitualDaySheetCardDescription: string;
|
|
121
|
+
selectRitualDaySheetAllAncestorsCardTitle: string;
|
|
122
|
+
selectRitualDaySheetAllAncestorsCardDescription: string;
|
|
117
123
|
selectRitualDaySheetTag: string;
|
|
118
124
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
125
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
126
|
selectRitualDaySheetCta: string;
|
|
127
|
+
selectRitualDaySheetAmavasyaCta: string;
|
|
128
|
+
selectRitualDaySheetDeathTithiCta: string;
|
|
121
129
|
outcomeSummaryBadge: string;
|
|
122
130
|
outcomeSummaryHeading: string;
|
|
123
131
|
outcomeSummaryTrust1: string;
|
|
@@ -125,4 +133,5 @@ export declare const hi: {
|
|
|
125
133
|
outcomeSummaryTrust3: string;
|
|
126
134
|
pujaVideoTestimonialsHeading: string;
|
|
127
135
|
pujaVideoTestimonialsSubtitle: string;
|
|
136
|
+
sankalpProceedToPaymentLabel: string;
|
|
128
137
|
};
|
|
@@ -25,7 +25,11 @@ export declare const kn: {
|
|
|
25
25
|
ritualSelectAriaLabel: string;
|
|
26
26
|
ritualCountSingular: string;
|
|
27
27
|
ritualCountPlural: string;
|
|
28
|
+
mandapFeeLabel: string;
|
|
29
|
+
mandapFeeItemLabel: string;
|
|
28
30
|
ctaProceed: string;
|
|
31
|
+
formPhone: string;
|
|
32
|
+
formEmail: string;
|
|
29
33
|
makeYourOwnRitualCtaLabel: string;
|
|
30
34
|
makeYourOwnRitualHeroTitle: string;
|
|
31
35
|
makeYourOwnRitualHeroSubtitle: string;
|
|
@@ -46,7 +50,7 @@ export declare const kn: {
|
|
|
46
50
|
selectAncestorsBackAriaLabel: string;
|
|
47
51
|
selectAncestorsProgressLabel: string;
|
|
48
52
|
selectAncestorsQuestion: string;
|
|
49
|
-
|
|
53
|
+
selectAncestorsCardHeading: string;
|
|
50
54
|
selectAncestorsAllAncestorsCaption: string;
|
|
51
55
|
selectAncestorsCtaNextRitual: string;
|
|
52
56
|
selectAncestorsCtaProceed: string;
|
|
@@ -114,10 +118,14 @@ export declare const kn: {
|
|
|
114
118
|
selectRitualDaySheetHeading: string;
|
|
115
119
|
selectRitualDaySheetCardTitle: string;
|
|
116
120
|
selectRitualDaySheetCardDescription: string;
|
|
121
|
+
selectRitualDaySheetAllAncestorsCardTitle: string;
|
|
122
|
+
selectRitualDaySheetAllAncestorsCardDescription: string;
|
|
117
123
|
selectRitualDaySheetTag: string;
|
|
118
124
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
125
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
126
|
selectRitualDaySheetCta: string;
|
|
127
|
+
selectRitualDaySheetAmavasyaCta: string;
|
|
128
|
+
selectRitualDaySheetDeathTithiCta: string;
|
|
121
129
|
outcomeSummaryBadge: string;
|
|
122
130
|
outcomeSummaryHeading: string;
|
|
123
131
|
outcomeSummaryTrust1: string;
|
|
@@ -125,4 +133,5 @@ export declare const kn: {
|
|
|
125
133
|
outcomeSummaryTrust3: string;
|
|
126
134
|
pujaVideoTestimonialsHeading: string;
|
|
127
135
|
pujaVideoTestimonialsSubtitle: string;
|
|
136
|
+
sankalpProceedToPaymentLabel: string;
|
|
128
137
|
};
|
|
@@ -25,7 +25,11 @@ export declare const te: {
|
|
|
25
25
|
ritualSelectAriaLabel: string;
|
|
26
26
|
ritualCountSingular: string;
|
|
27
27
|
ritualCountPlural: string;
|
|
28
|
+
mandapFeeLabel: string;
|
|
29
|
+
mandapFeeItemLabel: string;
|
|
28
30
|
ctaProceed: string;
|
|
31
|
+
formPhone: string;
|
|
32
|
+
formEmail: string;
|
|
29
33
|
makeYourOwnRitualCtaLabel: string;
|
|
30
34
|
makeYourOwnRitualHeroTitle: string;
|
|
31
35
|
makeYourOwnRitualHeroSubtitle: string;
|
|
@@ -46,7 +50,7 @@ export declare const te: {
|
|
|
46
50
|
selectAncestorsBackAriaLabel: string;
|
|
47
51
|
selectAncestorsProgressLabel: string;
|
|
48
52
|
selectAncestorsQuestion: string;
|
|
49
|
-
|
|
53
|
+
selectAncestorsCardHeading: string;
|
|
50
54
|
selectAncestorsAllAncestorsCaption: string;
|
|
51
55
|
selectAncestorsCtaNextRitual: string;
|
|
52
56
|
selectAncestorsCtaProceed: string;
|
|
@@ -114,10 +118,14 @@ export declare const te: {
|
|
|
114
118
|
selectRitualDaySheetHeading: string;
|
|
115
119
|
selectRitualDaySheetCardTitle: string;
|
|
116
120
|
selectRitualDaySheetCardDescription: string;
|
|
121
|
+
selectRitualDaySheetAllAncestorsCardTitle: string;
|
|
122
|
+
selectRitualDaySheetAllAncestorsCardDescription: string;
|
|
117
123
|
selectRitualDaySheetTag: string;
|
|
118
124
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
125
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
126
|
selectRitualDaySheetCta: string;
|
|
127
|
+
selectRitualDaySheetAmavasyaCta: string;
|
|
128
|
+
selectRitualDaySheetDeathTithiCta: string;
|
|
121
129
|
outcomeSummaryBadge: string;
|
|
122
130
|
outcomeSummaryHeading: string;
|
|
123
131
|
outcomeSummaryTrust1: string;
|
|
@@ -125,4 +133,5 @@ export declare const te: {
|
|
|
125
133
|
outcomeSummaryTrust3: string;
|
|
126
134
|
pujaVideoTestimonialsHeading: string;
|
|
127
135
|
pujaVideoTestimonialsSubtitle: string;
|
|
136
|
+
sankalpProceedToPaymentLabel: string;
|
|
128
137
|
};
|