@cometchat/chat-uikit-react-native 5.2.0 → 5.2.2
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/package.json +1 -1
- package/src/CometChatConversations/CometChatConversations.tsx +6 -5
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +9 -5
- package/src/CometChatMessageList/CometChatMessageList.tsx +205 -119
- package/src/calls/CallingExtensionDecorator.tsx +29 -4
- package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +21 -12
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +28 -0
- package/src/index.ts +2 -2
- package/src/shared/resources/CometChatLocalizeNew/resources/de/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/en/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/es/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/hi/translation.json +8 -4
- package/src/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/it/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +5 -1
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +2 -2
- package/src/shared/views/CometChatConfirmDialog/style.ts +9 -6
- package/src/shared/views/CometChatList/Header.tsx +9 -3
- package/src/theme/default/typography.ts +4 -4
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/lib/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +0 -40
- package/lib/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.js +0 -467
- package/lib/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.js.map +0 -1
- package/lib/CometChatAIAssistantChatHistory/Skeleton.d.ts +0 -24
- package/lib/CometChatAIAssistantChatHistory/Skeleton.js +0 -130
- package/lib/CometChatAIAssistantChatHistory/Skeleton.js.map +0 -1
- package/lib/CometChatAIAssistantChatHistory/index.d.ts +0 -1
- package/lib/CometChatAIAssistantChatHistory/index.js +0 -2
- package/lib/CometChatAIAssistantChatHistory/index.js.map +0 -1
- package/lib/CometChatAIAssistantChatHistory/style.d.ts +0 -30
- package/lib/CometChatAIAssistantChatHistory/style.js +0 -122
- package/lib/CometChatAIAssistantChatHistory/style.js.map +0 -1
- package/lib/CometChatConversations/CometChatConversations.d.ts +0 -166
- package/lib/CometChatConversations/CometChatConversations.js +0 -1097
- package/lib/CometChatConversations/CometChatConversations.js.map +0 -1
- package/lib/CometChatConversations/Skeleton.d.ts +0 -20
- package/lib/CometChatConversations/Skeleton.js +0 -121
- package/lib/CometChatConversations/Skeleton.js.map +0 -1
- package/lib/CometChatConversations/index.d.ts +0 -4
- package/lib/CometChatConversations/index.js +0 -4
- package/lib/CometChatConversations/index.js.map +0 -1
- package/lib/CometChatConversations/resources/index.d.ts +0 -14
- package/lib/CometChatConversations/resources/index.js +0 -15
- package/lib/CometChatConversations/resources/index.js.map +0 -1
- package/lib/CometChatConversations/style.d.ts +0 -74
- package/lib/CometChatConversations/style.js +0 -167
- package/lib/CometChatConversations/style.js.map +0 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -158
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +0 -614
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +0 -1
- package/lib/CometChatGroupMembers/Skeleton.d.ts +0 -2
- package/lib/CometChatGroupMembers/Skeleton.js +0 -130
- package/lib/CometChatGroupMembers/Skeleton.js.map +0 -1
- package/lib/CometChatGroupMembers/index.d.ts +0 -2
- package/lib/CometChatGroupMembers/index.js +0 -2
- package/lib/CometChatGroupMembers/index.js.map +0 -1
- package/lib/CometChatGroupMembers/resources/index.d.ts +0 -6
- package/lib/CometChatGroupMembers/resources/index.js +0 -7
- package/lib/CometChatGroupMembers/resources/index.js.map +0 -1
- package/lib/CometChatGroupMembers/style.d.ts +0 -82
- package/lib/CometChatGroupMembers/style.js +0 -449
- package/lib/CometChatGroupMembers/style.js.map +0 -1
- package/lib/CometChatGroups/CometChatGroups.d.ts +0 -161
- package/lib/CometChatGroups/CometChatGroups.js +0 -287
- package/lib/CometChatGroups/CometChatGroups.js.map +0 -1
- package/lib/CometChatGroups/GroupsStyle.d.ts +0 -17
- package/lib/CometChatGroups/GroupsStyle.js +0 -157
- package/lib/CometChatGroups/GroupsStyle.js.map +0 -1
- package/lib/CometChatGroups/Skeleton.d.ts +0 -31
- package/lib/CometChatGroups/Skeleton.js +0 -131
- package/lib/CometChatGroups/Skeleton.js.map +0 -1
- package/lib/CometChatGroups/index.d.ts +0 -4
- package/lib/CometChatGroups/index.js +0 -4
- package/lib/CometChatGroups/index.js.map +0 -1
- package/lib/CometChatGroups/resources/index.d.ts +0 -11
- package/lib/CometChatGroups/resources/index.js +0 -12
- package/lib/CometChatGroups/resources/index.js.map +0 -1
- package/lib/CometChatGroups/style.d.ts +0 -16
- package/lib/CometChatGroups/style.js +0 -18
- package/lib/CometChatGroups/style.js.map +0 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -244
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +0 -1282
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +0 -1
- package/lib/CometChatMessageComposer/index.d.ts +0 -3
- package/lib/CometChatMessageComposer/index.js +0 -3
- package/lib/CometChatMessageComposer/index.js.map +0 -1
- package/lib/CometChatMessageComposer/resources/index.d.ts +0 -12
- package/lib/CometChatMessageComposer/resources/index.js +0 -23
- package/lib/CometChatMessageComposer/resources/index.js.map +0 -1
- package/lib/CometChatMessageComposer/styles.d.ts +0 -48
- package/lib/CometChatMessageComposer/styles.js +0 -100
- package/lib/CometChatMessageComposer/styles.js.map +0 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -102
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +0 -308
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +0 -1
- package/lib/CometChatMessageHeader/index.d.ts +0 -3
- package/lib/CometChatMessageHeader/index.js +0 -3
- package/lib/CometChatMessageHeader/index.js.map +0 -1
- package/lib/CometChatMessageHeader/listners.d.ts +0 -12
- package/lib/CometChatMessageHeader/listners.js +0 -54
- package/lib/CometChatMessageHeader/listners.js.map +0 -1
- package/lib/CometChatMessageHeader/styles.d.ts +0 -30
- package/lib/CometChatMessageHeader/styles.js +0 -41
- package/lib/CometChatMessageHeader/styles.js.map +0 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -35
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +0 -242
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +0 -1
- package/lib/CometChatMessageInformation/Skeleton.d.ts +0 -2
- package/lib/CometChatMessageInformation/Skeleton.js +0 -101
- package/lib/CometChatMessageInformation/Skeleton.js.map +0 -1
- package/lib/CometChatMessageInformation/index.d.ts +0 -3
- package/lib/CometChatMessageInformation/index.js +0 -3
- package/lib/CometChatMessageInformation/index.js.map +0 -1
- package/lib/CometChatMessageInformation/resources/index.d.ts +0 -2
- package/lib/CometChatMessageInformation/resources/index.js +0 -3
- package/lib/CometChatMessageInformation/resources/index.js.map +0 -1
- package/lib/CometChatMessageInformation/styles.d.ts +0 -19
- package/lib/CometChatMessageInformation/styles.js +0 -146
- package/lib/CometChatMessageInformation/styles.js.map +0 -1
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -327
- package/lib/CometChatMessageList/CometChatMessageList.js +0 -2180
- package/lib/CometChatMessageList/CometChatMessageList.js.map +0 -1
- package/lib/CometChatMessageList/Skeleton.d.ts +0 -2
- package/lib/CometChatMessageList/Skeleton.js +0 -68
- package/lib/CometChatMessageList/Skeleton.js.map +0 -1
- package/lib/CometChatMessageList/index.d.ts +0 -3
- package/lib/CometChatMessageList/index.js +0 -3
- package/lib/CometChatMessageList/index.js.map +0 -1
- package/lib/CometChatMessageList/resources/index.d.ts +0 -8
- package/lib/CometChatMessageList/resources/index.js +0 -9
- package/lib/CometChatMessageList/resources/index.js.map +0 -1
- package/lib/CometChatMessageList/style.d.ts +0 -3
- package/lib/CometChatMessageList/style.js +0 -1005
- package/lib/CometChatMessageList/style.js.map +0 -1
- package/lib/CometChatThreadHeader/CometChatThreadHeader.d.ts +0 -77
- package/lib/CometChatThreadHeader/CometChatThreadHeader.js +0 -165
- package/lib/CometChatThreadHeader/CometChatThreadHeader.js.map +0 -1
- package/lib/CometChatThreadHeader/Header.d.ts +0 -11
- package/lib/CometChatThreadHeader/Header.js +0 -23
- package/lib/CometChatThreadHeader/Header.js.map +0 -1
- package/lib/CometChatThreadHeader/index.d.ts +0 -3
- package/lib/CometChatThreadHeader/index.js +0 -3
- package/lib/CometChatThreadHeader/index.js.map +0 -1
- package/lib/CometChatThreadHeader/resources/index.d.ts +0 -8
- package/lib/CometChatThreadHeader/resources/index.js +0 -15
- package/lib/CometChatThreadHeader/resources/index.js.map +0 -1
- package/lib/CometChatThreadHeader/style.d.ts +0 -3
- package/lib/CometChatThreadHeader/style.js +0 -59
- package/lib/CometChatThreadHeader/style.js.map +0 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +0 -182
- package/lib/CometChatUsers/CometChatUsers.js +0 -199
- package/lib/CometChatUsers/CometChatUsers.js.map +0 -1
- package/lib/CometChatUsers/Skeleton.d.ts +0 -27
- package/lib/CometChatUsers/Skeleton.js +0 -115
- package/lib/CometChatUsers/Skeleton.js.map +0 -1
- package/lib/CometChatUsers/index.d.ts +0 -3
- package/lib/CometChatUsers/index.js +0 -3
- package/lib/CometChatUsers/index.js.map +0 -1
- package/lib/CometChatUsers/style.d.ts +0 -17
- package/lib/CometChatUsers/style.js +0 -159
- package/lib/CometChatUsers/style.js.map +0 -1
- package/lib/calls/CallEvents.d.ts +0 -10
- package/lib/calls/CallEvents.js +0 -11
- package/lib/calls/CallEvents.js.map +0 -1
- package/lib/calls/CallUtils.d.ts +0 -53
- package/lib/calls/CallUtils.js +0 -190
- package/lib/calls/CallUtils.js.map +0 -1
- package/lib/calls/CallingConfiguration.d.ts +0 -12
- package/lib/calls/CallingConfiguration.js +0 -11
- package/lib/calls/CallingConfiguration.js.map +0 -1
- package/lib/calls/CallingExtension.d.ts +0 -12
- package/lib/calls/CallingExtension.js +0 -41
- package/lib/calls/CallingExtension.js.map +0 -1
- package/lib/calls/CallingExtensionDecorator.d.ts +0 -143
- package/lib/calls/CallingExtensionDecorator.js +0 -304
- package/lib/calls/CallingExtensionDecorator.js.map +0 -1
- package/lib/calls/CallingPackage.d.ts +0 -4
- package/lib/calls/CallingPackage.js +0 -18
- package/lib/calls/CallingPackage.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +0 -52
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +0 -72
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +0 -1
- package/lib/calls/CometChatCallBubble/index.d.ts +0 -5
- package/lib/calls/CometChatCallBubble/index.js +0 -4
- package/lib/calls/CometChatCallBubble/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +0 -4
- package/lib/calls/CometChatCallBubble/resources/index.js +0 -5
- package/lib/calls/CometChatCallBubble/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/styles.d.ts +0 -28
- package/lib/calls/CometChatCallBubble/styles.js +0 -119
- package/lib/calls/CometChatCallBubble/styles.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +0 -12
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -9
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +0 -63
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +0 -214
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +0 -1
- package/lib/calls/CometChatCallButtons/index.d.ts +0 -5
- package/lib/calls/CometChatCallButtons/index.js +0 -4
- package/lib/calls/CometChatCallButtons/index.js.map +0 -1
- package/lib/calls/CometChatCallButtons/style.d.ts +0 -13
- package/lib/calls/CometChatCallButtons/style.js +0 -18
- package/lib/calls/CometChatCallButtons/style.js.map +0 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.d.ts +0 -85
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +0 -411
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +0 -1
- package/lib/calls/CometChatCallLogs/Skeleton.d.ts +0 -46
- package/lib/calls/CometChatCallLogs/Skeleton.js +0 -144
- package/lib/calls/CometChatCallLogs/Skeleton.js.map +0 -1
- package/lib/calls/CometChatCallLogs/index.d.ts +0 -4
- package/lib/calls/CometChatCallLogs/index.js +0 -4
- package/lib/calls/CometChatCallLogs/index.js.map +0 -1
- package/lib/calls/CometChatCallLogs/resources/index.d.ts +0 -12
- package/lib/calls/CometChatCallLogs/resources/index.js +0 -13
- package/lib/calls/CometChatCallLogs/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallLogs/style.d.ts +0 -82
- package/lib/calls/CometChatCallLogs/style.js +0 -133
- package/lib/calls/CometChatCallLogs/style.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -50
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +0 -232
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/index.d.ts +0 -3
- package/lib/calls/CometChatIncomingCall/index.js +0 -3
- package/lib/calls/CometChatIncomingCall/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +0 -5
- package/lib/calls/CometChatIncomingCall/resources/index.js +0 -6
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/style.d.ts +0 -13
- package/lib/calls/CometChatIncomingCall/style.js +0 -57
- package/lib/calls/CometChatIncomingCall/style.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -30
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +0 -66
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/index.d.ts +0 -3
- package/lib/calls/CometChatOngoingCall/index.js +0 -3
- package/lib/calls/CometChatOngoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -70
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +0 -196
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.d.ts +0 -28
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -19
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/index.d.ts +0 -5
- package/lib/calls/CometChatOutgoingCall/index.js +0 -4
- package/lib/calls/CometChatOutgoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +0 -2
- package/lib/calls/CometChatOutgoingCall/resources/index.js +0 -3
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/styles.d.ts +0 -11
- package/lib/calls/CometChatOutgoingCall/styles.js +0 -43
- package/lib/calls/CometChatOutgoingCall/styles.js.map +0 -1
- package/lib/calls/index.d.ts +0 -12
- package/lib/calls/index.js +0 -12
- package/lib/calls/index.js.map +0 -1
- package/lib/calls/resources/index.d.ts +0 -4
- package/lib/calls/resources/index.js +0 -5
- package/lib/calls/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +0 -30
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +0 -48
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/resources/index.d.ts +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/style.d.ts +0 -9
- package/lib/extensions/CollaborativeBubble/style.js +0 -96
- package/lib/extensions/CollaborativeBubble/style.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -10
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -21
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -20
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +0 -138
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/index.d.ts +0 -4
- package/lib/extensions/CollaborativeDocument/index.js +0 -5
- package/lib/extensions/CollaborativeDocument/index.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeDocument/resources/index.js +0 -5
- package/lib/extensions/CollaborativeDocument/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -10
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -23
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -87
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +0 -213
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +0 -4
- package/lib/extensions/CollaborativeWhiteboard/index.js +0 -5
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +0 -5
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +0 -1
- package/lib/extensions/ExtensionConstants.d.ts +0 -49
- package/lib/extensions/ExtensionConstants.js +0 -51
- package/lib/extensions/ExtensionConstants.js.map +0 -1
- package/lib/extensions/ExtensionModerator.d.ts +0 -16
- package/lib/extensions/ExtensionModerator.js +0 -51
- package/lib/extensions/ExtensionModerator.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -37
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +0 -121
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -6
- package/lib/extensions/LinkPreview/LinkPreviewExtension.js +0 -19
- package/lib/extensions/LinkPreview/LinkPreviewExtension.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -41
- package/lib/extensions/LinkPreview/LinkPreviewExtensionDecorator.js +0 -63
- package/lib/extensions/LinkPreview/LinkPreviewExtensionDecorator.js.map +0 -1
- package/lib/extensions/LinkPreview/index.d.ts +0 -5
- package/lib/extensions/LinkPreview/index.js +0 -5
- package/lib/extensions/LinkPreview/index.js.map +0 -1
- package/lib/extensions/LinkPreview/resources/index.d.ts +0 -2
- package/lib/extensions/LinkPreview/resources/index.js +0 -3
- package/lib/extensions/LinkPreview/resources/index.js.map +0 -1
- package/lib/extensions/LinkPreview/style.d.ts +0 -9
- package/lib/extensions/LinkPreview/style.js +0 -79
- package/lib/extensions/LinkPreview/style.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -44
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +0 -86
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -77
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +0 -278
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -10
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -23
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +0 -1
- package/lib/extensions/MessageTranslation/index.d.ts +0 -4
- package/lib/extensions/MessageTranslation/index.js +0 -5
- package/lib/extensions/MessageTranslation/index.js.map +0 -1
- package/lib/extensions/MessageTranslation/resources/index.d.ts +0 -3
- package/lib/extensions/MessageTranslation/resources/index.js +0 -5
- package/lib/extensions/MessageTranslation/resources/index.js.map +0 -1
- package/lib/extensions/Polls/Header.d.ts +0 -33
- package/lib/extensions/Polls/Header.js +0 -57
- package/lib/extensions/Polls/Header.js.map +0 -1
- package/lib/extensions/Polls/Polls.d.ts +0 -87
- package/lib/extensions/Polls/Polls.js +0 -389
- package/lib/extensions/Polls/Polls.js.map +0 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +0 -121
- package/lib/extensions/Polls/PollsBubble.js +0 -200
- package/lib/extensions/Polls/PollsBubble.js.map +0 -1
- package/lib/extensions/Polls/PollsConfigurations.d.ts +0 -7
- package/lib/extensions/Polls/PollsConfigurations.js +0 -2
- package/lib/extensions/Polls/PollsConfigurations.js.map +0 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +0 -91
- package/lib/extensions/Polls/PollsDecorator.js +0 -180
- package/lib/extensions/Polls/PollsDecorator.js.map +0 -1
- package/lib/extensions/Polls/PollsExtension.d.ts +0 -12
- package/lib/extensions/Polls/PollsExtension.js +0 -27
- package/lib/extensions/Polls/PollsExtension.js.map +0 -1
- package/lib/extensions/Polls/index.d.ts +0 -5
- package/lib/extensions/Polls/index.js +0 -4
- package/lib/extensions/Polls/index.js.map +0 -1
- package/lib/extensions/Polls/resources/index.d.ts +0 -7
- package/lib/extensions/Polls/resources/index.js +0 -13
- package/lib/extensions/Polls/resources/index.js.map +0 -1
- package/lib/extensions/Polls/style.d.ts +0 -54
- package/lib/extensions/Polls/style.js +0 -206
- package/lib/extensions/Polls/style.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +0 -17
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +0 -164
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/Skeleton.d.ts +0 -3
- package/lib/extensions/Stickers/CometChatStickerKeyboard/Skeleton.js +0 -114
- package/lib/extensions/Stickers/CometChatStickerKeyboard/Skeleton.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +0 -14
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +0 -14
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +0 -5
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +0 -68
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.d.ts +0 -3
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js +0 -4
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +0 -78
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +0 -81
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +0 -1
- package/lib/extensions/Stickers/StickerConfiguration.d.ts +0 -8
- package/lib/extensions/Stickers/StickerConfiguration.js +0 -7
- package/lib/extensions/Stickers/StickerConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +0 -17
- package/lib/extensions/Stickers/StickersBubble.js +0 -7
- package/lib/extensions/Stickers/StickersBubble.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtension.d.ts +0 -8
- package/lib/extensions/Stickers/StickersExtension.js +0 -28
- package/lib/extensions/Stickers/StickersExtension.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +0 -53
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +0 -266
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +0 -1
- package/lib/extensions/Stickers/index.d.ts +0 -6
- package/lib/extensions/Stickers/index.js +0 -5
- package/lib/extensions/Stickers/index.js.map +0 -1
- package/lib/extensions/Stickers/resources/index.d.ts +0 -2
- package/lib/extensions/Stickers/resources/index.js +0 -3
- package/lib/extensions/Stickers/resources/index.js.map +0 -1
- package/lib/extensions/Stickers/style.d.ts +0 -3
- package/lib/extensions/Stickers/style.js +0 -43
- package/lib/extensions/Stickers/style.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -58
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +0 -94
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -6
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -19
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/index.d.ts +0 -2
- package/lib/extensions/ThumbnailGeneration/index.js +0 -3
- package/lib/extensions/ThumbnailGeneration/index.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +0 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js +0 -3
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +0 -1
- package/lib/extensions/index.d.ts +0 -10
- package/lib/extensions/index.js +0 -10
- package/lib/extensions/index.js.map +0 -1
- package/lib/index.d.ts +0 -26
- package/lib/index.js +0 -64
- package/lib/index.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +0 -34
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +0 -309
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +0 -20
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js +0 -96
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +0 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +0 -18
- package/lib/shared/CometChatUiKit/UIKitSettings.js +0 -18
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +0 -1
- package/lib/shared/CometChatUiKit/index.d.ts +0 -4
- package/lib/shared/CometChatUiKit/index.js +0 -5
- package/lib/shared/CometChatUiKit/index.js.map +0 -1
- package/lib/shared/assets/images/index.d.ts +0 -15
- package/lib/shared/assets/images/index.js +0 -29
- package/lib/shared/assets/images/index.js.map +0 -1
- package/lib/shared/base/BaseStyle.d.ts +0 -27
- package/lib/shared/base/BaseStyle.js +0 -26
- package/lib/shared/base/BaseStyle.js.map +0 -1
- package/lib/shared/base/BorderStyle.d.ts +0 -19
- package/lib/shared/base/BorderStyle.js +0 -19
- package/lib/shared/base/BorderStyle.js.map +0 -1
- package/lib/shared/base/FontStyle.d.ts +0 -18
- package/lib/shared/base/FontStyle.js +0 -18
- package/lib/shared/base/FontStyle.js.map +0 -1
- package/lib/shared/base/ShadowStyle.d.ts +0 -33
- package/lib/shared/base/ShadowStyle.js +0 -27
- package/lib/shared/base/ShadowStyle.js.map +0 -1
- package/lib/shared/base/Types.d.ts +0 -47
- package/lib/shared/base/Types.js +0 -3
- package/lib/shared/base/Types.js.map +0 -1
- package/lib/shared/base/index.d.ts +0 -2
- package/lib/shared/base/index.js +0 -2
- package/lib/shared/base/index.js.map +0 -1
- package/lib/shared/base/vars.d.ts +0 -8
- package/lib/shared/base/vars.js +0 -7
- package/lib/shared/base/vars.js.map +0 -1
- package/lib/shared/constants/UIKitConstants.d.ts +0 -329
- package/lib/shared/constants/UIKitConstants.js +0 -409
- package/lib/shared/constants/UIKitConstants.js.map +0 -1
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +0 -45
- package/lib/shared/events/CometChatMessageEvents/index.js +0 -95
- package/lib/shared/events/CometChatMessageEvents/index.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.d.ts +0 -30
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +0 -382
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +0 -214
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +0 -338
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +0 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +0 -19
- package/lib/shared/events/CometChatUIEvents.js +0 -22
- package/lib/shared/events/CometChatUIEvents.js.map +0 -1
- package/lib/shared/events/ListenerInitializer.d.ts +0 -8
- package/lib/shared/events/ListenerInitializer.js +0 -77
- package/lib/shared/events/ListenerInitializer.js.map +0 -1
- package/lib/shared/events/conversations.d.ts +0 -3
- package/lib/shared/events/conversations.js +0 -5
- package/lib/shared/events/conversations.js.map +0 -1
- package/lib/shared/events/groups.d.ts +0 -10
- package/lib/shared/events/groups.js +0 -12
- package/lib/shared/events/groups.js.map +0 -1
- package/lib/shared/events/index.d.ts +0 -6
- package/lib/shared/events/index.js +0 -7
- package/lib/shared/events/index.js.map +0 -1
- package/lib/shared/events/messages.d.ts +0 -28
- package/lib/shared/events/messages.js +0 -30
- package/lib/shared/events/messages.js.map +0 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -183
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +0 -471
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +0 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.d.ts +0 -12
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +0 -14
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +0 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/index.d.ts +0 -3
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js +0 -4
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js.map +0 -1
- package/lib/shared/formatters/CometChatTextFormatter.d.ts +0 -171
- package/lib/shared/formatters/CometChatTextFormatter.js +0 -219
- package/lib/shared/formatters/CometChatTextFormatter.js.map +0 -1
- package/lib/shared/formatters/CometChatUrlsFormatter/index.d.ts +0 -37
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +0 -127
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +0 -1
- package/lib/shared/formatters/index.d.ts +0 -4
- package/lib/shared/formatters/index.js +0 -5
- package/lib/shared/formatters/index.js.map +0 -1
- package/lib/shared/framework/ChatConfigurator.d.ts +0 -8
- package/lib/shared/framework/ChatConfigurator.js +0 -22
- package/lib/shared/framework/ChatConfigurator.js.map +0 -1
- package/lib/shared/framework/DataSource.d.ts +0 -56
- package/lib/shared/framework/DataSource.js +0 -2
- package/lib/shared/framework/DataSource.js.map +0 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +0 -59
- package/lib/shared/framework/DataSourceDecorator.js +0 -147
- package/lib/shared/framework/DataSourceDecorator.js.map +0 -1
- package/lib/shared/framework/ExtensionsDataSource.d.ts +0 -6
- package/lib/shared/framework/ExtensionsDataSource.js +0 -14
- package/lib/shared/framework/ExtensionsDataSource.js.map +0 -1
- package/lib/shared/framework/MessageDataSource.d.ts +0 -82
- package/lib/shared/framework/MessageDataSource.js +0 -984
- package/lib/shared/framework/MessageDataSource.js.map +0 -1
- package/lib/shared/framework/index.d.ts +0 -7
- package/lib/shared/framework/index.js +0 -6
- package/lib/shared/framework/index.js.map +0 -1
- package/lib/shared/framework/resources/index.d.ts +0 -22
- package/lib/shared/framework/resources/index.js +0 -45
- package/lib/shared/framework/resources/index.js.map +0 -1
- package/lib/shared/helper/LocalizedDateHelper.d.ts +0 -70
- package/lib/shared/helper/LocalizedDateHelper.js +0 -265
- package/lib/shared/helper/LocalizedDateHelper.js.map +0 -1
- package/lib/shared/helper/Toast.d.ts +0 -4
- package/lib/shared/helper/Toast.js +0 -23
- package/lib/shared/helper/Toast.js.map +0 -1
- package/lib/shared/helper/dateHelper.d.ts +0 -28
- package/lib/shared/helper/dateHelper.js +0 -127
- package/lib/shared/helper/dateHelper.js.map +0 -1
- package/lib/shared/helper/functions.d.ts +0 -4
- package/lib/shared/helper/functions.js +0 -80
- package/lib/shared/helper/functions.js.map +0 -1
- package/lib/shared/helper/helperFunctions.d.ts +0 -3
- package/lib/shared/helper/helperFunctions.js +0 -58
- package/lib/shared/helper/helperFunctions.js.map +0 -1
- package/lib/shared/helper/types/index.d.ts +0 -30
- package/lib/shared/helper/types/index.js +0 -2
- package/lib/shared/helper/types/index.js.map +0 -1
- package/lib/shared/helper/useKeyboard.d.ts +0 -2
- package/lib/shared/helper/useKeyboard.js +0 -40
- package/lib/shared/helper/useKeyboard.js.map +0 -1
- package/lib/shared/helper/useLocalizedDateHook.d.ts +0 -6
- package/lib/shared/helper/useLocalizedDateHook.js +0 -15
- package/lib/shared/helper/useLocalizedDateHook.js.map +0 -1
- package/lib/shared/icons/Icon.d.ts +0 -16
- package/lib/shared/icons/Icon.js +0 -35
- package/lib/shared/icons/Icon.js.map +0 -1
- package/lib/shared/icons/components/ListItemCheck.d.ts +0 -3
- package/lib/shared/icons/components/ListItemCheck.js +0 -8
- package/lib/shared/icons/components/ListItemCheck.js.map +0 -1
- package/lib/shared/icons/components/StickerBase-icon.d.ts +0 -3
- package/lib/shared/icons/components/StickerBase-icon.js +0 -6
- package/lib/shared/icons/components/StickerBase-icon.js.map +0 -1
- package/lib/shared/icons/components/account-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/account-circle-fill.js +0 -13
- package/lib/shared/icons/components/account-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/account-circle.d.ts +0 -3
- package/lib/shared/icons/components/account-circle.js +0 -6
- package/lib/shared/icons/components/account-circle.js.map +0 -1
- package/lib/shared/icons/components/activity.d.ts +0 -3
- package/lib/shared/icons/components/activity.js +0 -13
- package/lib/shared/icons/components/activity.js.map +0 -1
- package/lib/shared/icons/components/add-a-photo-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-a-photo-fill.js +0 -13
- package/lib/shared/icons/components/add-a-photo-fill.js.map +0 -1
- package/lib/shared/icons/components/add-a-photo.d.ts +0 -3
- package/lib/shared/icons/components/add-a-photo.js +0 -6
- package/lib/shared/icons/components/add-a-photo.js.map +0 -1
- package/lib/shared/icons/components/add-box-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-box-fill.js +0 -13
- package/lib/shared/icons/components/add-box-fill.js.map +0 -1
- package/lib/shared/icons/components/add-box.d.ts +0 -3
- package/lib/shared/icons/components/add-box.js +0 -6
- package/lib/shared/icons/components/add-box.js.map +0 -1
- package/lib/shared/icons/components/add-call-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-call-fill.js +0 -13
- package/lib/shared/icons/components/add-call-fill.js.map +0 -1
- package/lib/shared/icons/components/add-call.d.ts +0 -3
- package/lib/shared/icons/components/add-call.js +0 -6
- package/lib/shared/icons/components/add-call.js.map +0 -1
- package/lib/shared/icons/components/add-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-circle-fill.js +0 -6
- package/lib/shared/icons/components/add-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/add-circle.d.ts +0 -3
- package/lib/shared/icons/components/add-circle.js +0 -6
- package/lib/shared/icons/components/add-circle.js.map +0 -1
- package/lib/shared/icons/components/add-comment-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-comment-fill.js +0 -13
- package/lib/shared/icons/components/add-comment-fill.js.map +0 -1
- package/lib/shared/icons/components/add-comment.d.ts +0 -3
- package/lib/shared/icons/components/add-comment.js +0 -6
- package/lib/shared/icons/components/add-comment.js.map +0 -1
- package/lib/shared/icons/components/add-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-fill.js +0 -13
- package/lib/shared/icons/components/add-fill.js.map +0 -1
- package/lib/shared/icons/components/add-reaction-fill.d.ts +0 -3
- package/lib/shared/icons/components/add-reaction-fill.js +0 -13
- package/lib/shared/icons/components/add-reaction-fill.js.map +0 -1
- package/lib/shared/icons/components/add-reaction.d.ts +0 -3
- package/lib/shared/icons/components/add-reaction.js +0 -6
- package/lib/shared/icons/components/add-reaction.js.map +0 -1
- package/lib/shared/icons/components/add.d.ts +0 -3
- package/lib/shared/icons/components/add.js +0 -6
- package/lib/shared/icons/components/add.js.map +0 -1
- package/lib/shared/icons/components/ai-chat-history.d.ts +0 -8
- package/lib/shared/icons/components/ai-chat-history.js +0 -9
- package/lib/shared/icons/components/ai-chat-history.js.map +0 -1
- package/lib/shared/icons/components/ai-conversation-summary-fill.d.ts +0 -3
- package/lib/shared/icons/components/ai-conversation-summary-fill.js +0 -6
- package/lib/shared/icons/components/ai-conversation-summary-fill.js.map +0 -1
- package/lib/shared/icons/components/ai-conversation-summary.d.ts +0 -3
- package/lib/shared/icons/components/ai-conversation-summary.js +0 -6
- package/lib/shared/icons/components/ai-conversation-summary.js.map +0 -1
- package/lib/shared/icons/components/ai-copy-option.d.ts +0 -8
- package/lib/shared/icons/components/ai-copy-option.js +0 -9
- package/lib/shared/icons/components/ai-copy-option.js.map +0 -1
- package/lib/shared/icons/components/ai-fill.d.ts +0 -3
- package/lib/shared/icons/components/ai-fill.js +0 -6
- package/lib/shared/icons/components/ai-fill.js.map +0 -1
- package/lib/shared/icons/components/ai-new-chat.d.ts +0 -8
- package/lib/shared/icons/components/ai-new-chat.js +0 -9
- package/lib/shared/icons/components/ai-new-chat.js.map +0 -1
- package/lib/shared/icons/components/ai-send-button.d.ts +0 -8
- package/lib/shared/icons/components/ai-send-button.js +0 -9
- package/lib/shared/icons/components/ai-send-button.js.map +0 -1
- package/lib/shared/icons/components/ai-suggest-reply-fill.d.ts +0 -3
- package/lib/shared/icons/components/ai-suggest-reply-fill.js +0 -6
- package/lib/shared/icons/components/ai-suggest-reply-fill.js.map +0 -1
- package/lib/shared/icons/components/ai-suggest-reply.d.ts +0 -3
- package/lib/shared/icons/components/ai-suggest-reply.js +0 -8
- package/lib/shared/icons/components/ai-suggest-reply.js.map +0 -1
- package/lib/shared/icons/components/ai.d.ts +0 -3
- package/lib/shared/icons/components/ai.js +0 -6
- package/lib/shared/icons/components/ai.js.map +0 -1
- package/lib/shared/icons/components/alternate-email-fill.d.ts +0 -3
- package/lib/shared/icons/components/alternate-email-fill.js +0 -13
- package/lib/shared/icons/components/alternate-email-fill.js.map +0 -1
- package/lib/shared/icons/components/alternate-email.d.ts +0 -3
- package/lib/shared/icons/components/alternate-email.js +0 -6
- package/lib/shared/icons/components/alternate-email.js.map +0 -1
- package/lib/shared/icons/components/animals-&-nature.d.ts +0 -3
- package/lib/shared/icons/components/animals-&-nature.js +0 -13
- package/lib/shared/icons/components/animals-&-nature.js.map +0 -1
- package/lib/shared/icons/components/archive-fill.d.ts +0 -3
- package/lib/shared/icons/components/archive-fill.js +0 -13
- package/lib/shared/icons/components/archive-fill.js.map +0 -1
- package/lib/shared/icons/components/archive.d.ts +0 -3
- package/lib/shared/icons/components/archive.js +0 -6
- package/lib/shared/icons/components/archive.js.map +0 -1
- package/lib/shared/icons/components/arrow-back-fill.d.ts +0 -3
- package/lib/shared/icons/components/arrow-back-fill.js +0 -13
- package/lib/shared/icons/components/arrow-back-fill.js.map +0 -1
- package/lib/shared/icons/components/arrow-back.d.ts +0 -3
- package/lib/shared/icons/components/arrow-back.js +0 -6
- package/lib/shared/icons/components/arrow-back.js.map +0 -1
- package/lib/shared/icons/components/arrow-forward-fill.d.ts +0 -3
- package/lib/shared/icons/components/arrow-forward-fill.js +0 -13
- package/lib/shared/icons/components/arrow-forward-fill.js.map +0 -1
- package/lib/shared/icons/components/arrow-forward.d.ts +0 -3
- package/lib/shared/icons/components/arrow-forward.js +0 -6
- package/lib/shared/icons/components/arrow-forward.js.map +0 -1
- package/lib/shared/icons/components/attach-file-fill.d.ts +0 -3
- package/lib/shared/icons/components/attach-file-fill.js +0 -13
- package/lib/shared/icons/components/attach-file-fill.js.map +0 -1
- package/lib/shared/icons/components/attach-file.d.ts +0 -3
- package/lib/shared/icons/components/attach-file.js +0 -6
- package/lib/shared/icons/components/attach-file.js.map +0 -1
- package/lib/shared/icons/components/audio-file-type.d.ts +0 -3
- package/lib/shared/icons/components/audio-file-type.js +0 -18
- package/lib/shared/icons/components/audio-file-type.js.map +0 -1
- package/lib/shared/icons/components/bar-chart-fill.d.ts +0 -3
- package/lib/shared/icons/components/bar-chart-fill.js +0 -6
- package/lib/shared/icons/components/bar-chart-fill.js.map +0 -1
- package/lib/shared/icons/components/bar-chart.d.ts +0 -3
- package/lib/shared/icons/components/bar-chart.js +0 -6
- package/lib/shared/icons/components/bar-chart.js.map +0 -1
- package/lib/shared/icons/components/base-icon.d.ts +0 -3
- package/lib/shared/icons/components/base-icon.js +0 -9
- package/lib/shared/icons/components/base-icon.js.map +0 -1
- package/lib/shared/icons/components/bedtime-fill.d.ts +0 -3
- package/lib/shared/icons/components/bedtime-fill.js +0 -13
- package/lib/shared/icons/components/bedtime-fill.js.map +0 -1
- package/lib/shared/icons/components/bedtime.d.ts +0 -3
- package/lib/shared/icons/components/bedtime.js +0 -6
- package/lib/shared/icons/components/bedtime.js.map +0 -1
- package/lib/shared/icons/components/block-fill.d.ts +0 -3
- package/lib/shared/icons/components/block-fill.js +0 -13
- package/lib/shared/icons/components/block-fill.js.map +0 -1
- package/lib/shared/icons/components/block.d.ts +0 -3
- package/lib/shared/icons/components/block.js +0 -6
- package/lib/shared/icons/components/block.js.map +0 -1
- package/lib/shared/icons/components/bookmark-add-fill.d.ts +0 -3
- package/lib/shared/icons/components/bookmark-add-fill.js +0 -13
- package/lib/shared/icons/components/bookmark-add-fill.js.map +0 -1
- package/lib/shared/icons/components/bookmark-add.d.ts +0 -3
- package/lib/shared/icons/components/bookmark-add.js +0 -6
- package/lib/shared/icons/components/bookmark-add.js.map +0 -1
- package/lib/shared/icons/components/bookmark-fill.d.ts +0 -3
- package/lib/shared/icons/components/bookmark-fill.js +0 -13
- package/lib/shared/icons/components/bookmark-fill.js.map +0 -1
- package/lib/shared/icons/components/bookmark.d.ts +0 -3
- package/lib/shared/icons/components/bookmark.js +0 -6
- package/lib/shared/icons/components/bookmark.js.map +0 -1
- package/lib/shared/icons/components/calendar-add-on-fill.d.ts +0 -3
- package/lib/shared/icons/components/calendar-add-on-fill.js +0 -13
- package/lib/shared/icons/components/calendar-add-on-fill.js.map +0 -1
- package/lib/shared/icons/components/calendar-add-on.d.ts +0 -3
- package/lib/shared/icons/components/calendar-add-on.js +0 -6
- package/lib/shared/icons/components/calendar-add-on.js.map +0 -1
- package/lib/shared/icons/components/calendar-today-fill.d.ts +0 -3
- package/lib/shared/icons/components/calendar-today-fill.js +0 -13
- package/lib/shared/icons/components/calendar-today-fill.js.map +0 -1
- package/lib/shared/icons/components/calendar-today.d.ts +0 -3
- package/lib/shared/icons/components/calendar-today.js +0 -6
- package/lib/shared/icons/components/calendar-today.js.map +0 -1
- package/lib/shared/icons/components/call-end-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-end-fill.js +0 -13
- package/lib/shared/icons/components/call-end-fill.js.map +0 -1
- package/lib/shared/icons/components/call-end.d.ts +0 -3
- package/lib/shared/icons/components/call-end.js +0 -6
- package/lib/shared/icons/components/call-end.js.map +0 -1
- package/lib/shared/icons/components/call-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-fill.js +0 -13
- package/lib/shared/icons/components/call-fill.js.map +0 -1
- package/lib/shared/icons/components/call-log-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-log-fill.js +0 -13
- package/lib/shared/icons/components/call-log-fill.js.map +0 -1
- package/lib/shared/icons/components/call-log.d.ts +0 -3
- package/lib/shared/icons/components/call-log.js +0 -6
- package/lib/shared/icons/components/call-log.js.map +0 -1
- package/lib/shared/icons/components/call-made-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-made-fill.js +0 -13
- package/lib/shared/icons/components/call-made-fill.js.map +0 -1
- package/lib/shared/icons/components/call-made.d.ts +0 -3
- package/lib/shared/icons/components/call-made.js +0 -6
- package/lib/shared/icons/components/call-made.js.map +0 -1
- package/lib/shared/icons/components/call-missed-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-missed-fill.js +0 -13
- package/lib/shared/icons/components/call-missed-fill.js.map +0 -1
- package/lib/shared/icons/components/call-missed-outgoing-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-missed-outgoing-fill.js +0 -13
- package/lib/shared/icons/components/call-missed-outgoing-fill.js.map +0 -1
- package/lib/shared/icons/components/call-missed-outgoing.d.ts +0 -3
- package/lib/shared/icons/components/call-missed-outgoing.js +0 -6
- package/lib/shared/icons/components/call-missed-outgoing.js.map +0 -1
- package/lib/shared/icons/components/call-missed.d.ts +0 -3
- package/lib/shared/icons/components/call-missed.js +0 -6
- package/lib/shared/icons/components/call-missed.js.map +0 -1
- package/lib/shared/icons/components/call-received-fill.d.ts +0 -3
- package/lib/shared/icons/components/call-received-fill.js +0 -13
- package/lib/shared/icons/components/call-received-fill.js.map +0 -1
- package/lib/shared/icons/components/call-received.d.ts +0 -3
- package/lib/shared/icons/components/call-received.js +0 -6
- package/lib/shared/icons/components/call-received.js.map +0 -1
- package/lib/shared/icons/components/call.d.ts +0 -3
- package/lib/shared/icons/components/call.js +0 -6
- package/lib/shared/icons/components/call.js.map +0 -1
- package/lib/shared/icons/components/cancel-fill.d.ts +0 -3
- package/lib/shared/icons/components/cancel-fill.js +0 -13
- package/lib/shared/icons/components/cancel-fill.js.map +0 -1
- package/lib/shared/icons/components/cancel.d.ts +0 -3
- package/lib/shared/icons/components/cancel.js +0 -6
- package/lib/shared/icons/components/cancel.js.map +0 -1
- package/lib/shared/icons/components/change-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/change-circle-fill.js +0 -6
- package/lib/shared/icons/components/change-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/change-circle.d.ts +0 -3
- package/lib/shared/icons/components/change-circle.js +0 -6
- package/lib/shared/icons/components/change-circle.js.map +0 -1
- package/lib/shared/icons/components/chat-bot-fill.d.ts +0 -3
- package/lib/shared/icons/components/chat-bot-fill.js +0 -6
- package/lib/shared/icons/components/chat-bot-fill.js.map +0 -1
- package/lib/shared/icons/components/chat-bot.d.ts +0 -3
- package/lib/shared/icons/components/chat-bot.js +0 -7
- package/lib/shared/icons/components/chat-bot.js.map +0 -1
- package/lib/shared/icons/components/chat-fill.d.ts +0 -3
- package/lib/shared/icons/components/chat-fill.js +0 -13
- package/lib/shared/icons/components/chat-fill.js.map +0 -1
- package/lib/shared/icons/components/chat.d.ts +0 -3
- package/lib/shared/icons/components/chat.js +0 -6
- package/lib/shared/icons/components/chat.js.map +0 -1
- package/lib/shared/icons/components/check-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/check-circle-fill.js +0 -6
- package/lib/shared/icons/components/check-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/check-circle.d.ts +0 -3
- package/lib/shared/icons/components/check-circle.js +0 -6
- package/lib/shared/icons/components/check-circle.js.map +0 -1
- package/lib/shared/icons/components/check-fill.d.ts +0 -3
- package/lib/shared/icons/components/check-fill.js +0 -13
- package/lib/shared/icons/components/check-fill.js.map +0 -1
- package/lib/shared/icons/components/check.d.ts +0 -3
- package/lib/shared/icons/components/check.js +0 -6
- package/lib/shared/icons/components/check.js.map +0 -1
- package/lib/shared/icons/components/chevron-left-fill.d.ts +0 -3
- package/lib/shared/icons/components/chevron-left-fill.js +0 -13
- package/lib/shared/icons/components/chevron-left-fill.js.map +0 -1
- package/lib/shared/icons/components/chevron-left.d.ts +0 -3
- package/lib/shared/icons/components/chevron-left.js +0 -6
- package/lib/shared/icons/components/chevron-left.js.map +0 -1
- package/lib/shared/icons/components/chevron-right-fill.d.ts +0 -3
- package/lib/shared/icons/components/chevron-right-fill.js +0 -13
- package/lib/shared/icons/components/chevron-right-fill.js.map +0 -1
- package/lib/shared/icons/components/chevron-right.d.ts +0 -3
- package/lib/shared/icons/components/chevron-right.js +0 -6
- package/lib/shared/icons/components/chevron-right.js.map +0 -1
- package/lib/shared/icons/components/close-fill.d.ts +0 -3
- package/lib/shared/icons/components/close-fill.js +0 -13
- package/lib/shared/icons/components/close-fill.js.map +0 -1
- package/lib/shared/icons/components/close.d.ts +0 -3
- package/lib/shared/icons/components/close.js +0 -6
- package/lib/shared/icons/components/close.js.map +0 -1
- package/lib/shared/icons/components/collaborative-document-fill.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-document-fill.js +0 -7
- package/lib/shared/icons/components/collaborative-document-fill.js.map +0 -1
- package/lib/shared/icons/components/collaborative-document-icon.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-document-icon.js +0 -9
- package/lib/shared/icons/components/collaborative-document-icon.js.map +0 -1
- package/lib/shared/icons/components/collaborative-document.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-document.js +0 -6
- package/lib/shared/icons/components/collaborative-document.js.map +0 -1
- package/lib/shared/icons/components/collaborative-whiteboard-fill.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-whiteboard-fill.js +0 -7
- package/lib/shared/icons/components/collaborative-whiteboard-fill.js.map +0 -1
- package/lib/shared/icons/components/collaborative-whiteboard-icon.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-whiteboard-icon.js +0 -9
- package/lib/shared/icons/components/collaborative-whiteboard-icon.js.map +0 -1
- package/lib/shared/icons/components/collaborative-whiteboard.d.ts +0 -3
- package/lib/shared/icons/components/collaborative-whiteboard.js +0 -6
- package/lib/shared/icons/components/collaborative-whiteboard.js.map +0 -1
- package/lib/shared/icons/components/content-copy-fill.d.ts +0 -3
- package/lib/shared/icons/components/content-copy-fill.js +0 -13
- package/lib/shared/icons/components/content-copy-fill.js.map +0 -1
- package/lib/shared/icons/components/content-copy.d.ts +0 -3
- package/lib/shared/icons/components/content-copy.js +0 -6
- package/lib/shared/icons/components/content-copy.js.map +0 -1
- package/lib/shared/icons/components/crop-fill.d.ts +0 -3
- package/lib/shared/icons/components/crop-fill.js +0 -13
- package/lib/shared/icons/components/crop-fill.js.map +0 -1
- package/lib/shared/icons/components/crop.d.ts +0 -3
- package/lib/shared/icons/components/crop.js +0 -6
- package/lib/shared/icons/components/crop.js.map +0 -1
- package/lib/shared/icons/components/delete-fill.d.ts +0 -3
- package/lib/shared/icons/components/delete-fill.js +0 -13
- package/lib/shared/icons/components/delete-fill.js.map +0 -1
- package/lib/shared/icons/components/delete.d.ts +0 -3
- package/lib/shared/icons/components/delete.js +0 -6
- package/lib/shared/icons/components/delete.js.map +0 -1
- package/lib/shared/icons/components/description-fill.d.ts +0 -3
- package/lib/shared/icons/components/description-fill.js +0 -13
- package/lib/shared/icons/components/description-fill.js.map +0 -1
- package/lib/shared/icons/components/description.d.ts +0 -3
- package/lib/shared/icons/components/description.js +0 -6
- package/lib/shared/icons/components/description.js.map +0 -1
- package/lib/shared/icons/components/document-file-type.d.ts +0 -3
- package/lib/shared/icons/components/document-file-type.js +0 -20
- package/lib/shared/icons/components/document-file-type.js.map +0 -1
- package/lib/shared/icons/components/done-all-fill.d.ts +0 -3
- package/lib/shared/icons/components/done-all-fill.js +0 -13
- package/lib/shared/icons/components/done-all-fill.js.map +0 -1
- package/lib/shared/icons/components/done-all.d.ts +0 -3
- package/lib/shared/icons/components/done-all.js +0 -6
- package/lib/shared/icons/components/done-all.js.map +0 -1
- package/lib/shared/icons/components/download-fill.d.ts +0 -3
- package/lib/shared/icons/components/download-fill.js +0 -13
- package/lib/shared/icons/components/download-fill.js.map +0 -1
- package/lib/shared/icons/components/download.d.ts +0 -3
- package/lib/shared/icons/components/download.js +0 -6
- package/lib/shared/icons/components/download.js.map +0 -1
- package/lib/shared/icons/components/edit-calendar-fill.d.ts +0 -3
- package/lib/shared/icons/components/edit-calendar-fill.js +0 -13
- package/lib/shared/icons/components/edit-calendar-fill.js.map +0 -1
- package/lib/shared/icons/components/edit-calendar.d.ts +0 -3
- package/lib/shared/icons/components/edit-calendar.js +0 -6
- package/lib/shared/icons/components/edit-calendar.js.map +0 -1
- package/lib/shared/icons/components/edit-fill.d.ts +0 -3
- package/lib/shared/icons/components/edit-fill.js +0 -13
- package/lib/shared/icons/components/edit-fill.js.map +0 -1
- package/lib/shared/icons/components/edit-square-fill.d.ts +0 -3
- package/lib/shared/icons/components/edit-square-fill.js +0 -6
- package/lib/shared/icons/components/edit-square-fill.js.map +0 -1
- package/lib/shared/icons/components/edit-square.d.ts +0 -3
- package/lib/shared/icons/components/edit-square.js +0 -6
- package/lib/shared/icons/components/edit-square.js.map +0 -1
- package/lib/shared/icons/components/edit.d.ts +0 -3
- package/lib/shared/icons/components/edit.js +0 -6
- package/lib/shared/icons/components/edit.js.map +0 -1
- package/lib/shared/icons/components/empty-state.d.ts +0 -3
- package/lib/shared/icons/components/empty-state.js +0 -23
- package/lib/shared/icons/components/empty-state.js.map +0 -1
- package/lib/shared/icons/components/error-fill.d.ts +0 -3
- package/lib/shared/icons/components/error-fill.js +0 -21
- package/lib/shared/icons/components/error-fill.js.map +0 -1
- package/lib/shared/icons/components/error-state.d.ts +0 -3
- package/lib/shared/icons/components/error-state.js +0 -32
- package/lib/shared/icons/components/error-state.js.map +0 -1
- package/lib/shared/icons/components/error.d.ts +0 -3
- package/lib/shared/icons/components/error.js +0 -6
- package/lib/shared/icons/components/error.js.map +0 -1
- package/lib/shared/icons/components/event-available-fill.d.ts +0 -3
- package/lib/shared/icons/components/event-available-fill.js +0 -6
- package/lib/shared/icons/components/event-available-fill.js.map +0 -1
- package/lib/shared/icons/components/event-available.d.ts +0 -3
- package/lib/shared/icons/components/event-available.js +0 -6
- package/lib/shared/icons/components/event-available.js.map +0 -1
- package/lib/shared/icons/components/event-fill.d.ts +0 -3
- package/lib/shared/icons/components/event-fill.js +0 -13
- package/lib/shared/icons/components/event-fill.js.map +0 -1
- package/lib/shared/icons/components/event.d.ts +0 -3
- package/lib/shared/icons/components/event.js +0 -6
- package/lib/shared/icons/components/event.js.map +0 -1
- package/lib/shared/icons/components/favorite-fill.d.ts +0 -3
- package/lib/shared/icons/components/favorite-fill.js +0 -13
- package/lib/shared/icons/components/favorite-fill.js.map +0 -1
- package/lib/shared/icons/components/favorite.d.ts +0 -3
- package/lib/shared/icons/components/favorite.js +0 -6
- package/lib/shared/icons/components/favorite.js.map +0 -1
- package/lib/shared/icons/components/filter-list-fill.d.ts +0 -3
- package/lib/shared/icons/components/filter-list-fill.js +0 -13
- package/lib/shared/icons/components/filter-list-fill.js.map +0 -1
- package/lib/shared/icons/components/filter-list-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/filter-list-off-fill.js +0 -13
- package/lib/shared/icons/components/filter-list-off-fill.js.map +0 -1
- package/lib/shared/icons/components/filter-list-off.d.ts +0 -3
- package/lib/shared/icons/components/filter-list-off.js +0 -6
- package/lib/shared/icons/components/filter-list-off.js.map +0 -1
- package/lib/shared/icons/components/filter-list.d.ts +0 -3
- package/lib/shared/icons/components/filter-list.js +0 -6
- package/lib/shared/icons/components/filter-list.js.map +0 -1
- package/lib/shared/icons/components/flags.d.ts +0 -3
- package/lib/shared/icons/components/flags.js +0 -6
- package/lib/shared/icons/components/flags.js.map +0 -1
- package/lib/shared/icons/components/flip-camera-ios-fill.d.ts +0 -3
- package/lib/shared/icons/components/flip-camera-ios-fill.js +0 -13
- package/lib/shared/icons/components/flip-camera-ios-fill.js.map +0 -1
- package/lib/shared/icons/components/flip-camera-ios.d.ts +0 -3
- package/lib/shared/icons/components/flip-camera-ios.js +0 -6
- package/lib/shared/icons/components/flip-camera-ios.js.map +0 -1
- package/lib/shared/icons/components/food-&-drink.d.ts +0 -3
- package/lib/shared/icons/components/food-&-drink.js +0 -13
- package/lib/shared/icons/components/food-&-drink.js.map +0 -1
- package/lib/shared/icons/components/forward-fill.d.ts +0 -3
- package/lib/shared/icons/components/forward-fill.js +0 -13
- package/lib/shared/icons/components/forward-fill.js.map +0 -1
- package/lib/shared/icons/components/forward.d.ts +0 -3
- package/lib/shared/icons/components/forward.js +0 -6
- package/lib/shared/icons/components/forward.js.map +0 -1
- package/lib/shared/icons/components/gif-fill.d.ts +0 -3
- package/lib/shared/icons/components/gif-fill.js +0 -6
- package/lib/shared/icons/components/gif-fill.js.map +0 -1
- package/lib/shared/icons/components/gif.d.ts +0 -3
- package/lib/shared/icons/components/gif.js +0 -7
- package/lib/shared/icons/components/gif.js.map +0 -1
- package/lib/shared/icons/components/graphic-eq-fill.d.ts +0 -3
- package/lib/shared/icons/components/graphic-eq-fill.js +0 -6
- package/lib/shared/icons/components/graphic-eq-fill.js.map +0 -1
- package/lib/shared/icons/components/graphic-eq.d.ts +0 -3
- package/lib/shared/icons/components/graphic-eq.js +0 -6
- package/lib/shared/icons/components/graphic-eq.js.map +0 -1
- package/lib/shared/icons/components/group-add.d.ts +0 -3
- package/lib/shared/icons/components/group-add.js +0 -6
- package/lib/shared/icons/components/group-add.js.map +0 -1
- package/lib/shared/icons/components/group-fill.d.ts +0 -3
- package/lib/shared/icons/components/group-fill.js +0 -13
- package/lib/shared/icons/components/group-fill.js.map +0 -1
- package/lib/shared/icons/components/group.d.ts +0 -3
- package/lib/shared/icons/components/group.js +0 -6
- package/lib/shared/icons/components/group.js.map +0 -1
- package/lib/shared/icons/components/help-fill.d.ts +0 -3
- package/lib/shared/icons/components/help-fill.js +0 -13
- package/lib/shared/icons/components/help-fill.js.map +0 -1
- package/lib/shared/icons/components/help.d.ts +0 -3
- package/lib/shared/icons/components/help.js +0 -6
- package/lib/shared/icons/components/help.js.map +0 -1
- package/lib/shared/icons/components/history-fill.d.ts +0 -3
- package/lib/shared/icons/components/history-fill.js +0 -13
- package/lib/shared/icons/components/history-fill.js.map +0 -1
- package/lib/shared/icons/components/history.d.ts +0 -3
- package/lib/shared/icons/components/history.js +0 -6
- package/lib/shared/icons/components/history.js.map +0 -1
- package/lib/shared/icons/components/image-file-type.d.ts +0 -3
- package/lib/shared/icons/components/image-file-type.js +0 -20
- package/lib/shared/icons/components/image-file-type.js.map +0 -1
- package/lib/shared/icons/components/incoming-audio-fill.d.ts +0 -3
- package/lib/shared/icons/components/incoming-audio-fill.js +0 -6
- package/lib/shared/icons/components/incoming-audio-fill.js.map +0 -1
- package/lib/shared/icons/components/incoming-audio.d.ts +0 -3
- package/lib/shared/icons/components/incoming-audio.js +0 -6
- package/lib/shared/icons/components/incoming-audio.js.map +0 -1
- package/lib/shared/icons/components/incoming-video-fill.d.ts +0 -3
- package/lib/shared/icons/components/incoming-video-fill.js +0 -13
- package/lib/shared/icons/components/incoming-video-fill.js.map +0 -1
- package/lib/shared/icons/components/incoming-video.d.ts +0 -3
- package/lib/shared/icons/components/incoming-video.js +0 -7
- package/lib/shared/icons/components/incoming-video.js.map +0 -1
- package/lib/shared/icons/components/info-fill.d.ts +0 -3
- package/lib/shared/icons/components/info-fill.js +0 -13
- package/lib/shared/icons/components/info-fill.js.map +0 -1
- package/lib/shared/icons/components/info.d.ts +0 -3
- package/lib/shared/icons/components/info.js +0 -6
- package/lib/shared/icons/components/info.js.map +0 -1
- package/lib/shared/icons/components/keep-fill.d.ts +0 -3
- package/lib/shared/icons/components/keep-fill.js +0 -13
- package/lib/shared/icons/components/keep-fill.js.map +0 -1
- package/lib/shared/icons/components/keep-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/keep-off-fill.js +0 -13
- package/lib/shared/icons/components/keep-off-fill.js.map +0 -1
- package/lib/shared/icons/components/keep-off.d.ts +0 -3
- package/lib/shared/icons/components/keep-off.js +0 -6
- package/lib/shared/icons/components/keep-off.js.map +0 -1
- package/lib/shared/icons/components/keep.d.ts +0 -3
- package/lib/shared/icons/components/keep.js +0 -6
- package/lib/shared/icons/components/keep.js.map +0 -1
- package/lib/shared/icons/components/keyboard-arrow-down-fill.d.ts +0 -3
- package/lib/shared/icons/components/keyboard-arrow-down-fill.js +0 -13
- package/lib/shared/icons/components/keyboard-arrow-down-fill.js.map +0 -1
- package/lib/shared/icons/components/keyboard-arrow-down.d.ts +0 -3
- package/lib/shared/icons/components/keyboard-arrow-down.js +0 -6
- package/lib/shared/icons/components/keyboard-arrow-down.js.map +0 -1
- package/lib/shared/icons/components/keyboard-arrow-up-fill.d.ts +0 -3
- package/lib/shared/icons/components/keyboard-arrow-up-fill.js +0 -13
- package/lib/shared/icons/components/keyboard-arrow-up-fill.js.map +0 -1
- package/lib/shared/icons/components/keyboard-arrow-up.d.ts +0 -3
- package/lib/shared/icons/components/keyboard-arrow-up.js +0 -6
- package/lib/shared/icons/components/keyboard-arrow-up.js.map +0 -1
- package/lib/shared/icons/components/keyboard-fill.d.ts +0 -3
- package/lib/shared/icons/components/keyboard-fill.js +0 -13
- package/lib/shared/icons/components/keyboard-fill.js.map +0 -1
- package/lib/shared/icons/components/keyboard.d.ts +0 -3
- package/lib/shared/icons/components/keyboard.js +0 -6
- package/lib/shared/icons/components/keyboard.js.map +0 -1
- package/lib/shared/icons/components/language-fill.d.ts +0 -3
- package/lib/shared/icons/components/language-fill.js +0 -13
- package/lib/shared/icons/components/language-fill.js.map +0 -1
- package/lib/shared/icons/components/language.d.ts +0 -3
- package/lib/shared/icons/components/language.js +0 -6
- package/lib/shared/icons/components/language.js.map +0 -1
- package/lib/shared/icons/components/link-fill.d.ts +0 -3
- package/lib/shared/icons/components/link-fill.js +0 -13
- package/lib/shared/icons/components/link-fill.js.map +0 -1
- package/lib/shared/icons/components/link.d.ts +0 -3
- package/lib/shared/icons/components/link.js +0 -6
- package/lib/shared/icons/components/link.js.map +0 -1
- package/lib/shared/icons/components/loading-fill.d.ts +0 -3
- package/lib/shared/icons/components/loading-fill.js +0 -7
- package/lib/shared/icons/components/loading-fill.js.map +0 -1
- package/lib/shared/icons/components/loading.d.ts +0 -3
- package/lib/shared/icons/components/loading.js +0 -7
- package/lib/shared/icons/components/loading.js.map +0 -1
- package/lib/shared/icons/components/location-on-fill.d.ts +0 -3
- package/lib/shared/icons/components/location-on-fill.js +0 -13
- package/lib/shared/icons/components/location-on-fill.js.map +0 -1
- package/lib/shared/icons/components/location-on.d.ts +0 -3
- package/lib/shared/icons/components/location-on.js +0 -6
- package/lib/shared/icons/components/location-on.js.map +0 -1
- package/lib/shared/icons/components/lock-fill.d.ts +0 -3
- package/lib/shared/icons/components/lock-fill.js +0 -13
- package/lib/shared/icons/components/lock-fill.js.map +0 -1
- package/lib/shared/icons/components/lock-open-fill.d.ts +0 -3
- package/lib/shared/icons/components/lock-open-fill.js +0 -13
- package/lib/shared/icons/components/lock-open-fill.js.map +0 -1
- package/lib/shared/icons/components/lock-open.d.ts +0 -3
- package/lib/shared/icons/components/lock-open.js +0 -6
- package/lib/shared/icons/components/lock-open.js.map +0 -1
- package/lib/shared/icons/components/lock.d.ts +0 -3
- package/lib/shared/icons/components/lock.js +0 -6
- package/lib/shared/icons/components/lock.js.map +0 -1
- package/lib/shared/icons/components/logout-fill.d.ts +0 -3
- package/lib/shared/icons/components/logout-fill.js +0 -6
- package/lib/shared/icons/components/logout-fill.js.map +0 -1
- package/lib/shared/icons/components/logout.d.ts +0 -3
- package/lib/shared/icons/components/logout.js +0 -6
- package/lib/shared/icons/components/logout.js.map +0 -1
- package/lib/shared/icons/components/mail-fill.d.ts +0 -3
- package/lib/shared/icons/components/mail-fill.js +0 -13
- package/lib/shared/icons/components/mail-fill.js.map +0 -1
- package/lib/shared/icons/components/mail.d.ts +0 -3
- package/lib/shared/icons/components/mail.js +0 -6
- package/lib/shared/icons/components/mail.js.map +0 -1
- package/lib/shared/icons/components/mic-fill.d.ts +0 -3
- package/lib/shared/icons/components/mic-fill.js +0 -13
- package/lib/shared/icons/components/mic-fill.js.map +0 -1
- package/lib/shared/icons/components/mic-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/mic-off-fill.js +0 -13
- package/lib/shared/icons/components/mic-off-fill.js.map +0 -1
- package/lib/shared/icons/components/mic-off.d.ts +0 -3
- package/lib/shared/icons/components/mic-off.js +0 -6
- package/lib/shared/icons/components/mic-off.js.map +0 -1
- package/lib/shared/icons/components/mic.d.ts +0 -3
- package/lib/shared/icons/components/mic.js +0 -6
- package/lib/shared/icons/components/mic.js.map +0 -1
- package/lib/shared/icons/components/missed-video-call-fill.d.ts +0 -3
- package/lib/shared/icons/components/missed-video-call-fill.js +0 -13
- package/lib/shared/icons/components/missed-video-call-fill.js.map +0 -1
- package/lib/shared/icons/components/missed-video-call.d.ts +0 -3
- package/lib/shared/icons/components/missed-video-call.js +0 -6
- package/lib/shared/icons/components/missed-video-call.js.map +0 -1
- package/lib/shared/icons/components/mood-fill.d.ts +0 -3
- package/lib/shared/icons/components/mood-fill.js +0 -13
- package/lib/shared/icons/components/mood-fill.js.map +0 -1
- package/lib/shared/icons/components/mood.d.ts +0 -3
- package/lib/shared/icons/components/mood.js +0 -6
- package/lib/shared/icons/components/mood.js.map +0 -1
- package/lib/shared/icons/components/more-vert-fill.d.ts +0 -3
- package/lib/shared/icons/components/more-vert-fill.js +0 -13
- package/lib/shared/icons/components/more-vert-fill.js.map +0 -1
- package/lib/shared/icons/components/more-vert.d.ts +0 -3
- package/lib/shared/icons/components/more-vert.js +0 -6
- package/lib/shared/icons/components/more-vert.js.map +0 -1
- package/lib/shared/icons/components/near-me-fill.d.ts +0 -3
- package/lib/shared/icons/components/near-me-fill.js +0 -6
- package/lib/shared/icons/components/near-me-fill.js.map +0 -1
- package/lib/shared/icons/components/near-me.d.ts +0 -3
- package/lib/shared/icons/components/near-me.js +0 -6
- package/lib/shared/icons/components/near-me.js.map +0 -1
- package/lib/shared/icons/components/no-photography-fill.d.ts +0 -3
- package/lib/shared/icons/components/no-photography-fill.js +0 -13
- package/lib/shared/icons/components/no-photography-fill.js.map +0 -1
- package/lib/shared/icons/components/no-photography.d.ts +0 -3
- package/lib/shared/icons/components/no-photography.js +0 -6
- package/lib/shared/icons/components/no-photography.js.map +0 -1
- package/lib/shared/icons/components/notifications-fill.d.ts +0 -3
- package/lib/shared/icons/components/notifications-fill.js +0 -13
- package/lib/shared/icons/components/notifications-fill.js.map +0 -1
- package/lib/shared/icons/components/notifications-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/notifications-off-fill.js +0 -13
- package/lib/shared/icons/components/notifications-off-fill.js.map +0 -1
- package/lib/shared/icons/components/notifications-off.d.ts +0 -3
- package/lib/shared/icons/components/notifications-off.js +0 -6
- package/lib/shared/icons/components/notifications-off.js.map +0 -1
- package/lib/shared/icons/components/notifications.d.ts +0 -3
- package/lib/shared/icons/components/notifications.js +0 -6
- package/lib/shared/icons/components/notifications.js.map +0 -1
- package/lib/shared/icons/components/objects.d.ts +0 -3
- package/lib/shared/icons/components/objects.js +0 -13
- package/lib/shared/icons/components/objects.js.map +0 -1
- package/lib/shared/icons/components/outgoing-audio-fill.d.ts +0 -3
- package/lib/shared/icons/components/outgoing-audio-fill.js +0 -7
- package/lib/shared/icons/components/outgoing-audio-fill.js.map +0 -1
- package/lib/shared/icons/components/outgoing-audio.d.ts +0 -3
- package/lib/shared/icons/components/outgoing-audio.js +0 -7
- package/lib/shared/icons/components/outgoing-audio.js.map +0 -1
- package/lib/shared/icons/components/outgoing-video-fill.d.ts +0 -3
- package/lib/shared/icons/components/outgoing-video-fill.js +0 -13
- package/lib/shared/icons/components/outgoing-video-fill.js.map +0 -1
- package/lib/shared/icons/components/outgoing-video.d.ts +0 -3
- package/lib/shared/icons/components/outgoing-video.js +0 -7
- package/lib/shared/icons/components/outgoing-video.js.map +0 -1
- package/lib/shared/icons/components/pause-fill.d.ts +0 -3
- package/lib/shared/icons/components/pause-fill.js +0 -13
- package/lib/shared/icons/components/pause-fill.js.map +0 -1
- package/lib/shared/icons/components/pause.d.ts +0 -3
- package/lib/shared/icons/components/pause.js +0 -6
- package/lib/shared/icons/components/pause.js.map +0 -1
- package/lib/shared/icons/components/pdf-file-type.d.ts +0 -3
- package/lib/shared/icons/components/pdf-file-type.js +0 -18
- package/lib/shared/icons/components/pdf-file-type.js.map +0 -1
- package/lib/shared/icons/components/person-add-fill.d.ts +0 -3
- package/lib/shared/icons/components/person-add-fill.js +0 -13
- package/lib/shared/icons/components/person-add-fill.js.map +0 -1
- package/lib/shared/icons/components/person-add.d.ts +0 -3
- package/lib/shared/icons/components/person-add.js +0 -6
- package/lib/shared/icons/components/person-add.js.map +0 -1
- package/lib/shared/icons/components/person-fill.d.ts +0 -3
- package/lib/shared/icons/components/person-fill.js +0 -13
- package/lib/shared/icons/components/person-fill.js.map +0 -1
- package/lib/shared/icons/components/person-off.d.ts +0 -3
- package/lib/shared/icons/components/person-off.js +0 -6
- package/lib/shared/icons/components/person-off.js.map +0 -1
- package/lib/shared/icons/components/person.d.ts +0 -3
- package/lib/shared/icons/components/person.js +0 -6
- package/lib/shared/icons/components/person.js.map +0 -1
- package/lib/shared/icons/components/phone-in-talk-fill.d.ts +0 -3
- package/lib/shared/icons/components/phone-in-talk-fill.js +0 -13
- package/lib/shared/icons/components/phone-in-talk-fill.js.map +0 -1
- package/lib/shared/icons/components/phone-in-talk.d.ts +0 -3
- package/lib/shared/icons/components/phone-in-talk.js +0 -6
- package/lib/shared/icons/components/phone-in-talk.js.map +0 -1
- package/lib/shared/icons/components/phone-incoming-fill.d.ts +0 -3
- package/lib/shared/icons/components/phone-incoming-fill.js +0 -6
- package/lib/shared/icons/components/phone-incoming-fill.js.map +0 -1
- package/lib/shared/icons/components/phone-incoming.d.ts +0 -3
- package/lib/shared/icons/components/phone-incoming.js +0 -6
- package/lib/shared/icons/components/phone-incoming.js.map +0 -1
- package/lib/shared/icons/components/phone-missed-fill.d.ts +0 -3
- package/lib/shared/icons/components/phone-missed-fill.js +0 -13
- package/lib/shared/icons/components/phone-missed-fill.js.map +0 -1
- package/lib/shared/icons/components/phone-missed.d.ts +0 -3
- package/lib/shared/icons/components/phone-missed.js +0 -6
- package/lib/shared/icons/components/phone-missed.js.map +0 -1
- package/lib/shared/icons/components/phone-outgoing-fill.d.ts +0 -3
- package/lib/shared/icons/components/phone-outgoing-fill.js +0 -7
- package/lib/shared/icons/components/phone-outgoing-fill.js.map +0 -1
- package/lib/shared/icons/components/phone-outgoing.d.ts +0 -3
- package/lib/shared/icons/components/phone-outgoing.js +0 -7
- package/lib/shared/icons/components/phone-outgoing.js.map +0 -1
- package/lib/shared/icons/components/photo-camera-fill.d.ts +0 -3
- package/lib/shared/icons/components/photo-camera-fill.js +0 -13
- package/lib/shared/icons/components/photo-camera-fill.js.map +0 -1
- package/lib/shared/icons/components/photo-camera.d.ts +0 -3
- package/lib/shared/icons/components/photo-camera.js +0 -6
- package/lib/shared/icons/components/photo-camera.js.map +0 -1
- package/lib/shared/icons/components/photo-fill.d.ts +0 -3
- package/lib/shared/icons/components/photo-fill.js +0 -13
- package/lib/shared/icons/components/photo-fill.js.map +0 -1
- package/lib/shared/icons/components/photo.d.ts +0 -3
- package/lib/shared/icons/components/photo.js +0 -6
- package/lib/shared/icons/components/photo.js.map +0 -1
- package/lib/shared/icons/components/play-arrow-fill.d.ts +0 -3
- package/lib/shared/icons/components/play-arrow-fill.js +0 -13
- package/lib/shared/icons/components/play-arrow-fill.js.map +0 -1
- package/lib/shared/icons/components/play-arrow.d.ts +0 -3
- package/lib/shared/icons/components/play-arrow.js +0 -6
- package/lib/shared/icons/components/play-arrow.js.map +0 -1
- package/lib/shared/icons/components/play-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/play-circle-fill.js +0 -13
- package/lib/shared/icons/components/play-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/play-circle.d.ts +0 -3
- package/lib/shared/icons/components/play-circle.js +0 -6
- package/lib/shared/icons/components/play-circle.js.map +0 -1
- package/lib/shared/icons/components/poll-Icon.d.ts +0 -3
- package/lib/shared/icons/components/poll-Icon.js +0 -8
- package/lib/shared/icons/components/poll-Icon.js.map +0 -1
- package/lib/shared/icons/components/poll-fill.d.ts +0 -3
- package/lib/shared/icons/components/poll-fill.js +0 -6
- package/lib/shared/icons/components/poll-fill.js.map +0 -1
- package/lib/shared/icons/components/poll.d.ts +0 -3
- package/lib/shared/icons/components/poll.js +0 -6
- package/lib/shared/icons/components/poll.js.map +0 -1
- package/lib/shared/icons/components/presentation-file-type.d.ts +0 -3
- package/lib/shared/icons/components/presentation-file-type.js +0 -20
- package/lib/shared/icons/components/presentation-file-type.js.map +0 -1
- package/lib/shared/icons/components/rearrange-fill.d.ts +0 -3
- package/lib/shared/icons/components/rearrange-fill.js +0 -6
- package/lib/shared/icons/components/rearrange-fill.js.map +0 -1
- package/lib/shared/icons/components/rearrange.d.ts +0 -3
- package/lib/shared/icons/components/rearrange.js +0 -6
- package/lib/shared/icons/components/rearrange.js.map +0 -1
- package/lib/shared/icons/components/refresh-fill.d.ts +0 -3
- package/lib/shared/icons/components/refresh-fill.js +0 -13
- package/lib/shared/icons/components/refresh-fill.js.map +0 -1
- package/lib/shared/icons/components/refresh.d.ts +0 -3
- package/lib/shared/icons/components/refresh.js +0 -6
- package/lib/shared/icons/components/refresh.js.map +0 -1
- package/lib/shared/icons/components/reply-all-fill.d.ts +0 -3
- package/lib/shared/icons/components/reply-all-fill.js +0 -13
- package/lib/shared/icons/components/reply-all-fill.js.map +0 -1
- package/lib/shared/icons/components/reply-all.d.ts +0 -3
- package/lib/shared/icons/components/reply-all.js +0 -6
- package/lib/shared/icons/components/reply-all.js.map +0 -1
- package/lib/shared/icons/components/reply-fill.d.ts +0 -3
- package/lib/shared/icons/components/reply-fill.js +0 -13
- package/lib/shared/icons/components/reply-fill.js.map +0 -1
- package/lib/shared/icons/components/reply.d.ts +0 -3
- package/lib/shared/icons/components/reply.js +0 -6
- package/lib/shared/icons/components/reply.js.map +0 -1
- package/lib/shared/icons/components/retry-fill.d.ts +0 -3
- package/lib/shared/icons/components/retry-fill.js +0 -6
- package/lib/shared/icons/components/retry-fill.js.map +0 -1
- package/lib/shared/icons/components/retry.d.ts +0 -3
- package/lib/shared/icons/components/retry.js +0 -6
- package/lib/shared/icons/components/retry.js.map +0 -1
- package/lib/shared/icons/components/right-arrow.d.ts +0 -3
- package/lib/shared/icons/components/right-arrow.js +0 -6
- package/lib/shared/icons/components/right-arrow.js.map +0 -1
- package/lib/shared/icons/components/schedule-fill.d.ts +0 -3
- package/lib/shared/icons/components/schedule-fill.js +0 -13
- package/lib/shared/icons/components/schedule-fill.js.map +0 -1
- package/lib/shared/icons/components/schedule.d.ts +0 -3
- package/lib/shared/icons/components/schedule.js +0 -6
- package/lib/shared/icons/components/schedule.js.map +0 -1
- package/lib/shared/icons/components/screen-share-fill.d.ts +0 -3
- package/lib/shared/icons/components/screen-share-fill.js +0 -13
- package/lib/shared/icons/components/screen-share-fill.js.map +0 -1
- package/lib/shared/icons/components/screen-share.d.ts +0 -3
- package/lib/shared/icons/components/screen-share.js +0 -6
- package/lib/shared/icons/components/screen-share.js.map +0 -1
- package/lib/shared/icons/components/search-fill.d.ts +0 -3
- package/lib/shared/icons/components/search-fill.js +0 -13
- package/lib/shared/icons/components/search-fill.js.map +0 -1
- package/lib/shared/icons/components/search.d.ts +0 -3
- package/lib/shared/icons/components/search.js +0 -6
- package/lib/shared/icons/components/search.js.map +0 -1
- package/lib/shared/icons/components/send-fill.d.ts +0 -3
- package/lib/shared/icons/components/send-fill.js +0 -13
- package/lib/shared/icons/components/send-fill.js.map +0 -1
- package/lib/shared/icons/components/send.d.ts +0 -3
- package/lib/shared/icons/components/send.js +0 -6
- package/lib/shared/icons/components/send.js.map +0 -1
- package/lib/shared/icons/components/settings-fill.d.ts +0 -3
- package/lib/shared/icons/components/settings-fill.js +0 -13
- package/lib/shared/icons/components/settings-fill.js.map +0 -1
- package/lib/shared/icons/components/settings.d.ts +0 -3
- package/lib/shared/icons/components/settings.js +0 -6
- package/lib/shared/icons/components/settings.js.map +0 -1
- package/lib/shared/icons/components/share-fill.d.ts +0 -3
- package/lib/shared/icons/components/share-fill.js +0 -13
- package/lib/shared/icons/components/share-fill.js.map +0 -1
- package/lib/shared/icons/components/share.d.ts +0 -3
- package/lib/shared/icons/components/share.js +0 -6
- package/lib/shared/icons/components/share.js.map +0 -1
- package/lib/shared/icons/components/shield-fill.d.ts +0 -3
- package/lib/shared/icons/components/shield-fill.js +0 -6
- package/lib/shared/icons/components/shield-fill.js.map +0 -1
- package/lib/shared/icons/components/shield.d.ts +0 -3
- package/lib/shared/icons/components/shield.js +0 -6
- package/lib/shared/icons/components/shield.js.map +0 -1
- package/lib/shared/icons/components/smileys-&-people.d.ts +0 -3
- package/lib/shared/icons/components/smileys-&-people.js +0 -13
- package/lib/shared/icons/components/smileys-&-people.js.map +0 -1
- package/lib/shared/icons/components/spreadsheet-file-type.d.ts +0 -3
- package/lib/shared/icons/components/spreadsheet-file-type.js +0 -20
- package/lib/shared/icons/components/spreadsheet-file-type.js.map +0 -1
- package/lib/shared/icons/components/star-fill.d.ts +0 -3
- package/lib/shared/icons/components/star-fill.js +0 -13
- package/lib/shared/icons/components/star-fill.js.map +0 -1
- package/lib/shared/icons/components/star.d.ts +0 -3
- package/lib/shared/icons/components/star.js +0 -6
- package/lib/shared/icons/components/star.js.map +0 -1
- package/lib/shared/icons/components/sticker-fill.d.ts +0 -3
- package/lib/shared/icons/components/sticker-fill.js +0 -7
- package/lib/shared/icons/components/sticker-fill.js.map +0 -1
- package/lib/shared/icons/components/sticker.d.ts +0 -3
- package/lib/shared/icons/components/sticker.js +0 -6
- package/lib/shared/icons/components/sticker.js.map +0 -1
- package/lib/shared/icons/components/stop-circle-fill.d.ts +0 -3
- package/lib/shared/icons/components/stop-circle-fill.js +0 -13
- package/lib/shared/icons/components/stop-circle-fill.js.map +0 -1
- package/lib/shared/icons/components/stop-circle.d.ts +0 -3
- package/lib/shared/icons/components/stop-circle.js +0 -6
- package/lib/shared/icons/components/stop-circle.js.map +0 -1
- package/lib/shared/icons/components/stop-fill.d.ts +0 -3
- package/lib/shared/icons/components/stop-fill.js +0 -14
- package/lib/shared/icons/components/stop-fill.js.map +0 -1
- package/lib/shared/icons/components/stop-screen-share-fill.d.ts +0 -3
- package/lib/shared/icons/components/stop-screen-share-fill.js +0 -13
- package/lib/shared/icons/components/stop-screen-share-fill.js.map +0 -1
- package/lib/shared/icons/components/stop-screen-share.d.ts +0 -3
- package/lib/shared/icons/components/stop-screen-share.js +0 -6
- package/lib/shared/icons/components/stop-screen-share.js.map +0 -1
- package/lib/shared/icons/components/stop.d.ts +0 -3
- package/lib/shared/icons/components/stop.js +0 -6
- package/lib/shared/icons/components/stop.js.map +0 -1
- package/lib/shared/icons/components/subdirectory-arrow-left-fill.d.ts +0 -3
- package/lib/shared/icons/components/subdirectory-arrow-left-fill.js +0 -13
- package/lib/shared/icons/components/subdirectory-arrow-left-fill.js.map +0 -1
- package/lib/shared/icons/components/subdirectory-arrow-left.d.ts +0 -3
- package/lib/shared/icons/components/subdirectory-arrow-left.js +0 -6
- package/lib/shared/icons/components/subdirectory-arrow-left.js.map +0 -1
- package/lib/shared/icons/components/subdirectory-arrow-right-fill.d.ts +0 -3
- package/lib/shared/icons/components/subdirectory-arrow-right-fill.js +0 -13
- package/lib/shared/icons/components/subdirectory-arrow-right-fill.js.map +0 -1
- package/lib/shared/icons/components/subdirectory-arrow-right.d.ts +0 -3
- package/lib/shared/icons/components/subdirectory-arrow-right.js +0 -6
- package/lib/shared/icons/components/subdirectory-arrow-right.js.map +0 -1
- package/lib/shared/icons/components/sunny-fill.d.ts +0 -3
- package/lib/shared/icons/components/sunny-fill.js +0 -13
- package/lib/shared/icons/components/sunny-fill.js.map +0 -1
- package/lib/shared/icons/components/sunny.d.ts +0 -3
- package/lib/shared/icons/components/sunny.js +0 -6
- package/lib/shared/icons/components/sunny.js.map +0 -1
- package/lib/shared/icons/components/symbols.d.ts +0 -3
- package/lib/shared/icons/components/symbols.js +0 -13
- package/lib/shared/icons/components/symbols.js.map +0 -1
- package/lib/shared/icons/components/text-file-type.d.ts +0 -3
- package/lib/shared/icons/components/text-file-type.js +0 -20
- package/lib/shared/icons/components/text-file-type.js.map +0 -1
- package/lib/shared/icons/components/thumb-down-fill.d.ts +0 -3
- package/lib/shared/icons/components/thumb-down-fill.js +0 -13
- package/lib/shared/icons/components/thumb-down-fill.js.map +0 -1
- package/lib/shared/icons/components/thumb-down.d.ts +0 -3
- package/lib/shared/icons/components/thumb-down.js +0 -6
- package/lib/shared/icons/components/thumb-down.js.map +0 -1
- package/lib/shared/icons/components/thumb-up-fill.d.ts +0 -3
- package/lib/shared/icons/components/thumb-up-fill.js +0 -13
- package/lib/shared/icons/components/thumb-up-fill.js.map +0 -1
- package/lib/shared/icons/components/thumb-up.d.ts +0 -3
- package/lib/shared/icons/components/thumb-up.js +0 -6
- package/lib/shared/icons/components/thumb-up.js.map +0 -1
- package/lib/shared/icons/components/translate-fill.d.ts +0 -3
- package/lib/shared/icons/components/translate-fill.js +0 -6
- package/lib/shared/icons/components/translate-fill.js.map +0 -1
- package/lib/shared/icons/components/translate.d.ts +0 -3
- package/lib/shared/icons/components/translate.js +0 -6
- package/lib/shared/icons/components/translate.js.map +0 -1
- package/lib/shared/icons/components/travel-&-places.d.ts +0 -3
- package/lib/shared/icons/components/travel-&-places.js +0 -13
- package/lib/shared/icons/components/travel-&-places.js.map +0 -1
- package/lib/shared/icons/components/unknown-file-type.d.ts +0 -3
- package/lib/shared/icons/components/unknown-file-type.js +0 -20
- package/lib/shared/icons/components/unknown-file-type.js.map +0 -1
- package/lib/shared/icons/components/upload-fill.d.ts +0 -3
- package/lib/shared/icons/components/upload-fill.js +0 -6
- package/lib/shared/icons/components/upload-fill.js.map +0 -1
- package/lib/shared/icons/components/upload.d.ts +0 -3
- package/lib/shared/icons/components/upload.js +0 -6
- package/lib/shared/icons/components/upload.js.map +0 -1
- package/lib/shared/icons/components/user-empty-icon.d.ts +0 -3
- package/lib/shared/icons/components/user-empty-icon.js +0 -11
- package/lib/shared/icons/components/user-empty-icon.js.map +0 -1
- package/lib/shared/icons/components/video-call-fill.d.ts +0 -3
- package/lib/shared/icons/components/video-call-fill.js +0 -13
- package/lib/shared/icons/components/video-call-fill.js.map +0 -1
- package/lib/shared/icons/components/video-call.d.ts +0 -3
- package/lib/shared/icons/components/video-call.js +0 -6
- package/lib/shared/icons/components/video-call.js.map +0 -1
- package/lib/shared/icons/components/video-file-type.d.ts +0 -3
- package/lib/shared/icons/components/video-file-type.js +0 -20
- package/lib/shared/icons/components/video-file-type.js.map +0 -1
- package/lib/shared/icons/components/videocam-fill.d.ts +0 -3
- package/lib/shared/icons/components/videocam-fill.js +0 -13
- package/lib/shared/icons/components/videocam-fill.js.map +0 -1
- package/lib/shared/icons/components/videocam-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/videocam-off-fill.js +0 -13
- package/lib/shared/icons/components/videocam-off-fill.js.map +0 -1
- package/lib/shared/icons/components/videocam-off.d.ts +0 -3
- package/lib/shared/icons/components/videocam-off.js +0 -6
- package/lib/shared/icons/components/videocam-off.js.map +0 -1
- package/lib/shared/icons/components/videocam.d.ts +0 -3
- package/lib/shared/icons/components/videocam.js +0 -6
- package/lib/shared/icons/components/videocam.js.map +0 -1
- package/lib/shared/icons/components/visibility-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/visibility-off-fill.js +0 -6
- package/lib/shared/icons/components/visibility-off-fill.js.map +0 -1
- package/lib/shared/icons/components/visibility-off.d.ts +0 -3
- package/lib/shared/icons/components/visibility-off.js +0 -6
- package/lib/shared/icons/components/visibility-off.js.map +0 -1
- package/lib/shared/icons/components/volume-down-fill.d.ts +0 -3
- package/lib/shared/icons/components/volume-down-fill.js +0 -13
- package/lib/shared/icons/components/volume-down-fill.js.map +0 -1
- package/lib/shared/icons/components/volume-down.d.ts +0 -3
- package/lib/shared/icons/components/volume-down.js +0 -6
- package/lib/shared/icons/components/volume-down.js.map +0 -1
- package/lib/shared/icons/components/volume-mute-fill.d.ts +0 -3
- package/lib/shared/icons/components/volume-mute-fill.js +0 -13
- package/lib/shared/icons/components/volume-mute-fill.js.map +0 -1
- package/lib/shared/icons/components/volume-mute.d.ts +0 -3
- package/lib/shared/icons/components/volume-mute.js +0 -6
- package/lib/shared/icons/components/volume-mute.js.map +0 -1
- package/lib/shared/icons/components/volume-off-fill.d.ts +0 -3
- package/lib/shared/icons/components/volume-off-fill.js +0 -13
- package/lib/shared/icons/components/volume-off-fill.js.map +0 -1
- package/lib/shared/icons/components/volume-off.d.ts +0 -3
- package/lib/shared/icons/components/volume-off.js +0 -6
- package/lib/shared/icons/components/volume-off.js.map +0 -1
- package/lib/shared/icons/components/volume-up-fill.d.ts +0 -3
- package/lib/shared/icons/components/volume-up-fill.js +0 -13
- package/lib/shared/icons/components/volume-up-fill.js.map +0 -1
- package/lib/shared/icons/components/volume-up.d.ts +0 -3
- package/lib/shared/icons/components/volume-up.js +0 -6
- package/lib/shared/icons/components/volume-up.js.map +0 -1
- package/lib/shared/icons/components/warning-fill.d.ts +0 -3
- package/lib/shared/icons/components/warning-fill.js +0 -13
- package/lib/shared/icons/components/warning-fill.js.map +0 -1
- package/lib/shared/icons/components/warning.d.ts +0 -3
- package/lib/shared/icons/components/warning.js +0 -6
- package/lib/shared/icons/components/warning.js.map +0 -1
- package/lib/shared/icons/components/wifi-fill.d.ts +0 -3
- package/lib/shared/icons/components/wifi-fill.js +0 -13
- package/lib/shared/icons/components/wifi-fill.js.map +0 -1
- package/lib/shared/icons/components/wifi.d.ts +0 -3
- package/lib/shared/icons/components/wifi.js +0 -6
- package/lib/shared/icons/components/wifi.js.map +0 -1
- package/lib/shared/icons/components/zip-file-type.d.ts +0 -3
- package/lib/shared/icons/components/zip-file-type.js +0 -20
- package/lib/shared/icons/components/zip-file-type.js.map +0 -1
- package/lib/shared/icons/components/zoom-in-map-fill.d.ts +0 -3
- package/lib/shared/icons/components/zoom-in-map-fill.js +0 -13
- package/lib/shared/icons/components/zoom-in-map-fill.js.map +0 -1
- package/lib/shared/icons/components/zoom-in-map.d.ts +0 -3
- package/lib/shared/icons/components/zoom-in-map.js +0 -6
- package/lib/shared/icons/components/zoom-in-map.js.map +0 -1
- package/lib/shared/icons/components/zoom-out-map-fill.d.ts +0 -3
- package/lib/shared/icons/components/zoom-out-map-fill.js +0 -13
- package/lib/shared/icons/components/zoom-out-map-fill.js.map +0 -1
- package/lib/shared/icons/components/zoom-out-map.d.ts +0 -3
- package/lib/shared/icons/components/zoom-out-map.js +0 -6
- package/lib/shared/icons/components/zoom-out-map.js.map +0 -1
- package/lib/shared/icons/icon-mapping.d.ts +0 -320
- package/lib/shared/icons/icon-mapping.js +0 -628
- package/lib/shared/icons/icon-mapping.js.map +0 -1
- package/lib/shared/index.d.ts +0 -21
- package/lib/shared/index.js +0 -17
- package/lib/shared/index.js.map +0 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +0 -227
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +0 -748
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +0 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +0 -88
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +0 -163
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +0 -1
- package/lib/shared/libs/ImageZoom/helper.d.ts +0 -8
- package/lib/shared/libs/ImageZoom/helper.js +0 -87
- package/lib/shared/libs/ImageZoom/helper.js.map +0 -1
- package/lib/shared/libs/ImageZoom/index.d.ts +0 -4
- package/lib/shared/libs/ImageZoom/index.js +0 -4
- package/lib/shared/libs/ImageZoom/index.js.map +0 -1
- package/lib/shared/libs/ImageZoom/types/index.d.ts +0 -91
- package/lib/shared/libs/ImageZoom/types/index.js +0 -8
- package/lib/shared/libs/ImageZoom/types/index.js.map +0 -1
- package/lib/shared/libs/VideoPlayer/DRMType.d.ts +0 -7
- package/lib/shared/libs/VideoPlayer/DRMType.js +0 -7
- package/lib/shared/libs/VideoPlayer/DRMType.js.map +0 -1
- package/lib/shared/libs/VideoPlayer/FilterType.d.ts +0 -19
- package/lib/shared/libs/VideoPlayer/FilterType.js +0 -19
- package/lib/shared/libs/VideoPlayer/FilterType.js.map +0 -1
- package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +0 -6
- package/lib/shared/libs/VideoPlayer/TextTrackType.js +0 -6
- package/lib/shared/libs/VideoPlayer/TextTrackType.js.map +0 -1
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +0 -6
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js +0 -6
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js.map +0 -1
- package/lib/shared/modals/CometChatAIAssistantTools.d.ts +0 -47
- package/lib/shared/modals/CometChatAIAssistantTools.js +0 -44
- package/lib/shared/modals/CometChatAIAssistantTools.js.map +0 -1
- package/lib/shared/modals/CometChatMessageOption.d.ts +0 -17
- package/lib/shared/modals/CometChatMessageOption.js +0 -2
- package/lib/shared/modals/CometChatMessageOption.js.map +0 -1
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -135
- package/lib/shared/modals/CometChatMessageTemplate.js +0 -80
- package/lib/shared/modals/CometChatMessageTemplate.js.map +0 -1
- package/lib/shared/modals/StreamMessage.d.ts +0 -4
- package/lib/shared/modals/StreamMessage.js +0 -11
- package/lib/shared/modals/StreamMessage.js.map +0 -1
- package/lib/shared/modals/index.d.ts +0 -5
- package/lib/shared/modals/index.js +0 -5
- package/lib/shared/modals/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.d.ts +0 -15
- package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.js +0 -75
- package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.d.ts +0 -9727
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.js +0 -66
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.d.ts +0 -3
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.js +0 -12
- package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.d.ts +0 -5
- package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.js +0 -47
- package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/index.d.ts +0 -6
- package/lib/shared/resources/CometChatLocalizeNew/index.js +0 -6
- package/lib/shared/resources/CometChatLocalizeNew/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/resources/de/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/en/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/es/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/hi/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/it/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +0 -462
- package/lib/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +0 -463
- package/lib/shared/resources/CometChatLocalizeNew/type.d.ts +0 -5
- package/lib/shared/resources/CometChatLocalizeNew/type.js +0 -2
- package/lib/shared/resources/CometChatLocalizeNew/type.js.map +0 -1
- package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.d.ts +0 -5
- package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.js +0 -19
- package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -13
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +0 -82
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/index.d.ts +0 -2
- package/lib/shared/resources/CometChatSoundManager/index.js +0 -4
- package/lib/shared/resources/CometChatSoundManager/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.d.ts +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.js +0 -6
- package/lib/shared/resources/CometChatSoundManager/resources/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +0 -56
- package/lib/shared/resources/CometChatSoundManager/sound.js +0 -303
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +0 -1
- package/lib/shared/resources/index.d.ts +0 -2
- package/lib/shared/resources/index.js +0 -3
- package/lib/shared/resources/index.js.map +0 -1
- package/lib/shared/services/stream-message.service.d.ts +0 -84
- package/lib/shared/services/stream-message.service.js +0 -406
- package/lib/shared/services/stream-message.service.js.map +0 -1
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +0 -13
- package/lib/shared/utils/CometChatMessageHelper/index.js +0 -42
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +0 -8
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +0 -35
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/index.d.ts +0 -2
- package/lib/shared/utils/CometChatMessagePreview/index.js +0 -3
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +0 -2
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +0 -3
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +0 -343
- package/lib/shared/utils/CometChatMessagePreview/style.js +0 -43
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +0 -1
- package/lib/shared/utils/CommonUtils.d.ts +0 -12
- package/lib/shared/utils/CommonUtils.js +0 -154
- package/lib/shared/utils/CommonUtils.js.map +0 -1
- package/lib/shared/utils/MessageUtils.d.ts +0 -25
- package/lib/shared/utils/MessageUtils.js +0 -200
- package/lib/shared/utils/MessageUtils.js.map +0 -1
- package/lib/shared/utils/NetworkUtils.d.ts +0 -9
- package/lib/shared/utils/NetworkUtils.js +0 -28
- package/lib/shared/utils/NetworkUtils.js.map +0 -1
- package/lib/shared/utils/PermissionUtil.d.ts +0 -18
- package/lib/shared/utils/PermissionUtil.js +0 -126
- package/lib/shared/utils/PermissionUtil.js.map +0 -1
- package/lib/shared/utils/conversationUtils.d.ts +0 -7
- package/lib/shared/utils/conversationUtils.js +0 -91
- package/lib/shared/utils/conversationUtils.js.map +0 -1
- package/lib/shared/utils/icsToJson.d.ts +0 -2
- package/lib/shared/utils/icsToJson.js +0 -108
- package/lib/shared/utils/icsToJson.js.map +0 -1
- package/lib/shared/utils/index.d.ts +0 -4
- package/lib/shared/utils/index.js +0 -5
- package/lib/shared/utils/index.js.map +0 -1
- package/lib/shared/views/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +0 -9
- package/lib/shared/views/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.js +0 -248
- package/lib/shared/views/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.js.map +0 -1
- package/lib/shared/views/CometChatAIAssistantMessageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatAIAssistantMessageBubble/index.js +0 -4
- package/lib/shared/views/CometChatAIAssistantMessageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +0 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +0 -102
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +0 -1
- package/lib/shared/views/CometChatAICard/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAICard/resources/index.js +0 -4
- package/lib/shared/views/CometChatAICard/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +0 -14
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -2
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +0 -9
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +0 -35
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/hooks.d.ts +0 -4
- package/lib/shared/views/CometChatActionSheet/hooks.js +0 -7
- package/lib/shared/views/CometChatActionSheet/hooks.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/index.d.ts +0 -2
- package/lib/shared/views/CometChatActionSheet/index.js +0 -2
- package/lib/shared/views/CometChatActionSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/resources/index.d.ts +0 -4
- package/lib/shared/views/CometChatActionSheet/resources/index.js +0 -7
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/style.d.ts +0 -6
- package/lib/shared/views/CometChatActionSheet/style.js +0 -8
- package/lib/shared/views/CometChatActionSheet/style.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/AnimatedAudioWaves.d.ts +0 -7
- package/lib/shared/views/CometChatAudioBubble/AnimatedAudioWaves.js +0 -97
- package/lib/shared/views/CometChatAudioBubble/AnimatedAudioWaves.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -28
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +0 -148
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +0 -4
- package/lib/shared/views/CometChatAudioBubble/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAudioBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +0 -9
- package/lib/shared/views/CometChatAudioBubble/style.js +0 -191
- package/lib/shared/views/CometChatAudioBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +0 -29
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +0 -33
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/index.d.ts +0 -3
- package/lib/shared/views/CometChatAvatar/index.js +0 -3
- package/lib/shared/views/CometChatAvatar/index.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +0 -8
- package/lib/shared/views/CometChatAvatar/styles.js +0 -27
- package/lib/shared/views/CometChatAvatar/styles.js.map +0 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +0 -25
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +0 -38
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +0 -1
- package/lib/shared/views/CometChatBadge/index.d.ts +0 -4
- package/lib/shared/views/CometChatBadge/index.js +0 -3
- package/lib/shared/views/CometChatBadge/index.js.map +0 -1
- package/lib/shared/views/CometChatBadge/styles.d.ts +0 -7
- package/lib/shared/views/CometChatBadge/styles.js +0 -21
- package/lib/shared/views/CometChatBadge/styles.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +0 -59
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +0 -109
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +0 -3
- package/lib/shared/views/CometChatBottomSheet/index.js +0 -3
- package/lib/shared/views/CometChatBottomSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -87
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +0 -63
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +0 -17
- package/lib/shared/views/CometChatConfirmDialog/style.js +0 -97
- package/lib/shared/views/CometChatConfirmDialog/style.js.map +0 -1
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +0 -39
- package/lib/shared/views/CometChatDate/CometChatDate.js +0 -37
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +0 -1
- package/lib/shared/views/CometChatDate/index.d.ts +0 -4
- package/lib/shared/views/CometChatDate/index.js +0 -3
- package/lib/shared/views/CometChatDate/index.js.map +0 -1
- package/lib/shared/views/CometChatDate/styles.d.ts +0 -8
- package/lib/shared/views/CometChatDate/styles.js +0 -19
- package/lib/shared/views/CometChatDate/styles.js.map +0 -1
- package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.d.ts +0 -37
- package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.js +0 -24
- package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.js.map +0 -1
- package/lib/shared/views/CometChatDateSeperator/index.d.ts +0 -3
- package/lib/shared/views/CometChatDateSeperator/index.js +0 -3
- package/lib/shared/views/CometChatDateSeperator/index.js.map +0 -1
- package/lib/shared/views/CometChatDateSeperator/styles.d.ts +0 -8
- package/lib/shared/views/CometChatDateSeperator/styles.js +0 -35
- package/lib/shared/views/CometChatDateSeperator/styles.js.map +0 -1
- package/lib/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.d.ts +0 -23
- package/lib/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.js +0 -27
- package/lib/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.js.map +0 -1
- package/lib/shared/views/CometChatDeletedBubble/index.d.ts +0 -4
- package/lib/shared/views/CometChatDeletedBubble/index.js +0 -3
- package/lib/shared/views/CometChatDeletedBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatDeletedBubble/styles.d.ts +0 -14
- package/lib/shared/views/CometChatDeletedBubble/styles.js +0 -25
- package/lib/shared/views/CometChatDeletedBubble/styles.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -25
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +0 -182
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +0 -16
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +0 -17
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.d.ts +0 -21
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +0 -22
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +0 -6993
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/index.d.ts +0 -2
- package/lib/shared/views/CometChatEmojiKeyboard/index.js +0 -3
- package/lib/shared/views/CometChatEmojiKeyboard/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.d.ts +0 -9
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +0 -10
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +0 -67
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +0 -72
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +0 -44
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +0 -185
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/index.d.ts +0 -4
- package/lib/shared/views/CometChatFileBubble/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatFileBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/style.d.ts +0 -9
- package/lib/shared/views/CometChatFileBubble/style.js +0 -109
- package/lib/shared/views/CometChatFileBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +0 -44
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +0 -23
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageLoader.d.ts +0 -54
- package/lib/shared/views/CometChatImageBubble/CometChatImageLoader.js +0 -95
- package/lib/shared/views/CometChatImageBubble/CometChatImageLoader.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/assets/index.d.ts +0 -3
- package/lib/shared/views/CometChatImageBubble/assets/index.js +0 -5
- package/lib/shared/views/CometChatImageBubble/assets/index.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatImageBubble/index.js +0 -3
- package/lib/shared/views/CometChatImageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +0 -2
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +0 -92
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +0 -1
- package/lib/shared/views/CometChatImageViewerModal/index.d.ts +0 -1
- package/lib/shared/views/CometChatImageViewerModal/index.js +0 -2
- package/lib/shared/views/CometChatImageViewerModal/index.js.map +0 -1
- package/lib/shared/views/CometChatImageViewerModal/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js +0 -5
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -119
- package/lib/shared/views/CometChatList/CometChatList.js +0 -528
- package/lib/shared/views/CometChatList/CometChatList.js.map +0 -1
- package/lib/shared/views/CometChatList/Header.d.ts +0 -124
- package/lib/shared/views/CometChatList/Header.js +0 -77
- package/lib/shared/views/CometChatList/Header.js.map +0 -1
- package/lib/shared/views/CometChatList/index.d.ts +0 -3
- package/lib/shared/views/CometChatList/index.js +0 -3
- package/lib/shared/views/CometChatList/index.js.map +0 -1
- package/lib/shared/views/CometChatList/resources/index.d.ts +0 -5
- package/lib/shared/views/CometChatList/resources/index.js +0 -9
- package/lib/shared/views/CometChatList/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatList/styles.d.ts +0 -115
- package/lib/shared/views/CometChatList/styles.js +0 -117
- package/lib/shared/views/CometChatList/styles.js.map +0 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +0 -96
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +0 -126
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +0 -1
- package/lib/shared/views/CometChatListItem/index.d.ts +0 -3
- package/lib/shared/views/CometChatListItem/index.js +0 -3
- package/lib/shared/views/CometChatListItem/index.js.map +0 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +0 -57
- package/lib/shared/views/CometChatListItem/style.js +0 -59
- package/lib/shared/views/CometChatListItem/style.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/AnimatingMic.d.ts +0 -16
- package/lib/shared/views/CometChatMediaRecorder/AnimatingMic.js +0 -84
- package/lib/shared/views/CometChatMediaRecorder/AnimatingMic.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPlayer.d.ts +0 -5
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPlayer.js +0 -79
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPlayer.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.d.ts +0 -28
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.js +0 -153
- package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -12
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +0 -264
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/Timer.d.ts +0 -8
- package/lib/shared/views/CometChatMediaRecorder/Timer.js +0 -67
- package/lib/shared/views/CometChatMediaRecorder/Timer.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/index.d.ts +0 -3
- package/lib/shared/views/CometChatMediaRecorder/index.js +0 -3
- package/lib/shared/views/CometChatMediaRecorder/index.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +0 -26
- package/lib/shared/views/CometChatMediaRecorder/style.js +0 -64
- package/lib/shared/views/CometChatMediaRecorder/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -85
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +0 -54
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatMessageBubble/index.js +0 -3
- package/lib/shared/views/CometChatMessageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/style.d.ts +0 -0
- package/lib/shared/views/CometChatMessageBubble/style.js +0 -2
- package/lib/shared/views/CometChatMessageBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +0 -86
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +0 -48
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/index.d.ts +0 -3
- package/lib/shared/views/CometChatMessageInput/index.js +0 -3
- package/lib/shared/views/CometChatMessageInput/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +0 -7
- package/lib/shared/views/CometChatMessageInput/styles.js +0 -9
- package/lib/shared/views/CometChatMessageInput/styles.js.map +0 -1
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +0 -38
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +0 -37
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +0 -1
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.d.ts +0 -3
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +0 -25
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +0 -1
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +0 -2
- package/lib/shared/views/CometChatQuickReactions/index.js +0 -3
- package/lib/shared/views/CometChatQuickReactions/index.js.map +0 -1
- package/lib/shared/views/CometChatQuickReactions/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatQuickReactions/resources/index.js +0 -3
- package/lib/shared/views/CometChatQuickReactions/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +0 -47
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +0 -327
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +0 -1
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.d.ts +0 -3
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +0 -145
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +0 -1
- package/lib/shared/views/CometChatReactionList/Skeleton.d.ts +0 -2
- package/lib/shared/views/CometChatReactionList/Skeleton.js +0 -101
- package/lib/shared/views/CometChatReactionList/Skeleton.js.map +0 -1
- package/lib/shared/views/CometChatReactionList/index.d.ts +0 -3
- package/lib/shared/views/CometChatReactionList/index.js +0 -3
- package/lib/shared/views/CometChatReactionList/index.js.map +0 -1
- package/lib/shared/views/CometChatReactionList/resources/index.d.ts +0 -2
- package/lib/shared/views/CometChatReactionList/resources/index.js +0 -3
- package/lib/shared/views/CometChatReactionList/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +0 -42
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +0 -92
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +0 -1
- package/lib/shared/views/CometChatReactions/index.d.ts +0 -3
- package/lib/shared/views/CometChatReactions/index.js +0 -3
- package/lib/shared/views/CometChatReactions/index.js.map +0 -1
- package/lib/shared/views/CometChatReactions/style.d.ts +0 -10
- package/lib/shared/views/CometChatReactions/style.js +0 -178
- package/lib/shared/views/CometChatReactions/style.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +0 -21
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +0 -27
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/index.d.ts +0 -3
- package/lib/shared/views/CometChatReceipt/index.js +0 -2
- package/lib/shared/views/CometChatReceipt/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/resources/index.d.ts +0 -7
- package/lib/shared/views/CometChatReceipt/resources/index.js +0 -13
- package/lib/shared/views/CometChatReceipt/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/style.d.ts +0 -16
- package/lib/shared/views/CometChatReceipt/style.js +0 -30
- package/lib/shared/views/CometChatReceipt/style.js.map +0 -1
- package/lib/shared/views/CometChatSendButtonView/CometChatSendButtonView.d.ts +0 -10
- package/lib/shared/views/CometChatSendButtonView/CometChatSendButtonView.js +0 -54
- package/lib/shared/views/CometChatSendButtonView/CometChatSendButtonView.js.map +0 -1
- package/lib/shared/views/CometChatSendButtonView/index.d.ts +0 -1
- package/lib/shared/views/CometChatSendButtonView/index.js +0 -2
- package/lib/shared/views/CometChatSendButtonView/index.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +0 -23
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +0 -36
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/index.d.ts +0 -4
- package/lib/shared/views/CometChatStatusIndicator/index.js +0 -3
- package/lib/shared/views/CometChatStatusIndicator/index.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +0 -10
- package/lib/shared/views/CometChatStatusIndicator/styles.js +0 -47
- package/lib/shared/views/CometChatStatusIndicator/styles.js.map +0 -1
- package/lib/shared/views/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +0 -8
- package/lib/shared/views/CometChatStreamMessageBubble/CometChatStreamMessageBubble.js +0 -436
- package/lib/shared/views/CometChatStreamMessageBubble/CometChatStreamMessageBubble.js.map +0 -1
- package/lib/shared/views/CometChatStreamMessageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatStreamMessageBubble/index.js +0 -3
- package/lib/shared/views/CometChatStreamMessageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +0 -35
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +0 -39
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +0 -1
- package/lib/shared/views/CometChatSuggestionList/Skeleton.d.ts +0 -2
- package/lib/shared/views/CometChatSuggestionList/Skeleton.js +0 -141
- package/lib/shared/views/CometChatSuggestionList/Skeleton.js.map +0 -1
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.d.ts +0 -43
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +0 -46
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +0 -1
- package/lib/shared/views/CometChatSuggestionList/index.d.ts +0 -4
- package/lib/shared/views/CometChatSuggestionList/index.js +0 -4
- package/lib/shared/views/CometChatSuggestionList/index.js.map +0 -1
- package/lib/shared/views/CometChatSuggestionList/style.d.ts +0 -4
- package/lib/shared/views/CometChatSuggestionList/style.js +0 -59
- package/lib/shared/views/CometChatSuggestionList/style.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +0 -26
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +0 -109
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatTextBubble/index.js +0 -3
- package/lib/shared/views/CometChatTextBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.d.ts +0 -53
- package/lib/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.js +0 -106
- package/lib/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.js.map +0 -1
- package/lib/shared/views/CometChatTooltipMenu/index.d.ts +0 -3
- package/lib/shared/views/CometChatTooltipMenu/index.js +0 -3
- package/lib/shared/views/CometChatTooltipMenu/index.js.map +0 -1
- package/lib/shared/views/CometChatTooltipMenu/styles.d.ts +0 -22
- package/lib/shared/views/CometChatTooltipMenu/styles.js +0 -24
- package/lib/shared/views/CometChatTooltipMenu/styles.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -50
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +0 -81
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatVideoBubble/index.js +0 -3
- package/lib/shared/views/CometChatVideoBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +0 -16
- package/lib/shared/views/CometChatVideoBubble/style.js +0 -89
- package/lib/shared/views/CometChatVideoBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +0 -27
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +0 -123
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +0 -1
- package/lib/shared/views/CometChatVideoPlayer/index.d.ts +0 -1
- package/lib/shared/views/CometChatVideoPlayer/index.js +0 -2
- package/lib/shared/views/CometChatVideoPlayer/index.js.map +0 -1
- package/lib/shared/views/ErrorEmptyView/ErrorEmptyView.d.ts +0 -41
- package/lib/shared/views/ErrorEmptyView/ErrorEmptyView.js +0 -12
- package/lib/shared/views/ErrorEmptyView/ErrorEmptyView.js.map +0 -1
- package/lib/shared/views/index.d.ts +0 -27
- package/lib/shared/views/index.js +0 -24
- package/lib/shared/views/index.js.map +0 -1
- package/lib/theme/CometChatThemeHelper.d.ts +0 -146
- package/lib/theme/CometChatThemeHelper.js +0 -361
- package/lib/theme/CometChatThemeHelper.js.map +0 -1
- package/lib/theme/context.d.ts +0 -6390
- package/lib/theme/context.js +0 -10
- package/lib/theme/context.js.map +0 -1
- package/lib/theme/default/color/dark.d.ts +0 -2
- package/lib/theme/default/color/dark.js +0 -85
- package/lib/theme/default/color/dark.js.map +0 -1
- package/lib/theme/default/color/light.d.ts +0 -77
- package/lib/theme/default/color/light.js +0 -85
- package/lib/theme/default/color/light.js.map +0 -1
- package/lib/theme/default/default.d.ts +0 -6
- package/lib/theme/default/default.js +0 -147
- package/lib/theme/default/default.js.map +0 -1
- package/lib/theme/default/index.d.ts +0 -4
- package/lib/theme/default/index.js +0 -5
- package/lib/theme/default/index.js.map +0 -1
- package/lib/theme/default/resources/icons/index.d.ts +0 -9
- package/lib/theme/default/resources/icons/index.js +0 -17
- package/lib/theme/default/resources/icons/index.js.map +0 -1
- package/lib/theme/default/spacing.d.ts +0 -77
- package/lib/theme/default/spacing.js +0 -81
- package/lib/theme/default/spacing.js.map +0 -1
- package/lib/theme/default/typography.d.ts +0 -181
- package/lib/theme/default/typography.js +0 -163
- package/lib/theme/default/typography.js.map +0 -1
- package/lib/theme/hook.d.ts +0 -5
- package/lib/theme/hook.js +0 -15
- package/lib/theme/hook.js.map +0 -1
- package/lib/theme/index.d.ts +0 -3
- package/lib/theme/index.js +0 -4
- package/lib/theme/index.js.map +0 -1
- package/lib/theme/provider.d.ts +0 -11
- package/lib/theme/provider.js +0 -76
- package/lib/theme/provider.js.map +0 -1
- package/lib/theme/type.d.ts +0 -436
- package/lib/theme/type.js +0 -2
- package/lib/theme/type.js.map +0 -1
|
@@ -1,2180 +0,0 @@
|
|
|
1
|
-
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
2
|
-
import Clipboard from "@react-native-clipboard/clipboard";
|
|
3
|
-
import React, { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, } from "react";
|
|
4
|
-
import { ActivityIndicator, Dimensions, FlatList, Keyboard, NativeModules, Platform, Pressable, ScrollView, Text, TouchableOpacity, View, } from "react-native";
|
|
5
|
-
import { CometChatMessageInformation } from "../CometChatMessageInformation/CometChatMessageInformation";
|
|
6
|
-
import { CometChatActionSheet, CometChatBottomSheet, CometChatMentionsFormatter, CometChatSoundManager, CometChatUiKitConstants, SuggestionItem, } from "../shared";
|
|
7
|
-
import { CallTypeConstants, CometChatCustomMessageTypes, GroupsConstants, MessageCategoryConstants, MessageOptionConstants, MessageReceipt, MessageStatusConstants, MessageTypeConstants, ReceiverTypeConstants, ViewAlignment, } from "../shared/constants/UIKitConstants";
|
|
8
|
-
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
9
|
-
import { MessageEvents } from "../shared/events/messages";
|
|
10
|
-
import { ChatConfigurator } from "../shared/framework/ChatConfigurator";
|
|
11
|
-
import { deepClone, deepMerge } from "../shared/helper/helperFunctions";
|
|
12
|
-
import { Icon } from "../shared/icons/Icon";
|
|
13
|
-
import { getUnixTimestamp, messageStatus } from "../shared/utils/CometChatMessageHelper";
|
|
14
|
-
import { CommonUtils } from "../shared/utils/CommonUtils";
|
|
15
|
-
import { CometChatConfirmDialog, CometChatReceipt } from "../shared/views";
|
|
16
|
-
import { CometChatAvatar } from "../shared/views/CometChatAvatar";
|
|
17
|
-
import { CometChatBadge } from "../shared/views/CometChatBadge";
|
|
18
|
-
import { CometChatDate } from "../shared/views/CometChatDate";
|
|
19
|
-
import { CometChatEmojiKeyboard } from "../shared/views/CometChatEmojiKeyboard";
|
|
20
|
-
import { CometChatMessageBubble } from "../shared/views/CometChatMessageBubble";
|
|
21
|
-
import { CometChatQuickReactions } from "../shared/views/CometChatQuickReactions";
|
|
22
|
-
import { CometChatReactionList } from "../shared/views/CometChatReactionList";
|
|
23
|
-
import { CometChatReactions } from "../shared/views/CometChatReactions";
|
|
24
|
-
import { useTheme } from "../theme";
|
|
25
|
-
import { MessageSkeleton } from "./Skeleton";
|
|
26
|
-
import { ErrorEmptyView } from "../shared/views/ErrorEmptyView/ErrorEmptyView";
|
|
27
|
-
import { ExtensionConstants } from "../extensions";
|
|
28
|
-
//@ts-ignore
|
|
29
|
-
import { getExtensionData } from "../shared/helper/functions";
|
|
30
|
-
import { CometChatDateSeparator } from "../shared/views/CometChatDateSeperator";
|
|
31
|
-
import { handleWebsocketMessage, setAIAssistantTools, setStreamSpeed, setQueueCompletionCallback, onConnected as streamOnConnected, onDisconnected as streamOnDisconnected, checkAndTriggerQueueCompletion, storeAIAssistantMessage } from "../shared/services/stream-message.service";
|
|
32
|
-
import { StreamMessage } from "../shared/modals";
|
|
33
|
-
import { internalMessageDataSource } from "../shared/framework/MessageDataSource";
|
|
34
|
-
import { useCometChatTranslation } from "../shared/resources/CometChatLocalizeNew";
|
|
35
|
-
let _defaultRequestBuilder;
|
|
36
|
-
export const CometChatMessageList = memo(forwardRef((props, ref) => {
|
|
37
|
-
const { parentMessageId, user, group, EmptyView, ErrorView, hideError, LoadingView, receiptsVisibility = true, disableSoundForMessages, customSoundForMessages, alignment = "standard", avatarVisibility = true, datePattern, dateSeparatorPattern, templates = [], messageRequestBuilder, scrollToBottomOnNewMessages = false, onThreadRepliesPress, HeaderView, FooterView, onError, onBack, reactionsRequestBuilder, textFormatters, onReactionPress: onReactionPressFromProp, onReactionLongPress: onReactionLongPressFromProp, onReactionListItemPress: onReactionListItemPressProp, style, onAddReactionPress, quickReactionList, addTemplates = [], onLoad, onEmpty, hideReplyInThreadOption: propHideReplyInThreadOption = false, hideShareMessageOption: propHideShareMessageOption = false, hideEditMessageOption: propHideEditMessageOption = false, hideTranslateMessageOption: propHideTranslateMessageOption = false, hideDeleteMessageOption: propHideDeleteMessageOption = false, hideReactionOption: propHideReactionOption = false, hideMessagePrivatelyOption: propHideMessagePrivatelyOption = false, hideCopyMessageOption: propHideCopyMessageOption = false, hideMessageInfoOption: propHideMessageInfoOption = false, hideGroupActionMessages: propHideGroupActionMessages = false, hideTimestamp = false, suggestedMessages = [], hideSuggestedMessages = false, emptyChatGreetingView, emptyChatIntroMessageView, emptyChatImageView, onSuggestedMessageClick, aiAssistantTools, streamingSpeed = 30 } = props;
|
|
38
|
-
// Helper function to check if user is agentic
|
|
39
|
-
const isAgenticUser = useCallback(() => {
|
|
40
|
-
return user?.getRole?.() === '@agentic';
|
|
41
|
-
}, [user]);
|
|
42
|
-
// hiding props for @agentic users
|
|
43
|
-
const hideReplyInThreadOption = isAgenticUser() ? true : propHideReplyInThreadOption;
|
|
44
|
-
const hideShareMessageOption = isAgenticUser() ? true : propHideShareMessageOption;
|
|
45
|
-
const hideEditMessageOption = isAgenticUser() ? true : propHideEditMessageOption;
|
|
46
|
-
const hideTranslateMessageOption = isAgenticUser() ? true : propHideTranslateMessageOption;
|
|
47
|
-
const hideDeleteMessageOption = isAgenticUser() ? true : propHideDeleteMessageOption;
|
|
48
|
-
const hideReactionOption = isAgenticUser() ? true : propHideReactionOption;
|
|
49
|
-
const hideMessagePrivatelyOption = isAgenticUser() ? true : propHideMessagePrivatelyOption;
|
|
50
|
-
const hideCopyMessageOption = isAgenticUser() ? true : propHideCopyMessageOption;
|
|
51
|
-
const hideMessageInfoOption = isAgenticUser() ? true : propHideMessageInfoOption;
|
|
52
|
-
const hideGroupActionMessages = isAgenticUser() ? true : propHideGroupActionMessages;
|
|
53
|
-
const callListenerId = "call_" + new Date().getTime();
|
|
54
|
-
const groupListenerId = "group_" + new Date().getTime();
|
|
55
|
-
const uiEventListener = "uiEvent_" + new Date().getTime();
|
|
56
|
-
const callEventListener = "callEvent_" + new Date().getTime();
|
|
57
|
-
const uiEventListenerShow = "uiEvent_show_" + new Date().getTime();
|
|
58
|
-
const uiEventListenerHide = "uiEvent_hide_" + new Date().getTime();
|
|
59
|
-
const connectionListenerId = "connectionListener_" + new Date().getTime();
|
|
60
|
-
const messageEventListener = "messageEvent_" + new Date().getTime();
|
|
61
|
-
const groupEventListener = "groupEvent_" + new Date().getTime();
|
|
62
|
-
const streamListenerId = "agent_" + new Date().getTime();
|
|
63
|
-
const deleteItem = useRef(undefined);
|
|
64
|
-
useLayoutEffect(() => {
|
|
65
|
-
// For agent chats (non-thread), don't set up message request builder
|
|
66
|
-
if (isAgenticUser() && !parentMessageId) {
|
|
67
|
-
msgRequestBuilder.current = null;
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (user) {
|
|
71
|
-
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
72
|
-
.setLimit(30)
|
|
73
|
-
.setTags([])
|
|
74
|
-
.setUID(user.getUid());
|
|
75
|
-
}
|
|
76
|
-
else if (group) {
|
|
77
|
-
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
78
|
-
.setLimit(30)
|
|
79
|
-
.setTags([])
|
|
80
|
-
.setGUID(group.getGuid());
|
|
81
|
-
}
|
|
82
|
-
_defaultRequestBuilder.setTypes(ChatConfigurator.dataSource.getAllMessageTypes());
|
|
83
|
-
_defaultRequestBuilder.setCategories(ChatConfigurator.dataSource.getAllMessageCategories());
|
|
84
|
-
//updating users request builder
|
|
85
|
-
let _updatedCustomRequestBuilder = _defaultRequestBuilder;
|
|
86
|
-
if (messageRequestBuilder) {
|
|
87
|
-
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
88
|
-
if (user)
|
|
89
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user.getUid());
|
|
90
|
-
if (group)
|
|
91
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group.getGuid());
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
_updatedCustomRequestBuilder.hideReplies(true);
|
|
95
|
-
if (user)
|
|
96
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user.getUid());
|
|
97
|
-
if (group)
|
|
98
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group.getGuid());
|
|
99
|
-
if (parentMessageId) {
|
|
100
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
101
|
-
if (isAgenticUser()) {
|
|
102
|
-
_updatedCustomRequestBuilder.hideReplies(false);
|
|
103
|
-
_updatedCustomRequestBuilder.withParent(true);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
let types = [], categories = [];
|
|
107
|
-
if (templates.length) {
|
|
108
|
-
types = templates.map((template) => template.type);
|
|
109
|
-
categories = templates.map((template) => template.category);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
113
|
-
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
114
|
-
if (addTemplates.length) {
|
|
115
|
-
types.push(...addTemplates.map((template) => template.type));
|
|
116
|
-
categories.push(...addTemplates.map((template) => template.category));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (hideGroupActionMessages) {
|
|
120
|
-
types = types.filter((type) => type !== MessageTypeConstants.groupMember);
|
|
121
|
-
}
|
|
122
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
123
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
124
|
-
}
|
|
125
|
-
msgRequestBuilder.current = _updatedCustomRequestBuilder;
|
|
126
|
-
}, [hideGroupActionMessages, isAgenticUser, parentMessageId]);
|
|
127
|
-
const theme = useTheme();
|
|
128
|
-
const { t } = useCometChatTranslation();
|
|
129
|
-
const mergedTheme = useMemo(() => {
|
|
130
|
-
const themeClone = deepClone(theme);
|
|
131
|
-
themeClone.messageListStyles = deepMerge(theme.messageListStyles, style ?? {});
|
|
132
|
-
return themeClone;
|
|
133
|
-
}, [theme, style]);
|
|
134
|
-
const overridenBubbleStyles = useMemo(() => {
|
|
135
|
-
const styleCache = new Map();
|
|
136
|
-
const outgoingBubbleStyles = mergedTheme.messageListStyles.outgoingMessageBubbleStyles;
|
|
137
|
-
const incomingBubbleStyles = mergedTheme.messageListStyles.incomingMessageBubbleStyles;
|
|
138
|
-
styleCache.set(MessageTypeConstants.text, {
|
|
139
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.textBubbleStyles ?? {}),
|
|
140
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.textBubbleStyles ?? {}),
|
|
141
|
-
});
|
|
142
|
-
styleCache.set(MessageTypeConstants.image, {
|
|
143
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.imageBubbleStyles ?? {}),
|
|
144
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.imageBubbleStyles ?? {}),
|
|
145
|
-
});
|
|
146
|
-
styleCache.set(MessageTypeConstants.file, {
|
|
147
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.fileBubbleStyles ?? {}),
|
|
148
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.fileBubbleStyles ?? {}),
|
|
149
|
-
});
|
|
150
|
-
styleCache.set(MessageTypeConstants.audio, {
|
|
151
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.audioBubbleStyles ?? {}),
|
|
152
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.audioBubbleStyles ?? {}),
|
|
153
|
-
});
|
|
154
|
-
styleCache.set(MessageTypeConstants.messageDeleted, {
|
|
155
|
-
incoming: deepMerge(incomingBubbleStyles, mergedTheme.deletedBubbleStyles ?? {}, incomingBubbleStyles.deletedBubbleStyles ?? {}),
|
|
156
|
-
outgoing: deepMerge(outgoingBubbleStyles, mergedTheme.deletedBubbleStyles ?? {}, outgoingBubbleStyles.deletedBubbleStyles ?? {}),
|
|
157
|
-
});
|
|
158
|
-
styleCache.set(MessageTypeConstants.sticker, {
|
|
159
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.stickerBubbleStyles ?? {}),
|
|
160
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.stickerBubbleStyles ?? {}),
|
|
161
|
-
});
|
|
162
|
-
styleCache.set(MessageTypeConstants.document, {
|
|
163
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.collaborativeBubbleStyles ?? {}),
|
|
164
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.collaborativeBubbleStyles ?? {}),
|
|
165
|
-
});
|
|
166
|
-
styleCache.set(CometChatCustomMessageTypes.meeting, {
|
|
167
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.meetCallBubbleStyles ?? {}),
|
|
168
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.meetCallBubbleStyles ?? {}),
|
|
169
|
-
});
|
|
170
|
-
styleCache.set(MessageTypeConstants.whiteboard, {
|
|
171
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.collaborativeBubbleStyles ?? {}),
|
|
172
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.collaborativeBubbleStyles ?? {}),
|
|
173
|
-
});
|
|
174
|
-
styleCache.set(MessageTypeConstants.video, {
|
|
175
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.videoBubbleStyles ?? {}),
|
|
176
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.videoBubbleStyles ?? {}),
|
|
177
|
-
});
|
|
178
|
-
styleCache.set(MessageTypeConstants.poll, {
|
|
179
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.pollBubbleStyles ?? {}),
|
|
180
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.pollBubbleStyles ?? {}),
|
|
181
|
-
});
|
|
182
|
-
styleCache.set(GroupsConstants.ACTION_TYPE_GROUPMEMBER, {
|
|
183
|
-
incoming: mergedTheme.messageListStyles.groupActionBubbleStyles,
|
|
184
|
-
outgoing: mergedTheme.messageListStyles.groupActionBubbleStyles,
|
|
185
|
-
});
|
|
186
|
-
styleCache.set(ExtensionConstants.linkPreview, {
|
|
187
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.linkPreviewBubbleStyles ?? {}),
|
|
188
|
-
outgoing: deepMerge(outgoingBubbleStyles, outgoingBubbleStyles.linkPreviewBubbleStyles ?? {}),
|
|
189
|
-
});
|
|
190
|
-
styleCache.set(MessageTypeConstants.assistant, {
|
|
191
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.assistantBubbleStyles ?? {}),
|
|
192
|
-
});
|
|
193
|
-
styleCache.set(CometChatUiKitConstants.streamMessageTypes.run_started, {
|
|
194
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.assistantBubbleStyles ?? {}),
|
|
195
|
-
});
|
|
196
|
-
styleCache.set(CometChatUiKitConstants.streamMessageTypes.run_finished, {
|
|
197
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.assistantBubbleStyles ?? {}),
|
|
198
|
-
});
|
|
199
|
-
styleCache.set(CometChatUiKitConstants.streamMessageTypes.text_message_content, {
|
|
200
|
-
incoming: deepMerge(incomingBubbleStyles, incomingBubbleStyles.assistantBubbleStyles ?? {}),
|
|
201
|
-
});
|
|
202
|
-
return styleCache;
|
|
203
|
-
}, [mergedTheme]);
|
|
204
|
-
// refs
|
|
205
|
-
const currentScrollPosition = useRef({
|
|
206
|
-
y: null,
|
|
207
|
-
scrollViewHeight: 0,
|
|
208
|
-
layoutHeight: 0,
|
|
209
|
-
contentHeight: 0,
|
|
210
|
-
});
|
|
211
|
-
const messagesLength = useRef(0);
|
|
212
|
-
const prevMessagesLength = useRef(0);
|
|
213
|
-
const messageListRef = useRef(null);
|
|
214
|
-
const loggedInUser = useRef(null);
|
|
215
|
-
const messageRequest = useRef(null);
|
|
216
|
-
const messagesContentListRef = useRef([]);
|
|
217
|
-
const temporaryMessageListRef = useRef([]);
|
|
218
|
-
const msgRequestBuilder = useRef(undefined);
|
|
219
|
-
const lastMessageDate = useRef(new Date().getTime());
|
|
220
|
-
// states
|
|
221
|
-
const [messagesList, setMessagesList] = useState([]);
|
|
222
|
-
const [listState, setListState] = useState(isAgenticUser() && !parentMessageId ? "loaded" : "loading");
|
|
223
|
-
const [loadingMessages, setLoadingMessages] = useState(false);
|
|
224
|
-
/** this is required to prevent duplicate api calls. Cannot use state for this since this is being used in scrollHandler **/
|
|
225
|
-
const loadingMessagesRef = useRef(false);
|
|
226
|
-
const [unreadCount, setUnreadCount] = useState(0);
|
|
227
|
-
const [showMessageOptions, setShowMessageOptions] = useState([]);
|
|
228
|
-
const [ExtensionsComponent, setExtensionsComponent] = useState(null);
|
|
229
|
-
const [CustomListHeader, setCustomListHeader] = useState(null);
|
|
230
|
-
const [messageInfo, setMessageInfo] = useState(false);
|
|
231
|
-
const [ongoingCallView, setOngoingCallView] = useState(null);
|
|
232
|
-
const [selectedMessage, setSelectedMessage] = useState(null);
|
|
233
|
-
const [showEmojiKeyboard, setShowEmojiKeyboard] = useState(false);
|
|
234
|
-
const [showReactionList, setShowReactionList] = useState(false);
|
|
235
|
-
const [selectedEmoji, setSelectedEmoji] = useState(undefined);
|
|
236
|
-
const [hideScrollToBottomButton, setHideScrollToBottomButton] = useState(true);
|
|
237
|
-
const [showDeleteModal, setShowDeleteModal] = useState(false);
|
|
238
|
-
const infoObject = useRef(undefined);
|
|
239
|
-
const bottomSheetRef = useRef(null);
|
|
240
|
-
const conversationId = useRef(null);
|
|
241
|
-
const streamSubscriptionRef = useRef(null);
|
|
242
|
-
let lastID = useRef(0);
|
|
243
|
-
let reachedFirstMessage = useRef(false);
|
|
244
|
-
const agenticParentMessageIdRef = useRef(undefined);
|
|
245
|
-
const markUnreadMessageAsRead = () => {
|
|
246
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, {
|
|
247
|
-
message: messagesContentListRef.current[0],
|
|
248
|
-
});
|
|
249
|
-
CometChat.markAsRead(messagesContentListRef.current[0]);
|
|
250
|
-
setUnreadCount(0);
|
|
251
|
-
};
|
|
252
|
-
const newMsgIndicatorPressed = useCallback(() => {
|
|
253
|
-
messagesContentListRef.current = [
|
|
254
|
-
...temporaryMessageListRef.current,
|
|
255
|
-
...messagesContentListRef.current,
|
|
256
|
-
];
|
|
257
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
258
|
-
setMessagesList((prev) => [...temporaryMessageListRef.current, ...prev]);
|
|
259
|
-
temporaryMessageListRef.current = [];
|
|
260
|
-
scrollToBottom();
|
|
261
|
-
markUnreadMessageAsRead();
|
|
262
|
-
}, [onLoad]);
|
|
263
|
-
const getPreviousMessages = async () => {
|
|
264
|
-
// For agent chats (non-thread), don't fetch previous messages
|
|
265
|
-
if (isAgenticUser() && !parentMessageId) {
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
if (reachedFirstMessage.current) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
if (messagesList.length == 0)
|
|
272
|
-
setListState("loading");
|
|
273
|
-
else {
|
|
274
|
-
setLoadingMessages(true);
|
|
275
|
-
loadingMessagesRef.current = true;
|
|
276
|
-
}
|
|
277
|
-
// TODO: this condition is applied because somewhere from whiteboard extention group scope is set to undefined.
|
|
278
|
-
if (group != undefined && group.getGuid() == undefined) {
|
|
279
|
-
let fetchedGroup = await CometChat.getGroup(group.getGuid()).catch((e) => {
|
|
280
|
-
console.log("Error: fetching group", e);
|
|
281
|
-
onError && onError(e);
|
|
282
|
-
});
|
|
283
|
-
group.setScope(fetchedGroup["scope"]);
|
|
284
|
-
}
|
|
285
|
-
messageRequest.current
|
|
286
|
-
?.fetchPrevious()
|
|
287
|
-
.then((msgs) => {
|
|
288
|
-
if (messageRequest.current.getLimit() > msgs.length) {
|
|
289
|
-
reachedFirstMessage.current = true;
|
|
290
|
-
}
|
|
291
|
-
let previousMessagesFetched = [...msgs].reverse(); // Reverse for UI use
|
|
292
|
-
if (messagesList.length === 0 && msgs?.length > 0) {
|
|
293
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, {
|
|
294
|
-
message: previousMessagesFetched[0],
|
|
295
|
-
user: user,
|
|
296
|
-
group: group,
|
|
297
|
-
theme: mergedTheme,
|
|
298
|
-
parentMessageId: parentMessageId,
|
|
299
|
-
});
|
|
300
|
-
if (conversationId.current == null)
|
|
301
|
-
conversationId.current = previousMessagesFetched[0].getConversationId();
|
|
302
|
-
}
|
|
303
|
-
else if (messagesList.length === 0 && !props?.parentMessageId) {
|
|
304
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, {
|
|
305
|
-
message: previousMessagesFetched[0],
|
|
306
|
-
user: user,
|
|
307
|
-
group: group,
|
|
308
|
-
theme: mergedTheme,
|
|
309
|
-
parentMessageId: parentMessageId,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
for (let index = 0; index < previousMessagesFetched.length; index++) {
|
|
313
|
-
const message = previousMessagesFetched[index];
|
|
314
|
-
if (message &&
|
|
315
|
-
!message.hasOwnProperty("readAt") &&
|
|
316
|
-
loggedInUser.current?.getUid() != message?.getSender()?.getUid()) {
|
|
317
|
-
CometChat.markAsRead(message);
|
|
318
|
-
if (index == 0)
|
|
319
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, {
|
|
320
|
-
message,
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
else
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
previousMessagesFetched = previousMessagesFetched.map((item, index) => {
|
|
327
|
-
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
328
|
-
return item;
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
return item;
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
if (previousMessagesFetched.length > 0) {
|
|
335
|
-
messagesContentListRef.current = [
|
|
336
|
-
...messagesContentListRef.current,
|
|
337
|
-
...previousMessagesFetched,
|
|
338
|
-
];
|
|
339
|
-
setMessagesList((prev) => [...prev, ...previousMessagesFetched]);
|
|
340
|
-
}
|
|
341
|
-
if (messagesContentListRef.current.length == 0) {
|
|
342
|
-
onEmpty && onEmpty();
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
346
|
-
setLoadingMessages(false);
|
|
347
|
-
loadingMessagesRef.current = false;
|
|
348
|
-
}
|
|
349
|
-
setListState("");
|
|
350
|
-
})
|
|
351
|
-
.catch((e) => {
|
|
352
|
-
if (messagesContentListRef.current.length == 0)
|
|
353
|
-
setListState("error");
|
|
354
|
-
if (e?.code === "REQUEST_IN_PROGRESS")
|
|
355
|
-
return;
|
|
356
|
-
else {
|
|
357
|
-
setLoadingMessages(false);
|
|
358
|
-
loadingMessagesRef.current = false;
|
|
359
|
-
}
|
|
360
|
-
onError && onError(e);
|
|
361
|
-
});
|
|
362
|
-
};
|
|
363
|
-
const getUpdatedPreviousMessages = () => {
|
|
364
|
-
// For agent chats (non-thread), don't fetch updated previous messages
|
|
365
|
-
if (isAgenticUser() && !parentMessageId) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
let messagesRequest = new CometChat.MessagesRequestBuilder().setLimit(50);
|
|
369
|
-
if (user)
|
|
370
|
-
messagesRequest = messagesRequest.setUID(user.getUid());
|
|
371
|
-
if (group)
|
|
372
|
-
messagesRequest = messagesRequest.setGUID(group.getGuid());
|
|
373
|
-
messagesRequest.setTypes([MessageCategoryConstants.message]);
|
|
374
|
-
messagesRequest.setCategories([MessageCategoryConstants.action]);
|
|
375
|
-
messagesRequest.setMessageId(lastID.current);
|
|
376
|
-
messagesRequest
|
|
377
|
-
.build()
|
|
378
|
-
.fetchNext()
|
|
379
|
-
.then((updatedMessages) => {
|
|
380
|
-
let tmpList = [...messagesContentListRef.current];
|
|
381
|
-
for (let i = 0; i < updatedMessages.length; i++) {
|
|
382
|
-
let condition = (msg) => msg.getId() == updatedMessages[i]?.actionOn.getId();
|
|
383
|
-
let msgIndex = messagesContentListRef.current.findIndex(condition);
|
|
384
|
-
if (msgIndex > -1) {
|
|
385
|
-
tmpList[msgIndex] = updatedMessages[i]?.actionOn;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
// console.log("UPDATES LIST LENGTH", tmpList.length)
|
|
389
|
-
// setMessagesList(tmpList);
|
|
390
|
-
getNewMessages(tmpList);
|
|
391
|
-
})
|
|
392
|
-
.catch((e) => console.log("error while fetching updated msgs", e));
|
|
393
|
-
};
|
|
394
|
-
const getNewMessages = (updatedList) => {
|
|
395
|
-
let newRequestBuilder = msgRequestBuilder.current;
|
|
396
|
-
newRequestBuilder?.setMessageId(lastID.current);
|
|
397
|
-
newRequestBuilder
|
|
398
|
-
?.build()
|
|
399
|
-
.fetchNext()
|
|
400
|
-
.then((newMessages) => {
|
|
401
|
-
let cleanUpdatedList = [...updatedList];
|
|
402
|
-
let finalOutput = CommonUtils.mergeArrays(newMessages.reverse(), cleanUpdatedList, [
|
|
403
|
-
"id",
|
|
404
|
-
"muid",
|
|
405
|
-
]);
|
|
406
|
-
let tmpList = [...finalOutput];
|
|
407
|
-
tmpList = tmpList.map((item, index) => {
|
|
408
|
-
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
409
|
-
return item;
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
return item;
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
if (isAtBottom() || isNearBottom()) {
|
|
416
|
-
messagesContentListRef.current = tmpList;
|
|
417
|
-
setMessagesList(tmpList);
|
|
418
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
419
|
-
for (let i = 0; i < newMessages.length; i++) {
|
|
420
|
-
if (newMessages[i].getSender().getUid() !== loggedInUser.current.getUid()) {
|
|
421
|
-
bottomHandler(newMessages[i], true, true);
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
/*****
|
|
428
|
-
* If scroll is not at bottom or near bottom then add the messages to temporary list
|
|
429
|
-
* lastID in onDisconnected will always be messagesList[0].getId() (state)
|
|
430
|
-
* Example:
|
|
431
|
-
* - unreadCount is already 2 (meaning not near bottom or at bottom)
|
|
432
|
-
* - App is now in the background
|
|
433
|
-
* - Someone sends 2 messages to the user
|
|
434
|
-
* - User now puts the app in foreground and onConnected handler fetches the messages from lastID onwards
|
|
435
|
-
* - unreadCount will now be 4
|
|
436
|
-
* ****/
|
|
437
|
-
const currentUnreadCount = tmpList.length - messagesContentListRef.current.length;
|
|
438
|
-
temporaryMessageListRef.current = [];
|
|
439
|
-
const currentUnreadMessages = tmpList.slice(0, currentUnreadCount);
|
|
440
|
-
temporaryMessageListRef.current = [...currentUnreadMessages];
|
|
441
|
-
setUnreadCount(temporaryMessageListRef.current.length);
|
|
442
|
-
}
|
|
443
|
-
if (newMessages.length === 30) {
|
|
444
|
-
getNewMessages(tmpList);
|
|
445
|
-
}
|
|
446
|
-
newRequestBuilder?.setMessageId(undefined);
|
|
447
|
-
})
|
|
448
|
-
.catch((e) => console.log("error while fetching updated msgs", e));
|
|
449
|
-
};
|
|
450
|
-
const templatesMap = useMemo(() => {
|
|
451
|
-
const isAgenticUserCheck = isAgenticUser();
|
|
452
|
-
const options = {
|
|
453
|
-
textFormatters: textFormatters || [],
|
|
454
|
-
hideReplyInThreadOption: isAgenticUserCheck || hideReplyInThreadOption,
|
|
455
|
-
hideShareMessageOption: isAgenticUserCheck || hideShareMessageOption,
|
|
456
|
-
hideEditMessageOption: isAgenticUserCheck || hideEditMessageOption,
|
|
457
|
-
hideTranslateMessageOption: isAgenticUserCheck || hideTranslateMessageOption,
|
|
458
|
-
hideDeleteMessageOption: isAgenticUserCheck || hideDeleteMessageOption,
|
|
459
|
-
hideReactionOption: isAgenticUserCheck || hideReactionOption,
|
|
460
|
-
hideMessagePrivatelyOption: isAgenticUserCheck || hideMessagePrivatelyOption,
|
|
461
|
-
hideCopyMessageOption: isAgenticUserCheck || hideCopyMessageOption,
|
|
462
|
-
hideMessageInfoOption: isAgenticUserCheck || hideMessageInfoOption,
|
|
463
|
-
hideGroupActionMessages,
|
|
464
|
-
};
|
|
465
|
-
let _formatters = textFormatters || [];
|
|
466
|
-
let tempTemplates = templates && templates.length
|
|
467
|
-
? templates
|
|
468
|
-
: [
|
|
469
|
-
...ChatConfigurator.dataSource.getAllMessageTemplates(mergedTheme, options),
|
|
470
|
-
...addTemplates,
|
|
471
|
-
];
|
|
472
|
-
//for internal use only
|
|
473
|
-
const streamTemplate = internalMessageDataSource.getStreamMessageTemplate(mergedTheme, options);
|
|
474
|
-
if (isAgenticUserCheck) {
|
|
475
|
-
tempTemplates.push(streamTemplate);
|
|
476
|
-
}
|
|
477
|
-
let templatesMapTemp = new Map();
|
|
478
|
-
tempTemplates.forEach((template) => {
|
|
479
|
-
if (hideGroupActionMessages && template.type === MessageTypeConstants.groupMember)
|
|
480
|
-
return;
|
|
481
|
-
if (templatesMapTemp.get(`${template.category}_${template.type}`))
|
|
482
|
-
return;
|
|
483
|
-
templatesMapTemp.set(`${template.category}_${template.type}`, template);
|
|
484
|
-
});
|
|
485
|
-
return templatesMapTemp;
|
|
486
|
-
}, [
|
|
487
|
-
mergedTheme,
|
|
488
|
-
templates,
|
|
489
|
-
addTemplates,
|
|
490
|
-
isAgenticUser,
|
|
491
|
-
hideReplyInThreadOption,
|
|
492
|
-
hideShareMessageOption,
|
|
493
|
-
hideEditMessageOption,
|
|
494
|
-
hideTranslateMessageOption,
|
|
495
|
-
hideDeleteMessageOption,
|
|
496
|
-
hideReactionOption,
|
|
497
|
-
hideMessagePrivatelyOption,
|
|
498
|
-
hideCopyMessageOption,
|
|
499
|
-
hideMessageInfoOption,
|
|
500
|
-
hideGroupActionMessages,
|
|
501
|
-
]);
|
|
502
|
-
const getPlainString = (underlyingText, messageObject) => {
|
|
503
|
-
let _plainString = underlyingText;
|
|
504
|
-
let regexes = [];
|
|
505
|
-
let users = {};
|
|
506
|
-
let edits = [];
|
|
507
|
-
let allFormatters = [...(textFormatters || [])];
|
|
508
|
-
let mentionsTextFormatter = ChatConfigurator.getDataSource().getMentionsFormatter(loggedInUser.current);
|
|
509
|
-
allFormatters.push(mentionsTextFormatter);
|
|
510
|
-
allFormatters.forEach((formatter, key) => {
|
|
511
|
-
regexes.push(formatter.getRegexPattern());
|
|
512
|
-
let suggestionUsers = formatter.getSuggestionItems();
|
|
513
|
-
if (formatter instanceof CometChatMentionsFormatter) {
|
|
514
|
-
let mentionUsers = (messageObject?.getMentionedUsers && messageObject?.getMentionedUsers()).map((item) => new SuggestionItem({
|
|
515
|
-
id: item.getUid(),
|
|
516
|
-
name: item.getName(),
|
|
517
|
-
promptText: "@" + item.getName(),
|
|
518
|
-
trackingCharacter: "@",
|
|
519
|
-
underlyingText: `<@uid:${item.getUid()}>`,
|
|
520
|
-
hideLeadingIcon: false,
|
|
521
|
-
})) || [];
|
|
522
|
-
suggestionUsers = [...suggestionUsers, ...mentionUsers];
|
|
523
|
-
}
|
|
524
|
-
suggestionUsers?.length > 0 &&
|
|
525
|
-
suggestionUsers.forEach((item) => (users[item.underlyingText] = item));
|
|
526
|
-
});
|
|
527
|
-
regexes.forEach((regex) => {
|
|
528
|
-
let match;
|
|
529
|
-
while ((match = regex.exec(_plainString)) !== null) {
|
|
530
|
-
const user = users[match[0]];
|
|
531
|
-
if (user) {
|
|
532
|
-
edits.push({
|
|
533
|
-
startIndex: match.index,
|
|
534
|
-
endIndex: regex.lastIndex,
|
|
535
|
-
replacement: user.promptText,
|
|
536
|
-
user,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
// Sort edits by startIndex to apply them in order
|
|
542
|
-
edits.sort((a, b) => a.startIndex - b.startIndex);
|
|
543
|
-
// Get an array of the entries in the map using the spread operator
|
|
544
|
-
const entries = [...edits].reverse();
|
|
545
|
-
// Iterate over the array in reverse order
|
|
546
|
-
entries.forEach(({ endIndex, replacement, startIndex, user }) => {
|
|
547
|
-
let pre = _plainString.substring(0, startIndex);
|
|
548
|
-
let post = _plainString.substring(endIndex);
|
|
549
|
-
_plainString = pre + replacement + post;
|
|
550
|
-
});
|
|
551
|
-
return _plainString;
|
|
552
|
-
};
|
|
553
|
-
const playNotificationSound = useCallback((message) => {
|
|
554
|
-
if (disableSoundForMessages)
|
|
555
|
-
return;
|
|
556
|
-
if (message?.category === MessageCategoryConstants.message) {
|
|
557
|
-
if (customSoundForMessages) {
|
|
558
|
-
CometChatSoundManager.play(loggedInUser.current?.getUid() == message["sender"]["uid"]
|
|
559
|
-
? "outgoingMessage"
|
|
560
|
-
: "incomingMessage", customSoundForMessages);
|
|
561
|
-
}
|
|
562
|
-
else {
|
|
563
|
-
CometChatSoundManager.play(
|
|
564
|
-
// "incomingMessage"
|
|
565
|
-
loggedInUser.current?.getUid() == message["sender"]["uid"]
|
|
566
|
-
? "outgoingMessage"
|
|
567
|
-
: "incomingMessage");
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}, []);
|
|
571
|
-
const markMessageAsRead = (message) => {
|
|
572
|
-
if (!message?.readAt) {
|
|
573
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
574
|
-
CometChat.markAsRead(message).catch((error) => {
|
|
575
|
-
console.log("Error", error);
|
|
576
|
-
onError && onError(error);
|
|
577
|
-
// errorHandler(error);
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
function checkMessageInSameConversation(message) {
|
|
582
|
-
return ((message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
583
|
-
user &&
|
|
584
|
-
user?.getUid() == message.getReceiver()?.["uid"]) ||
|
|
585
|
-
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
586
|
-
message.getReceiverId() &&
|
|
587
|
-
group &&
|
|
588
|
-
group?.getGuid() == message.getReceiverId()) ||
|
|
589
|
-
false);
|
|
590
|
-
}
|
|
591
|
-
function messageToSameConversation(message) {
|
|
592
|
-
return ((message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
593
|
-
user &&
|
|
594
|
-
user?.getUid() == message.getReceiverId()) ||
|
|
595
|
-
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
596
|
-
message.getReceiverId() &&
|
|
597
|
-
group &&
|
|
598
|
-
group?.getGuid() == message.getReceiverId()) ||
|
|
599
|
-
false);
|
|
600
|
-
}
|
|
601
|
-
useEffect(() => {
|
|
602
|
-
if (isAgenticUser() && parentMessageId && !conversationId.current) {
|
|
603
|
-
conversationId.current = parentMessageId;
|
|
604
|
-
}
|
|
605
|
-
}, [parentMessageId, isAgenticUser]);
|
|
606
|
-
function checkSameConversation(message) {
|
|
607
|
-
if (message.isStreamMessage) {
|
|
608
|
-
if (isAgenticUser()) {
|
|
609
|
-
return message.targetMessageId === agenticParentMessageIdRef.current;
|
|
610
|
-
}
|
|
611
|
-
return true;
|
|
612
|
-
}
|
|
613
|
-
if (isAgenticUser()) {
|
|
614
|
-
if (parentMessageId && agenticParentMessageIdRef.current) {
|
|
615
|
-
return (message.getParentMessageId &&
|
|
616
|
-
String(message.getParentMessageId()) === String(agenticParentMessageIdRef.current));
|
|
617
|
-
}
|
|
618
|
-
return false;
|
|
619
|
-
}
|
|
620
|
-
return (message.getConversationId() == conversationId.current ||
|
|
621
|
-
(message.getSender()?.getUid() === user?.getUid() &&
|
|
622
|
-
message.getReceiverType() == CometChatUiKitConstants.ReceiverTypeConstants.user) ||
|
|
623
|
-
checkMessageInSameConversation(message) ||
|
|
624
|
-
messageToSameConversation(message));
|
|
625
|
-
}
|
|
626
|
-
function isNearBottom() {
|
|
627
|
-
const { layoutHeight, scrollViewHeight, y } = currentScrollPosition.current;
|
|
628
|
-
// In an inverted list, scrolling up moves the user towards the top of the scrollable area,
|
|
629
|
-
// which is actually the "bottom" of the visible chat (since it's inverted).
|
|
630
|
-
let scrollPos = y; // 'y' is how far the user has scrolled from the top of the full content.
|
|
631
|
-
// Calculate how far the user is from the top of the scrollable content (which is visually
|
|
632
|
-
// the "bottom" in an inverted list) as a percentage of the total height.
|
|
633
|
-
if (!layoutHeight) {
|
|
634
|
-
return true;
|
|
635
|
-
}
|
|
636
|
-
let scrollPosFromTopInPercentage = (scrollPos / layoutHeight) * 100;
|
|
637
|
-
// If the user has scrolled to within 30% from the top (which is the "bottom" in this case),
|
|
638
|
-
// we consider them to be near the bottom of the list (since it's inverted).
|
|
639
|
-
if (scrollPosFromTopInPercentage <= 30) {
|
|
640
|
-
return true;
|
|
641
|
-
}
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
const newMessage = (newMessage, isReceived = true) => {
|
|
645
|
-
let baseMessage = newMessage;
|
|
646
|
-
if (baseMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
647
|
-
//todo show unsupported bubble
|
|
648
|
-
}
|
|
649
|
-
if (isAgenticUser()) {
|
|
650
|
-
if (String(baseMessage.getParentMessageId()) === String(parentMessageId) ||
|
|
651
|
-
String(baseMessage.getId()) === String(parentMessageId)) {
|
|
652
|
-
CometChat.markAsDelivered(newMessage);
|
|
653
|
-
bottomHandler(newMessage, isReceived);
|
|
654
|
-
}
|
|
655
|
-
else {
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
else {
|
|
660
|
-
if (checkSameConversation(baseMessage) ||
|
|
661
|
-
checkMessageInSameConversation(baseMessage) ||
|
|
662
|
-
messageToSameConversation(baseMessage)) {
|
|
663
|
-
CometChat.markAsDelivered(newMessage);
|
|
664
|
-
if (!parentMessageId && newMessage.getParentMessageId()) {
|
|
665
|
-
const parentId = String(newMessage.getParentMessageId ? newMessage.getParentMessageId() : newMessage.parentMessageId);
|
|
666
|
-
let index = messagesContentListRef.current.findIndex((msg) => String(msg.getId ? msg.getId() : msg.id) === parentId);
|
|
667
|
-
if (index !== -1 && messagesContentListRef.current[index]) {
|
|
668
|
-
let oldMsg = CommonUtils.clone(messagesContentListRef.current[index]);
|
|
669
|
-
oldMsg.setReplyCount(oldMsg.getReplyCount() ? oldMsg.getReplyCount() + 1 : 1);
|
|
670
|
-
let tmpList = [...messagesContentListRef.current];
|
|
671
|
-
tmpList[index] = oldMsg;
|
|
672
|
-
messagesContentListRef.current = tmpList;
|
|
673
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
674
|
-
setMessagesList(tmpList);
|
|
675
|
-
}
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
bottomHandler(newMessage, isReceived);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
playNotificationSound(newMessage);
|
|
682
|
-
};
|
|
683
|
-
const isAtBottom = () => {
|
|
684
|
-
//0 or null
|
|
685
|
-
if (!currentScrollPosition.current.y) {
|
|
686
|
-
return true;
|
|
687
|
-
}
|
|
688
|
-
return false;
|
|
689
|
-
};
|
|
690
|
-
const bottomHandler = (newMessage, isReceived = false, skipAddToList = false) => {
|
|
691
|
-
if (newMessage?.isStreamMessage) {
|
|
692
|
-
if (!skipAddToList) {
|
|
693
|
-
addToMessageList(newMessage);
|
|
694
|
-
}
|
|
695
|
-
scrollToBottom();
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
if ((newMessage.getSender()?.getUid() || newMessage?.["sender"]?.["uid"]) ==
|
|
699
|
-
loggedInUser.current?.["uid"]) {
|
|
700
|
-
if (!skipAddToList) {
|
|
701
|
-
addToMessageList(newMessage);
|
|
702
|
-
}
|
|
703
|
-
scrollToBottom();
|
|
704
|
-
return;
|
|
705
|
-
}
|
|
706
|
-
if (!isReceived) {
|
|
707
|
-
return;
|
|
708
|
-
}
|
|
709
|
-
if ((!parentMessageId && newMessage.getParentMessageId()) ||
|
|
710
|
-
(parentMessageId && !newMessage.getParentMessageId()) ||
|
|
711
|
-
(parentMessageId &&
|
|
712
|
-
newMessage.getParentMessageId() &&
|
|
713
|
-
parentMessageId != newMessage.getParentMessageId())) {
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
if (isAtBottom() || isNearBottom() || scrollToBottomOnNewMessages) {
|
|
717
|
-
if (!skipAddToList) {
|
|
718
|
-
addToMessageList(newMessage);
|
|
719
|
-
}
|
|
720
|
-
scrollToBottom();
|
|
721
|
-
markMessageAsRead(newMessage);
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
temporaryMessageListRef.current = [newMessage, ...temporaryMessageListRef.current];
|
|
725
|
-
setUnreadCount(unreadCount + 1);
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
const addToMessageList = (newMessage) => {
|
|
729
|
-
if (isAgenticUser() && !conversationId.current) {
|
|
730
|
-
if (newMessage.getConversationId()) {
|
|
731
|
-
conversationId.current = newMessage.getConversationId();
|
|
732
|
-
}
|
|
733
|
-
else if (!parentMessageId) {
|
|
734
|
-
const msgId = newMessage.getId();
|
|
735
|
-
if (msgId) {
|
|
736
|
-
conversationId.current = `${loggedInUser.current?.getUid()}_${user?.getUid()}_${msgId}`;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
else if (!conversationId.current && newMessage.getConversationId()) {
|
|
741
|
-
conversationId.current = newMessage.getConversationId();
|
|
742
|
-
}
|
|
743
|
-
const isStreamMessage = newMessage.isStreamMessage;
|
|
744
|
-
const targetMessageId = newMessage.targetMessageId;
|
|
745
|
-
if (isStreamMessage && targetMessageId) {
|
|
746
|
-
const targetId = String(targetMessageId);
|
|
747
|
-
let userMsgIdx = messagesContentListRef.current.findIndex((msg) => String(msg.getId()) === targetId);
|
|
748
|
-
let updatedList;
|
|
749
|
-
if (userMsgIdx !== -1) {
|
|
750
|
-
updatedList = [...messagesContentListRef.current].filter((msg, idx) => !(idx === userMsgIdx - 1 && msg.isStreamMessage && msg.targetMessageId === targetId));
|
|
751
|
-
updatedList.splice(userMsgIdx, 0, newMessage);
|
|
752
|
-
messagesContentListRef.current = updatedList;
|
|
753
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
754
|
-
setMessagesList(updatedList);
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
messagesContentListRef.current = [newMessage, ...messagesContentListRef.current];
|
|
759
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
760
|
-
setMessagesList((prev) => [newMessage, ...prev]);
|
|
761
|
-
};
|
|
762
|
-
const markParentMessageAsRead = (message) => {
|
|
763
|
-
let condition;
|
|
764
|
-
condition = (msg) => msg.getId() == message?.["parentMessageId"];
|
|
765
|
-
let msgIndex = messagesList.findIndex(condition);
|
|
766
|
-
if (msgIndex > -1) {
|
|
767
|
-
let tmpList = [...messagesList];
|
|
768
|
-
if (message.getCategory() === MessageCategoryConstants.interactive) {
|
|
769
|
-
//todo show unsupported bubble
|
|
770
|
-
}
|
|
771
|
-
tmpList[msgIndex]?.setUnreadReplyCount(0);
|
|
772
|
-
messagesContentListRef.current = tmpList;
|
|
773
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
774
|
-
setMessagesList(tmpList);
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
const messageEdited = (editedMessage, withMuid = false) => {
|
|
778
|
-
let condition;
|
|
779
|
-
if (withMuid) {
|
|
780
|
-
condition = (msg) => msg["muid"] == editedMessage["muid"];
|
|
781
|
-
}
|
|
782
|
-
else
|
|
783
|
-
condition = (msg) => msg.getId() == editedMessage.getId();
|
|
784
|
-
let msgIndex = messagesContentListRef.current.findIndex(condition);
|
|
785
|
-
if (msgIndex > -1) {
|
|
786
|
-
let tmpList = [...messagesContentListRef.current];
|
|
787
|
-
if (editedMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
788
|
-
//todo show unsupported bubble
|
|
789
|
-
}
|
|
790
|
-
tmpList[msgIndex] = CommonUtils.clone(editedMessage);
|
|
791
|
-
messagesContentListRef.current = tmpList;
|
|
792
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
793
|
-
setMessagesList(tmpList);
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
const removeMessage = (message) => {
|
|
797
|
-
let msgIndex = messagesList.findIndex((msg) => msg.getId() == message.getId());
|
|
798
|
-
if (msgIndex == -1)
|
|
799
|
-
return;
|
|
800
|
-
let tmpList = [...messagesList];
|
|
801
|
-
tmpList.splice(msgIndex, 1);
|
|
802
|
-
messagesContentListRef.current = tmpList;
|
|
803
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
804
|
-
setMessagesList(tmpList);
|
|
805
|
-
};
|
|
806
|
-
const deleteMessage = (message) => {
|
|
807
|
-
CometChat.deleteMessage(message.getId().toString())
|
|
808
|
-
.then((res) => {
|
|
809
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDeleted, {
|
|
810
|
-
message: res,
|
|
811
|
-
});
|
|
812
|
-
setShowMessageOptions([]);
|
|
813
|
-
setShowDeleteModal(false);
|
|
814
|
-
deleteItem.current = undefined;
|
|
815
|
-
})
|
|
816
|
-
.catch((rej) => {
|
|
817
|
-
deleteItem.current = undefined;
|
|
818
|
-
setShowDeleteModal(false);
|
|
819
|
-
console.log(rej);
|
|
820
|
-
onError && onError(rej);
|
|
821
|
-
});
|
|
822
|
-
};
|
|
823
|
-
const createActionMessage = () => { };
|
|
824
|
-
const updateMessageReceipt = (receipt) => {
|
|
825
|
-
if (receipt?.getReceiverType() === ReceiverTypeConstants.group &&
|
|
826
|
-
![
|
|
827
|
-
receipt.RECEIPT_TYPE.DELIVERED_TO_ALL_RECEIPT,
|
|
828
|
-
receipt.RECEIPT_TYPE.READ_BY_ALL_RECEIPT,
|
|
829
|
-
].includes(receipt?.getReceiptType())) {
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
let index = messagesContentListRef.current.findIndex((msg, index) => msg["id"] == receipt["messageId"] || msg["messageId"] == receipt["messageId"]);
|
|
833
|
-
if (index == -1)
|
|
834
|
-
return;
|
|
835
|
-
let tmpList = [...messagesContentListRef.current];
|
|
836
|
-
for (let i = index; i < messagesContentListRef.current.length; i++) {
|
|
837
|
-
if (tmpList[i]?.getReadAt && tmpList[i]?.getReadAt())
|
|
838
|
-
break;
|
|
839
|
-
let tmpMsg = tmpList[i];
|
|
840
|
-
if (!Number.isNaN(Number(tmpMsg.getId()))) {
|
|
841
|
-
if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
|
|
842
|
-
//todo show unsupported bubble
|
|
843
|
-
}
|
|
844
|
-
if (receipt.getDeliveredAt()) {
|
|
845
|
-
tmpMsg.setDeliveredAt(receipt.getDeliveredAt());
|
|
846
|
-
}
|
|
847
|
-
if (receipt.getReadAt()) {
|
|
848
|
-
tmpMsg.setReadAt(receipt.getReadAt());
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
tmpList[i] = CommonUtils.clone(tmpMsg);
|
|
852
|
-
}
|
|
853
|
-
messagesContentListRef.current = tmpList;
|
|
854
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
855
|
-
setMessagesList(tmpList);
|
|
856
|
-
};
|
|
857
|
-
const handlePannel = (item) => {
|
|
858
|
-
if (item.alignment === ViewAlignment.messageListBottom &&
|
|
859
|
-
user &&
|
|
860
|
-
group &&
|
|
861
|
-
CommonUtils.checkIdBelongsToThisComponent(item.id, user, group, parentMessageId || "")) {
|
|
862
|
-
if (item.child)
|
|
863
|
-
setCustomListHeader(() => item.child);
|
|
864
|
-
else
|
|
865
|
-
setCustomListHeader(null);
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
|
-
useEffect(() => {
|
|
869
|
-
CometChatUIEventHandler.addUIListener(uiEventListenerShow, {
|
|
870
|
-
showPanel: (item) => handlePannel(item),
|
|
871
|
-
// ccMentionClick: (item) => {
|
|
872
|
-
// // console.log("item", item)
|
|
873
|
-
// }
|
|
874
|
-
});
|
|
875
|
-
CometChatUIEventHandler.addUIListener(uiEventListenerHide, {
|
|
876
|
-
hidePanel: (item) => handlePannel(item),
|
|
877
|
-
});
|
|
878
|
-
CometChatUIEventHandler.addUIListener(uiEventListener, {
|
|
879
|
-
ccToggleBottomSheet: (item) => {
|
|
880
|
-
bottomSheetRef.current?.togglePanel();
|
|
881
|
-
},
|
|
882
|
-
});
|
|
883
|
-
CometChat.getLoggedinUser()
|
|
884
|
-
.then((u) => {
|
|
885
|
-
loggedInUser.current = u;
|
|
886
|
-
if (isAgenticUser() && !parentMessageId) {
|
|
887
|
-
messageRequest.current = null;
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
messageRequest.current = msgRequestBuilder.current?.build() || null;
|
|
891
|
-
}
|
|
892
|
-
if (!isAgenticUser() || (isAgenticUser() && parentMessageId)) {
|
|
893
|
-
getPreviousMessages();
|
|
894
|
-
}
|
|
895
|
-
})
|
|
896
|
-
.catch((e) => {
|
|
897
|
-
console.log("Error while getting loggedInUser");
|
|
898
|
-
onError && onError(e);
|
|
899
|
-
loggedInUser.current = null;
|
|
900
|
-
});
|
|
901
|
-
return () => {
|
|
902
|
-
CometChatUIEventHandler.removeUIListener(uiEventListenerShow);
|
|
903
|
-
CometChatUIEventHandler.removeUIListener(uiEventListenerHide);
|
|
904
|
-
CometChatUIEventHandler.removeUIListener(uiEventListener);
|
|
905
|
-
onBack && onBack();
|
|
906
|
-
};
|
|
907
|
-
}, []);
|
|
908
|
-
// Callback to add stream message and register queue completion callback
|
|
909
|
-
const createStreamMessage = useCallback((userMessage) => {
|
|
910
|
-
const runId = String(userMessage.getId());
|
|
911
|
-
const streamMessage = new StreamMessage(user?.getUid() || group?.getGuid() || '', user ? CometChat.RECEIVER_TYPE.USER : CometChat.RECEIVER_TYPE.GROUP, CometChatUiKitConstants.streamMessageTypes.run_started, CometChatUiKitConstants.MessageCategoryConstants.stream);
|
|
912
|
-
streamMessage.setId(Number(userMessage.getId()));
|
|
913
|
-
if (user) {
|
|
914
|
-
streamMessage.setSender(user);
|
|
915
|
-
}
|
|
916
|
-
streamMessage.setReceiver(loggedInUser.current);
|
|
917
|
-
streamMessage.setReceiverType(CometChat.RECEIVER_TYPE.USER);
|
|
918
|
-
streamMessage.setSentAt(Math.floor(Date.now() / 1000));
|
|
919
|
-
streamMessage.targetMessageId = runId;
|
|
920
|
-
streamMessage.isStreamMessage = true;
|
|
921
|
-
return streamMessage;
|
|
922
|
-
}, [user, group, addToMessageList, setMessagesList, onLoad]);
|
|
923
|
-
const updateStreamMessageWithActualId = useCallback((actualMessageId, runId) => {
|
|
924
|
-
const updatedList = messagesContentListRef.current.map(msg => {
|
|
925
|
-
if (msg.isStreamMessage === true &&
|
|
926
|
-
msg.targetMessageId === runId) {
|
|
927
|
-
const updatedStreamMessage = { ...msg };
|
|
928
|
-
msg.setId(actualMessageId);
|
|
929
|
-
msg.targetMessageId = String(actualMessageId);
|
|
930
|
-
return msg;
|
|
931
|
-
}
|
|
932
|
-
return msg;
|
|
933
|
-
});
|
|
934
|
-
messagesContentListRef.current = updatedList;
|
|
935
|
-
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
936
|
-
setMessagesList(updatedList);
|
|
937
|
-
}, [onLoad]);
|
|
938
|
-
useEffect(() => {
|
|
939
|
-
if (isAgenticUser()) {
|
|
940
|
-
agenticParentMessageIdRef.current = undefined;
|
|
941
|
-
}
|
|
942
|
-
}, [user?.getUid(), group?.getGuid(), isAgenticUser]);
|
|
943
|
-
useEffect(() => {
|
|
944
|
-
//add listeners
|
|
945
|
-
// AI Assistant listener for agent chats
|
|
946
|
-
if (isAgenticUser() && user && (!parentMessageId || (parentMessageId && isAgenticUser()))) {
|
|
947
|
-
CometChat.addAIAssistantListener(streamListenerId, {
|
|
948
|
-
onAIAssistantEventReceived: (message) => {
|
|
949
|
-
if (message.getConversationId &&
|
|
950
|
-
(!message.getConversationId()?.includes(user.getUid()) ||
|
|
951
|
-
!message.getConversationId()?.includes(loggedInUser.current?.getUid()))) {
|
|
952
|
-
return;
|
|
953
|
-
}
|
|
954
|
-
if (message.getType() === CometChatUiKitConstants.streamMessageTypes.run_started) {
|
|
955
|
-
const lastMessage = messagesContentListRef.current[0];
|
|
956
|
-
updateStreamMessageWithActualId(message.getMessageId(), message.getRunId());
|
|
957
|
-
}
|
|
958
|
-
if (message.getType() === CometChatUiKitConstants.streamMessageTypes.run_finished) {
|
|
959
|
-
const runId = String(message.getRunId?.() || message.getMessageId?.());
|
|
960
|
-
setQueueCompletionCallback(runId, (aiAssistantMessage, aiToolResultMessage, aiToolArgumentMessage) => {
|
|
961
|
-
let replacement = aiAssistantMessage || aiToolResultMessage || aiToolArgumentMessage;
|
|
962
|
-
if (!replacement)
|
|
963
|
-
return;
|
|
964
|
-
const updatedList = messagesContentListRef.current.map(msg => {
|
|
965
|
-
if (msg.isStreamMessage === true && msg.targetMessageId === runId) {
|
|
966
|
-
return replacement;
|
|
967
|
-
}
|
|
968
|
-
return msg;
|
|
969
|
-
});
|
|
970
|
-
messagesContentListRef.current = updatedList;
|
|
971
|
-
setMessagesList(updatedList);
|
|
972
|
-
onLoad && onLoad([...updatedList].reverse());
|
|
973
|
-
});
|
|
974
|
-
checkAndTriggerQueueCompletion(runId);
|
|
975
|
-
}
|
|
976
|
-
handleWebsocketMessage(message);
|
|
977
|
-
},
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
let reactionListeners = {
|
|
981
|
-
onMessageReactionAdded: (reaction) => {
|
|
982
|
-
updateMessageReaction(reaction, true);
|
|
983
|
-
},
|
|
984
|
-
onMessageReactionRemoved: (reaction) => {
|
|
985
|
-
updateMessageReaction(reaction, false);
|
|
986
|
-
},
|
|
987
|
-
};
|
|
988
|
-
CometChat.addGroupListener(groupListenerId, new CometChat.GroupListener({
|
|
989
|
-
onGroupMemberScopeChanged: (message) => {
|
|
990
|
-
newMessage(message);
|
|
991
|
-
},
|
|
992
|
-
onGroupMemberLeft: (message) => {
|
|
993
|
-
newMessage(message);
|
|
994
|
-
},
|
|
995
|
-
onGroupMemberKicked: (message) => {
|
|
996
|
-
newMessage(message);
|
|
997
|
-
},
|
|
998
|
-
onGroupMemberBanned: (message) => {
|
|
999
|
-
newMessage(message);
|
|
1000
|
-
},
|
|
1001
|
-
onGroupMemberUnbanned: (message) => {
|
|
1002
|
-
newMessage(message);
|
|
1003
|
-
},
|
|
1004
|
-
onMemberAddedToGroup: (message) => {
|
|
1005
|
-
newMessage(message);
|
|
1006
|
-
},
|
|
1007
|
-
onGroupMemberJoined: (message) => {
|
|
1008
|
-
newMessage(message);
|
|
1009
|
-
},
|
|
1010
|
-
}));
|
|
1011
|
-
CometChatUIEventHandler.addMessageListener(messageEventListener, {
|
|
1012
|
-
ccMessageSent: ({ message, status }) => {
|
|
1013
|
-
if (status == MessageStatusConstants.inprogress) {
|
|
1014
|
-
newMessage(message, false);
|
|
1015
|
-
}
|
|
1016
|
-
if (status == MessageStatusConstants.success) {
|
|
1017
|
-
messageEdited(message, true);
|
|
1018
|
-
if (isAgenticUser() &&
|
|
1019
|
-
agenticParentMessageIdRef.current === undefined &&
|
|
1020
|
-
messagesList.length !== 0 && message.getType() === MessageTypeConstants.text && message.getCategory() === MessageCategoryConstants.message) {
|
|
1021
|
-
agenticParentMessageIdRef.current = String(message.getId());
|
|
1022
|
-
}
|
|
1023
|
-
if (isAgenticUser() && agenticParentMessageIdRef.current !== undefined) {
|
|
1024
|
-
const streamMessage = createStreamMessage(message);
|
|
1025
|
-
addToMessageList(streamMessage);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
if (status == MessageStatusConstants.error) {
|
|
1029
|
-
messageEdited(message, true);
|
|
1030
|
-
}
|
|
1031
|
-
},
|
|
1032
|
-
ccMessageEdited: ({ message, status }) => {
|
|
1033
|
-
if (status == messageStatus.success) {
|
|
1034
|
-
messageEdited(message, false);
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
ccMessageDeleted: ({ message }) => {
|
|
1038
|
-
messageEdited(message, false);
|
|
1039
|
-
},
|
|
1040
|
-
ccMessageRead: ({ message }) => {
|
|
1041
|
-
if (!parentMessageId && message.parentMessageId) {
|
|
1042
|
-
// markParentMessageAsRead(message); //NOTE: uncomment this when want unread count in thread view
|
|
1043
|
-
}
|
|
1044
|
-
},
|
|
1045
|
-
onTextMessageReceived: (textMessage) => {
|
|
1046
|
-
if (isAgenticUser()) {
|
|
1047
|
-
if (textMessage.getSender?.()?.getRole?.() === '@agentic' ||
|
|
1048
|
-
textMessage.getCategory?.() === MessageCategoryConstants.agentic ||
|
|
1049
|
-
textMessage.getCategory?.() === CometChatUiKitConstants.MessageCategoryConstants.stream) {
|
|
1050
|
-
newMessage(textMessage);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
else {
|
|
1054
|
-
newMessage(textMessage);
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
onMediaMessageReceived: (mediaMessage) => {
|
|
1058
|
-
if (isAgenticUser()) {
|
|
1059
|
-
if (mediaMessage.getSender?.()?.getRole?.() === '@agentic' ||
|
|
1060
|
-
mediaMessage.getCategory?.() === MessageCategoryConstants.agentic ||
|
|
1061
|
-
mediaMessage.getCategory?.() === CometChatUiKitConstants.MessageCategoryConstants.stream) {
|
|
1062
|
-
newMessage(mediaMessage);
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1066
|
-
newMessage(mediaMessage);
|
|
1067
|
-
}
|
|
1068
|
-
},
|
|
1069
|
-
onCustomMessageReceived: (customMessage) => {
|
|
1070
|
-
if (isAgenticUser()) {
|
|
1071
|
-
if (customMessage.getSender?.()?.getRole?.() === '@agentic' ||
|
|
1072
|
-
customMessage.getCategory?.() === MessageCategoryConstants.agentic ||
|
|
1073
|
-
customMessage.getCategory?.() === CometChatUiKitConstants.MessageCategoryConstants.stream) {
|
|
1074
|
-
newMessage(customMessage);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
else {
|
|
1078
|
-
newMessage(customMessage);
|
|
1079
|
-
}
|
|
1080
|
-
},
|
|
1081
|
-
onMessagesDelivered: (messageReceipt) => {
|
|
1082
|
-
updateMessageReceipt(messageReceipt);
|
|
1083
|
-
},
|
|
1084
|
-
onMessagesRead: (messageReceipt) => {
|
|
1085
|
-
updateMessageReceipt(messageReceipt);
|
|
1086
|
-
},
|
|
1087
|
-
onMessageDeleted: (deletedMessage) => {
|
|
1088
|
-
messageEdited(deletedMessage);
|
|
1089
|
-
},
|
|
1090
|
-
onMessageEdited: (editedMessage) => {
|
|
1091
|
-
messageEdited(editedMessage);
|
|
1092
|
-
},
|
|
1093
|
-
onFormMessageReceived: (formMessage) => {
|
|
1094
|
-
newMessage(formMessage);
|
|
1095
|
-
},
|
|
1096
|
-
onCardMessageReceived: (cardMessage) => {
|
|
1097
|
-
newMessage(cardMessage);
|
|
1098
|
-
},
|
|
1099
|
-
onSchedulerMessageReceived: (schedulerMessage) => {
|
|
1100
|
-
newMessage(schedulerMessage);
|
|
1101
|
-
},
|
|
1102
|
-
onCustomInteractiveMessageReceived: (customInteractiveMessage) => {
|
|
1103
|
-
newMessage(customInteractiveMessage);
|
|
1104
|
-
},
|
|
1105
|
-
onInteractionGoalCompleted: (interactionReceipt) => {
|
|
1106
|
-
//todo show unsupported bubble
|
|
1107
|
-
},
|
|
1108
|
-
onAIAssistantMessageReceived: (aiAssistantMessage) => {
|
|
1109
|
-
const runId = aiAssistantMessage.getAssistantMessageData?.()?.getRunId?.() || aiAssistantMessage.getId?.();
|
|
1110
|
-
if (parentMessageId && String(parentMessageId) !== String(aiAssistantMessage.getParentMessageId?.())) {
|
|
1111
|
-
return;
|
|
1112
|
-
}
|
|
1113
|
-
if (runId) {
|
|
1114
|
-
storeAIAssistantMessage(String(runId), aiAssistantMessage);
|
|
1115
|
-
}
|
|
1116
|
-
},
|
|
1117
|
-
...reactionListeners,
|
|
1118
|
-
onMessagesDeliveredToAll: (messageReceipt) => {
|
|
1119
|
-
updateMessageReceipt(messageReceipt);
|
|
1120
|
-
},
|
|
1121
|
-
onMessagesReadByAll: (messageReceipt) => {
|
|
1122
|
-
updateMessageReceipt(messageReceipt);
|
|
1123
|
-
},
|
|
1124
|
-
});
|
|
1125
|
-
CometChatUIEventHandler.addGroupListener(groupEventListener, {
|
|
1126
|
-
ccGroupMemberUnBanned: ({ message }) => {
|
|
1127
|
-
message["action"] = "unbanned";
|
|
1128
|
-
newMessage(message, false);
|
|
1129
|
-
},
|
|
1130
|
-
ccGroupMemberBanned: ({ message }) => {
|
|
1131
|
-
message["action"] = "banned";
|
|
1132
|
-
newMessage(message, false);
|
|
1133
|
-
},
|
|
1134
|
-
ccGroupMemberAdded: ({ message, usersAdded, userAddedIn }) => {
|
|
1135
|
-
usersAdded.forEach((user) => {
|
|
1136
|
-
message["message"] = `${loggedInUser.current?.getName()} added ${user.name}`;
|
|
1137
|
-
message["muid"] = String(getUnixTimestamp());
|
|
1138
|
-
message["sentAt"] = getUnixTimestamp();
|
|
1139
|
-
message["actionOn"] = user;
|
|
1140
|
-
message["action"] = "added";
|
|
1141
|
-
newMessage(message, false);
|
|
1142
|
-
});
|
|
1143
|
-
},
|
|
1144
|
-
ccGroupMemberKicked: ({ message }) => {
|
|
1145
|
-
message["action"] = "kicked";
|
|
1146
|
-
newMessage(message, false);
|
|
1147
|
-
},
|
|
1148
|
-
ccGroupMemberScopeChanged: ({ action, updatedUser, scopeChangedTo, scopeChangedFrom, group, }) => {
|
|
1149
|
-
action["action"] = "scopeChanged";
|
|
1150
|
-
action["newScope"] = scopeChangedTo;
|
|
1151
|
-
action["oldScope"] = scopeChangedFrom;
|
|
1152
|
-
newMessage(action, false);
|
|
1153
|
-
},
|
|
1154
|
-
ccOwnershipChanged: ({ group, message }) => {
|
|
1155
|
-
// newMessage(message, false); removed after discussion.
|
|
1156
|
-
},
|
|
1157
|
-
});
|
|
1158
|
-
CometChat.addCallListener(callListenerId, new CometChat.CallListener({
|
|
1159
|
-
onIncomingCallReceived: (call) => {
|
|
1160
|
-
Platform.OS === "ios" && Keyboard.dismiss();
|
|
1161
|
-
newMessage(call);
|
|
1162
|
-
},
|
|
1163
|
-
onOutgoingCallAccepted: (call) => {
|
|
1164
|
-
newMessage(call);
|
|
1165
|
-
},
|
|
1166
|
-
onOutgoingCallRejected: (call) => {
|
|
1167
|
-
newMessage(call);
|
|
1168
|
-
},
|
|
1169
|
-
onIncomingCallCancelled: (call) => {
|
|
1170
|
-
newMessage(call);
|
|
1171
|
-
},
|
|
1172
|
-
}));
|
|
1173
|
-
CometChatUIEventHandler.addCallListener(callEventListener, {
|
|
1174
|
-
ccCallInitiated: ({ call }) => {
|
|
1175
|
-
if (call["type"] == CallTypeConstants.audio ||
|
|
1176
|
-
call["type"] == CallTypeConstants.video) {
|
|
1177
|
-
newMessage(call);
|
|
1178
|
-
}
|
|
1179
|
-
},
|
|
1180
|
-
ccOutgoingCall: ({ call }) => {
|
|
1181
|
-
if (call["type"] == CallTypeConstants.audio ||
|
|
1182
|
-
call["type"] == CallTypeConstants.video) {
|
|
1183
|
-
newMessage(call);
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
ccCallAccepted: ({ call }) => {
|
|
1187
|
-
if (call["type"] == CallTypeConstants.audio ||
|
|
1188
|
-
call["type"] == CallTypeConstants.video) {
|
|
1189
|
-
newMessage(call);
|
|
1190
|
-
}
|
|
1191
|
-
},
|
|
1192
|
-
ccCallRejected: ({ call }) => {
|
|
1193
|
-
if (call["type"] == CallTypeConstants.audio ||
|
|
1194
|
-
call["type"] == CallTypeConstants.video) {
|
|
1195
|
-
newMessage(call);
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
ccCallEnded: ({ call }) => {
|
|
1199
|
-
if (call["type"] == CallTypeConstants.audio ||
|
|
1200
|
-
call["type"] == CallTypeConstants.video) {
|
|
1201
|
-
newMessage(call);
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
ccShowOngoingCall: (CometChatOngoingComponent) => {
|
|
1205
|
-
//show ongoing call
|
|
1206
|
-
setOngoingCallView(CometChatOngoingComponent?.child);
|
|
1207
|
-
},
|
|
1208
|
-
});
|
|
1209
|
-
CometChat.addConnectionListener(connectionListenerId, new CometChat.ConnectionListener({
|
|
1210
|
-
onConnected: () => {
|
|
1211
|
-
console.log("CONNECTED...");
|
|
1212
|
-
streamOnConnected();
|
|
1213
|
-
if (lastID.current) {
|
|
1214
|
-
getUpdatedPreviousMessages();
|
|
1215
|
-
}
|
|
1216
|
-
},
|
|
1217
|
-
inConnecting: () => { },
|
|
1218
|
-
onDisconnected: () => {
|
|
1219
|
-
console.log("DISCONNECTED...");
|
|
1220
|
-
streamOnDisconnected();
|
|
1221
|
-
if (!messagesList[0].id) {
|
|
1222
|
-
for (let i = 0; i < messagesList.length; i++) {
|
|
1223
|
-
if (messagesList[i].id) {
|
|
1224
|
-
lastID.current = messagesList[i].id;
|
|
1225
|
-
break;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
else {
|
|
1230
|
-
lastID.current = messagesList[0].id;
|
|
1231
|
-
}
|
|
1232
|
-
},
|
|
1233
|
-
}));
|
|
1234
|
-
return () => {
|
|
1235
|
-
// clean up code like removing listeners
|
|
1236
|
-
CometChatUIEventHandler.removeMessageListener(messageEventListener);
|
|
1237
|
-
CometChatUIEventHandler.removeGroupListener(groupEventListener);
|
|
1238
|
-
CometChatUIEventHandler.removeCallListener(callEventListener);
|
|
1239
|
-
CometChat.removeGroupListener(groupListenerId);
|
|
1240
|
-
CometChat.removeCallListener(callListenerId);
|
|
1241
|
-
CometChat.removeConnectionListener(connectionListenerId);
|
|
1242
|
-
if (isAgenticUser()) {
|
|
1243
|
-
CometChat.removeAIAssistantListener(streamListenerId);
|
|
1244
|
-
if (streamSubscriptionRef.current) {
|
|
1245
|
-
streamSubscriptionRef.current.unsubscribe();
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
};
|
|
1249
|
-
}, [unreadCount, user, group, isAgenticUser, messagesList]);
|
|
1250
|
-
useEffect(() => {
|
|
1251
|
-
if (aiAssistantTools) {
|
|
1252
|
-
setAIAssistantTools(aiAssistantTools);
|
|
1253
|
-
}
|
|
1254
|
-
}, [aiAssistantTools]);
|
|
1255
|
-
// Initialize streaming configuration and subscribe to streaming state
|
|
1256
|
-
useEffect(() => {
|
|
1257
|
-
setStreamSpeed(streamingSpeed);
|
|
1258
|
-
return () => streamSubscriptionRef.current?.unsubscribe();
|
|
1259
|
-
}, [streamingSpeed]);
|
|
1260
|
-
useEffect(() => {
|
|
1261
|
-
prevMessagesLength.current =
|
|
1262
|
-
messagesLength.current || messagesContentListRef.current.length;
|
|
1263
|
-
messagesLength.current = messagesContentListRef.current.length;
|
|
1264
|
-
}, [messagesContentListRef.current]);
|
|
1265
|
-
useEffect(() => {
|
|
1266
|
-
if (selectedEmoji) {
|
|
1267
|
-
setShowReactionList(true);
|
|
1268
|
-
}
|
|
1269
|
-
}, [selectedEmoji]);
|
|
1270
|
-
useImperativeHandle(ref, () => {
|
|
1271
|
-
return {
|
|
1272
|
-
addMessage: newMessage,
|
|
1273
|
-
updateMessage: messageEdited,
|
|
1274
|
-
removeMessage,
|
|
1275
|
-
deleteMessage,
|
|
1276
|
-
scrollToBottom,
|
|
1277
|
-
/// todo: not handeled yet
|
|
1278
|
-
createActionMessage,
|
|
1279
|
-
updateMessageReceipt,
|
|
1280
|
-
};
|
|
1281
|
-
});
|
|
1282
|
-
const getMessageById = (messageId) => {
|
|
1283
|
-
const message = messagesList.find((message) => message.getId() === messageId);
|
|
1284
|
-
return message;
|
|
1285
|
-
};
|
|
1286
|
-
function isReactionOfThisList(receipt) {
|
|
1287
|
-
const receiverId = receipt?.getReceiverId();
|
|
1288
|
-
const receiverType = receipt?.getReceiverType();
|
|
1289
|
-
const reactedById = receipt?.getReaction()?.getReactedBy()?.getUid();
|
|
1290
|
-
const parentMessageId = receipt?.getParentMessageId();
|
|
1291
|
-
const listParentMessageId = parentMessageId && String(parentMessageId);
|
|
1292
|
-
if (listParentMessageId) {
|
|
1293
|
-
if (parentMessageId === listParentMessageId) {
|
|
1294
|
-
return true;
|
|
1295
|
-
}
|
|
1296
|
-
else {
|
|
1297
|
-
return false;
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
else {
|
|
1301
|
-
if (receipt.getParentMessageId()) {
|
|
1302
|
-
return false;
|
|
1303
|
-
}
|
|
1304
|
-
if (user) {
|
|
1305
|
-
if (receiverType === ReceiverTypeConstants.user &&
|
|
1306
|
-
(receiverId === user.getUid() || reactedById === user.getUid())) {
|
|
1307
|
-
return true;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
else if (group) {
|
|
1311
|
-
if (receiverType === ReceiverTypeConstants.group && receiverId === group.getGuid()) {
|
|
1312
|
-
return true;
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
return false;
|
|
1317
|
-
}
|
|
1318
|
-
const updateMessageReaction = (message, isAdded) => {
|
|
1319
|
-
let _isReactionOfThisList = isReactionOfThisList(message);
|
|
1320
|
-
if (!_isReactionOfThisList)
|
|
1321
|
-
return;
|
|
1322
|
-
const messageId = message?.getReaction()?.getMessageId();
|
|
1323
|
-
const messageObject = getMessageById(messageId);
|
|
1324
|
-
if (!messageObject)
|
|
1325
|
-
return;
|
|
1326
|
-
let action;
|
|
1327
|
-
if (isAdded) {
|
|
1328
|
-
action = CometChat.REACTION_ACTION.REACTION_ADDED;
|
|
1329
|
-
}
|
|
1330
|
-
else {
|
|
1331
|
-
action = CometChat.REACTION_ACTION.REACTION_REMOVED;
|
|
1332
|
-
}
|
|
1333
|
-
const modifiedMessage = CometChat.CometChatHelper.updateMessageWithReactionInfo(messageObject, message.getReaction(), action);
|
|
1334
|
-
if (modifiedMessage instanceof CometChat.CometChatException) {
|
|
1335
|
-
onError && onError(modifiedMessage);
|
|
1336
|
-
return;
|
|
1337
|
-
}
|
|
1338
|
-
messageEdited(modifiedMessage, false);
|
|
1339
|
-
};
|
|
1340
|
-
const getCurrentBubbleStyle = useCallback((item) => {
|
|
1341
|
-
const type = (() => {
|
|
1342
|
-
if (item.getDeletedAt()) {
|
|
1343
|
-
return MessageTypeConstants.messageDeleted;
|
|
1344
|
-
}
|
|
1345
|
-
if (item.getType() === MessageTypeConstants.text) {
|
|
1346
|
-
let linkData = getExtensionData(item, ExtensionConstants.linkPreview);
|
|
1347
|
-
if (linkData && linkData.links.length != 0) {
|
|
1348
|
-
return ExtensionConstants.linkPreview;
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
return item.getType();
|
|
1352
|
-
})();
|
|
1353
|
-
if (item.getSender().getUid() != loggedInUser.current.getUid()) {
|
|
1354
|
-
return (overridenBubbleStyles.get(type)?.incoming ??
|
|
1355
|
-
mergedTheme.messageListStyles.incomingMessageBubbleStyles);
|
|
1356
|
-
}
|
|
1357
|
-
return (overridenBubbleStyles.get(type)?.outgoing ??
|
|
1358
|
-
mergedTheme.messageListStyles.outgoingMessageBubbleStyles);
|
|
1359
|
-
}, [mergedTheme, overridenBubbleStyles]);
|
|
1360
|
-
// functions returning view
|
|
1361
|
-
const getLeadingView = useCallback((item) => {
|
|
1362
|
-
let _style = getCurrentBubbleStyle(item);
|
|
1363
|
-
if ([MessageCategoryConstants.action, MessageCategoryConstants.call].includes(item.getCategory())) {
|
|
1364
|
-
return undefined;
|
|
1365
|
-
}
|
|
1366
|
-
const isIncomingMessage = item.getSender()?.getUid() !== loggedInUser.current?.getUid();
|
|
1367
|
-
const shouldShowAvatar = avatarVisibility && (alignment === "leftAligned" ||
|
|
1368
|
-
(isIncomingMessage && !user) ||
|
|
1369
|
-
(isAgenticUser() && isIncomingMessage));
|
|
1370
|
-
if (shouldShowAvatar) {
|
|
1371
|
-
return (<CometChatAvatar image={item?.getSender()?.getAvatar && item?.getSender()?.getAvatar()
|
|
1372
|
-
? { uri: item.getSender().getAvatar() }
|
|
1373
|
-
: undefined} name={item?.getSender()?.getName && item?.getSender()?.getName()
|
|
1374
|
-
? item?.getSender()?.getName()
|
|
1375
|
-
: ""} style={_style.avatarStyle}/>);
|
|
1376
|
-
}
|
|
1377
|
-
return undefined;
|
|
1378
|
-
}, []);
|
|
1379
|
-
const getHeaderView = useCallback((item) => {
|
|
1380
|
-
const _style = getCurrentBubbleStyle(item);
|
|
1381
|
-
if ((alignment === "leftAligned" ||
|
|
1382
|
-
(item.getSender()?.getUid() != loggedInUser.current?.getUid() && !user)) &&
|
|
1383
|
-
![MessageCategoryConstants.action, MessageCategoryConstants.call].includes(item.getCategory())) {
|
|
1384
|
-
const senderName = (item.getSender()?.getName() || "").trim();
|
|
1385
|
-
return (<View style={{ flexDirection: "row" }}>
|
|
1386
|
-
{Boolean(senderName) && (<Text style={_style.senderNameTextStyles} numberOfLines={1} ellipsizeMode={"tail"}>
|
|
1387
|
-
{senderName}
|
|
1388
|
-
</Text>)}
|
|
1389
|
-
</View>);
|
|
1390
|
-
}
|
|
1391
|
-
return undefined;
|
|
1392
|
-
}, []);
|
|
1393
|
-
const getStatusInfoView = useCallback((item, bubbleAlignment, currentIndex) => {
|
|
1394
|
-
// Skip action category messages
|
|
1395
|
-
if (item.getCategory() === MessageCategoryConstants.action)
|
|
1396
|
-
return undefined;
|
|
1397
|
-
let isOutgoingMessage = item.getSender()?.getUid() === loggedInUser.current?.getUid();
|
|
1398
|
-
let _style = getCurrentBubbleStyle(item);
|
|
1399
|
-
let messageState;
|
|
1400
|
-
const nextItemIsRead = messagesContentListRef.current[currentIndex - 1] &&
|
|
1401
|
-
messagesContentListRef.current[currentIndex - 1].getReadAt();
|
|
1402
|
-
const nextItemIsDelivered = messagesContentListRef.current[currentIndex - 1] &&
|
|
1403
|
-
messagesContentListRef.current[currentIndex - 1].getDeliveredAt();
|
|
1404
|
-
if (item.getReadAt() || nextItemIsRead)
|
|
1405
|
-
messageState = MessageReceipt.READ;
|
|
1406
|
-
else if (item.getDeliveredAt() || nextItemIsDelivered)
|
|
1407
|
-
messageState = MessageReceipt.DELIVERED;
|
|
1408
|
-
else if (item.getSentAt())
|
|
1409
|
-
messageState = MessageReceipt.SENT;
|
|
1410
|
-
else if (item?.getData()?.metaData?.error)
|
|
1411
|
-
messageState = MessageReceipt.ERROR;
|
|
1412
|
-
else if (isOutgoingMessage)
|
|
1413
|
-
messageState = MessageReceipt.WAIT;
|
|
1414
|
-
else
|
|
1415
|
-
messageState = MessageReceipt.ERROR;
|
|
1416
|
-
// Determine if message has been edited.
|
|
1417
|
-
// This example assumes you have a method (or property) like getEditedAt() that returns a timestamp when edited.
|
|
1418
|
-
const isEdited = item.getEditedAt?.() &&
|
|
1419
|
-
item.getType() === MessageTypeConstants.text;
|
|
1420
|
-
const shouldShowTimestamp = isAgenticUser()
|
|
1421
|
-
? isOutgoingMessage
|
|
1422
|
-
: !hideTimestamp;
|
|
1423
|
-
return (<View>
|
|
1424
|
-
<View style={[
|
|
1425
|
-
{
|
|
1426
|
-
flexDirection: "row",
|
|
1427
|
-
justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start",
|
|
1428
|
-
alignSelf: "flex-end",
|
|
1429
|
-
alignItems: "center",
|
|
1430
|
-
},
|
|
1431
|
-
_style.dateReceiptContainerStyle,
|
|
1432
|
-
]}>
|
|
1433
|
-
{isEdited && (<Text style={[
|
|
1434
|
-
_style.dateStyles.textStyle,
|
|
1435
|
-
{
|
|
1436
|
-
textTransform: "none",
|
|
1437
|
-
},
|
|
1438
|
-
]}>
|
|
1439
|
-
{t("EDITED")}
|
|
1440
|
-
</Text>)}
|
|
1441
|
-
{shouldShowTimestamp && (<CometChatDate timeStamp={!hideTimestamp
|
|
1442
|
-
? (item.getDeletedAt() || item.getSentAt()) * 1000 ||
|
|
1443
|
-
getSentAtTimestamp(item)
|
|
1444
|
-
: undefined} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)} style={_style.dateStyles}/>)}
|
|
1445
|
-
{receiptsVisibility && alignment !== "leftAligned" && isOutgoingMessage ? (<View style={{ marginLeft: 2, alignItems: "center", justifyContent: "center" }}>
|
|
1446
|
-
<CometChatReceipt receipt={messageState} style={{
|
|
1447
|
-
deliveredIcon: _style.receiptStyles.deliveredIcon,
|
|
1448
|
-
readIcon: _style.receiptStyles.readIcon,
|
|
1449
|
-
sentIcon: _style.receiptStyles.sentIcon,
|
|
1450
|
-
waitIcon: _style.receiptStyles.waitIcon,
|
|
1451
|
-
errorIcon: _style.receiptStyles.errorIcon,
|
|
1452
|
-
sentIconStyle: _style.receiptStyles.sentIconStyle,
|
|
1453
|
-
readIconStyle: _style.receiptStyles.readIconStyle,
|
|
1454
|
-
waitIconStyle: _style.receiptStyles.waitIconStyle,
|
|
1455
|
-
errorIconStyle: _style.receiptStyles.errorIconStyle,
|
|
1456
|
-
deliveredIconStyle: _style.receiptStyles.deliveredIconStyle,
|
|
1457
|
-
}}/>
|
|
1458
|
-
</View>) : null}
|
|
1459
|
-
</View>
|
|
1460
|
-
</View>);
|
|
1461
|
-
}, [mergedTheme, isAgenticUser, hideTimestamp]);
|
|
1462
|
-
const onReactionPress = useCallback((reaction, messageObject) => {
|
|
1463
|
-
if (reaction.getReaction() == "All") {
|
|
1464
|
-
setSelectedMessage(messageObject);
|
|
1465
|
-
setSelectedEmoji(reaction.getReaction());
|
|
1466
|
-
return;
|
|
1467
|
-
}
|
|
1468
|
-
if (onReactionPressFromProp) {
|
|
1469
|
-
onReactionPressFromProp(reaction, messageObject);
|
|
1470
|
-
return;
|
|
1471
|
-
}
|
|
1472
|
-
reactToMessage(reaction.getReaction(), messageObject);
|
|
1473
|
-
}, [onReactionPressFromProp]);
|
|
1474
|
-
const onReactionLongPress = useCallback((reaction, messageObject) => {
|
|
1475
|
-
if (onReactionLongPressFromProp && reaction.getReaction() !== "All") {
|
|
1476
|
-
onReactionLongPressFromProp(reaction, messageObject);
|
|
1477
|
-
return;
|
|
1478
|
-
}
|
|
1479
|
-
setSelectedMessage(messageObject);
|
|
1480
|
-
setSelectedEmoji(reaction.getReaction());
|
|
1481
|
-
}, [onReactionLongPressFromProp]);
|
|
1482
|
-
const getFooterView = useCallback((messageObject, alignment) => {
|
|
1483
|
-
let hasReaction = messageObject?.getReactions &&
|
|
1484
|
-
messageObject?.getReactions() &&
|
|
1485
|
-
messageObject?.getReactions().length > 0;
|
|
1486
|
-
return hasReaction
|
|
1487
|
-
? (params) => {
|
|
1488
|
-
return (<CometChatReactions messageObject={messageObject} onReactionPress={onReactionPress} onReactionLongPress={onReactionLongPress} alignment={alignment} style={getCurrentBubbleStyle(messageObject).reactionStyles} maxContentWidth={params?.maxContentWidth}/>);
|
|
1489
|
-
}
|
|
1490
|
-
: null;
|
|
1491
|
-
}, [mergedTheme]);
|
|
1492
|
-
const getAlignment = useCallback((item) => {
|
|
1493
|
-
if (item && item.getCategory() == MessageCategoryConstants.action)
|
|
1494
|
-
return "center";
|
|
1495
|
-
if (alignment == "standard" &&
|
|
1496
|
-
(item.getSender()?.getUid() || item?.["sender"]?.["uid"]) ==
|
|
1497
|
-
loggedInUser.current?.getUid())
|
|
1498
|
-
return "right";
|
|
1499
|
-
return "left";
|
|
1500
|
-
}, []);
|
|
1501
|
-
const openMessageInfo = (message) => {
|
|
1502
|
-
infoObject.current = message;
|
|
1503
|
-
setMessageInfo(true);
|
|
1504
|
-
setShowMessageOptions([]);
|
|
1505
|
-
};
|
|
1506
|
-
const openThreadView = (...params) => {
|
|
1507
|
-
if (onThreadRepliesPress) {
|
|
1508
|
-
onThreadRepliesPress(params[0], () => (<MessageView message={params[0]} isThreaded={true} showOptions={false}/>));
|
|
1509
|
-
}
|
|
1510
|
-
setShowMessageOptions([]);
|
|
1511
|
-
return onThreadRepliesPress;
|
|
1512
|
-
};
|
|
1513
|
-
const editMessage = (item) => {
|
|
1514
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
1515
|
-
message: item,
|
|
1516
|
-
status: messageStatus.inprogress,
|
|
1517
|
-
});
|
|
1518
|
-
setShowMessageOptions([]);
|
|
1519
|
-
};
|
|
1520
|
-
const copyMessage = (item) => {
|
|
1521
|
-
let copyMessage = getPlainString(item["text"], item);
|
|
1522
|
-
Clipboard.setString(copyMessage);
|
|
1523
|
-
setShowMessageOptions([]);
|
|
1524
|
-
};
|
|
1525
|
-
const getThreadView = useCallback((item, alignment) => {
|
|
1526
|
-
let isThreaded = item.getReplyCount() > 0;
|
|
1527
|
-
let _style = getCurrentBubbleStyle(item);
|
|
1528
|
-
return !isThreaded ? undefined : (<TouchableOpacity onPress={() => openThreadView(item, null)} style={_style.threadedMessageStyles?.containerStyle}>
|
|
1529
|
-
<Icon icon={_style.threadedMessageStyles?.icon} size={16} name='subdirectory-arrow-right-fill'/>
|
|
1530
|
-
|
|
1531
|
-
<Text style={_style.threadedMessageStyles?.indicatorTextStyle}>{`${item.getReplyCount()} ${item.getReplyCount() > 1 ? t("REPLIES") : t("REPLY")}`}</Text>
|
|
1532
|
-
<CometChatBadge style={{
|
|
1533
|
-
containerStyle: _style.threadedMessageStyles?.unreadCountStyle?.containerStyle,
|
|
1534
|
-
textStyle: _style.threadedMessageStyles?.unreadCountStyle?.textStyle,
|
|
1535
|
-
}} count={item.getUnreadRepliesCount()}/>
|
|
1536
|
-
</TouchableOpacity>);
|
|
1537
|
-
}, [mergedTheme]);
|
|
1538
|
-
const privateMessage = (item) => {
|
|
1539
|
-
setShowMessageOptions([]);
|
|
1540
|
-
CometChat.getUser(item.getSender().getUid())
|
|
1541
|
-
.then((user) => {
|
|
1542
|
-
console.log({ user });
|
|
1543
|
-
CometChatUIEventHandler.emitUIEvent("openChat", { user });
|
|
1544
|
-
})
|
|
1545
|
-
.catch((e) => {
|
|
1546
|
-
onError && onError(e);
|
|
1547
|
-
});
|
|
1548
|
-
};
|
|
1549
|
-
const shareMedia = async (messageObject) => {
|
|
1550
|
-
let _plainString = getPlainString(messageObject?.getData()["text"] || "", messageObject);
|
|
1551
|
-
let textMessage = _plainString;
|
|
1552
|
-
let fileUrl = messageObject.getData()["url"];
|
|
1553
|
-
const getFileName = () => {
|
|
1554
|
-
if (!fileUrl)
|
|
1555
|
-
return "";
|
|
1556
|
-
return fileUrl.substring(fileUrl.lastIndexOf("/") + 1, fileUrl.length).replace(" ", "_");
|
|
1557
|
-
};
|
|
1558
|
-
let shareObj = {
|
|
1559
|
-
message: textMessage,
|
|
1560
|
-
type: messageObject["type"],
|
|
1561
|
-
mediaName: getFileName(), // get File name
|
|
1562
|
-
fileUrl: fileUrl || "", // get File url
|
|
1563
|
-
mimeType: messageObject["type"] === "text"
|
|
1564
|
-
? ""
|
|
1565
|
-
: messageObject?.getAttachment()?.getMimeType(), // get Mime Type
|
|
1566
|
-
};
|
|
1567
|
-
NativeModules.FileManager.shareMessage(shareObj, (callback) => {
|
|
1568
|
-
console.log("shareMessage Callback", callback);
|
|
1569
|
-
});
|
|
1570
|
-
};
|
|
1571
|
-
const openOptionsForMessage = useCallback((item, template) => {
|
|
1572
|
-
let options = template?.options
|
|
1573
|
-
? loggedInUser.current
|
|
1574
|
-
? template.options(loggedInUser.current, item, mergedTheme, group)
|
|
1575
|
-
: []
|
|
1576
|
-
: [];
|
|
1577
|
-
let optionsWithPressHandling = options.map((option) => {
|
|
1578
|
-
if (!option.onPress)
|
|
1579
|
-
switch (option.id) {
|
|
1580
|
-
case MessageOptionConstants.messageInformation:
|
|
1581
|
-
option.onPress = openMessageInfo.bind(this, item);
|
|
1582
|
-
break;
|
|
1583
|
-
case MessageOptionConstants.replyInThread:
|
|
1584
|
-
option.onPress = openThreadView.bind(this, item);
|
|
1585
|
-
break;
|
|
1586
|
-
case MessageOptionConstants.deleteMessage:
|
|
1587
|
-
option.onPress = () => {
|
|
1588
|
-
deleteItem.current = item;
|
|
1589
|
-
bottomSheetRef.current?.togglePanel();
|
|
1590
|
-
Platform.OS === "android" && setShowDeleteModal(true);
|
|
1591
|
-
};
|
|
1592
|
-
break;
|
|
1593
|
-
case MessageOptionConstants.editMessage:
|
|
1594
|
-
option.onPress = editMessage.bind(this, item);
|
|
1595
|
-
break;
|
|
1596
|
-
case MessageOptionConstants.copyMessage:
|
|
1597
|
-
option.onPress = copyMessage.bind(this, item);
|
|
1598
|
-
break;
|
|
1599
|
-
case MessageOptionConstants.sendMessagePrivately:
|
|
1600
|
-
option.onPress = privateMessage.bind(this, item);
|
|
1601
|
-
break;
|
|
1602
|
-
// case MessageOptionConstants.forwardMessage:
|
|
1603
|
-
// option.onPress = showForwardMessage.bind(this, item);
|
|
1604
|
-
// break
|
|
1605
|
-
case MessageOptionConstants.shareMessage:
|
|
1606
|
-
option.onPress = shareMedia.bind(this, item);
|
|
1607
|
-
break;
|
|
1608
|
-
}
|
|
1609
|
-
else {
|
|
1610
|
-
// If overriding `onPress`, make sure to pass `item` explicitly
|
|
1611
|
-
const customOnPress = option.onPress;
|
|
1612
|
-
option.onPress = () => {
|
|
1613
|
-
customOnPress(item);
|
|
1614
|
-
setShowMessageOptions([]);
|
|
1615
|
-
};
|
|
1616
|
-
}
|
|
1617
|
-
if (option.id === MessageOptionConstants.reactToMessage) {
|
|
1618
|
-
option.onPress = () => {
|
|
1619
|
-
if (option.CustomView) {
|
|
1620
|
-
let view = option.CustomView(item);
|
|
1621
|
-
setExtensionsComponent(() => view);
|
|
1622
|
-
}
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
return option;
|
|
1626
|
-
});
|
|
1627
|
-
setShowMessageOptions(optionsWithPressHandling);
|
|
1628
|
-
}, [mergedTheme]);
|
|
1629
|
-
const MessageView = useCallback((params) => {
|
|
1630
|
-
const { message, showOptions = true, isThreaded = false, currentIndex } = params;
|
|
1631
|
-
const hasTemplate = useMemo(() => {
|
|
1632
|
-
const defaultTemplate = templatesMap.get(`${message.getCategory()}_${message.getType()}`);
|
|
1633
|
-
if (templates?.length > 0) {
|
|
1634
|
-
const customTemplate = templates.find((template) => template.type === message.getType() && template.category === message.getCategory());
|
|
1635
|
-
return customTemplate ?? defaultTemplate;
|
|
1636
|
-
}
|
|
1637
|
-
return defaultTemplate;
|
|
1638
|
-
}, [message, templatesMap, templates]);
|
|
1639
|
-
let bubbleAlignment = useMemo(() => {
|
|
1640
|
-
return getAlignment(message);
|
|
1641
|
-
}, [getAlignment]);
|
|
1642
|
-
const ContentView = useMemo(() => {
|
|
1643
|
-
return hasTemplate?.ContentView?.(message, bubbleAlignment);
|
|
1644
|
-
}, [hasTemplate, message, bubbleAlignment]);
|
|
1645
|
-
const HeaderView = useMemo(() => {
|
|
1646
|
-
return hasTemplate?.HeaderView
|
|
1647
|
-
? hasTemplate?.HeaderView(message, bubbleAlignment)
|
|
1648
|
-
: !isThreaded
|
|
1649
|
-
? getHeaderView(message)
|
|
1650
|
-
: undefined;
|
|
1651
|
-
}, [message, bubbleAlignment, hasTemplate, getHeaderView]);
|
|
1652
|
-
const FooterView = useMemo(() => {
|
|
1653
|
-
return hasTemplate?.FooterView
|
|
1654
|
-
? hasTemplate?.FooterView(message, bubbleAlignment)
|
|
1655
|
-
: isThreaded
|
|
1656
|
-
? undefined
|
|
1657
|
-
: getFooterView(message, bubbleAlignment);
|
|
1658
|
-
}, [hasTemplate, isThreaded, getFooterView, message, bubbleAlignment]);
|
|
1659
|
-
const ThreadedView = useMemo(() => {
|
|
1660
|
-
if (isAgenticUser())
|
|
1661
|
-
return undefined;
|
|
1662
|
-
return !isThreaded
|
|
1663
|
-
? !message.getDeletedBy()
|
|
1664
|
-
? getThreadView(message, bubbleAlignment)
|
|
1665
|
-
: undefined
|
|
1666
|
-
: undefined;
|
|
1667
|
-
}, [isThreaded, message, getThreadView, bubbleAlignment]);
|
|
1668
|
-
const LeadingView = useMemo(() => {
|
|
1669
|
-
if (hasTemplate?.LeadingView) {
|
|
1670
|
-
return hasTemplate.LeadingView(message, bubbleAlignment);
|
|
1671
|
-
}
|
|
1672
|
-
return !isThreaded ? getLeadingView(message) : undefined;
|
|
1673
|
-
}, [isThreaded, message, getLeadingView, hasTemplate, bubbleAlignment]);
|
|
1674
|
-
const BottomView = useMemo(() => {
|
|
1675
|
-
return hasTemplate?.BottomView && hasTemplate?.BottomView(message, bubbleAlignment);
|
|
1676
|
-
}, [hasTemplate, message, bubbleAlignment]);
|
|
1677
|
-
const StatusInfoView = useMemo(() => {
|
|
1678
|
-
return hasTemplate?.StatusInfoView &&
|
|
1679
|
-
hasTemplate?.StatusInfoView(message, bubbleAlignment)
|
|
1680
|
-
? hasTemplate?.StatusInfoView(message, bubbleAlignment)
|
|
1681
|
-
: getStatusInfoView(message, bubbleAlignment, currentIndex);
|
|
1682
|
-
}, [hasTemplate, message, bubbleAlignment, currentIndex, getStatusInfoView]);
|
|
1683
|
-
if (hasTemplate) {
|
|
1684
|
-
if (hasTemplate?.BubbleView)
|
|
1685
|
-
return hasTemplate?.BubbleView(message);
|
|
1686
|
-
const onLongPress = useCallback(() => {
|
|
1687
|
-
if (message.getDeletedBy() != null)
|
|
1688
|
-
return;
|
|
1689
|
-
if (!message.getId()) {
|
|
1690
|
-
return;
|
|
1691
|
-
}
|
|
1692
|
-
setSelectedMessage(message);
|
|
1693
|
-
hasTemplate && openOptionsForMessage(message, hasTemplate);
|
|
1694
|
-
}, [hasTemplate, message, openOptionsForMessage]);
|
|
1695
|
-
const onPress = useCallback(() => {
|
|
1696
|
-
Keyboard.dismiss();
|
|
1697
|
-
}, []);
|
|
1698
|
-
return (<TouchableOpacity activeOpacity={1} onPress={Platform.OS === "ios" ? onPress : undefined} onLongPress={() => (showOptions ? onLongPress() : undefined)}>
|
|
1699
|
-
<CometChatMessageBubble id={`${message.getId()}`} LeadingView={LeadingView} HeaderView={HeaderView} FooterView={FooterView} alignment={isThreaded ? "left" : bubbleAlignment} ContentView={ContentView} ThreadView={ThreadedView} BottomView={BottomView} StatusInfoView={StatusInfoView} style={getCurrentBubbleStyle(message)}/>
|
|
1700
|
-
</TouchableOpacity>);
|
|
1701
|
-
}
|
|
1702
|
-
else {
|
|
1703
|
-
return null;
|
|
1704
|
-
}
|
|
1705
|
-
}, [
|
|
1706
|
-
mergedTheme,
|
|
1707
|
-
templates,
|
|
1708
|
-
templatesMap,
|
|
1709
|
-
getCurrentBubbleStyle,
|
|
1710
|
-
getThreadView,
|
|
1711
|
-
getFooterView,
|
|
1712
|
-
getLeadingView,
|
|
1713
|
-
getAlignment,
|
|
1714
|
-
]);
|
|
1715
|
-
const getSentAtTimestamp = useCallback((item) => {
|
|
1716
|
-
return item.getSentAt() ? item.getSentAt() * 1000 : Date.now();
|
|
1717
|
-
}, []);
|
|
1718
|
-
const reactToMessage = (emoji, messageObj) => {
|
|
1719
|
-
const msgObj = CommonUtils.clone(messageObj) || CommonUtils.clone(selectedMessage);
|
|
1720
|
-
const messageId = msgObj?.getId();
|
|
1721
|
-
const reactions = msgObj?.getReactions() || [];
|
|
1722
|
-
const emojiObject = reactions?.find((reaction) => {
|
|
1723
|
-
return reaction?.reaction == emoji;
|
|
1724
|
-
});
|
|
1725
|
-
if (emojiObject && emojiObject?.getReactedByMe()) {
|
|
1726
|
-
const updatedReactions = [];
|
|
1727
|
-
reactions.forEach((reaction) => {
|
|
1728
|
-
if (reaction?.getReaction() == emoji) {
|
|
1729
|
-
if (reaction?.getCount() === 1) {
|
|
1730
|
-
return;
|
|
1731
|
-
}
|
|
1732
|
-
else {
|
|
1733
|
-
reaction.setCount(reaction?.getCount() - 1);
|
|
1734
|
-
reaction.setReactedByMe(false);
|
|
1735
|
-
updatedReactions.push(reaction);
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
else {
|
|
1739
|
-
updatedReactions.push(reaction);
|
|
1740
|
-
}
|
|
1741
|
-
});
|
|
1742
|
-
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1743
|
-
newMessageObj.setReactions(updatedReactions);
|
|
1744
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
1745
|
-
message: newMessageObj,
|
|
1746
|
-
status: messageStatus.success,
|
|
1747
|
-
});
|
|
1748
|
-
CometChat.removeReaction(messageId, emoji)
|
|
1749
|
-
.then((message) => { })
|
|
1750
|
-
.catch((error) => {
|
|
1751
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
1752
|
-
message: msgObj,
|
|
1753
|
-
status: messageStatus.success,
|
|
1754
|
-
});
|
|
1755
|
-
console.log(error);
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
else {
|
|
1759
|
-
const updatedReactions = [];
|
|
1760
|
-
const reactionAvailable = reactions.find((reaction) => {
|
|
1761
|
-
return reaction?.getReaction() == emoji;
|
|
1762
|
-
});
|
|
1763
|
-
reactions.forEach((reaction) => {
|
|
1764
|
-
if (reaction?.getReaction() == emoji) {
|
|
1765
|
-
reaction.setCount(reaction?.getCount() + 1);
|
|
1766
|
-
reaction.setReactedByMe(true);
|
|
1767
|
-
updatedReactions.push(reaction);
|
|
1768
|
-
}
|
|
1769
|
-
else {
|
|
1770
|
-
updatedReactions.push(reaction);
|
|
1771
|
-
}
|
|
1772
|
-
});
|
|
1773
|
-
if (!reactionAvailable) {
|
|
1774
|
-
const react = new CometChat.ReactionCount(emoji, 1, true);
|
|
1775
|
-
updatedReactions.push(react);
|
|
1776
|
-
}
|
|
1777
|
-
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1778
|
-
newMessageObj.setReactions(updatedReactions);
|
|
1779
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
1780
|
-
message: newMessageObj,
|
|
1781
|
-
status: messageStatus.success,
|
|
1782
|
-
});
|
|
1783
|
-
CometChat.addReaction(messageId, emoji)
|
|
1784
|
-
.then((response) => { })
|
|
1785
|
-
.catch((error) => {
|
|
1786
|
-
console.log(error);
|
|
1787
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
1788
|
-
message: msgObj,
|
|
1789
|
-
status: messageStatus.success,
|
|
1790
|
-
});
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
setShowMessageOptions([]);
|
|
1794
|
-
};
|
|
1795
|
-
const sentAtToMs = (msg) => {
|
|
1796
|
-
if (!msg)
|
|
1797
|
-
return undefined;
|
|
1798
|
-
// try CometChat getter first
|
|
1799
|
-
const raw = typeof msg.getSentAt === "function"
|
|
1800
|
-
? msg.getSentAt()
|
|
1801
|
-
: (msg?.sentAt ?? msg?.sent_at ?? msg?.sentOn ?? msg?.senton);
|
|
1802
|
-
if (raw === undefined || raw === null)
|
|
1803
|
-
return undefined;
|
|
1804
|
-
// if raw looks like seconds (10 digits) convert to ms
|
|
1805
|
-
return raw < 1e12 ? raw * 1000 : raw;
|
|
1806
|
-
};
|
|
1807
|
-
const makeDayKey = (ms) => {
|
|
1808
|
-
if (!ms)
|
|
1809
|
-
return null;
|
|
1810
|
-
const d = new Date(ms);
|
|
1811
|
-
// use local date parts so "Today" follows user's timezone
|
|
1812
|
-
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
1813
|
-
};
|
|
1814
|
-
const messageDayKeys = useMemo(() => {
|
|
1815
|
-
return messagesList.map((m) => {
|
|
1816
|
-
const ms = sentAtToMs(m);
|
|
1817
|
-
return makeDayKey(ms); // null if no timestamp
|
|
1818
|
-
});
|
|
1819
|
-
}, [messagesList]);
|
|
1820
|
-
const showDateSeparatorAtIndex = useMemo(() => {
|
|
1821
|
-
const n = messagesList.length;
|
|
1822
|
-
const flags = new Array(n).fill(false);
|
|
1823
|
-
// helper to find next non-null key to the right
|
|
1824
|
-
const nextNonNullKey = (startIdx) => {
|
|
1825
|
-
for (let j = startIdx; j < n; j++) {
|
|
1826
|
-
if (messageDayKeys[j] != null)
|
|
1827
|
-
return messageDayKeys[j];
|
|
1828
|
-
}
|
|
1829
|
-
return null;
|
|
1830
|
-
};
|
|
1831
|
-
for (let i = 0; i < n; i++) {
|
|
1832
|
-
const currKey = messageDayKeys[i] ?? nextNonNullKey(i);
|
|
1833
|
-
const nextKey = i + 1 < n ? (messageDayKeys[i + 1] ?? nextNonNullKey(i + 1)) : null;
|
|
1834
|
-
if (currKey != null && currKey !== nextKey) {
|
|
1835
|
-
flags[i] = true;
|
|
1836
|
-
}
|
|
1837
|
-
else if (i === n - 1 && currKey != null) {
|
|
1838
|
-
// last message in list show header
|
|
1839
|
-
flags[i] = true;
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
return flags;
|
|
1843
|
-
}, [messageDayKeys, messagesList.length]);
|
|
1844
|
-
const isSameLocalDay = (ms) => {
|
|
1845
|
-
if (!ms)
|
|
1846
|
-
return false;
|
|
1847
|
-
const a = new Date(ms);
|
|
1848
|
-
const b = new Date();
|
|
1849
|
-
return (a.getFullYear() === b.getFullYear() &&
|
|
1850
|
-
a.getMonth() === b.getMonth() &&
|
|
1851
|
-
a.getDate() === b.getDate());
|
|
1852
|
-
};
|
|
1853
|
-
const getDayHeaderString = (ms) => {
|
|
1854
|
-
if (!ms)
|
|
1855
|
-
return undefined;
|
|
1856
|
-
if (isSameLocalDay(ms))
|
|
1857
|
-
return t("TODAY") || "Today";
|
|
1858
|
-
return dateSeparatorPattern ? dateSeparatorPattern(ms) : undefined;
|
|
1859
|
-
};
|
|
1860
|
-
const RenderMessageItem = useCallback(({ item, theme, idx, }) => {
|
|
1861
|
-
const index = idx;
|
|
1862
|
-
lastMessageDate.current = getSentAtTimestamp(item);
|
|
1863
|
-
return (<React.Fragment key={`${item.getId()}_${item.getMuid()}`}>
|
|
1864
|
-
<MessageView message={item} currentIndex={index}/>
|
|
1865
|
-
</React.Fragment>);
|
|
1866
|
-
}, [mergedTheme, isAgenticUser, messagesList, getSentAtTimestamp, dateSeparatorPattern]);
|
|
1867
|
-
const keyExtractor = useCallback((item) => `${item?.getId()}_${item.getMuid()}`, []);
|
|
1868
|
-
const itemSeparator = useCallback(() => <View style={{ height: 8 }}/>, []);
|
|
1869
|
-
const getAgentEmptyView = useCallback(() => {
|
|
1870
|
-
if (!user)
|
|
1871
|
-
return <></>;
|
|
1872
|
-
const userMetadata = user.getMetadata();
|
|
1873
|
-
const displaySuggestions = suggestedMessages.length > 0
|
|
1874
|
-
? suggestedMessages
|
|
1875
|
-
: userMetadata?.suggestedMessages || [];
|
|
1876
|
-
const isDark = mergedTheme.mode === "dark";
|
|
1877
|
-
const { background2, textPrimary, textSecondary, borderLight, primary, textTertiary, } = mergedTheme.color;
|
|
1878
|
-
const avatarURL = user.getAvatar();
|
|
1879
|
-
const isSVG = avatarURL && (avatarURL.includes(".svg") || avatarURL.includes("svg"));
|
|
1880
|
-
const imageSource = !isSVG && avatarURL ? { uri: avatarURL } : undefined;
|
|
1881
|
-
return (<ScrollView contentContainerStyle={{
|
|
1882
|
-
flex: 1,
|
|
1883
|
-
justifyContent: "center",
|
|
1884
|
-
alignItems: "center",
|
|
1885
|
-
}} showsVerticalScrollIndicator={false}>
|
|
1886
|
-
<View style={{
|
|
1887
|
-
alignItems: "center",
|
|
1888
|
-
justifyContent: "center",
|
|
1889
|
-
padding: 24,
|
|
1890
|
-
}}>
|
|
1891
|
-
{emptyChatImageView || (<CometChatAvatar image={imageSource} name={user.getName()} style={{
|
|
1892
|
-
containerStyle: {
|
|
1893
|
-
width: 60,
|
|
1894
|
-
height: 60,
|
|
1895
|
-
borderRadius: 40,
|
|
1896
|
-
marginBottom: 20,
|
|
1897
|
-
alignItems: "center",
|
|
1898
|
-
justifyContent: "center",
|
|
1899
|
-
backgroundColor: mergedTheme.avatarStyle.containerStyle?.backgroundColor,
|
|
1900
|
-
},
|
|
1901
|
-
imageStyle: {
|
|
1902
|
-
width: 60,
|
|
1903
|
-
height: 60,
|
|
1904
|
-
borderRadius: 40,
|
|
1905
|
-
},
|
|
1906
|
-
textStyle: {
|
|
1907
|
-
fontSize: 32,
|
|
1908
|
-
fontWeight: "bold",
|
|
1909
|
-
color: mergedTheme.avatarStyle.textStyle?.color,
|
|
1910
|
-
textAlign: "center",
|
|
1911
|
-
textAlignVertical: "center",
|
|
1912
|
-
},
|
|
1913
|
-
}}/>)}
|
|
1914
|
-
|
|
1915
|
-
{emptyChatGreetingView || (<Text style={{
|
|
1916
|
-
fontSize: theme.typography.heading4.medium.fontSize,
|
|
1917
|
-
fontWeight: theme.typography.heading4.medium.fontWeight,
|
|
1918
|
-
textAlign: "center",
|
|
1919
|
-
color: textPrimary,
|
|
1920
|
-
}}>
|
|
1921
|
-
{userMetadata?.greetingMessage ?? `Hi, I'm ${user.getName()}`}
|
|
1922
|
-
</Text>)}
|
|
1923
|
-
|
|
1924
|
-
{emptyChatIntroMessageView || (<Text style={{
|
|
1925
|
-
fontSize: theme.typography.body.regular.fontSize,
|
|
1926
|
-
fontWeight: theme.typography.body.regular.fontWeight,
|
|
1927
|
-
marginBottom: theme.spacing.spacing.s5,
|
|
1928
|
-
textAlign: "center",
|
|
1929
|
-
lineHeight: 22,
|
|
1930
|
-
paddingHorizontal: 20,
|
|
1931
|
-
color: textTertiary,
|
|
1932
|
-
}}>
|
|
1933
|
-
{userMetadata?.introductoryMessage ??
|
|
1934
|
-
"I'm here to help! Ask me anything or choose from the suggestions below."}
|
|
1935
|
-
</Text>)}
|
|
1936
|
-
|
|
1937
|
-
{!hideSuggestedMessages && displaySuggestions?.length > 0 && (<View style={{
|
|
1938
|
-
flexDirection: "row",
|
|
1939
|
-
flexWrap: "wrap",
|
|
1940
|
-
justifyContent: "center",
|
|
1941
|
-
paddingHorizontal: 0,
|
|
1942
|
-
maxWidth: "100%",
|
|
1943
|
-
}}>
|
|
1944
|
-
{displaySuggestions.map((suggestion, idx) => (<TouchableOpacity key={idx} style={{
|
|
1945
|
-
borderRadius: 20,
|
|
1946
|
-
paddingHorizontal: theme.spacing.spacing.s4,
|
|
1947
|
-
paddingVertical: theme.spacing.spacing.s2,
|
|
1948
|
-
margin: theme.spacing.margin.m1,
|
|
1949
|
-
borderWidth: 1,
|
|
1950
|
-
backgroundColor: isDark ? theme.color.background1 : theme.color.background1,
|
|
1951
|
-
borderColor: isDark ? mergedTheme.color.borderDefault : mergedTheme.color.borderDefault,
|
|
1952
|
-
flexDirection: "row",
|
|
1953
|
-
alignItems: "center",
|
|
1954
|
-
maxWidth: "100%",
|
|
1955
|
-
}} onPress={() => {
|
|
1956
|
-
if (onSuggestedMessageClick) {
|
|
1957
|
-
onSuggestedMessageClick(suggestion);
|
|
1958
|
-
}
|
|
1959
|
-
else {
|
|
1960
|
-
CometChatUIEventHandler.emitUIEvent("ccComposeMessage", {
|
|
1961
|
-
text: suggestion,
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
}}>
|
|
1965
|
-
<Text style={{
|
|
1966
|
-
fontWeight: theme.typography.body.regular.fontWeight,
|
|
1967
|
-
fontSize: theme.typography.body.regular.fontSize,
|
|
1968
|
-
color: textSecondary,
|
|
1969
|
-
paddingRight: mergedTheme.spacing.padding.p2,
|
|
1970
|
-
flexShrink: 1,
|
|
1971
|
-
}}>
|
|
1972
|
-
{suggestion}
|
|
1973
|
-
</Text>
|
|
1974
|
-
<Icon size={14} name='right-arrow' color={theme.color.iconSecondary}/>
|
|
1975
|
-
</TouchableOpacity>))}
|
|
1976
|
-
</View>)}
|
|
1977
|
-
</View>
|
|
1978
|
-
</ScrollView>);
|
|
1979
|
-
}, [
|
|
1980
|
-
user,
|
|
1981
|
-
suggestedMessages,
|
|
1982
|
-
hideSuggestedMessages,
|
|
1983
|
-
emptyChatGreetingView,
|
|
1984
|
-
emptyChatIntroMessageView,
|
|
1985
|
-
emptyChatImageView,
|
|
1986
|
-
onSuggestedMessageClick,
|
|
1987
|
-
mergedTheme,
|
|
1988
|
-
]);
|
|
1989
|
-
const getEmptyStateView = useCallback(() => {
|
|
1990
|
-
const isAgenticUserCheck = user?.getRole?.() === '@agentic';
|
|
1991
|
-
if (isAgenticUserCheck) {
|
|
1992
|
-
return getAgentEmptyView();
|
|
1993
|
-
}
|
|
1994
|
-
if (EmptyView)
|
|
1995
|
-
return (<>
|
|
1996
|
-
<ScrollView contentContainerStyle={{}}>{EmptyView()}</ScrollView>
|
|
1997
|
-
</>);
|
|
1998
|
-
return (<ErrorEmptyView containerStyle={(mergedTheme.messageListStyles.emptyStateStyle?.containerStyle ??
|
|
1999
|
-
mergedTheme?.messageListStyles.containerStyle)} titleStyle={mergedTheme.messageListStyles.emptyStateStyle?.textStyle}/>);
|
|
2000
|
-
}, [mergedTheme, EmptyView, getAgentEmptyView, user]);
|
|
2001
|
-
const getErrorStateView = useCallback(() => {
|
|
2002
|
-
if (hideError)
|
|
2003
|
-
return null;
|
|
2004
|
-
if (ErrorView)
|
|
2005
|
-
return ErrorView();
|
|
2006
|
-
return (<ErrorEmptyView title={t("OOPS")} subTitle={t("SOMETHING_WENT_WRONG")} tertiaryTitle={t("WRONG_TEXT_TRY_AGAIN")} Icon={<Icon name='error-state' size={mergedTheme.spacing.spacing.s15 * 2} icon={mergedTheme.messageListStyles.errorStateStyle?.icon} height={mergedTheme.messageListStyles.errorStateStyle?.iconStyle?.height} width={mergedTheme.messageListStyles.errorStateStyle?.iconStyle?.width} imageStyle={mergedTheme.messageListStyles.errorStateStyle?.iconStyle} containerStyle={mergedTheme.messageListStyles.errorStateStyle?.iconContainerStyle}/>} containerStyle={mergedTheme.messageListStyles.errorStateStyle?.containerStyle} titleStyle={mergedTheme.messageListStyles.errorStateStyle?.titleStyle} subTitleStyle={mergedTheme.messageListStyles.errorStateStyle?.subtitleStyle}/>);
|
|
2007
|
-
}, [mergedTheme]);
|
|
2008
|
-
const getLoadingStateView = useCallback(() => {
|
|
2009
|
-
if (LoadingView)
|
|
2010
|
-
return LoadingView();
|
|
2011
|
-
return (<View style={{ padding: 16 }}>
|
|
2012
|
-
<MessageSkeleton />
|
|
2013
|
-
</View>);
|
|
2014
|
-
}, []);
|
|
2015
|
-
const handleScroll = (event) => {
|
|
2016
|
-
if (loadingMessagesRef.current) {
|
|
2017
|
-
return;
|
|
2018
|
-
}
|
|
2019
|
-
// For agent chats (non-thread), don't fetch previous messages when scrolling to top
|
|
2020
|
-
if (isAgenticUser() && !parentMessageId) {
|
|
2021
|
-
scrollHandler(event);
|
|
2022
|
-
return;
|
|
2023
|
-
}
|
|
2024
|
-
const { layoutMeasurement, contentOffset, contentSize } = event.nativeEvent;
|
|
2025
|
-
if (Math.floor(contentOffset.y) >= Math.floor(contentSize.height - layoutMeasurement.height)) {
|
|
2026
|
-
getPreviousMessages();
|
|
2027
|
-
//messageListRef.current?.scrollToOffset({offset: contentOffset.y})
|
|
2028
|
-
}
|
|
2029
|
-
scrollHandler(event);
|
|
2030
|
-
};
|
|
2031
|
-
const shouldShowScrollToBottomButton = useCallback((event) => {
|
|
2032
|
-
const { contentOffset, contentSize } = event.nativeEvent;
|
|
2033
|
-
currentScrollPosition.current.y = contentOffset.y;
|
|
2034
|
-
currentScrollPosition.current.contentHeight = contentSize.height;
|
|
2035
|
-
setHideScrollToBottomButton(isNearBottom());
|
|
2036
|
-
}, []);
|
|
2037
|
-
const scrollHandler = (event) => {
|
|
2038
|
-
/********************************************************************************
|
|
2039
|
-
* layoutMeasurement.height: The height of the visible area within the ScrollView.
|
|
2040
|
-
* contentOffset.y: The current vertical scroll position (distance from the top of the content).
|
|
2041
|
-
The y value in contentOffset indicates how far the top edge of the visible area is from the top of the scrollable content.
|
|
2042
|
-
For example:
|
|
2043
|
-
If contentOffset.y is 0, the top of the visible area is aligned with the top of the content.
|
|
2044
|
-
If contentOffset.y is 50, the top of the visible area is 50 units (pixels) below the top of the content.
|
|
2045
|
-
* contentSize.height: The total height of the scrollable content.
|
|
2046
|
-
*********************************************************************************/
|
|
2047
|
-
const { layoutMeasurement, contentOffset, contentSize } = event.nativeEvent;
|
|
2048
|
-
const screenHeight = Dimensions.get("window").height;
|
|
2049
|
-
// Calculate the scroll position
|
|
2050
|
-
const scrollPosition = layoutMeasurement.height + contentOffset.y;
|
|
2051
|
-
const scrollEndPosition = contentSize.height - screenHeight;
|
|
2052
|
-
currentScrollPosition.current.y = contentOffset.y;
|
|
2053
|
-
currentScrollPosition.current.contentHeight = contentSize.height;
|
|
2054
|
-
if (currentScrollPosition.current.layoutHeight != layoutMeasurement.height) {
|
|
2055
|
-
currentScrollPosition.current.layoutHeight = layoutMeasurement.height;
|
|
2056
|
-
}
|
|
2057
|
-
if (currentScrollPosition.current.scrollViewHeight !== contentSize.height) {
|
|
2058
|
-
currentScrollPosition.current.scrollViewHeight = contentSize.height;
|
|
2059
|
-
}
|
|
2060
|
-
// if (isAtBottom() || isNearBottom()) {
|
|
2061
|
-
// newMsgIndicatorPressed();
|
|
2062
|
-
// }
|
|
2063
|
-
};
|
|
2064
|
-
const scrollToBottom = useCallback((scrollToFirstUnread = false) => {
|
|
2065
|
-
messageListRef.current?.scrollToOffset({ offset: 0 });
|
|
2066
|
-
}, []);
|
|
2067
|
-
// const windowSize = useMemo(() => {
|
|
2068
|
-
// return messagesList.length > 50 ? messagesList.length / 2 : 21;
|
|
2069
|
-
// }, [messagesList]);
|
|
2070
|
-
const memoizedRenderItem = useCallback(({ item, index, separators }) => {
|
|
2071
|
-
// index here is FlatList's index in messagesList (newest-first)
|
|
2072
|
-
const showSeparator = showDateSeparatorAtIndex[index];
|
|
2073
|
-
const ms = sentAtToMs(item) ?? Date.now();
|
|
2074
|
-
return (<View style={{ flex: 1, paddingHorizontal: 16, paddingVertical: 8 }}>
|
|
2075
|
-
{showSeparator && (<View style={{ alignItems: "center", marginBottom: 8 }}>
|
|
2076
|
-
<CometChatDateSeparator timeStamp={ms} pattern={"dayDateFormat"} customDateString={getDayHeaderString(ms)} style={mergedTheme.messageListStyles.dateSeparatorStyle}/>
|
|
2077
|
-
</View>)}
|
|
2078
|
-
<RenderMessageItem item={item} theme={mergedTheme} idx={index}/>
|
|
2079
|
-
{itemSeparator()}
|
|
2080
|
-
</View>);
|
|
2081
|
-
}, [mergedTheme, showDateSeparatorAtIndex, dateSeparatorPattern, messageDayKeys]);
|
|
2082
|
-
return (<View style={mergedTheme.messageListStyles.containerStyle}>
|
|
2083
|
-
{listState == "loading" && messagesList.length == 0 ? (getLoadingStateView()) : listState == "error" ? (getErrorStateView()) : (listState == "" || listState == "loaded") ? (messagesList.length == 0 ? (getEmptyStateView()) : (<View style={{ height: "100%", width: "100%" }}>
|
|
2084
|
-
{HeaderView && (<View style={[{ top: 0 }]}>
|
|
2085
|
-
<HeaderView group={group} user={user} id={{
|
|
2086
|
-
guid: group && group["guid"],
|
|
2087
|
-
uid: user && user["uid"],
|
|
2088
|
-
parentMessageId: parentMessageId,
|
|
2089
|
-
}}/>
|
|
2090
|
-
</View>)}
|
|
2091
|
-
{loadingMessages && (<View style={{ position: "absolute", alignSelf: "center" }}>
|
|
2092
|
-
<ActivityIndicator size='small' color={mergedTheme.color.primary}/>
|
|
2093
|
-
</View>)}
|
|
2094
|
-
|
|
2095
|
-
<FlatList showsVerticalScrollIndicator={false} ref={messageListRef} onMomentumScrollEnd={handleScroll} onScroll={shouldShowScrollToBottomButton} inverted={true} scrollEventThrottle={16} keyboardShouldPersistTaps={Platform.OS === "ios" ? "handled" : "always"} data={messagesList} keyExtractor={keyExtractor} renderItem={memoizedRenderItem}
|
|
2096
|
-
/**Please do not push changes to windowSize without testing infinite scroll and UI interactions and response time**/
|
|
2097
|
-
/**Test the same on release mode. Dev mode could be laggy**/
|
|
2098
|
-
windowSize={33}/>
|
|
2099
|
-
|
|
2100
|
-
{CustomListHeader && <CustomListHeader />}
|
|
2101
|
-
{ongoingCallView}
|
|
2102
|
-
{FooterView && (<View style={[{ bottom: 0 }]}>
|
|
2103
|
-
<FooterView group={group} user={user} id={{
|
|
2104
|
-
guid: group && group["guid"],
|
|
2105
|
-
uid: user && user["uid"],
|
|
2106
|
-
parentMessageId: parentMessageId,
|
|
2107
|
-
}}/>
|
|
2108
|
-
</View>)}
|
|
2109
|
-
</View>)) : null}
|
|
2110
|
-
|
|
2111
|
-
{!hideScrollToBottomButton && (<Pressable onPress={newMsgIndicatorPressed} style={[mergedTheme.messageListStyles.scrollToBottomButtonStyle.containerStyle]}>
|
|
2112
|
-
{unreadCount > 0 && (<CometChatBadge style={mergedTheme.messageListStyles.scrollToBottomButtonStyle.unreadCountBadgeStyle} count={unreadCount}/>)}
|
|
2113
|
-
|
|
2114
|
-
<Icon name='keyboard-arrow-down' color={mergedTheme.messageListStyles.scrollToBottomButtonStyle.iconStyle.tintColor} height={mergedTheme.messageListStyles.scrollToBottomButtonStyle.iconStyle.height} width={mergedTheme.messageListStyles.scrollToBottomButtonStyle.iconStyle.width} icon={mergedTheme.messageListStyles.scrollToBottomButtonStyle.icon} imageStyle={mergedTheme.messageListStyles.scrollToBottomButtonStyle.iconStyle} containerStyle={mergedTheme.messageListStyles.scrollToBottomButtonStyle.iconContainerStyle}></Icon>
|
|
2115
|
-
</Pressable>)}
|
|
2116
|
-
|
|
2117
|
-
<CometChatConfirmDialog titleText={t("DELETE_THIS_MESSAGE")} icon={<Icon name='delete' size={theme.spacing.spacing.s12} color={theme.color.error}/>} cancelButtonText={t("CANCEL")} confirmButtonText={t("DELETE")} messageText={t("DELETE_MESSAGE_CONFIRM")} isOpen={showDeleteModal}
|
|
2118
|
-
// onDismiss={()=>console.log(deleteItem.current, "CometChatConfirmDialog onDismiss")}
|
|
2119
|
-
onCancel={() => {
|
|
2120
|
-
deleteItem.current = undefined;
|
|
2121
|
-
setShowDeleteModal(false);
|
|
2122
|
-
}} onConfirm={() => {
|
|
2123
|
-
deleteMessage(deleteItem.current);
|
|
2124
|
-
}}/>
|
|
2125
|
-
|
|
2126
|
-
<CometChatBottomSheet ref={bottomSheetRef} onClose={() => {
|
|
2127
|
-
if (ExtensionsComponent)
|
|
2128
|
-
setExtensionsComponent(null);
|
|
2129
|
-
setShowMessageOptions([]);
|
|
2130
|
-
infoObject.current = null;
|
|
2131
|
-
setMessageInfo(false);
|
|
2132
|
-
}} onDismiss={() => {
|
|
2133
|
-
// console.log(deleteItem.current, "CometChatBottomSheet onDismiss")
|
|
2134
|
-
Platform.OS === "ios" && deleteItem.current && setShowDeleteModal(true);
|
|
2135
|
-
}} isOpen={showMessageOptions.length > 0 || Boolean(ExtensionsComponent) || messageInfo} style={{
|
|
2136
|
-
paddingHorizontal: 0,
|
|
2137
|
-
maxHeight: messageInfo
|
|
2138
|
-
? Dimensions.get("window").height * 0.9
|
|
2139
|
-
: Dimensions.get("window").height * 0.52,
|
|
2140
|
-
minHeight: Dimensions.get("window").height * 0.5,
|
|
2141
|
-
}}>
|
|
2142
|
-
{ExtensionsComponent ? (ExtensionsComponent) : messageInfo && infoObject.current ? (<CometChatMessageInformation message={infoObject.current} template={templatesMap.get(`${infoObject.current?.getCategory()}_${infoObject.current?.getType()}`)} onBack={() => {
|
|
2143
|
-
infoObject.current = null;
|
|
2144
|
-
setMessageInfo(false);
|
|
2145
|
-
}} style={mergedTheme?.messageListStyles?.messageInformationStyles}/>) : (<View style={{ flex: 1 }}>
|
|
2146
|
-
{!hideReactionOption && (<CometChatQuickReactions quickReactions={quickReactionList} onReactionPress={reactToMessage} onAddReactionPress={onAddReactionPress ??
|
|
2147
|
-
(() => {
|
|
2148
|
-
setShowMessageOptions([]);
|
|
2149
|
-
setTimeout(() => {
|
|
2150
|
-
setShowEmojiKeyboard(true);
|
|
2151
|
-
}, 200);
|
|
2152
|
-
})} style={mergedTheme.quickReactionStyle}/>)}
|
|
2153
|
-
|
|
2154
|
-
<CometChatActionSheet actions={showMessageOptions} style={mergedTheme.messageListStyles.messageOptionsStyles}/>
|
|
2155
|
-
</View>)}
|
|
2156
|
-
</CometChatBottomSheet>
|
|
2157
|
-
<CometChatBottomSheet isOpen={showEmojiKeyboard} onClose={() => setShowEmojiKeyboard(false)} style={{
|
|
2158
|
-
maxHeight: Dimensions.get("window").height * 0.49,
|
|
2159
|
-
}}>
|
|
2160
|
-
<CometChatEmojiKeyboard onClick={(item) => {
|
|
2161
|
-
setShowEmojiKeyboard(false);
|
|
2162
|
-
reactToMessage(item, selectedMessage);
|
|
2163
|
-
}}/>
|
|
2164
|
-
</CometChatBottomSheet>
|
|
2165
|
-
|
|
2166
|
-
<CometChatBottomSheet isOpen={showReactionList} onClose={() => {
|
|
2167
|
-
setShowReactionList(false);
|
|
2168
|
-
setSelectedEmoji(undefined);
|
|
2169
|
-
}} style={{
|
|
2170
|
-
maxHeight: Dimensions.get("window").height * 0.7,
|
|
2171
|
-
minHeight: Dimensions.get("window").height * 0.3,
|
|
2172
|
-
}}>
|
|
2173
|
-
<CometChatReactionList message={selectedMessage} selectedReaction={selectedEmoji} onPress={onReactionListItemPressProp} reactionsRequestBuilder={reactionsRequestBuilder} onListEmpty={() => {
|
|
2174
|
-
setShowReactionList(false);
|
|
2175
|
-
setSelectedEmoji(undefined);
|
|
2176
|
-
}}/>
|
|
2177
|
-
</CometChatBottomSheet>
|
|
2178
|
-
</View>);
|
|
2179
|
-
}));
|
|
2180
|
-
//# sourceMappingURL=CometChatMessageList.js.map
|