stream-chat-angular 2.16.0 → 2.18.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 +119 -76
- 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 +41 -5
- package/esm2015/lib/icon/icon.component.js +2 -2
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +108 -74
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +11 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/types.d.ts +2 -6
- package/package.json +2 -2
- package/src/assets/version.ts +1 -1
|
@@ -19,18 +19,28 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
19
19
|
*/
|
|
20
20
|
attachments: Attachment<DefaultAttachmentType>[];
|
|
21
21
|
orderedAttachments: Attachment<DefaultAttachmentType>[];
|
|
22
|
+
imagesToView: Attachment<DefaultAttachmentType>[];
|
|
23
|
+
imagesToViewCurrentIndex: number;
|
|
22
24
|
constructor(imageLoadService: ImageLoadService, channelService: ChannelService);
|
|
23
25
|
ngOnChanges(): void;
|
|
24
26
|
trackById(index: number): number;
|
|
25
27
|
isImage(attachment: Attachment): boolean;
|
|
26
28
|
isFile(attachment: Attachment): boolean;
|
|
29
|
+
isGallery(attachment: Attachment): boolean;
|
|
27
30
|
isCard(attachment: Attachment): boolean;
|
|
28
31
|
imageLoaded(): void;
|
|
29
|
-
hasFileSize(attachment: Attachment<DefaultAttachmentType>): boolean | 0 | undefined;
|
|
32
|
+
hasFileSize(attachment: Attachment<DefaultAttachmentType>): boolean | "" | 0 | undefined;
|
|
30
33
|
getFileSize(attachment: Attachment<DefaultAttachmentType>): string;
|
|
31
34
|
trimUrl(url?: string | null): string | null;
|
|
32
35
|
sendAction(action: Action): void;
|
|
33
36
|
trackByActionValue(_: number, item: Action): string | undefined;
|
|
37
|
+
openImageModal(attachments: Attachment[], selectedIndex?: number): void;
|
|
38
|
+
closeImageModal(): void;
|
|
39
|
+
stepImages(dir: -1 | 1): void;
|
|
40
|
+
trackByImageUrl(_: number, item: Attachment): unknown;
|
|
41
|
+
get isImageModalPrevButtonVisible(): boolean;
|
|
42
|
+
get isImageModalNextButtonVisible(): boolean;
|
|
43
|
+
private createGallery;
|
|
34
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentListComponent, never>;
|
|
35
45
|
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "attachments": "attachments"; }, {}, never, never>;
|
|
36
46
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare type Icon = 'action-icon' | 'delivered-icon' | 'reaction-icon' | 'connection-error' | 'send' | 'file-upload' | 'retry' | 'close' | 'file' | 'reply' | 'close-no-outline' | 'reply-in-thread';
|
|
2
|
+
export declare type Icon = 'action-icon' | 'delivered-icon' | 'reaction-icon' | 'connection-error' | 'send' | 'file-upload' | 'retry' | 'close' | 'file' | 'reply' | 'close-no-outline' | 'reply-in-thread' | 'arrow-left' | 'arrow-right';
|
|
3
3
|
/**
|
|
4
4
|
* The `Icon` component can be used to display different icons (i. e. message delivered icon).
|
|
5
5
|
*/
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelMemberResponse, CommandResponse, Event, FormatMessageResponse, LiteralStringForUnion, Mute, UserResponse } from 'stream-chat';
|
|
1
|
+
import type { Attachment, ChannelMemberResponse, CommandResponse, Event, FormatMessageResponse, LiteralStringForUnion, Mute, UserResponse } from 'stream-chat';
|
|
2
2
|
export declare type UnknownType = Record<string, unknown>;
|
|
3
3
|
export declare type CustomTrigger = {
|
|
4
4
|
[key: string]: {
|
|
@@ -8,12 +8,8 @@ export declare type CustomTrigger = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare type DefaultAttachmentType = UnknownType & {
|
|
10
10
|
asset_url?: string;
|
|
11
|
-
file_size?: number;
|
|
12
11
|
id?: string;
|
|
13
|
-
images?: Array<
|
|
14
|
-
image_url?: string;
|
|
15
|
-
thumb_url?: string;
|
|
16
|
-
}>;
|
|
12
|
+
images?: Array<Attachment<DefaultAttachmentType>>;
|
|
17
13
|
mime_type?: string;
|
|
18
14
|
};
|
|
19
15
|
export declare type DefaultChannelType = UnknownType & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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/",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@angular/core": "^12.2.0 || ^13.0.0",
|
|
14
14
|
"@ngx-translate/core": "^13.0.0 || ^14.0.0",
|
|
15
15
|
"stream-chat": "^4.3.0 || ^5.0.0",
|
|
16
|
-
"@stream-io/stream-chat-css": "2.
|
|
16
|
+
"@stream-io/stream-chat-css": "2.5.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"angular-mentions": "^1.4.0",
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.18.0';
|