@bcc-code/vue-bcc-chat-ui 4.2.1 → 4.3.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/dist/chat/accessToken.d.ts +2 -0
- package/dist/chat/logger.d.ts +26 -0
- package/dist/chat/login.d.ts +0 -2
- package/dist/chat/types.d.ts +3 -0
- package/dist/vue-bcc-chat-ui.js +12969 -12879
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +4 -0
- package/src/components/BccScheduledMessageIcon.vue +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type LogEntry = {
|
|
2
|
+
logUid: string;
|
|
3
|
+
correlationUid?: string;
|
|
4
|
+
message: String;
|
|
5
|
+
severity: LogSeverity;
|
|
6
|
+
userMetadata?: Record<string, any>;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
};
|
|
9
|
+
export declare enum LogSeverity {
|
|
10
|
+
DEBUG = "Debug",
|
|
11
|
+
INFO = "Info",
|
|
12
|
+
WARN = "Warn",
|
|
13
|
+
ERROR = "Error"
|
|
14
|
+
}
|
|
15
|
+
declare class Logger {
|
|
16
|
+
#private;
|
|
17
|
+
constructor();
|
|
18
|
+
debug(msg: string, metadata?: Record<string, any>): void;
|
|
19
|
+
info(msg: string, metadata?: Record<string, any>): void;
|
|
20
|
+
warn(msg: string, metadata?: Record<string, any>): void;
|
|
21
|
+
error(msg: string, metadata?: Record<string, any>): void;
|
|
22
|
+
setCallback(callback: (entry: LogEntry) => void): void;
|
|
23
|
+
ensureLogSendingLoop(): void;
|
|
24
|
+
}
|
|
25
|
+
declare const logger: Logger;
|
|
26
|
+
export default logger;
|
package/dist/chat/login.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ interface StoredToken {
|
|
|
2
2
|
sub: string;
|
|
3
3
|
token: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function getAccessToken(): string | null;
|
|
6
|
-
export declare function setAccessToken(token: string | null | undefined): void;
|
|
7
5
|
export declare const loggedIn: import('vue').Ref<boolean, boolean>;
|
|
8
6
|
export declare function login(accessToken?: string): Promise<void>;
|
|
9
7
|
export declare function logout(): Promise<void>;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseMessage, Group } from '@cometchat/chat-sdk-javascript';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
+
import { LogEntry } from './logger';
|
|
3
4
|
export interface ChatInstallOptions {
|
|
4
5
|
environment: Environment;
|
|
5
6
|
language?: Language;
|
|
6
7
|
themeMode: ThemeMode;
|
|
7
8
|
accessToken?: Ref<string | null | undefined> | null | undefined | string;
|
|
9
|
+
loggerCallback?: (entry: LogEntry) => void;
|
|
8
10
|
}
|
|
11
|
+
export * from './logger';
|
|
9
12
|
export interface ChatInstance {
|
|
10
13
|
componentId: string;
|
|
11
14
|
replyToMessage: BaseMessage | null;
|