goji-search 2.0.0 → 2.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.
|
@@ -25,5 +25,19 @@ export interface GojiSearchComponentProps {
|
|
|
25
25
|
* @default "#4654F7"
|
|
26
26
|
*/
|
|
27
27
|
userMessageBackgroundColor?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Widget position on the horizontal axis.
|
|
30
|
+
* - "left": anchored to the left side
|
|
31
|
+
* - "center": centered (default)
|
|
32
|
+
* - "right": anchored to the right side
|
|
33
|
+
*/
|
|
34
|
+
position?: "left" | "center" | "right";
|
|
35
|
+
/**
|
|
36
|
+
* If set to "left" or "right", the widget will "merge" into that edge
|
|
37
|
+
* by the given fraction of its own width. Value between 0 and 0.5.
|
|
38
|
+
* Example: `mergeAmount={0.2}` will shift the widget 20% off-screen.
|
|
39
|
+
*/
|
|
40
|
+
mergeFrom?: "left" | "right" | null;
|
|
41
|
+
mergeAmount?: number;
|
|
28
42
|
}
|
|
29
|
-
export declare function GojiSearchComponent({ apiUrl, companyId, apiKey, aiColor, userMessageBackgroundColor }: GojiSearchComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function GojiSearchComponent({ apiUrl, companyId, apiKey, aiColor, userMessageBackgroundColor, position, mergeFrom, mergeAmount }: GojiSearchComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -119,6 +119,10 @@ export declare class GojiSearchClient {
|
|
|
119
119
|
suggestions: string[];
|
|
120
120
|
default_language?: string;
|
|
121
121
|
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Save session/conversation to database
|
|
124
|
+
*/
|
|
125
|
+
saveSession(sessionId: string): Promise<void>;
|
|
122
126
|
}
|
|
123
127
|
/**
|
|
124
128
|
* Create a GojiSearch client instance with custom API URL and API key
|