@phonghq/go-chat 1.0.26 → 1.0.28

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 (35) hide show
  1. package/README.md +2 -1
  2. package/dist/chat/page/home/Home.vue.d.ts +2 -0
  3. package/dist/chat/page/home/InputChat.vue.d.ts +2 -0
  4. package/dist/components/chat/common/modal/Modal.vue.d.ts +94 -0
  5. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +8 -1
  6. package/dist/components/chat/common/switch/SwitchBase.vue.d.ts +3 -0
  7. package/dist/components/common/drawer/DrawerBase.vue.d.ts +1 -1
  8. package/dist/constant/mqtt.d.ts +1 -0
  9. package/dist/go-chat.es.js +7538 -7477
  10. package/dist/go-chat.umd.js +13 -13
  11. package/dist/style.css +1 -1
  12. package/dist/test/chat/App.vue.js +77 -66
  13. package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +3 -3
  14. package/dist/test/chat/page/home/ChatList.vue.js +14 -115
  15. package/dist/test/chat/page/home/ChatMessage.vue.js +1 -3
  16. package/dist/test/chat/page/home/ChatMessageItem.vue.js +3 -3
  17. package/dist/test/chat/page/home/Home.vue.js +30 -15
  18. package/dist/test/chat/page/home/InputChat.vue.js +78 -28
  19. package/dist/test/components/chat/call/Calling.vue.js +4 -3
  20. package/dist/test/components/chat/common/modal/Modal.vue.js +260 -0
  21. package/dist/test/components/chat/common/spin/BaseSpin.vue.js +29 -2
  22. package/dist/test/components/chat/common/switch/SwitchBase.vue.js +8 -2
  23. package/dist/test/components/common/modal/ModalBase.vue.js +49 -26
  24. package/dist/test/components/ui/button/c-button.js +7 -7
  25. package/dist/test/composable/useInitData.js +2 -1
  26. package/dist/test/composable/useListConversations.js +1 -1
  27. package/dist/test/composable/usePlivo.js +11 -7
  28. package/dist/test/constant/mqtt.js +1 -0
  29. package/dist/test/utils/chat/call.js +4 -3
  30. package/dist/test/utils/chat/conversation.js +1 -1
  31. package/dist/test/utils/chat/message.js +4 -0
  32. package/dist/utils/chat/message.d.ts +4 -0
  33. package/package.json +2 -2
  34. package/dist/assets/icons/IconSetting.vue.d.ts +0 -2
  35. package/dist/test/assets/icons/IconSetting.vue.js +0 -33
package/README.md CHANGED
@@ -39,5 +39,6 @@ npm run lint
39
39
  ```
40
40
 
41
41
  ...build
42
+ npx shadcn-vue@2.4.1 add alert-dialog
42
43
  yarn vue-tsc -p tsconfig.build.json
43
- /tenant?tenant_id=test1&phone=16013818811&message=Test%20message%20n%C3%A8&customer_name=Loi%20v&business_name=Nail%20Spa%20New%20v
44
+ /tenant?tenant_id=test1&phone=16013818811&message=Test%20message%20n%C3%A8&customer_name=Lam Linh%20v&business_name=Nail%20Spa%20New%20v
@@ -12,7 +12,9 @@ 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
+ inputFocus: () => any;
15
16
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
17
  onCall?: ((value: IResUser) => any) | undefined;
18
+ onInputFocus?: (() => any) | undefined;
17
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
20
  export default _default;
@@ -11,8 +11,10 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
11
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:modelValue": (value: string | undefined) => any;
13
13
  } & {
14
+ focus: () => any;
14
15
  sendMessage: (val: IResMessage) => any;
15
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ onFocus?: (() => any) | undefined;
16
18
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
17
19
  onSendMessage?: ((val: IResMessage) => any) | undefined;
18
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,94 @@
1
+ declare var __VLS_1: {}, __VLS_7: {}, __VLS_9: {};
2
+ type __VLS_Slots = {} & {
3
+ title?: (props: typeof __VLS_1) => any;
4
+ } & {
5
+ content?: (props: typeof __VLS_7) => any;
6
+ } & {
7
+ footer?: (props: typeof __VLS_9) => any;
8
+ };
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ title: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ showFooter: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ showCloseButton: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ clickOutSide: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ disabledClose: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ phone: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ maxValue: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ }>, {
39
+ open: () => void;
40
+ close: () => void;
41
+ visible: import("vue").Ref<boolean, boolean>;
42
+ closeOnly: () => void;
43
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
+ afterClose: (...args: any[]) => void;
45
+ changeValue: (...args: any[]) => void;
46
+ afterCloseNumPad: (...args: any[]) => void;
47
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ title: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ showFooter: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ showCloseButton: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ clickOutSide: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ disabledClose: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ phone: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ maxValue: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ }>> & Readonly<{
77
+ onAfterClose?: ((...args: any[]) => any) | undefined;
78
+ onChangeValue?: ((...args: any[]) => any) | undefined;
79
+ onAfterCloseNumPad?: ((...args: any[]) => any) | undefined;
80
+ }>, {
81
+ title: string;
82
+ phone: boolean;
83
+ disabledClose: boolean;
84
+ showFooter: boolean;
85
+ showCloseButton: boolean;
86
+ clickOutSide: boolean;
87
+ maxValue: number;
88
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, __VLS_Slots>;
89
+ export default _default;
90
+ type __VLS_WithSlots<T, S> = T & {
91
+ new (): {
92
+ $slots: S;
93
+ };
94
+ };
@@ -1,2 +1,9 @@
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>;
1
+ type Props = {
2
+ size?: number;
3
+ border?: number;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ size: number;
7
+ border: number;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
9
  export default _default;
@@ -8,7 +8,10 @@ type __VLS_ModelProps = {
8
8
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
9
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  "update:modelValue": (value: boolean | undefined) => any;
11
+ } & {
12
+ change: (val: boolean) => any;
11
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ onChange?: ((val: boolean) => any) | undefined;
12
15
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
13
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
17
  export default _default;
@@ -24,8 +24,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Publ
24
24
  }>, {
25
25
  title: string;
26
26
  width: string | number;
27
- placement: import("vaul-vue").DrawerDirection;
28
27
  showTitle: boolean;
28
+ placement: import("vaul-vue").DrawerDirection;
29
29
  showButtonClose: boolean;
30
30
  disableClose: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -1,4 +1,5 @@
1
1
  export declare const TOPIC_DETAIL_CHAT = "chat/message/";
2
2
  export declare const TOPIC_DETAIL_CALL = "call/message/";
3
3
  export declare const TOPIC_HOME: string[];
4
+ export declare const TOPIC_PLIVO_SMS = "sms-outbound/";
4
5
  export declare const TOPIC_STATUS_USER: string;