@cometchat/chat-uikit-react-native 4.3.7 → 4.3.8
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/AIAssistBotDecorator.d.ts +23 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +127 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js +17 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.d.ts +27 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js +38 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +12 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js +188 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -0
- package/lib/AI/AIAssistBot/configuration.d.ts +18 -0
- package/lib/AI/AIAssistBot/configuration.js +19 -0
- package/lib/AI/AIAssistBot/configuration.js.map +1 -0
- package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
- package/lib/AI/AIAssistBot/resources/index.d.ts +2 -0
- package/lib/AI/AIAssistBot/resources/index.js +3 -0
- package/lib/AI/AIAssistBot/resources/index.js.map +1 -0
- package/lib/AI/AIBaseConfiguration.js +14 -0
- package/lib/AI/AIBaseConfiguration.js.map +1 -0
- package/lib/AI/AIBaseStyle.d.ts +24 -0
- package/lib/AI/AIBaseStyle.js +31 -0
- package/lib/AI/AIBaseStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.d.ts +8 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js +17 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +187 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +9 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +13 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/configuration.d.ts +7 -0
- package/lib/AI/AIConversationStarter/configuration.js +10 -0
- package/lib/AI/AIConversationStarter/configuration.js.map +1 -0
- package/lib/AI/AIConversationStarter/style.d.ts +19 -0
- package/lib/AI/AIConversationStarter/style.js +62 -0
- package/lib/AI/AIConversationStarter/style.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +25 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +149 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +17 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.d.ts +15 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +18 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +14 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +134 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -0
- package/lib/AI/AIConversationSummary/configuration.d.ts +9 -0
- package/lib/AI/AIConversationSummary/configuration.js +13 -0
- package/lib/AI/AIConversationSummary/configuration.js.map +1 -0
- package/lib/AI/AIConversationSummary/resources/close.png +0 -0
- package/lib/AI/AIConversationSummary/resources/index.d.ts +2 -0
- package/lib/AI/AIConversationSummary/resources/index.js +3 -0
- package/lib/AI/AIConversationSummary/resources/index.js.map +1 -0
- package/lib/AI/AIExtensionDataSource.d.ts +6 -0
- package/lib/AI/AIExtensionDataSource.js +11 -0
- package/lib/AI/AIExtensionDataSource.js.map +1 -0
- package/lib/AI/AIOptionsStyle.d.ts +10 -0
- package/lib/AI/AIOptionsStyle.js +14 -0
- package/lib/AI/AIOptionsStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartReplies.d.ts +8 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js +17 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +239 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.d.ts +12 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +15 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/configuration.d.ts +7 -0
- package/lib/AI/AISmartReplies/configuration.js +10 -0
- package/lib/AI/AISmartReplies/configuration.js.map +1 -0
- package/lib/AI/CardView.d.ts +18 -0
- package/lib/AI/CardView.js +45 -0
- package/lib/AI/CardView.js.map +1 -0
- package/lib/AI/CardViewStyle.d.ts +29 -0
- package/lib/AI/CardViewStyle.js +36 -0
- package/lib/AI/CardViewStyle.js.map +1 -0
- package/lib/AI/resources/ai-empty.png +0 -0
- package/lib/AI/resources/ai-error.png +0 -0
- package/lib/AI/resources/index.d.ts +4 -0
- package/lib/AI/resources/index.js +5 -0
- package/lib/AI/resources/index.js.map +1 -0
- package/lib/AI/resources/spineer.png +0 -0
- package/lib/AI/style.d.ts +51 -0
- package/lib/AI/style.js +139 -0
- package/lib/AI/style.js.map +1 -0
- package/lib/AI/utils.d.ts +38 -0
- package/lib/AI/utils.js +28 -0
- package/lib/AI/utils.js.map +1 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +1 -2
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +1 -2
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatContacts/CometChatContacts.d.ts +1 -2
- package/lib/CometChatContacts/CometChatContacts.js +10 -7
- package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
- package/lib/CometChatContacts/Header.js.map +1 -1
- package/lib/CometChatContacts/styles.d.ts +1 -100
- package/lib/CometChatConversations/CometChatConversations.js +208 -114
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js +12 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- 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/CometChatConversations/style.d.ts +1 -61
- package/lib/CometChatConversations/style.js +5 -1
- package/lib/CometChatConversations/style.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +1 -2
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +2 -2
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/lib/CometChatConversationsWithMessages/styles.d.ts +1 -12
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +1 -2
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
- package/lib/CometChatCreateGroup/Header.d.ts +1 -2
- 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/CometChatCreateGroup/style.d.ts +1 -46
- package/lib/CometChatDetails/CometChatDetails.js +11 -8
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/Header.d.ts +1 -2
- package/lib/CometChatDetails/listners.d.ts +4 -4
- 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/CometChatDetails/styles.d.ts +1 -28
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +18 -5
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- 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/index.d.ts +2 -1
- package/lib/CometChatGroupMembers/resources/index.js +2 -1
- package/lib/CometChatGroupMembers/resources/index.js.map +1 -1
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroupMembers/style.d.ts +1 -31
- package/lib/CometChatGroups/CometChatGroups.js +20 -8
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
- 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/index.d.ts +2 -1
- package/lib/CometChatGroups/resources/index.js +2 -1
- package/lib/CometChatGroups/resources/index.js.map +1 -1
- 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/CometChatGroups/style.d.ts +1 -16
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +1 -2
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatGroupsWithMessages/styles.d.ts +1 -12
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +1 -2
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +1 -2
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatJoinProtectedGroup/style.d.ts +1 -11
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +534 -52
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +12 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
- 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/index.d.ts +2 -0
- package/lib/CometChatMessageComposer/resources/index.js +4 -0
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -1
- 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/CometChatMessageComposer/styles.d.ts +1 -28
- package/lib/CometChatMessageComposer/styles.js +1 -3
- package/lib/CometChatMessageComposer/styles.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +8 -2
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
- package/lib/CometChatMessageHeader/listners.d.ts +4 -4
- package/lib/CometChatMessageHeader/listners.js +4 -5
- package/lib/CometChatMessageHeader/listners.js.map +1 -1
- 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/CometChatMessageHeader/styles.d.ts +1 -16
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +32 -18
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
- package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
- package/lib/CometChatMessageInformation/styles.d.ts +1 -23
- package/lib/CometChatMessageList/CometChatMessageList.js +782 -266
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js +30 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- 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/index.d.ts +3 -1
- package/lib/CometChatMessageList/resources/index.js +3 -1
- package/lib/CometChatMessageList/resources/index.js.map +1 -1
- 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/CometChatMessageList/style.d.ts +1 -52
- package/lib/CometChatMessages/CometChatMessages.js +31 -19
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.js +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatMessages/style.d.ts +1 -21
- package/lib/CometChatTabs/CometChatTabs.d.ts +1 -2
- package/lib/CometChatTabs/CometChatTabs.js +1 -1
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +54 -20
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +1 -2
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +15 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
- 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/CometChatThreadedMessages/style.d.ts +1 -28
- package/lib/CometChatThreadedMessages/style.js +3 -1
- package/lib/CometChatThreadedMessages/style.js.map +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +1 -2
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.js +1 -1
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +1 -2
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +1 -12
- package/lib/calls/CallEvents.d.ts +1 -0
- package/lib/calls/CallEvents.js +1 -0
- package/lib/calls/CallEvents.js.map +1 -1
- package/lib/calls/CallUtils.d.ts +3 -0
- package/lib/calls/CallUtils.js +106 -50
- package/lib/calls/CallUtils.js.map +1 -1
- package/lib/calls/CallingDetailsUtils.d.ts +4 -4
- package/lib/calls/CallingDetailsUtils.js +79 -11
- package/lib/calls/CallingDetailsUtils.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +6 -5
- package/lib/calls/CallingExtentionDecorator.js +41 -28
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CallingPackage.js +13 -2
- package/lib/calls/CallingPackage.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +1 -2
- 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/CometChatCallBubble/styles.d.ts +1 -20
- package/lib/calls/CometChatCallBubble/styles.js +2 -1
- package/lib/calls/CometChatCallBubble/styles.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +1 -2
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +13 -4
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallButtons/style.d.ts +1 -12
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +58 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.d.ts +12 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +19 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +180 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogDetails/index.js +5 -0
- package/lib/calls/CometChatCallLogDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js +3 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogDetails/style.js +15 -0
- package/lib/calls/CometChatCallLogDetails/style.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +33 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.d.ts +40 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +25 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +183 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogHistory/index.js +5 -0
- package/lib/calls/CometChatCallLogHistory/index.js.map +1 -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/index.d.ts +14 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js +15 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js.map +1 -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/CometChatCallLogHistory/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogHistory/style.js +24 -0
- package/lib/calls/CometChatCallLogHistory/style.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +32 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.d.ts +24 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +31 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +96 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogParticipants/index.js +5 -0
- package/lib/calls/CometChatCallLogParticipants/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js +3 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogParticipants/style.js +24 -0
- package/lib/calls/CometChatCallLogParticipants/style.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +33 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.d.ts +26 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +33 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +133 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogRecordings/index.js +5 -0
- package/lib/calls/CometChatCallLogRecordings/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js +4 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogRecordings/style.js +24 -0
- package/lib/calls/CometChatCallLogRecordings/style.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +44 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.d.ts +42 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js +49 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +288 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -0
- package/lib/calls/CometChatCallLogs/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogs/index.js +5 -0
- package/lib/calls/CometChatCallLogs/index.js.map +1 -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/index.d.ts +12 -0
- package/lib/calls/CometChatCallLogs/resources/index.js +13 -0
- package/lib/calls/CometChatCallLogs/resources/index.js.map +1 -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/CometChatCallLogs/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogs/style.js +24 -0
- package/lib/calls/CometChatCallLogs/style.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.d.ts +8 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js +2 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +11 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +23 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js +3 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js +10 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +14 -11
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- 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/CometChatIncomingCall/styles.d.ts +1 -9
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +1 -2
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -2
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +21 -12
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/index.d.ts +7 -1
- package/lib/calls/index.js +7 -1
- package/lib/calls/index.js.map +1 -1
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/index.d.ts +2 -1
- package/lib/calls/resources/index.js +2 -1
- package/lib/calls/resources/index.js.map +1 -1
- package/lib/calls/resources/nextarrow.png +0 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +1 -2
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeBubble/styles.d.ts +1 -33
- package/lib/extensions/CollaborativeBubble/styles.js +2 -0
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +3 -4
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +2 -2
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- 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/CollaborativeWhiteboardExtension.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -4
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +2 -2
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ExtensionConstants.js +1 -1
- package/lib/extensions/ExtensionConstants.js.map +1 -1
- package/lib/extensions/ExtensionModerator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +1 -2
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +4 -4
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +33 -6
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +3 -3
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +3 -2
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +27 -6
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +66 -5
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/Header.d.ts +1 -2
- package/lib/extensions/Polls/Polls.d.ts +1 -2
- package/lib/extensions/Polls/Polls.js +109 -78
- package/lib/extensions/Polls/Polls.js.map +1 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +1 -2
- package/lib/extensions/Polls/PollsBubble.js +43 -16
- package/lib/extensions/Polls/PollsBubble.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +3 -4
- package/lib/extensions/Polls/PollsDecorator.js +2 -2
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsExtension.js.map +1 -1
- 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/Polls/style.d.ts +1 -45
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +16 -8
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +1 -2
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +1 -2
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +6 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +1 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +3 -3
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +1 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +1 -2
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -5
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +19 -8
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +2 -3
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +2 -2
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +5 -3
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js +3 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -0
- package/lib/extensions/index.d.ts +1 -2
- package/lib/extensions/index.js +1 -2
- package/lib/extensions/index.js.map +1 -1
- package/lib/index.d.ts +24 -4
- package/lib/index.js +37 -7
- package/lib/index.js.map +1 -1
- package/lib/shared/CometChatContext.d.ts +2 -4
- package/lib/shared/CometChatContext.js +4 -1
- package/lib/shared/CometChatContext.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +39 -3
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +295 -57
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +5 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
- package/lib/shared/CometChatUiKit/index.d.ts +1 -1
- package/lib/shared/CometChatUiKit/index.js +1 -1
- package/lib/shared/CometChatUiKit/index.js.map +1 -1
- 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/index.d.ts +6 -0
- package/lib/shared/assets/images/index.js +12 -0
- package/lib/shared/assets/images/index.js.map +1 -1
- package/lib/shared/assets/images/sending.png +0 -0
- package/lib/shared/base/vars.d.ts +8 -0
- package/lib/shared/base/vars.js +7 -0
- package/lib/shared/base/vars.js.map +1 -0
- package/lib/shared/constants/UIKitConstants.d.ts +82 -44
- package/lib/shared/constants/UIKitConstants.js +38 -1
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +63 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +50 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +69 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +3 -1
- package/lib/shared/events/CometChatUIEvents.js +3 -0
- package/lib/shared/events/CometChatUIEvents.js.map +1 -1
- package/lib/shared/events/ListenerInitializer.d.ts +6 -0
- package/lib/shared/events/ListenerInitializer.js +73 -0
- package/lib/shared/events/ListenerInitializer.js.map +1 -0
- package/lib/shared/events/messages.d.ts +18 -1
- package/lib/shared/events/messages.js +17 -0
- package/lib/shared/events/messages.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +323 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.d.ts +12 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +14 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.d.ts +3 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js +4 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/CometChatTextFormatter.js +218 -0
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +129 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/index.d.ts +5 -0
- package/lib/shared/formatters/index.js +6 -0
- package/lib/shared/formatters/index.js.map +1 -0
- package/lib/shared/framework/ChatConfigurator.js.map +1 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +29 -7
- package/lib/shared/framework/DataSourceDecorator.js +61 -10
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.js +295 -65
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- 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/SwipeRow.d.ts +61 -64
- package/lib/shared/helper/SwipeRow.js.map +1 -1
- package/lib/shared/helper/Toast.d.ts +1 -2
- package/lib/shared/helper/functions.js.map +1 -1
- package/lib/shared/helper/helperFunctions.js.map +1 -1
- package/lib/shared/helper/useKeyboard.d.ts +2 -1
- package/lib/shared/helper/useKeyboard.js +19 -4
- package/lib/shared/helper/useKeyboard.js.map +1 -1
- package/lib/shared/index.d.ts +4 -3
- package/lib/shared/index.js +5 -4
- package/lib/shared/index.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.d.ts +23 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +107 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +43 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +57 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +14 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +7 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js +90 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +14 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js +45 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.js +339 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.d.ts +16 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js +41 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.js +167 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +10 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js +23 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.js +131 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +14 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js +29 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +52 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.js +204 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.d.ts +12 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js +20 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.js +84 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +5 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +13 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js +56 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.d.ts +7 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js +6 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js +3 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.d.ts +19 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.d.ts +37 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +54 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js +35 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js.map +1 -0
- 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/CometChatCalendar/Icons/index.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.d.ts +13 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +75 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +157 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js +48 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js +34 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js +16 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js +18 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js +19 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js +41 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +17 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js +58 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/index.d.ts +5 -0
- package/lib/shared/libs/CometChatCalendar/index.js +6 -0
- package/lib/shared/libs/CometChatCalendar/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +227 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +747 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +79 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +161 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -0
- package/lib/shared/libs/ImageZoom/helper.d.ts +8 -0
- package/lib/shared/libs/ImageZoom/helper.js +90 -0
- package/lib/shared/libs/ImageZoom/helper.js.map +1 -0
- package/lib/shared/libs/ImageZoom/index.d.ts +4 -0
- package/lib/shared/libs/ImageZoom/index.js +4 -0
- package/lib/shared/libs/ImageZoom/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/types/index.d.ts +91 -0
- package/lib/shared/libs/ImageZoom/types/index.js +8 -0
- package/lib/shared/libs/ImageZoom/types/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/DRMType.d.ts +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/FilterType.d.ts +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/Video.d.ts +48 -0
- package/lib/shared/libs/VideoPlayer/Video.js +437 -0
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +10 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +313 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -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/libs/VideoPlayerControls/components/Back/Back.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +28 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +54 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +8 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +7 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +4 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +20 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +20 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js +37 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js +26 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +39 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js +31 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.d.ts +14 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js +30 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js +61 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +17 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +24 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js +55 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/styles.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js +19 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/types.d.ts +248 -0
- package/lib/shared/libs/VideoPlayerControls/types.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/types.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/utils.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js +46 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +64 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +82 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +239 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/Modal.d.ts +30 -0
- package/lib/shared/libs/datePickerModal/Modal.js +134 -0
- package/lib/shared/libs/datePickerModal/Modal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/index.d.ts +3 -0
- package/lib/shared/libs/datePickerModal/index.js +4 -0
- package/lib/shared/libs/datePickerModal/index.js.map +1 -0
- package/lib/shared/libs/datePickerModal/utils.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/utils.js +22 -0
- package/lib/shared/libs/datePickerModal/utils.js.map +1 -0
- package/lib/shared/libs/luxon/src/datetime.d.ts +1181 -0
- package/lib/shared/libs/luxon/src/datetime.js +2095 -0
- package/lib/shared/libs/luxon/src/datetime.js.map +1 -0
- package/lib/shared/libs/luxon/src/duration.d.ts +637 -0
- package/lib/shared/libs/luxon/src/duration.js +905 -0
- package/lib/shared/libs/luxon/src/duration.js.map +1 -0
- package/lib/shared/libs/luxon/src/errors.d.ts +46 -0
- package/lib/shared/libs/luxon/src/errors.js +57 -0
- package/lib/shared/libs/luxon/src/errors.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/conversions.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js +163 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/diff.d.ts +2 -0
- package/lib/shared/libs/luxon/src/impl/diff.js +80 -0
- package/lib/shared/libs/luxon/src/impl/diff.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/digits.d.ts +4 -0
- package/lib/shared/libs/luxon/src/impl/digits.js +73 -0
- package/lib/shared/libs/luxon/src/impl/digits.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/english.d.ts +22 -0
- package/lib/shared/libs/luxon/src/impl/english.js +204 -0
- package/lib/shared/libs/luxon/src/impl/english.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formats.d.ts +154 -0
- package/lib/shared/libs/luxon/src/impl/formats.js +152 -0
- package/lib/shared/libs/luxon/src/impl/formats.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formatter.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js +367 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/invalid.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js +15 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +86 -0
- package/lib/shared/libs/luxon/src/impl/locale.js +460 -0
- package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js +212 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.d.ts +27 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js +413 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/util.d.ts +38 -0
- package/lib/shared/libs/luxon/src/impl/util.js +257 -0
- package/lib/shared/libs/luxon/src/impl/util.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.d.ts +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js +41 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js.map +1 -0
- package/lib/shared/libs/luxon/src/info.d.ts +178 -0
- package/lib/shared/libs/luxon/src/info.js +182 -0
- package/lib/shared/libs/luxon/src/info.js.map +1 -0
- package/lib/shared/libs/luxon/src/interval.d.ts +328 -0
- package/lib/shared/libs/luxon/src/interval.js +606 -0
- package/lib/shared/libs/luxon/src/interval.js.map +1 -0
- package/lib/shared/libs/luxon/src/luxon.d.ts +12 -0
- package/lib/shared/libs/luxon/src/luxon.js +13 -0
- package/lib/shared/libs/luxon/src/luxon.js.map +1 -0
- package/lib/shared/libs/luxon/src/settings.d.ts +115 -0
- package/lib/shared/libs/luxon/src/settings.js +149 -0
- package/lib/shared/libs/luxon/src/settings.js.map +1 -0
- package/lib/shared/libs/luxon/src/zone.d.ts +66 -0
- package/lib/shared/libs/luxon/src/zone.js +83 -0
- package/lib/shared/libs/luxon/src/zone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +53 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js +167 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.d.ts +38 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js +90 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +20 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js +45 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +23 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js +52 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.d.ts +15 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +52 -1
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.d.ts +73 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +104 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.d.ts +12 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.d.ts +21 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +30 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.d.ts +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.d.ts +41 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +61 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.d.ts +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +80 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +89 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.d.ts +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +43 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.d.ts +38 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.d.ts +52 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +88 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.d.ts +46 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +75 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +29 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.d.ts +26 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.d.ts +59 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +91 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +10 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +11 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.d.ts +22 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.d.ts +25 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +61 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.d.ts +70 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +118 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +29 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.d.ts +68 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +125 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +63 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +106 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js +5 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/index.js +6 -0
- package/lib/shared/modals/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/index.d.ts +4 -1
- package/lib/shared/modals/index.js +2 -1
- package/lib/shared/modals/index.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +1229 -335
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +2 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +163 -119
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +159 -114
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +52 -8
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +154 -109
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +152 -107
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +172 -128
- package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +315 -0
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +226 -181
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +138 -93
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +138 -93
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +180 -135
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +194 -149
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +173 -128
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +187 -142
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +2 -2
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
- 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/resources/CometChatSoundManager/sound.d.ts +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.js +35 -35
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +43 -17
- package/lib/shared/resources/CometChatTheme/Palette.js +108 -38
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +23 -1
- package/lib/shared/resources/CometChatTheme/Typography.js +100 -0
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +1 -2
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +1 -5
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +6 -8
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +1 -9
- package/lib/shared/utils/CommonUtils.d.ts +6 -0
- package/lib/shared/utils/CommonUtils.js +70 -0
- package/lib/shared/utils/CommonUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +0 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +1 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
- 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/utils/InteractiveMessageUtils.d.ts +8 -0
- package/lib/shared/utils/InteractiveMessageUtils.js +48 -0
- package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -0
- package/lib/shared/utils/MessageUtils.d.ts +1 -2
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/NetworkUtils.d.ts +9 -0
- package/lib/shared/utils/NetworkUtils.js +28 -0
- package/lib/shared/utils/NetworkUtils.js.map +1 -0
- package/lib/shared/utils/PermissionUtil.d.ts +27 -0
- package/lib/shared/utils/PermissionUtil.js +122 -0
- package/lib/shared/utils/PermissionUtil.js.map +1 -0
- package/lib/shared/utils/SchedulerUtils.d.ts +17 -0
- package/lib/shared/utils/SchedulerUtils.js +142 -0
- package/lib/shared/utils/SchedulerUtils.js.map +1 -0
- package/lib/shared/utils/conversationUtils.js +14 -1
- package/lib/shared/utils/conversationUtils.js.map +1 -1
- package/lib/shared/utils/icsToJson.d.ts +2 -0
- package/lib/shared/utils/icsToJson.js +108 -0
- package/lib/shared/utils/icsToJson.js.map +1 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +16 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +40 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAICard/resources/index.js +4 -0
- package/lib/shared/views/CometChatAICard/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +4 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +2 -2
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +33 -29
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatActionSheet/style.d.ts +1 -44
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +1 -2
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +21 -3
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +1 -26
- package/lib/shared/views/CometChatAudioBubble/style.js +4 -2
- package/lib/shared/views/CometChatAudioBubble/style.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +1 -2
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +5 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatAvatar/styles.d.ts +1 -21
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +1 -2
- package/lib/shared/views/CometChatBadge/styles.d.ts +1 -13
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +4 -2
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +21 -15
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +1 -50
- package/lib/shared/views/CometChatBottomSheet/style.js +0 -2
- package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -2
- package/lib/shared/views/CometChatButton/CometChatButton.js +25 -17
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
- package/lib/shared/views/CometChatButton/style.d.ts +1 -6
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
- package/lib/shared/views/CometChatCard/style.d.ts +1 -11
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.d.ts +20 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +24 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +8 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +120 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/index.d.ts +1 -0
- package/lib/shared/views/CometChatCardBubble/index.js +2 -0
- package/lib/shared/views/CometChatCardBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.d.ts +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +11 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +47 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +1 -2
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +1 -61
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +5 -2
- package/lib/shared/views/CometChatDate/CometChatDate.js +5 -6
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +3 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js +3 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatDate/style.d.ts +1 -5
- package/lib/shared/views/CometChatDate/style.js +1 -1
- package/lib/shared/views/CometChatDate/style.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +13 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +125 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +7 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js +13 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/index.d.ts +2 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js +2 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +13 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +85 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.d.ts +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
- package/lib/shared/views/CometChatDropDown/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js +3 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +4 -13
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +21 -22
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +3 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +3 -3
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +11 -11
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
- 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/CometChatEmojiKeyboard/style.d.ts +1 -44
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +1 -2
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +51 -4
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
- 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/CometChatFileBubble/style.d.ts +1 -42
- package/lib/shared/views/CometChatFileBubble/style.js +4 -2
- package/lib/shared/views/CometChatFileBubble/style.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +8 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +372 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.d.ts +47 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +45 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/index.d.ts +1 -0
- package/lib/shared/views/CometChatFormBubble/index.js +2 -0
- package/lib/shared/views/CometChatFormBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +6 -2
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +66 -11
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +10 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +4 -2
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/assets/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js +5 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +5 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +72 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.d.ts +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js +2 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js +5 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +7 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js +15 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.d.ts +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -0
- package/lib/shared/views/CometChatList/CometChatList.js +18 -3
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatList/Header.d.ts +1 -2
- package/lib/shared/views/CometChatList/Header.js.map +1 -1
- 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/CometChatList/styles.d.ts +1 -98
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +5 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +32 -12
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +1 -61
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +1 -2
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +36 -5
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +1 -27
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +7 -5
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +5 -4
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +1 -7
- package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +9 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js +34 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.d.ts +16 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js +23 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -0
- package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/lib/shared/views/CometChatPanel/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatPanel/resources/index.js +3 -0
- package/lib/shared/views/CometChatPanel/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +10 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +48 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js +9 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.d.ts +12 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +19 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +4 -0
- package/lib/shared/views/CometChatQuickReactions/index.js +5 -0
- package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js +3 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +10 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +40 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.d.ts +22 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +28 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +11 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +36 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.d.ts +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +242 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js +9 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.d.ts +28 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +35 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/index.d.ts +4 -0
- package/lib/shared/views/CometChatReactionList/index.js +5 -0
- package/lib/shared/views/CometChatReactionList/index.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
- package/lib/shared/views/CometChatReactionList/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js +3 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +18 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +119 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js +9 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.d.ts +16 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js +23 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactions/index.d.ts +4 -0
- package/lib/shared/views/CometChatReactions/index.js +5 -0
- package/lib/shared/views/CometChatReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/style.d.ts +1 -0
- package/lib/shared/views/CometChatReactions/style.js +42 -0
- package/lib/shared/views/CometChatReactions/style.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +6 -2
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +12 -3
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +11 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +3 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
- 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/CometChatReceipt/style.d.ts +1 -7
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +8 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +1130 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.d.ts +2 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js +2 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +24 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js +67 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +11 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +35 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.d.ts +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +1 -2
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +1 -12
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +16 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +27 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.d.ts +43 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +46 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +16 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/index.d.ts +4 -0
- package/lib/shared/views/CometChatSuggestionList/index.js +5 -0
- package/lib/shared/views/CometChatSuggestionList/index.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +3 -6
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +18 -29
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +1 -11
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -5
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/index.d.ts +2 -2
- package/lib/shared/views/CometChatTextBubble/index.js +2 -2
- package/lib/shared/views/CometChatTextBubble/index.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +11 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +37 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.d.ts +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +11 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +69 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.d.ts +2 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js +2 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +11 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js +20 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +18 -2
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +42 -13
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +41 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +26 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/resources/default_image.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +2 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +2 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +1 -7
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +18 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +64 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.d.ts +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js +2 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js.map +1 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
- package/lib/shared/views/SwipeRow/style.d.ts +1 -28
- package/lib/shared/views/index.d.ts +10 -2
- package/lib/shared/views/index.js +11 -3
- package/lib/shared/views/index.js.map +1 -1
- package/package.json +1 -1
- package/src/AI/AIAssistBot/AIAssistBotView.tsx +2 -1
- package/src/CometChatDetails/CometChatDetails.tsx +12 -12
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +11 -3
- package/src/CometChatMessageList/CometChatMessageList.tsx +25 -24
- package/src/CometChatMessageList/MessageListConfiguration.ts +3 -7
- package/src/CometChatMessages/CometChatMessages.tsx +1 -1
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +1 -1
- package/src/calls/CallingExtentionDecorator.tsx +2 -1
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +2 -1
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +2 -1
- package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +1 -1
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -2
- package/src/extensions/Polls/PollsDecorator.tsx +1 -2
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
- package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +1 -1
- package/src/index.ts +10 -0
- package/src/shared/base/Types.ts +13 -1
- package/src/shared/base/index.ts +11 -1
- package/src/shared/constants/UIKitConstants.ts +0 -10
- package/src/shared/framework/DataSource.ts +11 -11
- package/src/shared/framework/DataSourceDecorator.tsx +1 -1
- package/src/shared/framework/MessageDataSource.tsx +29 -28
- package/src/shared/index.ts +10 -0
- package/src/shared/modals/CometChatMessageTemplate.ts +7 -7
- package/src/shared/resources/CometChatTheme/Palette.ts +0 -15
- package/src/shared/utils/MessageUtils.tsx +2 -1
- package/src/shared/views/CometChatList/CometChatList.tsx +1 -1
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
2
|
+
import { CometChatMessageComposerActionInterface, CometChatTheme, DataSource, DataSourceDecorator } from "../../shared";
|
|
3
|
+
import { AIAssistBotConfiguration } from "./configuration";
|
|
4
|
+
import { AIOptionsStyle } from "../AIOptionsStyle";
|
|
5
|
+
export declare class AIAssistBotDecorator extends DataSourceDecorator {
|
|
6
|
+
configuration?: AIAssistBotConfiguration;
|
|
7
|
+
user: CometChat.User;
|
|
8
|
+
group: CometChat.Group;
|
|
9
|
+
bots: CometChat.User[];
|
|
10
|
+
theme: CometChatTheme;
|
|
11
|
+
loggedInUser: CometChat.User | null;
|
|
12
|
+
usersRequest: CometChat.UsersRequestBuilder;
|
|
13
|
+
constructor(dataSource: DataSource, configuration?: AIAssistBotConfiguration);
|
|
14
|
+
fetchBots(): void;
|
|
15
|
+
getId(): string;
|
|
16
|
+
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: any, AIOptionsStyle?: AIOptionsStyle): CometChatMessageComposerActionInterface[];
|
|
17
|
+
onOptionsClick(AIOptionsStyle: any): void;
|
|
18
|
+
openBotList(AIOptionsStyle: any): void;
|
|
19
|
+
openBotChat(bot: any): void;
|
|
20
|
+
closeAIOption(): void;
|
|
21
|
+
getBotReply(question: string, bot: CometChat.User): Promise<string>;
|
|
22
|
+
private addMessageListener;
|
|
23
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
|
+
import { CometChatTheme, CometChatUIEventHandler, CometChatUIEvents, DataSourceDecorator, MessageEvents, localize } from "../../shared";
|
|
4
|
+
import AIAssistBotView from "./AIAssistBotView";
|
|
5
|
+
export class AIAssistBotDecorator extends DataSourceDecorator {
|
|
6
|
+
configuration;
|
|
7
|
+
user;
|
|
8
|
+
group;
|
|
9
|
+
bots;
|
|
10
|
+
theme = new CometChatTheme({});
|
|
11
|
+
loggedInUser;
|
|
12
|
+
usersRequest;
|
|
13
|
+
constructor(dataSource, configuration) {
|
|
14
|
+
super(dataSource);
|
|
15
|
+
this.configuration = configuration;
|
|
16
|
+
this.usersRequest = new CometChat.UsersRequestBuilder()
|
|
17
|
+
.setLimit(30)
|
|
18
|
+
.setTags(["aibot"])
|
|
19
|
+
.build();
|
|
20
|
+
this.fetchBots();
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
this.addMessageListener();
|
|
23
|
+
}, 1000);
|
|
24
|
+
}
|
|
25
|
+
fetchBots() {
|
|
26
|
+
this.usersRequest.fetchNext().then((bots) => {
|
|
27
|
+
if (bots.length > 0) {
|
|
28
|
+
this.bots = [...(this.bots || []), ...bots];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
getId() {
|
|
33
|
+
return "bots";
|
|
34
|
+
}
|
|
35
|
+
getAIOptions(user, group, theme, id, AIOptionsStyle) {
|
|
36
|
+
this.user = user;
|
|
37
|
+
this.group = group;
|
|
38
|
+
const numberOfBots = this.bots?.length;
|
|
39
|
+
if (!id?.parentMessageId && numberOfBots > 0) {
|
|
40
|
+
const titleName = numberOfBots > 1 ? localize("COMETCHAT_ASK_AI_BOT") : `${localize("COMETCHAT_ASK_BOT")} ${this.bots[0]?.getName()}`;
|
|
41
|
+
const messageComposerActions = super.getAIOptions(user, group, theme, id, AIOptionsStyle);
|
|
42
|
+
let newAction = {
|
|
43
|
+
title: titleName,
|
|
44
|
+
onPress: () => {
|
|
45
|
+
this.onOptionsClick(AIOptionsStyle);
|
|
46
|
+
},
|
|
47
|
+
id: "ai-assist-bot",
|
|
48
|
+
iconURL: '',
|
|
49
|
+
iconTint: '',
|
|
50
|
+
titleColor: this.configuration?.style?.buttonTextColor || AIOptionsStyle.listItemTitleColor,
|
|
51
|
+
titleFont: this.configuration?.style?.buttonTextFont || AIOptionsStyle.listItemTitleFont,
|
|
52
|
+
background: this.configuration?.style?.backgroundColor || AIOptionsStyle.listItemBackground,
|
|
53
|
+
cornerRadius: this.configuration?.style?.buttonBorderRadius || AIOptionsStyle.listItemBorderRadius,
|
|
54
|
+
};
|
|
55
|
+
messageComposerActions.push(newAction);
|
|
56
|
+
return messageComposerActions;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return super.getAIOptions(user, group, theme, id, AIOptionsStyle);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
onOptionsClick(AIOptionsStyle) {
|
|
63
|
+
if (this.bots?.length > 1) {
|
|
64
|
+
this.openBotList(AIOptionsStyle);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.openBotChat(this.bots[0]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
openBotList(AIOptionsStyle) {
|
|
71
|
+
const botList = this.bots.map((bot) => {
|
|
72
|
+
return ({
|
|
73
|
+
title: bot.getName(),
|
|
74
|
+
onPress: () => { this.openBotChat(bot); },
|
|
75
|
+
id: bot?.getUid(),
|
|
76
|
+
iconURL: '',
|
|
77
|
+
iconTint: '',
|
|
78
|
+
titleColor: this.configuration?.style?.buttonTextColor || AIOptionsStyle.listItemTitleColor,
|
|
79
|
+
titleFont: this.configuration?.style?.buttonTextFont || AIOptionsStyle.listItemTitleFont,
|
|
80
|
+
background: this.configuration?.style?.backgroundColor || AIOptionsStyle.listItemBackground,
|
|
81
|
+
cornerRadius: this.configuration?.style?.buttonBorderRadius || AIOptionsStyle.listItemBorderRadius,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
|
|
85
|
+
bots: botList
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
openBotChat(bot) {
|
|
89
|
+
CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
|
|
90
|
+
botView: true,
|
|
91
|
+
child: () => <AIAssistBotView bot={bot} closeCallback={this.closeAIOption} configuration={this.configuration} title={bot.getName()} onSend={this.getBotReply.bind(this)} sender={this.loggedInUser}/>
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
closeAIOption() {
|
|
95
|
+
CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
|
|
96
|
+
botView: true,
|
|
97
|
+
child: () => (null)
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
async getBotReply(question, bot) {
|
|
101
|
+
let configuration;
|
|
102
|
+
const receiverId = this.group?.getGuid() || this.user?.getUid();
|
|
103
|
+
const receiverType = this.group?.getGuid()
|
|
104
|
+
? CometChat.RECEIVER_TYPE.GROUP
|
|
105
|
+
: CometChat.RECEIVER_TYPE.USER;
|
|
106
|
+
try {
|
|
107
|
+
configuration = await this.configuration.apiConfiguration(bot, this.user, this.group) || {};
|
|
108
|
+
}
|
|
109
|
+
catch (err) {
|
|
110
|
+
configuration = {};
|
|
111
|
+
}
|
|
112
|
+
const answer = await CometChat.askBot(receiverId, receiverType, bot?.getUid(), question, configuration);
|
|
113
|
+
return answer;
|
|
114
|
+
}
|
|
115
|
+
addMessageListener() {
|
|
116
|
+
CometChat.getLoggedinUser().then((user) => {
|
|
117
|
+
if (user) {
|
|
118
|
+
this.loggedInUser = user;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
CometChatUIEventHandler.addMessageListener(MessageEvents.ccActiveChatChanged, {
|
|
122
|
+
ccActiveChatChanged: (data) => {
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=AIAssistBotDecorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistBotDecorator.js","sourceRoot":"","sources":["../../../src/AI/AIAssistBot/AIAssistBotDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAA2C,cAAc,EAAE,uBAAuB,EAAE,iBAAiB,EAAc,mBAAmB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG7L,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAClD,aAAa,CAA4B;IACzC,IAAI,CAAkB;IACtB,KAAK,CAAmB;IACxB,IAAI,CAAoB;IACxB,KAAK,GAAmB,IAAI,cAAc,CAAC,EAAE,CAAC,CAAC;IAC/C,YAAY,CA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ACP,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YAC7B,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,uBAAuB,CAAC,kBAAkB,CACtC,aAAa,CAAC,mBAAmB,EACjC;YACI,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE;YAE9B,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AIExtensionDataSource } from "../AIExtensionDataSource";
|
|
2
|
+
import { AIAssistBotConfiguration } from "./configuration";
|
|
3
|
+
export declare class AIAssistBotExtension extends AIExtensionDataSource {
|
|
4
|
+
private configuration?;
|
|
5
|
+
constructor(configuration?: AIAssistBotConfiguration);
|
|
6
|
+
addExtension(): void;
|
|
7
|
+
getExtensionId(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChatConfigurator } from "../../shared";
|
|
2
|
+
import { AIExtensionDataSource } from "../AIExtensionDataSource";
|
|
3
|
+
import { AIAssistBotDecorator } from "./AIAssistBotDecorator";
|
|
4
|
+
export class AIAssistBotExtension extends AIExtensionDataSource {
|
|
5
|
+
configuration;
|
|
6
|
+
constructor(configuration) {
|
|
7
|
+
super();
|
|
8
|
+
this.configuration = configuration;
|
|
9
|
+
}
|
|
10
|
+
addExtension() {
|
|
11
|
+
ChatConfigurator.enable((dataSource) => new AIAssistBotDecorator(dataSource, this.configuration));
|
|
12
|
+
}
|
|
13
|
+
getExtensionId() {
|
|
14
|
+
return "bots";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=AIAssistBotExtension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistBotExtension.js","sourceRoot":"","sources":["../../../src/AI/AIAssistBot/AIAssistBotExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IACrD,aAAa,CAA4B;IAElD,YAAY,aAAwC;QAClD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEQ,YAAY;QAClB,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAe,EAAE,EAAE,CAAC,IAAI,oBAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACzG,CAAC;IAEQ,cAAc;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;CAGF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FontStyle } from "../../shared";
|
|
2
|
+
import { AIBaseStyle } from "../AIBaseStyle";
|
|
3
|
+
export declare class AIAssistBotStyle extends AIBaseStyle {
|
|
4
|
+
titleFont?: FontStyle;
|
|
5
|
+
titleColor?: string;
|
|
6
|
+
subtitleFont: FontStyle;
|
|
7
|
+
subtitleColor: string;
|
|
8
|
+
closeIconTint?: string;
|
|
9
|
+
sendIconTint?: string;
|
|
10
|
+
buttonTextColor?: string;
|
|
11
|
+
buttonTextFont?: FontStyle;
|
|
12
|
+
buttonBackground?: string;
|
|
13
|
+
buttonBorderRadius?: number;
|
|
14
|
+
constructor(props: Partial<AIAssistBotStyle>);
|
|
15
|
+
}
|
|
16
|
+
declare class AITextMessageBubbleStyle extends AIBaseStyle {
|
|
17
|
+
textFont?: string;
|
|
18
|
+
textColor?: string;
|
|
19
|
+
constructor(props: Partial<AITextMessageBubbleStyle>);
|
|
20
|
+
}
|
|
21
|
+
export declare class AIBotMessageBubbleStyle extends AITextMessageBubbleStyle {
|
|
22
|
+
constructor(props: Partial<AIBotMessageBubbleStyle>);
|
|
23
|
+
}
|
|
24
|
+
export declare class AISenderMessageBubbleStyle extends AITextMessageBubbleStyle {
|
|
25
|
+
constructor(props: Partial<AISenderMessageBubbleStyle>);
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AIBaseStyle } from "../AIBaseStyle";
|
|
2
|
+
export class AIAssistBotStyle extends AIBaseStyle {
|
|
3
|
+
titleFont;
|
|
4
|
+
titleColor = "";
|
|
5
|
+
subtitleFont;
|
|
6
|
+
subtitleColor;
|
|
7
|
+
closeIconTint = "";
|
|
8
|
+
sendIconTint = "";
|
|
9
|
+
buttonTextColor = "";
|
|
10
|
+
buttonTextFont;
|
|
11
|
+
buttonBackground = "";
|
|
12
|
+
buttonBorderRadius;
|
|
13
|
+
constructor(props) {
|
|
14
|
+
super({});
|
|
15
|
+
Object.assign(this, props);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class AITextMessageBubbleStyle extends AIBaseStyle {
|
|
19
|
+
textFont = "";
|
|
20
|
+
textColor = "";
|
|
21
|
+
constructor(props) {
|
|
22
|
+
super({});
|
|
23
|
+
Object.assign(this, props);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class AIBotMessageBubbleStyle extends AITextMessageBubbleStyle {
|
|
27
|
+
constructor(props) {
|
|
28
|
+
super({});
|
|
29
|
+
Object.assign(this, props);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class AISenderMessageBubbleStyle extends AITextMessageBubbleStyle {
|
|
33
|
+
constructor(props) {
|
|
34
|
+
super({});
|
|
35
|
+
Object.assign(this, props);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=AIAssistBotStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistBotStyle.js","sourceRoot":"","sources":["../../../src/AI/AIAssistBot/AIAssistBotStyle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC7C,SAAS,CAAa;IACtB,UAAU,GAAY,EAAE,CAAC;IACzB,YAAY,CAAY;IACxB,aAAa,CAAS;IACtB,aAAa,GAAY,EAAE,CAAC;IAC5B,YAAY,GAAY,EAAE,CAAC;IAC3B,eAAe,GAAa,EAAE,CAAC;IAC/B,cAAc,CAAa;IAC3B,gBAAgB,GAAa,EAAE,CAAC;IAChC,kBAAkB,CAAU;IAE5B,YAAY,KAAgC;QACxC,KAAK,CAAC,EAAE,CAAC,CAAC;QACV,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AAED,MAAM,wBAAyB,SAAQ,WAAW;IACjD,QAAQ,GAAY,EAAE,CAAC;IACvB,SAAS,GAAY,EAAE,CAAC;IACrB,YAAY,KAAwC;QAChD,KAAK,CAAC,EAAE,CAAC,CAAC;QACV,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AAED,MAAM,OAAO,uBAAwB,SAAQ,wBAAwB;IACjE,YAAY,KAAuC;QAC/C,KAAK,CAAC,EAAE,CAAC,CAAC;QACV,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AAED,MAAM,OAAO,0BAA2B,SAAQ,wBAAwB;IACpE,YAAY,KAA0C;QAClD,KAAK,CAAC,EAAE,CAAC,CAAC;QACV,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
2
|
+
import { AIAssistBotConfiguration } from './configuration';
|
|
3
|
+
interface AIAssistBotViewProps {
|
|
4
|
+
title: string;
|
|
5
|
+
configuration: AIAssistBotConfiguration;
|
|
6
|
+
closeCallback: () => void;
|
|
7
|
+
bot: CometChat.User;
|
|
8
|
+
sender: CometChat.User;
|
|
9
|
+
onSend: (question: string, bot: CometChat.User) => Promise<any>;
|
|
10
|
+
}
|
|
11
|
+
declare const AIAssistBotView: (props: AIAssistBotViewProps) => any;
|
|
12
|
+
export default AIAssistBotView;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import React, { useContext, useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
|
+
import { View, Text, TextInput, Dimensions, TouchableOpacity, Image, FlatList } from 'react-native';
|
|
4
|
+
import { CometChatBottomSheet, CometChatContext, CometChatDate, CometChatListItem, CometChatReceipt, CometChatTextBubble, localize } from '../../shared';
|
|
5
|
+
import { CloseIcon } from './resources';
|
|
6
|
+
import { ICONS } from '../../shared/framework/resources';
|
|
7
|
+
import { ICONS as MessageIcons } from '../../shared/assets/images';
|
|
8
|
+
import { getUnixTimestamp } from '../../shared/utils/CometChatMessageHelper';
|
|
9
|
+
import { CometChatMessageBubble } from '../../shared/views/CometChatMessageBubble';
|
|
10
|
+
import { ReceiverTypeConstants } from '../../shared/constants/UIKitConstants';
|
|
11
|
+
const AIAssistBotView = (props) => {
|
|
12
|
+
const { height } = Dimensions.get('window');
|
|
13
|
+
const { title, bot, sender, closeCallback, configuration, onSend } = props;
|
|
14
|
+
const { theme } = useContext(CometChatContext);
|
|
15
|
+
const [question, setQuestion] = useState("");
|
|
16
|
+
const [messages, setMessages] = useState([]);
|
|
17
|
+
const style = {
|
|
18
|
+
titleColor: configuration?.style?.titleColor || theme.palette.getAccent(),
|
|
19
|
+
titleFont: configuration?.style?.titleFont || theme.typography.name,
|
|
20
|
+
closeIconTint: configuration?.style?.closeIconTint || theme.palette.getAccent(),
|
|
21
|
+
sendIconTint: configuration?.style?.sendIconTint || question ? theme.palette.getPrimary() : theme.palette.getAccent600(),
|
|
22
|
+
messageInputStyle: configuration?.messageInputStyle || {},
|
|
23
|
+
subtitleColor: configuration?.style?.subtitleColor || theme.palette.getAccent500(),
|
|
24
|
+
subtitleFont: configuration?.style?.subtitleFont || theme.typography.subtitle2,
|
|
25
|
+
...configuration?.style
|
|
26
|
+
};
|
|
27
|
+
const { titleColor, titleFont, closeIconTint, sendIconTint, subtitleColor, subtitleFont } = style;
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
let botFirstMessage = "";
|
|
30
|
+
if (configuration?.botFirstMessageText) {
|
|
31
|
+
botFirstMessage = configuration.botFirstMessageText(bot);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
botFirstMessage = localize("COMETCHAT_BOT_FIRST_MESSAGE");
|
|
35
|
+
}
|
|
36
|
+
const message = new CometChat.TextMessage(sender?.getUid(), botFirstMessage, ReceiverTypeConstants.user);
|
|
37
|
+
message.setSentAt(getUnixTimestamp());
|
|
38
|
+
message.setMuid(String(getUnixTimestamp()));
|
|
39
|
+
message.setSender(bot);
|
|
40
|
+
let newMessages = [...messages];
|
|
41
|
+
newMessages.unshift(message);
|
|
42
|
+
setMessages(newMessages);
|
|
43
|
+
}, []);
|
|
44
|
+
const onClose = () => {
|
|
45
|
+
closeCallback && closeCallback();
|
|
46
|
+
};
|
|
47
|
+
const onChangeText = (value) => {
|
|
48
|
+
setQuestion(value);
|
|
49
|
+
};
|
|
50
|
+
const onMsgSend = () => {
|
|
51
|
+
if (!question)
|
|
52
|
+
return;
|
|
53
|
+
if (messages[0]?.sender?.getUid() === sender?.getUid())
|
|
54
|
+
return;
|
|
55
|
+
let newMessages = [...messages];
|
|
56
|
+
const MUID = String(getUnixTimestamp());
|
|
57
|
+
const message = new CometChat.TextMessage(bot.getUid(), question, ReceiverTypeConstants.user);
|
|
58
|
+
message.setSentAt(getUnixTimestamp());
|
|
59
|
+
message.setMuid(MUID);
|
|
60
|
+
message.setSender(sender);
|
|
61
|
+
message.setStatus("WAIT");
|
|
62
|
+
newMessages.unshift(message);
|
|
63
|
+
setMessages(newMessages);
|
|
64
|
+
onSend(question, bot)
|
|
65
|
+
.then(botReply => {
|
|
66
|
+
const message = new CometChat.TextMessage(sender?.getUid(), botReply, ReceiverTypeConstants.user);
|
|
67
|
+
message.setSentAt(getUnixTimestamp());
|
|
68
|
+
message.setMuid(String(getUnixTimestamp()));
|
|
69
|
+
message.setSender(bot);
|
|
70
|
+
message.setStatus(undefined);
|
|
71
|
+
const messageList = newMessages.map((message) => {
|
|
72
|
+
if (message.getMuid() === MUID) {
|
|
73
|
+
message.setStatus(undefined);
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
});
|
|
77
|
+
messageList.unshift(message);
|
|
78
|
+
setMessages(messageList);
|
|
79
|
+
})
|
|
80
|
+
.catch(err => {
|
|
81
|
+
const messageList = newMessages.map((message) => {
|
|
82
|
+
if (message.getMuid() === MUID) {
|
|
83
|
+
message.setStatus("ERROR");
|
|
84
|
+
}
|
|
85
|
+
return message;
|
|
86
|
+
});
|
|
87
|
+
setMessages(messageList);
|
|
88
|
+
});
|
|
89
|
+
setQuestion("");
|
|
90
|
+
};
|
|
91
|
+
const RenderMessageItem = ({ item, index }) => {
|
|
92
|
+
const contentView = (message, theme, alignment, configuration) => {
|
|
93
|
+
let style = {};
|
|
94
|
+
if (alignment === "right") {
|
|
95
|
+
style = configuration?.senderMessageBubbleStyle || {};
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
style = configuration?.botMessageBubbleStyle || {};
|
|
99
|
+
}
|
|
100
|
+
const defaultStyle = {
|
|
101
|
+
textFont: style?.textFont || theme.typography.text1,
|
|
102
|
+
borderRadius: style?.borderRadius || 12,
|
|
103
|
+
width: style?.width || "100%",
|
|
104
|
+
};
|
|
105
|
+
if (alignment === "right") {
|
|
106
|
+
defaultStyle["textColor"] = style?.textColor || theme.palette.getSecondary();
|
|
107
|
+
defaultStyle["backgroundColor"] = style?.backgroundColor || theme.palette.getPrimary();
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
defaultStyle["textColor"] = style?.textColor || theme.palette.getAccent();
|
|
111
|
+
defaultStyle["backgroundColor"] = style?.backgroundColor || theme.palette.getSecondary();
|
|
112
|
+
}
|
|
113
|
+
return (<CometChatTextBubble text={item.text} style={defaultStyle} textContainerStyle={defaultStyle}/>);
|
|
114
|
+
};
|
|
115
|
+
function getBubbleAlignment(message, sender) {
|
|
116
|
+
if (message.sender?.getUid() === sender?.getUid()) {
|
|
117
|
+
return "right";
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return "left";
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function getMessageBubbleStyle(message, theme, sender, configuration) {
|
|
124
|
+
if (message.sender?.getUid() === sender?.getUid()) {
|
|
125
|
+
const style = configuration?.senderMessageBubbleStyle || {};
|
|
126
|
+
return {
|
|
127
|
+
background: style.backgroundColor || theme.palette.getPrimary(),
|
|
128
|
+
borderRadius: style.borderRadius || 12,
|
|
129
|
+
border: style.border || undefined,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const style = configuration?.botMessageBubbleStyle || {};
|
|
134
|
+
if (configuration?.botMessageBubbleStyle) {
|
|
135
|
+
return configuration?.botMessageBubbleStyle;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
background: style.backgroundColor || theme.palette.getSecondary(),
|
|
139
|
+
borderRadius: style.borderRadius || 12,
|
|
140
|
+
border: style.border || undefined,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
;
|
|
145
|
+
const getFooterView = (item, bubbleAlignment) => {
|
|
146
|
+
let isSender = (item.getSender()?.getUid() || item['sender']['uid']) == (sender?.getUid() || sender['uid']);
|
|
147
|
+
return <View style={[{ flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start" }]}>
|
|
148
|
+
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000)} style={{ textColor: theme?.palette?.getAccent600() }} pattern={"timeFormat"}/>
|
|
149
|
+
{isSender ?
|
|
150
|
+
<CometChatReceipt receipt={item.getStatus()} waitIcon={configuration?.loadingIconURL || MessageIcons.WAITING} errorIcon={configuration?.errorIconURL || MessageIcons.ERROR_TICK}/> :
|
|
151
|
+
null}
|
|
152
|
+
</View>;
|
|
153
|
+
};
|
|
154
|
+
return (<View style={{ marginBottom: 15, marginHorizontal: 2 }} key={index}>
|
|
155
|
+
<CometChatMessageBubble id={`${item.id}`} ContentView={() => contentView(item, theme, getBubbleAlignment(item, sender), configuration)} FooterView={() => getFooterView(item, getBubbleAlignment(item, sender))} alignment={getBubbleAlignment(item, sender)} style={getMessageBubbleStyle(item, theme, sender, configuration)}/>
|
|
156
|
+
</View>);
|
|
157
|
+
};
|
|
158
|
+
const keyExtractor = useCallback((item) => `${item.getMuid()}`, []);
|
|
159
|
+
return (<CometChatBottomSheet onClose={onClose} style={{
|
|
160
|
+
lineHeight: 15,
|
|
161
|
+
borderRadius: 20
|
|
162
|
+
}}>
|
|
163
|
+
<View style={{ height: height * .5, }}>
|
|
164
|
+
<CometChatListItem id={bot.getUid()} title={title || bot.getName()} avatarStyle={configuration?.avatarStyle} avatarName={title || bot.getName()} avatarURL={bot.getAvatar() ? { uri: bot.getAvatar() } : undefined} SubtitleView={() => <Text style={[{ color: subtitleColor }, subtitleFont]}>{localize("COMETCHAT_ASK_BOT_SUBTITLE")}</Text>} TailView={() => <TouchableOpacity onPress={onClose}>
|
|
165
|
+
<Image style={{ width: 20, height: 20, tintColor: closeIconTint }} source={configuration?.closeIconURL || CloseIcon}/>
|
|
166
|
+
</TouchableOpacity>} listItemStyle={{
|
|
167
|
+
titleColor, titleFont,
|
|
168
|
+
}}/>
|
|
169
|
+
<View style={{ flex: 1 }}>
|
|
170
|
+
<FlatList inverted={true} data={messages} keyExtractor={keyExtractor} renderItem={RenderMessageItem}/>
|
|
171
|
+
</View>
|
|
172
|
+
<View style={{
|
|
173
|
+
flexDirection: "row", alignItems: "center", justifyContent: "center", paddingTop: 10,
|
|
174
|
+
borderTopWidth: 1, borderColor: style?.messageInputStyle?.dividerTint || theme.palette.getAccent200()
|
|
175
|
+
}}>
|
|
176
|
+
<TextInput placeholder={localize('ENTER_YOUR_MESSAGE_HERE')} placeholderTextColor={style?.messageInputStyle?.placeholderTextColor} value={question} style={[{
|
|
177
|
+
padding: 8, flex: 1, borderWidth: 1, borderColor: theme.palette.getAccent500(), borderRadius: 20,
|
|
178
|
+
marginLeft: 10, color: style.messageInputStyle.textColor,
|
|
179
|
+
}, style.messageInputStyle.placeholderTextFont, style.messageInputStyle.textFont]} onChangeText={onChangeText}/>
|
|
180
|
+
<TouchableOpacity activeOpacity={!question && 1} onPress={onMsgSend}>
|
|
181
|
+
<Image style={{ width: 30, height: 30, tintColor: sendIconTint, marginHorizontal: 10 }} source={configuration?.sendIconURL || ICONS.SEND}/>
|
|
182
|
+
</TouchableOpacity>
|
|
183
|
+
</View>
|
|
184
|
+
</View>
|
|
185
|
+
</CometChatBottomSheet>);
|
|
186
|
+
};
|
|
187
|
+
export default AIAssistBotView;
|
|
188
|
+
//# sourceMappingURL=AIAssistBotView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistBotView.js","sourceRoot":"","sources":["../../../src/AI/AIAssistBot/AIAssistBotView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEnG,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAwB,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,mBAAmB,EAAkB,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/L,OAAO,EAAE,SAAS,EAAE,MAAM,aA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AmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAClF,YAAY,CAAC,CAAC,YAAY,CAAC,EAE/B;wBAAA,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAChE;4BAAA,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,WAAW,IAAI,KAAK,CAAC,IAAI,CAAC,EAC7I;wBAAA,EAAE,gBAAgB,CACtB;oBAAA,EAAE,IAAI,CACV;gBAAA,EAAE,IAAI,CACd;QAAA,EAAE,oBAAoB,CAAC,CAC1B,CAAA;AACL,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
2
|
+
import { AIAssistBotStyle, AIBotMessageBubbleStyle, AISenderMessageBubbleStyle } from './AIAssistBotStyle';
|
|
3
|
+
import { AvatarStyle, CometChatMessageInputStyleInterface } from '../../shared';
|
|
4
|
+
export declare class AIAssistBotConfiguration {
|
|
5
|
+
apiConfiguration?: (bot: CometChat.User, user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
|
|
6
|
+
title: (bot: CometChat.User) => string;
|
|
7
|
+
botFirstMessageText: (bot: CometChat.User) => string;
|
|
8
|
+
closeIconURL: string;
|
|
9
|
+
sendIconURL: string;
|
|
10
|
+
botMessageBubbleStyle: AIBotMessageBubbleStyle;
|
|
11
|
+
senderMessageBubbleStyle: AISenderMessageBubbleStyle;
|
|
12
|
+
avatarStyle?: AvatarStyle;
|
|
13
|
+
messageInputStyle?: CometChatMessageInputStyleInterface;
|
|
14
|
+
style: AIAssistBotStyle;
|
|
15
|
+
loadingIconURL?: string;
|
|
16
|
+
errorIconURL?: string;
|
|
17
|
+
constructor(props: Partial<AIAssistBotConfiguration>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICONS } from '../../shared/assets/images';
|
|
2
|
+
export class AIAssistBotConfiguration {
|
|
3
|
+
apiConfiguration;
|
|
4
|
+
title;
|
|
5
|
+
botFirstMessageText;
|
|
6
|
+
closeIconURL;
|
|
7
|
+
sendIconURL;
|
|
8
|
+
botMessageBubbleStyle;
|
|
9
|
+
senderMessageBubbleStyle;
|
|
10
|
+
avatarStyle;
|
|
11
|
+
messageInputStyle;
|
|
12
|
+
style;
|
|
13
|
+
loadingIconURL = ICONS.WAITING;
|
|
14
|
+
errorIconURL = ICONS.ERROR_TICK;
|
|
15
|
+
constructor(props) {
|
|
16
|
+
Object.assign(this, props);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/AI/AIAssistBot/configuration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAGnD,MAAM,OAAO,wBAAwB;IACjC,gBAAgB,CAA4F;IAC5G,KAAK,CAAkC;IACvC,mBAAmB,CAAkC;IACrD,YAAY,CAAS;IACrB,WAAW,CAAS;IACpB,qBAAqB,CAA0B;IAC/C,wBAAwB,CAA6B;IACrD,WAAW,CAAe;IAC1B,iBAAiB,CAAuC;IACxD,KAAK,CAAmB;IACxB,cAAc,GAAY,KAAK,CAAC,OAAO,CAAC;IACxC,YAAY,GAAY,KAAK,CAAC,UAAU,CAAC;IACzC,YAAY,KAAwC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/AI/AIAssistBot/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,EACH,SAAS,EACZ,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { emptyIcon, errorIcon, loadingIcon } from "./resources";
|
|
2
|
+
export class AIBaseConfiguration {
|
|
3
|
+
apiConfiguration;
|
|
4
|
+
ErrorStateView;
|
|
5
|
+
EmptyStateView;
|
|
6
|
+
LoadingStateView;
|
|
7
|
+
loadingIconURL = loadingIcon;
|
|
8
|
+
errorIconURL = errorIcon;
|
|
9
|
+
emptyIconURL = emptyIcon;
|
|
10
|
+
constructor(props) {
|
|
11
|
+
Object.assign(this, props);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AIBaseConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIBaseConfiguration.js","sourceRoot":"","sources":["../../src/AI/AIBaseConfiguration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAChE,MAAM,OAAO,mBAAmB;IAC5B,gBAAgB,CAAuE;IACvF,cAAc,CAAqD;IACnE,cAAc,CAAqB;IACnC,gBAAgB,CAAqB;IACrC,cAAc,GAAW,WAAW,CAAC;IACrC,YAAY,GAAW,SAAS,CAAC;IACjC,YAAY,GAAW,SAAS,CAAC;IACjC,YAAY,KAAmC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseStyle, FontStyle } from "../shared";
|
|
2
|
+
export interface AIBaseStyleInterface extends BaseStyle {
|
|
3
|
+
emptyStateTextFont?: FontStyle;
|
|
4
|
+
emptyStateTextColor?: string;
|
|
5
|
+
loadingStateTextFont?: FontStyle;
|
|
6
|
+
loadingStateTextColor?: string;
|
|
7
|
+
errorStateTextFont?: FontStyle;
|
|
8
|
+
errorStateTextColor?: string;
|
|
9
|
+
loadingIconTint?: string;
|
|
10
|
+
emptyIconTint?: string;
|
|
11
|
+
errorIconTint?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class AIBaseStyle extends BaseStyle {
|
|
14
|
+
emptyStateTextFont?: FontStyle;
|
|
15
|
+
emptyStateTextColor?: string;
|
|
16
|
+
loadingStateTextFont?: FontStyle;
|
|
17
|
+
loadingStateTextColor?: string;
|
|
18
|
+
errorStateTextFont?: FontStyle;
|
|
19
|
+
errorStateTextColor?: string;
|
|
20
|
+
loadingIconTint?: string;
|
|
21
|
+
emptyIconTint?: string;
|
|
22
|
+
errorIconTint?: string;
|
|
23
|
+
constructor({ emptyIconTint, emptyStateTextColor, emptyStateTextFont, errorIconTint, errorStateTextColor, errorStateTextFont, loadingIconTint, loadingStateTextColor, loadingStateTextFont, backgroundColor, border, borderRadius, height, width }: AIBaseStyleInterface);
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseStyle } from "../shared";
|
|
2
|
+
export class AIBaseStyle extends BaseStyle {
|
|
3
|
+
emptyStateTextFont;
|
|
4
|
+
emptyStateTextColor;
|
|
5
|
+
loadingStateTextFont;
|
|
6
|
+
loadingStateTextColor;
|
|
7
|
+
errorStateTextFont;
|
|
8
|
+
errorStateTextColor;
|
|
9
|
+
loadingIconTint;
|
|
10
|
+
emptyIconTint;
|
|
11
|
+
errorIconTint;
|
|
12
|
+
constructor({ emptyIconTint, emptyStateTextColor, emptyStateTextFont, errorIconTint, errorStateTextColor, errorStateTextFont, loadingIconTint, loadingStateTextColor, loadingStateTextFont, backgroundColor, border, borderRadius, height, width }) {
|
|
13
|
+
super({
|
|
14
|
+
backgroundColor,
|
|
15
|
+
border,
|
|
16
|
+
borderRadius,
|
|
17
|
+
height,
|
|
18
|
+
width
|
|
19
|
+
});
|
|
20
|
+
this.emptyIconTint = emptyIconTint;
|
|
21
|
+
this.emptyStateTextColor = emptyStateTextColor;
|
|
22
|
+
this.emptyStateTextFont = emptyStateTextFont;
|
|
23
|
+
this.errorIconTint = errorIconTint;
|
|
24
|
+
this.errorStateTextColor = errorStateTextColor;
|
|
25
|
+
this.errorStateTextFont = errorStateTextFont;
|
|
26
|
+
this.loadingIconTint = loadingIconTint;
|
|
27
|
+
this.loadingStateTextColor = loadingStateTextColor;
|
|
28
|
+
this.loadingStateTextFont = loadingStateTextFont;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=AIBaseStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIBaseStyle.js","sourceRoot":"","sources":["../../src/AI/AIBaseStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,WAAW,CAAC;AAcjD,MAAM,OAAO,WAAY,SAAQ,SAAS;IACtC,kBAAkB,CAAa;IAC/B,mBAAmB,CAAU;IAC7B,oBAAoB,CAAa;IACjC,qBAAqB,CAAU;IAC/B,kBAAkB,CAAa;IAC/B,mBAAmB,CAAU;IAC7B,eAAe,CAAU;IACzB,aAAa,CAAU;IACvB,aAAa,CAAU;IACvB,YAAY,EACR,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,MAAM,EACN,YAAY,EACZ,MAAM,EACN,KAAK,EACc;QACnB,KAAK,CAAC;YACF,eAAe;YACf,MAAM;YACN,YAAY;YACZ,MAAM;YACN,KAAK;SACR,CAAC,CAAA;QACF,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACrD,CAAC;CACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AIExtensionDataSource } from "../AIExtensionDataSource";
|
|
2
|
+
import { AIConversationStarterConfiguration } from "./configuration";
|
|
3
|
+
export declare class AIConversationStarterExtension extends AIExtensionDataSource {
|
|
4
|
+
configuration?: AIConversationStarterConfiguration;
|
|
5
|
+
constructor(configuration?: AIConversationStarterConfiguration);
|
|
6
|
+
addExtension(): void;
|
|
7
|
+
getExtensionId(): string;
|
|
8
|
+
}
|