@webinex/chatify 2.0.0-build10 → 2.0.0-build2
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/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/core/api/accountApi.d.ts +3 -3
- package/dist/esm/types/core/api/api.d.ts +1751 -1593
- package/dist/esm/types/core/api/baseApi.d.ts +1 -6
- package/dist/esm/types/core/api/chatApi.d.ts +11 -2
- package/dist/esm/types/core/api/chatListApi.d.ts +4 -3
- package/dist/esm/types/core/api/chatMemberApi.d.ts +3 -3
- package/dist/esm/types/core/api/chatMessageApi.d.ts +34 -3
- package/dist/esm/types/core/api/index.d.ts +8 -0
- package/dist/esm/types/core/api/threadApi.d.ts +95 -1
- package/dist/esm/types/core/api/threadMessageApi.d.ts +24 -2
- package/package.json +6 -5
- package/src/core/api/accountApi.ts +7 -5
- package/src/core/api/api.ts +42 -642
- package/src/core/api/baseApi.ts +7 -15
- package/src/core/api/chatApi.ts +8 -6
- package/src/core/api/chatListApi.ts +20 -5
- package/src/core/api/chatMemberApi.ts +7 -5
- package/src/core/api/chatMessageApi.ts +148 -4
- package/src/core/api/index.ts +8 -0
- package/src/core/api/threadApi.ts +125 -1
- package/src/core/api/threadMessageApi.ts +108 -1
- package/src/ui/Chat/ChatEditableHeaderName.tsx +2 -2
- package/src/ui/Chat/ChatPanel.tsx +2 -2
- package/src/ui/Chat/ChatView.tsx +14 -6
- package/src/ui/Chat/Members/ChatMembersPanel.tsx +12 -7
- package/src/ui/Chat/Members/ChatMembersPreview.tsx +2 -2
- package/src/ui/ChatGroup/ChatGroupPanel.tsx +2 -2
- package/src/ui/ChatGroup/Create/CreateChatMemberInput.tsx +2 -2
- package/src/ui/ChatGroup/Create/CreateChatPanel.tsx +2 -2
- package/src/ui/ChatGroup/Layout/ChatGroupMain.tsx +2 -2
- package/src/ui/ChatGroup/List/ChatList.tsx +2 -2
- package/src/ui/Conversation/NextObserver/NextMessagesObserver.tsx +2 -2
- package/src/ui/Thread/ThreadPanel.tsx +19 -8
- package/dist/index.d.ts +0 -3004
- package/src/types/core/api/accountApi.d.ts +0 -5
- package/src/types/core/api/api.d.ts +0 -2380
- package/src/types/core/api/baseApi.d.ts +0 -15
- package/src/types/core/api/chatApi.d.ts +0 -16
- package/src/types/core/api/chatListApi.d.ts +0 -5
- package/src/types/core/api/chatMemberApi.d.ts +0 -6
- package/src/types/core/api/chatMessageApi.d.ts +0 -3
- package/src/types/core/api/index.d.ts +0 -1
- package/src/types/core/api/threadApi.d.ts +0 -1
- package/src/types/core/api/threadMessageApi.d.ts +0 -6
- package/src/types/core/client.d.ts +0 -83
- package/src/types/core/constants.d.ts +0 -1
- package/src/types/core/debounce.d.ts +0 -27
- package/src/types/core/index.d.ts +0 -4
- package/src/types/core/types.d.ts +0 -105
- package/src/types/index.d.ts +0 -2
- package/src/types/ui/Chat/ChatContext.d.ts +0 -10
- package/src/types/ui/Chat/ChatEditableHeaderName.d.ts +0 -2
- package/src/types/ui/Chat/ChatHeaderActions.d.ts +0 -2
- package/src/types/ui/Chat/ChatPanel.d.ts +0 -13
- package/src/types/ui/Chat/ChatView.d.ts +0 -17
- package/src/types/ui/Chat/Members/ChatMembersButton.d.ts +0 -2
- package/src/types/ui/Chat/Members/ChatMembersPanel.d.ts +0 -2
- package/src/types/ui/Chat/Members/ChatMembersPreview.d.ts +0 -2
- package/src/types/ui/Chat/Members/index.d.ts +0 -11
- package/src/types/ui/Chat/index.d.ts +0 -6
- package/src/types/ui/ChatGroup/ChatGroupContext.d.ts +0 -12
- package/src/types/ui/ChatGroup/ChatGroupPanel.d.ts +0 -15
- package/src/types/ui/ChatGroup/Create/CreateChatButton.d.ts +0 -2
- package/src/types/ui/ChatGroup/Create/CreateChatForm.d.ts +0 -11
- package/src/types/ui/ChatGroup/Create/CreateChatMemberInput.d.ts +0 -5
- package/src/types/ui/ChatGroup/Create/CreateChatNameInput.d.ts +0 -5
- package/src/types/ui/ChatGroup/Create/CreateChatPanel.d.ts +0 -2
- package/src/types/ui/ChatGroup/Create/index.d.ts +0 -17
- package/src/types/ui/ChatGroup/Layout/ChatGroupAside.d.ts +0 -2
- package/src/types/ui/ChatGroup/Layout/ChatGroupBody.d.ts +0 -2
- package/src/types/ui/ChatGroup/Layout/ChatGroupFooter.d.ts +0 -2
- package/src/types/ui/ChatGroup/Layout/ChatGroupHeader.d.ts +0 -2
- package/src/types/ui/ChatGroup/Layout/ChatGroupMain.d.ts +0 -2
- package/src/types/ui/ChatGroup/Layout/index.d.ts +0 -17
- package/src/types/ui/ChatGroup/List/ChatList.d.ts +0 -2
- package/src/types/ui/ChatGroup/List/ChatListItemAvatar.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemBox.d.ts +0 -6
- package/src/types/ui/ChatGroup/List/ChatListItemLastMessage.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemLastMessageAuthor.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemLastMessageContent.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemLastMessageSentAt.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemName.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/ChatListItemUnreadCount.d.ts +0 -3
- package/src/types/ui/ChatGroup/List/index.d.ts +0 -29
- package/src/types/ui/ChatGroup/index.d.ts +0 -5
- package/src/types/ui/Chatify.d.ts +0 -8
- package/src/types/ui/Conversation/Conversation.d.ts +0 -21
- package/src/types/ui/Conversation/ConversationActions.d.ts +0 -2
- package/src/types/ui/Conversation/ConversationBody.d.ts +0 -2
- package/src/types/ui/Conversation/ConversationContext.d.ts +0 -20
- package/src/types/ui/Conversation/ConversationHeader.d.ts +0 -2
- package/src/types/ui/Conversation/ConversationName.d.ts +0 -2
- package/src/types/ui/Conversation/InputBox/InputBox.d.ts +0 -2
- package/src/types/ui/Conversation/InputBox/InputFilesBox.d.ts +0 -2
- package/src/types/ui/Conversation/InputBox/InputSubmitButtonBox.d.ts +0 -5
- package/src/types/ui/Conversation/InputBox/InputTextBox.d.ts +0 -8
- package/src/types/ui/Conversation/InputBox/index.d.ts +0 -14
- package/src/types/ui/Conversation/Message/MessageAuthor.d.ts +0 -3
- package/src/types/ui/Conversation/Message/MessageBox.d.ts +0 -6
- package/src/types/ui/Conversation/Message/MessageContent.d.ts +0 -3
- package/src/types/ui/Conversation/Message/MessageInfoBox.d.ts +0 -3
- package/src/types/ui/Conversation/Message/MessageRow.d.ts +0 -6
- package/src/types/ui/Conversation/Message/MessageText.d.ts +0 -3
- package/src/types/ui/Conversation/Message/index.d.ts +0 -20
- package/src/types/ui/Conversation/NextObserver/NextMessagesObserver.d.ts +0 -5
- package/src/types/ui/Conversation/NextObserver/index.d.ts +0 -1
- package/src/types/ui/Conversation/ReadObserver/MessageReadObserver.d.ts +0 -6
- package/src/types/ui/Conversation/ReadObserver/index.d.ts +0 -1
- package/src/types/ui/Conversation/SendingMessage/SendingMessageBox.d.ts +0 -7
- package/src/types/ui/Conversation/SendingMessage/SendingMessageContent.d.ts +0 -3
- package/src/types/ui/Conversation/SendingMessage/SendingMessageInfoBox.d.ts +0 -3
- package/src/types/ui/Conversation/SendingMessage/SendingMessageText.d.ts +0 -3
- package/src/types/ui/Conversation/SendingMessage/index.d.ts +0 -14
- package/src/types/ui/Conversation/SystemMessage/SystemMessageBox.d.ts +0 -6
- package/src/types/ui/Conversation/SystemMessage/SystemMessageRow.d.ts +0 -9
- package/src/types/ui/Conversation/SystemMessage/index.d.ts +0 -8
- package/src/types/ui/Conversation/index.d.ts +0 -12
- package/src/types/ui/Thread/ThreadActions.d.ts +0 -2
- package/src/types/ui/Thread/ThreadContext.d.ts +0 -8
- package/src/types/ui/Thread/ThreadPanel.d.ts +0 -14
- package/src/types/ui/Thread/index.d.ts +0 -3
- package/src/types/ui/color.d.ts +0 -6
- package/src/types/ui/common/Avatar.d.ts +0 -6
- package/src/types/ui/common/Icon.d.ts +0 -20
- package/src/types/ui/common/MessageSkeleton.d.ts +0 -5
- package/src/types/ui/common/index.d.ts +0 -11
- package/src/types/ui/customize.d.ts +0 -9
- package/src/types/ui/index.d.ts +0 -11
- package/src/types/ui/localizer.d.ts +0 -35
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConversationHeader } from './ConversationHeader';
|
|
3
|
-
import { ConversationBody } from './ConversationBody';
|
|
4
|
-
import { ConversationName } from './ConversationName';
|
|
5
|
-
import { ConversationContextValue, ConversationValue } from './ConversationContext';
|
|
6
|
-
import { InputBoxCustomizeValue } from './InputBox';
|
|
7
|
-
import { ConversationActions } from './ConversationActions';
|
|
8
|
-
import { MessageCustomizeValue } from './Message';
|
|
9
|
-
import { SendingMessageCustomizeValue } from './SendingMessage';
|
|
10
|
-
import { SystemMessageCustomizeValue } from './SystemMessage';
|
|
11
|
-
import { CommonCustomizeValue } from '../common';
|
|
12
|
-
export interface ConversationProps extends Omit<ConversationContextValue, keyof ConversationValue> {
|
|
13
|
-
value: ConversationValue;
|
|
14
|
-
}
|
|
15
|
-
export interface ConversationCustomizeValue extends InputBoxCustomizeValue, MessageCustomizeValue, SendingMessageCustomizeValue, SystemMessageCustomizeValue, CommonCustomizeValue {
|
|
16
|
-
ConversationActions?: typeof ConversationActions.Component | null;
|
|
17
|
-
ConversationBody?: typeof ConversationBody.Component | null;
|
|
18
|
-
ConversationHeader?: typeof ConversationHeader.Component | null;
|
|
19
|
-
ConversationName?: typeof ConversationName.Component | null;
|
|
20
|
-
}
|
|
21
|
-
export declare const Conversation: import("../customize").Customizable<import("react").ComponentType<ConversationProps>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MessageBase, MessageBody } from '../../core';
|
|
3
|
-
export interface ConversationValue {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
active: boolean;
|
|
7
|
-
lastReadMessageId: string | null;
|
|
8
|
-
}
|
|
9
|
-
export interface ConversationContextValue extends ConversationValue {
|
|
10
|
-
messages?: MessageBase[];
|
|
11
|
-
hasMore?: boolean;
|
|
12
|
-
nextLoading: boolean;
|
|
13
|
-
noReadTracking?: boolean;
|
|
14
|
-
isReading: (id: string) => boolean;
|
|
15
|
-
onNext: () => void;
|
|
16
|
-
onSend: (message: MessageBody) => void;
|
|
17
|
-
onRead: (id: string) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const ConversationContext: React.Context<ConversationContextValue>;
|
|
20
|
-
export declare function useConversation(): ConversationContextValue;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface TextInputBoxProps {
|
|
3
|
-
value: string;
|
|
4
|
-
onChange: (value: string) => void;
|
|
5
|
-
onSend: (value: string) => void;
|
|
6
|
-
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
7
|
-
}
|
|
8
|
-
export declare const InputTextBox: import("../../customize").Customizable<import("react").ComponentType<TextInputBoxProps>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputBox } from './InputBox';
|
|
2
|
-
import { InputFilesBox } from './InputFilesBox';
|
|
3
|
-
import { InputSubmitButtonBox } from './InputSubmitButtonBox';
|
|
4
|
-
import { InputTextBox } from './InputTextBox';
|
|
5
|
-
export * from './InputBox';
|
|
6
|
-
export * from './InputFilesBox';
|
|
7
|
-
export * from './InputSubmitButtonBox';
|
|
8
|
-
export * from './InputTextBox';
|
|
9
|
-
export interface InputBoxCustomizeValue {
|
|
10
|
-
InputBox?: typeof InputBox.Component | null;
|
|
11
|
-
InputTextBox?: typeof InputTextBox.Component | null;
|
|
12
|
-
InputFilesBox?: typeof InputFilesBox.Component | null;
|
|
13
|
-
InputSubmitButtonBox?: typeof InputSubmitButtonBox.Component | null;
|
|
14
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { MessageBoxProps } from './MessageBox';
|
|
3
|
-
export interface MessageRowProps extends MessageBoxProps {
|
|
4
|
-
containerRef?: Ref<HTMLDivElement>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MessageRow: import("../../customize").Customizable<import("react").ComponentType<MessageRowProps>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MessageAuthor } from './MessageAuthor';
|
|
2
|
-
import { MessageBox } from './MessageBox';
|
|
3
|
-
import { MessageContent } from './MessageContent';
|
|
4
|
-
import { MessageInfoBox } from './MessageInfoBox';
|
|
5
|
-
import { MessageRow } from './MessageRow';
|
|
6
|
-
import { MessageText } from './MessageText';
|
|
7
|
-
export * from './MessageAuthor';
|
|
8
|
-
export * from './MessageBox';
|
|
9
|
-
export * from './MessageContent';
|
|
10
|
-
export * from './MessageInfoBox';
|
|
11
|
-
export * from './MessageRow';
|
|
12
|
-
export * from './MessageText';
|
|
13
|
-
export interface MessageCustomizeValue {
|
|
14
|
-
MessageAuthor?: typeof MessageAuthor.Component | null;
|
|
15
|
-
MessageBox?: typeof MessageBox.Component | null;
|
|
16
|
-
MessageContent?: typeof MessageContent.Component | null;
|
|
17
|
-
MessageInfoBox?: typeof MessageInfoBox.Component | null;
|
|
18
|
-
MessageRow?: typeof MessageRow.Component | null;
|
|
19
|
-
MessageText?: typeof MessageText.Component | null;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './NextMessagesObserver';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { MessageBoxProps } from '../Message';
|
|
3
|
-
export interface MessageReadObserverProps extends MessageBoxProps {
|
|
4
|
-
messageRef: RefObject<HTMLDivElement | null>;
|
|
5
|
-
}
|
|
6
|
-
export declare function MessageReadObserver(props: MessageReadObserverProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MessageReadObserver';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { File } from '../../../core';
|
|
3
|
-
export interface SendingMessageBoxProps {
|
|
4
|
-
text: string;
|
|
5
|
-
files: File[];
|
|
6
|
-
}
|
|
7
|
-
export declare const SendingMessageBox: import("../../customize").Customizable<import("react").ComponentType<SendingMessageBoxProps>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SendingMessageBox } from './SendingMessageBox';
|
|
2
|
-
import { SendingMessageContent } from './SendingMessageContent';
|
|
3
|
-
import { SendingMessageInfoBox } from './SendingMessageInfoBox';
|
|
4
|
-
import { SendingMessageText } from './SendingMessageText';
|
|
5
|
-
export * from './SendingMessageBox';
|
|
6
|
-
export * from './SendingMessageContent';
|
|
7
|
-
export * from './SendingMessageInfoBox';
|
|
8
|
-
export * from './SendingMessageText';
|
|
9
|
-
export interface SendingMessageCustomizeValue {
|
|
10
|
-
SendingMessageBox?: typeof SendingMessageBox.Component | null;
|
|
11
|
-
SendingMessageContent?: typeof SendingMessageContent.Component | null;
|
|
12
|
-
SendingMessageInfoBox?: typeof SendingMessageInfoBox.Component | null;
|
|
13
|
-
SendingMessageText?: typeof SendingMessageText.Component | null;
|
|
14
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MessageBase } from '../../../core';
|
|
3
|
-
export interface SystemMessageBoxProps {
|
|
4
|
-
message: MessageBase;
|
|
5
|
-
}
|
|
6
|
-
export declare const SystemMessageBox: import("../../customize").Customizable<import("react").ComponentType<SystemMessageBoxProps>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { Localizer } from '../../localizer';
|
|
3
|
-
import { MessageBase } from '../../../core';
|
|
4
|
-
export interface SystemMessageRowProps {
|
|
5
|
-
message: MessageBase;
|
|
6
|
-
containerRef?: Ref<HTMLDivElement>;
|
|
7
|
-
}
|
|
8
|
-
export declare function formatSystemMessage(localizer: Localizer, text: string): React.ReactNode;
|
|
9
|
-
export declare const SystemMessageRow: import("../../customize").Customizable<import("react").ComponentType<SystemMessageRowProps>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SystemMessageBox } from './SystemMessageBox';
|
|
2
|
-
import { SystemMessageRow } from './SystemMessageRow';
|
|
3
|
-
export * from './SystemMessageBox';
|
|
4
|
-
export * from './SystemMessageRow';
|
|
5
|
-
export interface SystemMessageCustomizeValue {
|
|
6
|
-
SystemMessageBox?: typeof SystemMessageBox.Component | null;
|
|
7
|
-
SystemMessageRow?: typeof SystemMessageRow.Component | null;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './InputBox';
|
|
2
|
-
export * from './Message';
|
|
3
|
-
export * from './NextObserver';
|
|
4
|
-
export * from './ReadObserver';
|
|
5
|
-
export * from './SendingMessage';
|
|
6
|
-
export * from './SystemMessage';
|
|
7
|
-
export * from './ConversationActions';
|
|
8
|
-
export * from './ConversationBody';
|
|
9
|
-
export * from './ConversationHeader';
|
|
10
|
-
export * from './ConversationName';
|
|
11
|
-
export * from './ConversationContext';
|
|
12
|
-
export * from './Conversation';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ThreadContextValue {
|
|
3
|
-
id: string;
|
|
4
|
-
watch: boolean;
|
|
5
|
-
onWatch: (value: boolean) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const ThreadContext: React.Context<ThreadContextValue>;
|
|
8
|
-
export declare function useThreadContext(): ThreadContextValue;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ConversationCustomizeValue } from '../Conversation';
|
|
2
|
-
import { Localizer } from '../localizer';
|
|
3
|
-
import { ThreadActions } from './ThreadActions';
|
|
4
|
-
import { CommonCustomizeValue } from '../common';
|
|
5
|
-
export interface ThreadCustomizeValue extends ConversationCustomizeValue, CommonCustomizeValue {
|
|
6
|
-
ThreadActions?: typeof ThreadActions.Component | null;
|
|
7
|
-
}
|
|
8
|
-
export interface ThreadPanelProps {
|
|
9
|
-
threadId: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
customize?: ThreadCustomizeValue;
|
|
12
|
-
localizer?: Localizer;
|
|
13
|
-
}
|
|
14
|
-
export declare function ThreadPanel(props: ThreadPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
package/src/types/ui/color.d.ts
DELETED