@phonghq/go-chat 1.0.29 → 1.0.31

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 (37) hide show
  1. package/dist/chat/App.vue.d.ts +2 -2
  2. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +2 -2
  3. package/dist/chat/page/home/ChatList.vue.d.ts +2 -2
  4. package/dist/chat/page/home/ChatMessage.vue.d.ts +2 -2
  5. package/dist/chat/page/home/ChatMessageItem.vue.d.ts +2 -2
  6. package/dist/chat/page/home/Home.vue.d.ts +4 -2
  7. package/dist/chat/page/home/HomeHeader.vue.d.ts +4 -0
  8. package/dist/chat/page/home/InputChat.vue.d.ts +3 -1
  9. package/dist/chat/page/setting/SettingSuccess.vue.d.ts +2 -0
  10. package/dist/components/chat/call/Calling.vue.d.ts +2 -2
  11. package/dist/components/chat/common/input/InputSearch.vue.d.ts +2 -2
  12. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +1 -0
  13. package/dist/components/common/drawer/DrawerBaseCustom.vue.d.ts +2 -2
  14. package/dist/composable/useInitData.d.ts +2 -2
  15. package/dist/constant/general.d.ts +3 -1
  16. package/dist/go-chat.es.js +11035 -9866
  17. package/dist/go-chat.umd.js +13 -13
  18. package/dist/plugins/pocketbase.d.ts +5 -0
  19. package/dist/style.css +1 -1
  20. package/dist/test/chat/App.vue.js +146 -149
  21. package/dist/test/chat/page/home/Home.vue.js +39 -23
  22. package/dist/test/chat/page/home/HomeHeader.vue.js +44 -16
  23. package/dist/test/chat/page/home/InputChat.vue.js +42 -43
  24. package/dist/test/chat/page/setting/Setting.vue.js +148 -7
  25. package/dist/test/chat/page/setting/SettingSuccess.vue.js +33 -0
  26. package/dist/test/components/chat/common/spin/BaseSpin.vue.js +4 -0
  27. package/dist/test/components/chat/select/SelectBase.vue.js +1 -2
  28. package/dist/test/components/common/button/ButtonBase.vue.js +3 -3
  29. package/dist/test/composable/useInitData.js +4 -1
  30. package/dist/test/composable/usePlivo.js +3 -2
  31. package/dist/test/constant/general.js +2 -0
  32. package/dist/test/plugins/pocketbase.js +16 -0
  33. package/dist/test/utils/chat/auth.js +2 -1
  34. package/dist/types/chat/auth.d.ts +1 -0
  35. package/dist/types/chat/global.d.ts +2 -2
  36. package/dist/utils/chat/auth.d.ts +2 -0
  37. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import type { GoChatInstance, GoChatProps, PAGE_RESPONSE } from '../types/chat/global';
1
+ import type { GoChatInstance, GoChatProps, PAGE_RESPONSIVE } from '../types/chat/global';
2
2
  import type { IResUser } from '../types/message';
3
3
  import '../style/index.scss';
4
4
  declare const _default: import("vue").DefineComponent<GoChatProps, GoChatInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<GoChatProps, GoChatInstanc
8
8
  onUserCalling?: ((id: IResUser) => any) | undefined;
9
9
  "onError:noPhoneTenant"?: (() => any) | undefined;
10
10
  }>, {
11
- response: PAGE_RESPONSE;
11
+ response: PAGE_RESPONSIVE;
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,7 +1,7 @@
1
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
1
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
2
2
  type Props = {
3
3
  receiverId: any;
4
- responsive: PAGE_RESPONSE;
4
+ responsive: PAGE_RESPONSIVE;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import type { IConversation } from '../../../types/conversation';
2
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
2
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
3
3
  type Props = {
4
- responsive: PAGE_RESPONSE;
4
+ responsive: PAGE_RESPONSIVE;
5
5
  };
6
6
  type __VLS_Props = Props;
7
7
  type __VLS_ModelProps = {
@@ -1,9 +1,9 @@
1
1
  import type { IResMessage, IResUser } from '../../../types/message';
2
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
2
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
3
3
  type Props = {
4
4
  data: IResUser | null;
5
5
  message: IResMessage[];
6
- responsive: PAGE_RESPONSE;
6
+ responsive: PAGE_RESPONSIVE;
7
7
  showNewCustomer: boolean;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<Props, {
@@ -1,8 +1,8 @@
1
1
  import type { IResMessage, IResUser } from '../../../types/message';
2
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
2
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
3
3
  type Props = {
4
4
  message: IResMessage;
5
- responsive: PAGE_RESPONSE;
5
+ responsive: PAGE_RESPONSIVE;
6
6
  isEndMessage: boolean;
7
7
  isMyMessage: boolean;
8
8
  isLastMessage: boolean;
@@ -1,8 +1,8 @@
1
1
  import type { IResUser } from '../../../types/message';
2
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
2
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
3
3
  type Props = {
4
4
  receiverId: any;
5
- responsive: PAGE_RESPONSE;
5
+ responsive: PAGE_RESPONSIVE;
6
6
  };
7
7
  declare const _default: import("vue").DefineComponent<Props, {
8
8
  getData: (data?: any) => Promise<void>;
@@ -12,9 +12,11 @@ declare const _default: import("vue").DefineComponent<Props, {
12
12
  infoUser: import("vue").ShallowRef<IResUser | null>;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
14
  call: (value: IResUser) => any;
15
+ back: () => any;
15
16
  inputFocus: () => any;
16
17
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
17
18
  onCall?: ((value: IResUser) => any) | undefined;
19
+ onBack?: (() => any) | undefined;
18
20
  onInputFocus?: (() => any) | undefined;
19
21
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
22
  export default _default;
@@ -1,10 +1,14 @@
1
1
  import type { IResUser } from '../../../types/message';
2
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
2
3
  type Props = {
3
4
  data: IResUser | null;
5
+ responsive: PAGE_RESPONSIVE | null;
4
6
  };
5
7
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
8
  call: () => any;
9
+ back: () => any;
7
10
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
8
11
  onCall?: (() => any) | undefined;
12
+ onBack?: (() => any) | undefined;
9
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
14
  export default _default;
@@ -8,7 +8,9 @@ type __VLS_ModelProps = {
8
8
  modelValue?: string;
9
9
  };
10
10
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
12
+ clearInput: () => void;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
14
  "update:modelValue": (value: string | undefined) => any;
13
15
  } & {
14
16
  focus: () => any;
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import type { IResUser } from '../../../types/message';
2
- import type { CallInstance, PAGE_RESPONSE } from '../../../types/chat/global';
2
+ import type { CallInstance, PAGE_RESPONSIVE } from '../../../types/chat/global';
3
3
  type __VLS_Props = {
4
- responsive: PAGE_RESPONSE;
4
+ responsive: PAGE_RESPONSIVE;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, CallInstance, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  userCalling: (id: IResUser) => any;
@@ -1,7 +1,7 @@
1
- import type { PAGE_RESPONSE } from '../../../../types/chat/global';
1
+ import type { PAGE_RESPONSIVE } from '../../../../types/chat/global';
2
2
  type Props = {
3
3
  modelValue: string;
4
- responsive: PAGE_RESPONSE;
4
+ responsive: PAGE_RESPONSIVE;
5
5
  placeholder?: string;
6
6
  };
7
7
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1,6 +1,7 @@
1
1
  type Props = {
2
2
  size?: number;
3
3
  border?: number;
4
+ color?: string;
4
5
  };
5
6
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
6
7
  size: number;
@@ -1,9 +1,9 @@
1
- import type { PAGE_RESPONSE } from '../../../types/chat/global';
1
+ import type { PAGE_RESPONSIVE } from '../../../types/chat/global';
2
2
  type __VLS_Props = {
3
3
  showTitle?: boolean;
4
4
  position?: string;
5
5
  width?: number;
6
- responsive: PAGE_RESPONSE;
6
+ responsive: PAGE_RESPONSIVE;
7
7
  disabledClose?: boolean;
8
8
  absolute?: boolean;
9
9
  };
@@ -1,9 +1,9 @@
1
- import type { PAGE_RESPONSE, GoChatProps } from '../types/chat/global';
1
+ import type { PAGE_RESPONSIVE, GoChatProps } from '../types/chat/global';
2
2
  export declare const isRouterReady: import("vue").Ref<boolean, boolean>;
3
3
  export declare function useInitData(): {
4
4
  NOTIFY_ID_APPOINTMENT_NAME: string;
5
5
  initPage: (data: {
6
6
  props: GoChatProps;
7
- response: PAGE_RESPONSE;
7
+ response: PAGE_RESPONSIVE;
8
8
  }) => Promise<void>;
9
9
  };
@@ -4,5 +4,7 @@ export declare enum PAGE {
4
4
  CUSTOMER_CHECK_IN = "customer_check_in",
5
5
  CUSTOMER_APPOINTMENT = "customer_appointment",
6
6
  TENANT_ERROR = "tenant_error",
7
- CHAT_LIST = "chat_list"
7
+ CHAT_LIST = "chat_list",
8
+ REGISTER_TENANT = "register_tenant",
9
+ REGISTER_SUCCESS = "register_success"
8
10
  }