stream-chat-angular 4.54.1 → 4.55.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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +16 -6
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/message-reactions/message-reactions.component.js +16 -6
- package/esm2015/lib/message-reactions.service.js +1 -1
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +16 -6
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/message-reactions/message-reactions.component.d.ts +1 -1
- package/lib/message-reactions.service.d.ts +7 -1
- package/lib/types.d.ts +4 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -63,7 +63,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
|
|
|
63
63
|
get reactionOptions(): MessageReactionType[];
|
|
64
64
|
getLatestUserByReaction(reactionType: MessageReactionType): UserResponse<DefaultStreamChatGenerics> | null | undefined;
|
|
65
65
|
getEmojiByReaction(reactionType: MessageReactionType): string;
|
|
66
|
-
reactionSelected(
|
|
66
|
+
reactionSelected(reactionType: string): void;
|
|
67
67
|
getUsersByReaction(reactionType: MessageReactionType): string;
|
|
68
68
|
getAllUsersByReaction(reactionType?: MessageReactionType): UserResponse<DefaultStreamChatGenerics>[];
|
|
69
69
|
showTooltip(event: Event, reactionType: MessageReactionType): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessageReactionType } from './types';
|
|
1
|
+
import { MessageReactionClickDetails, MessageReactionType } from './types';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -14,6 +14,12 @@ export declare class MessageReactionsService {
|
|
|
14
14
|
reactions$: BehaviorSubject<{
|
|
15
15
|
[x: string]: string;
|
|
16
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* By default the [`MessageReactionsComponent`](../../components/MessageReactionsComponent) will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.
|
|
19
|
+
*
|
|
20
|
+
* The event handler can retrieve all reactions of a message inside the active channel using the [`channelService.getMessageReactions` method](../../services/ChannelService/#getmessagereactions)
|
|
21
|
+
*/
|
|
22
|
+
customReactionClickHandler?: (details: MessageReactionClickDetails) => void;
|
|
17
23
|
constructor();
|
|
18
24
|
/**
|
|
19
25
|
* Sets the enabled reactions
|
package/lib/types.d.ts
CHANGED
|
@@ -268,4 +268,8 @@ export declare type FiltertNextPageConfiguration<T extends DefaultStreamChatGene
|
|
|
268
268
|
paginationFilter: ChannelFilters<T>;
|
|
269
269
|
};
|
|
270
270
|
export declare type NextPageConfiguration = OffsetNextPageConfiguration | FiltertNextPageConfiguration;
|
|
271
|
+
export declare type MessageReactionClickDetails = {
|
|
272
|
+
messageId: string;
|
|
273
|
+
reactionType: string;
|
|
274
|
+
};
|
|
271
275
|
export {};
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.55.0';
|