stream-chat-angular 4.12.0 → 4.13.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.
Files changed (28) hide show
  1. package/README.md +1 -1
  2. package/assets/version.d.ts +1 -1
  3. package/bundles/stream-chat-angular.umd.js +20 -9
  4. package/bundles/stream-chat-angular.umd.js.map +1 -1
  5. package/esm2015/assets/version.js +2 -2
  6. package/esm2015/lib/attachment-list/attachment-list.component.js +2 -2
  7. package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +2 -2
  8. package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +2 -2
  9. package/esm2015/lib/channel-header/channel-header.component.js +9 -2
  10. package/esm2015/lib/channel-list/channel-list.component.js +2 -2
  11. package/esm2015/lib/custom-templates.service.js +5 -1
  12. package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +2 -2
  13. package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +2 -2
  14. package/esm2015/lib/read-by.js +2 -2
  15. package/esm2015/lib/types.js +1 -1
  16. package/fesm2015/stream-chat-angular.js +20 -9
  17. package/fesm2015/stream-chat-angular.js.map +1 -1
  18. package/lib/attachment-list/attachment-list.component.d.ts +1 -1
  19. package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +1 -1
  20. package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
  21. package/lib/channel-header/channel-header.component.d.ts +3 -1
  22. package/lib/channel-list/channel-list.component.d.ts +1 -1
  23. package/lib/custom-templates.service.d.ts +5 -1
  24. package/lib/icon-placeholder/icon-placeholder.component.d.ts +1 -1
  25. package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
  26. package/lib/types.d.ts +3 -0
  27. package/package.json +1 -1
  28. 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` compontent displays the attachments of a message
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` compontent 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.
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
  /**
@@ -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 componet is used by the SDK internally, you likely won't need to use it.
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, 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 componet is used by the SDK internally, you likely won't need to use it.
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 componet is used by the SDK internally, you likely won't need to use it.
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
@@ -206,3 +206,6 @@ export declare type ReadStatusContext = {
206
206
  message: StreamMessage;
207
207
  readByText: string;
208
208
  };
209
+ export declare type ChannelHeaderInfoContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
210
+ channel: Channel<T>;
211
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.12.0",
3
+ "version": "4.13.0",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -1 +1 @@
1
- export const version = '4.12.0';
1
+ export const version = '4.13.0';