@pubuduth-aplicy/chat-ui 2.1.41 → 2.1.42
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/package.json +2 -2
- package/src/declarations.d.ts +15 -4
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubuduth-aplicy/chat-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.42",
|
|
4
4
|
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "src/index.tsx",
|
|
9
|
-
"types": "
|
|
9
|
+
"types": "src/declarations.d.ts",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc ",
|
|
12
12
|
"prepare": "npm run build"
|
package/src/declarations.d.ts
CHANGED
|
@@ -15,8 +15,19 @@ declare module '*.svg' {
|
|
|
15
15
|
export default content;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare module '@pubuduth-aplicy/chat-ui';
|
|
19
18
|
declare module '@pubuduth-aplicy/chat-ui' {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
import { ReactNode, FC } from 'react';
|
|
20
|
+
|
|
21
|
+
interface ChatProviderProps {
|
|
22
|
+
userId: string;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ChatProvider: FC<ChatProviderProps>;
|
|
27
|
+
export const Chat: FC;
|
|
28
|
+
export function useChatContext(): {
|
|
29
|
+
socket: any; // Replace 'any' with proper Socket type
|
|
30
|
+
userId: string;
|
|
31
|
+
onlineUsers: any[];
|
|
32
|
+
};
|
|
33
|
+
}
|