@xcelsior/ui-chat 1.0.1 → 1.0.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/index.tsx +22 -7
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Main components
|
|
2
2
|
export { ChatWidget } from './components/ChatWidget';
|
|
3
|
-
|
|
3
|
+
import type { ChatWidgetProps } from './components/ChatWidget';
|
|
4
4
|
export { Chat } from './components/Chat';
|
|
5
5
|
|
|
6
6
|
// Individual components (for custom implementations)
|
|
@@ -13,20 +13,15 @@ export { PreChatForm } from './components/PreChatForm';
|
|
|
13
13
|
|
|
14
14
|
// Hooks
|
|
15
15
|
export { useWebSocket } from './hooks/useWebSocket';
|
|
16
|
-
export type { UseWebSocketReturn } from './hooks/useWebSocket';
|
|
17
16
|
export { useMessages } from './hooks/useMessages';
|
|
18
|
-
export type { UseMessagesReturn } from './hooks/useMessages';
|
|
19
17
|
export { useFileUpload } from './hooks/useFileUpload';
|
|
20
|
-
export type { UseFileUploadReturn } from './hooks/useFileUpload';
|
|
21
18
|
export { useTypingIndicator } from './hooks/useTypingIndicator';
|
|
22
|
-
export type { UseTypingIndicatorReturn } from './hooks/useTypingIndicator';
|
|
23
19
|
|
|
24
20
|
// Utilities
|
|
25
21
|
export { fetchMessages } from './utils/api';
|
|
26
|
-
export type { FetchMessagesParams } from './utils/api';
|
|
27
22
|
|
|
28
23
|
// Types
|
|
29
|
-
|
|
24
|
+
import type {
|
|
30
25
|
IUser,
|
|
31
26
|
IMessage,
|
|
32
27
|
IConversation,
|
|
@@ -44,3 +39,23 @@ export type {
|
|
|
44
39
|
ConversationPriority,
|
|
45
40
|
ConversationChannel,
|
|
46
41
|
} from './types';
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
IUser,
|
|
45
|
+
IMessage,
|
|
46
|
+
IConversation,
|
|
47
|
+
IChatConfig,
|
|
48
|
+
IWebSocketMessage,
|
|
49
|
+
ISendMessageData,
|
|
50
|
+
ITypingData,
|
|
51
|
+
IReadMessageData,
|
|
52
|
+
IFileUploadConfig,
|
|
53
|
+
IUploadedFile,
|
|
54
|
+
IApiResponse,
|
|
55
|
+
MessageType,
|
|
56
|
+
MessageStatus,
|
|
57
|
+
ConversationStatus,
|
|
58
|
+
ConversationPriority,
|
|
59
|
+
ConversationChannel,
|
|
60
|
+
ChatWidgetProps,
|
|
61
|
+
};
|