@cometchat/chat-uikit-react 4.3.30 → 4.3.32

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 (244) hide show
  1. package/dist/assets/Audio-Call.svg +11 -0
  2. package/dist/assets/Audio-Call2x.svg +11 -0
  3. package/dist/assets/Copy.svg +17 -0
  4. package/dist/assets/IncomingAudio.svg +5 -0
  5. package/dist/assets/IncomingVideo.svg +6 -0
  6. package/dist/assets/Info.svg +13 -0
  7. package/dist/assets/InfoSimpleIcon.svg +4 -0
  8. package/dist/assets/LoadingIcon.svg +15 -0
  9. package/dist/assets/Locked.svg +10 -0
  10. package/dist/assets/MissedAudio.svg +5 -0
  11. package/dist/assets/MissedVideo.svg +6 -0
  12. package/dist/assets/More.svg +9 -0
  13. package/dist/assets/More@2x.svg +9 -0
  14. package/dist/assets/OutgoingAudio.svg +5 -0
  15. package/dist/assets/OutgoingVideo.svg +6 -0
  16. package/dist/assets/Plus-1.svg +12 -0
  17. package/dist/assets/Private.svg +10 -0
  18. package/dist/assets/StartConversation.svg +13 -0
  19. package/dist/assets/Stickers.svg +16 -0
  20. package/dist/assets/Video-call.svg +12 -0
  21. package/dist/assets/Video-call2x.svg +12 -0
  22. package/dist/assets/VideoCall2xIcon.svg +12 -0
  23. package/dist/assets/addreaction.svg +9 -0
  24. package/dist/assets/ai-bot.svg +3 -0
  25. package/dist/assets/ai-empty.svg +22 -0
  26. package/dist/assets/ai-error.svg +3 -0
  27. package/dist/assets/attachment-file.svg +14 -0
  28. package/dist/assets/audio-file.svg +12 -0
  29. package/dist/assets/backbutton.svg +12 -0
  30. package/dist/assets/close.svg +12 -0
  31. package/dist/assets/close2x.svg +12 -0
  32. package/dist/assets/collaborativedocument.svg +13 -0
  33. package/dist/assets/collaborativewhiteboard.svg +12 -0
  34. package/dist/assets/create-button.svg +12 -0
  35. package/dist/assets/delete.svg +15 -0
  36. package/dist/assets/deleteicon.svg +15 -0
  37. package/dist/assets/down-arrow.svg +1 -0
  38. package/dist/assets/download.svg +13 -0
  39. package/dist/assets/editicon.svg +14 -0
  40. package/dist/assets/heart-reaction.png +0 -0
  41. package/dist/assets/heart.svg +11 -0
  42. package/dist/assets/increase-size.svg +6 -0
  43. package/dist/assets/loading.svg +16 -0
  44. package/dist/assets/mention-icon.svg +11 -0
  45. package/dist/assets/message-delivered.svg +5 -0
  46. package/dist/assets/message-read.svg +5 -0
  47. package/dist/assets/message-sent.svg +9 -0
  48. package/dist/assets/mic.svg +11 -0
  49. package/dist/assets/more-icon.svg +9 -0
  50. package/dist/assets/photolibrary.svg +11 -0
  51. package/dist/assets/placeholder.png +0 -0
  52. package/dist/assets/plus-rotated.svg +13 -0
  53. package/dist/assets/plus.svg +13 -0
  54. package/dist/assets/polls.svg +14 -0
  55. package/dist/assets/reduce-size.svg +6 -0
  56. package/dist/assets/search.svg +4 -0
  57. package/dist/assets/send-message-in-private.svg +6 -0
  58. package/dist/assets/send.svg +12 -0
  59. package/dist/assets/side-arrow.svg +1 -0
  60. package/dist/assets/smileys.svg +16 -0
  61. package/dist/assets/spinner.svg +15 -0
  62. package/dist/assets/stipop.svg +9 -0
  63. package/dist/assets/stop.svg +1 -0
  64. package/dist/assets/thread-arrow.svg +1 -0
  65. package/dist/assets/threadIndicatorIcon.svg +11 -0
  66. package/dist/assets/threadicon.svg +14 -0
  67. package/dist/assets/translation.svg +16 -0
  68. package/dist/assets/video.svg +12 -0
  69. package/dist/assets/wait.svg +4 -0
  70. package/dist/assets/warning-small.svg +5 -0
  71. package/dist/index.d.ts +3366 -0
  72. package/dist/index.js +17 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/types/AI/AIAssistBot/AIAssistBotChatView.d.ts +10 -0
  75. package/dist/types/AI/AIAssistBot/AIAssistBotDecorator.d.ts +22 -0
  76. package/dist/types/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
  77. package/dist/types/AI/AIAssistBot/AIAssistBotOptionsView.d.ts +11 -0
  78. package/dist/types/AI/AIAssistBot/style.d.ts +37 -0
  79. package/dist/types/AI/AIAssistBot/utils.d.ts +5 -0
  80. package/dist/types/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +20 -0
  81. package/dist/types/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +8 -0
  82. package/dist/types/AI/AIConversationStarter/AIConversationStarterView.d.ts +9 -0
  83. package/dist/types/AI/AIConversationStarter/style.d.ts +26 -0
  84. package/dist/types/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +22 -0
  85. package/dist/types/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
  86. package/dist/types/AI/AIConversationSummary/AIConversationSummaryView.d.ts +10 -0
  87. package/dist/types/AI/AIConversationSummary/style.d.ts +28 -0
  88. package/dist/types/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +25 -0
  89. package/dist/types/AI/AISmartReplies/AISmartRepliesExtension.d.ts +8 -0
  90. package/dist/types/AI/AISmartReplies/AISmartRepliesView.d.ts +12 -0
  91. package/dist/types/AI/AISmartReplies/style.d.ts +28 -0
  92. package/dist/types/Calling/CallingExtension.d.ts +8 -0
  93. package/dist/types/Calling/CallingExtensionDecorator.d.ts +75 -0
  94. package/dist/types/Calling/CometChatCallButtons/hooks.d.ts +3 -0
  95. package/dist/types/Calling/CometChatCallButtons/index.d.ts +19 -0
  96. package/dist/types/Calling/CometChatCallButtons/style.d.ts +28 -0
  97. package/dist/types/Calling/CometChatCallLogDetails/hooks.d.ts +2 -0
  98. package/dist/types/Calling/CometChatCallLogDetails/index.d.ts +17 -0
  99. package/dist/types/Calling/CometChatCallLogDetails/style.d.ts +21 -0
  100. package/dist/types/Calling/CometChatCallLogHistory/hooks.d.ts +2 -0
  101. package/dist/types/Calling/CometChatCallLogHistory/index.d.ts +27 -0
  102. package/dist/types/Calling/CometChatCallLogHistory/style.d.ts +41 -0
  103. package/dist/types/Calling/CometChatCallLogParticipants/index.d.ts +19 -0
  104. package/dist/types/Calling/CometChatCallLogParticipants/style.d.ts +31 -0
  105. package/dist/types/Calling/CometChatCallLogRecordings/index.d.ts +21 -0
  106. package/dist/types/Calling/CometChatCallLogRecordings/style.d.ts +35 -0
  107. package/dist/types/Calling/CometChatCallLogs/hooks.d.ts +2 -0
  108. package/dist/types/Calling/CometChatCallLogs/index.d.ts +37 -0
  109. package/dist/types/Calling/CometChatCallLogs/style.d.ts +37 -0
  110. package/dist/types/Calling/CometChatCallLogsWithDetails/hooks.d.ts +4 -0
  111. package/dist/types/Calling/CometChatCallLogsWithDetails/index.d.ts +10 -0
  112. package/dist/types/Calling/CometChatCallLogsWithDetails/style.d.ts +13 -0
  113. package/dist/types/Calling/CometChatIncomingCall/hooks.d.ts +2 -0
  114. package/dist/types/Calling/CometChatIncomingCall/index.d.ts +19 -0
  115. package/dist/types/Calling/CometChatIncomingCall/style.d.ts +72 -0
  116. package/dist/types/Calling/CometChatOngoingCall/hooks.d.ts +2 -0
  117. package/dist/types/Calling/CometChatOngoingCall/index.d.ts +15 -0
  118. package/dist/types/Calling/CometChatOngoingCall/style.d.ts +2 -0
  119. package/dist/types/Calling/CometChatOutgoingCall/hooks.d.ts +2 -0
  120. package/dist/types/Calling/CometChatOutgoingCall/index.d.ts +16 -0
  121. package/dist/types/Calling/CometChatOutgoingCall/style.d.ts +39 -0
  122. package/dist/types/Calling/Utils/CallDetailsUtils.d.ts +11 -0
  123. package/dist/types/Calling/Utils/CallingDetailsUtils.d.ts +7 -0
  124. package/dist/types/Calling/Utils/utils.d.ts +7 -0
  125. package/dist/types/CometChatAddMembers/hooks.d.ts +11 -0
  126. package/dist/types/CometChatAddMembers/index.d.ts +229 -0
  127. package/dist/types/CometChatAddMembers/style.d.ts +13 -0
  128. package/dist/types/CometChatBannedMembers/controller.d.ts +37 -0
  129. package/dist/types/CometChatBannedMembers/hooks.d.ts +17 -0
  130. package/dist/types/CometChatBannedMembers/index.d.ts +228 -0
  131. package/dist/types/CometChatBannedMembers/style.d.ts +19 -0
  132. package/dist/types/CometChatContacts/index.d.ts +22 -0
  133. package/dist/types/CometChatContacts/style.d.ts +20 -0
  134. package/dist/types/CometChatConversations/controller.d.ts +74 -0
  135. package/dist/types/CometChatConversations/hooks.d.ts +22 -0
  136. package/dist/types/CometChatConversations/index.d.ts +344 -0
  137. package/dist/types/CometChatConversations/style.d.ts +29 -0
  138. package/dist/types/CometChatConversationsWithMessages/hooks.d.ts +2 -0
  139. package/dist/types/CometChatConversationsWithMessages/index.d.ts +15 -0
  140. package/dist/types/CometChatConversationsWithMessages/style.d.ts +87 -0
  141. package/dist/types/CometChatCustomHooks.d.ts +27 -0
  142. package/dist/types/CometChatDetails/hooks.d.ts +17 -0
  143. package/dist/types/CometChatDetails/index.d.ts +186 -0
  144. package/dist/types/CometChatDetails/style.d.ts +40 -0
  145. package/dist/types/CometChatGroupMembers/controller.d.ts +38 -0
  146. package/dist/types/CometChatGroupMembers/hooks.d.ts +22 -0
  147. package/dist/types/CometChatGroupMembers/index.d.ts +281 -0
  148. package/dist/types/CometChatGroupMembers/style.d.ts +24 -0
  149. package/dist/types/CometChatGroups/controller.d.ts +44 -0
  150. package/dist/types/CometChatGroups/hooks.d.ts +15 -0
  151. package/dist/types/CometChatGroups/index.d.ts +215 -0
  152. package/dist/types/CometChatGroups/style.d.ts +11 -0
  153. package/dist/types/CometChatGroupsWithMessages/hooks.d.ts +3 -0
  154. package/dist/types/CometChatGroupsWithMessages/index.d.ts +14 -0
  155. package/dist/types/CometChatGroupsWithMessages/style.d.ts +874 -0
  156. package/dist/types/CometChatMessageComposer/hooks.d.ts +66 -0
  157. package/dist/types/CometChatMessageComposer/index.d.ts +221 -0
  158. package/dist/types/CometChatMessageComposer/style.d.ts +92 -0
  159. package/dist/types/CometChatMessageHeader/hooks.d.ts +3 -0
  160. package/dist/types/CometChatMessageHeader/index.d.ts +29 -0
  161. package/dist/types/CometChatMessageHeader/style.d.ts +56 -0
  162. package/dist/types/CometChatMessageInformation/index.d.ts +29 -0
  163. package/dist/types/CometChatMessageInformation/style.d.ts +48 -0
  164. package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +58 -0
  165. package/dist/types/CometChatMessageList/controller.d.ts +48 -0
  166. package/dist/types/CometChatMessageList/style.d.ts +237 -0
  167. package/dist/types/CometChatMessageList/useCometChatMessageList.d.ts +6 -0
  168. package/dist/types/CometChatMessages/hooks.d.ts +2 -0
  169. package/dist/types/CometChatMessages/index.d.ts +25 -0
  170. package/dist/types/CometChatMessages/style.d.ts +26 -0
  171. package/dist/types/CometChatThemeContext.d.ts +5 -0
  172. package/dist/types/CometChatThreadedMessages/hooks.d.ts +2 -0
  173. package/dist/types/CometChatThreadedMessages/index.d.ts +19 -0
  174. package/dist/types/CometChatThreadedMessages/style.d.ts +21 -0
  175. package/dist/types/CometChatTransferOwnership/hooks.d.ts +7 -0
  176. package/dist/types/CometChatTransferOwnership/index.d.ts +163 -0
  177. package/dist/types/CometChatTransferOwnership/style.d.ts +17 -0
  178. package/dist/types/CometChatUserMemberWrapper/index.d.ts +25 -0
  179. package/dist/types/CometChatUsers/controller.d.ts +34 -0
  180. package/dist/types/CometChatUsers/hooks.d.ts +18 -0
  181. package/dist/types/CometChatUsers/index.d.ts +260 -0
  182. package/dist/types/CometChatUsers/style.d.ts +11 -0
  183. package/dist/types/CometChatUsersWithMessages/hooks.d.ts +2 -0
  184. package/dist/types/CometChatUsersWithMessages/index.d.ts +12 -0
  185. package/dist/types/CometChatUsersWithMessages/style.d.ts +70 -0
  186. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +18 -0
  187. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +8 -0
  188. package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +21 -0
  189. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +18 -0
  190. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +8 -0
  191. package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +21 -0
  192. package/dist/types/Extensions/ImageModeration/ImageModerationConfiguration.d.ts +15 -0
  193. package/dist/types/Extensions/ImageModeration/ImageModerationExtension.d.ts +8 -0
  194. package/dist/types/Extensions/ImageModeration/ImageModerationExtensionDecorator.d.ts +26 -0
  195. package/dist/types/Extensions/LinkPreview/LinkPreviewConfiguration.d.ts +8 -0
  196. package/dist/types/Extensions/LinkPreview/LinkPreviewExtension.d.ts +8 -0
  197. package/dist/types/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +24 -0
  198. package/dist/types/Extensions/MessageTranslation/MessageTranslationConfiguration.d.ts +14 -0
  199. package/dist/types/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +8 -0
  200. package/dist/types/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +19 -0
  201. package/dist/types/Extensions/Polls/PollsConfiguration.d.ts +29 -0
  202. package/dist/types/Extensions/Polls/PollsExtension.d.ts +8 -0
  203. package/dist/types/Extensions/Polls/PollsExtensionDecorator.d.ts +26 -0
  204. package/dist/types/Extensions/SmartReplies/SmartRepliesConfiguration.d.ts +8 -0
  205. package/dist/types/Extensions/SmartReplies/SmartRepliesExtension.d.ts +9 -0
  206. package/dist/types/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +35 -0
  207. package/dist/types/Extensions/Stickers/StickersConfiguration.d.ts +14 -0
  208. package/dist/types/Extensions/Stickers/StickersExtension.d.ts +8 -0
  209. package/dist/types/Extensions/Stickers/StickersExtensionDecorator.d.ts +27 -0
  210. package/dist/types/Extensions/TextModerator/TextModeratorExtension.d.ts +6 -0
  211. package/dist/types/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +8 -0
  212. package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +5 -0
  213. package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +8 -0
  214. package/dist/types/Shared/CometChatUIKit/CometChatUIKit.d.ts +42 -0
  215. package/dist/types/Shared/Framework/AIExtensionDataSource.d.ts +6 -0
  216. package/dist/types/Shared/Framework/ChatConfigurator.d.ts +8 -0
  217. package/dist/types/Shared/Framework/DataSource.d.ts +56 -0
  218. package/dist/types/Shared/Framework/DataSourceDecorator.d.ts +59 -0
  219. package/dist/types/Shared/Framework/ExtensionsDataSource.d.ts +6 -0
  220. package/dist/types/Shared/Utils/MessageUtils.d.ts +16 -0
  221. package/dist/types/Shared/Utils/MessagesDataSource.d.ts +92 -0
  222. package/dist/types/Shared/Views/CometChatButton/hooks.d.ts +11 -0
  223. package/dist/types/Shared/Views/CometChatButton/index.d.ts +19 -0
  224. package/dist/types/Shared/Views/CometChatCheckbox/hooks.d.ts +9 -0
  225. package/dist/types/Shared/Views/CometChatCheckbox/index.d.ts +13 -0
  226. package/dist/types/Shared/Views/CometChatContextMenu/index.d.ts +14 -0
  227. package/dist/types/Shared/Views/CometChatContextMenu/style.d.ts +28 -0
  228. package/dist/types/Shared/Views/CometChatList/hooks.d.ts +20 -0
  229. package/dist/types/Shared/Views/CometChatList/index.d.ts +151 -0
  230. package/dist/types/Shared/Views/CometChatList/style.d.ts +18 -0
  231. package/dist/types/Shared/Views/CometChatListItem/hooks.d.ts +9 -0
  232. package/dist/types/Shared/Views/CometChatListItem/index.d.ts +29 -0
  233. package/dist/types/Shared/Views/CometChatMenuList/hooks.d.ts +12 -0
  234. package/dist/types/Shared/Views/CometChatMenuList/index.d.ts +13 -0
  235. package/dist/types/Shared/Views/CometChatMessageBubble/index.d.ts +22 -0
  236. package/dist/types/Shared/Views/CometChatMessageBubble/style.d.ts +22 -0
  237. package/dist/types/Shared/Views/CometChatRadioButton/hooks.d.ts +9 -0
  238. package/dist/types/Shared/Views/CometChatRadioButton/index.d.ts +13 -0
  239. package/dist/types/Shared/Views/CometChatTabs/TabsStyle.d.ts +31 -0
  240. package/dist/types/Shared/Views/CometChatTabs/index.d.ts +11 -0
  241. package/dist/types/Shared/Views/CometChatTabs/style.d.ts +42 -0
  242. package/dist/types/Shared/Views/LitElementsWrapper/LitElementsWrapper.d.ts +49 -0
  243. package/dist/types/index.d.ts +84 -0
  244. package/package.json +4 -4
@@ -0,0 +1,21 @@
1
+ import { ListItemStyle } from "@cometchat/uikit-elements";
2
+ import { DatePatterns } from "@cometchat/uikit-resources";
3
+ import { CallLogRecordingsStyle } from "@cometchat/uikit-shared";
4
+ interface ICallLogRecordingsProps {
5
+ title?: string;
6
+ backIconUrl?: string;
7
+ downloadIconUrl?: string;
8
+ hideDownloadButton?: boolean;
9
+ call: any;
10
+ datePattern?: DatePatterns;
11
+ listItemStyle?: ListItemStyle;
12
+ callLogRecordingsStyle?: CallLogRecordingsStyle;
13
+ onBackClick?: Function;
14
+ onItemClick?: Function;
15
+ onDownloadClick?: Function;
16
+ listItemView?: any;
17
+ subtitleView?: any;
18
+ tailView?: any;
19
+ }
20
+ declare const CometChatCallLogRecordings: (props: ICallLogRecordingsProps) => import("react/jsx-runtime").JSX.Element;
21
+ export { CometChatCallLogRecordings };
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { ListItemStyle } from "@cometchat/uikit-elements";
3
+ import { CallLogRecordingsStyle, ListStyle } from "@cometchat/uikit-shared";
4
+ import { CometChatTheme } from "@cometchat/uikit-resources";
5
+ export declare function getButtonContainerStyle(): React.CSSProperties;
6
+ export declare function getListStyle(theme: CometChatTheme, callLogsStyle: CallLogRecordingsStyle): ListStyle;
7
+ export declare function getListItemStyle(theme: CometChatTheme, listItemStyle?: ListItemStyle): ListItemStyle;
8
+ export declare function getSubtitleStyle(theme: CometChatTheme, style: CallLogRecordingsStyle): React.CSSProperties;
9
+ export declare function getCallDateStyle(theme: CometChatTheme, style: CallLogRecordingsStyle): {
10
+ textColor: string | undefined;
11
+ textFont: string;
12
+ background: string;
13
+ };
14
+ export declare function getBackButtonStyle(theme: CometChatTheme, style: CallLogRecordingsStyle): {
15
+ height: string;
16
+ width: string;
17
+ border: string;
18
+ borderRadius: string;
19
+ background: string;
20
+ buttonIconTint: string | undefined;
21
+ };
22
+ export declare function getDownloadButtonStyle(theme: CometChatTheme, style: CallLogRecordingsStyle): {
23
+ height: string;
24
+ width: string;
25
+ border: string;
26
+ borderRadius: string;
27
+ background: string;
28
+ buttonIconTint: string | undefined;
29
+ };
30
+ export declare function getContainerStyle(theme: CometChatTheme, callLogsStyle: CallLogRecordingsStyle): React.CSSProperties;
31
+ export declare function getTitleStyle(theme: CometChatTheme, style: CallLogRecordingsStyle): {
32
+ font: string;
33
+ color: string | undefined;
34
+ background: string;
35
+ };
@@ -0,0 +1,2 @@
1
+ declare function Hooks(loggedInUser: any, setLoggedInUser: Function, requestBuilder: any, setCallBuilder: Function, getCallList: Function, attachListeners: Function, subscribeToEvents: Function, detachListeners: Function, onErrorCallback: Function): void;
2
+ export { Hooks };
@@ -0,0 +1,37 @@
1
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
+ import { CallLogsStyle, OutgoingCallConfiguration } from "@cometchat/uikit-shared";
3
+ import { DatePatterns, TitleAlignment } from "@cometchat/uikit-resources";
4
+ interface ICallLogsProps {
5
+ title?: string;
6
+ titleAlignment?: TitleAlignment;
7
+ listItemView?: any;
8
+ subtitleView?: any;
9
+ tailView?: any;
10
+ emptyStateView?: any;
11
+ errorStateView?: any;
12
+ loadingStateView?: any;
13
+ emptyStateText?: string;
14
+ errorStateText?: string;
15
+ loadingIconURL?: string;
16
+ incomingAudioCallIconUrl?: string;
17
+ incomingVideoCallIconUrl?: string;
18
+ outgoingAudioCallIconUrl?: string;
19
+ outgoingVideoCallIconUrl?: string;
20
+ missedAudioCallIconUrl?: string;
21
+ missedVideoCallIconUrl?: string;
22
+ infoIconUrl?: string;
23
+ activeCall?: any;
24
+ callLogRequestBuilder?: any;
25
+ onItemClick?: Function;
26
+ onInfoClick?: Function;
27
+ onError?: Function;
28
+ hideSeparator?: boolean;
29
+ datePattern?: DatePatterns;
30
+ dateSeparatorPattern?: DatePatterns;
31
+ callLogsStyle?: CallLogsStyle;
32
+ avatarStyle?: AvatarStyle;
33
+ listItemStyle?: ListItemStyle;
34
+ outgoingCallConfiguration?: OutgoingCallConfiguration;
35
+ }
36
+ declare const CometChatCallLogs: (props: ICallLogsProps) => import("react/jsx-runtime").JSX.Element;
37
+ export { CometChatCallLogs };
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
3
+ import { CometChatTheme } from "@cometchat/uikit-resources";
4
+ import { CallLogsStyle, ListStyle } from "@cometchat/uikit-shared";
5
+ export declare function getSubtitleStyle(theme: CometChatTheme, style: CallLogsStyle): React.CSSProperties;
6
+ export declare function getAvatarStyle(theme: CometChatTheme, avatarStyle?: AvatarStyle): AvatarStyle;
7
+ export declare function getListItemStyle(call: any, theme: CometChatTheme, listItemStyle?: ListItemStyle, loggedInUser?: CometChat.User): ListItemStyle;
8
+ export declare function getContainerStyle(theme: CometChatTheme, callLogsStyle: CallLogsStyle): React.CSSProperties;
9
+ export declare function getListStyle(theme: CometChatTheme, callLogsStyle: CallLogsStyle): ListStyle;
10
+ export declare function getCallDateStyle(theme: CometChatTheme, style: CallLogsStyle): {
11
+ textColor: string | undefined;
12
+ textFont: string;
13
+ background: string;
14
+ };
15
+ export declare function getButtonContainerStyle(): React.CSSProperties;
16
+ export declare function getDirectionIconStyle(call: any, theme: CometChatTheme, style: CallLogsStyle, loggedInUser: CometChat.User): {
17
+ height: string;
18
+ width: string;
19
+ border: string;
20
+ borderRadius: string;
21
+ background: string;
22
+ buttonIconTint: string | undefined;
23
+ };
24
+ export declare function getInfoButtonStyle(theme: CometChatTheme, style: CallLogsStyle): {
25
+ height: string;
26
+ width: string;
27
+ border: string;
28
+ borderRadius: string;
29
+ background: string;
30
+ buttonIconTint: string | undefined;
31
+ };
32
+ export declare function getDateSeparator(theme: CometChatTheme, style: CallLogsStyle): {
33
+ textFont: string;
34
+ textColor: string | undefined;
35
+ background: string;
36
+ padding: string;
37
+ };
@@ -0,0 +1,4 @@
1
+ import { CometChatTheme } from "@cometchat/uikit-resources";
2
+ import { CallLogDetailsConfiguration, CallLogsConfiguration } from "@cometchat/uikit-shared";
3
+ declare function Hooks(callLogDetailsConfiguration: CallLogDetailsConfiguration, callLogsConfiguration: CallLogsConfiguration, setActiveCall: Function, isMobileView: boolean, theme: CometChatTheme): void;
4
+ export { Hooks };
@@ -0,0 +1,10 @@
1
+ import { CallLogDetailsConfiguration, CallLogsConfiguration, WithDetailsStyle } from '@cometchat/uikit-shared';
2
+ interface ICallLogWithDetailsProps {
3
+ isMobileView?: boolean;
4
+ messageText?: string;
5
+ withDetailsStyle?: WithDetailsStyle;
6
+ callLogDetailsConfiguration?: CallLogDetailsConfiguration;
7
+ callLogsConfiguration?: CallLogsConfiguration;
8
+ }
9
+ declare const CometChatCallLogsWithDetails: (props: ICallLogWithDetailsProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { CometChatCallLogsWithDetails };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { CometChatTheme } from "@cometchat/uikit-resources";
3
+ import { LabelStyle } from "@cometchat/uikit-elements";
4
+ import { WithDetailsStyle } from "@cometchat/uikit-shared";
5
+ export declare function getContainerStyle(theme: CometChatTheme, style: WithDetailsStyle): React.CSSProperties;
6
+ export declare function getLabelStyle(theme: CometChatTheme, style: WithDetailsStyle): LabelStyle;
7
+ export declare function getEmptyContainerStyle(): {
8
+ display: string;
9
+ justifyContent: string;
10
+ alignItems: string;
11
+ height: string;
12
+ width: string;
13
+ };
@@ -0,0 +1,2 @@
1
+ declare function Hooks(loggedInUser: any, setLoggedInUser: any, call: CometChat.Call, subscribeToEvents: Function, attachListeners: Function, removeListener: Function, acceptCallButtonRef: any, rejectCallButtonRef: any, showCall: any, callRef: any, acceptIncomingCall: Function, rejectIncomingCall: Function, showIncomingCallScreen: boolean): void;
2
+ export { Hooks };
@@ -0,0 +1,19 @@
1
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
+ import { CallScreenConfiguration, IncomingCallStyle } from "@cometchat/uikit-shared";
3
+ interface IIncomingCallProps {
4
+ call?: any;
5
+ disableSoundForCalls?: boolean;
6
+ customSoundForCalls?: string;
7
+ onAccept?: Function;
8
+ onDecline?: Function;
9
+ acceptButtonText?: string;
10
+ ongoingCallConfiguration?: CallScreenConfiguration;
11
+ declineButtonText?: string;
12
+ subtitleView?: any;
13
+ onError?: Function;
14
+ listItemStyle?: ListItemStyle;
15
+ avatarStyle?: AvatarStyle;
16
+ incomingCallStyle?: IncomingCallStyle;
17
+ }
18
+ declare const CometChatIncomingCall: (props: IIncomingCallProps) => import("react/jsx-runtime").JSX.Element;
19
+ export { CometChatIncomingCall };
@@ -0,0 +1,72 @@
1
+ import { CSSProperties } from 'react';
2
+ import { AvatarStyle, ListItemStyle, CallscreenStyle } from "@cometchat/uikit-elements";
3
+ import { CometChatTheme } from "@cometchat/uikit-resources";
4
+ import { IncomingCallStyle } from "@cometchat/uikit-shared";
5
+ export declare const IncomingCallWrapperStyle: (incomingCallStyle: IncomingCallStyle) => CSSProperties;
6
+ export declare const IncomingCallSubtitleStyle: {
7
+ display: string;
8
+ alignItems: string;
9
+ justifyContent: string;
10
+ gap: string;
11
+ };
12
+ export declare const IncomingCallLabelStyle: (incomingCallStyle: IncomingCallStyle) => {
13
+ textFont: string | undefined;
14
+ textColor: string | undefined;
15
+ };
16
+ export declare const IncomingCallListItemStyle: {
17
+ width: string;
18
+ marginLeft: string;
19
+ };
20
+ export declare const IncomingCallTailViewStyle: CSSProperties;
21
+ export declare const IncomingCallButtonsStyle: {
22
+ display: string;
23
+ gap: string;
24
+ paddingLeft: string;
25
+ paddingRight: string;
26
+ };
27
+ export declare const buttonStyle: {
28
+ height: string;
29
+ width: string;
30
+ display: string;
31
+ flexDirection: string;
32
+ justifyContent: string;
33
+ alignItems: string;
34
+ padding: string;
35
+ };
36
+ export declare const defaultAvatarStyle: (theme: CometChatTheme) => AvatarStyle;
37
+ export declare const defaultIncomingCallStyle: (theme: CometChatTheme) => IncomingCallStyle;
38
+ export declare const defaultListItemStyle: (incomingCallStyle: IncomingCallStyle, theme: CometChatTheme) => ListItemStyle;
39
+ export declare const AcceptButtonStyle: (incomingCallStyle: IncomingCallStyle) => {
40
+ height: string;
41
+ width: string;
42
+ display: string;
43
+ flexDirection: string;
44
+ justifyContent: string;
45
+ alignItems: string;
46
+ padding: string;
47
+ border: string | undefined;
48
+ borderRadius: string | undefined;
49
+ background: string | undefined;
50
+ buttonTextFont: string | undefined;
51
+ buttonTextColor: string | undefined;
52
+ };
53
+ export declare const DeclineButtonStyle: (incomingCallStyle: IncomingCallStyle) => {
54
+ height: string;
55
+ width: string;
56
+ display: string;
57
+ flexDirection: string;
58
+ justifyContent: string;
59
+ alignItems: string;
60
+ padding: string;
61
+ border: string | undefined;
62
+ borderRadius: string | undefined;
63
+ background: string | undefined;
64
+ buttonTextFont: string | undefined;
65
+ buttonTextColor: string | undefined;
66
+ };
67
+ export declare const getDefaultOngoingCallStyle: (ongoingCallStyle: any, theme: CometChatTheme) => CallscreenStyle;
68
+ export declare const IconStyle: (incomingCallStyle: IncomingCallStyle) => {
69
+ height: string;
70
+ width: string;
71
+ iconTint: string;
72
+ };
@@ -0,0 +1,2 @@
1
+ declare function Hooks(setLoggedInUser: any, sessionID: string, startCall: any): void;
2
+ export { Hooks };
@@ -0,0 +1,15 @@
1
+ import { CallWorkflow } from "@cometchat/uikit-resources";
2
+ import { CallscreenStyle } from "@cometchat/uikit-elements";
3
+ import { CometChatUIKitCalls } from "@cometchat/uikit-shared";
4
+ interface IOngoingCallProps {
5
+ callSettingsBuilder?: typeof CometChatUIKitCalls.CallSettings;
6
+ sessionID: string;
7
+ ongoingCallStyle?: CallscreenStyle;
8
+ resizeIconHoverText?: string;
9
+ minimizeIconURL?: string;
10
+ maximizeIconURL?: string;
11
+ onError?: Function;
12
+ callWorkflow?: CallWorkflow;
13
+ }
14
+ declare const CometChatOngoingCall: (props: IOngoingCallProps) => import("react/jsx-runtime").JSX.Element;
15
+ export { CometChatOngoingCall };
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from "react";
2
+ export declare const callScreenWrapperStyle: () => CSSProperties;
@@ -0,0 +1,2 @@
1
+ declare function Hooks(playAudio: Function, call: any, onClose: Function, cancelCallButtonRef: any): void;
2
+ export { Hooks };
@@ -0,0 +1,16 @@
1
+ import { OutgoingCallStyle } from "@cometchat/uikit-shared";
2
+ import { AvatarStyle } from "@cometchat/uikit-elements";
3
+ interface IOutgoingCallProps {
4
+ call: CometChat.Call;
5
+ disableSoundForCalls?: boolean;
6
+ customSoundForCalls?: string;
7
+ declineButtonText?: string;
8
+ declineButtonIconURL?: string;
9
+ customView?: any;
10
+ onError?: Function;
11
+ avatarStyle?: AvatarStyle;
12
+ outgoingCallStyle?: OutgoingCallStyle;
13
+ onCloseClicked?: Function;
14
+ }
15
+ declare const CometChatOutgoingCall: (props: IOutgoingCallProps) => import("react/jsx-runtime").JSX.Element;
16
+ export { CometChatOutgoingCall };
@@ -0,0 +1,39 @@
1
+ import { AvatarStyle, CardStyle } from "@cometchat/uikit-elements";
2
+ import { OutgoingCallStyle } from "@cometchat/uikit-shared";
3
+ import { CometChatTheme } from "@cometchat/uikit-resources";
4
+ export declare const OutgoingCallWrapperStyle: (outgoingCallStyle: OutgoingCallStyle) => {
5
+ height: string | undefined;
6
+ width: string | undefined;
7
+ background: string | undefined;
8
+ border: string | undefined;
9
+ borderRadius: string | undefined;
10
+ };
11
+ export declare const OutgoingCallSubtitleStyle: (outgoingCallStyle: OutgoingCallStyle) => {
12
+ textFont: string | undefined;
13
+ textColor: string | undefined;
14
+ };
15
+ export declare const OutgoingCallCancelButtonStyle: (outgoingCallStyle: OutgoingCallStyle) => {
16
+ height: string;
17
+ width: string;
18
+ buttonTextFont: string | undefined;
19
+ buttonTextColor: string | undefined;
20
+ borderRadius: string;
21
+ border: string;
22
+ buttonIconTint: string | undefined;
23
+ background: string;
24
+ iconBackground: string | undefined;
25
+ };
26
+ export declare const buttonStyle: {
27
+ height: string;
28
+ width: string;
29
+ buttonTextFont: string;
30
+ buttonTextColor: string;
31
+ borderRadius: string;
32
+ border: string;
33
+ buttonIconTint: string;
34
+ background: string;
35
+ iconBackground: string;
36
+ };
37
+ export declare const OutgoingCallCardStyle: CardStyle;
38
+ export declare const defaultAvatarStyle: (theme: CometChatTheme) => AvatarStyle;
39
+ export declare const defaultOutgoingCallStyle: (theme: CometChatTheme) => OutgoingCallStyle;
@@ -0,0 +1,11 @@
1
+ import { CometChatCallDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
2
+ export declare class CallingDetailsUtils {
3
+ static getDefaultCallTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): Array<CometChatCallDetailsTemplate>;
4
+ private static getCallButtons;
5
+ static getPrimaryDetailsTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): CometChatCallDetailsTemplate;
6
+ static getSecondaryDetailsTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): CometChatCallDetailsTemplate;
7
+ private static getPrimaryOptions;
8
+ private static getSecondaryOptions;
9
+ private static generateCallDetailsHTML;
10
+ private static generateCallOptionsHTML;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { CometChatDetailsTemplate } from "@cometchat/uikit-resources";
2
+ export declare class CallingDetailsUtils {
3
+ static getDetailsTemplate(user?: CometChat.User, group?: CometChat.Group): Array<CometChatDetailsTemplate>;
4
+ private static getCallButtons;
5
+ static getPrimaryDetailsTemplate(user1?: CometChat.User, group1?: CometChat.Group): CometChatDetailsTemplate;
6
+ private static getPrimaryOptions;
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare function isSentByMe(call: any, loggedInUser: CometChat.User): boolean;
2
+ export declare function isMissedCall(call: CometChat.Call, loggedInUser: CometChat.User): boolean;
3
+ export declare function verifyCallUser(call: any, loggedInUser: CometChat.User): any;
4
+ export declare function getCallStatusWithType(call: any, loggedInUser: CometChat.User, includeType?: boolean): string;
5
+ export declare function convertMinutesToHoursMinutesSeconds(minutes: number): string;
6
+ export declare function convertSecondsToHoursMinutesSeconds(seconds: number): string;
7
+ export declare function downloadRecordingFromURL(url: string): void;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { SelectionMode } from "@cometchat/uikit-resources";
3
+ type Args = {
4
+ loggedInUserRef: React.MutableRefObject<CometChat.User | null>;
5
+ errorHandler: (error: unknown) => void;
6
+ selectionMode: SelectionMode;
7
+ selectionModeRef: React.MutableRefObject<SelectionMode>;
8
+ membersToAddRef: React.MutableRefObject<CometChat.GroupMember[]>;
9
+ };
10
+ export declare function Hooks(args: Args): void;
11
+ export {};
@@ -0,0 +1,229 @@
1
+ import { AddMembersStyle } from "@cometchat/uikit-shared";
2
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
3
+ import { CSSProperties, JSX } from "react";
4
+ import { CometChatOption, SelectionMode, TitleAlignment } from "@cometchat/uikit-resources";
5
+ interface IAddMembersProps {
6
+ /**
7
+ * Image URL for the back button
8
+ *
9
+ * @remarks
10
+ * This prop will also be used if `backButton` prop is not provided
11
+ *
12
+ * @defaultValue `./assets/backbutton.svg`
13
+ */
14
+ backButtonIconURL?: string;
15
+ /**
16
+ * Show back button
17
+ *
18
+ * @defaultValue `true`
19
+ */
20
+ showBackButton?: boolean;
21
+ /**
22
+ * Function to call when the back button is clicked
23
+ */
24
+ onBack?: () => void;
25
+ /**
26
+ * Title of the component
27
+ *
28
+ * @defaultValue `localize("ADD_MEMBERS")`
29
+ */
30
+ title?: string;
31
+ /**
32
+ * Alignment of the `title` text
33
+ *
34
+ * @defaultValue `TitleAlignment.center`
35
+ */
36
+ titleAlignment?: TitleAlignment;
37
+ /**
38
+ * Hide the search bar
39
+ *
40
+ * @defaulValue `false`
41
+ */
42
+ hideSearch?: boolean;
43
+ /**
44
+ * Image URL for the search icon to use in the search bar
45
+ *
46
+ * @defaultValue `./assets/search.svg`
47
+ */
48
+ searchIconURL?: string;
49
+ /**
50
+ * Text to be displayed when the search input has no value
51
+ *
52
+ * @defaultValue `localize("SEARCH")`
53
+ */
54
+ searchPlaceholder?: string;
55
+ /**
56
+ * Show alphabetical header
57
+ *
58
+ * @defaultValue `false`
59
+ */
60
+ showSectionHeader?: boolean;
61
+ /**
62
+ * Property on the user object
63
+ *
64
+ * @remarks
65
+ * This property will be used to extract the section header character from the user object
66
+ *
67
+ * @defaultValue `getName`
68
+ */
69
+ sectionHeaderField?: keyof CometChat.User;
70
+ /**
71
+ * Image URL for the default loading view
72
+ *
73
+ * @defaultValue `./assets/spinner.svg`
74
+ */
75
+ loadingIconURL?: string;
76
+ /**
77
+ * Custom view for the loading state of the component
78
+ */
79
+ loadingStateView?: JSX.Element;
80
+ /**
81
+ * Text to display in the default empty view
82
+ *
83
+ * @defaultValue `localize("NO_USERS_FOUND")`
84
+ */
85
+ emptyStateText?: string;
86
+ /**
87
+ * Custom view for the empty state of the component
88
+ */
89
+ emptyStateView?: JSX.Element;
90
+ /**
91
+ * Text to display in the default error view
92
+ *
93
+ * @defaultValue `localize("SOMETHING_WRONG")`
94
+ */
95
+ errorStateText?: string;
96
+ /**
97
+ * Custom view for the error state of the component
98
+ */
99
+ errorStateView?: JSX.Element;
100
+ /**
101
+ * Hide error view
102
+ *
103
+ * @remarks
104
+ * If set to true, hides the default and the custom error view
105
+ *
106
+ * @defaultValue `false`
107
+ */
108
+ hideError?: boolean;
109
+ /**
110
+ * Hide user presence
111
+ *
112
+ * @remarks
113
+ * If set to true, the status indicator of the default list item view is not displayed
114
+ *
115
+ * @defaultValue `false`
116
+ */
117
+ disableUsersPresence?: boolean;
118
+ /**
119
+ * Hide the separator at the bottom of the default list item view
120
+ *
121
+ * @defaultValue `false`
122
+ */
123
+ hideSeparator?: boolean;
124
+ /**
125
+ * Function to call whenever the component encounters an error
126
+ */
127
+ onError?: ((error: CometChat.CometChatException) => void) | null;
128
+ /**
129
+ * Custom view to render on the top-right of the component
130
+ */
131
+ menus?: JSX.Element;
132
+ /**
133
+ * List of actions available on mouse over on the default list item component
134
+ */
135
+ options?: (user: CometChat.User) => CometChatOption[];
136
+ /**
137
+ * Selection mode to use for the default tail view
138
+ *
139
+ * @remarks
140
+ * This prop is used if `listItemView` prop is not provided.
141
+ *
142
+ * @defaultValue `SelectionMode.multiple`
143
+ */
144
+ selectionMode?: SelectionMode;
145
+ /**
146
+ * Function to call when a user from the fetched list is selected
147
+ *
148
+ * @remarks
149
+ * This prop is used if `selectionMode` prop is not `SelectionMode.none`
150
+ */
151
+ onSelect?: (user: CometChat.User, selected: boolean) => void;
152
+ /**
153
+ * Request builder to fetch users
154
+ *
155
+ * @remarks
156
+ * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
157
+ * the search keyword of this request builder is set to the text in the search input
158
+ *
159
+ * @defaultValue Default request builder having the limit set to 30
160
+ */
161
+ usersRequestBuilder?: CometChat.UsersRequestBuilder;
162
+ /**
163
+ * Request builder with search parameters to fetch users
164
+ *
165
+ * @remarks
166
+ * If the search input is not empty,
167
+ * the search keyword of this request builder is set to the text in the search input
168
+ */
169
+ searchRequestBuilder?: CometChat.UsersRequestBuilder;
170
+ /**
171
+ * Custom list item view to be rendered for each user in the fetched list
172
+ */
173
+ listItemView?: (user: CometChat.User) => JSX.Element;
174
+ /**
175
+ * Custom subtitle view to be rendered for each user in the fetched list
176
+ *
177
+ * @remarks
178
+ * This prop is used if `listItemView` prop is not provided
179
+ */
180
+ subtitleView?: (user: CometChat.User) => JSX.Element;
181
+ /**
182
+ * Group to add members to
183
+ */
184
+ group: CometChat.Group;
185
+ /**
186
+ * Function to call when add button of the component is clicked
187
+ *
188
+ * @remarks
189
+ * This function won't be call if no users are selected
190
+ */
191
+ onAddMembersButtonClick?: (guid: string, membersToAdd: CometChat.GroupMember[]) => void;
192
+ /**
193
+ * Text to display for the default add button
194
+ *
195
+ * @defaultValue `localize("ADD_MEMBERS")`
196
+ */
197
+ buttonText?: string;
198
+ /**
199
+ * Image URL for the close button
200
+ *
201
+ * @defaultValue `./assets/close2x.svg`
202
+ */
203
+ closeButtonIconURL?: string;
204
+ /**
205
+ * Function to call when the close button is clicked
206
+ */
207
+ onClose?: () => void;
208
+ /**
209
+ * Styles to apply to the status indicator component of the default list item view
210
+ */
211
+ statusIndicatorStyle?: CSSProperties;
212
+ /**
213
+ * Styles to apply to the avatar component of the default list item view
214
+ */
215
+ avatarStyle?: AvatarStyle;
216
+ /**
217
+ * Styles to apply to the default list item view
218
+ */
219
+ listItemStyle?: ListItemStyle;
220
+ /**
221
+ * Styles to apply to this component
222
+ */
223
+ addMembersStyle?: AddMembersStyle;
224
+ }
225
+ /**
226
+ * Renders a scrollable list of users to add to a group of a CometChat App
227
+ */
228
+ export declare function CometChatAddMembers(props: IAddMembersProps): import("react/jsx-runtime").JSX.Element;
229
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CSSProperties } from "react";
2
+ import { CometChatTheme } from "@cometchat/uikit-resources";
3
+ import { AddMembersStyle, UsersStyle } from "@cometchat/uikit-shared";
4
+ type ButtonStyle = CSSProperties & {
5
+ buttonIconTint?: string;
6
+ };
7
+ export declare function addMembersStyle(addMembersStyleObject: AddMembersStyle | null, theme: CometChatTheme): CSSProperties;
8
+ export declare function usersStyle(addMembersStyleObject: AddMembersStyle | null, theme: CometChatTheme): UsersStyle;
9
+ export declare function addMembersButtonStyle(addMembersStyleObject: AddMembersStyle | null, theme: CometChatTheme): any;
10
+ export declare function defaultBackBtnStyle(addMembersStyleObject: AddMembersStyle | null, theme: CometChatTheme): ButtonStyle;
11
+ export declare function closeBtnStyle(addMembersStyleObject: AddMembersStyle | null, theme: CometChatTheme): ButtonStyle;
12
+ export declare function getAddMembersBtnStyle(): CSSProperties;
13
+ export {};