@srimandir/pitru-paksh-ritual-recommendation 2.0.3 → 2.0.4
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 +6 -4
- package/dist/i18n/translations.hi.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/pitru-paksh-ritual-recommendation.js +957 -939
- 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 +10 -0
- package/package.json +4 -4
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { RitualRecommendationAction, RitualRecommendationState, TithiPreview } from '../../types';
|
|
1
|
+
import { RitualRecommendationAction, RitualRecommendationState, TithiPreview, TithiValidity } from '../../types';
|
|
2
2
|
export interface DeathTithiProps {
|
|
3
|
-
store: Pick<RitualRecommendationState, 'selectedAncestors' | 'deathTithiMethodByAncestor' | 'deathTithiValueByAncestor' | 'deathDateByAncestor' | '
|
|
3
|
+
store: Pick<RitualRecommendationState, 'selectedAncestors' | 'deathTithiMethodByAncestor' | 'deathTithiValueByAncestor' | 'deathDateByAncestor' | 'tithiValidityByAncestor' | '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
|
|
9
|
+
/** Resolves the tithi a picked death date falls on. Persisted via SET_TITHI_PREVIEW; not rendered by this component. */
|
|
10
10
|
onResolveTithiForDate?: (date: string, ancestorKey: string) => Promise<TithiPreview | undefined>;
|
|
11
|
+
/** Checks whether a directly-picked tithi is still bookable. Never rejects — a failure resolves to undefined. */
|
|
12
|
+
onValidateTithi?: (tithiKey: string, ancestorKey: string) => Promise<TithiValidity | undefined>;
|
|
11
13
|
}
|
|
12
|
-
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, }: DeathTithiProps): import("react").JSX.Element;
|
|
14
|
+
export declare function DeathTithi({ store, mutate, avatarUrl, audioSrc, onBackClick, onProceed, onResolveTithiForDate, onValidateTithi, }: DeathTithiProps): import("react").JSX.Element;
|
|
@@ -143,6 +143,9 @@ export declare const hi: {
|
|
|
143
143
|
deathTithiCtaLabel: string;
|
|
144
144
|
deathTithiFinalCtaLabel: string;
|
|
145
145
|
deathTithiPickerHeadingSuffix: string;
|
|
146
|
+
deathTithiPickerConfirmCta: string;
|
|
147
|
+
deathDatePickerConfirmCta: string;
|
|
148
|
+
deathDatePickerTimezoneLabel: string;
|
|
146
149
|
tithiNamePratipada: string;
|
|
147
150
|
tithiNameDvitiya: string;
|
|
148
151
|
tithiNameTritiya: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ 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, PhoneNumberData, TithiPreview, RitualRecommendationAction, RitualRecommendationState, AncestorOptionData, } from './types';
|
|
15
|
+
export type { RitualRecommendationData, MandapArrangementData, OutcomeTrustIconVariant, OutcomeTrustItemData, CauseOfDeathValue, DeathTithiMethod, PhoneNumberData, TithiPreview, TithiValidity, RitualRecommendationAction, RitualRecommendationState, AncestorOptionData, } from './types';
|
|
16
16
|
export type { ReviewData } from './components/ReviewsAndRatings';
|
|
17
17
|
export type { DevoteeReviewData } from './components/PujaDetailsSheet';
|
|
18
18
|
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, TITHI_NAME_KEYS, } from './constants';
|