@cometchat/chat-uikit-react 6.3.9 → 6.3.11
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/index.d.ts +42 -0
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatMessageComposer.css +5 -0
- package/dist/styles/components/CometChatMessageComposer.css +5 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -0
- package/dist/types/components/BaseComponents/CometChatList/useCometChatList.d.ts +1 -0
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
- package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +2 -0
- package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +10 -0
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +12 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2506,6 +2506,18 @@ interface ListProps<T> {
|
|
|
2506
2506
|
*
|
|
2507
2507
|
*/
|
|
2508
2508
|
scrollToEnd?: boolean;
|
|
2509
|
+
/**
|
|
2510
|
+
* @internal
|
|
2511
|
+
*
|
|
2512
|
+
* Skips the scroll height check when triggering onScrolledToBottom callback in CometChatList.
|
|
2513
|
+
* When true, the callback fires even if the list content fits within the list body container.
|
|
2514
|
+
* Uses the screen/viewport as the intersection root instead of the list body,
|
|
2515
|
+
* so the callback triggers when the bottom of the list becomes visible on screen.
|
|
2516
|
+
* Useful when the list is embedded in a parent scrollable container.
|
|
2517
|
+
*
|
|
2518
|
+
* @defaultValue `false`
|
|
2519
|
+
*/
|
|
2520
|
+
observeScrollFromViewport?: boolean;
|
|
2509
2521
|
}
|
|
2510
2522
|
/**
|
|
2511
2523
|
* Renders a list component that can display a title, search bar,
|
|
@@ -3950,6 +3962,18 @@ interface GroupMembersProps {
|
|
|
3950
3962
|
* @defaultValue `false`
|
|
3951
3963
|
*/
|
|
3952
3964
|
showScrollbar?: boolean;
|
|
3965
|
+
/**
|
|
3966
|
+
* @internal
|
|
3967
|
+
*
|
|
3968
|
+
* Skips the scroll height check when triggering onScrolledToBottom callback in CometChatList.
|
|
3969
|
+
* When true, the callback fires even if the list content fits within the list body container.
|
|
3970
|
+
* Uses the screen/viewport as the intersection root instead of the list body,
|
|
3971
|
+
* so the callback triggers when the bottom of the list becomes visible on screen.
|
|
3972
|
+
* Useful when the list is embedded in a parent scrollable container.
|
|
3973
|
+
*
|
|
3974
|
+
* @defaultValue `false`
|
|
3975
|
+
*/
|
|
3976
|
+
observeScrollFromViewport?: boolean;
|
|
3953
3977
|
}
|
|
3954
3978
|
declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
3955
3979
|
|
|
@@ -4102,6 +4126,7 @@ interface MessageBubbleProps {
|
|
|
4102
4126
|
topMenuSize?: number;
|
|
4103
4127
|
type?: string;
|
|
4104
4128
|
category?: string;
|
|
4129
|
+
toggleOptionsVisibility?: boolean;
|
|
4105
4130
|
}
|
|
4106
4131
|
/**
|
|
4107
4132
|
* React component for displaying different types of messages in the message list.
|
|
@@ -4663,6 +4688,11 @@ interface MessageListProps {
|
|
|
4663
4688
|
* @defaultValue `false`
|
|
4664
4689
|
*/
|
|
4665
4690
|
hideFlagRemarkField?: boolean;
|
|
4691
|
+
/**
|
|
4692
|
+
* Loads the most recent existing agent conversation if one is available. Used to set state as loading when enabled.
|
|
4693
|
+
* @default false
|
|
4694
|
+
*/
|
|
4695
|
+
loadLastAgentConversation?: boolean;
|
|
4666
4696
|
}
|
|
4667
4697
|
declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
|
|
4668
4698
|
|
|
@@ -6933,6 +6963,8 @@ interface AIAssistantChatProps {
|
|
|
6933
6963
|
emptyChatImageView?: React__default.JSX.Element;
|
|
6934
6964
|
aiAssistantTools?: CometChatAIAssistantTools;
|
|
6935
6965
|
templates?: CometChatMessageTemplate[];
|
|
6966
|
+
parentMessageId?: number;
|
|
6967
|
+
loadLastAgentConversation?: boolean;
|
|
6936
6968
|
}
|
|
6937
6969
|
declare const CometChatAIAssistantChat: React__default.MemoExoticComponent<(props: AIAssistantChatProps) => react_jsx_runtime.JSX.Element>;
|
|
6938
6970
|
|
|
@@ -7021,6 +7053,16 @@ interface CometChatAIAssistantChatHistoryProps {
|
|
|
7021
7053
|
* @default false
|
|
7022
7054
|
*/
|
|
7023
7055
|
hideNewChat?: boolean;
|
|
7056
|
+
/**
|
|
7057
|
+
* Callback function triggered when the chat history is empty.
|
|
7058
|
+
* Useful for handling UI state when no conversations exist.
|
|
7059
|
+
*/
|
|
7060
|
+
onEmpty?: (() => void) | undefined;
|
|
7061
|
+
/**
|
|
7062
|
+
* Loads the most recent existing agent conversation if one is available, by clicking it.
|
|
7063
|
+
* @default false
|
|
7064
|
+
*/
|
|
7065
|
+
loadLastAgentConversation?: boolean;
|
|
7024
7066
|
}
|
|
7025
7067
|
declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
7026
7068
|
|