@srimandir/kundli-generator 3.0.52 → 4.0.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.
- package/dist/components/KundliPage/KundliContext.d.ts +0 -7
- package/dist/components/KundliPage/sections/PremiumReportOverview/PremiumReportOverview.d.ts +0 -10
- package/dist/index.d.ts +0 -4
- package/dist/kundli-generator.js +1343 -1444
- package/dist/kundli-generator.js.map +1 -1
- package/dist/kundli-generator.umd.cjs +9 -9
- package/dist/kundli-generator.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/constants/criticalCss.d.ts +0 -12
- package/dist/types/image.d.ts +0 -17
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
export type KundliView = "landing" | "form";
|
|
6
5
|
export interface KundliContextConfig {
|
|
7
6
|
locale?: SupportedLocale;
|
|
@@ -11,10 +10,6 @@ export interface KundliContextConfig {
|
|
|
11
10
|
isGlobal?: boolean;
|
|
12
11
|
logoUrl?: string;
|
|
13
12
|
reportImageUrl?: string;
|
|
14
|
-
/** When true, LCP report image can be loaded with priority (e.g. next/image priority). */
|
|
15
|
-
reportImagePriority?: boolean;
|
|
16
|
-
/** When true, section background image (PremiumReportOverview) is loaded with priority for LCP. */
|
|
17
|
-
backgroundImagePriority?: boolean;
|
|
18
13
|
universityLogoUrls?: [string?, string?];
|
|
19
14
|
sampleReportHref?: string;
|
|
20
15
|
onViewSampleReport?: () => void;
|
|
@@ -31,8 +26,6 @@ export interface KundliContextConfig {
|
|
|
31
26
|
analytics?: KundliAnalytics;
|
|
32
27
|
/** Notify parent when user changes language (e.g. to keep form view in sync when switching from landing) */
|
|
33
28
|
onLocaleChange?: (locale: SupportedLocale) => void;
|
|
34
|
-
/** Optional image component (e.g. next/image adapter) for optimized images. */
|
|
35
|
-
imageComponent?: KundliImageComponent;
|
|
36
29
|
}
|
|
37
30
|
export interface KundliContextValue {
|
|
38
31
|
view: KundliView;
|
package/dist/components/KundliPage/sections/PremiumReportOverview/PremiumReportOverview.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { KundliAnalytics } from '../../../../analytics';
|
|
2
|
-
/**
|
|
3
|
-
* Background image for the section (replaced from CSS so next/image can optimize when host provides imageComponent).
|
|
4
|
-
* Exported so host apps can preload this resource in document head for better performance:
|
|
5
|
-
* <link rel="preload" as="image" href={PREMIUM_REPORT_BACKGROUND_IMAGE_URL} />
|
|
6
|
-
*/
|
|
7
|
-
export declare const PREMIUM_REPORT_BACKGROUND_IMAGE_URL = "https://srm-cdn.a4b.io/yoda/1772618348892.webp";
|
|
8
2
|
export interface PremiumReportOverviewProps {
|
|
9
3
|
t: (key: string) => string;
|
|
10
4
|
/** Optional report cover image URL */
|
|
11
5
|
reportImageUrl?: string;
|
|
12
|
-
/** When true, report image can be loaded with priority (e.g. LCP) */
|
|
13
|
-
reportImagePriority?: boolean;
|
|
14
|
-
/** When true, section background image loads with priority (e.g. LCP). Default false so background uses loading="lazy" per Lighthouse. Set true when this section is above the fold (hero). */
|
|
15
|
-
backgroundImagePriority?: boolean;
|
|
16
6
|
/** Optional analytics for tracking banner clicked */
|
|
17
7
|
analytics?: KundliAnalytics;
|
|
18
8
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,3 @@ 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';
|
|
12
|
-
export { PREMIUM_REPORT_BACKGROUND_IMAGE_URL } from './components/KundliPage/sections/PremiumReportOverview/PremiumReportOverview';
|
|
13
|
-
export { KUNDLI_CRITICAL_CSS } from './constants/criticalCss';
|