@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,260 @@
1
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
+ import { CSSProperties, JSX } from "react";
3
+ import { CometChatOption, SelectionMode, States, TitleAlignment, UserPresencePlacement } from "@cometchat/uikit-resources";
4
+ import { UsersManager } from "./controller";
5
+ import { UsersStyle } from "@cometchat/uikit-shared";
6
+ export interface IUsersProps {
7
+ /**
8
+ * Title of the component
9
+ *
10
+ * @defaultValue `localize("USERS")`
11
+ */
12
+ title?: string;
13
+ /**
14
+ * Alignment of the `title` text
15
+ *
16
+ * @defaultValue `TitleAlignment.left`
17
+ */
18
+ tileAlignment?: TitleAlignment;
19
+ /**
20
+ * Hide the search bar
21
+ *
22
+ * @defaulValue `false`
23
+ */
24
+ hideSearch?: boolean;
25
+ /**
26
+ * Image URL for the search icon to use in the search bar
27
+ *
28
+ * @defaultValue `./assets/search.svg`
29
+ */
30
+ searchIconURL?: string;
31
+ /**
32
+ * Text to be displayed when the search input has no value
33
+ *
34
+ * @defaultValue `localize("SEARCH")`
35
+ */
36
+ searchPlaceholderText?: string;
37
+ /**
38
+ * Custom list item view to be rendered for each user in the fetched list
39
+ */
40
+ listItemView?: (user: CometChat.User) => JSX.Element;
41
+ /**
42
+ * Show alphabetical header
43
+ *
44
+ * @defaultValue `true`
45
+ */
46
+ showSectionHeader?: boolean;
47
+ /**
48
+ * Property on the user object
49
+ *
50
+ * @remarks
51
+ * This property will be used to extract the section header character from the user object
52
+ *
53
+ * @defaultValue `getName`
54
+ */
55
+ sectionHeaderKey?: keyof CometChat.User;
56
+ /**
57
+ * Custom view for the loading state of the component
58
+ */
59
+ loadingStateView?: JSX.Element;
60
+ /**
61
+ * Image URL for the default loading view
62
+ *
63
+ * @defaultValue `./assets/spinner.svg`
64
+ */
65
+ loadingIconURL?: string;
66
+ /**
67
+ * Hide error view
68
+ *
69
+ * @remarks
70
+ * If set to true, hides the default and the custom error view
71
+ *
72
+ * @defaultValue `false`
73
+ */
74
+ hideError?: boolean;
75
+ /**
76
+ * Custom view for the error state of the component
77
+ */
78
+ errorStateView?: JSX.Element;
79
+ /**
80
+ * Text to display in the default error view
81
+ *
82
+ * @defaultValue `localize("SOMETHING_WRONG")`
83
+ */
84
+ errorStateText?: string;
85
+ /**
86
+ * Custom view for the empty state of the component
87
+ */
88
+ emptyStateView?: JSX.Element;
89
+ /**
90
+ * Text to display in the default empty view
91
+ *
92
+ * @defaultValue `localize("NO_USERS_FOUND")`
93
+ */
94
+ emptyStateText?: string;
95
+ /**
96
+ * Custom subtitle view to be rendered for each user in the fetched list
97
+ *
98
+ * @remarks
99
+ * This prop is used if `listItemView` prop is not provided
100
+ */
101
+ subtitleView?: (user: CometChat.User) => JSX.Element;
102
+ /**
103
+ * Hide user presence
104
+ *
105
+ * @remarks
106
+ * If set to true, the status indicator of the default list item view is not displayed
107
+ *
108
+ * @defaultValue `false`
109
+ */
110
+ disableUsersPresence?: boolean;
111
+ /**
112
+ * Custom view to render on the top-right of the component
113
+ */
114
+ menus?: JSX.Element;
115
+ /**
116
+ * List of actions available on mouse over on the default list item component
117
+ */
118
+ options?: (user: CometChat.User) => CometChatOption[];
119
+ /**
120
+ * Hide the separator at the bottom of the default list item view
121
+ *
122
+ * @defaultValue `false`
123
+ */
124
+ hideSeparator?: boolean;
125
+ /**
126
+ * Selection mode to use for the default tail view
127
+ *
128
+ * @remarks
129
+ * This prop is used if `listItemView` prop is not provided.
130
+ *
131
+ * @defaultValue `SelectionMode.none`
132
+ */
133
+ selectionMode?: SelectionMode;
134
+ /**
135
+ * Function to call when a user from the fetched list is selected
136
+ *
137
+ * @remarks
138
+ * This prop is used if `selectionMode` prop is not `SelectionMode.none`
139
+ */
140
+ onSelect?: (users: CometChat.User, selected: boolean) => void;
141
+ /**
142
+ * Request builder to fetch users
143
+ *
144
+ * @remarks
145
+ * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
146
+ * the search keyword of this request builder is set to the text in the search input
147
+ *
148
+ * @defaultValue Default request builder having the limit set to 30
149
+ */
150
+ usersRequestBuilder?: CometChat.UsersRequestBuilder;
151
+ /**
152
+ * Request builder with search parameters to fetch users
153
+ *
154
+ * @remarks
155
+ * If the search input is not empty,
156
+ * the search keyword of this request builder is set to the text in the search input
157
+ */
158
+ searchRequestBuilder?: CometChat.UsersRequestBuilder;
159
+ /**
160
+ * Function to call on click of the default list item view of a user
161
+ */
162
+ onItemClick?: (user: CometChat.User) => void;
163
+ /**
164
+ * Function to call whenever the component encounters an error
165
+ */
166
+ onError?: ((error: CometChat.CometChatException) => void) | null;
167
+ /**
168
+ * Styles to apply to the status indicator component of the default list item view
169
+ */
170
+ statusIndicatorStyle?: CSSProperties;
171
+ /**
172
+ * Styles to apply to the avatar component of the default list item view
173
+ */
174
+ avatarStyle?: AvatarStyle;
175
+ /**
176
+ * Styles to apply to this component
177
+ */
178
+ usersStyle?: UsersStyle;
179
+ /**
180
+ * Styles to apply to the default list item view
181
+ */
182
+ listItemStyle?: ListItemStyle;
183
+ /**
184
+ * User to highlight
185
+ *
186
+ * @remarks
187
+ * This prop is used if `listItemView` prop is not provided
188
+ */
189
+ activeUser?: CometChat.User;
190
+ /**
191
+ * Search keyword to filter the list of users.
192
+ *
193
+ * @defaultValue `""`
194
+ */
195
+ searchKeyword?: string;
196
+ /**
197
+ * Callback function to be executed when the user list is empty.
198
+ */
199
+ onEmpty?: () => void;
200
+ /**
201
+ * Flag to indicate whether users are currently being fetched.
202
+ *
203
+ * @defaultValue `false`
204
+ */
205
+ fetchingUsers?: boolean;
206
+ /**
207
+ * Timeout reference for fetching users.
208
+ */
209
+ fetchTimeOut?: any;
210
+ /**
211
+ * Placement of user presence information within the user interface.
212
+ * @defaultValue `bottom`
213
+ */
214
+ userPresencePlacement?: UserPresencePlacement;
215
+ /**
216
+ * Flag to indicate whether to disable loading state while fetching users.
217
+ * @defaultValue `false`
218
+ */
219
+ disableLoadingState?: boolean;
220
+ /**
221
+ * URL of the icon to be used for the close button.
222
+ */
223
+ closeButtonIconURL?: string;
224
+ }
225
+ type State = {
226
+ searchText: string;
227
+ userList: CometChat.User[];
228
+ fetchState: States;
229
+ isFirstReload: boolean;
230
+ fetchingUsers: boolean;
231
+ fetchTimeOut: any;
232
+ disableLoadingState: boolean;
233
+ };
234
+ export type Action = {
235
+ type: "setSearchText";
236
+ searchText: State["searchText"];
237
+ } | {
238
+ type: "appendUsers";
239
+ users: CometChat.User[];
240
+ removeOldUsers?: boolean;
241
+ usersManager?: UsersManager | null;
242
+ onEmpty?: () => void;
243
+ } | {
244
+ type: "setFetchState";
245
+ fetchState: States;
246
+ } | {
247
+ type: "setUserList";
248
+ userList: CometChat.User[];
249
+ } | {
250
+ type: "updateUser";
251
+ user: CometChat.User;
252
+ } | {
253
+ type: "setIsFirstReload";
254
+ isFirstReload: boolean;
255
+ };
256
+ /**
257
+ * Renders a scrollable list of users that has been created in a CometChat app
258
+ */
259
+ export declare function CometChatUsers(props: IUsersProps): import("react/jsx-runtime").JSX.Element;
260
+ export {};
@@ -0,0 +1,11 @@
1
+ import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
2
+ import { CSSProperties } from "react";
3
+ import { ListStyle, UsersStyle } from "@cometchat/uikit-shared";
4
+ import { CometChatTheme } from "@cometchat/uikit-resources";
5
+ export declare function listStyle(usersStyleObject: UsersStyle | null, theme: CometChatTheme): ListStyle;
6
+ export declare function UsersWrapperStyle(usersStyleObject: UsersStyle | null, theme: CometChatTheme): CSSProperties;
7
+ export declare function menuStyles(): CSSProperties;
8
+ export declare function listItemStyle(listItemStyleObject: ListItemStyle | null, usersStyleObject: UsersStyle | null, theme: CometChatTheme): ListItemStyle;
9
+ export declare function avatarStyle(avatarStyleObject: AvatarStyle | null, theme: CometChatTheme): AvatarStyle;
10
+ export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | null): CSSProperties;
11
+ export declare function tailViewSelectionContainerStyle(): CSSProperties;
@@ -0,0 +1,2 @@
1
+ declare function Hooks(subscribeToEvents: Function, user: any, setActiveUser: any): void;
2
+ export { Hooks };
@@ -0,0 +1,12 @@
1
+ import { MessagesConfiguration, UsersConfiguration, WithMessagesStyle } from "@cometchat/uikit-shared";
2
+ interface IUsersWithMessagesProps {
3
+ user?: CometChat.User;
4
+ isMobileView?: boolean;
5
+ messageText?: string;
6
+ usersWithMessagesStyle?: WithMessagesStyle;
7
+ messagesConfiguration?: MessagesConfiguration;
8
+ usersConfiguration?: UsersConfiguration;
9
+ onError?: Function;
10
+ }
11
+ declare const CometChatUsersWithMessages: (props: IUsersWithMessagesProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CometChatUsersWithMessages };
@@ -0,0 +1,70 @@
1
+ import { CometChat } from "@cometchat/chat-sdk-javascript";
2
+ import { CometChatTheme } from '@cometchat/uikit-resources';
3
+ import { MessageHeaderStyle, MessagesConfiguration, MessagesStyle, UsersConfiguration, UsersStyle, WithMessagesStyle } from '@cometchat/uikit-shared';
4
+ import { LabelStyle } from '@cometchat/uikit-elements';
5
+ import { CSSProperties } from 'react';
6
+ export declare const getUsersWrapperStyles: (usersWithMessagesStyle: WithMessagesStyle | undefined, theme: CometChatTheme) => CSSProperties;
7
+ export declare const getWithMessagesSidebarStyle: (usersWithMessagesStyle: WithMessagesStyle | undefined, theme: CometChatTheme, isMobileView: boolean | undefined, activeUser: CometChat.User | undefined) => CSSProperties;
8
+ export declare const getWithMessagesMainStyle: (usersWithMessagesStyle: WithMessagesStyle | undefined, isMobileView: boolean | undefined, activeUser: CometChat.User | undefined) => CSSProperties;
9
+ export declare const getLabelStyle: (usersWithMessagesStyle: WithMessagesStyle | undefined, theme: CometChatTheme) => LabelStyle;
10
+ export declare const getUsersStyle: (usersConfiguration: UsersConfiguration | undefined) => UsersStyle;
11
+ export declare const getMessageHeaderStyle: (usersWithMessagesStyle: WithMessagesStyle | undefined, messagesConfiguration: MessagesConfiguration | undefined, isMobileView: boolean | undefined) => MessageHeaderStyle;
12
+ export declare const getMessageComposerStyle: (usersWithMessagesStyle: WithMessagesStyle | undefined, messagesConfiguration: MessagesConfiguration | undefined, isMobileView: boolean | undefined) => {
13
+ attachIcontint?: string | undefined;
14
+ liveReactionIconTint?: string | undefined;
15
+ sendIconTint?: string | undefined;
16
+ emojiIconTint?: string | undefined;
17
+ AIIconTint?: string | undefined;
18
+ voiceRecordingIconTint?: string | undefined;
19
+ inputBackground?: string | undefined;
20
+ inputBorder?: string | undefined;
21
+ inputBorderRadius?: string | undefined;
22
+ dividerTint?: string | undefined;
23
+ textFont?: string | undefined;
24
+ textColor?: string | undefined;
25
+ placeHolderTextColor?: string | undefined;
26
+ placeHolderTextFont?: string | undefined;
27
+ emojiKeyboardTextFont?: string | undefined;
28
+ emojiKeyboardTextColor?: string | undefined;
29
+ previewTitleFont?: string | undefined;
30
+ previewTitleColor?: string | undefined;
31
+ previewSubtitleColor?: string | undefined;
32
+ previewSubtitleFont?: string | undefined;
33
+ closePreviewTint?: string | undefined;
34
+ maxInputHeight?: string | undefined;
35
+ height?: string | undefined;
36
+ width?: string | undefined;
37
+ border?: string | undefined;
38
+ borderRadius: string;
39
+ background?: string | undefined;
40
+ };
41
+ export declare const getMessagesStyle: (messagesStyle?: MessagesStyle, withMessagesStyle?: WithMessagesStyle | undefined) => {
42
+ height?: string | undefined;
43
+ width?: string | undefined;
44
+ border?: string | undefined;
45
+ borderRadius?: string | undefined;
46
+ background: string | undefined;
47
+ };
48
+ export declare const getEmptyMessageLayoutStyle: (isMobileView: boolean | undefined, activeUser: CometChat.User | undefined) => CSSProperties;
49
+ export declare const getMessageInformationStyle: (messagesConfiguration: MessagesConfiguration | undefined, isMobileView: boolean | undefined) => {
50
+ width: string;
51
+ height: string;
52
+ titleTextFont?: string | undefined;
53
+ titleTextColor?: string | undefined;
54
+ emptyStateTextFont?: string | undefined;
55
+ emptyStateTextColor?: string | undefined;
56
+ errorStateTextFont?: string | undefined;
57
+ errorStateTextColor?: string | undefined;
58
+ sendIconTint?: string | undefined;
59
+ loadingIconTint?: string | undefined;
60
+ readIconTint?: string | undefined;
61
+ deliveredIconTint?: string | undefined;
62
+ subtitleTextFont?: string | undefined;
63
+ subtitleTextColor?: string | undefined;
64
+ dividerTint?: string | undefined;
65
+ captionTextFont?: string | undefined;
66
+ captionTextColor?: string | undefined;
67
+ border?: string | undefined;
68
+ borderRadius?: string | undefined;
69
+ background?: string | undefined;
70
+ };
@@ -0,0 +1,18 @@
1
+ import { DocumentBubbleStyle } from "@cometchat/uikit-elements";
2
+ import { OptionsStyle } from "@cometchat/uikit-shared";
3
+ export declare class CollaborativeDocumentConfiguration {
4
+ private style;
5
+ private iconURL;
6
+ private optionIconURL;
7
+ private optionStyle;
8
+ constructor(configuration: {
9
+ style?: DocumentBubbleStyle;
10
+ iconURL?: string;
11
+ optionIconURL?: string;
12
+ optionStyle?: OptionsStyle;
13
+ });
14
+ getDocumentBubbleStyle(): DocumentBubbleStyle;
15
+ getIconURL(): string;
16
+ getOptionIconURL(): string;
17
+ getOptionStyle(): OptionsStyle;
18
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
3
+ export declare class CollaborativeDocumentExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: CollaborativeDocumentConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { CometChatTheme, CometChatMessageTemplate, CometChatMessageComposerAction } from "@cometchat/uikit-resources";
2
+ import { DataSource } from "../../Shared/Framework/DataSource";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
5
+ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceDecorator {
6
+ configuration?: CollaborativeDocumentConfiguration;
7
+ newDataSource: DataSource;
8
+ theme: CometChatTheme;
9
+ constructor(dataSource: DataSource, configuration?: CollaborativeDocumentConfiguration);
10
+ getAllMessageTypes(): string[];
11
+ getId(): string;
12
+ getAllMessageCategories(): string[];
13
+ checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
14
+ getAllMessageTemplates(_theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
15
+ getDocumentTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
16
+ getDocumentContentView(documentMessage: CometChat.CustomMessage, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
17
+ launchCollaborativeDocument(documentURL: string): void;
18
+ getDocumentURL(message: CometChat.CustomMessage): any;
19
+ getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
20
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
21
+ }
@@ -0,0 +1,18 @@
1
+ import { DocumentBubbleStyle } from "@cometchat/uikit-elements";
2
+ import { OptionsStyle } from "@cometchat/uikit-shared";
3
+ export declare class CollaborativeWhiteboardConfiguration {
4
+ private style;
5
+ private iconURL;
6
+ private optionIconURL;
7
+ private optionStyle;
8
+ constructor(configuration: {
9
+ style?: DocumentBubbleStyle;
10
+ iconURL?: string;
11
+ optionIconURL?: string;
12
+ optionStyle?: OptionsStyle;
13
+ });
14
+ getWhiteboardBubbleStyle(): DocumentBubbleStyle;
15
+ getIconURL(): string;
16
+ getOptionIconURL(): string;
17
+ getOptionStyle(): OptionsStyle;
18
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { CollaborativeWhiteboardConfiguration } from "./CollaborativeWhiteboardConfiguration";
3
+ export declare class CollaborativeWhiteboardExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: CollaborativeWhiteboardConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { CometChatTheme, CometChatMessageTemplate, CometChatMessageComposerAction } from "@cometchat/uikit-resources";
2
+ import { DataSource } from "../../Shared/Framework/DataSource";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ import { CollaborativeWhiteboardConfiguration } from "./CollaborativeWhiteboardConfiguration";
5
+ export declare class CollaborativeWhiteBoardExtensionDecorator extends DataSourceDecorator {
6
+ configuration?: CollaborativeWhiteboardConfiguration;
7
+ newDataSource: DataSource;
8
+ theme: CometChatTheme;
9
+ constructor(dataSource: DataSource, configuration?: CollaborativeWhiteboardConfiguration);
10
+ getAllMessageTypes(): string[];
11
+ getId(): string;
12
+ getAllMessageCategories(): string[];
13
+ checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
14
+ getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
15
+ getWhiteBoardTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
16
+ getWhiteboardContentView(whiteboardMessage: CometChat.CustomMessage, _theme: CometChatTheme): import("react/jsx-runtime").JSX.Element;
17
+ launchCollaborativeWhiteboardDocument(whiteboardURL: string): void;
18
+ getWhiteboardDocument(message: CometChat.CustomMessage): any;
19
+ getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
20
+ getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
21
+ }
@@ -0,0 +1,15 @@
1
+ import { ConfirmDialogStyle } from "@cometchat/uikit-elements";
2
+ import { BaseStyle, ImageModerationStyle } from "@cometchat/uikit-shared";
3
+ export declare class ImageModerationConfiguration {
4
+ private style;
5
+ private confirmDialogStyle;
6
+ private backDropStyle;
7
+ constructor(configuration: {
8
+ style?: ImageModerationStyle;
9
+ confirmDialogStyle?: ConfirmDialogStyle;
10
+ backDropStyle?: BaseStyle;
11
+ });
12
+ getImageModerationStyle(): ImageModerationStyle;
13
+ getConfirmDialogSyle(): ConfirmDialogStyle;
14
+ getBackDropStyle(): BaseStyle;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { ImageModerationConfiguration } from "./ImageModerationConfiguration";
3
+ export declare class ImageModerationExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: ImageModerationConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,26 @@
1
+ import { CometChatTheme, MessageBubbleAlignment } from "@cometchat/uikit-resources";
2
+ import { DataSource } from "../../Shared/Framework/DataSource";
3
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
4
+ import { ImageModerationConfiguration } from "./ImageModerationConfiguration";
5
+ export declare class ImageModerationExtensionDecorator extends DataSourceDecorator {
6
+ configuration?: ImageModerationConfiguration;
7
+ newDataSource: DataSource;
8
+ private theme;
9
+ loggedInUser: CometChat.User;
10
+ constructor(dataSource: DataSource, configuration?: ImageModerationConfiguration);
11
+ getId(): string;
12
+ getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
13
+ showDialog(_event: any): void;
14
+ getConfirmationModal(_event: any): import("react/jsx-runtime").JSX.Element;
15
+ onConfirmClicked(_event: any): void;
16
+ onCancelClicked(): void;
17
+ getImageModerationStyle(_theme: CometChatTheme): {
18
+ filterColor: string | undefined;
19
+ height: string;
20
+ width: string;
21
+ border: string;
22
+ borderRadius: string;
23
+ warningTextColor: string | undefined;
24
+ warningTextFont: string;
25
+ };
26
+ }
@@ -0,0 +1,8 @@
1
+ import { LinkPreviewStyle } from "@cometchat/uikit-shared";
2
+ export declare class LinkPreviewConfiguration {
3
+ private style;
4
+ constructor(configuration: {
5
+ style?: LinkPreviewStyle;
6
+ });
7
+ getLinkPreviewStyle(): LinkPreviewStyle;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { LinkPreviewConfiguration } from "./LinkPreviewConfiguration";
3
+ export declare class LinkPreviewExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: LinkPreviewConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,24 @@
1
+ import { CometChatTheme, MessageBubbleAlignment } from "@cometchat/uikit-resources";
2
+ import { LinkPreviewStyle } from "@cometchat/uikit-shared";
3
+ import { DataSource } from "../../Shared/Framework/DataSource";
4
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
5
+ import { LinkPreviewConfiguration } from "./LinkPreviewConfiguration";
6
+ export declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
7
+ configuration?: LinkPreviewConfiguration;
8
+ newDataSource: DataSource;
9
+ constructor(dataSource: DataSource, configuration?: LinkPreviewConfiguration);
10
+ getId(): string;
11
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
12
+ getLinkPreviewWrapperStyle(): {
13
+ height: string;
14
+ width: string;
15
+ };
16
+ openLink(event: any): void;
17
+ getLinkPreviewStyle(_theme: CometChatTheme): LinkPreviewStyle;
18
+ getTextMessageStyle(_alignment: MessageBubbleAlignment, _theme: CometChatTheme): {
19
+ textFont: string;
20
+ textColor: string;
21
+ };
22
+ getLinkPreview(message: CometChat.TextMessage): any;
23
+ getLinkPreviewDetails(linkPreviewObject: any, key: string): string;
24
+ }
@@ -0,0 +1,14 @@
1
+ import { MessageTranslationStyle, OptionsStyle } from "@cometchat/uikit-shared";
2
+ export declare class MessageTranslationConfiguration {
3
+ private style;
4
+ private optionIconURL;
5
+ private optionStyle;
6
+ constructor(configuration: {
7
+ style?: MessageTranslationStyle;
8
+ optionIconURL?: string;
9
+ optionStyle?: OptionsStyle;
10
+ });
11
+ getMessageTranslationStyle(): MessageTranslationStyle;
12
+ getOptionIconURL(): string;
13
+ getOptionStyle(): OptionsStyle;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { MessageTranslationConfiguration } from "./MessageTranslationConfiguration";
3
+ export declare class MessageTranslationExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: MessageTranslationConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { CometChatTheme, CometChatActionsIcon, CometChatActionsView, MessageBubbleAlignment } from "@cometchat/uikit-resources";
2
+ import { MessageTranslationStyle } from "@cometchat/uikit-shared";
3
+ import { DataSource } from "../../Shared/Framework/DataSource";
4
+ import { DataSourceDecorator } from "../../Shared/Framework/DataSourceDecorator";
5
+ import { MessageTranslationConfiguration } from "./MessageTranslationConfiguration";
6
+ export declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
7
+ configuration?: MessageTranslationConfiguration;
8
+ newDataSource: DataSource;
9
+ constructor(dataSource: DataSource, configuration?: MessageTranslationConfiguration);
10
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): (CometChatActionsIcon | CometChatActionsView)[];
11
+ getTranslationStyle: (_alignment: MessageBubbleAlignment, _theme: CometChatTheme) => MessageTranslationStyle;
12
+ getTextMessageStyle(_alignment: MessageBubbleAlignment, _theme: CometChatTheme): {
13
+ textFont: string;
14
+ textColor: string;
15
+ };
16
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
17
+ checkIfOptionExist(template: (CometChatActionsIcon | CometChatActionsView)[], id: string): boolean;
18
+ getId(): string;
19
+ }
@@ -0,0 +1,29 @@
1
+ import { CreatePollStyle, OptionsStyle, PollsBubbleStyle } from "@cometchat/uikit-shared";
2
+ export declare class PollsConfiguration {
3
+ private style;
4
+ private createPollStyle;
5
+ private createPollIconURL;
6
+ private deleteIconURL;
7
+ private closeIconURL;
8
+ private optionIconURL;
9
+ private addAnswerIconURL;
10
+ private optionStyle;
11
+ constructor(configuration: {
12
+ style?: PollsBubbleStyle;
13
+ createPollStyle?: CreatePollStyle;
14
+ createPollIconURL?: string;
15
+ deleteIconURL?: string;
16
+ closeIconURL?: string;
17
+ optionIconURL?: string;
18
+ addAnswerIconURL?: string;
19
+ optionStyle?: OptionsStyle;
20
+ });
21
+ getPollsBubbleStyle(): PollsBubbleStyle;
22
+ getCreatePollStyle(): CreatePollStyle;
23
+ getCreatePollIconURL(): string;
24
+ getDeleteIconURL(): string;
25
+ getCloseIconURL(): string;
26
+ getOptionIconURL(): string;
27
+ getAddAnswerIconURL(): string;
28
+ getOptionStyle(): OptionsStyle;
29
+ }
@@ -0,0 +1,8 @@
1
+ import { ExtensionsDataSource } from "../../Shared/Framework/ExtensionsDataSource";
2
+ import { PollsConfiguration } from "./PollsConfiguration";
3
+ export declare class PollsExtension extends ExtensionsDataSource {
4
+ private configuration?;
5
+ constructor(configuration?: PollsConfiguration);
6
+ addExtension(): void;
7
+ getExtensionId(): string;
8
+ }