@srimandir/kundli-generator 3.0.43 → 3.0.44

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,6 +1,7 @@
1
1
  import { SupportedLocale } from '../../i18n/translations';
2
2
  import { KundliFormValues } from '../KundliForm';
3
3
  import { KundliAnalytics } from '../../analytics';
4
+ import { KundliImageComponent } from '../../types/image';
4
5
  export type KundliView = "landing" | "form";
5
6
  export interface KundliContextConfig {
6
7
  locale?: SupportedLocale;
@@ -10,6 +11,8 @@ export interface KundliContextConfig {
10
11
  isGlobal?: boolean;
11
12
  logoUrl?: string;
12
13
  reportImageUrl?: string;
14
+ /** When true, LCP report image can be loaded with priority (e.g. next/image priority). */
15
+ reportImagePriority?: boolean;
13
16
  universityLogoUrls?: [string?, string?];
14
17
  sampleReportHref?: string;
15
18
  onViewSampleReport?: () => void;
@@ -26,6 +29,8 @@ export interface KundliContextConfig {
26
29
  analytics?: KundliAnalytics;
27
30
  /** Notify parent when user changes language (e.g. to keep form view in sync when switching from landing) */
28
31
  onLocaleChange?: (locale: SupportedLocale) => void;
32
+ /** Optional image component (e.g. next/image adapter) for optimized images. */
33
+ imageComponent?: KundliImageComponent;
29
34
  }
30
35
  export interface KundliContextValue {
31
36
  view: KundliView;
@@ -3,6 +3,8 @@ export interface PremiumReportOverviewProps {
3
3
  t: (key: string) => string;
4
4
  /** Optional report cover image URL */
5
5
  reportImageUrl?: string;
6
+ /** When true, report image can be loaded with priority (e.g. LCP) */
7
+ reportImagePriority?: boolean;
6
8
  /** Optional analytics for tracking banner clicked */
7
9
  analytics?: KundliAnalytics;
8
10
  className?: string;
package/dist/index.d.ts CHANGED
@@ -7,3 +7,5 @@ export type { KundliFormValues } from './components/KundliForm';
7
7
  export { I18nProvider, useI18n, SUPPORTED_LOCALES, type SupportedLocale, } from './i18n';
8
8
  export { KUNDLI_LANGUAGE_STORAGE_KEY, getStoredKundliLocale, setStoredKundliLocale, } from './utils/localeStorage';
9
9
  export { getItem, setItem, removeItem, isLocalStorageAvailable } from './utils/storage';
10
+ export type { KundliImageProps, KundliImageComponent } from './types/image';
11
+ export { DefaultKundliImage } from './types/image';