@phonghq/go-chat 1.0.35 → 1.0.38

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.
Files changed (31) hide show
  1. package/dist/assets/icons/IconSms.vue.d.ts +2 -0
  2. package/dist/chat/page/home/ChatList.vue.d.ts +29 -0
  3. package/dist/composable/useError.d.ts +4 -0
  4. package/dist/composable/usePlivo.d.ts +4 -1
  5. package/dist/constant/mqtt.d.ts +2 -2
  6. package/dist/go-chat.es.js +23215 -23193
  7. package/dist/go-chat.umd.js +14 -13
  8. package/dist/style.css +1 -1
  9. package/dist/test/assets/icons/IconSms.vue.js +22 -0
  10. package/dist/test/chat/App.vue.js +111 -60
  11. package/dist/test/chat/page/home/ChatList.vue.js +34 -49
  12. package/dist/test/chat/page/home/ChatMessageItem.vue.js +5 -5
  13. package/dist/test/chat/page/home/Home.vue.js +5 -4
  14. package/dist/test/chat/page/home/HomeHeader.vue.js +81 -4
  15. package/dist/test/chat/page/home/InputChat.vue.js +22 -66
  16. package/dist/test/chat/page/home/NewCustomer.vue.js +3 -2
  17. package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +2 -0
  18. package/dist/test/components/chat/call/Calling.vue.js +46 -6
  19. package/dist/test/composable/useError.js +10 -0
  20. package/dist/test/composable/useListConversations.js +4 -1
  21. package/dist/test/composable/usePlivo.js +30 -23
  22. package/dist/test/constant/mqtt.js +4 -3
  23. package/dist/test/utils/chat/auth.js +11 -0
  24. package/dist/test/utils/chat/call.js +16 -0
  25. package/dist/test/utils/chat/conversation.js +3 -3
  26. package/dist/test/utils/string-helper.js +1 -1
  27. package/dist/types/chat/auth.d.ts +1 -0
  28. package/dist/types/message.d.ts +1 -0
  29. package/dist/utils/chat/auth.d.ts +5 -0
  30. package/dist/utils/chat/call.d.ts +4 -0
  31. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -39,6 +39,35 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
39
39
  color: string;
40
40
  is_unknown: number;
41
41
  }[]>;
42
+ listConversationsUnknown: import("vue").Ref<{
43
+ id: number;
44
+ receiver_id: number;
45
+ username: string | null;
46
+ phone: string;
47
+ avatar: string | null;
48
+ last_message: string;
49
+ last_message_time: string;
50
+ created_at: string;
51
+ updated_at: string;
52
+ unread_count: number;
53
+ status: number;
54
+ color: string;
55
+ is_unknown: number;
56
+ }[], IConversation[] | {
57
+ id: number;
58
+ receiver_id: number;
59
+ username: string | null;
60
+ phone: string;
61
+ avatar: string | null;
62
+ last_message: string;
63
+ last_message_time: string;
64
+ created_at: string;
65
+ updated_at: string;
66
+ unread_count: number;
67
+ status: number;
68
+ color: string;
69
+ is_unknown: number;
70
+ }[]>;
42
71
  getCurrentConversation: () => IConversation | undefined;
43
72
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
73
  "update:receiverId": (value: any) => any;
@@ -0,0 +1,4 @@
1
+ export declare const goChatError: import("vue").Ref<string, string>;
2
+ export declare function useError(): {
3
+ showError: (error: string) => void;
4
+ };
@@ -1,6 +1,9 @@
1
1
  import { type PlivoCallStatusType } from '../types/chat/call';
2
2
  export declare function usePlivo(callback: (status: PlivoCallStatusType, data?: any) => void): {
3
- plivoLogin: (token: string) => Promise<void>;
3
+ plivoLogin: (data: {
4
+ token: string;
5
+ isRefresh?: boolean;
6
+ }) => Promise<void>;
4
7
  plivoCallAnswer: () => Promise<void>;
5
8
  plivoCallReject: () => void;
6
9
  plivoCall: (phone: string) => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  export declare const TOPIC_DETAIL_CHAT = "chat/message/";
2
2
  export declare const TOPIC_DETAIL_CALL = "call/message/";
3
- export declare const TOPIC_HOME: string[];
4
- export declare const TOPIC_PLIVO_SMS = "sms-outbound/";
3
+ export declare const TOPIC_PLIVO_SMS = "sms-inbound/";
5
4
  export declare const TOPIC_STATUS_USER: string;
5
+ export declare const TOPIC_HOME: string[];