@banta/sdk 7.0.0 → 7.0.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/index.d.ts CHANGED
@@ -20,9 +20,9 @@ import * as i15 from '@angular/material/form-field';
20
20
  import * as i16 from '@angular/material/input';
21
21
  import * as i14 from '@angular/material/dialog';
22
22
  import { MatDialog } from '@angular/material/dialog';
23
- import { ActivatedRoute } from '@angular/router';
24
- import * as i18$1 from '@angular/material/snack-bar';
23
+ import * as i9$2 from '@angular/material/snack-bar';
25
24
  import { MatSnackBar } from '@angular/material/snack-bar';
25
+ import { ActivatedRoute } from '@angular/router';
26
26
  import * as i12 from '@angular/cdk/text-field';
27
27
  import * as i18 from '@angular/material/menu';
28
28
  import * as i19 from '@angular/material/divider';
@@ -608,7 +608,8 @@ declare class ChatViewComponent {
608
608
  */
609
609
  declare class BantaChatComponent {
610
610
  private backend;
611
- constructor(backend: ChatBackendBase);
611
+ private matSnackBar;
612
+ constructor(backend: ChatBackendBase, matSnackBar: MatSnackBar);
612
613
  private _source;
613
614
  private _subs;
614
615
  user: User;
@@ -658,6 +659,8 @@ declare class BantaChatComponent {
658
659
  get received(): Observable<ChatMessage>;
659
660
  onReceived(message: ChatMessage): void;
660
661
  showEmojiPanel: boolean;
662
+ private handleBackendExceptionAsSnack;
663
+ private handleBackendException;
661
664
  showSignIn(): void;
662
665
  sendPermissionError(message?: string): void;
663
666
  insertEmoji(emoji: any): void;
@@ -678,7 +681,7 @@ declare class BantaChatComponent {
678
681
 
679
682
  declare class ChatModule {
680
683
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatModule, never>;
681
- static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, [typeof ChatMessageComponent, typeof LiveChatMessageComponent, typeof ChatViewComponent, typeof BantaChatComponent], [typeof i8.CommonModule, typeof i4.FormsModule, typeof i9.MatIconModule, typeof i11.MatButtonModule, typeof EmojiModule], [typeof ChatMessageComponent, typeof LiveChatMessageComponent, typeof ChatViewComponent, typeof BantaChatComponent]>;
684
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, [typeof ChatMessageComponent, typeof LiveChatMessageComponent, typeof ChatViewComponent, typeof BantaChatComponent], [typeof i8.CommonModule, typeof i4.FormsModule, typeof i9.MatIconModule, typeof i11.MatButtonModule, typeof i9$2.MatSnackBarModule, typeof EmojiModule], [typeof ChatMessageComponent, typeof LiveChatMessageComponent, typeof ChatViewComponent, typeof BantaChatComponent]>;
682
685
  static ɵinj: i0.ɵɵInjectorDeclaration<ChatModule>;
683
686
  }
684
687
 
@@ -1065,6 +1068,7 @@ interface HashTag {
1065
1068
  }
1066
1069
  declare class CommentFieldComponent {
1067
1070
  ngAfterViewInit(): void;
1071
+ ngOnDestroy(): void;
1068
1072
  private _source;
1069
1073
  get source(): ChatSourceBase;
1070
1074
  set source(value: ChatSourceBase);
@@ -1466,7 +1470,7 @@ declare class BantaSdkModule {
1466
1470
  constructor();
1467
1471
  static configure(options?: SdkOptions): ModuleWithProviders<BantaSdkModule>;
1468
1472
  static ɵfac: i0.ɵɵFactoryDeclaration<BantaSdkModule, never>;
1469
- static ɵmod: i0.ɵɵNgModuleDeclaration<BantaSdkModule, [typeof BantaComponent, typeof BantaLogoComponent, typeof LiveMessageComponent], [typeof i8.CommonModule, typeof i4.FormsModule, typeof BantaCommonModule, typeof CommentsModule, typeof ChatModule, typeof EmojiModule, typeof i9.MatIconModule, typeof i11.MatButtonModule, typeof i23.MatTooltipModule, typeof i18.MatMenuModule, typeof i14.MatDialogModule, typeof i15.MatFormFieldModule, typeof i16.MatInputModule, typeof i10.MatProgressSpinnerModule, typeof i18$1.MatSnackBarModule, typeof i9$1.OverlayModule, typeof i10$1.PortalModule], [typeof BantaComponent, typeof BantaLogoComponent, typeof LiveMessageComponent, typeof BantaCommonModule, typeof ChatModule, typeof CommentsModule, typeof EmojiModule]>;
1473
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BantaSdkModule, [typeof BantaComponent, typeof BantaLogoComponent, typeof LiveMessageComponent], [typeof i8.CommonModule, typeof i4.FormsModule, typeof BantaCommonModule, typeof CommentsModule, typeof ChatModule, typeof EmojiModule, typeof i9.MatIconModule, typeof i11.MatButtonModule, typeof i23.MatTooltipModule, typeof i18.MatMenuModule, typeof i14.MatDialogModule, typeof i15.MatFormFieldModule, typeof i16.MatInputModule, typeof i10.MatProgressSpinnerModule, typeof i9$2.MatSnackBarModule, typeof i9$1.OverlayModule, typeof i10$1.PortalModule], [typeof BantaComponent, typeof BantaLogoComponent, typeof LiveMessageComponent, typeof BantaCommonModule, typeof ChatModule, typeof CommentsModule, typeof EmojiModule]>;
1470
1474
  static ɵinj: i0.ɵɵInjectorDeclaration<BantaSdkModule>;
1471
1475
  }
1472
1476
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banta/sdk",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"