@cometchat/chat-uikit-react-native 4.3.11 → 4.3.12
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.
- package/lib/AI/AIAssistBot/AIAssistBotView.js +4 -4
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.js +22 -13
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +3 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatConversations/CometChatConversations.js +151 -25
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js +15 -5
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/CometChatDetails.js +13 -9
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/listners.js +41 -19
- package/lib/CometChatDetails/listners.js.map +1 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +24 -7
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +14 -2
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +2 -2
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +14 -6
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +4 -9
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageList/CometChatMessageList.js +92 -58
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js +7 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- package/lib/CometChatMessages/CometChatMessages.js +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.js +2 -2
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +2 -2
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/calls/CallEvents.d.ts +1 -1
- package/lib/calls/CallEvents.js +1 -1
- package/lib/calls/CallEvents.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +3 -2
- package/lib/calls/CallingExtentionDecorator.js +1 -1
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +5 -2
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +1 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +2 -2
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +3 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +3 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +1 -2
- package/lib/extensions/Polls/PollsDecorator.js +7 -10
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +2 -2
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +7 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +4 -2
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +27 -10
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +4 -3
- package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -2
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
- package/lib/shared/base/Types.d.ts +8 -0
- package/lib/shared/base/index.d.ts +2 -2
- package/lib/shared/base/index.js.map +1 -1
- package/lib/shared/constants/UIKitConstants.d.ts +2 -10
- package/lib/shared/constants/UIKitConstants.js +2 -2
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +3 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +3 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +4 -4
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +3 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +2 -3
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.js +38 -16
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- package/lib/shared/index.d.ts +4 -4
- package/lib/shared/index.js +3 -3
- package/lib/shared/index.js.map +1 -1
- package/lib/shared/libs/VideoPlayer/Video.js +4 -5
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
- package/lib/shared/modals/CometChatMessageTemplate.js +8 -1
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +1 -2
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/index.d.ts +1 -1
- package/lib/shared/modals/InteractiveData/index.js +1 -1
- package/lib/shared/modals/InteractiveData/index.js.map +1 -1
- package/lib/shared/modals/index.d.ts +2 -2
- package/lib/shared/modals/index.js +2 -2
- package/lib/shared/modals/index.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +28 -0
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js +3 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -1
- package/lib/shared/utils/MessageUtils.d.ts +1 -1
- package/lib/shared/utils/MessageUtils.js +6 -1
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/PermissionUtil.js +1 -1
- package/lib/shared/utils/PermissionUtil.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +2 -3
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.js +37 -18
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +19 -4
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +3 -5
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/index.d.ts +2 -1
- package/lib/shared/views/index.js +2 -1
- package/lib/shared/views/index.js.map +1 -1
- package/package.json +1 -1
- package/src/AI/AIAssistBot/AIAssistBotView.tsx +4 -4
- package/src/CometChatAddMembers/CometChatAddMembers.tsx +30 -20
- package/src/CometChatConversations/CometChatConversations.tsx +4 -9
- package/src/CometChatDetails/listners.ts +56 -35
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +5 -5
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +4 -3
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +41 -50
- package/src/CometChatMessageList/CometChatMessageList.tsx +51 -37
- package/src/CometChatUsers/CometChatUsers.tsx +2 -2
- package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +2 -1
- package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +2 -1
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
- package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +6 -6
- package/src/extensions/ThumbnailGeneration/resources/index.ts +2 -2
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +8 -8
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
- package/src/shared/utils/CometChatMessageHelper/index.ts +4 -0
- package/src/shared/utils/PermissionUtil.ts +1 -1
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +10 -3
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +20 -4
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +8 -1
- package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +1 -1
- package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
- package/lib/AI/AIConversationSummary/resources/close.png +0 -0
- package/lib/AI/resources/ai-empty.png +0 -0
- package/lib/AI/resources/ai-error.png +0 -0
- package/lib/AI/resources/spineer.png +0 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +0 -43
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +0 -46
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatContacts/Header.d.ts +0 -31
- package/lib/CometChatConversations/CometChatConversations.d.ts +0 -199
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +0 -96
- package/lib/CometChatConversations/resources/back.png +0 -0
- package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/close.png +0 -0
- package/lib/CometChatConversations/resources/delete.png +0 -0
- package/lib/CometChatConversations/resources/error.png +0 -0
- package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/new.png +0 -0
- package/lib/CometChatConversations/resources/password.png +0 -0
- package/lib/CometChatConversations/resources/private.png +0 -0
- package/lib/CometChatConversations/resources/rightTick.png +0 -0
- package/lib/CometChatConversations/resources/sending.png +0 -0
- package/lib/CometChatConversations/resources/spineer.png +0 -0
- package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/lib/CometChatCreateGroup/resources/close.png +0 -0
- package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/lib/CometChatCreateGroup/resources/warning.png +0 -0
- package/lib/CometChatDetails/CometChatDetails.d.ts +0 -281
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +0 -36
- package/lib/CometChatDetails/resources/Back.png +0 -0
- package/lib/CometChatDetails/resources/close.png +0 -0
- package/lib/CometChatDetails/resources/password.png +0 -0
- package/lib/CometChatDetails/resources/private.png +0 -0
- package/lib/CometChatDetails/resources/right-arrow.png +0 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -96
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +0 -63
- package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/check.png +0 -0
- package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/CometChatGroups.d.ts +0 -141
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +0 -74
- package/lib/CometChatGroups/resources/back.png +0 -0
- package/lib/CometChatGroups/resources/check.png +0 -0
- package/lib/CometChatGroups/resources/close.png +0 -0
- package/lib/CometChatGroups/resources/create.png +0 -0
- package/lib/CometChatGroups/resources/more.png +0 -0
- package/lib/CometChatGroups/resources/password.png +0 -0
- package/lib/CometChatGroups/resources/private.png +0 -0
- package/lib/CometChatGroups/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/resources/search.png +0 -0
- package/lib/CometChatGroups/resources/spineer.png +0 -0
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -269
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +0 -47
- package/lib/CometChatMessageComposer/resources/Info.png +0 -0
- package/lib/CometChatMessageComposer/resources/ai.png +0 -0
- package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/lib/CometChatMessageComposer/resources/close.png +0 -0
- package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
- package/lib/CometChatMessageComposer/resources/heart.png +0 -0
- package/lib/CometChatMessageComposer/resources/image.png +0 -0
- package/lib/CometChatMessageComposer/resources/microphone.png +0 -0
- package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
- package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -150
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +0 -37
- package/lib/CometChatMessageHeader/resources/Back.png +0 -0
- package/lib/CometChatMessageHeader/resources/password.png +0 -0
- package/lib/CometChatMessageHeader/resources/private.png +0 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -36
- package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -75
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +0 -101
- package/lib/CometChatMessageList/resources/back.png +0 -0
- package/lib/CometChatMessageList/resources/close.png +0 -0
- package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/rightarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/spineer.png +0 -0
- package/lib/CometChatMessages/CometChatMessages.d.ts +0 -42
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +0 -69
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatTabs/TabItems.d.ts +0 -11
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +0 -90
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +0 -18
- package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
- package/lib/CometChatThreadedMessages/resources/close.png +0 -0
- package/lib/CometChatThreadedMessages/resources/more.png +0 -0
- package/lib/CometChatThreadedMessages/resources/password.png +0 -0
- package/lib/CometChatThreadedMessages/resources/private.png +0 -0
- package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +0 -41
- package/lib/CometChatUsers/CometChatUsers.d.ts +0 -69
- package/lib/CometChatUsers/UsersConfiguration.d.ts +0 -43
- package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +0 -54
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +0 -31
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +0 -20
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +0 -27
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +0 -137
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +0 -1
- package/lib/calls/CometChatCallDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallDetails/index.js +0 -4
- package/lib/calls/CometChatCallDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +0 -2
- package/lib/calls/CometChatCallDetails/resources/index.js +0 -3
- package/lib/calls/CometChatCallDetails/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/style.d.ts +0 -12
- package/lib/calls/CometChatCallDetails/style.js +0 -14
- package/lib/calls/CometChatCallDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +0 -86
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +0 -39
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +0 -13
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +0 -20
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +0 -250
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +0 -1
- package/lib/calls/CometChatCallHistory/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistory/index.js +0 -4
- package/lib/calls/CometChatCallHistory/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +0 -8
- package/lib/calls/CometChatCallHistory/resources/index.js +0 -9
- package/lib/calls/CometChatCallHistory/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/style.d.ts +0 -21
- package/lib/calls/CometChatCallHistory/style.js +0 -23
- package/lib/calls/CometChatCallHistory/style.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +0 -30
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +0 -6
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +0 -8
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +0 -10
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Call.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Spineer.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Video.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Spinner.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -21
- package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/nextarrow.png +0 -0
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +0 -13
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -12
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +0 -13
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -21
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/resources/close.png +0 -0
- package/lib/extensions/Polls/resources/document.png +0 -0
- package/lib/extensions/Polls/resources/kickIcon.png +0 -0
- package/lib/extensions/Polls/resources/rightTick.png +0 -0
- package/lib/extensions/Polls/resources/warning.png +0 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +0 -22
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -203
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +0 -2
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +0 -3
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +0 -40
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +0 -42
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +0 -23
- package/lib/extensions/Reactions/ReactionsDecorator.js +0 -113
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +0 -14
- package/lib/extensions/Reactions/ReactionsExtension.js +0 -28
- package/lib/extensions/Reactions/ReactionsExtension.js.map +0 -1
- package/lib/extensions/Reactions/index.d.ts +0 -3
- package/lib/extensions/Reactions/index.js +0 -4
- package/lib/extensions/Reactions/index.js.map +0 -1
- package/lib/extensions/Reactions/resources/index.d.ts +0 -3
- package/lib/extensions/Reactions/resources/index.js +0 -3
- package/lib/extensions/Reactions/resources/index.js.map +0 -1
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -16
- package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
- package/lib/shared/assets/images/Back.png +0 -0
- package/lib/shared/assets/images/BackArrow.png +0 -0
- package/lib/shared/assets/images/blue-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/calendar.png +0 -0
- package/lib/shared/assets/images/checkmark.png +0 -0
- package/lib/shared/assets/images/clock-alert.png +0 -0
- package/lib/shared/assets/images/clock.png +0 -0
- package/lib/shared/assets/images/earth.png +0 -0
- package/lib/shared/assets/images/empty-slot.png +0 -0
- package/lib/shared/assets/images/error.png +0 -0
- package/lib/shared/assets/images/forwardArrow.png +0 -0
- package/lib/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/grey-tick-icon.png +0 -0
- package/lib/shared/assets/images/sending.png +0 -0
- package/lib/shared/framework/DataSource.d.ts +0 -49
- package/lib/shared/framework/MessageDataSource.d.ts +0 -72
- package/lib/shared/framework/resources/audio-file.png +0 -0
- package/lib/shared/framework/resources/circle_add.png +0 -0
- package/lib/shared/framework/resources/copy.png +0 -0
- package/lib/shared/framework/resources/delete.png +0 -0
- package/lib/shared/framework/resources/edit.png +0 -0
- package/lib/shared/framework/resources/emoji.png +0 -0
- package/lib/shared/framework/resources/file_upload.png +0 -0
- package/lib/shared/framework/resources/forward.png +0 -0
- package/lib/shared/framework/resources/heart.png +0 -0
- package/lib/shared/framework/resources/image.png +0 -0
- package/lib/shared/framework/resources/info.png +0 -0
- package/lib/shared/framework/resources/location.png +0 -0
- package/lib/shared/framework/resources/messageInPrivate.png +0 -0
- package/lib/shared/framework/resources/microphone.png +0 -0
- package/lib/shared/framework/resources/pause.png +0 -0
- package/lib/shared/framework/resources/play.png +0 -0
- package/lib/shared/framework/resources/reply.png +0 -0
- package/lib/shared/framework/resources/send_message.png +0 -0
- package/lib/shared/framework/resources/share.png +0 -0
- package/lib/shared/framework/resources/stop_player.png +0 -0
- package/lib/shared/framework/resources/thread.png +0 -0
- package/lib/shared/framework/resources/video_upload.png +0 -0
- package/lib/shared/helper/types/index.d.ts +0 -19
- package/lib/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
- package/lib/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/back.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume@3x.png +0 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +0 -18
- package/lib/shared/modals/CometChatMessageOption.d.ts +0 -13
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -24
- package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +0 -15
- package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -86
- package/lib/shared/views/CometChatList/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/resources/Search.png +0 -0
- package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
- package/lib/shared/views/CometChatList/resources/check.png +0 -0
- package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -21
- package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
- package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- /package/{lib/shared/views/CometChatVideoBubble → src/extensions/ThumbnailGeneration}/resources/default_image.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageTranslationDecorator.js","sourceRoot":"","sources":["../../../src/extensions/MessageTranslation/MessageTranslationDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3F,aAAa;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,QAAQ,GACT,MAAM,0CAA0C,CAAC;AAElD,aAAa;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageTranslationDecorator.js","sourceRoot":"","sources":["../../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AI,CAAC,+BAA+B,CAAC,EACzC,CACH,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC,oBAAoB,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { DataSource, DataSourceDecorator } from '../../shared/framework';
|
|
2
2
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
3
|
-
import { MessageBubbleAlignmentType, AdditionalBubbleStylingParams } from '../../shared/constants/UIKitConstants';
|
|
4
3
|
import { CometChatTheme } from '../../shared/resources/CometChatTheme';
|
|
5
4
|
import { PollsConfigurationInterface } from './PollsConfigurations';
|
|
6
5
|
import { CometChatMessageComposerActionInterface } from '../../shared/helper/types';
|
|
7
6
|
import { CometChatMessageTemplate } from '../../shared/modals';
|
|
7
|
+
import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from '../../shared/base/Types';
|
|
8
8
|
export declare class PollsExtensionDecorator extends DataSourceDecorator {
|
|
9
9
|
pollsConfiguration?: PollsConfigurationInterface;
|
|
10
|
-
loggedInUser: CometChat.User;
|
|
11
10
|
constructor(dataSource: DataSource, pollsConfiguration?: PollsConfigurationInterface);
|
|
12
11
|
isDeletedMessage(message: CometChat.BaseMessage): boolean;
|
|
13
12
|
getId(): string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DataSourceDecorator } from '../../shared/framework';
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
4
2
|
import { MetadataConstants, MessageCategoryConstants, } from '../../shared/constants/UIKitConstants';
|
|
5
3
|
import { ExtensionTypeConstants } from '../ExtensionConstants';
|
|
6
4
|
import { getExtentionData } from '../ExtensionModerator';
|
|
@@ -14,19 +12,14 @@ import { View } from 'react-native';
|
|
|
14
12
|
import { ICONS as ICONS2 } from './resources';
|
|
15
13
|
import { CometChatCreatePoll } from './Polls';
|
|
16
14
|
import { PollsBubble } from './PollsBubble';
|
|
15
|
+
import { CometChatUIKit } from '../../shared';
|
|
17
16
|
export class PollsExtensionDecorator extends DataSourceDecorator {
|
|
18
17
|
pollsConfiguration;
|
|
19
|
-
loggedInUser;
|
|
20
18
|
constructor(dataSource, pollsConfiguration) {
|
|
21
19
|
super(dataSource);
|
|
22
20
|
if (pollsConfiguration != undefined) {
|
|
23
21
|
this.pollsConfiguration = pollsConfiguration;
|
|
24
22
|
}
|
|
25
|
-
CometChat.getLoggedinUser()
|
|
26
|
-
.then((u) => {
|
|
27
|
-
this.loggedInUser = u;
|
|
28
|
-
})
|
|
29
|
-
.catch((err) => console.log(err));
|
|
30
23
|
}
|
|
31
24
|
isDeletedMessage(message) {
|
|
32
25
|
return message.getDeletedBy() != null;
|
|
@@ -85,13 +78,17 @@ export class PollsExtensionDecorator extends DataSourceDecorator {
|
|
|
85
78
|
}
|
|
86
79
|
},
|
|
87
80
|
options: (loggedInUser, messageObject, group) => ChatConfigurator.dataSource.getMessageOptions(loggedInUser, messageObject, group),
|
|
81
|
+
BottomView: (message, alignment) => {
|
|
82
|
+
return ChatConfigurator.dataSource.getBottomView(message, alignment);
|
|
83
|
+
}
|
|
88
84
|
}));
|
|
89
85
|
return templateList;
|
|
90
86
|
}
|
|
91
87
|
getPollBubble(message, _alignment) {
|
|
92
|
-
|
|
88
|
+
let _loggedInUser = CometChatUIKit.loggedInUser;
|
|
89
|
+
if (message && _loggedInUser) {
|
|
93
90
|
const metaData = getExtentionData(message, MetadataConstants.extensions?.polls);
|
|
94
|
-
return (<PollsBubble pollQuestion={message['customData']?.['question']} options={message['customData']?.['options']} pollId={message['customData']?.['id']} loggedInUser={
|
|
91
|
+
return (<PollsBubble pollQuestion={message['customData']?.['question']} options={message['customData']?.['options']} pollId={message['customData']?.['id']} loggedInUser={_loggedInUser}
|
|
95
92
|
// choosePoll
|
|
96
93
|
senderUid={message['sender']?.['uid']} metadata={metaData} {...(this.pollsConfiguration?.pollsBubbleStyle
|
|
97
94
|
? this.pollsConfiguration.pollsBubbleStyle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollsDecorator.js","sourceRoot":"","sources":["../../../src/extensions/Polls/PollsDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollsDecorator.js","sourceRoot":"","sources":["../../../src/extensions/Polls/PollsDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAEpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,aAAa;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,aAAa;AACb,OAAO,EAAE,IAAI,EAAQ,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,OAAO,uBAAwB,SAAQ,mBAAmB;IAC9D,kBAAkB,CAA+B;IAEjD,YACE,UAAsB,EACtB,kBAAgD;QAEhD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,kBAAkB,IAAI,SAAS,EAAE,CAAC;YACpC,IA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|
|
12
12
|
import { SmartRepliesView } from './SmartRepliesView';
|
|
13
|
-
import { getUnixTimestamp, } from '../../shared/utils/CometChatMessageHelper';
|
|
13
|
+
import { getUnixTimestamp, getUnixTimestampInMilliseconds, } from '../../shared/utils/CometChatMessageHelper';
|
|
14
14
|
import { CometChatUIEventHandler } from '../../shared/events/CometChatUIEventHandler/CometChatUIEventHandler';
|
|
15
15
|
import { CometChatUIKit } from '../../shared/CometChatUiKit/CometChatUIKit';
|
|
16
16
|
import { CommonUtils } from '../../shared/utils/CommonUtils';
|
|
@@ -85,7 +85,7 @@ export class SmartRepliesDecorator extends DataSourceDecorator {
|
|
|
85
85
|
textMessage.setSender(this.loggedInUser);
|
|
86
86
|
textMessage.setText(smartReply);
|
|
87
87
|
textMessage.setSentAt(getUnixTimestamp());
|
|
88
|
-
textMessage.setMuid(String(
|
|
88
|
+
textMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
89
89
|
CometChatUIKit.sendTextMessage(textMessage)
|
|
90
90
|
.then(() => { })
|
|
91
91
|
.catch(() => { });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartRepliesDecorator.js","sourceRoot":"","sources":["../../../src/extensions/SmartReplies/SmartRepliesDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACzE,aAAa;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,aAAa;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,aAAa;AACb,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAq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Q,GAAG,qBAAqB,CAAC,KAAK,CAAC;QACzC,CAAC;QACD,IAAI,WAAW,GAAG,IAAI,SAAS,CAAC,WAAW,CACzC,UAAU,EACV,UAAU,EACV,QAAQ,CACT,CAAC;QACF,WAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;QAC7D,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACzC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAChC,WAAW,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAC1C,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;QAE9D,cAAc,CAAC,eAAe,CAAC,WAAW,CAAC;aACxC,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;aACd,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;QAEhB,uBAAuB,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,EAAE;YAC/D,SAAS,EAAE,aAAa,CAAC,iBAAiB;YAC1C,EAAE,EAAE,EAAE;SACP,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,oBAAoB,GAAG,GAAG,EAAE;QAC1B,uBAAuB,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,EAAE;YAC/D,SAAS,EAAE,aAAa,CAAC,iBAAiB;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;CACH"}
|
|
@@ -2,8 +2,8 @@ import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
|
2
2
|
import { CometChatMessageTemplate } from "../../shared/modals";
|
|
3
3
|
import { DataSource, DataSourceDecorator } from "../../shared/framework";
|
|
4
4
|
import { CometChatTheme } from "../../shared/resources/CometChatTheme";
|
|
5
|
-
import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/constants/UIKitConstants";
|
|
6
5
|
import { StickerConfigurationInterface } from "./StickerConfiguration";
|
|
6
|
+
import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/base/Types";
|
|
7
7
|
export declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
8
8
|
configuration: StickerConfigurationInterface;
|
|
9
9
|
constructor(props: {
|
|
@@ -12,6 +12,7 @@ import { StickerIcon } from "./resources";
|
|
|
12
12
|
import { CometChatStickerKeyboard } from "./CometChatStickerKeyboard";
|
|
13
13
|
import { CometChatUIKit } from "../../shared/CometChatUiKit/CometChatUIKit";
|
|
14
14
|
import { isKeyboardVisible } from "../../shared/helper/useKeyboard";
|
|
15
|
+
import { getUnixTimestampInMilliseconds } from "../../shared/utils/CometChatMessageHelper";
|
|
15
16
|
export class StickersExtensionDecorator extends DataSourceDecorator {
|
|
16
17
|
configuration;
|
|
17
18
|
constructor(props) {
|
|
@@ -36,6 +37,9 @@ export class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
36
37
|
},
|
|
37
38
|
options: (loggedInuser, message, group) => {
|
|
38
39
|
return ChatConfigurator.dataSource.getMessageOptions(loggedInuser, message, group);
|
|
40
|
+
},
|
|
41
|
+
BottomView: (message, alignment) => {
|
|
42
|
+
return ChatConfigurator.dataSource.getBottomView(message, alignment);
|
|
39
43
|
}
|
|
40
44
|
}));
|
|
41
45
|
return templates;
|
|
@@ -62,9 +66,11 @@ export class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
62
66
|
let customMessage = new CometChat.CustomMessage(receiverId, receiverType, customType, customData);
|
|
63
67
|
customMessage.setCategory(CometChat.CATEGORY_CUSTOM);
|
|
64
68
|
customMessage.setParentMessageId(parentId);
|
|
65
|
-
customMessage.setMuid(
|
|
69
|
+
customMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
66
70
|
customMessage.setSender(loggedInUser.current);
|
|
67
71
|
customMessage.setReceiver(user || group);
|
|
72
|
+
customMessage.shouldUpdateConversation(true);
|
|
73
|
+
customMessage.setMetadata({ incrementUnreadCount: true });
|
|
68
74
|
CometChatUIKit.sendCustomMessage(customMessage).then((res) => null).catch(err => null);
|
|
69
75
|
};
|
|
70
76
|
let views = super.getAuxiliaryOptions(user, group, id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickersExtensionDecorator.js","sourceRoot":"","sources":["../../../src/extensions/Stickers/StickersExtensionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE3F,OAAO,
|
|
1
|
+
{"version":3,"file":"StickersExtensionDecorator.js","sourceRoot":"","sources":["../../../src/extensions/Stickers/StickersExtensionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,QAAQ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AAM,CAAC,EAAE,CAAC;YAC5D,YAAY,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;IAGD,kBAAkB;QAChB,IAAI,aAAa,GAAa,KAAK,CAAC,kBAAkB,EAAE,CAAC;QACzD,aAAa,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QACnD,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,KAAK;QACH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,0BAA0B,CAAC,YAAoC;QAC7D,MAAM,OAAO,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;QAC5C,IAAI,OAAO,IAAI,IAAI;YACjB,OAAO,CAAC,IAAI,IAAI,sBAAsB,CAAC,OAAO;YAC9C,OAAO,CAAC,QAAQ,IAAI,wBAAwB,CAAC,MAAM,EAAE,CAAC;YACtD,OAAO,QAAQ,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,OAAO,KAAK,CAAC,0BAA0B,CAAC,YAAY,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DataSource, DataSourceDecorator } from "../../shared/framework";
|
|
2
2
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
|
-
import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/constants/UIKitConstants";
|
|
4
3
|
import { CometChatTheme } from "../../shared/resources/CometChatTheme";
|
|
5
4
|
import { TextModerationConfigurationInterface } from "./TextModerationConfiguration";
|
|
5
|
+
import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/base/Types";
|
|
6
6
|
export declare class TextModerationExtensionDecorator extends DataSourceDecorator {
|
|
7
7
|
textModerationConfiguration?: TextModerationConfigurationInterface;
|
|
8
8
|
constructor(dataSource: DataSource, textModerationConfiguration?: TextModerationConfigurationInterface);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextModerationExtensionDecorator.js","sourceRoot":"","sources":["../../../src/extensions/TextModeration/TextModerationExtensionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextModerationExtensionDecorator.js","sourceRoot":"","sources":["../../../src/extensions/TextModeration/TextModerationExtensionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAGvG,MAAM,OAAO,gCAAiC,SAAQ,mBAAmB;IAErE,2BAA2B,CAAyC;IAEpE,YAAa,UAAuB,EAAE,2BAAkE;QACpG,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAG,2BAA2B,IAAI,SAAS,EAAC,CAAC;YAEzC,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAA;QAClE,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,WAAmB,EAAE,OAA8B,EAAE,SAAqC,EAAE,KAAqB,EAAE,gBAAgD;QAEpL,IAAI,IAAI,GAAY,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;QACjD,OAAO,KAAK,CAAC,oBAAoB,CAAC,IAAI,EAAG,OAAO,EAAG,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;IAC1F,CAAC;IAGD,eAAe,CAAC,aAAqC;QAEjD,IAAI,WAAW,GAAa,aAAa,CAAC,MAAM,CAAC,CAAG;QAErD,MAAM,UAAU,GAAG,gBAAgB,CAC/B,aAAa,EACb,kBAAkB,CAAC,WAAW,CACjC,CAAC;QAEF,IACI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AA,CAAC;CAEL"}
|
|
@@ -26,7 +26,7 @@ export class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
|
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
28
|
let attachmentData = thumbnailData['attachments'];
|
|
29
|
-
if (attachmentData.length
|
|
29
|
+
if (attachmentData.length) {
|
|
30
30
|
let dataObj = attachmentData[0];
|
|
31
31
|
if (!dataObj['error']) {
|
|
32
32
|
let imageLink = dataObj?.['data']?.['thumbnails']?.['url_small'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThumbnailGenerationDecorator.js","sourceRoot":"","sources":["../../../src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,kGAAkG;AAClG,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GAGrB,MAAM,oBAAoB,CAAC;AAC5B,aAAa;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,OAAO,qCAAsC,SAAQ,mBAAmB;IAC5E,gCAAgC,CAA6C;IAE7E,gCAAgC;IAEhC,YACE,UAAsB,EACtB,gCAA4E;QAE5E,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,gCAAgC,IAAI,SAAS,EAAE,CAAC;YAClD,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,KAAK;QACH,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,cAAc,CAAC,OAAO;QACpB,IAAI,KAAK,GAAoB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;QAC3C,IAAI,aAAa,GAAG,gBAAgB,CAClC,OAAO,EACP,kBAAkB,CAAC,mBAAmB,CACvC,CAAC;QACF,IAAI,aAAa,IAAI,SAAS,EAAE,CAAC;YAC/B,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAE,8BAA8B;QACrG,CAAC;aAAM,CAAC;YACN,IAAI,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;YAClD,IAAI,cAAc,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ThumbnailGenerationDecorator.js","sourceRoot":"","sources":["../../../src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,kGAAkG;AAClG,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GAGrB,MAAM,oBAAoB,CAAC;AAC5B,aAAa;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,OAAO,qCAAsC,SAAQ,mBAAmB;IAC5E,gCAAgC,CAA6C;IAE7E,gCAAgC;IAEhC,YACE,UAAsB,EACtB,gCAA4E;QAE5E,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,gCAAgC,IAAI,SAAS,EAAE,CAAC;YAClD,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,KAAK;QACH,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,cAAc,CAAC,OAAO;QACpB,IAAI,KAAK,GAAoB,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;QAC3C,IAAI,aAAa,GA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;gBACV,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,IAAI,MAAM;gBAC/D,uBAAuB,EACrB,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,oBAAoB;gBACxD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,IAAI,MAAM;gBAC5D,GAAG,gBAAgB;gBACnB,GAAG,CAAC,IAAI,CAAC,gCAAgC,EAAE,gBAAgB;oBACzD,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,gBAAgB;oBACxD,CAAC,CAAC,EAAE,CAAC;aACR,CAAC,EACF,CACH,CAAC;IACJ,CAAC;IAED,qBAAqB,CACnB,QAAgB,EAChB,OAAe,EACf,KAAgC,EAChC,OAA+B,EAC/B,KAAK;QAEL,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,CACL,CAAC,oBAAoB,CACnB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,KAAK,CAAC,CACrC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAClD,KAAK,CAAC,CAAC;gBACL,MAAM,EAAE,GAAG;gBACX,KAAK,EAAE,GAAG;gBACV,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,IAAI,MAAM;gBAC/D,GAAG,KAAK;aACT,CAAC,EACF,CACH,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatMessageComposerActionInterface, CometChatTabAlignment, ConversationType, DatePattern, CometChatUiKitConstants, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, messageStatus, CometChatLocalize, localize, CometChatSoundManager, CometChatTheme, Palette, Typography, ListItemConfiguration, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, AvatarStyleInterface, CometChatListActionsInterface, CometChatListStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, MessageReceipt, CometChatUIEventHandler, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, ChatConfigurator, DataSource, MessageDataSource, DataSourceDecorator, ExtensionsDataSource, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatContext, CometChatContextType, CometChatContextProvider, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListConfiguration, ReactionListConfigurationInterface, ReactionListStyle, ReactionListStyleInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionListConfiguration, SuggestionListConfigurationInterface, SuggestionItem } from './shared';
|
|
1
|
+
import { BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatMessageComposerActionInterface, CometChatTabAlignment, ConversationType, AdditionalBubbleStylingParams, MessageTimeAlignmentType, MessageListAlignmentType, MessageBubbleAlignmentType, SelectionMode, DatePattern, CometChatUiKitConstants, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, messageStatus, CometChatLocalize, localize, CometChatSoundManager, CometChatTheme, Palette, Typography, ListItemConfiguration, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, AvatarStyleInterface, CometChatListActionsInterface, CometChatListStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, MessageReceipt, CometChatUIEventHandler, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, ChatConfigurator, DataSource, MessageDataSource, DataSourceDecorator, ExtensionsDataSource, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatContext, CometChatContextType, CometChatContextProvider, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListConfiguration, ReactionListConfigurationInterface, ReactionListStyle, ReactionListStyleInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionListConfiguration, SuggestionListConfigurationInterface, SuggestionItem, DateTimeElement, CometChatDateTimePicker, CometChatDateTimePickerInterface, DatePickerStyleInterface } from './shared';
|
|
2
2
|
import { CometChatUsers, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface } from './CometChatUsers';
|
|
3
3
|
import { CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatGroupsInterface } from './CometChatGroups';
|
|
4
4
|
import { CometChatConversations, ConversationInterface, ConversationsConfigurationInterface, ConversationsStyleInterface } from './CometChatConversations';
|
|
@@ -23,7 +23,7 @@ import { CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingEx
|
|
|
23
23
|
import { ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, PollsStyleInterface, SmartRepliesExtension, SmartRepliesConfigurationInterface, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension } from "./extensions";
|
|
24
24
|
import { CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem } from "./CometChatTabs";
|
|
25
25
|
import { CometChatMessageListProps as CometChatMessageListInterface } from "./CometChatMessageList";
|
|
26
|
-
export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension, PollsStyleInterface, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, SmartRepliesConfigurationInterface, CometChatJoinProtectedGroup, CometChatJoinProtectedGroupInterface, JoinProtectedGroupConfigurationInterface, JoinProtectedGroupStyleInterface, CometChatMessageListInterface, CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem, CometChatThreadedMessages, CometChatThreadedMessagesInterface, ThreadedMessagesConfigurationInterface, ThreadedMessagesStyleInterface, CometChatTransferOwnership, CometChatTransferOwnershipInterface, TransferOwnershipConfigurationInterface, ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, SmartRepliesExtension, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingExtension, CallingPackage, CometChatCallButtonConfigurationInterface, CometChatCallButtonsInterface, CometChatMessagesInterface, MessageStyleInterface, MessagesConfiguration, MessagesConfigurationInterface, MessageListConfigurationInterface, CometChatGroupsInterface, ConversationsConfigurationInterface, ConversationsStyleInterface, GroupMemberConfigurationInterface, GroupMembersStyleInterface, GroupScopeStyleInterface, CometChatMessageHeaderInterface, MessageHeaderConfigurationInterface, MessageHeaderStyleInterface, CometChatMessageComposerInterface, MessageComposerConfigurationInterface, MessageComposerStyleInterface, CometChatDetailsInterface, DetailsConfigurationInterface, DetailsStyleInterface, ModalDetailsInterface, ModalDetailsStyleInterface, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface, BannedMembersConfigurationInterface, CometChatBannedMembersInterface, AddMembersConfigurationInterface, CometChatAddMembersInterface, CometChatContextType, CometChatTabAlignment, ConversationType, DataSourceDecorator, DatePattern, ExtensionsDataSource, MessageReceipt, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, CometChatGroupsWithMessages, CometChatGroupsWithMessagesInterface, CometChatUsersWithMessages, CometChatUsersWithMessagesInterface, CometChatConversationsWithMessages, CometChatConversationsWithMessagesInterface, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatMessageListActionsInterface, CometChatMessageListProps, MessageListStyleInterface, CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatConversations, ConversationInterface, CometChatGroupsMembers, CometChatGroupsMembersInterface, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers, BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, ChatConfigurator, DataSource, MessageDataSource, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatLocalize, localize, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, AvatarStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMessageComposerActionInterface, CometChatUiKitConstants, messageStatus, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CreateGroupStyleInterface, CometChatCreateGroup, CometChatCreateGroupInterface, CreateGroupConfigurationInterface, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, CometChatContacts, CometChatContactsInterface, ContactsStyleInterface, StartConversationConfigurationInterface, CometChatMessageInformation, CometChatMessageInformationInterface, MessageInformationConfigurationInterface, MessageInformationStyleInterface, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatCallLogsWithDetails, CallLogsWithDetailsConfigurationInterface, CometChatCallLogs, CallLogsConfiguration, CallLogsConfigurationInterface, CallLogsStyle, CallLogsStyleInterface, CometChatCallLogsConfigurationInterface, CometChatCallLogDetails, CometChatCallLogDetailsConfigurationInterface, CallLogDetailsConfiguration, CallLogDetailsConfigurationInterface, CallLogDetailsStyle, CallLogDetailsStyleInterface, CometChatCallLogHistory, CallLogHistoryConfiguration, CallLogHistoryConfigurationInterface, CallLogHistoryStyle, CallLogHistoryStyleInterface, CometChatCallLogHistoryInterface, CometChatParticipants, CallLogParticipantsConfiguration, CallLogParticipantsConfigurationInterface, CallParticipantsStyle, CallParticipantsStyleInterface, CometChatCallLogParticipantsConfigurationInterface, CometChatRecordings, CallLogRecordingsConfiguration, CallLogRecordingsConfigurationInterface, CallRecordingsStyle, CallRecordingsStyleInterface, CometChatCallLogRecordingsConfigurationInterface, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListConfiguration, ReactionListConfigurationInterface, ReactionListStyle, ReactionListStyleInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionItem, SuggestionListConfiguration, SuggestionListConfigurationInterface };
|
|
26
|
+
export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension, PollsStyleInterface, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, SmartRepliesConfigurationInterface, CometChatJoinProtectedGroup, CometChatJoinProtectedGroupInterface, JoinProtectedGroupConfigurationInterface, JoinProtectedGroupStyleInterface, CometChatMessageListInterface, CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem, CometChatThreadedMessages, CometChatThreadedMessagesInterface, ThreadedMessagesConfigurationInterface, ThreadedMessagesStyleInterface, CometChatTransferOwnership, CometChatTransferOwnershipInterface, TransferOwnershipConfigurationInterface, ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, SmartRepliesExtension, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingExtension, CallingPackage, CometChatCallButtonConfigurationInterface, CometChatCallButtonsInterface, CometChatMessagesInterface, MessageStyleInterface, MessagesConfiguration, MessagesConfigurationInterface, MessageListConfigurationInterface, CometChatGroupsInterface, ConversationsConfigurationInterface, ConversationsStyleInterface, GroupMemberConfigurationInterface, GroupMembersStyleInterface, GroupScopeStyleInterface, CometChatMessageHeaderInterface, MessageHeaderConfigurationInterface, MessageHeaderStyleInterface, CometChatMessageComposerInterface, MessageComposerConfigurationInterface, MessageComposerStyleInterface, CometChatDetailsInterface, DetailsConfigurationInterface, DetailsStyleInterface, ModalDetailsInterface, ModalDetailsStyleInterface, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface, BannedMembersConfigurationInterface, CometChatBannedMembersInterface, AddMembersConfigurationInterface, CometChatAddMembersInterface, CometChatContextType, CometChatTabAlignment, ConversationType, AdditionalBubbleStylingParams, MessageBubbleAlignmentType, MessageListAlignmentType, MessageTimeAlignmentType, SelectionMode, DataSourceDecorator, DatePattern, ExtensionsDataSource, MessageReceipt, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, CometChatGroupsWithMessages, CometChatGroupsWithMessagesInterface, CometChatUsersWithMessages, CometChatUsersWithMessagesInterface, CometChatConversationsWithMessages, CometChatConversationsWithMessagesInterface, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatMessageListActionsInterface, CometChatMessageListProps, MessageListStyleInterface, CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatConversations, ConversationInterface, CometChatGroupsMembers, CometChatGroupsMembersInterface, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers, BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, ChatConfigurator, DataSource, MessageDataSource, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatLocalize, localize, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, AvatarStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMessageComposerActionInterface, CometChatUiKitConstants, messageStatus, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CreateGroupStyleInterface, CometChatCreateGroup, CometChatCreateGroupInterface, CreateGroupConfigurationInterface, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, CometChatContacts, CometChatContactsInterface, ContactsStyleInterface, StartConversationConfigurationInterface, CometChatMessageInformation, CometChatMessageInformationInterface, MessageInformationConfigurationInterface, MessageInformationStyleInterface, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatCallLogsWithDetails, CallLogsWithDetailsConfigurationInterface, CometChatCallLogs, CallLogsConfiguration, CallLogsConfigurationInterface, CallLogsStyle, CallLogsStyleInterface, CometChatCallLogsConfigurationInterface, CometChatCallLogDetails, CometChatCallLogDetailsConfigurationInterface, CallLogDetailsConfiguration, CallLogDetailsConfigurationInterface, CallLogDetailsStyle, CallLogDetailsStyleInterface, CometChatCallLogHistory, CallLogHistoryConfiguration, CallLogHistoryConfigurationInterface, CallLogHistoryStyle, CallLogHistoryStyleInterface, CometChatCallLogHistoryInterface, CometChatParticipants, CallLogParticipantsConfiguration, CallLogParticipantsConfigurationInterface, CallParticipantsStyle, CallParticipantsStyleInterface, CometChatCallLogParticipantsConfigurationInterface, CometChatRecordings, CallLogRecordingsConfiguration, CallLogRecordingsConfigurationInterface, CallRecordingsStyle, CallRecordingsStyleInterface, CometChatCallLogRecordingsConfigurationInterface, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListConfiguration, ReactionListConfigurationInterface, ReactionListStyle, ReactionListStyleInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionItem, SuggestionListConfiguration, SuggestionListConfigurationInterface, DateTimeElement, CometChatDateTimePicker, CometChatDateTimePickerInterface, DatePickerStyleInterface, };
|
|
27
27
|
export { AIConversationStarterExtension } from './AI/AIConversationStarter/AIConversationStarter';
|
|
28
28
|
export { AIConversationStarterDecorator } from './AI/AIConversationStarter/AIConversationStarterDecorator';
|
|
29
29
|
export { AIConversationStarterStyle } from './AI/AIConversationStarter/AIConversationStarterStyle';
|
package/lib/index.js
CHANGED
|
@@ -13,7 +13,7 @@ ChatConfigurator, MessageDataSource, DataSourceDecorator, ExtensionsDataSource,
|
|
|
13
13
|
//CometChatUIKit
|
|
14
14
|
CometChatUIKit, CometChatUIKitHelper, UIKitSettings,
|
|
15
15
|
//Context
|
|
16
|
-
CometChatContext, CometChatContextProvider, CometChatMediaRecorder, MediaRecorderStyle, CometChatFormBubble, CometChatCardBubble, CometChatSchedulerBubble, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatReactions, ReactionsConfiguration, ReactionsStyle, CometChatReactionList, ReactionListConfiguration, ReactionListStyle, CometChatQuickReactions, QuickReactionsConfiguration, QuickReactionsStyle, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, SuggestionListConfiguration, SuggestionItem, } from './shared';
|
|
16
|
+
CometChatContext, CometChatContextProvider, CometChatMediaRecorder, MediaRecorderStyle, CometChatFormBubble, CometChatCardBubble, CometChatSchedulerBubble, APIAction, ActionEntity, BaseInputElement, BaseInteractiveElement, ButtonElement, CardMessage, CheckboxElement, CustomAction, CustomInteractiveMessage, DropdownElement, ElementEntity, FormMessage, SchedulerMessage, LabelElement, OptionElement, RadioButtonElement, SingleSelectElement, TextInputElement, URLNavigationAction, CometChatReactions, ReactionsConfiguration, ReactionsStyle, CometChatReactionList, ReactionListConfiguration, ReactionListStyle, CometChatQuickReactions, QuickReactionsConfiguration, QuickReactionsStyle, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, SuggestionListConfiguration, SuggestionItem, DateTimeElement, CometChatDateTimePicker, } from './shared';
|
|
17
17
|
import { CometChatUsers, } from './CometChatUsers';
|
|
18
18
|
import { CometChatGroups, } from './CometChatGroups';
|
|
19
19
|
import { CometChatConversations, } from './CometChatConversations';
|
|
@@ -58,7 +58,9 @@ CometChatReactions, ReactionsConfiguration, ReactionsStyle, CometChatReactionLis
|
|
|
58
58
|
CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle,
|
|
59
59
|
/* Emoji Keyboard */
|
|
60
60
|
/* Text Formatters */
|
|
61
|
-
CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, SuggestionItem, SuggestionListConfiguration
|
|
61
|
+
CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter, MentionTextStyle, CometChatSuggestionList, SuggestionItem, SuggestionListConfiguration,
|
|
62
|
+
/* Text Formatters */
|
|
63
|
+
DateTimeElement, CometChatDateTimePicker, };
|
|
62
64
|
// AI
|
|
63
65
|
export { AIConversationStarterExtension } from './AI/AIConversationStarter/AIConversationStarter';
|
|
64
66
|
export { AIConversationStarterDecorator } from './AI/AIConversationStarter/AIConversationStarterDecorator';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,wBAAwB,EAcxB,uBAAuB;AAEvB,OAAO;AACP,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,aAAa;AAIb,WAAW;AACX,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,OAAO,EACP,UAAU;AACV,MAAM;AACN,qBAAqB,EACrB,iBAAiB,EAGjB,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EAEb,oBAAoB,EAEpB,mBAAmB,EAGnB,oBAAoB,EAGpB,mBAAmB,EAGnB,oBAAoB,EAGpB,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B;AAS3B,QAAQ;AACR,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,aAAa;AACb,+CAA+C;AAE/C,WAAW;AACX,gBAAgB,EAEhB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB;AACpB,gBAAgB;AAChB,cAAc,EACd,oBAAoB,EACpB,aAAa;AAEb,SAAS;AACT,gBAAgB,EAEhB,wBAAwB,EAmBxB,sBAAsB,EAGtB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,MAAM,kDAAkD,CAAA;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAA;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAA;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAA;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACzH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAA;AAC1G,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAA;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAA;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -3,13 +3,13 @@ import { UIKitSettings } from "./UIKitSettings";
|
|
|
3
3
|
import { ExtensionsDataSource } from "../framework";
|
|
4
4
|
import { CometChatSoundManager } from "../utils";
|
|
5
5
|
import { CometChatLocalize } from "../resources";
|
|
6
|
-
import { CardMessage, CustomInteractiveMessage, FormMessage } from "../modals/InteractiveData";
|
|
6
|
+
import { CardMessage, CustomInteractiveMessage, FormMessage, SchedulerMessage } from "../modals/InteractiveData";
|
|
7
7
|
import { AIExtensionDataSource } from "../../AI/AIExtensionDataSource";
|
|
8
|
-
import { SchedulerMessage } from "../modals/InteractiveData/InteractiveMessage";
|
|
9
8
|
export declare class CometChatUIKit {
|
|
10
9
|
static uiKitSettings: UIKitSettings;
|
|
11
10
|
static aiFeatures: AIExtensionDataSource[];
|
|
12
11
|
static loggedInUser: null | CometChat.User;
|
|
12
|
+
static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
|
|
13
13
|
private static loginListenerID;
|
|
14
14
|
private static isLoginListenerAttached;
|
|
15
15
|
static init(uiKitSettings: UIKitSettings): Promise<boolean>;
|
|
@@ -19,6 +19,8 @@ export declare class CometChatUIKit {
|
|
|
19
19
|
private static enableExtensions;
|
|
20
20
|
static getLoggedInUser(): Promise<CometChat.User>;
|
|
21
21
|
private static setLoggedInUser;
|
|
22
|
+
private static setConversationUpdateSettings;
|
|
23
|
+
static getConversationUpdateSettings(): CometChat.ConversationUpdateSettings;
|
|
22
24
|
private static removeLoggedInUser;
|
|
23
25
|
private static removeListener;
|
|
24
26
|
static login({ uid, authToken }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Platform } from "react-native";
|
|
2
2
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
3
|
import { CometChatUIKitHelper } from "./CometChatUIKitHelper";
|
|
4
|
-
import { messageStatus } from "../utils/CometChatMessageHelper";
|
|
4
|
+
import { getUnixTimestampInMilliseconds, messageStatus } from "../utils/CometChatMessageHelper";
|
|
5
5
|
import { CallingExtension } from "../../calls/CallingExtension";
|
|
6
6
|
import { CallingPackage } from "../../calls/CallingPackage";
|
|
7
7
|
import { StickersExtension } from "../../extensions/Stickers";
|
|
@@ -23,11 +23,11 @@ import { AISmartRepliesExtension } from "../../AI/AISmartReplies/AISmartReplies"
|
|
|
23
23
|
import { AIConversationSummaryExtension } from "../../AI/AIConversationSummary/AIConversationSummaryExtension";
|
|
24
24
|
import { AIAssistBotExtension } from "../../AI/AIAssistBot/AIAssistBotExtension";
|
|
25
25
|
import { permissionUtil } from "../utils/PermissionUtil";
|
|
26
|
-
import { getUnixTimestamp, } from '../../shared/utils/CometChatMessageHelper';
|
|
27
26
|
export class CometChatUIKit {
|
|
28
27
|
static uiKitSettings;
|
|
29
28
|
static aiFeatures;
|
|
30
29
|
static loggedInUser = null;
|
|
30
|
+
static conversationUpdateSettings = new CometChat.ConversationUpdateSettings();
|
|
31
31
|
static loginListenerID = ``;
|
|
32
32
|
static isLoginListenerAttached = false;
|
|
33
33
|
static init(uiKitSettings) {
|
|
@@ -36,12 +36,14 @@ export class CometChatUIKit {
|
|
|
36
36
|
...uiKitSettings
|
|
37
37
|
};
|
|
38
38
|
var appSetting = new CometChat.AppSettingsBuilder()
|
|
39
|
-
.subscribePresenceForAllUsers()
|
|
40
39
|
.autoEstablishSocketConnection(uiKitSettings.autoEstablishSocketConnection)
|
|
41
40
|
.overrideAdminHost(uiKitSettings?.overrideAdminHost)
|
|
42
41
|
.overrideClientHost(uiKitSettings?.overrideClientHost)
|
|
43
42
|
.setRegion(uiKitSettings.region);
|
|
44
43
|
appSetting.subscriptionType = uiKitSettings.subscriptionType;
|
|
44
|
+
if (appSetting.subscriptionType === "ROLES" && Array.isArray(uiKitSettings.roles) && uiKitSettings.roles.length > 0) {
|
|
45
|
+
appSetting.roles = uiKitSettings.roles;
|
|
46
|
+
}
|
|
45
47
|
CometChatUIKit.attachListener();
|
|
46
48
|
return CometChat.init(uiKitSettings.appId, appSetting.build()).then(() => {
|
|
47
49
|
CometChat.setSource("uikit-v4", Platform.OS, "react-native");
|
|
@@ -53,6 +55,10 @@ export class CometChatUIKit {
|
|
|
53
55
|
if (user) {
|
|
54
56
|
this.enableExtensions();
|
|
55
57
|
}
|
|
58
|
+
CometChat.getConversationUpdateSettings()
|
|
59
|
+
.then((conversationUpdateSettings) => {
|
|
60
|
+
CometChatUIKit.setConversationUpdateSettings(conversationUpdateSettings);
|
|
61
|
+
});
|
|
56
62
|
})
|
|
57
63
|
.catch(error => {
|
|
58
64
|
// CometChatUIKit.setLoggedInUser(null);
|
|
@@ -94,6 +100,10 @@ export class CometChatUIKit {
|
|
|
94
100
|
CometChat.addLoginListener(CometChatUIKit.loginListenerID, new CometChat.LoginListener({
|
|
95
101
|
onLoggedIn: (user) => {
|
|
96
102
|
CometChatUIKit.setLoggedInUser(user);
|
|
103
|
+
CometChat.getConversationUpdateSettings()
|
|
104
|
+
.then((conversationUpdateSettings) => {
|
|
105
|
+
CometChatUIKit.setConversationUpdateSettings(conversationUpdateSettings);
|
|
106
|
+
});
|
|
97
107
|
},
|
|
98
108
|
onLoggedOut: () => {
|
|
99
109
|
CometChatUIKit.removeLoggedInUser();
|
|
@@ -135,6 +145,12 @@ export class CometChatUIKit {
|
|
|
135
145
|
static setLoggedInUser(user) {
|
|
136
146
|
this.loggedInUser = user;
|
|
137
147
|
}
|
|
148
|
+
static setConversationUpdateSettings(conversationUpdateSettings) {
|
|
149
|
+
this.conversationUpdateSettings = conversationUpdateSettings;
|
|
150
|
+
}
|
|
151
|
+
static getConversationUpdateSettings() {
|
|
152
|
+
return this.conversationUpdateSettings;
|
|
153
|
+
}
|
|
138
154
|
static removeLoggedInUser() {
|
|
139
155
|
this.loggedInUser = null;
|
|
140
156
|
}
|
|
@@ -151,6 +167,7 @@ export class CometChatUIKit {
|
|
|
151
167
|
if (uid) {
|
|
152
168
|
let user = await CometChat.login(uid, CometChatUIKit.uiKitSettings?.authKey).catch(e => Promise.reject(e));
|
|
153
169
|
CometChatUIKit.setLoggedInUser(user);
|
|
170
|
+
CometChatUIKit.setConversationUpdateSettings(await CometChat.getConversationUpdateSettings());
|
|
154
171
|
this.enableExtensions();
|
|
155
172
|
return user;
|
|
156
173
|
}
|
|
@@ -200,7 +217,7 @@ export class CometChatUIKit {
|
|
|
200
217
|
static sendCustomMessage(message) {
|
|
201
218
|
return new Promise((resolve, reject) => {
|
|
202
219
|
if (!message.getMuid()) {
|
|
203
|
-
message.setMuid(String(
|
|
220
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
204
221
|
}
|
|
205
222
|
if (!message.getSender()) {
|
|
206
223
|
message.setSender(this.loggedInUser);
|
|
@@ -223,7 +240,7 @@ export class CometChatUIKit {
|
|
|
223
240
|
static sendMediaMessage(message) {
|
|
224
241
|
return new Promise((resolve, reject) => {
|
|
225
242
|
if (!message.getMuid()) {
|
|
226
|
-
message.setMuid(String(
|
|
243
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
227
244
|
}
|
|
228
245
|
if (!message.getSender()) {
|
|
229
246
|
message.setSender(this.loggedInUser);
|
|
@@ -269,7 +286,7 @@ export class CometChatUIKit {
|
|
|
269
286
|
static sendTextMessage(message) {
|
|
270
287
|
return new Promise((resolve, reject) => {
|
|
271
288
|
if (!message?.getMuid()) {
|
|
272
|
-
message.setMuid(String(
|
|
289
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
273
290
|
}
|
|
274
291
|
if (!message?.getSender()) {
|
|
275
292
|
message.setSender(this.loggedInUser);
|
|
@@ -296,7 +313,7 @@ export class CometChatUIKit {
|
|
|
296
313
|
static sendSchedulerMessage(message, disableLocalEvents = false) {
|
|
297
314
|
return new Promise((resolve, reject) => {
|
|
298
315
|
if (!message.getMuid()) {
|
|
299
|
-
message.setMuid(String(
|
|
316
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
300
317
|
}
|
|
301
318
|
if (!message.getSender()) {
|
|
302
319
|
message.setSender(this.loggedInUser);
|
|
@@ -329,7 +346,7 @@ export class CometChatUIKit {
|
|
|
329
346
|
static sendFormMessage(message, disableLocalEvents = false) {
|
|
330
347
|
return new Promise((resolve, reject) => {
|
|
331
348
|
if (!message.getMuid()) {
|
|
332
|
-
message.setMuid(String(
|
|
349
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
333
350
|
}
|
|
334
351
|
if (!message.getSender()) {
|
|
335
352
|
message.setSender(this.loggedInUser);
|
|
@@ -363,7 +380,7 @@ export class CometChatUIKit {
|
|
|
363
380
|
static sendCardMessage(message, disableLocalEvents = false) {
|
|
364
381
|
return new Promise((resolve, reject) => {
|
|
365
382
|
if (!message.getMuid()) {
|
|
366
|
-
message.setMuid(String(
|
|
383
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
367
384
|
}
|
|
368
385
|
if (!message.getSender()) {
|
|
369
386
|
message.setSender(this.loggedInUser);
|
|
@@ -398,7 +415,7 @@ export class CometChatUIKit {
|
|
|
398
415
|
static sendCustomInteractiveMessage(message, disableLocalEvents = false) {
|
|
399
416
|
return new Promise((resolve, reject) => {
|
|
400
417
|
if (!message.getMuid()) {
|
|
401
|
-
message.setMuid(String(
|
|
418
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
402
419
|
}
|
|
403
420
|
if (!message.getSender()) {
|
|
404
421
|
message.setSender(this.loggedInUser);
|