@wakastellar/ui 1.0.8 → 1.0.10

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.
@@ -3,6 +3,7 @@ export interface ChatUser {
3
3
  id: string;
4
4
  name: string;
5
5
  avatar?: string;
6
+ initials?: string;
6
7
  status?: "online" | "offline" | "away" | "busy";
7
8
  lastSeen?: Date | string;
8
9
  }
@@ -57,6 +58,12 @@ export interface WakaChatProps {
57
58
  onAudioCall?: () => void;
58
59
  /** Callback appel vidéo */
59
60
  onVideoCall?: () => void;
61
+ /** Callback fermeture (mode floating/widget) */
62
+ onClose?: () => void;
63
+ /** Callback clôturer conversation */
64
+ onCloseConversation?: () => void;
65
+ /** Callback minimiser (mode floating) */
66
+ onMinimize?: () => void;
60
67
  /** Afficher la liste des conversations */
61
68
  showConversationList?: boolean;
62
69
  /** Afficher le header */
@@ -69,18 +76,34 @@ export interface WakaChatProps {
69
76
  showAttachments?: boolean;
70
77
  /** Afficher le bouton emoji */
71
78
  showEmoji?: boolean;
72
- /** Placeholder de l'input */
79
+ /** Afficher les séparateurs de date */
80
+ showDateSeparators?: boolean;
81
+ /** Afficher l'indication clavier sous l'input */
82
+ showInputHint?: boolean;
83
+ /** Afficher le bouton clôturer */
84
+ showCloseButton?: boolean;
85
+ /** Placeholder de l'input (si non défini, utilise le nom du destinataire) */
73
86
  inputPlaceholder?: string;
87
+ /** Texte du hint clavier */
88
+ inputHintText?: string;
74
89
  /** En cours d'envoi */
75
90
  sending?: boolean;
76
91
  /** En cours de chargement */
77
92
  loading?: boolean;
78
93
  /** Layout */
79
- layout?: "full" | "embedded" | "floating";
94
+ layout?: "full" | "embedded" | "floating" | "widget";
95
+ /** Titre personnalisé du header */
96
+ headerTitle?: string;
97
+ /** Afficher le statut dans le header */
98
+ showHeaderStatus?: boolean;
99
+ /** Texte personnalisé pour le statut */
100
+ statusText?: string;
101
+ /** Mode minimisé (pour widget) */
102
+ minimized?: boolean;
80
103
  /** Classes CSS additionnelles */
81
104
  className?: string;
82
105
  }
83
- export declare function WakaChat({ conversations, activeConversation, messages, currentUser, onSendMessage, onConversationSelect, onMessageDelete, onMessageReply, onSearch, onAudioCall, onVideoCall, showConversationList, showHeader, showMessageStatus, showTimestamps, showAttachments, showEmoji, inputPlaceholder, sending, loading, layout, className, }: WakaChatProps): import("react/jsx-runtime").JSX.Element;
106
+ export declare function WakaChat({ conversations, activeConversation, messages, currentUser, onSendMessage, onConversationSelect, onMessageDelete, onMessageReply, onSearch, onAudioCall, onVideoCall, onClose, onCloseConversation, onMinimize, showConversationList, showHeader, showMessageStatus, showTimestamps, showAttachments, showEmoji, showDateSeparators, showInputHint, showCloseButton, inputPlaceholder, inputHintText, sending, loading, layout, headerTitle, showHeaderStatus, statusText, minimized, className, }: WakaChatProps): import("react/jsx-runtime").JSX.Element;
84
107
  export declare const defaultChatUser: ChatUser;
85
108
  export declare const defaultChatConversations: ChatConversation[];
86
109
  export declare const defaultChatMessages: ChatMessage[];