@arthakosh/chat-widget 0.3.14 → 0.3.15
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/esm2022/lib/chat-widget-notification/chat-widget-notification.component.mjs +5 -11
- package/esm2022/lib/chat-widget.service.mjs +15 -7
- package/esm2022/lib/chat-window/chat-window.component.mjs +3 -12
- package/esm2022/lib/core/services/chat.service.mjs +21 -45
- package/esm2022/lib/core/services/socket.service.mjs +1 -5
- package/fesm2022/arthakosh-chat-widget.mjs +37 -72
- package/fesm2022/arthakosh-chat-widget.mjs.map +1 -1
- package/lib/chat-widget-notification/chat-widget-notification.component.d.ts +1 -3
- package/lib/chat-widget.service.d.ts +5 -2
- package/lib/chat-window/chat-window.component.d.ts +0 -1
- package/lib/core/services/chat.service.d.ts +0 -3
- package/lib/core/services/socket.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { ChatService } from "../core/services/chat.service";
|
|
2
2
|
import { ChatNotification } from "../core/models/notification.model";
|
|
3
|
-
import { SocketService } from "../core/services/socket.service";
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class ChatWidgetNotificationComponent {
|
|
6
5
|
open: boolean;
|
|
7
6
|
chatService: ChatService;
|
|
8
|
-
|
|
7
|
+
notifications: import("@angular/core").WritableSignal<ChatNotification[]>;
|
|
9
8
|
hasNew: import("@angular/core").WritableSignal<boolean>;
|
|
10
9
|
totalCount: import("@angular/core").Signal<any>;
|
|
11
10
|
constructor();
|
|
12
|
-
ngOnInit(): void;
|
|
13
11
|
toggle(): void;
|
|
14
12
|
openRoom(n: ChatNotification): void;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatWidgetNotificationComponent, never>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ChatService } from "./core/services/chat.service";
|
|
2
|
+
import { SocketService } from "./core/services/socket.service";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ChatWidgetService {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
chatService: ChatService;
|
|
6
|
+
socketService: SocketService;
|
|
7
|
+
constructor();
|
|
6
8
|
initUser(user: {
|
|
7
9
|
id: string;
|
|
8
10
|
name: string;
|
|
9
11
|
}): void;
|
|
12
|
+
joinUserChannel(userId: string): void;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatWidgetService, never>;
|
|
11
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChatWidgetService>;
|
|
12
15
|
}
|
|
@@ -34,9 +34,6 @@ export declare class ChatService {
|
|
|
34
34
|
clearRoom(roomId: string): void;
|
|
35
35
|
clearAll(): void;
|
|
36
36
|
notifyArrival(): void;
|
|
37
|
-
getAllNotifications(loggedInUserId: string): Observable<any[]>;
|
|
38
|
-
hydrateNotifications(userId: string): import("rxjs").Subscription;
|
|
39
|
-
markRoomAsRead(roomId: string): void;
|
|
40
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatService, never>;
|
|
41
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChatService>;
|
|
42
39
|
}
|
|
@@ -6,7 +6,7 @@ export declare class SocketService {
|
|
|
6
6
|
private socket;
|
|
7
7
|
private listeners;
|
|
8
8
|
constructor(config: ChatConfig);
|
|
9
|
-
connect
|
|
9
|
+
private connect;
|
|
10
10
|
emit(event: string, data?: any): void;
|
|
11
11
|
joinRoom(roomId: string): void;
|
|
12
12
|
joinUserChannel(userId: string): void;
|