@cometchat/chat-uikit-react 6.2.4 → 6.2.6

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.
@@ -142,11 +142,13 @@
142
142
  text-decoration: underline;
143
143
  color: var(--cometchat-text-color-highlight);
144
144
  }
145
-
145
+ .cometchat-ai-assistant-message-bubble ul,.cometchat-ai-assistant-message-bubble ol,.cometchat-ai-assistant-message-bubble hr{
146
+ margin: 0;
147
+ }
146
148
  .cometchat-ai-assistant-message-bubble li{
147
149
  overflow: visible !important;
148
150
  line-height: 20px;
149
- padding: 6px 0px;
151
+ padding: 0px 0px 6px 0px;
150
152
  }
151
153
  .cometchat-ai-assistant-message-bubble > ol:first-child > li:first-child,
152
154
  .cometchat-ai-assistant-message-bubble > ul:first-child > li:first-child
@@ -205,10 +205,13 @@
205
205
  color: var(--cometchat-text-color-highlight);
206
206
  }
207
207
 
208
+ .cometchat-stream-message-bubble ul,.cometchat-stream-message-bubble ol,.cometchat-stream-message-bubble hr{
209
+ margin: 0;
210
+ }
208
211
  .cometchat-stream-message-bubble li{
209
212
  overflow: visible !important;
210
213
  line-height: 20px;
211
- padding: 6px 0px;
214
+ padding: 0px 0px 6px 0px;
212
215
  }
213
216
  .cometchat-stream-message-bubble img{
214
217
  max-height: 300px;
@@ -142,11 +142,13 @@
142
142
  text-decoration: underline;
143
143
  color: var(--cometchat-text-color-highlight);
144
144
  }
145
-
145
+ .cometchat-ai-assistant-message-bubble ul,.cometchat-ai-assistant-message-bubble ol,.cometchat-ai-assistant-message-bubble hr{
146
+ margin: 0;
147
+ }
146
148
  .cometchat-ai-assistant-message-bubble li{
147
149
  overflow: visible !important;
148
150
  line-height: 20px;
149
- padding: 6px 0px;
151
+ padding: 0px 0px 6px 0px;
150
152
  }
151
153
  .cometchat-ai-assistant-message-bubble > ol:first-child > li:first-child,
152
154
  .cometchat-ai-assistant-message-bubble > ul:first-child > li:first-child
@@ -205,10 +205,13 @@
205
205
  color: var(--cometchat-text-color-highlight);
206
206
  }
207
207
 
208
+ .cometchat-stream-message-bubble ul,.cometchat-stream-message-bubble ol,.cometchat-stream-message-bubble hr{
209
+ margin: 0;
210
+ }
208
211
  .cometchat-stream-message-bubble li{
209
212
  overflow: visible !important;
210
213
  line-height: 20px;
211
- padding: 6px 0px;
214
+ padding: 0px 0px 6px 0px;
212
215
  }
213
216
  .cometchat-stream-message-bubble img{
214
217
  max-height: 300px;
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { CometChatAIAssistantTools } from '../../modals/CometChatAIAssistantTools';
3
+ import { PreviewMessageMode } from '../../Enums/Enums';
3
4
  interface AIAssistantChatProps {
4
5
  hideChatHistory?: boolean;
5
6
  hideNewChat?: boolean;
6
7
  user: CometChat.User;
7
8
  onBackButtonClicked?: () => void;
8
9
  onCloseButtonClicked?: () => void;
10
+ onSendButtonClick?: (message: CometChat.BaseMessage, previewMessageMode?: PreviewMessageMode) => void;
9
11
  showBackButton?: boolean;
10
12
  showCloseButton?: boolean;
11
13
  headerItemView?: React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "6.2.4",
3
+ "version": "6.2.6",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "exports": {