kundli-generator 1.1.0 → 1.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.
- package/dist/components/KundliForm/KundliForm.d.ts +1 -1
- package/dist/components/KundliPage/KundliContext.d.ts +2 -0
- package/dist/components/KundliPage/KundliPage.d.ts +3 -1
- package/dist/i18n/translations.d.ts +1 -1
- package/dist/kundli-generator.js +1465 -1591
- 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 +1 -1
|
@@ -11,7 +11,7 @@ export interface KundliFormValues {
|
|
|
11
11
|
}
|
|
12
12
|
export interface KundliFormProps {
|
|
13
13
|
className?: string;
|
|
14
|
-
/** Language (en, hi
|
|
14
|
+
/** Language (en, hi). Overrides I18nProvider if set. Initial value when using dropdown. */
|
|
15
15
|
locale?: SupportedLocale;
|
|
16
16
|
/** Show language dropdown. Default true. */
|
|
17
17
|
showLanguageSelector?: boolean;
|
|
@@ -24,6 +24,8 @@ export interface KundliContextConfig {
|
|
|
24
24
|
discountedPriceLabel?: string;
|
|
25
25
|
discountPillLabel?: string;
|
|
26
26
|
analytics?: KundliAnalytics;
|
|
27
|
+
/** Notify parent when user changes language (e.g. to keep form view in sync when switching from landing) */
|
|
28
|
+
onLocaleChange?: (locale: SupportedLocale) => void;
|
|
27
29
|
}
|
|
28
30
|
export interface KundliContextValue {
|
|
29
31
|
view: KundliView;
|
|
@@ -4,7 +4,7 @@ import { KundliAnalytics } from '../../analytics';
|
|
|
4
4
|
export interface KundliPageProps {
|
|
5
5
|
/** Optional CSS class name */
|
|
6
6
|
className?: string;
|
|
7
|
-
/** Language (en, hi
|
|
7
|
+
/** Language (en, hi). Overrides I18nProvider if set. Initial value when using dropdown. */
|
|
8
8
|
locale?: SupportedLocale;
|
|
9
9
|
/** Show language dropdown. Default true. */
|
|
10
10
|
showLanguageSelector?: boolean;
|
|
@@ -38,5 +38,7 @@ export interface KundliPageProps {
|
|
|
38
38
|
discountPillLabel?: string;
|
|
39
39
|
/** Optional analytics implementation for Mixpanel/tracking events */
|
|
40
40
|
analytics?: KundliAnalytics;
|
|
41
|
+
/** Notify when user changes language (e.g. to keep form view in sync when switching from landing) */
|
|
42
|
+
onLocaleChange?: (locale: SupportedLocale) => void;
|
|
41
43
|
}
|
|
42
44
|
export declare const KundliPage: React.FC<KundliPageProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SupportedLocale = "en" | "hi"
|
|
1
|
+
export type SupportedLocale = "en" | "hi";
|
|
2
2
|
export declare const SUPPORTED_LOCALES: SupportedLocale[];
|
|
3
3
|
export declare const LOCALE_LABELS: Record<SupportedLocale, string>;
|
|
4
4
|
export declare const translations: Record<SupportedLocale, Record<string, string>>;
|