stream-chat-angular 5.9.1 → 5.11.0-test-update.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/esm2020/assets/version.mjs +2 -2
- package/esm2020/lib/attachment.service.mjs +4 -4
- package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +2 -2
- package/esm2020/lib/channel/channel.component.mjs +2 -2
- package/esm2020/lib/channel-header/channel-header.component.mjs +2 -2
- package/esm2020/lib/channel-query.mjs +1 -1
- package/esm2020/lib/channel.service.mjs +15 -15
- package/esm2020/lib/chat-client.service.mjs +7 -7
- package/esm2020/lib/custom-templates.service.mjs +44 -44
- package/esm2020/lib/icon/icon-placeholder/icon-placeholder.component.mjs +2 -2
- package/esm2020/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +2 -2
- package/esm2020/lib/message/message.component.mjs +4 -4
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +3 -3
- package/esm2020/lib/message-actions.service.mjs +2 -2
- package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +2 -2
- package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +86 -33
- package/esm2020/lib/message-input/emoji-input.service.mjs +3 -3
- package/esm2020/lib/message-input/message-input-config.service.mjs +11 -4
- package/esm2020/lib/message-input/message-input.component.mjs +4 -4
- package/esm2020/lib/message-input/textarea/textarea.component.mjs +2 -2
- package/esm2020/lib/message-list/message-list.component.mjs +2 -2
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +5 -5
- package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +3 -3
- package/esm2020/lib/message-reactions.service.mjs +5 -5
- package/esm2020/lib/message.service.mjs +2 -2
- package/esm2020/lib/notification/notification.component.mjs +2 -2
- package/esm2020/lib/notification.service.mjs +2 -2
- package/esm2020/lib/stream-i18n.service.mjs +2 -2
- package/esm2020/lib/theme.service.mjs +2 -2
- package/esm2020/lib/thread/thread.component.mjs +2 -2
- package/esm2020/lib/types.mjs +1 -1
- package/fesm2015/stream-chat-angular.mjs +193 -136
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +191 -133
- package/fesm2020/stream-chat-angular.mjs.map +1 -1
- package/lib/attachment.service.d.ts +4 -4
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel/channel.component.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +1 -1
- package/lib/channel-query.d.ts +1 -1
- package/lib/channel.service.d.ts +37 -37
- package/lib/chat-client.service.d.ts +10 -10
- package/lib/custom-templates.service.d.ts +43 -43
- package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +3 -3
- package/lib/message-actions-box/message-actions-box.component.d.ts +2 -2
- package/lib/message-actions.service.d.ts +2 -2
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +8 -5
- package/lib/message-input/emoji-input.service.d.ts +2 -2
- package/lib/message-input/message-input-config.service.d.ts +12 -4
- package/lib/message-input/message-input.component.d.ts +8 -8
- package/lib/message-input/textarea/textarea.component.d.ts +2 -2
- package/lib/message-list/message-list.component.d.ts +1 -1
- package/lib/message-reactions/message-reactions.component.d.ts +4 -4
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +2 -2
- package/lib/message-reactions.service.d.ts +6 -6
- package/lib/message.service.d.ts +1 -1
- package/lib/notification/notification.component.d.ts +1 -1
- package/lib/notification.service.d.ts +1 -1
- package/lib/stream-i18n.service.d.ts +1 -1
- package/lib/theme.service.d.ts +1 -1
- package/lib/thread/thread.component.d.ts +1 -1
- package/lib/types.d.ts +40 -1
- package/package.json +2 -2
- package/src/assets/version.ts +1 -1
|
@@ -5,14 +5,14 @@ import { ChannelService } from '../channel.service';
|
|
|
5
5
|
import { MessageReactionsService } from '../message-reactions.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](
|
|
8
|
+
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](/chat/docs/sdk/angular/services/MessageReactionsService/). You can read more about [message reactions](/chat/docs/javascript/send_reaction/) in the platform documentation.
|
|
9
9
|
*/
|
|
10
10
|
export declare class MessageReactionsSelectorComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
11
|
private channelService;
|
|
12
12
|
private messageReactionsService;
|
|
13
13
|
private cdRef;
|
|
14
14
|
/**
|
|
15
|
-
* List of the user's own reactions of a [message](
|
|
15
|
+
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
16
16
|
*/
|
|
17
17
|
ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
18
18
|
/**
|
|
@@ -4,24 +4,24 @@ import { ChatClientService } from './chat-client.service';
|
|
|
4
4
|
import { NotificationService } from './notification.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `MessageReactionsService` provides customization options to message [reactions](
|
|
7
|
+
* The `MessageReactionsService` provides customization options to message [reactions](/chat/docs/javascript/send_reaction/).
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class MessageReactionsService {
|
|
11
11
|
private chatClientService;
|
|
12
12
|
private notificationService;
|
|
13
13
|
/**
|
|
14
|
-
* The enabled [reactions](
|
|
14
|
+
* The enabled [reactions](/chat/docs/javascript/send_reaction/) and the associated emoji
|
|
15
15
|
*
|
|
16
|
-
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](
|
|
16
|
+
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](/chat/docs/sdk/angular/services/CustomTemplatesService/#messagereactionstemplate/)
|
|
17
17
|
*/
|
|
18
18
|
reactions$: BehaviorSubject<{
|
|
19
19
|
[x: string]: string;
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
|
-
* By default the [`MessageReactionsComponent`](
|
|
22
|
+
* By default the [`MessageReactionsComponent`](/chat/docs/sdk/angular/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.
|
|
23
23
|
*
|
|
24
|
-
* The event handler can retrieve all reactions of a message using the [`messageReactionsService.queryReactions()`](
|
|
24
|
+
* The event handler can retrieve all reactions of a message using the [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
|
|
25
25
|
*/
|
|
26
26
|
customReactionClickHandler?: (details: MessageReactionClickDetails) => void;
|
|
27
27
|
constructor(chatClientService: ChatClientService, notificationService: NotificationService);
|
|
@@ -38,7 +38,7 @@ export declare class MessageReactionsService {
|
|
|
38
38
|
[key in MessageReactionType]: string;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* Query reactions of a specific message, more info in the [API documentation](
|
|
41
|
+
* Query reactions of a specific message, more info in the [API documentation](/chat/docs/javascript/send_reaction/#query-reactions)
|
|
42
42
|
* @param messageId
|
|
43
43
|
* @param type
|
|
44
44
|
* @param next
|
package/lib/message.service.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class MessageService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
9
9
|
* Decides if the message content should be formatted as text or HTML
|
|
10
10
|
*
|
|
11
11
|
* If you display messages as text the following parts are still be displayed as HTML:
|
|
12
|
-
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](
|
|
12
|
+
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](/chat/docs/sdk/angular/services/CustomTemplatesService/#mentiontemplate)
|
|
13
13
|
* - links -> you can customize this by providing you own [`customLinkRenderer`](#customlinkrenderer) method
|
|
14
14
|
*/
|
|
15
15
|
displayAs: 'text' | 'html';
|
|
@@ -2,7 +2,7 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { NotificationType } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
* The `Notification` component displays a notification within the [`NotificationList`](
|
|
5
|
+
* The `Notification` component displays a notification within the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/)
|
|
6
6
|
*/
|
|
7
7
|
export declare class NotificationComponent {
|
|
8
8
|
/**
|
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { NotificationPayload, NotificationType } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](
|
|
6
|
+
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) component displays the currently active notifications.
|
|
7
7
|
*/
|
|
8
8
|
export declare class NotificationService {
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](
|
|
4
|
+
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/concepts/translation/) covers this topic in detail.
|
|
5
5
|
*/
|
|
6
6
|
export declare class StreamI18nService {
|
|
7
7
|
private translteService;
|
package/lib/theme.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](
|
|
4
|
+
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/theming/themingv2/) gives a complete overview about the topic.
|
|
5
5
|
*/
|
|
6
6
|
export declare class ThemeService {
|
|
7
7
|
/**
|
|
@@ -6,7 +6,7 @@ import { CustomTemplatesService } from '../custom-templates.service';
|
|
|
6
6
|
import { DefaultStreamChatGenerics, StreamMessage, ThreadHeaderContext } from '../types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* The `Thread` component represents a [message thread](
|
|
9
|
+
* The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent) and [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components.
|
|
10
10
|
*/
|
|
11
11
|
export declare class ThreadComponent implements OnDestroy {
|
|
12
12
|
customTemplatesService: CustomTemplatesService;
|
package/lib/types.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare type MessageReactionsContext = {
|
|
|
208
208
|
messageReactionCounts: {
|
|
209
209
|
[key in MessageReactionType]?: number;
|
|
210
210
|
};
|
|
211
|
-
/** @deprecated you can fetch the reactions using [`chatService.chatClient.queryReactions()`](
|
|
211
|
+
/** @deprecated you can fetch the reactions using [`chatService.chatClient.queryReactions()`](/chat/docs/javascript/send_reaction/&q=queryReactions#query-reactions) */
|
|
212
212
|
latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
213
213
|
ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
214
214
|
messageReactionGroups: {
|
|
@@ -338,4 +338,43 @@ export declare type CustomAttachmentPreviewListContext<T extends DefaultStreamCh
|
|
|
338
338
|
export declare type ThreadReplyButtonContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
339
339
|
message: StreamMessage<T>;
|
|
340
340
|
};
|
|
341
|
+
export declare type CustomAutocompleteItemContext = {
|
|
342
|
+
item: CustomAutocompleteItem;
|
|
343
|
+
};
|
|
344
|
+
export declare type CustomAutocompleteItem = {
|
|
345
|
+
/**
|
|
346
|
+
* This is the text that will be inserted into the message input once a user selects an option (appended after the trigger character)
|
|
347
|
+
*/
|
|
348
|
+
autocompleteLabel: string;
|
|
349
|
+
};
|
|
350
|
+
export declare type CustomAutocomplete = {
|
|
351
|
+
/**
|
|
352
|
+
* The character that will trigger the autocomplete (for example #)
|
|
353
|
+
*
|
|
354
|
+
* The SDK supports @ and / by default, so you can't use those
|
|
355
|
+
*/
|
|
356
|
+
triggerCharacter: string;
|
|
357
|
+
/**
|
|
358
|
+
* The HTML template to display an item in the autocomplete list
|
|
359
|
+
*/
|
|
360
|
+
templateRef: TemplateRef<{
|
|
361
|
+
item: CustomAutocompleteItem;
|
|
362
|
+
}>;
|
|
363
|
+
/**
|
|
364
|
+
* Set to `true` if space characters can be part of the `autocompleteLabel`
|
|
365
|
+
*/
|
|
366
|
+
allowSpace: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* The options to choose from
|
|
369
|
+
*
|
|
370
|
+
* In case you want to use dynamic/server-side filtering, use `updateOptions` instead
|
|
371
|
+
*/
|
|
372
|
+
options: CustomAutocompleteItem[];
|
|
373
|
+
/**
|
|
374
|
+
* If you want to have dynamic/server-side filtering provide a method that will be called any time the autocomplete options should be filtered
|
|
375
|
+
* @param searchTerm the text to filter by (without the trigger character), can be an empty string
|
|
376
|
+
* @returns a promise that will resolve to the options, you should take care of error handling
|
|
377
|
+
*/
|
|
378
|
+
updateOptions?: (searchTerm: string) => Promise<CustomAutocompleteItem[]>;
|
|
379
|
+
};
|
|
341
380
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-angular",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0-test-update.1",
|
|
4
4
|
"description": "Angular components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dayjs": "^1.11.10",
|
|
48
48
|
"emoji-regex": "^10.3.0",
|
|
49
49
|
"fix-webm-duration": "^1.0.6",
|
|
50
|
-
"ngx-float-ui": "^15.0.0|| ^16.0.0 || ^17.0.0 || ^18.0.0 || ^18.0.1-rc.0",
|
|
50
|
+
"ngx-float-ui": "^15.0.0|| ^16.0.0 || ^17.0.0 || ^18.0.0 || ^18.0.1-rc.0 || ^19.0.0",
|
|
51
51
|
"pretty-bytes": "^6.1.1",
|
|
52
52
|
"tslib": "^2.3.0",
|
|
53
53
|
"uuid": "^9.0.1"
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.11.0-test-update.1';
|