stream-chat-angular 2.13.1 → 2.16.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 +472 -134
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +7 -1
- package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +4 -1
- package/esm2015/lib/attachment.service.js +1 -1
- package/esm2015/lib/avatar/avatar.component.js +7 -1
- package/esm2015/lib/channel/channel.component.js +4 -1
- package/esm2015/lib/channel-header/channel-header.component.js +4 -1
- package/esm2015/lib/channel-list/channel-list.component.js +4 -1
- package/esm2015/lib/channel-preview/channel-preview.component.js +4 -1
- package/esm2015/lib/channel.service.js +89 -3
- package/esm2015/lib/icon/icon.component.js +4 -1
- package/esm2015/lib/loading-indicator/loading-indicator.component.js +10 -1
- package/esm2015/lib/message/message.component.js +10 -1
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +19 -1
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +22 -1
- package/esm2015/lib/message-input/emoji-input.service.js +3 -3
- package/esm2015/lib/message-input/message-input-config.service.js +2 -2
- package/esm2015/lib/message-input/message-input.component.js +74 -10
- package/esm2015/lib/message-input/textarea/textarea.component.js +13 -1
- package/esm2015/lib/message-list/message-list.component.js +26 -7
- package/esm2015/lib/message-reactions/message-reactions.component.js +22 -4
- package/esm2015/lib/modal/modal.component.js +10 -1
- package/esm2015/lib/notification/notification.component.js +4 -1
- package/esm2015/lib/notification-list/notification-list.component.js +4 -1
- package/esm2015/lib/notification.service.js +2 -2
- package/esm2015/lib/thread/thread.component.js +4 -1
- package/fesm2015/stream-chat-angular.js +339 -37
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +9 -0
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +3 -0
- package/lib/attachment.service.d.ts +1 -1
- package/lib/avatar/avatar.component.d.ts +12 -0
- package/lib/channel/channel.component.d.ts +3 -0
- package/lib/channel-header/channel-header.component.d.ts +3 -0
- package/lib/channel-list/channel-list.component.d.ts +6 -0
- package/lib/channel-preview/channel-preview.component.d.ts +6 -0
- package/lib/channel.service.d.ts +34 -1
- package/lib/icon/icon.component.d.ts +9 -0
- package/lib/loading-indicator/loading-indicator.component.d.ts +9 -0
- package/lib/message/message.component.d.ts +27 -3
- package/lib/message-actions-box/message-actions-box.component.d.ts +24 -0
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +27 -0
- package/lib/message-input/emoji-input.service.d.ts +2 -2
- package/lib/message-input/message-input-config.service.d.ts +1 -1
- package/lib/message-input/message-input.component.d.ts +44 -2
- package/lib/message-input/textarea/textarea.component.d.ts +12 -0
- package/lib/message-list/message-list.component.d.ts +30 -4
- package/lib/message-reactions/message-reactions.component.d.ts +22 -1
- package/lib/modal/modal.component.d.ts +9 -0
- package/lib/notification/notification.component.d.ts +6 -0
- package/lib/notification-list/notification-list.component.d.ts +3 -0
- package/lib/notification.service.d.ts +1 -1
- package/lib/thread/thread.component.d.ts +3 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -4,17 +4,38 @@ import { ChannelService } from '../channel.service';
|
|
|
4
4
|
import { DefaultReactionType, DefaultUserType } from '../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare type MessageReactionType = 'angry' | 'haha' | 'like' | 'love' | 'sad' | 'wow';
|
|
7
|
+
/**
|
|
8
|
+
* The `MessageReactions` component displays the reactions of a message, the current user can add and remove reactions. You can read more about [message reactions](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript) in the platform documentation.
|
|
9
|
+
*/
|
|
7
10
|
export declare class MessageReactionsComponent implements AfterViewChecked, OnChanges {
|
|
8
11
|
private cdRef;
|
|
9
12
|
private channelService;
|
|
13
|
+
/**
|
|
14
|
+
* The id of the message the reactions belong to
|
|
15
|
+
*/
|
|
10
16
|
messageId: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The number of reactions grouped by [reaction types](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/message-reactions/message-reactions.component.ts)
|
|
19
|
+
*/
|
|
11
20
|
messageReactionCounts: {
|
|
12
21
|
[key in MessageReactionType]?: number;
|
|
13
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Indicates if the selector should be opened or closed. Adding a UI element to open and close the selector is the parent's component responsibility.
|
|
25
|
+
*/
|
|
14
26
|
isSelectorOpen: boolean;
|
|
15
|
-
|
|
27
|
+
/**
|
|
28
|
+
* List of reactions of a [message](../types/stream-message.mdx), used to display the users of a reaction type.
|
|
29
|
+
*/
|
|
16
30
|
latestReactions: ReactionResponse<DefaultReactionType, DefaultUserType>[];
|
|
31
|
+
/**
|
|
32
|
+
* List of the user's own reactions of a [message](../types/stream-message.mdx), used to display the users of a reaction type.
|
|
33
|
+
*/
|
|
17
34
|
ownReactions: ReactionResponse<DefaultReactionType, DefaultUserType>[];
|
|
35
|
+
/**
|
|
36
|
+
* Indicates if the selector should be opened or closed. Adding a UI element to open and close the selector is the parent's component responsibility.
|
|
37
|
+
*/
|
|
38
|
+
readonly isSelectorOpenChange: EventEmitter<boolean>;
|
|
18
39
|
tooltipPositions: {
|
|
19
40
|
arrow: number;
|
|
20
41
|
tooltip: number;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The `Modal` component displays its content in an overlay. The modal can be closed with a close button, if the user clicks outside of the modal content, or if the escape button is pressed. The modal can also be closed from outside.
|
|
5
|
+
*/
|
|
3
6
|
export declare class ModalComponent implements OnChanges {
|
|
7
|
+
/**
|
|
8
|
+
* If `true` the modal will be displayed, if `false` the modal will be hidden
|
|
9
|
+
*/
|
|
4
10
|
isOpen: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Emits `true` if the modal becomes visible, and `false` if the modal is closed.
|
|
13
|
+
*/
|
|
5
14
|
readonly isOpenChange: EventEmitter<boolean>;
|
|
6
15
|
private content;
|
|
7
16
|
constructor();
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { NotificationType } from '../notification.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The `Notification` component displays a notification within the [`NotificationList`](./NotificationListComponent.mdx)
|
|
5
|
+
*/
|
|
3
6
|
export declare class NotificationComponent {
|
|
7
|
+
/**
|
|
8
|
+
* The type of the notification
|
|
9
|
+
*/
|
|
4
10
|
type: NotificationType | undefined;
|
|
5
11
|
constructor();
|
|
6
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { NotificationPayload, NotificationService } from '../notification.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* The `NotificationList` component displays the list of active notifications.
|
|
6
|
+
*/
|
|
4
7
|
export declare class NotificationListComponent {
|
|
5
8
|
private notificationService;
|
|
6
9
|
notifications$: Observable<NotificationPayload[]>;
|
|
@@ -7,7 +7,7 @@ export declare type NotificationPayload = {
|
|
|
7
7
|
translateParams?: Object;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/
|
|
10
|
+
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
11
11
|
*/
|
|
12
12
|
export declare class NotificationService {
|
|
13
13
|
/**
|
|
@@ -2,6 +2,9 @@ import { OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { ChannelService } from '../channel.service';
|
|
3
3
|
import { StreamMessage } from '../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* The `Thread` component represents a [message thread](https://getstream.io/chat/docs/javascript/threads/?language=javascript), it is a container component that displays a thread with a header, [`MessageList`](./MessageListComponent.mdx) and [`MessageInput`](./MessageInputComponent.mdx) components.
|
|
7
|
+
*/
|
|
5
8
|
export declare class ThreadComponent implements OnDestroy {
|
|
6
9
|
private channelService;
|
|
7
10
|
private class;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.16.0';
|