@srimandir/pitru-paksh-ritual-recommendation 2.0.1 → 2.0.3
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/DeathTithi/DeathTithi.d.ts +5 -3
- package/dist/components/Hero/Hero.d.ts +2 -2
- package/dist/components/Landing/Landing.d.ts +2 -2
- package/dist/constants/ritualRecommendation.constants.d.ts +44 -2
- package/dist/index.d.ts +2 -1
- package/dist/pitru-paksh-ritual-recommendation.js +823 -799
- package/dist/pitru-paksh-ritual-recommendation.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ritualRecommendation.types.d.ts +21 -0
- package/package.json +4 -4
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { RitualRecommendationAction, RitualRecommendationState } from '../../types';
|
|
1
|
+
import { RitualRecommendationAction, RitualRecommendationState, TithiPreview } from '../../types';
|
|
2
2
|
export interface DeathTithiProps {
|
|
3
|
-
store: Pick<RitualRecommendationState, 'selectedAncestors' | 'deathTithiMethodByAncestor' | 'deathTithiValueByAncestor' | 'deathDateByAncestor' | 'currentDeathTithiAncestorIndex'>;
|
|
3
|
+
store: Pick<RitualRecommendationState, 'selectedAncestors' | 'deathTithiMethodByAncestor' | 'deathTithiValueByAncestor' | 'deathDateByAncestor' | 'tithiPreviewByAncestor' | 'currentDeathTithiAncestorIndex'>;
|
|
4
4
|
mutate: (action: RitualRecommendationAction) => void;
|
|
5
5
|
avatarUrl: string;
|
|
6
6
|
audioSrc?: string;
|
|
7
7
|
onBackClick?: () => void;
|
|
8
8
|
onProceed?: () => void;
|
|
9
|
+
/** Resolves the tithi a picked death date falls on, for the inline preview shown under the date field. */
|
|
10
|
+
onResolveTithiForDate?: (date: string, ancestorKey: string) => Promise<TithiPreview | undefined>;
|
|
9
11
|
}
|
|
10
|
-
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed }: DeathTithiProps): import("react").JSX.Element;
|
|
12
|
+
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, }: DeathTithiProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface HeroProps {
|
|
2
2
|
videoUrl: string;
|
|
3
|
-
|
|
3
|
+
onCtaClick: () => void;
|
|
4
4
|
}
|
|
5
|
-
export declare function Hero({ videoUrl,
|
|
5
|
+
export declare function Hero({ videoUrl, onCtaClick }: HeroProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SupportedLocale } from '../../i18n';
|
|
2
2
|
export interface LandingProps {
|
|
3
3
|
videoUrl: string;
|
|
4
|
-
|
|
4
|
+
onCtaClick: () => void;
|
|
5
5
|
locale: SupportedLocale;
|
|
6
6
|
onLocaleChange: (locale: SupportedLocale) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function Landing({ videoUrl,
|
|
8
|
+
export declare function Landing({ videoUrl, onCtaClick, locale, onLocaleChange, }: LandingProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,48 @@
|
|
|
1
|
-
import { AncestorOptionData } from '../types';
|
|
2
1
|
export declare const ALL_ANCESTORS_ID = "all";
|
|
3
|
-
export declare const ANCESTOR_OPTIONS:
|
|
2
|
+
export declare const ANCESTOR_OPTIONS: [{
|
|
3
|
+
readonly id: "all";
|
|
4
|
+
readonly labelKey: "selectAncestorsOptionAll";
|
|
5
|
+
}, {
|
|
6
|
+
readonly id: "mother";
|
|
7
|
+
readonly labelKey: "selectAncestorsOptionMother";
|
|
8
|
+
readonly gender: "female";
|
|
9
|
+
}, {
|
|
10
|
+
readonly id: "father";
|
|
11
|
+
readonly labelKey: "selectAncestorsOptionFather";
|
|
12
|
+
readonly gender: "male";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "grandfatherPaternal";
|
|
15
|
+
readonly labelKey: "selectAncestorsOptionGrandfatherPaternal";
|
|
16
|
+
readonly gender: "male";
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: "grandmotherPaternal";
|
|
19
|
+
readonly labelKey: "selectAncestorsOptionGrandmotherPaternal";
|
|
20
|
+
readonly gender: "female";
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "grandfatherMaternal";
|
|
23
|
+
readonly labelKey: "selectAncestorsOptionGrandfatherMaternal";
|
|
24
|
+
readonly gender: "male";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "grandmotherMaternal";
|
|
27
|
+
readonly labelKey: "selectAncestorsOptionGrandmotherMaternal";
|
|
28
|
+
readonly gender: "female";
|
|
29
|
+
}, {
|
|
30
|
+
readonly id: "greatGrandfatherPaternal";
|
|
31
|
+
readonly labelKey: "selectAncestorsOptionGreatGrandfatherPaternal";
|
|
32
|
+
readonly gender: "male";
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "greatGrandmotherPaternal";
|
|
35
|
+
readonly labelKey: "selectAncestorsOptionGreatGrandmotherPaternal";
|
|
36
|
+
readonly gender: "female";
|
|
37
|
+
}, {
|
|
38
|
+
readonly id: "greatGrandfatherMaternal";
|
|
39
|
+
readonly labelKey: "selectAncestorsOptionGreatGrandfatherMaternal";
|
|
40
|
+
readonly gender: "male";
|
|
41
|
+
}, {
|
|
42
|
+
readonly id: "greatGrandmotherMaternal";
|
|
43
|
+
readonly labelKey: "selectAncestorsOptionGreatGrandmotherMaternal";
|
|
44
|
+
readonly gender: "female";
|
|
45
|
+
}];
|
|
4
46
|
export declare const MALE_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1788334548628.webp";
|
|
5
47
|
export declare const FEMALE_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1788334564281.webp";
|
|
6
48
|
/** Custom (free-text) ancestor names carry no gender, so they default to the male avatar. */
|
package/dist/index.d.ts
CHANGED
|
@@ -12,9 +12,10 @@ export { CauseOfDeath } from './components/CauseOfDeath';
|
|
|
12
12
|
export type { CauseOfDeathProps } from './components/CauseOfDeath';
|
|
13
13
|
export { DeathTithi } from './components/DeathTithi';
|
|
14
14
|
export type { DeathTithiProps } from './components/DeathTithi';
|
|
15
|
-
export type { RitualRecommendationData, MandapArrangementData, OutcomeTrustIconVariant, OutcomeTrustItemData, CauseOfDeathValue, DeathTithiMethod, RitualRecommendationAction, RitualRecommendationState, } from './types';
|
|
15
|
+
export type { RitualRecommendationData, MandapArrangementData, OutcomeTrustIconVariant, OutcomeTrustItemData, CauseOfDeathValue, DeathTithiMethod, PhoneNumberData, TithiPreview, RitualRecommendationAction, RitualRecommendationState, AncestorOptionData, } from './types';
|
|
16
16
|
export type { ReviewData } from './components/ReviewsAndRatings';
|
|
17
17
|
export type { DevoteeReviewData } from './components/PujaDetailsSheet';
|
|
18
|
+
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, TITHI_NAME_KEYS, } from './constants';
|
|
18
19
|
export { mapTempleToRitualCardData } from './utils/mapTemplesResponse';
|
|
19
20
|
export type { TempleRitualCardData } from './utils/mapTemplesResponse';
|
|
20
21
|
export { mapPujaL2Response } from './utils/mapPujaL2Response';
|