@ethora/chat-component 24.12.34 → 24.12.35

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.
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface SwitchProps {
4
+ onToggle: (isOn: boolean) => void;
5
+ bgColor?: string;
6
+ onSwitchOn?: () => void;
7
+ onSwitchOff?: () => void;
8
+ }
9
+ declare const Switch: React.FC<SwitchProps>;
10
+ export default Switch;
@@ -2,11 +2,13 @@ import { FC } from 'react';
2
2
 
3
3
  export declare const StyledMessageReply: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
4
  isUser: boolean;
5
+ configColor: string;
5
6
  }>> & string;
6
7
  interface MessageReplyProps {
7
8
  isUser: boolean;
8
9
  text: string;
9
10
  handleReplyMessage: () => void;
11
+ color?: string;
10
12
  }
11
13
  export declare const MessageReply: FC<MessageReplyProps>;
12
14
  export {};
@@ -1,2 +1,3 @@
1
1
  export declare const CONFERENCE_DOMAIN = "@conference.xmpp.ethoradev.com";
2
2
  export declare const CHAT_DOMAIN = "@xmpp.ethoradev.com";
3
+ export declare const QRCODE_URL = "https://beta.ethora.com/app/chat/?chatId=";
@@ -0,0 +1,4 @@
1
+ export declare function nameToColor(name: string): {
2
+ backgroundColor: string;
3
+ textColor: string;
4
+ };
@@ -1,2 +1,2 @@
1
- declare const useMessageLoaderQueue: (roomsList: string[], globalLoading: boolean, loading: boolean, loadMoreMessages: (roomJid: string, max: number) => Promise<any>) => void;
1
+ declare const useMessageLoaderQueue: (roomsList: string[], globalLoading: boolean, loading: boolean, loadMoreMessages: (roomJid: string, max: number) => Promise<any>, isInited?: boolean) => void;
2
2
  export default useMessageLoaderQueue;