@srimandir/kundli-generator 5.30.10 → 5.30.11

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,4 +1,23 @@
1
1
  export declare const DEFAULT_SAMPLE_URL = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf";
2
+ export declare const SECTION_TITLE = "Kundli Packages for you";
3
+ export declare const SAMPLE_REPORTS_TITLE = "View Sample Reports";
4
+ export declare const ONLY_FOR_LABEL = "Only for";
5
+ export declare const UNIQUE_FEATURES_LABEL = "Unique Features";
6
+ export declare const COLUMN_HEADERS: {
7
+ readonly kundliReport: "Kundli Report";
8
+ readonly reportPlusQuestion: "Report + 1 Question";
9
+ readonly reportPlusQuestionSubtext: "(Answered by Astrologer)";
10
+ readonly reportPlusConsultation: "Report + 30 min consultation";
11
+ readonly popularBadge: "Popular";
12
+ };
13
+ export declare const SAMPLE_REPORT_LABELS: {
14
+ readonly kundliReport: "200+ page Kundli Report";
15
+ readonly oneQuestion: "1 Question Sample Report";
16
+ };
17
+ export declare const PRICES: {
18
+ readonly global: [string, string, string];
19
+ readonly domestic: [string, string, string];
20
+ };
2
21
  export type Cell = "check" | "cross";
3
22
  export declare const rows: Array<{
4
23
  label: string;
@@ -0,0 +1,5 @@
1
+ interface PackagesTableBodyProps {
2
+ prices: [string, string, string];
3
+ }
4
+ export declare const PackagesTableBody: React.FC<PackagesTableBodyProps>;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const PackagesTableHeader: React.FC;
@@ -0,0 +1,6 @@
1
+ interface SampleReportsSectionProps {
2
+ kundliReportSampleHref: string;
3
+ oneQuestionSampleHref: string;
4
+ }
5
+ export declare const SampleReportsSection: React.FC<SampleReportsSectionProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { KundliPlanAstrologer } from '../KundliPlanBottomSheet/types';
2
+ interface AstrologerSectionProps {
3
+ astrologers: KundliPlanAstrologer[];
4
+ heading: string;
5
+ t: (key: string) => string;
6
+ }
7
+ export declare const AstrologerSection: React.FC<AstrologerSectionProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ThreeSkuPlan } from './constants';
2
+ interface PlanFeatureListProps {
3
+ plan: ThreeSkuPlan;
4
+ t: (key: string) => string;
5
+ }
6
+ export declare const PlanFeatureList: React.FC<PlanFeatureListProps>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ThreeSkuPlan } from './constants';
2
+ import { ThreeSkuAnalytics } from './ThreeSkuPlanBottomSheet.types';
3
+ interface PlanSelectorStripProps {
4
+ plans: ThreeSkuPlan[];
5
+ selectedId: string;
6
+ t: (key: string) => string;
7
+ analytics?: ThreeSkuAnalytics;
8
+ onSelectPlan: (plan: ThreeSkuPlan) => void;
9
+ }
10
+ export declare const PlanSelectorStrip: React.FC<PlanSelectorStripProps>;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ interface ProceedButtonProps {
2
+ canProceed: boolean;
3
+ label: string;
4
+ showDisabledHint: boolean;
5
+ hintText: string;
6
+ onClick: () => void;
7
+ }
8
+ export declare const ProceedButton: React.FC<ProceedButtonProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ interface QuestionChipsProps {
2
+ chipKeys: readonly string[];
3
+ t: (key: string) => string;
4
+ onChipClick: (key: string, idx: number) => void;
5
+ }
6
+ export declare const QuestionChips: React.FC<QuestionChipsProps>;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ interface QuestionInputProps {
2
+ textareaRef: React.RefObject<HTMLTextAreaElement>;
3
+ value: string;
4
+ label: string;
5
+ placeholder: string;
6
+ chipKeys: readonly string[];
7
+ t: (key: string) => string;
8
+ onFocus: () => void;
9
+ onClick: () => void;
10
+ onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
11
+ onChipClick: (key: string, idx: number) => void;
12
+ }
13
+ export declare const QuestionInput: React.FC<QuestionInputProps>;
14
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SheetHeaderProps {
2
+ title: string;
3
+ onClose: () => void;
4
+ }
5
+ export declare const SheetHeader: React.FC<SheetHeaderProps>;
6
+ export {};
@@ -1,49 +1,3 @@
1
- import { ThreeSkuLocale, ThreeSkuPlan } from './constants';
2
- /**
3
- * Analytics interface for the 3-SKU experiment bottom sheet.
4
- * Extends the base plan analytics with question-specific tracking methods.
5
- * Intentionally defined here so this component has zero dependency on
6
- * the base KundliAnalytics interface.
7
- */
8
- export interface ThreeSkuAnalytics {
9
- trackPlanPageViewed?(): void;
10
- trackPlanPageClosed?(): void;
11
- trackPlanSelected?(params: {
12
- planId: string;
13
- planName: string;
14
- }): void;
15
- trackPlanProceedClicked?(params: {
16
- planId: string;
17
- planName: string;
18
- price?: string;
19
- currency?: string;
20
- question_asked?: boolean;
21
- question_text?: string;
22
- question_source?: "chip" | "custom" | "chip_edited";
23
- }): void;
24
- trackQuestionTextboxClicked?(params: {
25
- entry_method: "tap" | "keyboard_focus";
26
- textbox_empty: boolean;
27
- }): void;
28
- trackPreSuggestedQuestionSelected?(params: {
29
- question_text_loaded: string;
30
- chip_index: number;
31
- previous_chip_index: number | null;
32
- user_had_custom_text: boolean;
33
- }): void;
34
- }
35
- export interface ThreeSkuPlanBottomSheetProps {
36
- isOpen: boolean;
37
- onClose: () => void;
38
- selectedPlan: ThreeSkuPlan | null;
39
- onSelectPlan: (plan: ThreeSkuPlan) => void;
40
- onProceed: (plan: ThreeSkuPlan, question?: string) => void;
41
- plans?: ThreeSkuPlan[];
42
- /** Whether the user is on the international (global) flow. Used for default plan pricing. */
43
- isGlobal?: boolean;
44
- /** Locale for built-in translations. Defaults to "en". Falls back to the passed `t` prop for any key not found locally. */
45
- locale?: ThreeSkuLocale;
46
- t?: (key: string) => string;
47
- analytics?: ThreeSkuAnalytics;
48
- }
1
+ import { ThreeSkuPlanBottomSheetProps } from './ThreeSkuPlanBottomSheet.types';
2
+ export type { ThreeSkuAnalytics, ThreeSkuPlanBottomSheetProps } from './ThreeSkuPlanBottomSheet.types';
49
3
  export declare const ThreeSkuPlanBottomSheet: React.FC<ThreeSkuPlanBottomSheetProps>;
@@ -0,0 +1,48 @@
1
+ import { ThreeSkuLocale, ThreeSkuPlan } from './constants';
2
+ /**
3
+ * Analytics interface for the 3-SKU experiment bottom sheet.
4
+ * Extends the base plan analytics with question-specific tracking methods.
5
+ * Intentionally defined here so this component has zero dependency on
6
+ * the base KundliAnalytics interface.
7
+ */
8
+ export interface ThreeSkuAnalytics {
9
+ trackPlanPageViewed?(): void;
10
+ trackPlanPageClosed?(): void;
11
+ trackPlanSelected?(params: {
12
+ planId: string;
13
+ planName: string;
14
+ }): void;
15
+ trackPlanProceedClicked?(params: {
16
+ planId: string;
17
+ planName: string;
18
+ price?: string;
19
+ currency?: string;
20
+ question_asked?: boolean;
21
+ question_text?: string;
22
+ question_source?: "chip" | "custom" | "chip_edited";
23
+ }): void;
24
+ trackQuestionTextboxClicked?(params: {
25
+ entry_method: "tap" | "keyboard_focus";
26
+ textbox_empty: boolean;
27
+ }): void;
28
+ trackPreSuggestedQuestionSelected?(params: {
29
+ question_text_loaded: string;
30
+ chip_index: number;
31
+ previous_chip_index: number | null;
32
+ user_had_custom_text: boolean;
33
+ }): void;
34
+ }
35
+ export interface ThreeSkuPlanBottomSheetProps {
36
+ isOpen: boolean;
37
+ onClose: () => void;
38
+ selectedPlan: ThreeSkuPlan | null;
39
+ onSelectPlan: (plan: ThreeSkuPlan) => void;
40
+ onProceed: (plan: ThreeSkuPlan, question?: string) => void;
41
+ plans?: ThreeSkuPlan[];
42
+ /** Whether the user is on the international (global) flow. Used for default plan pricing. */
43
+ isGlobal?: boolean;
44
+ /** Locale for built-in translations. Defaults to "en". Falls back to the passed `t` prop for any key not found locally. */
45
+ locale?: ThreeSkuLocale;
46
+ t?: (key: string) => string;
47
+ analytics?: ThreeSkuAnalytics;
48
+ }