@hsafa/ui-sdk 0.5.4 → 0.5.6
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 +119 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +119 -15
- package/dist/index.js.map +1 -1
- package/docs/XMARKDOWN_USAGE.md +196 -0
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -165,6 +165,7 @@ interface HsafaChatProps {
|
|
|
165
165
|
};
|
|
166
166
|
placeholder?: string;
|
|
167
167
|
title?: string;
|
|
168
|
+
emptyStateMessage?: string;
|
|
168
169
|
className?: string;
|
|
169
170
|
chatContainerClassName?: string;
|
|
170
171
|
dir?: 'rtl' | 'ltr';
|
|
@@ -183,6 +184,7 @@ interface HsafaChatProps {
|
|
|
183
184
|
currentChat?: string;
|
|
184
185
|
onChatChanged?: (chatId: string) => void;
|
|
185
186
|
templateParams?: Record<string, unknown>;
|
|
187
|
+
fullPageChat?: boolean;
|
|
186
188
|
}
|
|
187
189
|
type EditProcessContent = {
|
|
188
190
|
title?: string;
|
|
@@ -610,7 +612,7 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
|
|
|
610
612
|
*/
|
|
611
613
|
declare function useHsafa(): HsafaContextValue;
|
|
612
614
|
|
|
613
|
-
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, templateParams, }: HsafaChatProps & {
|
|
615
|
+
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, templateParams, fullPageChat, title, placeholder, emptyStateMessage, }: HsafaChatProps & {
|
|
614
616
|
baseUrl?: string;
|
|
615
617
|
initialMessages?: any[];
|
|
616
618
|
onMessagesChange?: (messages: any[], chatId?: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,7 @@ interface HsafaChatProps {
|
|
|
165
165
|
};
|
|
166
166
|
placeholder?: string;
|
|
167
167
|
title?: string;
|
|
168
|
+
emptyStateMessage?: string;
|
|
168
169
|
className?: string;
|
|
169
170
|
chatContainerClassName?: string;
|
|
170
171
|
dir?: 'rtl' | 'ltr';
|
|
@@ -183,6 +184,7 @@ interface HsafaChatProps {
|
|
|
183
184
|
currentChat?: string;
|
|
184
185
|
onChatChanged?: (chatId: string) => void;
|
|
185
186
|
templateParams?: Record<string, unknown>;
|
|
187
|
+
fullPageChat?: boolean;
|
|
186
188
|
}
|
|
187
189
|
type EditProcessContent = {
|
|
188
190
|
title?: string;
|
|
@@ -610,7 +612,7 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
|
|
|
610
612
|
*/
|
|
611
613
|
declare function useHsafa(): HsafaContextValue;
|
|
612
614
|
|
|
613
|
-
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, templateParams, }: HsafaChatProps & {
|
|
615
|
+
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, templateParams, fullPageChat, title, placeholder, emptyStateMessage, }: HsafaChatProps & {
|
|
614
616
|
baseUrl?: string;
|
|
615
617
|
initialMessages?: any[];
|
|
616
618
|
onMessagesChange?: (messages: any[], chatId?: string) => void;
|