@satek-team-intern/chatbot-widget 0.8.10 → 0.10.1

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.
Files changed (72) hide show
  1. package/README.md +927 -65
  2. package/dist/chatbot-widget.es.js +4842 -2898
  3. package/dist/chatbot-widget.umd.js +16 -12
  4. package/dist/locales/en.json.d.ts +130 -5
  5. package/dist/locales/vi.json.d.ts +131 -5
  6. package/dist/src/assets/Icons.d.ts +45 -0
  7. package/dist/src/assets/createIcon.d.ts +19 -0
  8. package/dist/src/assets/index.d.ts +1 -0
  9. package/dist/src/components/ChatWidget.d.ts +3 -3
  10. package/dist/src/components/ChatWindow.d.ts +19 -3
  11. package/dist/src/components/FloatingButton.d.ts +3 -3
  12. package/dist/src/components/index.d.ts +4 -0
  13. package/dist/src/components/modals/AddChat.d.ts +3 -3
  14. package/dist/src/components/modals/AddGroup.d.ts +6 -0
  15. package/dist/src/components/modals/AddMember.d.ts +3 -3
  16. package/dist/src/components/modals/FileViewer.d.ts +3 -3
  17. package/dist/src/components/modals/ThemeModal.d.ts +2 -2
  18. package/dist/src/components/modals/UpdateGroup.d.ts +4 -4
  19. package/dist/src/components/modals/UserProfileModal.d.ts +10 -0
  20. package/dist/src/components/modals/index.d.ts +2 -1
  21. package/dist/src/components/shared/ChatAvatar.d.ts +1 -1
  22. package/dist/src/components/shared/MemberAvatarFallBack.d.ts +5 -0
  23. package/dist/src/components/shared/ToastContainer.d.ts +2 -0
  24. package/dist/src/components/shared/index.d.ts +3 -0
  25. package/dist/src/components/sidebar/AppSideBar.d.ts +7 -0
  26. package/dist/src/components/sidebar/ChatInfoPanel.d.ts +11 -0
  27. package/dist/src/components/sidebar/ChatList.d.ts +4 -5
  28. package/dist/src/components/sidebar/ChatSearchBar.d.ts +3 -2
  29. package/dist/src/components/sidebar/SideBarInfoChat.d.ts +11 -0
  30. package/dist/src/components/sidebar/index.d.ts +2 -0
  31. package/dist/src/components/view/ChatHeader.d.ts +4 -3
  32. package/dist/src/components/view/ChatInput.d.ts +1 -2
  33. package/dist/src/components/view/ContactList.d.ts +8 -0
  34. package/dist/src/components/view/GroupList.d.ts +9 -0
  35. package/dist/src/components/view/MessageFiles.d.ts +3 -3
  36. package/dist/src/components/view/MessageItem.d.ts +3 -3
  37. package/dist/src/components/view/MessageList.d.ts +2 -2
  38. package/dist/src/components/view/index.d.ts +4 -1
  39. package/dist/src/constants/common.d.ts +1 -0
  40. package/dist/src/constants/file.d.ts +2 -0
  41. package/dist/src/constants/index.d.ts +2 -0
  42. package/dist/src/contexts/FileViewerContext.d.ts +5 -5
  43. package/dist/src/contexts/ToastContext.d.ts +4 -0
  44. package/dist/src/contexts/index.d.ts +2 -1
  45. package/dist/src/contexts/toast-context.d.ts +16 -0
  46. package/dist/src/hooks/index.d.ts +3 -0
  47. package/dist/src/hooks/useChat.d.ts +2 -2
  48. package/dist/src/hooks/useDragDropFiles.d.ts +5 -4
  49. package/dist/src/hooks/useFileViewer.d.ts +1 -1
  50. package/dist/src/hooks/useSetting.d.ts +2 -2
  51. package/dist/src/hooks/useToast.d.ts +1 -0
  52. package/dist/src/hooks/useTranslation.d.ts +4 -0
  53. package/dist/src/locales/index.d.ts +3 -0
  54. package/dist/src/services/chat.service.d.ts +5 -5
  55. package/dist/src/services/index.d.ts +2 -0
  56. package/dist/src/services/language.service.d.ts +2 -2
  57. package/dist/src/store/index.d.ts +2 -0
  58. package/dist/src/store/selectors/index.d.ts +1 -0
  59. package/dist/src/store/selectors/setting.d.ts +17 -47
  60. package/dist/src/store/slices/chatSlice.d.ts +7 -5
  61. package/dist/src/store/slices/index.d.ts +2 -0
  62. package/dist/src/store/slices/settingSlice.d.ts +5 -6
  63. package/dist/src/store/store.d.ts +2 -2
  64. package/dist/src/styles/index.d.ts +1 -0
  65. package/dist/src/types/chat.type.d.ts +35 -6
  66. package/dist/src/types/types.d.ts +34 -14
  67. package/dist/src/utils/chat.utils.d.ts +13 -7
  68. package/dist/src/utils/file.utils.d.ts +16 -0
  69. package/dist/src/utils/format.utils.d.ts +2 -0
  70. package/dist/src/utils/formatDateLabel.d.ts +1 -0
  71. package/dist/src/utils/index.d.ts +4 -0
  72. package/package.json +2 -2
@@ -1,10 +1,135 @@
1
1
  declare const _default: {
2
- "auth": {
3
- "login": "Login",
4
- "welcome": "Welcome back, {name}!"
2
+ "common": {
3
+ "buttons": {
4
+ "save": "Save",
5
+ "cancel": "Cancel",
6
+ "confirm": "Confirm",
7
+ "close": "Close"
8
+ },
9
+ "errors": {
10
+ "createChat": "Cannot create chat. Please try again later.",
11
+ "updateGroup": "Cannot update group information. Please try again later!"
12
+ }
5
13
  },
6
- "error": {
7
- "system": "System Error"
14
+ "chatWindow": {
15
+ "memberSystem": "System Members",
16
+ "dragFile": "Drop files here",
17
+ "selectChat": "Select a conversation",
18
+ "startConversation": "Start a conversation with support or your team",
19
+ "searchPlaceholder": "Search conversations or members...",
20
+ "filterAll": "All",
21
+ "filterGroup": "Group Chat",
22
+ "filterSingle": "1-1 Chat"
23
+ },
24
+ "chatHeader": {
25
+ "defaultTitle": "Chat List",
26
+ "darkMode": "Dark Mode",
27
+ "lightMode": "Light Mode",
28
+ "addMember": "Add Member",
29
+ "settings": "UI Settings",
30
+ "minimize": "Minimize",
31
+ "maximize": "Maximize",
32
+ "close": "Close",
33
+ "language": "Change Language"
34
+ },
35
+ "chatInput": {
36
+ "placeholder": "Enter message...",
37
+ "selectFiles": "Select files",
38
+ "recordVoice": "Record voice",
39
+ "selectFilesOrOptions": "Select files or options",
40
+ "removeFile": "Remove file",
41
+ "recording": "Recording",
42
+ "cancelRecording": "Cancel recording",
43
+ "stopRecording": "Stop recording",
44
+ "playRecording": "Play recording",
45
+ "discardRecording": "Discard recording",
46
+ "addToMessage": "Add to message",
47
+ "voiceMessage": "Voice message",
48
+ "replyingTo": "Replying to",
49
+ "attachmentIndicator": "[Attachment]"
50
+ },
51
+ "chatMessage": {
52
+ "actions": {
53
+ "like": "Like",
54
+ "love": "Love",
55
+ "reply": "Reply",
56
+ "delete": "Delete",
57
+ "revoke": "Revoke",
58
+ "seeMore": "See more",
59
+ "seeLess": "See less"
60
+ },
61
+ "status": {
62
+ "seen": "Seen",
63
+ "sent": "Sent"
64
+ },
65
+ "states": {
66
+ "revoked": "Message revoked",
67
+ "attachment": "[Attachment]"
68
+ }
69
+ },
70
+ "chatList": {
71
+ "options": "Options",
72
+ "editGroup": "Edit Group",
73
+ "addMember": "Add Member",
74
+ "deleteGroup": "Delete Group",
75
+ "delete": "Delete",
76
+ "yourMessage": "You: "
77
+ },
78
+ "chatSearchBar": {
79
+ "searchPlaceholder": "Search...",
80
+ "createGroup": "Create New Group"
81
+ },
82
+ "addChat": {
83
+ "title": "Create Conversation",
84
+ "groupNamePlaceholder": "Enter group name...",
85
+ "memberSearchPlaceholder": "Find member name...",
86
+ "membersSection": "Suggested Members",
87
+ "createGroup": "Create Group",
88
+ "selectMoreMembers": "Select more members",
89
+ "selectMembers": "Select members"
90
+ },
91
+ "addMember": {
92
+ "title": "Add Member",
93
+ "memberSearchPlaceholder": "Find member name...",
94
+ "membersSection": "Suggested Members",
95
+ "noMembersFound": "No suitable members found",
96
+ "addButton": "+ Add"
97
+ },
98
+ "fileViewer": {
99
+ "closeButtonTitle": "Close (ESC)",
100
+ "previousButtonTitle": "Previous Image (←)",
101
+ "nextButtonTitle": "Next Image (→)",
102
+ "scrollLeftTitle": "Scroll Left",
103
+ "scrollRightTitle": "Scroll Right",
104
+ "openDownloadButton": "Open / Download",
105
+ "closeAriaLabel": "Close file viewer",
106
+ "previousAriaLabel": "Previous image",
107
+ "nextAriaLabel": "Next image",
108
+ "scrollLeftAriaLabel": "Scroll thumbnails left",
109
+ "scrollRightAriaLabel": "Scroll thumbnails right"
110
+ },
111
+ "themeModal": {
112
+ "title": "Theme Settings",
113
+ "themeSectionTitle": "Theme Color",
114
+ "themeSectionDesc": "Choose a color to change the look and feel of your conversation.",
115
+ "customColorTitle": "Custom Color",
116
+ "doneButton": "Done",
117
+ "resetButton": "Reset"
118
+ },
119
+ "updateGroup": {
120
+ "title": "Edit Group",
121
+ "groupNameLabel": "Group Name",
122
+ "groupNamePlaceholder": "Enter new group name...",
123
+ "avatarUrlLabel": "Avatar URL",
124
+ "avatarUrlPlaceholder": "Enter avatar URL (optional)...",
125
+ "uploadAvatarButton": "Upload Avatar",
126
+ "membersSection": "Group Members",
127
+ "removeMemberButtonTitle": "Remove from group",
128
+ "removeConfirmationStart": "Are you sure you want to remove member",
129
+ "removeConfirmationEnd": "from the group?",
130
+ "cancelButton": "Cancel",
131
+ "updateButton": "Update",
132
+ "updatingButton": "Updating..."
8
133
  }
9
134
  }
10
135
  ;
@@ -1,10 +1,136 @@
1
1
  declare const _default: {
2
- "auth": {
3
- "login": "Đăng nhập",
4
- "welcome": "Chào mừng {name} trở lại!"
2
+ "common": {
3
+ "buttons": {
4
+ "save": "Lưu",
5
+ "cancel": "Hủy",
6
+ "confirm": "Xác nhận",
7
+ "close": "Đóng"
8
+ },
9
+ "errors": {
10
+ "createChat": "Không thể tạo cuộc trò chuyện. Vui lòng thử lại sau.",
11
+ "updateGroup": "Không thể cập nhật thông tin nhóm. Vui lòng thử lại!"
12
+ }
5
13
  },
6
- "error": {
7
- "system": "Lỗi hệ thống"
14
+ "chatWindow": {
15
+ "memberSystem": "Thành viên hệ thống",
16
+ "dragFile": "Thả file tại đây",
17
+ "selectChat": "Chọn một cuộc hội thoại",
18
+ "startConversation": "Bắt đầu trò chuyện với hỗ trợ hoặc nhóm của bạn",
19
+ "searchPlaceholder": "Tìm kiếm",
20
+ "filterAll": "Tất cả",
21
+ "filterGroup": "Nhóm chat",
22
+ "filterSingle": "Chat 1-1"
23
+ },
24
+ "chatHeader": {
25
+ "defaultTitle": "Danh sách chat",
26
+ "darkMode": "Chế độ tối",
27
+ "lightMode": "Chế độ sáng",
28
+ "addMember": "Thêm thành viên",
29
+ "settings": "Thiết lập giao diện",
30
+ "minimize": "Thu nhỏ",
31
+ "maximize": "Mở rộng",
32
+ "close": "Đóng",
33
+ "language": "Thay đổi ngôn ngữ"
34
+ },
35
+ "chatInput": {
36
+ "placeholder": "Nhập tin nhắn...",
37
+ "selectFiles": "Chọn file",
38
+ "recordVoice": "Ghi âm",
39
+ "selectFilesOrOptions": "Chọn file hoặc tùy chọn",
40
+ "removeFile": "Xóa file",
41
+ "recording": "Đang ghi âm",
42
+ "cancelRecording": "Hủy ghi âm",
43
+ "stopRecording": "Dừng ghi âm",
44
+ "playRecording": "Phát ghi âm",
45
+ "discardRecording": "Hủy ghi âm",
46
+ "addToMessage": "Thêm vào tin nhắn",
47
+ "voiceMessage": "Tin nhắn thoại",
48
+ "replyingTo": "Đang trả lời",
49
+ "attachmentIndicator": "[Tệp đính kèm]"
50
+ },
51
+ "chatMessage": {
52
+ "actions": {
53
+ "like": "Thích",
54
+ "love": "Yêu thích",
55
+ "reply": "Trả lời",
56
+ "delete": "Xóa",
57
+ "revoke": "Thu hồi",
58
+ "seeMore": "Xem thêm",
59
+ "seeLess": "Ẩn bớt"
60
+ },
61
+ "status": {
62
+ "seen": "Đã xem",
63
+ "sent": "Đã gửi"
64
+ },
65
+ "states": {
66
+ "revoked": "Tin nhắn đã thu hồi",
67
+ "attachment": "[Tệp đính kèm]"
68
+ }
69
+ },
70
+ "chatList": {
71
+ "options": "Tùy chọn",
72
+ "editGroup": "Chỉnh sửa nhóm",
73
+ "addMember": "Thêm thành viên",
74
+ "deleteGroup": "Xóa nhóm",
75
+ "delete": "Xóa",
76
+ "yourMessage": "Bạn: "
77
+ },
78
+ "chatSearchBar": {
79
+ "searchPlaceholder": "Tìm kiếm...",
80
+ "createGroup": "Tạo nhóm mới"
81
+ },
82
+ "addChat": {
83
+ "title": "Tạo nhóm mới",
84
+ "groupNamePlaceholder": "Nhập tên nhóm",
85
+ "memberSearchPlaceholder": "Chọn người nhận hoặc nhập tên",
86
+ "membersSection": "Gợi ý thành viên",
87
+ "createGroup": "Tạo nhóm",
88
+ "selectMoreMembers": "Chọn thêm thành viên",
89
+ "selectMembers": "Tạo",
90
+ "cancelMembers": "Huỷ"
91
+ },
92
+ "addMember": {
93
+ "title": "Thêm thành viên",
94
+ "memberSearchPlaceholder": "Tìm tên thành viên...",
95
+ "membersSection": "Gợi ý thành viên",
96
+ "noMembersFound": "Không tìm thấy thành viên phù hợp",
97
+ "addButton": "+ Thêm"
98
+ },
99
+ "fileViewer": {
100
+ "closeButtonTitle": "Đóng (ESC)",
101
+ "previousButtonTitle": "Ảnh trước (←)",
102
+ "nextButtonTitle": "Ảnh tiếp theo (→)",
103
+ "scrollLeftTitle": "Cuộn trái",
104
+ "scrollRightTitle": "Cuộn phải",
105
+ "openDownloadButton": "Mở / Tải xuống",
106
+ "closeAriaLabel": "Đóng trình xem tệp",
107
+ "previousAriaLabel": "Ảnh trước",
108
+ "nextAriaLabel": "Ảnh tiếp theo",
109
+ "scrollLeftAriaLabel": "Cuộn hình thu nhỏ sang trái",
110
+ "scrollRightAriaLabel": "Cuộn hình thu nhỏ sang phải"
111
+ },
112
+ "themeModal": {
113
+ "title": "Cài đặt chủ đề",
114
+ "themeSectionTitle": "Tông màu chủ đề",
115
+ "themeSectionDesc": "Chọn một màu để thay đổi toàn bộ không gian và cảm xúc của cuộc trò chuyện.",
116
+ "customColorTitle": "Màu tùy chỉnh",
117
+ "doneButton": "Hoàn tất",
118
+ "resetButton": "Reset"
119
+ },
120
+ "updateGroup": {
121
+ "title": "Chỉnh sửa nhóm",
122
+ "groupNameLabel": "Tên nhóm",
123
+ "groupNamePlaceholder": "Nhập tên nhóm mới...",
124
+ "avatarUrlLabel": "URL Ảnh đại diện",
125
+ "avatarUrlPlaceholder": "Nhập URL ảnh đại diện (tùy chọn)...",
126
+ "uploadAvatarButton": "Tải lên ảnh đại diện",
127
+ "membersSection": "Thành viên nhóm",
128
+ "removeMemberButtonTitle": "Xóa khỏi nhóm",
129
+ "removeConfirmationStart": "Bạn có chắc chắn muốn xóa thành viên",
130
+ "removeConfirmationEnd": "khỏi nhóm?",
131
+ "cancelButton": "Hủy",
132
+ "updateButton": "Cập nhật",
133
+ "updatingButton": "Đang cập nhật..."
8
134
  }
9
135
  }
10
136
  ;
@@ -0,0 +1,45 @@
1
+ export declare const Online: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
2
+ export declare const Owner: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
3
+ export declare const SaOneLogo: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
4
+ export declare const MemberListIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
5
+ export declare const GroupListIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
6
+ export declare const BackIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
7
+ export declare const MuteIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
8
+ export declare const CallIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
9
+ export declare const VideoCallIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
10
+ export declare const OpenSidebarIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
11
+ export declare const CloseIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
12
+ export declare const PreviousIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
13
+ export declare const NextIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
14
+ export declare const ConversationIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
15
+ export declare const ConversationListIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
16
+ export declare const AddIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
17
+ export declare const SearchIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
18
+ export declare const SettingIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
19
+ export declare const PinIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
20
+ export declare const HelpIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
21
+ export declare const RemoveMemberIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
22
+ export declare const KeyIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
23
+ export declare const EditIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
24
+ export declare const BellIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
25
+ export declare const AddMemberIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
26
+ export declare const ArrowDownIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
27
+ export declare const MoreIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
28
+ export declare const MinimizeIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
29
+ export declare const OpenFullPageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
30
+ export declare const MinimizeFullPageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
31
+ export declare const ReplyIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
32
+ export declare const AttachmentIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
33
+ export declare const ImageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
34
+ export declare const VoiceIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
35
+ export declare const EmojiIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
36
+ export declare const SendMessageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
37
+ export declare const SortASCIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
38
+ export declare const SortDESCIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
39
+ export declare const LikeIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
40
+ export declare const LoveIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
41
+ export declare const DeleteMessageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
42
+ export declare const RevokeMessageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
43
+ export declare const SeenIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
44
+ export declare const LanguageIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
45
+ export declare const ImagePlaceholderIcon: import('react').ForwardRefExoticComponent<Omit<import('./createIcon').IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,19 @@
1
+ import { JSX, SVGProps } from 'react';
2
+ export interface IconProps extends SVGProps<SVGSVGElement> {
3
+ size?: number | string;
4
+ strokeWidth?: number;
5
+ strokeColor?: string;
6
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
7
+ strokeLinejoin?: 'round' | 'inherit' | 'miter' | 'bevel' | undefined;
8
+ }
9
+ interface CreateIconOptions {
10
+ viewBox?: string;
11
+ fill?: string;
12
+ sizeDefault?: number;
13
+ strokeWidthDefault?: number;
14
+ strokeColorDefault?: string;
15
+ strokeLinecapDefault?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
16
+ strokeLinejoinDefault?: 'round' | 'inherit' | 'miter' | 'bevel' | undefined;
17
+ }
18
+ declare const createIcon: (iconName: string, iconContent: JSX.Element, { viewBox, fill, sizeDefault, strokeWidthDefault, strokeColorDefault, strokeLinecapDefault, strokeLinejoinDefault, }?: CreateIconOptions) => import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
19
+ export default createIcon;
@@ -0,0 +1 @@
1
+ export * from './Icons';
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
2
- import { ChatWidgetProps } from '../types';
3
- export declare const ChatWidget: React.FC<ChatWidgetProps>;
1
+ import { FC } from 'react';
2
+ import { ChatWidgetProps } from '../../types';
3
+ export declare const ChatWidget: FC<ChatWidgetProps>;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ChatWidgetProps, WidgetMode } from '../types';
1
+ import { FC } from 'react';
2
+ import { ChatWidgetProps, WidgetMode } from '../../types';
3
3
  interface ChatWindowProps extends ChatWidgetProps {
4
4
  mode: WidgetMode;
5
5
  setMode: (mode: WidgetMode) => void;
@@ -11,6 +11,22 @@ interface ChatWindowProps extends ChatWidgetProps {
11
11
  x: number;
12
12
  y: number;
13
13
  } | null) => void;
14
+ fullpagePosition?: {
15
+ x: number;
16
+ y: number;
17
+ } | null;
18
+ setFullpagePosition?: (pos: {
19
+ x: number;
20
+ y: number;
21
+ } | null) => void;
22
+ fullpageSize?: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ setFullpageSize?: (size: {
27
+ width: number;
28
+ height: number;
29
+ }) => void;
14
30
  }
15
- export declare const ChatWindow: React.FC<ChatWindowProps>;
31
+ export declare const ChatWindow: FC<ChatWindowProps>;
16
32
  export {};
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { WidgetMode } from '../types';
1
+ import { FC } from 'react';
2
+ import { WidgetMode } from '../../types';
3
3
  interface FloatingButtonProps {
4
4
  mode: WidgetMode;
5
5
  setMode: (mode: WidgetMode) => void;
@@ -13,5 +13,5 @@ interface FloatingButtonProps {
13
13
  } | null) => void;
14
14
  primaryColor?: string;
15
15
  }
16
- export declare const FloatingButton: React.FC<FloatingButtonProps>;
16
+ export declare const FloatingButton: FC<FloatingButtonProps>;
17
17
  export {};
@@ -1,3 +1,7 @@
1
1
  export { ChatWidget } from './ChatWidget';
2
2
  export { FloatingButton } from './FloatingButton';
3
3
  export { ChatWindow } from './ChatWindow';
4
+ export * from './modals';
5
+ export * from './shared';
6
+ export * from './sidebar';
7
+ export * from './view';
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ChatUser } from '../../types';
1
+ import { FC } from 'react';
2
+ import { ChatUser } from '../../../types';
3
3
  interface AddChatProps {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
@@ -12,5 +12,5 @@ interface AddChatProps {
12
12
  onModalSearchQueryChange: (query: string) => void;
13
13
  onCreateChat: () => void;
14
14
  }
15
- export declare const AddChat: React.FC<AddChatProps>;
15
+ export declare const AddChat: FC<AddChatProps>;
16
16
  export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface AddGroupProps {
3
+ onClose: () => void;
4
+ }
5
+ export declare const AddGroup: FC<AddGroupProps>;
6
+ export {};
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ChatUser, ChatConversation } from '../../types';
1
+ import { FC } from 'react';
2
+ import { ChatUser, ChatConversation } from '../../../types';
3
3
  interface AddMemberProps {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
@@ -9,5 +9,5 @@ interface AddMemberProps {
9
9
  onAddMember: (chatId: number, memberId: number) => Promise<void>;
10
10
  primaryColor?: string;
11
11
  }
12
- export declare const AddMember: React.FC<AddMemberProps>;
12
+ export declare const AddMember: FC<AddMemberProps>;
13
13
  export {};
@@ -1,10 +1,10 @@
1
- import { default as React } from 'react';
2
- import { ChatFile } from '../../types';
1
+ import { FC } from 'react';
2
+ import { ChatFile } from '../../../types';
3
3
  interface FileViewerProps {
4
4
  isOpen: boolean;
5
5
  files: ChatFile[];
6
6
  initialIndex?: number;
7
7
  onClose: () => void;
8
8
  }
9
- export declare const FileViewer: React.FC<FileViewerProps>;
9
+ export declare const FileViewer: FC<FileViewerProps>;
10
10
  export {};
@@ -1,8 +1,8 @@
1
- import { default as React } from 'react';
1
+ import { FC } from 'react';
2
2
  interface ThemeModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
5
  defaultColor?: string;
6
6
  }
7
- export declare const ThemeModal: React.FC<ThemeModalProps>;
7
+ export declare const ThemeModal: FC<ThemeModalProps>;
8
8
  export {};
@@ -1,12 +1,12 @@
1
- import { default as React } from 'react';
2
- import { ChatConversation } from '../../types';
1
+ import { FC } from 'react';
2
+ import { ChatConversation } from '../../../types';
3
3
  interface UpdateGroupProps {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
6
  group: ChatConversation | null;
7
7
  removeMember?: (chatId: number, memberId: number) => Promise<void>;
8
- onUpdate: (chatId: number, name: string, avatar?: string) => Promise<void>;
8
+ onUpdate: (chatId: number, name: string, avatar?: string | File) => Promise<void>;
9
9
  primaryColor?: string;
10
10
  }
11
- export declare const UpdateGroup: React.FC<UpdateGroupProps>;
11
+ export declare const UpdateGroup: FC<UpdateGroupProps>;
12
12
  export {};
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ChatUser } from '../../../types';
3
+ interface UserProfileModalProps {
4
+ user: ChatUser;
5
+ onClose: () => void;
6
+ isOnline?: boolean;
7
+ onMessage: () => void;
8
+ }
9
+ export declare const UserProfileModal: FC<UserProfileModalProps>;
10
+ export {};
@@ -2,4 +2,5 @@ export * from './UpdateGroup';
2
2
  export * from './AddMember';
3
3
  export * from './FileViewer';
4
4
  export * from './ThemeModal';
5
- export * from './AddChat';
5
+ export * from './AddGroup';
6
+ export * from './UserProfileModal';
@@ -1,4 +1,4 @@
1
- import { ChatConversation } from '../../types';
1
+ import { ChatConversation } from '../../../types';
2
2
  export declare const ChatAvatar: import('react').MemoExoticComponent<({ chat, currentUserId, }: {
3
3
  chat?: ChatConversation | null;
4
4
  currentUserId?: number;
@@ -0,0 +1,5 @@
1
+ import { ChatUser } from '../../../types';
2
+ import { FC } from 'react';
3
+ export declare const MemberAvatarFallback: FC<{
4
+ member: ChatUser;
5
+ }>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ToastContainer: FC;
@@ -0,0 +1,3 @@
1
+ export * from './ChatAvatar';
2
+ export * from './ToastContainer';
3
+ export * from './MemberAvatarFallBack';
@@ -0,0 +1,7 @@
1
+ import { ChatUser } from '../../../types';
2
+ export declare const AppSideBar: ({ setIsThemeModalOpen, currentUser, activeTab, setActiveTab, }: {
3
+ setIsThemeModalOpen: (open: boolean) => void;
4
+ currentUser: ChatUser;
5
+ activeTab: "chats" | "contacts";
6
+ setActiveTab: (tab: "chats" | "contacts") => void;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { ChatConversation, ChatUser } from '../../../types';
3
+ interface SideBarInfoChatProps {
4
+ currentUser: ChatUser | null;
5
+ onClose: () => void;
6
+ onAddMember: () => void;
7
+ onUpdateGroup?: (chat: ChatConversation) => void;
8
+ onRemoveMember?: (chatId: number, memberId: number) => void;
9
+ }
10
+ declare const ChatInfoPanel: FC<SideBarInfoChatProps>;
11
+ export { ChatInfoPanel };
@@ -1,13 +1,12 @@
1
- import { default as React } from 'react';
2
- import { ChatConversation } from '../../types';
1
+ import { FC, MouseEvent } from 'react';
2
+ import { ChatConversation } from '../../../types';
3
3
  interface ChatListProps {
4
4
  chats: ChatConversation[];
5
5
  selectedChat: ChatConversation | null;
6
6
  onSelectChat: (chat: ChatConversation) => void;
7
- onRemoveChat: (chatId: number, e: React.MouseEvent) => void;
7
+ onRemoveChat: (chatId: number, e: MouseEvent<HTMLDivElement>) => void;
8
8
  onUpdateGroup?: (chat: ChatConversation) => void;
9
9
  onAddMemberClick?: (chat: ChatConversation) => void;
10
- primaryColor?: string;
11
10
  }
12
- export declare const ChatList: React.FC<ChatListProps>;
11
+ export declare const ChatList: FC<ChatListProps>;
13
12
  export {};
@@ -1,9 +1,10 @@
1
- import { default as React } from 'react';
1
+ import { FC } from 'react';
2
2
  interface ChatSearchBarProps {
3
3
  value: string;
4
4
  onChange: (value: string) => void;
5
5
  onAddClick?: () => void;
6
6
  placeholder?: string;
7
+ activeTab?: 'chats' | 'contacts';
7
8
  }
8
- export declare const ChatSearchBar: React.FC<ChatSearchBarProps>;
9
+ export declare const ChatSearchBar: FC<ChatSearchBarProps>;
9
10
  export {};
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { ChatConversation, ChatUser } from '../../../types';
3
+ interface SideBarInfoChatProps {
4
+ currentUser: ChatUser | null;
5
+ onClose: () => void;
6
+ onAddMember: () => void;
7
+ onUpdateGroup?: (chat: ChatConversation) => void;
8
+ onRemoveMember?: (chatId: number, memberId: number) => void;
9
+ }
10
+ declare const SideBarInfoChat: FC<SideBarInfoChatProps>;
11
+ export { SideBarInfoChat };
@@ -1,2 +1,4 @@
1
1
  export * from './ChatList';
2
2
  export * from './ChatSearchBar';
3
+ export * from './AppSideBar';
4
+ export * from './ChatInfoPanel';