@akropolys/kiku 1.6.2 → 1.6.4
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/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +406 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +406 -93
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +196 -3
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse
|
|
|
4
4
|
interface SearchBarProps {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
limit?: number;
|
|
7
|
-
/** Debounce in ms — default
|
|
7
|
+
/** Debounce in ms — default 150 for instant type-ahead */
|
|
8
8
|
debounceMs?: number;
|
|
9
9
|
onSelect?: (result: SearchResult) => void;
|
|
10
10
|
className?: string;
|
|
@@ -65,12 +65,15 @@ interface KikuButtonProps {
|
|
|
65
65
|
};
|
|
66
66
|
/** Enable 🎙️ voice input via browser Web Speech API (free) */
|
|
67
67
|
enableVoice?: boolean;
|
|
68
|
+
/** BCP-47 tag for voice transcription (e.g. 'sw-KE', 'fr-FR'). Defaults to
|
|
69
|
+
the page's <html lang>, then the browser language. */
|
|
70
|
+
voiceLang?: string;
|
|
68
71
|
/** Enable 📷 visual style-match search via Gemini (requires backend GEMINI_API_KEY) */
|
|
69
72
|
enableVision?: boolean;
|
|
70
73
|
/** Optional category hint for visual search (e.g. 'dress', 'curtains') */
|
|
71
74
|
visionCategoryHint?: string;
|
|
72
75
|
}
|
|
73
|
-
declare function KikuButton({ label, title, placeholder, backdropColor, backdropBlur, className, onSelectSource, defaultCurrency, chips, theme, classNames, enableVoice, enableVision, visionCategoryHint, }: KikuButtonProps): React.JSX.Element;
|
|
76
|
+
declare function KikuButton({ label, title, placeholder, backdropColor, backdropBlur, className, onSelectSource, defaultCurrency, chips, theme, classNames, enableVoice, voiceLang, enableVision, visionCategoryHint, }: KikuButtonProps): React.JSX.Element;
|
|
74
77
|
|
|
75
78
|
interface SparkleProps {
|
|
76
79
|
productName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse
|
|
|
4
4
|
interface SearchBarProps {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
limit?: number;
|
|
7
|
-
/** Debounce in ms — default
|
|
7
|
+
/** Debounce in ms — default 150 for instant type-ahead */
|
|
8
8
|
debounceMs?: number;
|
|
9
9
|
onSelect?: (result: SearchResult) => void;
|
|
10
10
|
className?: string;
|
|
@@ -65,12 +65,15 @@ interface KikuButtonProps {
|
|
|
65
65
|
};
|
|
66
66
|
/** Enable 🎙️ voice input via browser Web Speech API (free) */
|
|
67
67
|
enableVoice?: boolean;
|
|
68
|
+
/** BCP-47 tag for voice transcription (e.g. 'sw-KE', 'fr-FR'). Defaults to
|
|
69
|
+
the page's <html lang>, then the browser language. */
|
|
70
|
+
voiceLang?: string;
|
|
68
71
|
/** Enable 📷 visual style-match search via Gemini (requires backend GEMINI_API_KEY) */
|
|
69
72
|
enableVision?: boolean;
|
|
70
73
|
/** Optional category hint for visual search (e.g. 'dress', 'curtains') */
|
|
71
74
|
visionCategoryHint?: string;
|
|
72
75
|
}
|
|
73
|
-
declare function KikuButton({ label, title, placeholder, backdropColor, backdropBlur, className, onSelectSource, defaultCurrency, chips, theme, classNames, enableVoice, enableVision, visionCategoryHint, }: KikuButtonProps): React.JSX.Element;
|
|
76
|
+
declare function KikuButton({ label, title, placeholder, backdropColor, backdropBlur, className, onSelectSource, defaultCurrency, chips, theme, classNames, enableVoice, voiceLang, enableVision, visionCategoryHint, }: KikuButtonProps): React.JSX.Element;
|
|
74
77
|
|
|
75
78
|
interface SparkleProps {
|
|
76
79
|
productName: string;
|