@srimandir/pitru-paksh-ritual-recommendation 2.1.0 → 2.1.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.
@@ -18,7 +18,9 @@ export interface AncestorEditModalProps {
18
18
  addAgainLabel: string;
19
19
  removeLabel: string;
20
20
  removeWarningMessagePrefix: string;
21
+ /** e.g. "?" for English; languages whose verb phrase follows the name put it here instead */
22
+ removeWarningMessageSuffix?: string;
21
23
  removeWarningConfirmLabel: string;
22
24
  removeWarningCancelLabel: string;
23
25
  }
24
- export declare function AncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningConfirmLabel, removeWarningCancelLabel, }: AncestorEditModalProps): import("react").JSX.Element | null;
26
+ export declare function AncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningMessageSuffix, removeWarningConfirmLabel, removeWarningCancelLabel, }: AncestorEditModalProps): import("react").JSX.Element | null;
@@ -3,11 +3,13 @@ export interface RemoveWarningDialogProps {
3
3
  avatarUrl?: string;
4
4
  /** e.g. "Are you sure you want to remove the suggested rituals for your " */
5
5
  messagePrefix: string;
6
- /** e.g. "Grandfather (paternal) and Grandmother (paternal)?" — rendered highlighted */
6
+ /** e.g. "Grandfather (paternal) and Grandmother (paternal)" — rendered highlighted */
7
7
  highlightedNames: string;
8
+ /** e.g. "?" — plain text rendered after the highlighted names, for languages whose verb phrase follows the name */
9
+ messageSuffix?: string;
8
10
  confirmLabel: string;
9
11
  cancelLabel: string;
10
12
  onConfirm: () => void;
11
13
  onCancel: () => void;
12
14
  }
13
- export declare function RemoveWarningDialog({ isOpen, avatarUrl, messagePrefix, highlightedNames, confirmLabel, cancelLabel, onConfirm, onCancel, }: RemoveWarningDialogProps): import("react").JSX.Element | null;
15
+ export declare function RemoveWarningDialog({ isOpen, avatarUrl, messagePrefix, highlightedNames, messageSuffix, confirmLabel, cancelLabel, onConfirm, onCancel, }: RemoveWarningDialogProps): import("react").JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import { SupportedLocale } from '../../i18n';
2
+ export interface RitualLoaderProps {
3
+ locale: SupportedLocale;
4
+ /** URL of the Lottie JSON animation for this locale — the caller picks it, this component just plays it. */
5
+ link: string;
6
+ }
7
+ /** Locale-specific Lottie animation shown while a recommendation resolves. */
8
+ export declare function RitualLoader({ locale, link }: RitualLoaderProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { RitualLoader } from './RitualLoader';
2
+ export type { RitualLoaderProps } from './RitualLoader';
@@ -1,4 +1,4 @@
1
- export declare const SUPPORTED_LOCALES: readonly ["en", "hi", "te"];
1
+ export declare const SUPPORTED_LOCALES: readonly ["en", "hi", "te", "kn"];
2
2
  export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
3
3
  export declare const LOCALE_LABELS: Record<SupportedLocale, string>;
4
4
  export declare const translations: Record<SupportedLocale, Record<string, string>>;
@@ -260,6 +260,7 @@ export declare const en: {
260
260
  ancestorEditRemoveLabel: string;
261
261
  ancestorEditConfirmLabel: string;
262
262
  ancestorRemoveWarningPrefix: string;
263
+ ancestorRemoveWarningSuffix: string;
263
264
  ancestorRemoveWarningConfirmLabel: string;
264
265
  ancestorRemoveWarningCancelLabel: string;
265
266
  billDetailsHeading: string;
@@ -256,6 +256,7 @@ export declare const hi: {
256
256
  ancestorEditRemoveLabel: string;
257
257
  ancestorEditConfirmLabel: string;
258
258
  ancestorRemoveWarningPrefix: string;
259
+ ancestorRemoveWarningSuffix: string;
259
260
  ancestorRemoveWarningConfirmLabel: string;
260
261
  ancestorRemoveWarningCancelLabel: string;
261
262
  billDetailsHeading: string;
@@ -0,0 +1,273 @@
1
+ export declare const kn: {
2
+ trustPujasCompleted: string;
3
+ trustRating: string;
4
+ trustReviews: string;
5
+ landingHeroBadge: string;
6
+ landingHeroDates: string;
7
+ landingHeroHeading: string;
8
+ landingHeroCtaLabel: string;
9
+ landingPromise1Text: string;
10
+ landingPromise2Text: string;
11
+ landingPromise3Text: string;
12
+ landingSignificanceEyebrow: string;
13
+ landingSignificanceTitle: string;
14
+ landingSignificanceDescription: string;
15
+ landingWhyItMattersEyebrow: string;
16
+ landingWhyItMattersTitle: string;
17
+ landingBenefit1Title: string;
18
+ landingBenefit1Description: string;
19
+ landingBenefit2Title: string;
20
+ landingBenefit2Description: string;
21
+ landingBenefit3Title: string;
22
+ landingBenefit3Description: string;
23
+ landingRitualsEyebrow: string;
24
+ landingRitualsTitle: string;
25
+ landingRitual1Title: string;
26
+ landingRitual1Description: string;
27
+ landingRitual2Title: string;
28
+ landingRitual2Description: string;
29
+ landingRitual3Title: string;
30
+ landingRitual3Description: string;
31
+ landingRitual4Title: string;
32
+ landingRitual4Description: string;
33
+ landingGuidanceEyebrow: string;
34
+ landingGuidanceTitle: string;
35
+ landingGuidanceStep1Title: string;
36
+ landingGuidanceStep1Description: string;
37
+ landingGuidanceStep2Title: string;
38
+ landingGuidanceStep2Description: string;
39
+ landingGuidanceStep3Title: string;
40
+ landingGuidanceStep3Description: string;
41
+ landingGuidanceStep4Title: string;
42
+ landingGuidanceStep4Description: string;
43
+ landingOnlinePujaTitle: string;
44
+ landingOnlinePujaBodyPrefix: string;
45
+ landingOnlinePujaBodyPart1: string;
46
+ landingOnlinePujaBodyPart2: string;
47
+ landingOnlinePujaBodyPart3: string;
48
+ landingOnlinePujaBodyPart4: string;
49
+ landingOnlinePujaQuote: string;
50
+ landingReviewsVideoQuote: string;
51
+ landingReviewsVideoAuthorName: string;
52
+ landingReviewsVideoAuthorLocation: string;
53
+ landingReviewsHeadingHighlight: string;
54
+ landingReviewsHeadingRest: string;
55
+ landingReviewsRating: string;
56
+ landingReviewsTrustLine: string;
57
+ landingReviewsTestimonial1Quote: string;
58
+ landingReviewsTestimonial1AuthorName: string;
59
+ landingReviewsTestimonial1PujaLabel: string;
60
+ landingReviewsTestimonial2Quote: string;
61
+ landingReviewsTestimonial2AuthorName: string;
62
+ landingReviewsTestimonial2PujaLabel: string;
63
+ landingReviewsTestimonial3Quote: string;
64
+ landingReviewsTestimonial3AuthorName: string;
65
+ landingReviewsTestimonial3PujaLabel: string;
66
+ landingReviewsTestimonial4Quote: string;
67
+ landingReviewsTestimonial4AuthorName: string;
68
+ landingReviewsTestimonial4PujaLabel: string;
69
+ landingFaqTitle: string;
70
+ landingFaqQ1: string;
71
+ landingFaqA1: string;
72
+ landingFaqQ2: string;
73
+ landingFaqA2: string;
74
+ landingFaqQ3: string;
75
+ landingFaqA3: string;
76
+ landingFaqQ4: string;
77
+ landingFaqA4: string;
78
+ landingFaqQ5: string;
79
+ landingFaqA5: string;
80
+ landingFaqQ6: string;
81
+ landingFaqA6: string;
82
+ landingFooterAddressLabel: string;
83
+ landingFooterAddress: string;
84
+ landingFooterLegalPrivacyPolicy: string;
85
+ landingFooterLegalTerms: string;
86
+ landingFooterLegalCopyright: string;
87
+ selectAncestorsProgressLabel: string;
88
+ selectAncestorsQuestion: string;
89
+ selectAncestorsSubheading: string;
90
+ selectAncestorsOptionAll: string;
91
+ selectAncestorsOptionMother: string;
92
+ selectAncestorsOptionFather: string;
93
+ selectAncestorsOptionGrandfatherPaternal: string;
94
+ selectAncestorsOptionGrandmotherPaternal: string;
95
+ selectAncestorsOptionGrandfatherMaternal: string;
96
+ selectAncestorsOptionGrandmotherMaternal: string;
97
+ selectAncestorsOptionGreatGrandfatherPaternal: string;
98
+ selectAncestorsOptionGreatGrandmotherPaternal: string;
99
+ selectAncestorsOptionGreatGrandfatherMaternal: string;
100
+ selectAncestorsOptionGreatGrandmotherMaternal: string;
101
+ selectAncestorsOptionAddMore: string;
102
+ selectAncestorsCtaLabel: string;
103
+ addAncestorModalTitle: string;
104
+ addAncestorModalFieldLabel: string;
105
+ addAncestorModalNamePrefix: string;
106
+ addAncestorModalNamePlaceholder: string;
107
+ addAncestorModalAddMore: string;
108
+ addAncestorModalSaveCta: string;
109
+ causeOfDeathProgressLabel: string;
110
+ causeOfDeathQuestion: string;
111
+ causeOfDeathSubtext: string;
112
+ causeOfDeathInfoLinkLabel: string;
113
+ causeOfDeathOptionAccidental: string;
114
+ causeOfDeathOptionNatural: string;
115
+ causeOfDeathOptionUnknown: string;
116
+ causeOfDeathAllNaturalCheckbox: string;
117
+ causeOfDeathCtaLabel: string;
118
+ causeOfDeathInfoModalUntimelyTitle: string;
119
+ causeOfDeathInfoModalUntimelyBodyHighlight: string;
120
+ causeOfDeathInfoModalUntimelyBodyRest: string;
121
+ causeOfDeathInfoModalAccidentalTitle: string;
122
+ causeOfDeathInfoModalAccidentalBody: string;
123
+ causeOfDeathInfoModalCta: string;
124
+ deathTithiProgressLabel: string;
125
+ deathTithiQuestionPrefix: string;
126
+ deathTithiQuestionHighlight: string;
127
+ deathTithiQuestionSuffix: string;
128
+ deathTithiSubtextPrefix: string;
129
+ deathTithiSubtextHighlight: string;
130
+ deathTithiOption1Title: string;
131
+ deathTithiOption1Subtext: string;
132
+ deathTithiOption2Title: string;
133
+ deathTithiOption2Subtext: string;
134
+ deathTithiOption3Title: string;
135
+ deathTithiOption3Subtext: string;
136
+ deathTithiOption3ExpandedTitle: string;
137
+ deathTithiOption3ExpandedBody: string;
138
+ deathTithiOption4Title: string;
139
+ deathTithiCtaLabel: string;
140
+ deathTithiPickerHeadingSuffix: string;
141
+ deathTithiPickerConfirmCta: string;
142
+ deathDatePickerConfirmCta: string;
143
+ deathDatePickerTimezoneLabel: string;
144
+ tithiNamePratipada: string;
145
+ tithiNameDvitiya: string;
146
+ tithiNameTritiya: string;
147
+ tithiNameChaturthi: string;
148
+ tithiNamePanchami: string;
149
+ tithiNameShashthi: string;
150
+ tithiNameSaptami: string;
151
+ tithiNameAshtami: string;
152
+ tithiNameNavami: string;
153
+ tithiNameDashami: string;
154
+ tithiNameEkadashi: string;
155
+ tithiNameDvadashi: string;
156
+ tithiNameTrayodashi: string;
157
+ tithiNameChaturdashi: string;
158
+ tithiNameAmavasya: string;
159
+ amavasyaFallbackDatePassedHeader: string;
160
+ amavasyaFallbackTithiPassedHeader: string;
161
+ amavasyaFallbackDefaultHeader: string;
162
+ amavasyaFallbackSlotsFullHeader: string;
163
+ amavasyaFallbackCardTitle: string;
164
+ amavasyaFallbackCardBadge: string;
165
+ amavasyaFallbackCardBodyDatePassed: string;
166
+ amavasyaFallbackCardBodyDefault: string;
167
+ amavasyaFallbackCta: string;
168
+ recommendationMandapFeeLabel: string;
169
+ recommendationMandapFeeDescription: string;
170
+ recommendationReviewsHeading: string;
171
+ outcomeBadge: string;
172
+ outcomeHeadingPrefix: string;
173
+ outcomeHeadingRitualPlural: string;
174
+ outcomeHeadingSuffix: string;
175
+ outcomeTrustPanditsText: string;
176
+ outcomeTrustGotraText: string;
177
+ outcomeTrustVideoText: string;
178
+ outcomeLearnMoreLabel: string;
179
+ outcomePriceInfoLabel: string;
180
+ outcomeStickyCtaRitualPlural: string;
181
+ outcomeStickyCtaProceedLabel: string;
182
+ outcomeRemovedRitualsHeading: string;
183
+ whySriMandirHeading: string;
184
+ processInvolvedHeading: string;
185
+ reviewsRefundChipTitle: string;
186
+ reviewsRefundChipSubtitle: string;
187
+ reviewsVideoProofChipTitle: string;
188
+ reviewsVideoProofChipSubtitle: string;
189
+ tickerMoneyBackGuarantee: string;
190
+ performerCountModalTitle: string;
191
+ performerCountModalSubtext: string;
192
+ performerCountBenefit1Text: string;
193
+ performerCountBenefit2Text: string;
194
+ performerCountBenefit3Text: string;
195
+ performerCountUnitSingular: string;
196
+ performerCountUnitPlural: string;
197
+ performerCountTwoSelectedNote: string;
198
+ performerCountCtaLabel: string;
199
+ bookingReviewHeading: string;
200
+ bookingReviewSubheading: string;
201
+ bookingReviewSummaryAncestorsLabel: string;
202
+ bookingReviewSummaryPujasLabel: string;
203
+ bookingReviewSummaryKartasLabel: string;
204
+ bookingReviewKartaSectionTitlePrefix: string;
205
+ additionalServicesHeading: string;
206
+ additionalServicesSubheading: string;
207
+ serviceTarpanDaanTitle: string;
208
+ serviceGoSevaDescription: string;
209
+ serviceSarvajanikSevaDescription: string;
210
+ serviceReadMoreLabel: string;
211
+ billDetailsKartaFeeLabel: string;
212
+ billDetailsRitualFeeSuffix: string;
213
+ billDetailsTarpanFeeLabel: string;
214
+ billDetailsGoSevaFeeLabel: string;
215
+ billDetailsPanditFeeLabel: string;
216
+ billDetailsFreeLabel: string;
217
+ billDetailsPhotoVideoFeeLabel: string;
218
+ ritualCardProcessLinkLabel: string;
219
+ bookingReviewCtaLabel: string;
220
+ billDetailsHeading: string;
221
+ billDetailsTotalLabel: string;
222
+ kartaDetailsTopBarTitle: string;
223
+ kartaNameSectionTitle: string;
224
+ gotraUnknownCheckboxLabel: string;
225
+ gotraUnknownHelperText: string;
226
+ ancestorNameSectionTitle: string;
227
+ ancestorNameSectionSubtitle: string;
228
+ confirmPujaDetailsHeading: string;
229
+ confirmPujaDetailsSubtext: string;
230
+ confirmPujaDetailsAncestorsLabel: string;
231
+ confirmPujaDetailsPerformerLabel: string;
232
+ confirmPujaDetailsGotraLabel: string;
233
+ confirmPujaDetailsWhatsappLabel: string;
234
+ confirmPujaDetailsEditLabel: string;
235
+ phoneNumberRitualsHeading: string;
236
+ phoneNumberRitualsBullet1: string;
237
+ phoneNumberRitualsBullet2: string;
238
+ phoneNumberRitualsCtaLabel: string;
239
+ emailHeading: string;
240
+ emailSubtext: string;
241
+ emailCtaLabel: string;
242
+ whySriMandirTemplesLabel: string;
243
+ whySriMandirSupportLabel: string;
244
+ whySriMandirGuaranteeLabel: string;
245
+ processNameGotraTitle: string;
246
+ processNameGotraDescription: string;
247
+ processLiveUpdatesTitle: string;
248
+ processLiveUpdatesDescription: string;
249
+ processMantrasTitle: string;
250
+ processMantrasDescription: string;
251
+ processVideoTitle: string;
252
+ processVideoDescription: string;
253
+ manageRitualsHeading: string;
254
+ manageRitualsAddAgain: string;
255
+ manageRitualsRemove: string;
256
+ manageRitualsCta: string;
257
+ confirmRemoveRitualPrefix: string;
258
+ confirmRemoveRitualSuffix: string;
259
+ confirmRemoveRitualYes: string;
260
+ confirmRemoveRitualNo: string;
261
+ emptyRitualsTitle: string;
262
+ emptyRitualsSubtitle: string;
263
+ outcomeEmptyRitualsTitle: string;
264
+ outcomeEmptyRitualsSubtitle: string;
265
+ ancestorEditQuestion: string;
266
+ ancestorEditAddAgainLabel: string;
267
+ ancestorEditRemoveLabel: string;
268
+ ancestorEditConfirmLabel: string;
269
+ ancestorRemoveWarningPrefix: string;
270
+ ancestorRemoveWarningSuffix: string;
271
+ ancestorRemoveWarningConfirmLabel: string;
272
+ ancestorRemoveWarningCancelLabel: string;
273
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { I18nProvider, useI18n } from './i18n';
1
+ export { I18nProvider, useI18n, SUPPORTED_LOCALES } from './i18n';
2
2
  export type { SupportedLocale } from './i18n';
3
3
  export { Landing } from './components/Landing';
4
4
  export type { LandingProps } from './components/Landing';
@@ -14,6 +14,8 @@ export { DeathTithi } from './components/DeathTithi';
14
14
  export type { DeathTithiProps } from './components/DeathTithi';
15
15
  export { LoadingScreen } from './components/LoadingScreen';
16
16
  export type { LoadingScreenProps } from './components/LoadingScreen';
17
+ export { RitualLoader } from './components/RitualLoader';
18
+ export type { RitualLoaderProps } from './components/RitualLoader';
17
19
  export type { RitualRecommendationData, MandapArrangementData, OutcomeTrustIconVariant, OutcomeTrustItemData, CauseOfDeathValue, DeathTithiMethod, PhoneNumberData, TithiPreview, TithiValidity, RitualRecommendationAction, RitualRecommendationState, PackageSelectSheetOption, PackageSelectSheetProps, AncestorOptionData, } from './types';
18
20
  export type { ReviewData } from './components/ReviewsAndRatings';
19
21
  export type { DevoteeReviewData, DevoteeReviewMedia } from './components/PujaDetailsSheet';