@hsafa/ui-sdk 0.4.8 → 0.4.9
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.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -174,6 +174,10 @@ interface HsafaChatProps {
|
|
|
174
174
|
HsafaTools?: Record<string, HsafaTool>;
|
|
175
175
|
componentAboveInput?: React__default.ComponentType<any>;
|
|
176
176
|
editProcessContent?: EditProcessContent;
|
|
177
|
+
presetPrompts?: Array<{
|
|
178
|
+
label: string;
|
|
179
|
+
prompt: string;
|
|
180
|
+
}>;
|
|
177
181
|
onStart?: (message: any) => void;
|
|
178
182
|
onFinish?: (message: any) => void;
|
|
179
183
|
currentChat?: string;
|
|
@@ -603,7 +607,7 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
|
|
|
603
607
|
*/
|
|
604
608
|
declare function useHsafa(): HsafaContextValue;
|
|
605
609
|
|
|
606
|
-
declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, componentAboveInput, editProcessContent, onStart, onFinish, currentChat, onChatChanged, }: HsafaChatProps & {
|
|
610
|
+
declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, componentAboveInput, editProcessContent, presetPrompts, onStart, onFinish, currentChat, onChatChanged, }: HsafaChatProps & {
|
|
607
611
|
baseUrl?: string;
|
|
608
612
|
initialMessages?: any[];
|
|
609
613
|
onMessagesChange?: (messages: any[], chatId?: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,10 @@ interface HsafaChatProps {
|
|
|
174
174
|
HsafaTools?: Record<string, HsafaTool>;
|
|
175
175
|
componentAboveInput?: React__default.ComponentType<any>;
|
|
176
176
|
editProcessContent?: EditProcessContent;
|
|
177
|
+
presetPrompts?: Array<{
|
|
178
|
+
label: string;
|
|
179
|
+
prompt: string;
|
|
180
|
+
}>;
|
|
177
181
|
onStart?: (message: any) => void;
|
|
178
182
|
onFinish?: (message: any) => void;
|
|
179
183
|
currentChat?: string;
|
|
@@ -603,7 +607,7 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
|
|
|
603
607
|
*/
|
|
604
608
|
declare function useHsafa(): HsafaContextValue;
|
|
605
609
|
|
|
606
|
-
declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, componentAboveInput, editProcessContent, onStart, onFinish, currentChat, onChatChanged, }: HsafaChatProps & {
|
|
610
|
+
declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, componentAboveInput, editProcessContent, presetPrompts, onStart, onFinish, currentChat, onChatChanged, }: HsafaChatProps & {
|
|
607
611
|
baseUrl?: string;
|
|
608
612
|
initialMessages?: any[];
|
|
609
613
|
onMessagesChange?: (messages: any[], chatId?: string) => void;
|