stream-chat-angular 4.10.0 → 4.11.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 +60 -46
- 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 +11 -3
- package/esm2015/lib/message/message.component.js +4 -2
- package/esm2015/lib/message-input/message-input.component.js +1 -1
- package/esm2015/lib/message-list/message-list.component.js +10 -6
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +42 -29
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +6 -2
- package/lib/message/message.component.d.ts +1 -0
- package/lib/message-list/message-list.component.d.ts +1 -0
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Action, Attachment } from 'stream-chat';
|
|
3
3
|
import { ModalContext, DefaultStreamChatGenerics, AttachmentConfigration, VideoAttachmentConfiguration, ImageAttachmentConfiguration } from '../types';
|
|
4
4
|
import { ChannelService } from '../channel.service';
|
|
@@ -25,6 +25,10 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
25
25
|
* The attachments to display
|
|
26
26
|
*/
|
|
27
27
|
attachments: Attachment<DefaultStreamChatGenerics>[];
|
|
28
|
+
/**
|
|
29
|
+
* Emits the state of the image carousel window
|
|
30
|
+
*/
|
|
31
|
+
readonly imageModalStateChange: EventEmitter<"closed" | "opened">;
|
|
28
32
|
class: string;
|
|
29
33
|
orderedAttachments: Attachment<DefaultStreamChatGenerics>[];
|
|
30
34
|
imagesToView: Attachment<DefaultStreamChatGenerics>[];
|
|
@@ -59,5 +63,5 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
59
63
|
private createGallery;
|
|
60
64
|
private closeImageModal;
|
|
61
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentListComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, {}, never, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, { "imageModalStateChange": "imageModalStateChange"; }, never, never>;
|
|
63
67
|
}
|
|
@@ -60,6 +60,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
60
60
|
popperPlacementAuto: NgxPopperjsPlacements;
|
|
61
61
|
shouldDisplayTranslationNotice: boolean;
|
|
62
62
|
displayedMessageTextContent: 'original' | 'translation';
|
|
63
|
+
imageAttachmentModalState: 'opened' | 'closed';
|
|
63
64
|
private quotedMessageAttachments;
|
|
64
65
|
private user;
|
|
65
66
|
private subscriptions;
|
|
@@ -33,6 +33,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
33
33
|
lastSentMessageId: string | undefined;
|
|
34
34
|
parentMessage: StreamMessage | undefined;
|
|
35
35
|
highlightedMessageId: string | undefined;
|
|
36
|
+
isLoading: boolean;
|
|
36
37
|
private scrollContainer;
|
|
37
38
|
private parentMessageElement;
|
|
38
39
|
private latestMessage;
|
package/lib/types.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export declare type AttachmentListContext = {
|
|
|
115
115
|
messageId: string;
|
|
116
116
|
attachments: Attachment<DefaultStreamChatGenerics>[];
|
|
117
117
|
parentMessageId?: string;
|
|
118
|
+
imageModalStateChangeHandler?: (state: 'opened' | 'closed') => {};
|
|
118
119
|
};
|
|
119
120
|
export declare type AvatarType = 'channel' | 'user';
|
|
120
121
|
export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator' | 'reaction';
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.11.0';
|