@hsafa/ui-sdk 0.3.2 → 0.3.3

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.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as React from 'react';
2
2
  import React__default, { ComponentType } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
@@ -74,7 +74,7 @@ interface FloatingChatButtonProps {
74
74
  }
75
75
  declare function FloatingChatButton({ show, onClick, resolvedColors, floatingButtonPosition }: FloatingChatButtonProps): react_jsx_runtime.JSX.Element | null;
76
76
 
77
- declare function useAutoScroll<T extends HTMLElement>(shouldScroll?: boolean): React$1.MutableRefObject<T | null>;
77
+ declare function useAutoScroll<T extends HTMLElement>(shouldScroll?: boolean): React.MutableRefObject<T | null>;
78
78
 
79
79
  /**
80
80
  * Type definitions for the Hsafa SDK - minimal exports used across the SDK
@@ -120,14 +120,13 @@ interface HsafaChatProps {
120
120
  language?: 'en' | 'ar';
121
121
  defaultReasoningOpen?: boolean;
122
122
  hideReasoningContent?: boolean;
123
- UIComponents?: Record<string, React.ComponentType<any>>;
124
123
  HsafaTools?: Record<string, HsafaTool>;
125
124
  }
126
125
 
127
126
  declare function useFileUpload(baseUrl: string): {
128
127
  attachments: Attachment[];
129
128
  uploading: boolean;
130
- fileInputRef: React$1.MutableRefObject<HTMLInputElement | null>;
129
+ fileInputRef: React.MutableRefObject<HTMLInputElement | null>;
131
130
  formatBytes: (bytes: number) => string;
132
131
  handleRemoveAttachment: (id: string) => void;
133
132
  handleFileSelection: (fileList: FileList | File[] | null, setError: (error: string | null) => void) => Promise<void>;
@@ -232,10 +231,11 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
232
231
  */
233
232
  declare function useHsafa(): HsafaContextValue;
234
233
 
235
- declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, UIComponents, HsafaTools, }: HsafaChatProps & {
234
+ declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, }: HsafaChatProps & {
236
235
  baseUrl?: string;
237
236
  initialMessages?: any[];
238
237
  onMessagesChange?: (messages: any[]) => void;
238
+ HsafaUI?: Record<string, React__default.ComponentType<any>>;
239
239
  }): react_jsx_runtime.JSX.Element;
240
240
 
241
241
  interface ContentContainerProps {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as React from 'react';
2
2
  import React__default, { ComponentType } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
@@ -74,7 +74,7 @@ interface FloatingChatButtonProps {
74
74
  }
75
75
  declare function FloatingChatButton({ show, onClick, resolvedColors, floatingButtonPosition }: FloatingChatButtonProps): react_jsx_runtime.JSX.Element | null;
76
76
 
77
- declare function useAutoScroll<T extends HTMLElement>(shouldScroll?: boolean): React$1.MutableRefObject<T | null>;
77
+ declare function useAutoScroll<T extends HTMLElement>(shouldScroll?: boolean): React.MutableRefObject<T | null>;
78
78
 
79
79
  /**
80
80
  * Type definitions for the Hsafa SDK - minimal exports used across the SDK
@@ -120,14 +120,13 @@ interface HsafaChatProps {
120
120
  language?: 'en' | 'ar';
121
121
  defaultReasoningOpen?: boolean;
122
122
  hideReasoningContent?: boolean;
123
- UIComponents?: Record<string, React.ComponentType<any>>;
124
123
  HsafaTools?: Record<string, HsafaTool>;
125
124
  }
126
125
 
127
126
  declare function useFileUpload(baseUrl: string): {
128
127
  attachments: Attachment[];
129
128
  uploading: boolean;
130
- fileInputRef: React$1.MutableRefObject<HTMLInputElement | null>;
129
+ fileInputRef: React.MutableRefObject<HTMLInputElement | null>;
131
130
  formatBytes: (bytes: number) => string;
132
131
  handleRemoveAttachment: (id: string) => void;
133
132
  handleFileSelection: (fileList: FileList | File[] | null, setError: (error: string | null) => void) => Promise<void>;
@@ -232,10 +231,11 @@ declare function HsafaProvider({ baseUrl, dir, theme, children }: HsafaProviderP
232
231
  */
233
232
  declare function useHsafa(): HsafaContextValue;
234
233
 
235
- declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, UIComponents, HsafaTools, }: HsafaChatProps & {
234
+ declare function HsafaChat({ agentId, theme, primaryColor, primaryColorDark, primaryColorLight, backgroundColor, borderColor, textColor, accentColor, baseUrl, initialMessages, onMessagesChange, defaultOpen, floatingButtonPosition, HsafaTools, HsafaUI, }: HsafaChatProps & {
236
235
  baseUrl?: string;
237
236
  initialMessages?: any[];
238
237
  onMessagesChange?: (messages: any[]) => void;
238
+ HsafaUI?: Record<string, React__default.ComponentType<any>>;
239
239
  }): react_jsx_runtime.JSX.Element;
240
240
 
241
241
  interface ContentContainerProps {