@srimandir/pitru-paksh-ritual-recommendation 2.0.1 → 2.0.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.
@@ -1,24 +0,0 @@
1
- export interface AncestorPujaItem {
2
- /** e.g. "Great-grandfather Maternal" */
3
- name: string;
4
- /** e.g. "(Ekadashi)" */
5
- tithi: string;
6
- /** Whether this ancestor currently has a suggested puja (shows "Remove"); false shows "Add again" */
7
- isActive: boolean;
8
- }
9
- export interface AncestorEditModalProps {
10
- isOpen: boolean;
11
- onClose: () => void;
12
- avatarUrl?: string;
13
- question: string;
14
- ancestors: AncestorPujaItem[];
15
- onToggle: (index: number) => void;
16
- confirmLabel: string;
17
- onConfirmClick: () => void;
18
- addAgainLabel: string;
19
- removeLabel: string;
20
- removeWarningMessagePrefix: string;
21
- removeWarningConfirmLabel: string;
22
- removeWarningCancelLabel: string;
23
- }
24
- export declare function AncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningConfirmLabel, removeWarningCancelLabel, }: AncestorEditModalProps): import("react").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- export { AncestorEditModal } from './AncestorEditModal';
2
- export type { AncestorEditModalProps, AncestorPujaItem } from './AncestorEditModal';
3
- export { RemoveWarningDialog } from './RemoveWarningDialog';
4
- export type { RemoveWarningDialogProps } from './RemoveWarningDialog';
@@ -1,13 +0,0 @@
1
- export interface MandapArrangementCardProps {
2
- imageUrl: string;
3
- imageAlt: string;
4
- title: string;
5
- description: string;
6
- /** Strikethrough original price, e.g. "₹851" */
7
- originalPrice?: string;
8
- /** e.g. "₹651" */
9
- price: string;
10
- isAdded: boolean;
11
- onCtaClick?: () => void;
12
- }
13
- export declare function MandapArrangementCard({ imageUrl, imageAlt, title, description, originalPrice, price, isAdded, onCtaClick, }: MandapArrangementCardProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { MandapArrangementCard } from './MandapArrangementCard';
2
- export type { MandapArrangementCardProps } from './MandapArrangementCard';
@@ -1,19 +0,0 @@
1
- import { ReviewData } from '../ReviewsAndRatings';
2
- import { DevoteeReviewData } from '../PujaDetailsSheet';
3
- import { RitualRecommendationData, MandapArrangementData } from '../../types';
4
- export interface OutcomeProps {
5
- ritualCount: number;
6
- rituals: RitualRecommendationData[];
7
- mandapArrangement?: MandapArrangementData;
8
- rating: string;
9
- ratingCountLabel: string;
10
- reviews: ReviewData[];
11
- onReadAllReviewsClick?: () => void;
12
- /** Devotee text reviews shown in every ritual's "Learn more" detail sheet */
13
- devoteesReviews?: DevoteeReviewData[];
14
- onDevoteesReviewsSeeMoreClick?: () => void;
15
- totalPrice: string;
16
- onPriceInfoClick?: () => void;
17
- onProceedClick?: () => void;
18
- }
19
- export declare function Outcome({ ritualCount, rituals, mandapArrangement, rating, ratingCountLabel, reviews, onReadAllReviewsClick, devoteesReviews, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, }: OutcomeProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { Outcome } from './Outcome';
2
- export type { OutcomeProps } from './Outcome';
@@ -0,0 +1,9 @@
1
+ export interface RitualDataCollectionFlowProps {
2
+ avatarUrl: string;
3
+ step1AudioSrc?: string;
4
+ step2AudioSrc?: string;
5
+ step3AudioSrc?: string;
6
+ onExit?: () => void;
7
+ onComplete?: () => void;
8
+ }
9
+ export declare function RitualDataCollectionFlow({ avatarUrl, step1AudioSrc, step2AudioSrc, step3AudioSrc, onExit, onComplete, }: RitualDataCollectionFlowProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { RitualDataCollectionFlow } from './RitualDataCollectionFlow';
2
+ export type { RitualDataCollectionFlowProps } from './RitualDataCollectionFlow';
@@ -1,3 +0,0 @@
1
- import { RitualRecommendationData } from '../../types';
2
- export type RitualRecommendationCardProps = RitualRecommendationData;
3
- export declare function RitualRecommendationCard({ index, ancestorsLabel, onEditClick, onExpandClick, imageUrl, imageAlt, ratingLabel, bookedLabel, title, description, onLearnMoreClick, learnMoreHref, dateLabel, locationLabel, price, isAdded, onCtaClick, onPriceInfoClick, }: RitualRecommendationCardProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { RitualRecommendationCard } from './RitualRecommendationCard';
2
- export type { RitualRecommendationCardProps } from './RitualRecommendationCard';
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { I18nContextValue } from '../../../common/dist/common.js';
2
+ import { I18nContextValue } from '@srimandir/common';
3
3
  import { SupportedLocale } from './translations';
4
4
  export declare const I18nProvider: FC<{
5
5
  locale: SupportedLocale;
package/dist/index.d.ts CHANGED
@@ -2,8 +2,6 @@ export { I18nProvider, useI18n } from './i18n';
2
2
  export type { SupportedLocale } from './i18n';
3
3
  export { Landing } from './components/Landing';
4
4
  export type { LandingProps } from './components/Landing';
5
- export { Outcome } from './components/Outcome';
6
- export type { OutcomeProps } from './components/Outcome';
7
5
  export { BillDetails } from './components/BillDetails';
8
6
  export type { BillDetailsProps, BillDetailsItem } from './components/BillDetails';
9
7
  export { SelectAncestors } from './components/SelectAncestors';
@@ -15,8 +13,6 @@ export type { DeathTithiProps } from './components/DeathTithi';
15
13
  export type { RitualRecommendationData, MandapArrangementData, OutcomeTrustIconVariant, OutcomeTrustItemData, CauseOfDeathValue, DeathTithiMethod, RitualRecommendationAction, RitualRecommendationState, } from './types';
16
14
  export type { ReviewData } from './components/ReviewsAndRatings';
17
15
  export type { DevoteeReviewData } from './components/PujaDetailsSheet';
18
- export { mapTempleToRitualCardData } from './utils/mapTemplesResponse';
19
- export type { TempleRitualCardData } from './utils/mapTemplesResponse';
20
16
  export { mapPujaL2Response } from './utils/mapPujaL2Response';
21
17
  export type { PujaL2DetailsSheetData } from './utils/mapPujaL2Response';
22
18
  export type { PujaL2Response } from './types/pujaL2.types';