@medipha/chat 1.0.41 → 1.0.43

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.
@@ -4,9 +4,10 @@ export interface ChatModuleProps {
4
4
  hasDeleteGroupVerified: boolean;
5
5
  userId: string;
6
6
  accessToken: string;
7
+ expireTime: string | number;
7
8
  apiUrl: string;
8
9
  socketUrl: string;
9
10
  onUnauthorized?: () => void;
10
- onRefreshToken?: () => void;
11
+ onRefreshToken?: () => Promise<string>;
11
12
  onNavigateOutsideChat?: (path: string) => void;
12
13
  }
@@ -3,7 +3,9 @@ export interface ChatSessionConfig {
3
3
  apiUrl: string;
4
4
  socketUrl: string;
5
5
  userId: string;
6
+ onRefreshToken?: () => Promise<string>;
7
+ onUnauthorized?: () => void;
6
8
  }
7
9
  export declare function configureChatTransport(config: ChatSessionConfig): void;
8
10
  export declare function acquireChatSession(config: ChatSessionConfig): () => void;
9
- export declare function useChatSession({ accessToken, apiUrl, socketUrl, userId, }: ChatSessionConfig): void;
11
+ export declare function useChatSession(config: ChatSessionConfig): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -57,7 +57,7 @@
57
57
  "uuid": "^11.0.5",
58
58
  "yet-another-react-lightbox": "^3.32.2",
59
59
  "zustand": "^5.0.8",
60
- "@medipha/chat-core": "1.0.17"
60
+ "@medipha/chat-core": "1.0.18"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@eslint/js": "^10.0.1",