cardoctor-call-chat 1.0.1 → 1.0.3

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/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # CarDoctor Call Chat
2
+
3
+ 🚀 A React SDK with hooks and utilities for Cardoctor Call Chat.
4
+
5
+ ## 📦 Installation
6
+
7
+ ```bash
8
+ npm install cardoctor-call-chat
9
+ # or
10
+ yarn add cardoctor-call-chat
11
+
12
+ ```
13
+
14
+ # Developed by Tuan Nguyen
package/dist/index.d.mts CHANGED
@@ -1,8 +1,12 @@
1
- import * as react from 'react';
1
+ interface ChatInitState {
2
+ user: any | null;
3
+ loading: boolean;
4
+ }
5
+ interface IPros {
6
+ appId: string;
7
+ region: string;
8
+ userId: string;
9
+ }
10
+ declare function useCallChatInit(props: IPros): ChatInitState;
2
11
 
3
- declare function useCounter(initial?: number): {
4
- count: number;
5
- setCount: react.Dispatch<react.SetStateAction<number>>;
6
- };
7
-
8
- export { useCounter };
12
+ export { useCallChatInit };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,12 @@
1
- import * as react from 'react';
1
+ interface ChatInitState {
2
+ user: any | null;
3
+ loading: boolean;
4
+ }
5
+ interface IPros {
6
+ appId: string;
7
+ region: string;
8
+ userId: string;
9
+ }
10
+ declare function useCallChatInit(props: IPros): ChatInitState;
2
11
 
3
- declare function useCounter(initial?: number): {
4
- count: number;
5
- setCount: react.Dispatch<react.SetStateAction<number>>;
6
- };
7
-
8
- export { useCounter };
12
+ export { useCallChatInit };