@srimandir/kundli-generator 5.26.3 → 5.27.1

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.
Files changed (41) hide show
  1. package/dist/{analytics-BDueklE6.js → analytics-BwvFb8DQ.js} +575 -582
  2. package/dist/analytics-BwvFb8DQ.js.map +1 -0
  3. package/dist/analytics.d.ts +0 -34
  4. package/dist/components/KundliForm/sections/ProceedFooter/ProceedFooter.d.ts +0 -1
  5. package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +5 -5
  6. package/dist/components/KundliPage/KundliContext.d.ts +6 -0
  7. package/dist/components/KundliPage/KundliPage.d.ts +6 -6
  8. package/dist/components/KundliPage/KundliPageV1.d.ts +6 -6
  9. package/dist/components/KundliPage/sections/UtmBannerSection/UtmBannerSection.d.ts +8 -0
  10. package/dist/components/KundliPage/sections/UtmBannerSection/index.d.ts +2 -0
  11. package/dist/components/KundliPage/sections/index.d.ts +1 -0
  12. package/dist/components/KundliPlanBottomSheet/types.d.ts +0 -1
  13. package/dist/criticalCss-CpJxtpfG.js +1271 -0
  14. package/dist/criticalCss-CpJxtpfG.js.map +1 -0
  15. package/dist/form-entry.js +1 -1
  16. package/dist/kundli-generator.js +2 -2
  17. package/dist/page-entry.js +2 -2
  18. package/dist/style.css +1 -1
  19. package/dist/utils/utmBanner.d.ts +18 -0
  20. package/package.json +2 -2
  21. package/dist/analytics-BDueklE6.js.map +0 -1
  22. package/dist/components/KundliPage/sections/KundliTableSection/KundliTableSection.constants.d.ts +0 -32
  23. package/dist/components/KundliPage/sections/KundliTableSection/SampleReportsSection.d.ts +0 -10
  24. package/dist/components/KundliPage/sections/KundliTableSection/index.d.ts +0 -3
  25. package/dist/components/ThreeSkuPlanBottomSheet/AstrologerSection.d.ts +0 -8
  26. package/dist/components/ThreeSkuPlanBottomSheet/PlanFeatureList.d.ts +0 -7
  27. package/dist/components/ThreeSkuPlanBottomSheet/PlanSelectorStrip.d.ts +0 -11
  28. package/dist/components/ThreeSkuPlanBottomSheet/ProceedButton.d.ts +0 -9
  29. package/dist/components/ThreeSkuPlanBottomSheet/QuestionChips.d.ts +0 -7
  30. package/dist/components/ThreeSkuPlanBottomSheet/QuestionInput.d.ts +0 -15
  31. package/dist/components/ThreeSkuPlanBottomSheet/SheetHeader.d.ts +0 -6
  32. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerCard.d.ts +0 -6
  33. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerProfiles.d.ts +0 -15
  34. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.d.ts +0 -3
  35. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.icons.d.ts +0 -3
  36. package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +0 -51
  37. package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +0 -87
  38. package/dist/components/ThreeSkuPlanBottomSheet/index.d.ts +0 -4
  39. package/dist/criticalCss-66i_WtMP.js +0 -1881
  40. package/dist/criticalCss-66i_WtMP.js.map +0 -1
  41. package/dist/utils/keyframeStyles.d.ts +0 -10
@@ -63,12 +63,6 @@ export declare const KUNDLI_ANALYTICS_EVENT_NAMES: {
63
63
  readonly kundli_page_view: "kundli_page_view";
64
64
  /** Legacy / alias: when L1 form page is viewed (same as l1_page_opened) */
65
65
  readonly kundli_form_view: "kundli_form_view";
66
- /** 3-SKU: sample report viewed for the 1-question plan */
67
- readonly one_question_view_sample_report_clicked: "1_question_view_sample_report_clicked";
68
- readonly one_question_view_sample_report_closed: "1_question_view_sample_report_closed";
69
- /** Sample image modal events */
70
- readonly kundli_view_sample_image_clicked: "kundli_view_sample_image_clicked";
71
- readonly kundli_view_sample_image_closed: "kundli_view_sample_image_closed";
72
66
  };
73
67
  export type KundliAnalyticsEventName = (typeof KUNDLI_ANALYTICS_EVENT_NAMES)[keyof typeof KUNDLI_ANALYTICS_EVENT_NAMES];
74
68
  /** Optional analytics implementation. Pass from host to KundliPage/KundliForm to track events. */
@@ -126,37 +120,9 @@ export interface KundliAnalytics {
126
120
  planId: string;
127
121
  planName: string;
128
122
  }): void;
129
- /** Updated: includes question-related fields for the 3-SKU experiment. */
130
123
  trackPlanProceedClicked?(params: {
131
124
  planId: string;
132
125
  planName: string;
133
- price?: string;
134
- currency?: string;
135
- question_asked?: boolean;
136
- question_text?: string;
137
- question_source?: 'chip' | 'custom' | 'chip_edited';
138
126
  }): void;
139
127
  trackPlanPageClosed?(): void;
140
- /** Fires once when the SKU comparison table enters the viewport (≥50% visible). */
141
- trackComparisonTableImpression?(): void;
142
- /** Fires the first time per card-expansion the user focuses the question textbox. */
143
- trackQuestionTextboxClicked?(params: {
144
- entry_method: 'tap' | 'keyboard_focus';
145
- textbox_empty: boolean;
146
- }): void;
147
- /** Fires every time a suggested-question chip is selected. */
148
- trackPreSuggestedQuestionSelected?(params: {
149
- question_text_loaded: string;
150
- chip_index: number;
151
- previous_chip_index: number | null;
152
- user_had_custom_text: boolean;
153
- }): void;
154
- /** Fires when the 1-question plan sample report PDF is opened. */
155
- trackOneQuestionViewSampleReportClicked?(): void;
156
- /** Fires when the 1-question plan sample report PDF is closed. */
157
- trackOneQuestionViewSampleReportClosed?(): void;
158
- /** Fires when the sample kundli image modal is opened. */
159
- trackKundliViewSampleImageClicked?(): void;
160
- /** Fires when the sample kundli image modal is closed. */
161
- trackKundliViewSampleImageClosed?(): void;
162
128
  }
@@ -19,7 +19,6 @@ export interface ProceedFooterProps {
19
19
  className?: string;
20
20
  originalPriceLabel?: string;
21
21
  discountedPriceLabel?: string;
22
- discountPillLabel?: string;
23
22
  showPlanSheet?: (values: KundliFormValues) => void;
24
23
  confirmPlan?: () => void;
25
24
  planSheetOpen?: boolean;
@@ -22,9 +22,9 @@ export declare const useGooglePlacesAutocomplete: (params: {
22
22
  searchLocalities?: AtlasSearchLocalities;
23
23
  restrictCountry?: string;
24
24
  }) => {
25
- predictions: PlacePrediction[];
26
- isSearching: boolean;
27
- loadError: string | null;
28
- searchPlaces: (query: string) => Promise<void>;
29
- clearPredictions: () => void;
25
+ predictions: any;
26
+ isSearching: any;
27
+ loadError: any;
28
+ searchPlaces: any;
29
+ clearPredictions: any;
30
30
  };
@@ -42,6 +42,12 @@ export interface KundliContextConfig {
42
42
  onLocaleChange?: (locale: SupportedLocale) => void;
43
43
  /** Optional image component (e.g. next/image adapter) for optimized images. */
44
44
  imageComponent?: KundliImageComponent;
45
+ /**
46
+ * CDN image URL map for UTM-based personalised banners.
47
+ * Key is the utm_param value (e.g. 'KundliFeatures_MultipleFeatures') or 'default' for the fallback banner.
48
+ * When provided, the matching banner is shown instead of the default HeroSection text.
49
+ */
50
+ utmBannerImageUrls?: Partial<Record<string, string>>;
45
51
  }
46
52
  export interface KundliContextValue {
47
53
  view: KundliView;
@@ -47,11 +47,11 @@ export interface KundliPageProps {
47
47
  onLocaleChange?: (locale: SupportedLocale) => void;
48
48
  /** Atlas localities search callback for birth place autocomplete */
49
49
  atlasSearchLocalities?: AtlasSearchLocalities;
50
- /** Enables 3-SKU experiment flow when used with v1 variant. */
51
- enableThreeSkuFlow?: boolean;
52
- /** URL for the "200+ page Kundli Report" sample link in 3-SKU table. */
53
- kundliReportSampleHref?: string;
54
- /** URL for the "1 Question" sample link in 3-SKU table. */
55
- oneQuestionSampleHref?: string;
50
+ /**
51
+ * CDN image URL map for UTM-based personalised banners.
52
+ * Key is the utm_param value (e.g. 'KundliFeatures_MultipleFeatures') or 'default' for the fallback banner.
53
+ * When provided, the matching banner image is shown in place of the default HeroSection text.
54
+ */
55
+ utmBannerImageUrls?: Partial<Record<string, string>>;
56
56
  }
57
57
  export declare const KundliPage: React.FC<KundliPageProps>;
@@ -47,11 +47,11 @@ export interface KundliPageProps {
47
47
  onLocaleChange?: (locale: SupportedLocale) => void;
48
48
  /** Atlas localities search callback for birth place autocomplete */
49
49
  atlasSearchLocalities?: AtlasSearchLocalities;
50
- /** Enables 3-SKU experiment flow inside existing v1 page. */
51
- enableThreeSkuFlow?: boolean;
52
- /** URL for the "200+ page Kundli Report" sample link in the 3-SKU table. */
53
- kundliReportSampleHref?: string;
54
- /** URL for the "1 Question" sample link in the 3-SKU table. */
55
- oneQuestionSampleHref?: string;
50
+ /**
51
+ * CDN image URL map for UTM-based personalised banners.
52
+ * Key is the utm_param value (e.g. 'KundliFeatures_MultipleFeatures') or 'default' for the fallback banner.
53
+ * When provided, the matching banner image is shown in place of the default HeroSection text.
54
+ */
55
+ utmBannerImageUrls?: Partial<Record<string, string>>;
56
56
  }
57
57
  export declare const KundliPageV1: React.FC<KundliPageProps>;
@@ -0,0 +1,8 @@
1
+ import { KundliImageComponent } from '../../../../types/image';
2
+ export interface UtmBannerSectionProps {
3
+ imageUrl: string;
4
+ altText: string;
5
+ imageComponent?: KundliImageComponent;
6
+ className?: string;
7
+ }
8
+ export declare const UtmBannerSection: React.FC<UtmBannerSectionProps>;
@@ -0,0 +1,2 @@
1
+ export { UtmBannerSection } from './UtmBannerSection';
2
+ export type { UtmBannerSectionProps } from './UtmBannerSection';
@@ -1,5 +1,6 @@
1
1
  export { KundliHeader } from './KundliHeader';
2
2
  export { HeroSection } from './HeroSection';
3
+ export { UtmBannerSection } from './UtmBannerSection';
3
4
  export { PremiumReportOverview } from './PremiumReportOverview';
4
5
  export { UniversityCertification } from './UniversityCertification';
5
6
  export { ThreeStepsProcess } from './ThreeStepsProcess';
@@ -5,7 +5,6 @@ export interface KundliPlanFeature {
5
5
  export interface KundliPlanAstrologer {
6
6
  name: string;
7
7
  experience: string;
8
- languages?: string[];
9
8
  imageUrl?: string;
10
9
  certifications: string[];
11
10
  }