@cometchat/chat-uikit-react-native 4.3.13 → 4.3.15
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/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.idea/gradle.xml +2 -2
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +2 -1
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +49 -35
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js +0 -1
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js +7 -12
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +3 -2
- package/lib/AI/AIAssistBot/AIAssistBotView.js +54 -65
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
- package/lib/AI/AIAssistBot/configuration.js +2 -12
- package/lib/AI/AIAssistBot/configuration.js.map +1 -1
- package/lib/AI/AIBaseConfiguration.d.ts +11 -0
- package/lib/AI/AIBaseConfiguration.js +3 -7
- package/lib/AI/AIBaseConfiguration.js.map +1 -1
- package/lib/AI/AIBaseStyle.js +0 -9
- package/lib/AI/AIBaseStyle.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarter.js +0 -1
- package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +30 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +48 -53
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +0 -5
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -1
- package/lib/AI/AIConversationStarter/configuration.js +0 -2
- package/lib/AI/AIConversationStarter/configuration.js.map +1 -1
- package/lib/AI/AIConversationStarter/style.d.ts +20 -9
- package/lib/AI/AIConversationStarter/style.js +23 -42
- package/lib/AI/AIConversationStarter/style.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +63 -53
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +0 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +5 -10
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +2 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +39 -33
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -1
- package/lib/AI/AIConversationSummary/configuration.js +2 -4
- package/lib/AI/AIConversationSummary/configuration.js.map +1 -1
- package/lib/AI/AIExtensionDataSource.js +1 -0
- package/lib/AI/AIExtensionDataSource.js.map +1 -1
- package/lib/AI/AIOptionsStyle.js +0 -6
- package/lib/AI/AIOptionsStyle.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartReplies.js +0 -1
- package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +37 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +89 -101
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +1 -8
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -1
- package/lib/AI/AISmartReplies/configuration.d.ts +2 -0
- package/lib/AI/AISmartReplies/configuration.js +0 -2
- package/lib/AI/AISmartReplies/configuration.js.map +1 -1
- package/lib/AI/CardView.d.ts +2 -1
- package/lib/AI/CardView.js +7 -18
- package/lib/AI/CardView.js.map +1 -1
- package/lib/AI/CardViewStyle.js +6 -22
- package/lib/AI/CardViewStyle.js.map +1 -1
- package/lib/AI/style.d.ts +94 -15
- package/lib/AI/style.js +35 -83
- package/lib/AI/style.js.map +1 -1
- package/lib/AI/utils.js +1 -15
- package/lib/AI/utils.js.map +1 -1
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +42 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +0 -32
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +2 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.js +19 -6
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +45 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +0 -34
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +2 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +28 -15
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatContacts/CometChatContacts.d.ts +2 -1
- package/lib/CometChatContacts/CometChatContacts.js +29 -29
- package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
- package/lib/CometChatContacts/Header.d.ts +31 -0
- package/lib/CometChatContacts/Header.js +50 -60
- package/lib/CometChatContacts/Header.js.map +1 -1
- package/lib/CometChatContacts/styles.d.ts +100 -1
- package/lib/CometChatConversations/CometChatConversations.d.ts +208 -0
- package/lib/CometChatConversations/CometChatConversations.js +126 -151
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +113 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js +0 -48
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- package/lib/CometChatConversations/ConversationsStyle.js +0 -16
- package/lib/CometChatConversations/ConversationsStyle.js.map +1 -1
- package/lib/CometChatConversations/style.d.ts +65 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +2 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +31 -49
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/styles.d.ts +12 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +2 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +74 -92
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +0 -6
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
- package/lib/CometChatCreateGroup/Header.d.ts +2 -1
- package/lib/CometChatCreateGroup/Header.js +15 -19
- package/lib/CometChatCreateGroup/Header.js.map +1 -1
- package/lib/CometChatCreateGroup/style.d.ts +46 -1
- package/lib/CometChatDetails/CometChatDetails.d.ts +281 -0
- package/lib/CometChatDetails/CometChatDetails.js +77 -99
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +35 -0
- package/lib/CometChatDetails/DetailsConfiguration.js +0 -17
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/Header.d.ts +2 -1
- package/lib/CometChatDetails/Header.js +8 -10
- package/lib/CometChatDetails/Header.js.map +1 -1
- package/lib/CometChatDetails/listners.js +1 -1
- package/lib/CometChatDetails/listners.js.map +1 -1
- package/lib/CometChatDetails/styles.d.ts +28 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +96 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +76 -120
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +86 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +3 -41
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +0 -19
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +0 -11
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +1 -1
- package/lib/CometChatGroupMembers/style.d.ts +31 -1
- package/lib/CometChatGroups/CometChatGroups.d.ts +141 -0
- package/lib/CometChatGroups/CometChatGroups.js +53 -73
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +73 -0
- package/lib/CometChatGroups/GroupsConfiguration.js +32 -55
- package/lib/CometChatGroups/GroupsConfiguration.js.map +1 -1
- package/lib/CometChatGroups/GroupsStyle.js +0 -21
- package/lib/CometChatGroups/GroupsStyle.js.map +1 -1
- package/lib/CometChatGroups/style.d.ts +16 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +2 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +18 -33
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/styles.d.ts +12 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +2 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +33 -40
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +2 -1
- package/lib/CometChatJoinProtectedGroup/Header.js +7 -11
- package/lib/CometChatJoinProtectedGroup/Header.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +0 -7
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/style.d.ts +11 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +294 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +207 -241
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +61 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +0 -37
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
- package/lib/CometChatMessageComposer/styles.d.ts +26 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +150 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +53 -77
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +36 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +0 -17
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
- package/lib/CometChatMessageHeader/styles.d.ts +16 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +36 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +66 -84
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
- package/lib/CometChatMessageInformation/styles.d.ts +23 -1
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +116 -0
- package/lib/CometChatMessageList/CometChatMessageList.js +250 -379
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +177 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +0 -63
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- package/lib/CometChatMessageList/MessageListStyle.js +0 -13
- package/lib/CometChatMessageList/MessageListStyle.js.map +1 -1
- package/lib/CometChatMessageList/style.d.ts +52 -1
- package/lib/CometChatMessages/CometChatMessages.d.ts +42 -0
- package/lib/CometChatMessages/CometChatMessages.js +51 -65
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
- package/lib/CometChatMessages/MessageStyle.js +0 -7
- package/lib/CometChatMessages/MessageStyle.js.map +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +68 -0
- package/lib/CometChatMessages/MessagesConfiguration.js +0 -16
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
- package/lib/CometChatMessages/style.d.ts +21 -1
- package/lib/CometChatTabs/CometChatTabs.d.ts +2 -1
- package/lib/CometChatTabs/CometChatTabs.js +13 -48
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +2 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js +0 -5
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -1
- package/lib/CometChatTabs/TabItemStyle.js +0 -8
- package/lib/CometChatTabs/TabItemStyle.js.map +1 -1
- package/lib/CometChatTabs/TabItems.d.ts +10 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +113 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +36 -49
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +4 -3
- package/lib/CometChatThreadedMessages/Header.js +4 -6
- package/lib/CometChatThreadedMessages/Header.js.map +1 -1
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +40 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +0 -22
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
- package/lib/CometChatThreadedMessages/style.d.ts +25 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +2 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +19 -12
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +40 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +0 -28
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +69 -0
- package/lib/CometChatUsers/CometChatUsers.js +22 -16
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsers/UsersConfiguration.d.ts +42 -0
- package/lib/CometChatUsers/UsersConfiguration.js +0 -32
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +2 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +9 -20
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +12 -1
- package/lib/calls/CallUtils.js +2 -2
- package/lib/calls/CallUtils.js.map +1 -1
- package/lib/calls/CallingDetailsUtils.js +40 -47
- package/lib/calls/CallingDetailsUtils.js.map +1 -1
- package/lib/calls/CallingExtension.js +0 -1
- package/lib/calls/CallingExtension.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +5 -4
- package/lib/calls/CallingExtentionDecorator.js +100 -97
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CallingPackage.js +2 -1
- package/lib/calls/CallingPackage.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +0 -3
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +0 -6
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +2 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +13 -12
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -1
- package/lib/calls/CometChatCallBubble/styles.d.ts +21 -1
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +0 -3
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -7
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +2 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +41 -43
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallButtons/style.d.ts +12 -1
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.d.ts +119 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +0 -48
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +0 -3
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.d.ts +72 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +45 -71
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/style.d.ts +13 -1
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.d.ts +72 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +0 -23
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +0 -17
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.d.ts +45 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +56 -90
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.d.ts +65 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +0 -22
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +0 -9
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.d.ts +39 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +27 -49
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.d.ts +71 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +0 -23
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +0 -10
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.d.ts +41 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +46 -64
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.d.ts +99 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +0 -34
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js +0 -18
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.d.ts +56 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +73 -104
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
- package/lib/calls/CometChatCallLogs/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +2 -1
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +8 -10
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -1
- package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +8 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +20 -47
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +0 -13
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/styles.d.ts +9 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +2 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +6 -8
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +0 -4
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +2 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +17 -33
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -5
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +0 -4
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +0 -9
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +4 -3
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +10 -15
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/styles.d.ts +35 -1
- package/lib/extensions/CollaborativeBubble/styles.js +15 -39
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +2 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +9 -9
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -2
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +10 -11
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/ExtensionModerator.d.ts +1 -1
- package/lib/extensions/ExtensionModerator.js +1 -1
- package/lib/extensions/ExtensionModerator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +12 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +1 -2
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +0 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +2 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +16 -19
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +0 -6
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +25 -36
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +0 -4
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +2 -3
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +2 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +24 -43
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +20 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +82 -112
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
- package/lib/extensions/Polls/Header.d.ts +10 -9
- package/lib/extensions/Polls/Header.js +15 -19
- package/lib/extensions/Polls/Header.js.map +1 -1
- package/lib/extensions/Polls/Polls.d.ts +2 -1
- package/lib/extensions/Polls/Polls.js +90 -109
- package/lib/extensions/Polls/Polls.js.map +1 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +2 -1
- package/lib/extensions/Polls/PollsBubble.js +70 -90
- package/lib/extensions/Polls/PollsBubble.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +2 -1
- package/lib/extensions/Polls/PollsDecorator.js +8 -8
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsExtension.js +0 -1
- package/lib/extensions/Polls/PollsExtension.js.map +1 -1
- package/lib/extensions/Polls/style.d.ts +45 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +43 -42
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +4 -3
- package/lib/extensions/SmartReplies/SmartRepliesView.js +38 -45
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +2 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +16 -30
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +2 -2
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +2 -4
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +3 -10
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +7 -6
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +55 -1
- package/lib/extensions/Stickers/StickerConfiguration.js +1 -6
- package/lib/extensions/Stickers/StickerConfiguration.js.map +1 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +2 -1
- package/lib/extensions/Stickers/StickersBubble.js +5 -10
- package/lib/extensions/Stickers/StickersBubble.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtension.js +1 -5
- package/lib/extensions/Stickers/StickersExtension.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -3
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +15 -19
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +0 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtension.js +1 -1
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +0 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +16 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +12 -23
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -1
- package/lib/shared/CometChatContext.d.ts +4 -2
- package/lib/shared/CometChatContext.js +1 -3
- package/lib/shared/CometChatContext.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +87 -74
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +1 -1
- package/lib/shared/assets/images/index.d.ts +1 -0
- package/lib/shared/assets/images/index.js +2 -0
- package/lib/shared/assets/images/index.js.map +1 -1
- package/lib/shared/base/BaseStyle.js +0 -5
- package/lib/shared/base/BaseStyle.js.map +1 -1
- package/lib/shared/base/BorderStyle.js +0 -3
- package/lib/shared/base/BorderStyle.js.map +1 -1
- package/lib/shared/base/FontStyle.d.ts +2 -2
- package/lib/shared/base/FontStyle.js +0 -3
- package/lib/shared/base/FontStyle.js.map +1 -1
- package/lib/shared/base/ShadowStyle.js +0 -5
- package/lib/shared/base/ShadowStyle.js.map +1 -1
- package/lib/shared/constants/UIKitConstants.d.ts +9 -0
- package/lib/shared/constants/UIKitConstants.js +12 -1
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatMessageEvents/index.js +90 -90
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +176 -150
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +8 -8
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +46 -94
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/events/ListenerInitializer.js +2 -1
- package/lib/shared/events/ListenerInitializer.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +162 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +116 -89
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +0 -2
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -1
- package/lib/shared/formatters/CometChatTextFormatter.d.ts +170 -0
- package/lib/shared/formatters/CometChatTextFormatter.js +39 -61
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatUrlsFormatter/index.d.ts +39 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +81 -88
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -1
- package/lib/shared/framework/ChatConfigurator.js +3 -3
- package/lib/shared/framework/ChatConfigurator.js.map +1 -1
- package/lib/shared/framework/DataSource.d.ts +71 -0
- package/lib/shared/framework/DataSourceDecorator.d.ts +14 -14
- package/lib/shared/framework/DataSourceDecorator.js +0 -1
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/ExtensionsDataSource.js +1 -0
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.d.ts +95 -0
- package/lib/shared/framework/MessageDataSource.js +162 -166
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- package/lib/shared/helper/SwipeRow.d.ts +68 -65
- package/lib/shared/helper/SwipeRow.js +33 -74
- package/lib/shared/helper/SwipeRow.js.map +1 -1
- package/lib/shared/helper/Toast.d.ts +2 -1
- package/lib/shared/helper/Toast.js +2 -3
- package/lib/shared/helper/Toast.js.map +1 -1
- package/lib/shared/helper/functions.d.ts +1 -1
- package/lib/shared/helper/functions.js +1 -1
- package/lib/shared/helper/functions.js.map +1 -1
- package/lib/shared/helper/types/index.d.ts +18 -0
- package/lib/shared/helper/useKeyboard.d.ts +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +14 -13
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +18 -7
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +18 -7
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +9 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +16 -6
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +6 -7
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Day.js +18 -20
- package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Days.js +7 -8
- package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.js +8 -10
- package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +33 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.js +5 -6
- package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +33 -33
- package/lib/shared/libs/CometChatCalendar/Components/Title.js +4 -5
- package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +1 -5
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +3 -1
- package/lib/shared/libs/CometChatCalendar/Entities/Components.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +36 -1
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +3 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Locales/index.js +1 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +13 -27
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +1 -4
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +8 -8
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +340 -335
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +4 -4
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +11 -12
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -1
- package/lib/shared/libs/ImageZoom/helper.d.ts +3 -3
- package/lib/shared/libs/ImageZoom/helper.js +2 -1
- package/lib/shared/libs/ImageZoom/helper.js.map +1 -1
- package/lib/shared/libs/ImageZoom/types/index.d.ts +8 -8
- package/lib/shared/libs/VideoPlayer/Video.d.ts +3 -2
- package/lib/shared/libs/VideoPlayer/Video.js +172 -256
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +4 -7
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +31 -20
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +30 -25
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -5
- package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +3 -4
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +19 -1
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +14 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +4 -3
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +27 -19
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +19 -1
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +11 -14
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +35 -1
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +10 -1
- package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Title.js +2 -5
- package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +21 -1
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +7 -10
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +5 -7
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +29 -1
- package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +28 -1
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +1 -1
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/styles.d.ts +15 -1
- package/lib/shared/libs/VideoPlayerControls/utils.js +3 -7
- package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +2 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +14 -2
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +127 -34
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +121 -116
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -1
- package/lib/shared/libs/datePickerModal/Modal.d.ts +19 -14
- package/lib/shared/libs/datePickerModal/Modal.js +74 -64
- package/lib/shared/libs/datePickerModal/Modal.js.map +1 -1
- package/lib/shared/libs/luxon/src/datetime.d.ts +48 -48
- package/lib/shared/libs/luxon/src/datetime.js +13 -30
- package/lib/shared/libs/luxon/src/datetime.js.map +1 -1
- package/lib/shared/libs/luxon/src/duration.d.ts +19 -19
- package/lib/shared/libs/luxon/src/duration.js +16 -35
- package/lib/shared/libs/luxon/src/duration.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/conversions.js +4 -4
- package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/english.d.ts +3 -3
- package/lib/shared/libs/luxon/src/impl/formatter.js +3 -3
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +1 -1
- package/lib/shared/libs/luxon/src/impl/locale.js +19 -11
- package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/regexParser.js +1 -1
- package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/util.d.ts +10 -10
- package/lib/shared/libs/luxon/src/impl/util.js +1 -1
- package/lib/shared/libs/luxon/src/impl/util.js.map +1 -1
- package/lib/shared/libs/luxon/src/info.d.ts +27 -27
- package/lib/shared/libs/luxon/src/interval.d.ts +6 -6
- package/lib/shared/libs/luxon/src/interval.js +1 -1
- package/lib/shared/libs/luxon/src/interval.js.map +1 -1
- package/lib/shared/libs/luxon/src/settings.d.ts +2 -2
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +1 -1
- package/lib/shared/modals/CometChatCallLogDetailsOptions.d.ts +14 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +17 -0
- package/lib/shared/modals/CometChatMessageOption.d.ts +12 -0
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +131 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +1 -56
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +4 -20
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +2 -4
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +1 -17
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +4 -8
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +4 -8
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +0 -13
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +1 -13
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +0 -2
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +10 -14
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +0 -8
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +6 -16
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +3 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +6 -20
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +8 -8
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +2 -13
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +32 -124
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +124 -123
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +2 -2
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +79 -66
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.js +18 -7
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +2 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +0 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +24 -24
- package/lib/shared/resources/CometChatTheme/Palette.js +66 -90
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +27 -27
- package/lib/shared/resources/CometChatTheme/Typography.js +0 -23
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +2 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +12 -20
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +0 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +5 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +9 -8
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +11 -16
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +3 -3
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +10 -10
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +10 -1
- package/lib/shared/utils/CometChatMessagePreview/style.js +13 -20
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -1
- package/lib/shared/utils/CommonUtils.js +3 -6
- package/lib/shared/utils/CommonUtils.js.map +1 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +2 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +11 -7
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
- package/lib/shared/utils/InteractiveMessageUtils.js +28 -28
- package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -1
- package/lib/shared/utils/MessageUtils.d.ts +2 -1
- package/lib/shared/utils/MessageUtils.js +4 -2
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/NetworkUtils.js +24 -16
- package/lib/shared/utils/NetworkUtils.js.map +1 -1
- package/lib/shared/utils/PermissionUtil.js +91 -74
- package/lib/shared/utils/PermissionUtil.js.map +1 -1
- package/lib/shared/utils/SchedulerUtils.d.ts +1 -7
- package/lib/shared/utils/SchedulerUtils.js.map +1 -1
- package/lib/shared/utils/TypeUtils.d.ts +3 -0
- package/lib/shared/utils/TypeUtils.js +2 -0
- package/lib/shared/utils/TypeUtils.js.map +1 -0
- package/lib/shared/utils/conversationUtils.js +51 -49
- package/lib/shared/utils/conversationUtils.js.map +1 -1
- package/lib/shared/utils/icsToJson.js +3 -2
- package/lib/shared/utils/icsToJson.js.map +1 -1
- package/lib/shared/utils/index.d.ts +1 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +3 -1
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +13 -29
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +9 -9
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -21
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +2 -11
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +5 -4
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +80 -102
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/style.d.ts +44 -1
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +0 -5
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +2 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +12 -27
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +28 -1
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +0 -2
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +0 -4
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +2 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +24 -34
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +21 -1
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +0 -7
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +0 -2
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +1 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +2 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +12 -19
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -1
- package/lib/shared/views/CometChatBadge/styles.d.ts +13 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +2 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +25 -43
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +48 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -1
- package/lib/shared/views/CometChatButton/CometChatButton.js +10 -27
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +0 -6
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +1 -1
- package/lib/shared/views/CometChatButton/style.d.ts +6 -1
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +15 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js +8 -21
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +0 -2
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +1 -1
- package/lib/shared/views/CometChatCard/style.d.ts +11 -1
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +0 -6
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +2 -1
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +20 -29
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -1
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +0 -8
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -1
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +2 -1
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +14 -29
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +2 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +50 -65
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +0 -10
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +61 -1
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +3 -2
- package/lib/shared/views/CometChatDate/CometChatDate.js +4 -10
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js +0 -3
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateStyle.js +0 -2
- package/lib/shared/views/CometChatDate/DateStyle.js.map +1 -1
- package/lib/shared/views/CometChatDate/style.d.ts +5 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +4 -2
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +32 -36
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +11 -1
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +2 -1
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +12 -28
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -1
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js +0 -7
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -1
- package/lib/shared/views/CometChatDropDown/resources/index.d.ts +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +5 -3
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +65 -72
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +2 -2
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +4 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +5 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +0 -3
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +1 -11
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -6
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +44 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +2 -2
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +2 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +20 -26
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +1 -6
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/style.d.ts +44 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +2 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +134 -140
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +0 -16
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +2 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +27 -28
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +0 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +2 -1
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +9 -16
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -1
- package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +2 -1
- package/lib/shared/views/CometChatLabel/CometChatLabel.js +3 -6
- package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -1
- package/lib/shared/views/CometChatLabel/LabelStyle.js +0 -2
- package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +90 -0
- package/lib/shared/views/CometChatList/CometChatList.js +76 -89
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatList/Header.d.ts +2 -1
- package/lib/shared/views/CometChatList/Header.js +50 -60
- package/lib/shared/views/CometChatList/Header.js.map +1 -1
- package/lib/shared/views/CometChatList/styles.d.ts +98 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +3 -3
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +59 -86
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +0 -2
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +1 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +61 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +2 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +54 -52
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +0 -10
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +27 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +61 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +17 -24
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +29 -34
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/index.d.ts +2 -1
- package/lib/shared/views/CometChatMessageInput/index.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +7 -1
- package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +2 -1
- package/lib/shared/views/CometChatPanel/CometChatPanel.js +7 -21
- package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -1
- package/lib/shared/views/CometChatPanel/PanelStyle.js +0 -5
- package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +2 -1
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +21 -26
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +0 -3
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +2 -1
- package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -1
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +2 -1
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +12 -24
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -1
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +0 -8
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -1
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +2 -1
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +12 -23
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -1
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +0 -6
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +20 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +84 -91
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +0 -11
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/index.d.ts +2 -1
- package/lib/shared/views/CometChatReactionList/index.js.map +1 -1
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +3 -2
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +44 -59
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -1
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js +0 -5
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactions/style.d.ts +38 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +3 -2
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +2 -7
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +0 -6
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/style.d.ts +7 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +2 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +473 -551
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +91 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.js +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -1
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +2 -1
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +11 -21
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -1
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +0 -6
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +2 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +10 -15
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +0 -2
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +12 -1
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +2 -1
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +14 -17
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -1
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +5 -40
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -1
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +0 -10
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +2 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +6 -13
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -3
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +2 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +13 -16
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js +0 -3
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -1
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +2 -1
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +39 -48
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -1
- package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +25 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +2 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +15 -17
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +1 -23
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +7 -1
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +2 -18
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +7 -10
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -1
- package/lib/shared/views/SwipeRow/SwipeRow.js +24 -32
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
- package/lib/shared/views/SwipeRow/style.d.ts +28 -1
- package/package.json +1 -1
- package/src/AI/AIConversationSummary/resources/close.png +0 -0
- package/src/CometChatConversations/CometChatConversations.tsx +85 -72
- package/src/CometChatConversations/resources/close.png +0 -0
- package/src/CometChatConversations/resources/rightTick.png +0 -0
- package/src/CometChatCreateGroup/resources/close.png +0 -0
- package/src/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/src/CometChatDetails/CometChatDetails.tsx +13 -19
- package/src/CometChatDetails/resources/close.png +0 -0
- package/src/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/src/CometChatGroups/resources/close.png +0 -0
- package/src/CometChatGroups/resources/rightTick.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +34 -47
- package/src/CometChatMessageComposer/resources/Info.png +0 -0
- package/src/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/src/CometChatMessageComposer/resources/close.png +0 -0
- package/src/CometChatMessageComposer/resources/image.png +0 -0
- package/src/CometChatMessageComposer/resources/send_message.png +0 -0
- package/src/CometChatMessageComposer/resources/stickers.png +0 -0
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +5 -4
- package/src/CometChatMessageList/CometChatMessageList.tsx +51 -65
- package/src/CometChatMessageList/resources/close.png +0 -0
- package/src/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/src/CometChatMessages/CometChatMessages.tsx +1 -2
- package/src/CometChatMessages/resources/info.png +0 -0
- package/src/CometChatMessages/style.ts +0 -1
- package/src/CometChatThreadedMessages/resources/close.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/src/calls/CometChatCallLogHistory/CometChatCallLogHistory.tsx +6 -4
- package/src/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/src/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/src/calls/CometChatCallLogs/CallLogsConfiguration.ts +4 -4
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +9 -7
- package/src/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/src/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/src/calls/resources/Call.png +0 -0
- package/src/calls/resources/Video.png +0 -0
- package/src/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/src/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/src/extensions/ImageModeration/ImageModerationFilter.tsx +0 -1
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +20 -4
- package/src/extensions/MessageTranslation/resources/translate.png +0 -0
- package/src/extensions/Polls/resources/close.png +0 -0
- package/src/extensions/Polls/resources/document.png +0 -0
- package/src/extensions/Polls/resources/kickIcon.png +0 -0
- package/src/extensions/Polls/resources/rightTick.png +0 -0
- package/src/extensions/SmartReplies/resources/close.png +0 -0
- package/src/extensions/Stickers/resources/Stickers.png +0 -0
- package/src/shared/assets/images/checkmark.png +0 -0
- package/src/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/src/shared/assets/images/grey-tick-icon.png +0 -0
- package/src/shared/framework/resources/audio-file.png +0 -0
- package/src/shared/framework/resources/circle_add.png +0 -0
- package/src/shared/framework/resources/copy.png +0 -0
- package/src/shared/framework/resources/delete.png +0 -0
- package/src/shared/framework/resources/edit.png +0 -0
- package/src/shared/framework/resources/file_upload.png +0 -0
- package/src/shared/framework/resources/image.png +0 -0
- package/src/shared/framework/resources/info.png +0 -0
- package/src/shared/framework/resources/messageInPrivate.png +0 -0
- package/src/shared/framework/resources/pause.png +0 -0
- package/src/shared/framework/resources/play.png +0 -0
- package/src/shared/framework/resources/send_message.png +0 -0
- package/src/shared/framework/resources/share.png +0 -0
- package/src/shared/framework/resources/thread.png +0 -0
- package/src/shared/framework/resources/video_upload.png +0 -0
- package/src/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/src/shared/utils/CommonUtils.ts +43 -9
- package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +116 -71
- package/src/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +23 -3
- package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/src/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +26 -3
- package/src/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/src/shared/views/CometChatFileBubble/style.ts +2 -0
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +21 -3
- package/src/shared/views/CometChatList/CometChatList.tsx +15 -10
- package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +6 -6
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +7 -4
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +23 -3
- package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import React, { useContext, useEffect, useRef, useState, memo } from "react";
|
|
2
11
|
import { ActivityIndicator, Image, Text, TouchableOpacity, View, NativeModules, } from "react-native";
|
|
3
12
|
import { CometChatContext } from "../../CometChatContext";
|
|
@@ -8,6 +17,7 @@ import { ICONS } from "../../assets/images";
|
|
|
8
17
|
import { CometChatButton } from "../CometChatButton";
|
|
9
18
|
import icsToJson from "../../utils/icsToJson";
|
|
10
19
|
import { APIAction, ButtonElement, SchedulerMessage } from "../../modals";
|
|
20
|
+
//@ts-ignore
|
|
11
21
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
12
22
|
import { CometChatNetworkUtils } from "../../utils/NetworkUtils";
|
|
13
23
|
import { HTTPSRequestMethods } from "../../constants/UIKitConstants";
|
|
@@ -40,6 +50,7 @@ const dateFormats = {
|
|
|
40
50
|
time: "HHmm",
|
|
41
51
|
};
|
|
42
52
|
export const CometChatSchedulerBubble = memo((props) => {
|
|
53
|
+
var _a, _b;
|
|
43
54
|
const { theme } = useContext(CometChatContext);
|
|
44
55
|
const { schedulerMessage, style, onScheduleClick } = props;
|
|
45
56
|
const message = SchedulerMessage.fromJSON(schedulerMessage);
|
|
@@ -56,6 +67,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
56
67
|
const [selectedDateObj, setSlectedDateObj] = useState({});
|
|
57
68
|
const [compDimensions, setCompDimensions] = useState({});
|
|
58
69
|
const [selectedSlotState, setSelectedSlotState] = useState({});
|
|
70
|
+
//@ts-ignore
|
|
59
71
|
const [loggedInUser, setLoggedInUser] = useState({});
|
|
60
72
|
const tempQuickSelectRange = useRef([]);
|
|
61
73
|
const [quickAvailbleSlots, setQuickAvailbleSlots] = useState([]);
|
|
@@ -72,17 +84,18 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
72
84
|
return day;
|
|
73
85
|
};
|
|
74
86
|
const getConvertedAvailablityObjectForDate = (date, day, newObj) => {
|
|
87
|
+
var _a;
|
|
75
88
|
let newAvailabilityObj = availablityObjRef.current;
|
|
76
89
|
if (!newAvailabilityObj || !newAvailabilityObj.availability)
|
|
77
90
|
return;
|
|
78
|
-
newAvailabilityObj
|
|
91
|
+
(_a = newAvailabilityObj === null || newAvailabilityObj === void 0 ? void 0 : newAvailabilityObj.availability[day.toLowerCase()]) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
|
|
79
92
|
let from = convertToATimeZone(`${date} ${item.from}`, newAvailabilityObj.timeZoneCode, "yyyy-MM-dd HHmm", "fromFormat", "yyyy-MM-dd HHmm").split(" ");
|
|
80
93
|
let startDate = from[0];
|
|
81
94
|
let startTime = from[1];
|
|
82
95
|
let to = convertToATimeZone(`${date} ${item.to}`, newAvailabilityObj.timeZoneCode, "yyyy-MM-dd HHmm", "fromFormat", "yyyy-MM-dd HHmm").split(" ");
|
|
83
96
|
let endDate = to[0];
|
|
84
97
|
let endTime = to[1];
|
|
85
|
-
if (endTime !== "2359" && endTime
|
|
98
|
+
if (endTime !== "2359" && (endTime === null || endTime === void 0 ? void 0 : endTime.slice(-1)) === "9") {
|
|
86
99
|
endTime = addMinutes(`${endTime.slice(0, 2)}:${endTime.slice(2)}`, 1);
|
|
87
100
|
}
|
|
88
101
|
if (startDate === endDate) {
|
|
@@ -142,7 +155,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
142
155
|
}
|
|
143
156
|
});
|
|
144
157
|
};
|
|
145
|
-
const onSelectDate =
|
|
158
|
+
const onSelectDate = (date) => __awaiter(void 0, void 0, void 0, function* () {
|
|
146
159
|
setSelectedDate(date);
|
|
147
160
|
let newObj = {};
|
|
148
161
|
let previousDate = getNextFormatedDate(date, true);
|
|
@@ -154,8 +167,8 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
154
167
|
let nextDay = DateTime.fromFormat(nextDate, dateFormats.date).toFormat("EEEE");
|
|
155
168
|
getConvertedAvailablityObjectForDate(nextDate, nextDay, newObj);
|
|
156
169
|
if (newObj[date]) {
|
|
157
|
-
let availabilityObjWithTimeSlots = {
|
|
158
|
-
let range =
|
|
170
|
+
let availabilityObjWithTimeSlots = Object.assign({}, newObj);
|
|
171
|
+
let range = yield getMeetingSlots({
|
|
159
172
|
date,
|
|
160
173
|
availabilityObject: availabilityObjWithTimeSlots,
|
|
161
174
|
});
|
|
@@ -165,7 +178,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
165
178
|
if (lastSlotMinutes < 1439 &&
|
|
166
179
|
lastSlotMinutes + interactiveData.duration * 2 > 1440) {
|
|
167
180
|
let nextDate = getNextFormatedDate(date);
|
|
168
|
-
let nextRange =
|
|
181
|
+
let nextRange = yield getMeetingSlots({
|
|
169
182
|
date: nextDate,
|
|
170
183
|
availabilityObject: availabilityObjWithTimeSlots,
|
|
171
184
|
});
|
|
@@ -177,10 +190,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
177
190
|
range.push(`${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`);
|
|
178
191
|
}
|
|
179
192
|
}
|
|
180
|
-
availabilityObjWithTimeSlots[date] = {
|
|
181
|
-
...availabilityObjWithTimeSlots[date],
|
|
182
|
-
availability: range,
|
|
183
|
-
};
|
|
193
|
+
availabilityObjWithTimeSlots[date] = Object.assign(Object.assign({}, availabilityObjWithTimeSlots[date]), { availability: range });
|
|
184
194
|
setDateAvailablity(availabilityObjWithTimeSlots[date]);
|
|
185
195
|
setCurrentComp((prev) => ({
|
|
186
196
|
current: componentEnum.timeSlot,
|
|
@@ -202,7 +212,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
202
212
|
previous: prev.current,
|
|
203
213
|
}));
|
|
204
214
|
}
|
|
205
|
-
};
|
|
215
|
+
});
|
|
206
216
|
const getAvailableDays = ({ startDate, endDate, availability, timeZoneCode, }) => {
|
|
207
217
|
let initialDate = new Date(startDate);
|
|
208
218
|
let finalDate = new Date(endDate);
|
|
@@ -238,22 +248,22 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
238
248
|
};
|
|
239
249
|
const getMeetingSlots = ({ date, availabilityObject, blockedSlots, }) => {
|
|
240
250
|
return new Promise((resolve, reject) => {
|
|
251
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
241
252
|
let range = [];
|
|
242
|
-
combineAvailability(availabilityObject[date]
|
|
243
|
-
if (availabilityObject[date]
|
|
244
|
-
availabilityObject[date]
|
|
253
|
+
combineAvailability((_a = availabilityObject[date]) === null || _a === void 0 ? void 0 : _a.availability);
|
|
254
|
+
if (((_c = (_b = availabilityObject[date]) === null || _b === void 0 ? void 0 : _b.availability) === null || _c === void 0 ? void 0 : _c.length) &&
|
|
255
|
+
((_e = (_d = availabilityObject[date]) === null || _d === void 0 ? void 0 : _d.availability[0]) === null || _e === void 0 ? void 0 : _e.from)) {
|
|
245
256
|
let newObj = JSON.parse(JSON.stringify(availabilityObject));
|
|
246
|
-
availablityObjBeforeSlots.current[date] = {
|
|
247
|
-
...newObj[date],
|
|
248
|
-
};
|
|
257
|
+
availablityObjBeforeSlots.current[date] = Object.assign({}, newObj[date]);
|
|
249
258
|
}
|
|
250
|
-
availabilityObject[date]
|
|
259
|
+
(_g = (_f = availabilityObject[date]) === null || _f === void 0 ? void 0 : _f.availability) === null || _g === void 0 ? void 0 : _g.forEach((item) => {
|
|
260
|
+
var _a, _b;
|
|
251
261
|
let icsSelectedSlots = icsFileData.current[date];
|
|
252
262
|
let selectedSlots = [];
|
|
253
263
|
if (blockedSlots) {
|
|
254
264
|
selectedSlots = blockedSlots;
|
|
255
265
|
}
|
|
256
|
-
icsSelectedSlots
|
|
266
|
+
icsSelectedSlots === null || icsSelectedSlots === void 0 ? void 0 : icsSelectedSlots.forEach((item) => {
|
|
257
267
|
if (item.startDate === item.endDate) {
|
|
258
268
|
selectedSlots.push({
|
|
259
269
|
startTime: item.startTime,
|
|
@@ -296,20 +306,20 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
296
306
|
startTime: item.from,
|
|
297
307
|
endTime: item.to,
|
|
298
308
|
selectedSlots,
|
|
299
|
-
slotDuration: interactiveData.duration
|
|
300
|
-
bufferDuration: interactiveData
|
|
309
|
+
slotDuration: (_a = interactiveData.duration) !== null && _a !== void 0 ? _a : 30,
|
|
310
|
+
bufferDuration: (_b = interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.bufferTime) !== null && _b !== void 0 ? _b : 0,
|
|
301
311
|
}),
|
|
302
312
|
];
|
|
303
313
|
});
|
|
304
314
|
resolve(range);
|
|
305
315
|
});
|
|
306
316
|
};
|
|
307
|
-
const getNextQuickSlots =
|
|
317
|
+
const getNextQuickSlots = (date_1, newQuickObj_1, ...args_1) => __awaiter(void 0, [date_1, newQuickObj_1, ...args_1], void 0, function* (date, newQuickObj, i = 0) {
|
|
308
318
|
if (date && date !== "Invalid DateTime" && i < 30) {
|
|
309
319
|
let nextDate = getNextFormatedDate(date);
|
|
310
320
|
let nextday = DateTime.fromFormat(nextDate, dateFormats.date).toFormat("EEEE");
|
|
311
321
|
getConvertedAvailablityObjectForDate(nextDate, nextday, newQuickObj);
|
|
312
|
-
let nextRange =
|
|
322
|
+
let nextRange = yield getMeetingSlots({
|
|
313
323
|
date: nextDate,
|
|
314
324
|
availabilityObject: newQuickObj,
|
|
315
325
|
});
|
|
@@ -324,12 +334,12 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
324
334
|
...nextRange,
|
|
325
335
|
];
|
|
326
336
|
if (tempQuickSelectRange.current.length < 2) {
|
|
327
|
-
return
|
|
337
|
+
return yield getNextQuickSlots(nextDate, newQuickObj, i + 1);
|
|
328
338
|
}
|
|
329
339
|
return nextRange;
|
|
330
340
|
}
|
|
331
|
-
};
|
|
332
|
-
const getQuickSelectSlots =
|
|
341
|
+
});
|
|
342
|
+
const getQuickSelectSlots = (date) => __awaiter(void 0, void 0, void 0, function* () {
|
|
333
343
|
let day = DateTime.fromJSDate(date).toFormat("EEEE");
|
|
334
344
|
date = DateTime.fromJSDate(date).toFormat(dateFormats.date);
|
|
335
345
|
let newQuickObj = {};
|
|
@@ -340,7 +350,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
340
350
|
endTime: `${new Date().getHours()}${new Date().getMinutes()}`,
|
|
341
351
|
},
|
|
342
352
|
];
|
|
343
|
-
let range =
|
|
353
|
+
let range = yield getMeetingSlots({
|
|
344
354
|
date,
|
|
345
355
|
availabilityObject: newQuickObj,
|
|
346
356
|
blockedSlots,
|
|
@@ -354,7 +364,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
354
364
|
range = [];
|
|
355
365
|
}
|
|
356
366
|
if (range.length < 2)
|
|
357
|
-
|
|
367
|
+
yield getNextQuickSlots(date, newQuickObj);
|
|
358
368
|
let quickSlotsArray = [];
|
|
359
369
|
Object.entries(newQuickObj).forEach(([key, value]) => {
|
|
360
370
|
value.availability.forEach((item) => {
|
|
@@ -370,7 +380,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
370
380
|
current: componentEnum.quickSelect,
|
|
371
381
|
previous: prev.current,
|
|
372
382
|
}));
|
|
373
|
-
};
|
|
383
|
+
});
|
|
374
384
|
const getICSFile = () => {
|
|
375
385
|
return new Promise((resolve, reject) => {
|
|
376
386
|
if (interactiveData.icsFileUrl)
|
|
@@ -381,11 +391,11 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
381
391
|
}
|
|
382
392
|
return { status: response.status };
|
|
383
393
|
})
|
|
384
|
-
.then(
|
|
394
|
+
.then((res) => __awaiter(void 0, void 0, void 0, function* () {
|
|
385
395
|
// let text = response?.text();
|
|
386
396
|
// Converted ICS to JSON
|
|
387
397
|
if (res.status === 200) {
|
|
388
|
-
let text =
|
|
398
|
+
let text = yield res.response.text();
|
|
389
399
|
let jcalData = icsToJson(text);
|
|
390
400
|
// Restructure the JSON to make it more easy to assign to calendar dates
|
|
391
401
|
let finalJcalData = {};
|
|
@@ -394,13 +404,10 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
394
404
|
let startTime = convertToLocalTimeZone(convertDate(item.startDate), item.tzid ? item.tzid : "utc", dateFormats.time);
|
|
395
405
|
let endDate = convertToLocalTimeZone(convertDate(item.endDate), item.tzid ? item.tzid : "utc", dateFormats.date);
|
|
396
406
|
let endTime = convertToLocalTimeZone(convertDate(item.endDate), item.tzid ? item.tzid : "utc", dateFormats.time);
|
|
397
|
-
let finalObject = {
|
|
398
|
-
...item,
|
|
399
|
-
startDate,
|
|
407
|
+
let finalObject = Object.assign(Object.assign({}, item), { startDate,
|
|
400
408
|
startTime,
|
|
401
409
|
endDate,
|
|
402
|
-
endTime
|
|
403
|
-
};
|
|
410
|
+
endTime });
|
|
404
411
|
if (startDate === endDate) {
|
|
405
412
|
if (finalJcalData[startDate]) {
|
|
406
413
|
finalJcalData[startDate] = [
|
|
@@ -415,46 +422,24 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
415
422
|
let nextDate = getNextFormatedDate(startDate);
|
|
416
423
|
if (endDate !== nextDate) {
|
|
417
424
|
finalJcalData[startDate] = [
|
|
418
|
-
{
|
|
419
|
-
...finalObject,
|
|
420
|
-
startDate: startDate,
|
|
421
|
-
endDate: startDate,
|
|
422
|
-
endTime: "2359",
|
|
423
|
-
},
|
|
425
|
+
Object.assign(Object.assign({}, finalObject), { startDate: startDate, endDate: startDate, endTime: "2359" }),
|
|
424
426
|
];
|
|
425
427
|
while (endDate !== nextDate) {
|
|
426
428
|
if (finalJcalData[nextDate]) {
|
|
427
429
|
finalJcalData[nextDate] = [
|
|
428
430
|
...finalJcalData[nextDate],
|
|
429
|
-
{
|
|
430
|
-
...finalObject,
|
|
431
|
-
endTime: "2359",
|
|
432
|
-
endDate: nextDate,
|
|
433
|
-
startDate: nextDate,
|
|
434
|
-
startTime: "0000",
|
|
435
|
-
},
|
|
431
|
+
Object.assign(Object.assign({}, finalObject), { endTime: "2359", endDate: nextDate, startDate: nextDate, startTime: "0000" }),
|
|
436
432
|
];
|
|
437
433
|
}
|
|
438
434
|
else
|
|
439
435
|
finalJcalData[nextDate] = [
|
|
440
|
-
{
|
|
441
|
-
...finalObject,
|
|
442
|
-
endTime: "2359",
|
|
443
|
-
startDate: nextDate,
|
|
444
|
-
endDate: nextDate,
|
|
445
|
-
startTime: "0000",
|
|
446
|
-
},
|
|
436
|
+
Object.assign(Object.assign({}, finalObject), { endTime: "2359", startDate: nextDate, endDate: nextDate, startTime: "0000" }),
|
|
447
437
|
];
|
|
448
438
|
nextDate = getNextFormatedDate(nextDate);
|
|
449
439
|
}
|
|
450
440
|
if (endDate === nextDate) {
|
|
451
441
|
finalJcalData[nextDate] = [
|
|
452
|
-
{
|
|
453
|
-
...finalObject,
|
|
454
|
-
startDate: nextDate,
|
|
455
|
-
endDate: nextDate,
|
|
456
|
-
startTime: "0000",
|
|
457
|
-
},
|
|
442
|
+
Object.assign(Object.assign({}, finalObject), { startDate: nextDate, endDate: nextDate, startTime: "0000" }),
|
|
458
443
|
];
|
|
459
444
|
}
|
|
460
445
|
}
|
|
@@ -462,38 +447,22 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
462
447
|
if (finalJcalData[startDate]) {
|
|
463
448
|
finalJcalData[startDate] = [
|
|
464
449
|
...finalJcalData[startDate],
|
|
465
|
-
{
|
|
466
|
-
...finalObject,
|
|
467
|
-
endTime: "2359",
|
|
468
|
-
endDate: startDate,
|
|
469
|
-
},
|
|
450
|
+
Object.assign(Object.assign({}, finalObject), { endTime: "2359", endDate: startDate }),
|
|
470
451
|
];
|
|
471
452
|
}
|
|
472
453
|
else
|
|
473
454
|
finalJcalData[startDate] = [
|
|
474
|
-
{
|
|
475
|
-
...finalObject,
|
|
476
|
-
endTime: "2359",
|
|
477
|
-
endDate: startDate,
|
|
478
|
-
},
|
|
455
|
+
Object.assign(Object.assign({}, finalObject), { endTime: "2359", endDate: startDate }),
|
|
479
456
|
];
|
|
480
457
|
if (finalJcalData[endDate]) {
|
|
481
458
|
finalJcalData[endDate] = [
|
|
482
459
|
...finalJcalData[endDate],
|
|
483
|
-
{
|
|
484
|
-
...finalObject,
|
|
485
|
-
startTime: "0000",
|
|
486
|
-
startDate: endDate,
|
|
487
|
-
},
|
|
460
|
+
Object.assign(Object.assign({}, finalObject), { startTime: "0000", startDate: endDate }),
|
|
488
461
|
];
|
|
489
462
|
}
|
|
490
463
|
else
|
|
491
464
|
finalJcalData[endDate] = [
|
|
492
|
-
{
|
|
493
|
-
...finalObject,
|
|
494
|
-
startTime: "0000",
|
|
495
|
-
startDate: endDate,
|
|
496
|
-
},
|
|
465
|
+
Object.assign(Object.assign({}, finalObject), { startTime: "0000", startDate: endDate }),
|
|
497
466
|
];
|
|
498
467
|
}
|
|
499
468
|
}
|
|
@@ -504,7 +473,7 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
504
473
|
else {
|
|
505
474
|
reject(res);
|
|
506
475
|
}
|
|
507
|
-
})
|
|
476
|
+
}))
|
|
508
477
|
.catch((err) => {
|
|
509
478
|
console.log("Error :: ", err);
|
|
510
479
|
reject(err);
|
|
@@ -516,9 +485,10 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
516
485
|
useEffect(() => {
|
|
517
486
|
CometChat.getLoggedinUser()
|
|
518
487
|
.then((u) => {
|
|
488
|
+
var _a, _b;
|
|
519
489
|
let hasInteractionCompleted = InteractiveMessageUtils.checkHasInteractionCompleted({
|
|
520
|
-
interactedElements: message
|
|
521
|
-
interactionGoal: message
|
|
490
|
+
interactedElements: (message === null || message === void 0 ? void 0 : message.getInteractions()) || [],
|
|
491
|
+
interactionGoal: (message === null || message === void 0 ? void 0 : message.getInteractionGoal()) || undefined
|
|
522
492
|
});
|
|
523
493
|
if (hasInteractionCompleted) {
|
|
524
494
|
setCurrentComp((prev) => ({
|
|
@@ -531,8 +501,8 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
531
501
|
currentTimeZoneRef.current = timeZone;
|
|
532
502
|
});
|
|
533
503
|
setLoggedInUser(u);
|
|
534
|
-
if (u
|
|
535
|
-
schedulerMessage
|
|
504
|
+
if ((u === null || u === void 0 ? void 0 : u.getUid()) === ((_a = schedulerMessage === null || schedulerMessage === void 0 ? void 0 : schedulerMessage.getSender()) === null || _a === void 0 ? void 0 : _a.getUid()) &&
|
|
505
|
+
((_b = schedulerMessage === null || schedulerMessage === void 0 ? void 0 : schedulerMessage.data) === null || _b === void 0 ? void 0 : _b.allowSenderInteraction) == false) {
|
|
536
506
|
setAllowInteraction(false);
|
|
537
507
|
}
|
|
538
508
|
getICSFile();
|
|
@@ -551,154 +521,132 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
551
521
|
});
|
|
552
522
|
}, []);
|
|
553
523
|
const QuickSelectView = () => {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
{
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
</TouchableOpacity>
|
|
587
|
-
</View>);
|
|
524
|
+
var _a, _b;
|
|
525
|
+
return (React.createElement(View, null,
|
|
526
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
527
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}` }),
|
|
528
|
+
React.createElement(View, { style: styles.quickContTimeContainer },
|
|
529
|
+
quickAvailbleSlots.slice(0, 3).map((item) => {
|
|
530
|
+
var _a, _b, _c;
|
|
531
|
+
return (React.createElement(TimeBoxView, { text: `${(((_b = (_a = item === null || item === void 0 ? void 0 : item.day) === null || _a === void 0 ? void 0 : _a.charAt(0)) === null || _b === void 0 ? void 0 : _b.toUpperCase()) + ((_c = item === null || item === void 0 ? void 0 : item.day) === null || _c === void 0 ? void 0 : _c.slice(1))).slice(0, 3)}, ${DateTime.fromFormat(item.date, "yyyy-MM-dd").toFormat("LLL dd")} at ${convert24to12(item.slot)}`, item: item }));
|
|
532
|
+
}),
|
|
533
|
+
React.createElement(Text, { style: [
|
|
534
|
+
theme.typography.subtitle5,
|
|
535
|
+
{ color: theme.palette.getAccent600(), lineHeight: 22 },
|
|
536
|
+
] }, interactiveData === null || interactiveData === void 0 ? void 0 :
|
|
537
|
+
interactiveData.duration,
|
|
538
|
+
localize("MIN_MEETING"),
|
|
539
|
+
" \u2022 ", interactiveData === null || interactiveData === void 0 ? void 0 :
|
|
540
|
+
interactiveData.timezoneCode)),
|
|
541
|
+
React.createElement(TouchableOpacity, { style: styles.quickContMore, onPress: () => {
|
|
542
|
+
if (allowInteraction)
|
|
543
|
+
setCurrentComp((prev) => ({
|
|
544
|
+
current: componentEnum.calendar,
|
|
545
|
+
previous: prev.current,
|
|
546
|
+
}));
|
|
547
|
+
} },
|
|
548
|
+
React.createElement(Text, { style: [
|
|
549
|
+
theme.typography.subtitle4,
|
|
550
|
+
{
|
|
551
|
+
color: allowInteraction
|
|
552
|
+
? theme.palette.getPrimary()
|
|
553
|
+
: theme.palette.getAccent800(),
|
|
554
|
+
},
|
|
555
|
+
] }, localize("MORE_TIMES")))));
|
|
588
556
|
};
|
|
589
557
|
const TimeBoxView = ({ text, item }) => {
|
|
590
|
-
|
|
558
|
+
var _a, _b, _c, _d;
|
|
559
|
+
return (React.createElement(TouchableOpacity, { key: text, style: [
|
|
591
560
|
styles.timeBoxContainer,
|
|
592
561
|
{
|
|
593
562
|
borderColor: allowInteraction
|
|
594
563
|
? theme.palette.getPrimary()
|
|
595
564
|
: theme.palette.getAccent800(),
|
|
596
565
|
},
|
|
597
|
-
style
|
|
566
|
+
(_a = style === null || style === void 0 ? void 0 : style.suggestedTimeBorder) !== null && _a !== void 0 ? _a : {},
|
|
598
567
|
{
|
|
599
|
-
backgroundColor: style
|
|
600
|
-
theme.palette.getBackgroundColor(),
|
|
568
|
+
backgroundColor: (_b = style === null || style === void 0 ? void 0 : style.suggestedTimeBackground) !== null && _b !== void 0 ? _b : theme.palette.getBackgroundColor(),
|
|
601
569
|
},
|
|
602
|
-
]
|
|
570
|
+
], onPress: () => {
|
|
571
|
+
var _a;
|
|
603
572
|
if (allowInteraction) {
|
|
604
573
|
setSelectedSlotState({
|
|
605
|
-
startTime: `${item
|
|
574
|
+
startTime: `${(_a = item === null || item === void 0 ? void 0 : item.slot) === null || _a === void 0 ? void 0 : _a.replace(":", "")}`,
|
|
606
575
|
endTime: addMinutes(item.slot, interactiveData.duration),
|
|
607
|
-
selectedDate: item
|
|
608
|
-
selectedDay: item
|
|
576
|
+
selectedDate: item === null || item === void 0 ? void 0 : item.date,
|
|
577
|
+
selectedDay: item === null || item === void 0 ? void 0 : item.day,
|
|
609
578
|
});
|
|
610
579
|
setCurrentComp((prev) => ({
|
|
611
580
|
current: componentEnum.schedule,
|
|
612
581
|
previous: prev.current,
|
|
613
582
|
}));
|
|
614
583
|
}
|
|
615
|
-
}}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
{text}
|
|
626
|
-
</Text>
|
|
627
|
-
</TouchableOpacity>);
|
|
584
|
+
} },
|
|
585
|
+
React.createElement(Text, { style: [
|
|
586
|
+
theme.typography.subtitle2,
|
|
587
|
+
(_c = style === null || style === void 0 ? void 0 : style.suggestedTimeTextFont) !== null && _c !== void 0 ? _c : {},
|
|
588
|
+
{
|
|
589
|
+
color: allowInteraction
|
|
590
|
+
? (_d = style === null || style === void 0 ? void 0 : style.suggestedTimeTextColor) !== null && _d !== void 0 ? _d : theme.palette.getPrimary()
|
|
591
|
+
: theme.palette.getAccent800(),
|
|
592
|
+
},
|
|
593
|
+
] }, text)));
|
|
628
594
|
};
|
|
629
595
|
const AvatarView = (props) => {
|
|
596
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
630
597
|
const { avatar, title, subTitle, onBackPress } = props;
|
|
631
598
|
if (currentComp.current === componentEnum.quickSelect ||
|
|
632
599
|
currentComp.current === componentEnum.loading)
|
|
633
|
-
return (
|
|
634
|
-
|
|
600
|
+
return (React.createElement(View, { style: styles.quickAvatarContainer },
|
|
601
|
+
React.createElement(CometChatAvatar, { name: (_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getName(), image: {
|
|
602
|
+
uri: avatar,
|
|
603
|
+
}, style: Object.assign(Object.assign(Object.assign({ outerView: { borderWidth: 0 } }, styles.avatarCont), { border: { borderWidth: 0 } }), ((style === null || style === void 0 ? void 0 : style.avatarStyle) ? style.avatarStyle : {})) }),
|
|
604
|
+
React.createElement(Text, { style: [
|
|
605
|
+
theme.typography.heading3,
|
|
606
|
+
(_b = style === null || style === void 0 ? void 0 : style.titleTextFont) !== null && _b !== void 0 ? _b : {},
|
|
607
|
+
{
|
|
608
|
+
color: (_c = style === null || style === void 0 ? void 0 : style.titleTextColor) !== null && _c !== void 0 ? _c : (_d = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _d === void 0 ? void 0 : _d.getAccent800(),
|
|
609
|
+
textAlign: "center",
|
|
610
|
+
},
|
|
611
|
+
] }, title)));
|
|
612
|
+
return (React.createElement(View, { style: styles.calendarAvatarContainer },
|
|
613
|
+
React.createElement(TouchableOpacity, { style: { paddingHorizontal: 6 }, onPress: () => {
|
|
614
|
+
if (slotError !== slotErrorEnum.noError)
|
|
615
|
+
setSlotError(slotErrorEnum.noError);
|
|
616
|
+
onBackPress();
|
|
617
|
+
} },
|
|
618
|
+
React.createElement(Image, { source: ICONS.BACK_ARROW, style: styles.calendarBackArrow })),
|
|
619
|
+
Boolean(avatar) && (React.createElement(CometChatAvatar, { name: (_e = message === null || message === void 0 ? void 0 : message.getSender()) === null || _e === void 0 ? void 0 : _e.getName(), style: Object.assign(Object.assign({ outerView: { borderWidth: 0 } }, styles.avatarCont), ((style === null || style === void 0 ? void 0 : style.avatarStyle) ? style.avatarStyle : {})), image: {
|
|
635
620
|
uri: avatar,
|
|
636
|
-
}}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
uri: avatar,
|
|
666
|
-
}}/>)}
|
|
667
|
-
<View style={{ paddingHorizontal: Boolean(avatar) ? 10 : 0, flex: 1 }}>
|
|
668
|
-
{Boolean(title) && (<Text numberOfLines={1} ellipsizeMode="tail" style={[
|
|
669
|
-
theme.typography.name,
|
|
670
|
-
style?.titleTextFont ?? {},
|
|
671
|
-
{
|
|
672
|
-
color: style?.titleTextColor ?? theme?.palette?.getAccent800(),
|
|
673
|
-
flex: 1,
|
|
674
|
-
},
|
|
675
|
-
]}>
|
|
676
|
-
{title}
|
|
677
|
-
</Text>)}
|
|
678
|
-
{Boolean(subTitle) && (<View style={{
|
|
679
|
-
alignItems: "center",
|
|
680
|
-
flexDirection: "row",
|
|
681
|
-
height: 28,
|
|
682
|
-
}}>
|
|
683
|
-
<Image source={ICONS.CLOCK} style={{
|
|
684
|
-
height: 18,
|
|
685
|
-
width: 18,
|
|
686
|
-
tintColor: theme.palette.getAccent600(),
|
|
687
|
-
}}/>
|
|
688
|
-
<Text style={[
|
|
689
|
-
theme.typography.subtitle1,
|
|
690
|
-
style?.summaryTextFont ?? {},
|
|
691
|
-
{
|
|
692
|
-
color: style?.summaryTextColor ??
|
|
693
|
-
theme?.palette?.getAccent600(),
|
|
694
|
-
},
|
|
695
|
-
]}>
|
|
696
|
-
{" "}
|
|
697
|
-
{subTitle}
|
|
698
|
-
</Text>
|
|
699
|
-
</View>)}
|
|
700
|
-
</View>
|
|
701
|
-
</View>);
|
|
621
|
+
} })),
|
|
622
|
+
React.createElement(View, { style: { paddingHorizontal: Boolean(avatar) ? 10 : 0, flex: 1 } },
|
|
623
|
+
Boolean(title) && (React.createElement(Text, { numberOfLines: 1, ellipsizeMode: "tail", style: [
|
|
624
|
+
theme.typography.name,
|
|
625
|
+
(_f = style === null || style === void 0 ? void 0 : style.titleTextFont) !== null && _f !== void 0 ? _f : {},
|
|
626
|
+
{
|
|
627
|
+
color: (_g = style === null || style === void 0 ? void 0 : style.titleTextColor) !== null && _g !== void 0 ? _g : (_h = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _h === void 0 ? void 0 : _h.getAccent800(),
|
|
628
|
+
flex: 1,
|
|
629
|
+
},
|
|
630
|
+
] }, title)),
|
|
631
|
+
Boolean(subTitle) && (React.createElement(View, { style: {
|
|
632
|
+
alignItems: "center",
|
|
633
|
+
flexDirection: "row",
|
|
634
|
+
height: 28,
|
|
635
|
+
} },
|
|
636
|
+
React.createElement(Image, { source: ICONS.CLOCK, style: {
|
|
637
|
+
height: 18,
|
|
638
|
+
width: 18,
|
|
639
|
+
tintColor: theme.palette.getAccent600(),
|
|
640
|
+
} }),
|
|
641
|
+
React.createElement(Text, { style: [
|
|
642
|
+
theme.typography.subtitle1,
|
|
643
|
+
(_j = style === null || style === void 0 ? void 0 : style.summaryTextFont) !== null && _j !== void 0 ? _j : {},
|
|
644
|
+
{
|
|
645
|
+
color: (_k = style === null || style === void 0 ? void 0 : style.summaryTextColor) !== null && _k !== void 0 ? _k : (_l = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _l === void 0 ? void 0 : _l.getAccent600(),
|
|
646
|
+
},
|
|
647
|
+
] },
|
|
648
|
+
" ",
|
|
649
|
+
subTitle))))));
|
|
702
650
|
};
|
|
703
651
|
const getNextFormatedDate = (date, previous = false) => {
|
|
704
652
|
let nextDate = getFormatedDateString({
|
|
@@ -710,75 +658,64 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
710
658
|
return nextDate;
|
|
711
659
|
};
|
|
712
660
|
const CalendarView = () => {
|
|
661
|
+
var _a, _b, _c, _d, _e;
|
|
713
662
|
let initVisibleDate = selectedDate;
|
|
714
663
|
if (new Date(selectedDate) < new Date(availableRange.initialDate)) {
|
|
715
664
|
initVisibleDate = availableRange.initialDate;
|
|
716
665
|
}
|
|
717
|
-
return (
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
{ color: theme.palette.getAccent900() },
|
|
764
|
-
]}>
|
|
765
|
-
<Image source={ICONS.EARTH} style={{
|
|
766
|
-
height: 15,
|
|
767
|
-
width: 15,
|
|
768
|
-
tintColor: theme.palette.getAccent900(),
|
|
769
|
-
}}/>{" "}
|
|
770
|
-
{interactiveData.timezoneCode}
|
|
771
|
-
</Text>
|
|
772
|
-
</View>
|
|
773
|
-
</View>
|
|
774
|
-
</View>);
|
|
666
|
+
return (React.createElement(View, null,
|
|
667
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
668
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}`, subTitle: `${interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.duration} min`, onBackPress: () => {
|
|
669
|
+
setCurrentComp((prev) => ({
|
|
670
|
+
current: componentEnum.quickSelect,
|
|
671
|
+
previous: prev.current,
|
|
672
|
+
}));
|
|
673
|
+
} }),
|
|
674
|
+
React.createElement(View, { style: styles.calendarSelectDayContainer },
|
|
675
|
+
React.createElement(Text, { style: [
|
|
676
|
+
theme.typography.text1,
|
|
677
|
+
{ color: (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c.getAccent900() },
|
|
678
|
+
] }, localize("SELECT_DAY"))),
|
|
679
|
+
React.createElement(View, { style: { padding: 5 } },
|
|
680
|
+
React.createElement(SingleDateSelectionCalendar, { initVisibleDate: initVisibleDate, showExtraDates: true, testID: "calendar-1", minDate: availableRange.initialDate, maxDate: availableRange.finalDate, onSelectDate: onSelectDate, selectedDate: selectedDate,
|
|
681
|
+
// ArrowComponent={()}
|
|
682
|
+
theme: Object.assign(Object.assign({}, DefaultTheme), { calendarContainer: [
|
|
683
|
+
DefaultTheme.calendarContainer,
|
|
684
|
+
{ backgroundColor: "transparent" },
|
|
685
|
+
], normalArrowImage: [
|
|
686
|
+
DefaultTheme.normalArrowImage,
|
|
687
|
+
{ tintColor: "grey" },
|
|
688
|
+
], selectedMonthText: [
|
|
689
|
+
DefaultTheme.selectedMonthText,
|
|
690
|
+
{
|
|
691
|
+
color: (_d = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _d === void 0 ? void 0 : _d.getPrimary(),
|
|
692
|
+
},
|
|
693
|
+
], selectedDayContainer: [
|
|
694
|
+
DefaultTheme.selectedDayContainer,
|
|
695
|
+
{
|
|
696
|
+
borderRadius: 5,
|
|
697
|
+
backgroundColor: (_e = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _e === void 0 ? void 0 : _e.getPrimary(),
|
|
698
|
+
},
|
|
699
|
+
] }) }),
|
|
700
|
+
React.createElement(View, { style: styles.calendarTimeZoneContainer },
|
|
701
|
+
React.createElement(Text, { style: [
|
|
702
|
+
theme.typography.subtitle2,
|
|
703
|
+
{ color: theme.palette.getAccent900() },
|
|
704
|
+
] },
|
|
705
|
+
React.createElement(Image, { source: ICONS.EARTH, style: {
|
|
706
|
+
height: 15,
|
|
707
|
+
width: 15,
|
|
708
|
+
tintColor: theme.palette.getAccent900(),
|
|
709
|
+
} }),
|
|
710
|
+
" ",
|
|
711
|
+
interactiveData.timezoneCode)))));
|
|
775
712
|
};
|
|
776
713
|
const onSlotSelection = (startTime, endTime) => {
|
|
777
714
|
setSelectedSlotState({
|
|
778
715
|
startTime,
|
|
779
716
|
endTime,
|
|
780
|
-
selectedDate: dateAvailablity
|
|
781
|
-
selectedDay: dateAvailablity
|
|
717
|
+
selectedDate: dateAvailablity === null || dateAvailablity === void 0 ? void 0 : dateAvailablity.date,
|
|
718
|
+
selectedDay: dateAvailablity === null || dateAvailablity === void 0 ? void 0 : dateAvailablity.day,
|
|
782
719
|
});
|
|
783
720
|
setCurrentComp((prev) => ({
|
|
784
721
|
current: componentEnum.schedule,
|
|
@@ -786,312 +723,298 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
786
723
|
}));
|
|
787
724
|
};
|
|
788
725
|
const NoTimeSlotsView = () => {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
selectedDateObj
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
{
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
width: 15,
|
|
853
|
-
tintColor: theme.palette.getAccent900(),
|
|
854
|
-
}}/>{" "}
|
|
855
|
-
{interactiveData.timezoneCode}
|
|
856
|
-
</Text>
|
|
857
|
-
</View>
|
|
858
|
-
</View>);
|
|
726
|
+
var _a, _b, _c, _d, _e;
|
|
727
|
+
return (React.createElement(View, { style: { flex: 1 } },
|
|
728
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
729
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}`, subTitle: `${interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.duration} min`, onBackPress: () => {
|
|
730
|
+
setCurrentComp((prev) => ({
|
|
731
|
+
current: componentEnum.calendar,
|
|
732
|
+
previous: prev.current,
|
|
733
|
+
}));
|
|
734
|
+
} }),
|
|
735
|
+
React.createElement(View, { style: {
|
|
736
|
+
height: 45,
|
|
737
|
+
justifyContent: "center",
|
|
738
|
+
paddingHorizontal: 10,
|
|
739
|
+
} },
|
|
740
|
+
React.createElement(Text, { style: [
|
|
741
|
+
theme.typography.subtitle1,
|
|
742
|
+
{
|
|
743
|
+
borderBottomWidth: 0.45,
|
|
744
|
+
borderBottomColor: "rgba(212, 213, 215, 1)",
|
|
745
|
+
color: theme.palette.getAccent800(),
|
|
746
|
+
lineHeight: 30,
|
|
747
|
+
},
|
|
748
|
+
] },
|
|
749
|
+
React.createElement(Image, { source: ICONS.CALENDAR, style: { height: 15, width: 15 } }),
|
|
750
|
+
" ",
|
|
751
|
+
selectedDateObj.date && (selectedDateObj === null || selectedDateObj === void 0 ? void 0 : selectedDateObj.day)
|
|
752
|
+
? `${DateTime.fromFormat(selectedDateObj.date, dateFormats.date).toFormat("dd MMMM y")}, ${((_d = (_c = selectedDateObj === null || selectedDateObj === void 0 ? void 0 : selectedDateObj.day) === null || _c === void 0 ? void 0 : _c.charAt(0)) === null || _d === void 0 ? void 0 : _d.toUpperCase()) +
|
|
753
|
+
((_e = selectedDateObj === null || selectedDateObj === void 0 ? void 0 : selectedDateObj.day) === null || _e === void 0 ? void 0 : _e.slice(1))}`
|
|
754
|
+
: "")),
|
|
755
|
+
React.createElement(Text, { style: [
|
|
756
|
+
theme.typography.text1,
|
|
757
|
+
{
|
|
758
|
+
color: theme.palette.getAccent800(),
|
|
759
|
+
marginLeft: 10,
|
|
760
|
+
marginBottom: 5,
|
|
761
|
+
marginTop: 2,
|
|
762
|
+
},
|
|
763
|
+
] }, localize("SELECT_TIME")),
|
|
764
|
+
React.createElement(View, { style: styles.noTimeSlotTextContainer },
|
|
765
|
+
React.createElement(Image, { source: ICONS.CLOCK_ALERT, style: styles.noTimeSlotImage }),
|
|
766
|
+
React.createElement(Text, { style: [
|
|
767
|
+
theme.typography.subtitle1,
|
|
768
|
+
{
|
|
769
|
+
color: theme.palette.getAccent500(),
|
|
770
|
+
textAlign: "center",
|
|
771
|
+
},
|
|
772
|
+
] }, localize("NO_TIME_SLOT_AVAILABLE"))),
|
|
773
|
+
React.createElement(View, { style: styles.calendarTimeZoneContainer },
|
|
774
|
+
React.createElement(Text, { style: [
|
|
775
|
+
theme.typography.subtitle2,
|
|
776
|
+
{
|
|
777
|
+
color: theme.palette.getAccent900(),
|
|
778
|
+
marginBottom: 4,
|
|
779
|
+
marginRight: 2,
|
|
780
|
+
},
|
|
781
|
+
] },
|
|
782
|
+
React.createElement(Image, { source: ICONS.EARTH, style: {
|
|
783
|
+
height: 15,
|
|
784
|
+
width: 15,
|
|
785
|
+
tintColor: theme.palette.getAccent900(),
|
|
786
|
+
} }),
|
|
787
|
+
" ",
|
|
788
|
+
interactiveData.timezoneCode))));
|
|
859
789
|
};
|
|
860
790
|
const TimeSlotView = () => {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
</View>);
|
|
791
|
+
var _a, _b, _c, _d, _e, _f;
|
|
792
|
+
return (React.createElement(View, { style: { flex: 1 } },
|
|
793
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
794
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}`, subTitle: `${interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.duration} min`, onBackPress: () => {
|
|
795
|
+
setCurrentComp((prev) => ({
|
|
796
|
+
current: componentEnum.calendar,
|
|
797
|
+
previous: prev.current,
|
|
798
|
+
}));
|
|
799
|
+
} }),
|
|
800
|
+
React.createElement(View, { style: {
|
|
801
|
+
height: 45,
|
|
802
|
+
justifyContent: "center",
|
|
803
|
+
paddingHorizontal: 10,
|
|
804
|
+
} },
|
|
805
|
+
React.createElement(Text, { style: [
|
|
806
|
+
theme.typography.subtitle1,
|
|
807
|
+
{
|
|
808
|
+
borderBottomWidth: 0.45,
|
|
809
|
+
borderBottomColor: "rgba(212, 213, 215, 1)",
|
|
810
|
+
color: theme.palette.getAccent800(),
|
|
811
|
+
lineHeight: 30,
|
|
812
|
+
},
|
|
813
|
+
] },
|
|
814
|
+
React.createElement(Image, { source: ICONS.CALENDAR, style: { height: 15, width: 15 } }),
|
|
815
|
+
" ",
|
|
816
|
+
`${DateTime.fromFormat(dateAvailablity.date, dateFormats.date).toFormat("dd MMMM y")}, ${((_d = (_c = dateAvailablity === null || dateAvailablity === void 0 ? void 0 : dateAvailablity.day) === null || _c === void 0 ? void 0 : _c.charAt(0)) === null || _d === void 0 ? void 0 : _d.toUpperCase()) +
|
|
817
|
+
((_e = dateAvailablity === null || dateAvailablity === void 0 ? void 0 : dateAvailablity.day) === null || _e === void 0 ? void 0 : _e.slice(1))}`)),
|
|
818
|
+
React.createElement(CometChatTimeSlotSelector, { timeFormat: "12Hr", duration: interactiveData.duration, slots: dateAvailablity.availability, onSelection: onSlotSelection, timeZone: interactiveData.timezoneCode, slotSelected: selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.startTime, style: (_f = style === null || style === void 0 ? void 0 : style.timeSlotSelectorStyle) !== null && _f !== void 0 ? _f : {} })));
|
|
890
819
|
};
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return conversation;
|
|
913
|
-
}, (error) => {
|
|
914
|
-
console.log("Error while converting message object", error);
|
|
915
|
-
setSlotError(slotErrorEnum.error);
|
|
916
|
-
setScheduleLoading(false);
|
|
917
|
-
return undefined;
|
|
918
|
-
});
|
|
919
|
-
if (!conversation) {
|
|
920
|
-
setSlotError(slotErrorEnum.error);
|
|
921
|
-
setScheduleLoading(false);
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
let action = interactiveData.scheduleElement.action;
|
|
925
|
-
let buttonAction = APIAction.fromJSON(action);
|
|
926
|
-
let uiKitSettings = CometChatUIKit.uiKitSettings;
|
|
927
|
-
let body = {
|
|
928
|
-
appID: uiKitSettings.appId,
|
|
929
|
-
trigger: "ui_message_interacted",
|
|
930
|
-
region: uiKitSettings.region,
|
|
931
|
-
payload: {},
|
|
932
|
-
data: {},
|
|
933
|
-
};
|
|
934
|
-
let payload = buttonAction.getPayload() || {};
|
|
935
|
-
body.payload = payload;
|
|
936
|
-
body.data = {
|
|
937
|
-
messageId: schedulerMessage.id,
|
|
938
|
-
conversationId: conversation.conversationId,
|
|
939
|
-
receiver: schedulerMessage.getSender().getUid(),
|
|
940
|
-
messageType: CometChatUiKitConstants.MessageTypeConstants.scheduler,
|
|
941
|
-
messageCategory: CometChatUiKitConstants.MessageCategoryConstants.interactive,
|
|
942
|
-
schedulerData: {
|
|
943
|
-
meetStartAt: `${selectedSlotState.selectedDate}T${selectedSlotState?.startTime?.slice(0, 2)}:${selectedSlotState?.startTime?.slice(2)}`,
|
|
944
|
-
duration: interactiveData.duration,
|
|
945
|
-
},
|
|
946
|
-
receiverType: schedulerMessage?.getReceiverType(),
|
|
947
|
-
interactedBy: loggedInUser.uid,
|
|
948
|
-
sender: loggedInUser.uid,
|
|
949
|
-
interactionTimezoneCode: currentTimeZoneRef.current,
|
|
950
|
-
interactedElementId: buttonData.getElementId(),
|
|
951
|
-
};
|
|
952
|
-
onScheduleClick && onScheduleClick(message);
|
|
953
|
-
CometChatNetworkUtils.fetcher({
|
|
954
|
-
url: buttonAction.getURL(),
|
|
955
|
-
method: buttonAction.getMethod() || HTTPSRequestMethods.POST,
|
|
956
|
-
body,
|
|
957
|
-
headers: buttonAction.getHeaders(),
|
|
958
|
-
})
|
|
959
|
-
.then((response) => {
|
|
960
|
-
console.log("response", response.status, JSON.stringify(response));
|
|
961
|
-
if (response.status == 200) {
|
|
962
|
-
setCurrentComp((prev) => ({
|
|
963
|
-
current: componentEnum.interacted,
|
|
964
|
-
previous: prev.current,
|
|
965
|
-
}));
|
|
820
|
+
function _handleButtonClick(buttonData) {
|
|
821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
822
|
+
var _a, _b;
|
|
823
|
+
setScheduleLoading(true);
|
|
824
|
+
yield getICSFile().catch((err) => {
|
|
825
|
+
console.log(err);
|
|
826
|
+
setSlotError(slotErrorEnum.error);
|
|
827
|
+
setScheduleLoading(false);
|
|
828
|
+
});
|
|
829
|
+
let range = yield getMeetingSlots({
|
|
830
|
+
date: selectedSlotState.selectedDate,
|
|
831
|
+
availabilityObject: availablityObjBeforeSlots.current,
|
|
832
|
+
});
|
|
833
|
+
let slotExists = range.find((item) => {
|
|
834
|
+
let startTime = selectedSlotState.startTime;
|
|
835
|
+
return `${startTime === null || startTime === void 0 ? void 0 : startTime.slice(0, 2)}:${startTime === null || startTime === void 0 ? void 0 : startTime.slice(2)}` === item;
|
|
836
|
+
});
|
|
837
|
+
if (!slotExists) {
|
|
838
|
+
setSlotError(slotErrorEnum.noSlot);
|
|
839
|
+
setScheduleLoading(false);
|
|
840
|
+
return;
|
|
966
841
|
}
|
|
967
|
-
|
|
842
|
+
let conversation = yield CometChat.CometChatHelper.getConversationFromMessage(message).then((conversation) => {
|
|
843
|
+
return conversation;
|
|
844
|
+
}, (error) => {
|
|
845
|
+
console.log("Error while converting message object", error);
|
|
968
846
|
setSlotError(slotErrorEnum.error);
|
|
847
|
+
setScheduleLoading(false);
|
|
848
|
+
return undefined;
|
|
849
|
+
});
|
|
850
|
+
if (!conversation) {
|
|
851
|
+
setSlotError(slotErrorEnum.error);
|
|
852
|
+
setScheduleLoading(false);
|
|
853
|
+
return;
|
|
969
854
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
.
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
855
|
+
//@ts-ignore
|
|
856
|
+
let action = interactiveData.scheduleElement.action;
|
|
857
|
+
let buttonAction = APIAction.fromJSON(action);
|
|
858
|
+
let uiKitSettings = CometChatUIKit.uiKitSettings;
|
|
859
|
+
let body = {
|
|
860
|
+
appID: uiKitSettings.appId,
|
|
861
|
+
trigger: "ui_message_interacted",
|
|
862
|
+
region: uiKitSettings.region,
|
|
863
|
+
payload: {},
|
|
864
|
+
data: {},
|
|
865
|
+
};
|
|
866
|
+
let payload = buttonAction.getPayload() || {};
|
|
867
|
+
body.payload = payload;
|
|
868
|
+
body.data = {
|
|
869
|
+
//@ts-ignore
|
|
870
|
+
messageId: schedulerMessage.id,
|
|
871
|
+
conversationId: conversation.conversationId,
|
|
872
|
+
receiver: schedulerMessage.getSender().getUid(),
|
|
873
|
+
messageType: CometChatUiKitConstants.MessageTypeConstants.scheduler,
|
|
874
|
+
messageCategory: CometChatUiKitConstants.MessageCategoryConstants.interactive,
|
|
875
|
+
schedulerData: {
|
|
876
|
+
meetStartAt: `${selectedSlotState.selectedDate}T${(_a = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.startTime) === null || _a === void 0 ? void 0 : _a.slice(0, 2)}:${(_b = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.startTime) === null || _b === void 0 ? void 0 : _b.slice(2)}`,
|
|
877
|
+
duration: interactiveData.duration,
|
|
878
|
+
},
|
|
879
|
+
receiverType: schedulerMessage === null || schedulerMessage === void 0 ? void 0 : schedulerMessage.getReceiverType(),
|
|
880
|
+
//@ts-ignore
|
|
881
|
+
interactedBy: loggedInUser.uid,
|
|
882
|
+
//@ts-ignore
|
|
883
|
+
sender: loggedInUser.uid,
|
|
884
|
+
interactionTimezoneCode: currentTimeZoneRef.current,
|
|
885
|
+
interactedElementId: buttonData.getElementId(),
|
|
886
|
+
};
|
|
887
|
+
onScheduleClick && onScheduleClick(message);
|
|
888
|
+
CometChatNetworkUtils.fetcher({
|
|
889
|
+
url: buttonAction.getURL(),
|
|
890
|
+
method: buttonAction.getMethod() || HTTPSRequestMethods.POST,
|
|
891
|
+
body,
|
|
892
|
+
headers: buttonAction.getHeaders(),
|
|
893
|
+
})
|
|
894
|
+
.then((response) => {
|
|
895
|
+
console.log("response", response.status, JSON.stringify(response));
|
|
896
|
+
if (response.status == 200) {
|
|
897
|
+
setCurrentComp((prev) => ({
|
|
898
|
+
current: componentEnum.interacted,
|
|
899
|
+
previous: prev.current,
|
|
900
|
+
}));
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
setSlotError(slotErrorEnum.error);
|
|
904
|
+
}
|
|
905
|
+
setScheduleLoading(false);
|
|
906
|
+
})
|
|
907
|
+
.catch((error) => {
|
|
908
|
+
setScheduleLoading(false);
|
|
909
|
+
setSlotError(slotErrorEnum.error);
|
|
910
|
+
console.log("CometChatNetworkUtils.fetcher error", error);
|
|
911
|
+
});
|
|
976
912
|
});
|
|
977
913
|
}
|
|
978
914
|
const _renderButton = (data, isSubmitElement) => {
|
|
979
915
|
let buttonData = ButtonElement.fromJSON(data);
|
|
980
916
|
function isDisabled() {
|
|
981
|
-
|
|
917
|
+
var _a, _b;
|
|
918
|
+
let isSender = ((_a = message.getSender()) === null || _a === void 0 ? void 0 : _a.getUid()) == (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser["uid"]);
|
|
982
919
|
let allowInteraction = isSender
|
|
983
|
-
? message
|
|
920
|
+
? (_b = message === null || message === void 0 ? void 0 : message["data"]) === null || _b === void 0 ? void 0 : _b["allowSenderInteraction"]
|
|
984
921
|
: true;
|
|
985
922
|
return !allowInteraction;
|
|
986
923
|
}
|
|
987
|
-
return (
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
</View>);
|
|
924
|
+
return (React.createElement(View, { style: { opacity: isDisabled() ? 0.5 : 1, marginVertical: 5 } },
|
|
925
|
+
React.createElement(CometChatButton, { isLoading: scheduleLoading, onPress: isDisabled() ? () => { } : () => _handleButtonClick(buttonData), text: slotError === slotErrorEnum.noSlot
|
|
926
|
+
? localize("BOOK_NEW_SLOT")
|
|
927
|
+
: slotError === slotErrorEnum.error
|
|
928
|
+
? localize("TRY_AGAIN_CAMEL")
|
|
929
|
+
: buttonData.getButtonText(), style: {
|
|
930
|
+
backgroundColor: theme.palette.getPrimary(),
|
|
931
|
+
textColor: theme.palette.getBackgroundColor(),
|
|
932
|
+
borderRadius: 5,
|
|
933
|
+
height: 30,
|
|
934
|
+
} })));
|
|
999
935
|
};
|
|
1000
936
|
const ScheduleView = () => {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
{
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
},
|
|
1045
|
-
]}>
|
|
1046
|
-
{slotError === slotErrorEnum.noSlot
|
|
1047
|
-
? localize("TIME_SLOT_UNAVAILABLE")
|
|
1048
|
-
: localize("SOMETHING_WRONG")}
|
|
1049
|
-
</Text>)}
|
|
1050
|
-
</View>
|
|
1051
|
-
</View>
|
|
1052
|
-
</View>);
|
|
937
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
938
|
+
return (React.createElement(View, null,
|
|
939
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
940
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}`, subTitle: `${interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.duration} ${localize("MIN")}`, onBackPress: () => {
|
|
941
|
+
setCurrentComp((prev) => ({
|
|
942
|
+
current: prev.previous,
|
|
943
|
+
previous: prev.current,
|
|
944
|
+
}));
|
|
945
|
+
} }),
|
|
946
|
+
React.createElement(View, { style: styles.scheduleSecContainer },
|
|
947
|
+
React.createElement(View, { style: styles.scheduleTimeContainer },
|
|
948
|
+
React.createElement(Image, { source: ICONS.CALENDAR, style: { height: 18, width: 18, marginTop: 4, marginRight: 5 } }),
|
|
949
|
+
React.createElement(Text, { style: [
|
|
950
|
+
theme.typography.subtitle1,
|
|
951
|
+
{
|
|
952
|
+
color: theme.palette.getAccent800(),
|
|
953
|
+
},
|
|
954
|
+
] }, `${(_c = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.startTime) === null || _c === void 0 ? void 0 : _c.slice(0, 2)}:${(_d = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.startTime) === null || _d === void 0 ? void 0 : _d.slice(2)}, ${((_f = (_e = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.selectedDay) === null || _e === void 0 ? void 0 : _e.charAt(0)) === null || _f === void 0 ? void 0 : _f.toUpperCase()) +
|
|
955
|
+
((_g = selectedSlotState === null || selectedSlotState === void 0 ? void 0 : selectedSlotState.selectedDay) === null || _g === void 0 ? void 0 : _g.slice(1))}, ${DateTime.fromFormat(selectedSlotState.selectedDate, dateFormats.date).toFormat("dd MMMM y")}`)),
|
|
956
|
+
React.createElement(View, { style: styles.scheduleTimeZoneCont },
|
|
957
|
+
React.createElement(Image, { source: ICONS.EARTH, style: { height: 18, width: 18 } }),
|
|
958
|
+
React.createElement(Text, { style: [
|
|
959
|
+
theme.typography.subtitle1,
|
|
960
|
+
{
|
|
961
|
+
color: theme.palette.getAccent800(),
|
|
962
|
+
paddingVertical: 10,
|
|
963
|
+
},
|
|
964
|
+
] },
|
|
965
|
+
" ",
|
|
966
|
+
interactiveData.timezoneCode)),
|
|
967
|
+
React.createElement(View, { style: styles.scheduleErrorCont },
|
|
968
|
+
message &&
|
|
969
|
+
_renderButton(message === null || message === void 0 ? void 0 : message.getScheduleElement(), true),
|
|
970
|
+
slotError !== slotErrorEnum.noError && (React.createElement(Text, { style: [
|
|
971
|
+
theme.typography.subtitle5,
|
|
972
|
+
{
|
|
973
|
+
color: theme.palette.getError(),
|
|
974
|
+
textAlign: "center",
|
|
975
|
+
marginHorizontal: 15,
|
|
976
|
+
},
|
|
977
|
+
] }, slotError === slotErrorEnum.noSlot
|
|
978
|
+
? localize("TIME_SLOT_UNAVAILABLE")
|
|
979
|
+
: localize("SOMETHING_WRONG")))))));
|
|
1053
980
|
};
|
|
1054
981
|
const LoadingView = () => {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
</View>);
|
|
982
|
+
var _a, _b;
|
|
983
|
+
return (React.createElement(View, { style: { flex: 1 } },
|
|
984
|
+
React.createElement(AvatarView, { avatar: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.avatarUrl) || ((_a = message === null || message === void 0 ? void 0 : message.getSender()) === null || _a === void 0 ? void 0 : _a.getAvatar()), title: (interactiveData === null || interactiveData === void 0 ? void 0 : interactiveData.title) ||
|
|
985
|
+
`${localize("MEET_WITH")} ${(_b = message === null || message === void 0 ? void 0 : message.getSender()) === null || _b === void 0 ? void 0 : _b.getName()}` }),
|
|
986
|
+
React.createElement(View, { style: styles.lodingContainer },
|
|
987
|
+
React.createElement(ActivityIndicator, { size: "small", color: theme === null || theme === void 0 ? void 0 : theme.palette.getAccent() }))));
|
|
1062
988
|
};
|
|
1063
989
|
const InteractedView = () => {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
theme.palette.getAccent800(),
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
localize("FORM_COMPLETION_MESSAGE")}
|
|
1076
|
-
</Text>
|
|
1077
|
-
</View>);
|
|
990
|
+
var _a, _b, _c, _d;
|
|
991
|
+
return (React.createElement(View, { style: { padding: 5 } },
|
|
992
|
+
React.createElement(CometChatQuickView, { title: (_a = message.getTitle()) !== null && _a !== void 0 ? _a : '', subtitle: localize("MEETING_SCHEDULER"), quickViewStyle: (_b = style === null || style === void 0 ? void 0 : style.quickViewStyle) !== null && _b !== void 0 ? _b : {} }),
|
|
993
|
+
React.createElement(Text, { style: [
|
|
994
|
+
{
|
|
995
|
+
marginTop: 10,
|
|
996
|
+
color: (_c = style === null || style === void 0 ? void 0 : style.goalCompletionTextColor) !== null && _c !== void 0 ? _c : theme.palette.getAccent800(),
|
|
997
|
+
},
|
|
998
|
+
(_d = style === null || style === void 0 ? void 0 : style.goalCompletionTextFont) !== null && _d !== void 0 ? _d : {},
|
|
999
|
+
] }, message.getGoalCompletionText() ||
|
|
1000
|
+
localize("FORM_COMPLETION_MESSAGE"))));
|
|
1078
1001
|
};
|
|
1079
1002
|
const CurrentCommponent = () => {
|
|
1080
1003
|
switch (currentComp.current) {
|
|
1081
1004
|
case componentEnum.loading:
|
|
1082
|
-
return
|
|
1005
|
+
return React.createElement(LoadingView, null);
|
|
1083
1006
|
case componentEnum.quickSelect:
|
|
1084
|
-
return
|
|
1007
|
+
return React.createElement(QuickSelectView, null);
|
|
1085
1008
|
case componentEnum.calendar:
|
|
1086
|
-
return
|
|
1009
|
+
return React.createElement(CalendarView, null);
|
|
1087
1010
|
case componentEnum.noTimeSlot:
|
|
1088
|
-
return
|
|
1011
|
+
return React.createElement(NoTimeSlotsView, null);
|
|
1089
1012
|
case componentEnum.timeSlot:
|
|
1090
|
-
return
|
|
1013
|
+
return React.createElement(TimeSlotView, null);
|
|
1091
1014
|
case componentEnum.schedule:
|
|
1092
|
-
return
|
|
1015
|
+
return React.createElement(ScheduleView, null);
|
|
1093
1016
|
case componentEnum.interacted:
|
|
1094
|
-
return
|
|
1017
|
+
return React.createElement(InteractedView, null);
|
|
1095
1018
|
default:
|
|
1096
1019
|
return null;
|
|
1097
1020
|
}
|
|
@@ -1114,15 +1037,14 @@ export const CometChatSchedulerBubble = memo((props) => {
|
|
|
1114
1037
|
return { width: 272, height: 300 };
|
|
1115
1038
|
}
|
|
1116
1039
|
};
|
|
1117
|
-
return (
|
|
1040
|
+
return (React.createElement(View, { style: [
|
|
1118
1041
|
styles.mainContainer,
|
|
1119
|
-
style
|
|
1042
|
+
(_a = style === null || style === void 0 ? void 0 : style.border) !== null && _a !== void 0 ? _a : {},
|
|
1120
1043
|
{
|
|
1121
|
-
backgroundColor: style
|
|
1044
|
+
backgroundColor: (_b = style === null || style === void 0 ? void 0 : style.backgroundColor) !== null && _b !== void 0 ? _b : "transparent",
|
|
1122
1045
|
},
|
|
1123
1046
|
compDimensions,
|
|
1124
|
-
]}
|
|
1125
|
-
|
|
1126
|
-
</View>);
|
|
1047
|
+
] },
|
|
1048
|
+
React.createElement(CurrentCommponent, null)));
|
|
1127
1049
|
});
|
|
1128
1050
|
//# sourceMappingURL=CometChatSchedulerBubble.js.map
|