@cometchat/chat-uikit-react 5.0.0-beta2 → 5.0.0
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/README.md +2 -2
- package/dist/assets/Send.svg +3 -0
- package/dist/assets/loading.svg +5 -16
- package/dist/index.d.ts +1155 -950
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallButtons.css +1 -1
- package/dist/styles/CometChatCallLogs.css +3 -3
- package/dist/styles/{components/AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
- package/dist/styles/{components/AIConversationSummary.css → CometChatConversationSummary.css} +12 -12
- package/dist/styles/CometChatConversations.css +10 -10
- package/dist/styles/CometChatGroupMembers.css +5 -5
- package/dist/styles/CometChatIncomingCall.css +1 -1
- package/dist/styles/CometChatList.css +15 -22
- package/dist/styles/CometChatListItem.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +44 -41
- package/dist/styles/CometChatMessageHeader.css +22 -5
- package/dist/styles/CometChatMessageInformation.css +3 -2
- package/dist/styles/CometChatMessageList.css +6 -5
- package/dist/styles/CometChatOutgoingCall.css +5 -0
- package/dist/styles/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/PollsBubble.css +7 -1
- package/dist/styles/components/CometChatCallButtons.css +1 -1
- package/dist/styles/components/CometChatCallLogs.css +3 -3
- package/dist/styles/{AIConversationStarter.css → components/CometChatConversationStarter.css} +2 -2
- package/dist/styles/{AIConversationSummary.css → components/CometChatConversationSummary.css} +12 -12
- package/dist/styles/components/CometChatConversations.css +10 -10
- package/dist/styles/components/CometChatGroupMembers.css +5 -5
- package/dist/styles/components/CometChatIncomingCall.css +1 -1
- package/dist/styles/components/CometChatList.css +15 -22
- package/dist/styles/components/CometChatListItem.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +44 -41
- package/dist/styles/components/CometChatMessageHeader.css +22 -5
- package/dist/styles/components/CometChatMessageInformation.css +3 -2
- package/dist/styles/components/CometChatMessageList.css +6 -5
- package/dist/styles/components/CometChatOutgoingCall.css +5 -0
- package/dist/styles/components/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/components/PollsBubble.css +7 -1
- package/dist/styles/components/index.css +3 -3
- package/dist/styles/index.css +3 -3
- package/dist/types/CometChatCustomHooks.d.ts +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKit.d.ts +0 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -22
- package/dist/types/Enums/Enums.d.ts +9 -0
- package/dist/types/components/BaseComponents/CometChatConversationStarter/CometChatConversationStarter.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatConversationSummary/CometChatConversationSummary.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -12
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +3 -1
- package/dist/types/components/BaseComponents/CometChatSmartReplies/CometChatSmartReplies.d.ts +7 -0
- package/dist/types/components/Calling/CallButtonConfiguration.d.ts +1 -1
- package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +2 -2
- package/dist/types/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +30 -12
- package/dist/types/components/Calling/CometChatCallButtons/useCallButtons.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +50 -38
- package/dist/types/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +1 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +48 -26
- package/dist/types/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +31 -15
- package/dist/types/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +7 -3
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +88 -87
- package/dist/types/components/CometChatConversations/controller.d.ts +10 -8
- package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +2 -5
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +94 -76
- package/dist/types/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +2 -2
- package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +74 -62
- package/dist/types/components/CometChatGroups/useCometChatGroups.d.ts +1 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +107 -49
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -1
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +77 -16
- package/dist/types/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +1 -1
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +133 -55
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -1
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +34 -2
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +88 -89
- package/dist/types/components/CometChatUsers/useCometChatUsers.d.ts +2 -1
- package/dist/types/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +3 -1
- package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +5 -0
- package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -3
- package/dist/types/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactions/CometChatReactions.d.ts +3 -2
- package/dist/types/index.d.ts +8 -7
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +129 -115
- package/dist/types/utils/DataSource.d.ts +17 -18
- package/dist/types/utils/DataSourceDecorator.d.ts +17 -18
- package/dist/types/utils/GroupMemberUtils.d.ts +1 -1
- package/dist/types/utils/MessageUtils.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +29 -16
- package/dist/types/utils/util.d.ts +5 -0
- package/package.json +1 -1
- package/dist/assets/ai-empty.svg +0 -22
- package/dist/assets/ai-error.svg +0 -3
- package/dist/assets/heart-reaction.png +0 -0
- package/dist/assets/send.svg +0 -12
- package/dist/styles/AICard.css +0 -30
- package/dist/styles/components/AICard.css +0 -30
- package/dist/types/components/AI/AIBaseConfiguration.d.ts +0 -51
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
- package/dist/types/components/AI/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
- package/dist/types/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
- package/dist/types/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
- /package/dist/assets/{ai.svg → conversation_summary.svg} +0 -0
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
width: 100%;
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
}
|
|
58
|
-
.cometchat-message-header .cometchat-list-
|
|
58
|
+
.cometchat-message-header .cometchat-list-item__trailing-view{
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -73,7 +73,20 @@
|
|
|
73
73
|
cursor: pointer;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
.cometchat-message-header .cometchat-message-header__conversation-summary-button .cometchat-button{
|
|
77
|
+
background: transparent;
|
|
78
|
+
border: none;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
height: fit-content;
|
|
82
|
+
width: fit-content;
|
|
83
|
+
padding: 0;
|
|
84
|
+
}
|
|
85
|
+
.cometchat-message-header .cometchat-message-header__conversation-summary-button .cometchat-button .cometchat-button__icon{
|
|
86
|
+
height: 24px;
|
|
87
|
+
width: 24px;
|
|
88
|
+
background: var(--cometchat-icon-color-primary, #141414);;
|
|
89
|
+
}
|
|
77
90
|
/* List item container within the message header */
|
|
78
91
|
|
|
79
92
|
.cometchat-message-header__listitem {
|
|
@@ -87,11 +100,13 @@
|
|
|
87
100
|
|
|
88
101
|
/* Menu container within the message header, aligned to the right */
|
|
89
102
|
|
|
90
|
-
.cometchat-message-
|
|
103
|
+
.cometchat-message-header__auxiliary-button-view {
|
|
91
104
|
width: fit-content;
|
|
92
105
|
display: flex;
|
|
106
|
+
gap: var(--cometchat-padding-4, 16px);
|
|
93
107
|
align-items: center;
|
|
94
108
|
justify-content: flex-end;
|
|
109
|
+
gap: 16px;
|
|
95
110
|
}
|
|
96
111
|
|
|
97
112
|
/* Removes padding for list items within the message header */
|
|
@@ -100,10 +115,12 @@
|
|
|
100
115
|
padding: 0;
|
|
101
116
|
|
|
102
117
|
}
|
|
103
|
-
|
|
118
|
+
|
|
119
|
+
.cometchat-message-header .cometchat-list-item:hover {
|
|
104
120
|
background: transparent;
|
|
105
121
|
cursor: default;
|
|
106
122
|
}
|
|
123
|
+
|
|
107
124
|
/* Removes padding for the body of the list item within the message header */
|
|
108
125
|
|
|
109
126
|
.cometchat-message-header .cometchat-list-item__body {
|
|
@@ -145,7 +162,7 @@
|
|
|
145
162
|
width: 100%;
|
|
146
163
|
}
|
|
147
164
|
|
|
148
|
-
.cometchat-message-header .cometchat-button__icon:hover{
|
|
165
|
+
.cometchat-message-header .cometchat-button__icon:hover {
|
|
149
166
|
background: var(--cometchat-primary-color);
|
|
150
167
|
}
|
|
151
168
|
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
align-items: flex-start;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.cometchat-message-information__receipts .cometchat-list-
|
|
148
|
+
.cometchat-message-information__receipts .cometchat-list-item__trailing-view {
|
|
149
149
|
display: none;
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -204,7 +204,8 @@
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.cometchat-message-
|
|
207
|
+
.cometchat-message-information__receipts-subtite-text,
|
|
208
|
+
.cometchat-message-information__receipts-subtitle .cometchat-date,
|
|
208
209
|
.cometchat-message-information__receipts-subtite-text .cometchat-date {
|
|
209
210
|
padding: 0px;
|
|
210
211
|
overflow: hidden;
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
border: none;
|
|
21
21
|
align-self: center;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
.cometchat-message-list .cometchat-message-list__footer-smart-replies,.cometchat-message-list__footer-conversation-starter{
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
24
26
|
/* Body of the error state view */
|
|
25
27
|
.cometchat-message-list__error-state-view-body {
|
|
26
28
|
display: flex;
|
|
@@ -310,9 +312,7 @@ width: fit-content;
|
|
|
310
312
|
|
|
311
313
|
/* Message indicator inside message list */
|
|
312
314
|
.cometchat-message-list__message-indicator {
|
|
313
|
-
|
|
314
|
-
position: absolute;
|
|
315
|
-
bottom: 8px;
|
|
315
|
+
margin-bottom: 8px;
|
|
316
316
|
display: flex;
|
|
317
317
|
width: 100;
|
|
318
318
|
justify-content: center;
|
|
@@ -362,6 +362,7 @@ width: fit-content;
|
|
|
362
362
|
justify-content: flex-start;
|
|
363
363
|
width: 100%;
|
|
364
364
|
box-sizing: border-box;
|
|
365
|
+
background: transparent;
|
|
365
366
|
}
|
|
366
367
|
|
|
367
368
|
/* Leading view inside message bubble */
|
|
@@ -698,7 +699,7 @@ width: fit-content;
|
|
|
698
699
|
.cometchat-message-information__popup-wrapper {
|
|
699
700
|
display: flex;
|
|
700
701
|
position: fixed;
|
|
701
|
-
z-index:
|
|
702
|
+
z-index: 2;
|
|
702
703
|
left: 0;
|
|
703
704
|
top: 0;
|
|
704
705
|
width: 100%;
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
font: var(--cometchat-font-title-medium);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.cometchat-outgoing-call__title-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
/* Subtitle text for the outgoing call UI */
|
|
25
30
|
.cometchat-outgoing-call__subtitle {
|
|
26
31
|
color: var(--cometchat-text-color-secondary);
|
|
@@ -1,122 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
padding:
|
|
1
|
+
.cometchat-smart-replies__wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.cometchat-
|
|
7
|
+
.cometchat-smart-replies {
|
|
8
8
|
display: flex;
|
|
9
|
-
width: 100%;
|
|
10
9
|
height: 100%;
|
|
11
|
-
|
|
10
|
+
width: 100%;
|
|
11
|
+
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
align-items: flex-start;
|
|
14
|
-
|
|
14
|
+
border: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
15
15
|
border-radius: var(--cometchat-radius-4, 16px);
|
|
16
|
+
background: var(--cometchat-background-color-01, #FFF);
|
|
17
|
+
box-shadow: 0px 12px 16px -4px rgb(16 24 40 / 2%), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
18
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
.cometchat-
|
|
21
|
+
.cometchat-smart-replies__header {
|
|
19
22
|
display: flex;
|
|
20
23
|
justify-content: space-between;
|
|
21
24
|
align-items: center;
|
|
22
25
|
align-self: stretch;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
.cometchat-
|
|
28
|
+
.cometchat-smart-replies__header-title {
|
|
26
29
|
overflow: hidden;
|
|
27
30
|
color: var(--cometchat-text-color-primary, #141414);
|
|
28
31
|
text-overflow: ellipsis;
|
|
29
|
-
font: var(--cometchat-font-
|
|
32
|
+
font: var(--cometchat-font-body-medium);
|
|
30
33
|
font-style: normal;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
.cometchat-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
.cometchat-smart-replies__header-close-button {
|
|
37
|
+
mask: url("../../assets/close.svg");
|
|
38
|
+
-webkit-mask: url("../../assets/close.svg");
|
|
39
|
+
background-color: var(--cometchat-icon-color-primary, #141414);
|
|
40
|
+
width: 20px;
|
|
41
|
+
height: 20px;
|
|
42
|
+
cursor: pointer;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
.cometchat-
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
.cometchat-smart-replies__body {
|
|
46
|
+
width: 100%;
|
|
47
|
+
flex: 1 0 0;
|
|
48
|
+
color: var(--cometchat-text-color-primary, #141414);
|
|
49
|
+
font: var(--cometchat-font-body-regular);
|
|
50
|
+
font-style: normal;
|
|
51
|
+
text-align: left;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
|
-
.cometchat-
|
|
54
|
+
.cometchat-smart-replies__shimmer-container {
|
|
46
55
|
display: flex;
|
|
47
|
-
|
|
48
|
-
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);
|
|
49
|
-
align-items: center;
|
|
50
|
-
align-content: center;
|
|
51
|
-
gap: 4px var(--cometchat-padding-1, 4px);
|
|
52
|
-
align-self: stretch;
|
|
56
|
+
width: 100%;
|
|
53
57
|
flex-wrap: wrap;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
61
|
+
flex-direction: row;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
.cometchat-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
.cometchat-smart-replies__shimmer-item {
|
|
65
|
+
flex-wrap: wrap;
|
|
66
|
+
width: 20%;
|
|
67
|
+
display: flex;
|
|
68
|
+
height: 33px;
|
|
69
|
+
border-radius: var(--cometchat-radius-max, 1000px);
|
|
70
|
+
background: var(--cometchat-shimmer-gradient-color, linear-gradient(90deg, #E0E0E0 0%, #EEE 100%));
|
|
71
|
+
background-size: 800px 104px;
|
|
72
|
+
animation: shimmerAnimation 1.5s infinite linear;
|
|
63
73
|
}
|
|
64
74
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
@keyframes shimmerAnimation {
|
|
76
|
+
0% {
|
|
77
|
+
background-position: -468px 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
100% {
|
|
81
|
+
background-position: 468px 0;
|
|
82
|
+
}
|
|
70
83
|
}
|
|
71
84
|
|
|
72
|
-
.cometchat-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
width: 20px;
|
|
78
|
-
-webkit-mask: url("../../assets/close.svg");
|
|
79
|
-
mask: url("../../assets/close.svg");
|
|
80
|
-
-webkit-mask-size: 100%;
|
|
81
|
-
mask-size: 100%;
|
|
85
|
+
.cometchat-smart-replies__items-container {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: var(--cometchat-padding-2, 8px);
|
|
89
|
+
justify-content: flex-start;
|
|
82
90
|
}
|
|
83
91
|
|
|
84
|
-
.cometchat-
|
|
85
|
-
max-height: 33px;
|
|
92
|
+
.cometchat-smart-replies__item {
|
|
86
93
|
display: flex;
|
|
87
94
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);
|
|
88
95
|
align-items: center;
|
|
89
|
-
|
|
90
|
-
gap: 4px var(--cometchat-padding-1, 4px);
|
|
91
|
-
align-self: stretch;
|
|
92
|
-
flex-wrap: wrap;
|
|
93
|
-
border-radius: var(--cometchat-radius-2, 8px);
|
|
96
|
+
border-radius: var(--cometchat-radius-max, 1000px);
|
|
94
97
|
border: 1px solid var(--cometchat-border-color-light, #F5F5F5);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
animation: shimmerAnimation 1.5s infinite linear;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.cometchat-ai-smart-replies__error-view,
|
|
101
|
-
.cometchat-ai-smart-replies__empty-view {
|
|
98
|
+
background: var(--cometchat-background-color-01, #FFF);
|
|
99
|
+
cursor: pointer;
|
|
102
100
|
width: 100%;
|
|
103
|
-
height: 100%;
|
|
104
|
-
display: flex;
|
|
105
|
-
align-items: center;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
color: var(--cometchat-text-color-secondary, #727272);
|
|
108
|
-
text-align: center;
|
|
109
|
-
font: var(--cometchat-font-body-regular);
|
|
110
|
-
font-style: normal;
|
|
111
101
|
}
|
|
112
102
|
|
|
103
|
+
.cometchat-smart-replies__item:hover {
|
|
104
|
+
background: var(--cometchat-white-hover, #FAFAFA);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
113
107
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
100
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
108
|
+
.cometchat-smart-replies__item-button {
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
border: none;
|
|
111
|
+
color: var(--cometchat-text-color-primary);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
width: 100%;
|
|
114
|
+
text-align: left;
|
|
115
|
+
}
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
font: var(--cometchat-font-heading4-bold);
|
|
56
56
|
font-style: normal;
|
|
57
57
|
text-align: left;
|
|
58
|
+
width: 100%;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
word-wrap: break-word;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.cometchat-polls-bubble-incoming .cometchat-polls-bubble__question {
|
|
@@ -157,6 +160,9 @@
|
|
|
157
160
|
font: var(--cometchat-font-body-regular);
|
|
158
161
|
font-style: normal;
|
|
159
162
|
text-align: left;
|
|
163
|
+
word-wrap: break-word;
|
|
164
|
+
width: 100%;
|
|
165
|
+
overflow: hidden;
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
.cometchat-polls-bubble-incoming .cometchat-poll-bubble__option-item-body-content-title {
|
|
@@ -173,7 +179,7 @@
|
|
|
173
179
|
max-width: 100px;
|
|
174
180
|
position: relative;
|
|
175
181
|
height: 20px;
|
|
176
|
-
width:
|
|
182
|
+
width: fit-content;
|
|
177
183
|
gap: var(--cometchat-padding-1);
|
|
178
184
|
}
|
|
179
185
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import url('./
|
|
2
|
-
@import url('./
|
|
3
|
-
@import url('./
|
|
1
|
+
@import url('./CometChatConversationStarter.css');
|
|
2
|
+
@import url('./CometChatSmartReplies.css');
|
|
3
|
+
@import url('./CometChatConversationSummary.css');
|
|
4
4
|
@import url('./CometChatActionSheet.css');
|
|
5
5
|
@import url('./CometChatAudioBubble.css');
|
|
6
6
|
@import url('./CometChatAvatar.css');
|
package/dist/styles/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import url('./
|
|
2
|
-
@import url('./
|
|
3
|
-
@import url('./
|
|
1
|
+
@import url('./CometChatConversationStarter.css');
|
|
2
|
+
@import url('./CometChatSmartReplies.css');
|
|
3
|
+
@import url('./CometChatConversationSummary.css');
|
|
4
4
|
@import url('./CometChatActionSheet.css');
|
|
5
5
|
@import url('./CometChatAudioBubble.css');
|
|
6
6
|
@import url('./CometChatAvatar.css');
|
|
@@ -24,4 +24,4 @@ export declare function useRefSync<T>(value: T): React.MutableRefObject<T>;
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
27
|
-
export declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown) => void;
|
|
27
|
+
export declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AIExtensionDataSource } from "../components/AI/AIExtensionDataSource";
|
|
2
1
|
import { CallingExtension } from "../components/Calling/CallingExtension";
|
|
3
2
|
import { ExtensionsDataSource } from "../components/Extensions/ExtensionsDataSource";
|
|
4
3
|
import { CometChatLocalize } from "../resources/CometChatLocalize/cometchat-localize";
|
|
@@ -63,11 +62,6 @@ declare class CometChatUIKit {
|
|
|
63
62
|
* @type {CallingExtension}
|
|
64
63
|
*/
|
|
65
64
|
static defaultCallingExtension: CallingExtension;
|
|
66
|
-
/**
|
|
67
|
-
* Default AI features included in the UI Kit.
|
|
68
|
-
* @type {AIExtensionDataSource[]}
|
|
69
|
-
*/
|
|
70
|
-
static defaultAIFeatures: AIExtensionDataSource[];
|
|
71
65
|
/**
|
|
72
66
|
* Checking if the SDK is initialized.
|
|
73
67
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AIExtensionDataSource } from "../components/AI/AIExtensionDataSource";
|
|
2
1
|
import { CallingExtension } from "../components/Calling/CallingExtension";
|
|
3
2
|
import { ExtensionsDataSource } from "../components/Extensions/ExtensionsDataSource";
|
|
4
3
|
/**
|
|
@@ -75,11 +74,6 @@ export declare class UIKitSettings {
|
|
|
75
74
|
* @type {ExtensionsDataSource}
|
|
76
75
|
*/
|
|
77
76
|
readonly callingExtension?: CallingExtension;
|
|
78
|
-
/**
|
|
79
|
-
* Data source for managing AI features.
|
|
80
|
-
* @type {AIExtensionDataSource[]}
|
|
81
|
-
*/
|
|
82
|
-
readonly aiFeatures?: AIExtensionDataSource[];
|
|
83
77
|
/**
|
|
84
78
|
* Private constructor to initialize the settings using the provided builder.
|
|
85
79
|
* @param {UIKitSettingsBuilder} builder - The builder instance containing the settings configuration.
|
|
@@ -141,11 +135,6 @@ export declare class UIKitSettings {
|
|
|
141
135
|
* @returns {ExtensionsDataSource[]}
|
|
142
136
|
*/
|
|
143
137
|
getCallsExtension(): ExtensionsDataSource;
|
|
144
|
-
/**
|
|
145
|
-
* Retrieves the list of AI features.
|
|
146
|
-
* @returns {AIExtensionDataSource[]} The list of AI features.
|
|
147
|
-
*/
|
|
148
|
-
getAiFeatures(): AIExtensionDataSource[];
|
|
149
138
|
}
|
|
150
139
|
export declare class UIKitSettingsBuilder {
|
|
151
140
|
/**
|
|
@@ -214,11 +203,6 @@ export declare class UIKitSettingsBuilder {
|
|
|
214
203
|
* @type {string}
|
|
215
204
|
*/
|
|
216
205
|
clientHost?: string;
|
|
217
|
-
/**
|
|
218
|
-
* Data source for managing AI features.
|
|
219
|
-
* @type {AIExtensionDataSource[]}
|
|
220
|
-
*/
|
|
221
|
-
aiFeatures?: AIExtensionDataSource[];
|
|
222
206
|
/**
|
|
223
207
|
* Builds and returns an instance of UIKitSettings.
|
|
224
208
|
* @returns {UIKitSettings} A new instance of UIKitSettings with the specified configuration.
|
|
@@ -295,10 +279,4 @@ export declare class UIKitSettingsBuilder {
|
|
|
295
279
|
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
296
280
|
*/
|
|
297
281
|
setCallsExtension(callingExtension: CallingExtension): UIKitSettingsBuilder;
|
|
298
|
-
/**
|
|
299
|
-
* Sets the list of AI features.
|
|
300
|
-
* @param {AIExtensionDataSource[]} aiFeatures - The list of AI features.
|
|
301
|
-
* @returns {UIKitSettingsBuilder} The builder instance.
|
|
302
|
-
*/
|
|
303
|
-
setAiFeatures(aiFeatures: AIExtensionDataSource[]): UIKitSettingsBuilder;
|
|
304
282
|
}
|
|
@@ -16,6 +16,15 @@ export declare enum AuxiliaryButtonAlignment {
|
|
|
16
16
|
left = 0,
|
|
17
17
|
right = 1
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* It is used for specifying the function of enter button
|
|
21
|
+
* It is used in CometChatMessageComposer component.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EnterKeyBehavior {
|
|
24
|
+
SendMessage = "sendMessage",
|
|
25
|
+
NewLine = "newLine",
|
|
26
|
+
None = "none"
|
|
27
|
+
}
|
|
19
28
|
/**
|
|
20
29
|
* It is used for describing the position of the element on the UI.
|
|
21
30
|
* It is used in CometChatContextualMenu, CometChatMessageBubble, CometChatUsers and CometChatGroupMembers components.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface CometChatConversationStarterProps {
|
|
2
|
+
getConversationStarters?: () => Promise<string[]>;
|
|
3
|
+
onSuggestionClicked?: (reply: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const CometChatConversationStarter: (props: CometChatConversationStarterProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { CometChatConversationStarter };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface CometChatConversationSummaryProps {
|
|
2
|
+
getConversationSummary?: () => Promise<string>;
|
|
3
|
+
closeCallback?: () => void;
|
|
4
|
+
}
|
|
5
|
+
declare const CometChatConversationSummary: (props: CometChatConversationSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { CometChatConversationSummary };
|
|
@@ -2,18 +2,12 @@ import { JSX } from "react";
|
|
|
2
2
|
import { States, TitleAlignment } from "../../../Enums/Enums";
|
|
3
3
|
export type DivElementRef = HTMLDivElement | null;
|
|
4
4
|
interface ListProps<T> {
|
|
5
|
-
/**
|
|
6
|
-
* Title of the component
|
|
7
|
-
*
|
|
8
|
-
* @defaultValue `""`
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
5
|
/**
|
|
12
6
|
* Menu view of the component
|
|
13
7
|
*
|
|
14
8
|
* @defaultValue `""`
|
|
15
9
|
*/
|
|
16
|
-
|
|
10
|
+
headerView?: JSX.Element;
|
|
17
11
|
/**
|
|
18
12
|
* Alignment of the `title` text
|
|
19
13
|
*
|
|
@@ -56,7 +50,7 @@ interface ListProps<T> {
|
|
|
56
50
|
/**
|
|
57
51
|
* Custom list item view to be rendered for each object in the `list` prop
|
|
58
52
|
*/
|
|
59
|
-
|
|
53
|
+
itemView: (item: T, itemIndex: number) => JSX.Element;
|
|
60
54
|
/**
|
|
61
55
|
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
62
56
|
*/
|
|
@@ -81,14 +75,14 @@ interface ListProps<T> {
|
|
|
81
75
|
* @remarks
|
|
82
76
|
* This property will be used to extract the section header character from each object in the `list` prop
|
|
83
77
|
*/
|
|
84
|
-
sectionHeaderKey?: keyof T;
|
|
78
|
+
sectionHeaderKey?: keyof T | string;
|
|
85
79
|
/**
|
|
86
80
|
* Property on each object in the `list` prop
|
|
87
81
|
*
|
|
88
82
|
* @remarks
|
|
89
83
|
* This property will be used to extract the key value from each object in the `list` prop. The extracted key value is set as a `key` of a React element
|
|
90
84
|
*/
|
|
91
|
-
listItemKey?: keyof T;
|
|
85
|
+
listItemKey?: keyof T | string;
|
|
92
86
|
/**
|
|
93
87
|
* Fetch state of the component
|
|
94
88
|
*/
|
|
@@ -113,7 +107,7 @@ interface ListProps<T> {
|
|
|
113
107
|
/**
|
|
114
108
|
* Custom view for the error state of the component
|
|
115
109
|
*/
|
|
116
|
-
|
|
110
|
+
errorView?: JSX.Element;
|
|
117
111
|
/**
|
|
118
112
|
* Text to display in the default error view
|
|
119
113
|
*
|
|
@@ -123,7 +117,7 @@ interface ListProps<T> {
|
|
|
123
117
|
/**
|
|
124
118
|
* Custom view for the empty state of the component
|
|
125
119
|
*/
|
|
126
|
-
|
|
120
|
+
emptyView?: JSX.Element;
|
|
127
121
|
/**
|
|
128
122
|
* Text to display in the default empty view
|
|
129
123
|
*
|
|
@@ -141,6 +135,12 @@ interface ListProps<T> {
|
|
|
141
135
|
* Function to call whenever the component encounters an error
|
|
142
136
|
*/
|
|
143
137
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
138
|
+
/**
|
|
139
|
+
* Title of the component
|
|
140
|
+
*
|
|
141
|
+
* @defaultValue `""`
|
|
142
|
+
*/
|
|
143
|
+
title?: string;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Renders a list component that can display a title, search bar,
|
|
@@ -9,7 +9,9 @@ interface ListItemProps {
|
|
|
9
9
|
}) => void;
|
|
10
10
|
menuView?: ReactNode;
|
|
11
11
|
subtitleView?: ReactNode;
|
|
12
|
-
|
|
12
|
+
trailingView?: ReactNode;
|
|
13
|
+
titleView?: ReactNode;
|
|
14
|
+
leadingView?: ReactNode;
|
|
13
15
|
}
|
|
14
16
|
declare const CometChatListItem: (props: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export { CometChatListItem };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CometChatSmartRepliesProps {
|
|
2
|
+
getSmartReplies?: () => Promise<string[]>;
|
|
3
|
+
onSuggestionClicked?: (reply: string) => void;
|
|
4
|
+
closeCallback?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const CometChatSmartReplies: (props: CometChatSmartRepliesProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { CometChatSmartReplies };
|
|
@@ -4,7 +4,7 @@ export declare class CallButtonConfiguration {
|
|
|
4
4
|
callSettingsBuilder?: (isAudioOnlyCall: boolean, user?: CometChat.User, group?: CometChat.Group) => typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
5
5
|
onVoiceCallClick?: () => void;
|
|
6
6
|
onVideoCallClick?: () => void;
|
|
7
|
-
onError?: (error: CometChat.CometChatException) => void;
|
|
7
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
8
8
|
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
9
9
|
constructor(configuration?: CallButtonConfiguration);
|
|
10
10
|
}
|
|
@@ -11,7 +11,7 @@ export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
11
11
|
getLoggedInUser(): Promise<void>;
|
|
12
12
|
getAllMessageTypes(): string[];
|
|
13
13
|
getId(): string;
|
|
14
|
-
getAllMessageCategories(): string[];
|
|
14
|
+
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
15
15
|
checkIfTemplateTypeExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
16
16
|
checkIfTemplateCategoryExist(template: CometChatMessageTemplate[], category: string): boolean;
|
|
17
17
|
getAllMessageTemplates(additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
@@ -25,5 +25,5 @@ export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
25
25
|
getDefaultAudioCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
getDefaultVideoCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalParams?: any): string;
|
|
28
|
-
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any[];
|
|
28
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): any[];
|
|
29
29
|
}
|