@ethora/chat-component 24.11.29 → 24.11.30
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/dist/assets/icons.d.ts +12 -1
- package/dist/components/MainComponents/ChatHeader.d.ts +0 -1
- package/dist/components/MainComponents/ChatRoom.d.ts +0 -1
- package/dist/components/MainComponents/EditWrapper.d.ts +12 -0
- package/dist/components/MainComponents/MessageList.d.ts +4 -1
- package/dist/components/MainComponents/ProfileImagePlaceholder.d.ts +1 -1
- package/dist/components/MessageBubble/Avatar.d.ts +2 -1
- package/dist/components/MessageBubble/BottomReplyContainer.d.ts +9 -0
- package/dist/components/MessageBubble/MessageInteractions.d.ts +5 -0
- package/dist/components/MessageBubble/MessageReply.d.ts +12 -0
- package/dist/components/Modals/FilePreviewModal/FilePreviewModal.d.ts +7 -0
- package/dist/components/Modals/ModalWrapper/ModalWrapper.d.ts +16 -0
- package/dist/components/Thread/ThreadHeader.d.ts +7 -0
- package/dist/components/Thread/ThreadRoom.d.ts +0 -0
- package/dist/components/Thread/ThreadWrapper.d.ts +13 -0
- package/dist/components/styled/SendInput.d.ts +1 -0
- package/dist/components/styled/StyledComponents.d.ts +6 -0
- package/dist/components/styled/StyledInputComponents/StyledInputComponents.d.ts +1 -0
- package/dist/components/styled/TreadLabel.d.ts +15 -0
- package/dist/helpers/constants/MESSAGE_INTERACTIONS.d.ts +9 -1
- package/dist/helpers/constants/MODAL_TYPES.d.ts +1 -0
- package/dist/helpers/createMessageFromXml.d.ts +34 -0
- package/dist/hooks/useMessageLoaderQueue.d.ts +2 -0
- package/dist/main.js +9656 -8894
- package/dist/main.js.map +1 -1
- package/dist/networking/stanzaHandlers.d.ts +3 -33
- package/dist/networking/xmpp/editMessage.xmpp.d.ts +3 -0
- package/dist/networking/xmpp/getHistory.xmpp.d.ts +1 -1
- package/dist/networking/xmpp/sendTextMessage.xmpp.d.ts +1 -1
- package/dist/networking/xmppClient.d.ts +4 -3
- package/dist/roomStore/chatSettingsSlice.d.ts +7 -3
- package/dist/roomStore/roomHeapSlice.d.ts +16 -0
- package/dist/roomStore/roomsSlice.d.ts +26 -3
- package/dist/types/types.d.ts +22 -1
- package/package.json +1 -1
package/dist/assets/icons.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare const SearchIcon: ({ color, ...props }: {
|
|
|
22
22
|
[x: string]: any;
|
|
23
23
|
color?: string;
|
|
24
24
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const NoSelectedChatIcon: ({ color, ...props }: {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
color?: string;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
25
29
|
export declare const ReferalsIcon: ({ color, ...props }: {
|
|
26
30
|
[x: string]: any;
|
|
27
31
|
color?: string;
|
|
@@ -34,9 +38,12 @@ export declare const ReportIcon: ({ color, ...props }: {
|
|
|
34
38
|
[x: string]: any;
|
|
35
39
|
color?: string;
|
|
36
40
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export declare const DeleteIcon: ({ color, ...props }: {
|
|
41
|
+
export declare const DeleteIcon: ({ fill, color, width, height, ...props }: {
|
|
38
42
|
[x: string]: any;
|
|
43
|
+
fill?: string;
|
|
39
44
|
color?: string;
|
|
45
|
+
width?: number;
|
|
46
|
+
height?: number;
|
|
40
47
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
41
48
|
export declare const CopyIcon: ({ color, ...props }: {
|
|
42
49
|
[x: string]: any;
|
|
@@ -98,3 +105,7 @@ export declare const PlusIcon: ({ color, ...props }: {
|
|
|
98
105
|
[x: string]: any;
|
|
99
106
|
color?: string;
|
|
100
107
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare const SaveIcon: ({ color, ...props }: {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
color?: string;
|
|
111
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const EditContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const EditInfoBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const EditTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const EditText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
interface EditWrapperProps {
|
|
8
|
+
text: string;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const EditWrapper: FC<EditWrapperProps>;
|
|
12
|
+
export {};
|
|
@@ -5,12 +5,15 @@ interface MessageListProps<TMessage extends IMessage> {
|
|
|
5
5
|
CustomMessage?: React.ComponentType<{
|
|
6
6
|
message: IMessage;
|
|
7
7
|
isUser: boolean;
|
|
8
|
+
isReply?: boolean;
|
|
8
9
|
}>;
|
|
9
10
|
user: User;
|
|
10
11
|
roomJID: string;
|
|
11
12
|
loadMoreMessages: (chatJID: string, max: number, amount?: number) => Promise<void>;
|
|
12
13
|
loading: boolean;
|
|
13
14
|
config?: IConfig;
|
|
15
|
+
isReply?: boolean;
|
|
16
|
+
activeMessage?: IMessage;
|
|
14
17
|
}
|
|
15
|
-
declare const MessageList: <TMessage extends IMessage>({ CustomMessage, user, loadMoreMessages, roomJID, config, loading, }: MessageListProps<TMessage>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const MessageList: <TMessage extends IMessage>({ CustomMessage, user, loadMoreMessages, roomJID, config, loading, isReply, activeMessage, }: MessageListProps<TMessage>) => import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export default MessageList;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
interface AvatarProps {
|
|
4
4
|
username?: string;
|
|
5
5
|
firstName?: string;
|
|
6
6
|
lastName?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
7
8
|
}
|
|
8
9
|
export declare const Avatar: React.FC<AvatarProps>;
|
|
9
10
|
export {};
|
|
@@ -2,6 +2,8 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { IMessage } from '../../types/types';
|
|
3
3
|
|
|
4
4
|
interface MessageInteractionsProps {
|
|
5
|
+
isReply?: boolean;
|
|
6
|
+
isUser?: boolean;
|
|
5
7
|
message: IMessage;
|
|
6
8
|
contextMenu: {
|
|
7
9
|
visible: boolean;
|
|
@@ -13,6 +15,9 @@ interface MessageInteractionsProps {
|
|
|
13
15
|
x: any;
|
|
14
16
|
y: any;
|
|
15
17
|
}) => void;
|
|
18
|
+
handleReplyMessage: () => void;
|
|
19
|
+
handleDeleteMessage: () => void;
|
|
20
|
+
handleEditMessage: () => void;
|
|
16
21
|
}
|
|
17
22
|
declare const MessageInteractions: React.FC<MessageInteractionsProps>;
|
|
18
23
|
export default MessageInteractions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
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
|
+
isUser: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
interface MessageReplyProps {
|
|
7
|
+
isUser: boolean;
|
|
8
|
+
text: string;
|
|
9
|
+
handleReplyMessage: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const MessageReply: FC<MessageReplyProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ModalWrapperProps {
|
|
4
|
+
iconTitle?: any;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
buttonText?: string;
|
|
8
|
+
backgroundColorButton?: string;
|
|
9
|
+
isTextarea?: boolean;
|
|
10
|
+
textarea?: string;
|
|
11
|
+
setTextarea?: (value: string) => void;
|
|
12
|
+
handleCloseModal: () => void;
|
|
13
|
+
handleClick: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const ModalWrapper: FC<ModalWrapperProps>;
|
|
16
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IMessage, User } from '../../types/types';
|
|
3
|
+
|
|
4
|
+
interface ThreadWrapperProps {
|
|
5
|
+
activeMessage: IMessage;
|
|
6
|
+
user: User;
|
|
7
|
+
customMessageComponent?: React.ComponentType<{
|
|
8
|
+
message: IMessage;
|
|
9
|
+
isUser: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
declare const ThreadWrapper: FC<ThreadWrapperProps>;
|
|
13
|
+
export default ThreadWrapper;
|
|
@@ -16,9 +16,11 @@ export declare const MessageInput: import('styled-components/dist/types').IStyle
|
|
|
16
16
|
export declare const SendButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
17
17
|
export declare const CustomMessageContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
18
|
isUser: boolean;
|
|
19
|
+
reply: number;
|
|
19
20
|
}>> & string;
|
|
20
21
|
export declare const CustomMessageBubble: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
21
22
|
isUser: boolean;
|
|
23
|
+
deleted: boolean;
|
|
22
24
|
}>> & string;
|
|
23
25
|
export declare const CustomMessageText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
24
26
|
export declare const CustomUserName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
@@ -34,3 +36,7 @@ export declare const IconButton: import('styled-components/dist/types').IStyledC
|
|
|
34
36
|
export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
37
|
export declare const StyledLoaderWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
38
|
export declare const OrDelimiter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
|
+
export declare const AlsoContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
40
|
+
export declare const AlsoCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
41
|
+
accentColor: string;
|
|
42
|
+
}>> & string;
|
|
@@ -12,3 +12,4 @@ export declare const FilePreview: import('styled-components/dist/types').IStyled
|
|
|
12
12
|
export declare const FileIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
13
13
|
export declare const VideoPreview: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, never>> & string;
|
|
14
14
|
export declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
15
|
+
export declare const TextareaInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface DateLabelProps {
|
|
4
|
+
reply: number;
|
|
5
|
+
colors?: {
|
|
6
|
+
primary?: string;
|
|
7
|
+
secondary?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const StyledDateLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
primary?: string;
|
|
12
|
+
secondary?: string;
|
|
13
|
+
}>> & string;
|
|
14
|
+
declare const TreadLabel: React.FC<DateLabelProps>;
|
|
15
|
+
export default TreadLabel;
|
|
@@ -3,6 +3,7 @@ export declare const MESSAGE_INTERACTIONS: {
|
|
|
3
3
|
SEND_ITEM: string;
|
|
4
4
|
REPLY: string;
|
|
5
5
|
COPY: string;
|
|
6
|
+
EDIT: string;
|
|
6
7
|
DELETE: string;
|
|
7
8
|
REPORT: string;
|
|
8
9
|
};
|
|
@@ -23,10 +24,17 @@ export declare const MESSAGE_INTERACTIONS_ICONS: {
|
|
|
23
24
|
[x: string]: any;
|
|
24
25
|
color?: string;
|
|
25
26
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
|
|
27
|
+
EDIT: ({ color, ...props }: {
|
|
27
28
|
[x: string]: any;
|
|
28
29
|
color?: string;
|
|
29
30
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
DELETE: ({ fill, color, width, height, ...props }: {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
fill?: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
width?: number;
|
|
36
|
+
height?: number;
|
|
37
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
38
|
REPORT: ({ color, ...props }: {
|
|
31
39
|
[x: string]: any;
|
|
32
40
|
color?: string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Element } from 'ltx';
|
|
2
|
+
|
|
3
|
+
export declare const createMessageFromXml: (data: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
coinsInMessage?: any;
|
|
6
|
+
numberOfReplies?: any;
|
|
7
|
+
isSystemMessage?: any;
|
|
8
|
+
isMediafile?: any;
|
|
9
|
+
locationPreview?: any;
|
|
10
|
+
mimetype?: any;
|
|
11
|
+
location?: any;
|
|
12
|
+
senderWalletAddress?: any;
|
|
13
|
+
senderFirstName?: any;
|
|
14
|
+
senderLastName?: any;
|
|
15
|
+
photoURL?: any;
|
|
16
|
+
senderJID?: any;
|
|
17
|
+
token?: any;
|
|
18
|
+
refreshToken?: any;
|
|
19
|
+
roomJid?: any;
|
|
20
|
+
tokenAmount?: any;
|
|
21
|
+
quickReplie?: any;
|
|
22
|
+
notDisplayedValue?: any;
|
|
23
|
+
showInChannel?: any;
|
|
24
|
+
attachmentId?: any;
|
|
25
|
+
createdAt?: any;
|
|
26
|
+
expiresAt?: any;
|
|
27
|
+
fileName?: any;
|
|
28
|
+
originalName?: any;
|
|
29
|
+
ownerKey?: any;
|
|
30
|
+
receiverMessageId?: any;
|
|
31
|
+
size?: any;
|
|
32
|
+
updatedAt?: any;
|
|
33
|
+
userId?: any;
|
|
34
|
+
}, body: Element | undefined, id: string, from: any) => Promise<any>;
|