@srimandir/make-your-own-ritual 0.22.0 → 0.22.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.
@@ -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
- /** Floating back button over the hero banner — omit to hide it, e.g. for a flow with no previous page to return to. */
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({ ritualCount, rituals, mandapArrangement, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, skipPackageSelect, onBack, backButtonAriaLabel, packageSelectOptions, }: MyorOutcomeProps & OutcomePackageSelectProps): import("react").JSX.Element;
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, DevoteesReviews, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
4
- export type { PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, DevoteesReviewsProps, DevoteeReviewData, DevoteeReviewMedia, } from '../../../../pitru-paksh-common/dist/pitru-paksh-common.js';
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';
@@ -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, DevoteesReviews, } from './components/PujaDetailsSheet';
25
- export type { PujaDetailsSheetProps, PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, DevoteesReviewsProps, DevoteeReviewData, DevoteeReviewMedia, } from './components/PujaDetailsSheet';
24
+ export { PujaDetailsSheet, PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, MyorDevoteesReviews, } from './components/PujaDetailsSheet';
25
+ export type { PujaDetailsSheetProps, PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, MyorDevoteesReviewsProps, MyorDevoteeReviewData, MyorDevoteeReviewMedia, } from './components/PujaDetailsSheet';