stream-chat-angular 4.57.0 → 4.58.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.
@@ -96,6 +96,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
96
96
  ngOnChanges(changes: SimpleChanges): void;
97
97
  ngAfterViewInit(): void;
98
98
  ngOnDestroy(): void;
99
+ messageActionsClicked(): void;
99
100
  getAttachmentListContext(): AttachmentListContext;
100
101
  getMessageContext(): SystemMessageContext;
101
102
  getQuotedMessageAttachmentListContext(): AttachmentListContext;
@@ -111,7 +112,6 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
111
112
  jumpToMessage(messageId: string, parentMessageId?: string): void;
112
113
  displayTranslatedMessage(): void;
113
114
  displayOriginalMessage(): void;
114
- mouseLeft(): void;
115
115
  private createMessageParts;
116
116
  private getMessageContent;
117
117
  private fixEmojiDisplay;
@@ -47,7 +47,7 @@ export declare class MessageActionsBoxComponent implements OnInit, OnChanges, On
47
47
  /**
48
48
  * An event which emits `true` if the edit message modal is open, and `false` when it is closed.
49
49
  *
50
- * @deprecated components should use `messageReactionsService.getAuthorizedMessageActionsCount` method
50
+ * @deprecated components should use `messageReactionsService.messageToEdit$` Observable
51
51
  *
52
52
  * More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
53
53
  */
@@ -1,5 +1,5 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
- import { CustomMessageActionItem, DefaultStreamChatGenerics, MessageActionItem, StreamMessage } from './types';
2
+ import { CustomMessageActionItem, DefaultStreamChatGenerics, MessageActionItem, MessageActionsClickDetails, StreamMessage } from './types';
3
3
  import { ChatClientService } from './chat-client.service';
4
4
  import { NotificationService } from './notification.service';
5
5
  import { ChannelService } from './channel.service';
@@ -23,6 +23,10 @@ export declare class MessageActionsService<T extends DefaultStreamChatGenerics =
23
23
  * You can pass your own custom actions that will be displayed inside the built-in message actions component
24
24
  */
25
25
  customActions$: BehaviorSubject<CustomMessageActionItem<DefaultStreamChatGenerics>[]>;
26
+ /**
27
+ * By default the [`MessageComponent`](../../components/MessageComponent) will display the [`MessageActionsBoxComponent`](../../components/MessageActionsBoxComponent). You can override that behavior by providing your own event handler.
28
+ */
29
+ customActionClickHandler?: (details: MessageActionsClickDetails<T>) => void;
26
30
  constructor(chatClientService: ChatClientService, notificationService: NotificationService, channelService: ChannelService);
27
31
  /**
28
32
  * This method returns how many authorized actions are available to the given message
package/lib/types.d.ts CHANGED
@@ -290,4 +290,10 @@ export declare type MessageReactionClickDetails = {
290
290
  messageId: string;
291
291
  reactionType: string;
292
292
  };
293
+ export declare type MessageActionsClickDetails<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
294
+ message: StreamMessage<T>;
295
+ enabledActions: string[];
296
+ isMine: boolean;
297
+ customActions: CustomMessageActionItem[];
298
+ };
293
299
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.57.0",
3
+ "version": "4.58.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/",