stream-chat-angular 4.10.1 → 4.11.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.
@@ -1,4 +1,4 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { Action, Attachment } from 'stream-chat';
3
3
  import { ModalContext, DefaultStreamChatGenerics, AttachmentConfigration, VideoAttachmentConfiguration, ImageAttachmentConfiguration } from '../types';
4
4
  import { ChannelService } from '../channel.service';
@@ -25,6 +25,10 @@ export declare class AttachmentListComponent implements OnChanges {
25
25
  * The attachments to display
26
26
  */
27
27
  attachments: Attachment<DefaultStreamChatGenerics>[];
28
+ /**
29
+ * Emits the state of the image carousel window
30
+ */
31
+ readonly imageModalStateChange: EventEmitter<"closed" | "opened">;
28
32
  class: string;
29
33
  orderedAttachments: Attachment<DefaultStreamChatGenerics>[];
30
34
  imagesToView: Attachment<DefaultStreamChatGenerics>[];
@@ -59,5 +63,5 @@ export declare class AttachmentListComponent implements OnChanges {
59
63
  private createGallery;
60
64
  private closeImageModal;
61
65
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentListComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, {}, never, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, { "imageModalStateChange": "imageModalStateChange"; }, never, never>;
63
67
  }
@@ -60,6 +60,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy {
60
60
  popperPlacementAuto: NgxPopperjsPlacements;
61
61
  shouldDisplayTranslationNotice: boolean;
62
62
  displayedMessageTextContent: 'original' | 'translation';
63
+ imageAttachmentModalState: 'opened' | 'closed';
63
64
  private quotedMessageAttachments;
64
65
  private user;
65
66
  private subscriptions;
@@ -33,6 +33,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
33
33
  lastSentMessageId: string | undefined;
34
34
  parentMessage: StreamMessage | undefined;
35
35
  highlightedMessageId: string | undefined;
36
+ isLoading: boolean;
36
37
  private scrollContainer;
37
38
  private parentMessageElement;
38
39
  private latestMessage;
package/lib/types.d.ts CHANGED
@@ -115,6 +115,7 @@ export declare type AttachmentListContext = {
115
115
  messageId: string;
116
116
  attachments: Attachment<DefaultStreamChatGenerics>[];
117
117
  parentMessageId?: string;
118
+ imageModalStateChangeHandler?: (state: 'opened' | 'closed') => {};
118
119
  };
119
120
  export declare type AvatarType = 'channel' | 'user';
120
121
  export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator' | 'reaction';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.10.1",
3
+ "version": "4.11.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.10.1';
1
+ export const version = '4.11.0';