stream-chat-angular 4.12.1 → 4.14.0
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/README.md +1 -1
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +84 -13
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +2 -2
- package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +2 -2
- package/esm2015/lib/avatar/avatar.component.js +56 -6
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +3 -3
- package/esm2015/lib/channel-header/channel-header.component.js +9 -2
- package/esm2015/lib/channel-list/channel-list.component.js +2 -2
- package/esm2015/lib/custom-templates.service.js +5 -1
- package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +2 -2
- package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +2 -2
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +73 -14
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +1 -1
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +1 -1
- package/lib/avatar/avatar.component.d.ts +12 -3
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +3 -1
- package/lib/channel-list/channel-list.component.d.ts +1 -1
- package/lib/custom-templates.service.d.ts +5 -1
- package/lib/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/types.d.ts +3 -0
- package/package.json +1 -1
- package/src/assets/styles/css/index.css +1 -1
- package/src/assets/styles/scss/Card.scss +1 -1
- package/src/assets/styles/scss/ChannelHeader.scss +1 -1
- package/src/assets/styles/scss/MessageInput.scss +1 -1
- package/src/assets/styles/scss/TypingIndicator.scss +1 -1
- package/src/assets/styles/scss/_variables.scss +1 -1
- package/src/assets/styles/v2/css/index.css +1 -1
- package/src/assets/styles/v2/css/index.css.map +1 -1
- package/src/assets/styles/v2/css/index.layout.css +1 -1
- package/src/assets/styles/v2/css/index.layout.css.map +1 -1
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +11 -13
- package/src/assets/styles/v2/scss/Avatar/Avatar-layout.scss +10 -0
- package/src/assets/styles/v2/scss/Avatar/Avatar-theme.scss +11 -0
- package/src/assets/styles/v2/scss/MessageList/MessageList-layout.scss +8 -0
- package/src/assets/styles/v2/scss/_global-theme-variables.scss +4 -0
- package/src/assets/version.ts +1 -1
|
@@ -7,7 +7,7 @@ import { AttachmentConfigurationService } from '../attachment-configuration.serv
|
|
|
7
7
|
import { ThemeService } from '../theme.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* The `AttachmentList`
|
|
10
|
+
* The `AttachmentList` component displays the attachments of a message
|
|
11
11
|
*/
|
|
12
12
|
export declare class AttachmentListComponent implements OnChanges {
|
|
13
13
|
readonly customTemplatesService: CustomTemplatesService;
|
|
@@ -4,7 +4,7 @@ import { ThemeService } from '../theme.service';
|
|
|
4
4
|
import { AttachmentUpload } from '../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `AttachmentPreviewList`
|
|
7
|
+
* The `AttachmentPreviewList` component displays a preview of the attachments uploaded to a message. Users can delete attachments using the preview component, or retry upload if it failed previously.
|
|
8
8
|
*/
|
|
9
9
|
export declare class AttachmentPreviewListComponent {
|
|
10
10
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { Channel, User } from 'stream-chat';
|
|
2
3
|
import { ChatClientService } from '../chat-client.service';
|
|
3
4
|
import { AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
|
|
@@ -5,8 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
/**
|
|
6
7
|
* The `Avatar` component displays the provided image, with fallback to the first letter of the optional name input.
|
|
7
8
|
*/
|
|
8
|
-
export declare class AvatarComponent {
|
|
9
|
+
export declare class AvatarComponent implements OnChanges {
|
|
9
10
|
private chatClientService;
|
|
11
|
+
private ngZone;
|
|
10
12
|
/**
|
|
11
13
|
* An optional name of the image, used for fallback image or image title (if `imageUrl` is provided)
|
|
12
14
|
*/
|
|
@@ -35,12 +37,19 @@ export declare class AvatarComponent {
|
|
|
35
37
|
* The type of the avatar: channel if channel avatar is displayed, user if user avatar is displayed
|
|
36
38
|
*/
|
|
37
39
|
type: AvatarType | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* If a channel avatar is displayed, and if the channel has exactly two members a green dot is displayed if the other member is online. Set this flag to `false` to turn off this behavior.
|
|
42
|
+
*/
|
|
43
|
+
showOnlineIndicator: boolean;
|
|
38
44
|
isLoaded: boolean;
|
|
39
45
|
isError: boolean;
|
|
40
|
-
|
|
46
|
+
isOnline: boolean;
|
|
47
|
+
private isOnlineSubscription?;
|
|
48
|
+
constructor(chatClientService: ChatClientService, ngZone: NgZone);
|
|
49
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
41
50
|
get initials(): string;
|
|
42
51
|
get fallbackChannelImage(): string | undefined;
|
|
43
52
|
private getOtherMemberIfOneToOneChannel;
|
|
44
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; }, {}, never, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "showOnlineIndicator": "showOnlineIndicator"; }, {}, never, never>;
|
|
46
55
|
}
|
|
@@ -3,7 +3,7 @@ import { CustomTemplatesService } from '../custom-templates.service';
|
|
|
3
3
|
import { AvatarContext, AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* The `AvatarPlaceholder` component displays the [default avatar](./AvatarComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This
|
|
6
|
+
* 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.
|
|
7
7
|
*/
|
|
8
8
|
export declare class AvatarPlaceholderComponent {
|
|
9
9
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -4,7 +4,7 @@ import { ChannelListToggleService } from '../channel-list/channel-list-toggle.se
|
|
|
4
4
|
import { ChannelService } from '../channel.service';
|
|
5
5
|
import { ChatClientService } from '../chat-client.service';
|
|
6
6
|
import { CustomTemplatesService } from '../custom-templates.service';
|
|
7
|
-
import { ChannelActionsContext, DefaultStreamChatGenerics } from '../types';
|
|
7
|
+
import { ChannelActionsContext, ChannelHeaderInfoContext, DefaultStreamChatGenerics } from '../types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* The `ChannelHeader` component displays the avatar and name of the currently active channel along with member and watcher information. You can read about [the difference between members and watchers](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript#watchers-vs-members) in the platform documentation. Please note that number of watchers is only displayed if the user has [`connect-events` capability](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript)
|
|
@@ -16,6 +16,7 @@ export declare class ChannelHeaderComponent implements OnInit, OnDestroy {
|
|
|
16
16
|
private cdRef;
|
|
17
17
|
private chatClientService;
|
|
18
18
|
channelActionsTemplate?: TemplateRef<ChannelActionsContext>;
|
|
19
|
+
channelHeaderInfoTemplate?: TemplateRef<ChannelHeaderInfoContext>;
|
|
19
20
|
activeChannel: Channel<DefaultStreamChatGenerics> | undefined;
|
|
20
21
|
canReceiveConnectEvents: boolean | undefined;
|
|
21
22
|
private subscriptions;
|
|
@@ -24,6 +25,7 @@ export declare class ChannelHeaderComponent implements OnInit, OnDestroy {
|
|
|
24
25
|
ngOnDestroy(): void;
|
|
25
26
|
toggleMenu(event: Event): void;
|
|
26
27
|
getChannelActionsContext(): ChannelActionsContext;
|
|
28
|
+
getChannelInfoContext(): ChannelHeaderInfoContext;
|
|
27
29
|
get memberCountParam(): {
|
|
28
30
|
memberCount: number;
|
|
29
31
|
};
|
|
@@ -33,5 +33,5 @@ export declare class ChannelListComponent implements AfterViewInit, OnDestroy {
|
|
|
33
33
|
channelSelected(): void;
|
|
34
34
|
getChannelPreviewContext(channel: Channel<DefaultStreamChatGenerics>): ChannelPreviewContext<DefaultStreamChatGenerics>;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelListComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelListComponent, "stream-channel-list", never, {}, {}, never,
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelListComponent, "stream-channel-list", never, {}, {}, never, ["[channel-list-top]", "[channel-list-bottom]"]>;
|
|
37
37
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelPreviewContext, CommandAutocompleteListItemContext, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, ThreadHeaderContext, TypingIndicatorContext } from './types';
|
|
3
|
+
import { AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelHeaderInfoContext, ChannelPreviewContext, CommandAutocompleteListItemContext, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, ThreadHeaderContext, TypingIndicatorContext } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* A central location for registering your custom templates to override parts of the chat application.
|
|
@@ -138,6 +138,10 @@ export declare class CustomTemplatesService {
|
|
|
138
138
|
* The template used for displaying the sent state of the message inside the [message component](../components/MessageComponent.mdx)
|
|
139
139
|
*/
|
|
140
140
|
readStatusTemplate$: BehaviorSubject<TemplateRef<ReadStatusContext> | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* The template used to display additional information about a channel under the channel name inside the [channel header component](../components/ChannelHeaderComponent.mdx)
|
|
143
|
+
*/
|
|
144
|
+
channelHeaderInfoTemplate$: BehaviorSubject<TemplateRef<ChannelHeaderInfoContext<import("./types").DefaultStreamChatGenerics>> | undefined>;
|
|
141
145
|
constructor();
|
|
142
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplatesService, never>;
|
|
143
147
|
static ɵprov: i0.ɵɵInjectableDeclaration<CustomTemplatesService>;
|
|
@@ -3,7 +3,7 @@ import { Icon } from '../icon/icon.component';
|
|
|
3
3
|
import { IconContext } from '../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* The `IconPlaceholder` component displays the [default icons](./IconComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This
|
|
6
|
+
* The `IconPlaceholder` component displays the [default icons](./IconComponent.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.
|
|
7
7
|
*/
|
|
8
8
|
export declare class IconPlaceholderComponent {
|
|
9
9
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -2,7 +2,7 @@ import { CustomTemplatesService } from '../custom-templates.service';
|
|
|
2
2
|
import { LoadingIndicatorContext } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
* The `LoadingInficatorPlaceholder` component displays the [default loading indicator](./LoadingIndicatorComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This
|
|
5
|
+
* The `LoadingInficatorPlaceholder` component displays the [default loading indicator](./LoadingIndicatorComponent.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.
|
|
6
6
|
*/
|
|
7
7
|
export declare class LoadingIndicatorPlaceholderComponent {
|
|
8
8
|
customTemplatesService: CustomTemplatesService;
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED