@ethora/chat-component 25.3.12 → 25.3.14

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.
@@ -1,11 +1,13 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  import { default as XmppClient } from '../networking/xmppClient';
3
- import { IConfig, xmppSettingsInterface } from '../types/types';
3
+ import { IConfig, IRoom, xmppSettingsInterface } from '../types/types';
4
4
 
5
5
  interface XmppContextType {
6
6
  client: XmppClient;
7
7
  setClient: (client: XmppClient | null) => void;
8
- initializeClient: (password: string, email: string, xmppSettings?: xmppSettingsInterface) => Promise<XmppClient>;
8
+ initializeClient: (password: string, email: string, xmppSettings?: xmppSettingsInterface, roomsList?: {
9
+ [jid: string]: IRoom;
10
+ }) => Promise<XmppClient>;
9
11
  }
10
12
  interface XmppProviderProps {
11
13
  children: ReactNode;
@@ -0,0 +1 @@
1
+ export declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void;
@@ -2,7 +2,6 @@ export declare const useChatSettingState: () => {
2
2
  user: import('../types/types').User;
3
3
  activeFile: import('../types/types').ModalFile;
4
4
  activeModal: string;
5
- client: import('../networking/xmppClient').XmppClient;
6
5
  config: import('../types/types').IConfig;
7
6
  deleteModal: import('../types/types').DeleteModal;
8
7
  selectedUser: import('../types/types').IUser;
@@ -0,0 +1,6 @@
1
+ export declare const handleQRChatId: () => void;
2
+ export declare const useQRCodeChat: (setCurrentRoom: (params: {
3
+ roomJID: string;
4
+ }) => void, conferenceServer?: string) => {
5
+ wasAutoSelected: boolean;
6
+ };
package/dist/main.d.ts CHANGED
@@ -2,3 +2,4 @@ export { XmppProvider } from './context/xmppProvider';
2
2
  export { ReduxWrapper as Chat } from './components/MainComponents/ReduxWrapper';
3
3
  export { useUnread } from './hooks/useUnreadMessagesCounter';
4
4
  export { logoutService } from './hooks/useLogout';
5
+ export { useQRCodeChat, handleQRChatId } from './hooks/useQRCodeChatHandler';