stream-chat-angular 2.5.0 → 2.5.1

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.
@@ -1 +1 @@
1
- export declare const version = "2.5.0";
1
+ export declare const version = "2.5.1";
@@ -353,7 +353,7 @@
353
353
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
354
354
  }
355
355
 
356
- var version = '2.5.0';
356
+ var version = '2.5.1';
357
357
 
358
358
  var NotificationService = /** @class */ (function () {
359
359
  function NotificationService() {
@@ -3174,6 +3174,7 @@
3174
3174
  triggerChar: this.triggerChar,
3175
3175
  dropUp: true,
3176
3176
  labelKey: this.labelKey,
3177
+ returnTrigger: true,
3177
3178
  mentionFilter: function (searchString, items) { return _this.filter(searchString, items); },
3178
3179
  mentionSelect: function (item, triggerChar) { return _this.mentioned(item, triggerChar); },
3179
3180
  };
@@ -3213,7 +3214,12 @@
3213
3214
  return triggerChar + item.autocompleteLabel;
3214
3215
  };
3215
3216
  AutocompleteTextareaComponent.prototype.autcompleteSearchTermChanged = function (searchTerm) {
3216
- this.searchTerm$.next(searchTerm);
3217
+ if (searchTerm === this.triggerChar) {
3218
+ void this.updateMentionOptions();
3219
+ }
3220
+ else {
3221
+ this.searchTerm$.next(searchTerm.replace(this.triggerChar, ''));
3222
+ }
3217
3223
  };
3218
3224
  AutocompleteTextareaComponent.prototype.inputChanged = function () {
3219
3225
  this.valueChange.emit(this.messageInput.nativeElement.value);