@cometchat/chat-uikit-react 5.0.0-beta1 → 5.0.0

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 (357) hide show
  1. package/README.md +6 -5
  2. package/dist/assets/Send.svg +3 -0
  3. package/dist/assets/loading.svg +5 -16
  4. package/dist/index.d.ts +1159 -953
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/styles/CometChatCallButtons.css +1 -1
  8. package/dist/styles/CometChatCallLogs.css +3 -3
  9. package/dist/styles/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
  10. package/dist/styles/{components/AIConversationSummary.css → CometChatConversationSummary.css} +12 -12
  11. package/dist/styles/CometChatConversations.css +10 -10
  12. package/dist/styles/CometChatEditPreview.css +1 -0
  13. package/dist/styles/CometChatFileBubble.css +2 -0
  14. package/dist/styles/CometChatGroupMembers.css +5 -5
  15. package/dist/styles/CometChatIncomingCall.css +1 -1
  16. package/dist/styles/CometChatList.css +15 -22
  17. package/dist/styles/CometChatListItem.css +2 -2
  18. package/dist/styles/CometChatMessageComposer.css +48 -40
  19. package/dist/styles/CometChatMessageHeader.css +32 -4
  20. package/dist/styles/CometChatMessageInformation.css +3 -2
  21. package/dist/styles/CometChatMessageList.css +6 -5
  22. package/dist/styles/CometChatOutgoingCall.css +5 -0
  23. package/dist/styles/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
  24. package/dist/styles/PollsBubble.css +7 -1
  25. package/dist/styles/components/CometChatCallButtons.css +1 -1
  26. package/dist/styles/components/CometChatCallLogs.css +3 -3
  27. package/dist/styles/components/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
  28. package/dist/styles/{AIConversationSummary.css → components/CometChatConversationSummary.css} +12 -12
  29. package/dist/styles/components/CometChatConversations.css +10 -10
  30. package/dist/styles/components/CometChatEditPreview.css +1 -0
  31. package/dist/styles/components/CometChatFileBubble.css +2 -0
  32. package/dist/styles/components/CometChatGroupMembers.css +5 -5
  33. package/dist/styles/components/CometChatIncomingCall.css +1 -1
  34. package/dist/styles/components/CometChatList.css +15 -22
  35. package/dist/styles/components/CometChatListItem.css +2 -2
  36. package/dist/styles/components/CometChatMessageComposer.css +48 -40
  37. package/dist/styles/components/CometChatMessageHeader.css +32 -4
  38. package/dist/styles/components/CometChatMessageInformation.css +3 -2
  39. package/dist/styles/components/CometChatMessageList.css +6 -5
  40. package/dist/styles/components/CometChatOutgoingCall.css +5 -0
  41. package/dist/styles/components/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
  42. package/dist/styles/components/PollsBubble.css +7 -1
  43. package/dist/styles/components/index.css +4 -3
  44. package/dist/styles/index.css +4 -3
  45. package/dist/types/CometChatCustomHooks.d.ts +1 -1
  46. package/dist/types/CometChatUIKit/CometChatUIKit.d.ts +0 -6
  47. package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -22
  48. package/dist/types/Enums/Enums.d.ts +9 -0
  49. package/dist/types/components/BaseComponents/CometChatConversationStarter/CometChatConversationStarter.d.ts +6 -0
  50. package/dist/types/components/BaseComponents/CometChatConversationSummary/CometChatConversationSummary.d.ts +6 -0
  51. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -12
  52. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +3 -1
  53. package/dist/types/components/BaseComponents/CometChatSmartReplies/CometChatSmartReplies.d.ts +7 -0
  54. package/dist/types/components/Calling/CallButtonConfiguration.d.ts +1 -1
  55. package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +2 -2
  56. package/dist/types/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +30 -12
  57. package/dist/types/components/Calling/CometChatCallButtons/useCallButtons.d.ts +1 -1
  58. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +50 -38
  59. package/dist/types/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +1 -1
  60. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +48 -26
  61. package/dist/types/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +1 -1
  62. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +31 -15
  63. package/dist/types/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +1 -1
  64. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +7 -3
  65. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +88 -87
  66. package/dist/types/components/CometChatConversations/controller.d.ts +10 -8
  67. package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +2 -5
  68. package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +94 -76
  69. package/dist/types/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +2 -2
  70. package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +74 -62
  71. package/dist/types/components/CometChatGroups/useCometChatGroups.d.ts +1 -0
  72. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +107 -49
  73. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -1
  74. package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +77 -16
  75. package/dist/types/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +1 -1
  76. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  77. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +133 -55
  78. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -1
  79. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  80. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +34 -2
  81. package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +88 -89
  82. package/dist/types/components/CometChatUsers/useCometChatUsers.d.ts +2 -1
  83. package/dist/types/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +4 -3
  84. package/dist/types/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +4 -3
  85. package/dist/types/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +3 -1
  86. package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +5 -0
  87. package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +4 -3
  88. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -3
  89. package/dist/types/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +3 -2
  90. package/dist/types/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +3 -2
  91. package/dist/types/components/Reactions/CometChatReactions/CometChatReactions.d.ts +3 -2
  92. package/dist/types/events/CometChatUIEvents.d.ts +2 -0
  93. package/dist/types/index.d.ts +8 -7
  94. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +129 -115
  95. package/dist/types/utils/DataSource.d.ts +17 -18
  96. package/dist/types/utils/DataSourceDecorator.d.ts +17 -18
  97. package/dist/types/utils/GroupMemberUtils.d.ts +1 -1
  98. package/dist/types/utils/MessageUtils.d.ts +1 -1
  99. package/dist/types/utils/MessagesDataSource.d.ts +29 -16
  100. package/dist/types/utils/util.d.ts +5 -0
  101. package/package.json +1 -1
  102. package/screenshots/sample_app_overview.png +0 -0
  103. package/dist/Collaborative_Whiteboard_Dark.png +0 -0
  104. package/dist/Collaborative_Whiteboard_Light.png +0 -0
  105. package/dist/assets/ai-empty.svg +0 -22
  106. package/dist/assets/ai-error.svg +0 -3
  107. package/dist/assets/heart-reaction.png +0 -0
  108. package/dist/assets/send.svg +0 -12
  109. package/dist/styles/AICard.css +0 -30
  110. package/dist/styles/CometChatBadge.css +0 -15
  111. package/dist/styles/CometChatCard.css +0 -41
  112. package/dist/styles/components/AICard.css +0 -30
  113. package/dist/styles/components/CometChatBadge.css +0 -15
  114. package/dist/styles/components/CometChatCard.css +0 -41
  115. package/dist/types/CometChatUIKit/CometChatUIKitSharedSettings.d.ts +0 -8
  116. package/dist/types/components/AI/AIBaseConfiguration.d.ts +0 -51
  117. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
  118. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
  119. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  120. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
  121. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
  122. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  123. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  124. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
  125. package/dist/types/components/AI/AIExtensionDataSource.d.ts +0 -6
  126. package/dist/types/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
  127. package/dist/types/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
  128. package/dist/types/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  129. package/dist/types/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
  130. package/dist/types/components/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
  131. package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
  132. package/dist/types/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
  133. package/dist/types/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
  134. package/dist/types/components/BaseComponents/CometChatQuickView/CometChatQuickView.d.ts +0 -9
  135. package/dist/types/components/BaseComponents/CometChatSingleSelect/CometChatSingleSelect.d.ts +0 -8
  136. package/dist/types/components/CometChatUserMemberWrapper/index.d.ts +0 -23
  137. package/dist/types/modals/InteractiveActions/APIAction.d.ts +0 -108
  138. package/dist/types/modals/InteractiveActions/CustomAction.d.ts +0 -12
  139. package/dist/types/modals/InteractiveActions/URLNavigationAction.d.ts +0 -30
  140. package/dist/types/modals/InteractiveActions/index.d.ts +0 -3
  141. package/dist/types/modals/InteractiveElements/BaseInputElement.d.ts +0 -50
  142. package/dist/types/modals/InteractiveElements/BaseInteractiveElement.d.ts +0 -25
  143. package/dist/types/modals/InteractiveElements/ButtonElement.d.ts +0 -48
  144. package/dist/types/modals/InteractiveElements/CheckboxElement.d.ts +0 -46
  145. package/dist/types/modals/InteractiveElements/DateTimePickerElement.d.ts +0 -124
  146. package/dist/types/modals/InteractiveElements/DropdownElement.d.ts +0 -55
  147. package/dist/types/modals/InteractiveElements/LabelElement.d.ts +0 -29
  148. package/dist/types/modals/InteractiveElements/OptionElement.d.ts +0 -35
  149. package/dist/types/modals/InteractiveElements/RadioButtonElement.d.ts +0 -54
  150. package/dist/types/modals/InteractiveElements/SingleSelectElement.d.ts +0 -50
  151. package/dist/types/modals/InteractiveElements/TextInputElement.d.ts +0 -69
  152. package/dist/types/modals/InteractiveElements/index.d.ts +0 -11
  153. package/dist/types/modals/InteractiveEntities/ActionEntity.d.ts +0 -32
  154. package/dist/types/modals/InteractiveEntities/ElementEntity.d.ts +0 -35
  155. package/dist/types/modals/InteractiveEntities/index.d.ts +0 -2
  156. package/dist/types/modals/InteractiveMessage/CardMessage.d.ts +0 -69
  157. package/dist/types/modals/InteractiveMessage/CustomInteractiveMessage.d.ts +0 -20
  158. package/dist/types/modals/InteractiveMessage/FormMessage.d.ts +0 -75
  159. package/dist/types/modals/InteractiveMessage/SchedulerMessage.d.ts +0 -230
  160. package/dist/types/modals/InteractiveMessage/index.d.ts +0 -5
  161. package/dist/types/src/CometChatCustomHooks.d.ts +0 -27
  162. package/dist/types/src/CometChatUIKit/CometChatCalls.d.ts +0 -1
  163. package/dist/types/src/CometChatUIKit/CometChatUIKit.d.ts +0 -147
  164. package/dist/types/src/CometChatUIKit/CometChatUIKitLoginListener.d.ts +0 -32
  165. package/dist/types/src/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -81
  166. package/dist/types/src/CometChatUIKit/UIKitSettings.d.ts +0 -304
  167. package/dist/types/src/Enums/Enums.d.ts +0 -258
  168. package/dist/types/src/components/AI/AIBaseConfiguration.d.ts +0 -51
  169. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
  170. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
  171. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  172. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
  173. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
  174. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  175. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  176. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
  177. package/dist/types/src/components/AI/AIExtensionDataSource.d.ts +0 -6
  178. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
  179. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
  180. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  181. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
  182. package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts +0 -8
  183. package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts +0 -7
  184. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -6
  185. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/base-plugin.d.ts +0 -21
  186. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/decoder.d.ts +0 -9
  187. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/dom.d.ts +0 -13
  188. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/draggable.d.ts +0 -1
  189. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts +0 -21
  190. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/fetcher.d.ts +0 -5
  191. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/player.d.ts +0 -50
  192. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts +0 -79
  193. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts +0 -36
  194. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts +0 -65
  195. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts +0 -89
  196. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/regions.d.ts +0 -139
  197. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/spectrogram.d.ts +0 -98
  198. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/timeline.d.ts +0 -54
  199. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/zoom.d.ts +0 -55
  200. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +0 -63
  201. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/timer.d.ts +0 -11
  202. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +0 -223
  203. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +0 -63
  204. package/dist/types/src/components/BaseComponents/CometChatAvatar/CometChatAvatar.d.ts +0 -13
  205. package/dist/types/src/components/BaseComponents/CometChatButton/CometChatButton.d.ts +0 -12
  206. package/dist/types/src/components/BaseComponents/CometChatCallBubble/CometChatCallBubble.d.ts +0 -12
  207. package/dist/types/src/components/BaseComponents/CometChatChangeScope/CometChatChangeScope.d.ts +0 -10
  208. package/dist/types/src/components/BaseComponents/CometChatChangeScope/useCometChatChangeScope.d.ts +0 -10
  209. package/dist/types/src/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +0 -11
  210. package/dist/types/src/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +0 -11
  211. package/dist/types/src/components/BaseComponents/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -16
  212. package/dist/types/src/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +0 -17
  213. package/dist/types/src/components/BaseComponents/CometChatDate/CometChatDate.d.ts +0 -13
  214. package/dist/types/src/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
  215. package/dist/types/src/components/BaseComponents/CometChatDeleteBubble/CometChatDeleteBubble.d.ts +0 -14
  216. package/dist/types/src/components/BaseComponents/CometChatDocumentBubble/CometChatDocumentBubble.d.ts +0 -11
  217. package/dist/types/src/components/BaseComponents/CometChatDropDown/CometChatDropDown.d.ts +0 -14
  218. package/dist/types/src/components/BaseComponents/CometChatDropDown/useCometChatDropDown.d.ts +0 -12
  219. package/dist/types/src/components/BaseComponents/CometChatEditPreview/CometChatEditPreview.d.ts +0 -21
  220. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmoji.d.ts +0 -22
  221. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -7
  222. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
  223. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -17
  224. package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts +0 -9
  225. package/dist/types/src/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +0 -23
  226. package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +0 -10
  227. package/dist/types/src/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -7
  228. package/dist/types/src/components/BaseComponents/CometChatList/CometChatList.d.ts +0 -156
  229. package/dist/types/src/components/BaseComponents/CometChatList/useCometChatList.d.ts +0 -17
  230. package/dist/types/src/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +0 -15
  231. package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +0 -12
  232. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
  233. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
  234. package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -8
  235. package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -28
  236. package/dist/types/src/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +0 -24
  237. package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts +0 -14
  238. package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts +0 -13
  239. package/dist/types/src/components/BaseComponents/CometChatSearchBar/CometChatSearchBar.d.ts +0 -9
  240. package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts +0 -10
  241. package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts +0 -8
  242. package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +0 -6
  243. package/dist/types/src/components/BaseComponents/CometChatToast/CometChatToast.d.ts +0 -27
  244. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -9
  245. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/useCometChatVideoBubble.d.ts +0 -6
  246. package/dist/types/src/components/Calling/CallButtonConfiguration.d.ts +0 -10
  247. package/dist/types/src/components/Calling/CallingConfiguration.d.ts +0 -7
  248. package/dist/types/src/components/Calling/CallingExtension.d.ts +0 -9
  249. package/dist/types/src/components/Calling/CallingExtensionDecorator.d.ts +0 -29
  250. package/dist/types/src/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +0 -36
  251. package/dist/types/src/components/Calling/CometChatCallButtons/useCallButtons.d.ts +0 -6
  252. package/dist/types/src/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -71
  253. package/dist/types/src/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +0 -2
  254. package/dist/types/src/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -59
  255. package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +0 -2
  256. package/dist/types/src/components/Calling/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -10
  257. package/dist/types/src/components/Calling/CometChatOngoingCall/useCometChatOngoingCall.d.ts +0 -2
  258. package/dist/types/src/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -36
  259. package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +0 -7
  260. package/dist/types/src/components/Calling/OutgoingCallConfiguration.d.ts +0 -8
  261. package/dist/types/src/components/Calling/Utils/utils.d.ts +0 -7
  262. package/dist/types/src/components/CometChatConversations/CometChatConversations.d.ts +0 -219
  263. package/dist/types/src/components/CometChatConversations/controller.d.ts +0 -74
  264. package/dist/types/src/components/CometChatConversations/useCometChatConversations.d.ts +0 -25
  265. package/dist/types/src/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -178
  266. package/dist/types/src/components/CometChatGroupMembers/controller.d.ts +0 -38
  267. package/dist/types/src/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +0 -22
  268. package/dist/types/src/components/CometChatGroups/CometChatGroups.d.ts +0 -150
  269. package/dist/types/src/components/CometChatGroups/controller.d.ts +0 -44
  270. package/dist/types/src/components/CometChatGroups/useCometChatGroups.d.ts +0 -15
  271. package/dist/types/src/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -166
  272. package/dist/types/src/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +0 -42
  273. package/dist/types/src/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -29
  274. package/dist/types/src/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +0 -3
  275. package/dist/types/src/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -6
  276. package/dist/types/src/components/CometChatMessageList/CometChatMessageList.d.ts +0 -132
  277. package/dist/types/src/components/CometChatMessageList/CometChatMessageListController.d.ts +0 -48
  278. package/dist/types/src/components/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
  279. package/dist/types/src/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -11
  280. package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -21
  281. package/dist/types/src/components/CometChatUsers/CometChatUsers.d.ts +0 -193
  282. package/dist/types/src/components/CometChatUsers/controller.d.ts +0 -28
  283. package/dist/types/src/components/CometChatUsers/useCometChatUsers.d.ts +0 -19
  284. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -35
  285. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConstants.d.ts +0 -15
  286. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -37
  287. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -116
  288. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -35
  289. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConstants.d.ts +0 -13
  290. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -29
  291. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -94
  292. package/dist/types/src/components/Extensions/ExtensionsDataSource.d.ts +0 -29
  293. package/dist/types/src/components/Extensions/ExtensionsId.d.ts +0 -22
  294. package/dist/types/src/components/Extensions/LinkPreview/LinkPreview.d.ts +0 -37
  295. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewConstants.d.ts +0 -11
  296. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -24
  297. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -60
  298. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -35
  299. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts +0 -12
  300. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -30
  301. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -53
  302. package/dist/types/src/components/Extensions/Polls/CreatePolls.d.ts +0 -66
  303. package/dist/types/src/components/Extensions/Polls/PollsBubble.d.ts +0 -35
  304. package/dist/types/src/components/Extensions/Polls/PollsConfiguration.d.ts +0 -19
  305. package/dist/types/src/components/Extensions/Polls/PollsConstants.d.ts +0 -8
  306. package/dist/types/src/components/Extensions/Polls/PollsExtension.d.ts +0 -8
  307. package/dist/types/src/components/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -112
  308. package/dist/types/src/components/Extensions/Stickers/StickersConstants.d.ts +0 -16
  309. package/dist/types/src/components/Extensions/Stickers/StickersExtension.d.ts +0 -31
  310. package/dist/types/src/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -112
  311. package/dist/types/src/components/Extensions/Stickers/StickersKeyboard.d.ts +0 -29
  312. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationConstants.d.ts +0 -13
  313. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -21
  314. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -40
  315. package/dist/types/src/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +0 -9
  316. package/dist/types/src/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +0 -8
  317. package/dist/types/src/components/Reactions/CometChatReactions/CometChatReactions.d.ts +0 -12
  318. package/dist/types/src/constants/CometChatUIKitConstants.d.ts +0 -139
  319. package/dist/types/src/constants/CometChatUtilityConstants.d.ts +0 -9
  320. package/dist/types/src/constants/index.d.ts +0 -1
  321. package/dist/types/src/events/CometChatCallEvents.d.ts +0 -10
  322. package/dist/types/src/events/CometChatConversationEvents.d.ts +0 -13
  323. package/dist/types/src/events/CometChatGroupEvents.d.ts +0 -63
  324. package/dist/types/src/events/CometChatMessageEvents.d.ts +0 -43
  325. package/dist/types/src/events/CometChatUIEvents.d.ts +0 -59
  326. package/dist/types/src/events/CometChatUserEvents.d.ts +0 -16
  327. package/dist/types/src/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -210
  328. package/dist/types/src/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +0 -268
  329. package/dist/types/src/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +0 -12
  330. package/dist/types/src/formatters/index.d.ts +0 -3
  331. package/dist/types/src/index.d.ts +0 -108
  332. package/dist/types/src/modals/CometChatActions.d.ts +0 -36
  333. package/dist/types/src/modals/CometChatActionsIcon.d.ts +0 -38
  334. package/dist/types/src/modals/CometChatActionsView.d.ts +0 -39
  335. package/dist/types/src/modals/CometChatMessageComposerAction.d.ts +0 -33
  336. package/dist/types/src/modals/CometChatMessageOption.d.ts +0 -37
  337. package/dist/types/src/modals/CometChatMessageTemplate.d.ts +0 -70
  338. package/dist/types/src/modals/CometChatOption.d.ts +0 -20
  339. package/dist/types/src/modals/index.d.ts +0 -7
  340. package/dist/types/src/resources/CometChatLocalize/cometchat-localize.d.ts +0 -5603
  341. package/dist/types/src/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -128
  342. package/dist/types/src/resources/index.d.ts +0 -1
  343. package/dist/types/src/utils/CallingDetailsUtils.d.ts +0 -42
  344. package/dist/types/src/utils/ChatConfigurator.d.ts +0 -12
  345. package/dist/types/src/utils/ChatSdkEventInitializer.d.ts +0 -6
  346. package/dist/types/src/utils/ConversationUtils.d.ts +0 -69
  347. package/dist/types/src/utils/DataSource.d.ts +0 -55
  348. package/dist/types/src/utils/DataSourceDecorator.d.ts +0 -57
  349. package/dist/types/src/utils/GroupMemberUtils.d.ts +0 -32
  350. package/dist/types/src/utils/MessageReceiptUtils.d.ts +0 -44
  351. package/dist/types/src/utils/MessageUtils.d.ts +0 -55
  352. package/dist/types/src/utils/MessagesDataSource.d.ts +0 -110
  353. package/dist/types/src/utils/Storage.d.ts +0 -33
  354. package/dist/types/src/utils/util.d.ts +0 -26
  355. package/dist/types/utils/IcsToJson.d.ts +0 -19
  356. package/dist/types/utils/InteractiveMessageUtils.d.ts +0 -71
  357. /package/dist/assets/{ai.svg → conversation_summary.svg} +0 -0
@@ -1,31 +0,0 @@
1
- import { AIBaseConfiguration } from "../AIBaseConfiguration";
2
- /**
3
- * AIConversationSummaryConfiguration provides customization options for the AI conversation summary view.
4
- * Extends the base configuration with additional properties specific to conversation summaries.
5
- */
6
- export declare class AIConversationSummaryConfiguration extends AIBaseConfiguration {
7
- /**
8
- * Custom callback to display a custom UI for conversation summaries.
9
- * @param {string} response - The conversation summary response.
10
- * @param {() => void} [closeCallBack] - Optional callback to close the custom view.
11
- * @returns {Promise<any>} A promise resolving to a custom view component.
12
- */
13
- customView?: (response: string, closeCallBack?: () => void) => Promise<any>;
14
- /**
15
- * The threshold for the number of unread messages required to generate a conversation summary.
16
- * @type {number}
17
- * @default 30
18
- */
19
- unreadMessageThreshold?: number;
20
- /**
21
- * URL for the custom close button icon.
22
- * @type {string}
23
- * @default closeIcon
24
- */
25
- closeIconURL?: string;
26
- /**
27
- * Constructs a new AIConversationSummaryConfiguration instance.
28
- * @param {Partial<AIConversationSummaryConfiguration>} props - Partial properties to customize the conversation summary configuration.
29
- */
30
- constructor(props: Partial<AIConversationSummaryConfiguration>);
31
- }
@@ -1,22 +0,0 @@
1
- import { DataSource } from "../../../utils/DataSource";
2
- import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
- import { AIConversationSummaryConfiguration } from "./AIConversationSummaryConfiguration";
4
- import { CometChatActionsView } from "../../../modals/CometChatActionsView";
5
- import { CometChatMessageComposerAction } from "../../../modals";
6
- export declare class AIConversationSummaryDecorator extends DataSourceDecorator {
7
- configuration?: AIConversationSummaryConfiguration;
8
- newDataSource: DataSource;
9
- currentMessage: CometChat.BaseMessage | null;
10
- unreadMessageCount: number;
11
- loggedInUser: CometChat.User | null;
12
- user: CometChat.User;
13
- group: CometChat.Group;
14
- private LISTENER_ID;
15
- constructor(dataSource: DataSource, configuration?: AIConversationSummaryConfiguration);
16
- getId(): string;
17
- closePanel: () => void;
18
- getConversationSummary: () => Promise<string>;
19
- private loadConversationSummary;
20
- getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: any): (CometChatMessageComposerAction | CometChatActionsView)[];
21
- private addMessageListener;
22
- }
@@ -1,8 +0,0 @@
1
- import { AIExtensionDataSource } from "../AIExtensionDataSource";
2
- import { AIConversationSummaryConfiguration } from "./AIConversationSummaryConfiguration";
3
- export declare class AIConversationSummaryExtension extends AIExtensionDataSource {
4
- private configuration?;
5
- constructor(configuration?: AIConversationSummaryConfiguration);
6
- addExtension(): void;
7
- getExtensionId(): string;
8
- }
@@ -1,9 +0,0 @@
1
- import { AIConversationSummaryConfiguration } from './AIConversationSummaryConfiguration';
2
- interface IAIConversationSummaryProps {
3
- getConversationSummaryCallback?: () => Promise<string>;
4
- editReplyCallback?: (reply: string) => void;
5
- closeCallback?: () => void;
6
- configuration?: AIConversationSummaryConfiguration;
7
- }
8
- declare const AIConversationSummaryView: (props: IAIConversationSummaryProps) => import("react/jsx-runtime").JSX.Element;
9
- export { AIConversationSummaryView };
@@ -1,6 +0,0 @@
1
- declare abstract class AIExtensionDataSource {
2
- abstract addExtension(): void;
3
- abstract getExtensionId(): string;
4
- enable(): void;
5
- }
6
- export { AIExtensionDataSource };
@@ -1,28 +0,0 @@
1
- import { AIBaseConfiguration } from "../AIBaseConfiguration";
2
- /**
3
- * Represents the configuration for the AISmartReplies component.
4
- *
5
- * This class allows customization of various aspects of the AISmartReplies component,
6
- * including styles, icons, custom views, and API configurations.
7
- */
8
- export declare class AISmartRepliesConfiguration extends AIBaseConfiguration {
9
- /**
10
- * The customView callback allows you to display a custom UI for conversation starters.
11
- * It receives the list of conversation starters and optional close and back callbacks.
12
- *
13
- * @type {(response: Object, closeCallBack?: () => void, backCallBack?: () => void) => Promise<any>}
14
- */
15
- customView?: (response: Object, closeCallBack?: () => void, backCallBack?: () => void) => Promise<any>;
16
- /**
17
- * The URL for the custom back button icon. Defaults to an embedded back button icon.
18
- *
19
- * @type {string}
20
- */
21
- backIconURL?: string;
22
- /**
23
- * Creates an instance of AISmartRepliesConfiguration.
24
- *
25
- * @param {Partial<AISmartRepliesConfiguration>} props - The properties to initialize the configuration.
26
- */
27
- constructor(props: Partial<AISmartRepliesConfiguration>);
28
- }
@@ -1,21 +0,0 @@
1
- import { DataSource } from "../../../utils/DataSource";
2
- import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
- import { AISmartRepliesConfiguration } from "./AISmartRepliesConfiguration";
4
- import { CometChatActionsView, CometChatMessageComposerAction } from "../../../modals";
5
- export declare class AISmartRepliesDecorator extends DataSourceDecorator {
6
- configuration?: AISmartRepliesConfiguration;
7
- newDataSource: DataSource;
8
- loggedInUser: CometChat.User | null;
9
- user: CometChat.User;
10
- group: CometChat.Group;
11
- buttonRef: any;
12
- isModalClosed: boolean;
13
- private closeCallback?;
14
- constructor(dataSource: DataSource, configuration?: AISmartRepliesConfiguration);
15
- getId(): string;
16
- editReply(reply: string): void;
17
- closeIfMessageReceived(message: CometChat.BaseMessage): void;
18
- getSmartReplies: () => Promise<string[]>;
19
- getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: any): (CometChatMessageComposerAction | CometChatActionsView)[];
20
- private addMessageListener;
21
- }
@@ -1,8 +0,0 @@
1
- import { AIExtensionDataSource } from "../AIExtensionDataSource";
2
- import { AISmartRepliesConfiguration } from "./AISmartRepliesConfiguration";
3
- export declare class AISmartRepliesExtension extends AIExtensionDataSource {
4
- private configuration?;
5
- constructor(configuration?: AISmartRepliesConfiguration);
6
- addExtension(): void;
7
- getExtensionId(): string;
8
- }
@@ -1,11 +0,0 @@
1
- import { AISmartRepliesConfiguration } from './AISmartRepliesConfiguration';
2
- interface IAISmartRepliesProps {
3
- title: string;
4
- getSmartRepliesCallback?: () => Promise<Object>;
5
- editReplyCallback?: (reply: string) => void;
6
- closeCallback?: () => void;
7
- backCallback?: () => void;
8
- configuration?: AISmartRepliesConfiguration;
9
- }
10
- declare const AISmartRepliesView: (props: IAISmartRepliesProps) => import("react/jsx-runtime").JSX.Element;
11
- export { AISmartRepliesView };
@@ -1,10 +0,0 @@
1
- interface BadgeProps {
2
- count: number | string;
3
- }
4
- /**
5
- The CometChatBadge component is a generic component used to display numbers as a label.
6
- It is generally used to display unread message count.
7
- It accepts a count as an input, and developers can override the "cometchat-badge" class for customization purposes.
8
- */
9
- declare const CometChatBadge: (props: BadgeProps) => import("react/jsx-runtime").JSX.Element | null;
10
- export { CometChatBadge };
@@ -1,15 +0,0 @@
1
- interface BaseProps {
2
- /** URL of the avatar to be displayed. */
3
- avatarURL?: string;
4
- /** Name used for displaying initials in the avatar. */
5
- avatarName?: string;
6
- /** Title to be displayed for the card. */
7
- title: string;
8
- }
9
- type CometChatAvatarProps = BaseProps & {
10
- avatarURL: string;
11
- } | BaseProps & {
12
- avatarName: string;
13
- };
14
- declare const CometChatCard: (props: CometChatAvatarProps) => import("react/jsx-runtime").JSX.Element;
15
- export { CometChatCard };
@@ -1,5 +0,0 @@
1
- interface BaseProps {
2
- reactionIconURL?: string;
3
- }
4
- declare const CometChatLiveReaction: (props: BaseProps) => import("react/jsx-runtime").JSX.Element;
5
- export { CometChatLiveReaction };
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- interface customItem {
3
- element: HTMLElement;
4
- elementHeight: number;
5
- elementWidth: number;
6
- ySpeed: number;
7
- omega: number;
8
- random: number;
9
- x: Function;
10
- y: number;
11
- }
12
- export declare const useLiveReactionHook: ({}: {}) => {
13
- setVerticalSpeed: import("react").Dispatch<import("react").SetStateAction<number>>;
14
- setHorizontalSpeed: import("react").Dispatch<import("react").SetStateAction<number>>;
15
- setItems: import("react").Dispatch<import("react").SetStateAction<customItem[]>>;
16
- updateItems: () => void;
17
- requestAnimation: () => void;
18
- };
19
- export {};
@@ -1,9 +0,0 @@
1
- interface BaseProps {
2
- title: string;
3
- subtitle: string;
4
- closeIconURL?: string;
5
- hideCloseIcon: boolean;
6
- onCloseButtonClicked: () => void;
7
- }
8
- declare const CometChatQuickView: (props: BaseProps) => import("react/jsx-runtime").JSX.Element;
9
- export { CometChatQuickView };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface CometChatSingleSelectProps {
3
- options: string[];
4
- selectedOption?: string;
5
- onOptionChange?: (selectedOption: string) => void;
6
- }
7
- declare const CometChatSingleSelect: React.FC<CometChatSingleSelectProps>;
8
- export { CometChatSingleSelect };
@@ -1,23 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { UserMemberListType, UserPresencePlacement } from '../../Enums/Enums';
3
- export interface IMentionsProps {
4
- userMemberListType?: UserMemberListType;
5
- onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
6
- listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
7
- statusIndicatorStyle?: CSSProperties;
8
- searchKeyword?: string;
9
- group?: CometChat.Group;
10
- subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
11
- usersRequestBuilder?: CometChat.UsersRequestBuilder;
12
- disableUsersPresence?: boolean;
13
- userPresencePlacement?: UserPresencePlacement;
14
- hideSeparator?: boolean;
15
- loadingStateView?: JSX.Element;
16
- onEmpty?: () => void;
17
- groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
18
- loadingIconUrl?: string;
19
- disableLoadingState?: boolean;
20
- onError?: () => void;
21
- }
22
- declare function CometChatUserMemberWrapper(props: IMentionsProps): import("react/jsx-runtime").JSX.Element;
23
- export default CometChatUserMemberWrapper;
@@ -1,108 +0,0 @@
1
- import { ButtonAction, DateTimePickerMode, ElementType } from "../../Enums/Enums";
2
- import { OptionElement } from "../InteractiveElements";
3
- import { ActionEntity } from "../InteractiveEntities/ActionEntity";
4
- import { CardData } from "../InteractiveMessage/CardMessage";
5
- import { FormData } from "../InteractiveMessage/FormMessage";
6
- import { InteractiveData } from "../InteractiveMessage/SchedulerMessage";
7
- import { CustomAction } from "./CustomAction";
8
- import { URLNavigationAction } from "./URLNavigationAction";
9
- export interface fromJsonType {
10
- url?: string;
11
- method?: string;
12
- payload?: Object;
13
- headers?: Object;
14
- actionType?: ButtonAction;
15
- elementType?: string | ElementType;
16
- data?: {
17
- interactiveData: CardData & FormData & InteractiveData;
18
- };
19
- receiverId?: string;
20
- receiverType?: string;
21
- receiver?: string;
22
- optional?: boolean | string;
23
- elementId?: string;
24
- action?: (APIAction | URLNavigationAction | CustomAction) & fromJsonType;
25
- buttonText?: string;
26
- disableAfterInteracted?: boolean;
27
- label?: string;
28
- defaultValue?: string[] & string;
29
- options?: OptionElement[];
30
- mode?: DateTimePickerMode;
31
- timezoneCode?: string;
32
- from?: string;
33
- to?: string;
34
- dateTimeFormat?: string;
35
- text?: string;
36
- value?: string;
37
- maxLines?: number;
38
- placeholder?: {
39
- text: string;
40
- };
41
- }
42
- /**
43
- * Represents an API action that can be performed on a dynamic form.
44
- */
45
- export declare class APIAction extends ActionEntity {
46
- /**
47
- * The URL to which the API action should be performed.
48
- */
49
- private url;
50
- /**
51
- * The HTTP method to be used for the API action.
52
- */
53
- private method;
54
- /**
55
- * The payload to be sent with the API action.
56
- */
57
- private payload?;
58
- /**
59
- * The headers to be sent with the API action.
60
- */
61
- private headers?;
62
- /**
63
- * Creates a new instance of the APIAction class.
64
- * @param {string} url - The URL to which the API action should be performed.
65
- * @param {string} method - The HTTP method to be used for the API action.
66
- */
67
- constructor(url: string, method: string);
68
- /**
69
- * Returns the URL to which the API action should be performed.
70
- * @returns {string} The URL to which the API action should be performed.
71
- */
72
- getURL(): string;
73
- /**
74
- * Returns the HTTP method to be used for the API action.
75
- * @returns {string} The HTTP method to be used for the API action.
76
- */
77
- getMethod(): string;
78
- /**
79
- * Returns the payload to be sent with the API action.
80
- * @returns {Object} The payload to be sent with the API action.
81
- */
82
- getPayload(): Object | undefined;
83
- /**
84
- * Sets the payload to be sent with the API action.
85
- * @param {Object} payload - The payload to be sent with the API action.
86
- */
87
- setPayload(payload: Object): void;
88
- /**
89
- * Returns the headers to be sent with the API action.
90
- * @returns {Object} The headers to be sent with the API action.
91
- */
92
- getHeaders(): Object | undefined;
93
- /**
94
- * Sets the headers to be sent with the API action.
95
- * @param {Object} headers - The headers to be sent with the API action.
96
- */
97
- setHeaders(headers: Object): void;
98
- /**
99
- * Creates an `APIAction` instance from a JSON object.
100
- *
101
- * Initializes the `APIAction` with URL and method, and sets payload
102
- * and headers if provided.
103
- *
104
- * @param {fromJsonType} json - The JSON object with API action properties.
105
- * @returns {APIAction} The `APIAction` instance.
106
- */
107
- static fromJSON(json: fromJsonType): APIAction;
108
- }
@@ -1,12 +0,0 @@
1
- import { ActionEntity } from "../InteractiveEntities/ActionEntity";
2
- /**
3
- * Represents a custom action entity.
4
- */
5
- export declare class CustomAction extends ActionEntity {
6
- constructor();
7
- /**
8
- * Creates a new CustomAction object from a JSON object.
9
- * @returns A new CustomAction object created from the JSON object.
10
- */
11
- static fromJSON(): CustomAction;
12
- }
@@ -1,30 +0,0 @@
1
- import { ActionEntity } from "../InteractiveEntities/ActionEntity";
2
- import { fromJsonType } from "./APIAction";
3
- /**
4
- * Represents a URL navigation action that can be performed on a dynamic form.
5
- */
6
- export declare class URLNavigationAction extends ActionEntity {
7
- /**
8
- * The URL to navigate to.
9
- */
10
- private url;
11
- /**
12
- * Creates a new instance of the URLNavigationAction class.
13
- * @param {string} url - The URL to navigate to.
14
- */
15
- constructor(url: string);
16
- /**
17
- * Returns the URL to navigate to.
18
- * @returns {string} The URL to navigate to.
19
- */
20
- getURL(): string;
21
- /**
22
- * Creates a `URLNavigationAction` instance from a JSON object.
23
- *
24
- * Initializes the `URLNavigationAction` with the provided URL.
25
- *
26
- * @param {fromJsonType} json - The JSON object containing the URL.
27
- * @returns {URLNavigationAction} The `URLNavigationAction` instance.
28
- */
29
- static fromJSON(json: fromJsonType): URLNavigationAction;
30
- }
@@ -1,3 +0,0 @@
1
- export { APIAction } from "./APIAction";
2
- export { URLNavigationAction } from "./URLNavigationAction";
3
- export { CustomAction } from "./CustomAction";
@@ -1,50 +0,0 @@
1
- import { ElementEntity } from "../InteractiveEntities/ElementEntity";
2
- import { fromJsonType } from "../InteractiveActions/APIAction";
3
- /**
4
- * Represents the base input for a dynamic form element.
5
- */
6
- export declare class BaseInputElement<T> extends ElementEntity {
7
- /**
8
- * The response of an input.
9
- */
10
- private response?;
11
- /**
12
- * Whether the input element is optional or required.
13
- * */
14
- private optional?;
15
- /**
16
- * Creates a new instance of the BaseInputElement class.
17
- * @param {string} elementId - The unique identifier of the form element.
18
- * @param {string} elementType - The type of the form element.
19
- */
20
- constructor(elementId: string, elementType: string);
21
- /**
22
- * Sets the response of an input.
23
- */
24
- setResponse(response: T): void;
25
- /**
26
- * Returns the response of an input.
27
- * @returns {T} The response of an input.
28
- */
29
- getResponse(): T | undefined;
30
- /**
31
- * Returns whether the element is optional or required.
32
- * @returns {boolean} Whether the element is optional or required.
33
- */
34
- getOptional(): boolean | undefined;
35
- /**
36
- * Sets whether the element is optional or required.
37
- * @param {boolean} optional - Whether the element is optional or required.
38
- */
39
- setOptional(optional: boolean | string): void;
40
- /**
41
- * Creates an `ElementEntity` from a JSON object based on the `elementType`.
42
- *
43
- * Initializes the element type (e.g., text, checkbox) and sets the optional property.
44
- * Creates a default `TextInputElement` if the `elementType` is unrecognized.
45
- *
46
- * @param {fromJsonType} json - The JSON object with element properties, including `elementType` and `optional`.
47
- * @returns {ElementEntity} The constructed `ElementEntity`.
48
- */
49
- static fromJSON(json: fromJsonType): ElementEntity;
50
- }
@@ -1,25 +0,0 @@
1
- import { APIAction, CustomAction, URLNavigationAction } from "../InteractiveActions";
2
- import { ElementEntity } from "../InteractiveEntities";
3
- import { fromJsonType } from "../InteractiveActions/APIAction";
4
- /**
5
- * Represents a base interactive element in a interactive message.
6
- */
7
- export declare class BaseInteractiveElement extends ElementEntity {
8
- /**
9
- * Represents an action that can be performed on the message.
10
- */
11
- private action;
12
- constructor(elementId: string, elementType: string, action: APIAction | URLNavigationAction | CustomAction);
13
- /**
14
- * Returns the action associated with the bubble.
15
- * @returns {APIAction | URLNavigationAction | CustomAction} The action associated with the bubble.
16
- */
17
- getAction(): APIAction | URLNavigationAction | CustomAction;
18
- /**
19
- * Creates a `BaseInteractiveElement` instance from a JSON object based on the element type.
20
- * @param {fromJsonType} json - The JSON object containing the properties of the interactive element, including `elementType`.
21
- * @param {string} json.elementType - The type of the element to create (e.g., `button`).
22
- * @returns {BaseInteractiveElement} The constructed `BaseInteractiveElement` instance.
23
- */
24
- static fromJSON(json: fromJsonType): BaseInteractiveElement;
25
- }
@@ -1,48 +0,0 @@
1
- import { APIAction, CustomAction, URLNavigationAction } from "../InteractiveActions";
2
- import { BaseInteractiveElement } from "./index";
3
- import { fromJsonType } from "../InteractiveActions/APIAction";
4
- /**
5
- * Represents a button element that can be added to a interactive bubble.
6
- */
7
- export declare class ButtonElement extends BaseInteractiveElement {
8
- /**
9
- * The text to display on the button.
10
- */
11
- private buttonText;
12
- /**
13
- * Whether the button should be disabled after it is interacted with.
14
- * */
15
- private disableAfterInteracted?;
16
- /**
17
- * Creates an instance of ButtonInput.
18
- * @param elementId - The unique identifier for the button element.
19
- * @param action - The action to be performed when the button is clicked.
20
- * @param buttonText - The text to display on the button.
21
- */
22
- constructor(elementId: string, action: APIAction | URLNavigationAction | CustomAction, buttonText: string);
23
- /**
24
- * Gets the text to display on the button.
25
- * @returns The text to display on the button.
26
- */
27
- getButtonText(): string;
28
- /**
29
- * Gets whether the button should be disabled after it is interacted with.
30
- * @returns Whether the button should be disabled after it is interacted with.
31
- */
32
- getDisableAfterInteracted(): boolean | undefined;
33
- /**
34
- * Sets whether the button should be disabled after it is interacted with.
35
- * @param disableAfterInteracted - Whether the button should be disabled after it is interacted with.
36
- */
37
- setDisableAfterInteracted(disableAfterInteracted: boolean): void;
38
- /**
39
- * Creates a `ButtonElement` from a JSON object.
40
- *
41
- * Initializes a `ButtonElement` using JSON data, setting its action via `ActionEntity.fromJSON`
42
- * and applying additional properties like `disableAfterInteracted` if provided.
43
- *
44
- * @param {fromJsonType} json - The JSON object with properties for the button element.
45
- * @returns {ButtonElement} The constructed `ButtonElement` instance.
46
- */
47
- static fromJSON(json: fromJsonType): ButtonElement;
48
- }
@@ -1,46 +0,0 @@
1
- import { BaseInputElement, OptionElement } from "./index";
2
- import { fromJsonType } from "../InteractiveActions/APIAction";
3
- /**
4
- * Represents a checkbox input element.
5
- */
6
- export declare class CheckboxElement extends BaseInputElement<string[]> {
7
- /** The label of the input element. */
8
- private label;
9
- /** The default values to be selected in the checkbox. */
10
- private defaultValue?;
11
- /** The options available for the checkbox input element. */
12
- private options;
13
- /**
14
- * Creates a new instance of the CheckboxInput class.
15
- * @param elementId The ID of the input element.
16
- * @param label The label of the input element.
17
- * @param options The options available for the checkbox input element.
18
- */
19
- constructor(elementId: string, label: string, options?: OptionElement[]);
20
- /**
21
- * Gets the label of the input element.
22
- * @returns The label of the input element.
23
- */
24
- getLabel(): string;
25
- /**
26
- * Sets the default values to be selected in the checkbox.
27
- * @param defaultValue The default values to be selected in the checkbox.
28
- */
29
- setDefaultValue(defaultValue: string[]): void;
30
- /**
31
- * Gets the default values to be selected in the checkbox.
32
- * @returns The default values to be selected in the checkbox.
33
- * */
34
- getDefaultValue(): string[] | undefined;
35
- /**
36
- * Gets the options available for the checkbox input element.
37
- * @returns The options available for the checkbox input element.
38
- */
39
- getOptions(): OptionElement[];
40
- /**
41
- * Creates a `CheckboxElement` from a JSON object.
42
- * @param {fromJsonType} json - The JSON object with properties for the checkbox element.
43
- * @returns {CheckboxElement} The constructed `CheckboxElement` instance.
44
- */
45
- static fromJSON(json: fromJsonType): CheckboxElement;
46
- }