@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fixed type
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcelsior/ui-chat",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,
package/src/index.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  // Main components
2
2
  export { ChatWidget } from './components/ChatWidget';
3
- export type { ChatWidgetProps } from './components/ChatWidget';
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
- export type {
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
+ };