stream-chat-angular 4.39.6 → 4.39.7
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 +5 -40
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +8 -43
- package/fesm2015/stream-chat-angular.js +5 -39
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +3 -12
- 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.39.
|
|
1
|
+
export declare const version = "4.39.7";
|
|
@@ -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.39.
|
|
359
|
+
var version = '4.39.7';
|
|
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.
|
|
@@ -3180,11 +3180,8 @@
|
|
|
3180
3180
|
* The `AvatarPlaceholder` component displays the [default avatar](./AvatarComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This component is used by the SDK internally, you likely won't need to use it.
|
|
3181
3181
|
*/
|
|
3182
3182
|
var AvatarPlaceholderComponent = /** @class */ (function () {
|
|
3183
|
-
function AvatarPlaceholderComponent(customTemplatesService
|
|
3183
|
+
function AvatarPlaceholderComponent(customTemplatesService) {
|
|
3184
3184
|
this.customTemplatesService = customTemplatesService;
|
|
3185
|
-
this.hostElement = hostElement;
|
|
3186
|
-
this.cdRef = cdRef;
|
|
3187
|
-
this.themeService = themeService;
|
|
3188
3185
|
/**
|
|
3189
3186
|
* The size in pixels of the avatar image.
|
|
3190
3187
|
*/
|
|
@@ -3208,28 +3205,7 @@
|
|
|
3208
3205
|
initialsType: undefined,
|
|
3209
3206
|
showOnlineIndicator: undefined,
|
|
3210
3207
|
};
|
|
3211
|
-
this.isVisible = true;
|
|
3212
3208
|
}
|
|
3213
|
-
AvatarPlaceholderComponent.prototype.ngAfterViewInit = function () {
|
|
3214
|
-
var _this = this;
|
|
3215
|
-
var _a, _b;
|
|
3216
|
-
var elementToObserve = (_b = (_a = this.hostElement.nativeElement.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
3217
|
-
if (this.location !== 'message-sender' ||
|
|
3218
|
-
!elementToObserve ||
|
|
3219
|
-
!elementToObserve.classList.contains('str-chat__li') ||
|
|
3220
|
-
this.themeService.themeVersion === '1') {
|
|
3221
|
-
this.isVisible = true;
|
|
3222
|
-
this.cdRef.detectChanges();
|
|
3223
|
-
return;
|
|
3224
|
-
}
|
|
3225
|
-
this.checkIfVisible();
|
|
3226
|
-
this.mutationObserver = new MutationObserver(function () {
|
|
3227
|
-
_this.checkIfVisible();
|
|
3228
|
-
});
|
|
3229
|
-
this.mutationObserver.observe(elementToObserve, {
|
|
3230
|
-
attributeFilter: ['class'],
|
|
3231
|
-
});
|
|
3232
|
-
};
|
|
3233
3209
|
AvatarPlaceholderComponent.prototype.ngOnChanges = function () {
|
|
3234
3210
|
this.context = {
|
|
3235
3211
|
name: this.name,
|
|
@@ -3243,21 +3219,10 @@
|
|
|
3243
3219
|
showOnlineIndicator: this.showOnlineIndicator,
|
|
3244
3220
|
};
|
|
3245
3221
|
};
|
|
3246
|
-
AvatarPlaceholderComponent.prototype.ngOnDestroy = function () {
|
|
3247
|
-
var _a;
|
|
3248
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
3249
|
-
};
|
|
3250
|
-
AvatarPlaceholderComponent.prototype.checkIfVisible = function () {
|
|
3251
|
-
var isVisible = getComputedStyle(this.hostElement.nativeElement).getPropertyValue('visibility') === 'visible';
|
|
3252
|
-
if (isVisible !== this.isVisible) {
|
|
3253
|
-
this.isVisible = isVisible;
|
|
3254
|
-
this.cdRef.detectChanges();
|
|
3255
|
-
}
|
|
3256
|
-
};
|
|
3257
3222
|
return AvatarPlaceholderComponent;
|
|
3258
3223
|
}());
|
|
3259
|
-
AvatarPlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: AvatarPlaceholderComponent, deps: [{ token: CustomTemplatesService }
|
|
3260
|
-
AvatarPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: AvatarPlaceholderComponent, selector: "stream-avatar-placeholder", inputs: { name: "name", imageUrl: "imageUrl", size: "size", location: "location", channel: "channel", user: "user", type: "type", initialsType: "initialsType", showOnlineIndicator: "showOnlineIndicator" }, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template\n #defaultAvatar\n let-name=\"name\"\n let-imageUrl=\"imageUrl\"\n let-size=\"size\"\n let-type=\"type\"\n let-channel=\"channel\"\n let-user=\"user\"\n let-location=\"location\"\n let-initialsType=\"initialsType\"\n let-showOnlineIndicator=\"showOnlineIndicator\"\n>\n <stream-avatar\n [name]=\"name\"\n [imageUrl]=\"imageUrl\"\n [size]=\"size\"\n [type]=\"type\"\n [channel]=\"channel\"\n [user]=\"user\"\n [location]=\"location\"\n [initialsType]=\"initialsType\"\n [showOnlineIndicator]=\"showOnlineIndicator\"\n ></stream-avatar>\n</ng-template>\n<ng-container
|
|
3224
|
+
AvatarPlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: AvatarPlaceholderComponent, deps: [{ token: CustomTemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3225
|
+
AvatarPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: AvatarPlaceholderComponent, selector: "stream-avatar-placeholder", inputs: { name: "name", imageUrl: "imageUrl", size: "size", location: "location", channel: "channel", user: "user", type: "type", initialsType: "initialsType", showOnlineIndicator: "showOnlineIndicator" }, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template\n #defaultAvatar\n let-name=\"name\"\n let-imageUrl=\"imageUrl\"\n let-size=\"size\"\n let-type=\"type\"\n let-channel=\"channel\"\n let-user=\"user\"\n let-location=\"location\"\n let-initialsType=\"initialsType\"\n let-showOnlineIndicator=\"showOnlineIndicator\"\n>\n <stream-avatar\n [name]=\"name\"\n [imageUrl]=\"imageUrl\"\n [size]=\"size\"\n [type]=\"type\"\n [channel]=\"channel\"\n [user]=\"user\"\n [location]=\"location\"\n [initialsType]=\"initialsType\"\n [showOnlineIndicator]=\"showOnlineIndicator\"\n ></stream-avatar>\n</ng-template>\n<ng-container\n *ngTemplateOutlet=\"\n (customTemplatesService.avatarTemplate$ | async) || defaultAvatar;\n context: context\n \"\n></ng-container>\n", components: [{ type: AvatarComponent, selector: "stream-avatar", inputs: ["name", "imageUrl", "size", "location", "channel", "user", "type", "showOnlineIndicator", "initialsType"] }], directives: [{ type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i5__namespace.AsyncPipe } });
|
|
3261
3226
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: AvatarPlaceholderComponent, decorators: [{
|
|
3262
3227
|
type: i0.Component,
|
|
3263
3228
|
args: [{
|
|
@@ -3265,7 +3230,7 @@
|
|
|
3265
3230
|
templateUrl: './avatar-placeholder.component.html',
|
|
3266
3231
|
styles: [],
|
|
3267
3232
|
}]
|
|
3268
|
-
}], ctorParameters: function () { return [{ type: CustomTemplatesService }
|
|
3233
|
+
}], ctorParameters: function () { return [{ type: CustomTemplatesService }]; }, propDecorators: { name: [{
|
|
3269
3234
|
type: i0.Input
|
|
3270
3235
|
}], imageUrl: [{
|
|
3271
3236
|
type: i0.Input
|