stream-chat-angular 3.7.0 → 3.7.3

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.
@@ -16,6 +16,10 @@ export declare class AttachmentListComponent implements OnChanges {
16
16
  * The id of the message the attachments belong to
17
17
  */
18
18
  messageId: string | undefined;
19
+ /**
20
+ * The parent id of the message the attachments belong to
21
+ */
22
+ parentMessageId: string | undefined;
19
23
  /**
20
24
  * The attachments to display
21
25
  */
@@ -47,5 +51,5 @@ export declare class AttachmentListComponent implements OnChanges {
47
51
  private createGallery;
48
52
  private closeImageModal;
49
53
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentListComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "attachments": "attachments"; }, {}, never, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, {}, never, never>;
51
55
  }
@@ -270,8 +270,9 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
270
270
  * [Runs a message action](https://getstream.io/chat/docs/rest/#messages-runmessageaction) in the current channel. Updates the message list based on the action result (if no message is returned, the message will be removed from the message list).
271
271
  * @param messageId
272
272
  * @param formData
273
+ * @param parentMessageId
273
274
  */
274
- sendAction(messageId: string, formData: Record<string, string>): Promise<void>;
275
+ sendAction(messageId: string, formData: Record<string, string>, parentMessageId?: string): Promise<void>;
275
276
  /**
276
277
  * Selects or deselects the current message to quote reply to
277
278
  * @param message The message to select, if called with `undefined`, it deselects the message
@@ -88,6 +88,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy {
88
88
  };
89
89
  }>[];
90
90
  getAttachmentListContext(): AttachmentListContext;
91
+ getQuotedMessageAttachmentListContext(): AttachmentListContext;
91
92
  getMessageReactionsContext(): MessageReactionsContext;
92
93
  resendMessage(): void;
93
94
  textClicked(): void;
package/lib/types.d.ts CHANGED
@@ -110,6 +110,7 @@ export declare type ChannelActionsContext<T extends DefaultStreamChatGenerics =
110
110
  export declare type AttachmentListContext = {
111
111
  messageId: string;
112
112
  attachments: Attachment<DefaultStreamChatGenerics>[];
113
+ parentMessageId?: string;
113
114
  };
114
115
  export declare type AvatarType = 'channel' | 'user';
115
116
  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": "3.7.0",
3
+ "version": "3.7.3",
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 = '3.7.0';
1
+ export const version = '3.7.3';