@cometchat/chat-uikit-angular 4.3.23 → 4.3.24
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/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +2 -0
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +19 -9
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +2 -2
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +2 -2
- package/fesm2015/cometchat-chat-uikit-angular.mjs +23 -14
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +20 -10
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1912,7 +1912,7 @@ class CometChatUIKit {
|
|
|
1912
1912
|
if (window) {
|
|
1913
1913
|
window.CometChatUiKit = {
|
|
1914
1914
|
name: "@cometchat/chat-uikit-angular",
|
|
1915
|
-
version: "4.3.
|
|
1915
|
+
version: "4.3.24",
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
if (CometChatUIKitSharedSettings) {
|
|
@@ -11097,7 +11097,7 @@ class CometChatMessageListComponent {
|
|
|
11097
11097
|
var injectedObject = metadata?.[ThumbnailGenerationConstants.injected];
|
|
11098
11098
|
var extensionsObject = injectedObject?.extensions;
|
|
11099
11099
|
var thumbnailGenerationObject = extensionsObject[ThumbnailGenerationConstants.thumbnail_generation];
|
|
11100
|
-
var imageToDownload = thumbnailGenerationObject?.
|
|
11100
|
+
var imageToDownload = thumbnailGenerationObject?.url_medium;
|
|
11101
11101
|
if (imageToDownload) {
|
|
11102
11102
|
imageURL = imageToDownload;
|
|
11103
11103
|
}
|
|
@@ -13644,6 +13644,7 @@ class CometChatMessageComposerComponent {
|
|
|
13644
13644
|
this.lastEmptySearchTerm = "";
|
|
13645
13645
|
this.smartReplyState = States.loading;
|
|
13646
13646
|
this.showMentionsCountWarning = false;
|
|
13647
|
+
this.initialText = "";
|
|
13647
13648
|
this.loadingStateText = localize("GENERATING_REPLIES");
|
|
13648
13649
|
this.errorStateText = localize("SOMETHING_WRONG");
|
|
13649
13650
|
this.emptyStateText = localize("NO_MESSAGES_FOUND");
|
|
@@ -13805,7 +13806,7 @@ class CometChatMessageComposerComponent {
|
|
|
13805
13806
|
this.showMentionsCountWarning = false;
|
|
13806
13807
|
this.showListForMentions = false;
|
|
13807
13808
|
this.sendTextMessage(event.detail.value);
|
|
13808
|
-
this.
|
|
13809
|
+
this.clearComposer();
|
|
13809
13810
|
this.showSendButton = false;
|
|
13810
13811
|
this.disableSendButton();
|
|
13811
13812
|
};
|
|
@@ -14422,8 +14423,7 @@ class CometChatMessageComposerComponent {
|
|
|
14422
14423
|
}
|
|
14423
14424
|
openEditPreview() {
|
|
14424
14425
|
let messageTextWithMentionTags = this.checkForMentions(this.messageToBeEdited);
|
|
14425
|
-
this.
|
|
14426
|
-
this.inputRef?.nativeElement?.emptyInputField();
|
|
14426
|
+
this.clearComposer();
|
|
14427
14427
|
this.inputRef.nativeElement.text = "";
|
|
14428
14428
|
this.text = this.messageToBeEdited.getText();
|
|
14429
14429
|
this.editPreviewText = messageTextWithMentionTags;
|
|
@@ -14494,9 +14494,22 @@ class CometChatMessageComposerComponent {
|
|
|
14494
14494
|
child: { showConversationSummaryView: true },
|
|
14495
14495
|
});
|
|
14496
14496
|
}
|
|
14497
|
+
clearComposer() {
|
|
14498
|
+
this.text = "";
|
|
14499
|
+
this.messageText = "";
|
|
14500
|
+
this.inputRef?.nativeElement?.emptyInputField();
|
|
14501
|
+
}
|
|
14497
14502
|
ngOnChanges(changes) {
|
|
14498
14503
|
if (changes["user"] || changes["group"]) {
|
|
14499
14504
|
this.userOrGroupChanged(changes);
|
|
14505
|
+
if (this.initialText !== this.text) {
|
|
14506
|
+
this.clearComposer();
|
|
14507
|
+
}
|
|
14508
|
+
this.text = this.initialText || "";
|
|
14509
|
+
}
|
|
14510
|
+
if (changes["text"]?.currentValue) {
|
|
14511
|
+
this.initialText = changes["text"].currentValue;
|
|
14512
|
+
this.text = this.initialText;
|
|
14500
14513
|
}
|
|
14501
14514
|
}
|
|
14502
14515
|
userOrGroupChanged(changes) {
|
|
@@ -14614,8 +14627,7 @@ class CometChatMessageComposerComponent {
|
|
|
14614
14627
|
this.playAudio();
|
|
14615
14628
|
}
|
|
14616
14629
|
//clearing Message Input Box
|
|
14617
|
-
this.
|
|
14618
|
-
this.inputRef?.nativeElement?.emptyInputField();
|
|
14630
|
+
this.clearComposer();
|
|
14619
14631
|
this.messageSending = false;
|
|
14620
14632
|
for (let i = 0; i < this.textFormatterList.length; i++) {
|
|
14621
14633
|
textMessage = this.textFormatterList[i].formatMessageForSending(textMessage);
|
|
@@ -15291,9 +15303,7 @@ class CometChatMessageComposerComponent {
|
|
|
15291
15303
|
this.showPreview = false;
|
|
15292
15304
|
this.editPreviewText = "";
|
|
15293
15305
|
this.messageToBeEdited = null;
|
|
15294
|
-
this.
|
|
15295
|
-
this.messageText = "";
|
|
15296
|
-
this.inputRef?.nativeElement?.emptyInputField();
|
|
15306
|
+
this.clearComposer();
|
|
15297
15307
|
this.disableSendButton();
|
|
15298
15308
|
this.ref.detectChanges();
|
|
15299
15309
|
}
|