@srimandir/make-your-own-ritual 0.34.0 → 0.35.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/ChadhavaSevaBottomSheet/ChadhavaSevaBottomSheet.d.ts +4 -0
- package/dist/components/DeathTithi/DeathTithi.d.ts +0 -8
- package/dist/components/RibbonTag/RibbonTag.d.ts +9 -0
- package/dist/components/RibbonTag/index.d.ts +2 -0
- package/dist/components/RitualCard/RitualCard.d.ts +2 -2
- package/dist/components/SelectAncestors/SelectAncestors.d.ts +0 -3
- package/dist/components/SelectRitualDaySheet/SelectRitualDaySheet.d.ts +1 -2
- package/dist/i18n/translations.en.d.ts +4 -0
- package/dist/i18n/translations.hi.d.ts +4 -0
- package/dist/i18n/translations.kn.d.ts +4 -0
- package/dist/i18n/translations.te.d.ts +4 -0
- package/dist/make-your-own-ritual.js +1368 -1299
- package/dist/make-your-own-ritual.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/pitruPakshStore.types.d.ts +2 -0
- package/package.json +3 -3
- package/dist/dismissType.d.ts +0 -10
|
@@ -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,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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface RibbonTagProps {
|
|
2
|
+
label: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* The "Recommended" / "As per Scriptures" corner ribbon used as a `SelectorCard`
|
|
6
|
+
* `tag`. Each instance gets its own gradient id via `useId` so multiple ribbons
|
|
7
|
+
* mounted at once don't collide on the same `<linearGradient>` id.
|
|
8
|
+
*/
|
|
9
|
+
export declare const RibbonTag: React.FC<RibbonTagProps>;
|
|
@@ -17,8 +17,8 @@ export interface RitualCardProps {
|
|
|
17
17
|
tagClassName?: string;
|
|
18
18
|
/** Text classes for the rating/booked strip (label text + separator dot). Defaults to `text-[#4b5513]`. */
|
|
19
19
|
tagTextClassName?: string;
|
|
20
|
-
/** e.g. "Starts from" */
|
|
21
|
-
priceLabel
|
|
20
|
+
/** e.g. "Starts from" — omitted for a chadava/seva, which has a fixed price rather than a "starting" one. */
|
|
21
|
+
priceLabel?: string;
|
|
22
22
|
/** e.g. "₹200" */
|
|
23
23
|
price: string;
|
|
24
24
|
/** e.g. "About Puja" */
|
|
@@ -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. */
|
|
@@ -85,6 +85,9 @@ export declare const en: {
|
|
|
85
85
|
deathTithiOption3ExpandedBody: string;
|
|
86
86
|
deathTithiCtaLabel: string;
|
|
87
87
|
deathTithiFinalCtaLabel: string;
|
|
88
|
+
deathTithiSarvPitruTag: string;
|
|
89
|
+
deathTithiSarvPitruTitle: string;
|
|
90
|
+
deathTithiSarvPitruDescription: string;
|
|
88
91
|
deathTithiPickerHeadingSuffix: string;
|
|
89
92
|
deathTithiPickerConfirmCta: string;
|
|
90
93
|
deathDatePickerConfirmCta: string;
|
|
@@ -133,4 +136,5 @@ export declare const en: {
|
|
|
133
136
|
outcomeSummaryTrust3: string;
|
|
134
137
|
pujaVideoTestimonialsHeading: string;
|
|
135
138
|
pujaVideoTestimonialsSubtitle: string;
|
|
139
|
+
sankalpProceedToPaymentLabel: string;
|
|
136
140
|
};
|
|
@@ -85,6 +85,9 @@ export declare const hi: {
|
|
|
85
85
|
deathTithiOption3ExpandedBody: string;
|
|
86
86
|
deathTithiCtaLabel: string;
|
|
87
87
|
deathTithiFinalCtaLabel: string;
|
|
88
|
+
deathTithiSarvPitruTag: string;
|
|
89
|
+
deathTithiSarvPitruTitle: string;
|
|
90
|
+
deathTithiSarvPitruDescription: string;
|
|
88
91
|
deathTithiPickerHeadingSuffix: string;
|
|
89
92
|
deathTithiPickerConfirmCta: string;
|
|
90
93
|
deathDatePickerConfirmCta: string;
|
|
@@ -133,4 +136,5 @@ export declare const hi: {
|
|
|
133
136
|
outcomeSummaryTrust3: string;
|
|
134
137
|
pujaVideoTestimonialsHeading: string;
|
|
135
138
|
pujaVideoTestimonialsSubtitle: string;
|
|
139
|
+
sankalpProceedToPaymentLabel: string;
|
|
136
140
|
};
|
|
@@ -85,6 +85,9 @@ export declare const kn: {
|
|
|
85
85
|
deathTithiOption3ExpandedBody: string;
|
|
86
86
|
deathTithiCtaLabel: string;
|
|
87
87
|
deathTithiFinalCtaLabel: string;
|
|
88
|
+
deathTithiSarvPitruTag: string;
|
|
89
|
+
deathTithiSarvPitruTitle: string;
|
|
90
|
+
deathTithiSarvPitruDescription: string;
|
|
88
91
|
deathTithiPickerHeadingSuffix: string;
|
|
89
92
|
deathTithiPickerConfirmCta: string;
|
|
90
93
|
deathDatePickerConfirmCta: string;
|
|
@@ -133,4 +136,5 @@ export declare const kn: {
|
|
|
133
136
|
outcomeSummaryTrust3: string;
|
|
134
137
|
pujaVideoTestimonialsHeading: string;
|
|
135
138
|
pujaVideoTestimonialsSubtitle: string;
|
|
139
|
+
sankalpProceedToPaymentLabel: string;
|
|
136
140
|
};
|
|
@@ -85,6 +85,9 @@ export declare const te: {
|
|
|
85
85
|
deathTithiOption3ExpandedBody: string;
|
|
86
86
|
deathTithiCtaLabel: string;
|
|
87
87
|
deathTithiFinalCtaLabel: string;
|
|
88
|
+
deathTithiSarvPitruTag: string;
|
|
89
|
+
deathTithiSarvPitruTitle: string;
|
|
90
|
+
deathTithiSarvPitruDescription: string;
|
|
88
91
|
deathTithiPickerHeadingSuffix: string;
|
|
89
92
|
deathTithiPickerConfirmCta: string;
|
|
90
93
|
deathDatePickerConfirmCta: string;
|
|
@@ -133,4 +136,5 @@ export declare const te: {
|
|
|
133
136
|
outcomeSummaryTrust3: string;
|
|
134
137
|
pujaVideoTestimonialsHeading: string;
|
|
135
138
|
pujaVideoTestimonialsSubtitle: string;
|
|
139
|
+
sankalpProceedToPaymentLabel: string;
|
|
136
140
|
};
|