@cometchat/chat-uikit-react 6.3.1 → 6.3.3
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 +68 -42
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAIAssistantChat.css +21 -0
- package/dist/styles/CometChatAIAssistantMessageBubble.css +21 -4
- package/dist/styles/CometChatSearch.css +4 -1
- package/dist/styles/CometChatStreamMessageBubble.css +21 -5
- package/dist/styles/components/CometChatAIAssistantChat.css +21 -0
- package/dist/styles/components/CometChatAIAssistantMessageBubble.css +21 -4
- package/dist/styles/components/CometChatSearch.css +4 -1
- package/dist/styles/components/CometChatStreamMessageBubble.css +21 -5
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +4 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +21 -0
- package/dist/types/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +1 -1
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -0
- package/dist/types/services/stream-message.service.d.ts +1 -0
- package/dist/types/utils/util.d.ts +5 -4
- package/package.json +2 -2
|
@@ -106,6 +106,19 @@
|
|
|
106
106
|
width: auto;
|
|
107
107
|
|
|
108
108
|
}
|
|
109
|
+
|
|
110
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-sent .cometchat-message-list__receipt {
|
|
111
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-wait .cometchat-message-list__receipt {
|
|
115
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {
|
|
119
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
120
|
+
}
|
|
121
|
+
|
|
109
122
|
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view .cometchat-message-bubble__status-info-view-receipts-error {
|
|
110
123
|
height: 12px;
|
|
111
124
|
width: 12px;
|
|
@@ -399,6 +412,14 @@ background: var(--cometchat-error-color);
|
|
|
399
412
|
background: var(--cometchat-icon-color-secondary);
|
|
400
413
|
|
|
401
414
|
}
|
|
415
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view{
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: row;
|
|
418
|
+
align-items: center;
|
|
419
|
+
}
|
|
420
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view .cometchat{
|
|
421
|
+
display: flex;
|
|
422
|
+
}
|
|
402
423
|
.cometchat-ai-assistant-chat__sidebar-overlay {
|
|
403
424
|
position: absolute;
|
|
404
425
|
top: 0;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
margin-bottom: var(--cometchat-margin-2);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.cometchat-ai-assistant-message-bubble {
|
|
20
|
+
.cometchat:has(> .cometchat-ai-assistant-message-bubble) {
|
|
21
21
|
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -40,10 +40,22 @@
|
|
|
40
40
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.cometchat-ai-assistant-message-bubble
|
|
43
|
+
.cometchat-ai-assistant-message-bubble img,
|
|
44
|
+
.cometchat-ai-assistant-message-bubble pre,
|
|
45
|
+
.cometchat-ai-assistant-message-bubble canvas,
|
|
46
|
+
.cometchat-ai-assistant-message-bubble svg,
|
|
47
|
+
.cometchat-ai-assistant-message-bubble video,
|
|
48
|
+
.cometchat-ai-assistant-message-bubble figure,
|
|
49
|
+
.cometchat-ai-assistant-message-bubble table {
|
|
44
50
|
vertical-align: top;
|
|
45
51
|
}
|
|
46
52
|
|
|
53
|
+
.cometchat-ai-assistant-message-bubble input[type="checkbox"] {
|
|
54
|
+
margin-right: var(--cometchat-margin-1);
|
|
55
|
+
position: relative;
|
|
56
|
+
top: 1px;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
.cometchat-ai-assistant-message-bubble ol:not([class]),.cometchat-ai-assistant-message-bubble ul:not([class]) {
|
|
48
60
|
padding-left: var(--cometchat-padding-5) !important;
|
|
49
61
|
text-align: left !important;
|
|
@@ -192,17 +204,22 @@
|
|
|
192
204
|
max-height: 300px;
|
|
193
205
|
width: fit-content;
|
|
194
206
|
border-radius: var(--cometchat-radius-2);
|
|
195
|
-
margin-
|
|
207
|
+
margin-top: var(--cometchat-margin-2);
|
|
196
208
|
}
|
|
197
209
|
|
|
198
210
|
.cometchat-ai-assistant-message-bubble__image-intersection-start, .cometchat-ai-assistant-message-bubble__image-intersection-end{
|
|
199
211
|
display: none;
|
|
200
212
|
}
|
|
201
213
|
|
|
202
|
-
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
214
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
203
215
|
display: block;
|
|
204
216
|
margin-top: -0.5em;
|
|
205
217
|
}
|
|
218
|
+
|
|
219
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) ~ img{
|
|
220
|
+
margin-top: var(--cometchat-margin-1);
|
|
221
|
+
}
|
|
222
|
+
|
|
206
223
|
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:not(:has(+ .cometchat-ai-assistant-message-bubble__image-intersection-start)) {
|
|
207
224
|
display: block;
|
|
208
225
|
}
|
|
@@ -740,7 +740,10 @@
|
|
|
740
740
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
|
|
743
|
+
.cometchat-search__messages-leading-view-link > img {
|
|
744
|
+
height: 32px;
|
|
745
|
+
width: 32px;
|
|
746
|
+
}
|
|
744
747
|
|
|
745
748
|
.cometchat-search__messages-leading-view-audio.cometchat-search__messages-leading-view {
|
|
746
749
|
background-color: var(--cometchat-primary-color, #6852D6);
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: flex-start;
|
|
18
18
|
align-items: flex-start;
|
|
19
|
-
margin-top: var(--cometchat-margin-3);
|
|
20
19
|
height: 20px;
|
|
21
20
|
width: 20px;
|
|
22
21
|
background: var(--cometchat-icon-color-secondary);
|
|
23
22
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
.cometchat-stream-message-bubble {
|
|
25
|
+
.cometchat:has(> .cometchat-stream-message-bubble) {
|
|
27
26
|
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -49,10 +48,22 @@
|
|
|
49
48
|
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
.cometchat-stream-message-bubble
|
|
51
|
+
.cometchat-stream-message-bubble img,
|
|
52
|
+
.cometchat-stream-message-bubble pre,
|
|
53
|
+
.cometchat-stream-message-bubble canvas,
|
|
54
|
+
.cometchat-stream-message-bubble svg,
|
|
55
|
+
.cometchat-stream-message-bubble video,
|
|
56
|
+
.cometchat-stream-message-bubble figure,
|
|
57
|
+
.cometchat-stream-message-bubble table {
|
|
53
58
|
vertical-align: top;
|
|
54
59
|
}
|
|
55
60
|
|
|
61
|
+
.cometchat-stream-message-bubble input[type="checkbox"] {
|
|
62
|
+
margin-right: var(--cometchat-margin-1);
|
|
63
|
+
position: relative;
|
|
64
|
+
top: 1px;
|
|
65
|
+
}
|
|
66
|
+
|
|
56
67
|
.cometchat-stream-message-bubble li:not([class]) {
|
|
57
68
|
text-align: left !important;
|
|
58
69
|
|
|
@@ -227,7 +238,7 @@
|
|
|
227
238
|
max-height: 300px;
|
|
228
239
|
width: fit-content;
|
|
229
240
|
border-radius: var(--cometchat-radius-2);
|
|
230
|
-
margin-
|
|
241
|
+
margin-top: var(--cometchat-margin-2);
|
|
231
242
|
}
|
|
232
243
|
|
|
233
244
|
.cometchat-stream-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{
|
|
@@ -238,10 +249,15 @@
|
|
|
238
249
|
display: none;
|
|
239
250
|
}
|
|
240
251
|
|
|
241
|
-
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
252
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
242
253
|
display: block;
|
|
243
254
|
margin-top: -0.5em;
|
|
244
255
|
}
|
|
256
|
+
|
|
257
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) ~ img{
|
|
258
|
+
margin-top: var(--cometchat-margin-1);
|
|
259
|
+
}
|
|
260
|
+
|
|
245
261
|
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {
|
|
246
262
|
display: block;
|
|
247
263
|
}
|
|
@@ -106,6 +106,19 @@
|
|
|
106
106
|
width: auto;
|
|
107
107
|
|
|
108
108
|
}
|
|
109
|
+
|
|
110
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-sent .cometchat-message-list__receipt {
|
|
111
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-wait .cometchat-message-list__receipt {
|
|
115
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view-receipts-delivered .cometchat-message-list__receipt {
|
|
119
|
+
background-color: var(--cometchat-icon-color-secondary);
|
|
120
|
+
}
|
|
121
|
+
|
|
109
122
|
.cometchat-ai-assistant-chat .cometchat-message-bubble__status-info-view .cometchat-message-bubble__status-info-view-receipts-error {
|
|
110
123
|
height: 12px;
|
|
111
124
|
width: 12px;
|
|
@@ -399,6 +412,14 @@ background: var(--cometchat-error-color);
|
|
|
399
412
|
background: var(--cometchat-icon-color-secondary);
|
|
400
413
|
|
|
401
414
|
}
|
|
415
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view{
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: row;
|
|
418
|
+
align-items: center;
|
|
419
|
+
}
|
|
420
|
+
.cometchat-ai-assistant-chat .cometchat-message-bubble-outgoing .cometchat-message-bubble__status-info-view .cometchat{
|
|
421
|
+
display: flex;
|
|
422
|
+
}
|
|
402
423
|
.cometchat-ai-assistant-chat__sidebar-overlay {
|
|
403
424
|
position: absolute;
|
|
404
425
|
top: 0;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
margin-bottom: var(--cometchat-margin-2);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.cometchat-ai-assistant-message-bubble {
|
|
20
|
+
.cometchat:has(> .cometchat-ai-assistant-message-bubble) {
|
|
21
21
|
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -40,10 +40,22 @@
|
|
|
40
40
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.cometchat-ai-assistant-message-bubble
|
|
43
|
+
.cometchat-ai-assistant-message-bubble img,
|
|
44
|
+
.cometchat-ai-assistant-message-bubble pre,
|
|
45
|
+
.cometchat-ai-assistant-message-bubble canvas,
|
|
46
|
+
.cometchat-ai-assistant-message-bubble svg,
|
|
47
|
+
.cometchat-ai-assistant-message-bubble video,
|
|
48
|
+
.cometchat-ai-assistant-message-bubble figure,
|
|
49
|
+
.cometchat-ai-assistant-message-bubble table {
|
|
44
50
|
vertical-align: top;
|
|
45
51
|
}
|
|
46
52
|
|
|
53
|
+
.cometchat-ai-assistant-message-bubble input[type="checkbox"] {
|
|
54
|
+
margin-right: var(--cometchat-margin-1);
|
|
55
|
+
position: relative;
|
|
56
|
+
top: 1px;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
.cometchat-ai-assistant-message-bubble ol:not([class]),.cometchat-ai-assistant-message-bubble ul:not([class]) {
|
|
48
60
|
padding-left: var(--cometchat-padding-5) !important;
|
|
49
61
|
text-align: left !important;
|
|
@@ -192,17 +204,22 @@
|
|
|
192
204
|
max-height: 300px;
|
|
193
205
|
width: fit-content;
|
|
194
206
|
border-radius: var(--cometchat-radius-2);
|
|
195
|
-
margin-
|
|
207
|
+
margin-top: var(--cometchat-margin-2);
|
|
196
208
|
}
|
|
197
209
|
|
|
198
210
|
.cometchat-ai-assistant-message-bubble__image-intersection-start, .cometchat-ai-assistant-message-bubble__image-intersection-end{
|
|
199
211
|
display: none;
|
|
200
212
|
}
|
|
201
213
|
|
|
202
|
-
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
214
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:not(.cometchat-ai-assistant-message-bubble__image-intersection-end ~ .cometchat-ai-assistant-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) {
|
|
203
215
|
display: block;
|
|
204
216
|
margin-top: -0.5em;
|
|
205
217
|
}
|
|
218
|
+
|
|
219
|
+
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-ai-assistant-message-bubble__image-intersection-start) ~ img{
|
|
220
|
+
margin-top: var(--cometchat-margin-1);
|
|
221
|
+
}
|
|
222
|
+
|
|
206
223
|
.cometchat-ai-assistant-message-bubble .cometchat-ai-assistant-message-bubble__image-intersection-end:not(:has(+ .cometchat-ai-assistant-message-bubble__image-intersection-start)) {
|
|
207
224
|
display: block;
|
|
208
225
|
}
|
|
@@ -740,7 +740,10 @@
|
|
|
740
740
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
|
|
743
|
+
.cometchat-search__messages-leading-view-link > img {
|
|
744
|
+
height: 32px;
|
|
745
|
+
width: 32px;
|
|
746
|
+
}
|
|
744
747
|
|
|
745
748
|
.cometchat-search__messages-leading-view-audio.cometchat-search__messages-leading-view {
|
|
746
749
|
background-color: var(--cometchat-primary-color, #6852D6);
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: flex-start;
|
|
18
18
|
align-items: flex-start;
|
|
19
|
-
margin-top: var(--cometchat-margin-3);
|
|
20
19
|
height: 20px;
|
|
21
20
|
width: 20px;
|
|
22
21
|
background: var(--cometchat-icon-color-secondary);
|
|
23
22
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
.cometchat-stream-message-bubble {
|
|
25
|
+
.cometchat:has(> .cometchat-stream-message-bubble) {
|
|
27
26
|
margin-top: calc(var(--cometchat-margin-1) * -1)
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -49,10 +48,22 @@
|
|
|
49
48
|
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
.cometchat-stream-message-bubble
|
|
51
|
+
.cometchat-stream-message-bubble img,
|
|
52
|
+
.cometchat-stream-message-bubble pre,
|
|
53
|
+
.cometchat-stream-message-bubble canvas,
|
|
54
|
+
.cometchat-stream-message-bubble svg,
|
|
55
|
+
.cometchat-stream-message-bubble video,
|
|
56
|
+
.cometchat-stream-message-bubble figure,
|
|
57
|
+
.cometchat-stream-message-bubble table {
|
|
53
58
|
vertical-align: top;
|
|
54
59
|
}
|
|
55
60
|
|
|
61
|
+
.cometchat-stream-message-bubble input[type="checkbox"] {
|
|
62
|
+
margin-right: var(--cometchat-margin-1);
|
|
63
|
+
position: relative;
|
|
64
|
+
top: 1px;
|
|
65
|
+
}
|
|
66
|
+
|
|
56
67
|
.cometchat-stream-message-bubble li:not([class]) {
|
|
57
68
|
text-align: left !important;
|
|
58
69
|
|
|
@@ -227,7 +238,7 @@
|
|
|
227
238
|
max-height: 300px;
|
|
228
239
|
width: fit-content;
|
|
229
240
|
border-radius: var(--cometchat-radius-2);
|
|
230
|
-
margin-
|
|
241
|
+
margin-top: var(--cometchat-margin-2);
|
|
231
242
|
}
|
|
232
243
|
|
|
233
244
|
.cometchat-stream-message-bubble > *:first-child *:first-child:not(:has(*)) ~ img{
|
|
@@ -238,10 +249,15 @@
|
|
|
238
249
|
display: none;
|
|
239
250
|
}
|
|
240
251
|
|
|
241
|
-
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
252
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:not(.cometchat-stream-message-bubble__image-intersection-end ~ .cometchat-stream-message-bubble__image-intersection-start, input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) {
|
|
242
253
|
display: block;
|
|
243
254
|
margin-top: -0.5em;
|
|
244
255
|
}
|
|
256
|
+
|
|
257
|
+
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-start:is(input[type="checkbox"] ~ .cometchat-stream-message-bubble__image-intersection-start) ~ img{
|
|
258
|
+
margin-top: var(--cometchat-margin-1);
|
|
259
|
+
}
|
|
260
|
+
|
|
245
261
|
.cometchat-stream-message-bubble .cometchat-stream-message-bubble__image-intersection-end:not(:has(+ .cometchat-stream-message-bubble__image-intersection-start)) {
|
|
246
262
|
display: block;
|
|
247
263
|
}
|
|
@@ -61,13 +61,11 @@ export declare class CometChatUIKitUtility {
|
|
|
61
61
|
*/
|
|
62
62
|
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
67
|
-
* @param whitelistRegExes - A list of regular expressions to match allowed tags.
|
|
68
|
-
* @returns The sanitized HTML string.
|
|
64
|
+
* Process and sanitize text to escape dangerous HTML while preserving mention formatting
|
|
65
|
+
* @param text The text string that may contain HTML and mentions
|
|
66
|
+
* @returns Sanitized string with dangerous HTML escaped but mentions preserved
|
|
69
67
|
*/
|
|
70
|
-
static
|
|
68
|
+
static sanitizeText(text: string): string;
|
|
71
69
|
static convertBlobToWav: (audioBlob: {
|
|
72
70
|
arrayBuffer: () => any;
|
|
73
71
|
}) => Promise<{
|
|
@@ -74,6 +74,11 @@ export declare class UIKitSettings {
|
|
|
74
74
|
* @type {ExtensionsDataSource}
|
|
75
75
|
*/
|
|
76
76
|
readonly callingExtension?: CallingExtension;
|
|
77
|
+
/**
|
|
78
|
+
* Storage mode for persisting data.
|
|
79
|
+
* @type {CometChat.StorageMode}
|
|
80
|
+
*/
|
|
81
|
+
readonly storageMode: CometChat.StorageMode;
|
|
77
82
|
/**
|
|
78
83
|
* Private constructor to initialize the settings using the provided builder.
|
|
79
84
|
* @param {UIKitSettingsBuilder} builder - The builder instance containing the settings configuration.
|
|
@@ -135,6 +140,11 @@ export declare class UIKitSettings {
|
|
|
135
140
|
* @returns {ExtensionsDataSource[]}
|
|
136
141
|
*/
|
|
137
142
|
getCallsExtension(): ExtensionsDataSource;
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves the storage mode.
|
|
145
|
+
* @returns {CometChat.StorageMode} The storage mode.
|
|
146
|
+
*/
|
|
147
|
+
getStorageMode(): CometChat.StorageMode;
|
|
138
148
|
}
|
|
139
149
|
export declare class UIKitSettingsBuilder {
|
|
140
150
|
/**
|
|
@@ -203,6 +213,11 @@ export declare class UIKitSettingsBuilder {
|
|
|
203
213
|
* @type {string}
|
|
204
214
|
*/
|
|
205
215
|
clientHost?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Storage mode for persisting data.
|
|
218
|
+
* @type {CometChat.StorageMode}
|
|
219
|
+
*/
|
|
220
|
+
storageMode?: CometChat.StorageMode;
|
|
206
221
|
/**
|
|
207
222
|
* Builds and returns an instance of UIKitSettings.
|
|
208
223
|
* @returns {UIKitSettings} A new instance of UIKitSettings with the specified configuration.
|
|
@@ -279,4 +294,10 @@ export declare class UIKitSettingsBuilder {
|
|
|
279
294
|
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
280
295
|
*/
|
|
281
296
|
setCallsExtension(callingExtension: CallingExtension): UIKitSettingsBuilder;
|
|
297
|
+
/**
|
|
298
|
+
* Sets the storage mode.
|
|
299
|
+
* @param {CometChat.StorageMode} storageMode - The storage mode.
|
|
300
|
+
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
301
|
+
*/
|
|
302
|
+
setStorageMode(storageMode: CometChat.StorageMode): UIKitSettingsBuilder;
|
|
282
303
|
}
|
package/dist/types/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { CometChatTextFormatter } from "../../../formatters/CometChatFormatters/
|
|
|
2
2
|
export declare const useCometChatTextBubble: (props: {
|
|
3
3
|
textFormatters: Array<CometChatTextFormatter>;
|
|
4
4
|
}) => {
|
|
5
|
-
|
|
5
|
+
appendTextInHtml: (textElement: HTMLElement, text: string) => void;
|
|
6
6
|
};
|
|
@@ -157,6 +157,11 @@ export declare class CometChatUIKitConstants {
|
|
|
157
157
|
changeScope: "changeScope";
|
|
158
158
|
groupMembers: "groupMembers";
|
|
159
159
|
}>;
|
|
160
|
+
static mimeTypes: Readonly<{
|
|
161
|
+
audio: "audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg";
|
|
162
|
+
video: "video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt";
|
|
163
|
+
image: "image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr";
|
|
164
|
+
}>;
|
|
160
165
|
static streamMessageTypes: Readonly<{
|
|
161
166
|
run_started: string;
|
|
162
167
|
text_message_start: string;
|
|
@@ -42,3 +42,4 @@ export declare const setAIAssistantTools: (actions: CometChatAIAssistantTools) =
|
|
|
42
42
|
* Unsubscribes from the message processor and resets accumulated content
|
|
43
43
|
*/
|
|
44
44
|
export declare const stopStreamingMessage: () => void;
|
|
45
|
+
export declare const emitStreamingState: (state: boolean) => void;
|
|
@@ -17,7 +17,6 @@ export declare const currentAudioPlayer: {
|
|
|
17
17
|
* Function to stop current media playback.
|
|
18
18
|
*/
|
|
19
19
|
export declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
|
|
20
|
-
export declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
|
|
21
20
|
export declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
|
|
22
21
|
/**
|
|
23
22
|
* Function to check if the current browser is safari.
|
|
@@ -62,10 +61,12 @@ export declare const useDebouncedCallback: (callback: () => void, delay: number)
|
|
|
62
61
|
cleanup: () => void;
|
|
63
62
|
};
|
|
64
63
|
export declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
|
|
64
|
+
export declare function createMessageCopyFromBaseMessage(msg: CometChat.BaseMessage, user: CometChat.User | undefined): CometChat.BaseMessage;
|
|
65
65
|
export declare function isDarkMode(): boolean;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
67
|
+
* @function shouldShowCustomMimeTypes
|
|
68
|
+
* @description Returns true if the device is running either iOS (iPhone, iPad, iPod) or macOS.
|
|
69
|
+
* @returns {boolean} True if the device is an Apple device (iOS or macOS), false otherwise.
|
|
69
70
|
*/
|
|
70
|
-
export declare const
|
|
71
|
+
export declare const shouldShowCustomMimeTypes: () => boolean;
|
|
71
72
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.3",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"exports": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@cometchat/chat-sdk-javascript": "^4.1.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.1.3",
|
|
12
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
13
13
|
"rxjs": "^7.8.1",
|
|
14
14
|
"react-markdown": "^10.1.0",
|