@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,26 @@
1
+ import { CometChatMessageTemplate, CometChatTheme, CometChatMessageComposerAction } from "@cometchat/uikit-resources";
2
+ import { CreatePollStyle } from "@cometchat/uikit-shared";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ import { DataSource } from "../../Shared/Framework/DataSource";
5
+ import { PollsConfiguration } from "./PollsConfiguration";
6
+ export declare class PollsExtensionDecorator extends DataSourceDecorator {
7
+ theme: CometChatTheme;
8
+ private loggedInUser;
9
+ configuration?: PollsConfiguration;
10
+ newDataSource: DataSource;
11
+ constructor(dataSource: DataSource, configuration?: PollsConfiguration);
12
+ getLoggedInUser(): Promise<void>;
13
+ getId(): string;
14
+ getAllMessageTypes(): string[];
15
+ getAllMessageCategories(): string[];
16
+ checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
17
+ getAllMessageTemplates(_theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
18
+ getPollsTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
19
+ getPollsContentView(message: CometChat.CustomMessage, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
20
+ getPollBubbleData(message: CometChat.CustomMessage, key?: string): any;
21
+ getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
22
+ onPollsButtonClicked(theme: CometChatTheme, ...args: any[]): void;
23
+ getPollView(user: CometChat.User, group: CometChat.Group, createPollStyle: CreatePollStyle): import("react/jsx-runtime").JSX.Element;
24
+ triggerCloseEvent(): void;
25
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
26
+ }
@@ -0,0 +1,8 @@
1
+ import { SmartRepliesStyle } from "@cometchat/uikit-shared";
2
+ export declare class SmartRepliesConfiguration {
3
+ private style;
4
+ constructor(configuration: {
5
+ style?: SmartRepliesStyle;
6
+ });
7
+ getSmartRepliesStyle(): SmartRepliesStyle;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { SmartRepliesConfiguration } from "./SmartRepliesConfiguration";
3
+ export declare class SmartReplyExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ private theme?;
6
+ constructor(configuration?: SmartRepliesConfiguration);
7
+ addExtension(): void;
8
+ getExtensionId(): string;
9
+ }
@@ -0,0 +1,35 @@
1
+ import { CometChatTheme } from "@cometchat/uikit-resources";
2
+ import React from "react";
3
+ import { DataSource } from "../../Shared/Framework/DataSource";
4
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
5
+ import { SmartRepliesConfiguration } from "./SmartRepliesConfiguration";
6
+ export declare class SmartReplyExtensionDecorator extends DataSourceDecorator {
7
+ configuration?: SmartRepliesConfiguration;
8
+ theme?: CometChatTheme;
9
+ private LISTENER_ID;
10
+ private activeUser;
11
+ private activeGroup;
12
+ currentMessage: CometChat.BaseMessage | null;
13
+ loggedInUser: CometChat.User | null;
14
+ constructor(dataSource: DataSource, configuration?: SmartRepliesConfiguration, theme?: CometChatTheme);
15
+ private addMessageListener;
16
+ getReplies(message: CometChat.TextMessage): any[] | null;
17
+ getSmartReplyStyle(): {
18
+ replyTextFont: string;
19
+ replyTextColor: string | undefined;
20
+ replyBackground: string;
21
+ boxShadow: string;
22
+ closeIconTint: string | undefined;
23
+ background: string;
24
+ width: string;
25
+ height: string;
26
+ border: string;
27
+ display: string;
28
+ justifyContent: string;
29
+ };
30
+ sendSmartReply(_event: any): void;
31
+ closeSmartReply(): void;
32
+ getSmartReplyButtonStyle(): React.CSSProperties;
33
+ getSmartReplyView(message: CometChat.TextMessage): import("react/jsx-runtime").JSX.Element | null;
34
+ getId(): string;
35
+ }
@@ -0,0 +1,14 @@
1
+ import { StickersStyle } from "@cometchat/uikit-shared";
2
+ export declare class StickersConfiguration {
3
+ private style;
4
+ private stickerIconURL;
5
+ private closeIconURL;
6
+ constructor(configuration: {
7
+ style?: StickersStyle;
8
+ stickerIconURL?: string;
9
+ closeIconURL?: string;
10
+ });
11
+ getStickersStyle(): StickersStyle;
12
+ getStickerIconURL(): string;
13
+ getCloseIconURL(): string;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { StickersConfiguration } from "./StickersConfiguration";
3
+ export declare class StickersExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: StickersConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,27 @@
1
+ import { CometChatMessageTemplate, CometChatTheme } from "@cometchat/uikit-resources";
2
+ import { DataSource } from "../../Shared/Framework/DataSource";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ import { StickersConfiguration } from "./StickersConfiguration";
5
+ export declare class StickersExtensionDecorator extends DataSourceDecorator {
6
+ configuration?: StickersConfiguration;
7
+ newDataSource: DataSource;
8
+ showStickerKeyboard: boolean;
9
+ theme: CometChatTheme;
10
+ private id;
11
+ private user;
12
+ private group;
13
+ constructor(dataSource: DataSource, configuration?: StickersConfiguration);
14
+ getDataSource(): DataSource;
15
+ getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
16
+ getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
17
+ getStickerAuxiliaryButton(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): import("react/jsx-runtime").JSX.Element;
18
+ sendSticker(event: any): void;
19
+ getSticker(message: CometChat.CustomMessage): any;
20
+ getStickerMessageContentView(stickerMessage: CometChat.CustomMessage, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
21
+ getStickerTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
22
+ checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
23
+ getAllMessageCategories(): string[];
24
+ getAllMessageTypes(): string[];
25
+ getId(): string;
26
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
27
+ }
@@ -0,0 +1,6 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ export declare class TextModeratorExtension extends ExtensionsDataSource {
3
+ addExtension(): void;
4
+ getExtensionId(): string;
5
+ enable(): void;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { CometChatTheme, MessageBubbleAlignment } from "@cometchat/uikit-resources";
2
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
3
+ export declare class TextModeratorExtensionDecorator extends DataSourceDecorator {
4
+ getId(): string;
5
+ getModeratedtext(message: CometChat.TextMessage): string;
6
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
7
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ export declare class ThumbnailGenerationExtension extends ExtensionsDataSource {
3
+ addExtension(): void;
4
+ getExtensionId(): string;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseStyle, ImageBubbleStyle } from "@cometchat/uikit-elements";
2
+ import { CometChatTheme } from "@cometchat/uikit-resources";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ export declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
5
+ getId(): string;
6
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
7
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
8
+ }
@@ -0,0 +1,42 @@
1
+ import { CardMessage, CometChatLocalize, CustomInteractiveMessage, FormMessage, SchedulerMessage } from "@cometchat/uikit-resources";
2
+ import { CometChatSoundManager, UIKitSettings } from '@cometchat/uikit-shared';
3
+ import { AIExtensionDataSource } from "../Framework/AIExtensionDataSource";
4
+ import { ExtensionsDataSource } from "../Framework/ExtensionsDataSource";
5
+ import { CallingExtensionDataSource } from "@cometchat/uikit-shared";
6
+ declare class CometChatUIKit {
7
+ static uiKitSettings: UIKitSettings | null;
8
+ static SoundManager: typeof CometChatSoundManager;
9
+ static Localize: typeof CometChatLocalize;
10
+ static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
11
+ static init(uiKitSettings: UIKitSettings | null): Promise<Object> | undefined;
12
+ static defaultExtensions: ExtensionsDataSource[];
13
+ /**
14
+ * Default callingExtension included in the UI Kit.
15
+ * @type {CallingExtensionDataSource}
16
+ */
17
+ static defaultCallingExtension: CallingExtensionDataSource;
18
+ static defaultAIFeatures: AIExtensionDataSource[];
19
+ static enableCalling(): void;
20
+ private static initiateAfterLogin;
21
+ static login(uid: string): Promise<CometChat.User>;
22
+ static loginWithAuthToken(authToken: string): Promise<CometChat.User>;
23
+ static getLoggedinUser(): Promise<CometChat.User | null>;
24
+ static createUser(user: CometChat.User): Promise<CometChat.User>;
25
+ static updateUser(user: CometChat.User): Promise<CometChat.User>;
26
+ static logout(): Promise<Object>;
27
+ static checkAuthSettings(): boolean;
28
+ /**
29
+ * Sends a form message and emits events based on the message status.
30
+ * @param message - The form message to be sent.
31
+ * @param disableLocalEvents - A boolean indicating whether to disable local events or not. Default value is false.
32
+ */
33
+ static sendFormMessage(message: FormMessage, disableLocalEvents?: boolean): void;
34
+ static sendCardMessage(message: CardMessage, disableLocalEvents?: boolean): void;
35
+ static sendCustomInteractiveMessage(message: CustomInteractiveMessage, disableLocalEvents?: boolean): void;
36
+ static sendCustomMessage(message: CometChat.CustomMessage): Promise<unknown>;
37
+ static sendTextMessage(message: CometChat.TextMessage): Promise<unknown>;
38
+ static sendMediaMessage(message: CometChat.MediaMessage): Promise<unknown>;
39
+ static sendSchedulerMessage(message: SchedulerMessage, disableLocalEvents?: boolean): Promise<unknown>;
40
+ static getDataSource(): import("../..").DataSource;
41
+ }
42
+ export { CometChatUIKit };
@@ -0,0 +1,6 @@
1
+ declare abstract class AIExtensionDataSource {
2
+ abstract addExtension(): void;
3
+ abstract getExtensionId(): string;
4
+ enable(): void;
5
+ }
6
+ export { AIExtensionDataSource };
@@ -0,0 +1,8 @@
1
+ import { DataSource } from "./DataSource";
2
+ export declare class ChatConfigurator {
3
+ static dataSource: DataSource;
4
+ static names: Array<string>;
5
+ static init(initialSource?: DataSource): void;
6
+ static enable(callback: (dataSource: DataSource) => DataSource): void;
7
+ static getDataSource(): DataSource;
8
+ }
@@ -0,0 +1,56 @@
1
+ import { BaseStyle, FileBubbleStyle, ImageBubbleStyle, TextBubbleStyle } from "@cometchat/uikit-elements";
2
+ import { CardBubbleStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, ComposerId, FormBubbleStyle, SchedulerBubbleStyle } from "@cometchat/uikit-shared";
3
+ import { CardMessage, CometChatActionsIcon, CometChatActionsView, CometChatDetailsTemplate, CometChatMessageComposerAction, CometChatMessageTemplate, CometChatTheme, FormMessage, MessageBubbleAlignment, SchedulerMessage } from "@cometchat/uikit-resources";
4
+ import { AIOptionsStyle } from "@cometchat/uikit-shared";
5
+ export declare abstract class DataSource {
6
+ abstract getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
7
+ abstract getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
8
+ abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
9
+ abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
10
+ abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
11
+ abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): any;
12
+ abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, otherParams: any): any;
13
+ abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
14
+ abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
15
+ abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
16
+ abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
17
+ abstract getFormMessageContentView(message: FormMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
18
+ abstract getSchedulerMessageContentView(message: SchedulerMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
19
+ abstract getCardMessageContentView(message: CardMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
20
+ abstract getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
21
+ abstract getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
22
+ abstract getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
23
+ abstract getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
24
+ abstract getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
25
+ abstract getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
26
+ abstract getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
27
+ abstract getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
28
+ abstract getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
29
+ abstract getAllMessageTemplates(theme?: CometChatTheme, additionalConfigurations?: any): Array<CometChatMessageTemplate>;
30
+ abstract getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme): CometChatMessageTemplate | null;
31
+ abstract getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
32
+ abstract getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
33
+ abstract getAttachmentOptions(theme: CometChatTheme, id: ComposerId): CometChatMessageComposerAction[];
34
+ abstract getAllMessageTypes(): Array<string>;
35
+ abstract getAllMessageCategories(): Array<string>;
36
+ abstract getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
37
+ abstract getId(): string;
38
+ abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
39
+ abstract getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
40
+ abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
41
+ abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
42
+ abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
43
+ abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
44
+ abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
45
+ abstract getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: FormBubbleStyle, onSubmitClick?: Function): any;
46
+ abstract getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: SchedulerBubbleStyle, onSubmitClick?: Function): any;
47
+ abstract getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
48
+ abstract getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
49
+ abstract getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
50
+ abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
51
+ abstract getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
52
+ abstract getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
53
+ abstract getMentionsTextFormatter(params: any): CometChatMentionsFormatter;
54
+ abstract getUrlTextFormatter(params: any): CometChatUrlsFormatter;
55
+ abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: any): string;
56
+ }
@@ -0,0 +1,59 @@
1
+ import { BaseStyle, FileBubbleStyle, ImageBubbleStyle, TextBubbleStyle } from "@cometchat/uikit-elements";
2
+ import { CardBubbleStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, ComposerId, FormBubbleStyle, SchedulerBubbleStyle } from "@cometchat/uikit-shared";
3
+ import { CardMessage, CometChatActionsIcon, CometChatActionsView, CometChatDetailsTemplate, CometChatMessageComposerAction, CometChatMessageTemplate, CometChatTheme, FormMessage, MessageBubbleAlignment, SchedulerMessage } from "@cometchat/uikit-resources";
4
+ import { AIOptionsStyle } from "@cometchat/uikit-shared";
5
+ import { DataSource } from "./DataSource";
6
+ export declare abstract class DataSourceDecorator implements DataSource {
7
+ dataSource: DataSource;
8
+ constructor(dataSource: DataSource);
9
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
10
+ getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
11
+ getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
12
+ getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
13
+ getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
14
+ getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): any;
15
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
16
+ getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
17
+ getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
18
+ getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
19
+ getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
20
+ getFormMessageContentView(message: FormMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
21
+ getSchedulerMessageContentView(message: SchedulerMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
22
+ getCardMessageContentView(message: CardMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
23
+ getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
24
+ getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
25
+ getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
26
+ getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
27
+ getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
28
+ getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
29
+ getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
30
+ getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
31
+ getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
32
+ getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
33
+ getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme | undefined): CometChatMessageTemplate | null;
34
+ getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
35
+ getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
36
+ getAttachmentOptions(theme: CometChatTheme, id: ComposerId): CometChatMessageComposerAction[];
37
+ getAllMessageTypes(): string[];
38
+ getAllMessageCategories(): string[];
39
+ getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
40
+ getId(): string;
41
+ getDeleteMessageBubble(messageObject: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
42
+ getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
43
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
44
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
45
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
46
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
47
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
48
+ getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: FormBubbleStyle, onSubmitClick?: Function): any;
49
+ getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: SchedulerBubbleStyle, onSubmitClick?: Function): any;
50
+ getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
51
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
52
+ getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
53
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
54
+ getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
55
+ getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
56
+ getMentionsTextFormatter(params?: any): CometChatMentionsFormatter;
57
+ getUrlTextFormatter(params?: any): CometChatUrlsFormatter;
58
+ getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: any): string;
59
+ }
@@ -0,0 +1,6 @@
1
+ declare abstract class ExtensionsDataSource {
2
+ abstract addExtension(): void;
3
+ abstract getExtensionId(): string;
4
+ enable(): void;
5
+ }
6
+ export { ExtensionsDataSource };
@@ -0,0 +1,16 @@
1
+ import { CometChatMessageTemplate, CometChatTheme, MessageBubbleAlignment } from "@cometchat/uikit-resources";
2
+ export declare class MessageUtils {
3
+ messageBubbleStyle(message: CometChat.BaseMessage, theme: CometChatTheme, alignment: MessageBubbleAlignment, currentUser: any): {
4
+ background: string;
5
+ border: string;
6
+ borderRadius: string;
7
+ } | {
8
+ background: string | undefined;
9
+ borderRadius: string;
10
+ border?: undefined;
11
+ };
12
+ getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate): any;
13
+ getBubbleWrapper(message: CometChat.BaseMessage, template: CometChatMessageTemplate): any;
14
+ getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, messageBubbleStyle: any, alignment: MessageBubbleAlignment): any;
15
+ getUserStatusVisible(user?: CometChat.User | CometChat.GroupMember): boolean;
16
+ }
@@ -0,0 +1,92 @@
1
+ import { AIOptionsStyle, CardBubbleStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, ComposerId, FormBubbleStyle, SchedulerBubbleStyle } from "@cometchat/uikit-shared";
2
+ import { BaseStyle, FileBubbleStyle, ImageBubbleStyle, TextBubbleStyle } from "@cometchat/uikit-elements";
3
+ import { CardMessage, CometChatActionsIcon, CometChatActionsView, CometChatDetailsTemplate, CometChatMessageComposerAction, CometChatMessageTemplate, CometChatTheme, FormMessage, MentionsTargetElement, MessageBubbleAlignment, SchedulerMessage } from "@cometchat/uikit-resources";
4
+ import { DataSource } from "../Framework/DataSource";
5
+ export declare class MessagesDataSource implements DataSource {
6
+ getEditOption(theme: CometChatTheme): CometChatActionsIcon;
7
+ getDeleteOption(theme: CometChatTheme): CometChatActionsIcon;
8
+ getReactionOption(theme: CometChatTheme): CometChatActionsView;
9
+ getReplyInThreadOption(theme: CometChatTheme): CometChatActionsIcon;
10
+ getSendMessagePrivatelyOption(theme: CometChatTheme): CometChatActionsIcon;
11
+ getCopyOption(theme: CometChatTheme): CometChatActionsIcon;
12
+ getMessageInfoOption(theme: CometChatTheme): CometChatActionsIcon;
13
+ isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
14
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
15
+ getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
16
+ getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
17
+ getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
18
+ getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
19
+ getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
20
+ getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
21
+ getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
22
+ getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
23
+ getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
24
+ getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
25
+ getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
26
+ getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
27
+ getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
28
+ getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
29
+ getAllMessageTemplates(theme?: CometChatTheme, additionalConfigurations?: any): Array<CometChatMessageTemplate>;
30
+ getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate | null;
31
+ getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
32
+ getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
33
+ getAllMessageTypes(): Array<string>;
34
+ addList(): string;
35
+ getAllMessageCategories(): Array<string>;
36
+ getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
37
+ getId(): string;
38
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
39
+ getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
40
+ getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
41
+ getFormMessageContentView(message: FormMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
42
+ getSchedulerMessageContentView(message: SchedulerMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
43
+ getCardMessageContentView(message: CardMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
44
+ getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
45
+ getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
46
+ getActionMessage(message: any): string;
47
+ getDeleteMessageBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): import("react/jsx-runtime").JSX.Element;
48
+ getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): import("react/jsx-runtime").JSX.Element;
49
+ getTextMessageBubbleStyle(alignment: MessageBubbleAlignment, theme: CometChatTheme): {
50
+ textFont: string;
51
+ textColor: string;
52
+ };
53
+ getFormMessageBubbleStyle(theme: CometChatTheme): FormBubbleStyle;
54
+ getSchedulerBubbleStyle: (theme: CometChatTheme) => SchedulerBubbleStyle;
55
+ getCardMessageBubbleStyle(theme: CometChatTheme): CardBubbleStyle;
56
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
57
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
58
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
59
+ getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: any, onSubmitClick?: Function): any;
60
+ getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: any, onSubmitClick?: (timestamp: string, message: SchedulerMessage) => void): any;
61
+ getSchedulerWrapperStyle(): {
62
+ height: string;
63
+ width: string;
64
+ display: string;
65
+ };
66
+ getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
67
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): import("react/jsx-runtime").JSX.Element;
68
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
69
+ imageAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
70
+ videoAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
71
+ audioAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
72
+ fileAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
73
+ getAttachmentOptions(theme: CometChatTheme, id: ComposerId): Array<CometChatMessageComposerAction>;
74
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
75
+ getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
76
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
77
+ getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): Array<CometChatMessageComposerAction | CometChatActionsView>;
78
+ /**
79
+ * Adds styled @ for every mention in the text by matching uid
80
+ *
81
+ * @param {CometChat.TextMessage} message
82
+ * @param {string} subtitle
83
+ * @returns {void}
84
+ */
85
+ getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
86
+ mentionsTargetElement: MentionsTargetElement;
87
+ theme: CometChatTheme;
88
+ }): string;
89
+ getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
90
+ getMentionsTextFormatter(params: any): CometChatMentionsFormatter;
91
+ getUrlTextFormatter(params?: any): CometChatUrlsFormatter;
92
+ }
@@ -0,0 +1,11 @@
1
+ import React, { JSX } from "react";
2
+ import { CometChatButton } from ".";
3
+ type Args = {
4
+ ref: React.MutableRefObject<JSX.IntrinsicElements["cometchat-button"]>;
5
+ onClickPropRef: React.MutableRefObject<((customEvent: CustomEvent<{
6
+ event: PointerEvent;
7
+ }>) => void) | undefined>;
8
+ childRefCallback?: (ref: React.RefObject<typeof CometChatButton>) => void;
9
+ };
10
+ export declare function Hooks(args: Args): void;
11
+ export {};
@@ -0,0 +1,19 @@
1
+ import { CSSProperties } from "react";
2
+ type ButtonStyle = {
3
+ buttonTextFont?: string;
4
+ buttonTextColor?: string;
5
+ buttonIconTint?: string;
6
+ } & CSSProperties;
7
+ interface ICometChatButtonProps {
8
+ text?: string;
9
+ hoverText?: string;
10
+ iconURL?: string;
11
+ disabled?: boolean;
12
+ buttonStyle?: ButtonStyle;
13
+ onClick?: (customEvent: CustomEvent<{
14
+ event: PointerEvent;
15
+ }>) => void;
16
+ childRefCallback?: (ref: React.RefObject<typeof CometChatButton>) => void;
17
+ }
18
+ export declare function CometChatButton(props: ICometChatButtonProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,9 @@
1
+ import React, { JSX } from "react";
2
+ type Args = {
3
+ ref: React.MutableRefObject<JSX.IntrinsicElements["cometchat-checkbox"]>;
4
+ onChangePropRef: React.MutableRefObject<((customEvent: CustomEvent<{
5
+ checked: boolean;
6
+ }>) => void) | undefined>;
7
+ };
8
+ export declare function Hooks(args: Args): void;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CheckboxStyle } from "@cometchat/uikit-elements";
2
+ interface ICheckboxProps {
3
+ name?: string;
4
+ labelText?: string;
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ checkboxStyle?: CheckboxStyle;
8
+ onChange?: (customEvent: CustomEvent<{
9
+ checked: boolean;
10
+ }>) => void;
11
+ }
12
+ export declare function CometChatCheckbox(props: ICheckboxProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ import { CometChatActionsIcon, CometChatActionsView, Placement } from "@cometchat/uikit-resources";
2
+ import { MenuListStyle } from '@cometchat/uikit-elements';
3
+ interface ContextMenuProps {
4
+ data: Array<CometChatActionsIcon | CometChatActionsView>;
5
+ topMenuSize: number;
6
+ moreIconURL: string;
7
+ moreIconHoverText: string;
8
+ ContextMenuStyle: MenuListStyle;
9
+ onOptionClicked: (option: CometChatActionsIcon | CometChatActionsView) => void;
10
+ placement: Placement;
11
+ parentClassName?: string;
12
+ }
13
+ export declare const CometChatContextMenu: (props: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,28 @@
1
+ import { CSSProperties } from 'react';
2
+ import { CometChatTheme } from "@cometchat/uikit-resources";
3
+ import { MenuListStyle } from "@cometchat/uikit-elements";
4
+ export declare const contextMenuStyle: () => CSSProperties;
5
+ export declare const topMenuStyle: () => CSSProperties;
6
+ export declare const subMenuStyle: (showSubMenu: boolean, theme: CometChatTheme, position?: 'bottom' | 'top') => CSSProperties;
7
+ export declare const menuItemStyle: () => {
8
+ background: string;
9
+ padding: string;
10
+ };
11
+ export declare const moreButtonStyle: (ContextMenuStyle: MenuListStyle) => {
12
+ background: string;
13
+ border: string;
14
+ borderRadius: string;
15
+ buttonIconTint: string;
16
+ };
17
+ export declare const menuButtonStyle: (isSubMenu: boolean, menuData: any) => {
18
+ background: any;
19
+ border: string;
20
+ borderRadius: string;
21
+ buttonIconTint: any;
22
+ buttonTextFont: any;
23
+ buttonTextColor: any;
24
+ };
25
+ export declare const popoverStyle: {
26
+ width: string;
27
+ height: string;
28
+ };
@@ -0,0 +1,20 @@
1
+ import React, { JSX } from "react";
2
+ import { DivElementRef } from ".";
3
+ type Args = {
4
+ onSearchRef: React.MutableRefObject<((searchStr: string) => void) | undefined>;
5
+ searchInputElement: JSX.IntrinsicElements["cometchat-search-input"] | null;
6
+ intersectionObserverRootRef: React.MutableRefObject<DivElementRef>;
7
+ intersectionObserverBottomTargetRef: React.MutableRefObject<DivElementRef>;
8
+ intersectionObserverTopTargetRef: React.MutableRefObject<DivElementRef>;
9
+ onScrolledToBottomRef: React.MutableRefObject<(() => void) | undefined>;
10
+ onScrolledToTopRef: React.MutableRefObject<(() => void) | undefined>;
11
+ timeoutIdRef: React.MutableRefObject<number | null>;
12
+ scrollToBottom: boolean;
13
+ didComponentScrollToBottomRef: React.MutableRefObject<boolean>;
14
+ scrollHeightTupleRef: React.MutableRefObject<[number, number]>;
15
+ didTopObserverCallbackRunRef: React.MutableRefObject<boolean>;
16
+ errorHandler: (error: unknown) => void;
17
+ scrolledUpCallback?: (boolean?: boolean) => void;
18
+ };
19
+ export declare function Hooks(args: Args): void;
20
+ export {};