@srimandir/make-your-own-ritual 0.24.0 → 0.26.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/MyorOutcome/MyorOutcome.d.ts +6 -2
- package/dist/components/MyorOutcome/MyorOutcomeTrustIcon.d.ts +11 -0
- package/dist/components/PujaDetailsSheet/MyorDevoteesReviews.d.ts +39 -0
- package/dist/components/PujaDetailsSheet/index.d.ts +4 -2
- package/dist/components/PujaProgressTabs/PujaProgressTabs.d.ts +2 -0
- package/dist/i18n/translations.en.d.ts +7 -0
- package/dist/i18n/translations.hi.d.ts +7 -0
- package/dist/i18n/translations.kn.d.ts +7 -0
- package/dist/i18n/translations.te.d.ts +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/make-your-own-ritual.js +1667 -1457
- package/dist/make-your-own-ritual.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/scroll.utils.d.ts +6 -0
- package/package.json +5 -5
|
@@ -8,6 +8,8 @@ import { OutcomeRitualData, OutcomeMandapArrangementData, OutcomePackageSelectPr
|
|
|
8
8
|
export type MyorOutcomeRitualData = OutcomeRitualData & {
|
|
9
9
|
devoteesReviews?: DevoteeReviewData[];
|
|
10
10
|
learnMoreLabel?: string;
|
|
11
|
+
/** Drives which "learn more" sheet opens — a `ChadhavaSevaBottomSheet` for add-ons vs the full `PujaDetailsSheet` for a real ritual, same split the landing page makes. */
|
|
12
|
+
ritualType?: 'ritual' | 'chadhava' | 'seva';
|
|
11
13
|
};
|
|
12
14
|
export interface MyorOutcomeProps {
|
|
13
15
|
ritualCount: number;
|
|
@@ -21,9 +23,11 @@ export interface MyorOutcomeProps {
|
|
|
21
23
|
onProceedClick?: (id: string) => void;
|
|
22
24
|
/** Skips the "who is performing the puja" package sheet — the sticky CTA's Proceed proceeds straight through with `packageSelectOptions[0]`, e.g. for a chadava/seva-only selection that has nothing to pick a performer package for. */
|
|
23
25
|
skipPackageSelect?: boolean;
|
|
24
|
-
/**
|
|
26
|
+
/** Back button in the top bar — omit to no-op it, e.g. for a flow with no previous page to return to. */
|
|
25
27
|
onBack?: () => void;
|
|
26
28
|
backButtonAriaLabel?: string;
|
|
29
|
+
/** Top bar's language switcher — same `LandingPage`'s own `TopBar` triggers. */
|
|
30
|
+
onLocaleChange?: (locale: string) => void;
|
|
27
31
|
currencySybmol: string;
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
@@ -39,4 +43,4 @@ export interface MyorOutcomeProps {
|
|
|
39
43
|
* - A ritual's own `devoteesReviews` (per-temple, fetched on demand) takes
|
|
40
44
|
* precedence over showing nothing.
|
|
41
45
|
*/
|
|
42
|
-
export declare function MyorOutcome({
|
|
46
|
+
export declare function MyorOutcome({ rituals, mandapArrangement, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, skipPackageSelect, onBack, backButtonAriaLabel, onLocaleChange, packageSelectOptions, }: MyorOutcomeProps & OutcomePackageSelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type MyorOutcomeTrustIconVariant = 'pandits' | 'gotra' | 'video';
|
|
2
|
+
export interface MyorOutcomeTrustIconProps {
|
|
3
|
+
variant: MyorOutcomeTrustIconVariant;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* MYOR's own copy of `pitru-paksh-common`'s `OutcomeTrustIcon` — that
|
|
7
|
+
* component isn't part of the package's public exports (only its variant
|
|
8
|
+
* type is), and MYOR's own outcome summary/heading is kept independent of
|
|
9
|
+
* `OutcomeSummary` entirely rather than adding to the shared package.
|
|
10
|
+
*/
|
|
11
|
+
export declare function MyorOutcomeTrustIcon({ variant }: MyorOutcomeTrustIconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface MyorDevoteeReviewData {
|
|
2
|
+
avatarUrl?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
date: string;
|
|
5
|
+
stars: number;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
export interface MyorDevoteeReviewMedia {
|
|
9
|
+
/** Review video, e.g. a devotee's video testimonial. Takes priority over `imageUrl` when present. */
|
|
10
|
+
videoUrl?: string;
|
|
11
|
+
/** Poster shown before the video is played */
|
|
12
|
+
thumbnailUrl?: string;
|
|
13
|
+
/** Review screenshot, shown instead of a video when `videoUrl` isn't set */
|
|
14
|
+
imageUrl?: string;
|
|
15
|
+
avatarUrl: string;
|
|
16
|
+
name: string;
|
|
17
|
+
location: string;
|
|
18
|
+
}
|
|
19
|
+
export interface MyorDevoteesReviewsProps {
|
|
20
|
+
heading: string;
|
|
21
|
+
subtitle: string;
|
|
22
|
+
/** Heading shown above the video/image carousel instead of `heading`, when `reviewMedia` is present — falls back to `heading` if omitted. */
|
|
23
|
+
mediaHeading?: string;
|
|
24
|
+
mediaSubtitle?: string;
|
|
25
|
+
reviews: MyorDevoteeReviewData[];
|
|
26
|
+
/** Video/screenshot reviews shown in a swipeable carousel above the text reviews. */
|
|
27
|
+
reviewMedia?: MyorDevoteeReviewMedia[];
|
|
28
|
+
seeMoreLabel?: string;
|
|
29
|
+
onSeeMoreClick?: () => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* MYOR's own copy of ritual-recommendations' forked `DevoteesReviews` (its
|
|
33
|
+
* `PujaDetailsSheet/DevoteesReviews.tsx`) — that fork isn't part of any
|
|
34
|
+
* shared package (`pitru-paksh-common`'s own `DevoteesReviews` has no
|
|
35
|
+
* `mediaHeading`/`mediaSubtitle`, just one heading for both sections), so
|
|
36
|
+
* matching its two-heading behavior here means duplicating it rather than
|
|
37
|
+
* adding to a shared component other consumers depend on.
|
|
38
|
+
*/
|
|
39
|
+
export declare function MyorDevoteesReviews({ heading, subtitle, mediaHeading, mediaSubtitle, reviews, reviewMedia, seeMoreLabel, onSeeMoreClick, }: MyorDevoteesReviewsProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { PujaDetailsSheet } from './PujaDetailsSheet';
|
|
2
2
|
export type { PujaDetailsSheetProps } from './PujaDetailsSheet';
|
|
3
|
-
export { PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection,
|
|
4
|
-
export type { PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps,
|
|
3
|
+
export { PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
4
|
+
export type { PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
|
|
5
|
+
export { MyorDevoteesReviews } from './MyorDevoteesReviews';
|
|
6
|
+
export type { MyorDevoteesReviewsProps, MyorDevoteeReviewData, MyorDevoteeReviewMedia, } from './MyorDevoteesReviews';
|
|
@@ -9,6 +9,8 @@ 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;
|
|
12
14
|
className?: string;
|
|
13
15
|
}
|
|
14
16
|
export declare const PujaProgressTabs: React.FC<PujaProgressTabsProps>;
|
|
@@ -118,4 +118,11 @@ export declare const en: {
|
|
|
118
118
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
119
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
120
|
selectRitualDaySheetCta: string;
|
|
121
|
+
outcomeSummaryBadge: string;
|
|
122
|
+
outcomeSummaryHeading: string;
|
|
123
|
+
outcomeSummaryTrust1: string;
|
|
124
|
+
outcomeSummaryTrust2: string;
|
|
125
|
+
outcomeSummaryTrust3: string;
|
|
126
|
+
pujaVideoTestimonialsHeading: string;
|
|
127
|
+
pujaVideoTestimonialsSubtitle: string;
|
|
121
128
|
};
|
|
@@ -118,4 +118,11 @@ export declare const hi: {
|
|
|
118
118
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
119
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
120
|
selectRitualDaySheetCta: string;
|
|
121
|
+
outcomeSummaryBadge: string;
|
|
122
|
+
outcomeSummaryHeading: string;
|
|
123
|
+
outcomeSummaryTrust1: string;
|
|
124
|
+
outcomeSummaryTrust2: string;
|
|
125
|
+
outcomeSummaryTrust3: string;
|
|
126
|
+
pujaVideoTestimonialsHeading: string;
|
|
127
|
+
pujaVideoTestimonialsSubtitle: string;
|
|
121
128
|
};
|
|
@@ -118,4 +118,11 @@ export declare const kn: {
|
|
|
118
118
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
119
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
120
|
selectRitualDaySheetCta: string;
|
|
121
|
+
outcomeSummaryBadge: string;
|
|
122
|
+
outcomeSummaryHeading: string;
|
|
123
|
+
outcomeSummaryTrust1: string;
|
|
124
|
+
outcomeSummaryTrust2: string;
|
|
125
|
+
outcomeSummaryTrust3: string;
|
|
126
|
+
pujaVideoTestimonialsHeading: string;
|
|
127
|
+
pujaVideoTestimonialsSubtitle: string;
|
|
121
128
|
};
|
|
@@ -118,4 +118,11 @@ export declare const te: {
|
|
|
118
118
|
selectRitualDaySheetDeathAnniversaryTitle: string;
|
|
119
119
|
selectRitualDaySheetDeathAnniversaryDescription: string;
|
|
120
120
|
selectRitualDaySheetCta: string;
|
|
121
|
+
outcomeSummaryBadge: string;
|
|
122
|
+
outcomeSummaryHeading: string;
|
|
123
|
+
outcomeSummaryTrust1: string;
|
|
124
|
+
outcomeSummaryTrust2: string;
|
|
125
|
+
outcomeSummaryTrust3: string;
|
|
126
|
+
pujaVideoTestimonialsHeading: string;
|
|
127
|
+
pujaVideoTestimonialsSubtitle: string;
|
|
121
128
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export { MandapArrangementCard } from './components/MandapArrangementCard';
|
|
|
21
21
|
export type { MandapArrangementCardProps } from './components/MandapArrangementCard';
|
|
22
22
|
export { MyorOutcome } from './components/MyorOutcome';
|
|
23
23
|
export type { MyorOutcomeProps, MyorOutcomeRitualData } from './components/MyorOutcome';
|
|
24
|
-
export { PujaDetailsSheet, PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection,
|
|
25
|
-
export type { PujaDetailsSheetProps, PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps,
|
|
24
|
+
export { PujaDetailsSheet, PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, MyorDevoteesReviews, } from './components/PujaDetailsSheet';
|
|
25
|
+
export type { PujaDetailsSheetProps, PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, MyorDevoteesReviewsProps, MyorDevoteeReviewData, MyorDevoteeReviewMedia, } from './components/PujaDetailsSheet';
|