stream-chat-angular 4.57.0 → 4.58.1
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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +43 -19
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/message/message.component.js +21 -13
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +2 -2
- package/esm2015/lib/message-actions.service.js +1 -1
- package/esm2015/lib/message-reactions/message-reactions.component.js +7 -4
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +28 -17
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/message/message.component.d.ts +1 -1
- package/lib/message-actions-box/message-actions-box.component.d.ts +1 -1
- package/lib/message-actions.service.d.ts +5 -1
- package/lib/message-reactions/message-reactions.component.d.ts +1 -1
- package/lib/types.d.ts +6 -0
- package/package.json +1 -1
- package/src/assets/styles/v2/css/index.css +1 -1
- package/src/assets/styles/v2/css/index.layout.css +1 -1
- package/src/assets/styles/v2/scss/Message/Message-layout.scss +2 -1
- package/src/assets/styles/v2/scss/MessageActionsBox/MessageActionsBox-layout.scss +0 -11
- package/src/assets/styles/v2/scss/MessageBounceOptions/MessageBounceOptions-layout.scss +18 -0
- package/src/assets/styles/v2/scss/MessageBounceOptions/MessageBounceOptions-theme.scss +51 -0
- package/src/assets/styles/v2/scss/MessageReactions/MessageReactions-layout.scss +3 -0
- package/src/assets/styles/v2/scss/_base.scss +3 -20
- package/src/assets/styles/v2/scss/index.layout.scss +1 -0
- package/src/assets/styles/v2/scss/index.scss +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -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.
|
|
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
|
|
@@ -76,7 +76,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
|
|
|
76
76
|
hideTooltip(): void;
|
|
77
77
|
trackByMessageReaction(index: number, item: MessageReactionType): string;
|
|
78
78
|
trackByUserId(index: number, item: UserResponse): string;
|
|
79
|
-
react(type: MessageReactionType): void
|
|
79
|
+
react(type: MessageReactionType): Promise<void>;
|
|
80
80
|
isOwnReaction(reactionType: MessageReactionType): boolean;
|
|
81
81
|
isOpenChange: (isOpen: boolean) => void;
|
|
82
82
|
private eventHandler;
|
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