@phonghq/go-chat 1.0.41 → 1.0.43
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/assets/icons/IconUser.vue.d.ts +2 -0
- package/dist/chat/page/home/ChatList.vue.d.ts +8 -0
- package/dist/composable/useDigibot.d.ts +1 -1
- package/dist/composable/useInitData.d.ts +4 -1
- package/dist/composable/useListConversations.d.ts +3 -0
- package/dist/constant/general.d.ts +2 -1
- package/dist/go-chat.es.js +8770 -8641
- package/dist/go-chat.umd.js +23 -23
- package/dist/style.css +1 -1
- package/dist/test/assets/icons/IconUser.vue.js +25 -0
- package/dist/test/chat/App.vue.js +181 -96
- package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +2 -2
- package/dist/test/chat/page/home/ChatList.vue.js +52 -12
- package/dist/test/chat/page/home/ChatMessageItem.vue.js +12 -3
- package/dist/test/chat/page/home/Home.vue.js +14 -2
- package/dist/test/components/chat/call/Calling.vue.js +6 -4
- package/dist/test/components/chat/customer/Avatar.vue.js +23 -4
- package/dist/test/composable/useDigibot.js +3 -3
- package/dist/test/composable/useInitData.js +18 -9
- package/dist/test/composable/useListConversations.js +21 -6
- package/dist/test/constant/general.js +1 -0
- package/dist/test/utils/chat/cache.js +63 -0
- package/dist/test/utils/chat/conversation.js +7 -0
- package/dist/test/views/NotTenantPhone.vue.js +99 -0
- package/dist/types/conversation.d.ts +1 -0
- package/dist/utils/chat/cache.d.ts +7 -0
- package/dist/utils/chat/conversation.d.ts +1 -0
- package/dist/views/NotTenantPhone.vue.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function setCache(key: string, data: any, ttlMs?: number): void;
|
|
2
|
+
export declare function getCache<T = any>(key: string): {
|
|
3
|
+
data: T | null;
|
|
4
|
+
needReload?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function clearCache(key: string): void;
|
|
7
|
+
export declare function removeOldestCache(limit: number, prefix: string): void;
|
|
@@ -2,6 +2,7 @@ import type { IConversation, IParamGetConversation } from '../../types/conversat
|
|
|
2
2
|
import type { DataWithMetaResponse } from '../../types/global';
|
|
3
3
|
import type { IResUser } from '../../types/message';
|
|
4
4
|
export declare const getConversation: (param: IParamGetConversation) => Promise<DataWithMetaResponse<IConversation[]>>;
|
|
5
|
+
export declare const getConversationView: (id: any) => Promise<IConversation>;
|
|
5
6
|
export declare const publicTopicConversationUpdate: (data: {
|
|
6
7
|
infoUser: IResUser | null;
|
|
7
8
|
isSendImg?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
isLib: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
tryAgain: () => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
onTryAgain?: (() => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|