stream-chat-angular 2.0.0 → 2.1.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.
@@ -5,10 +5,12 @@ import { UserResponse } from 'stream-chat';
5
5
  import { ChannelService } from '../../channel.service';
6
6
  import { TextareaInterface } from '../textarea.interface';
7
7
  import { ChatClientService } from '../../chat-client.service';
8
+ import { TransliterationService } from '../../transliteration.service';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class AutocompleteTextareaComponent implements TextareaInterface, OnChanges {
10
11
  private channelService;
11
12
  private chatClientService;
13
+ private transliterationService;
12
14
  class: string;
13
15
  value: string;
14
16
  areMentionsEnabled: boolean | undefined;
@@ -25,16 +27,19 @@ export declare class AutocompleteTextareaComponent implements TextareaInterface,
25
27
  private mentionedUsers;
26
28
  private userMentionConfig;
27
29
  private searchTerm$;
28
- constructor(channelService: ChannelService, chatClientService: ChatClientService);
30
+ constructor(channelService: ChannelService, chatClientService: ChatClientService, transliterationService: TransliterationService);
29
31
  ngOnChanges(changes: SimpleChanges): void;
30
32
  filter(searchString: string, items: {
31
33
  autocompleteLabel: string;
32
- }[]): any[];
34
+ }[]): {
35
+ autocompleteLabel: string;
36
+ }[];
33
37
  mentioned(item: MentionAutcompleteListItem, triggerChar?: string): string;
34
38
  autcompleteSearchTermChanged(searchTerm: string): void;
35
39
  inputChanged(): void;
36
40
  inputLeft(): void;
37
41
  sent(event: Event): void;
42
+ private transliterate;
38
43
  private updateMentionOptions;
39
44
  private updateMentionedUsersFromText;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteTextareaComponent, never>;
@@ -30,7 +30,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
30
30
  get reactionsCount(): number;
31
31
  get reactionOptions(): MessageReactionType[];
32
32
  getLatestUserByReaction(reactionType: MessageReactionType): import("stream-chat").UserResponse<DefaultUserType<import("../types").DefaultUserTypeInternal>> | null | undefined;
33
- getEmojiNameByReaction(reactionType: MessageReactionType): string;
33
+ getEmojiByReaction(reactionType: MessageReactionType): string;
34
34
  getUsersByReaction(reactionType: MessageReactionType): string;
35
35
  showTooltip(event: Event, reactionType: MessageReactionType): void;
36
36
  hideTooltip(): void;
@@ -18,11 +18,10 @@ import * as i16 from "./modal/modal.component";
18
18
  import * as i17 from "./message-input/textarea.directive";
19
19
  import * as i18 from "./message/highlight-mentions.pipe";
20
20
  import * as i19 from "@angular/common";
21
- import * as i20 from "@ctrl/ngx-emoji-mart/ngx-emoji";
22
- import * as i21 from "@ngx-translate/core";
23
- import * as i22 from "./stream-avatar.module";
21
+ import * as i20 from "@ngx-translate/core";
22
+ import * as i21 from "./stream-avatar.module";
24
23
  export declare class StreamChatModule {
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.HighlightMentionsPipe], [typeof i19.CommonModule, typeof i20.EmojiModule, typeof i21.TranslateModule, typeof i22.StreamAvatarModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i18.HighlightMentionsPipe]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.HighlightMentionsPipe], [typeof i19.CommonModule, typeof i20.TranslateModule, typeof i21.StreamAvatarModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i18.HighlightMentionsPipe]>;
27
26
  static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
28
27
  }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TransliterationService {
3
+ constructor();
4
+ transliterate(s: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransliterationService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<TransliterationService>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "2.0.0",
3
+ "version": "2.1.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/",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "angular-mentions": "^1.4.0",
20
- "@ctrl/ngx-emoji-mart": "^6.0.1",
20
+ "@stream-io/transliterate": "^1.5.2",
21
21
  "dayjs": "^1.10.7",
22
22
  "pretty-bytes": "^5.6.0",
23
23
  "tslib": "^2.3.0",
package/public-api.d.ts CHANGED
@@ -36,6 +36,7 @@ export * from './lib/is-image-attachment';
36
36
  export * from './lib/device-width';
37
37
  export * from './lib/message-preview';
38
38
  export * from './lib/notification.service';
39
+ export * from './lib/transliteration.service';
39
40
  export * from './lib/stream-chat.module';
40
41
  export * from './lib/stream-autocomplete-textarea.module';
41
42
  export * from './lib/stream-textarea.module';
@@ -1 +1 @@
1
- export const version = '2.0.0';
1
+ export const version = '2.1.0';