stream-chat-angular 4.68.4 → 4.68.5
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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +14 -6
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +9 -1
- package/fesm2015/stream-chat-angular.js +9 -1
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.68.
|
|
1
|
+
export declare const version = "4.68.5";
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
var version = '4.68.
|
|
359
|
+
var version = '4.68.5';
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -7199,8 +7199,8 @@
|
|
|
7199
7199
|
var _a;
|
|
7200
7200
|
var commands = ((_a = channel === null || channel === void 0 ? void 0 : channel.getConfig()) === null || _a === void 0 ? void 0 : _a.commands) || [];
|
|
7201
7201
|
_this.slashCommandConfig.items = commands.map(function (c) {
|
|
7202
|
-
var
|
|
7203
|
-
return (Object.assign(Object.assign({}, c), (
|
|
7202
|
+
var _d;
|
|
7203
|
+
return (Object.assign(Object.assign({}, c), (_d = {}, _d[_this.autocompleteKey] = c.name, _d.type = 'command', _d)));
|
|
7204
7204
|
});
|
|
7205
7205
|
_this.mentionedUsers = [];
|
|
7206
7206
|
_this.userMentions.next(__spreadArray([], __read(_this.mentionedUsers)));
|
|
@@ -7225,6 +7225,7 @@
|
|
|
7225
7225
|
this.themeVersion = this.themeService.themeVersion;
|
|
7226
7226
|
}
|
|
7227
7227
|
AutocompleteTextareaComponent.prototype.ngOnChanges = function (changes) {
|
|
7228
|
+
var _a, _b, _c;
|
|
7228
7229
|
if (changes.areMentionsEnabled) {
|
|
7229
7230
|
if (this.areMentionsEnabled) {
|
|
7230
7231
|
this.autocompleteConfig.mentions = [
|
|
@@ -7243,10 +7244,13 @@
|
|
|
7243
7244
|
}
|
|
7244
7245
|
if (changes.value && !this.value && this.messageInput) {
|
|
7245
7246
|
this.messageInput.nativeElement.style.height = 'auto';
|
|
7247
|
+
(_c = (_b = (_a = this.chatClientService) === null || _a === void 0 ? void 0 : _a.chatClient) === null || _b === void 0 ? void 0 : _b.logger) === null || _c === void 0 ? void 0 : _c.call(_b, 'info', '[Autocomplete textarea] Value reset, adjusting textarea height to auto');
|
|
7246
7248
|
this.updateMentionedUsersFromText();
|
|
7247
7249
|
}
|
|
7248
7250
|
};
|
|
7249
7251
|
AutocompleteTextareaComponent.prototype.ngAfterViewInit = function () {
|
|
7252
|
+
var _a, _b, _c;
|
|
7253
|
+
(_c = (_b = (_a = this.chatClientService) === null || _a === void 0 ? void 0 : _a.chatClient) === null || _b === void 0 ? void 0 : _b.logger) === null || _c === void 0 ? void 0 : _c.call(_b, 'info', '[Autocomplete textarea] View inited');
|
|
7250
7254
|
if (this.messageInput.nativeElement.scrollHeight > 0) {
|
|
7251
7255
|
this.adjustTextareaHeight();
|
|
7252
7256
|
}
|
|
@@ -7272,6 +7276,8 @@
|
|
|
7272
7276
|
}
|
|
7273
7277
|
};
|
|
7274
7278
|
AutocompleteTextareaComponent.prototype.inputChanged = function () {
|
|
7279
|
+
var _a, _b, _c;
|
|
7280
|
+
(_c = (_b = (_a = this.chatClientService) === null || _a === void 0 ? void 0 : _a.chatClient) === null || _b === void 0 ? void 0 : _b.logger) === null || _c === void 0 ? void 0 : _c.call(_b, 'info', '[Autocomplete textarea] Input changed');
|
|
7275
7281
|
this.valueChange.emit(this.messageInput.nativeElement.value);
|
|
7276
7282
|
this.adjustTextareaHeight();
|
|
7277
7283
|
};
|
|
@@ -7286,7 +7292,9 @@
|
|
|
7286
7292
|
}
|
|
7287
7293
|
};
|
|
7288
7294
|
AutocompleteTextareaComponent.prototype.adjustTextareaHeight = function () {
|
|
7295
|
+
var _a, _b, _c;
|
|
7289
7296
|
if (this.themeVersion === '2') {
|
|
7297
|
+
(_c = (_b = (_a = this.chatClientService) === null || _a === void 0 ? void 0 : _a.chatClient) === null || _b === void 0 ? void 0 : _b.logger) === null || _c === void 0 ? void 0 : _c.call(_b, 'info', "[Autocomplete textarea] Textarea height set from " + this.messageInput.nativeElement.style.height + " to " + this.messageInput.nativeElement.scrollHeight + "px");
|
|
7290
7298
|
this.messageInput.nativeElement.style.height = '';
|
|
7291
7299
|
this.messageInput.nativeElement.style.height = this.messageInput.nativeElement.scrollHeight + "px";
|
|
7292
7300
|
}
|
|
@@ -7303,8 +7311,8 @@
|
|
|
7303
7311
|
return __awaiter(this, void 0, void 0, function () {
|
|
7304
7312
|
var request, result, items;
|
|
7305
7313
|
var _this = this;
|
|
7306
|
-
return __generator(this, function (
|
|
7307
|
-
switch (
|
|
7314
|
+
return __generator(this, function (_d) {
|
|
7315
|
+
switch (_d.label) {
|
|
7308
7316
|
case 0:
|
|
7309
7317
|
if (!this.areMentionsEnabled) {
|
|
7310
7318
|
return [2 /*return*/];
|
|
@@ -7315,7 +7323,7 @@
|
|
|
7315
7323
|
: function (s) { return _this.channelService.autocompleteMembers(s); };
|
|
7316
7324
|
return [4 /*yield*/, request(searchTerm || '')];
|
|
7317
7325
|
case 1:
|
|
7318
|
-
result =
|
|
7326
|
+
result = _d.sent();
|
|
7319
7327
|
items = this.filter(searchTerm || '', result.map(function (i) {
|
|
7320
7328
|
var user = (i.user ? i.user : i);
|
|
7321
7329
|
return Object.assign(Object.assign({}, i), { autocompleteLabel: user.name || user.id, type: 'mention' });
|